list-filesystems: Use core list-filesystems API (RHBZ#642933).
[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-10-27 12:50+0200\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 #: ../inspector/virt-inspector.pl:36 ../tools/virt-edit.pl:31
23 #: ../tools/virt-win-reg.pl:34 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:31
24 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
25 #: ../tools/virt-cat.pl:30 ../tools/virt-tar.pl:30 ../tools/virt-rescue.pl:29
26 #: ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
27 msgid "utf8"
28 msgstr ""
29
30 # type: =head1
31 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
32 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
33 #: ../inspector/virt-inspector.pl:38 ../tools/virt-edit.pl:33
34 #: ../tools/virt-win-reg.pl:36 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:33
35 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
36 #: ../tools/virt-cat.pl:32 ../tools/virt-tar.pl:32 ../tools/virt-rescue.pl:31
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
38 msgid "NAME"
39 msgstr "名前"
40
41 # type: textblock
42 #: ../src/guestfs.pod:5
43 msgid "guestfs - Library for accessing and modifying virtual machine images"
44 msgstr ""
45
46 # type: =head1
47 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
48 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
49 #: ../inspector/virt-inspector.pl:42 ../tools/virt-edit.pl:37
50 #: ../tools/virt-win-reg.pl:40 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:37
51 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
52 #: ../tools/virt-cat.pl:36 ../tools/virt-tar.pl:36 ../tools/virt-rescue.pl:35
53 #: ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
54 msgid "SYNOPSIS"
55 msgstr ""
56
57 # type: verbatim
58 #: ../src/guestfs.pod:9
59 #, no-wrap
60 msgid ""
61 " #include <guestfs.h>\n"
62 " \n"
63 msgstr ""
64
65 # type: verbatim
66 #: ../src/guestfs.pod:11
67 #, no-wrap
68 msgid ""
69 " guestfs_h *g = guestfs_create ();\n"
70 " guestfs_add_drive (g, \"guest.img\");\n"
71 " guestfs_launch (g);\n"
72 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
73 " guestfs_touch (g, \"/hello\");\n"
74 " guestfs_umount (g, \"/\");\n"
75 " guestfs_sync (g);\n"
76 " guestfs_close (g);\n"
77 "\n"
78 msgstr ""
79
80 # type: verbatim
81 #: ../src/guestfs.pod:20
82 #, no-wrap
83 msgid ""
84 " cc prog.c -o prog -lguestfs\n"
85 "or:\n"
86 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
87 "\n"
88 msgstr ""
89
90 # type: =head1
91 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30
92 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
93 #: ../inspector/virt-inspector.pl:48 ../tools/virt-edit.pl:51
94 #: ../tools/virt-win-reg.pl:64 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:43
95 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-cat.pl:42 ../tools/virt-tar.pl:73 ../tools/virt-rescue.pl:51
97 #: ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr ""
100
101 # type: textblock
102 #: ../src/guestfs.pod:26
103 msgid ""
104 "Libguestfs is a library for accessing and modifying guest disk images.  "
105 "Amongst the things this is good for: making batch configuration changes to "
106 "guests, getting disk used/free statistics (see also: virt-df), migrating "
107 "between virtualization systems (see also: virt-p2v), performing partial "
108 "backups, performing partial guest clones, cloning guests and changing "
109 "registry/UUID/hostname info, and much else besides."
110 msgstr ""
111
112 # type: textblock
113 #: ../src/guestfs.pod:34
114 msgid ""
115 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
116 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
117 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
118 "qcow2, vmdk."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:39
123 msgid ""
124 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
125 "what filesystem is in each LV, etc.).  It can also run commands in the "
126 "context of the guest.  Also you can access filesystems over FUSE."
127 msgstr ""
128
129 # type: textblock
130 #: ../src/guestfs.pod:44
131 msgid ""
132 "Libguestfs is a library that can be linked with C and C++ management "
133 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
134 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
135 "line."
136 msgstr ""
137
138 # type: textblock
139 #: ../src/guestfs.pod:49
140 msgid ""
141 "You don't need to be root to use libguestfs, although obviously you do need "
142 "enough permissions to access the disk images."
143 msgstr ""
144
145 # type: textblock
146 #: ../src/guestfs.pod:52
147 msgid ""
148 "Libguestfs is a large API because it can do many things.  For a gentle "
149 "introduction, please read the L</API OVERVIEW> section next."
150 msgstr ""
151
152 # type: =head1
153 #: ../src/guestfs.pod:55
154 msgid "API OVERVIEW"
155 msgstr ""
156
157 # type: textblock
158 #: ../src/guestfs.pod:57
159 msgid ""
160 "This section provides a gentler overview of the libguestfs API.  We also try "
161 "to group API calls together, where that may not be obvious from reading "
162 "about the individual calls in the main section of this manual."
163 msgstr ""
164
165 # type: =head2
166 #: ../src/guestfs.pod:62
167 msgid "HANDLES"
168 msgstr ""
169
170 # type: textblock
171 #: ../src/guestfs.pod:64
172 msgid ""
173 "Before you can use libguestfs calls, you have to create a handle.  Then you "
174 "must add at least one disk image to the handle, followed by launching the "
175 "handle, then performing whatever operations you want, and finally closing "
176 "the handle.  By convention we use the single letter C<g> for the name of the "
177 "handle variable, although of course you can use any name you want."
178 msgstr ""
179
180 # type: textblock
181 #: ../src/guestfs.pod:71
182 msgid "The general structure of all libguestfs-using programs looks like this:"
183 msgstr ""
184
185 # type: verbatim
186 #: ../src/guestfs.pod:74
187 #, no-wrap
188 msgid ""
189 " guestfs_h *g = guestfs_create ();\n"
190 " \n"
191 msgstr ""
192
193 # type: verbatim
194 #: ../src/guestfs.pod:76
195 #, no-wrap
196 msgid ""
197 " /* Call guestfs_add_drive additional times if there are\n"
198 "  * multiple disk images.\n"
199 "  */\n"
200 " guestfs_add_drive (g, \"guest.img\");\n"
201 " \n"
202 msgstr ""
203
204 # type: verbatim
205 #: ../src/guestfs.pod:81
206 #, no-wrap
207 msgid ""
208 " /* Most manipulation calls won't work until you've launched\n"
209 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
210 "  * and _before_ other commands.\n"
211 "  */\n"
212 " guestfs_launch (g);\n"
213 " \n"
214 msgstr ""
215
216 # type: verbatim
217 #: ../src/guestfs.pod:87
218 #, no-wrap
219 msgid ""
220 " /* Now you can examine what partitions, LVs etc are available.\n"
221 "  */\n"
222 " char **partitions = guestfs_list_partitions (g);\n"
223 " char **logvols = guestfs_lvs (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #: ../src/guestfs.pod:92
229 #, no-wrap
230 msgid ""
231 " /* To access a filesystem in the image, you must mount it.\n"
232 "  */\n"
233 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:96
239 #, no-wrap
240 msgid ""
241 " /* Now you can perform filesystem actions on the guest\n"
242 "  * disk image.\n"
243 "  */\n"
244 " guestfs_touch (g, \"/hello\");\n"
245 " \n"
246 msgstr ""
247
248 # type: verbatim
249 #: ../src/guestfs.pod:101
250 #, no-wrap
251 msgid ""
252 " /* You only need to call guestfs_sync if you have made\n"
253 "  * changes to the guest image.  (But if you've made changes\n"
254 "  * then you *must* sync).  See also: guestfs_umount and\n"
255 "  * guestfs_umount_all calls.\n"
256 "  */\n"
257 " guestfs_sync (g);\n"
258 " \n"
259 msgstr ""
260
261 # type: verbatim
262 #: ../src/guestfs.pod:108
263 #, no-wrap
264 msgid ""
265 " /* Close the handle 'g'. */\n"
266 " guestfs_close (g);\n"
267 "\n"
268 msgstr ""
269
270 # type: textblock
271 #: ../src/guestfs.pod:111
272 msgid ""
273 "The code above doesn't include any error checking.  In real code you should "
274 "check return values carefully for errors.  In general all functions that "
275 "return integers return C<-1> on error, and all functions that return "
276 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
277 "how to handle errors, and consult the documentation for each function call "
278 "below to see precisely how they return error indications."
279 msgstr ""
280
281 # type: =head2
282 #: ../src/guestfs.pod:119
283 msgid "DISK IMAGES"
284 msgstr ""
285
286 # type: textblock
287 #: ../src/guestfs.pod:121
288 msgid ""
289 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
290 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
291 "actual block device, or simply an empty file of zeroes that you have created "
292 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
293 "of these."
294 msgstr ""
295
296 # type: textblock
297 #: ../src/guestfs.pod:127
298 msgid ""
299 "The call you should use in modern code for adding drives is L</"
300 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
301 "specifying that the format is raw, do:"
302 msgstr ""
303
304 # type: verbatim
305 #: ../src/guestfs.pod:131
306 #, no-wrap
307 msgid ""
308 " guestfs_add_drive_opts (g, filename,\n"
309 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
310 "                         -1);\n"
311 "\n"
312 msgstr ""
313
314 # type: textblock
315 #: ../src/guestfs.pod:135
316 msgid "You can add a disk read-only using:"
317 msgstr ""
318
319 # type: verbatim
320 #: ../src/guestfs.pod:137
321 #, no-wrap
322 msgid ""
323 " guestfs_add_drive_opts (g, filename,\n"
324 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
325 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
326 "                         -1);\n"
327 "\n"
328 msgstr ""
329
330 # type: textblock
331 #: ../src/guestfs.pod:142
332 msgid ""
333 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
334 "libguestfs won't modify the file."
335 msgstr ""
336
337 # type: textblock
338 #: ../src/guestfs.pod:145
339 msgid ""
340 "Be extremely cautious if the disk image is in use, eg. if it is being used "
341 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
342 "corruption, but adding it read-only is safe."
343 msgstr ""
344
345 # type: textblock
346 #: ../src/guestfs.pod:149
347 msgid ""
348 "You must add at least one disk image, and you may add multiple disk images.  "
349 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
350 "first one you added), C</dev/sdb> (for the second one you added), etc."
351 msgstr ""
352
353 # type: textblock
354 #: ../src/guestfs.pod:154
355 msgid ""
356 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
357 "can call L</guestfs_list_devices> to get a list of the device names, in the "
358 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
359 msgstr ""
360
361 # type: =head2
362 #: ../src/guestfs.pod:159
363 msgid "MOUNTING"
364 msgstr ""
365
366 # type: textblock
367 #: ../src/guestfs.pod:161
368 msgid ""
369 "Before you can read or write files, create directories and so on in a disk "
370 "image that contains filesystems, you have to mount those filesystems using "
371 "L</guestfs_mount>.  If you already know that a disk image contains (for "
372 "example) one partition with a filesystem on that partition, then you can "
373 "mount it directly:"
374 msgstr ""
375
376 # type: verbatim
377 #: ../src/guestfs.pod:167
378 #, no-wrap
379 msgid ""
380 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
381 "\n"
382 msgstr ""
383
384 # type: textblock
385 #: ../src/guestfs.pod:169
386 msgid ""
387 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
388 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
389 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
390 msgstr ""
391
392 # type: textblock
393 #: ../src/guestfs.pod:173
394 msgid ""
395 "If you are given a disk image and you don't know what it contains then you "
396 "have to find out.  Libguestfs can do that too: use L</"
397 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
398 "LVs, and either try mounting each to see what is mountable, or else examine "
399 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
400 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
401 "you might find it easier to look at higher level programs built on top of "
402 "libguestfs, in particular L<virt-inspector(1)>."
403 msgstr ""
404
405 # type: textblock
406 #: ../src/guestfs.pod:183
407 msgid ""
408 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
409 "several other variations of the C<guestfs_mount_*> call."
410 msgstr ""
411
412 # type: =head2
413 #: ../src/guestfs.pod:186
414 msgid "FILESYSTEM ACCESS AND MODIFICATION"
415 msgstr ""
416
417 # type: textblock
418 #: ../src/guestfs.pod:188
419 msgid ""
420 "The majority of the libguestfs API consists of fairly low-level calls for "
421 "accessing and modifying the files, directories, symlinks etc on mounted "
422 "filesystems.  There are over a hundred such calls which you can find listed "
423 "in detail below in this man page, and we don't even pretend to cover them "
424 "all in this overview."
425 msgstr ""
426
427 # type: textblock
428 #: ../src/guestfs.pod:194
429 msgid ""
430 "Specify filenames as full paths, starting with C<\"/\"> and including the "
431 "mount point."
432 msgstr ""
433
434 # type: textblock
435 #: ../src/guestfs.pod:197
436 msgid ""
437 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
438 "the file called C<\"etc/passwd\"> then you could do:"
439 msgstr ""
440
441 # type: verbatim
442 #: ../src/guestfs.pod:200
443 #, no-wrap
444 msgid ""
445 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
446 "\n"
447 msgstr ""
448
449 # type: textblock
450 #: ../src/guestfs.pod:202
451 msgid ""
452 "This would return C<data> as a newly allocated buffer containing the full "
453 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
454 "or C<NULL> if there was an error."
455 msgstr ""
456
457 # type: textblock
458 #: ../src/guestfs.pod:206
459 msgid ""
460 "As another example, to create a top-level directory on that filesystem "
461 "called C<\"var\"> you would do:"
462 msgstr ""
463
464 # type: verbatim
465 #: ../src/guestfs.pod:209
466 #, no-wrap
467 msgid ""
468 " guestfs_mkdir (g, \"/var\");\n"
469 "\n"
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:211
474 msgid "To create a symlink you could do:"
475 msgstr ""
476
477 # type: verbatim
478 #: ../src/guestfs.pod:213
479 #, no-wrap
480 msgid ""
481 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
482 "               \"/etc/rc3.d/S30portmap\");\n"
483 "\n"
484 msgstr ""
485
486 # type: textblock
487 #: ../src/guestfs.pod:216
488 msgid ""
489 "Libguestfs will reject attempts to use relative paths and there is no "
490 "concept of a current working directory."
491 msgstr ""
492
493 # type: textblock
494 #: ../src/guestfs.pod:219
495 msgid ""
496 "Libguestfs can return errors in many situations: for example if the "
497 "filesystem isn't writable, or if a file or directory that you requested "
498 "doesn't exist.  If you are using the C API (documented here)  you have to "
499 "check for those error conditions after each call.  (Other language bindings "
500 "turn these errors into exceptions)."
501 msgstr ""
502
503 # type: textblock
504 #: ../src/guestfs.pod:225
505 msgid ""
506 "File writes are affected by the per-handle umask, set by calling L</"
507 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
508 msgstr ""
509
510 # type: =head2
511 #: ../src/guestfs.pod:228
512 msgid "PARTITIONING"
513 msgstr ""
514
515 # type: textblock
516 #: ../src/guestfs.pod:230
517 msgid ""
518 "Libguestfs contains API calls to read, create and modify partition tables on "
519 "disk images."
520 msgstr ""
521
522 # type: textblock
523 #: ../src/guestfs.pod:233
524 msgid ""
525 "In the common case where you want to create a single partition covering the "
526 "whole disk, you should use the L</guestfs_part_disk> call:"
527 msgstr ""
528
529 # type: verbatim
530 #: ../src/guestfs.pod:237
531 #, no-wrap
532 msgid ""
533 " const char *parttype = \"mbr\";\n"
534 " if (disk_is_larger_than_2TB)\n"
535 "   parttype = \"gpt\";\n"
536 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
537 "\n"
538 msgstr ""
539
540 # type: textblock
541 #: ../src/guestfs.pod:242
542 msgid ""
543 "Obviously this effectively wipes anything that was on that disk image before."
544 msgstr ""
545
546 # type: =head2
547 #: ../src/guestfs.pod:245
548 msgid "LVM2"
549 msgstr ""
550
551 # type: textblock
552 #: ../src/guestfs.pod:247
553 msgid ""
554 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
555 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
556 "you familiarize yourself with the concepts of physical volumes, volume "
557 "groups and logical volumes."
558 msgstr ""
559
560 # type: textblock
561 #: ../src/guestfs.pod:252
562 msgid ""
563 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
564 "tldp.org/HOWTO/LVM-HOWTO/>."
565 msgstr ""
566
567 # type: =head2
568 #: ../src/guestfs.pod:255
569 msgid "DOWNLOADING"
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:257
574 msgid ""
575 "Use L</guestfs_cat> to download small, text only files.  This call is "
576 "limited to files which are less than 2 MB and which cannot contain any ASCII "
577 "NUL (C<\\0>) characters.  However it has a very simple to use API."
578 msgstr ""
579
580 # type: textblock
581 #: ../src/guestfs.pod:262
582 msgid ""
583 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
584 "bit data, since it returns a (pointer, size) pair.  However it is still "
585 "limited to \"small\" files, less than 2 MB."
586 msgstr ""
587
588 # type: textblock
589 #: ../src/guestfs.pod:266
590 msgid ""
591 "L</guestfs_download> can be used to download any file, with no limits on "
592 "content or size (even files larger than 4 GB)."
593 msgstr ""
594
595 # type: textblock
596 #: ../src/guestfs.pod:269
597 msgid ""
598 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
599 msgstr ""
600
601 # type: =head2
602 #: ../src/guestfs.pod:272
603 msgid "UPLOADING"
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:274
608 msgid ""
609 "It's often the case that you want to write a file or files to the disk image."
610 msgstr ""
611
612 # type: textblock
613 #: ../src/guestfs.pod:277
614 msgid ""
615 "To write a small file with fixed content, use L</guestfs_write>.  To create "
616 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
617 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
618 "of other functions for creating test files, for example L</guestfs_fill> and "
619 "L</guestfs_fill_pattern>."
620 msgstr ""
621
622 # type: textblock
623 #: ../src/guestfs.pod:283
624 msgid ""
625 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
626 "file content or size (even files larger than 4 GB)."
627 msgstr ""
628
629 # type: textblock
630 #: ../src/guestfs.pod:286
631 msgid ""
632 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
633 msgstr ""
634
635 # type: textblock
636 #: ../src/guestfs.pod:288
637 msgid ""
638 "However the fastest way to upload I<large numbers of arbitrary files> is to "
639 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
640 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
641 "in a predictable way (eg. adding it last after all other drives) then you "
642 "can get the device name from L</guestfs_list_devices> and mount it directly "
643 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
644 "portable between kernel versions, and they don't support labels or UUIDs.  "
645 "If you want to pre-build an image or you need to mount it using a label or "
646 "UUID, use an ISO image instead."
647 msgstr ""
648
649 # type: =head2
650 #: ../src/guestfs.pod:299
651 msgid "COPYING"
652 msgstr ""
653
654 # type: textblock
655 #: ../src/guestfs.pod:301
656 msgid ""
657 "There are various different commands for copying between files and devices "
658 "and in and out of the guest filesystem.  These are summarised in the table "
659 "below."
660 msgstr ""
661
662 # type: =item
663 #: ../src/guestfs.pod:307
664 msgid "B<file> to B<file>"
665 msgstr ""
666
667 # type: textblock
668 #: ../src/guestfs.pod:309
669 msgid ""
670 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
671 "directories recursively."
672 msgstr ""
673
674 # type: =item
675 #: ../src/guestfs.pod:312
676 msgid "B<file or device> to B<file or device>"
677 msgstr ""
678
679 # type: textblock
680 #: ../src/guestfs.pod:314
681 msgid ""
682 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
683 "devices in the guest."
684 msgstr ""
685
686 # type: textblock
687 #: ../src/guestfs.pod:317
688 msgid "Example: duplicate the contents of an LV:"
689 msgstr ""
690
691 # type: verbatim
692 #: ../src/guestfs.pod:319
693 #, no-wrap
694 msgid ""
695 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
696 "\n"
697 msgstr ""
698
699 # type: textblock
700 #: ../src/guestfs.pod:321
701 msgid ""
702 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
703 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
704 "guestfs_copy_size>."
705 msgstr ""
706
707 # type: =item
708 #: ../src/guestfs.pod:325
709 msgid "B<file on the host> to B<file or device>"
710 msgstr ""
711
712 # type: textblock
713 #: ../src/guestfs.pod:327
714 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
715 msgstr ""
716
717 # type: =item
718 #: ../src/guestfs.pod:329
719 msgid "B<file or device> to B<file on the host>"
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:331
724 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
725 msgstr ""
726
727 # type: =head2
728 #: ../src/guestfs.pod:335
729 msgid "LISTING FILES"
730 msgstr ""
731
732 # type: textblock
733 #: ../src/guestfs.pod:337
734 msgid ""
735 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
736 "L<guestfish(1)>-equivalent command C<ll>)."
737 msgstr ""
738
739 # type: textblock
740 #: ../src/guestfs.pod:340
741 msgid ""
742 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
743 "programs, as a flat list of strings."
744 msgstr ""
745
746 # type: textblock
747 #: ../src/guestfs.pod:343
748 msgid ""
749 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
750 "directory, plus additional information about each one.  It is more "
751 "equivalent to using the L<readdir(3)> call on a local filesystem."
752 msgstr ""
753
754 # type: textblock
755 #: ../src/guestfs.pod:347
756 msgid ""
757 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
758 msgstr ""
759
760 # type: =head2
761 #: ../src/guestfs.pod:350
762 msgid "RUNNING COMMANDS"
763 msgstr ""
764
765 # type: textblock
766 #: ../src/guestfs.pod:352
767 msgid ""
768 "Although libguestfs is primarily an API for manipulating files inside guest "
769 "images, we also provide some limited facilities for running commands inside "
770 "guests."
771 msgstr ""
772
773 # type: textblock
774 #: ../src/guestfs.pod:356
775 msgid "There are many limitations to this:"
776 msgstr ""
777
778 # type: =item
779 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370
780 #: ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383
781 #: ../src/guestfs.pod:388 ../src/guestfs.pod:1143 ../src/guestfs.pod:1148
782 #: ../src/guestfs.pod:1152 ../src/guestfs.pod:1368 ../src/guestfs.pod:1373
783 #: ../src/guestfs.pod:1377 ../src/guestfs.pod:1479 ../src/guestfs.pod:1483
784 #: ../src/guestfs.pod:1487 ../src/guestfs.pod:1492 ../src/guestfs.pod:1500
785 #: ../src/guestfs.pod:1519 ../src/guestfs.pod:1527 ../src/guestfs.pod:1757
786 #: ../src/guestfs.pod:1763 ../src/guestfs.pod:1768 ../src/guestfs.pod:1774
787 #: ../src/guestfs.pod:1881 ../src/guestfs.pod:1885 ../src/guestfs.pod:1889
788 #: ../src/guestfs.pod:1893 ../src/guestfs-actions.pod:14
789 #: ../src/guestfs-actions.pod:21 ../src/guestfs-actions.pod:438
790 #: ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:453
791 #: ../src/guestfs-actions.pod:460 ../src/guestfs-actions.pod:1351
792 #: ../src/guestfs-actions.pod:1355 ../src/guestfs-actions.pod:1359
793 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1371
794 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1379
795 #: ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1393
796 #: ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1520
797 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1529
798 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1586
799 #: ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1595
800 #: ../fish/guestfish.pod:364 ../fish/guestfish.pod:368
801 #: ../fish/guestfish.pod:372 ../fish/guestfish.pod:376
802 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
803 #: ../fish/guestfish-actions.pod:339 ../fish/guestfish-actions.pod:347
804 #: ../fish/guestfish-actions.pod:354 ../fish/guestfish-actions.pod:361
805 #: ../fish/guestfish-actions.pod:1056 ../fish/guestfish-actions.pod:1060
806 #: ../fish/guestfish-actions.pod:1064 ../fish/guestfish-actions.pod:1068
807 #: ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080
808 #: ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1094
809 #: ../fish/guestfish-actions.pod:1098 ../fish/guestfish-actions.pod:1102
810 #: ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1196
811 #: ../fish/guestfish-actions.pod:1201 ../fish/guestfish-actions.pod:1206
812 #: ../fish/guestfish-actions.pod:1248 ../fish/guestfish-actions.pod:1252
813 #: ../fish/guestfish-actions.pod:1257 ../tools/virt-df.pl:161
814 #: ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
815 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
816 msgid "*"
817 msgstr ""
818
819 # type: textblock
820 #: ../src/guestfs.pod:362
821 msgid ""
822 "The kernel version that the command runs under will be different from what "
823 "it expects."
824 msgstr ""
825
826 # type: textblock
827 #: ../src/guestfs.pod:367
828 msgid ""
829 "If the command needs to communicate with daemons, then most likely they "
830 "won't be running."
831 msgstr ""
832
833 # type: textblock
834 #: ../src/guestfs.pod:372
835 msgid "The command will be running in limited memory."
836 msgstr ""
837
838 # type: textblock
839 #: ../src/guestfs.pod:376
840 msgid ""
841 "The network may not be available unless you enable it (see L</"
842 "guestfs_set_network>)."
843 msgstr ""
844
845 # type: textblock
846 #: ../src/guestfs.pod:381
847 msgid "Only supports Linux guests (not Windows, BSD, etc)."
848 msgstr ""
849
850 # type: textblock
851 #: ../src/guestfs.pod:385
852 msgid ""
853 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
854 msgstr ""
855
856 # type: textblock
857 #: ../src/guestfs.pod:390
858 msgid ""
859 "For SELinux guests, you may need to enable SELinux and load policy first.  "
860 "See L</SELINUX> in this manpage."
861 msgstr ""
862
863 # type: textblock
864 #: ../src/guestfs.pod:395
865 msgid ""
866 "The two main API calls to run commands are L</guestfs_command> and L</"
867 "guestfs_sh> (there are also variations)."
868 msgstr ""
869
870 # type: textblock
871 #: ../src/guestfs.pod:398
872 msgid ""
873 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
874 "shell globs, redirections, etc will work."
875 msgstr ""
876
877 # type: =head2
878 #: ../src/guestfs.pod:401
879 msgid "CONFIGURATION FILES"
880 msgstr ""
881
882 # type: textblock
883 #: ../src/guestfs.pod:403
884 msgid ""
885 "To read and write configuration files in Linux guest filesystems, we "
886 "strongly recommend using Augeas.  For example, Augeas understands how to "
887 "read and write, say, a Linux shadow password file or X.org configuration "
888 "file, and so avoids you having to write that code."
889 msgstr ""
890
891 # type: textblock
892 #: ../src/guestfs.pod:408
893 msgid ""
894 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
895 "document Augeas itself here because there is excellent documentation on the "
896 "L<http://augeas.net/> website."
897 msgstr ""
898
899 # type: textblock
900 #: ../src/guestfs.pod:412
901 msgid ""
902 "If you don't want to use Augeas (you fool!) then try calling L</"
903 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
904 "over."
905 msgstr ""
906
907 # type: =head2
908 #: ../src/guestfs.pod:416
909 msgid "SELINUX"
910 msgstr ""
911
912 # type: textblock
913 #: ../src/guestfs.pod:418
914 msgid ""
915 "We support SELinux guests.  To ensure that labeling happens correctly in "
916 "SELinux guests, you need to enable SELinux and load the guest's policy:"
917 msgstr ""
918
919 # type: =item
920 #: ../src/guestfs.pod:424
921 msgid "1."
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:426
926 msgid "Before launching, do:"
927 msgstr ""
928
929 # type: verbatim
930 #: ../src/guestfs.pod:428
931 #, no-wrap
932 msgid ""
933 " guestfs_set_selinux (g, 1);\n"
934 "\n"
935 msgstr ""
936
937 # type: =item
938 #: ../src/guestfs.pod:430
939 msgid "2."
940 msgstr ""
941
942 # type: textblock
943 #: ../src/guestfs.pod:432
944 msgid ""
945 "After mounting the guest's filesystem(s), load the policy.  This is best "
946 "done by running the L<load_policy(8)> command in the guest itself:"
947 msgstr ""
948
949 # type: verbatim
950 #: ../src/guestfs.pod:436
951 #, no-wrap
952 msgid ""
953 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
954 "\n"
955 msgstr ""
956
957 # type: textblock
958 #: ../src/guestfs.pod:438
959 msgid ""
960 "(Older versions of C<load_policy> require you to specify the name of the "
961 "policy file)."
962 msgstr ""
963
964 # type: =item
965 #: ../src/guestfs.pod:441
966 msgid "3."
967 msgstr ""
968
969 # type: textblock
970 #: ../src/guestfs.pod:443
971 msgid ""
972 "Optionally, set the security context for the API.  The correct security "
973 "context to use can only be known by inspecting the guest.  As an example:"
974 msgstr ""
975
976 # type: verbatim
977 #: ../src/guestfs.pod:447
978 #, no-wrap
979 msgid ""
980 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
981 "\n"
982 msgstr ""
983
984 # type: textblock
985 #: ../src/guestfs.pod:451
986 msgid "This will work for running commands and editing existing files."
987 msgstr ""
988
989 # type: textblock
990 #: ../src/guestfs.pod:453
991 msgid ""
992 "When new files are created, you may need to label them explicitly, for "
993 "example by running the external command C<restorecon pathname>."
994 msgstr ""
995
996 # type: =head2
997 #: ../src/guestfs.pod:457
998 msgid "UMASK"
999 msgstr ""
1000
1001 # type: textblock
1002 #: ../src/guestfs.pod:459
1003 msgid ""
1004 "Certain calls are affected by the current file mode creation mask (the "
1005 "\"umask\").  In particular ones which create files or directories, such as "
1006 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1007 "either the default mode that the file is created with or modifies the mode "
1008 "that you supply."
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:465
1013 msgid ""
1014 "The default umask is C<022>, so files are created with modes such as C<0644> "
1015 "and directories with C<0755>."
1016 msgstr ""
1017
1018 # type: textblock
1019 #: ../src/guestfs.pod:468
1020 msgid ""
1021 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1022 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1023 "guestfs_chmod> after creating each file or directory."
1024 msgstr ""
1025
1026 # type: textblock
1027 #: ../src/guestfs.pod:472
1028 msgid "For more information about umask, see L<umask(2)>."
1029 msgstr ""
1030
1031 # type: =head1
1032 #: ../src/guestfs.pod:474 ../fish/guestfish.pod:630
1033 msgid "ENCRYPTED DISKS"
1034 msgstr ""
1035
1036 # type: textblock
1037 #: ../src/guestfs.pod:476
1038 msgid ""
1039 "Libguestfs allows you to access Linux guests which have been encrypted using "
1040 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1041 "standard.  This includes nearly all whole disk encryption systems used by "
1042 "modern Linux guests."
1043 msgstr ""
1044
1045 # type: textblock
1046 #: ../src/guestfs.pod:482
1047 msgid ""
1048 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1049 "returns the string C<crypto_LUKS>)."
1050 msgstr ""
1051
1052 # type: textblock
1053 #: ../src/guestfs.pod:485
1054 msgid ""
1055 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1056 "will require the passphrase!"
1057 msgstr ""
1058
1059 # type: textblock
1060 #: ../src/guestfs.pod:488
1061 msgid ""
1062 "Opening a LUKS device creates a new device mapper device called C</dev/"
1063 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1064 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1065 "from and encrypted to the underlying block device respectively."
1066 msgstr ""
1067
1068 # type: textblock
1069 #: ../src/guestfs.pod:494
1070 msgid ""
1071 "LVM volume groups on the device can be made visible by calling L</"
1072 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1073 "(s) can now be mounted in the usual way."
1074 msgstr ""
1075
1076 # type: textblock
1077 #: ../src/guestfs.pod:498
1078 msgid ""
1079 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1080 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1081 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1082 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1083 "underlying encrypted block device)."
1084 msgstr ""
1085
1086 # type: =head2
1087 #: ../src/guestfs.pod:505
1088 msgid "INSPECTION"
1089 msgstr ""
1090
1091 # type: textblock
1092 #: ../src/guestfs.pod:507
1093 msgid ""
1094 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1095 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1096 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1097 "frequently used part of this library has been rewritten in C and moved into "
1098 "the core code)."
1099 msgstr ""
1100
1101 # type: textblock
1102 #: ../src/guestfs.pod:513
1103 msgid ""
1104 "Add all disks belonging to the unknown virtual machine and call L</"
1105 "guestfs_launch> in the usual way."
1106 msgstr ""
1107
1108 # type: textblock
1109 #: ../src/guestfs.pod:516
1110 msgid ""
1111 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1112 "and certain heuristics, and returns a list of operating systems that were "
1113 "found.  An empty list means none were found.  A single element is the root "
1114 "filesystem of the operating system.  For dual- or multi-boot guests, "
1115 "multiple roots can be returned, each one corresponding to a separate "
1116 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1117 "world of virtualization, but since this scenario can happen, we have built "
1118 "libguestfs to deal with it.)"
1119 msgstr ""
1120
1121 # type: textblock
1122 #: ../src/guestfs.pod:525
1123 msgid ""
1124 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1125 "to get additional details about that operating system.  For example, call L</"
1126 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1127 "Windows and Linux-based operating systems respectively."
1128 msgstr ""
1129
1130 # type: textblock
1131 #: ../src/guestfs.pod:531
1132 msgid ""
1133 "Un*x-like and Linux-based operating systems usually consist of several "
1134 "filesystems which are mounted at boot time (for example, a separate boot "
1135 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1136 "filesystems correspond to mount points.  Call "
1137 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1138 "hash table like this example:"
1139 msgstr ""
1140
1141 # type: verbatim
1142 #: ../src/guestfs.pod:538
1143 #, no-wrap
1144 msgid ""
1145 " /boot => /dev/sda1\n"
1146 " /     => /dev/vg_guest/lv_root\n"
1147 " /usr  => /dev/vg_guest/lv_usr\n"
1148 "\n"
1149 msgstr ""
1150
1151 # type: textblock
1152 #: ../src/guestfs.pod:542
1153 msgid ""
1154 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1155 "filesystems as suggested."
1156 msgstr ""
1157
1158 # type: textblock
1159 #: ../src/guestfs.pod:545
1160 msgid ""
1161 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1162 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1163 msgstr ""
1164
1165 # type: textblock
1166 #: ../src/guestfs.pod:549
1167 msgid ""
1168 "Inspection currently only works for some common operating systems.  "
1169 "Contributors are welcome to send patches for other operating systems that we "
1170 "currently cannot detect."
1171 msgstr ""
1172
1173 # type: textblock
1174 #: ../src/guestfs.pod:553
1175 msgid ""
1176 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1177 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1178 "encrypted devices."
1179 msgstr ""
1180
1181 # type: textblock
1182 #: ../src/guestfs.pod:557
1183 msgid ""
1184 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1185 "inspection and caches the results in the guest handle.  Subsequent calls to "
1186 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1187 "read the disks.  If you change the content of the guest disks, you can redo "
1188 "inspection by calling L</guestfs_inspect_os> again."
1189 msgstr ""
1190
1191 # type: =head2
1192 #: ../src/guestfs.pod:564
1193 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1194 msgstr ""
1195
1196 # type: textblock
1197 #: ../src/guestfs.pod:566
1198 msgid ""
1199 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1200 "ntfs-3g.org/> driver."
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:569
1205 msgid ""
1206 "DOS and Windows still use drive letters, and the filesystems are always "
1207 "treated as case insensitive by Windows itself, and therefore you might find "
1208 "a Windows configuration file referring to a path like C<c:\\windows"
1209 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1210 "might be referred to as C</WINDOWS/System32>."
1211 msgstr ""
1212
1213 # type: textblock
1214 #: ../src/guestfs.pod:575
1215 msgid ""
1216 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1217 "libguestfs to read the appropriate Windows Registry and configuration files, "
1218 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1219 "inspector(1)>)."
1220 msgstr ""
1221
1222 # type: textblock
1223 #: ../src/guestfs.pod:580
1224 msgid ""
1225 "Replacing backslash characters with forward slash characters is also outside "
1226 "the scope of libguestfs, but something that you can easily do."
1227 msgstr ""
1228
1229 # type: textblock
1230 #: ../src/guestfs.pod:583
1231 msgid ""
1232 "Where we can help is in resolving the case insensitivity of paths.  For "
1233 "this, call L</guestfs_case_sensitive_path>."
1234 msgstr ""
1235
1236 # type: textblock
1237 #: ../src/guestfs.pod:586
1238 msgid ""
1239 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1240 "files, through the library C<hivex> which is part of the libguestfs project "
1241 "although ships as a separate tarball.  You have to locate and download the "
1242 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1243 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1244 "reg(1)> for more help on this issue."
1245 msgstr ""
1246
1247 # type: =head2
1248 #: ../src/guestfs.pod:594
1249 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1250 msgstr ""
1251
1252 # type: textblock
1253 #: ../src/guestfs.pod:596
1254 msgid ""
1255 "Although we don't want to discourage you from using the C API, we will "
1256 "mention here that the same API is also available in other languages."
1257 msgstr ""
1258
1259 # type: textblock
1260 #: ../src/guestfs.pod:599
1261 msgid ""
1262 "The API is broadly identical in all supported languages.  This means that "
1263 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1264 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1265 "words, a straightforward, predictable isomorphism between each language."
1266 msgstr ""
1267
1268 # type: textblock
1269 #: ../src/guestfs.pod:605
1270 msgid ""
1271 "Error messages are automatically transformed into exceptions if the language "
1272 "supports it."
1273 msgstr ""
1274
1275 # type: textblock
1276 #: ../src/guestfs.pod:608
1277 msgid ""
1278 "We don't try to \"object orientify\" parts of the API in OO languages, "
1279 "although contributors are welcome to write higher level APIs above what we "
1280 "provide in their favourite languages if they wish."
1281 msgstr ""
1282
1283 # type: =item
1284 #: ../src/guestfs.pod:614
1285 msgid "B<C++>"
1286 msgstr ""
1287
1288 # type: textblock
1289 #: ../src/guestfs.pod:616
1290 msgid ""
1291 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1292 "identical to the C API.  C++ classes and exceptions are not used."
1293 msgstr ""
1294
1295 # type: =item
1296 #: ../src/guestfs.pod:620
1297 msgid "B<C#>"
1298 msgstr ""
1299
1300 # type: textblock
1301 #: ../src/guestfs.pod:622
1302 msgid ""
1303 "The C# bindings are highly experimental.  Please read the warnings at the "
1304 "top of C<csharp/Libguestfs.cs>."
1305 msgstr ""
1306
1307 # type: =item
1308 #: ../src/guestfs.pod:625
1309 msgid "B<Haskell>"
1310 msgstr ""
1311
1312 # type: textblock
1313 #: ../src/guestfs.pod:627
1314 msgid ""
1315 "This is the only language binding that is working but incomplete.  Only "
1316 "calls which return simple integers have been bound in Haskell, and we are "
1317 "looking for help to complete this binding."
1318 msgstr ""
1319
1320 # type: =item
1321 #: ../src/guestfs.pod:631
1322 msgid "B<Java>"
1323 msgstr ""
1324
1325 # type: textblock
1326 #: ../src/guestfs.pod:633
1327 msgid ""
1328 "Full documentation is contained in the Javadoc which is distributed with "
1329 "libguestfs."
1330 msgstr ""
1331
1332 # type: =item
1333 #: ../src/guestfs.pod:636
1334 msgid "B<OCaml>"
1335 msgstr ""
1336
1337 # type: textblock
1338 #: ../src/guestfs.pod:638
1339 msgid "For documentation see the file C<guestfs.mli>."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:640
1344 msgid "B<Perl>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:642
1349 msgid "For documentation see L<Sys::Guestfs(3)>."
1350 msgstr ""
1351
1352 # type: =item
1353 #: ../src/guestfs.pod:644
1354 msgid "B<PHP>"
1355 msgstr ""
1356
1357 # type: textblock
1358 #: ../src/guestfs.pod:646
1359 msgid ""
1360 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1361 "the php-libguestfs package for your distribution."
1362 msgstr ""
1363
1364 # type: textblock
1365 #: ../src/guestfs.pod:649
1366 msgid "The PHP binding only works correctly on 64 bit machines."
1367 msgstr ""
1368
1369 # type: =item
1370 #: ../src/guestfs.pod:651
1371 msgid "B<Python>"
1372 msgstr ""
1373
1374 # type: textblock
1375 #: ../src/guestfs.pod:653
1376 msgid "For documentation do:"
1377 msgstr ""
1378
1379 # type: verbatim
1380 #: ../src/guestfs.pod:655
1381 #, no-wrap
1382 msgid ""
1383 " $ python\n"
1384 " >>> import guestfs\n"
1385 " >>> help (guestfs)\n"
1386 "\n"
1387 msgstr ""
1388
1389 # type: =item
1390 #: ../src/guestfs.pod:659
1391 msgid "B<Ruby>"
1392 msgstr ""
1393
1394 # type: textblock
1395 #: ../src/guestfs.pod:661
1396 msgid ""
1397 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1398 "can find examples written in Ruby in the libguestfs source."
1399 msgstr ""
1400
1401 # type: =item
1402 #: ../src/guestfs.pod:664
1403 msgid "B<shell scripts>"
1404 msgstr ""
1405
1406 # type: textblock
1407 #: ../src/guestfs.pod:666
1408 msgid "For documentation see L<guestfish(1)>."
1409 msgstr ""
1410
1411 # type: =head2
1412 #: ../src/guestfs.pod:670
1413 msgid "LIBGUESTFS GOTCHAS"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:672
1418 msgid ""
1419 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1420 "system [...] that works in the way it is documented but is counterintuitive "
1421 "and almost invites mistakes.\""
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:676
1426 msgid ""
1427 "Since we developed libguestfs and the associated tools, there are several "
1428 "things we would have designed differently, but are now stuck with for "
1429 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1430 "release, you can expect these to change.  Beware of them."
1431 msgstr ""
1432
1433 # type: =item
1434 #: ../src/guestfs.pod:684
1435 msgid "Autosync / forgetting to sync."
1436 msgstr ""
1437
1438 # type: textblock
1439 #: ../src/guestfs.pod:686
1440 msgid ""
1441 "When modifying a filesystem from C or another language, you B<must> unmount "
1442 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1443 "libguestfs handle.  You can also call:"
1444 msgstr ""
1445
1446 # type: verbatim
1447 #: ../src/guestfs.pod:690
1448 #, no-wrap
1449 msgid ""
1450 " guestfs_set_autosync (g, 1);\n"
1451 "\n"
1452 msgstr ""
1453
1454 # type: textblock
1455 #: ../src/guestfs.pod:692
1456 msgid ""
1457 "to have the unmount/sync done automatically for you when the handle 'g' is "
1458 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1459 msgstr ""
1460
1461 # type: textblock
1462 #: ../src/guestfs.pod:696
1463 msgid ""
1464 "If you forget to do this, then it is entirely possible that your changes "
1465 "won't be written out, or will be partially written, or (very rarely) that "
1466 "you'll get disk corruption."
1467 msgstr ""
1468
1469 # type: textblock
1470 #: ../src/guestfs.pod:700
1471 msgid ""
1472 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1473 "guestfish scripts that forget to sync will work just fine, which can make "
1474 "this very puzzling if you are trying to debug a problem."
1475 msgstr ""
1476
1477 # type: textblock
1478 #: ../src/guestfs.pod:704
1479 msgid ""
1480 "Update: Autosync is enabled by default for all API users starting from "
1481 "libguestfs 1.5.24."
1482 msgstr ""
1483
1484 # type: =item
1485 #: ../src/guestfs.pod:707
1486 msgid "Mount option C<-o sync> should not be the default."
1487 msgstr ""
1488
1489 # type: textblock
1490 #: ../src/guestfs.pod:709
1491 msgid ""
1492 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1493 "However C<-o sync> does not add any reliability benefit, but does have a "
1494 "very large performance impact."
1495 msgstr ""
1496
1497 # type: textblock
1498 #: ../src/guestfs.pod:713
1499 msgid ""
1500 "The work around is to use L</guestfs_mount_options> and set the mount "
1501 "options that you actually want to use."
1502 msgstr ""
1503
1504 # type: =item
1505 #: ../src/guestfs.pod:716
1506 msgid "Read-only should be the default."
1507 msgstr ""
1508
1509 # type: textblock
1510 #: ../src/guestfs.pod:718
1511 msgid ""
1512 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1513 "specify I<--rw> if you want to make changes to the image."
1514 msgstr ""
1515
1516 # type: textblock
1517 #: ../src/guestfs.pod:721
1518 msgid "This would reduce the potential to corrupt live VM images."
1519 msgstr ""
1520
1521 # type: textblock
1522 #: ../src/guestfs.pod:723
1523 msgid ""
1524 "Note that many filesystems change the disk when you just mount and unmount, "
1525 "even if you didn't perform any writes.  You need to use L</"
1526 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1527 msgstr ""
1528
1529 # type: =item
1530 #: ../src/guestfs.pod:727
1531 msgid "guestfish command line is hard to use."
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:729
1536 msgid ""
1537 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1538 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1539 "exist, so it fails.  In earlier versions of guestfish the error message was "
1540 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1541 "we should have used C<guestfish -c command> to run commands."
1542 msgstr ""
1543
1544 # type: =item
1545 #: ../src/guestfs.pod:736
1546 msgid "guestfish megabyte modifiers don't work right on all commands"
1547 msgstr ""
1548
1549 # type: textblock
1550 #: ../src/guestfs.pod:738
1551 msgid ""
1552 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1553 "other modifiers).  What guestfish actually does is to multiply the number "
1554 "part by the modifier part and pass the result to the C API.  However this "
1555 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1556 "expecting some other unit (eg. megabytes)."
1557 msgstr ""
1558
1559 # type: textblock
1560 #: ../src/guestfs.pod:745
1561 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1562 msgstr ""
1563
1564 # type: verbatim
1565 #: ../src/guestfs.pod:747
1566 #, no-wrap
1567 msgid ""
1568 " lvcreate LV VG 100M\n"
1569 "\n"
1570 msgstr ""
1571
1572 # type: textblock
1573 #: ../src/guestfs.pod:749
1574 msgid ""
1575 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1576 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1577 "megabytes * megabytes) logical volume.  The error message you get from this "
1578 "is also a little obscure."
1579 msgstr ""
1580
1581 # type: textblock
1582 #: ../src/guestfs.pod:754
1583 msgid ""
1584 "This could be fixed in the generator by specially marking parameters and "
1585 "return values which take bytes or other units."
1586 msgstr ""
1587
1588 # type: =item
1589 #: ../src/guestfs.pod:757
1590 msgid "Library should return errno with error messages."
1591 msgstr ""
1592
1593 # type: textblock
1594 #: ../src/guestfs.pod:759
1595 msgid ""
1596 "It would be a nice-to-have to be able to get the original value of 'errno' "
1597 "from inside the appliance along error paths (where set).  Currently "
1598 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1599 "string into an errno, see the function error() in fuse/guestmount.c."
1600 msgstr ""
1601
1602 # type: textblock
1603 #: ../src/guestfs.pod:765
1604 msgid ""
1605 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1606 "sent back from the daemon."
1607 msgstr ""
1608
1609 # type: =item
1610 #: ../src/guestfs.pod:768
1611 msgid "Ambiguity between devices and paths"
1612 msgstr ""
1613
1614 # type: textblock
1615 #: ../src/guestfs.pod:770
1616 msgid ""
1617 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1618 "sdb2>) and a similar pathname.  A file might just happen to be called "
1619 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1620 msgstr ""
1621
1622 # type: textblock
1623 #: ../src/guestfs.pod:775
1624 msgid ""
1625 "In the current API we usually resolve this ambiguity by having two separate "
1626 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1627 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1628 "detecting if the path supplied begins with C</dev/>."
1629 msgstr ""
1630
1631 # type: textblock
1632 #: ../src/guestfs.pod:781
1633 msgid ""
1634 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1635 "make paths/devices into structured names.  One way to do this would be to "
1636 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1637 "aspect of grub.  Another way would be to use a structured type, equivalent "
1638 "to this OCaml type:"
1639 msgstr ""
1640
1641 # type: verbatim
1642 #: ../src/guestfs.pod:787
1643 #, no-wrap
1644 msgid ""
1645 " type path = Path of string | Device of int | Partition of int * int\n"
1646 "\n"
1647 msgstr ""
1648
1649 # type: textblock
1650 #: ../src/guestfs.pod:789
1651 msgid "which would allow you to pass arguments like:"
1652 msgstr ""
1653
1654 # type: verbatim
1655 #: ../src/guestfs.pod:791
1656 #, no-wrap
1657 msgid ""
1658 " Path \"/foo/bar\"\n"
1659 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1660 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1661 " Path \"/dev/sdb2\"    (* not a device *)\n"
1662 "\n"
1663 msgstr ""
1664
1665 # type: textblock
1666 #: ../src/guestfs.pod:796
1667 msgid ""
1668 "As you can see there are still problems to resolve even with this "
1669 "representation.  Also consider how it might work in guestfish."
1670 msgstr ""
1671
1672 # type: =head2
1673 #: ../src/guestfs.pod:801
1674 msgid "PROTOCOL LIMITS"
1675 msgstr ""
1676
1677 # type: textblock
1678 #: ../src/guestfs.pod:803
1679 msgid ""
1680 "Internally libguestfs uses a message-based protocol to pass API calls and "
1681 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1682 "plenty more detail about this).  The maximum message size used by the "
1683 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1684 "aware of this limit.  The API calls which may be affected are individually "
1685 "documented, with a link back to this section of the documentation."
1686 msgstr ""
1687
1688 # type: textblock
1689 #: ../src/guestfs.pod:811
1690 msgid ""
1691 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1692 "a simple string.  Because this string is at some point internally encoded as "
1693 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1694 "the requested file is larger than this then you will get an error."
1695 msgstr ""
1696
1697 # type: textblock
1698 #: ../src/guestfs.pod:817
1699 msgid ""
1700 "In order to transfer large files into and out of the guest filesystem, you "
1701 "need to use particular calls that support this.  The sections L</UPLOADING> "
1702 "and L</DOWNLOADING> document how to do this."
1703 msgstr ""
1704
1705 # type: textblock
1706 #: ../src/guestfs.pod:821
1707 msgid ""
1708 "You might also consider mounting the disk image using our FUSE filesystem "
1709 "support (L<guestmount(1)>)."
1710 msgstr ""
1711
1712 # type: =head2
1713 #: ../src/guestfs.pod:824
1714 msgid "KEYS AND PASSPHRASES"
1715 msgstr ""
1716
1717 # type: textblock
1718 #: ../src/guestfs.pod:826
1719 msgid ""
1720 "Certain libguestfs calls take a parameter that contains sensitive key "
1721 "material, passed in as a C string."
1722 msgstr ""
1723
1724 # type: textblock
1725 #: ../src/guestfs.pod:829
1726 msgid ""
1727 "In the future we would hope to change the libguestfs implementation so that "
1728 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1729 "swap.  However this is I<not> done at the moment, because of the complexity "
1730 "of such an implementation."
1731 msgstr ""
1732
1733 # type: textblock
1734 #: ../src/guestfs.pod:834
1735 msgid ""
1736 "Therefore you should be aware that any key parameter you pass to libguestfs "
1737 "might end up being written out to the swap partition.  If this is a concern, "
1738 "scrub the swap partition or don't use libguestfs on encrypted devices."
1739 msgstr ""
1740
1741 # type: =head1
1742 #: ../src/guestfs.pod:839
1743 msgid "CONNECTION MANAGEMENT"
1744 msgstr ""
1745
1746 # type: =head2
1747 #: ../src/guestfs.pod:841
1748 msgid "guestfs_h *"
1749 msgstr ""
1750
1751 # type: textblock
1752 #: ../src/guestfs.pod:843
1753 msgid ""
1754 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1755 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1756 "handle and release all resources used."
1757 msgstr ""
1758
1759 # type: textblock
1760 #: ../src/guestfs.pod:847
1761 msgid ""
1762 "For information on using multiple handles and threads, see the section L</"
1763 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1764 msgstr ""
1765
1766 # type: =head2
1767 #: ../src/guestfs.pod:850
1768 msgid "guestfs_create"
1769 msgstr ""
1770
1771 # type: verbatim
1772 #: ../src/guestfs.pod:852
1773 #, no-wrap
1774 msgid ""
1775 " guestfs_h *guestfs_create (void);\n"
1776 "\n"
1777 msgstr ""
1778
1779 # type: textblock
1780 #: ../src/guestfs.pod:854
1781 msgid "Create a connection handle."
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:856
1786 msgid ""
1787 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1788 "on the handle at least once."
1789 msgstr ""
1790
1791 # type: textblock
1792 #: ../src/guestfs.pod:859
1793 msgid ""
1794 "This function returns a non-NULL pointer to a handle on success or NULL on "
1795 "error."
1796 msgstr ""
1797
1798 # type: textblock
1799 #: ../src/guestfs.pod:862
1800 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1801 msgstr ""
1802
1803 # type: textblock
1804 #: ../src/guestfs.pod:864
1805 msgid ""
1806 "You may also want to configure error handling for the handle.  See L</ERROR "
1807 "HANDLING> section below."
1808 msgstr ""
1809
1810 # type: =head2
1811 #: ../src/guestfs.pod:867
1812 msgid "guestfs_close"
1813 msgstr ""
1814
1815 # type: verbatim
1816 #: ../src/guestfs.pod:869
1817 #, no-wrap
1818 msgid ""
1819 " void guestfs_close (guestfs_h *g);\n"
1820 "\n"
1821 msgstr ""
1822
1823 # type: textblock
1824 #: ../src/guestfs.pod:871
1825 msgid "This closes the connection handle and frees up all resources used."
1826 msgstr ""
1827
1828 # type: =head1
1829 #: ../src/guestfs.pod:873
1830 msgid "ERROR HANDLING"
1831 msgstr ""
1832
1833 # type: textblock
1834 #: ../src/guestfs.pod:875
1835 msgid ""
1836 "The convention in all functions that return C<int> is that they return C<-1> "
1837 "to indicate an error.  You can get additional information on errors by "
1838 "calling L</guestfs_last_error> and/or by setting up an error handler with L</"
1839 "guestfs_set_error_handler>."
1840 msgstr ""
1841
1842 # type: textblock
1843 #: ../src/guestfs.pod:880
1844 msgid "The default error handler prints the information string to C<stderr>."
1845 msgstr ""
1846
1847 # type: textblock
1848 #: ../src/guestfs.pod:882
1849 msgid ""
1850 "Out of memory errors are handled differently.  The default action is to call "
1851 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1852 "guestfs_set_out_of_memory_handler>."
1853 msgstr ""
1854
1855 # type: =head2
1856 #: ../src/guestfs.pod:886
1857 msgid "guestfs_last_error"
1858 msgstr ""
1859
1860 # type: verbatim
1861 #: ../src/guestfs.pod:888
1862 #, no-wrap
1863 msgid ""
1864 " const char *guestfs_last_error (guestfs_h *g);\n"
1865 "\n"
1866 msgstr ""
1867
1868 # type: textblock
1869 #: ../src/guestfs.pod:890
1870 msgid ""
1871 "This returns the last error message that happened on C<g>.  If there has not "
1872 "been an error since the handle was created, then this returns C<NULL>."
1873 msgstr ""
1874
1875 # type: textblock
1876 #: ../src/guestfs.pod:894
1877 msgid ""
1878 "The lifetime of the returned string is until the next error occurs, or L</"
1879 "guestfs_close> is called."
1880 msgstr ""
1881
1882 # type: textblock
1883 #: ../src/guestfs.pod:897
1884 msgid ""
1885 "The error string is not localized (ie. is always in English), because this "
1886 "makes searching for error messages in search engines give the largest number "
1887 "of results."
1888 msgstr ""
1889
1890 # type: =head2
1891 #: ../src/guestfs.pod:901
1892 msgid "guestfs_set_error_handler"
1893 msgstr ""
1894
1895 # type: verbatim
1896 #: ../src/guestfs.pod:903
1897 #, no-wrap
1898 msgid ""
1899 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1900 "                                           void *opaque,\n"
1901 "                                           const char *msg);\n"
1902 " void guestfs_set_error_handler (guestfs_h *g,\n"
1903 "                                 guestfs_error_handler_cb cb,\n"
1904 "                                 void *opaque);\n"
1905 "\n"
1906 msgstr ""
1907
1908 # type: textblock
1909 #: ../src/guestfs.pod:910
1910 msgid ""
1911 "The callback C<cb> will be called if there is an error.  The parameters "
1912 "passed to the callback are an opaque data pointer and the error message "
1913 "string."
1914 msgstr ""
1915
1916 # type: textblock
1917 #: ../src/guestfs.pod:914
1918 msgid ""
1919 "Note that the message string C<msg> is freed as soon as the callback "
1920 "function returns, so if you want to stash it somewhere you must make your "
1921 "own copy."
1922 msgstr ""
1923
1924 # type: textblock
1925 #: ../src/guestfs.pod:918
1926 msgid "The default handler prints messages on C<stderr>."
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:920
1931 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1932 msgstr ""
1933
1934 # type: =head2
1935 #: ../src/guestfs.pod:922
1936 msgid "guestfs_get_error_handler"
1937 msgstr ""
1938
1939 # type: verbatim
1940 #: ../src/guestfs.pod:924
1941 #, no-wrap
1942 msgid ""
1943 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1944 "                                                     void **opaque_rtn);\n"
1945 "\n"
1946 msgstr ""
1947
1948 # type: textblock
1949 #: ../src/guestfs.pod:927
1950 msgid "Returns the current error handler callback."
1951 msgstr ""
1952
1953 # type: =head2
1954 #: ../src/guestfs.pod:929
1955 msgid "guestfs_set_out_of_memory_handler"
1956 msgstr ""
1957
1958 # type: verbatim
1959 #: ../src/guestfs.pod:931
1960 #, no-wrap
1961 msgid ""
1962 " typedef void (*guestfs_abort_cb) (void);\n"
1963 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1964 "                                        guestfs_abort_cb);\n"
1965 "\n"
1966 msgstr ""
1967
1968 # type: textblock
1969 #: ../src/guestfs.pod:935
1970 msgid ""
1971 "The callback C<cb> will be called if there is an out of memory situation.  "
1972 "I<Note this callback must not return>."
1973 msgstr ""
1974
1975 # type: textblock
1976 #: ../src/guestfs.pod:938
1977 msgid "The default is to call L<abort(3)>."
1978 msgstr ""
1979
1980 # type: textblock
1981 #: ../src/guestfs.pod:940
1982 msgid ""
1983 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
1984 msgstr ""
1985
1986 # type: =head2
1987 #: ../src/guestfs.pod:943
1988 msgid "guestfs_get_out_of_memory_handler"
1989 msgstr ""
1990
1991 # type: verbatim
1992 #: ../src/guestfs.pod:945
1993 #, no-wrap
1994 msgid ""
1995 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
1996 "\n"
1997 msgstr ""
1998
1999 # type: textblock
2000 #: ../src/guestfs.pod:947
2001 msgid "This returns the current out of memory handler."
2002 msgstr ""
2003
2004 # type: =head1
2005 #: ../src/guestfs.pod:949
2006 msgid "PATH"
2007 msgstr ""
2008
2009 # type: textblock
2010 #: ../src/guestfs.pod:951
2011 msgid ""
2012 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2013 "internal path."
2014 msgstr ""
2015
2016 # type: textblock
2017 #: ../src/guestfs.pod:954
2018 msgid ""
2019 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2020 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2021 msgstr ""
2022
2023 # type: textblock
2024 #: ../src/guestfs.pod:957
2025 msgid ""
2026 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2027 "to change the directories that libguestfs will search in.  The value is a "
2028 "colon-separated list of paths.  The current directory is I<not> searched "
2029 "unless the path contains an empty element or C<.>.  For example "
2030 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2031 "then C</usr/lib/guestfs>."
2032 msgstr ""
2033
2034 # type: =head1
2035 #: ../src/guestfs.pod:964
2036 msgid "HIGH-LEVEL API ACTIONS"
2037 msgstr ""
2038
2039 # type: =head2
2040 #: ../src/guestfs.pod:966
2041 msgid "ABI GUARANTEE"
2042 msgstr ""
2043
2044 # type: textblock
2045 #: ../src/guestfs.pod:968
2046 msgid ""
2047 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2048 "actions as outlined in this section.  Although we will deprecate some "
2049 "actions, for example if they get replaced by newer calls, we will keep the "
2050 "old actions forever.  This allows you the developer to program in confidence "
2051 "against the libguestfs API."
2052 msgstr ""
2053
2054 # type: textblock
2055 #: ../src/guestfs.pod:974 ../fish/guestfish.pod:860
2056 msgid "@ACTIONS@"
2057 msgstr ""
2058
2059 # type: =head1
2060 #: ../src/guestfs.pod:976
2061 msgid "STRUCTURES"
2062 msgstr ""
2063
2064 # type: textblock
2065 #: ../src/guestfs.pod:978
2066 msgid "@STRUCTS@"
2067 msgstr ""
2068
2069 # type: =head1
2070 #: ../src/guestfs.pod:980
2071 msgid "AVAILABILITY"
2072 msgstr ""
2073
2074 # type: =head2
2075 #: ../src/guestfs.pod:982
2076 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2077 msgstr ""
2078
2079 # type: textblock
2080 #: ../src/guestfs.pod:984
2081 msgid ""
2082 "Using L</guestfs_available> you can test availability of the following "
2083 "groups of functions.  This test queries the appliance to see if the "
2084 "appliance you are currently using supports the functionality."
2085 msgstr ""
2086
2087 # type: textblock
2088 #: ../src/guestfs.pod:989
2089 msgid "@AVAILABILITY@"
2090 msgstr ""
2091
2092 # type: =head2
2093 #: ../src/guestfs.pod:991
2094 msgid "GUESTFISH supported COMMAND"
2095 msgstr ""
2096
2097 # type: textblock
2098 #: ../src/guestfs.pod:993
2099 msgid ""
2100 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2101 "prints out the available groups and whether they are supported by this build "
2102 "of libguestfs.  Note however that you have to do C<run> first."
2103 msgstr ""
2104
2105 # type: =head2
2106 #: ../src/guestfs.pod:998
2107 msgid "SINGLE CALLS AT COMPILE TIME"
2108 msgstr ""
2109
2110 # type: textblock
2111 #: ../src/guestfs.pod:1000
2112 msgid ""
2113 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2114 "function, such as:"
2115 msgstr ""
2116
2117 # type: verbatim
2118 #: ../src/guestfs.pod:1003
2119 #, no-wrap
2120 msgid ""
2121 " #define LIBGUESTFS_HAVE_DD 1\n"
2122 "\n"
2123 msgstr ""
2124
2125 # type: textblock
2126 #: ../src/guestfs.pod:1005
2127 msgid "if L</guestfs_dd> is available."
2128 msgstr ""
2129
2130 # type: textblock
2131 #: ../src/guestfs.pod:1007
2132 msgid ""
2133 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2134 "function is available at compile time, we recommended using build tools such "
2135 "as autoconf or cmake.  For example in autotools you could use:"
2136 msgstr ""
2137
2138 # type: verbatim
2139 #: ../src/guestfs.pod:1012
2140 #, no-wrap
2141 msgid ""
2142 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2143 " AC_CHECK_FUNCS([guestfs_dd])\n"
2144 "\n"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1015
2149 msgid ""
2150 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2151 "in your program."
2152 msgstr ""
2153
2154 # type: =head2
2155 #: ../src/guestfs.pod:1018
2156 msgid "SINGLE CALLS AT RUN TIME"
2157 msgstr ""
2158
2159 # type: textblock
2160 #: ../src/guestfs.pod:1020
2161 msgid ""
2162 "Testing at compile time doesn't guarantee that a function really exists in "
2163 "the library.  The reason is that you might be dynamically linked against a "
2164 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2165 "This situation unfortunately results in a segmentation fault, which is a "
2166 "shortcoming of the C dynamic linking system itself."
2167 msgstr ""
2168
2169 # type: textblock
2170 #: ../src/guestfs.pod:1027
2171 msgid ""
2172 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2173 "in this example program (note that you still need the compile time check as "
2174 "well):"
2175 msgstr ""
2176
2177 # type: verbatim
2178 #: ../src/guestfs.pod:1031
2179 #, no-wrap
2180 msgid ""
2181 " #include <stdio.h>\n"
2182 " #include <stdlib.h>\n"
2183 " #include <unistd.h>\n"
2184 " #include <dlfcn.h>\n"
2185 " #include <guestfs.h>\n"
2186 " \n"
2187 msgstr ""
2188
2189 # type: verbatim
2190 #: ../src/guestfs.pod:1037
2191 #, no-wrap
2192 msgid ""
2193 " main ()\n"
2194 " {\n"
2195 " #ifdef LIBGUESTFS_HAVE_DD\n"
2196 "   void *dl;\n"
2197 "   int has_function;\n"
2198 " \n"
2199 msgstr ""
2200
2201 # type: verbatim
2202 #: ../src/guestfs.pod:1043
2203 #, no-wrap
2204 msgid ""
2205 "   /* Test if the function guestfs_dd is really available. */\n"
2206 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2207 "   if (!dl) {\n"
2208 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2209 "     exit (EXIT_FAILURE);\n"
2210 "   }\n"
2211 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2212 "   dlclose (dl);\n"
2213 " \n"
2214 msgstr ""
2215
2216 # type: verbatim
2217 #: ../src/guestfs.pod:1052
2218 #, no-wrap
2219 msgid ""
2220 "   if (!has_function)\n"
2221 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2222 "   else {\n"
2223 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2224 "     /* Now it's safe to call\n"
2225 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2226 "     */\n"
2227 "   }\n"
2228 " #else\n"
2229 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2230 " #endif\n"
2231 "  }\n"
2232 "\n"
2233 msgstr ""
2234
2235 # type: textblock
2236 #: ../src/guestfs.pod:1065
2237 msgid ""
2238 "You may think the above is an awful lot of hassle, and it is.  There are "
2239 "other ways outside of the C linking system to ensure that this kind of "
2240 "incompatibility never arises, such as using package versioning:"
2241 msgstr ""
2242
2243 # type: verbatim
2244 #: ../src/guestfs.pod:1070
2245 #, no-wrap
2246 msgid ""
2247 " Requires: libguestfs >= 1.0.80\n"
2248 "\n"
2249 msgstr ""
2250
2251 # type: =head1
2252 #: ../src/guestfs.pod:1072
2253 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2254 msgstr ""
2255
2256 # type: textblock
2257 #: ../src/guestfs.pod:1074
2258 msgid ""
2259 "A recent feature of the API is the introduction of calls which take optional "
2260 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2261 "takes variable arguments (ie. C<...>), as in this example:"
2262 msgstr ""
2263
2264 # type: verbatim
2265 #: ../src/guestfs.pod:1079
2266 #, no-wrap
2267 msgid ""
2268 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2269 "\n"
2270 msgstr ""
2271
2272 # type: textblock
2273 #: ../src/guestfs.pod:1081
2274 msgid ""
2275 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2276 "call with no optional arguments specified:"
2277 msgstr ""
2278
2279 # type: verbatim
2280 #: ../src/guestfs.pod:1084
2281 #, no-wrap
2282 msgid ""
2283 " guestfs_add_drive_opts (g, filename, -1);\n"
2284 "\n"
2285 msgstr ""
2286
2287 # type: textblock
2288 #: ../src/guestfs.pod:1086
2289 msgid "With a single optional argument:"
2290 msgstr ""
2291
2292 # type: verbatim
2293 #: ../src/guestfs.pod:1088
2294 #, no-wrap
2295 msgid ""
2296 " guestfs_add_drive_opts (g, filename,\n"
2297 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2298 "                         -1);\n"
2299 "\n"
2300 msgstr ""
2301
2302 # type: textblock
2303 #: ../src/guestfs.pod:1092
2304 msgid "With two:"
2305 msgstr ""
2306
2307 # type: verbatim
2308 #: ../src/guestfs.pod:1094
2309 #, no-wrap
2310 msgid ""
2311 " guestfs_add_drive_opts (g, filename,\n"
2312 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2313 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2314 "                         -1);\n"
2315 "\n"
2316 msgstr ""
2317
2318 # type: textblock
2319 #: ../src/guestfs.pod:1099
2320 msgid ""
2321 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2322 "happen!"
2323 msgstr ""
2324
2325 # type: =head2
2326 #: ../src/guestfs.pod:1102
2327 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2328 msgstr ""
2329
2330 # type: textblock
2331 #: ../src/guestfs.pod:1104
2332 msgid ""
2333 "The second variant has the same name with the suffix C<_va>, which works the "
2334 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2335 "example function, this is declared:"
2336 msgstr ""
2337
2338 # type: verbatim
2339 #: ../src/guestfs.pod:1108
2340 #, no-wrap
2341 msgid ""
2342 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2343 "                                va_list args);\n"
2344 "\n"
2345 msgstr ""
2346
2347 # type: =head2
2348 #: ../src/guestfs.pod:1111
2349 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2350 msgstr ""
2351
2352 # type: textblock
2353 #: ../src/guestfs.pod:1113
2354 msgid ""
2355 "The third variant is useful where you need to construct these calls.  You "
2356 "pass in a structure where you fill in the optional fields.  The structure "
2357 "has a bitmask as the first element which you must set to indicate which "
2358 "fields you have filled in.  For our example function the structure and call "
2359 "are declared:"
2360 msgstr ""
2361
2362 # type: verbatim
2363 #: ../src/guestfs.pod:1119
2364 #, no-wrap
2365 msgid ""
2366 " struct guestfs_add_drive_opts_argv {\n"
2367 "   uint64_t bitmask;\n"
2368 "   int readonly;\n"
2369 "   const char *format;\n"
2370 "   /* ... */\n"
2371 " };\n"
2372 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2373 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2374 "\n"
2375 msgstr ""
2376
2377 # type: textblock
2378 #: ../src/guestfs.pod:1128
2379 msgid "You could call it like this:"
2380 msgstr ""
2381
2382 # type: verbatim
2383 #: ../src/guestfs.pod:1130
2384 #, no-wrap
2385 msgid ""
2386 " struct guestfs_add_drive_opts_argv optargs = {\n"
2387 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2388 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2389 "   .readonly = 1,\n"
2390 "   .format = \"qcow2\"\n"
2391 " };\n"
2392 " \n"
2393 msgstr ""
2394
2395 # type: verbatim
2396 #: ../src/guestfs.pod:1137
2397 #, no-wrap
2398 msgid ""
2399 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2400 "\n"
2401 msgstr ""
2402
2403 # type: textblock
2404 #: ../src/guestfs.pod:1139 ../src/guestfs-actions.pod:10
2405 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:9
2406 #: ../fish/guestfish-actions.pod:1244
2407 msgid "Notes:"
2408 msgstr ""
2409
2410 # type: textblock
2411 #: ../src/guestfs.pod:1145
2412 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2413 msgstr ""
2414
2415 # type: textblock
2416 #: ../src/guestfs.pod:1150
2417 msgid "You do not need to fill in all fields of the structure."
2418 msgstr ""
2419
2420 # type: textblock
2421 #: ../src/guestfs.pod:1154
2422 msgid ""
2423 "There must be a one-to-one correspondence between fields of the structure "
2424 "that are filled in, and bits set in the bitmask."
2425 msgstr ""
2426
2427 # type: =head2
2428 #: ../src/guestfs.pod:1159
2429 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2430 msgstr ""
2431
2432 # type: textblock
2433 #: ../src/guestfs.pod:1161
2434 msgid ""
2435 "In other languages, optional arguments are expressed in the way that is "
2436 "natural for that language.  We refer you to the language-specific "
2437 "documentation for more details on that."
2438 msgstr ""
2439
2440 # type: textblock
2441 #: ../src/guestfs.pod:1165
2442 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2443 msgstr ""
2444
2445 # type: =end
2446 #: ../src/guestfs.pod:1167 ../src/guestfs.pod:1172
2447 msgid "html"
2448 msgstr ""
2449
2450 # type: textblock
2451 #: ../src/guestfs.pod:1169
2452 msgid ""
2453 "<!-- old anchor for the next section --> <a name="
2454 "\"state_machine_and_low_level_event_api\"/>"
2455 msgstr ""
2456
2457 # type: =head1
2458 #: ../src/guestfs.pod:1174
2459 msgid "ARCHITECTURE"
2460 msgstr ""
2461
2462 # type: textblock
2463 #: ../src/guestfs.pod:1176
2464 msgid ""
2465 "Internally, libguestfs is implemented by running an appliance (a special "
2466 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2467 "process of the main program."
2468 msgstr ""
2469
2470 # type: verbatim
2471 #: ../src/guestfs.pod:1180
2472 #, no-wrap
2473 msgid ""
2474 "  ___________________\n"
2475 " /                   \\\n"
2476 " | main program      |\n"
2477 " |                   |\n"
2478 " |                   |           child process / appliance\n"
2479 " |                   |           __________________________\n"
2480 " |                   |          / qemu                     \\\n"
2481 " +-------------------+   RPC    |      +-----------------+ |\n"
2482 " | libguestfs     <--------------------> guestfsd        | |\n"
2483 " |                   |          |      +-----------------+ |\n"
2484 " \\___________________/          |      | Linux kernel    | |\n"
2485 "                                |      +--^--------------+ |\n"
2486 "                                \\_________|________________/\n"
2487 "                                          |\n"
2488 "                                   _______v______\n"
2489 "                                  /              \\\n"
2490 "                                  | Device or    |\n"
2491 "                                  | disk image   |\n"
2492 "                                  \\______________/\n"
2493 "\n"
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1200
2498 msgid ""
2499 "The library, linked to the main program, creates the child process and hence "
2500 "the appliance in the L</guestfs_launch> function."
2501 msgstr ""
2502
2503 # type: textblock
2504 #: ../src/guestfs.pod:1203
2505 msgid ""
2506 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2507 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2508 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2509 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2510 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2511 "attached to the qemu process which translates device access by the "
2512 "appliance's Linux kernel into accesses to the image."
2513 msgstr ""
2514
2515 # type: textblock
2516 #: ../src/guestfs.pod:1212
2517 msgid ""
2518 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2519 "Although the disk image you are attached to might also be used by some "
2520 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2521 "care if both libguestfs's qemu process and your virtual machine are trying "
2522 "to update the disk image at the same time, since these usually results in "
2523 "massive disk corruption)."
2524 msgstr ""
2525
2526 # type: =head1
2527 #: ../src/guestfs.pod:1219
2528 msgid "STATE MACHINE"
2529 msgstr ""
2530
2531 # type: textblock
2532 #: ../src/guestfs.pod:1221
2533 msgid "libguestfs uses a state machine to model the child process:"
2534 msgstr ""
2535
2536 # type: verbatim
2537 #: ../src/guestfs.pod:1223
2538 #, no-wrap
2539 msgid ""
2540 "                         |\n"
2541 "                    guestfs_create\n"
2542 "                         |\n"
2543 "                         |\n"
2544 "                     ____V_____\n"
2545 "                    /          \\\n"
2546 "                    |  CONFIG  |\n"
2547 "                    \\__________/\n"
2548 "                     ^ ^   ^  \\\n"
2549 "                    /  |    \\  \\ guestfs_launch\n"
2550 "                   /   |    _\\__V______\n"
2551 "                  /    |   /           \\\n"
2552 "                 /     |   | LAUNCHING |\n"
2553 "                /      |   \\___________/\n"
2554 "               /       |       /\n"
2555 "              /        |  guestfs_launch\n"
2556 "             /         |     /\n"
2557 "    ______  /        __|____V\n"
2558 "   /      \\ ------> /        \\\n"
2559 "   | BUSY |         | READY  |\n"
2560 "   \\______/ <------ \\________/\n"
2561 "\n"
2562 msgstr ""
2563
2564 # type: textblock
2565 #: ../src/guestfs.pod:1245
2566 msgid ""
2567 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2568 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2569 "(3) alternating between READY and BUSY as commands are issued to, and "
2570 "carried out by, the child process."
2571 msgstr ""
2572
2573 # type: textblock
2574 #: ../src/guestfs.pod:1250
2575 msgid ""
2576 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2577 "asynchronously at any time (eg. due to some internal error), and that causes "
2578 "the state to transition back to CONFIG."
2579 msgstr ""
2580
2581 # type: textblock
2582 #: ../src/guestfs.pod:1254
2583 msgid ""
2584 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2585 "issued when in the CONFIG state."
2586 msgstr ""
2587
2588 # type: textblock
2589 #: ../src/guestfs.pod:1257
2590 msgid ""
2591 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2592 "L</guestfs_launch> blocks until the child process is READY to accept "
2593 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2594 "moves the state from CONFIG to LAUNCHING while it is running."
2595 msgstr ""
2596
2597 # type: textblock
2598 #: ../src/guestfs.pod:1263
2599 msgid ""
2600 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2601 "state.  These API calls block waiting for the command to be carried out (ie. "
2602 "the state to transition to BUSY and then back to READY).  There are no non-"
2603 "blocking versions, and no way to issue more than one command per handle at "
2604 "the same time."
2605 msgstr ""
2606
2607 # type: textblock
2608 #: ../src/guestfs.pod:1269
2609 msgid ""
2610 "Finally, the child process sends asynchronous messages back to the main "
2611 "program, such as kernel log messages.  You can register a callback to "
2612 "receive these messages."
2613 msgstr ""
2614
2615 # type: =head2
2616 #: ../src/guestfs.pod:1273
2617 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2618 msgstr ""
2619
2620 # type: textblock
2621 #: ../src/guestfs.pod:1275
2622 msgid ""
2623 "The child process generates events in some situations.  Current events "
2624 "include: receiving a log message, the child process exits."
2625 msgstr ""
2626
2627 # type: textblock
2628 #: ../src/guestfs.pod:1278
2629 msgid ""
2630 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2631 "types of events."
2632 msgstr ""
2633
2634 # type: textblock
2635 #: ../src/guestfs.pod:1281
2636 msgid ""
2637 "Only I<one callback of each type> can be registered for each handle.  "
2638 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2639 "that type.  Cancel all callbacks of this type by calling this function with "
2640 "C<cb> set to C<NULL>."
2641 msgstr ""
2642
2643 # type: =head2
2644 #: ../src/guestfs.pod:1286
2645 msgid "guestfs_set_log_message_callback"
2646 msgstr ""
2647
2648 # type: verbatim
2649 #: ../src/guestfs.pod:1288
2650 #, no-wrap
2651 msgid ""
2652 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2653 "                                         char *buf, int len);\n"
2654 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2655 "                                        guestfs_log_message_cb cb,\n"
2656 "                                        void *opaque);\n"
2657 "\n"
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1294
2662 msgid ""
2663 "The callback function C<cb> will be called whenever qemu or the guest writes "
2664 "anything to the console."
2665 msgstr ""
2666
2667 # type: textblock
2668 #: ../src/guestfs.pod:1297
2669 msgid "Use this function to capture kernel messages and similar."
2670 msgstr ""
2671
2672 # type: textblock
2673 #: ../src/guestfs.pod:1299
2674 msgid ""
2675 "Normally there is no log message handler, and log messages are just "
2676 "discarded."
2677 msgstr ""
2678
2679 # type: =head2
2680 #: ../src/guestfs.pod:1302
2681 msgid "guestfs_set_subprocess_quit_callback"
2682 msgstr ""
2683
2684 # type: verbatim
2685 #: ../src/guestfs.pod:1304
2686 #, no-wrap
2687 msgid ""
2688 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2689 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2690 "                                            guestfs_subprocess_quit_cb cb,\n"
2691 "                                            void *opaque);\n"
2692 "\n"
2693 msgstr ""
2694
2695 # type: textblock
2696 #: ../src/guestfs.pod:1309
2697 msgid ""
2698 "The callback function C<cb> will be called when the child process quits, "
2699 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2700 "corresponds to a transition from any state to the CONFIG state)."
2701 msgstr ""
2702
2703 # type: =head2
2704 #: ../src/guestfs.pod:1314
2705 msgid "guestfs_set_launch_done_callback"
2706 msgstr ""
2707
2708 # type: verbatim
2709 #: ../src/guestfs.pod:1316
2710 #, no-wrap
2711 msgid ""
2712 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2713 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2714 "                                        guestfs_launch_done_cb cb,\n"
2715 "                                        void *opaque);\n"
2716 "\n"
2717 msgstr ""
2718
2719 # type: textblock
2720 #: ../src/guestfs.pod:1321
2721 msgid ""
2722 "The callback function C<cb> will be called when the child process becomes "
2723 "ready first time after it has been launched.  (This corresponds to a "
2724 "transition from LAUNCHING to the READY state)."
2725 msgstr ""
2726
2727 # type: =head2
2728 #: ../src/guestfs.pod:1325
2729 msgid "guestfs_set_close_callback"
2730 msgstr ""
2731
2732 # type: verbatim
2733 #: ../src/guestfs.pod:1327
2734 #, no-wrap
2735 msgid ""
2736 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2737 " void guestfs_set_close_callback (guestfs_h *g,\n"
2738 "                                  guestfs_close_cb cb,\n"
2739 "                                  void *opaque);\n"
2740 "\n"
2741 msgstr ""
2742
2743 # type: textblock
2744 #: ../src/guestfs.pod:1332
2745 msgid ""
2746 "The callback function C<cb> will be called while the handle is being closed "
2747 "(synchronously from L</guestfs_close>)."
2748 msgstr ""
2749
2750 # type: textblock
2751 #: ../src/guestfs.pod:1335
2752 msgid ""
2753 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2754 "handles that are open when the program exits.  This means that this callback "
2755 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2756 "problems in higher-level languages (eg. if your HLL interpreter has already "
2757 "been cleaned up by the time this is called, and if your callback then jumps "
2758 "into some HLL function)."
2759 msgstr ""
2760
2761 # type: =head2
2762 #: ../src/guestfs.pod:1343
2763 msgid "guestfs_set_progress_callback"
2764 msgstr ""
2765
2766 # type: verbatim
2767 #: ../src/guestfs.pod:1345
2768 #, no-wrap
2769 msgid ""
2770 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2771 "                                      int proc_nr, int serial,\n"
2772 "                                      uint64_t position, uint64_t total);\n"
2773 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2774 "                                     guestfs_progress_cb cb,\n"
2775 "                                     void *opaque);\n"
2776 "\n"
2777 msgstr ""
2778
2779 # type: textblock
2780 #: ../src/guestfs.pod:1352
2781 msgid ""
2782 "Some long-running operations can generate progress messages.  If this "
2783 "callback is registered, then it will be called each time a progress message "
2784 "is generated (usually two seconds after the operation started, and three "
2785 "times per second thereafter until it completes, although the frequency may "
2786 "change in future versions)."
2787 msgstr ""
2788
2789 # type: textblock
2790 #: ../src/guestfs.pod:1358
2791 msgid ""
2792 "The callback receives two numbers: C<position> and C<total>.  The units of "
2793 "C<total> are not defined, although for some operations C<total> may relate "
2794 "in some way to the amount of data to be transferred (eg. in bytes or "
2795 "megabytes), and C<position> may be the portion which has been transferred."
2796 msgstr ""
2797
2798 # type: textblock
2799 #: ../src/guestfs.pod:1364
2800 msgid "The only defined and stable parts of the API are:"
2801 msgstr ""
2802
2803 # type: textblock
2804 #: ../src/guestfs.pod:1370
2805 msgid ""
2806 "The callback can display to the user some type of progress bar or indicator "
2807 "which shows the ratio of C<position>:C<total>."
2808 msgstr ""
2809
2810 # type: textblock
2811 #: ../src/guestfs.pod:1375
2812 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2813 msgstr ""
2814
2815 # type: textblock
2816 #: ../src/guestfs.pod:1379
2817 msgid ""
2818 "If any progress notification is sent during a call, then a final progress "
2819 "notification is always sent when C<position> = C<total>."
2820 msgstr ""
2821
2822 # type: textblock
2823 #: ../src/guestfs.pod:1382
2824 msgid ""
2825 "This is to simplify caller code, so callers can easily set the progress "
2826 "indicator to \"100%\" at the end of the operation, without requiring special "
2827 "code to detect this case."
2828 msgstr ""
2829
2830 # type: textblock
2831 #: ../src/guestfs.pod:1388
2832 msgid ""
2833 "The callback also receives the procedure number and serial number of the "
2834 "call.  These are only useful for debugging protocol issues, and the callback "
2835 "can normally ignore them.  The callback may want to print these numbers in "
2836 "error messages or debugging messages."
2837 msgstr ""
2838
2839 # type: =head1
2840 #: ../src/guestfs.pod:1393
2841 msgid "PRIVATE DATA AREA"
2842 msgstr ""
2843
2844 # type: textblock
2845 #: ../src/guestfs.pod:1395
2846 msgid ""
2847 "You can attach named pieces of private data to the libguestfs handle, and "
2848 "fetch them by name for the lifetime of the handle.  This is called the "
2849 "private data area and is only available from the C API."
2850 msgstr ""
2851
2852 # type: textblock
2853 #: ../src/guestfs.pod:1399
2854 msgid "To attach a named piece of data, use the following call:"
2855 msgstr ""
2856
2857 # type: verbatim
2858 #: ../src/guestfs.pod:1401
2859 #, no-wrap
2860 msgid ""
2861 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2862 "\n"
2863 msgstr ""
2864
2865 # type: textblock
2866 #: ../src/guestfs.pod:1403
2867 msgid ""
2868 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2869 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2870 "overwritten."
2871 msgstr ""
2872
2873 # type: textblock
2874 #: ../src/guestfs.pod:1407
2875 msgid ""
2876 "You can use any C<key> you want, but names beginning with an underscore "
2877 "character are reserved for internal libguestfs purposes (for implementing "
2878 "language bindings).  It is recommended to prefix the name with some unique "
2879 "string to avoid collisions with other users."
2880 msgstr ""
2881
2882 # type: textblock
2883 #: ../src/guestfs.pod:1412
2884 msgid "To retrieve the pointer, use:"
2885 msgstr ""
2886
2887 # type: verbatim
2888 #: ../src/guestfs.pod:1414
2889 #, no-wrap
2890 msgid ""
2891 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2892 "\n"
2893 msgstr ""
2894
2895 # type: textblock
2896 #: ../src/guestfs.pod:1416
2897 msgid ""
2898 "This function returns C<NULL> if either no data is found associated with "
2899 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2900 "C<NULL>."
2901 msgstr ""
2902
2903 # type: textblock
2904 #: ../src/guestfs.pod:1420
2905 msgid ""
2906 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2907 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2908 "all.  In particular, libguestfs does I<not> try to free the data when the "
2909 "handle is closed.  If the data must be freed, then the caller must either "
2910 "free it before calling L</guestfs_close> or must set up a close callback to "
2911 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2912 "can be registered for a handle)."
2913 msgstr ""
2914
2915 # type: textblock
2916 #: ../src/guestfs.pod:1428
2917 msgid ""
2918 "The private data area is implemented using a hash table, and should be "
2919 "reasonably efficient for moderate numbers of keys."
2920 msgstr ""
2921
2922 # type: =head1
2923 #: ../src/guestfs.pod:1431
2924 msgid "BLOCK DEVICE NAMING"
2925 msgstr ""
2926
2927 # type: textblock
2928 #: ../src/guestfs.pod:1433
2929 msgid ""
2930 "In the kernel there is now quite a profusion of schemata for naming block "
2931 "devices (in this context, by I<block device> I mean a physical or virtual "
2932 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2933 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2934 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2935 "for the old IDE driver (particularly for SATA devices) those devices also "
2936 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2937 "paravirtualized drivers.  This has created several different naming systems, "
2938 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2939 msgstr ""
2940
2941 # type: textblock
2942 #: ../src/guestfs.pod:1445
2943 msgid ""
2944 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2945 "Linux kernel to access block devices.  We can run a variety of appliances "
2946 "based on a variety of Linux kernels."
2947 msgstr ""
2948
2949 # type: textblock
2950 #: ../src/guestfs.pod:1449
2951 msgid ""
2952 "This causes a problem for libguestfs because many API calls use device or "
2953 "partition names.  Working scripts and the recipe (example) scripts that we "
2954 "make available over the internet could fail if the naming scheme changes."
2955 msgstr ""
2956
2957 # type: textblock
2958 #: ../src/guestfs.pod:1454
2959 msgid ""
2960 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2961 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2962 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2963 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2964 msgstr ""
2965
2966 # type: textblock
2967 #: ../src/guestfs.pod:1460
2968 msgid ""
2969 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2970 "L</guestfs_list_partitions> and similar calls return the true names of the "
2971 "devices and partitions as known to the appliance."
2972 msgstr ""
2973
2974 # type: =head2
2975 #: ../src/guestfs.pod:1465
2976 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2977 msgstr ""
2978
2979 # type: textblock
2980 #: ../src/guestfs.pod:1467
2981 msgid ""
2982 "Usually this translation is transparent.  However in some (very rare)  cases "
2983 "you may need to know the exact algorithm.  Such cases include where you use "
2984 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2985 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2986 msgstr ""
2987
2988 # type: textblock
2989 #: ../src/guestfs.pod:1473
2990 msgid ""
2991 "The algorithm is applied only to I<parameters> which are known to be either "
2992 "device or partition names.  Return values from functions such as L</"
2993 "guestfs_list_devices> are never changed."
2994 msgstr ""
2995
2996 # type: textblock
2997 #: ../src/guestfs.pod:1481
2998 msgid "Is the string a parameter which is a device or partition name?"
2999 msgstr ""
3000
3001 # type: textblock
3002 #: ../src/guestfs.pod:1485
3003 msgid "Does the string begin with C</dev/sd>?"
3004 msgstr ""
3005
3006 # type: textblock
3007 #: ../src/guestfs.pod:1489
3008 msgid ""
3009 "Does the named device exist? If so, we use that device.  However if I<not> "
3010 "then we continue with this algorithm."
3011 msgstr ""
3012
3013 # type: textblock
3014 #: ../src/guestfs.pod:1494
3015 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3016 msgstr ""
3017
3018 # type: textblock
3019 #: ../src/guestfs.pod:1496
3020 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3021 msgstr ""
3022
3023 # type: textblock
3024 #: ../src/guestfs.pod:1498
3025 msgid "If that named device exists, use it.  If not, continue."
3026 msgstr ""
3027
3028 # type: textblock
3029 #: ../src/guestfs.pod:1502
3030 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3031 msgstr ""
3032
3033 # type: textblock
3034 #: ../src/guestfs.pod:1504
3035 msgid "If that named device exists, use it.  If not, return an error."
3036 msgstr ""
3037
3038 # type: =head2
3039 #: ../src/guestfs.pod:1508
3040 msgid "PORTABILITY CONCERNS"
3041 msgstr ""
3042
3043 # type: textblock
3044 #: ../src/guestfs.pod:1510
3045 msgid ""
3046 "Although the standard naming scheme and automatic translation is useful for "
3047 "simple programs and guestfish scripts, for larger programs it is best not to "
3048 "rely on this mechanism."
3049 msgstr ""
3050
3051 # type: textblock
3052 #: ../src/guestfs.pod:1514
3053 msgid ""
3054 "Where possible for maximum future portability programs using libguestfs "
3055 "should use these future-proof techniques:"
3056 msgstr ""
3057
3058 # type: textblock
3059 #: ../src/guestfs.pod:1521
3060 msgid ""
3061 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3062 "device names, and then use those names directly."
3063 msgstr ""
3064
3065 # type: textblock
3066 #: ../src/guestfs.pod:1524
3067 msgid ""
3068 "Since those device names exist by definition, they will never be translated."
3069 msgstr ""
3070
3071 # type: textblock
3072 #: ../src/guestfs.pod:1529
3073 msgid ""
3074 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3075 "filesystem labels."
3076 msgstr ""
3077
3078 # type: =head1
3079 #: ../src/guestfs.pod:1534
3080 msgid "INTERNALS"
3081 msgstr ""
3082
3083 # type: =head2
3084 #: ../src/guestfs.pod:1536
3085 msgid "COMMUNICATION PROTOCOL"
3086 msgstr ""
3087
3088 # type: textblock
3089 #: ../src/guestfs.pod:1538
3090 msgid ""
3091 "Don't rely on using this protocol directly.  This section documents how it "
3092 "currently works, but it may change at any time."
3093 msgstr ""
3094
3095 # type: textblock
3096 #: ../src/guestfs.pod:1541
3097 msgid ""
3098 "The protocol used to talk between the library and the daemon running inside "
3099 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3100 "1014, RFC 1832, RFC 4506)."
3101 msgstr ""
3102
3103 # type: textblock
3104 #: ../src/guestfs.pod:1545
3105 msgid ""
3106 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3107 "this file is automatically generated)."
3108 msgstr ""
3109
3110 # type: textblock
3111 #: ../src/guestfs.pod:1548
3112 msgid ""
3113 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3114 "and C<FileOut> parameters, which are handled with very simple request/reply "
3115 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3116 "parameters, which use the same request and reply messages, but they may also "
3117 "be followed by files sent using a chunked encoding."
3118 msgstr ""
3119
3120 # type: =head3
3121 #: ../src/guestfs.pod:1555
3122 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1557
3127 msgid "For ordinary functions, the request message is:"
3128 msgstr ""
3129
3130 # type: verbatim
3131 #: ../src/guestfs.pod:1559
3132 #, no-wrap
3133 msgid ""
3134 " total length (header + arguments,\n"
3135 "      but not including the length word itself)\n"
3136 " struct guestfs_message_header (encoded as XDR)\n"
3137 " struct guestfs_<foo>_args (encoded as XDR)\n"
3138 "\n"
3139 msgstr ""
3140
3141 # type: textblock
3142 #: ../src/guestfs.pod:1564
3143 msgid ""
3144 "The total length field allows the daemon to allocate a fixed size buffer "
3145 "into which it slurps the rest of the message.  As a result, the total length "
3146 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3147 "effective size of any request is limited to somewhere under this size."
3148 msgstr ""
3149
3150 # type: textblock
3151 #: ../src/guestfs.pod:1570
3152 msgid ""
3153 "Note also that many functions don't take any arguments, in which case the "
3154 "C<guestfs_I<foo>_args> is completely omitted."
3155 msgstr ""
3156
3157 # type: textblock
3158 #: ../src/guestfs.pod:1573
3159 msgid ""
3160 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3161 "receiver knows what type of args structure to expect, or none at all."
3162 msgstr ""
3163
3164 # type: textblock
3165 #: ../src/guestfs.pod:1577
3166 msgid "The reply message for ordinary functions is:"
3167 msgstr ""
3168
3169 # type: verbatim
3170 #: ../src/guestfs.pod:1579
3171 #, no-wrap
3172 msgid ""
3173 " total length (header + ret,\n"
3174 "      but not including the length word itself)\n"
3175 " struct guestfs_message_header (encoded as XDR)\n"
3176 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3177 "\n"
3178 msgstr ""
3179
3180 # type: textblock
3181 #: ../src/guestfs.pod:1584
3182 msgid ""
3183 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3184 "functions that return no formal return values."
3185 msgstr ""
3186
3187 # type: textblock
3188 #: ../src/guestfs.pod:1587
3189 msgid ""
3190 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3191 msgstr ""
3192
3193 # type: textblock
3194 #: ../src/guestfs.pod:1590
3195 msgid ""
3196 "In the case of an error, a flag is set in the header, and the reply message "
3197 "is slightly changed:"
3198 msgstr ""
3199
3200 # type: verbatim
3201 #: ../src/guestfs.pod:1593
3202 #, no-wrap
3203 msgid ""
3204 " total length (header + error,\n"
3205 "      but not including the length word itself)\n"
3206 " struct guestfs_message_header (encoded as XDR)\n"
3207 " struct guestfs_message_error (encoded as XDR)\n"
3208 "\n"
3209 msgstr ""
3210
3211 # type: textblock
3212 #: ../src/guestfs.pod:1598
3213 msgid ""
3214 "The C<guestfs_message_error> structure contains the error message as a "
3215 "string."
3216 msgstr ""
3217
3218 # type: =head3
3219 #: ../src/guestfs.pod:1601
3220 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3221 msgstr ""
3222
3223 # type: textblock
3224 #: ../src/guestfs.pod:1603
3225 msgid ""
3226 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3227 "The normal request message is sent (see above).  However this is followed by "
3228 "a sequence of file chunks."
3229 msgstr ""
3230
3231 # type: verbatim
3232 #: ../src/guestfs.pod:1607
3233 #, no-wrap
3234 msgid ""
3235 " total length (header + arguments,\n"
3236 "      but not including the length word itself,\n"
3237 "      and not including the chunks)\n"
3238 " struct guestfs_message_header (encoded as XDR)\n"
3239 " struct guestfs_<foo>_args (encoded as XDR)\n"
3240 " sequence of chunks for FileIn param #0\n"
3241 " sequence of chunks for FileIn param #1 etc.\n"
3242 "\n"
3243 msgstr ""
3244
3245 # type: textblock
3246 #: ../src/guestfs.pod:1615
3247 msgid "The \"sequence of chunks\" is:"
3248 msgstr ""
3249
3250 # type: verbatim
3251 #: ../src/guestfs.pod:1617
3252 #, no-wrap
3253 msgid ""
3254 " length of chunk (not including length word itself)\n"
3255 " struct guestfs_chunk (encoded as XDR)\n"
3256 " length of chunk\n"
3257 " struct guestfs_chunk (encoded as XDR)\n"
3258 "   ...\n"
3259 " length of chunk\n"
3260 " struct guestfs_chunk (with data.data_len == 0)\n"
3261 "\n"
3262 msgstr ""
3263
3264 # type: textblock
3265 #: ../src/guestfs.pod:1625
3266 msgid ""
3267 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3268 "is set in the final chunk to indicate either successful completion or early "
3269 "cancellation."
3270 msgstr ""
3271
3272 # type: textblock
3273 #: ../src/guestfs.pod:1629
3274 msgid ""
3275 "At time of writing there are no functions that have more than one FileIn "
3276 "parameter.  However this is (theoretically) supported, by sending the "
3277 "sequence of chunks for each FileIn parameter one after another (from left to "
3278 "right)."
3279 msgstr ""
3280
3281 # type: textblock
3282 #: ../src/guestfs.pod:1634
3283 msgid ""
3284 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3285 "transfer.  The library does this by sending a chunk with a special flag set "
3286 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3287 "RPC, does I<not> send any reply, and goes back to reading the next request."
3288 msgstr ""
3289
3290 # type: textblock
3291 #: ../src/guestfs.pod:1640
3292 msgid ""
3293 "The daemon may also cancel.  It does this by writing a special word "
3294 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3295 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3296 "cancel chunk).  The special word is chosen so that even if cancellation "
3297 "happens right at the end of the transfer (after the library has finished "
3298 "writing and has started listening for the reply), the \"spurious\" cancel "
3299 "flag will not be confused with the reply message."
3300 msgstr ""
3301
3302 # type: textblock
3303 #: ../src/guestfs.pod:1649
3304 msgid ""
3305 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3306 "limit), and also files where the size is not known in advance (eg. from "
3307 "pipes or sockets).  However the chunks are rather small "
3308 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3309 "to keep much in memory."
3310 msgstr ""
3311
3312 # type: =head3
3313 #: ../src/guestfs.pod:1655
3314 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3315 msgstr ""
3316
3317 # type: textblock
3318 #: ../src/guestfs.pod:1657
3319 msgid ""
3320 "The protocol for FileOut parameters is exactly the same as for FileIn "
3321 "parameters, but with the roles of daemon and library reversed."
3322 msgstr ""
3323
3324 # type: verbatim
3325 #: ../src/guestfs.pod:1660
3326 #, no-wrap
3327 msgid ""
3328 " total length (header + ret,\n"
3329 "      but not including the length word itself,\n"
3330 "      and not including the chunks)\n"
3331 " struct guestfs_message_header (encoded as XDR)\n"
3332 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3333 " sequence of chunks for FileOut param #0\n"
3334 " sequence of chunks for FileOut param #1 etc.\n"
3335 "\n"
3336 msgstr ""
3337
3338 # type: =head3
3339 #: ../src/guestfs.pod:1668
3340 msgid "INITIAL MESSAGE"
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1670
3345 msgid ""
3346 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3347 "which indicates that the guest and daemon is alive.  This is what L</"
3348 "guestfs_launch> waits for."
3349 msgstr ""
3350
3351 # type: =head3
3352 #: ../src/guestfs.pod:1674
3353 msgid "PROGRESS NOTIFICATION MESSAGES"
3354 msgstr ""
3355
3356 # type: textblock
3357 #: ../src/guestfs.pod:1676
3358 msgid ""
3359 "The daemon may send progress notification messages at any time.  These are "
3360 "distinguished by the normal length word being replaced by "
3361 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3362 msgstr ""
3363
3364 # type: textblock
3365 #: ../src/guestfs.pod:1680
3366 msgid ""
3367 "The library turns them into progress callbacks (see "
3368 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3369 "discards them if not."
3370 msgstr ""
3371
3372 # type: textblock
3373 #: ../src/guestfs.pod:1684
3374 msgid ""
3375 "The daemon self-limits the frequency of progress messages it sends (see "
3376 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3377 "messages."
3378 msgstr ""
3379
3380 # type: =head1
3381 #: ../src/guestfs.pod:1688
3382 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3383 msgstr ""
3384
3385 # type: textblock
3386 #: ../src/guestfs.pod:1690
3387 msgid ""
3388 "All high-level libguestfs actions are synchronous.  If you want to use "
3389 "libguestfs asynchronously then you must create a thread."
3390 msgstr ""
3391
3392 # type: textblock
3393 #: ../src/guestfs.pod:1693
3394 msgid ""
3395 "Only use the handle from a single thread.  Either use the handle exclusively "
3396 "from one thread, or provide your own mutex so that two threads cannot issue "
3397 "calls on the same handle at the same time."
3398 msgstr ""
3399
3400 # type: textblock
3401 #: ../src/guestfs.pod:1697
3402 msgid ""
3403 "See the graphical program guestfs-browser for one possible architecture for "
3404 "multithreaded programs using libvirt and libguestfs."
3405 msgstr ""
3406
3407 # type: =head1
3408 #: ../src/guestfs.pod:1700
3409 msgid "QEMU WRAPPERS"
3410 msgstr ""
3411
3412 # type: textblock
3413 #: ../src/guestfs.pod:1702
3414 msgid ""
3415 "If you want to compile your own qemu, run qemu from a non-standard location, "
3416 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3417 "around qemu."
3418 msgstr ""
3419
3420 # type: textblock
3421 #: ../src/guestfs.pod:1706
3422 msgid ""
3423 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3424 "last command in the shell script (so that qemu replaces the shell and "
3425 "becomes the direct child of the libguestfs-using program).  If you don't do "
3426 "this, then the qemu process won't be cleaned up correctly."
3427 msgstr ""
3428
3429 # type: textblock
3430 #: ../src/guestfs.pod:1711
3431 msgid ""
3432 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3433 "source:"
3434 msgstr ""
3435
3436 # type: verbatim
3437 #: ../src/guestfs.pod:1714
3438 #, no-wrap
3439 msgid ""
3440 " #!/bin/sh -\n"
3441 " qemudir=/home/rjones/d/qemu\n"
3442 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3443 "\n"
3444 msgstr ""
3445
3446 # type: textblock
3447 #: ../src/guestfs.pod:1718
3448 msgid ""
3449 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3450 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3451 "example:"
3452 msgstr ""
3453
3454 # type: verbatim
3455 #: ../src/guestfs.pod:1722
3456 #, no-wrap
3457 msgid ""
3458 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3459 "\n"
3460 msgstr ""
3461
3462 # type: textblock
3463 #: ../src/guestfs.pod:1724
3464 msgid ""
3465 "Note that libguestfs also calls qemu with the -help and -version options in "
3466 "order to determine features."
3467 msgstr ""
3468
3469 # type: =head1
3470 #: ../src/guestfs.pod:1727
3471 msgid "LIBGUESTFS VERSION NUMBERS"
3472 msgstr ""
3473
3474 # type: textblock
3475 #: ../src/guestfs.pod:1729
3476 msgid ""
3477 "Since April 2010, libguestfs has started to make separate development and "
3478 "stable releases, along with corresponding branches in our git repository.  "
3479 "These separate releases can be identified by version number:"
3480 msgstr ""
3481
3482 # type: verbatim
3483 #: ../src/guestfs.pod:1734
3484 #, no-wrap
3485 msgid ""
3486 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3487 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3488 "       |\n"
3489 "       v\n"
3490 " 1  .  3  .  5\n"
3491 " ^           ^\n"
3492 " |           |\n"
3493 " |           `-------- sub-version\n"
3494 " |\n"
3495 " `------ always '1' because we don't change the ABI\n"
3496 "\n"
3497 msgstr ""
3498
3499 # type: textblock
3500 #: ../src/guestfs.pod:1745
3501 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3502 msgstr ""
3503
3504 # type: textblock
3505 #: ../src/guestfs.pod:1747
3506 msgid ""
3507 "As time passes we cherry pick fixes from the development branch and backport "
3508 "those into the stable branch, the effect being that the stable branch should "
3509 "get more stable and less buggy over time.  So the stable releases are ideal "
3510 "for people who don't need new features but would just like the software to "
3511 "work."
3512 msgstr ""
3513
3514 # type: textblock
3515 #: ../src/guestfs.pod:1753
3516 msgid "Our criteria for backporting changes are:"
3517 msgstr ""
3518
3519 # type: textblock
3520 #: ../src/guestfs.pod:1759
3521 msgid ""
3522 "Documentation changes which don't affect any code are backported unless the "
3523 "documentation refers to a future feature which is not in stable."
3524 msgstr ""
3525
3526 # type: textblock
3527 #: ../src/guestfs.pod:1765
3528 msgid ""
3529 "Bug fixes which are not controversial, fix obvious problems, and have been "
3530 "well tested are backported."
3531 msgstr ""
3532
3533 # type: textblock
3534 #: ../src/guestfs.pod:1770
3535 msgid ""
3536 "Simple rearrangements of code which shouldn't affect how it works get "
3537 "backported.  This is so that the code in the two branches doesn't get too "
3538 "far out of step, allowing us to backport future fixes more easily."
3539 msgstr ""
3540
3541 # type: textblock
3542 #: ../src/guestfs.pod:1776
3543 msgid ""
3544 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3545 "exceptional case: the new feature is required in order to implement an "
3546 "important bug fix."
3547 msgstr ""
3548
3549 # type: textblock
3550 #: ../src/guestfs.pod:1782
3551 msgid ""
3552 "A new stable branch starts when we think the new features in development are "
3553 "substantial and compelling enough over the current stable branch to warrant "
3554 "it.  When that happens we create new stable and development versions 1.N.0 "
3555 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3556 "stable at this point, but by backporting fixes from development, that branch "
3557 "will stabilize over time."
3558 msgstr ""
3559
3560 # type: =head1
3561 #: ../src/guestfs.pod:1790 ../fish/guestfish.pod:867
3562 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3563 #: ../tools/virt-rescue.pl:255
3564 msgid "ENVIRONMENT VARIABLES"
3565 msgstr ""
3566
3567 # type: =item
3568 #: ../src/guestfs.pod:1794 ../fish/guestfish.pod:893
3569 msgid "LIBGUESTFS_APPEND"
3570 msgstr ""
3571
3572 # type: textblock
3573 #: ../src/guestfs.pod:1796 ../fish/guestfish.pod:895
3574 msgid "Pass additional options to the guest kernel."
3575 msgstr ""
3576
3577 # type: =item
3578 #: ../src/guestfs.pod:1798 ../fish/guestfish.pod:897
3579 msgid "LIBGUESTFS_DEBUG"
3580 msgstr ""
3581
3582 # type: textblock
3583 #: ../src/guestfs.pod:1800
3584 msgid ""
3585 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3586 "effect as calling C<guestfs_set_verbose (g, 1)>."
3587 msgstr ""
3588
3589 # type: =item
3590 #: ../src/guestfs.pod:1803 ../fish/guestfish.pod:902
3591 msgid "LIBGUESTFS_MEMSIZE"
3592 msgstr ""
3593
3594 # type: textblock
3595 #: ../src/guestfs.pod:1805 ../fish/guestfish.pod:904
3596 msgid ""
3597 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3598 msgstr ""
3599
3600 # type: verbatim
3601 #: ../src/guestfs.pod:1808 ../fish/guestfish.pod:907
3602 #, no-wrap
3603 msgid ""
3604 " LIBGUESTFS_MEMSIZE=700\n"
3605 "\n"
3606 msgstr ""
3607
3608 # type: =item
3609 #: ../src/guestfs.pod:1810 ../fish/guestfish.pod:909
3610 msgid "LIBGUESTFS_PATH"
3611 msgstr ""
3612
3613 # type: textblock
3614 #: ../src/guestfs.pod:1812
3615 msgid ""
3616 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3617 "the discussion of paths in section PATH above."
3618 msgstr ""
3619
3620 # type: =item
3621 #: ../src/guestfs.pod:1815 ../fish/guestfish.pod:914
3622 msgid "LIBGUESTFS_QEMU"
3623 msgstr ""
3624
3625 # type: textblock
3626 #: ../src/guestfs.pod:1817 ../fish/guestfish.pod:916
3627 msgid ""
3628 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3629 "which was found at compile time by the configure script is used."
3630 msgstr ""
3631
3632 # type: textblock
3633 #: ../src/guestfs.pod:1821
3634 msgid "See also L</QEMU WRAPPERS> above."
3635 msgstr ""
3636
3637 # type: =item
3638 #: ../src/guestfs.pod:1823 ../fish/guestfish.pod:920
3639 msgid "LIBGUESTFS_TRACE"
3640 msgstr ""
3641
3642 # type: textblock
3643 #: ../src/guestfs.pod:1825
3644 msgid ""
3645 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3646 "effect as calling C<guestfs_set_trace (g, 1)>."
3647 msgstr ""
3648
3649 # type: =item
3650 #: ../src/guestfs.pod:1828 ../fish/guestfish.pod:929
3651 msgid "TMPDIR"
3652 msgstr ""
3653
3654 # type: textblock
3655 #: ../src/guestfs.pod:1830 ../fish/guestfish.pod:931
3656 msgid "Location of temporary directory, defaults to C</tmp>."
3657 msgstr ""
3658
3659 # type: textblock
3660 #: ../src/guestfs.pod:1832 ../fish/guestfish.pod:933
3661 msgid ""
3662 "If libguestfs was compiled to use the supermin appliance then the real "
3663 "appliance is cached in this directory, shared between all handles belonging "
3664 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3665 "use in case C</tmp> is not large enough."
3666 msgstr ""
3667
3668 # type: =head1
3669 #: ../src/guestfs.pod:1840 ../fish/guestfish.pod:991
3670 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:214
3671 #: ../inspector/virt-inspector.pl:884 ../tools/virt-edit.pl:350
3672 #: ../tools/virt-win-reg.pl:487 ../tools/virt-df.pl:640
3673 #: ../tools/virt-ls.pl:235 ../tools/virt-resize.pl:1486
3674 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-cat.pl:188
3675 #: ../tools/virt-tar.pl:283 ../tools/virt-rescue.pl:267
3676 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3677 msgid "SEE ALSO"
3678 msgstr ""
3679
3680 # type: textblock
3681 #: ../src/guestfs.pod:1842
3682 msgid ""
3683 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3684 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3685 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3686 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3687 "L<http://libguestfs.org/>."
3688 msgstr ""
3689
3690 # type: textblock
3691 #: ../src/guestfs.pod:1860
3692 msgid ""
3693 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3694 "(8)>, L<disktype(1)>."
3695 msgstr ""
3696
3697 # type: =head1
3698 #: ../src/guestfs.pod:1867 ../tools/virt-win-reg.pl:502
3699 #: ../tools/virt-make-fs.pl:548
3700 msgid "BUGS"
3701 msgstr ""
3702
3703 # type: textblock
3704 #: ../src/guestfs.pod:1869
3705 msgid "To get a list of bugs against libguestfs use this link:"
3706 msgstr ""
3707
3708 # type: textblock
3709 #: ../src/guestfs.pod:1871
3710 msgid ""
3711 "L<https://bugzilla.redhat.com/buglist.cgi?"
3712 "component=libguestfs&product=Virtualization+Tools>"
3713 msgstr ""
3714
3715 # type: textblock
3716 #: ../src/guestfs.pod:1873
3717 msgid "To report a new bug against libguestfs use this link:"
3718 msgstr ""
3719
3720 # type: textblock
3721 #: ../src/guestfs.pod:1875
3722 msgid ""
3723 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3724 "component=libguestfs&product=Virtualization+Tools>"
3725 msgstr ""
3726
3727 # type: textblock
3728 #: ../src/guestfs.pod:1877
3729 msgid "When reporting a bug, please check:"
3730 msgstr ""
3731
3732 # type: textblock
3733 #: ../src/guestfs.pod:1883
3734 msgid "That the bug hasn't been reported already."
3735 msgstr ""
3736
3737 # type: textblock
3738 #: ../src/guestfs.pod:1887
3739 msgid "That you are testing a recent version."
3740 msgstr ""
3741
3742 # type: textblock
3743 #: ../src/guestfs.pod:1891
3744 msgid "Describe the bug accurately, and give a way to reproduce it."
3745 msgstr ""
3746
3747 # type: textblock
3748 #: ../src/guestfs.pod:1895
3749 msgid ""
3750 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3751 "bug report."
3752 msgstr ""
3753
3754 # type: =head1
3755 #: ../src/guestfs.pod:1900 ../fish/guestfish.pod:1008
3756 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:225
3757 #: ../inspector/virt-inspector.pl:893
3758 msgid "AUTHORS"
3759 msgstr ""
3760
3761 # type: textblock
3762 #: ../src/guestfs.pod:1902 ../fish/guestfish.pod:1010
3763 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:227
3764 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3765 msgstr ""
3766
3767 # type: =head1
3768 #: ../src/guestfs.pod:1904 ../fish/guestfish.pod:1012
3769 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:229
3770 #: ../inspector/virt-inspector.pl:899 ../tools/virt-edit.pl:366
3771 #: ../tools/virt-win-reg.pl:517 ../tools/virt-df.pl:653
3772 #: ../tools/virt-ls.pl:250 ../tools/virt-resize.pl:1512
3773 #: ../tools/virt-list-filesystems.pl:232 ../tools/virt-cat.pl:202
3774 #: ../tools/virt-tar.pl:298 ../tools/virt-rescue.pl:281
3775 #: ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3776 msgid "COPYRIGHT"
3777 msgstr ""
3778
3779 # type: textblock
3780 #: ../src/guestfs.pod:1906 ../fish/guestfish.pod:1014
3781 #: ../fuse/guestmount.pod:231
3782 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3783 msgstr ""
3784
3785 # type: textblock
3786 #: ../src/guestfs.pod:1909
3787 msgid ""
3788 "This library is free software; you can redistribute it and/or modify it "
3789 "under the terms of the GNU Lesser General Public License as published by the "
3790 "Free Software Foundation; either version 2 of the License, or (at your "
3791 "option) any later version."
3792 msgstr ""
3793
3794 # type: textblock
3795 #: ../src/guestfs.pod:1914
3796 msgid ""
3797 "This library is distributed in the hope that it will be useful, but WITHOUT "
3798 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3799 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3800 "for more details."
3801 msgstr ""
3802
3803 # type: textblock
3804 #: ../src/guestfs.pod:1919
3805 msgid ""
3806 "You should have received a copy of the GNU Lesser General Public License "
3807 "along with this library; if not, write to the Free Software Foundation, "
3808 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3809 msgstr ""
3810
3811 # type: =head2
3812 #: ../src/guestfs-actions.pod:1
3813 msgid "guestfs_add_cdrom"
3814 msgstr ""
3815
3816 # type: verbatim
3817 #: ../src/guestfs-actions.pod:3
3818 #, no-wrap
3819 msgid ""
3820 " int guestfs_add_cdrom (guestfs_h *g,\n"
3821 "\t\tconst char *filename);\n"
3822 "\n"
3823 msgstr ""
3824
3825 # type: textblock
3826 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3827 msgid "This function adds a virtual CD-ROM disk image to the guest."
3828 msgstr ""
3829
3830 # type: textblock
3831 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3832 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3833 msgstr ""
3834
3835 # type: textblock
3836 #: ../src/guestfs-actions.pod:16
3837 msgid ""
3838 "This call checks for the existence of C<filename>.  This stops you from "
3839 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3840 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3841 "instead."
3842 msgstr ""
3843
3844 # type: textblock
3845 #: ../src/guestfs-actions.pod:23
3846 msgid ""
3847 "If you just want to add an ISO file (often you use this as an efficient way "
3848 "to transfer large files into the guest), then you should probably use "
3849 "C<guestfs_add_drive_ro> instead."
3850 msgstr ""
3851
3852 # type: textblock
3853 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:54
3854 #: ../src/guestfs-actions.pod:112 ../src/guestfs-actions.pod:144
3855 #: ../src/guestfs-actions.pod:155 ../src/guestfs-actions.pod:173
3856 #: ../src/guestfs-actions.pod:190 ../src/guestfs-actions.pod:201
3857 #: ../src/guestfs-actions.pod:304 ../src/guestfs-actions.pod:321
3858 #: ../src/guestfs-actions.pod:332 ../src/guestfs-actions.pod:368
3859 #: ../src/guestfs-actions.pod:390 ../src/guestfs-actions.pod:405
3860 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:496
3861 #: ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:519
3862 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:615
3863 #: ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:637
3864 #: ../src/guestfs-actions.pod:783 ../src/guestfs-actions.pod:800
3865 #: ../src/guestfs-actions.pod:815 ../src/guestfs-actions.pod:890
3866 #: ../src/guestfs-actions.pod:905 ../src/guestfs-actions.pod:921
3867 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:949
3868 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1040
3869 #: ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1090
3870 #: ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1209
3871 #: ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:1440
3872 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1540
3873 #: ../src/guestfs-actions.pod:1888 ../src/guestfs-actions.pod:2011
3874 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2096
3875 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2517
3876 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2642
3877 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2663
3878 #: ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:2686
3879 #: ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2780
3880 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2811
3881 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2851
3882 #: ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2896
3883 #: ../src/guestfs-actions.pod:2912 ../src/guestfs-actions.pod:2941
3884 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:2983
3885 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3006
3886 #: ../src/guestfs-actions.pod:3018 ../src/guestfs-actions.pod:3032
3887 #: ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3129
3888 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3184
3889 #: ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:3214
3890 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3238
3891 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3263
3892 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3292
3893 #: ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3366
3894 #: ../src/guestfs-actions.pod:3382 ../src/guestfs-actions.pod:3398
3895 #: ../src/guestfs-actions.pod:3407 ../src/guestfs-actions.pod:3421
3896 #: ../src/guestfs-actions.pod:3431 ../src/guestfs-actions.pod:3443
3897 #: ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:3487
3898 #: ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:3516
3899 #: ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:3541
3900 #: ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3612
3901 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3648
3902 #: ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3677
3903 #: ../src/guestfs-actions.pod:3799 ../src/guestfs-actions.pod:3851
3904 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:3885
3905 #: ../src/guestfs-actions.pod:3911 ../src/guestfs-actions.pod:3968
3906 #: ../src/guestfs-actions.pod:3982 ../src/guestfs-actions.pod:3992
3907 #: ../src/guestfs-actions.pod:4003 ../src/guestfs-actions.pod:4258
3908 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4285
3909 #: ../src/guestfs-actions.pod:4294 ../src/guestfs-actions.pod:4305
3910 #: ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4325
3911 #: ../src/guestfs-actions.pod:4338 ../src/guestfs-actions.pod:4356
3912 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4388
3913 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4423
3914 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:4454
3915 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:4488
3916 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:4527
3917 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4564
3918 #: ../src/guestfs-actions.pod:4585 ../src/guestfs-actions.pod:4597
3919 #: ../src/guestfs-actions.pod:4609 ../src/guestfs-actions.pod:4625
3920 #: ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4679
3921 #: ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4792
3922 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4907
3923 #: ../src/guestfs-actions.pod:4917 ../src/guestfs-actions.pod:4927
3924 #: ../src/guestfs-actions.pod:4946 ../src/guestfs-actions.pod:4956
3925 #: ../src/guestfs-actions.pod:4966 ../src/guestfs-actions.pod:4976
3926 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5038
3927 #: ../src/guestfs-actions.pod:5052 ../src/guestfs-actions.pod:5065
3928 #: ../src/guestfs-actions.pod:5078 ../src/guestfs-actions.pod:5092
3929 #: ../src/guestfs-actions.pod:5102 ../src/guestfs-actions.pod:5119
3930 #: ../src/guestfs-actions.pod:5149 ../src/guestfs-actions.pod:5160
3931 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5205
3932 #: ../src/guestfs-actions.pod:5220 ../src/guestfs-actions.pod:5246
3933 #: ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5378
3934 #: ../src/guestfs-actions.pod:5393 ../src/guestfs-actions.pod:5404
3935 #: ../src/guestfs-actions.pod:5450 ../src/guestfs-actions.pod:5460
3936 #: ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:5524
3937 #: ../src/guestfs-actions.pod:5566 ../src/guestfs-actions.pod:5589
3938 #: ../src/guestfs-actions.pod:5646 ../src/guestfs-actions.pod:5662
3939 #: ../src/guestfs-actions.pod:5688
3940 msgid "This function returns 0 on success or -1 on error."
3941 msgstr ""
3942
3943 # type: textblock
3944 #: ../src/guestfs-actions.pod:31 ../src/guestfs-actions.pod:157
3945 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:28
3946 #: ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3947 msgid ""
3948 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3949 "instead."
3950 msgstr ""
3951
3952 # type: textblock
3953 #: ../src/guestfs-actions.pod:34 ../src/guestfs-actions.pod:160
3954 #: ../src/guestfs-actions.pod:178 ../src/guestfs-actions.pod:1214
3955 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1667
3956 #: ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:5742
3957 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120
3958 #: ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940
3959 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311
3960 #: ../fish/guestfish-actions.pod:4317 ../fish/guestfish-actions.pod:4414
3961 msgid ""
3962 "Deprecated functions will not be removed from the API, but the fact that "
3963 "they are deprecated indicates that there are problems with correct use of "
3964 "these functions."
3965 msgstr ""
3966
3967 # type: =head2
3968 #: ../src/guestfs-actions.pod:38
3969 msgid "guestfs_add_drive"
3970 msgstr ""
3971
3972 # type: verbatim
3973 #: ../src/guestfs-actions.pod:40
3974 #, no-wrap
3975 msgid ""
3976 " int guestfs_add_drive (guestfs_h *g,\n"
3977 "\t\tconst char *filename);\n"
3978 "\n"
3979 msgstr ""
3980
3981 # type: textblock
3982 #: ../src/guestfs-actions.pod:43
3983 msgid ""
3984 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
3985 "optional parameters, so the disk is added writable, with the format being "
3986 "detected automatically."
3987 msgstr ""
3988
3989 # type: textblock
3990 #: ../src/guestfs-actions.pod:47
3991 msgid ""
3992 "Automatic detection of the format opens you up to a potential security hole "
3993 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3994 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3995 "you should think about replacing calls to this function with calls to "
3996 "C<guestfs_add_drive_opts>, and specifying the format."
3997 msgstr ""
3998
3999 # type: =head2
4000 #: ../src/guestfs-actions.pod:56
4001 msgid "guestfs_add_drive_opts"
4002 msgstr ""
4003
4004 # type: verbatim
4005 #: ../src/guestfs-actions.pod:58
4006 #, no-wrap
4007 msgid ""
4008 " int guestfs_add_drive_opts (guestfs_h *g,\n"
4009 "\t\tconst char *filename,\n"
4010 "\t\t...);\n"
4011 "\n"
4012 msgstr ""
4013
4014 # type: textblock
4015 #: ../src/guestfs-actions.pod:62
4016 msgid ""
4017 "You may supply a list of optional arguments to this call.  Use zero or more "
4018 "of the following pairs of parameters, and terminate the list with C<-1> on "
4019 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4020 msgstr ""
4021
4022 # type: verbatim
4023 #: ../src/guestfs-actions.pod:67
4024 #, no-wrap
4025 msgid ""
4026 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4027 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4028 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4029 "\n"
4030 msgstr ""
4031
4032 # type: textblock
4033 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:56
4034 msgid ""
4035 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4036 "The first time you call this function, the disk appears as C</dev/sda>, the "
4037 "second time as C</dev/sdb>, and so on."
4038 msgstr ""
4039
4040 # type: textblock
4041 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:61
4042 msgid ""
4043 "You don't necessarily need to be root when using libguestfs.  However you "
4044 "obviously do need sufficient permissions to access the filename for whatever "
4045 "operations you want to perform (ie. read access if you just want to read the "
4046 "image or write access if you want to modify the image)."
4047 msgstr ""
4048
4049 # type: textblock
4050 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:67
4051 msgid "This call checks that C<filename> exists."
4052 msgstr ""
4053
4054 # type: textblock
4055 #: ../src/guestfs-actions.pod:84 ../fish/guestfish-actions.pod:69
4056 msgid "The optional arguments are:"
4057 msgstr ""
4058
4059 # type: =item
4060 #: ../src/guestfs-actions.pod:88 ../fish/guestfish-actions.pod:73
4061 msgid "C<readonly>"
4062 msgstr ""
4063
4064 # type: textblock
4065 #: ../src/guestfs-actions.pod:90 ../fish/guestfish-actions.pod:75
4066 msgid ""
4067 "If true then the image is treated as read-only.  Writes are still allowed, "
4068 "but they are stored in a temporary snapshot overlay which is discarded at "
4069 "the end.  The disk that you add is not modified."
4070 msgstr ""
4071
4072 # type: =item
4073 #: ../src/guestfs-actions.pod:94 ../fish/guestfish-actions.pod:79
4074 msgid "C<format>"
4075 msgstr ""
4076
4077 # type: textblock
4078 #: ../src/guestfs-actions.pod:96
4079 msgid ""
4080 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4081 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4082 "Possible formats include C<raw> and C<qcow2>."
4083 msgstr ""
4084
4085 # type: textblock
4086 #: ../src/guestfs-actions.pod:100 ../fish/guestfish-actions.pod:85
4087 msgid ""
4088 "Automatic detection of the format opens you up to a potential security hole "
4089 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4090 "RHBZ#642934.  Specifying the format closes this security hole."
4091 msgstr ""
4092
4093 # type: =item
4094 #: ../src/guestfs-actions.pod:105 ../fish/guestfish-actions.pod:90
4095 msgid "C<iface>"
4096 msgstr ""
4097
4098 # type: textblock
4099 #: ../src/guestfs-actions.pod:107
4100 msgid ""
4101 "This rarely-used option lets you emulate the behaviour of the deprecated "
4102 "C<guestfs_add_drive_with_if> call (q.v.)"
4103 msgstr ""
4104
4105 # type: =head2
4106 #: ../src/guestfs-actions.pod:114
4107 msgid "guestfs_add_drive_opts_va"
4108 msgstr ""
4109
4110 # type: verbatim
4111 #: ../src/guestfs-actions.pod:116
4112 #, no-wrap
4113 msgid ""
4114 " int guestfs_add_drive_opts_va (guestfs_h *g,\n"
4115 "\t\tconst char *filename,\n"
4116 "\t\tva_list args);\n"
4117 "\n"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs-actions.pod:120
4122 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4123 msgstr ""
4124
4125 # type: textblock
4126 #: ../src/guestfs-actions.pod:122 ../src/guestfs-actions.pod:132
4127 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4128 msgstr ""
4129
4130 # type: =head2
4131 #: ../src/guestfs-actions.pod:124
4132 msgid "guestfs_add_drive_opts_argv"
4133 msgstr ""
4134
4135 # type: verbatim
4136 #: ../src/guestfs-actions.pod:126
4137 #, no-wrap
4138 msgid ""
4139 " int guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4140 "\t\tconst char *filename,\n"
4141 "\t\tconst struct guestfs_add_drive_opts_argv *optargs);\n"
4142 "\n"
4143 msgstr ""
4144
4145 # type: textblock
4146 #: ../src/guestfs-actions.pod:130
4147 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4148 msgstr ""
4149
4150 # type: =head2
4151 #: ../src/guestfs-actions.pod:134
4152 msgid "guestfs_add_drive_ro"
4153 msgstr ""
4154
4155 # type: verbatim
4156 #: ../src/guestfs-actions.pod:136
4157 #, no-wrap
4158 msgid ""
4159 " int guestfs_add_drive_ro (guestfs_h *g,\n"
4160 "\t\tconst char *filename);\n"
4161 "\n"
4162 msgstr ""
4163
4164 # type: textblock
4165 #: ../src/guestfs-actions.pod:139
4166 msgid ""
4167 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4168 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4169 "disk is added read-only, with the format being detected automatically."
4170 msgstr ""
4171
4172 # type: =head2
4173 #: ../src/guestfs-actions.pod:146
4174 msgid "guestfs_add_drive_ro_with_if"
4175 msgstr ""
4176
4177 # type: verbatim
4178 #: ../src/guestfs-actions.pod:148
4179 #, no-wrap
4180 msgid ""
4181 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4182 "\t\tconst char *filename,\n"
4183 "\t\tconst char *iface);\n"
4184 "\n"
4185 msgstr ""
4186
4187 # type: textblock
4188 #: ../src/guestfs-actions.pod:152
4189 msgid ""
4190 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4191 "QEMU interface emulation to use at run time."
4192 msgstr ""
4193
4194 # type: =head2
4195 #: ../src/guestfs-actions.pod:164
4196 msgid "guestfs_add_drive_with_if"
4197 msgstr ""
4198
4199 # type: verbatim
4200 #: ../src/guestfs-actions.pod:166
4201 #, no-wrap
4202 msgid ""
4203 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
4204 "\t\tconst char *filename,\n"
4205 "\t\tconst char *iface);\n"
4206 "\n"
4207 msgstr ""
4208
4209 # type: textblock
4210 #: ../src/guestfs-actions.pod:170
4211 msgid ""
4212 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4213 "QEMU interface emulation to use at run time."
4214 msgstr ""
4215
4216 # type: =head2
4217 #: ../src/guestfs-actions.pod:182
4218 msgid "guestfs_aug_clear"
4219 msgstr ""
4220
4221 # type: verbatim
4222 #: ../src/guestfs-actions.pod:184
4223 #, no-wrap
4224 msgid ""
4225 " int guestfs_aug_clear (guestfs_h *g,\n"
4226 "\t\tconst char *augpath);\n"
4227 "\n"
4228 msgstr ""
4229
4230 # type: textblock
4231 #: ../src/guestfs-actions.pod:187 ../fish/guestfish-actions.pod:142
4232 msgid ""
4233 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4234 "L<augtool(1)> C<clear> command."
4235 msgstr ""
4236
4237 # type: =head2
4238 #: ../src/guestfs-actions.pod:192
4239 msgid "guestfs_aug_close"
4240 msgstr ""
4241
4242 # type: verbatim
4243 #: ../src/guestfs-actions.pod:194
4244 #, no-wrap
4245 msgid ""
4246 " int guestfs_aug_close (guestfs_h *g);\n"
4247 "\n"
4248 msgstr ""
4249
4250 # type: textblock
4251 #: ../src/guestfs-actions.pod:196
4252 msgid ""
4253 "Close the current Augeas handle and free up any resources used by it.  After "
4254 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4255 "any other Augeas functions."
4256 msgstr ""
4257
4258 # type: =head2
4259 #: ../src/guestfs-actions.pod:203
4260 msgid "guestfs_aug_defnode"
4261 msgstr ""
4262
4263 # type: verbatim
4264 #: ../src/guestfs-actions.pod:205
4265 #, no-wrap
4266 msgid ""
4267 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
4268 "\t\tconst char *name,\n"
4269 "\t\tconst char *expr,\n"
4270 "\t\tconst char *val);\n"
4271 "\n"
4272 msgstr ""
4273
4274 # type: textblock
4275 #: ../src/guestfs-actions.pod:210 ../fish/guestfish-actions.pod:158
4276 msgid ""
4277 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4278 msgstr ""
4279
4280 # type: textblock
4281 #: ../src/guestfs-actions.pod:213
4282 msgid ""
4283 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4284 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4285 "containing that single node."
4286 msgstr ""
4287
4288 # type: textblock
4289 #: ../src/guestfs-actions.pod:217 ../fish/guestfish-actions.pod:165
4290 msgid ""
4291 "On success this returns a pair containing the number of nodes in the "
4292 "nodeset, and a boolean flag if a node was created."
4293 msgstr ""
4294
4295 # type: textblock
4296 #: ../src/guestfs-actions.pod:221
4297 msgid ""
4298 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4299 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4300 msgstr ""
4301
4302 # type: =head2
4303 #: ../src/guestfs-actions.pod:225
4304 msgid "guestfs_aug_defvar"
4305 msgstr ""
4306
4307 # type: verbatim
4308 #: ../src/guestfs-actions.pod:227
4309 #, no-wrap
4310 msgid ""
4311 " int guestfs_aug_defvar (guestfs_h *g,\n"
4312 "\t\tconst char *name,\n"
4313 "\t\tconst char *expr);\n"
4314 "\n"
4315 msgstr ""
4316
4317 # type: textblock
4318 #: ../src/guestfs-actions.pod:231 ../fish/guestfish-actions.pod:173
4319 msgid ""
4320 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4321 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4322 msgstr ""
4323
4324 # type: textblock
4325 #: ../src/guestfs-actions.pod:235 ../fish/guestfish-actions.pod:177
4326 msgid ""
4327 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4328 "evaluates to something which is not a nodeset."
4329 msgstr ""
4330
4331 # type: textblock
4332 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:379
4333 #: ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:558
4334 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:589
4335 #: ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1422
4336 #: ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1685
4337 #: ../src/guestfs-actions.pod:1716 ../src/guestfs-actions.pod:1759
4338 #: ../src/guestfs-actions.pod:1776 ../src/guestfs-actions.pod:2001
4339 #: ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2231
4340 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3708
4341 #: ../src/guestfs-actions.pod:4062 ../src/guestfs-actions.pod:4085
4342 #: ../src/guestfs-actions.pod:5184 ../src/guestfs-actions.pod:5534
4343 #: ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5554
4344 msgid "On error this function returns -1."
4345 msgstr ""
4346
4347 # type: =head2
4348 #: ../src/guestfs-actions.pod:240
4349 msgid "guestfs_aug_get"
4350 msgstr ""
4351
4352 # type: verbatim
4353 #: ../src/guestfs-actions.pod:242
4354 #, no-wrap
4355 msgid ""
4356 " char *guestfs_aug_get (guestfs_h *g,\n"
4357 "\t\tconst char *augpath);\n"
4358 "\n"
4359 msgstr ""
4360
4361 # type: textblock
4362 #: ../src/guestfs-actions.pod:245 ../fish/guestfish-actions.pod:184
4363 msgid ""
4364 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4365 "node, the C<value> is returned."
4366 msgstr ""
4367
4368 # type: textblock
4369 #: ../src/guestfs-actions.pod:248 ../src/guestfs-actions.pod:676
4370 #: ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:748
4371 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:852
4372 #: ../src/guestfs-actions.pod:965 ../src/guestfs-actions.pod:994
4373 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1024
4374 #: ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1299
4375 #: ../src/guestfs-actions.pod:1408 ../src/guestfs-actions.pod:1553
4376 #: ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1643
4377 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1795
4378 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:2115
4379 #: ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:2281
4380 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2631
4381 #: ../src/guestfs-actions.pod:2928 ../src/guestfs-actions.pod:3069
4382 #: ../src/guestfs-actions.pod:3165 ../src/guestfs-actions.pod:3723
4383 #: ../src/guestfs-actions.pod:3899 ../src/guestfs-actions.pod:4040
4384 #: ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4244
4385 #: ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4733
4386 #: ../src/guestfs-actions.pod:4747 ../src/guestfs-actions.pod:4768
4387 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5343
4388 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5506
4389 #: ../src/guestfs-actions.pod:5736
4390 msgid ""
4391 "This function returns a string, or NULL on error.  I<The caller must free "
4392 "the returned string after use>."
4393 msgstr ""
4394
4395 # type: =head2
4396 #: ../src/guestfs-actions.pod:251
4397 msgid "guestfs_aug_init"
4398 msgstr ""
4399
4400 # type: verbatim
4401 #: ../src/guestfs-actions.pod:253
4402 #, no-wrap
4403 msgid ""
4404 " int guestfs_aug_init (guestfs_h *g,\n"
4405 "\t\tconst char *root,\n"
4406 "\t\tint flags);\n"
4407 "\n"
4408 msgstr ""
4409
4410 # type: textblock
4411 #: ../src/guestfs-actions.pod:257 ../fish/guestfish-actions.pod:191
4412 msgid ""
4413 "Create a new Augeas handle for editing configuration files.  If there was "
4414 "any previous Augeas handle associated with this guestfs session, then it is "
4415 "closed."
4416 msgstr ""
4417
4418 # type: textblock
4419 #: ../src/guestfs-actions.pod:261
4420 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4421 msgstr ""
4422
4423 # type: textblock
4424 #: ../src/guestfs-actions.pod:264 ../fish/guestfish-actions.pod:198
4425 msgid ""
4426 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4427 msgstr ""
4428
4429 # type: textblock
4430 #: ../src/guestfs-actions.pod:267 ../fish/guestfish-actions.pod:201
4431 msgid ""
4432 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4433 "logical I<or> of the following integers:"
4434 msgstr ""
4435
4436 # type: =item
4437 #: ../src/guestfs-actions.pod:273 ../fish/guestfish-actions.pod:207
4438 msgid "C<AUG_SAVE_BACKUP> = 1"
4439 msgstr ""
4440
4441 # type: textblock
4442 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:209
4443 msgid "Keep the original file with a C<.augsave> extension."
4444 msgstr ""
4445
4446 # type: =item
4447 #: ../src/guestfs-actions.pod:277 ../fish/guestfish-actions.pod:211
4448 msgid "C<AUG_SAVE_NEWFILE> = 2"
4449 msgstr ""
4450
4451 # type: textblock
4452 #: ../src/guestfs-actions.pod:279 ../fish/guestfish-actions.pod:213
4453 msgid ""
4454 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4455 "original.  Overrides C<AUG_SAVE_BACKUP>."
4456 msgstr ""
4457
4458 # type: =item
4459 #: ../src/guestfs-actions.pod:282 ../fish/guestfish-actions.pod:216
4460 msgid "C<AUG_TYPE_CHECK> = 4"
4461 msgstr ""
4462
4463 # type: textblock
4464 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:218
4465 msgid "Typecheck lenses (can be expensive)."
4466 msgstr ""
4467
4468 # type: =item
4469 #: ../src/guestfs-actions.pod:286 ../fish/guestfish-actions.pod:220
4470 msgid "C<AUG_NO_STDINC> = 8"
4471 msgstr ""
4472
4473 # type: textblock
4474 #: ../src/guestfs-actions.pod:288 ../fish/guestfish-actions.pod:222
4475 msgid "Do not use standard load path for modules."
4476 msgstr ""
4477
4478 # type: =item
4479 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:224
4480 msgid "C<AUG_SAVE_NOOP> = 16"
4481 msgstr ""
4482
4483 # type: textblock
4484 #: ../src/guestfs-actions.pod:292 ../fish/guestfish-actions.pod:226
4485 msgid "Make save a no-op, just record what would have been changed."
4486 msgstr ""
4487
4488 # type: =item
4489 #: ../src/guestfs-actions.pod:294 ../fish/guestfish-actions.pod:228
4490 msgid "C<AUG_NO_LOAD> = 32"
4491 msgstr ""
4492
4493 # type: textblock
4494 #: ../src/guestfs-actions.pod:296
4495 msgid "Do not load the tree in C<guestfs_aug_init>."
4496 msgstr ""
4497
4498 # type: textblock
4499 #: ../src/guestfs-actions.pod:300
4500 msgid "To close the handle, you can call C<guestfs_aug_close>."
4501 msgstr ""
4502
4503 # type: textblock
4504 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:236
4505 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4506 msgstr ""
4507
4508 # type: =head2
4509 #: ../src/guestfs-actions.pod:306
4510 msgid "guestfs_aug_insert"
4511 msgstr ""
4512
4513 # type: verbatim
4514 #: ../src/guestfs-actions.pod:308
4515 #, no-wrap
4516 msgid ""
4517 " int guestfs_aug_insert (guestfs_h *g,\n"
4518 "\t\tconst char *augpath,\n"
4519 "\t\tconst char *label,\n"
4520 "\t\tint before);\n"
4521 "\n"
4522 msgstr ""
4523
4524 # type: textblock
4525 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:242
4526 msgid ""
4527 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4528 "or after C<path> (depending on the boolean flag C<before>)."
4529 msgstr ""
4530
4531 # type: textblock
4532 #: ../src/guestfs-actions.pod:317 ../fish/guestfish-actions.pod:246
4533 msgid ""
4534 "C<path> must match exactly one existing node in the tree, and C<label> must "
4535 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4536 msgstr ""
4537
4538 # type: =head2
4539 #: ../src/guestfs-actions.pod:323
4540 msgid "guestfs_aug_load"
4541 msgstr ""
4542
4543 # type: verbatim
4544 #: ../src/guestfs-actions.pod:325
4545 #, no-wrap
4546 msgid ""
4547 " int guestfs_aug_load (guestfs_h *g);\n"
4548 "\n"
4549 msgstr ""
4550
4551 # type: textblock
4552 #: ../src/guestfs-actions.pod:327 ../fish/guestfish-actions.pod:254
4553 msgid "Load files into the tree."
4554 msgstr ""
4555
4556 # type: textblock
4557 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:256
4558 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4559 msgstr ""
4560
4561 # type: =head2
4562 #: ../src/guestfs-actions.pod:334
4563 msgid "guestfs_aug_ls"
4564 msgstr ""
4565
4566 # type: verbatim
4567 #: ../src/guestfs-actions.pod:336
4568 #, no-wrap
4569 msgid ""
4570 " char **guestfs_aug_ls (guestfs_h *g,\n"
4571 "\t\tconst char *augpath);\n"
4572 "\n"
4573 msgstr ""
4574
4575 # type: textblock
4576 #: ../src/guestfs-actions.pod:339
4577 msgid ""
4578 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4579 "sorting the resulting nodes into alphabetical order."
4580 msgstr ""
4581
4582 # type: textblock
4583 #: ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:355
4584 #: ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:868
4585 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1163
4586 #: ../src/guestfs-actions.pod:1251 ../src/guestfs-actions.pod:1267
4587 #: ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1832
4588 #: ../src/guestfs-actions.pod:1845 ../src/guestfs-actions.pod:1861
4589 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:1919
4590 #: ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021
4591 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2355
4592 #: ../src/guestfs-actions.pod:2560 ../src/guestfs-actions.pod:2616
4593 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:3046
4594 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:4017
4595 #: ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:4232
4596 #: ../src/guestfs-actions.pod:4781 ../src/guestfs-actions.pod:4830
4597 #: ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:4998
4598 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5419
4599 #: ../src/guestfs-actions.pod:5436 ../src/guestfs-actions.pod:5474
4600 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5626
4601 #: ../src/guestfs-actions.pod:5699 ../src/guestfs-actions.pod:5715
4602 #: ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:5771
4603 msgid ""
4604 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4605 ">), or NULL if there was an error.  I<The caller must free the strings and "
4606 "the array after use>."
4607 msgstr ""
4608
4609 # type: =head2
4610 #: ../src/guestfs-actions.pod:346
4611 msgid "guestfs_aug_match"
4612 msgstr ""
4613
4614 # type: verbatim
4615 #: ../src/guestfs-actions.pod:348
4616 #, no-wrap
4617 msgid ""
4618 " char **guestfs_aug_match (guestfs_h *g,\n"
4619 "\t\tconst char *augpath);\n"
4620 "\n"
4621 msgstr ""
4622
4623 # type: textblock
4624 #: ../src/guestfs-actions.pod:351 ../fish/guestfish-actions.pod:270
4625 msgid ""
4626 "Returns a list of paths which match the path expression C<path>.  The "
4627 "returned paths are sufficiently qualified so that they match exactly one "
4628 "node in the current tree."
4629 msgstr ""
4630
4631 # type: =head2
4632 #: ../src/guestfs-actions.pod:359
4633 msgid "guestfs_aug_mv"
4634 msgstr ""
4635
4636 # type: verbatim
4637 #: ../src/guestfs-actions.pod:361
4638 #, no-wrap
4639 msgid ""
4640 " int guestfs_aug_mv (guestfs_h *g,\n"
4641 "\t\tconst char *src,\n"
4642 "\t\tconst char *dest);\n"
4643 "\n"
4644 msgstr ""
4645
4646 # type: textblock
4647 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:278
4648 msgid ""
4649 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4650 "C<dest> is overwritten if it exists."
4651 msgstr ""
4652
4653 # type: =head2
4654 #: ../src/guestfs-actions.pod:370
4655 msgid "guestfs_aug_rm"
4656 msgstr ""
4657
4658 # type: verbatim
4659 #: ../src/guestfs-actions.pod:372
4660 #, no-wrap
4661 msgid ""
4662 " int guestfs_aug_rm (guestfs_h *g,\n"
4663 "\t\tconst char *augpath);\n"
4664 "\n"
4665 msgstr ""
4666
4667 # type: textblock
4668 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:285
4669 msgid "Remove C<path> and all of its children."
4670 msgstr ""
4671
4672 # type: textblock
4673 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:287
4674 msgid "On success this returns the number of entries which were removed."
4675 msgstr ""
4676
4677 # type: =head2
4678 #: ../src/guestfs-actions.pod:381
4679 msgid "guestfs_aug_save"
4680 msgstr ""
4681
4682 # type: verbatim
4683 #: ../src/guestfs-actions.pod:383
4684 #, no-wrap
4685 msgid ""
4686 " int guestfs_aug_save (guestfs_h *g);\n"
4687 "\n"
4688 msgstr ""
4689
4690 # type: textblock
4691 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:293
4692 msgid "This writes all pending changes to disk."
4693 msgstr ""
4694
4695 # type: textblock
4696 #: ../src/guestfs-actions.pod:387
4697 msgid ""
4698 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4699 "are saved."
4700 msgstr ""
4701
4702 # type: =head2
4703 #: ../src/guestfs-actions.pod:392
4704 msgid "guestfs_aug_set"
4705 msgstr ""
4706
4707 # type: verbatim
4708 #: ../src/guestfs-actions.pod:394
4709 #, no-wrap
4710 msgid ""
4711 " int guestfs_aug_set (guestfs_h *g,\n"
4712 "\t\tconst char *augpath,\n"
4713 "\t\tconst char *val);\n"
4714 "\n"
4715 msgstr ""
4716
4717 # type: textblock
4718 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:302
4719 msgid "Set the value associated with C<path> to C<val>."
4720 msgstr ""
4721
4722 # type: textblock
4723 #: ../src/guestfs-actions.pod:400
4724 msgid ""
4725 "In the Augeas API, it is possible to clear a node by setting the value to "
4726 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4727 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4728 msgstr ""
4729
4730 # type: =head2
4731 #: ../src/guestfs-actions.pod:407
4732 msgid "guestfs_available"
4733 msgstr ""
4734
4735 # type: verbatim
4736 #: ../src/guestfs-actions.pod:409
4737 #, no-wrap
4738 msgid ""
4739 " int guestfs_available (guestfs_h *g,\n"
4740 "\t\tchar *const *groups);\n"
4741 "\n"
4742 msgstr ""
4743
4744 # type: textblock
4745 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:313
4746 msgid ""
4747 "This command is used to check the availability of some groups of "
4748 "functionality in the appliance, which not all builds of the libguestfs "
4749 "appliance will be able to provide."
4750 msgstr ""
4751
4752 # type: textblock
4753 #: ../src/guestfs-actions.pod:416
4754 msgid ""
4755 "The libguestfs groups, and the functions that those groups correspond to, "
4756 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4757 "runtime by calling C<guestfs_available_all_groups>."
4758 msgstr ""
4759
4760 # type: textblock
4761 #: ../src/guestfs-actions.pod:421 ../fish/guestfish-actions.pod:322
4762 msgid ""
4763 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4764 "\"]> would check for the availability of the Linux inotify functions and "
4765 "Augeas (configuration file editing) functions."
4766 msgstr ""
4767
4768 # type: textblock
4769 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:327
4770 msgid "The command returns no error if I<all> requested groups are available."
4771 msgstr ""
4772
4773 # type: textblock
4774 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:329
4775 msgid ""
4776 "It fails with an error if one or more of the requested groups is unavailable "
4777 "in the appliance."
4778 msgstr ""
4779
4780 # type: textblock
4781 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:332
4782 msgid ""
4783 "If an unknown group name is included in the list of groups then an error is "
4784 "always returned."
4785 msgstr ""
4786
4787 # type: textblock
4788 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:335
4789 msgid "I<Notes:>"
4790 msgstr ""
4791
4792 # type: textblock
4793 #: ../src/guestfs-actions.pod:440
4794 msgid "You must call C<guestfs_launch> before calling this function."
4795 msgstr ""
4796
4797 # type: textblock
4798 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:343
4799 msgid ""
4800 "The reason is because we don't know what groups are supported by the "
4801 "appliance/daemon until it is running and can be queried."
4802 msgstr ""
4803
4804 # type: textblock
4805 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:349
4806 msgid ""
4807 "If a group of functions is available, this does not necessarily mean that "
4808 "they will work.  You still have to check for errors when calling individual "
4809 "API functions even if they are available."
4810 msgstr ""
4811
4812 # type: textblock
4813 #: ../src/guestfs-actions.pod:455 ../fish/guestfish-actions.pod:356
4814 msgid ""
4815 "It is usually the job of distro packagers to build complete functionality "
4816 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4817 "with all requirements satisfied, will support everything."
4818 msgstr ""
4819
4820 # type: textblock
4821 #: ../src/guestfs-actions.pod:462
4822 msgid ""
4823 "This call was added in version C<1.0.80>.  In previous versions of "
4824 "libguestfs all you could do would be to speculatively execute a command to "
4825 "find out if the daemon implemented it.  See also C<guestfs_version>."
4826 msgstr ""
4827
4828 # type: =head2
4829 #: ../src/guestfs-actions.pod:471
4830 msgid "guestfs_available_all_groups"
4831 msgstr ""
4832
4833 # type: verbatim
4834 #: ../src/guestfs-actions.pod:473
4835 #, no-wrap
4836 msgid ""
4837 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4838 "\n"
4839 msgstr ""
4840
4841 # type: textblock
4842 #: ../src/guestfs-actions.pod:475
4843 msgid ""
4844 "This command returns a list of all optional groups that this daemon knows "
4845 "about.  Note this returns both supported and unsupported groups.  To find "
4846 "out which ones the daemon can actually support you have to call "
4847 "C<guestfs_available> on each member of the returned list."
4848 msgstr ""
4849
4850 # type: textblock
4851 #: ../src/guestfs-actions.pod:481
4852 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4853 msgstr ""
4854
4855 # type: =head2
4856 #: ../src/guestfs-actions.pod:487
4857 msgid "guestfs_base64_in"
4858 msgstr ""
4859
4860 # type: verbatim
4861 #: ../src/guestfs-actions.pod:489
4862 #, no-wrap
4863 msgid ""
4864 " int guestfs_base64_in (guestfs_h *g,\n"
4865 "\t\tconst char *base64file,\n"
4866 "\t\tconst char *filename);\n"
4867 "\n"
4868 msgstr ""
4869
4870 # type: textblock
4871 #: ../src/guestfs-actions.pod:493 ../fish/guestfish-actions.pod:386
4872 msgid ""
4873 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4874 msgstr ""
4875
4876 # type: =head2
4877 #: ../src/guestfs-actions.pod:498
4878 msgid "guestfs_base64_out"
4879 msgstr ""
4880
4881 # type: verbatim
4882 #: ../src/guestfs-actions.pod:500
4883 #, no-wrap
4884 msgid ""
4885 " int guestfs_base64_out (guestfs_h *g,\n"
4886 "\t\tconst char *filename,\n"
4887 "\t\tconst char *base64file);\n"
4888 "\n"
4889 msgstr ""
4890
4891 # type: textblock
4892 #: ../src/guestfs-actions.pod:504 ../fish/guestfish-actions.pod:395
4893 msgid ""
4894 "This command downloads the contents of C<filename>, writing it out to local "
4895 "file C<base64file> encoded as base64."
4896 msgstr ""
4897
4898 # type: =head2
4899 #: ../src/guestfs-actions.pod:509
4900 msgid "guestfs_blockdev_flushbufs"
4901 msgstr ""
4902
4903 # type: verbatim
4904 #: ../src/guestfs-actions.pod:511
4905 #, no-wrap
4906 msgid ""
4907 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4908 "\t\tconst char *device);\n"
4909 "\n"
4910 msgstr ""
4911
4912 # type: textblock
4913 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:404
4914 msgid ""
4915 "This tells the kernel to flush internal buffers associated with C<device>."
4916 msgstr ""
4917
4918 # type: textblock
4919 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531
4920 #: ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:556
4921 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:587
4922 #: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:613
4923 #: ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:635
4924 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418
4925 #: ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437
4926 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462
4927 #: ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481
4928 #: ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
4929 msgid "This uses the L<blockdev(8)> command."
4930 msgstr ""
4931
4932 # type: =head2
4933 #: ../src/guestfs-actions.pod:521
4934 msgid "guestfs_blockdev_getbsz"
4935 msgstr ""
4936
4937 # type: verbatim
4938 #: ../src/guestfs-actions.pod:523
4939 #, no-wrap
4940 msgid ""
4941 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4942 "\t\tconst char *device);\n"
4943 "\n"
4944 msgstr ""
4945
4946 # type: textblock
4947 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:413
4948 msgid "This returns the block size of a device."
4949 msgstr ""
4950
4951 # type: textblock
4952 #: ../src/guestfs-actions.pod:528 ../src/guestfs-actions.pod:610
4953 #: ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4954 msgid ""
4955 "(Note this is different from both I<size in blocks> and I<filesystem block "
4956 "size>)."
4957 msgstr ""
4958
4959 # type: =head2
4960 #: ../src/guestfs-actions.pod:535
4961 msgid "guestfs_blockdev_getro"
4962 msgstr ""
4963
4964 # type: verbatim
4965 #: ../src/guestfs-actions.pod:537
4966 #, no-wrap
4967 msgid ""
4968 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4969 "\t\tconst char *device);\n"
4970 "\n"
4971 msgstr ""
4972
4973 # type: textblock
4974 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:424
4975 msgid ""
4976 "Returns a boolean indicating if the block device is read-only (true if read-"
4977 "only, false if not)."
4978 msgstr ""
4979
4980 # type: textblock
4981 #: ../src/guestfs-actions.pod:545 ../src/guestfs-actions.pod:1181
4982 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1625
4983 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1693
4984 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1748
4985 #: ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1784
4986 #: ../src/guestfs-actions.pod:2369 ../src/guestfs-actions.pod:2380
4987 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2403
4988 #: ../src/guestfs-actions.pod:2416 ../src/guestfs-actions.pod:2428
4989 #: ../src/guestfs-actions.pod:2441 ../src/guestfs-actions.pod:2452
4990 #: ../src/guestfs-actions.pod:2462 ../src/guestfs-actions.pod:2473
4991 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:2497
4992 #: ../src/guestfs-actions.pod:3693
4993 msgid "This function returns a C truth value on success or -1 on error."
4994 msgstr ""
4995
4996 # type: =head2
4997 #: ../src/guestfs-actions.pod:547
4998 msgid "guestfs_blockdev_getsize64"
4999 msgstr ""
5000
5001 # type: verbatim
5002 #: ../src/guestfs-actions.pod:549
5003 #, no-wrap
5004 msgid ""
5005 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5006 "\t\tconst char *device);\n"
5007 "\n"
5008 msgstr ""
5009
5010 # type: textblock
5011 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:433
5012 msgid "This returns the size of the device in bytes."
5013 msgstr ""
5014
5015 # type: textblock
5016 #: ../src/guestfs-actions.pod:554
5017 msgid "See also C<guestfs_blockdev_getsz>."
5018 msgstr ""
5019
5020 # type: =head2
5021 #: ../src/guestfs-actions.pod:560
5022 msgid "guestfs_blockdev_getss"
5023 msgstr ""
5024
5025 # type: verbatim
5026 #: ../src/guestfs-actions.pod:562
5027 #, no-wrap
5028 msgid ""
5029 " int guestfs_blockdev_getss (guestfs_h *g,\n"
5030 "\t\tconst char *device);\n"
5031 "\n"
5032 msgstr ""
5033
5034 # type: textblock
5035 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:443
5036 msgid ""
5037 "This returns the size of sectors on a block device.  Usually 512, but can be "
5038 "larger for modern devices."
5039 msgstr ""
5040
5041 # type: textblock
5042 #: ../src/guestfs-actions.pod:568
5043 msgid ""
5044 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5045 "that)."
5046 msgstr ""
5047
5048 # type: =head2
5049 #: ../src/guestfs-actions.pod:575
5050 msgid "guestfs_blockdev_getsz"
5051 msgstr ""
5052
5053 # type: verbatim
5054 #: ../src/guestfs-actions.pod:577
5055 #, no-wrap
5056 msgid ""
5057 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
5058 "\t\tconst char *device);\n"
5059 "\n"
5060 msgstr ""
5061
5062 # type: textblock
5063 #: ../src/guestfs-actions.pod:580 ../fish/guestfish-actions.pod:455
5064 msgid ""
5065 "This returns the size of the device in units of 512-byte sectors (even if "
5066 "the sectorsize isn't 512 bytes ... weird)."
5067 msgstr ""
5068
5069 # type: textblock
5070 #: ../src/guestfs-actions.pod:583
5071 msgid ""
5072 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5073 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5074 msgstr ""
5075
5076 # type: =head2
5077 #: ../src/guestfs-actions.pod:591
5078 msgid "guestfs_blockdev_rereadpt"
5079 msgstr ""
5080
5081 # type: verbatim
5082 #: ../src/guestfs-actions.pod:593
5083 #, no-wrap
5084 msgid ""
5085 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5086 "\t\tconst char *device);\n"
5087 "\n"
5088 msgstr ""
5089
5090 # type: textblock
5091 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:468
5092 msgid "Reread the partition table on C<device>."
5093 msgstr ""
5094
5095 # type: =head2
5096 #: ../src/guestfs-actions.pod:602
5097 msgid "guestfs_blockdev_setbsz"
5098 msgstr ""
5099
5100 # type: verbatim
5101 #: ../src/guestfs-actions.pod:604
5102 #, no-wrap
5103 msgid ""
5104 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
5105 "\t\tconst char *device,\n"
5106 "\t\tint blocksize);\n"
5107 "\n"
5108 msgstr ""
5109
5110 # type: textblock
5111 #: ../src/guestfs-actions.pod:608 ../fish/guestfish-actions.pod:476
5112 msgid "This sets the block size of a device."
5113 msgstr ""
5114
5115 # type: =head2
5116 #: ../src/guestfs-actions.pod:617
5117 msgid "guestfs_blockdev_setro"
5118 msgstr ""
5119
5120 # type: verbatim
5121 #: ../src/guestfs-actions.pod:619
5122 #, no-wrap
5123 msgid ""
5124 " int guestfs_blockdev_setro (guestfs_h *g,\n"
5125 "\t\tconst char *device);\n"
5126 "\n"
5127 msgstr ""
5128
5129 # type: textblock
5130 #: ../src/guestfs-actions.pod:622 ../fish/guestfish-actions.pod:487
5131 msgid "Sets the block device named C<device> to read-only."
5132 msgstr ""
5133
5134 # type: =head2
5135 #: ../src/guestfs-actions.pod:628
5136 msgid "guestfs_blockdev_setrw"
5137 msgstr ""
5138
5139 # type: verbatim
5140 #: ../src/guestfs-actions.pod:630
5141 #, no-wrap
5142 msgid ""
5143 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
5144 "\t\tconst char *device);\n"
5145 "\n"
5146 msgstr ""
5147
5148 # type: textblock
5149 #: ../src/guestfs-actions.pod:633 ../fish/guestfish-actions.pod:495
5150 msgid "Sets the block device named C<device> to read-write."
5151 msgstr ""
5152
5153 # type: =head2
5154 #: ../src/guestfs-actions.pod:639
5155 msgid "guestfs_case_sensitive_path"
5156 msgstr ""
5157
5158 # type: verbatim
5159 #: ../src/guestfs-actions.pod:641
5160 #, no-wrap
5161 msgid ""
5162 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
5163 "\t\tconst char *path);\n"
5164 "\n"
5165 msgstr ""
5166
5167 # type: textblock
5168 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:503
5169 msgid ""
5170 "This can be used to resolve case insensitive paths on a filesystem which is "
5171 "case sensitive.  The use case is to resolve paths which you have read from "
5172 "Windows configuration files or the Windows Registry, to the true path."
5173 msgstr ""
5174
5175 # type: textblock
5176 #: ../src/guestfs-actions.pod:649 ../fish/guestfish-actions.pod:508
5177 msgid ""
5178 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5179 "(and probably others), which is that although the underlying filesystem is "
5180 "case-insensitive, the driver exports the filesystem to Linux as case-"
5181 "sensitive."
5182 msgstr ""
5183
5184 # type: textblock
5185 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:513
5186 msgid ""
5187 "One consequence of this is that special directories such as C<c:\\windows> "
5188 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5189 "precise details of how they were created.  In Windows itself this would not "
5190 "be a problem."
5191 msgstr ""
5192
5193 # type: textblock
5194 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:519
5195 msgid ""
5196 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5197 "#posixfilenames1>"
5198 msgstr ""
5199
5200 # type: textblock
5201 #: ../src/guestfs-actions.pod:663 ../fish/guestfish-actions.pod:522
5202 msgid ""
5203 "This function resolves the true case of each element in the path and returns "
5204 "the case-sensitive path."
5205 msgstr ""
5206
5207 # type: textblock
5208 #: ../src/guestfs-actions.pod:666
5209 msgid ""
5210 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5211 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5212 "how the directories were originally created under Windows)."
5213 msgstr ""
5214
5215 # type: textblock
5216 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:530
5217 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5218 msgstr ""
5219
5220 # type: textblock
5221 #: ../src/guestfs-actions.pod:674
5222 msgid "See also C<guestfs_realpath>."
5223 msgstr ""
5224
5225 # type: =head2
5226 #: ../src/guestfs-actions.pod:679
5227 msgid "guestfs_cat"
5228 msgstr ""
5229
5230 # type: verbatim
5231 #: ../src/guestfs-actions.pod:681
5232 #, no-wrap
5233 msgid ""
5234 " char *guestfs_cat (guestfs_h *g,\n"
5235 "\t\tconst char *path);\n"
5236 "\n"
5237 msgstr ""
5238
5239 # type: textblock
5240 #: ../src/guestfs-actions.pod:684 ../src/guestfs-actions.pod:4116
5241 #: ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3161
5242 msgid "Return the contents of the file named C<path>."
5243 msgstr ""
5244
5245 # type: textblock
5246 #: ../src/guestfs-actions.pod:686
5247 msgid ""
5248 "Note that this function cannot correctly handle binary files (specifically, "
5249 "files containing C<\\0> character which is treated as end of string).  For "
5250 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5251 "functions which have a more complex interface."
5252 msgstr ""
5253
5254 # type: textblock
5255 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:855
5256 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1151
5257 #: ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1255
5258 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1502
5259 #: ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:1865
5260 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1923
5261 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:1963
5262 #: ../src/guestfs-actions.pod:3933 ../src/guestfs-actions.pod:3956
5263 #: ../src/guestfs-actions.pod:4064 ../src/guestfs-actions.pod:4087
5264 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4834
5265 #: ../src/guestfs-actions.pod:4886 ../src/guestfs-actions.pod:5002
5266 #: ../src/guestfs-actions.pod:5023 ../src/guestfs-actions.pod:5568
5267 #: ../src/guestfs-actions.pod:5591 ../src/guestfs-actions.pod:5614
5268 #: ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:5703
5269 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5759
5270 #: ../src/guestfs-actions.pod:5775 ../fish/guestfish-actions.pod:546
5271 #: ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693
5272 #: ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904
5273 #: ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981
5274 #: ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451
5275 #: ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489
5276 #: ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514
5277 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3031
5278 #: ../fish/guestfish-actions.pod:3046 ../fish/guestfish-actions.pod:3122
5279 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3154
5280 #: ../fish/guestfish-actions.pod:3737 ../fish/guestfish-actions.pod:3783
5281 #: ../fish/guestfish-actions.pod:3868 ../fish/guestfish-actions.pod:3883
5282 #: ../fish/guestfish-actions.pod:4293 ../fish/guestfish-actions.pod:4311
5283 #: ../fish/guestfish-actions.pod:4328 ../fish/guestfish-actions.pod:4338
5284 #: ../fish/guestfish-actions.pod:4386 ../fish/guestfish-actions.pod:4396
5285 #: ../fish/guestfish-actions.pod:4425 ../fish/guestfish-actions.pod:4435
5286 msgid ""
5287 "Because of the message protocol, there is a transfer limit of somewhere "
5288 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5289 msgstr ""
5290
5291 # type: =head2
5292 #: ../src/guestfs-actions.pod:697
5293 msgid "guestfs_checksum"
5294 msgstr ""
5295
5296 # type: verbatim
5297 #: ../src/guestfs-actions.pod:699
5298 #, no-wrap
5299 msgid ""
5300 " char *guestfs_checksum (guestfs_h *g,\n"
5301 "\t\tconst char *csumtype,\n"
5302 "\t\tconst char *path);\n"
5303 "\n"
5304 msgstr ""
5305
5306 # type: textblock
5307 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:553
5308 msgid ""
5309 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5310 msgstr ""
5311
5312 # type: textblock
5313 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:556
5314 msgid ""
5315 "The type of checksum to compute is given by the C<csumtype> parameter which "
5316 "must have one of the following values:"
5317 msgstr ""
5318
5319 # type: =item
5320 #: ../src/guestfs-actions.pod:711 ../fish/guestfish-actions.pod:561
5321 msgid "C<crc>"
5322 msgstr ""
5323
5324 # type: textblock
5325 #: ../src/guestfs-actions.pod:713 ../fish/guestfish-actions.pod:563
5326 msgid ""
5327 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5328 "C<cksum> command."
5329 msgstr ""
5330
5331 # type: =item
5332 #: ../src/guestfs-actions.pod:716 ../fish/guestfish-actions.pod:566
5333 msgid "C<md5>"
5334 msgstr ""
5335
5336 # type: textblock
5337 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:568
5338 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5339 msgstr ""
5340
5341 # type: =item
5342 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:570
5343 msgid "C<sha1>"
5344 msgstr ""
5345
5346 # type: textblock
5347 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:572
5348 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5349 msgstr ""
5350
5351 # type: =item
5352 #: ../src/guestfs-actions.pod:724 ../fish/guestfish-actions.pod:574
5353 msgid "C<sha224>"
5354 msgstr ""
5355
5356 # type: textblock
5357 #: ../src/guestfs-actions.pod:726 ../fish/guestfish-actions.pod:576
5358 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5359 msgstr ""
5360
5361 # type: =item
5362 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:578
5363 msgid "C<sha256>"
5364 msgstr ""
5365
5366 # type: textblock
5367 #: ../src/guestfs-actions.pod:730 ../fish/guestfish-actions.pod:580
5368 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5369 msgstr ""
5370
5371 # type: =item
5372 #: ../src/guestfs-actions.pod:732 ../fish/guestfish-actions.pod:582
5373 msgid "C<sha384>"
5374 msgstr ""
5375
5376 # type: textblock
5377 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:584
5378 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5379 msgstr ""
5380
5381 # type: =item
5382 #: ../src/guestfs-actions.pod:736 ../fish/guestfish-actions.pod:586
5383 msgid "C<sha512>"
5384 msgstr ""
5385
5386 # type: textblock
5387 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:588
5388 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5389 msgstr ""
5390
5391 # type: textblock
5392 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:592
5393 msgid "The checksum is returned as a printable string."
5394 msgstr ""
5395
5396 # type: textblock
5397 #: ../src/guestfs-actions.pod:744
5398 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5399 msgstr ""
5400
5401 # type: textblock
5402 #: ../src/guestfs-actions.pod:746
5403 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5404 msgstr ""
5405
5406 # type: =head2
5407 #: ../src/guestfs-actions.pod:751
5408 msgid "guestfs_checksum_device"
5409 msgstr ""
5410
5411 # type: verbatim
5412 #: ../src/guestfs-actions.pod:753
5413 #, no-wrap
5414 msgid ""
5415 " char *guestfs_checksum_device (guestfs_h *g,\n"
5416 "\t\tconst char *csumtype,\n"
5417 "\t\tconst char *device);\n"
5418 "\n"
5419 msgstr ""
5420
5421 # type: textblock
5422 #: ../src/guestfs-actions.pod:757
5423 msgid ""
5424 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5425 "device named C<device>.  For the types of checksums supported see the "
5426 "C<guestfs_checksum> command."
5427 msgstr ""
5428
5429 # type: =head2
5430 #: ../src/guestfs-actions.pod:764
5431 msgid "guestfs_checksums_out"
5432 msgstr ""
5433
5434 # type: verbatim
5435 #: ../src/guestfs-actions.pod:766
5436 #, no-wrap
5437 msgid ""
5438 " int guestfs_checksums_out (guestfs_h *g,\n"
5439 "\t\tconst char *csumtype,\n"
5440 "\t\tconst char *directory,\n"
5441 "\t\tconst char *sumsfile);\n"
5442 "\n"
5443 msgstr ""
5444
5445 # type: textblock
5446 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:610
5447 msgid ""
5448 "This command computes the checksums of all regular files in C<directory> and "
5449 "then emits a list of those checksums to the local output file C<sumsfile>."
5450 msgstr ""
5451
5452 # type: textblock
5453 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:614
5454 msgid ""
5455 "This can be used for verifying the integrity of a virtual machine.  However "
5456 "to be properly secure you should pay attention to the output of the checksum "
5457 "command (it uses the ones from GNU coreutils).  In particular when the "
5458 "filename is not printable, coreutils uses a special backslash syntax.  For "
5459 "more information, see the GNU coreutils info file."
5460 msgstr ""
5461
5462 # type: =head2
5463 #: ../src/guestfs-actions.pod:785
5464 msgid "guestfs_chmod"
5465 msgstr ""
5466
5467 # type: verbatim
5468 #: ../src/guestfs-actions.pod:787
5469 #, no-wrap
5470 msgid ""
5471 " int guestfs_chmod (guestfs_h *g,\n"
5472 "\t\tint mode,\n"
5473 "\t\tconst char *path);\n"
5474 "\n"
5475 msgstr ""
5476
5477 # type: textblock
5478 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:628
5479 msgid ""
5480 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5481 "supported."
5482 msgstr ""
5483
5484 # type: textblock
5485 #: ../src/guestfs-actions.pod:794 ../fish/guestfish-actions.pod:631
5486 msgid ""
5487 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5488 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5489 "C<700>."
5490 msgstr ""
5491
5492 # type: textblock
5493 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:3261
5494 #: ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:3380
5495 #: ../src/guestfs-actions.pod:3396 ../fish/guestfish-actions.pod:635
5496 #: ../fish/guestfish-actions.pod:2521 ../fish/guestfish-actions.pod:2606
5497 #: ../fish/guestfish-actions.pod:2616 ../fish/guestfish-actions.pod:2626
5498 msgid "The mode actually set is affected by the umask."
5499 msgstr ""
5500
5501 # type: =head2
5502 #: ../src/guestfs-actions.pod:802
5503 msgid "guestfs_chown"
5504 msgstr ""
5505
5506 # type: verbatim
5507 #: ../src/guestfs-actions.pod:804
5508 #, no-wrap
5509 msgid ""
5510 " int guestfs_chown (guestfs_h *g,\n"
5511 "\t\tint owner,\n"
5512 "\t\tint group,\n"
5513 "\t\tconst char *path);\n"
5514 "\n"
5515 msgstr ""
5516
5517 # type: textblock
5518 #: ../src/guestfs-actions.pod:809 ../fish/guestfish-actions.pod:641
5519 msgid "Change the file owner to C<owner> and group to C<group>."
5520 msgstr ""
5521
5522 # type: textblock
5523 #: ../src/guestfs-actions.pod:811 ../src/guestfs-actions.pod:2530
5524 #: ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:1999
5525 msgid ""
5526 "Only numeric uid and gid are supported.  If you want to use names, you will "
5527 "need to locate and parse the password file yourself (Augeas support makes "
5528 "this relatively easy)."
5529 msgstr ""
5530
5531 # type: =head2
5532 #: ../src/guestfs-actions.pod:817
5533 msgid "guestfs_command"
5534 msgstr ""
5535
5536 # type: verbatim
5537 #: ../src/guestfs-actions.pod:819
5538 #, no-wrap
5539 msgid ""
5540 " char *guestfs_command (guestfs_h *g,\n"
5541 "\t\tchar *const *arguments);\n"
5542 "\n"
5543 msgstr ""
5544
5545 # type: textblock
5546 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:651
5547 msgid ""
5548 "This call runs a command from the guest filesystem.  The filesystem must be "
5549 "mounted, and must contain a compatible operating system (ie. something "
5550 "Linux, with the same or compatible processor architecture)."
5551 msgstr ""
5552
5553 # type: textblock
5554 #: ../src/guestfs-actions.pod:827
5555 msgid ""
5556 "The single parameter is an argv-style list of arguments.  The first element "
5557 "is the name of the program to run.  Subsequent elements are parameters.  The "
5558 "list must be non-empty (ie. must contain a program name).  Note that the "
5559 "command runs directly, and is I<not> invoked via the shell (see "
5560 "C<guestfs_sh>)."
5561 msgstr ""
5562
5563 # type: textblock
5564 #: ../src/guestfs-actions.pod:834 ../fish/guestfish-actions.pod:663
5565 msgid "The return value is anything printed to I<stdout> by the command."
5566 msgstr ""
5567
5568 # type: textblock
5569 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:666
5570 msgid ""
5571 "If the command returns a non-zero exit status, then this function returns an "
5572 "error message.  The error message string is the content of I<stderr> from "
5573 "the command."
5574 msgstr ""
5575
5576 # type: textblock
5577 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:670
5578 msgid ""
5579 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5580 "bin>.  If you require a program from another location, you should provide "
5581 "the full path in the first parameter."
5582 msgstr ""
5583
5584 # type: textblock
5585 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:675
5586 msgid ""
5587 "Shared libraries and data files required by the program must be available on "
5588 "filesystems which are mounted in the correct places.  It is the caller's "
5589 "responsibility to ensure all filesystems that are needed are mounted at the "
5590 "right locations."
5591 msgstr ""
5592
5593 # type: =head2
5594 #: ../src/guestfs-actions.pod:858
5595 msgid "guestfs_command_lines"
5596 msgstr ""
5597
5598 # type: verbatim
5599 #: ../src/guestfs-actions.pod:860
5600 #, no-wrap
5601 msgid ""
5602 " char **guestfs_command_lines (guestfs_h *g,\n"
5603 "\t\tchar *const *arguments);\n"
5604 "\n"
5605 msgstr ""
5606
5607 # type: textblock
5608 #: ../src/guestfs-actions.pod:863
5609 msgid ""
5610 "This is the same as C<guestfs_command>, but splits the result into a list of "
5611 "lines."
5612 msgstr ""
5613
5614 # type: textblock
5615 #: ../src/guestfs-actions.pod:866
5616 msgid "See also: C<guestfs_sh_lines>"
5617 msgstr ""
5618
5619 # type: =head2
5620 #: ../src/guestfs-actions.pod:875
5621 msgid "guestfs_config"
5622 msgstr ""
5623
5624 # type: verbatim
5625 #: ../src/guestfs-actions.pod:877
5626 #, no-wrap
5627 msgid ""
5628 " int guestfs_config (guestfs_h *g,\n"
5629 "\t\tconst char *qemuparam,\n"
5630 "\t\tconst char *qemuvalue);\n"
5631 "\n"
5632 msgstr ""
5633
5634 # type: textblock
5635 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:700
5636 msgid ""
5637 "This can be used to add arbitrary qemu command line parameters of the form "
5638 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5639 "setting some parameters which would interfere with parameters that we use."
5640 msgstr ""
5641
5642 # type: textblock
5643 #: ../src/guestfs-actions.pod:886 ../fish/guestfish-actions.pod:705
5644 msgid "The first character of C<param> string must be a C<-> (dash)."
5645 msgstr ""
5646
5647 # type: textblock
5648 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:707
5649 msgid "C<value> can be NULL."
5650 msgstr ""
5651
5652 # type: =head2
5653 #: ../src/guestfs-actions.pod:892
5654 msgid "guestfs_copy_size"
5655 msgstr ""
5656
5657 # type: verbatim
5658 #: ../src/guestfs-actions.pod:894
5659 #, no-wrap
5660 msgid ""
5661 " int guestfs_copy_size (guestfs_h *g,\n"
5662 "\t\tconst char *src,\n"
5663 "\t\tconst char *dest,\n"
5664 "\t\tint64_t size);\n"
5665 "\n"
5666 msgstr ""
5667
5668 # type: textblock
5669 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:713
5670 msgid ""
5671 "This command copies exactly C<size> bytes from one source device or file "
5672 "C<src> to another destination device or file C<dest>."
5673 msgstr ""
5674
5675 # type: textblock
5676 #: ../src/guestfs-actions.pod:902 ../fish/guestfish-actions.pod:716
5677 msgid ""
5678 "Note this will fail if the source is too short or if the destination is not "
5679 "large enough."
5680 msgstr ""
5681
5682 # type: textblock
5683 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:1042
5684 #: ../src/guestfs-actions.pod:1070 ../src/guestfs-actions.pod:1442
5685 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:5648
5686 #: ../src/guestfs-actions.pod:5664
5687 msgid ""
5688 "This long-running command can generate progress notification messages so "
5689 "that the caller can display a progress bar or indicator.  To receive these "
5690 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
5691 "guestfs_set_progress_callback>."
5692 msgstr ""
5693
5694 # type: =head2
5695 #: ../src/guestfs-actions.pod:912
5696 msgid "guestfs_cp"
5697 msgstr ""
5698
5699 # type: verbatim
5700 #: ../src/guestfs-actions.pod:914
5701 #, no-wrap
5702 msgid ""
5703 " int guestfs_cp (guestfs_h *g,\n"
5704 "\t\tconst char *src,\n"
5705 "\t\tconst char *dest);\n"
5706 "\n"
5707 msgstr ""
5708
5709 # type: textblock
5710 #: ../src/guestfs-actions.pod:918 ../fish/guestfish-actions.pod:723
5711 msgid ""
5712 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5713 "destination filename or destination directory."
5714 msgstr ""
5715
5716 # type: =head2
5717 #: ../src/guestfs-actions.pod:923
5718 msgid "guestfs_cp_a"
5719 msgstr ""
5720
5721 # type: verbatim
5722 #: ../src/guestfs-actions.pod:925
5723 #, no-wrap
5724 msgid ""
5725 " int guestfs_cp_a (guestfs_h *g,\n"
5726 "\t\tconst char *src,\n"
5727 "\t\tconst char *dest);\n"
5728 "\n"
5729 msgstr ""
5730
5731 # type: textblock
5732 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:730
5733 msgid ""
5734 "This copies a file or directory from C<src> to C<dest> recursively using the "
5735 "C<cp -a> command."
5736 msgstr ""
5737
5738 # type: =head2
5739 #: ../src/guestfs-actions.pod:934
5740 msgid "guestfs_dd"
5741 msgstr ""
5742
5743 # type: verbatim
5744 #: ../src/guestfs-actions.pod:936
5745 #, no-wrap
5746 msgid ""
5747 " int guestfs_dd (guestfs_h *g,\n"
5748 "\t\tconst char *src,\n"
5749 "\t\tconst char *dest);\n"
5750 "\n"
5751 msgstr ""
5752
5753 # type: textblock
5754 #: ../src/guestfs-actions.pod:940 ../fish/guestfish-actions.pod:737
5755 msgid ""
5756 "This command copies from one source device or file C<src> to another "
5757 "destination device or file C<dest>.  Normally you would use this to copy to "
5758 "or from a device or partition, for example to duplicate a filesystem."
5759 msgstr ""
5760
5761 # type: textblock
5762 #: ../src/guestfs-actions.pod:945
5763 msgid ""
5764 "If the destination is a device, it must be as large or larger than the "
5765 "source file or device, otherwise the copy will fail.  This command cannot do "
5766 "partial copies (see C<guestfs_copy_size>)."
5767 msgstr ""
5768
5769 # type: =head2
5770 #: ../src/guestfs-actions.pod:951
5771 msgid "guestfs_debug"
5772 msgstr ""
5773
5774 # type: verbatim
5775 #: ../src/guestfs-actions.pod:953
5776 #, no-wrap
5777 msgid ""
5778 " char *guestfs_debug (guestfs_h *g,\n"
5779 "\t\tconst char *subcmd,\n"
5780 "\t\tchar *const *extraargs);\n"
5781 "\n"
5782 msgstr ""
5783
5784 # type: textblock
5785 #: ../src/guestfs-actions.pod:957
5786 msgid ""
5787 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5788 "guestfs daemon) that runs inside the qemu subprocess."
5789 msgstr ""
5790
5791 # type: textblock
5792 #: ../src/guestfs-actions.pod:961 ../fish/guestfish-actions.pod:754
5793 msgid ""
5794 "There is no comprehensive help for this command.  You have to look at the "
5795 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5796 msgstr ""
5797
5798 # type: =head2
5799 #: ../src/guestfs-actions.pod:968
5800 msgid "guestfs_debug_upload"
5801 msgstr ""
5802
5803 # type: verbatim
5804 #: ../src/guestfs-actions.pod:970
5805 #, no-wrap
5806 msgid ""
5807 " int guestfs_debug_upload (guestfs_h *g,\n"
5808 "\t\tconst char *filename,\n"
5809 "\t\tconst char *tmpname,\n"
5810 "\t\tint mode);\n"
5811 "\n"
5812 msgstr ""
5813
5814 # type: textblock
5815 #: ../src/guestfs-actions.pod:975
5816 msgid ""
5817 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5818 "appliance."
5819 msgstr ""
5820
5821 # type: textblock
5822 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:765
5823 msgid ""
5824 "There is no comprehensive help for this command.  You have to look at the "
5825 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5826 msgstr ""
5827
5828 # type: =head2
5829 #: ../src/guestfs-actions.pod:984
5830 msgid "guestfs_df"
5831 msgstr ""
5832
5833 # type: verbatim
5834 #: ../src/guestfs-actions.pod:986
5835 #, no-wrap
5836 msgid ""
5837 " char *guestfs_df (guestfs_h *g);\n"
5838 "\n"
5839 msgstr ""
5840
5841 # type: textblock
5842 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:775
5843 msgid "This command runs the C<df> command to report disk space used."
5844 msgstr ""
5845
5846 # type: textblock
5847 #: ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1004
5848 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5849 msgid ""
5850 "This command is mostly useful for interactive sessions.  It is I<not> "
5851 "intended that you try to parse the output string.  Use C<statvfs> from "
5852 "programs."
5853 msgstr ""
5854
5855 # type: =head2
5856 #: ../src/guestfs-actions.pod:997
5857 msgid "guestfs_df_h"
5858 msgstr ""
5859
5860 # type: verbatim
5861 #: ../src/guestfs-actions.pod:999
5862 #, no-wrap
5863 msgid ""
5864 " char *guestfs_df_h (guestfs_h *g);\n"
5865 "\n"
5866 msgstr ""
5867
5868 # type: textblock
5869 #: ../src/guestfs-actions.pod:1001 ../fish/guestfish-actions.pod:785
5870 msgid ""
5871 "This command runs the C<df -h> command to report disk space used in human-"
5872 "readable format."
5873 msgstr ""
5874
5875 # type: =head2
5876 #: ../src/guestfs-actions.pod:1011
5877 msgid "guestfs_dmesg"
5878 msgstr ""
5879
5880 # type: verbatim
5881 #: ../src/guestfs-actions.pod:1013
5882 #, no-wrap
5883 msgid ""
5884 " char *guestfs_dmesg (guestfs_h *g);\n"
5885 "\n"
5886 msgstr ""
5887
5888 # type: textblock
5889 #: ../src/guestfs-actions.pod:1015 ../fish/guestfish-actions.pod:796
5890 msgid ""
5891 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5892 "This is sometimes useful for extended debugging of problems."
5893 msgstr ""
5894
5895 # type: textblock
5896 #: ../src/guestfs-actions.pod:1019
5897 msgid ""
5898 "Another way to get the same information is to enable verbose messages with "
5899 "C<guestfs_set_verbose> or by setting the environment variable "
5900 "C<LIBGUESTFS_DEBUG=1> before running the program."
5901 msgstr ""
5902
5903 # type: =head2
5904 #: ../src/guestfs-actions.pod:1027
5905 msgid "guestfs_download"
5906 msgstr ""
5907
5908 # type: verbatim
5909 #: ../src/guestfs-actions.pod:1029
5910 #, no-wrap
5911 msgid ""
5912 " int guestfs_download (guestfs_h *g,\n"
5913 "\t\tconst char *remotefilename,\n"
5914 "\t\tconst char *filename);\n"
5915 "\n"
5916 msgstr ""
5917
5918 # type: textblock
5919 #: ../src/guestfs-actions.pod:1033 ../src/guestfs-actions.pod:1055
5920 #: ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5921 msgid ""
5922 "Download file C<remotefilename> and save it as C<filename> on the local "
5923 "machine."
5924 msgstr ""
5925
5926 # type: textblock
5927 #: ../src/guestfs-actions.pod:1036 ../src/guestfs-actions.pod:5216
5928 #: ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4041
5929 msgid "C<filename> can also be a named pipe."
5930 msgstr ""
5931
5932 # type: textblock
5933 #: ../src/guestfs-actions.pod:1038
5934 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5935 msgstr ""
5936
5937 # type: =head2
5938 #: ../src/guestfs-actions.pod:1047
5939 msgid "guestfs_download_offset"
5940 msgstr ""
5941
5942 # type: verbatim
5943 #: ../src/guestfs-actions.pod:1049
5944 #, no-wrap
5945 msgid ""
5946 " int guestfs_download_offset (guestfs_h *g,\n"
5947 "\t\tconst char *remotefilename,\n"
5948 "\t\tconst char *filename,\n"
5949 "\t\tint64_t offset,\n"
5950 "\t\tint64_t size);\n"
5951 "\n"
5952 msgstr ""
5953
5954 # type: textblock
5955 #: ../src/guestfs-actions.pod:1058 ../fish/guestfish-actions.pod:825
5956 msgid ""
5957 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5958 "region must be within the file or device)."
5959 msgstr ""
5960
5961 # type: textblock
5962 #: ../src/guestfs-actions.pod:1061
5963 msgid ""
5964 "Note that there is no limit on the amount of data that can be downloaded "
5965 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5966 "full amount unless an error occurs."
5967 msgstr ""
5968
5969 # type: textblock
5970 #: ../src/guestfs-actions.pod:1066
5971 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5972 msgstr ""
5973
5974 # type: =head2
5975 #: ../src/guestfs-actions.pod:1075
5976 msgid "guestfs_drop_caches"
5977 msgstr ""
5978
5979 # type: verbatim
5980 #: ../src/guestfs-actions.pod:1077
5981 #, no-wrap
5982 msgid ""
5983 " int guestfs_drop_caches (guestfs_h *g,\n"
5984 "\t\tint whattodrop);\n"
5985 "\n"
5986 msgstr ""
5987
5988 # type: textblock
5989 #: ../src/guestfs-actions.pod:1080 ../fish/guestfish-actions.pod:841
5990 msgid ""
5991 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5992 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5993 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5994 msgstr ""
5995
5996 # type: textblock
5997 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:846
5998 msgid "Setting C<whattodrop> to 3 should drop everything."
5999 msgstr ""
6000
6001 # type: textblock
6002 #: ../src/guestfs-actions.pod:1087 ../fish/guestfish-actions.pod:848
6003 msgid ""
6004 "This automatically calls L<sync(2)> before the operation, so that the "
6005 "maximum guest memory is freed."
6006 msgstr ""
6007
6008 # type: =head2
6009 #: ../src/guestfs-actions.pod:1092
6010 msgid "guestfs_du"
6011 msgstr ""
6012
6013 # type: verbatim
6014 #: ../src/guestfs-actions.pod:1094
6015 #, no-wrap
6016 msgid ""
6017 " int64_t guestfs_du (guestfs_h *g,\n"
6018 "\t\tconst char *path);\n"
6019 "\n"
6020 msgstr ""
6021
6022 # type: textblock
6023 #: ../src/guestfs-actions.pod:1097 ../fish/guestfish-actions.pod:855
6024 msgid ""
6025 "This command runs the C<du -s> command to estimate file space usage for "
6026 "C<path>."
6027 msgstr ""
6028
6029 # type: textblock
6030 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:858
6031 msgid ""
6032 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6033 "estimate includes the contents of the directory and all subdirectories "
6034 "(recursively)."
6035 msgstr ""
6036
6037 # type: textblock
6038 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:862
6039 msgid ""
6040 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6041 msgstr ""
6042
6043 # type: =head2
6044 #: ../src/guestfs-actions.pod:1109
6045 msgid "guestfs_e2fsck_f"
6046 msgstr ""
6047
6048 # type: verbatim
6049 #: ../src/guestfs-actions.pod:1111
6050 #, no-wrap
6051 msgid ""
6052 " int guestfs_e2fsck_f (guestfs_h *g,\n"
6053 "\t\tconst char *device);\n"
6054 "\n"
6055 msgstr ""
6056
6057 # type: textblock
6058 #: ../src/guestfs-actions.pod:1114 ../fish/guestfish-actions.pod:869
6059 msgid ""
6060 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6061 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6062 "clean (C<-f>)."
6063 msgstr ""
6064
6065 # type: textblock
6066 #: ../src/guestfs-actions.pod:1118
6067 msgid ""
6068 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6069 "Normally you should use C<guestfs_fsck>."
6070 msgstr ""
6071
6072 # type: =head2
6073 #: ../src/guestfs-actions.pod:1123
6074 msgid "guestfs_echo_daemon"
6075 msgstr ""
6076
6077 # type: verbatim
6078 #: ../src/guestfs-actions.pod:1125
6079 #, no-wrap
6080 msgid ""
6081 " char *guestfs_echo_daemon (guestfs_h *g,\n"
6082 "\t\tchar *const *words);\n"
6083 "\n"
6084 msgstr ""
6085
6086 # type: textblock
6087 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:880
6088 msgid ""
6089 "This command concatenates the list of C<words> passed with single spaces "
6090 "between them and returns the resulting string."
6091 msgstr ""
6092
6093 # type: textblock
6094 #: ../src/guestfs-actions.pod:1131 ../fish/guestfish-actions.pod:883
6095 msgid "You can use this command to test the connection through to the daemon."
6096 msgstr ""
6097
6098 # type: textblock
6099 #: ../src/guestfs-actions.pod:1133
6100 msgid "See also C<guestfs_ping_daemon>."
6101 msgstr ""
6102
6103 # type: =head2
6104 #: ../src/guestfs-actions.pod:1138
6105 msgid "guestfs_egrep"
6106 msgstr ""
6107
6108 # type: verbatim
6109 #: ../src/guestfs-actions.pod:1140
6110 #, no-wrap
6111 msgid ""
6112 " char **guestfs_egrep (guestfs_h *g,\n"
6113 "\t\tconst char *regex,\n"
6114 "\t\tconst char *path);\n"
6115 "\n"
6116 msgstr ""
6117
6118 # type: textblock
6119 #: ../src/guestfs-actions.pod:1144 ../fish/guestfish-actions.pod:891
6120 msgid ""
6121 "This calls the external C<egrep> program and returns the matching lines."
6122 msgstr ""
6123
6124 # type: =head2
6125 #: ../src/guestfs-actions.pod:1154
6126 msgid "guestfs_egrepi"
6127 msgstr ""
6128
6129 # type: verbatim
6130 #: ../src/guestfs-actions.pod:1156
6131 #, no-wrap
6132 msgid ""
6133 " char **guestfs_egrepi (guestfs_h *g,\n"
6134 "\t\tconst char *regex,\n"
6135 "\t\tconst char *path);\n"
6136 "\n"
6137 msgstr ""
6138
6139 # type: textblock
6140 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:901
6141 msgid ""
6142 "This calls the external C<egrep -i> program and returns the matching lines."
6143 msgstr ""
6144
6145 # type: =head2
6146 #: ../src/guestfs-actions.pod:1170
6147 msgid "guestfs_equal"
6148 msgstr ""
6149
6150 # type: verbatim
6151 #: ../src/guestfs-actions.pod:1172
6152 #, no-wrap
6153 msgid ""
6154 " int guestfs_equal (guestfs_h *g,\n"
6155 "\t\tconst char *file1,\n"
6156 "\t\tconst char *file2);\n"
6157 "\n"
6158 msgstr ""
6159
6160 # type: textblock
6161 #: ../src/guestfs-actions.pod:1176 ../fish/guestfish-actions.pod:911
6162 msgid ""
6163 "This compares the two files C<file1> and C<file2> and returns true if their "
6164 "content is exactly equal, or false otherwise."
6165 msgstr ""
6166
6167 # type: textblock
6168 #: ../src/guestfs-actions.pod:1179 ../fish/guestfish-actions.pod:914
6169 msgid "The external L<cmp(1)> program is used for the comparison."
6170 msgstr ""
6171
6172 # type: =head2
6173 #: ../src/guestfs-actions.pod:1183
6174 msgid "guestfs_exists"
6175 msgstr ""
6176
6177 # type: verbatim
6178 #: ../src/guestfs-actions.pod:1185
6179 #, no-wrap
6180 msgid ""
6181 " int guestfs_exists (guestfs_h *g,\n"
6182 "\t\tconst char *path);\n"
6183 "\n"
6184 msgstr ""
6185
6186 # type: textblock
6187 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:920
6188 msgid ""
6189 "This returns C<true> if and only if there is a file, directory (or anything) "
6190 "with the given C<path> name."
6191 msgstr ""
6192
6193 # type: textblock
6194 #: ../src/guestfs-actions.pod:1191
6195 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6196 msgstr ""
6197
6198 # type: =head2
6199 #: ../src/guestfs-actions.pod:1195
6200 msgid "guestfs_fallocate"
6201 msgstr ""
6202
6203 # type: verbatim
6204 #: ../src/guestfs-actions.pod:1197
6205 #, no-wrap
6206 msgid ""
6207 " int guestfs_fallocate (guestfs_h *g,\n"
6208 "\t\tconst char *path,\n"
6209 "\t\tint len);\n"
6210 "\n"
6211 msgstr ""
6212
6213 # type: textblock
6214 #: ../src/guestfs-actions.pod:1201 ../src/guestfs-actions.pod:1224
6215 #: ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6216 msgid ""
6217 "This command preallocates a file (containing zero bytes) named C<path> of "
6218 "size C<len> bytes.  If the file exists already, it is overwritten."
6219 msgstr ""
6220
6221 # type: textblock
6222 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:933
6223 msgid ""
6224 "Do not confuse this with the guestfish-specific C<alloc> command which "
6225 "allocates a file in the host and attaches it as a device."
6226 msgstr ""
6227
6228 # type: textblock
6229 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:937
6230 msgid ""
6231 "This function is deprecated.  In new code, use the C<fallocate64> call "
6232 "instead."
6233 msgstr ""
6234
6235 # type: =head2
6236 #: ../src/guestfs-actions.pod:1218
6237 msgid "guestfs_fallocate64"
6238 msgstr ""
6239
6240 # type: verbatim
6241 #: ../src/guestfs-actions.pod:1220
6242 #, no-wrap
6243 msgid ""
6244 " int guestfs_fallocate64 (guestfs_h *g,\n"
6245 "\t\tconst char *path,\n"
6246 "\t\tint64_t len);\n"
6247 "\n"
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1228
6252 msgid ""
6253 "Note that this call allocates disk blocks for the file.  To create a sparse "
6254 "file use C<guestfs_truncate_size> instead."
6255 msgstr ""
6256
6257 # type: textblock
6258 #: ../src/guestfs-actions.pod:1231
6259 msgid ""
6260 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6261 "oversight it only allowed 30 bit lengths to be specified, effectively "
6262 "limiting the maximum size of files created through that call to 1GB."
6263 msgstr ""
6264
6265 # type: textblock
6266 #: ../src/guestfs-actions.pod:1236 ../fish/guestfish-actions.pod:960
6267 msgid ""
6268 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6269 "commands which create a file in the host and attach it as a device."
6270 msgstr ""
6271
6272 # type: =head2
6273 #: ../src/guestfs-actions.pod:1242
6274 msgid "guestfs_fgrep"
6275 msgstr ""
6276
6277 # type: verbatim
6278 #: ../src/guestfs-actions.pod:1244
6279 #, no-wrap
6280 msgid ""
6281 " char **guestfs_fgrep (guestfs_h *g,\n"
6282 "\t\tconst char *pattern,\n"
6283 "\t\tconst char *path);\n"
6284 "\n"
6285 msgstr ""
6286
6287 # type: textblock
6288 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:968
6289 msgid ""
6290 "This calls the external C<fgrep> program and returns the matching lines."
6291 msgstr ""
6292
6293 # type: =head2
6294 #: ../src/guestfs-actions.pod:1258
6295 msgid "guestfs_fgrepi"
6296 msgstr ""
6297
6298 # type: verbatim
6299 #: ../src/guestfs-actions.pod:1260
6300 #, no-wrap
6301 msgid ""
6302 " char **guestfs_fgrepi (guestfs_h *g,\n"
6303 "\t\tconst char *pattern,\n"
6304 "\t\tconst char *path);\n"
6305 "\n"
6306 msgstr ""
6307
6308 # type: textblock
6309 #: ../src/guestfs-actions.pod:1264 ../fish/guestfish-actions.pod:978
6310 msgid ""
6311 "This calls the external C<fgrep -i> program and returns the matching lines."
6312 msgstr ""
6313
6314 # type: =head2
6315 #: ../src/guestfs-actions.pod:1274
6316 msgid "guestfs_file"
6317 msgstr ""
6318
6319 # type: verbatim
6320 #: ../src/guestfs-actions.pod:1276
6321 #, no-wrap
6322 msgid ""
6323 " char *guestfs_file (guestfs_h *g,\n"
6324 "\t\tconst char *path);\n"
6325 "\n"
6326 msgstr ""
6327
6328 # type: textblock
6329 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:988
6330 msgid ""
6331 "This call uses the standard L<file(1)> command to determine the type or "
6332 "contents of the file."
6333 msgstr ""
6334
6335 # type: textblock
6336 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:991
6337 msgid ""
6338 "This call will also transparently look inside various types of compressed "
6339 "file."
6340 msgstr ""
6341
6342 # type: textblock
6343 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:994
6344 msgid ""
6345 "The exact command which runs is C<file -zb path>.  Note in particular that "
6346 "the filename is not prepended to the output (the C<-b> option)."
6347 msgstr ""
6348
6349 # type: textblock
6350 #: ../src/guestfs-actions.pod:1289
6351 msgid ""
6352 "This command can also be used on C</dev/> devices (and partitions, LV "
6353 "names).  You can for example use this to determine if a device contains a "
6354 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6355 msgstr ""
6356
6357 # type: textblock
6358 #: ../src/guestfs-actions.pod:1294 ../fish/guestfish-actions.pod:1003
6359 msgid ""
6360 "If the C<path> does not begin with C</dev/> then this command only works for "
6361 "the content of regular files.  For other file types (directory, symbolic "
6362 "link etc) it will just return the string C<directory> etc."
6363 msgstr ""
6364
6365 # type: =head2
6366 #: ../src/guestfs-actions.pod:1302
6367 msgid "guestfs_file_architecture"
6368 msgstr ""
6369
6370 # type: verbatim
6371 #: ../src/guestfs-actions.pod:1304
6372 #, no-wrap
6373 msgid ""
6374 " char *guestfs_file_architecture (guestfs_h *g,\n"
6375 "\t\tconst char *filename);\n"
6376 "\n"
6377 msgstr ""
6378
6379 # type: textblock
6380 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1012
6381 msgid ""
6382 "This detects the architecture of the binary C<filename>, and returns it if "
6383 "known."
6384 msgstr ""
6385
6386 # type: textblock
6387 #: ../src/guestfs-actions.pod:1310 ../fish/guestfish-actions.pod:1015
6388 msgid "Currently defined architectures are:"
6389 msgstr ""
6390
6391 # type: =item
6392 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:1019
6393 msgid "\"i386\""
6394 msgstr ""
6395
6396 # type: textblock
6397 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:1021
6398 msgid ""
6399 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6400 "irrespective of the precise processor requirements of the binary."
6401 msgstr ""
6402
6403 # type: =item
6404 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:1024
6405 msgid "\"x86_64\""
6406 msgstr ""
6407
6408 # type: textblock
6409 #: ../src/guestfs-actions.pod:1321 ../fish/guestfish-actions.pod:1026
6410 msgid "64 bit x86-64."
6411 msgstr ""
6412
6413 # type: =item
6414 #: ../src/guestfs-actions.pod:1323 ../fish/guestfish-actions.pod:1028
6415 msgid "\"sparc\""
6416 msgstr ""
6417
6418 # type: textblock
6419 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:1030
6420 msgid "32 bit SPARC."
6421 msgstr ""
6422
6423 # type: =item
6424 #: ../src/guestfs-actions.pod:1327 ../fish/guestfish-actions.pod:1032
6425 msgid "\"sparc64\""
6426 msgstr ""
6427
6428 # type: textblock
6429 #: ../src/guestfs-actions.pod:1329 ../fish/guestfish-actions.pod:1034
6430 msgid "64 bit SPARC V9 and above."
6431 msgstr ""
6432
6433 # type: =item
6434 #: ../src/guestfs-actions.pod:1331 ../fish/guestfish-actions.pod:1036
6435 msgid "\"ia64\""
6436 msgstr ""
6437
6438 # type: textblock
6439 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:1038
6440 msgid "Intel Itanium."
6441 msgstr ""
6442
6443 # type: =item
6444 #: ../src/guestfs-actions.pod:1335 ../fish/guestfish-actions.pod:1040
6445 msgid "\"ppc\""
6446 msgstr ""
6447
6448 # type: textblock
6449 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1042
6450 msgid "32 bit Power PC."
6451 msgstr ""
6452
6453 # type: =item
6454 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:1044
6455 msgid "\"ppc64\""
6456 msgstr ""
6457
6458 # type: textblock
6459 #: ../src/guestfs-actions.pod:1341 ../fish/guestfish-actions.pod:1046
6460 msgid "64 bit Power PC."
6461 msgstr ""
6462
6463 # type: textblock
6464 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:1050
6465 msgid "Libguestfs may return other architecture strings in future."
6466 msgstr ""
6467
6468 # type: textblock
6469 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:1052
6470 msgid "The function works on at least the following types of files:"
6471 msgstr ""
6472
6473 # type: textblock
6474 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:1058
6475 msgid "many types of Un*x and Linux binary"
6476 msgstr ""
6477
6478 # type: textblock
6479 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:1062
6480 msgid "many types of Un*x and Linux shared library"
6481 msgstr ""
6482
6483 # type: textblock
6484 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:1066
6485 msgid "Windows Win32 and Win64 binaries"
6486 msgstr ""
6487
6488 # type: textblock
6489 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:1070
6490 msgid "Windows Win32 and Win64 DLLs"
6491 msgstr ""
6492
6493 # type: textblock
6494 #: ../src/guestfs-actions.pod:1367 ../fish/guestfish-actions.pod:1072
6495 msgid "Win32 binaries and DLLs return C<i386>."
6496 msgstr ""
6497
6498 # type: textblock
6499 #: ../src/guestfs-actions.pod:1369 ../fish/guestfish-actions.pod:1074
6500 msgid "Win64 binaries and DLLs return C<x86_64>."
6501 msgstr ""
6502
6503 # type: textblock
6504 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:1078
6505 msgid "Linux kernel modules"
6506 msgstr ""
6507
6508 # type: textblock
6509 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1082
6510 msgid "Linux new-style initrd images"
6511 msgstr ""
6512
6513 # type: textblock
6514 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1086
6515 msgid "some non-x86 Linux vmlinuz kernels"
6516 msgstr ""
6517
6518 # type: textblock
6519 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1090
6520 msgid "What it can't do currently:"
6521 msgstr ""
6522
6523 # type: textblock
6524 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:1096
6525 msgid "static libraries (libfoo.a)"
6526 msgstr ""
6527
6528 # type: textblock
6529 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:1100
6530 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6531 msgstr ""
6532
6533 # type: textblock
6534 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:1104
6535 msgid "x86 Linux vmlinuz kernels"
6536 msgstr ""
6537
6538 # type: textblock
6539 #: ../src/guestfs-actions.pod:1401 ../fish/guestfish-actions.pod:1106
6540 msgid ""
6541 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6542 "compressed code, and are horribly hard to unpack.  If you want to find the "
6543 "architecture of a kernel, use the architecture of the associated initrd or "
6544 "kernel module(s) instead."
6545 msgstr ""
6546
6547 # type: =head2
6548 #: ../src/guestfs-actions.pod:1411
6549 msgid "guestfs_filesize"
6550 msgstr ""
6551
6552 # type: verbatim
6553 #: ../src/guestfs-actions.pod:1413
6554 #, no-wrap
6555 msgid ""
6556 " int64_t guestfs_filesize (guestfs_h *g,\n"
6557 "\t\tconst char *file);\n"
6558 "\n"
6559 msgstr ""
6560
6561 # type: textblock
6562 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1117
6563 msgid "This command returns the size of C<file> in bytes."
6564 msgstr ""
6565
6566 # type: textblock
6567 #: ../src/guestfs-actions.pod:1418
6568 msgid ""
6569 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6570 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6571 "devices, use C<guestfs_blockdev_getsize64>."
6572 msgstr ""
6573
6574 # type: =head2
6575 #: ../src/guestfs-actions.pod:1424
6576 msgid "guestfs_fill"
6577 msgstr ""
6578
6579 # type: verbatim
6580 #: ../src/guestfs-actions.pod:1426
6581 #, no-wrap
6582 msgid ""
6583 " int guestfs_fill (guestfs_h *g,\n"
6584 "\t\tint c,\n"
6585 "\t\tint len,\n"
6586 "\t\tconst char *path);\n"
6587 "\n"
6588 msgstr ""
6589
6590 # type: textblock
6591 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:1127
6592 msgid ""
6593 "This command creates a new file called C<path>.  The initial content of the "
6594 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6595 "[0..255]>."
6596 msgstr ""
6597
6598 # type: textblock
6599 #: ../src/guestfs-actions.pod:1435
6600 msgid ""
6601 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6602 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6603 "bytes use C<guestfs_fill_pattern>."
6604 msgstr ""
6605
6606 # type: =head2
6607 #: ../src/guestfs-actions.pod:1447
6608 msgid "guestfs_fill_pattern"
6609 msgstr ""
6610
6611 # type: verbatim
6612 #: ../src/guestfs-actions.pod:1449
6613 #, no-wrap
6614 msgid ""
6615 " int guestfs_fill_pattern (guestfs_h *g,\n"
6616 "\t\tconst char *pattern,\n"
6617 "\t\tint len,\n"
6618 "\t\tconst char *path);\n"
6619 "\n"
6620 msgstr ""
6621
6622 # type: textblock
6623 #: ../src/guestfs-actions.pod:1454
6624 msgid ""
6625 "This function is like C<guestfs_fill> except that it creates a new file of "
6626 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6627 "pattern is truncated if necessary to ensure the length of the file is "
6628 "exactly C<len> bytes."
6629 msgstr ""
6630
6631 # type: =head2
6632 #: ../src/guestfs-actions.pod:1466
6633 msgid "guestfs_find"
6634 msgstr ""
6635
6636 # type: verbatim
6637 #: ../src/guestfs-actions.pod:1468
6638 #, no-wrap
6639 msgid ""
6640 " char **guestfs_find (guestfs_h *g,\n"
6641 "\t\tconst char *directory);\n"
6642 "\n"
6643 msgstr ""
6644
6645 # type: textblock
6646 #: ../src/guestfs-actions.pod:1471 ../fish/guestfish-actions.pod:1149
6647 msgid ""
6648 "This command lists out all files and directories, recursively, starting at "
6649 "C<directory>.  It is essentially equivalent to running the shell command "
6650 "C<find directory -print> but some post-processing happens on the output, "
6651 "described below."
6652 msgstr ""
6653
6654 # type: textblock
6655 #: ../src/guestfs-actions.pod:1476 ../fish/guestfish-actions.pod:1154
6656 msgid ""
6657 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6658 "structure was:"
6659 msgstr ""
6660
6661 # type: verbatim
6662 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:1157
6663 #, no-wrap
6664 msgid ""
6665 " /tmp/a\n"
6666 " /tmp/b\n"
6667 " /tmp/c/d\n"
6668 "\n"
6669 msgstr ""
6670
6671 # type: textblock
6672 #: ../src/guestfs-actions.pod:1483
6673 msgid ""
6674 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6675 msgstr ""
6676
6677 # type: verbatim
6678 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:1164
6679 #, no-wrap
6680 msgid ""
6681 " a\n"
6682 " b\n"
6683 " c\n"
6684 " c/d\n"
6685 "\n"
6686 msgstr ""
6687
6688 # type: textblock
6689 #: ../src/guestfs-actions.pod:1491 ../fish/guestfish-actions.pod:1169
6690 msgid "If C<directory> is not a directory, then this command returns an error."
6691 msgstr ""
6692
6693 # type: textblock
6694 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1172
6695 msgid "The returned list is sorted."
6696 msgstr ""
6697
6698 # type: textblock
6699 #: ../src/guestfs-actions.pod:1496
6700 msgid "See also C<guestfs_find0>."
6701 msgstr ""
6702
6703 # type: =head2
6704 #: ../src/guestfs-actions.pod:1505
6705 msgid "guestfs_find0"
6706 msgstr ""
6707
6708 # type: verbatim
6709 #: ../src/guestfs-actions.pod:1507
6710 #, no-wrap
6711 msgid ""
6712 " int guestfs_find0 (guestfs_h *g,\n"
6713 "\t\tconst char *directory,\n"
6714 "\t\tconst char *files);\n"
6715 "\n"
6716 msgstr ""
6717
6718 # type: textblock
6719 #: ../src/guestfs-actions.pod:1511 ../fish/guestfish-actions.pod:1183
6720 msgid ""
6721 "This command lists out all files and directories, recursively, starting at "
6722 "C<directory>, placing the resulting list in the external file called "
6723 "C<files>."
6724 msgstr ""
6725
6726 # type: textblock
6727 #: ../src/guestfs-actions.pod:1515
6728 msgid ""
6729 "This command works the same way as C<guestfs_find> with the following "
6730 "exceptions:"
6731 msgstr ""
6732
6733 # type: textblock
6734 #: ../src/guestfs-actions.pod:1522 ../fish/guestfish-actions.pod:1194
6735 msgid "The resulting list is written to an external file."
6736 msgstr ""
6737
6738 # type: textblock
6739 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1198
6740 msgid ""
6741 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6742 "L<find(1)> option I<-print0>."
6743 msgstr ""
6744
6745 # type: textblock
6746 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1203
6747 msgid "This command is not limited in the number of names that it can return."
6748 msgstr ""
6749
6750 # type: textblock
6751 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1208
6752 msgid "The result list is not sorted."
6753 msgstr ""
6754
6755 # type: =head2
6756 #: ../src/guestfs-actions.pod:1542
6757 msgid "guestfs_findfs_label"
6758 msgstr ""
6759
6760 # type: verbatim
6761 #: ../src/guestfs-actions.pod:1544
6762 #, no-wrap
6763 msgid ""
6764 " char *guestfs_findfs_label (guestfs_h *g,\n"
6765 "\t\tconst char *label);\n"
6766 "\n"
6767 msgstr ""
6768
6769 # type: textblock
6770 #: ../src/guestfs-actions.pod:1547 ../fish/guestfish-actions.pod:1218
6771 msgid ""
6772 "This command searches the filesystems and returns the one which has the "
6773 "given label.  An error is returned if no such filesystem can be found."
6774 msgstr ""
6775
6776 # type: textblock
6777 #: ../src/guestfs-actions.pod:1551
6778 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6779 msgstr ""
6780
6781 # type: =head2
6782 #: ../src/guestfs-actions.pod:1556
6783 msgid "guestfs_findfs_uuid"
6784 msgstr ""
6785
6786 # type: verbatim
6787 #: ../src/guestfs-actions.pod:1558
6788 #, no-wrap
6789 msgid ""
6790 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6791 "\t\tconst char *uuid);\n"
6792 "\n"
6793 msgstr ""
6794
6795 # type: textblock
6796 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1228
6797 msgid ""
6798 "This command searches the filesystems and returns the one which has the "
6799 "given UUID.  An error is returned if no such filesystem can be found."
6800 msgstr ""
6801
6802 # type: textblock
6803 #: ../src/guestfs-actions.pod:1565
6804 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6805 msgstr ""
6806
6807 # type: =head2
6808 #: ../src/guestfs-actions.pod:1570
6809 msgid "guestfs_fsck"
6810 msgstr ""
6811
6812 # type: verbatim
6813 #: ../src/guestfs-actions.pod:1572
6814 #, no-wrap
6815 msgid ""
6816 " int guestfs_fsck (guestfs_h *g,\n"
6817 "\t\tconst char *fstype,\n"
6818 "\t\tconst char *device);\n"
6819 "\n"
6820 msgstr ""
6821
6822 # type: textblock
6823 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1238
6824 msgid ""
6825 "This runs the filesystem checker (fsck) on C<device> which should have "
6826 "filesystem type C<fstype>."
6827 msgstr ""
6828
6829 # type: textblock
6830 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1241
6831 msgid ""
6832 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6833 "codes from C<fsck>."
6834 msgstr ""
6835
6836 # type: textblock
6837 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1250
6838 msgid "Multiple status codes can be summed together."
6839 msgstr ""
6840
6841 # type: textblock
6842 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1254
6843 msgid ""
6844 "A non-zero return code can mean \"success\", for example if errors have been "
6845 "corrected on the filesystem."
6846 msgstr ""
6847
6848 # type: textblock
6849 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1259
6850 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6851 msgstr ""
6852
6853 # type: textblock
6854 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1264
6855 msgid ""
6856 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6857 msgstr ""
6858
6859 # type: =head2
6860 #: ../src/guestfs-actions.pod:1606
6861 msgid "guestfs_get_append"
6862 msgstr ""
6863
6864 # type: verbatim
6865 #: ../src/guestfs-actions.pod:1608
6866 #, no-wrap
6867 msgid ""
6868 " const char *guestfs_get_append (guestfs_h *g);\n"
6869 "\n"
6870 msgstr ""
6871
6872 # type: textblock
6873 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1270
6874 msgid ""
6875 "Return the additional kernel options which are added to the guest kernel "
6876 "command line."
6877 msgstr ""
6878
6879 # type: textblock
6880 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1273
6881 msgid "If C<NULL> then no options are added."
6882 msgstr ""
6883
6884 # type: textblock
6885 #: ../src/guestfs-actions.pod:1615
6886 msgid ""
6887 "This function returns a string which may be NULL.  There is no way to return "
6888 "an error from this function.  The string is owned by the guest handle and "
6889 "must I<not> be freed."
6890 msgstr ""
6891
6892 # type: =head2
6893 #: ../src/guestfs-actions.pod:1619
6894 msgid "guestfs_get_autosync"
6895 msgstr ""
6896
6897 # type: verbatim
6898 #: ../src/guestfs-actions.pod:1621
6899 #, no-wrap
6900 msgid ""
6901 " int guestfs_get_autosync (guestfs_h *g);\n"
6902 "\n"
6903 msgstr ""
6904
6905 # type: textblock
6906 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1279
6907 msgid "Get the autosync flag."
6908 msgstr ""
6909
6910 # type: =head2
6911 #: ../src/guestfs-actions.pod:1627
6912 msgid "guestfs_get_direct"
6913 msgstr ""
6914
6915 # type: verbatim
6916 #: ../src/guestfs-actions.pod:1629
6917 #, no-wrap
6918 msgid ""
6919 " int guestfs_get_direct (guestfs_h *g);\n"
6920 "\n"
6921 msgstr ""
6922
6923 # type: textblock
6924 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1285
6925 msgid "Return the direct appliance mode flag."
6926 msgstr ""
6927
6928 # type: =head2
6929 #: ../src/guestfs-actions.pod:1635
6930 msgid "guestfs_get_e2label"
6931 msgstr ""
6932
6933 # type: verbatim
6934 #: ../src/guestfs-actions.pod:1637
6935 #, no-wrap
6936 msgid ""
6937 " char *guestfs_get_e2label (guestfs_h *g,\n"
6938 "\t\tconst char *device);\n"
6939 "\n"
6940 msgstr ""
6941
6942 # type: textblock
6943 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1291
6944 msgid ""
6945 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6946 msgstr ""
6947
6948 # type: textblock
6949 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1294
6950 msgid ""
6951 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
6952 msgstr ""
6953
6954 # type: =head2
6955 #: ../src/guestfs-actions.pod:1653
6956 msgid "guestfs_get_e2uuid"
6957 msgstr ""
6958
6959 # type: verbatim
6960 #: ../src/guestfs-actions.pod:1655
6961 #, no-wrap
6962 msgid ""
6963 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6964 "\t\tconst char *device);\n"
6965 "\n"
6966 msgstr ""
6967
6968 # type: textblock
6969 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1305
6970 msgid ""
6971 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6972 msgstr ""
6973
6974 # type: textblock
6975 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1308
6976 msgid ""
6977 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6978 msgstr ""
6979
6980 # type: =head2
6981 #: ../src/guestfs-actions.pod:1671
6982 msgid "guestfs_get_memsize"
6983 msgstr ""
6984
6985 # type: verbatim
6986 #: ../src/guestfs-actions.pod:1673
6987 #, no-wrap
6988 msgid ""
6989 " int guestfs_get_memsize (guestfs_h *g);\n"
6990 "\n"
6991 msgstr ""
6992
6993 # type: textblock
6994 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1319
6995 msgid ""
6996 "This gets the memory size in megabytes allocated to the qemu subprocess."
6997 msgstr ""
6998
6999 # type: textblock
7000 #: ../src/guestfs-actions.pod:1678
7001 msgid ""
7002 "If C<guestfs_set_memsize> was not called on this handle, and if "
7003 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7004 "value for memsize."
7005 msgstr ""
7006
7007 # type: textblock
7008 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1745
7009 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4561
7010 #: ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377
7011 #: ../fish/guestfish-actions.pod:3448 ../fish/guestfish-actions.pod:3535
7012 msgid ""
7013 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7014 msgstr ""
7015
7016 # type: =head2
7017 #: ../src/guestfs-actions.pod:1687
7018 msgid "guestfs_get_network"
7019 msgstr ""
7020
7021 # type: verbatim
7022 #: ../src/guestfs-actions.pod:1689
7023 #, no-wrap
7024 msgid ""
7025 " int guestfs_get_network (guestfs_h *g);\n"
7026 "\n"
7027 msgstr ""
7028
7029 # type: textblock
7030 #: ../src/guestfs-actions.pod:1691 ../fish/guestfish-actions.pod:1333
7031 msgid "This returns the enable network flag."
7032 msgstr ""
7033
7034 # type: =head2
7035 #: ../src/guestfs-actions.pod:1695
7036 msgid "guestfs_get_path"
7037 msgstr ""
7038
7039 # type: verbatim
7040 #: ../src/guestfs-actions.pod:1697
7041 #, no-wrap
7042 msgid ""
7043 " const char *guestfs_get_path (guestfs_h *g);\n"
7044 "\n"
7045 msgstr ""
7046
7047 # type: textblock
7048 #: ../src/guestfs-actions.pod:1699 ../fish/guestfish-actions.pod:1339
7049 msgid "Return the current search path."
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1701 ../fish/guestfish-actions.pod:1341
7054 msgid ""
7055 "This is always non-NULL.  If it wasn't set already, then this will return "
7056 "the default path."
7057 msgstr ""
7058
7059 # type: textblock
7060 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1727
7061 msgid ""
7062 "This function returns a string, or NULL on error.  The string is owned by "
7063 "the guest handle and must I<not> be freed."
7064 msgstr ""
7065
7066 # type: =head2
7067 #: ../src/guestfs-actions.pod:1707
7068 msgid "guestfs_get_pid"
7069 msgstr ""
7070
7071 # type: verbatim
7072 #: ../src/guestfs-actions.pod:1709
7073 #, no-wrap
7074 msgid ""
7075 " int guestfs_get_pid (guestfs_h *g);\n"
7076 "\n"
7077 msgstr ""
7078
7079 # type: textblock
7080 #: ../src/guestfs-actions.pod:1711 ../fish/guestfish-actions.pod:1350
7081 msgid ""
7082 "Return the process ID of the qemu subprocess.  If there is no qemu "
7083 "subprocess, then this will return an error."
7084 msgstr ""
7085
7086 # type: textblock
7087 #: ../src/guestfs-actions.pod:1714 ../fish/guestfish-actions.pod:1353
7088 msgid "This is an internal call used for debugging and testing."
7089 msgstr ""
7090
7091 # type: =head2
7092 #: ../src/guestfs-actions.pod:1718
7093 msgid "guestfs_get_qemu"
7094 msgstr ""
7095
7096 # type: verbatim
7097 #: ../src/guestfs-actions.pod:1720
7098 #, no-wrap
7099 msgid ""
7100 " const char *guestfs_get_qemu (guestfs_h *g);\n"
7101 "\n"
7102 msgstr ""
7103
7104 # type: textblock
7105 #: ../src/guestfs-actions.pod:1722 ../fish/guestfish-actions.pod:1359
7106 msgid "Return the current qemu binary."
7107 msgstr ""
7108
7109 # type: textblock
7110 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1361
7111 msgid ""
7112 "This is always non-NULL.  If it wasn't set already, then this will return "
7113 "the default qemu binary name."
7114 msgstr ""
7115
7116 # type: =head2
7117 #: ../src/guestfs-actions.pod:1730
7118 msgid "guestfs_get_recovery_proc"
7119 msgstr ""
7120
7121 # type: verbatim
7122 #: ../src/guestfs-actions.pod:1732
7123 #, no-wrap
7124 msgid ""
7125 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
7126 "\n"
7127 msgstr ""
7128
7129 # type: textblock
7130 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1368
7131 msgid "Return the recovery process enabled flag."
7132 msgstr ""
7133
7134 # type: =head2
7135 #: ../src/guestfs-actions.pod:1738
7136 msgid "guestfs_get_selinux"
7137 msgstr ""
7138
7139 # type: verbatim
7140 #: ../src/guestfs-actions.pod:1740
7141 #, no-wrap
7142 msgid ""
7143 " int guestfs_get_selinux (guestfs_h *g);\n"
7144 "\n"
7145 msgstr ""
7146
7147 # type: textblock
7148 #: ../src/guestfs-actions.pod:1742
7149 msgid ""
7150 "This returns the current setting of the selinux flag which is passed to the "
7151 "appliance at boot time.  See C<guestfs_set_selinux>."
7152 msgstr ""
7153
7154 # type: =head2
7155 #: ../src/guestfs-actions.pod:1750
7156 msgid "guestfs_get_state"
7157 msgstr ""
7158
7159 # type: verbatim
7160 #: ../src/guestfs-actions.pod:1752
7161 #, no-wrap
7162 msgid ""
7163 " int guestfs_get_state (guestfs_h *g);\n"
7164 "\n"
7165 msgstr ""
7166
7167 # type: textblock
7168 #: ../src/guestfs-actions.pod:1754 ../fish/guestfish-actions.pod:1384
7169 msgid ""
7170 "This returns the current state as an opaque integer.  This is only useful "
7171 "for printing debug and internal error messages."
7172 msgstr ""
7173
7174 # type: textblock
7175 #: ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:2378
7176 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2450
7177 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1387
7178 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:1899
7179 #: ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:1953
7180 msgid "For more information on states, see L<guestfs(3)>."
7181 msgstr ""
7182
7183 # type: =head2
7184 #: ../src/guestfs-actions.pod:1761
7185 msgid "guestfs_get_trace"
7186 msgstr ""
7187
7188 # type: verbatim
7189 #: ../src/guestfs-actions.pod:1763
7190 #, no-wrap
7191 msgid ""
7192 " int guestfs_get_trace (guestfs_h *g);\n"
7193 "\n"
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1765 ../fish/guestfish-actions.pod:1393
7198 msgid "Return the command trace flag."
7199 msgstr ""
7200
7201 # type: =head2
7202 #: ../src/guestfs-actions.pod:1769
7203 msgid "guestfs_get_umask"
7204 msgstr ""
7205
7206 # type: verbatim
7207 #: ../src/guestfs-actions.pod:1771
7208 #, no-wrap
7209 msgid ""
7210 " int guestfs_get_umask (guestfs_h *g);\n"
7211 "\n"
7212 msgstr ""
7213
7214 # type: textblock
7215 #: ../src/guestfs-actions.pod:1773
7216 msgid ""
7217 "Return the current umask.  By default the umask is C<022> unless it has been "
7218 "set by calling C<guestfs_umask>."
7219 msgstr ""
7220
7221 # type: =head2
7222 #: ../src/guestfs-actions.pod:1778
7223 msgid "guestfs_get_verbose"
7224 msgstr ""
7225
7226 # type: verbatim
7227 #: ../src/guestfs-actions.pod:1780
7228 #, no-wrap
7229 msgid ""
7230 " int guestfs_get_verbose (guestfs_h *g);\n"
7231 "\n"
7232 msgstr ""
7233
7234 # type: textblock
7235 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1406
7236 msgid "This returns the verbose messages flag."
7237 msgstr ""
7238
7239 # type: =head2
7240 #: ../src/guestfs-actions.pod:1786
7241 msgid "guestfs_getcon"
7242 msgstr ""
7243
7244 # type: verbatim
7245 #: ../src/guestfs-actions.pod:1788
7246 #, no-wrap
7247 msgid ""
7248 " char *guestfs_getcon (guestfs_h *g);\n"
7249 "\n"
7250 msgstr ""
7251
7252 # type: textblock
7253 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1412
7254 msgid "This gets the SELinux security context of the daemon."
7255 msgstr ""
7256
7257 # type: textblock
7258 #: ../src/guestfs-actions.pod:1792
7259 msgid ""
7260 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7261 msgstr ""
7262
7263 # type: =head2
7264 #: ../src/guestfs-actions.pod:1798
7265 msgid "guestfs_getxattrs"
7266 msgstr ""
7267
7268 # type: verbatim
7269 #: ../src/guestfs-actions.pod:1800
7270 #, no-wrap
7271 msgid ""
7272 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
7273 "\t\tconst char *path);\n"
7274 "\n"
7275 msgstr ""
7276
7277 # type: textblock
7278 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1421
7279 msgid ""
7280 "This call lists the extended attributes of the file or directory C<path>."
7281 msgstr ""
7282
7283 # type: textblock
7284 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1424
7285 msgid ""
7286 "At the system call level, this is a combination of the L<listxattr(2)> and "
7287 "L<getxattr(2)> calls."
7288 msgstr ""
7289
7290 # type: textblock
7291 #: ../src/guestfs-actions.pod:1809
7292 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7293 msgstr ""
7294
7295 # type: textblock
7296 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:2545
7297 #: ../src/guestfs-actions.pod:3100
7298 msgid ""
7299 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
7300 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
7301 "C<guestfs_free_xattr_list> after use>."
7302 msgstr ""
7303
7304 # type: =head2
7305 #: ../src/guestfs-actions.pod:1816
7306 msgid "guestfs_glob_expand"
7307 msgstr ""
7308
7309 # type: verbatim
7310 #: ../src/guestfs-actions.pod:1818
7311 #, no-wrap
7312 msgid ""
7313 " char **guestfs_glob_expand (guestfs_h *g,\n"
7314 "\t\tconst char *pattern);\n"
7315 "\n"
7316 msgstr ""
7317
7318 # type: textblock
7319 #: ../src/guestfs-actions.pod:1821 ../fish/guestfish-actions.pod:1433
7320 msgid ""
7321 "This command searches for all the pathnames matching C<pattern> according to "
7322 "the wildcard expansion rules used by the shell."
7323 msgstr ""
7324
7325 # type: textblock
7326 #: ../src/guestfs-actions.pod:1825 ../fish/guestfish-actions.pod:1437
7327 msgid ""
7328 "If no paths match, then this returns an empty list (note: not an error)."
7329 msgstr ""
7330
7331 # type: textblock
7332 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1440
7333 msgid ""
7334 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7335 "GLOB_BRACE>.  See that manual page for more details."
7336 msgstr ""
7337
7338 # type: =head2
7339 #: ../src/guestfs-actions.pod:1836
7340 msgid "guestfs_grep"
7341 msgstr ""
7342
7343 # type: verbatim
7344 #: ../src/guestfs-actions.pod:1838
7345 #, no-wrap
7346 msgid ""
7347 " char **guestfs_grep (guestfs_h *g,\n"
7348 "\t\tconst char *regex,\n"
7349 "\t\tconst char *path);\n"
7350 "\n"
7351 msgstr ""
7352
7353 # type: textblock
7354 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:1448
7355 msgid "This calls the external C<grep> program and returns the matching lines."
7356 msgstr ""
7357
7358 # type: =head2
7359 #: ../src/guestfs-actions.pod:1852
7360 msgid "guestfs_grepi"
7361 msgstr ""
7362
7363 # type: verbatim
7364 #: ../src/guestfs-actions.pod:1854
7365 #, no-wrap
7366 msgid ""
7367 " char **guestfs_grepi (guestfs_h *g,\n"
7368 "\t\tconst char *regex,\n"
7369 "\t\tconst char *path);\n"
7370 "\n"
7371 msgstr ""
7372
7373 # type: textblock
7374 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1458
7375 msgid ""
7376 "This calls the external C<grep -i> program and returns the matching lines."
7377 msgstr ""
7378
7379 # type: =head2
7380 #: ../src/guestfs-actions.pod:1868
7381 msgid "guestfs_grub_install"
7382 msgstr ""
7383
7384 # type: verbatim
7385 #: ../src/guestfs-actions.pod:1870
7386 #, no-wrap
7387 msgid ""
7388 " int guestfs_grub_install (guestfs_h *g,\n"
7389 "\t\tconst char *root,\n"
7390 "\t\tconst char *device);\n"
7391 "\n"
7392 msgstr ""
7393
7394 # type: textblock
7395 #: ../src/guestfs-actions.pod:1874 ../fish/guestfish-actions.pod:1468
7396 msgid ""
7397 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7398 "the root directory being C<root>."
7399 msgstr ""
7400
7401 # type: textblock
7402 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1471
7403 msgid ""
7404 "Note: If grub-install reports the error \"No suitable drive was found in the "
7405 "generated device map.\" it may be that you need to create a C</boot/grub/"
7406 "device.map> file first that contains the mapping between grub device names "
7407 "and Linux device names.  It is usually sufficient to create a file "
7408 "containing:"
7409 msgstr ""
7410
7411 # type: verbatim
7412 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1478
7413 #, no-wrap
7414 msgid ""
7415 " (hd0) /dev/vda\n"
7416 "\n"
7417 msgstr ""
7418
7419 # type: textblock
7420 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1480
7421 msgid "replacing C</dev/vda> with the name of the installation device."
7422 msgstr ""
7423
7424 # type: =head2
7425 #: ../src/guestfs-actions.pod:1890
7426 msgid "guestfs_head"
7427 msgstr ""
7428
7429 # type: verbatim
7430 #: ../src/guestfs-actions.pod:1892
7431 #, no-wrap
7432 msgid ""
7433 " char **guestfs_head (guestfs_h *g,\n"
7434 "\t\tconst char *path);\n"
7435 "\n"
7436 msgstr ""
7437
7438 # type: textblock
7439 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1486
7440 msgid ""
7441 "This command returns up to the first 10 lines of a file as a list of strings."
7442 msgstr ""
7443
7444 # type: =head2
7445 #: ../src/guestfs-actions.pod:1905
7446 msgid "guestfs_head_n"
7447 msgstr ""
7448
7449 # type: verbatim
7450 #: ../src/guestfs-actions.pod:1907
7451 #, no-wrap
7452 msgid ""
7453 " char **guestfs_head_n (guestfs_h *g,\n"
7454 "\t\tint nrlines,\n"
7455 "\t\tconst char *path);\n"
7456 "\n"
7457 msgstr ""
7458
7459 # type: textblock
7460 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1496
7461 msgid ""
7462 "If the parameter C<nrlines> is a positive number, this returns the first "
7463 "C<nrlines> lines of the file C<path>."
7464 msgstr ""
7465
7466 # type: textblock
7467 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1499
7468 msgid ""
7469 "If the parameter C<nrlines> is a negative number, this returns lines from "
7470 "the file C<path>, excluding the last C<nrlines> lines."
7471 msgstr ""
7472
7473 # type: textblock
7474 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:5017
7475 #: ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3881
7476 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7477 msgstr ""
7478
7479 # type: =head2
7480 #: ../src/guestfs-actions.pod:1926
7481 msgid "guestfs_hexdump"
7482 msgstr ""
7483
7484 # type: verbatim
7485 #: ../src/guestfs-actions.pod:1928
7486 #, no-wrap
7487 msgid ""
7488 " char *guestfs_hexdump (guestfs_h *g,\n"
7489 "\t\tconst char *path);\n"
7490 "\n"
7491 msgstr ""
7492
7493 # type: textblock
7494 #: ../src/guestfs-actions.pod:1931 ../fish/guestfish-actions.pod:1511
7495 msgid ""
7496 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7497 "readable, canonical hex dump of the file."
7498 msgstr ""
7499
7500 # type: =head2
7501 #: ../src/guestfs-actions.pod:1940
7502 msgid "guestfs_initrd_cat"
7503 msgstr ""
7504
7505 # type: verbatim
7506 #: ../src/guestfs-actions.pod:1942
7507 #, no-wrap
7508 msgid ""
7509 " char *guestfs_initrd_cat (guestfs_h *g,\n"
7510 "\t\tconst char *initrdpath,\n"
7511 "\t\tconst char *filename,\n"
7512 "\t\tsize_t *size_r);\n"
7513 "\n"
7514 msgstr ""
7515
7516 # type: textblock
7517 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1521
7518 msgid ""
7519 "This command unpacks the file C<filename> from the initrd file called "
7520 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7521 "character."
7522 msgstr ""
7523
7524 # type: textblock
7525 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1525
7526 msgid ""
7527 "For example, in guestfish you could use the following command to examine the "
7528 "boot script (usually called C</init>)  contained in a Linux initrd or "
7529 "initramfs image:"
7530 msgstr ""
7531
7532 # type: verbatim
7533 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1529
7534 #, no-wrap
7535 msgid ""
7536 " initrd-cat /boot/initrd-<version>.img init\n"
7537 "\n"
7538 msgstr ""
7539
7540 # type: textblock
7541 #: ../src/guestfs-actions.pod:1957
7542 msgid "See also C<guestfs_initrd_list>."
7543 msgstr ""
7544
7545 # type: textblock
7546 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:3929
7547 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:4104
7548 msgid ""
7549 "This function returns a buffer, or NULL on error.  The size of the returned "
7550 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7551 "after use>."
7552 msgstr ""
7553
7554 # type: =head2
7555 #: ../src/guestfs-actions.pod:1966
7556 msgid "guestfs_initrd_list"
7557 msgstr ""
7558
7559 # type: verbatim
7560 #: ../src/guestfs-actions.pod:1968
7561 #, no-wrap
7562 msgid ""
7563 " char **guestfs_initrd_list (guestfs_h *g,\n"
7564 "\t\tconst char *path);\n"
7565 "\n"
7566 msgstr ""
7567
7568 # type: textblock
7569 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1540
7570 msgid "This command lists out files contained in an initrd."
7571 msgstr ""
7572
7573 # type: textblock
7574 #: ../src/guestfs-actions.pod:1973 ../fish/guestfish-actions.pod:1542
7575 msgid ""
7576 "The files are listed without any initial C</> character.  The files are "
7577 "listed in the order they appear (not necessarily alphabetical).  Directory "
7578 "names are listed as separate items."
7579 msgstr ""
7580
7581 # type: textblock
7582 #: ../src/guestfs-actions.pod:1977 ../fish/guestfish-actions.pod:1546
7583 msgid ""
7584 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7585 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7586 "files)."
7587 msgstr ""
7588
7589 # type: =head2
7590 #: ../src/guestfs-actions.pod:1985
7591 msgid "guestfs_inotify_add_watch"
7592 msgstr ""
7593
7594 # type: verbatim
7595 #: ../src/guestfs-actions.pod:1987
7596 #, no-wrap
7597 msgid ""
7598 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
7599 "\t\tconst char *path,\n"
7600 "\t\tint mask);\n"
7601 "\n"
7602 msgstr ""
7603
7604 # type: textblock
7605 #: ../src/guestfs-actions.pod:1991 ../fish/guestfish-actions.pod:1554
7606 msgid "Watch C<path> for the events listed in C<mask>."
7607 msgstr ""
7608
7609 # type: textblock
7610 #: ../src/guestfs-actions.pod:1993 ../fish/guestfish-actions.pod:1556
7611 msgid ""
7612 "Note that if C<path> is a directory then events within that directory are "
7613 "watched, but this does I<not> happen recursively (in subdirectories)."
7614 msgstr ""
7615
7616 # type: textblock
7617 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1560
7618 msgid ""
7619 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7620 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7621 msgstr ""
7622
7623 # type: =head2
7624 #: ../src/guestfs-actions.pod:2003
7625 msgid "guestfs_inotify_close"
7626 msgstr ""
7627
7628 # type: verbatim
7629 #: ../src/guestfs-actions.pod:2005
7630 #, no-wrap
7631 msgid ""
7632 " int guestfs_inotify_close (guestfs_h *g);\n"
7633 "\n"
7634 msgstr ""
7635
7636 # type: textblock
7637 #: ../src/guestfs-actions.pod:2007 ../fish/guestfish-actions.pod:1568
7638 msgid ""
7639 "This closes the inotify handle which was previously opened by inotify_init.  "
7640 "It removes all watches, throws away any pending events, and deallocates all "
7641 "resources."
7642 msgstr ""
7643
7644 # type: =head2
7645 #: ../src/guestfs-actions.pod:2013
7646 msgid "guestfs_inotify_files"
7647 msgstr ""
7648
7649 # type: verbatim
7650 #: ../src/guestfs-actions.pod:2015
7651 #, no-wrap
7652 msgid ""
7653 " char **guestfs_inotify_files (guestfs_h *g);\n"
7654 "\n"
7655 msgstr ""
7656
7657 # type: textblock
7658 #: ../src/guestfs-actions.pod:2017
7659 msgid ""
7660 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7661 "returns a list of pathnames of objects that were touched.  The returned "
7662 "pathnames are sorted and deduplicated."
7663 msgstr ""
7664
7665 # type: =head2
7666 #: ../src/guestfs-actions.pod:2025
7667 msgid "guestfs_inotify_init"
7668 msgstr ""
7669
7670 # type: verbatim
7671 #: ../src/guestfs-actions.pod:2027
7672 #, no-wrap
7673 msgid ""
7674 " int guestfs_inotify_init (guestfs_h *g,\n"
7675 "\t\tint maxevents);\n"
7676 "\n"
7677 msgstr ""
7678
7679 # type: textblock
7680 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1584
7681 msgid ""
7682 "This command creates a new inotify handle.  The inotify subsystem can be "
7683 "used to notify events which happen to objects in the guest filesystem."
7684 msgstr ""
7685
7686 # type: textblock
7687 #: ../src/guestfs-actions.pod:2034
7688 msgid ""
7689 "C<maxevents> is the maximum number of events which will be queued up between "
7690 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7691 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7692 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7693 "throws away events, but records the fact that it threw them away by setting "
7694 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7695 "C<guestfs_inotify_read>)."
7696 msgstr ""
7697
7698 # type: textblock
7699 #: ../src/guestfs-actions.pod:2044
7700 msgid ""
7701 "Before any events are generated, you have to add some watches to the "
7702 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7703 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7704 msgstr ""
7705
7706 # type: textblock
7707 #: ../src/guestfs-actions.pod:2050
7708 msgid ""
7709 "Queued up events should be read periodically by calling "
7710 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7711 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7712 "often enough then you risk the internal queue overflowing."
7713 msgstr ""
7714
7715 # type: textblock
7716 #: ../src/guestfs-actions.pod:2057
7717 msgid ""
7718 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7719 "This also removes any watches automatically."
7720 msgstr ""
7721
7722 # type: textblock
7723 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1615
7724 msgid ""
7725 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7726 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7727 "that there is one global inotify handle per libguestfs instance."
7728 msgstr ""
7729
7730 # type: =head2
7731 #: ../src/guestfs-actions.pod:2068
7732 msgid "guestfs_inotify_read"
7733 msgstr ""
7734
7735 # type: verbatim
7736 #: ../src/guestfs-actions.pod:2070
7737 #, no-wrap
7738 msgid ""
7739 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7740 "\n"
7741 msgstr ""
7742
7743 # type: textblock
7744 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1624
7745 msgid ""
7746 "Return the complete queue of events that have happened since the previous "
7747 "read call."
7748 msgstr ""
7749
7750 # type: textblock
7751 #: ../src/guestfs-actions.pod:2075 ../fish/guestfish-actions.pod:1627
7752 msgid "If no events have happened, this returns an empty list."
7753 msgstr ""
7754
7755 # type: textblock
7756 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1629
7757 msgid ""
7758 "I<Note>: In order to make sure that all events have been read, you must call "
7759 "this function repeatedly until it returns an empty list.  The reason is that "
7760 "the call will read events up to the maximum appliance-to-host message size "
7761 "and leave remaining events in the queue."
7762 msgstr ""
7763
7764 # type: textblock
7765 #: ../src/guestfs-actions.pod:2083
7766 msgid ""
7767 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7768 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7769 "must call C<guestfs_free_inotify_event_list> after use>."
7770 msgstr ""
7771
7772 # type: =head2
7773 #: ../src/guestfs-actions.pod:2088
7774 msgid "guestfs_inotify_rm_watch"
7775 msgstr ""
7776
7777 # type: verbatim
7778 #: ../src/guestfs-actions.pod:2090
7779 #, no-wrap
7780 msgid ""
7781 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7782 "\t\tint wd);\n"
7783 "\n"
7784 msgstr ""
7785
7786 # type: textblock
7787 #: ../src/guestfs-actions.pod:2093
7788 msgid ""
7789 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
7790 msgstr ""
7791
7792 # type: =head2
7793 #: ../src/guestfs-actions.pod:2098
7794 msgid "guestfs_inspect_get_arch"
7795 msgstr ""
7796
7797 # type: verbatim
7798 #: ../src/guestfs-actions.pod:2100
7799 #, no-wrap
7800 msgid ""
7801 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7802 "\t\tconst char *root);\n"
7803 "\n"
7804 msgstr ""
7805
7806 # type: textblock
7807 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2123
7808 #: ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:2196
7809 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2238
7810 #: ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:2289
7811 msgid ""
7812 "This function should only be called with a root device string as returned by "
7813 "C<guestfs_inspect_os>."
7814 msgstr ""
7815
7816 # type: textblock
7817 #: ../src/guestfs-actions.pod:2106
7818 msgid ""
7819 "This returns the architecture of the inspected operating system.  The "
7820 "possible return values are listed under C<guestfs_file_architecture>."
7821 msgstr ""
7822
7823 # type: textblock
7824 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1653
7825 msgid ""
7826 "If the architecture could not be determined, then the string C<unknown> is "
7827 "returned."
7828 msgstr ""
7829
7830 # type: textblock
7831 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2163
7832 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:2279
7833 #: ../src/guestfs-actions.pod:2314 ../src/guestfs-actions.pod:2351
7834 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:1702
7835 #: ../fish/guestfish-actions.pod:1741 ../fish/guestfish-actions.pod:1796
7836 #: ../fish/guestfish-actions.pod:1827 ../fish/guestfish-actions.pod:1861
7837 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7838 msgstr ""
7839
7840 # type: =head2
7841 #: ../src/guestfs-actions.pod:2118
7842 msgid "guestfs_inspect_get_distro"
7843 msgstr ""
7844
7845 # type: verbatim
7846 #: ../src/guestfs-actions.pod:2120
7847 #, no-wrap
7848 msgid ""
7849 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7850 "\t\tconst char *root);\n"
7851 "\n"
7852 msgstr ""
7853
7854 # type: textblock
7855 #: ../src/guestfs-actions.pod:2126 ../fish/guestfish-actions.pod:1665
7856 msgid ""
7857 "This returns the distro (distribution) of the inspected operating system."
7858 msgstr ""
7859
7860 # type: textblock
7861 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1668
7862 msgid "Currently defined distros are:"
7863 msgstr ""
7864
7865 # type: =item
7866 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1672
7867 msgid "\"debian\""
7868 msgstr ""
7869
7870 # type: textblock
7871 #: ../src/guestfs-actions.pod:2135 ../fish/guestfish-actions.pod:1674
7872 msgid "Debian or a Debian-derived distro such as Ubuntu."
7873 msgstr ""
7874
7875 # type: =item
7876 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1676
7877 msgid "\"fedora\""
7878 msgstr ""
7879
7880 # type: textblock
7881 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1678
7882 msgid "Fedora."
7883 msgstr ""
7884
7885 # type: =item
7886 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1680
7887 msgid "\"redhat-based\""
7888 msgstr ""
7889
7890 # type: textblock
7891 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1682
7892 msgid "Some Red Hat-derived distro."
7893 msgstr ""
7894
7895 # type: =item
7896 #: ../src/guestfs-actions.pod:2145 ../fish/guestfish-actions.pod:1684
7897 msgid "\"rhel\""
7898 msgstr ""
7899
7900 # type: textblock
7901 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1686
7902 msgid "Red Hat Enterprise Linux and some derivatives."
7903 msgstr ""
7904
7905 # type: =item
7906 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2301
7907 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1814
7908 msgid "\"windows\""
7909 msgstr ""
7910
7911 # type: textblock
7912 #: ../src/guestfs-actions.pod:2151 ../fish/guestfish-actions.pod:1690
7913 msgid ""
7914 "Windows does not have distributions.  This string is returned if the OS type "
7915 "is Windows."
7916 msgstr ""
7917
7918 # type: =item
7919 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2305
7920 #: ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1818
7921 msgid "\"unknown\""
7922 msgstr ""
7923
7924 # type: textblock
7925 #: ../src/guestfs-actions.pod:2156 ../fish/guestfish-actions.pod:1695
7926 msgid "The distro could not be determined."
7927 msgstr ""
7928
7929 # type: textblock
7930 #: ../src/guestfs-actions.pod:2160 ../src/guestfs-actions.pod:2311
7931 #: ../fish/guestfish-actions.pod:1699 ../fish/guestfish-actions.pod:1824
7932 msgid ""
7933 "Future versions of libguestfs may return other strings here.  The caller "
7934 "should be prepared to handle any string."
7935 msgstr ""
7936
7937 # type: =head2
7938 #: ../src/guestfs-actions.pod:2168
7939 msgid "guestfs_inspect_get_filesystems"
7940 msgstr ""
7941
7942 # type: verbatim
7943 #: ../src/guestfs-actions.pod:2170
7944 #, no-wrap
7945 msgid ""
7946 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7947 "\t\tconst char *root);\n"
7948 "\n"
7949 msgstr ""
7950
7951 # type: textblock
7952 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1711
7953 msgid ""
7954 "This returns a list of all the filesystems that we think are associated with "
7955 "this operating system.  This includes the root filesystem, other ordinary "
7956 "filesystems, and non-mounted devices like swap partitions."
7957 msgstr ""
7958
7959 # type: textblock
7960 #: ../src/guestfs-actions.pod:2181 ../fish/guestfish-actions.pod:1716
7961 msgid ""
7962 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7963 "to be shared between operating systems."
7964 msgstr ""
7965
7966 # type: textblock
7967 #: ../src/guestfs-actions.pod:2184
7968 msgid ""
7969 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7970 "C<guestfs_inspect_get_mountpoints>."
7971 msgstr ""
7972
7973 # type: =head2
7974 #: ../src/guestfs-actions.pod:2191
7975 msgid "guestfs_inspect_get_major_version"
7976 msgstr ""
7977
7978 # type: verbatim
7979 #: ../src/guestfs-actions.pod:2193
7980 #, no-wrap
7981 msgid ""
7982 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7983 "\t\tconst char *root);\n"
7984 "\n"
7985 msgstr ""
7986
7987 # type: textblock
7988 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1729
7989 msgid ""
7990 "This returns the major version number of the inspected operating system."
7991 msgstr ""
7992
7993 # type: textblock
7994 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1732
7995 msgid ""
7996 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7997 "popular public names used by the operating system.  Notably the operating "
7998 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7999 "1).  You can find out the real versions corresponding to releases of Windows "
8000 "by consulting Wikipedia or MSDN."
8001 msgstr ""
8002
8003 # type: textblock
8004 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2226
8005 #: ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1753
8006 msgid "If the version could not be determined, then C<0> is returned."
8007 msgstr ""
8008
8009 # type: =head2
8010 #: ../src/guestfs-actions.pod:2215
8011 msgid "guestfs_inspect_get_minor_version"
8012 msgstr ""
8013
8014 # type: verbatim
8015 #: ../src/guestfs-actions.pod:2217
8016 #, no-wrap
8017 msgid ""
8018 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8019 "\t\tconst char *root);\n"
8020 "\n"
8021 msgstr ""
8022
8023 # type: textblock
8024 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1750
8025 msgid ""
8026 "This returns the minor version number of the inspected operating system."
8027 msgstr ""
8028
8029 # type: textblock
8030 #: ../src/guestfs-actions.pod:2228
8031 msgid ""
8032 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8033 "C<guestfs_inspect_get_major_version>."
8034 msgstr ""
8035
8036 # type: =head2
8037 #: ../src/guestfs-actions.pod:2233
8038 msgid "guestfs_inspect_get_mountpoints"
8039 msgstr ""
8040
8041 # type: verbatim
8042 #: ../src/guestfs-actions.pod:2235
8043 #, no-wrap
8044 msgid ""
8045 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8046 "\t\tconst char *root);\n"
8047 "\n"
8048 msgstr ""
8049
8050 # type: textblock
8051 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1765
8052 msgid ""
8053 "This returns a hash of where we think the filesystems associated with this "
8054 "operating system should be mounted.  Callers should note that this is at "
8055 "best an educated guess made by reading configuration files such as C</etc/"
8056 "fstab>."
8057 msgstr ""
8058
8059 # type: textblock
8060 #: ../src/guestfs-actions.pod:2246 ../fish/guestfish-actions.pod:1770
8061 msgid ""
8062 "Each element in the returned hashtable has a key which is the path of the "
8063 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8064 "mounted there (eg. C</dev/sda1>)."
8065 msgstr ""
8066
8067 # type: textblock
8068 #: ../src/guestfs-actions.pod:2251 ../fish/guestfish-actions.pod:1775
8069 msgid ""
8070 "Non-mounted devices such as swap devices are I<not> returned in this list."
8071 msgstr ""
8072
8073 # type: textblock
8074 #: ../src/guestfs-actions.pod:2254
8075 msgid ""
8076 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8077 "C<guestfs_inspect_get_filesystems>."
8078 msgstr ""
8079
8080 # type: textblock
8081 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2597
8082 #: ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:5134
8083 msgid ""
8084 "This function returns a NULL-terminated array of strings, or NULL if there "
8085 "was an error.  The array of strings will always have length C<2n+1>, where "
8086 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8087 "caller must free the strings and the array after use>."
8088 msgstr ""
8089
8090 # type: =head2
8091 #: ../src/guestfs-actions.pod:2263
8092 msgid "guestfs_inspect_get_product_name"
8093 msgstr ""
8094
8095 # type: verbatim
8096 #: ../src/guestfs-actions.pod:2265
8097 #, no-wrap
8098 msgid ""
8099 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
8100 "\t\tconst char *root);\n"
8101 "\n"
8102 msgstr ""
8103
8104 # type: textblock
8105 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1788
8106 msgid ""
8107 "This returns the product name of the inspected operating system.  The "
8108 "product name is generally some freeform string which can be displayed to the "
8109 "user, but should not be parsed by programs."
8110 msgstr ""
8111
8112 # type: textblock
8113 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1793
8114 msgid ""
8115 "If the product name could not be determined, then the string C<unknown> is "
8116 "returned."
8117 msgstr ""
8118
8119 # type: =head2
8120 #: ../src/guestfs-actions.pod:2284
8121 msgid "guestfs_inspect_get_type"
8122 msgstr ""
8123
8124 # type: verbatim
8125 #: ../src/guestfs-actions.pod:2286
8126 #, no-wrap
8127 msgid ""
8128 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
8129 "\t\tconst char *root);\n"
8130 "\n"
8131 msgstr ""
8132
8133 # type: textblock
8134 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1805
8135 msgid ""
8136 "This returns the type of the inspected operating system.  Currently defined "
8137 "types are:"
8138 msgstr ""
8139
8140 # type: =item
8141 #: ../src/guestfs-actions.pod:2297 ../fish/guestfish-actions.pod:1810
8142 msgid "\"linux\""
8143 msgstr ""
8144
8145 # type: textblock
8146 #: ../src/guestfs-actions.pod:2299 ../fish/guestfish-actions.pod:1812
8147 msgid "Any Linux-based operating system."
8148 msgstr ""
8149
8150 # type: textblock
8151 #: ../src/guestfs-actions.pod:2303 ../fish/guestfish-actions.pod:1816
8152 msgid "Any Microsoft Windows operating system."
8153 msgstr ""
8154
8155 # type: textblock
8156 #: ../src/guestfs-actions.pod:2307 ../fish/guestfish-actions.pod:1820
8157 msgid "The operating system type could not be determined."
8158 msgstr ""
8159
8160 # type: =head2
8161 #: ../src/guestfs-actions.pod:2319
8162 msgid "guestfs_inspect_os"
8163 msgstr ""
8164
8165 # type: verbatim
8166 #: ../src/guestfs-actions.pod:2321
8167 #, no-wrap
8168 msgid ""
8169 " char **guestfs_inspect_os (guestfs_h *g);\n"
8170 "\n"
8171 msgstr ""
8172
8173 # type: textblock
8174 #: ../src/guestfs-actions.pod:2323 ../fish/guestfish-actions.pod:1833
8175 msgid ""
8176 "This function uses other libguestfs functions and certain heuristics to "
8177 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8178 "for operating systems."
8179 msgstr ""
8180
8181 # type: textblock
8182 #: ../src/guestfs-actions.pod:2327 ../fish/guestfish-actions.pod:1837
8183 msgid "The list returned is empty if no operating systems were found."
8184 msgstr ""
8185
8186 # type: textblock
8187 #: ../src/guestfs-actions.pod:2329 ../fish/guestfish-actions.pod:1839
8188 msgid ""
8189 "If one operating system was found, then this returns a list with a single "
8190 "element, which is the name of the root filesystem of this operating system.  "
8191 "It is also possible for this function to return a list containing more than "
8192 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8193 "element being the root filesystem of one of the operating systems."
8194 msgstr ""
8195
8196 # type: textblock
8197 #: ../src/guestfs-actions.pod:2336
8198 msgid ""
8199 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8200 "functions in order to query further information about each operating system, "
8201 "such as the name and version."
8202 msgstr ""
8203
8204 # type: textblock
8205 #: ../src/guestfs-actions.pod:2341
8206 msgid ""
8207 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8208 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8209 "the contents.  This should be called with no disks currently mounted.  The "
8210 "function may also use Augeas, so any existing Augeas handle will be closed."
8211 msgstr ""
8212
8213 # type: textblock
8214 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1857
8215 msgid ""
8216 "This function cannot decrypt encrypted disks.  The caller must do that first "
8217 "(supplying the necessary keys) if the disk is encrypted."
8218 msgstr ""
8219
8220 # type: textblock
8221 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2558
8222 #: ../src/guestfs-actions.pod:2614
8223 msgid "See also C<guestfs_list_filesystems>."
8224 msgstr ""
8225
8226 # type: =head2
8227 #: ../src/guestfs-actions.pod:2359
8228 msgid "guestfs_is_blockdev"
8229 msgstr ""
8230
8231 # type: verbatim
8232 #: ../src/guestfs-actions.pod:2361
8233 #, no-wrap
8234 msgid ""
8235 " int guestfs_is_blockdev (guestfs_h *g,\n"
8236 "\t\tconst char *path);\n"
8237 "\n"
8238 msgstr ""
8239
8240 # type: textblock
8241 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1869
8242 msgid ""
8243 "This returns C<true> if and only if there is a block device with the given "
8244 "C<path> name."
8245 msgstr ""
8246
8247 # type: textblock
8248 #: ../src/guestfs-actions.pod:2367 ../src/guestfs-actions.pod:2390
8249 #: ../src/guestfs-actions.pod:2414 ../src/guestfs-actions.pod:2426
8250 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2483
8251 #: ../src/guestfs-actions.pod:2495
8252 msgid "See also C<guestfs_stat>."
8253 msgstr ""
8254
8255 # type: =head2
8256 #: ../src/guestfs-actions.pod:2371
8257 msgid "guestfs_is_busy"
8258 msgstr ""
8259
8260 # type: verbatim
8261 #: ../src/guestfs-actions.pod:2373
8262 #, no-wrap
8263 msgid ""
8264 " int guestfs_is_busy (guestfs_h *g);\n"
8265 "\n"
8266 msgstr ""
8267
8268 # type: textblock
8269 #: ../src/guestfs-actions.pod:2375 ../fish/guestfish-actions.pod:1878
8270 msgid ""
8271 "This returns true iff this handle is busy processing a command (in the "
8272 "C<BUSY> state)."
8273 msgstr ""
8274
8275 # type: =head2
8276 #: ../src/guestfs-actions.pod:2382
8277 msgid "guestfs_is_chardev"
8278 msgstr ""
8279
8280 # type: verbatim
8281 #: ../src/guestfs-actions.pod:2384
8282 #, no-wrap
8283 msgid ""
8284 " int guestfs_is_chardev (guestfs_h *g,\n"
8285 "\t\tconst char *path);\n"
8286 "\n"
8287 msgstr ""
8288
8289 # type: textblock
8290 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1887
8291 msgid ""
8292 "This returns C<true> if and only if there is a character device with the "
8293 "given C<path> name."
8294 msgstr ""
8295
8296 # type: =head2
8297 #: ../src/guestfs-actions.pod:2394
8298 msgid "guestfs_is_config"
8299 msgstr ""
8300
8301 # type: verbatim
8302 #: ../src/guestfs-actions.pod:2396
8303 #, no-wrap
8304 msgid ""
8305 " int guestfs_is_config (guestfs_h *g);\n"
8306 "\n"
8307 msgstr ""
8308
8309 # type: textblock
8310 #: ../src/guestfs-actions.pod:2398 ../fish/guestfish-actions.pod:1896
8311 msgid ""
8312 "This returns true iff this handle is being configured (in the C<CONFIG> "
8313 "state)."
8314 msgstr ""
8315
8316 # type: =head2
8317 #: ../src/guestfs-actions.pod:2405
8318 msgid "guestfs_is_dir"
8319 msgstr ""
8320
8321 # type: verbatim
8322 #: ../src/guestfs-actions.pod:2407
8323 #, no-wrap
8324 msgid ""
8325 " int guestfs_is_dir (guestfs_h *g,\n"
8326 "\t\tconst char *path);\n"
8327 "\n"
8328 msgstr ""
8329
8330 # type: textblock
8331 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1905
8332 msgid ""
8333 "This returns C<true> if and only if there is a directory with the given "
8334 "C<path> name.  Note that it returns false for other objects like files."
8335 msgstr ""
8336
8337 # type: =head2
8338 #: ../src/guestfs-actions.pod:2418
8339 msgid "guestfs_is_fifo"
8340 msgstr ""
8341
8342 # type: verbatim
8343 #: ../src/guestfs-actions.pod:2420
8344 #, no-wrap
8345 msgid ""
8346 " int guestfs_is_fifo (guestfs_h *g,\n"
8347 "\t\tconst char *path);\n"
8348 "\n"
8349 msgstr ""
8350
8351 # type: textblock
8352 #: ../src/guestfs-actions.pod:2423 ../fish/guestfish-actions.pod:1915
8353 msgid ""
8354 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8355 "given C<path> name."
8356 msgstr ""
8357
8358 # type: =head2
8359 #: ../src/guestfs-actions.pod:2430
8360 msgid "guestfs_is_file"
8361 msgstr ""
8362
8363 # type: verbatim
8364 #: ../src/guestfs-actions.pod:2432
8365 #, no-wrap
8366 msgid ""
8367 " int guestfs_is_file (guestfs_h *g,\n"
8368 "\t\tconst char *path);\n"
8369 "\n"
8370 msgstr ""
8371
8372 # type: textblock
8373 #: ../src/guestfs-actions.pod:2435 ../fish/guestfish-actions.pod:1924
8374 msgid ""
8375 "This returns C<true> if and only if there is a regular file with the given "
8376 "C<path> name.  Note that it returns false for other objects like directories."
8377 msgstr ""
8378
8379 # type: =head2
8380 #: ../src/guestfs-actions.pod:2443
8381 msgid "guestfs_is_launching"
8382 msgstr ""
8383
8384 # type: verbatim
8385 #: ../src/guestfs-actions.pod:2445
8386 #, no-wrap
8387 msgid ""
8388 " int guestfs_is_launching (guestfs_h *g);\n"
8389 "\n"
8390 msgstr ""
8391
8392 # type: textblock
8393 #: ../src/guestfs-actions.pod:2447 ../fish/guestfish-actions.pod:1934
8394 msgid ""
8395 "This returns true iff this handle is launching the subprocess (in the "
8396 "C<LAUNCHING> state)."
8397 msgstr ""
8398
8399 # type: =head2
8400 #: ../src/guestfs-actions.pod:2454
8401 msgid "guestfs_is_lv"
8402 msgstr ""
8403
8404 # type: verbatim
8405 #: ../src/guestfs-actions.pod:2456
8406 #, no-wrap
8407 msgid ""
8408 " int guestfs_is_lv (guestfs_h *g,\n"
8409 "\t\tconst char *device);\n"
8410 "\n"
8411 msgstr ""
8412
8413 # type: textblock
8414 #: ../src/guestfs-actions.pod:2459 ../fish/guestfish-actions.pod:1943
8415 msgid ""
8416 "This command tests whether C<device> is a logical volume, and returns true "
8417 "iff this is the case."
8418 msgstr ""
8419
8420 # type: =head2
8421 #: ../src/guestfs-actions.pod:2464
8422 msgid "guestfs_is_ready"
8423 msgstr ""
8424
8425 # type: verbatim
8426 #: ../src/guestfs-actions.pod:2466
8427 #, no-wrap
8428 msgid ""
8429 " int guestfs_is_ready (guestfs_h *g);\n"
8430 "\n"
8431 msgstr ""
8432
8433 # type: textblock
8434 #: ../src/guestfs-actions.pod:2468 ../fish/guestfish-actions.pod:1950
8435 msgid ""
8436 "This returns true iff this handle is ready to accept commands (in the "
8437 "C<READY> state)."
8438 msgstr ""
8439
8440 # type: =head2
8441 #: ../src/guestfs-actions.pod:2475
8442 msgid "guestfs_is_socket"
8443 msgstr ""
8444
8445 # type: verbatim
8446 #: ../src/guestfs-actions.pod:2477
8447 #, no-wrap
8448 msgid ""
8449 " int guestfs_is_socket (guestfs_h *g,\n"
8450 "\t\tconst char *path);\n"
8451 "\n"
8452 msgstr ""
8453
8454 # type: textblock
8455 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1959
8456 msgid ""
8457 "This returns C<true> if and only if there is a Unix domain socket with the "
8458 "given C<path> name."
8459 msgstr ""
8460
8461 # type: =head2
8462 #: ../src/guestfs-actions.pod:2487
8463 msgid "guestfs_is_symlink"
8464 msgstr ""
8465
8466 # type: verbatim
8467 #: ../src/guestfs-actions.pod:2489
8468 #, no-wrap
8469 msgid ""
8470 " int guestfs_is_symlink (guestfs_h *g,\n"
8471 "\t\tconst char *path);\n"
8472 "\n"
8473 msgstr ""
8474
8475 # type: textblock
8476 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1968
8477 msgid ""
8478 "This returns C<true> if and only if there is a symbolic link with the given "
8479 "C<path> name."
8480 msgstr ""
8481
8482 # type: =head2
8483 #: ../src/guestfs-actions.pod:2499
8484 msgid "guestfs_kill_subprocess"
8485 msgstr ""
8486
8487 # type: verbatim
8488 #: ../src/guestfs-actions.pod:2501
8489 #, no-wrap
8490 msgid ""
8491 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8492 "\n"
8493 msgstr ""
8494
8495 # type: textblock
8496 #: ../src/guestfs-actions.pod:2503 ../fish/guestfish-actions.pod:1977
8497 msgid "This kills the qemu subprocess.  You should never need to call this."
8498 msgstr ""
8499
8500 # type: =head2
8501 #: ../src/guestfs-actions.pod:2507
8502 msgid "guestfs_launch"
8503 msgstr ""
8504
8505 # type: verbatim
8506 #: ../src/guestfs-actions.pod:2509
8507 #, no-wrap
8508 msgid ""
8509 " int guestfs_launch (guestfs_h *g);\n"
8510 "\n"
8511 msgstr ""
8512
8513 # type: textblock
8514 #: ../src/guestfs-actions.pod:2511 ../fish/guestfish-actions.pod:1985
8515 msgid ""
8516 "Internally libguestfs is implemented by running a virtual machine using "
8517 "L<qemu(1)>."
8518 msgstr ""
8519
8520 # type: textblock
8521 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1988
8522 msgid ""
8523 "You should call this after configuring the handle (eg. adding drives) but "
8524 "before performing any actions."
8525 msgstr ""
8526
8527 # type: =head2
8528 #: ../src/guestfs-actions.pod:2519
8529 msgid "guestfs_lchown"
8530 msgstr ""
8531
8532 # type: verbatim
8533 #: ../src/guestfs-actions.pod:2521
8534 #, no-wrap
8535 msgid ""
8536 " int guestfs_lchown (guestfs_h *g,\n"
8537 "\t\tint owner,\n"
8538 "\t\tint group,\n"
8539 "\t\tconst char *path);\n"
8540 "\n"
8541 msgstr ""
8542
8543 # type: textblock
8544 #: ../src/guestfs-actions.pod:2526
8545 msgid ""
8546 "Change the file owner to C<owner> and group to C<group>.  This is like "
8547 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8548 "changed, not the target."
8549 msgstr ""
8550
8551 # type: =head2
8552 #: ../src/guestfs-actions.pod:2536
8553 msgid "guestfs_lgetxattrs"
8554 msgstr ""
8555
8556 # type: verbatim
8557 #: ../src/guestfs-actions.pod:2538
8558 #, no-wrap
8559 msgid ""
8560 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8561 "\t\tconst char *path);\n"
8562 "\n"
8563 msgstr ""
8564
8565 # type: textblock
8566 #: ../src/guestfs-actions.pod:2541
8567 msgid ""
8568 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8569 "then it returns the extended attributes of the link itself."
8570 msgstr ""
8571
8572 # type: =head2
8573 #: ../src/guestfs-actions.pod:2550
8574 msgid "guestfs_list_devices"
8575 msgstr ""
8576
8577 # type: verbatim
8578 #: ../src/guestfs-actions.pod:2552
8579 #, no-wrap
8580 msgid ""
8581 " char **guestfs_list_devices (guestfs_h *g);\n"
8582 "\n"
8583 msgstr ""
8584
8585 # type: textblock
8586 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:2015
8587 msgid "List all the block devices."
8588 msgstr ""
8589
8590 # type: textblock
8591 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:2017
8592 msgid "The full block device names are returned, eg. C</dev/sda>."
8593 msgstr ""
8594
8595 # type: =head2
8596 #: ../src/guestfs-actions.pod:2564
8597 msgid "guestfs_list_filesystems"
8598 msgstr ""
8599
8600 # type: verbatim
8601 #: ../src/guestfs-actions.pod:2566
8602 #, no-wrap
8603 msgid ""
8604 " char **guestfs_list_filesystems (guestfs_h *g);\n"
8605 "\n"
8606 msgstr ""
8607
8608 # type: textblock
8609 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:2025
8610 msgid ""
8611 "This inspection command looks for filesystems on partitions, block devices "
8612 "and logical volumes, returning a list of devices containing filesystems and "
8613 "their type."
8614 msgstr ""
8615
8616 # type: textblock
8617 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:2029
8618 msgid ""
8619 "The return value is a hash, where the keys are the devices containing "
8620 "filesystems, and the values are the filesystem types.  For example:"
8621 msgstr ""
8622
8623 # type: verbatim
8624 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:2033
8625 #, no-wrap
8626 msgid ""
8627 " \"/dev/sda1\" => \"ntfs\"\n"
8628 " \"/dev/sda2\" => \"ext2\"\n"
8629 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8630 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8631 "\n"
8632 msgstr ""
8633
8634 # type: textblock
8635 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:2038
8636 msgid ""
8637 "The value can have the special value \"unknown\", meaning the content of the "
8638 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8639 msgstr ""
8640
8641 # type: textblock
8642 #: ../src/guestfs-actions.pod:2585
8643 msgid ""
8644 "This command runs other libguestfs commands, which might include "
8645 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8646 "soon after launch and only when nothing is mounted."
8647 msgstr ""
8648
8649 # type: textblock
8650 #: ../src/guestfs-actions.pod:2589
8651 msgid ""
8652 "Not all of the filesystems returned will be mountable.  In particular, swap "
8653 "partitions are returned in the list.  Also this command does not check that "
8654 "each filesystem found is valid and mountable, and some filesystems might be "
8655 "mountable but require special options.  Filesystems may not all belong to a "
8656 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
8657 msgstr ""
8658
8659 # type: =head2
8660 #: ../src/guestfs-actions.pod:2603
8661 msgid "guestfs_list_partitions"
8662 msgstr ""
8663
8664 # type: verbatim
8665 #: ../src/guestfs-actions.pod:2605
8666 #, no-wrap
8667 msgid ""
8668 " char **guestfs_list_partitions (guestfs_h *g);\n"
8669 "\n"
8670 msgstr ""
8671
8672 # type: textblock
8673 #: ../src/guestfs-actions.pod:2607 ../fish/guestfish-actions.pod:2058
8674 msgid "List all the partitions detected on all block devices."
8675 msgstr ""
8676
8677 # type: textblock
8678 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:2060
8679 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8680 msgstr ""
8681
8682 # type: textblock
8683 #: ../src/guestfs-actions.pod:2611
8684 msgid ""
8685 "This does not return logical volumes.  For that you will need to call "
8686 "C<guestfs_lvs>."
8687 msgstr ""
8688
8689 # type: =head2
8690 #: ../src/guestfs-actions.pod:2620
8691 msgid "guestfs_ll"
8692 msgstr ""
8693
8694 # type: verbatim
8695 #: ../src/guestfs-actions.pod:2622
8696 #, no-wrap
8697 msgid ""
8698 " char *guestfs_ll (guestfs_h *g,\n"
8699 "\t\tconst char *directory);\n"
8700 "\n"
8701 msgstr ""
8702
8703 # type: textblock
8704 #: ../src/guestfs-actions.pod:2625 ../fish/guestfish-actions.pod:2071
8705 msgid ""
8706 "List the files in C<directory> (relative to the root directory, there is no "
8707 "cwd) in the format of 'ls -la'."
8708 msgstr ""
8709
8710 # type: textblock
8711 #: ../src/guestfs-actions.pod:2628 ../fish/guestfish-actions.pod:2074
8712 msgid ""
8713 "This command is mostly useful for interactive sessions.  It is I<not> "
8714 "intended that you try to parse the output string."
8715 msgstr ""
8716
8717 # type: =head2
8718 #: ../src/guestfs-actions.pod:2634
8719 msgid "guestfs_ln"
8720 msgstr ""
8721
8722 # type: verbatim
8723 #: ../src/guestfs-actions.pod:2636
8724 #, no-wrap
8725 msgid ""
8726 " int guestfs_ln (guestfs_h *g,\n"
8727 "\t\tconst char *target,\n"
8728 "\t\tconst char *linkname);\n"
8729 "\n"
8730 msgstr ""
8731
8732 # type: textblock
8733 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:2081
8734 msgid "This command creates a hard link using the C<ln> command."
8735 msgstr ""
8736
8737 # type: =head2
8738 #: ../src/guestfs-actions.pod:2644
8739 msgid "guestfs_ln_f"
8740 msgstr ""
8741
8742 # type: verbatim
8743 #: ../src/guestfs-actions.pod:2646
8744 #, no-wrap
8745 msgid ""
8746 " int guestfs_ln_f (guestfs_h *g,\n"
8747 "\t\tconst char *target,\n"
8748 "\t\tconst char *linkname);\n"
8749 "\n"
8750 msgstr ""
8751
8752 # type: textblock
8753 #: ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:2087
8754 msgid ""
8755 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8756 "option removes the link (C<linkname>) if it exists already."
8757 msgstr ""
8758
8759 # type: =head2
8760 #: ../src/guestfs-actions.pod:2655
8761 msgid "guestfs_ln_s"
8762 msgstr ""
8763
8764 # type: verbatim
8765 #: ../src/guestfs-actions.pod:2657
8766 #, no-wrap
8767 msgid ""
8768 " int guestfs_ln_s (guestfs_h *g,\n"
8769 "\t\tconst char *target,\n"
8770 "\t\tconst char *linkname);\n"
8771 "\n"
8772 msgstr ""
8773
8774 # type: textblock
8775 #: ../src/guestfs-actions.pod:2661 ../fish/guestfish-actions.pod:2094
8776 msgid "This command creates a symbolic link using the C<ln -s> command."
8777 msgstr ""
8778
8779 # type: =head2
8780 #: ../src/guestfs-actions.pod:2665
8781 msgid "guestfs_ln_sf"
8782 msgstr ""
8783
8784 # type: verbatim
8785 #: ../src/guestfs-actions.pod:2667
8786 #, no-wrap
8787 msgid ""
8788 " int guestfs_ln_sf (guestfs_h *g,\n"
8789 "\t\tconst char *target,\n"
8790 "\t\tconst char *linkname);\n"
8791 "\n"
8792 msgstr ""
8793
8794 # type: textblock
8795 #: ../src/guestfs-actions.pod:2671 ../fish/guestfish-actions.pod:2100
8796 msgid ""
8797 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8798 "option removes the link (C<linkname>) if it exists already."
8799 msgstr ""
8800
8801 # type: =head2
8802 #: ../src/guestfs-actions.pod:2676
8803 msgid "guestfs_lremovexattr"
8804 msgstr ""
8805
8806 # type: verbatim
8807 #: ../src/guestfs-actions.pod:2678
8808 #, no-wrap
8809 msgid ""
8810 " int guestfs_lremovexattr (guestfs_h *g,\n"
8811 "\t\tconst char *xattr,\n"
8812 "\t\tconst char *path);\n"
8813 "\n"
8814 msgstr ""
8815
8816 # type: textblock
8817 #: ../src/guestfs-actions.pod:2682
8818 msgid ""
8819 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8820 "link, then it removes an extended attribute of the link itself."
8821 msgstr ""
8822
8823 # type: =head2
8824 #: ../src/guestfs-actions.pod:2688
8825 msgid "guestfs_ls"
8826 msgstr ""
8827
8828 # type: verbatim
8829 #: ../src/guestfs-actions.pod:2690
8830 #, no-wrap
8831 msgid ""
8832 " char **guestfs_ls (guestfs_h *g,\n"
8833 "\t\tconst char *directory);\n"
8834 "\n"
8835 msgstr ""
8836
8837 # type: textblock
8838 #: ../src/guestfs-actions.pod:2693 ../fish/guestfish-actions.pod:2115
8839 msgid ""
8840 "List the files in C<directory> (relative to the root directory, there is no "
8841 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
8842 msgstr ""
8843
8844 # type: textblock
8845 #: ../src/guestfs-actions.pod:2697
8846 msgid ""
8847 "This command is mostly useful for interactive sessions.  Programs should "
8848 "probably use C<guestfs_readdir> instead."
8849 msgstr ""
8850
8851 # type: =head2
8852 #: ../src/guestfs-actions.pod:2704
8853 msgid "guestfs_lsetxattr"
8854 msgstr ""
8855
8856 # type: verbatim
8857 #: ../src/guestfs-actions.pod:2706
8858 #, no-wrap
8859 msgid ""
8860 " int guestfs_lsetxattr (guestfs_h *g,\n"
8861 "\t\tconst char *xattr,\n"
8862 "\t\tconst char *val,\n"
8863 "\t\tint vallen,\n"
8864 "\t\tconst char *path);\n"
8865 "\n"
8866 msgstr ""
8867
8868 # type: textblock
8869 #: ../src/guestfs-actions.pod:2712
8870 msgid ""
8871 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8872 "then it sets an extended attribute of the link itself."
8873 msgstr ""
8874
8875 # type: =head2
8876 #: ../src/guestfs-actions.pod:2718
8877 msgid "guestfs_lstat"
8878 msgstr ""
8879
8880 # type: verbatim
8881 #: ../src/guestfs-actions.pod:2720
8882 #, no-wrap
8883 msgid ""
8884 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8885 "\t\tconst char *path);\n"
8886 "\n"
8887 msgstr ""
8888
8889 # type: textblock
8890 #: ../src/guestfs-actions.pod:2723 ../src/guestfs-actions.pod:4799
8891 #: ../fish/guestfish-actions.pod:2134 ../fish/guestfish-actions.pod:3716
8892 msgid "Returns file information for the given C<path>."
8893 msgstr ""
8894
8895 # type: textblock
8896 #: ../src/guestfs-actions.pod:2725
8897 msgid ""
8898 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8899 "link, then the link is stat-ed, not the file it refers to."
8900 msgstr ""
8901
8902 # type: textblock
8903 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:2140
8904 msgid "This is the same as the C<lstat(2)> system call."
8905 msgstr ""
8906
8907 # type: textblock
8908 #: ../src/guestfs-actions.pod:2731 ../src/guestfs-actions.pod:4803
8909 msgid ""
8910 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8911 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8912 msgstr ""
8913
8914 # type: =head2
8915 #: ../src/guestfs-actions.pod:2735
8916 msgid "guestfs_lstatlist"
8917 msgstr ""
8918
8919 # type: verbatim
8920 #: ../src/guestfs-actions.pod:2737
8921 #, no-wrap
8922 msgid ""
8923 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8924 "\t\tconst char *path,\n"
8925 "\t\tchar *const *names);\n"
8926 "\n"
8927 msgstr ""
8928
8929 # type: textblock
8930 #: ../src/guestfs-actions.pod:2741
8931 msgid ""
8932 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8933 "files, where all files are in the directory C<path>.  C<names> is the list "
8934 "of files from this directory."
8935 msgstr ""
8936
8937 # type: textblock
8938 #: ../src/guestfs-actions.pod:2745 ../fish/guestfish-actions.pod:2150
8939 msgid ""
8940 "On return you get a list of stat structs, with a one-to-one correspondence "
8941 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8942 "then the C<ino> field of that structure is set to C<-1>."
8943 msgstr ""
8944
8945 # type: textblock
8946 #: ../src/guestfs-actions.pod:2750
8947 msgid ""
8948 "This call is intended for programs that want to efficiently list a directory "
8949 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8950 "for a similarly efficient call for getting extended attributes.  Very long "
8951 "directory listings might cause the protocol message size to be exceeded, "
8952 "causing this call to fail.  The caller must split up such requests into "
8953 "smaller groups of names."
8954 msgstr ""
8955
8956 # type: textblock
8957 #: ../src/guestfs-actions.pod:2758
8958 msgid ""
8959 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
8960 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
8961 "C<guestfs_free_stat_list> after use>."
8962 msgstr ""
8963
8964 # type: =head2
8965 #: ../src/guestfs-actions.pod:2763
8966 msgid "guestfs_luks_add_key"
8967 msgstr ""
8968
8969 # type: verbatim
8970 #: ../src/guestfs-actions.pod:2765
8971 #, no-wrap
8972 msgid ""
8973 " int guestfs_luks_add_key (guestfs_h *g,\n"
8974 "\t\tconst char *device,\n"
8975 "\t\tconst char *key,\n"
8976 "\t\tconst char *newkey,\n"
8977 "\t\tint keyslot);\n"
8978 "\n"
8979 msgstr ""
8980
8981 # type: textblock
8982 #: ../src/guestfs-actions.pod:2771 ../fish/guestfish-actions.pod:2167
8983 msgid ""
8984 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8985 "existing key, and is used to access the device.  C<newkey> is the new key to "
8986 "add.  C<keyslot> is the key slot that will be replaced."
8987 msgstr ""
8988
8989 # type: textblock
8990 #: ../src/guestfs-actions.pod:2776
8991 msgid ""
8992 "Note that if C<keyslot> already contains a key, then this command will "
8993 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8994 msgstr ""
8995
8996 # type: textblock
8997 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2816
8998 #: ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:2853
8999 #: ../src/guestfs-actions.pod:2882 ../src/guestfs-actions.pod:2898
9000 msgid ""
9001 "This function takes a key or passphrase parameter which could contain "
9002 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9003 "information."
9004 msgstr ""
9005
9006 # type: =head2
9007 #: ../src/guestfs-actions.pod:2786
9008 msgid "guestfs_luks_close"
9009 msgstr ""
9010
9011 # type: verbatim
9012 #: ../src/guestfs-actions.pod:2788
9013 #, no-wrap
9014 msgid ""
9015 " int guestfs_luks_close (guestfs_h *g,\n"
9016 "\t\tconst char *device);\n"
9017 "\n"
9018 msgstr ""
9019
9020 # type: textblock
9021 #: ../src/guestfs-actions.pod:2791
9022 msgid ""
9023 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9024 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9025 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9026 "underlying block device."
9027 msgstr ""
9028
9029 # type: =head2
9030 #: ../src/guestfs-actions.pod:2799
9031 msgid "guestfs_luks_format"
9032 msgstr ""
9033
9034 # type: verbatim
9035 #: ../src/guestfs-actions.pod:2801
9036 #, no-wrap
9037 msgid ""
9038 " int guestfs_luks_format (guestfs_h *g,\n"
9039 "\t\tconst char *device,\n"
9040 "\t\tconst char *key,\n"
9041 "\t\tint keyslot);\n"
9042 "\n"
9043 msgstr ""
9044
9045 # type: textblock
9046 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:2193
9047 msgid ""
9048 "This command erases existing data on C<device> and formats the device as a "
9049 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9050 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9051 msgstr ""
9052
9053 # type: textblock
9054 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:2833
9055 #: ../src/guestfs-actions.pod:2952 ../src/guestfs-actions.pod:3679
9056 #: ../src/guestfs-actions.pod:4340 ../src/guestfs-actions.pod:4661
9057 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4704
9058 #: ../src/guestfs-actions.pod:5669 ../fish/guestfish-actions.pod:2201
9059 #: ../fish/guestfish-actions.pod:2214 ../fish/guestfish-actions.pod:2298
9060 #: ../fish/guestfish-actions.pod:2828 ../fish/guestfish-actions.pod:3335
9061 #: ../fish/guestfish-actions.pod:3615 ../fish/guestfish-actions.pod:3631
9062 #: ../fish/guestfish-actions.pod:3646 ../fish/guestfish-actions.pod:4361
9063 msgid ""
9064 "B<This command is dangerous.  Without careful use you can easily destroy all "
9065 "your data>."
9066 msgstr ""
9067
9068 # type: =head2
9069 #: ../src/guestfs-actions.pod:2820
9070 msgid "guestfs_luks_format_cipher"
9071 msgstr ""
9072
9073 # type: verbatim
9074 #: ../src/guestfs-actions.pod:2822
9075 #, no-wrap
9076 msgid ""
9077 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
9078 "\t\tconst char *device,\n"
9079 "\t\tconst char *key,\n"
9080 "\t\tint keyslot,\n"
9081 "\t\tconst char *cipher);\n"
9082 "\n"
9083 msgstr ""
9084
9085 # type: textblock
9086 #: ../src/guestfs-actions.pod:2828
9087 msgid ""
9088 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9089 "set the C<cipher> used."
9090 msgstr ""
9091
9092 # type: =head2
9093 #: ../src/guestfs-actions.pod:2840
9094 msgid "guestfs_luks_kill_slot"
9095 msgstr ""
9096
9097 # type: verbatim
9098 #: ../src/guestfs-actions.pod:2842
9099 #, no-wrap
9100 msgid ""
9101 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
9102 "\t\tconst char *device,\n"
9103 "\t\tconst char *key,\n"
9104 "\t\tint keyslot);\n"
9105 "\n"
9106 msgstr ""
9107
9108 # type: textblock
9109 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:2221
9110 msgid ""
9111 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9112 "device C<device>.  C<key> must be one of the I<other> keys."
9113 msgstr ""
9114
9115 # type: =head2
9116 #: ../src/guestfs-actions.pod:2857
9117 msgid "guestfs_luks_open"
9118 msgstr ""
9119
9120 # type: verbatim
9121 #: ../src/guestfs-actions.pod:2859
9122 #, no-wrap
9123 msgid ""
9124 " int guestfs_luks_open (guestfs_h *g,\n"
9125 "\t\tconst char *device,\n"
9126 "\t\tconst char *key,\n"
9127 "\t\tconst char *mapname);\n"
9128 "\n"
9129 msgstr ""
9130
9131 # type: textblock
9132 #: ../src/guestfs-actions.pod:2864 ../fish/guestfish-actions.pod:2232
9133 msgid ""
9134 "This command opens a block device which has been encrypted according to the "
9135 "Linux Unified Key Setup (LUKS) standard."
9136 msgstr ""
9137
9138 # type: textblock
9139 #: ../src/guestfs-actions.pod:2867 ../fish/guestfish-actions.pod:2235
9140 msgid "C<device> is the encrypted block device or partition."
9141 msgstr ""
9142
9143 # type: textblock
9144 #: ../src/guestfs-actions.pod:2869 ../fish/guestfish-actions.pod:2237
9145 msgid ""
9146 "The caller must supply one of the keys associated with the LUKS block "
9147 "device, in the C<key> parameter."
9148 msgstr ""
9149
9150 # type: textblock
9151 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:2240
9152 msgid ""
9153 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9154 "writes to this block device are decrypted from and encrypted to the "
9155 "underlying C<device> respectively."
9156 msgstr ""
9157
9158 # type: textblock
9159 #: ../src/guestfs-actions.pod:2876
9160 msgid ""
9161 "If this block device contains LVM volume groups, then calling "
9162 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9163 "visible."
9164 msgstr ""
9165
9166 # type: =head2
9167 #: ../src/guestfs-actions.pod:2886
9168 msgid "guestfs_luks_open_ro"
9169 msgstr ""
9170
9171 # type: verbatim
9172 #: ../src/guestfs-actions.pod:2888
9173 #, no-wrap
9174 msgid ""
9175 " int guestfs_luks_open_ro (guestfs_h *g,\n"
9176 "\t\tconst char *device,\n"
9177 "\t\tconst char *key,\n"
9178 "\t\tconst char *mapname);\n"
9179 "\n"
9180 msgstr ""
9181
9182 # type: textblock
9183 #: ../src/guestfs-actions.pod:2893
9184 msgid ""
9185 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9186 "created."
9187 msgstr ""
9188
9189 # type: =head2
9190 #: ../src/guestfs-actions.pod:2902
9191 msgid "guestfs_lvcreate"
9192 msgstr ""
9193
9194 # type: verbatim
9195 #: ../src/guestfs-actions.pod:2904
9196 #, no-wrap
9197 msgid ""
9198 " int guestfs_lvcreate (guestfs_h *g,\n"
9199 "\t\tconst char *logvol,\n"
9200 "\t\tconst char *volgroup,\n"
9201 "\t\tint mbytes);\n"
9202 "\n"
9203 msgstr ""
9204
9205 # type: textblock
9206 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2265
9207 msgid ""
9208 "This creates an LVM logical volume called C<logvol> on the volume group "
9209 "C<volgroup>, with C<size> megabytes."
9210 msgstr ""
9211
9212 # type: =head2
9213 #: ../src/guestfs-actions.pod:2914
9214 msgid "guestfs_lvm_canonical_lv_name"
9215 msgstr ""
9216
9217 # type: verbatim
9218 #: ../src/guestfs-actions.pod:2916
9219 #, no-wrap
9220 msgid ""
9221 " char *guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9222 "\t\tconst char *lvname);\n"
9223 "\n"
9224 msgstr ""
9225
9226 # type: textblock
9227 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2272
9228 msgid ""
9229 "This converts alternative naming schemes for LVs that you might find to the "
9230 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
9231 "LV>."
9232 msgstr ""
9233
9234 # type: textblock
9235 #: ../src/guestfs-actions.pod:2923 ../fish/guestfish-actions.pod:2276
9236 msgid ""
9237 "This command returns an error if the C<lvname> parameter does not refer to a "
9238 "logical volume."
9239 msgstr ""
9240
9241 # type: textblock
9242 #: ../src/guestfs-actions.pod:2926
9243 msgid "See also C<guestfs_is_lv>."
9244 msgstr ""
9245
9246 # type: =head2
9247 #: ../src/guestfs-actions.pod:2931
9248 msgid "guestfs_lvm_clear_filter"
9249 msgstr ""
9250
9251 # type: verbatim
9252 #: ../src/guestfs-actions.pod:2933
9253 #, no-wrap
9254 msgid ""
9255 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
9256 "\n"
9257 msgstr ""
9258
9259 # type: textblock
9260 #: ../src/guestfs-actions.pod:2935
9261 msgid ""
9262 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9263 "see every block device."
9264 msgstr ""
9265
9266 # type: textblock
9267 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2974
9268 #: ../fish/guestfish-actions.pod:2288 ../fish/guestfish-actions.pod:2319
9269 msgid ""
9270 "This command also clears the LVM cache and performs a volume group scan."
9271 msgstr ""
9272
9273 # type: =head2
9274 #: ../src/guestfs-actions.pod:2943
9275 msgid "guestfs_lvm_remove_all"
9276 msgstr ""
9277
9278 # type: verbatim
9279 #: ../src/guestfs-actions.pod:2945
9280 #, no-wrap
9281 msgid ""
9282 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
9283 "\n"
9284 msgstr ""
9285
9286 # type: textblock
9287 #: ../src/guestfs-actions.pod:2947 ../fish/guestfish-actions.pod:2295
9288 msgid ""
9289 "This command removes all LVM logical volumes, volume groups and physical "
9290 "volumes."
9291 msgstr ""
9292
9293 # type: =head2
9294 #: ../src/guestfs-actions.pod:2955
9295 msgid "guestfs_lvm_set_filter"
9296 msgstr ""
9297
9298 # type: verbatim
9299 #: ../src/guestfs-actions.pod:2957
9300 #, no-wrap
9301 msgid ""
9302 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
9303 "\t\tchar *const *devices);\n"
9304 "\n"
9305 msgstr ""
9306
9307 # type: textblock
9308 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2305
9309 msgid ""
9310 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9311 "block devices in the list C<devices>, and will ignore all other attached "
9312 "block devices."
9313 msgstr ""
9314
9315 # type: textblock
9316 #: ../src/guestfs-actions.pod:2964 ../fish/guestfish-actions.pod:2309
9317 msgid ""
9318 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9319 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9320 "there are two types of duplication possible: either cloned PVs/VGs which "
9321 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9322 "same name.  In normal operation you cannot create this situation, but you "
9323 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9324 "inside the LVM metadata."
9325 msgstr ""
9326
9327 # type: textblock
9328 #: ../src/guestfs-actions.pod:2977 ../fish/guestfish-actions.pod:2322
9329 msgid "You can filter whole block devices or individual partitions."
9330 msgstr ""
9331
9332 # type: textblock
9333 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2324
9334 msgid ""
9335 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9336 "filesystem), even if you are not filtering out that VG."
9337 msgstr ""
9338
9339 # type: =head2
9340 #: ../src/guestfs-actions.pod:2985
9341 msgid "guestfs_lvremove"
9342 msgstr ""
9343
9344 # type: verbatim
9345 #: ../src/guestfs-actions.pod:2987
9346 #, no-wrap
9347 msgid ""
9348 " int guestfs_lvremove (guestfs_h *g,\n"
9349 "\t\tconst char *device);\n"
9350 "\n"
9351 msgstr ""
9352
9353 # type: textblock
9354 #: ../src/guestfs-actions.pod:2990 ../fish/guestfish-actions.pod:2332
9355 msgid ""
9356 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9357 "LV, such as C</dev/VG/LV>."
9358 msgstr ""
9359
9360 # type: textblock
9361 #: ../src/guestfs-actions.pod:2993 ../fish/guestfish-actions.pod:2335
9362 msgid ""
9363 "You can also remove all LVs in a volume group by specifying the VG name, C</"
9364 "dev/VG>."
9365 msgstr ""
9366
9367 # type: =head2
9368 #: ../src/guestfs-actions.pod:2998
9369 msgid "guestfs_lvrename"
9370 msgstr ""
9371
9372 # type: verbatim
9373 #: ../src/guestfs-actions.pod:3000
9374 #, no-wrap
9375 msgid ""
9376 " int guestfs_lvrename (guestfs_h *g,\n"
9377 "\t\tconst char *logvol,\n"
9378 "\t\tconst char *newlogvol);\n"
9379 "\n"
9380 msgstr ""
9381
9382 # type: textblock
9383 #: ../src/guestfs-actions.pod:3004 ../fish/guestfish-actions.pod:2342
9384 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9385 msgstr ""
9386
9387 # type: =head2
9388 #: ../src/guestfs-actions.pod:3008
9389 msgid "guestfs_lvresize"
9390 msgstr ""
9391
9392 # type: verbatim
9393 #: ../src/guestfs-actions.pod:3010
9394 #, no-wrap
9395 msgid ""
9396 " int guestfs_lvresize (guestfs_h *g,\n"
9397 "\t\tconst char *device,\n"
9398 "\t\tint mbytes);\n"
9399 "\n"
9400 msgstr ""
9401
9402 # type: textblock
9403 #: ../src/guestfs-actions.pod:3014 ../fish/guestfish-actions.pod:2348
9404 msgid ""
9405 "This resizes (expands or shrinks) an existing LVM logical volume to "
9406 "C<mbytes>.  When reducing, data in the reduced part is lost."
9407 msgstr ""
9408
9409 # type: =head2
9410 #: ../src/guestfs-actions.pod:3020
9411 msgid "guestfs_lvresize_free"
9412 msgstr ""
9413
9414 # type: verbatim
9415 #: ../src/guestfs-actions.pod:3022
9416 #, no-wrap
9417 msgid ""
9418 " int guestfs_lvresize_free (guestfs_h *g,\n"
9419 "\t\tconst char *lv,\n"
9420 "\t\tint percent);\n"
9421 "\n"
9422 msgstr ""
9423
9424 # type: textblock
9425 #: ../src/guestfs-actions.pod:3026 ../fish/guestfish-actions.pod:2356
9426 msgid ""
9427 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9428 "remaining free space in the volume group.  Commonly you would call this with "
9429 "pc = 100 which expands the logical volume as much as possible, using all "
9430 "remaining free space in the volume group."
9431 msgstr ""
9432
9433 # type: =head2
9434 #: ../src/guestfs-actions.pod:3034
9435 msgid "guestfs_lvs"
9436 msgstr ""
9437
9438 # type: verbatim
9439 #: ../src/guestfs-actions.pod:3036
9440 #, no-wrap
9441 msgid ""
9442 " char **guestfs_lvs (guestfs_h *g);\n"
9443 "\n"
9444 msgstr ""
9445
9446 # type: textblock
9447 #: ../src/guestfs-actions.pod:3038 ../fish/guestfish-actions.pod:2366
9448 msgid ""
9449 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9450 "(8)> command."
9451 msgstr ""
9452
9453 # type: textblock
9454 #: ../src/guestfs-actions.pod:3041 ../fish/guestfish-actions.pod:2369
9455 msgid ""
9456 "This returns a list of the logical volume device names (eg. C</dev/"
9457 "VolGroup00/LogVol00>)."
9458 msgstr ""
9459
9460 # type: textblock
9461 #: ../src/guestfs-actions.pod:3044
9462 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9463 msgstr ""
9464
9465 # type: =head2
9466 #: ../src/guestfs-actions.pod:3050
9467 msgid "guestfs_lvs_full"
9468 msgstr ""
9469
9470 # type: verbatim
9471 #: ../src/guestfs-actions.pod:3052
9472 #, no-wrap
9473 msgid ""
9474 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
9475 "\n"
9476 msgstr ""
9477
9478 # type: textblock
9479 #: ../src/guestfs-actions.pod:3054 ../fish/guestfish-actions.pod:2378
9480 msgid ""
9481 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9482 "(8)> command.  The \"full\" version includes all fields."
9483 msgstr ""
9484
9485 # type: textblock
9486 #: ../src/guestfs-actions.pod:3057
9487 msgid ""
9488 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
9489 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9490 "C<guestfs_free_lvm_lv_list> after use>."
9491 msgstr ""
9492
9493 # type: =head2
9494 #: ../src/guestfs-actions.pod:3062
9495 msgid "guestfs_lvuuid"
9496 msgstr ""
9497
9498 # type: verbatim
9499 #: ../src/guestfs-actions.pod:3064
9500 #, no-wrap
9501 msgid ""
9502 " char *guestfs_lvuuid (guestfs_h *g,\n"
9503 "\t\tconst char *device);\n"
9504 "\n"
9505 msgstr ""
9506
9507 # type: textblock
9508 #: ../src/guestfs-actions.pod:3067 ../fish/guestfish-actions.pod:2385
9509 msgid "This command returns the UUID of the LVM LV C<device>."
9510 msgstr ""
9511
9512 # type: =head2
9513 #: ../src/guestfs-actions.pod:3072
9514 msgid "guestfs_lxattrlist"
9515 msgstr ""
9516
9517 # type: verbatim
9518 #: ../src/guestfs-actions.pod:3074
9519 #, no-wrap
9520 msgid ""
9521 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
9522 "\t\tconst char *path,\n"
9523 "\t\tchar *const *names);\n"
9524 "\n"
9525 msgstr ""
9526
9527 # type: textblock
9528 #: ../src/guestfs-actions.pod:3078 ../fish/guestfish-actions.pod:2391
9529 msgid ""
9530 "This call allows you to get the extended attributes of multiple files, where "
9531 "all files are in the directory C<path>.  C<names> is the list of files from "
9532 "this directory."
9533 msgstr ""
9534
9535 # type: textblock
9536 #: ../src/guestfs-actions.pod:3082 ../fish/guestfish-actions.pod:2395
9537 msgid ""
9538 "On return you get a flat list of xattr structs which must be interpreted "
9539 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9540 "C<attrval> in this struct is zero-length to indicate there was an error "
9541 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9542 "number (the number of following attributes for this file, which could be C<"
9543 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
9544 "for the first named file.  This repeats for the second and subsequent files."
9545 msgstr ""
9546
9547 # type: textblock
9548 #: ../src/guestfs-actions.pod:3092
9549 msgid ""
9550 "This call is intended for programs that want to efficiently list a directory "
9551 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9552 "a similarly efficient call for getting standard stats.  Very long directory "
9553 "listings might cause the protocol message size to be exceeded, causing this "
9554 "call to fail.  The caller must split up such requests into smaller groups of "
9555 "names."
9556 msgstr ""
9557
9558 # type: =head2
9559 #: ../src/guestfs-actions.pod:3105
9560 msgid "guestfs_mkdir"
9561 msgstr ""
9562
9563 # type: verbatim
9564 #: ../src/guestfs-actions.pod:3107
9565 #, no-wrap
9566 msgid ""
9567 " int guestfs_mkdir (guestfs_h *g,\n"
9568 "\t\tconst char *path);\n"
9569 "\n"
9570 msgstr ""
9571
9572 # type: textblock
9573 #: ../src/guestfs-actions.pod:3110 ../fish/guestfish-actions.pod:2417
9574 msgid "Create a directory named C<path>."
9575 msgstr ""
9576
9577 # type: =head2
9578 #: ../src/guestfs-actions.pod:3114
9579 msgid "guestfs_mkdir_mode"
9580 msgstr ""
9581
9582 # type: verbatim
9583 #: ../src/guestfs-actions.pod:3116
9584 #, no-wrap
9585 msgid ""
9586 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9587 "\t\tconst char *path,\n"
9588 "\t\tint mode);\n"
9589 "\n"
9590 msgstr ""
9591
9592 # type: textblock
9593 #: ../src/guestfs-actions.pod:3120 ../fish/guestfish-actions.pod:2423
9594 msgid ""
9595 "This command creates a directory, setting the initial permissions of the "
9596 "directory to C<mode>."
9597 msgstr ""
9598
9599 # type: textblock
9600 #: ../src/guestfs-actions.pod:3123 ../fish/guestfish-actions.pod:2426
9601 msgid ""
9602 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9603 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9604 "other ways."
9605 msgstr ""
9606
9607 # type: textblock
9608 #: ../src/guestfs-actions.pod:3127
9609 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9610 msgstr ""
9611
9612 # type: =head2
9613 #: ../src/guestfs-actions.pod:3131
9614 msgid "guestfs_mkdir_p"
9615 msgstr ""
9616
9617 # type: verbatim
9618 #: ../src/guestfs-actions.pod:3133
9619 #, no-wrap
9620 msgid ""
9621 " int guestfs_mkdir_p (guestfs_h *g,\n"
9622 "\t\tconst char *path);\n"
9623 "\n"
9624 msgstr ""
9625
9626 # type: textblock
9627 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2436
9628 msgid ""
9629 "Create a directory named C<path>, creating any parent directories as "
9630 "necessary.  This is like the C<mkdir -p> shell command."
9631 msgstr ""
9632
9633 # type: =head2
9634 #: ../src/guestfs-actions.pod:3141
9635 msgid "guestfs_mkdtemp"
9636 msgstr ""
9637
9638 # type: verbatim
9639 #: ../src/guestfs-actions.pod:3143
9640 #, no-wrap
9641 msgid ""
9642 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9643 "\t\tconst char *template);\n"
9644 "\n"
9645 msgstr ""
9646
9647 # type: textblock
9648 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2443
9649 msgid ""
9650 "This command creates a temporary directory.  The C<template> parameter "
9651 "should be a full pathname for the temporary directory name with the final "
9652 "six characters being \"XXXXXX\"."
9653 msgstr ""
9654
9655 # type: textblock
9656 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2448
9657 msgid ""
9658 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9659 "being suitable for Windows filesystems."
9660 msgstr ""
9661
9662 # type: textblock
9663 #: ../src/guestfs-actions.pod:3154 ../fish/guestfish-actions.pod:2451
9664 msgid "The name of the temporary directory that was created is returned."
9665 msgstr ""
9666
9667 # type: textblock
9668 #: ../src/guestfs-actions.pod:3157 ../fish/guestfish-actions.pod:2454
9669 msgid "The temporary directory is created with mode 0700 and is owned by root."
9670 msgstr ""
9671
9672 # type: textblock
9673 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2457
9674 msgid ""
9675 "The caller is responsible for deleting the temporary directory and its "
9676 "contents after use."
9677 msgstr ""
9678
9679 # type: textblock
9680 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2460
9681 msgid "See also: L<mkdtemp(3)>"
9682 msgstr ""
9683
9684 # type: =head2
9685 #: ../src/guestfs-actions.pod:3168
9686 msgid "guestfs_mke2fs_J"
9687 msgstr ""
9688
9689 # type: verbatim
9690 #: ../src/guestfs-actions.pod:3170
9691 #, no-wrap
9692 msgid ""
9693 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9694 "\t\tconst char *fstype,\n"
9695 "\t\tint blocksize,\n"
9696 "\t\tconst char *device,\n"
9697 "\t\tconst char *journal);\n"
9698 "\n"
9699 msgstr ""
9700
9701 # type: textblock
9702 #: ../src/guestfs-actions.pod:3176 ../fish/guestfish-actions.pod:2466
9703 msgid ""
9704 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9705 "C<journal>.  It is equivalent to the command:"
9706 msgstr ""
9707
9708 # type: verbatim
9709 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2470
9710 #, no-wrap
9711 msgid ""
9712 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9713 "\n"
9714 msgstr ""
9715
9716 # type: textblock
9717 #: ../src/guestfs-actions.pod:3182
9718 msgid "See also C<guestfs_mke2journal>."
9719 msgstr ""
9720
9721 # type: =head2
9722 #: ../src/guestfs-actions.pod:3186
9723 msgid "guestfs_mke2fs_JL"
9724 msgstr ""
9725
9726 # type: verbatim
9727 #: ../src/guestfs-actions.pod:3188
9728 #, no-wrap
9729 msgid ""
9730 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9731 "\t\tconst char *fstype,\n"
9732 "\t\tint blocksize,\n"
9733 "\t\tconst char *device,\n"
9734 "\t\tconst char *label);\n"
9735 "\n"
9736 msgstr ""
9737
9738 # type: textblock
9739 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2478
9740 msgid ""
9741 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9742 "the journal labeled C<label>."
9743 msgstr ""
9744
9745 # type: textblock
9746 #: ../src/guestfs-actions.pod:3197
9747 msgid "See also C<guestfs_mke2journal_L>."
9748 msgstr ""
9749
9750 # type: =head2
9751 #: ../src/guestfs-actions.pod:3201
9752 msgid "guestfs_mke2fs_JU"
9753 msgstr ""
9754
9755 # type: verbatim
9756 #: ../src/guestfs-actions.pod:3203
9757 #, no-wrap
9758 msgid ""
9759 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9760 "\t\tconst char *fstype,\n"
9761 "\t\tint blocksize,\n"
9762 "\t\tconst char *device,\n"
9763 "\t\tconst char *uuid);\n"
9764 "\n"
9765 msgstr ""
9766
9767 # type: textblock
9768 #: ../src/guestfs-actions.pod:3209 ../fish/guestfish-actions.pod:2487
9769 msgid ""
9770 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9771 "the journal with UUID C<uuid>."
9772 msgstr ""
9773
9774 # type: textblock
9775 #: ../src/guestfs-actions.pod:3212
9776 msgid "See also C<guestfs_mke2journal_U>."
9777 msgstr ""
9778
9779 # type: =head2
9780 #: ../src/guestfs-actions.pod:3216
9781 msgid "guestfs_mke2journal"
9782 msgstr ""
9783
9784 # type: verbatim
9785 #: ../src/guestfs-actions.pod:3218
9786 #, no-wrap
9787 msgid ""
9788 " int guestfs_mke2journal (guestfs_h *g,\n"
9789 "\t\tint blocksize,\n"
9790 "\t\tconst char *device);\n"
9791 "\n"
9792 msgstr ""
9793
9794 # type: textblock
9795 #: ../src/guestfs-actions.pod:3222 ../fish/guestfish-actions.pod:2496
9796 msgid ""
9797 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9798 "command:"
9799 msgstr ""
9800
9801 # type: verbatim
9802 #: ../src/guestfs-actions.pod:3225 ../fish/guestfish-actions.pod:2499
9803 #, no-wrap
9804 msgid ""
9805 " mke2fs -O journal_dev -b blocksize device\n"
9806 "\n"
9807 msgstr ""
9808
9809 # type: =head2
9810 #: ../src/guestfs-actions.pod:3229
9811 msgid "guestfs_mke2journal_L"
9812 msgstr ""
9813
9814 # type: verbatim
9815 #: ../src/guestfs-actions.pod:3231
9816 #, no-wrap
9817 msgid ""
9818 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9819 "\t\tint blocksize,\n"
9820 "\t\tconst char *label,\n"
9821 "\t\tconst char *device);\n"
9822 "\n"
9823 msgstr ""
9824
9825 # type: textblock
9826 #: ../src/guestfs-actions.pod:3236 ../fish/guestfish-actions.pod:2505
9827 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9828 msgstr ""
9829
9830 # type: =head2
9831 #: ../src/guestfs-actions.pod:3240
9832 msgid "guestfs_mke2journal_U"
9833 msgstr ""
9834
9835 # type: verbatim
9836 #: ../src/guestfs-actions.pod:3242
9837 #, no-wrap
9838 msgid ""
9839 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9840 "\t\tint blocksize,\n"
9841 "\t\tconst char *uuid,\n"
9842 "\t\tconst char *device);\n"
9843 "\n"
9844 msgstr ""
9845
9846 # type: textblock
9847 #: ../src/guestfs-actions.pod:3247 ../fish/guestfish-actions.pod:2511
9848 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9849 msgstr ""
9850
9851 # type: =head2
9852 #: ../src/guestfs-actions.pod:3251
9853 msgid "guestfs_mkfifo"
9854 msgstr ""
9855
9856 # type: verbatim
9857 #: ../src/guestfs-actions.pod:3253
9858 #, no-wrap
9859 msgid ""
9860 " int guestfs_mkfifo (guestfs_h *g,\n"
9861 "\t\tint mode,\n"
9862 "\t\tconst char *path);\n"
9863 "\n"
9864 msgstr ""
9865
9866 # type: textblock
9867 #: ../src/guestfs-actions.pod:3257
9868 msgid ""
9869 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9870 "is just a convenient wrapper around C<guestfs_mknod>."
9871 msgstr ""
9872
9873 # type: =head2
9874 #: ../src/guestfs-actions.pod:3265
9875 msgid "guestfs_mkfs"
9876 msgstr ""
9877
9878 # type: verbatim
9879 #: ../src/guestfs-actions.pod:3267
9880 #, no-wrap
9881 msgid ""
9882 " int guestfs_mkfs (guestfs_h *g,\n"
9883 "\t\tconst char *fstype,\n"
9884 "\t\tconst char *device);\n"
9885 "\n"
9886 msgstr ""
9887
9888 # type: textblock
9889 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2527
9890 msgid ""
9891 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9892 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9893 msgstr ""
9894
9895 # type: =head2
9896 #: ../src/guestfs-actions.pod:3277
9897 msgid "guestfs_mkfs_b"
9898 msgstr ""
9899
9900 # type: verbatim
9901 #: ../src/guestfs-actions.pod:3279
9902 #, no-wrap
9903 msgid ""
9904 " int guestfs_mkfs_b (guestfs_h *g,\n"
9905 "\t\tconst char *fstype,\n"
9906 "\t\tint blocksize,\n"
9907 "\t\tconst char *device);\n"
9908 "\n"
9909 msgstr ""
9910
9911 # type: textblock
9912 #: ../src/guestfs-actions.pod:3284
9913 msgid ""
9914 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9915 "block size of the resulting filesystem.  Supported block sizes depend on the "
9916 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9917 msgstr ""
9918
9919 # type: textblock
9920 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2540
9921 msgid ""
9922 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9923 "cluster size."
9924 msgstr ""
9925
9926 # type: =head2
9927 #: ../src/guestfs-actions.pod:3294
9928 msgid "guestfs_mkmountpoint"
9929 msgstr ""
9930
9931 # type: verbatim
9932 #: ../src/guestfs-actions.pod:3296
9933 #, no-wrap
9934 msgid ""
9935 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9936 "\t\tconst char *exemptpath);\n"
9937 "\n"
9938 msgstr ""
9939
9940 # type: textblock
9941 #: ../src/guestfs-actions.pod:3299
9942 msgid ""
9943 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9944 "that can be used to create extra mountpoints before mounting the first "
9945 "filesystem."
9946 msgstr ""
9947
9948 # type: textblock
9949 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2551
9950 msgid ""
9951 "These calls are I<only> necessary in some very limited circumstances, mainly "
9952 "the case where you want to mount a mix of unrelated and/or read-only "
9953 "filesystems together."
9954 msgstr ""
9955
9956 # type: textblock
9957 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2555
9958 msgid ""
9959 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9960 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9961 "inside that.  You can unpack this as follows in guestfish:"
9962 msgstr ""
9963
9964 # type: verbatim
9965 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2560
9966 #, no-wrap
9967 msgid ""
9968 " add-ro Fedora-11-i686-Live.iso\n"
9969 " run\n"
9970 " mkmountpoint /cd\n"
9971 " mkmountpoint /sqsh\n"
9972 " mkmountpoint /ext3fs\n"
9973 " mount /dev/sda /cd\n"
9974 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
9975 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
9976 "\n"
9977 msgstr ""
9978
9979 # type: textblock
9980 #: ../src/guestfs-actions.pod:3321 ../fish/guestfish-actions.pod:2569
9981 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
9982 msgstr ""
9983
9984 # type: textblock
9985 #: ../src/guestfs-actions.pod:3323
9986 msgid ""
9987 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
9988 "may get unexpected errors if you try to mix these calls.  It is safest to "
9989 "manually unmount filesystems and remove mountpoints after use."
9990 msgstr ""
9991
9992 # type: textblock
9993 #: ../src/guestfs-actions.pod:3327
9994 msgid ""
9995 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
9996 "first, so for this to work for manual mountpoints, you must ensure that the "
9997 "innermost mountpoints have the longest pathnames, as in the example code "
9998 "above."
9999 msgstr ""
10000
10001 # type: textblock
10002 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2580
10003 msgid ""
10004 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10005 msgstr ""
10006
10007 # type: textblock
10008 #: ../src/guestfs-actions.pod:3334
10009 msgid ""
10010 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10011 "means that C<guestfs_umount_all> is called when the handle is closed which "
10012 "can also trigger these issues."
10013 msgstr ""
10014
10015 # type: =head2
10016 #: ../src/guestfs-actions.pod:3340
10017 msgid "guestfs_mknod"
10018 msgstr ""
10019
10020 # type: verbatim
10021 #: ../src/guestfs-actions.pod:3342
10022 #, no-wrap
10023 msgid ""
10024 " int guestfs_mknod (guestfs_h *g,\n"
10025 "\t\tint mode,\n"
10026 "\t\tint devmajor,\n"
10027 "\t\tint devminor,\n"
10028 "\t\tconst char *path);\n"
10029 "\n"
10030 msgstr ""
10031
10032 # type: textblock
10033 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2590
10034 msgid ""
10035 "This call creates block or character special devices, or named pipes (FIFOs)."
10036 msgstr ""
10037
10038 # type: textblock
10039 #: ../src/guestfs-actions.pod:3351 ../fish/guestfish-actions.pod:2593
10040 msgid ""
10041 "The C<mode> parameter should be the mode, using the standard constants.  "
10042 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10043 "used when creating block and character special devices."
10044 msgstr ""
10045
10046 # type: textblock
10047 #: ../src/guestfs-actions.pod:3356
10048 msgid ""
10049 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10050 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10051 "regular file).  These constants are available in the standard Linux header "
10052 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10053 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10054 "the appropriate constant for you."
10055 msgstr ""
10056
10057 # type: =head2
10058 #: ../src/guestfs-actions.pod:3368
10059 msgid "guestfs_mknod_b"
10060 msgstr ""
10061
10062 # type: verbatim
10063 #: ../src/guestfs-actions.pod:3370
10064 #, no-wrap
10065 msgid ""
10066 " int guestfs_mknod_b (guestfs_h *g,\n"
10067 "\t\tint mode,\n"
10068 "\t\tint devmajor,\n"
10069 "\t\tint devminor,\n"
10070 "\t\tconst char *path);\n"
10071 "\n"
10072 msgstr ""
10073
10074 # type: textblock
10075 #: ../src/guestfs-actions.pod:3376
10076 msgid ""
10077 "This call creates a block device node called C<path> with mode C<mode> and "
10078 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10079 "wrapper around C<guestfs_mknod>."
10080 msgstr ""
10081
10082 # type: =head2
10083 #: ../src/guestfs-actions.pod:3384
10084 msgid "guestfs_mknod_c"
10085 msgstr ""
10086
10087 # type: verbatim
10088 #: ../src/guestfs-actions.pod:3386
10089 #, no-wrap
10090 msgid ""
10091 " int guestfs_mknod_c (guestfs_h *g,\n"
10092 "\t\tint mode,\n"
10093 "\t\tint devmajor,\n"
10094 "\t\tint devminor,\n"
10095 "\t\tconst char *path);\n"
10096 "\n"
10097 msgstr ""
10098
10099 # type: textblock
10100 #: ../src/guestfs-actions.pod:3392
10101 msgid ""
10102 "This call creates a char device node called C<path> with mode C<mode> and "
10103 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10104 "wrapper around C<guestfs_mknod>."
10105 msgstr ""
10106
10107 # type: =head2
10108 #: ../src/guestfs-actions.pod:3400
10109 msgid "guestfs_mkswap"
10110 msgstr ""
10111
10112 # type: verbatim
10113 #: ../src/guestfs-actions.pod:3402
10114 #, no-wrap
10115 msgid ""
10116 " int guestfs_mkswap (guestfs_h *g,\n"
10117 "\t\tconst char *device);\n"
10118 "\n"
10119 msgstr ""
10120
10121 # type: textblock
10122 #: ../src/guestfs-actions.pod:3405 ../fish/guestfish-actions.pod:2632
10123 msgid "Create a swap partition on C<device>."
10124 msgstr ""
10125
10126 # type: =head2
10127 #: ../src/guestfs-actions.pod:3409
10128 msgid "guestfs_mkswap_L"
10129 msgstr ""
10130
10131 # type: verbatim
10132 #: ../src/guestfs-actions.pod:3411
10133 #, no-wrap
10134 msgid ""
10135 " int guestfs_mkswap_L (guestfs_h *g,\n"
10136 "\t\tconst char *label,\n"
10137 "\t\tconst char *device);\n"
10138 "\n"
10139 msgstr ""
10140
10141 # type: textblock
10142 #: ../src/guestfs-actions.pod:3415 ../fish/guestfish-actions.pod:2638
10143 msgid "Create a swap partition on C<device> with label C<label>."
10144 msgstr ""
10145
10146 # type: textblock
10147 #: ../src/guestfs-actions.pod:3417 ../fish/guestfish-actions.pod:2640
10148 msgid ""
10149 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
10150 "sda>), just to a partition.  This appears to be a limitation of the kernel "
10151 "or swap tools."
10152 msgstr ""
10153
10154 # type: =head2
10155 #: ../src/guestfs-actions.pod:3423
10156 msgid "guestfs_mkswap_U"
10157 msgstr ""
10158
10159 # type: verbatim
10160 #: ../src/guestfs-actions.pod:3425
10161 #, no-wrap
10162 msgid ""
10163 " int guestfs_mkswap_U (guestfs_h *g,\n"
10164 "\t\tconst char *uuid,\n"
10165 "\t\tconst char *device);\n"
10166 "\n"
10167 msgstr ""
10168
10169 # type: textblock
10170 #: ../src/guestfs-actions.pod:3429 ../fish/guestfish-actions.pod:2648
10171 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10172 msgstr ""
10173
10174 # type: =head2
10175 #: ../src/guestfs-actions.pod:3433
10176 msgid "guestfs_mkswap_file"
10177 msgstr ""
10178
10179 # type: verbatim
10180 #: ../src/guestfs-actions.pod:3435
10181 #, no-wrap
10182 msgid ""
10183 " int guestfs_mkswap_file (guestfs_h *g,\n"
10184 "\t\tconst char *path);\n"
10185 "\n"
10186 msgstr ""
10187
10188 # type: textblock
10189 #: ../src/guestfs-actions.pod:3438 ../fish/guestfish-actions.pod:2654
10190 msgid "Create a swap file."
10191 msgstr ""
10192
10193 # type: textblock
10194 #: ../src/guestfs-actions.pod:3440
10195 msgid ""
10196 "This command just writes a swap file signature to an existing file.  To "
10197 "create the file itself, use something like C<guestfs_fallocate>."
10198 msgstr ""
10199
10200 # type: =head2
10201 #: ../src/guestfs-actions.pod:3445
10202 msgid "guestfs_modprobe"
10203 msgstr ""
10204
10205 # type: verbatim
10206 #: ../src/guestfs-actions.pod:3447
10207 #, no-wrap
10208 msgid ""
10209 " int guestfs_modprobe (guestfs_h *g,\n"
10210 "\t\tconst char *modulename);\n"
10211 "\n"
10212 msgstr ""
10213
10214 # type: textblock
10215 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2663
10216 msgid "This loads a kernel module in the appliance."
10217 msgstr ""
10218
10219 # type: textblock
10220 #: ../src/guestfs-actions.pod:3452 ../fish/guestfish-actions.pod:2665
10221 msgid ""
10222 "The kernel module must have been whitelisted when libguestfs was built (see "
10223 "C<appliance/kmod.whitelist.in> in the source)."
10224 msgstr ""
10225
10226 # type: =head2
10227 #: ../src/guestfs-actions.pod:3457
10228 msgid "guestfs_mount"
10229 msgstr ""
10230
10231 # type: verbatim
10232 #: ../src/guestfs-actions.pod:3459
10233 #, no-wrap
10234 msgid ""
10235 " int guestfs_mount (guestfs_h *g,\n"
10236 "\t\tconst char *device,\n"
10237 "\t\tconst char *mountpoint);\n"
10238 "\n"
10239 msgstr ""
10240
10241 # type: textblock
10242 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2672
10243 msgid ""
10244 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10245 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10246 "those block devices contain partitions, they will have the usual names (eg. "
10247 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10248 msgstr ""
10249
10250 # type: textblock
10251 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2678
10252 msgid ""
10253 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10254 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10255 "mounted on directories which already exist."
10256 msgstr ""
10257
10258 # type: textblock
10259 #: ../src/guestfs-actions.pod:3474 ../fish/guestfish-actions.pod:2683
10260 msgid ""
10261 "The mounted filesystem is writable, if we have sufficient permissions on the "
10262 "underlying device."
10263 msgstr ""
10264
10265 # type: textblock
10266 #: ../src/guestfs-actions.pod:3477
10267 msgid ""
10268 "B<Important note:> When you use this call, the filesystem options C<sync> "
10269 "and C<noatime> are set implicitly.  This was originally done because we "
10270 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10271 "very large negative performance impact and negligible effect on "
10272 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10273 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10274 "(use an empty string for the first parameter if you don't want any options)."
10275 msgstr ""
10276
10277 # type: =head2
10278 #: ../src/guestfs-actions.pod:3489
10279 msgid "guestfs_mount_loop"
10280 msgstr ""
10281
10282 # type: verbatim
10283 #: ../src/guestfs-actions.pod:3491
10284 #, no-wrap
10285 msgid ""
10286 " int guestfs_mount_loop (guestfs_h *g,\n"
10287 "\t\tconst char *file,\n"
10288 "\t\tconst char *mountpoint);\n"
10289 "\n"
10290 msgstr ""
10291
10292 # type: textblock
10293 #: ../src/guestfs-actions.pod:3495 ../fish/guestfish-actions.pod:2700
10294 msgid ""
10295 "This command lets you mount C<file> (a filesystem image in a file) on a "
10296 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10297 "mountpoint>."
10298 msgstr ""
10299
10300 # type: =head2
10301 #: ../src/guestfs-actions.pod:3501
10302 msgid "guestfs_mount_options"
10303 msgstr ""
10304
10305 # type: verbatim
10306 #: ../src/guestfs-actions.pod:3503
10307 #, no-wrap
10308 msgid ""
10309 " int guestfs_mount_options (guestfs_h *g,\n"
10310 "\t\tconst char *options,\n"
10311 "\t\tconst char *device,\n"
10312 "\t\tconst char *mountpoint);\n"
10313 "\n"
10314 msgstr ""
10315
10316 # type: textblock
10317 #: ../src/guestfs-actions.pod:3508
10318 msgid ""
10319 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10320 "the mount options as for the L<mount(8)> I<-o> flag."
10321 msgstr ""
10322
10323 # type: textblock
10324 #: ../src/guestfs-actions.pod:3512 ../fish/guestfish-actions.pod:2712
10325 msgid ""
10326 "If the C<options> parameter is an empty string, then no options are passed "
10327 "(all options default to whatever the filesystem uses)."
10328 msgstr ""
10329
10330 # type: =head2
10331 #: ../src/guestfs-actions.pod:3518
10332 msgid "guestfs_mount_ro"
10333 msgstr ""
10334
10335 # type: verbatim
10336 #: ../src/guestfs-actions.pod:3520
10337 #, no-wrap
10338 msgid ""
10339 " int guestfs_mount_ro (guestfs_h *g,\n"
10340 "\t\tconst char *device,\n"
10341 "\t\tconst char *mountpoint);\n"
10342 "\n"
10343 msgstr ""
10344
10345 # type: textblock
10346 #: ../src/guestfs-actions.pod:3524
10347 msgid ""
10348 "This is the same as the C<guestfs_mount> command, but it mounts the "
10349 "filesystem with the read-only (I<-o ro>) flag."
10350 msgstr ""
10351
10352 # type: =head2
10353 #: ../src/guestfs-actions.pod:3529
10354 msgid "guestfs_mount_vfs"
10355 msgstr ""
10356
10357 # type: verbatim
10358 #: ../src/guestfs-actions.pod:3531
10359 #, no-wrap
10360 msgid ""
10361 " int guestfs_mount_vfs (guestfs_h *g,\n"
10362 "\t\tconst char *options,\n"
10363 "\t\tconst char *vfstype,\n"
10364 "\t\tconst char *device,\n"
10365 "\t\tconst char *mountpoint);\n"
10366 "\n"
10367 msgstr ""
10368
10369 # type: textblock
10370 #: ../src/guestfs-actions.pod:3537
10371 msgid ""
10372 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10373 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
10374 "t> flags."
10375 msgstr ""
10376
10377 # type: =head2
10378 #: ../src/guestfs-actions.pod:3543
10379 msgid "guestfs_mountpoints"
10380 msgstr ""
10381
10382 # type: verbatim
10383 #: ../src/guestfs-actions.pod:3545
10384 #, no-wrap
10385 msgid ""
10386 " char **guestfs_mountpoints (guestfs_h *g);\n"
10387 "\n"
10388 msgstr ""
10389
10390 # type: textblock
10391 #: ../src/guestfs-actions.pod:3547
10392 msgid ""
10393 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10394 "devices.  This one returns a hash table (map) of device name to directory "
10395 "where the device is mounted."
10396 msgstr ""
10397
10398 # type: =head2
10399 #: ../src/guestfs-actions.pod:3557
10400 msgid "guestfs_mounts"
10401 msgstr ""
10402
10403 # type: verbatim
10404 #: ../src/guestfs-actions.pod:3559
10405 #, no-wrap
10406 msgid ""
10407 " char **guestfs_mounts (guestfs_h *g);\n"
10408 "\n"
10409 msgstr ""
10410
10411 # type: textblock
10412 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2743
10413 msgid ""
10414 "This returns the list of currently mounted filesystems.  It returns the list "
10415 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10416 msgstr ""
10417
10418 # type: textblock
10419 #: ../src/guestfs-actions.pod:3564 ../fish/guestfish-actions.pod:2746
10420 msgid "Some internal mounts are not shown."
10421 msgstr ""
10422
10423 # type: textblock
10424 #: ../src/guestfs-actions.pod:3566
10425 msgid "See also: C<guestfs_mountpoints>"
10426 msgstr ""
10427
10428 # type: =head2
10429 #: ../src/guestfs-actions.pod:3572
10430 msgid "guestfs_mv"
10431 msgstr ""
10432
10433 # type: verbatim
10434 #: ../src/guestfs-actions.pod:3574
10435 #, no-wrap
10436 msgid ""
10437 " int guestfs_mv (guestfs_h *g,\n"
10438 "\t\tconst char *src,\n"
10439 "\t\tconst char *dest);\n"
10440 "\n"
10441 msgstr ""
10442
10443 # type: textblock
10444 #: ../src/guestfs-actions.pod:3578 ../fish/guestfish-actions.pod:2754
10445 msgid ""
10446 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10447 "destination filename or destination directory."
10448 msgstr ""
10449
10450 # type: =head2
10451 #: ../src/guestfs-actions.pod:3583
10452 msgid "guestfs_ntfs_3g_probe"
10453 msgstr ""
10454
10455 # type: verbatim
10456 #: ../src/guestfs-actions.pod:3585
10457 #, no-wrap
10458 msgid ""
10459 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10460 "\t\tint rw,\n"
10461 "\t\tconst char *device);\n"
10462 "\n"
10463 msgstr ""
10464
10465 # type: textblock
10466 #: ../src/guestfs-actions.pod:3589 ../fish/guestfish-actions.pod:2761
10467 msgid ""
10468 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10469 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
10470 "write, and some cannot be mounted at all)."
10471 msgstr ""
10472
10473 # type: textblock
10474 #: ../src/guestfs-actions.pod:3593 ../fish/guestfish-actions.pod:2765
10475 msgid ""
10476 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10477 "can be mounted read-write.  Set it to false if you want to test if the "
10478 "volume can be mounted read-only."
10479 msgstr ""
10480
10481 # type: textblock
10482 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2769
10483 msgid ""
10484 "The return value is an integer which C<0> if the operation would succeed, or "
10485 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10486 msgstr ""
10487
10488 # type: =head2
10489 #: ../src/guestfs-actions.pod:3603
10490 msgid "guestfs_ntfsresize"
10491 msgstr ""
10492
10493 # type: verbatim
10494 #: ../src/guestfs-actions.pod:3605
10495 #, no-wrap
10496 msgid ""
10497 " int guestfs_ntfsresize (guestfs_h *g,\n"
10498 "\t\tconst char *device);\n"
10499 "\n"
10500 msgstr ""
10501
10502 # type: textblock
10503 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2777
10504 msgid ""
10505 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10506 "size of the underlying device.  See also L<ntfsresize(8)>."
10507 msgstr ""
10508
10509 # type: =head2
10510 #: ../src/guestfs-actions.pod:3614
10511 msgid "guestfs_ntfsresize_size"
10512 msgstr ""
10513
10514 # type: verbatim
10515 #: ../src/guestfs-actions.pod:3616
10516 #, no-wrap
10517 msgid ""
10518 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
10519 "\t\tconst char *device,\n"
10520 "\t\tint64_t size);\n"
10521 "\n"
10522 msgstr ""
10523
10524 # type: textblock
10525 #: ../src/guestfs-actions.pod:3620
10526 msgid ""
10527 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10528 "to specify the new size (in bytes) explicitly."
10529 msgstr ""
10530
10531 # type: =head2
10532 #: ../src/guestfs-actions.pod:3625
10533 msgid "guestfs_part_add"
10534 msgstr ""
10535
10536 # type: verbatim
10537 #: ../src/guestfs-actions.pod:3627
10538 #, no-wrap
10539 msgid ""
10540 " int guestfs_part_add (guestfs_h *g,\n"
10541 "\t\tconst char *device,\n"
10542 "\t\tconst char *prlogex,\n"
10543 "\t\tint64_t startsect,\n"
10544 "\t\tint64_t endsect);\n"
10545 "\n"
10546 msgstr ""
10547
10548 # type: textblock
10549 #: ../src/guestfs-actions.pod:3633
10550 msgid ""
10551 "This command adds a partition to C<device>.  If there is no partition table "
10552 "on the device, call C<guestfs_part_init> first."
10553 msgstr ""
10554
10555 # type: textblock
10556 #: ../src/guestfs-actions.pod:3636 ../fish/guestfish-actions.pod:2795
10557 msgid ""
10558 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10559 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10560 "C<logical>) and C<e> (or C<extended>) partition types."
10561 msgstr ""
10562
10563 # type: textblock
10564 #: ../src/guestfs-actions.pod:3641 ../fish/guestfish-actions.pod:2800
10565 msgid ""
10566 "C<startsect> and C<endsect> are the start and end of the partition in "
10567 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10568 "from the end of the disk (C<-1> is the last sector)."
10569 msgstr ""
10570
10571 # type: textblock
10572 #: ../src/guestfs-actions.pod:3645
10573 msgid ""
10574 "Creating a partition which covers the whole disk is not so easy.  Use "
10575 "C<guestfs_part_disk> to do that."
10576 msgstr ""
10577
10578 # type: =head2
10579 #: ../src/guestfs-actions.pod:3650
10580 msgid "guestfs_part_del"
10581 msgstr ""
10582
10583 # type: verbatim
10584 #: ../src/guestfs-actions.pod:3652
10585 #, no-wrap
10586 msgid ""
10587 " int guestfs_part_del (guestfs_h *g,\n"
10588 "\t\tconst char *device,\n"
10589 "\t\tint partnum);\n"
10590 "\n"
10591 msgstr ""
10592
10593 # type: textblock
10594 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2811
10595 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10596 msgstr ""
10597
10598 # type: textblock
10599 #: ../src/guestfs-actions.pod:3658 ../fish/guestfish-actions.pod:2813
10600 msgid ""
10601 "Note that in the case of MBR partitioning, deleting an extended partition "
10602 "also deletes any logical partitions it contains."
10603 msgstr ""
10604
10605 # type: =head2
10606 #: ../src/guestfs-actions.pod:3664
10607 msgid "guestfs_part_disk"
10608 msgstr ""
10609
10610 # type: verbatim
10611 #: ../src/guestfs-actions.pod:3666
10612 #, no-wrap
10613 msgid ""
10614 " int guestfs_part_disk (guestfs_h *g,\n"
10615 "\t\tconst char *device,\n"
10616 "\t\tconst char *parttype);\n"
10617 "\n"
10618 msgstr ""
10619
10620 # type: textblock
10621 #: ../src/guestfs-actions.pod:3670
10622 msgid ""
10623 "This command is simply a combination of C<guestfs_part_init> followed by "
10624 "C<guestfs_part_add> to create a single primary partition covering the whole "
10625 "disk."
10626 msgstr ""
10627
10628 # type: textblock
10629 #: ../src/guestfs-actions.pod:3674
10630 msgid ""
10631 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10632 "possible values are described in C<guestfs_part_init>."
10633 msgstr ""
10634
10635 # type: =head2
10636 #: ../src/guestfs-actions.pod:3682
10637 msgid "guestfs_part_get_bootable"
10638 msgstr ""
10639
10640 # type: verbatim
10641 #: ../src/guestfs-actions.pod:3684
10642 #, no-wrap
10643 msgid ""
10644 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10645 "\t\tconst char *device,\n"
10646 "\t\tint partnum);\n"
10647 "\n"
10648 msgstr ""
10649
10650 # type: textblock
10651 #: ../src/guestfs-actions.pod:3688 ../fish/guestfish-actions.pod:2835
10652 msgid ""
10653 "This command returns true if the partition C<partnum> on C<device> has the "
10654 "bootable flag set."
10655 msgstr ""
10656
10657 # type: textblock
10658 #: ../src/guestfs-actions.pod:3691
10659 msgid "See also C<guestfs_part_set_bootable>."
10660 msgstr ""
10661
10662 # type: =head2
10663 #: ../src/guestfs-actions.pod:3695
10664 msgid "guestfs_part_get_mbr_id"
10665 msgstr ""
10666
10667 # type: verbatim
10668 #: ../src/guestfs-actions.pod:3697
10669 #, no-wrap
10670 msgid ""
10671 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10672 "\t\tconst char *device,\n"
10673 "\t\tint partnum);\n"
10674 "\n"
10675 msgstr ""
10676
10677 # type: textblock
10678 #: ../src/guestfs-actions.pod:3701 ../fish/guestfish-actions.pod:2844
10679 msgid ""
10680 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10681 "partition C<partnum>."
10682 msgstr ""
10683
10684 # type: textblock
10685 #: ../src/guestfs-actions.pod:3704 ../src/guestfs-actions.pod:3866
10686 msgid ""
10687 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10688 "undefined results for other partition table types (see "
10689 "C<guestfs_part_get_parttype>)."
10690 msgstr ""
10691
10692 # type: =head2
10693 #: ../src/guestfs-actions.pod:3710
10694 msgid "guestfs_part_get_parttype"
10695 msgstr ""
10696
10697 # type: verbatim
10698 #: ../src/guestfs-actions.pod:3712
10699 #, no-wrap
10700 msgid ""
10701 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10702 "\t\tconst char *device);\n"
10703 "\n"
10704 msgstr ""
10705
10706 # type: textblock
10707 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2855
10708 msgid ""
10709 "This command examines the partition table on C<device> and returns the "
10710 "partition table type (format) being used."
10711 msgstr ""
10712
10713 # type: textblock
10714 #: ../src/guestfs-actions.pod:3718
10715 msgid ""
10716 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10717 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10718 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10719 msgstr ""
10720
10721 # type: =head2
10722 #: ../src/guestfs-actions.pod:3726
10723 msgid "guestfs_part_init"
10724 msgstr ""
10725
10726 # type: verbatim
10727 #: ../src/guestfs-actions.pod:3728
10728 #, no-wrap
10729 msgid ""
10730 " int guestfs_part_init (guestfs_h *g,\n"
10731 "\t\tconst char *device,\n"
10732 "\t\tconst char *parttype);\n"
10733 "\n"
10734 msgstr ""
10735
10736 # type: textblock
10737 #: ../src/guestfs-actions.pod:3732 ../fish/guestfish-actions.pod:2867
10738 msgid ""
10739 "This creates an empty partition table on C<device> of one of the partition "
10740 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10741 "(for large disks)."
10742 msgstr ""
10743
10744 # type: textblock
10745 #: ../src/guestfs-actions.pod:3736
10746 msgid ""
10747 "Initially there are no partitions.  Following this, you should call "
10748 "C<guestfs_part_add> for each partition required."
10749 msgstr ""
10750
10751 # type: textblock
10752 #: ../src/guestfs-actions.pod:3739 ../fish/guestfish-actions.pod:2874
10753 msgid "Possible values for C<parttype> are:"
10754 msgstr ""
10755
10756 # type: =item
10757 #: ../src/guestfs-actions.pod:3743 ../fish/guestfish-actions.pod:2878
10758 msgid "B<efi> | B<gpt>"
10759 msgstr ""
10760
10761 # type: textblock
10762 #: ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2880
10763 msgid "Intel EFI / GPT partition table."
10764 msgstr ""
10765
10766 # type: textblock
10767 #: ../src/guestfs-actions.pod:3747 ../fish/guestfish-actions.pod:2882
10768 msgid ""
10769 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10770 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10771 "the C<mbr> format."
10772 msgstr ""
10773
10774 # type: =item
10775 #: ../src/guestfs-actions.pod:3751 ../fish/guestfish-actions.pod:2886
10776 msgid "B<mbr> | B<msdos>"
10777 msgstr ""
10778
10779 # type: textblock
10780 #: ../src/guestfs-actions.pod:3753 ../fish/guestfish-actions.pod:2888
10781 msgid ""
10782 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10783 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10784 "TB.  For large disks we recommend using C<gpt>."
10785 msgstr ""
10786
10787 # type: textblock
10788 #: ../src/guestfs-actions.pod:3760 ../fish/guestfish-actions.pod:2895
10789 msgid ""
10790 "Other partition table types that may work but are not supported include:"
10791 msgstr ""
10792
10793 # type: =item
10794 #: ../src/guestfs-actions.pod:3765 ../fish/guestfish-actions.pod:2900
10795 msgid "B<aix>"
10796 msgstr ""
10797
10798 # type: textblock
10799 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2902
10800 msgid "AIX disk labels."
10801 msgstr ""
10802
10803 # type: =item
10804 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2904
10805 msgid "B<amiga> | B<rdb>"
10806 msgstr ""
10807
10808 # type: textblock
10809 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2906
10810 msgid "Amiga \"Rigid Disk Block\" format."
10811 msgstr ""
10812
10813 # type: =item
10814 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2908
10815 msgid "B<bsd>"
10816 msgstr ""
10817
10818 # type: textblock
10819 #: ../src/guestfs-actions.pod:3775 ../fish/guestfish-actions.pod:2910
10820 msgid "BSD disk labels."
10821 msgstr ""
10822
10823 # type: =item
10824 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2912
10825 msgid "B<dasd>"
10826 msgstr ""
10827
10828 # type: textblock
10829 #: ../src/guestfs-actions.pod:3779 ../fish/guestfish-actions.pod:2914
10830 msgid "DASD, used on IBM mainframes."
10831 msgstr ""
10832
10833 # type: =item
10834 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2916
10835 msgid "B<dvh>"
10836 msgstr ""
10837
10838 # type: textblock
10839 #: ../src/guestfs-actions.pod:3783 ../fish/guestfish-actions.pod:2918
10840 msgid "MIPS/SGI volumes."
10841 msgstr ""
10842
10843 # type: =item
10844 #: ../src/guestfs-actions.pod:3785 ../fish/guestfish-actions.pod:2920
10845 msgid "B<mac>"
10846 msgstr ""
10847
10848 # type: textblock
10849 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2922
10850 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10851 msgstr ""
10852
10853 # type: =item
10854 #: ../src/guestfs-actions.pod:3789 ../fish/guestfish-actions.pod:2924
10855 msgid "B<pc98>"
10856 msgstr ""
10857
10858 # type: textblock
10859 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2926
10860 msgid "NEC PC-98 format, common in Japan apparently."
10861 msgstr ""
10862
10863 # type: =item
10864 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2928
10865 msgid "B<sun>"
10866 msgstr ""
10867
10868 # type: textblock
10869 #: ../src/guestfs-actions.pod:3795 ../fish/guestfish-actions.pod:2930
10870 msgid "Sun disk labels."
10871 msgstr ""
10872
10873 # type: =head2
10874 #: ../src/guestfs-actions.pod:3801
10875 msgid "guestfs_part_list"
10876 msgstr ""
10877
10878 # type: verbatim
10879 #: ../src/guestfs-actions.pod:3803
10880 #, no-wrap
10881 msgid ""
10882 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10883 "\t\tconst char *device);\n"
10884 "\n"
10885 msgstr ""
10886
10887 # type: textblock
10888 #: ../src/guestfs-actions.pod:3806 ../fish/guestfish-actions.pod:2938
10889 msgid ""
10890 "This command parses the partition table on C<device> and returns the list of "
10891 "partitions found."
10892 msgstr ""
10893
10894 # type: textblock
10895 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2941
10896 msgid "The fields in the returned structure are:"
10897 msgstr ""
10898
10899 # type: =item
10900 #: ../src/guestfs-actions.pod:3813 ../fish/guestfish-actions.pod:2945
10901 msgid "B<part_num>"
10902 msgstr ""
10903
10904 # type: textblock
10905 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2947
10906 msgid "Partition number, counting from 1."
10907 msgstr ""
10908
10909 # type: =item
10910 #: ../src/guestfs-actions.pod:3817 ../fish/guestfish-actions.pod:2949
10911 msgid "B<part_start>"
10912 msgstr ""
10913
10914 # type: textblock
10915 #: ../src/guestfs-actions.pod:3819
10916 msgid ""
10917 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10918 "the device's sector size, see C<guestfs_blockdev_getss>."
10919 msgstr ""
10920
10921 # type: =item
10922 #: ../src/guestfs-actions.pod:3822 ../fish/guestfish-actions.pod:2954
10923 msgid "B<part_end>"
10924 msgstr ""
10925
10926 # type: textblock
10927 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2956
10928 msgid "End of the partition in bytes."
10929 msgstr ""
10930
10931 # type: =item
10932 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2958
10933 msgid "B<part_size>"
10934 msgstr ""
10935
10936 # type: textblock
10937 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2960
10938 msgid "Size of the partition in bytes."
10939 msgstr ""
10940
10941 # type: textblock
10942 #: ../src/guestfs-actions.pod:3832
10943 msgid ""
10944 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
10945 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
10946 "C<guestfs_free_partition_list> after use>."
10947 msgstr ""
10948
10949 # type: =head2
10950 #: ../src/guestfs-actions.pod:3837
10951 msgid "guestfs_part_set_bootable"
10952 msgstr ""
10953
10954 # type: verbatim
10955 #: ../src/guestfs-actions.pod:3839
10956 #, no-wrap
10957 msgid ""
10958 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10959 "\t\tconst char *device,\n"
10960 "\t\tint partnum,\n"
10961 "\t\tint bootable);\n"
10962 "\n"
10963 msgstr ""
10964
10965 # type: textblock
10966 #: ../src/guestfs-actions.pod:3844 ../fish/guestfish-actions.pod:2968
10967 msgid ""
10968 "This sets the bootable flag on partition numbered C<partnum> on device "
10969 "C<device>.  Note that partitions are numbered from 1."
10970 msgstr ""
10971
10972 # type: textblock
10973 #: ../src/guestfs-actions.pod:3847 ../fish/guestfish-actions.pod:2971
10974 msgid ""
10975 "The bootable flag is used by some operating systems (notably Windows) to "
10976 "determine which partition to boot from.  It is by no means universally "
10977 "recognized."
10978 msgstr ""
10979
10980 # type: =head2
10981 #: ../src/guestfs-actions.pod:3853
10982 msgid "guestfs_part_set_mbr_id"
10983 msgstr ""
10984
10985 # type: verbatim
10986 #: ../src/guestfs-actions.pod:3855
10987 #, no-wrap
10988 msgid ""
10989 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10990 "\t\tconst char *device,\n"
10991 "\t\tint partnum,\n"
10992 "\t\tint idbyte);\n"
10993 "\n"
10994 msgstr ""
10995
10996 # type: textblock
10997 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2979
10998 msgid ""
10999 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11000 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11001 "documentation are in fact hexadecimal numbers, but usually documented "
11002 "without any leading \"0x\" which might be confusing."
11003 msgstr ""
11004
11005 # type: =head2
11006 #: ../src/guestfs-actions.pod:3872
11007 msgid "guestfs_part_set_name"
11008 msgstr ""
11009
11010 # type: verbatim
11011 #: ../src/guestfs-actions.pod:3874
11012 #, no-wrap
11013 msgid ""
11014 " int guestfs_part_set_name (guestfs_h *g,\n"
11015 "\t\tconst char *device,\n"
11016 "\t\tint partnum,\n"
11017 "\t\tconst char *name);\n"
11018 "\n"
11019 msgstr ""
11020
11021 # type: textblock
11022 #: ../src/guestfs-actions.pod:3879 ../fish/guestfish-actions.pod:2993
11023 msgid ""
11024 "This sets the partition name on partition numbered C<partnum> on device "
11025 "C<device>.  Note that partitions are numbered from 1."
11026 msgstr ""
11027
11028 # type: textblock
11029 #: ../src/guestfs-actions.pod:3882 ../fish/guestfish-actions.pod:2996
11030 msgid ""
11031 "The partition name can only be set on certain types of partition table.  "
11032 "This works on C<gpt> but not on C<mbr> partitions."
11033 msgstr ""
11034
11035 # type: =head2
11036 #: ../src/guestfs-actions.pod:3887
11037 msgid "guestfs_part_to_dev"
11038 msgstr ""
11039
11040 # type: verbatim
11041 #: ../src/guestfs-actions.pod:3889
11042 #, no-wrap
11043 msgid ""
11044 " char *guestfs_part_to_dev (guestfs_h *g,\n"
11045 "\t\tconst char *partition);\n"
11046 "\n"
11047 msgstr ""
11048
11049 # type: textblock
11050 #: ../src/guestfs-actions.pod:3892 ../fish/guestfish-actions.pod:3003
11051 msgid ""
11052 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11053 "partition number, returning the device name (eg. \"/dev/sdb\")."
11054 msgstr ""
11055
11056 # type: textblock
11057 #: ../src/guestfs-actions.pod:3896
11058 msgid ""
11059 "The named partition must exist, for example as a string returned from "
11060 "C<guestfs_list_partitions>."
11061 msgstr ""
11062
11063 # type: =head2
11064 #: ../src/guestfs-actions.pod:3902
11065 msgid "guestfs_ping_daemon"
11066 msgstr ""
11067
11068 # type: verbatim
11069 #: ../src/guestfs-actions.pod:3904
11070 #, no-wrap
11071 msgid ""
11072 " int guestfs_ping_daemon (guestfs_h *g);\n"
11073 "\n"
11074 msgstr ""
11075
11076 # type: textblock
11077 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:3014
11078 msgid ""
11079 "This is a test probe into the guestfs daemon running inside the qemu "
11080 "subprocess.  Calling this function checks that the daemon responds to the "
11081 "ping message, without affecting the daemon or attached block device(s) in "
11082 "any other way."
11083 msgstr ""
11084
11085 # type: =head2
11086 #: ../src/guestfs-actions.pod:3913
11087 msgid "guestfs_pread"
11088 msgstr ""
11089
11090 # type: verbatim
11091 #: ../src/guestfs-actions.pod:3915
11092 #, no-wrap
11093 msgid ""
11094 " char *guestfs_pread (guestfs_h *g,\n"
11095 "\t\tconst char *path,\n"
11096 "\t\tint count,\n"
11097 "\t\tint64_t offset,\n"
11098 "\t\tsize_t *size_r);\n"
11099 "\n"
11100 msgstr ""
11101
11102 # type: textblock
11103 #: ../src/guestfs-actions.pod:3921 ../fish/guestfish-actions.pod:3023
11104 msgid ""
11105 "This command lets you read part of a file.  It reads C<count> bytes of the "
11106 "file, starting at C<offset>, from file C<path>."
11107 msgstr ""
11108
11109 # type: textblock
11110 #: ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3947
11111 #: ../fish/guestfish-actions.pod:3026 ../fish/guestfish-actions.pod:3041
11112 msgid ""
11113 "This may read fewer bytes than requested.  For further details see the "
11114 "L<pread(2)> system call."
11115 msgstr ""
11116
11117 # type: textblock
11118 #: ../src/guestfs-actions.pod:3927
11119 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11120 msgstr ""
11121
11122 # type: =head2
11123 #: ../src/guestfs-actions.pod:3936
11124 msgid "guestfs_pread_device"
11125 msgstr ""
11126
11127 # type: verbatim
11128 #: ../src/guestfs-actions.pod:3938
11129 #, no-wrap
11130 msgid ""
11131 " char *guestfs_pread_device (guestfs_h *g,\n"
11132 "\t\tconst char *device,\n"
11133 "\t\tint count,\n"
11134 "\t\tint64_t offset,\n"
11135 "\t\tsize_t *size_r);\n"
11136 "\n"
11137 msgstr ""
11138
11139 # type: textblock
11140 #: ../src/guestfs-actions.pod:3944 ../fish/guestfish-actions.pod:3038
11141 msgid ""
11142 "This command lets you read part of a file.  It reads C<count> bytes of "
11143 "C<device>, starting at C<offset>."
11144 msgstr ""
11145
11146 # type: textblock
11147 #: ../src/guestfs-actions.pod:3950
11148 msgid "See also C<guestfs_pread>."
11149 msgstr ""
11150
11151 # type: =head2
11152 #: ../src/guestfs-actions.pod:3959
11153 msgid "guestfs_pvcreate"
11154 msgstr ""
11155
11156 # type: verbatim
11157 #: ../src/guestfs-actions.pod:3961
11158 #, no-wrap
11159 msgid ""
11160 " int guestfs_pvcreate (guestfs_h *g,\n"
11161 "\t\tconst char *device);\n"
11162 "\n"
11163 msgstr ""
11164
11165 # type: textblock
11166 #: ../src/guestfs-actions.pod:3964 ../fish/guestfish-actions.pod:3053
11167 msgid ""
11168 "This creates an LVM physical volume on the named C<device>, where C<device> "
11169 "should usually be a partition name such as C</dev/sda1>."
11170 msgstr ""
11171
11172 # type: =head2
11173 #: ../src/guestfs-actions.pod:3970
11174 msgid "guestfs_pvremove"
11175 msgstr ""
11176
11177 # type: verbatim
11178 #: ../src/guestfs-actions.pod:3972
11179 #, no-wrap
11180 msgid ""
11181 " int guestfs_pvremove (guestfs_h *g,\n"
11182 "\t\tconst char *device);\n"
11183 "\n"
11184 msgstr ""
11185
11186 # type: textblock
11187 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:3061
11188 msgid ""
11189 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11190 "it."
11191 msgstr ""
11192
11193 # type: textblock
11194 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:3064
11195 msgid ""
11196 "The implementation uses the C<pvremove> command which refuses to wipe "
11197 "physical volumes that contain any volume groups, so you have to remove those "
11198 "first."
11199 msgstr ""
11200
11201 # type: =head2
11202 #: ../src/guestfs-actions.pod:3984
11203 msgid "guestfs_pvresize"
11204 msgstr ""
11205
11206 # type: verbatim
11207 #: ../src/guestfs-actions.pod:3986
11208 #, no-wrap
11209 msgid ""
11210 " int guestfs_pvresize (guestfs_h *g,\n"
11211 "\t\tconst char *device);\n"
11212 "\n"
11213 msgstr ""
11214
11215 # type: textblock
11216 #: ../src/guestfs-actions.pod:3989 ../fish/guestfish-actions.pod:3072
11217 msgid ""
11218 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11219 "the new size of the underlying device."
11220 msgstr ""
11221
11222 # type: =head2
11223 #: ../src/guestfs-actions.pod:3994
11224 msgid "guestfs_pvresize_size"
11225 msgstr ""
11226
11227 # type: verbatim
11228 #: ../src/guestfs-actions.pod:3996
11229 #, no-wrap
11230 msgid ""
11231 " int guestfs_pvresize_size (guestfs_h *g,\n"
11232 "\t\tconst char *device,\n"
11233 "\t\tint64_t size);\n"
11234 "\n"
11235 msgstr ""
11236
11237 # type: textblock
11238 #: ../src/guestfs-actions.pod:4000
11239 msgid ""
11240 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11241 "specify the new size (in bytes) explicitly."
11242 msgstr ""
11243
11244 # type: =head2
11245 #: ../src/guestfs-actions.pod:4005
11246 msgid "guestfs_pvs"
11247 msgstr ""
11248
11249 # type: verbatim
11250 #: ../src/guestfs-actions.pod:4007
11251 #, no-wrap
11252 msgid ""
11253 " char **guestfs_pvs (guestfs_h *g);\n"
11254 "\n"
11255 msgstr ""
11256
11257 # type: textblock
11258 #: ../src/guestfs-actions.pod:4009 ../fish/guestfish-actions.pod:3086
11259 msgid ""
11260 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11261 "(8)> command."
11262 msgstr ""
11263
11264 # type: textblock
11265 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:3089
11266 msgid ""
11267 "This returns a list of just the device names that contain PVs (eg. C</dev/"
11268 "sda2>)."
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4015
11273 msgid "See also C<guestfs_pvs_full>."
11274 msgstr ""
11275
11276 # type: =head2
11277 #: ../src/guestfs-actions.pod:4021
11278 msgid "guestfs_pvs_full"
11279 msgstr ""
11280
11281 # type: verbatim
11282 #: ../src/guestfs-actions.pod:4023
11283 #, no-wrap
11284 msgid ""
11285 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
11286 "\n"
11287 msgstr ""
11288
11289 # type: textblock
11290 #: ../src/guestfs-actions.pod:4025 ../fish/guestfish-actions.pod:3098
11291 msgid ""
11292 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11293 "(8)> command.  The \"full\" version includes all fields."
11294 msgstr ""
11295
11296 # type: textblock
11297 #: ../src/guestfs-actions.pod:4028
11298 msgid ""
11299 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
11300 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11301 "C<guestfs_free_lvm_pv_list> after use>."
11302 msgstr ""
11303
11304 # type: =head2
11305 #: ../src/guestfs-actions.pod:4033
11306 msgid "guestfs_pvuuid"
11307 msgstr ""
11308
11309 # type: verbatim
11310 #: ../src/guestfs-actions.pod:4035
11311 #, no-wrap
11312 msgid ""
11313 " char *guestfs_pvuuid (guestfs_h *g,\n"
11314 "\t\tconst char *device);\n"
11315 "\n"
11316 msgstr ""
11317
11318 # type: textblock
11319 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:3105
11320 msgid "This command returns the UUID of the LVM PV C<device>."
11321 msgstr ""
11322
11323 # type: =head2
11324 #: ../src/guestfs-actions.pod:4043
11325 msgid "guestfs_pwrite"
11326 msgstr ""
11327
11328 # type: verbatim
11329 #: ../src/guestfs-actions.pod:4045
11330 #, no-wrap
11331 msgid ""
11332 " int guestfs_pwrite (guestfs_h *g,\n"
11333 "\t\tconst char *path,\n"
11334 "\t\tconst char *content,\n"
11335 "\t\tsize_t content_size,\n"
11336 "\t\tint64_t offset);\n"
11337 "\n"
11338 msgstr ""
11339
11340 # type: textblock
11341 #: ../src/guestfs-actions.pod:4051 ../fish/guestfish-actions.pod:3111
11342 msgid ""
11343 "This command writes to part of a file.  It writes the data buffer C<content> "
11344 "to the file C<path> starting at offset C<offset>."
11345 msgstr ""
11346
11347 # type: textblock
11348 #: ../src/guestfs-actions.pod:4054 ../fish/guestfish-actions.pod:3114
11349 msgid ""
11350 "This command implements the L<pwrite(2)> system call, and like that system "
11351 "call it may not write the full data requested.  The return value is the "
11352 "number of bytes that were actually written to the file.  This could even be "
11353 "0, although short writes are unlikely for regular files in ordinary "
11354 "circumstances."
11355 msgstr ""
11356
11357 # type: textblock
11358 #: ../src/guestfs-actions.pod:4060
11359 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11360 msgstr ""
11361
11362 # type: =head2
11363 #: ../src/guestfs-actions.pod:4067
11364 msgid "guestfs_pwrite_device"
11365 msgstr ""
11366
11367 # type: verbatim
11368 #: ../src/guestfs-actions.pod:4069
11369 #, no-wrap
11370 msgid ""
11371 " int guestfs_pwrite_device (guestfs_h *g,\n"
11372 "\t\tconst char *device,\n"
11373 "\t\tconst char *content,\n"
11374 "\t\tsize_t content_size,\n"
11375 "\t\tint64_t offset);\n"
11376 "\n"
11377 msgstr ""
11378
11379 # type: textblock
11380 #: ../src/guestfs-actions.pod:4075 ../fish/guestfish-actions.pod:3129
11381 msgid ""
11382 "This command writes to part of a device.  It writes the data buffer "
11383 "C<content> to C<device> starting at offset C<offset>."
11384 msgstr ""
11385
11386 # type: textblock
11387 #: ../src/guestfs-actions.pod:4078 ../fish/guestfish-actions.pod:3132
11388 msgid ""
11389 "This command implements the L<pwrite(2)> system call, and like that system "
11390 "call it may not write the full data requested (although short writes to disk "
11391 "devices and partitions are probably impossible with standard Linux kernels)."
11392 msgstr ""
11393
11394 # type: textblock
11395 #: ../src/guestfs-actions.pod:4083
11396 msgid "See also C<guestfs_pwrite>."
11397 msgstr ""
11398
11399 # type: =head2
11400 #: ../src/guestfs-actions.pod:4090
11401 msgid "guestfs_read_file"
11402 msgstr ""
11403
11404 # type: verbatim
11405 #: ../src/guestfs-actions.pod:4092
11406 #, no-wrap
11407 msgid ""
11408 " char *guestfs_read_file (guestfs_h *g,\n"
11409 "\t\tconst char *path,\n"
11410 "\t\tsize_t *size_r);\n"
11411 "\n"
11412 msgstr ""
11413
11414 # type: textblock
11415 #: ../src/guestfs-actions.pod:4096 ../fish/guestfish-actions.pod:3146
11416 msgid "This calls returns the contents of the file C<path> as a buffer."
11417 msgstr ""
11418
11419 # type: textblock
11420 #: ../src/guestfs-actions.pod:4099
11421 msgid ""
11422 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11423 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11424 "function is limited in the total size of file that can be handled."
11425 msgstr ""
11426
11427 # type: =head2
11428 #: ../src/guestfs-actions.pod:4111
11429 msgid "guestfs_read_lines"
11430 msgstr ""
11431
11432 # type: verbatim
11433 #: ../src/guestfs-actions.pod:4113
11434 #, no-wrap
11435 msgid ""
11436 " char **guestfs_read_lines (guestfs_h *g,\n"
11437 "\t\tconst char *path);\n"
11438 "\n"
11439 msgstr ""
11440
11441 # type: textblock
11442 #: ../src/guestfs-actions.pod:4118 ../fish/guestfish-actions.pod:3163
11443 msgid ""
11444 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11445 "C<CRLF> character sequences are I<not> returned."
11446 msgstr ""
11447
11448 # type: textblock
11449 #: ../src/guestfs-actions.pod:4121
11450 msgid ""
11451 "Note that this function cannot correctly handle binary files (specifically, "
11452 "files containing C<\\0> character which is treated as end of line).  For "
11453 "those you need to use the C<guestfs_read_file> function which has a more "
11454 "complex interface."
11455 msgstr ""
11456
11457 # type: =head2
11458 #: ../src/guestfs-actions.pod:4130
11459 msgid "guestfs_readdir"
11460 msgstr ""
11461
11462 # type: verbatim
11463 #: ../src/guestfs-actions.pod:4132
11464 #, no-wrap
11465 msgid ""
11466 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
11467 "\t\tconst char *dir);\n"
11468 "\n"
11469 msgstr ""
11470
11471 # type: textblock
11472 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:3175
11473 msgid "This returns the list of directory entries in directory C<dir>."
11474 msgstr ""
11475
11476 # type: textblock
11477 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:3177
11478 msgid ""
11479 "All entries in the directory are returned, including C<.> and C<..>.  The "
11480 "entries are I<not> sorted, but returned in the same order as the underlying "
11481 "filesystem."
11482 msgstr ""
11483
11484 # type: textblock
11485 #: ../src/guestfs-actions.pod:4141 ../fish/guestfish-actions.pod:3181
11486 msgid ""
11487 "Also this call returns basic file type information about each file.  The "
11488 "C<ftyp> field will contain one of the following characters:"
11489 msgstr ""
11490
11491 # type: =item
11492 #: ../src/guestfs-actions.pod:4146 ../fish/guestfish-actions.pod:3186
11493 msgid "'b'"
11494 msgstr ""
11495
11496 # type: textblock
11497 #: ../src/guestfs-actions.pod:4148 ../fish/guestfish-actions.pod:3188
11498 msgid "Block special"
11499 msgstr ""
11500
11501 # type: =item
11502 #: ../src/guestfs-actions.pod:4150 ../fish/guestfish-actions.pod:3190
11503 msgid "'c'"
11504 msgstr ""
11505
11506 # type: textblock
11507 #: ../src/guestfs-actions.pod:4152 ../fish/guestfish-actions.pod:3192
11508 msgid "Char special"
11509 msgstr ""
11510
11511 # type: =item
11512 #: ../src/guestfs-actions.pod:4154 ../fish/guestfish-actions.pod:3194
11513 msgid "'d'"
11514 msgstr ""
11515
11516 # type: textblock
11517 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:3196
11518 msgid "Directory"
11519 msgstr ""
11520
11521 # type: =item
11522 #: ../src/guestfs-actions.pod:4158 ../fish/guestfish-actions.pod:3198
11523 msgid "'f'"
11524 msgstr ""
11525
11526 # type: textblock
11527 #: ../src/guestfs-actions.pod:4160 ../fish/guestfish-actions.pod:3200
11528 msgid "FIFO (named pipe)"
11529 msgstr ""
11530
11531 # type: =item
11532 #: ../src/guestfs-actions.pod:4162 ../fish/guestfish-actions.pod:3202
11533 msgid "'l'"
11534 msgstr ""
11535
11536 # type: textblock
11537 #: ../src/guestfs-actions.pod:4164 ../fish/guestfish-actions.pod:3204
11538 msgid "Symbolic link"
11539 msgstr ""
11540
11541 # type: =item
11542 #: ../src/guestfs-actions.pod:4166 ../fish/guestfish-actions.pod:3206
11543 msgid "'r'"
11544 msgstr ""
11545
11546 # type: textblock
11547 #: ../src/guestfs-actions.pod:4168 ../fish/guestfish-actions.pod:3208
11548 msgid "Regular file"
11549 msgstr ""
11550
11551 # type: =item
11552 #: ../src/guestfs-actions.pod:4170 ../fish/guestfish-actions.pod:3210
11553 msgid "'s'"
11554 msgstr ""
11555
11556 # type: textblock
11557 #: ../src/guestfs-actions.pod:4172 ../fish/guestfish-actions.pod:3212
11558 msgid "Socket"
11559 msgstr ""
11560
11561 # type: =item
11562 #: ../src/guestfs-actions.pod:4174 ../fish/guestfish-actions.pod:3214
11563 msgid "'u'"
11564 msgstr ""
11565
11566 # type: textblock
11567 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:3216
11568 msgid "Unknown file type"
11569 msgstr ""
11570
11571 # type: =item
11572 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:3218
11573 msgid "'?'"
11574 msgstr ""
11575
11576 # type: textblock
11577 #: ../src/guestfs-actions.pod:4180 ../fish/guestfish-actions.pod:3220
11578 msgid ""
11579 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11580 msgstr ""
11581
11582 # type: textblock
11583 #: ../src/guestfs-actions.pod:4185
11584 msgid ""
11585 "This function is primarily intended for use by programs.  To get a simple "
11586 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11587 "consumption, use C<guestfs_ll>."
11588 msgstr ""
11589
11590 # type: textblock
11591 #: ../src/guestfs-actions.pod:4189
11592 msgid ""
11593 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
11594 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11595 "C<guestfs_free_dirent_list> after use>."
11596 msgstr ""
11597
11598 # type: =head2
11599 #: ../src/guestfs-actions.pod:4194
11600 msgid "guestfs_readlink"
11601 msgstr ""
11602
11603 # type: verbatim
11604 #: ../src/guestfs-actions.pod:4196
11605 #, no-wrap
11606 msgid ""
11607 " char *guestfs_readlink (guestfs_h *g,\n"
11608 "\t\tconst char *path);\n"
11609 "\n"
11610 msgstr ""
11611
11612 # type: textblock
11613 #: ../src/guestfs-actions.pod:4199 ../fish/guestfish-actions.pod:3233
11614 msgid "This command reads the target of a symbolic link."
11615 msgstr ""
11616
11617 # type: =head2
11618 #: ../src/guestfs-actions.pod:4204
11619 msgid "guestfs_readlinklist"
11620 msgstr ""
11621
11622 # type: verbatim
11623 #: ../src/guestfs-actions.pod:4206
11624 #, no-wrap
11625 msgid ""
11626 " char **guestfs_readlinklist (guestfs_h *g,\n"
11627 "\t\tconst char *path,\n"
11628 "\t\tchar *const *names);\n"
11629 "\n"
11630 msgstr ""
11631
11632 # type: textblock
11633 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:3239
11634 msgid ""
11635 "This call allows you to do a C<readlink> operation on multiple files, where "
11636 "all files are in the directory C<path>.  C<names> is the list of files from "
11637 "this directory."
11638 msgstr ""
11639
11640 # type: textblock
11641 #: ../src/guestfs-actions.pod:4214 ../fish/guestfish-actions.pod:3243
11642 msgid ""
11643 "On return you get a list of strings, with a one-to-one correspondence to the "
11644 "C<names> list.  Each string is the value of the symbolic link."
11645 msgstr ""
11646
11647 # type: textblock
11648 #: ../src/guestfs-actions.pod:4218 ../fish/guestfish-actions.pod:3247
11649 msgid ""
11650 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11651 "result string is the empty string C<\"\">.  However the whole operation is "
11652 "completed even if there were C<readlink(2)> errors, and so you can call this "
11653 "function with names where you don't know if they are symbolic links already "
11654 "(albeit slightly less efficient)."
11655 msgstr ""
11656
11657 # type: textblock
11658 #: ../src/guestfs-actions.pod:4225 ../fish/guestfish-actions.pod:3254
11659 msgid ""
11660 "This call is intended for programs that want to efficiently list a directory "
11661 "contents without making many round-trips.  Very long directory listings "
11662 "might cause the protocol message size to be exceeded, causing this call to "
11663 "fail.  The caller must split up such requests into smaller groups of names."
11664 msgstr ""
11665
11666 # type: =head2
11667 #: ../src/guestfs-actions.pod:4236
11668 msgid "guestfs_realpath"
11669 msgstr ""
11670
11671 # type: verbatim
11672 #: ../src/guestfs-actions.pod:4238
11673 #, no-wrap
11674 msgid ""
11675 " char *guestfs_realpath (guestfs_h *g,\n"
11676 "\t\tconst char *path);\n"
11677 "\n"
11678 msgstr ""
11679
11680 # type: textblock
11681 #: ../src/guestfs-actions.pod:4241 ../fish/guestfish-actions.pod:3265
11682 msgid ""
11683 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11684 "has no C<.>, C<..> or symbolic link path elements."
11685 msgstr ""
11686
11687 # type: =head2
11688 #: ../src/guestfs-actions.pod:4247
11689 msgid "guestfs_removexattr"
11690 msgstr ""
11691
11692 # type: verbatim
11693 #: ../src/guestfs-actions.pod:4249
11694 #, no-wrap
11695 msgid ""
11696 " int guestfs_removexattr (guestfs_h *g,\n"
11697 "\t\tconst char *xattr,\n"
11698 "\t\tconst char *path);\n"
11699 "\n"
11700 msgstr ""
11701
11702 # type: textblock
11703 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:3272
11704 msgid ""
11705 "This call removes the extended attribute named C<xattr> of the file C<path>."
11706 msgstr ""
11707
11708 # type: textblock
11709 #: ../src/guestfs-actions.pod:4256
11710 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11711 msgstr ""
11712
11713 # type: =head2
11714 #: ../src/guestfs-actions.pod:4260
11715 msgid "guestfs_resize2fs"
11716 msgstr ""
11717
11718 # type: verbatim
11719 #: ../src/guestfs-actions.pod:4262
11720 #, no-wrap
11721 msgid ""
11722 " int guestfs_resize2fs (guestfs_h *g,\n"
11723 "\t\tconst char *device);\n"
11724 "\n"
11725 msgstr ""
11726
11727 # type: textblock
11728 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:3281
11729 msgid ""
11730 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11731 "underlying device."
11732 msgstr ""
11733
11734 # type: textblock
11735 #: ../src/guestfs-actions.pod:4268
11736 msgid ""
11737 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11738 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11739 "sometimes gives an error about this and sometimes not.  In any case, it is "
11740 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11741 msgstr ""
11742
11743 # type: =head2
11744 #: ../src/guestfs-actions.pod:4276
11745 msgid "guestfs_resize2fs_size"
11746 msgstr ""
11747
11748 # type: verbatim
11749 #: ../src/guestfs-actions.pod:4278
11750 #, no-wrap
11751 msgid ""
11752 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11753 "\t\tconst char *device,\n"
11754 "\t\tint64_t size);\n"
11755 "\n"
11756 msgstr ""
11757
11758 # type: textblock
11759 #: ../src/guestfs-actions.pod:4282
11760 msgid ""
11761 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11762 "to specify the new size (in bytes) explicitly."
11763 msgstr ""
11764
11765 # type: =head2
11766 #: ../src/guestfs-actions.pod:4287
11767 msgid "guestfs_rm"
11768 msgstr ""
11769
11770 # type: verbatim
11771 #: ../src/guestfs-actions.pod:4289
11772 #, no-wrap
11773 msgid ""
11774 " int guestfs_rm (guestfs_h *g,\n"
11775 "\t\tconst char *path);\n"
11776 "\n"
11777 msgstr ""
11778
11779 # type: textblock
11780 #: ../src/guestfs-actions.pod:4292 ../fish/guestfish-actions.pod:3301
11781 msgid "Remove the single file C<path>."
11782 msgstr ""
11783
11784 # type: =head2
11785 #: ../src/guestfs-actions.pod:4296
11786 msgid "guestfs_rm_rf"
11787 msgstr ""
11788
11789 # type: verbatim
11790 #: ../src/guestfs-actions.pod:4298
11791 #, no-wrap
11792 msgid ""
11793 " int guestfs_rm_rf (guestfs_h *g,\n"
11794 "\t\tconst char *path);\n"
11795 "\n"
11796 msgstr ""
11797
11798 # type: textblock
11799 #: ../src/guestfs-actions.pod:4301 ../fish/guestfish-actions.pod:3307
11800 msgid ""
11801 "Remove the file or directory C<path>, recursively removing the contents if "
11802 "its a directory.  This is like the C<rm -rf> shell command."
11803 msgstr ""
11804
11805 # type: =head2
11806 #: ../src/guestfs-actions.pod:4307
11807 msgid "guestfs_rmdir"
11808 msgstr ""
11809
11810 # type: verbatim
11811 #: ../src/guestfs-actions.pod:4309
11812 #, no-wrap
11813 msgid ""
11814 " int guestfs_rmdir (guestfs_h *g,\n"
11815 "\t\tconst char *path);\n"
11816 "\n"
11817 msgstr ""
11818
11819 # type: textblock
11820 #: ../src/guestfs-actions.pod:4312 ../fish/guestfish-actions.pod:3315
11821 msgid "Remove the single directory C<path>."
11822 msgstr ""
11823
11824 # type: =head2
11825 #: ../src/guestfs-actions.pod:4316
11826 msgid "guestfs_rmmountpoint"
11827 msgstr ""
11828
11829 # type: verbatim
11830 #: ../src/guestfs-actions.pod:4318
11831 #, no-wrap
11832 msgid ""
11833 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11834 "\t\tconst char *exemptpath);\n"
11835 "\n"
11836 msgstr ""
11837
11838 # type: textblock
11839 #: ../src/guestfs-actions.pod:4321
11840 msgid ""
11841 "This calls removes a mountpoint that was previously created with "
11842 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11843 msgstr ""
11844
11845 # type: =head2
11846 #: ../src/guestfs-actions.pod:4327
11847 msgid "guestfs_scrub_device"
11848 msgstr ""
11849
11850 # type: verbatim
11851 #: ../src/guestfs-actions.pod:4329
11852 #, no-wrap
11853 msgid ""
11854 " int guestfs_scrub_device (guestfs_h *g,\n"
11855 "\t\tconst char *device);\n"
11856 "\n"
11857 msgstr ""
11858
11859 # type: textblock
11860 #: ../src/guestfs-actions.pod:4332 ../fish/guestfish-actions.pod:3329
11861 msgid ""
11862 "This command writes patterns over C<device> to make data retrieval more "
11863 "difficult."
11864 msgstr ""
11865
11866 # type: textblock
11867 #: ../src/guestfs-actions.pod:4335 ../src/guestfs-actions.pod:4353
11868 #: ../src/guestfs-actions.pod:4369 ../fish/guestfish-actions.pod:3332
11869 #: ../fish/guestfish-actions.pod:3347 ../fish/guestfish-actions.pod:3360
11870 msgid ""
11871 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11872 "more details."
11873 msgstr ""
11874
11875 # type: =head2
11876 #: ../src/guestfs-actions.pod:4343
11877 msgid "guestfs_scrub_file"
11878 msgstr ""
11879
11880 # type: verbatim
11881 #: ../src/guestfs-actions.pod:4345
11882 #, no-wrap
11883 msgid ""
11884 " int guestfs_scrub_file (guestfs_h *g,\n"
11885 "\t\tconst char *file);\n"
11886 "\n"
11887 msgstr ""
11888
11889 # type: textblock
11890 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:3342
11891 msgid ""
11892 "This command writes patterns over a file to make data retrieval more "
11893 "difficult."
11894 msgstr ""
11895
11896 # type: textblock
11897 #: ../src/guestfs-actions.pod:4351 ../fish/guestfish-actions.pod:3345
11898 msgid "The file is I<removed> after scrubbing."
11899 msgstr ""
11900
11901 # type: =head2
11902 #: ../src/guestfs-actions.pod:4358
11903 msgid "guestfs_scrub_freespace"
11904 msgstr ""
11905
11906 # type: verbatim
11907 #: ../src/guestfs-actions.pod:4360
11908 #, no-wrap
11909 msgid ""
11910 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11911 "\t\tconst char *dir);\n"
11912 "\n"
11913 msgstr ""
11914
11915 # type: textblock
11916 #: ../src/guestfs-actions.pod:4363
11917 msgid ""
11918 "This command creates the directory C<dir> and then fills it with files until "
11919 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11920 "and deletes them.  The intention is to scrub any free space on the partition "
11921 "containing C<dir>."
11922 msgstr ""
11923
11924 # type: =head2
11925 #: ../src/guestfs-actions.pod:4374
11926 msgid "guestfs_set_append"
11927 msgstr ""
11928
11929 # type: verbatim
11930 #: ../src/guestfs-actions.pod:4376
11931 #, no-wrap
11932 msgid ""
11933 " int guestfs_set_append (guestfs_h *g,\n"
11934 "\t\tconst char *append);\n"
11935 "\n"
11936 msgstr ""
11937
11938 # type: textblock
11939 #: ../src/guestfs-actions.pod:4379 ../fish/guestfish-actions.pod:3369
11940 msgid ""
11941 "This function is used to add additional options to the guest kernel command "
11942 "line."
11943 msgstr ""
11944
11945 # type: textblock
11946 #: ../src/guestfs-actions.pod:4382 ../fish/guestfish-actions.pod:3372
11947 msgid ""
11948 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11949 "environment variable."
11950 msgstr ""
11951
11952 # type: textblock
11953 #: ../src/guestfs-actions.pod:4385 ../fish/guestfish-actions.pod:3375
11954 msgid ""
11955 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11956 "(libguestfs always adds a few of its own)."
11957 msgstr ""
11958
11959 # type: =head2
11960 #: ../src/guestfs-actions.pod:4390
11961 msgid "guestfs_set_autosync"
11962 msgstr ""
11963
11964 # type: verbatim
11965 #: ../src/guestfs-actions.pod:4392
11966 #, no-wrap
11967 msgid ""
11968 " int guestfs_set_autosync (guestfs_h *g,\n"
11969 "\t\tint autosync);\n"
11970 "\n"
11971 msgstr ""
11972
11973 # type: textblock
11974 #: ../src/guestfs-actions.pod:4395
11975 msgid ""
11976 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11977 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11978 "the handle is closed (also if the program exits without closing handles)."
11979 msgstr ""
11980
11981 # type: textblock
11982 #: ../src/guestfs-actions.pod:4400 ../fish/guestfish-actions.pod:3389
11983 msgid ""
11984 "This is enabled by default (since libguestfs 1.5.24, previously it was "
11985 "disabled by default)."
11986 msgstr ""
11987
11988 # type: =head2
11989 #: ../src/guestfs-actions.pod:4405
11990 msgid "guestfs_set_direct"
11991 msgstr ""
11992
11993 # type: verbatim
11994 #: ../src/guestfs-actions.pod:4407
11995 #, no-wrap
11996 msgid ""
11997 " int guestfs_set_direct (guestfs_h *g,\n"
11998 "\t\tint direct);\n"
11999 "\n"
12000 msgstr ""
12001
12002 # type: textblock
12003 #: ../src/guestfs-actions.pod:4410 ../fish/guestfish-actions.pod:3398
12004 msgid ""
12005 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12006 "passed directly through to the appliance once it is launched."
12007 msgstr ""
12008
12009 # type: textblock
12010 #: ../src/guestfs-actions.pod:4414
12011 msgid ""
12012 "One consequence of this is that log messages aren't caught by the library "
12013 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12014 "stdout."
12015 msgstr ""
12016
12017 # type: textblock
12018 #: ../src/guestfs-actions.pod:4418 ../fish/guestfish-actions.pod:3406
12019 msgid "You probably don't want to use this unless you know what you are doing."
12020 msgstr ""
12021
12022 # type: textblock
12023 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:3409
12024 msgid "The default is disabled."
12025 msgstr ""
12026
12027 # type: =head2
12028 #: ../src/guestfs-actions.pod:4425
12029 msgid "guestfs_set_e2label"
12030 msgstr ""
12031
12032 # type: verbatim
12033 #: ../src/guestfs-actions.pod:4427
12034 #, no-wrap
12035 msgid ""
12036 " int guestfs_set_e2label (guestfs_h *g,\n"
12037 "\t\tconst char *device,\n"
12038 "\t\tconst char *label);\n"
12039 "\n"
12040 msgstr ""
12041
12042 # type: textblock
12043 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:3415
12044 msgid ""
12045 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12046 "C<label>.  Filesystem labels are limited to 16 characters."
12047 msgstr ""
12048
12049 # type: textblock
12050 #: ../src/guestfs-actions.pod:4435
12051 msgid ""
12052 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12053 "the existing label on a filesystem."
12054 msgstr ""
12055
12056 # type: =head2
12057 #: ../src/guestfs-actions.pod:4440
12058 msgid "guestfs_set_e2uuid"
12059 msgstr ""
12060
12061 # type: verbatim
12062 #: ../src/guestfs-actions.pod:4442
12063 #, no-wrap
12064 msgid ""
12065 " int guestfs_set_e2uuid (guestfs_h *g,\n"
12066 "\t\tconst char *device,\n"
12067 "\t\tconst char *uuid);\n"
12068 "\n"
12069 msgstr ""
12070
12071 # type: textblock
12072 #: ../src/guestfs-actions.pod:4446 ../fish/guestfish-actions.pod:3426
12073 msgid ""
12074 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12075 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12076 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12077 msgstr ""
12078
12079 # type: textblock
12080 #: ../src/guestfs-actions.pod:4451
12081 msgid ""
12082 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12083 "the existing UUID of a filesystem."
12084 msgstr ""
12085
12086 # type: =head2
12087 #: ../src/guestfs-actions.pod:4456
12088 msgid "guestfs_set_memsize"
12089 msgstr ""
12090
12091 # type: verbatim
12092 #: ../src/guestfs-actions.pod:4458
12093 #, no-wrap
12094 msgid ""
12095 " int guestfs_set_memsize (guestfs_h *g,\n"
12096 "\t\tint memsize);\n"
12097 "\n"
12098 msgstr ""
12099
12100 # type: textblock
12101 #: ../src/guestfs-actions.pod:4461
12102 msgid ""
12103 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12104 "This only has any effect if called before C<guestfs_launch>."
12105 msgstr ""
12106
12107 # type: textblock
12108 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:3444
12109 msgid ""
12110 "You can also change this by setting the environment variable "
12111 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12112 msgstr ""
12113
12114 # type: =head2
12115 #: ../src/guestfs-actions.pod:4474
12116 msgid "guestfs_set_network"
12117 msgstr ""
12118
12119 # type: verbatim
12120 #: ../src/guestfs-actions.pod:4476
12121 #, no-wrap
12122 msgid ""
12123 " int guestfs_set_network (guestfs_h *g,\n"
12124 "\t\tint network);\n"
12125 "\n"
12126 msgstr ""
12127
12128 # type: textblock
12129 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:3457
12130 msgid ""
12131 "If C<network> is true, then the network is enabled in the libguestfs "
12132 "appliance.  The default is false."
12133 msgstr ""
12134
12135 # type: textblock
12136 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3460
12137 msgid ""
12138 "This affects whether commands are able to access the network (see L<guestfs"
12139 "(3)/RUNNING COMMANDS>)."
12140 msgstr ""
12141
12142 # type: textblock
12143 #: ../src/guestfs-actions.pod:4485
12144 msgid ""
12145 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12146 "effect."
12147 msgstr ""
12148
12149 # type: =head2
12150 #: ../src/guestfs-actions.pod:4490
12151 msgid "guestfs_set_path"
12152 msgstr ""
12153
12154 # type: verbatim
12155 #: ../src/guestfs-actions.pod:4492
12156 #, no-wrap
12157 msgid ""
12158 " int guestfs_set_path (guestfs_h *g,\n"
12159 "\t\tconst char *searchpath);\n"
12160 "\n"
12161 msgstr ""
12162
12163 # type: textblock
12164 #: ../src/guestfs-actions.pod:4495 ../fish/guestfish-actions.pod:3472
12165 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12166 msgstr ""
12167
12168 # type: textblock
12169 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:3474
12170 msgid ""
12171 "The default is C<$libdir/guestfs> unless overridden by setting "
12172 "C<LIBGUESTFS_PATH> environment variable."
12173 msgstr ""
12174
12175 # type: textblock
12176 #: ../src/guestfs-actions.pod:4500 ../fish/guestfish-actions.pod:3477
12177 msgid "Setting C<path> to C<NULL> restores the default path."
12178 msgstr ""
12179
12180 # type: =head2
12181 #: ../src/guestfs-actions.pod:4504
12182 msgid "guestfs_set_qemu"
12183 msgstr ""
12184
12185 # type: verbatim
12186 #: ../src/guestfs-actions.pod:4506
12187 #, no-wrap
12188 msgid ""
12189 " int guestfs_set_qemu (guestfs_h *g,\n"
12190 "\t\tconst char *qemu);\n"
12191 "\n"
12192 msgstr ""
12193
12194 # type: textblock
12195 #: ../src/guestfs-actions.pod:4509 ../fish/guestfish-actions.pod:3485
12196 msgid "Set the qemu binary that we will use."
12197 msgstr ""
12198
12199 # type: textblock
12200 #: ../src/guestfs-actions.pod:4511 ../fish/guestfish-actions.pod:3487
12201 msgid ""
12202 "The default is chosen when the library was compiled by the configure script."
12203 msgstr ""
12204
12205 # type: textblock
12206 #: ../src/guestfs-actions.pod:4514 ../fish/guestfish-actions.pod:3490
12207 msgid ""
12208 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12209 "variable."
12210 msgstr ""
12211
12212 # type: textblock
12213 #: ../src/guestfs-actions.pod:4517 ../fish/guestfish-actions.pod:3493
12214 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12215 msgstr ""
12216
12217 # type: textblock
12218 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3495
12219 msgid ""
12220 "Note that you should call this function as early as possible after creating "
12221 "the handle.  This is because some pre-launch operations depend on testing "
12222 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12223 "don't retest features, and so you might see inconsistent results.  Using the "
12224 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12225 "the qemu binary at the same time as the handle is created."
12226 msgstr ""
12227
12228 # type: =head2
12229 #: ../src/guestfs-actions.pod:4529
12230 msgid "guestfs_set_recovery_proc"
12231 msgstr ""
12232
12233 # type: verbatim
12234 #: ../src/guestfs-actions.pod:4531
12235 #, no-wrap
12236 msgid ""
12237 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
12238 "\t\tint recoveryproc);\n"
12239 "\n"
12240 msgstr ""
12241
12242 # type: textblock
12243 #: ../src/guestfs-actions.pod:4534
12244 msgid ""
12245 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12246 "not create a recovery process.  The purpose of the recovery process is to "
12247 "stop runaway qemu processes in the case where the main program aborts "
12248 "abruptly."
12249 msgstr ""
12250
12251 # type: textblock
12252 #: ../src/guestfs-actions.pod:4539
12253 msgid ""
12254 "This only has any effect if called before C<guestfs_launch>, and the default "
12255 "is true."
12256 msgstr ""
12257
12258 # type: textblock
12259 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3517
12260 msgid ""
12261 "About the only time when you would want to disable this is if the main "
12262 "process will fork itself into the background (\"daemonize\" itself).  In "
12263 "this case the recovery process thinks that the main program has disappeared "
12264 "and so kills qemu, which is not very helpful."
12265 msgstr ""
12266
12267 # type: =head2
12268 #: ../src/guestfs-actions.pod:4550
12269 msgid "guestfs_set_selinux"
12270 msgstr ""
12271
12272 # type: verbatim
12273 #: ../src/guestfs-actions.pod:4552
12274 #, no-wrap
12275 msgid ""
12276 " int guestfs_set_selinux (guestfs_h *g,\n"
12277 "\t\tint selinux);\n"
12278 "\n"
12279 msgstr ""
12280
12281 # type: textblock
12282 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3529
12283 msgid ""
12284 "This sets the selinux flag that is passed to the appliance at boot time.  "
12285 "The default is C<selinux=0> (disabled)."
12286 msgstr ""
12287
12288 # type: textblock
12289 #: ../src/guestfs-actions.pod:4558 ../fish/guestfish-actions.pod:3532
12290 msgid ""
12291 "Note that if SELinux is enabled, it is always in Permissive mode "
12292 "(C<enforcing=0>)."
12293 msgstr ""
12294
12295 # type: =head2
12296 #: ../src/guestfs-actions.pod:4566
12297 msgid "guestfs_set_trace"
12298 msgstr ""
12299
12300 # type: verbatim
12301 #: ../src/guestfs-actions.pod:4568
12302 #, no-wrap
12303 msgid ""
12304 " int guestfs_set_trace (guestfs_h *g,\n"
12305 "\t\tint trace);\n"
12306 "\n"
12307 msgstr ""
12308
12309 # type: textblock
12310 #: ../src/guestfs-actions.pod:4571 ../fish/guestfish-actions.pod:3544
12311 msgid ""
12312 "If the command trace flag is set to 1, then commands are printed on stderr "
12313 "before they are executed in a format which is very similar to the one used "
12314 "by guestfish.  In other words, you can run a program with this enabled, and "
12315 "you will get out a script which you can feed to guestfish to perform the "
12316 "same set of actions."
12317 msgstr ""
12318
12319 # type: textblock
12320 #: ../src/guestfs-actions.pod:4578 ../fish/guestfish-actions.pod:3551
12321 msgid ""
12322 "If you want to trace C API calls into libguestfs (and other libraries) then "
12323 "possibly a better way is to use the external ltrace(1) command."
12324 msgstr ""
12325
12326 # type: textblock
12327 #: ../src/guestfs-actions.pod:4582 ../fish/guestfish-actions.pod:3555
12328 msgid ""
12329 "Command traces are disabled unless the environment variable "
12330 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12331 msgstr ""
12332
12333 # type: =head2
12334 #: ../src/guestfs-actions.pod:4587
12335 msgid "guestfs_set_verbose"
12336 msgstr ""
12337
12338 # type: verbatim
12339 #: ../src/guestfs-actions.pod:4589
12340 #, no-wrap
12341 msgid ""
12342 " int guestfs_set_verbose (guestfs_h *g,\n"
12343 "\t\tint verbose);\n"
12344 "\n"
12345 msgstr ""
12346
12347 # type: textblock
12348 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3564
12349 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12350 msgstr ""
12351
12352 # type: textblock
12353 #: ../src/guestfs-actions.pod:4594 ../fish/guestfish-actions.pod:3566
12354 msgid ""
12355 "Verbose messages are disabled unless the environment variable "
12356 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12357 msgstr ""
12358
12359 # type: =head2
12360 #: ../src/guestfs-actions.pod:4599
12361 msgid "guestfs_setcon"
12362 msgstr ""
12363
12364 # type: verbatim
12365 #: ../src/guestfs-actions.pod:4601
12366 #, no-wrap
12367 msgid ""
12368 " int guestfs_setcon (guestfs_h *g,\n"
12369 "\t\tconst char *context);\n"
12370 "\n"
12371 msgstr ""
12372
12373 # type: textblock
12374 #: ../src/guestfs-actions.pod:4604 ../fish/guestfish-actions.pod:3573
12375 msgid ""
12376 "This sets the SELinux security context of the daemon to the string "
12377 "C<context>."
12378 msgstr ""
12379
12380 # type: textblock
12381 #: ../src/guestfs-actions.pod:4607 ../fish/guestfish-actions.pod:3576
12382 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12383 msgstr ""
12384
12385 # type: =head2
12386 #: ../src/guestfs-actions.pod:4611
12387 msgid "guestfs_setxattr"
12388 msgstr ""
12389
12390 # type: verbatim
12391 #: ../src/guestfs-actions.pod:4613
12392 #, no-wrap
12393 msgid ""
12394 " int guestfs_setxattr (guestfs_h *g,\n"
12395 "\t\tconst char *xattr,\n"
12396 "\t\tconst char *val,\n"
12397 "\t\tint vallen,\n"
12398 "\t\tconst char *path);\n"
12399 "\n"
12400 msgstr ""
12401
12402 # type: textblock
12403 #: ../src/guestfs-actions.pod:4619 ../fish/guestfish-actions.pod:3582
12404 msgid ""
12405 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12406 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12407 msgstr ""
12408
12409 # type: textblock
12410 #: ../src/guestfs-actions.pod:4623
12411 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12412 msgstr ""
12413
12414 # type: =head2
12415 #: ../src/guestfs-actions.pod:4627
12416 msgid "guestfs_sfdisk"
12417 msgstr ""
12418
12419 # type: verbatim
12420 #: ../src/guestfs-actions.pod:4629
12421 #, no-wrap
12422 msgid ""
12423 " int guestfs_sfdisk (guestfs_h *g,\n"
12424 "\t\tconst char *device,\n"
12425 "\t\tint cyls,\n"
12426 "\t\tint heads,\n"
12427 "\t\tint sectors,\n"
12428 "\t\tchar *const *lines);\n"
12429 "\n"
12430 msgstr ""
12431
12432 # type: textblock
12433 #: ../src/guestfs-actions.pod:4636 ../fish/guestfish-actions.pod:3592
12434 msgid ""
12435 "This is a direct interface to the L<sfdisk(8)> program for creating "
12436 "partitions on block devices."
12437 msgstr ""
12438
12439 # type: textblock
12440 #: ../src/guestfs-actions.pod:4639 ../fish/guestfish-actions.pod:3595
12441 msgid "C<device> should be a block device, for example C</dev/sda>."
12442 msgstr ""
12443
12444 # type: textblock
12445 #: ../src/guestfs-actions.pod:4641 ../fish/guestfish-actions.pod:3597
12446 msgid ""
12447 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12448 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
12449 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12450 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12451 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12452 "the kernel) cannot work out the right geometry and you will need to tell it."
12453 msgstr ""
12454
12455 # type: textblock
12456 #: ../src/guestfs-actions.pod:4649 ../fish/guestfish-actions.pod:3605
12457 msgid ""
12458 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12459 "refer to the L<sfdisk(8)> manpage."
12460 msgstr ""
12461
12462 # type: textblock
12463 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3608
12464 msgid ""
12465 "To create a single partition occupying the whole disk, you would pass "
12466 "C<lines> as a single element list, when the single element being the string "
12467 "C<,> (comma)."
12468 msgstr ""
12469
12470 # type: textblock
12471 #: ../src/guestfs-actions.pod:4656
12472 msgid ""
12473 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12474 msgstr ""
12475
12476 # type: =head2
12477 #: ../src/guestfs-actions.pod:4664
12478 msgid "guestfs_sfdiskM"
12479 msgstr ""
12480
12481 # type: verbatim
12482 #: ../src/guestfs-actions.pod:4666
12483 #, no-wrap
12484 msgid ""
12485 " int guestfs_sfdiskM (guestfs_h *g,\n"
12486 "\t\tconst char *device,\n"
12487 "\t\tchar *const *lines);\n"
12488 "\n"
12489 msgstr ""
12490
12491 # type: textblock
12492 #: ../src/guestfs-actions.pod:4670
12493 msgid ""
12494 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12495 "partition sizes are specified in megabytes only (rounded to the nearest "
12496 "cylinder) and you don't need to specify the cyls, heads and sectors "
12497 "parameters which were rarely if ever used anyway."
12498 msgstr ""
12499
12500 # type: textblock
12501 #: ../src/guestfs-actions.pod:4676
12502 msgid ""
12503 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12504 "C<guestfs_part_disk>"
12505 msgstr ""
12506
12507 # type: =head2
12508 #: ../src/guestfs-actions.pod:4684
12509 msgid "guestfs_sfdisk_N"
12510 msgstr ""
12511
12512 # type: verbatim
12513 #: ../src/guestfs-actions.pod:4686
12514 #, no-wrap
12515 msgid ""
12516 " int guestfs_sfdisk_N (guestfs_h *g,\n"
12517 "\t\tconst char *device,\n"
12518 "\t\tint partnum,\n"
12519 "\t\tint cyls,\n"
12520 "\t\tint heads,\n"
12521 "\t\tint sectors,\n"
12522 "\t\tconst char *line);\n"
12523 "\n"
12524 msgstr ""
12525
12526 # type: textblock
12527 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3638
12528 msgid ""
12529 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12530 "(note: C<n> counts from 1)."
12531 msgstr ""
12532
12533 # type: textblock
12534 #: ../src/guestfs-actions.pod:4697
12535 msgid ""
12536 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12537 "for the cyls/heads/sectors parameters."
12538 msgstr ""
12539
12540 # type: textblock
12541 #: ../src/guestfs-actions.pod:4700
12542 msgid "See also: C<guestfs_part_add>"
12543 msgstr ""
12544
12545 # type: =head2
12546 #: ../src/guestfs-actions.pod:4707
12547 msgid "guestfs_sfdisk_disk_geometry"
12548 msgstr ""
12549
12550 # type: verbatim
12551 #: ../src/guestfs-actions.pod:4709
12552 #, no-wrap
12553 msgid ""
12554 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12555 "\t\tconst char *device);\n"
12556 "\n"
12557 msgstr ""
12558
12559 # type: textblock
12560 #: ../src/guestfs-actions.pod:4712
12561 msgid ""
12562 "This displays the disk geometry of C<device> read from the partition table.  "
12563 "Especially in the case where the underlying block device has been resized, "
12564 "this can be different from the kernel's idea of the geometry (see "
12565 "C<guestfs_sfdisk_kernel_geometry>)."
12566 msgstr ""
12567
12568 # type: textblock
12569 #: ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:4730
12570 #: ../fish/guestfish-actions.pod:3658 ../fish/guestfish-actions.pod:3667
12571 msgid "The result is in human-readable format, and not designed to be parsed."
12572 msgstr ""
12573
12574 # type: =head2
12575 #: ../src/guestfs-actions.pod:4723
12576 msgid "guestfs_sfdisk_kernel_geometry"
12577 msgstr ""
12578
12579 # type: verbatim
12580 #: ../src/guestfs-actions.pod:4725
12581 #, no-wrap
12582 msgid ""
12583 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12584 "\t\tconst char *device);\n"
12585 "\n"
12586 msgstr ""
12587
12588 # type: textblock
12589 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3665
12590 msgid "This displays the kernel's idea of the geometry of C<device>."
12591 msgstr ""
12592
12593 # type: =head2
12594 #: ../src/guestfs-actions.pod:4736
12595 msgid "guestfs_sfdisk_l"
12596 msgstr ""
12597
12598 # type: verbatim
12599 #: ../src/guestfs-actions.pod:4738
12600 #, no-wrap
12601 msgid ""
12602 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
12603 "\t\tconst char *device);\n"
12604 "\n"
12605 msgstr ""
12606
12607 # type: textblock
12608 #: ../src/guestfs-actions.pod:4741 ../fish/guestfish-actions.pod:3674
12609 msgid ""
12610 "This displays the partition table on C<device>, in the human-readable output "
12611 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12612 msgstr ""
12613
12614 # type: textblock
12615 #: ../src/guestfs-actions.pod:4745
12616 msgid "See also: C<guestfs_part_list>"
12617 msgstr ""
12618
12619 # type: =head2
12620 #: ../src/guestfs-actions.pod:4750
12621 msgid "guestfs_sh"
12622 msgstr ""
12623
12624 # type: verbatim
12625 #: ../src/guestfs-actions.pod:4752
12626 #, no-wrap
12627 msgid ""
12628 " char *guestfs_sh (guestfs_h *g,\n"
12629 "\t\tconst char *command);\n"
12630 "\n"
12631 msgstr ""
12632
12633 # type: textblock
12634 #: ../src/guestfs-actions.pod:4755 ../fish/guestfish-actions.pod:3684
12635 msgid ""
12636 "This call runs a command from the guest filesystem via the guest's C</bin/"
12637 "sh>."
12638 msgstr ""
12639
12640 # type: textblock
12641 #: ../src/guestfs-actions.pod:4758
12642 msgid "This is like C<guestfs_command>, but passes the command to:"
12643 msgstr ""
12644
12645 # type: verbatim
12646 #: ../src/guestfs-actions.pod:4760 ../fish/guestfish-actions.pod:3689
12647 #, no-wrap
12648 msgid ""
12649 " /bin/sh -c \"command\"\n"
12650 "\n"
12651 msgstr ""
12652
12653 # type: textblock
12654 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3691
12655 msgid ""
12656 "Depending on the guest's shell, this usually results in wildcards being "
12657 "expanded, shell expressions being interpolated and so on."
12658 msgstr ""
12659
12660 # type: textblock
12661 #: ../src/guestfs-actions.pod:4766
12662 msgid "All the provisos about C<guestfs_command> apply to this call."
12663 msgstr ""
12664
12665 # type: =head2
12666 #: ../src/guestfs-actions.pod:4771
12667 msgid "guestfs_sh_lines"
12668 msgstr ""
12669
12670 # type: verbatim
12671 #: ../src/guestfs-actions.pod:4773
12672 #, no-wrap
12673 msgid ""
12674 " char **guestfs_sh_lines (guestfs_h *g,\n"
12675 "\t\tconst char *command);\n"
12676 "\n"
12677 msgstr ""
12678
12679 # type: textblock
12680 #: ../src/guestfs-actions.pod:4776
12681 msgid ""
12682 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12683 "lines."
12684 msgstr ""
12685
12686 # type: textblock
12687 #: ../src/guestfs-actions.pod:4779
12688 msgid "See also: C<guestfs_command_lines>"
12689 msgstr ""
12690
12691 # type: =head2
12692 #: ../src/guestfs-actions.pod:4785
12693 msgid "guestfs_sleep"
12694 msgstr ""
12695
12696 # type: verbatim
12697 #: ../src/guestfs-actions.pod:4787
12698 #, no-wrap
12699 msgid ""
12700 " int guestfs_sleep (guestfs_h *g,\n"
12701 "\t\tint secs);\n"
12702 "\n"
12703 msgstr ""
12704
12705 # type: textblock
12706 #: ../src/guestfs-actions.pod:4790 ../fish/guestfish-actions.pod:3710
12707 msgid "Sleep for C<secs> seconds."
12708 msgstr ""
12709
12710 # type: =head2
12711 #: ../src/guestfs-actions.pod:4794 ../src/guestfs-structs.pod:109
12712 msgid "guestfs_stat"
12713 msgstr ""
12714
12715 # type: verbatim
12716 #: ../src/guestfs-actions.pod:4796
12717 #, no-wrap
12718 msgid ""
12719 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12720 "\t\tconst char *path);\n"
12721 "\n"
12722 msgstr ""
12723
12724 # type: textblock
12725 #: ../src/guestfs-actions.pod:4801 ../fish/guestfish-actions.pod:3718
12726 msgid "This is the same as the C<stat(2)> system call."
12727 msgstr ""
12728
12729 # type: =head2
12730 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-structs.pod:135
12731 msgid "guestfs_statvfs"
12732 msgstr ""
12733
12734 # type: verbatim
12735 #: ../src/guestfs-actions.pod:4809
12736 #, no-wrap
12737 msgid ""
12738 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12739 "\t\tconst char *path);\n"
12740 "\n"
12741 msgstr ""
12742
12743 # type: textblock
12744 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3724
12745 msgid ""
12746 "Returns file system statistics for any mounted file system.  C<path> should "
12747 "be a file or directory in the mounted file system (typically it is the mount "
12748 "point itself, but it doesn't need to be)."
12749 msgstr ""
12750
12751 # type: textblock
12752 #: ../src/guestfs-actions.pod:4816 ../fish/guestfish-actions.pod:3728
12753 msgid "This is the same as the C<statvfs(2)> system call."
12754 msgstr ""
12755
12756 # type: textblock
12757 #: ../src/guestfs-actions.pod:4818
12758 msgid ""
12759 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12760 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12761 msgstr ""
12762
12763 # type: =head2
12764 #: ../src/guestfs-actions.pod:4822
12765 msgid "guestfs_strings"
12766 msgstr ""
12767
12768 # type: verbatim
12769 #: ../src/guestfs-actions.pod:4824
12770 #, no-wrap
12771 msgid ""
12772 " char **guestfs_strings (guestfs_h *g,\n"
12773 "\t\tconst char *path);\n"
12774 "\n"
12775 msgstr ""
12776
12777 # type: textblock
12778 #: ../src/guestfs-actions.pod:4827 ../fish/guestfish-actions.pod:3734
12779 msgid ""
12780 "This runs the L<strings(1)> command on a file and returns the list of "
12781 "printable strings found."
12782 msgstr ""
12783
12784 # type: =head2
12785 #: ../src/guestfs-actions.pod:4837
12786 msgid "guestfs_strings_e"
12787 msgstr ""
12788
12789 # type: verbatim
12790 #: ../src/guestfs-actions.pod:4839
12791 #, no-wrap
12792 msgid ""
12793 " char **guestfs_strings_e (guestfs_h *g,\n"
12794 "\t\tconst char *encoding,\n"
12795 "\t\tconst char *path);\n"
12796 "\n"
12797 msgstr ""
12798
12799 # type: textblock
12800 #: ../src/guestfs-actions.pod:4843
12801 msgid ""
12802 "This is like the C<guestfs_strings> command, but allows you to specify the "
12803 "encoding of strings that are looked for in the source file C<path>."
12804 msgstr ""
12805
12806 # type: textblock
12807 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3748
12808 msgid "Allowed encodings are:"
12809 msgstr ""
12810
12811 # type: =item
12812 #: ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3752
12813 msgid "s"
12814 msgstr ""
12815
12816 # type: textblock
12817 #: ../src/guestfs-actions.pod:4853
12818 msgid ""
12819 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12820 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12821 msgstr ""
12822
12823 # type: =item
12824 #: ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:3757
12825 msgid "S"
12826 msgstr ""
12827
12828 # type: textblock
12829 #: ../src/guestfs-actions.pod:4858 ../fish/guestfish-actions.pod:3759
12830 msgid "Single 8-bit-byte characters."
12831 msgstr ""
12832
12833 # type: =item
12834 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3761
12835 msgid "b"
12836 msgstr ""
12837
12838 # type: textblock
12839 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3763
12840 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12841 msgstr ""
12842
12843 # type: =item
12844 #: ../src/guestfs-actions.pod:4865 ../fish/guestfish-actions.pod:3766
12845 msgid "l (lower case letter L)"
12846 msgstr ""
12847
12848 # type: textblock
12849 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3768
12850 msgid ""
12851 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12852 "examining binaries in Windows guests."
12853 msgstr ""
12854
12855 # type: =item
12856 #: ../src/guestfs-actions.pod:4870 ../fish/guestfish-actions.pod:3771
12857 msgid "B"
12858 msgstr ""
12859
12860 # type: textblock
12861 #: ../src/guestfs-actions.pod:4872 ../fish/guestfish-actions.pod:3773
12862 msgid "32-bit big endian such as UCS-4BE."
12863 msgstr ""
12864
12865 # type: =item
12866 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3775
12867 msgid "L"
12868 msgstr ""
12869
12870 # type: textblock
12871 #: ../src/guestfs-actions.pod:4876 ../fish/guestfish-actions.pod:3777
12872 msgid "32-bit little endian such as UCS-4LE."
12873 msgstr ""
12874
12875 # type: textblock
12876 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3781
12877 msgid "The returned strings are transcoded to UTF-8."
12878 msgstr ""
12879
12880 # type: =head2
12881 #: ../src/guestfs-actions.pod:4889
12882 msgid "guestfs_swapoff_device"
12883 msgstr ""
12884
12885 # type: verbatim
12886 #: ../src/guestfs-actions.pod:4891
12887 #, no-wrap
12888 msgid ""
12889 " int guestfs_swapoff_device (guestfs_h *g,\n"
12890 "\t\tconst char *device);\n"
12891 "\n"
12892 msgstr ""
12893
12894 # type: textblock
12895 #: ../src/guestfs-actions.pod:4894
12896 msgid ""
12897 "This command disables the libguestfs appliance swap device or partition "
12898 "named C<device>.  See C<guestfs_swapon_device>."
12899 msgstr ""
12900
12901 # type: =head2
12902 #: ../src/guestfs-actions.pod:4900
12903 msgid "guestfs_swapoff_file"
12904 msgstr ""
12905
12906 # type: verbatim
12907 #: ../src/guestfs-actions.pod:4902
12908 #, no-wrap
12909 msgid ""
12910 " int guestfs_swapoff_file (guestfs_h *g,\n"
12911 "\t\tconst char *file);\n"
12912 "\n"
12913 msgstr ""
12914
12915 # type: textblock
12916 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3798
12917 msgid "This command disables the libguestfs appliance swap on file."
12918 msgstr ""
12919
12920 # type: =head2
12921 #: ../src/guestfs-actions.pod:4909
12922 msgid "guestfs_swapoff_label"
12923 msgstr ""
12924
12925 # type: verbatim
12926 #: ../src/guestfs-actions.pod:4911
12927 #, no-wrap
12928 msgid ""
12929 " int guestfs_swapoff_label (guestfs_h *g,\n"
12930 "\t\tconst char *label);\n"
12931 "\n"
12932 msgstr ""
12933
12934 # type: textblock
12935 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3804
12936 msgid ""
12937 "This command disables the libguestfs appliance swap on labeled swap "
12938 "partition."
12939 msgstr ""
12940
12941 # type: =head2
12942 #: ../src/guestfs-actions.pod:4919
12943 msgid "guestfs_swapoff_uuid"
12944 msgstr ""
12945
12946 # type: verbatim
12947 #: ../src/guestfs-actions.pod:4921
12948 #, no-wrap
12949 msgid ""
12950 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12951 "\t\tconst char *uuid);\n"
12952 "\n"
12953 msgstr ""
12954
12955 # type: textblock
12956 #: ../src/guestfs-actions.pod:4924 ../fish/guestfish-actions.pod:3811
12957 msgid ""
12958 "This command disables the libguestfs appliance swap partition with the given "
12959 "UUID."
12960 msgstr ""
12961
12962 # type: =head2
12963 #: ../src/guestfs-actions.pod:4929
12964 msgid "guestfs_swapon_device"
12965 msgstr ""
12966
12967 # type: verbatim
12968 #: ../src/guestfs-actions.pod:4931
12969 #, no-wrap
12970 msgid ""
12971 " int guestfs_swapon_device (guestfs_h *g,\n"
12972 "\t\tconst char *device);\n"
12973 "\n"
12974 msgstr ""
12975
12976 # type: textblock
12977 #: ../src/guestfs-actions.pod:4934
12978 msgid ""
12979 "This command enables the libguestfs appliance to use the swap device or "
12980 "partition named C<device>.  The increased memory is made available for all "
12981 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12982 msgstr ""
12983
12984 # type: textblock
12985 #: ../src/guestfs-actions.pod:4939 ../fish/guestfish-actions.pod:3823
12986 msgid ""
12987 "Note that you should not swap to existing guest swap partitions unless you "
12988 "know what you are doing.  They may contain hibernation information, or other "
12989 "information that the guest doesn't want you to trash.  You also risk leaking "
12990 "information about the host to the guest this way.  Instead, attach a new "
12991 "host device to the guest and swap on that."
12992 msgstr ""
12993
12994 # type: =head2
12995 #: ../src/guestfs-actions.pod:4948
12996 msgid "guestfs_swapon_file"
12997 msgstr ""
12998
12999 # type: verbatim
13000 #: ../src/guestfs-actions.pod:4950
13001 #, no-wrap
13002 msgid ""
13003 " int guestfs_swapon_file (guestfs_h *g,\n"
13004 "\t\tconst char *file);\n"
13005 "\n"
13006 msgstr ""
13007
13008 # type: textblock
13009 #: ../src/guestfs-actions.pod:4953
13010 msgid ""
13011 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13012 "notes."
13013 msgstr ""
13014
13015 # type: =head2
13016 #: ../src/guestfs-actions.pod:4958
13017 msgid "guestfs_swapon_label"
13018 msgstr ""
13019
13020 # type: verbatim
13021 #: ../src/guestfs-actions.pod:4960
13022 #, no-wrap
13023 msgid ""
13024 " int guestfs_swapon_label (guestfs_h *g,\n"
13025 "\t\tconst char *label);\n"
13026 "\n"
13027 msgstr ""
13028
13029 # type: textblock
13030 #: ../src/guestfs-actions.pod:4963
13031 msgid ""
13032 "This command enables swap to a labeled swap partition.  See "
13033 "C<guestfs_swapon_device> for other notes."
13034 msgstr ""
13035
13036 # type: =head2
13037 #: ../src/guestfs-actions.pod:4968
13038 msgid "guestfs_swapon_uuid"
13039 msgstr ""
13040
13041 # type: verbatim
13042 #: ../src/guestfs-actions.pod:4970
13043 #, no-wrap
13044 msgid ""
13045 " int guestfs_swapon_uuid (guestfs_h *g,\n"
13046 "\t\tconst char *uuid);\n"
13047 "\n"
13048 msgstr ""
13049
13050 # type: textblock
13051 #: ../src/guestfs-actions.pod:4973
13052 msgid ""
13053 "This command enables swap to a swap partition with the given UUID.  See "
13054 "C<guestfs_swapon_device> for other notes."
13055 msgstr ""
13056
13057 # type: =head2
13058 #: ../src/guestfs-actions.pod:4978
13059 msgid "guestfs_sync"
13060 msgstr ""
13061
13062 # type: verbatim
13063 #: ../src/guestfs-actions.pod:4980
13064 #, no-wrap
13065 msgid ""
13066 " int guestfs_sync (guestfs_h *g);\n"
13067 "\n"
13068 msgstr ""
13069
13070 # type: textblock
13071 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3855
13072 msgid ""
13073 "This syncs the disk, so that any writes are flushed through to the "
13074 "underlying disk image."
13075 msgstr ""
13076
13077 # type: textblock
13078 #: ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:3858
13079 msgid ""
13080 "You should always call this if you have modified a disk image, before "
13081 "closing the handle."
13082 msgstr ""
13083
13084 # type: =head2
13085 #: ../src/guestfs-actions.pod:4990
13086 msgid "guestfs_tail"
13087 msgstr ""
13088
13089 # type: verbatim
13090 #: ../src/guestfs-actions.pod:4992
13091 #, no-wrap
13092 msgid ""
13093 " char **guestfs_tail (guestfs_h *g,\n"
13094 "\t\tconst char *path);\n"
13095 "\n"
13096 msgstr ""
13097
13098 # type: textblock
13099 #: ../src/guestfs-actions.pod:4995 ../fish/guestfish-actions.pod:3865
13100 msgid ""
13101 "This command returns up to the last 10 lines of a file as a list of strings."
13102 msgstr ""
13103
13104 # type: =head2
13105 #: ../src/guestfs-actions.pod:5005
13106 msgid "guestfs_tail_n"
13107 msgstr ""
13108
13109 # type: verbatim
13110 #: ../src/guestfs-actions.pod:5007
13111 #, no-wrap
13112 msgid ""
13113 " char **guestfs_tail_n (guestfs_h *g,\n"
13114 "\t\tint nrlines,\n"
13115 "\t\tconst char *path);\n"
13116 "\n"
13117 msgstr ""
13118
13119 # type: textblock
13120 #: ../src/guestfs-actions.pod:5011 ../fish/guestfish-actions.pod:3875
13121 msgid ""
13122 "If the parameter C<nrlines> is a positive number, this returns the last "
13123 "C<nrlines> lines of the file C<path>."
13124 msgstr ""
13125
13126 # type: textblock
13127 #: ../src/guestfs-actions.pod:5014 ../fish/guestfish-actions.pod:3878
13128 msgid ""
13129 "If the parameter C<nrlines> is a negative number, this returns lines from "
13130 "the file C<path>, starting with the C<-nrlines>th line."
13131 msgstr ""
13132
13133 # type: =head2
13134 #: ../src/guestfs-actions.pod:5026
13135 msgid "guestfs_tar_in"
13136 msgstr ""
13137
13138 # type: verbatim
13139 #: ../src/guestfs-actions.pod:5028
13140 #, no-wrap
13141 msgid ""
13142 " int guestfs_tar_in (guestfs_h *g,\n"
13143 "\t\tconst char *tarfile,\n"
13144 "\t\tconst char *directory);\n"
13145 "\n"
13146 msgstr ""
13147
13148 # type: textblock
13149 #: ../src/guestfs-actions.pod:5032 ../fish/guestfish-actions.pod:3890
13150 msgid ""
13151 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13152 "tar file) into C<directory>."
13153 msgstr ""
13154
13155 # type: textblock
13156 #: ../src/guestfs-actions.pod:5035
13157 msgid ""
13158 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13159 msgstr ""
13160
13161 # type: =head2
13162 #: ../src/guestfs-actions.pod:5040
13163 msgid "guestfs_tar_out"
13164 msgstr ""
13165
13166 # type: verbatim
13167 #: ../src/guestfs-actions.pod:5042
13168 #, no-wrap
13169 msgid ""
13170 " int guestfs_tar_out (guestfs_h *g,\n"
13171 "\t\tconst char *directory,\n"
13172 "\t\tconst char *tarfile);\n"
13173 "\n"
13174 msgstr ""
13175
13176 # type: textblock
13177 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3902
13178 msgid ""
13179 "This command packs the contents of C<directory> and downloads it to local "
13180 "file C<tarfile>."
13181 msgstr ""
13182
13183 # type: textblock
13184 #: ../src/guestfs-actions.pod:5049
13185 msgid ""
13186 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13187 "C<guestfs_txz_out>."
13188 msgstr ""
13189
13190 # type: =head2
13191 #: ../src/guestfs-actions.pod:5054
13192 msgid "guestfs_tgz_in"
13193 msgstr ""
13194
13195 # type: verbatim
13196 #: ../src/guestfs-actions.pod:5056
13197 #, no-wrap
13198 msgid ""
13199 " int guestfs_tgz_in (guestfs_h *g,\n"
13200 "\t\tconst char *tarball,\n"
13201 "\t\tconst char *directory);\n"
13202 "\n"
13203 msgstr ""
13204
13205 # type: textblock
13206 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3914
13207 msgid ""
13208 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13209 "tar file) into C<directory>."
13210 msgstr ""
13211
13212 # type: textblock
13213 #: ../src/guestfs-actions.pod:5063
13214 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13215 msgstr ""
13216
13217 # type: =head2
13218 #: ../src/guestfs-actions.pod:5067
13219 msgid "guestfs_tgz_out"
13220 msgstr ""
13221
13222 # type: verbatim
13223 #: ../src/guestfs-actions.pod:5069
13224 #, no-wrap
13225 msgid ""
13226 " int guestfs_tgz_out (guestfs_h *g,\n"
13227 "\t\tconst char *directory,\n"
13228 "\t\tconst char *tarball);\n"
13229 "\n"
13230 msgstr ""
13231
13232 # type: textblock
13233 #: ../src/guestfs-actions.pod:5073 ../fish/guestfish-actions.pod:3925
13234 msgid ""
13235 "This command packs the contents of C<directory> and downloads it to local "
13236 "file C<tarball>."
13237 msgstr ""
13238
13239 # type: textblock
13240 #: ../src/guestfs-actions.pod:5076
13241 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13242 msgstr ""
13243
13244 # type: =head2
13245 #: ../src/guestfs-actions.pod:5080
13246 msgid "guestfs_touch"
13247 msgstr ""
13248
13249 # type: verbatim
13250 #: ../src/guestfs-actions.pod:5082
13251 #, no-wrap
13252 msgid ""
13253 " int guestfs_touch (guestfs_h *g,\n"
13254 "\t\tconst char *path);\n"
13255 "\n"
13256 msgstr ""
13257
13258 # type: textblock
13259 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3936
13260 msgid ""
13261 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13262 "timestamps on a file, or, if the file does not exist, to create a new zero-"
13263 "length file."
13264 msgstr ""
13265
13266 # type: textblock
13267 #: ../src/guestfs-actions.pod:5089 ../fish/guestfish-actions.pod:3940
13268 msgid ""
13269 "This command only works on regular files, and will fail on other file types "
13270 "such as directories, symbolic links, block special etc."
13271 msgstr ""
13272
13273 # type: =head2
13274 #: ../src/guestfs-actions.pod:5094
13275 msgid "guestfs_truncate"
13276 msgstr ""
13277
13278 # type: verbatim
13279 #: ../src/guestfs-actions.pod:5096
13280 #, no-wrap
13281 msgid ""
13282 " int guestfs_truncate (guestfs_h *g,\n"
13283 "\t\tconst char *path);\n"
13284 "\n"
13285 msgstr ""
13286
13287 # type: textblock
13288 #: ../src/guestfs-actions.pod:5099 ../fish/guestfish-actions.pod:3947
13289 msgid ""
13290 "This command truncates C<path> to a zero-length file.  The file must exist "
13291 "already."
13292 msgstr ""
13293
13294 # type: =head2
13295 #: ../src/guestfs-actions.pod:5104
13296 msgid "guestfs_truncate_size"
13297 msgstr ""
13298
13299 # type: verbatim
13300 #: ../src/guestfs-actions.pod:5106
13301 #, no-wrap
13302 msgid ""
13303 " int guestfs_truncate_size (guestfs_h *g,\n"
13304 "\t\tconst char *path,\n"
13305 "\t\tint64_t size);\n"
13306 "\n"
13307 msgstr ""
13308
13309 # type: textblock
13310 #: ../src/guestfs-actions.pod:5110 ../fish/guestfish-actions.pod:3954
13311 msgid ""
13312 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13313 "already."
13314 msgstr ""
13315
13316 # type: textblock
13317 #: ../src/guestfs-actions.pod:5113
13318 msgid ""
13319 "If the current file size is less than C<size> then the file is extended to "
13320 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13321 "blocks are not allocated for the file until you write to it).  To create a "
13322 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13323 msgstr ""
13324
13325 # type: =head2
13326 #: ../src/guestfs-actions.pod:5121
13327 msgid "guestfs_tune2fs_l"
13328 msgstr ""
13329
13330 # type: verbatim
13331 #: ../src/guestfs-actions.pod:5123
13332 #, no-wrap
13333 msgid ""
13334 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
13335 "\t\tconst char *device);\n"
13336 "\n"
13337 msgstr ""
13338
13339 # type: textblock
13340 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3967
13341 msgid ""
13342 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13343 "C<device>."
13344 msgstr ""
13345
13346 # type: textblock
13347 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3970
13348 msgid ""
13349 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13350 "for more details.  The list of fields returned isn't clearly defined, and "
13351 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13352 "and the filesystem itself."
13353 msgstr ""
13354
13355 # type: =head2
13356 #: ../src/guestfs-actions.pod:5140
13357 msgid "guestfs_txz_in"
13358 msgstr ""
13359
13360 # type: verbatim
13361 #: ../src/guestfs-actions.pod:5142
13362 #, no-wrap
13363 msgid ""
13364 " int guestfs_txz_in (guestfs_h *g,\n"
13365 "\t\tconst char *tarball,\n"
13366 "\t\tconst char *directory);\n"
13367 "\n"
13368 msgstr ""
13369
13370 # type: textblock
13371 #: ../src/guestfs-actions.pod:5146 ../fish/guestfish-actions.pod:3979
13372 msgid ""
13373 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13374 "tar file) into C<directory>."
13375 msgstr ""
13376
13377 # type: =head2
13378 #: ../src/guestfs-actions.pod:5151
13379 msgid "guestfs_txz_out"
13380 msgstr ""
13381
13382 # type: verbatim
13383 #: ../src/guestfs-actions.pod:5153
13384 #, no-wrap
13385 msgid ""
13386 " int guestfs_txz_out (guestfs_h *g,\n"
13387 "\t\tconst char *directory,\n"
13388 "\t\tconst char *tarball);\n"
13389 "\n"
13390 msgstr ""
13391
13392 # type: textblock
13393 #: ../src/guestfs-actions.pod:5157 ../fish/guestfish-actions.pod:3988
13394 msgid ""
13395 "This command packs the contents of C<directory> and downloads it to local "
13396 "file C<tarball> (as an xz compressed tar archive)."
13397 msgstr ""
13398
13399 # type: =head2
13400 #: ../src/guestfs-actions.pod:5162
13401 msgid "guestfs_umask"
13402 msgstr ""
13403
13404 # type: verbatim
13405 #: ../src/guestfs-actions.pod:5164
13406 #, no-wrap
13407 msgid ""
13408 " int guestfs_umask (guestfs_h *g,\n"
13409 "\t\tint mask);\n"
13410 "\n"
13411 msgstr ""
13412
13413 # type: textblock
13414 #: ../src/guestfs-actions.pod:5167 ../fish/guestfish-actions.pod:3997
13415 msgid ""
13416 "This function sets the mask used for creating new files and device nodes to "
13417 "C<mask & 0777>."
13418 msgstr ""
13419
13420 # type: textblock
13421 #: ../src/guestfs-actions.pod:5170 ../fish/guestfish-actions.pod:4000
13422 msgid ""
13423 "Typical umask values would be C<022> which creates new files with "
13424 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13425 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13426 msgstr ""
13427
13428 # type: textblock
13429 #: ../src/guestfs-actions.pod:5175 ../fish/guestfish-actions.pod:4005
13430 msgid ""
13431 "The default umask is C<022>.  This is important because it means that "
13432 "directories and device nodes will be created with C<0644> or C<0755> mode "
13433 "even if you specify C<0777>."
13434 msgstr ""
13435
13436 # type: textblock
13437 #: ../src/guestfs-actions.pod:5179
13438 msgid ""
13439 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13440 "C<guestfs_mkdir>."
13441 msgstr ""
13442
13443 # type: textblock
13444 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:4012
13445 msgid "This call returns the previous umask."
13446 msgstr ""
13447
13448 # type: =head2
13449 #: ../src/guestfs-actions.pod:5186
13450 msgid "guestfs_umount"
13451 msgstr ""
13452
13453 # type: verbatim
13454 #: ../src/guestfs-actions.pod:5188
13455 #, no-wrap
13456 msgid ""
13457 " int guestfs_umount (guestfs_h *g,\n"
13458 "\t\tconst char *pathordevice);\n"
13459 "\n"
13460 msgstr ""
13461
13462 # type: textblock
13463 #: ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:4020
13464 msgid ""
13465 "This unmounts the given filesystem.  The filesystem may be specified either "
13466 "by its mountpoint (path) or the device which contains the filesystem."
13467 msgstr ""
13468
13469 # type: =head2
13470 #: ../src/guestfs-actions.pod:5197
13471 msgid "guestfs_umount_all"
13472 msgstr ""
13473
13474 # type: verbatim
13475 #: ../src/guestfs-actions.pod:5199
13476 #, no-wrap
13477 msgid ""
13478 " int guestfs_umount_all (guestfs_h *g);\n"
13479 "\n"
13480 msgstr ""
13481
13482 # type: textblock
13483 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:4030
13484 msgid "This unmounts all mounted filesystems."
13485 msgstr ""
13486
13487 # type: textblock
13488 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:4032
13489 msgid "Some internal mounts are not unmounted by this call."
13490 msgstr ""
13491
13492 # type: =head2
13493 #: ../src/guestfs-actions.pod:5207
13494 msgid "guestfs_upload"
13495 msgstr ""
13496
13497 # type: verbatim
13498 #: ../src/guestfs-actions.pod:5209
13499 #, no-wrap
13500 msgid ""
13501 " int guestfs_upload (guestfs_h *g,\n"
13502 "\t\tconst char *filename,\n"
13503 "\t\tconst char *remotefilename);\n"
13504 "\n"
13505 msgstr ""
13506
13507 # type: textblock
13508 #: ../src/guestfs-actions.pod:5213 ../src/guestfs-actions.pod:5229
13509 #: ../fish/guestfish-actions.pod:4038 ../fish/guestfish-actions.pod:4051
13510 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13511 msgstr ""
13512
13513 # type: textblock
13514 #: ../src/guestfs-actions.pod:5218
13515 msgid "See also C<guestfs_download>."
13516 msgstr ""
13517
13518 # type: =head2
13519 #: ../src/guestfs-actions.pod:5222
13520 msgid "guestfs_upload_offset"
13521 msgstr ""
13522
13523 # type: verbatim
13524 #: ../src/guestfs-actions.pod:5224
13525 #, no-wrap
13526 msgid ""
13527 " int guestfs_upload_offset (guestfs_h *g,\n"
13528 "\t\tconst char *filename,\n"
13529 "\t\tconst char *remotefilename,\n"
13530 "\t\tint64_t offset);\n"
13531 "\n"
13532 msgstr ""
13533
13534 # type: textblock
13535 #: ../src/guestfs-actions.pod:5232 ../fish/guestfish-actions.pod:4054
13536 msgid ""
13537 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13538 "The intention is to overwrite parts of existing files or devices, although "
13539 "if a non-existant file is specified then it is created with a \"hole\" "
13540 "before C<offset>.  The size of the data written is implicit in the size of "
13541 "the source C<filename>."
13542 msgstr ""
13543
13544 # type: textblock
13545 #: ../src/guestfs-actions.pod:5239
13546 msgid ""
13547 "Note that there is no limit on the amount of data that can be uploaded with "
13548 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13549 "full amount unless an error occurs."
13550 msgstr ""
13551
13552 # type: textblock
13553 #: ../src/guestfs-actions.pod:5244
13554 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13555 msgstr ""
13556
13557 # type: =head2
13558 #: ../src/guestfs-actions.pod:5248
13559 msgid "guestfs_utimens"
13560 msgstr ""
13561
13562 # type: verbatim
13563 #: ../src/guestfs-actions.pod:5250
13564 #, no-wrap
13565 msgid ""
13566 " int guestfs_utimens (guestfs_h *g,\n"
13567 "\t\tconst char *path,\n"
13568 "\t\tint64_t atsecs,\n"
13569 "\t\tint64_t atnsecs,\n"
13570 "\t\tint64_t mtsecs,\n"
13571 "\t\tint64_t mtnsecs);\n"
13572 "\n"
13573 msgstr ""
13574
13575 # type: textblock
13576 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:4074
13577 msgid "This command sets the timestamps of a file with nanosecond precision."
13578 msgstr ""
13579
13580 # type: textblock
13581 #: ../src/guestfs-actions.pod:5260 ../fish/guestfish-actions.pod:4077
13582 msgid ""
13583 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13584 "from the epoch."
13585 msgstr ""
13586
13587 # type: textblock
13588 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:4080
13589 msgid ""
13590 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13591 "nanoseconds from the epoch."
13592 msgstr ""
13593
13594 # type: textblock
13595 #: ../src/guestfs-actions.pod:5266 ../fish/guestfish-actions.pod:4083
13596 msgid ""
13597 "If the C<*nsecs> field contains the special value C<-1> then the "
13598 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13599 "ignored in this case)."
13600 msgstr ""
13601
13602 # type: textblock
13603 #: ../src/guestfs-actions.pod:5270 ../fish/guestfish-actions.pod:4087
13604 msgid ""
13605 "If the C<*nsecs> field contains the special value C<-2> then the "
13606 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13607 "in this case)."
13608 msgstr ""
13609
13610 # type: =head2
13611 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-structs.pod:175
13612 msgid "guestfs_version"
13613 msgstr ""
13614
13615 # type: verbatim
13616 #: ../src/guestfs-actions.pod:5278
13617 #, no-wrap
13618 msgid ""
13619 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
13620 "\n"
13621 msgstr ""
13622
13623 # type: textblock
13624 #: ../src/guestfs-actions.pod:5280 ../fish/guestfish-actions.pod:4095
13625 msgid ""
13626 "Return the libguestfs version number that the program is linked against."
13627 msgstr ""
13628
13629 # type: textblock
13630 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:4098
13631 msgid ""
13632 "Note that because of dynamic linking this is not necessarily the version of "
13633 "libguestfs that you compiled against.  You can compile the program, and then "
13634 "at runtime dynamically link against a completely different C<libguestfs.so> "
13635 "library."
13636 msgstr ""
13637
13638 # type: textblock
13639 #: ../src/guestfs-actions.pod:5288 ../fish/guestfish-actions.pod:4103
13640 msgid ""
13641 "This call was added in version C<1.0.58>.  In previous versions of "
13642 "libguestfs there was no way to get the version number.  From C code you can "
13643 "use dynamic linker functions to find out if this symbol exists (if it "
13644 "doesn't, then it's an earlier version)."
13645 msgstr ""
13646
13647 # type: textblock
13648 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:4109
13649 msgid ""
13650 "The call returns a structure with four elements.  The first three (C<major>, "
13651 "C<minor> and C<release>) are numbers and correspond to the usual version "
13652 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13653 "but may be used for distro-specific information."
13654 msgstr ""
13655
13656 # type: textblock
13657 #: ../src/guestfs-actions.pod:5300 ../fish/guestfish-actions.pod:4115
13658 msgid ""
13659 "To construct the original version string: C<$major.$minor.$release$extra>"
13660 msgstr ""
13661
13662 # type: textblock
13663 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:4118
13664 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13665 msgstr ""
13666
13667 # type: textblock
13668 #: ../src/guestfs-actions.pod:5305
13669 msgid ""
13670 "I<Note:> Don't use this call to test for availability of features.  In "
13671 "enterprise distributions we backport features from later versions into "
13672 "earlier versions, making this an unreliable way to test for features.  Use "
13673 "C<guestfs_available> instead."
13674 msgstr ""
13675
13676 # type: textblock
13677 #: ../src/guestfs-actions.pod:5311
13678 msgid ""
13679 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13680 "error.  I<The caller must call C<guestfs_free_version> after use>."
13681 msgstr ""
13682
13683 # type: =head2
13684 #: ../src/guestfs-actions.pod:5315
13685 msgid "guestfs_vfs_label"
13686 msgstr ""
13687
13688 # type: verbatim
13689 #: ../src/guestfs-actions.pod:5317
13690 #, no-wrap
13691 msgid ""
13692 " char *guestfs_vfs_label (guestfs_h *g,\n"
13693 "\t\tconst char *device);\n"
13694 "\n"
13695 msgstr ""
13696
13697 # type: textblock
13698 #: ../src/guestfs-actions.pod:5320 ../fish/guestfish-actions.pod:4130
13699 msgid "This returns the filesystem label of the filesystem on C<device>."
13700 msgstr ""
13701
13702 # type: textblock
13703 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:4133
13704 msgid "If the filesystem is unlabeled, this returns the empty string."
13705 msgstr ""
13706
13707 # type: textblock
13708 #: ../src/guestfs-actions.pod:5325
13709 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13710 msgstr ""
13711
13712 # type: =head2
13713 #: ../src/guestfs-actions.pod:5330
13714 msgid "guestfs_vfs_type"
13715 msgstr ""
13716
13717 # type: verbatim
13718 #: ../src/guestfs-actions.pod:5332
13719 #, no-wrap
13720 msgid ""
13721 " char *guestfs_vfs_type (guestfs_h *g,\n"
13722 "\t\tconst char *device);\n"
13723 "\n"
13724 msgstr ""
13725
13726 # type: textblock
13727 #: ../src/guestfs-actions.pod:5335 ../fish/guestfish-actions.pod:4141
13728 msgid ""
13729 "This command gets the filesystem type corresponding to the filesystem on "
13730 "C<device>."
13731 msgstr ""
13732
13733 # type: textblock
13734 #: ../src/guestfs-actions.pod:5338 ../fish/guestfish-actions.pod:4144
13735 msgid ""
13736 "For most filesystems, the result is the name of the Linux VFS module which "
13737 "would be used to mount this filesystem if you mounted it without specifying "
13738 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13739 msgstr ""
13740
13741 # type: =head2
13742 #: ../src/guestfs-actions.pod:5346
13743 msgid "guestfs_vfs_uuid"
13744 msgstr ""
13745
13746 # type: verbatim
13747 #: ../src/guestfs-actions.pod:5348
13748 #, no-wrap
13749 msgid ""
13750 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13751 "\t\tconst char *device);\n"
13752 "\n"
13753 msgstr ""
13754
13755 # type: textblock
13756 #: ../src/guestfs-actions.pod:5351 ../fish/guestfish-actions.pod:4153
13757 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13758 msgstr ""
13759
13760 # type: textblock
13761 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:4156
13762 msgid "If the filesystem does not have a UUID, this returns the empty string."
13763 msgstr ""
13764
13765 # type: textblock
13766 #: ../src/guestfs-actions.pod:5356
13767 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13768 msgstr ""
13769
13770 # type: =head2
13771 #: ../src/guestfs-actions.pod:5361
13772 msgid "guestfs_vg_activate"
13773 msgstr ""
13774
13775 # type: verbatim
13776 #: ../src/guestfs-actions.pod:5363
13777 #, no-wrap
13778 msgid ""
13779 " int guestfs_vg_activate (guestfs_h *g,\n"
13780 "\t\tint activate,\n"
13781 "\t\tchar *const *volgroups);\n"
13782 "\n"
13783 msgstr ""
13784
13785 # type: textblock
13786 #: ../src/guestfs-actions.pod:5367 ../fish/guestfish-actions.pod:4164
13787 msgid ""
13788 "This command activates or (if C<activate> is false) deactivates all logical "
13789 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13790 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13791 "deactivated, then those devices disappear."
13792 msgstr ""
13793
13794 # type: textblock
13795 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:4170
13796 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13797 msgstr ""
13798
13799 # type: textblock
13800 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:4172
13801 msgid ""
13802 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13803 "activated or deactivated."
13804 msgstr ""
13805
13806 # type: =head2
13807 #: ../src/guestfs-actions.pod:5380
13808 msgid "guestfs_vg_activate_all"
13809 msgstr ""
13810
13811 # type: verbatim
13812 #: ../src/guestfs-actions.pod:5382
13813 #, no-wrap
13814 msgid ""
13815 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13816 "\t\tint activate);\n"
13817 "\n"
13818 msgstr ""
13819
13820 # type: textblock
13821 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:4179
13822 msgid ""
13823 "This command activates or (if C<activate> is false) deactivates all logical "
13824 "volumes in all volume groups.  If activated, then they are made known to the "
13825 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13826 "those devices disappear."
13827 msgstr ""
13828
13829 # type: textblock
13830 #: ../src/guestfs-actions.pod:5391 ../fish/guestfish-actions.pod:4185
13831 msgid "This command is the same as running C<vgchange -a y|n>"
13832 msgstr ""
13833
13834 # type: =head2
13835 #: ../src/guestfs-actions.pod:5395
13836 msgid "guestfs_vgcreate"
13837 msgstr ""
13838
13839 # type: verbatim
13840 #: ../src/guestfs-actions.pod:5397
13841 #, no-wrap
13842 msgid ""
13843 " int guestfs_vgcreate (guestfs_h *g,\n"
13844 "\t\tconst char *volgroup,\n"
13845 "\t\tchar *const *physvols);\n"
13846 "\n"
13847 msgstr ""
13848
13849 # type: textblock
13850 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:4191
13851 msgid ""
13852 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13853 "of physical volumes C<physvols>."
13854 msgstr ""
13855
13856 # type: =head2
13857 #: ../src/guestfs-actions.pod:5406
13858 msgid "guestfs_vglvuuids"
13859 msgstr ""
13860
13861 # type: verbatim
13862 #: ../src/guestfs-actions.pod:5408
13863 #, no-wrap
13864 msgid ""
13865 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13866 "\t\tconst char *vgname);\n"
13867 "\n"
13868 msgstr ""
13869
13870 # type: textblock
13871 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:4198
13872 msgid ""
13873 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13874 "volumes created in this volume group."
13875 msgstr ""
13876
13877 # type: textblock
13878 #: ../src/guestfs-actions.pod:5414
13879 msgid ""
13880 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13881 "associate logical volumes and volume groups."
13882 msgstr ""
13883
13884 # type: textblock
13885 #: ../src/guestfs-actions.pod:5417
13886 msgid "See also C<guestfs_vgpvuuids>."
13887 msgstr ""
13888
13889 # type: =head2
13890 #: ../src/guestfs-actions.pod:5423
13891 msgid "guestfs_vgpvuuids"
13892 msgstr ""
13893
13894 # type: verbatim
13895 #: ../src/guestfs-actions.pod:5425
13896 #, no-wrap
13897 msgid ""
13898 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13899 "\t\tconst char *vgname);\n"
13900 "\n"
13901 msgstr ""
13902
13903 # type: textblock
13904 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:4210
13905 msgid ""
13906 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13907 "volumes that this volume group resides on."
13908 msgstr ""
13909
13910 # type: textblock
13911 #: ../src/guestfs-actions.pod:5431
13912 msgid ""
13913 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13914 "associate physical volumes and volume groups."
13915 msgstr ""
13916
13917 # type: textblock
13918 #: ../src/guestfs-actions.pod:5434
13919 msgid "See also C<guestfs_vglvuuids>."
13920 msgstr ""
13921
13922 # type: =head2
13923 #: ../src/guestfs-actions.pod:5440
13924 msgid "guestfs_vgremove"
13925 msgstr ""
13926
13927 # type: verbatim
13928 #: ../src/guestfs-actions.pod:5442
13929 #, no-wrap
13930 msgid ""
13931 " int guestfs_vgremove (guestfs_h *g,\n"
13932 "\t\tconst char *vgname);\n"
13933 "\n"
13934 msgstr ""
13935
13936 # type: textblock
13937 #: ../src/guestfs-actions.pod:5445 ../fish/guestfish-actions.pod:4222
13938 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13939 msgstr ""
13940
13941 # type: textblock
13942 #: ../src/guestfs-actions.pod:5447 ../fish/guestfish-actions.pod:4224
13943 msgid ""
13944 "This also forcibly removes all logical volumes in the volume group (if any)."
13945 msgstr ""
13946
13947 # type: =head2
13948 #: ../src/guestfs-actions.pod:5452
13949 msgid "guestfs_vgrename"
13950 msgstr ""
13951
13952 # type: verbatim
13953 #: ../src/guestfs-actions.pod:5454
13954 #, no-wrap
13955 msgid ""
13956 " int guestfs_vgrename (guestfs_h *g,\n"
13957 "\t\tconst char *volgroup,\n"
13958 "\t\tconst char *newvolgroup);\n"
13959 "\n"
13960 msgstr ""
13961
13962 # type: textblock
13963 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:4231
13964 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13965 msgstr ""
13966
13967 # type: =head2
13968 #: ../src/guestfs-actions.pod:5462
13969 msgid "guestfs_vgs"
13970 msgstr ""
13971
13972 # type: verbatim
13973 #: ../src/guestfs-actions.pod:5464
13974 #, no-wrap
13975 msgid ""
13976 " char **guestfs_vgs (guestfs_h *g);\n"
13977 "\n"
13978 msgstr ""
13979
13980 # type: textblock
13981 #: ../src/guestfs-actions.pod:5466 ../fish/guestfish-actions.pod:4237
13982 msgid ""
13983 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
13984 "> command."
13985 msgstr ""
13986
13987 # type: textblock
13988 #: ../src/guestfs-actions.pod:5469 ../fish/guestfish-actions.pod:4240
13989 msgid ""
13990 "This returns a list of just the volume group names that were detected (eg. "
13991 "C<VolGroup00>)."
13992 msgstr ""
13993
13994 # type: textblock
13995 #: ../src/guestfs-actions.pod:5472
13996 msgid "See also C<guestfs_vgs_full>."
13997 msgstr ""
13998
13999 # type: =head2
14000 #: ../src/guestfs-actions.pod:5478
14001 msgid "guestfs_vgs_full"
14002 msgstr ""
14003
14004 # type: verbatim
14005 #: ../src/guestfs-actions.pod:5480
14006 #, no-wrap
14007 msgid ""
14008 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
14009 "\n"
14010 msgstr ""
14011
14012 # type: textblock
14013 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:4249
14014 msgid ""
14015 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14016 "> command.  The \"full\" version includes all fields."
14017 msgstr ""
14018
14019 # type: textblock
14020 #: ../src/guestfs-actions.pod:5485
14021 msgid ""
14022 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
14023 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
14024 "C<guestfs_free_lvm_vg_list> after use>."
14025 msgstr ""
14026
14027 # type: =head2
14028 #: ../src/guestfs-actions.pod:5490
14029 msgid "guestfs_vgscan"
14030 msgstr ""
14031
14032 # type: verbatim
14033 #: ../src/guestfs-actions.pod:5492
14034 #, no-wrap
14035 msgid ""
14036 " int guestfs_vgscan (guestfs_h *g);\n"
14037 "\n"
14038 msgstr ""
14039
14040 # type: textblock
14041 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:4256
14042 msgid ""
14043 "This rescans all block devices and rebuilds the list of LVM physical "
14044 "volumes, volume groups and logical volumes."
14045 msgstr ""
14046
14047 # type: =head2
14048 #: ../src/guestfs-actions.pod:5499
14049 msgid "guestfs_vguuid"
14050 msgstr ""
14051
14052 # type: verbatim
14053 #: ../src/guestfs-actions.pod:5501
14054 #, no-wrap
14055 msgid ""
14056 " char *guestfs_vguuid (guestfs_h *g,\n"
14057 "\t\tconst char *vgname);\n"
14058 "\n"
14059 msgstr ""
14060
14061 # type: textblock
14062 #: ../src/guestfs-actions.pod:5504 ../fish/guestfish-actions.pod:4263
14063 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14064 msgstr ""
14065
14066 # type: =head2
14067 #: ../src/guestfs-actions.pod:5509
14068 msgid "guestfs_wait_ready"
14069 msgstr ""
14070
14071 # type: verbatim
14072 #: ../src/guestfs-actions.pod:5511
14073 #, no-wrap
14074 msgid ""
14075 " int guestfs_wait_ready (guestfs_h *g);\n"
14076 "\n"
14077 msgstr ""
14078
14079 # type: textblock
14080 #: ../src/guestfs-actions.pod:5513
14081 msgid "This function is a no op."
14082 msgstr ""
14083
14084 # type: textblock
14085 #: ../src/guestfs-actions.pod:5515
14086 msgid ""
14087 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14088 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14089 "is no longer necessary because C<guestfs_launch> now does the waiting."
14090 msgstr ""
14091
14092 # type: textblock
14093 #: ../src/guestfs-actions.pod:5520
14094 msgid ""
14095 "If you see any calls to this function in code then you can just remove them, "
14096 "unless you want to retain compatibility with older versions of the API."
14097 msgstr ""
14098
14099 # type: =head2
14100 #: ../src/guestfs-actions.pod:5526
14101 msgid "guestfs_wc_c"
14102 msgstr ""
14103
14104 # type: verbatim
14105 #: ../src/guestfs-actions.pod:5528
14106 #, no-wrap
14107 msgid ""
14108 " int guestfs_wc_c (guestfs_h *g,\n"
14109 "\t\tconst char *path);\n"
14110 "\n"
14111 msgstr ""
14112
14113 # type: textblock
14114 #: ../src/guestfs-actions.pod:5531 ../fish/guestfish-actions.pod:4269
14115 msgid ""
14116 "This command counts the characters in a file, using the C<wc -c> external "
14117 "command."
14118 msgstr ""
14119
14120 # type: =head2
14121 #: ../src/guestfs-actions.pod:5536
14122 msgid "guestfs_wc_l"
14123 msgstr ""
14124
14125 # type: verbatim
14126 #: ../src/guestfs-actions.pod:5538
14127 #, no-wrap
14128 msgid ""
14129 " int guestfs_wc_l (guestfs_h *g,\n"
14130 "\t\tconst char *path);\n"
14131 "\n"
14132 msgstr ""
14133
14134 # type: textblock
14135 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:4276
14136 msgid ""
14137 "This command counts the lines in a file, using the C<wc -l> external command."
14138 msgstr ""
14139
14140 # type: =head2
14141 #: ../src/guestfs-actions.pod:5546
14142 msgid "guestfs_wc_w"
14143 msgstr ""
14144
14145 # type: verbatim
14146 #: ../src/guestfs-actions.pod:5548
14147 #, no-wrap
14148 msgid ""
14149 " int guestfs_wc_w (guestfs_h *g,\n"
14150 "\t\tconst char *path);\n"
14151 "\n"
14152 msgstr ""
14153
14154 # type: textblock
14155 #: ../src/guestfs-actions.pod:5551 ../fish/guestfish-actions.pod:4283
14156 msgid ""
14157 "This command counts the words in a file, using the C<wc -w> external command."
14158 msgstr ""
14159
14160 # type: =head2
14161 #: ../src/guestfs-actions.pod:5556
14162 msgid "guestfs_write"
14163 msgstr ""
14164
14165 # type: verbatim
14166 #: ../src/guestfs-actions.pod:5558
14167 #, no-wrap
14168 msgid ""
14169 " int guestfs_write (guestfs_h *g,\n"
14170 "\t\tconst char *path,\n"
14171 "\t\tconst char *content,\n"
14172 "\t\tsize_t content_size);\n"
14173 "\n"
14174 msgstr ""
14175
14176 # type: textblock
14177 #: ../src/guestfs-actions.pod:5563 ../fish/guestfish-actions.pod:4290
14178 msgid ""
14179 "This call creates a file called C<path>.  The content of the file is the "
14180 "string C<content> (which can contain any 8 bit data)."
14181 msgstr ""
14182
14183 # type: =head2
14184 #: ../src/guestfs-actions.pod:5571
14185 msgid "guestfs_write_file"
14186 msgstr ""
14187
14188 # type: verbatim
14189 #: ../src/guestfs-actions.pod:5573
14190 #, no-wrap
14191 msgid ""
14192 " int guestfs_write_file (guestfs_h *g,\n"
14193 "\t\tconst char *path,\n"
14194 "\t\tconst char *content,\n"
14195 "\t\tint size);\n"
14196 "\n"
14197 msgstr ""
14198
14199 # type: textblock
14200 #: ../src/guestfs-actions.pod:5578 ../fish/guestfish-actions.pod:4300
14201 msgid ""
14202 "This call creates a file called C<path>.  The contents of the file is the "
14203 "string C<content> (which can contain any 8 bit data), with length C<size>."
14204 msgstr ""
14205
14206 # type: textblock
14207 #: ../src/guestfs-actions.pod:5582 ../fish/guestfish-actions.pod:4304
14208 msgid ""
14209 "As a special case, if C<size> is C<0> then the length is calculated using "
14210 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14211 msgstr ""
14212
14213 # type: textblock
14214 #: ../src/guestfs-actions.pod:5586 ../fish/guestfish-actions.pod:4308
14215 msgid ""
14216 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14217 "I<not> work, even if the length is specified."
14218 msgstr ""
14219
14220 # type: textblock
14221 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:4314
14222 msgid ""
14223 "This function is deprecated.  In new code, use the C<write> call instead."
14224 msgstr ""
14225
14226 # type: =head2
14227 #: ../src/guestfs-actions.pod:5601
14228 msgid "guestfs_zegrep"
14229 msgstr ""
14230
14231 # type: verbatim
14232 #: ../src/guestfs-actions.pod:5603
14233 #, no-wrap
14234 msgid ""
14235 " char **guestfs_zegrep (guestfs_h *g,\n"
14236 "\t\tconst char *regex,\n"
14237 "\t\tconst char *path);\n"
14238 "\n"
14239 msgstr ""
14240
14241 # type: textblock
14242 #: ../src/guestfs-actions.pod:5607 ../fish/guestfish-actions.pod:4325
14243 msgid ""
14244 "This calls the external C<zegrep> program and returns the matching lines."
14245 msgstr ""
14246
14247 # type: =head2
14248 #: ../src/guestfs-actions.pod:5617
14249 msgid "guestfs_zegrepi"
14250 msgstr ""
14251
14252 # type: verbatim
14253 #: ../src/guestfs-actions.pod:5619
14254 #, no-wrap
14255 msgid ""
14256 " char **guestfs_zegrepi (guestfs_h *g,\n"
14257 "\t\tconst char *regex,\n"
14258 "\t\tconst char *path);\n"
14259 "\n"
14260 msgstr ""
14261
14262 # type: textblock
14263 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:4335
14264 msgid ""
14265 "This calls the external C<zegrep -i> program and returns the matching lines."
14266 msgstr ""
14267
14268 # type: =head2
14269 #: ../src/guestfs-actions.pod:5633
14270 msgid "guestfs_zero"
14271 msgstr ""
14272
14273 # type: verbatim
14274 #: ../src/guestfs-actions.pod:5635
14275 #, no-wrap
14276 msgid ""
14277 " int guestfs_zero (guestfs_h *g,\n"
14278 "\t\tconst char *device);\n"
14279 "\n"
14280 msgstr ""
14281
14282 # type: textblock
14283 #: ../src/guestfs-actions.pod:5638 ../fish/guestfish-actions.pod:4345
14284 msgid "This command writes zeroes over the first few blocks of C<device>."
14285 msgstr ""
14286
14287 # type: textblock
14288 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:4347
14289 msgid ""
14290 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14291 "securely wipe the device).  It should be sufficient to remove any partition "
14292 "tables, filesystem superblocks and so on."
14293 msgstr ""
14294
14295 # type: textblock
14296 #: ../src/guestfs-actions.pod:5644
14297 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14298 msgstr ""
14299
14300 # type: =head2
14301 #: ../src/guestfs-actions.pod:5653
14302 msgid "guestfs_zero_device"
14303 msgstr ""
14304
14305 # type: verbatim
14306 #: ../src/guestfs-actions.pod:5655
14307 #, no-wrap
14308 msgid ""
14309 " int guestfs_zero_device (guestfs_h *g,\n"
14310 "\t\tconst char *device);\n"
14311 "\n"
14312 msgstr ""
14313
14314 # type: textblock
14315 #: ../src/guestfs-actions.pod:5658
14316 msgid ""
14317 "This command writes zeroes over the entire C<device>.  Compare with "
14318 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14319 msgstr ""
14320
14321 # type: =head2
14322 #: ../src/guestfs-actions.pod:5672
14323 msgid "guestfs_zerofree"
14324 msgstr ""
14325
14326 # type: verbatim
14327 #: ../src/guestfs-actions.pod:5674
14328 #, no-wrap
14329 msgid ""
14330 " int guestfs_zerofree (guestfs_h *g,\n"
14331 "\t\tconst char *device);\n"
14332 "\n"
14333 msgstr ""
14334
14335 # type: textblock
14336 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:4368
14337 msgid ""
14338 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14339 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14340 "possible to compress the filesystem more effectively."
14341 msgstr ""
14342
14343 # type: textblock
14344 #: ../src/guestfs-actions.pod:5682 ../fish/guestfish-actions.pod:4373
14345 msgid "You should B<not> run this program if the filesystem is mounted."
14346 msgstr ""
14347
14348 # type: textblock
14349 #: ../src/guestfs-actions.pod:5685 ../fish/guestfish-actions.pod:4376
14350 msgid ""
14351 "It is possible that using this program can damage the filesystem or data on "
14352 "the filesystem."
14353 msgstr ""
14354
14355 # type: =head2
14356 #: ../src/guestfs-actions.pod:5690
14357 msgid "guestfs_zfgrep"
14358 msgstr ""
14359
14360 # type: verbatim
14361 #: ../src/guestfs-actions.pod:5692
14362 #, no-wrap
14363 msgid ""
14364 " char **guestfs_zfgrep (guestfs_h *g,\n"
14365 "\t\tconst char *pattern,\n"
14366 "\t\tconst char *path);\n"
14367 "\n"
14368 msgstr ""
14369
14370 # type: textblock
14371 #: ../src/guestfs-actions.pod:5696 ../fish/guestfish-actions.pod:4383
14372 msgid ""
14373 "This calls the external C<zfgrep> program and returns the matching lines."
14374 msgstr ""
14375
14376 # type: =head2
14377 #: ../src/guestfs-actions.pod:5706
14378 msgid "guestfs_zfgrepi"
14379 msgstr ""
14380
14381 # type: verbatim
14382 #: ../src/guestfs-actions.pod:5708
14383 #, no-wrap
14384 msgid ""
14385 " char **guestfs_zfgrepi (guestfs_h *g,\n"
14386 "\t\tconst char *pattern,\n"
14387 "\t\tconst char *path);\n"
14388 "\n"
14389 msgstr ""
14390
14391 # type: textblock
14392 #: ../src/guestfs-actions.pod:5712 ../fish/guestfish-actions.pod:4393
14393 msgid ""
14394 "This calls the external C<zfgrep -i> program and returns the matching lines."
14395 msgstr ""
14396
14397 # type: =head2
14398 #: ../src/guestfs-actions.pod:5722
14399 msgid "guestfs_zfile"
14400 msgstr ""
14401
14402 # type: verbatim
14403 #: ../src/guestfs-actions.pod:5724
14404 #, no-wrap
14405 msgid ""
14406 " char *guestfs_zfile (guestfs_h *g,\n"
14407 "\t\tconst char *meth,\n"
14408 "\t\tconst char *path);\n"
14409 "\n"
14410 msgstr ""
14411
14412 # type: textblock
14413 #: ../src/guestfs-actions.pod:5728 ../fish/guestfish-actions.pod:4403
14414 msgid ""
14415 "This command runs C<file> after first decompressing C<path> using C<method>."
14416 msgstr ""
14417
14418 # type: textblock
14419 #: ../src/guestfs-actions.pod:5731 ../fish/guestfish-actions.pod:4406
14420 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14421 msgstr ""
14422
14423 # type: textblock
14424 #: ../src/guestfs-actions.pod:5733
14425 msgid ""
14426 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14427 "files."
14428 msgstr ""
14429
14430 # type: textblock
14431 #: ../src/guestfs-actions.pod:5739 ../fish/guestfish-actions.pod:4411
14432 msgid ""
14433 "This function is deprecated.  In new code, use the C<file> call instead."
14434 msgstr ""
14435
14436 # type: =head2
14437 #: ../src/guestfs-actions.pod:5746
14438 msgid "guestfs_zgrep"
14439 msgstr ""
14440
14441 # type: verbatim
14442 #: ../src/guestfs-actions.pod:5748
14443 #, no-wrap
14444 msgid ""
14445 " char **guestfs_zgrep (guestfs_h *g,\n"
14446 "\t\tconst char *regex,\n"
14447 "\t\tconst char *path);\n"
14448 "\n"
14449 msgstr ""
14450
14451 # type: textblock
14452 #: ../src/guestfs-actions.pod:5752 ../fish/guestfish-actions.pod:4422
14453 msgid ""
14454 "This calls the external C<zgrep> program and returns the matching lines."
14455 msgstr ""
14456
14457 # type: =head2
14458 #: ../src/guestfs-actions.pod:5762
14459 msgid "guestfs_zgrepi"
14460 msgstr ""
14461
14462 # type: verbatim
14463 #: ../src/guestfs-actions.pod:5764
14464 #, no-wrap
14465 msgid ""
14466 " char **guestfs_zgrepi (guestfs_h *g,\n"
14467 "\t\tconst char *regex,\n"
14468 "\t\tconst char *path);\n"
14469 "\n"
14470 msgstr ""
14471
14472 # type: textblock
14473 #: ../src/guestfs-actions.pod:5768 ../fish/guestfish-actions.pod:4432
14474 msgid ""
14475 "This calls the external C<zgrep -i> program and returns the matching lines."
14476 msgstr ""
14477
14478 # type: =item
14479 #: ../src/guestfs-availability.pod:3
14480 msgid "B<augeas>"
14481 msgstr ""
14482
14483 # type: textblock
14484 #: ../src/guestfs-availability.pod:5
14485 msgid ""
14486 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
14487 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
14488 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
14489 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
14490 "L</guestfs_aug_save> L</guestfs_aug_set>"
14491 msgstr ""
14492
14493 # type: =item
14494 #: ../src/guestfs-availability.pod:21
14495 msgid "B<inotify>"
14496 msgstr ""
14497
14498 # type: textblock
14499 #: ../src/guestfs-availability.pod:23
14500 msgid ""
14501 "The following functions: L</guestfs_inotify_add_watch> L</"
14502 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
14503 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14504 msgstr ""
14505
14506 # type: =item
14507 #: ../src/guestfs-availability.pod:31
14508 msgid "B<linuxfsuuid>"
14509 msgstr ""
14510
14511 # type: textblock
14512 #: ../src/guestfs-availability.pod:33
14513 msgid ""
14514 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
14515 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14516 msgstr ""
14517
14518 # type: =item
14519 #: ../src/guestfs-availability.pod:40
14520 msgid "B<linuxmodules>"
14521 msgstr ""
14522
14523 # type: textblock
14524 #: ../src/guestfs-availability.pod:42
14525 msgid "The following functions: L</guestfs_modprobe>"
14526 msgstr ""
14527
14528 # type: =item
14529 #: ../src/guestfs-availability.pod:45
14530 msgid "B<linuxxattrs>"
14531 msgstr ""
14532
14533 # type: textblock
14534 #: ../src/guestfs-availability.pod:47
14535 msgid ""
14536 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
14537 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
14538 "guestfs_removexattr> L</guestfs_setxattr>"
14539 msgstr ""
14540
14541 # type: =item
14542 #: ../src/guestfs-availability.pod:56
14543 msgid "B<luks>"
14544 msgstr ""
14545
14546 # type: textblock
14547 #: ../src/guestfs-availability.pod:58
14548 msgid ""
14549 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
14550 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
14551 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14552 msgstr ""
14553
14554 # type: =item
14555 #: ../src/guestfs-availability.pod:67
14556 msgid "B<lvm2>"
14557 msgstr ""
14558
14559 # type: textblock
14560 #: ../src/guestfs-availability.pod:69
14561 msgid ""
14562 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
14563 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
14564 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
14565 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
14566 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
14567 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
14568 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
14569 msgstr ""
14570
14571 # type: =item
14572 #: ../src/guestfs-availability.pod:92
14573 msgid "B<mknod>"
14574 msgstr ""
14575
14576 # type: textblock
14577 #: ../src/guestfs-availability.pod:94
14578 msgid ""
14579 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
14580 "guestfs_mknod_b> L</guestfs_mknod_c>"
14581 msgstr ""
14582
14583 # type: =item
14584 #: ../src/guestfs-availability.pod:100
14585 msgid "B<ntfs3g>"
14586 msgstr ""
14587
14588 # type: textblock
14589 #: ../src/guestfs-availability.pod:102
14590 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14591 msgstr ""
14592
14593 # type: =item
14594 #: ../src/guestfs-availability.pod:105
14595 msgid "B<ntfsprogs>"
14596 msgstr ""
14597
14598 # type: textblock
14599 #: ../src/guestfs-availability.pod:107
14600 msgid ""
14601 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14602 msgstr ""
14603
14604 # type: =item
14605 #: ../src/guestfs-availability.pod:111
14606 msgid "B<realpath>"
14607 msgstr ""
14608
14609 # type: textblock
14610 #: ../src/guestfs-availability.pod:113
14611 msgid "The following functions: L</guestfs_realpath>"
14612 msgstr ""
14613
14614 # type: =item
14615 #: ../src/guestfs-availability.pod:116
14616 msgid "B<scrub>"
14617 msgstr ""
14618
14619 # type: textblock
14620 #: ../src/guestfs-availability.pod:118
14621 msgid ""
14622 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
14623 "guestfs_scrub_freespace>"
14624 msgstr ""
14625
14626 # type: =item
14627 #: ../src/guestfs-availability.pod:123
14628 msgid "B<selinux>"
14629 msgstr ""
14630
14631 # type: textblock
14632 #: ../src/guestfs-availability.pod:125
14633 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14634 msgstr ""
14635
14636 # type: =item
14637 #: ../src/guestfs-availability.pod:129
14638 msgid "B<xz>"
14639 msgstr ""
14640
14641 # type: textblock
14642 #: ../src/guestfs-availability.pod:131
14643 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14644 msgstr ""
14645
14646 # type: =item
14647 #: ../src/guestfs-availability.pod:135
14648 msgid "B<zerofree>"
14649 msgstr ""
14650
14651 # type: textblock
14652 #: ../src/guestfs-availability.pod:137
14653 msgid "The following functions: L</guestfs_zerofree>"
14654 msgstr ""
14655
14656 # type: =head2
14657 #: ../src/guestfs-structs.pod:1
14658 msgid "guestfs_int_bool"
14659 msgstr ""
14660
14661 # type: verbatim
14662 #: ../src/guestfs-structs.pod:3
14663 #, no-wrap
14664 msgid ""
14665 " struct guestfs_int_bool {\n"
14666 "   int32_t i;\n"
14667 "   int32_t b;\n"
14668 " };\n"
14669 " \n"
14670 msgstr ""
14671
14672 # type: verbatim
14673 #: ../src/guestfs-structs.pod:8
14674 #, no-wrap
14675 msgid ""
14676 " struct guestfs_int_bool_list {\n"
14677 "   uint32_t len; /* Number of elements in list. */\n"
14678 "   struct guestfs_int_bool *val; /* Elements. */\n"
14679 " };\n"
14680 " \n"
14681 msgstr ""
14682
14683 # type: verbatim
14684 #: ../src/guestfs-structs.pod:13
14685 #, no-wrap
14686 msgid ""
14687 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14688 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14689 "\n"
14690 msgstr ""
14691
14692 # type: =head2
14693 #: ../src/guestfs-structs.pod:16
14694 msgid "guestfs_lvm_pv"
14695 msgstr ""
14696
14697 # type: verbatim
14698 #: ../src/guestfs-structs.pod:18
14699 #, no-wrap
14700 msgid ""
14701 " struct guestfs_lvm_pv {\n"
14702 "   char *pv_name;\n"
14703 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14704 "   char pv_uuid[32];\n"
14705 "   char *pv_fmt;\n"
14706 "   uint64_t pv_size;\n"
14707 "   uint64_t dev_size;\n"
14708 "   uint64_t pv_free;\n"
14709 "   uint64_t pv_used;\n"
14710 "   char *pv_attr;\n"
14711 "   int64_t pv_pe_count;\n"
14712 "   int64_t pv_pe_alloc_count;\n"
14713 "   char *pv_tags;\n"
14714 "   uint64_t pe_start;\n"
14715 "   int64_t pv_mda_count;\n"
14716 "   uint64_t pv_mda_free;\n"
14717 " };\n"
14718 " \n"
14719 msgstr ""
14720
14721 # type: verbatim
14722 #: ../src/guestfs-structs.pod:36
14723 #, no-wrap
14724 msgid ""
14725 " struct guestfs_lvm_pv_list {\n"
14726 "   uint32_t len; /* Number of elements in list. */\n"
14727 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14728 " };\n"
14729 " \n"
14730 msgstr ""
14731
14732 # type: verbatim
14733 #: ../src/guestfs-structs.pod:41
14734 #, no-wrap
14735 msgid ""
14736 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14737 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14738 "\n"
14739 msgstr ""
14740
14741 # type: =head2
14742 #: ../src/guestfs-structs.pod:44
14743 msgid "guestfs_lvm_vg"
14744 msgstr ""
14745
14746 # type: verbatim
14747 #: ../src/guestfs-structs.pod:46
14748 #, no-wrap
14749 msgid ""
14750 " struct guestfs_lvm_vg {\n"
14751 "   char *vg_name;\n"
14752 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14753 "   char vg_uuid[32];\n"
14754 "   char *vg_fmt;\n"
14755 "   char *vg_attr;\n"
14756 "   uint64_t vg_size;\n"
14757 "   uint64_t vg_free;\n"
14758 "   char *vg_sysid;\n"
14759 "   uint64_t vg_extent_size;\n"
14760 "   int64_t vg_extent_count;\n"
14761 "   int64_t vg_free_count;\n"
14762 "   int64_t max_lv;\n"
14763 "   int64_t max_pv;\n"
14764 "   int64_t pv_count;\n"
14765 "   int64_t lv_count;\n"
14766 "   int64_t snap_count;\n"
14767 "   int64_t vg_seqno;\n"
14768 "   char *vg_tags;\n"
14769 "   int64_t vg_mda_count;\n"
14770 "   uint64_t vg_mda_free;\n"
14771 " };\n"
14772 " \n"
14773 msgstr ""
14774
14775 # type: verbatim
14776 #: ../src/guestfs-structs.pod:69
14777 #, no-wrap
14778 msgid ""
14779 " struct guestfs_lvm_vg_list {\n"
14780 "   uint32_t len; /* Number of elements in list. */\n"
14781 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14782 " };\n"
14783 " \n"
14784 msgstr ""
14785
14786 # type: verbatim
14787 #: ../src/guestfs-structs.pod:74
14788 #, no-wrap
14789 msgid ""
14790 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14791 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14792 "\n"
14793 msgstr ""
14794
14795 # type: =head2
14796 #: ../src/guestfs-structs.pod:77
14797 msgid "guestfs_lvm_lv"
14798 msgstr ""
14799
14800 # type: verbatim
14801 #: ../src/guestfs-structs.pod:79
14802 #, no-wrap
14803 msgid ""
14804 " struct guestfs_lvm_lv {\n"
14805 "   char *lv_name;\n"
14806 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14807 "   char lv_uuid[32];\n"
14808 "   char *lv_attr;\n"
14809 "   int64_t lv_major;\n"
14810 "   int64_t lv_minor;\n"
14811 "   int64_t lv_kernel_major;\n"
14812 "   int64_t lv_kernel_minor;\n"
14813 "   uint64_t lv_size;\n"
14814 "   int64_t seg_count;\n"
14815 "   char *origin;\n"
14816 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14817 "   float snap_percent;\n"
14818 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14819 "   float copy_percent;\n"
14820 "   char *move_pv;\n"
14821 "   char *lv_tags;\n"
14822 "   char *mirror_log;\n"
14823 "   char *modules;\n"
14824 " };\n"
14825 " \n"
14826 msgstr ""
14827
14828 # type: verbatim
14829 #: ../src/guestfs-structs.pod:101
14830 #, no-wrap
14831 msgid ""
14832 " struct guestfs_lvm_lv_list {\n"
14833 "   uint32_t len; /* Number of elements in list. */\n"
14834 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14835 " };\n"
14836 " \n"
14837 msgstr ""
14838
14839 # type: verbatim
14840 #: ../src/guestfs-structs.pod:106
14841 #, no-wrap
14842 msgid ""
14843 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14844 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14845 "\n"
14846 msgstr ""
14847
14848 # type: verbatim
14849 #: ../src/guestfs-structs.pod:111
14850 #, no-wrap
14851 msgid ""
14852 " struct guestfs_stat {\n"
14853 "   int64_t dev;\n"
14854 "   int64_t ino;\n"
14855 "   int64_t mode;\n"
14856 "   int64_t nlink;\n"
14857 "   int64_t uid;\n"
14858 "   int64_t gid;\n"
14859 "   int64_t rdev;\n"
14860 "   int64_t size;\n"
14861 "   int64_t blksize;\n"
14862 "   int64_t blocks;\n"
14863 "   int64_t atime;\n"
14864 "   int64_t mtime;\n"
14865 "   int64_t ctime;\n"
14866 " };\n"
14867 " \n"
14868 msgstr ""
14869
14870 # type: verbatim
14871 #: ../src/guestfs-structs.pod:127
14872 #, no-wrap
14873 msgid ""
14874 " struct guestfs_stat_list {\n"
14875 "   uint32_t len; /* Number of elements in list. */\n"
14876 "   struct guestfs_stat *val; /* Elements. */\n"
14877 " };\n"
14878 " \n"
14879 msgstr ""
14880
14881 # type: verbatim
14882 #: ../src/guestfs-structs.pod:132
14883 #, no-wrap
14884 msgid ""
14885 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14886 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14887 "\n"
14888 msgstr ""
14889
14890 # type: verbatim
14891 #: ../src/guestfs-structs.pod:137
14892 #, no-wrap
14893 msgid ""
14894 " struct guestfs_statvfs {\n"
14895 "   int64_t bsize;\n"
14896 "   int64_t frsize;\n"
14897 "   int64_t blocks;\n"
14898 "   int64_t bfree;\n"
14899 "   int64_t bavail;\n"
14900 "   int64_t files;\n"
14901 "   int64_t ffree;\n"
14902 "   int64_t favail;\n"
14903 "   int64_t fsid;\n"
14904 "   int64_t flag;\n"
14905 "   int64_t namemax;\n"
14906 " };\n"
14907 " \n"
14908 msgstr ""
14909
14910 # type: verbatim
14911 #: ../src/guestfs-structs.pod:151
14912 #, no-wrap
14913 msgid ""
14914 " struct guestfs_statvfs_list {\n"
14915 "   uint32_t len; /* Number of elements in list. */\n"
14916 "   struct guestfs_statvfs *val; /* Elements. */\n"
14917 " };\n"
14918 " \n"
14919 msgstr ""
14920
14921 # type: verbatim
14922 #: ../src/guestfs-structs.pod:156
14923 #, no-wrap
14924 msgid ""
14925 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14926 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14927 "\n"
14928 msgstr ""
14929
14930 # type: =head2
14931 #: ../src/guestfs-structs.pod:159
14932 msgid "guestfs_dirent"
14933 msgstr ""
14934
14935 # type: verbatim
14936 #: ../src/guestfs-structs.pod:161
14937 #, no-wrap
14938 msgid ""
14939 " struct guestfs_dirent {\n"
14940 "   int64_t ino;\n"
14941 "   char ftyp;\n"
14942 "   char *name;\n"
14943 " };\n"
14944 " \n"
14945 msgstr ""
14946
14947 # type: verbatim
14948 #: ../src/guestfs-structs.pod:167
14949 #, no-wrap
14950 msgid ""
14951 " struct guestfs_dirent_list {\n"
14952 "   uint32_t len; /* Number of elements in list. */\n"
14953 "   struct guestfs_dirent *val; /* Elements. */\n"
14954 " };\n"
14955 " \n"
14956 msgstr ""
14957
14958 # type: verbatim
14959 #: ../src/guestfs-structs.pod:172
14960 #, no-wrap
14961 msgid ""
14962 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14963 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14964 "\n"
14965 msgstr ""
14966
14967 # type: verbatim
14968 #: ../src/guestfs-structs.pod:177
14969 #, no-wrap
14970 msgid ""
14971 " struct guestfs_version {\n"
14972 "   int64_t major;\n"
14973 "   int64_t minor;\n"
14974 "   int64_t release;\n"
14975 "   char *extra;\n"
14976 " };\n"
14977 " \n"
14978 msgstr ""
14979
14980 # type: verbatim
14981 #: ../src/guestfs-structs.pod:184
14982 #, no-wrap
14983 msgid ""
14984 " struct guestfs_version_list {\n"
14985 "   uint32_t len; /* Number of elements in list. */\n"
14986 "   struct guestfs_version *val; /* Elements. */\n"
14987 " };\n"
14988 " \n"
14989 msgstr ""
14990
14991 # type: verbatim
14992 #: ../src/guestfs-structs.pod:189
14993 #, no-wrap
14994 msgid ""
14995 " void guestfs_free_version (struct guestfs_free_version *);\n"
14996 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14997 "\n"
14998 msgstr ""
14999
15000 # type: =head2
15001 #: ../src/guestfs-structs.pod:192
15002 msgid "guestfs_xattr"
15003 msgstr ""
15004
15005 # type: verbatim
15006 #: ../src/guestfs-structs.pod:194
15007 #, no-wrap
15008 msgid ""
15009 " struct guestfs_xattr {\n"
15010 "   char *attrname;\n"
15011 "   /* The next two fields describe a byte array. */\n"
15012 "   uint32_t attrval_len;\n"
15013 "   char *attrval;\n"
15014 " };\n"
15015 " \n"
15016 msgstr ""
15017
15018 # type: verbatim
15019 #: ../src/guestfs-structs.pod:201
15020 #, no-wrap
15021 msgid ""
15022 " struct guestfs_xattr_list {\n"
15023 "   uint32_t len; /* Number of elements in list. */\n"
15024 "   struct guestfs_xattr *val; /* Elements. */\n"
15025 " };\n"
15026 " \n"
15027 msgstr ""
15028
15029 # type: verbatim
15030 #: ../src/guestfs-structs.pod:206
15031 #, no-wrap
15032 msgid ""
15033 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15034 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15035 "\n"
15036 msgstr ""
15037
15038 # type: =head2
15039 #: ../src/guestfs-structs.pod:209
15040 msgid "guestfs_inotify_event"
15041 msgstr ""
15042
15043 # type: verbatim
15044 #: ../src/guestfs-structs.pod:211
15045 #, no-wrap
15046 msgid ""
15047 " struct guestfs_inotify_event {\n"
15048 "   int64_t in_wd;\n"
15049 "   uint32_t in_mask;\n"
15050 "   uint32_t in_cookie;\n"
15051 "   char *in_name;\n"
15052 " };\n"
15053 " \n"
15054 msgstr ""
15055
15056 # type: verbatim
15057 #: ../src/guestfs-structs.pod:218
15058 #, no-wrap
15059 msgid ""
15060 " struct guestfs_inotify_event_list {\n"
15061 "   uint32_t len; /* Number of elements in list. */\n"
15062 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15063 " };\n"
15064 " \n"
15065 msgstr ""
15066
15067 # type: verbatim
15068 #: ../src/guestfs-structs.pod:223
15069 #, no-wrap
15070 msgid ""
15071 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15072 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
15073 "\n"
15074 msgstr ""
15075
15076 # type: =head2
15077 #: ../src/guestfs-structs.pod:226
15078 msgid "guestfs_partition"
15079 msgstr ""
15080
15081 # type: verbatim
15082 #: ../src/guestfs-structs.pod:228
15083 #, no-wrap
15084 msgid ""
15085 " struct guestfs_partition {\n"
15086 "   int32_t part_num;\n"
15087 "   uint64_t part_start;\n"
15088 "   uint64_t part_end;\n"
15089 "   uint64_t part_size;\n"
15090 " };\n"
15091 " \n"
15092 msgstr ""
15093
15094 # type: verbatim
15095 #: ../src/guestfs-structs.pod:235
15096 #, no-wrap
15097 msgid ""
15098 " struct guestfs_partition_list {\n"
15099 "   uint32_t len; /* Number of elements in list. */\n"
15100 "   struct guestfs_partition *val; /* Elements. */\n"
15101 " };\n"
15102 " \n"
15103 msgstr ""
15104
15105 # type: verbatim
15106 #: ../src/guestfs-structs.pod:240
15107 #, no-wrap
15108 msgid ""
15109 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15110 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15111 "\n"
15112 msgstr ""
15113
15114 # type: textblock
15115 #: ../fish/guestfish.pod:5
15116 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15117 msgstr ""
15118
15119 # type: verbatim
15120 #: ../fish/guestfish.pod:9
15121 #, no-wrap
15122 msgid ""
15123 " guestfish [--options] [commands]\n"
15124 "\n"
15125 msgstr ""
15126
15127 # type: verbatim
15128 #: ../fish/guestfish.pod:11
15129 #, no-wrap
15130 msgid ""
15131 " guestfish\n"
15132 "\n"
15133 msgstr ""
15134
15135 # type: verbatim
15136 #: ../fish/guestfish.pod:13
15137 #, no-wrap
15138 msgid ""
15139 " guestfish -a disk.img\n"
15140 "\n"
15141 msgstr ""
15142
15143 # type: verbatim
15144 #: ../fish/guestfish.pod:15
15145 #, no-wrap
15146 msgid ""
15147 " guestfish -a disk.img -m dev[:mountpoint]\n"
15148 "\n"
15149 msgstr ""
15150
15151 # type: verbatim
15152 #: ../fish/guestfish.pod:17
15153 #, no-wrap
15154 msgid ""
15155 " guestfish -d libvirt-domain\n"
15156 "\n"
15157 msgstr ""
15158
15159 # type: verbatim
15160 #: ../fish/guestfish.pod:19
15161 #, no-wrap
15162 msgid ""
15163 " guestfish -a disk.img -i\n"
15164 "\n"
15165 msgstr ""
15166
15167 # type: verbatim
15168 #: ../fish/guestfish.pod:21
15169 #, no-wrap
15170 msgid ""
15171 " guestfish -d libvirt-domain -i\n"
15172 "\n"
15173 msgstr ""
15174
15175 # type: =head1
15176 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:45
15177 #: ../tools/virt-win-reg.pl:52 ../tools/virt-tar.pl:60
15178 #: ../tools/virt-rescue.pl:41
15179 msgid "WARNING"
15180 msgstr ""
15181
15182 # type: textblock
15183 #: ../fish/guestfish.pod:25
15184 msgid ""
15185 "Using guestfish in read/write mode on live virtual machines can be "
15186 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15187 "option to use guestfish safely if the disk image or virtual machine might be "
15188 "live."
15189 msgstr ""
15190
15191 # type: textblock
15192 #: ../fish/guestfish.pod:32
15193 msgid ""
15194 "Guestfish is a shell and command-line tool for examining and modifying "
15195 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15196 "functionality of the guestfs API, see L<guestfs(3)>."
15197 msgstr ""
15198
15199 # type: textblock
15200 #: ../fish/guestfish.pod:36
15201 msgid ""
15202 "Guestfish gives you structured access to the libguestfs API, from shell "
15203 "scripts or the command line or interactively.  If you want to rescue a "
15204 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15205 "command."
15206 msgstr ""
15207
15208 # type: =head1
15209 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800
15210 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:59
15211 #: ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:51 ../tools/virt-tar.pl:46
15212 msgid "EXAMPLES"
15213 msgstr ""
15214
15215 # type: =head2
15216 #: ../fish/guestfish.pod:43
15217 msgid "As an interactive shell"
15218 msgstr ""
15219
15220 # type: verbatim
15221 #: ../fish/guestfish.pod:45
15222 #, no-wrap
15223 msgid ""
15224 " $ guestfish\n"
15225 " \n"
15226 msgstr ""
15227
15228 # type: verbatim
15229 #: ../fish/guestfish.pod:47
15230 #, no-wrap
15231 msgid ""
15232 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15233 " editing virtual machine filesystems.\n"
15234 " \n"
15235 msgstr ""
15236
15237 # type: verbatim
15238 #: ../fish/guestfish.pod:50
15239 #, no-wrap
15240 msgid ""
15241 " Type: 'help' for a list of commands\n"
15242 "       'man' to read the manual\n"
15243 "       'quit' to quit the shell\n"
15244 " \n"
15245 msgstr ""
15246
15247 # type: verbatim
15248 #: ../fish/guestfish.pod:54
15249 #, no-wrap
15250 msgid ""
15251 " ><fs> add-ro disk.img\n"
15252 " ><fs> run\n"
15253 " ><fs> list-filesystems\n"
15254 " /dev/sda1: ext4\n"
15255 " /dev/vg_guest/lv_root: ext4\n"
15256 " /dev/vg_guest/lv_swap: swap\n"
15257 " ><fs> mount /dev/vg_guest/lv_root /\n"
15258 " ><fs> cat /etc/fstab\n"
15259 " # /etc/fstab\n"
15260 " # Created by anaconda\n"
15261 " [...]\n"
15262 " ><fs> exit\n"
15263 "\n"
15264 msgstr ""
15265
15266 # type: =head2
15267 #: ../fish/guestfish.pod:67
15268 msgid "From shell scripts"
15269 msgstr ""
15270
15271 # type: textblock
15272 #: ../fish/guestfish.pod:69
15273 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15274 msgstr ""
15275
15276 # type: verbatim
15277 #: ../fish/guestfish.pod:71
15278 #, no-wrap
15279 msgid ""
15280 " guestfish <<_EOF_\n"
15281 " add disk.img\n"
15282 " run\n"
15283 " mount /dev/vg_guest/lv_root /\n"
15284 " write /etc/motd \"Welcome, new users\"\n"
15285 " _EOF_\n"
15286 "\n"
15287 msgstr ""
15288
15289 # type: textblock
15290 #: ../fish/guestfish.pod:78
15291 msgid "List the LVM logical volumes in a disk image:"
15292 msgstr ""
15293
15294 # type: verbatim
15295 #: ../fish/guestfish.pod:80
15296 #, no-wrap
15297 msgid ""
15298 " guestfish -a disk.img --ro <<_EOF_\n"
15299 " run\n"
15300 " lvs\n"
15301 " _EOF_\n"
15302 "\n"
15303 msgstr ""
15304
15305 # type: textblock
15306 #: ../fish/guestfish.pod:85
15307 msgid "List all the filesystems in a disk image:"
15308 msgstr ""
15309
15310 # type: verbatim
15311 #: ../fish/guestfish.pod:87
15312 #, no-wrap
15313 msgid ""
15314 " guestfish -a disk.img --ro <<_EOF_\n"
15315 " run\n"
15316 " list-filesystems\n"
15317 " _EOF_\n"
15318 "\n"
15319 msgstr ""
15320
15321 # type: =head2
15322 #: ../fish/guestfish.pod:92
15323 msgid "On one command line"
15324 msgstr ""
15325
15326 # type: textblock
15327 #: ../fish/guestfish.pod:94
15328 msgid "Update C</etc/resolv.conf> in a guest:"
15329 msgstr ""
15330
15331 # type: verbatim
15332 #: ../fish/guestfish.pod:96
15333 #, no-wrap
15334 msgid ""
15335 " guestfish \\\n"
15336 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15337 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15338 "\n"
15339 msgstr ""
15340
15341 # type: textblock
15342 #: ../fish/guestfish.pod:100
15343 msgid "Edit C</boot/grub/grub.conf> interactively:"
15344 msgstr ""
15345
15346 # type: verbatim
15347 #: ../fish/guestfish.pod:102
15348 #, no-wrap
15349 msgid ""
15350 " guestfish --add disk.img \\\n"
15351 "   --mount /dev/vg_guest/lv_root \\\n"
15352 "   --mount /dev/sda1:/boot \\\n"
15353 "   edit /boot/grub/grub.conf\n"
15354 "\n"
15355 msgstr ""
15356
15357 # type: =head2
15358 #: ../fish/guestfish.pod:107
15359 msgid "Mount disks automatically"
15360 msgstr ""
15361
15362 # type: textblock
15363 #: ../fish/guestfish.pod:109
15364 msgid ""
15365 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
15366 msgstr ""
15367
15368 # type: verbatim
15369 #: ../fish/guestfish.pod:112
15370 #, no-wrap
15371 msgid ""
15372 " guestfish --ro -a disk.img -i cat /etc/group\n"
15373 "\n"
15374 msgstr ""
15375
15376 # type: verbatim
15377 #: ../fish/guestfish.pod:114
15378 #, no-wrap
15379 msgid ""
15380 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15381 "\n"
15382 msgstr ""
15383
15384 # type: textblock
15385 #: ../fish/guestfish.pod:116
15386 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15387 msgstr ""
15388
15389 # type: verbatim
15390 #: ../fish/guestfish.pod:118
15391 #, no-wrap
15392 msgid ""
15393 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15394 "\n"
15395 msgstr ""
15396
15397 # type: =head2
15398 #: ../fish/guestfish.pod:120
15399 msgid "As a script interpreter"
15400 msgstr ""
15401
15402 # type: textblock
15403 #: ../fish/guestfish.pod:122
15404 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15405 msgstr ""
15406
15407 # type: verbatim
15408 #: ../fish/guestfish.pod:124
15409 #, no-wrap
15410 msgid ""
15411 " #!/usr/bin/guestfish -f\n"
15412 " sparse test1.img 100M\n"
15413 " run\n"
15414 " part-disk /dev/sda mbr\n"
15415 " mkfs ext2 /dev/sda1\n"
15416 "\n"
15417 msgstr ""
15418
15419 # type: =head2
15420 #: ../fish/guestfish.pod:130
15421 msgid "Start with a prepared disk"
15422 msgstr ""
15423
15424 # type: textblock
15425 #: ../fish/guestfish.pod:132
15426 msgid ""
15427 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15428 "single ext2-formatted partition:"
15429 msgstr ""
15430
15431 # type: verbatim
15432 #: ../fish/guestfish.pod:135
15433 #, no-wrap
15434 msgid ""
15435 " guestfish -N fs\n"
15436 "\n"
15437 msgstr ""
15438
15439 # type: textblock
15440 #: ../fish/guestfish.pod:137
15441 msgid "To list what is available do:"
15442 msgstr ""
15443
15444 # type: verbatim
15445 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15446 #, no-wrap
15447 msgid ""
15448 " guestfish -N help | less\n"
15449 "\n"
15450 msgstr ""
15451
15452 # type: =head2
15453 #: ../fish/guestfish.pod:141
15454 msgid "Remote control"
15455 msgstr ""
15456
15457 # type: verbatim
15458 #: ../fish/guestfish.pod:143
15459 #, no-wrap
15460 msgid ""
15461 " eval `guestfish --listen`\n"
15462 " guestfish --remote add-ro disk.img\n"
15463 " guestfish --remote run\n"
15464 " guestfish --remote lvs\n"
15465 "\n"
15466 msgstr ""
15467
15468 # type: =head1
15469 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
15470 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:75
15471 #: ../tools/virt-edit.pl:73 ../tools/virt-win-reg.pl:172
15472 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:79 ../tools/virt-resize.pl:257
15473 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:80
15474 #: ../tools/virt-tar.pl:99 ../tools/virt-rescue.pl:103
15475 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
15476 msgid "OPTIONS"
15477 msgstr ""
15478
15479 # type: =item
15480 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:124
15481 #: ../inspector/virt-inspector.pl:83 ../tools/virt-edit.pl:81
15482 #: ../tools/virt-win-reg.pl:180 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:87
15483 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
15484 #: ../tools/virt-cat.pl:88 ../tools/virt-tar.pl:107
15485 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
15486 #: ../tools/virt-list-partitions.pl:59
15487 msgid "B<--help>"
15488 msgstr ""
15489
15490 # type: textblock
15491 #: ../fish/guestfish.pod:154
15492 msgid "Displays general help on options."
15493 msgstr ""
15494
15495 # type: =item
15496 #: ../fish/guestfish.pod:156
15497 msgid "B<-h> | B<--cmd-help>"
15498 msgstr ""
15499
15500 # type: textblock
15501 #: ../fish/guestfish.pod:158
15502 msgid "Lists all available guestfish commands."
15503 msgstr ""
15504
15505 # type: =item
15506 #: ../fish/guestfish.pod:160
15507 msgid "B<-h cmd> | B<--cmd-help cmd>"
15508 msgstr ""
15509
15510 # type: textblock
15511 #: ../fish/guestfish.pod:162
15512 msgid "Displays detailed help on a single command C<cmd>."
15513 msgstr ""
15514
15515 # type: =item
15516 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
15517 msgid "B<-a image> | B<--add image>"
15518 msgstr ""
15519
15520 # type: textblock
15521 #: ../fish/guestfish.pod:166
15522 msgid "Add a block device or virtual machine image to the shell."
15523 msgstr ""
15524
15525 # type: textblock
15526 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
15527 msgid ""
15528 "The format of the disk image is auto-detected.  To override this and force a "
15529 "particular format use the I<--format=..> option."
15530 msgstr ""
15531
15532 # type: =item
15533 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
15534 msgid "B<-c URI> | B<--connect URI>"
15535 msgstr ""
15536
15537 # type: textblock
15538 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
15539 msgid ""
15540 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15541 "URI to use.  The default is to use the default libvirt connection."
15542 msgstr ""
15543
15544 # type: =item
15545 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
15546 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15547 msgstr ""
15548
15549 # type: textblock
15550 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
15551 msgid ""
15552 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15553 "used, then any libvirt domain can be used.  However in write mode, only "
15554 "libvirt domains which are shut down can be named here."
15555 msgstr ""
15556
15557 # type: =item
15558 #: ../fish/guestfish.pod:183
15559 msgid "B<-D> | B<--no-dest-paths>"
15560 msgstr ""
15561
15562 # type: textblock
15563 #: ../fish/guestfish.pod:185
15564 msgid ""
15565 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15566 "to hit the tab key to complete paths on the guest filesystem, but this "
15567 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15568 "allow this feature to be disabled."
15569 msgstr ""
15570
15571 # type: =item
15572 #: ../fish/guestfish.pod:190
15573 msgid "B<--echo-keys>"
15574 msgstr ""
15575
15576 # type: textblock
15577 #: ../fish/guestfish.pod:192
15578 msgid ""
15579 "When prompting for keys and passphrases, guestfish normally turns echoing "
15580 "off so you cannot see what you are typing.  If you are not worried about "
15581 "Tempest attacks and there is no one else in the room you can specify this "
15582 "flag to see what you are typing."
15583 msgstr ""
15584
15585 # type: =item
15586 #: ../fish/guestfish.pod:197
15587 msgid "B<-f file> | B<--file file>"
15588 msgstr ""
15589
15590 # type: textblock
15591 #: ../fish/guestfish.pod:199
15592 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15593 msgstr ""
15594
15595 # type: verbatim
15596 #: ../fish/guestfish.pod:202
15597 #, no-wrap
15598 msgid ""
15599 " #!/usr/bin/guestfish -f\n"
15600 "\n"
15601 msgstr ""
15602
15603 # type: =item
15604 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
15605 msgid "B<--format=raw|qcow2|..> | B<--format>"
15606 msgstr ""
15607
15608 # type: textblock
15609 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
15610 msgid ""
15611 "The default for the I<-a> option is to auto-detect the format of the disk "
15612 "image.  Using this forces the disk format for I<-a> options which follow on "
15613 "the command line.  Using I<--format> with no argument switches back to auto-"
15614 "detection for subsequent I<-a> options."
15615 msgstr ""
15616
15617 # type: textblock
15618 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
15619 msgid "For example:"
15620 msgstr ""
15621
15622 # type: verbatim
15623 #: ../fish/guestfish.pod:213
15624 #, no-wrap
15625 msgid ""
15626 " guestfish --format=raw -a disk.img\n"
15627 "\n"
15628 msgstr ""
15629
15630 # type: textblock
15631 #: ../fish/guestfish.pod:215
15632 msgid "forces raw format (no auto-detection) for C<disk.img>."
15633 msgstr ""
15634
15635 # type: verbatim
15636 #: ../fish/guestfish.pod:217
15637 #, no-wrap
15638 msgid ""
15639 " guestfish --format=raw -a disk.img --format -a another.img\n"
15640 "\n"
15641 msgstr ""
15642
15643 # type: textblock
15644 #: ../fish/guestfish.pod:219
15645 msgid ""
15646 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
15647 "detection for C<another.img>."
15648 msgstr ""
15649
15650 # type: textblock
15651 #: ../fish/guestfish.pod:222
15652 msgid ""
15653 "If you have untrusted raw-format guest disk images, you should use this "
15654 "option to specify the disk format.  This avoids a possible security problem "
15655 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15656 msgstr ""
15657
15658 # type: =item
15659 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
15660 msgid "B<-i> | B<--inspector>"
15661 msgstr ""
15662
15663 # type: textblock
15664 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
15665 msgid ""
15666 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15667 "system and mount filesystems as they would be mounted on the real virtual "
15668 "machine."
15669 msgstr ""
15670
15671 # type: textblock
15672 #: ../fish/guestfish.pod:233
15673 msgid "Typical usage is either:"
15674 msgstr ""
15675
15676 # type: verbatim
15677 #: ../fish/guestfish.pod:235
15678 #, no-wrap
15679 msgid ""
15680 " guestfish -d myguest -i\n"
15681 "\n"
15682 msgstr ""
15683
15684 # type: textblock
15685 #: ../fish/guestfish.pod:237
15686 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15687 msgstr ""
15688
15689 # type: verbatim
15690 #: ../fish/guestfish.pod:239
15691 #, no-wrap
15692 msgid ""
15693 " guestfish --ro -d myguest -i\n"
15694 "\n"
15695 msgstr ""
15696
15697 # type: textblock
15698 #: ../fish/guestfish.pod:241
15699 msgid "(for active domains, readonly), or specify the block device directly:"
15700 msgstr ""
15701
15702 # type: verbatim
15703 #: ../fish/guestfish.pod:243
15704 #, no-wrap
15705 msgid ""
15706 " guestfish -a /dev/Guests/MyGuest -i\n"
15707 "\n"
15708 msgstr ""
15709
15710 # type: textblock
15711 #: ../fish/guestfish.pod:245
15712 msgid ""
15713 "Note that the command line syntax changed slightly over older versions of "
15714 "guestfish.  You can still use the old syntax:"
15715 msgstr ""
15716
15717 # type: verbatim
15718 #: ../fish/guestfish.pod:248
15719 #, no-wrap
15720 msgid ""
15721 " guestfish [--ro] -i disk.img\n"
15722 "\n"
15723 msgstr ""
15724
15725 # type: verbatim
15726 #: ../fish/guestfish.pod:250
15727 #, no-wrap
15728 msgid ""
15729 " guestfish [--ro] -i libvirt-domain\n"
15730 "\n"
15731 msgstr ""
15732
15733 # type: =item
15734 #: ../fish/guestfish.pod:252
15735 msgid "B<--keys-from-stdin>"
15736 msgstr ""
15737
15738 # type: textblock
15739 #: ../fish/guestfish.pod:254
15740 msgid ""
15741 "Read key or passphrase parameters from stdin.  The default is to try to read "
15742 "passphrases from the user by opening C</dev/tty>."
15743 msgstr ""
15744
15745 # type: =item
15746 #: ../fish/guestfish.pod:257
15747 msgid "B<--listen>"
15748 msgstr ""
15749
15750 # type: textblock
15751 #: ../fish/guestfish.pod:259
15752 msgid ""
15753 "Fork into the background and listen for remote commands.  See section L</"
15754 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15755 msgstr ""
15756
15757 # type: =item
15758 #: ../fish/guestfish.pod:262
15759 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15760 msgstr ""
15761
15762 # type: textblock
15763 #: ../fish/guestfish.pod:264
15764 msgid "Mount the named partition or logical volume on the given mountpoint."
15765 msgstr ""
15766
15767 # type: textblock
15768 #: ../fish/guestfish.pod:266
15769 msgid "If the mountpoint is omitted, it defaults to C</>."
15770 msgstr ""
15771
15772 # type: textblock
15773 #: ../fish/guestfish.pod:268
15774 msgid "You have to mount something on C</> before most commands will work."
15775 msgstr ""
15776
15777 # type: textblock
15778 #: ../fish/guestfish.pod:270
15779 msgid ""
15780 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15781 "launched."
15782 msgstr ""
15783
15784 # type: textblock
15785 #: ../fish/guestfish.pod:273
15786 msgid ""
15787 "If you don't know what filesystems a disk image contains, you can either run "
15788 "guestfish without this option, then list the partitions and LVs available "
15789 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
15790 "list-filesystems(1)> program."
15791 msgstr ""
15792
15793 # type: =item
15794 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
15795 msgid "B<-n> | B<--no-sync>"
15796 msgstr ""
15797
15798 # type: textblock
15799 #: ../fish/guestfish.pod:280
15800 msgid ""
15801 "Disable autosync.  This is enabled by default.  See the discussion of "
15802 "autosync in the L<guestfs(3)> manpage."
15803 msgstr ""
15804
15805 # type: =item
15806 #: ../fish/guestfish.pod:283
15807 msgid "B<-N type> | B<--new type> | B<-N help>"
15808 msgstr ""
15809
15810 # type: textblock
15811 #: ../fish/guestfish.pod:285
15812 msgid ""
15813 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15814 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15815 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15816 "IMAGES> below."
15817 msgstr ""
15818
15819 # type: =item
15820 #: ../fish/guestfish.pod:290
15821 msgid "B<--progress-bars>"
15822 msgstr ""
15823
15824 # type: textblock
15825 #: ../fish/guestfish.pod:292
15826 msgid "Enable progress bars, even when guestfish is used non-interactively."
15827 msgstr ""
15828
15829 # type: textblock
15830 #: ../fish/guestfish.pod:294
15831 msgid ""
15832 "Progress bars are enabled by default when guestfish is used as an "
15833 "interactive shell."
15834 msgstr ""
15835
15836 # type: =item
15837 #: ../fish/guestfish.pod:297
15838 msgid "B<--no-progress-bars>"
15839 msgstr ""
15840
15841 # type: textblock
15842 #: ../fish/guestfish.pod:299
15843 msgid "Disable progress bars."
15844 msgstr ""
15845
15846 # type: =item
15847 #: ../fish/guestfish.pod:301
15848 msgid "B<--remote[=pid]>"
15849 msgstr ""
15850
15851 # type: textblock
15852 #: ../fish/guestfish.pod:303
15853 msgid ""
15854 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15855 "CONTROL GUESTFISH OVER A SOCKET> below."
15856 msgstr ""
15857
15858 # type: =item
15859 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
15860 msgid "B<-r> | B<--ro>"
15861 msgstr ""
15862
15863 # type: textblock
15864 #: ../fish/guestfish.pod:308
15865 msgid ""
15866 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15867 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15868 msgstr ""
15869
15870 # type: textblock
15871 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
15872 msgid ""
15873 "The option must always be used if the disk image or virtual machine might be "
15874 "running, and is generally recommended in cases where you don't need write "
15875 "access to the disk."
15876 msgstr ""
15877
15878 # type: textblock
15879 #: ../fish/guestfish.pod:315
15880 msgid ""
15881 "Note that prepared disk images created with I<-N> are not affected by the "
15882 "I<--ro> option."
15883 msgstr ""
15884
15885 # type: =item
15886 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194
15887 #: ../tools/virt-rescue.pl:195
15888 msgid "B<--selinux>"
15889 msgstr ""
15890
15891 # type: textblock
15892 #: ../fish/guestfish.pod:320
15893 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15894 msgstr ""
15895
15896 # type: =item
15897 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
15898 msgid "B<-v> | B<--verbose>"
15899 msgstr ""
15900
15901 # type: textblock
15902 #: ../fish/guestfish.pod:324
15903 msgid ""
15904 "Enable very verbose messages.  This is particularly useful if you find a bug."
15905 msgstr ""
15906
15907 # type: =item
15908 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
15909 msgid "B<-V> | B<--version>"
15910 msgstr ""
15911
15912 # type: textblock
15913 #: ../fish/guestfish.pod:329
15914 msgid "Display the guestfish / libguestfs version number and exit."
15915 msgstr ""
15916
15917 # type: =item
15918 #: ../fish/guestfish.pod:331
15919 msgid "B<-x>"
15920 msgstr ""
15921
15922 # type: textblock
15923 #: ../fish/guestfish.pod:333
15924 msgid "Echo each command before executing it."
15925 msgstr ""
15926
15927 # type: =head1
15928 #: ../fish/guestfish.pod:337
15929 msgid "COMMANDS ON COMMAND LINE"
15930 msgstr ""
15931
15932 # type: textblock
15933 #: ../fish/guestfish.pod:339
15934 msgid ""
15935 "Any additional (non-option) arguments are treated as commands to execute."
15936 msgstr ""
15937
15938 # type: textblock
15939 #: ../fish/guestfish.pod:342
15940 msgid ""
15941 "Commands to execute should be separated by a colon (C<:>), where the colon "
15942 "is a separate parameter.  Thus:"
15943 msgstr ""
15944
15945 # type: verbatim
15946 #: ../fish/guestfish.pod:345
15947 #, no-wrap
15948 msgid ""
15949 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
15950 "\n"
15951 msgstr ""
15952
15953 # type: textblock
15954 #: ../fish/guestfish.pod:347
15955 msgid ""
15956 "If there are no additional arguments, then we enter a shell, either an "
15957 "interactive shell with a prompt (if the input is a terminal) or a non-"
15958 "interactive shell."
15959 msgstr ""
15960
15961 # type: textblock
15962 #: ../fish/guestfish.pod:351
15963 msgid ""
15964 "In either command line mode or non-interactive shell, the first command that "
15965 "gives an error causes the whole shell to exit.  In interactive mode (with a "
15966 "prompt) if a command fails, you can continue to enter commands."
15967 msgstr ""
15968
15969 # type: =head1
15970 #: ../fish/guestfish.pod:356
15971 msgid "USING launch (OR run)"
15972 msgstr ""
15973
15974 # type: textblock
15975 #: ../fish/guestfish.pod:358
15976 msgid ""
15977 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
15978 "then launch it, then mount any disks you need, and finally issue actions/"
15979 "commands.  So the general order of the day is:"
15980 msgstr ""
15981
15982 # type: textblock
15983 #: ../fish/guestfish.pod:366
15984 msgid "add or -a/--add"
15985 msgstr ""
15986
15987 # type: textblock
15988 #: ../fish/guestfish.pod:370
15989 msgid "launch (aka run)"
15990 msgstr ""
15991
15992 # type: textblock
15993 #: ../fish/guestfish.pod:374
15994 msgid "mount or -m/--mount"
15995 msgstr ""
15996
15997 # type: textblock
15998 #: ../fish/guestfish.pod:378
15999 msgid "any other commands"
16000 msgstr ""
16001
16002 # type: textblock
16003 #: ../fish/guestfish.pod:382
16004 msgid ""
16005 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16006 "guest before mounting or performing any other commands."
16007 msgstr ""
16008
16009 # type: textblock
16010 #: ../fish/guestfish.pod:385
16011 msgid ""
16012 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16013 "I<--new> options were given then C<run> is done automatically, simply "
16014 "because guestfish can't perform the action you asked for without doing this."
16015 msgstr ""
16016
16017 # type: =head1
16018 #: ../fish/guestfish.pod:390
16019 msgid "QUOTING"
16020 msgstr ""
16021
16022 # type: textblock
16023 #: ../fish/guestfish.pod:392
16024 msgid ""
16025 "You can quote ordinary parameters using either single or double quotes.  For "
16026 "example:"
16027 msgstr ""
16028
16029 # type: verbatim
16030 #: ../fish/guestfish.pod:395
16031 #, no-wrap
16032 msgid ""
16033 " add \"file with a space.img\"\n"
16034 "\n"
16035 msgstr ""
16036
16037 # type: verbatim
16038 #: ../fish/guestfish.pod:397
16039 #, no-wrap
16040 msgid ""
16041 " rm '/file name'\n"
16042 "\n"
16043 msgstr ""
16044
16045 # type: verbatim
16046 #: ../fish/guestfish.pod:399
16047 #, no-wrap
16048 msgid ""
16049 " rm '/\"'\n"
16050 "\n"
16051 msgstr ""
16052
16053 # type: textblock
16054 #: ../fish/guestfish.pod:401
16055 msgid ""
16056 "A few commands require a list of strings to be passed.  For these, use a "
16057 "whitespace-separated list, enclosed in quotes.  Strings containing "
16058 "whitespace to be passed through must be enclosed in single quotes.  A "
16059 "literal single quote must be escaped with a backslash."
16060 msgstr ""
16061
16062 # type: verbatim
16063 #: ../fish/guestfish.pod:406
16064 #, no-wrap
16065 msgid ""
16066 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16067 " command \"/bin/echo 'foo      bar'\"\n"
16068 " command \"/bin/echo \\'foo\\'\"\n"
16069 "\n"
16070 msgstr ""
16071
16072 # type: =head1
16073 #: ../fish/guestfish.pod:410
16074 msgid "OPTIONAL ARGUMENTS"
16075 msgstr ""
16076
16077 # type: textblock
16078 #: ../fish/guestfish.pod:412
16079 msgid ""
16080 "Some commands take optional arguments.  These arguments appear in this "
16081 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16082 msgstr ""
16083
16084 # type: verbatim
16085 #: ../fish/guestfish.pod:416
16086 #, no-wrap
16087 msgid ""
16088 " add-drive-opts filename\n"
16089 "\n"
16090 msgstr ""
16091
16092 # type: verbatim
16093 #: ../fish/guestfish.pod:418
16094 #, no-wrap
16095 msgid ""
16096 " add-drive-opts filename readonly:true\n"
16097 "\n"
16098 msgstr ""
16099
16100 # type: verbatim
16101 #: ../fish/guestfish.pod:420
16102 #, no-wrap
16103 msgid ""
16104 " add-drive-opts filename format:qcow2 readonly:false\n"
16105 "\n"
16106 msgstr ""
16107
16108 # type: textblock
16109 #: ../fish/guestfish.pod:422
16110 msgid ""
16111 "Each optional argument can appear at most once.  All optional arguments must "
16112 "appear after the required ones."
16113 msgstr ""
16114
16115 # type: =head1
16116 #: ../fish/guestfish.pod:425
16117 msgid "NUMBERS"
16118 msgstr ""
16119
16120 # type: textblock
16121 #: ../fish/guestfish.pod:427
16122 msgid ""
16123 "This section applies to all commands which can take integers as parameters."
16124 msgstr ""
16125
16126 # type: =head2
16127 #: ../fish/guestfish.pod:430
16128 msgid "SIZE SUFFIX"
16129 msgstr ""
16130
16131 # type: textblock
16132 #: ../fish/guestfish.pod:432
16133 msgid ""
16134 "When the command takes a parameter measured in bytes, you can use one of the "
16135 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16136 msgstr ""
16137
16138 # type: =item
16139 #: ../fish/guestfish.pod:438
16140 msgid "B<k> or B<K> or B<KiB>"
16141 msgstr ""
16142
16143 # type: textblock
16144 #: ../fish/guestfish.pod:440
16145 msgid "The size in kilobytes (multiplied by 1024)."
16146 msgstr ""
16147
16148 # type: =item
16149 #: ../fish/guestfish.pod:442
16150 msgid "B<KB>"
16151 msgstr ""
16152
16153 # type: textblock
16154 #: ../fish/guestfish.pod:444
16155 msgid "The size in SI 1000 byte units."
16156 msgstr ""
16157
16158 # type: =item
16159 #: ../fish/guestfish.pod:446
16160 msgid "B<M> or B<MiB>"
16161 msgstr ""
16162
16163 # type: textblock
16164 #: ../fish/guestfish.pod:448
16165 msgid "The size in megabytes (multiplied by 1048576)."
16166 msgstr ""
16167
16168 # type: =item
16169 #: ../fish/guestfish.pod:450
16170 msgid "B<MB>"
16171 msgstr ""
16172
16173 # type: textblock
16174 #: ../fish/guestfish.pod:452
16175 msgid "The size in SI 1000000 byte units."
16176 msgstr ""
16177
16178 # type: =item
16179 #: ../fish/guestfish.pod:454
16180 msgid "B<G> or B<GiB>"
16181 msgstr ""
16182
16183 # type: textblock
16184 #: ../fish/guestfish.pod:456
16185 msgid "The size in gigabytes (multiplied by 2**30)."
16186 msgstr ""
16187
16188 # type: =item
16189 #: ../fish/guestfish.pod:458
16190 msgid "B<GB>"
16191 msgstr ""
16192
16193 # type: textblock
16194 #: ../fish/guestfish.pod:460
16195 msgid "The size in SI 10**9 byte units."
16196 msgstr ""
16197
16198 # type: =item
16199 #: ../fish/guestfish.pod:462
16200 msgid "B<T> or B<TiB>"
16201 msgstr ""
16202
16203 # type: textblock
16204 #: ../fish/guestfish.pod:464
16205 msgid "The size in terabytes (multiplied by 2**40)."
16206 msgstr ""
16207
16208 # type: =item
16209 #: ../fish/guestfish.pod:466
16210 msgid "B<TB>"
16211 msgstr ""
16212
16213 # type: textblock
16214 #: ../fish/guestfish.pod:468
16215 msgid "The size in SI 10**12 byte units."
16216 msgstr ""
16217
16218 # type: =item
16219 #: ../fish/guestfish.pod:470
16220 msgid "B<P> or B<PiB>"
16221 msgstr ""
16222
16223 # type: textblock
16224 #: ../fish/guestfish.pod:472
16225 msgid "The size in petabytes (multiplied by 2**50)."
16226 msgstr ""
16227
16228 # type: =item
16229 #: ../fish/guestfish.pod:474
16230 msgid "B<PB>"
16231 msgstr ""
16232
16233 # type: textblock
16234 #: ../fish/guestfish.pod:476
16235 msgid "The size in SI 10**15 byte units."
16236 msgstr ""
16237
16238 # type: =item
16239 #: ../fish/guestfish.pod:478
16240 msgid "B<E> or B<EiB>"
16241 msgstr ""
16242
16243 # type: textblock
16244 #: ../fish/guestfish.pod:480
16245 msgid "The size in exabytes (multiplied by 2**60)."
16246 msgstr ""
16247
16248 # type: =item
16249 #: ../fish/guestfish.pod:482
16250 msgid "B<EB>"
16251 msgstr ""
16252
16253 # type: textblock
16254 #: ../fish/guestfish.pod:484
16255 msgid "The size in SI 10**18 byte units."
16256 msgstr ""
16257
16258 # type: =item
16259 #: ../fish/guestfish.pod:486
16260 msgid "B<Z> or B<ZiB>"
16261 msgstr ""
16262
16263 # type: textblock
16264 #: ../fish/guestfish.pod:488
16265 msgid "The size in zettabytes (multiplied by 2**70)."
16266 msgstr ""
16267
16268 # type: =item
16269 #: ../fish/guestfish.pod:490
16270 msgid "B<ZB>"
16271 msgstr ""
16272
16273 # type: textblock
16274 #: ../fish/guestfish.pod:492
16275 msgid "The size in SI 10**21 byte units."
16276 msgstr ""
16277
16278 # type: =item
16279 #: ../fish/guestfish.pod:494
16280 msgid "B<Y> or B<YiB>"
16281 msgstr ""
16282
16283 # type: textblock
16284 #: ../fish/guestfish.pod:496
16285 msgid "The size in yottabytes (multiplied by 2**80)."
16286 msgstr ""
16287
16288 # type: =item
16289 #: ../fish/guestfish.pod:498
16290 msgid "B<YB>"
16291 msgstr ""
16292
16293 # type: textblock
16294 #: ../fish/guestfish.pod:500
16295 msgid "The size in SI 10**24 byte units."
16296 msgstr ""
16297
16298 # type: verbatim
16299 #: ../fish/guestfish.pod:506
16300 #, no-wrap
16301 msgid ""
16302 " truncate-size /file 1G\n"
16303 "\n"
16304 msgstr ""
16305
16306 # type: textblock
16307 #: ../fish/guestfish.pod:508
16308 msgid "would truncate the file to 1 gigabyte."
16309 msgstr ""
16310
16311 # type: textblock
16312 #: ../fish/guestfish.pod:510
16313 msgid ""
16314 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
16315 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
16316 "suffix will probably not do what you expect."
16317 msgstr ""
16318
16319 # type: =head2
16320 #: ../fish/guestfish.pod:514
16321 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16322 msgstr ""
16323
16324 # type: textblock
16325 #: ../fish/guestfish.pod:516
16326 msgid ""
16327 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16328 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16329 msgstr ""
16330
16331 # type: verbatim
16332 #: ../fish/guestfish.pod:519
16333 #, no-wrap
16334 msgid ""
16335 " 1234      decimal number 1234\n"
16336 " 02322     octal number, equivalent to decimal 1234\n"
16337 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16338 "\n"
16339 msgstr ""
16340
16341 # type: textblock
16342 #: ../fish/guestfish.pod:523
16343 msgid ""
16344 "When using the C<chmod> command, you almost always want to specify an octal "
16345 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16346 "L<chmod(1)> program):"
16347 msgstr ""
16348
16349 # type: verbatim
16350 #: ../fish/guestfish.pod:527
16351 #, no-wrap
16352 msgid ""
16353 " chmod 0777 /public  # OK\n"
16354 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16355 "\n"
16356 msgstr ""
16357
16358 # type: textblock
16359 #: ../fish/guestfish.pod:530
16360 msgid ""
16361 "Commands that return numbers usually print them in decimal, but some "
16362 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16363 "octal, preceeded by C<0>)."
16364 msgstr ""
16365
16366 # type: =head1
16367 #: ../fish/guestfish.pod:534
16368 msgid "WILDCARDS AND GLOBBING"
16369 msgstr ""
16370
16371 # type: textblock
16372 #: ../fish/guestfish.pod:536
16373 msgid ""
16374 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16375 "(globbing) by default.  So for example the following will not do what you "
16376 "expect:"
16377 msgstr ""
16378
16379 # type: verbatim
16380 #: ../fish/guestfish.pod:540
16381 #, no-wrap
16382 msgid ""
16383 " rm-rf /home/*\n"
16384 "\n"
16385 msgstr ""
16386
16387 # type: textblock
16388 #: ../fish/guestfish.pod:542
16389 msgid ""
16390 "Assuming you don't have a directory called literally C</home/*> then the "
16391 "above command will return an error."
16392 msgstr ""
16393
16394 # type: textblock
16395 #: ../fish/guestfish.pod:545
16396 msgid "To perform wildcard expansion, use the C<glob> command."
16397 msgstr ""
16398
16399 # type: verbatim
16400 #: ../fish/guestfish.pod:547
16401 #, no-wrap
16402 msgid ""
16403 " glob rm-rf /home/*\n"
16404 "\n"
16405 msgstr ""
16406
16407 # type: textblock
16408 #: ../fish/guestfish.pod:549
16409 msgid ""
16410 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16411 "many times), equivalent to:"
16412 msgstr ""
16413
16414 # type: verbatim
16415 #: ../fish/guestfish.pod:552
16416 #, no-wrap
16417 msgid ""
16418 " rm-rf /home/jim\n"
16419 " rm-rf /home/joe\n"
16420 " rm-rf /home/mary\n"
16421 "\n"
16422 msgstr ""
16423
16424 # type: textblock
16425 #: ../fish/guestfish.pod:556
16426 msgid "C<glob> only works on simple guest paths and not on device names."
16427 msgstr ""
16428
16429 # type: textblock
16430 #: ../fish/guestfish.pod:558
16431 msgid ""
16432 "If you have several parameters, each containing a wildcard, then glob will "
16433 "perform a Cartesian product."
16434 msgstr ""
16435
16436 # type: =head1
16437 #: ../fish/guestfish.pod:561
16438 msgid "COMMENTS"
16439 msgstr ""
16440
16441 # type: textblock
16442 #: ../fish/guestfish.pod:563
16443 msgid ""
16444 "Any line which starts with a I<#> character is treated as a comment and "
16445 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16446 "a command.  For example:"
16447 msgstr ""
16448
16449 # type: verbatim
16450 #: ../fish/guestfish.pod:567
16451 #, no-wrap
16452 msgid ""
16453 " # this is a comment\n"
16454 "         # this is a comment\n"
16455 " foo # NOT a comment\n"
16456 "\n"
16457 msgstr ""
16458
16459 # type: textblock
16460 #: ../fish/guestfish.pod:571
16461 msgid "Blank lines are also ignored."
16462 msgstr ""
16463
16464 # type: =head1
16465 #: ../fish/guestfish.pod:573
16466 msgid "RUNNING COMMANDS LOCALLY"
16467 msgstr ""
16468
16469 # type: textblock
16470 #: ../fish/guestfish.pod:575
16471 msgid ""
16472 "Any line which starts with a I<!> character is treated as a command sent to "
16473 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16474 msgstr ""
16475
16476 # type: verbatim
16477 #: ../fish/guestfish.pod:579
16478 #, no-wrap
16479 msgid ""
16480 " !mkdir local\n"
16481 " tgz-out /remote local/remote-data.tar.gz\n"
16482 "\n"
16483 msgstr ""
16484
16485 # type: textblock
16486 #: ../fish/guestfish.pod:582
16487 msgid ""
16488 "will create a directory C<local> on the host, and then export the contents "
16489 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16490 "(See C<tgz-out>)."
16491 msgstr ""
16492
16493 # type: textblock
16494 #: ../fish/guestfish.pod:586
16495 msgid ""
16496 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16497 "effect, due to the way that subprocesses work in Unix."
16498 msgstr ""
16499
16500 # type: =head1
16501 #: ../fish/guestfish.pod:589
16502 msgid "PIPES"
16503 msgstr ""
16504
16505 # type: textblock
16506 #: ../fish/guestfish.pod:591
16507 msgid ""
16508 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16509 "command (a guestfish command) to the second command (any host command).  For "
16510 "example:"
16511 msgstr ""
16512
16513 # type: verbatim
16514 #: ../fish/guestfish.pod:595
16515 #, no-wrap
16516 msgid ""
16517 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16518 "\n"
16519 msgstr ""
16520
16521 # type: textblock
16522 #: ../fish/guestfish.pod:597
16523 msgid ""
16524 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16525 "program).  The above command would list all accounts in the guest filesystem "
16526 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16527 msgstr ""
16528
16529 # type: verbatim
16530 #: ../fish/guestfish.pod:602
16531 #, no-wrap
16532 msgid ""
16533 " hexdump /bin/ls | head\n"
16534 " list-devices | tail -1\n"
16535 " tgz-out / - | tar ztf -\n"
16536 "\n"
16537 msgstr ""
16538
16539 # type: textblock
16540 #: ../fish/guestfish.pod:606
16541 msgid ""
16542 "The space before the pipe symbol is required, any space after the pipe "
16543 "symbol is optional.  Everything after the pipe symbol is just passed "
16544 "straight to the host shell, so it can contain redirections, globs and "
16545 "anything else that makes sense on the host side."
16546 msgstr ""
16547
16548 # type: textblock
16549 #: ../fish/guestfish.pod:611
16550 msgid ""
16551 "To use a literal argument which begins with a pipe symbol, you have to quote "
16552 "it, eg:"
16553 msgstr ""
16554
16555 # type: verbatim
16556 #: ../fish/guestfish.pod:614
16557 #, no-wrap
16558 msgid ""
16559 " echo \"|\"\n"
16560 "\n"
16561 msgstr ""
16562
16563 # type: =head1
16564 #: ../fish/guestfish.pod:616
16565 msgid "HOME DIRECTORIES"
16566 msgstr ""
16567
16568 # type: textblock
16569 #: ../fish/guestfish.pod:618
16570 msgid ""
16571 "If a parameter starts with the character C<~> then the tilde may be expanded "
16572 "as a home directory path (either C<~> for the current user's home directory, "
16573 "or C<~user> for another user)."
16574 msgstr ""
16575
16576 # type: textblock
16577 #: ../fish/guestfish.pod:622
16578 msgid ""
16579 "Note that home directory expansion happens for users known I<on the host>, "
16580 "not in the guest filesystem."
16581 msgstr ""
16582
16583 # type: textblock
16584 #: ../fish/guestfish.pod:625
16585 msgid ""
16586 "To use a literal argument which begins with a tilde, you have to quote it, "
16587 "eg:"
16588 msgstr ""
16589
16590 # type: verbatim
16591 #: ../fish/guestfish.pod:628
16592 #, no-wrap
16593 msgid ""
16594 " echo \"~\"\n"
16595 "\n"
16596 msgstr ""
16597
16598 # type: textblock
16599 #: ../fish/guestfish.pod:632
16600 msgid ""
16601 "Libguestfs has some support for Linux guests encrypted according to the "
16602 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16603 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
16604 "LUKS is supported."
16605 msgstr ""
16606
16607 # type: textblock
16608 #: ../fish/guestfish.pod:637
16609 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16610 msgstr ""
16611
16612 # type: verbatim
16613 #: ../fish/guestfish.pod:639
16614 #, no-wrap
16615 msgid ""
16616 " ><fs> vfs-type /dev/sda2\n"
16617 " crypto_LUKS\n"
16618 "\n"
16619 msgstr ""
16620
16621 # type: textblock
16622 #: ../fish/guestfish.pod:642
16623 msgid ""
16624 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16625 "device called C</dev/mapper/luksdev>."
16626 msgstr ""
16627
16628 # type: verbatim
16629 #: ../fish/guestfish.pod:645
16630 #, no-wrap
16631 msgid ""
16632 " ><fs> luks-open /dev/sda2 luksdev\n"
16633 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16634 "\n"
16635 msgstr ""
16636
16637 # type: textblock
16638 #: ../fish/guestfish.pod:648
16639 msgid ""
16640 "Finally you have to tell LVM to scan for volume groups on the newly created "
16641 "mapper device:"
16642 msgstr ""
16643
16644 # type: verbatim
16645 #: ../fish/guestfish.pod:651
16646 #, no-wrap
16647 msgid ""
16648 " vgscan\n"
16649 " vg-activate-all true\n"
16650 "\n"
16651 msgstr ""
16652
16653 # type: textblock
16654 #: ../fish/guestfish.pod:654
16655 msgid "The logical volume(s) can now be mounted in the usual way."
16656 msgstr ""
16657
16658 # type: textblock
16659 #: ../fish/guestfish.pod:656
16660 msgid ""
16661 "Before closing a LUKS device you must unmount any logical volumes on it and "
16662 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16663 "one.  Then you can close the mapper device:"
16664 msgstr ""
16665
16666 # type: verbatim
16667 #: ../fish/guestfish.pod:660
16668 #, no-wrap
16669 msgid ""
16670 " vg-activate false /dev/VG\n"
16671 " luks-close /dev/mapper/luksdev\n"
16672 "\n"
16673 msgstr ""
16674
16675 # type: =head1
16676 #: ../fish/guestfish.pod:663
16677 msgid "WINDOWS PATHS"
16678 msgstr ""
16679
16680 # type: textblock
16681 #: ../fish/guestfish.pod:665
16682 msgid ""
16683 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16684 "(with some limitations).  The following commands are equivalent:"
16685 msgstr ""
16686
16687 # type: verbatim
16688 #: ../fish/guestfish.pod:668
16689 #, no-wrap
16690 msgid ""
16691 " file /WINDOWS/system32/config/system.LOG\n"
16692 "\n"
16693 msgstr ""
16694
16695 # type: verbatim
16696 #: ../fish/guestfish.pod:670
16697 #, no-wrap
16698 msgid ""
16699 " file win:/windows/system32/config/system.log\n"
16700 "\n"
16701 msgstr ""
16702
16703 # type: verbatim
16704 #: ../fish/guestfish.pod:672
16705 #, no-wrap
16706 msgid ""
16707 " file win:\\windows\\system32\\config\\system.log\n"
16708 "\n"
16709 msgstr ""
16710
16711 # type: verbatim
16712 #: ../fish/guestfish.pod:674
16713 #, no-wrap
16714 msgid ""
16715 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16716 "\n"
16717 msgstr ""
16718
16719 # type: textblock
16720 #: ../fish/guestfish.pod:676
16721 msgid ""
16722 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16723 "handles case insensitivity like Windows would.  This only works in argument "
16724 "positions that expect a path."
16725 msgstr ""
16726
16727 # type: =head1
16728 #: ../fish/guestfish.pod:680
16729 msgid "UPLOADING AND DOWNLOADING FILES"
16730 msgstr ""
16731
16732 # type: textblock
16733 #: ../fish/guestfish.pod:682
16734 msgid ""
16735 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16736 "others which upload from or download to a local file, you can use the "
16737 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16738 msgstr ""
16739
16740 # type: verbatim
16741 #: ../fish/guestfish.pod:686
16742 #, no-wrap
16743 msgid ""
16744 " upload - /foo\n"
16745 "\n"
16746 msgstr ""
16747
16748 # type: textblock
16749 #: ../fish/guestfish.pod:688
16750 msgid ""
16751 "reads stdin and creates from that a file C</foo> in the disk image, and:"
16752 msgstr ""
16753
16754 # type: verbatim
16755 #: ../fish/guestfish.pod:691
16756 #, no-wrap
16757 msgid ""
16758 " tar-out /etc - | tar tf -\n"
16759 "\n"
16760 msgstr ""
16761
16762 # type: textblock
16763 #: ../fish/guestfish.pod:693
16764 msgid ""
16765 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16766 "command (see L</PIPES>)."
16767 msgstr ""
16768
16769 # type: textblock
16770 #: ../fish/guestfish.pod:696
16771 msgid ""
16772 "When using C<-> to read from stdin, the input is read up to the end of "
16773 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16774 "some arbitrary end marker:"
16775 msgstr ""
16776
16777 # type: verbatim
16778 #: ../fish/guestfish.pod:700
16779 #, no-wrap
16780 msgid ""
16781 " upload -<<END /foo\n"
16782 " input line 1\n"
16783 " input line 2\n"
16784 " input line 3\n"
16785 " END\n"
16786 "\n"
16787 msgstr ""
16788
16789 # type: textblock
16790 #: ../fish/guestfish.pod:706
16791 msgid ""
16792 "Any string of characters can be used instead of C<END>.  The end marker must "
16793 "appear on a line of its own, without any preceeding or following characters "
16794 "(not even spaces)."
16795 msgstr ""
16796
16797 # type: textblock
16798 #: ../fish/guestfish.pod:710
16799 msgid ""
16800 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16801 "upload local files (so-called \"FileIn\" parameters in the generator)."
16802 msgstr ""
16803
16804 # type: =head1
16805 #: ../fish/guestfish.pod:713
16806 msgid "EXIT ON ERROR BEHAVIOUR"
16807 msgstr ""
16808
16809 # type: textblock
16810 #: ../fish/guestfish.pod:715
16811 msgid ""
16812 "By default, guestfish will ignore any errors when in interactive mode (ie. "
16813 "taking commands from a human over a tty), and will exit on the first error "
16814 "in non-interactive mode (scripts, commands given on the command line)."
16815 msgstr ""
16816
16817 # type: textblock
16818 #: ../fish/guestfish.pod:720
16819 msgid ""
16820 "If you prefix a command with a I<-> character, then that command will not "
16821 "cause guestfish to exit, even if that (one) command returns an error."
16822 msgstr ""
16823
16824 # type: =head1
16825 #: ../fish/guestfish.pod:724
16826 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16827 msgstr ""
16828
16829 # type: textblock
16830 #: ../fish/guestfish.pod:726
16831 msgid ""
16832 "Guestfish can be remote-controlled over a socket.  This is useful "
16833 "particularly in shell scripts where you want to make several different "
16834 "changes to a filesystem, but you don't want the overhead of starting up a "
16835 "guestfish process each time."
16836 msgstr ""
16837
16838 # type: textblock
16839 #: ../fish/guestfish.pod:731
16840 msgid "Start a guestfish server process using:"
16841 msgstr ""
16842
16843 # type: verbatim
16844 #: ../fish/guestfish.pod:733
16845 #, no-wrap
16846 msgid ""
16847 " eval `guestfish --listen`\n"
16848 "\n"
16849 msgstr ""
16850
16851 # type: textblock
16852 #: ../fish/guestfish.pod:735
16853 msgid "and then send it commands by doing:"
16854 msgstr ""
16855
16856 # type: verbatim
16857 #: ../fish/guestfish.pod:737
16858 #, no-wrap
16859 msgid ""
16860 " guestfish --remote cmd [...]\n"
16861 "\n"
16862 msgstr ""
16863
16864 # type: textblock
16865 #: ../fish/guestfish.pod:739
16866 msgid "To cause the server to exit, send it the exit command:"
16867 msgstr ""
16868
16869 # type: verbatim
16870 #: ../fish/guestfish.pod:741
16871 #, no-wrap
16872 msgid ""
16873 " guestfish --remote exit\n"
16874 "\n"
16875 msgstr ""
16876
16877 # type: textblock
16878 #: ../fish/guestfish.pod:743
16879 msgid ""
16880 "Note that the server will normally exit if there is an error in a command.  "
16881 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16882 "BEHAVIOUR>."
16883 msgstr ""
16884
16885 # type: =head2
16886 #: ../fish/guestfish.pod:747
16887 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16888 msgstr ""
16889
16890 # type: textblock
16891 #: ../fish/guestfish.pod:749
16892 msgid ""
16893 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16894 "is how the I<--remote> option knows where to send the commands.  You can "
16895 "have several guestfish listener processes running using:"
16896 msgstr ""
16897
16898 # type: verbatim
16899 #: ../fish/guestfish.pod:753
16900 #, no-wrap
16901 msgid ""
16902 " eval `guestfish --listen`\n"
16903 " pid1=$GUESTFISH_PID\n"
16904 " eval `guestfish --listen`\n"
16905 " pid2=$GUESTFISH_PID\n"
16906 " ...\n"
16907 " guestfish --remote=$pid1 cmd\n"
16908 " guestfish --remote=$pid2 cmd\n"
16909 "\n"
16910 msgstr ""
16911
16912 # type: =head2
16913 #: ../fish/guestfish.pod:761
16914 msgid "REMOTE CONTROL DETAILS"
16915 msgstr ""
16916
16917 # type: textblock
16918 #: ../fish/guestfish.pod:763
16919 msgid ""
16920 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
16921 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
16922 "and C<$PID> is the process ID of the server."
16923 msgstr ""
16924
16925 # type: textblock
16926 #: ../fish/guestfish.pod:767
16927 msgid "Guestfish client and server versions must match exactly."
16928 msgstr ""
16929
16930 # type: =head1
16931 #: ../fish/guestfish.pod:769
16932 msgid "PREPARED DISK IMAGES"
16933 msgstr ""
16934
16935 # type: textblock
16936 #: ../fish/guestfish.pod:771
16937 msgid ""
16938 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16939 "preformatted disk images that guestfish can make for you to save typing.  "
16940 "This is particularly useful for testing purposes.  This option is used "
16941 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16942 "can be mixed with I<-a>)."
16943 msgstr ""
16944
16945 # type: textblock
16946 #: ../fish/guestfish.pod:777
16947 msgid ""
16948 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
16949 "the second and so on.  Existing files in the current directory are "
16950 "I<overwritten>."
16951 msgstr ""
16952
16953 # type: textblock
16954 #: ../fish/guestfish.pod:781
16955 msgid ""
16956 "The type briefly describes how the disk should be sized, partitioned, how "
16957 "filesystem(s) should be created, and how content should be added.  "
16958 "Optionally the type can be followed by extra parameters, separated by C<:> "
16959 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
16960 "allocated disk, containing a single partition, with the partition formatted "
16961 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
16962 "disk instead."
16963 msgstr ""
16964
16965 # type: textblock
16966 #: ../fish/guestfish.pod:789
16967 msgid "To list the available types and any extra parameters they take, run:"
16968 msgstr ""
16969
16970 # type: textblock
16971 #: ../fish/guestfish.pod:793
16972 msgid ""
16973 "Note that the prepared filesystem is not mounted.  You would usually have to "
16974 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
16975 msgstr ""
16976
16977 # type: textblock
16978 #: ../fish/guestfish.pod:797
16979 msgid ""
16980 "If any I<-N> or I<--new> options are given, the guest is automatically "
16981 "launched."
16982 msgstr ""
16983
16984 # type: textblock
16985 #: ../fish/guestfish.pod:802
16986 msgid "Create a 100MB disk with an ext4-formatted partition:"
16987 msgstr ""
16988
16989 # type: verbatim
16990 #: ../fish/guestfish.pod:804
16991 #, no-wrap
16992 msgid ""
16993 " guestfish -N fs:ext4\n"
16994 "\n"
16995 msgstr ""
16996
16997 # type: textblock
16998 #: ../fish/guestfish.pod:806
16999 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17000 msgstr ""
17001
17002 # type: verbatim
17003 #: ../fish/guestfish.pod:808
17004 #, no-wrap
17005 msgid ""
17006 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17007 "\n"
17008 msgstr ""
17009
17010 # type: textblock
17011 #: ../fish/guestfish.pod:810
17012 msgid "Create a blank 200MB disk:"
17013 msgstr ""
17014
17015 # type: verbatim
17016 #: ../fish/guestfish.pod:812
17017 #, no-wrap
17018 msgid ""
17019 " guestfish -N disk:200M\n"
17020 "\n"
17021 msgstr ""
17022
17023 # type: =head1
17024 #: ../fish/guestfish.pod:814
17025 msgid "PROGRESS BARS"
17026 msgstr ""
17027
17028 # type: textblock
17029 #: ../fish/guestfish.pod:816
17030 msgid ""
17031 "Some (not all) long-running commands send progress notification messages as "
17032 "they are running.  Guestfish turns these messages into progress bars."
17033 msgstr ""
17034
17035 # type: textblock
17036 #: ../fish/guestfish.pod:820
17037 msgid ""
17038 "When a command that supports progress bars takes longer than two seconds to "
17039 "run, and if progress bars are enabled, then you will see one appearing below "
17040 "the command:"
17041 msgstr ""
17042
17043 # type: verbatim
17044 #: ../fish/guestfish.pod:824
17045 #, no-wrap
17046 msgid ""
17047 " ><fs> copy-size /large-file /another-file 2048M\n"
17048 " / 10% [#####-----------------------------------------] 00:30\n"
17049 "\n"
17050 msgstr ""
17051
17052 # type: textblock
17053 #: ../fish/guestfish.pod:827
17054 msgid ""
17055 "The spinner on the left hand side moves round once for every progress "
17056 "notification received from the backend.  This is a (reasonably) golden "
17057 "assurance that the command is \"doing something\" even if the progress bar "
17058 "is not moving, because the command is able to send the progress "
17059 "notifications.  When the bar reaches 100% and the command finishes, the "
17060 "spinner disappears."
17061 msgstr ""
17062
17063 # type: textblock
17064 #: ../fish/guestfish.pod:834
17065 msgid ""
17066 "Progress bars are enabled by default when guestfish is used interactively.  "
17067 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17068 "and you can disable them completely using I<--no-progress-bars>."
17069 msgstr ""
17070
17071 # type: =head1
17072 #: ../fish/guestfish.pod:839
17073 msgid "GUESTFISH COMMANDS"
17074 msgstr ""
17075
17076 # type: textblock
17077 #: ../fish/guestfish.pod:841
17078 msgid ""
17079 "The commands in this section are guestfish convenience commands, in other "
17080 "words, they are not part of the L<guestfs(3)> API."
17081 msgstr ""
17082
17083 # type: =head2
17084 #: ../fish/guestfish.pod:844
17085 msgid "help"
17086 msgstr ""
17087
17088 # type: verbatim
17089 #: ../fish/guestfish.pod:846
17090 #, no-wrap
17091 msgid ""
17092 " help\n"
17093 " help cmd\n"
17094 "\n"
17095 msgstr ""
17096
17097 # type: textblock
17098 #: ../fish/guestfish.pod:849
17099 msgid ""
17100 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
17101 "this displays detailed help for a command."
17102 msgstr ""
17103
17104 # type: =head2
17105 #: ../fish/guestfish.pod:852
17106 msgid "quit | exit"
17107 msgstr ""
17108
17109 # type: textblock
17110 #: ../fish/guestfish.pod:854
17111 msgid "This exits guestfish.  You can also use C<^D> key."
17112 msgstr ""
17113
17114 # type: textblock
17115 #: ../fish/guestfish.pod:856
17116 msgid "@FISH_COMMANDS@"
17117 msgstr ""
17118
17119 # type: =head1
17120 #: ../fish/guestfish.pod:858
17121 msgid "COMMANDS"
17122 msgstr ""
17123
17124 # type: =head1
17125 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
17126 msgid "EXIT CODE"
17127 msgstr ""
17128
17129 # type: textblock
17130 #: ../fish/guestfish.pod:864
17131 msgid ""
17132 "guestfish returns 0 if the commands completed without error, or 1 if there "
17133 "was an error."
17134 msgstr ""
17135
17136 # type: =item
17137 #: ../fish/guestfish.pod:871
17138 msgid "EDITOR"
17139 msgstr ""
17140
17141 # type: textblock
17142 #: ../fish/guestfish.pod:873
17143 msgid ""
17144 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17145 "C<vi>."
17146 msgstr ""
17147
17148 # type: =item
17149 #: ../fish/guestfish.pod:876
17150 msgid "GUESTFISH_PID"
17151 msgstr ""
17152
17153 # type: textblock
17154 #: ../fish/guestfish.pod:878
17155 msgid ""
17156 "Used with the I<--remote> option to specify the remote guestfish process to "
17157 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17158 msgstr ""
17159
17160 # type: =item
17161 #: ../fish/guestfish.pod:882
17162 msgid "HEXEDITOR"
17163 msgstr ""
17164
17165 # type: textblock
17166 #: ../fish/guestfish.pod:884
17167 msgid ""
17168 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17169 "not specified, the external L<hexedit(1)> program is used."
17170 msgstr ""
17171
17172 # type: =item
17173 #: ../fish/guestfish.pod:888
17174 msgid "HOME"
17175 msgstr ""
17176
17177 # type: textblock
17178 #: ../fish/guestfish.pod:890
17179 msgid ""
17180 "If compiled with GNU readline support, various files in the home directory "
17181 "can be used.  See L</FILES>."
17182 msgstr ""
17183
17184 # type: textblock
17185 #: ../fish/guestfish.pod:899
17186 msgid ""
17187 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17188 "effect as using the B<-v> option."
17189 msgstr ""
17190
17191 # type: textblock
17192 #: ../fish/guestfish.pod:911
17193 msgid ""
17194 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17195 "the discussion of paths in L<guestfs(3)>."
17196 msgstr ""
17197
17198 # type: textblock
17199 #: ../fish/guestfish.pod:922
17200 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17201 msgstr ""
17202
17203 # type: =item
17204 #: ../fish/guestfish.pod:924
17205 msgid "PAGER"
17206 msgstr ""
17207
17208 # type: textblock
17209 #: ../fish/guestfish.pod:926
17210 msgid ""
17211 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17212 "C<more>."
17213 msgstr ""
17214
17215 # type: =head1
17216 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
17217 msgid "FILES"
17218 msgstr ""
17219
17220 # type: =item
17221 #: ../fish/guestfish.pod:945
17222 msgid "$HOME/.guestfish"
17223 msgstr ""
17224
17225 # type: textblock
17226 #: ../fish/guestfish.pod:947
17227 msgid ""
17228 "If compiled with GNU readline support, then the command history is saved in "
17229 "this file."
17230 msgstr ""
17231
17232 # type: =item
17233 #: ../fish/guestfish.pod:950
17234 msgid "$HOME/.inputrc"
17235 msgstr ""
17236
17237 # type: =item
17238 #: ../fish/guestfish.pod:952
17239 msgid "/etc/inputrc"
17240 msgstr ""
17241
17242 # type: textblock
17243 #: ../fish/guestfish.pod:954
17244 msgid ""
17245 "If compiled with GNU readline support, then these files can be used to "
17246 "configure readline.  For further information, please see L<readline(3)/"
17247 "INITIALIZATION FILE>."
17248 msgstr ""
17249
17250 # type: textblock
17251 #: ../fish/guestfish.pod:958
17252 msgid "To write rules which only apply to guestfish, use:"
17253 msgstr ""
17254
17255 # type: verbatim
17256 #: ../fish/guestfish.pod:960
17257 #, no-wrap
17258 msgid ""
17259 " $if guestfish\n"
17260 " ...\n"
17261 " $endif\n"
17262 "\n"
17263 msgstr ""
17264
17265 # type: textblock
17266 #: ../fish/guestfish.pod:964
17267 msgid ""
17268 "Variables that you can set in inputrc that change the behaviour of guestfish "
17269 "in useful ways include:"
17270 msgstr ""
17271
17272 # type: =item
17273 #: ../fish/guestfish.pod:969
17274 msgid "completion-ignore-case (default: on)"
17275 msgstr ""
17276
17277 # type: textblock
17278 #: ../fish/guestfish.pod:971
17279 msgid ""
17280 "By default, guestfish will ignore case when tab-completing paths on the "
17281 "disk.  Use:"
17282 msgstr ""
17283
17284 # type: verbatim
17285 #: ../fish/guestfish.pod:974
17286 #, no-wrap
17287 msgid ""
17288 " set completion-ignore-case off\n"
17289 "\n"
17290 msgstr ""
17291
17292 # type: textblock
17293 #: ../fish/guestfish.pod:976
17294 msgid "to make guestfish case sensitive."
17295 msgstr ""
17296
17297 # type: =item
17298 #: ../fish/guestfish.pod:980
17299 msgid "test1.img"
17300 msgstr ""
17301
17302 # type: =item
17303 #: ../fish/guestfish.pod:982
17304 msgid "test2.img (etc)"
17305 msgstr ""
17306
17307 # type: textblock
17308 #: ../fish/guestfish.pod:984
17309 msgid ""
17310 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17311 "will be created in the file C<test1.img> in the current directory.  The "
17312 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17313 "the same name will be overwritten."
17314 msgstr ""
17315
17316 # type: textblock
17317 #: ../fish/guestfish.pod:993
17318 msgid ""
17319 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17320 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17321 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17322 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17323 msgstr ""
17324
17325 # type: textblock
17326 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124
17327 #: ../fuse/guestmount.pod:234 ../inspector/virt-inspector.pl:903
17328 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:521
17329 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:254
17330 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:236
17331 #: ../tools/virt-cat.pl:206 ../tools/virt-tar.pl:302
17332 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
17333 #: ../tools/virt-list-partitions.pl:273
17334 msgid ""
17335 "This program is free software; you can redistribute it and/or modify it "
17336 "under the terms of the GNU General Public License as published by the Free "
17337 "Software Foundation; either version 2 of the License, or (at your option) "
17338 "any later version."
17339 msgstr ""
17340
17341 # type: textblock
17342 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129
17343 #: ../fuse/guestmount.pod:239 ../inspector/virt-inspector.pl:908
17344 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:526
17345 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:259
17346 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:241
17347 #: ../tools/virt-cat.pl:211 ../tools/virt-tar.pl:307
17348 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
17349 #: ../tools/virt-list-partitions.pl:278
17350 msgid ""
17351 "This program is distributed in the hope that it will be useful, but WITHOUT "
17352 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17353 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17354 "more details."
17355 msgstr ""
17356
17357 # type: textblock
17358 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134
17359 #: ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:913
17360 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:531
17361 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:264
17362 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:246
17363 #: ../tools/virt-cat.pl:216 ../tools/virt-tar.pl:312
17364 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
17365 #: ../tools/virt-list-partitions.pl:283
17366 msgid ""
17367 "You should have received a copy of the GNU General Public License along with "
17368 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17369 "Ave, Cambridge, MA 02139, USA."
17370 msgstr ""
17371
17372 # type: =head2
17373 #: ../fish/guestfish-actions.pod:1
17374 msgid "add-cdrom"
17375 msgstr ""
17376
17377 # type: verbatim
17378 #: ../fish/guestfish-actions.pod:3
17379 #, no-wrap
17380 msgid ""
17381 " add-cdrom filename\n"
17382 "\n"
17383 msgstr ""
17384
17385 # type: textblock
17386 #: ../fish/guestfish-actions.pod:15
17387 msgid ""
17388 "This call checks for the existence of C<filename>.  This stops you from "
17389 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17390 "and C<http:> URLs.  To specify those, use the general L</config> call "
17391 "instead."
17392 msgstr ""
17393
17394 # type: textblock
17395 #: ../fish/guestfish-actions.pod:22
17396 msgid ""
17397 "If you just want to add an ISO file (often you use this as an efficient way "
17398 "to transfer large files into the guest), then you should probably use L</add-"
17399 "drive-ro> instead."
17400 msgstr ""
17401
17402 # type: =head2
17403 #: ../fish/guestfish-actions.pod:35
17404 msgid "add-drive"
17405 msgstr ""
17406
17407 # type: verbatim
17408 #: ../fish/guestfish-actions.pod:37
17409 #, no-wrap
17410 msgid ""
17411 " add-drive filename\n"
17412 "\n"
17413 msgstr ""
17414
17415 # type: textblock
17416 #: ../fish/guestfish-actions.pod:39
17417 msgid ""
17418 "This function is the equivalent of calling L</add-drive-opts> with no "
17419 "optional parameters, so the disk is added writable, with the format being "
17420 "detected automatically."
17421 msgstr ""
17422
17423 # type: textblock
17424 #: ../fish/guestfish-actions.pod:43
17425 msgid ""
17426 "Automatic detection of the format opens you up to a potential security hole "
17427 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17428 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17429 "you should think about replacing calls to this function with calls to L</add-"
17430 "drive-opts>, and specifying the format."
17431 msgstr ""
17432
17433 # type: =head2
17434 #: ../fish/guestfish-actions.pod:50
17435 msgid "add-drive-opts"
17436 msgstr ""
17437
17438 # type: =head2
17439 #: ../fish/guestfish-actions.pod:52
17440 msgid "add"
17441 msgstr ""
17442
17443 # type: verbatim
17444 #: ../fish/guestfish-actions.pod:54
17445 #, no-wrap
17446 msgid ""
17447 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17448 "\n"
17449 msgstr ""
17450
17451 # type: textblock
17452 #: ../fish/guestfish-actions.pod:81
17453 msgid ""
17454 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
17455 "add-drive-ro>) then the format is automatically detected.  Possible formats "
17456 "include C<raw> and C<qcow2>."
17457 msgstr ""
17458
17459 # type: textblock
17460 #: ../fish/guestfish-actions.pod:92
17461 msgid ""
17462 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
17463 "add-drive-with-if> call (q.v.)"
17464 msgstr ""
17465
17466 # type: textblock
17467 #: ../fish/guestfish-actions.pod:97
17468 msgid ""
17469 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
17470 msgstr ""
17471
17472 # type: =head2
17473 #: ../fish/guestfish-actions.pod:99
17474 msgid "add-drive-ro"
17475 msgstr ""
17476
17477 # type: =head2
17478 #: ../fish/guestfish-actions.pod:101
17479 msgid "add-ro"
17480 msgstr ""
17481
17482 # type: verbatim
17483 #: ../fish/guestfish-actions.pod:103
17484 #, no-wrap
17485 msgid ""
17486 " add-drive-ro filename\n"
17487 "\n"
17488 msgstr ""
17489
17490 # type: textblock
17491 #: ../fish/guestfish-actions.pod:105
17492 msgid ""
17493 "This function is the equivalent of calling L</add-drive-opts> with the "
17494 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17495 "is added read-only, with the format being detected automatically."
17496 msgstr ""
17497
17498 # type: =head2
17499 #: ../fish/guestfish-actions.pod:110
17500 msgid "add-drive-ro-with-if"
17501 msgstr ""
17502
17503 # type: verbatim
17504 #: ../fish/guestfish-actions.pod:112
17505 #, no-wrap
17506 msgid ""
17507 " add-drive-ro-with-if filename iface\n"
17508 "\n"
17509 msgstr ""
17510
17511 # type: textblock
17512 #: ../fish/guestfish-actions.pod:114
17513 msgid ""
17514 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17515 "interface emulation to use at run time."
17516 msgstr ""
17517
17518 # type: =head2
17519 #: ../fish/guestfish-actions.pod:124
17520 msgid "add-drive-with-if"
17521 msgstr ""
17522
17523 # type: verbatim
17524 #: ../fish/guestfish-actions.pod:126
17525 #, no-wrap
17526 msgid ""
17527 " add-drive-with-if filename iface\n"
17528 "\n"
17529 msgstr ""
17530
17531 # type: textblock
17532 #: ../fish/guestfish-actions.pod:128
17533 msgid ""
17534 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17535 "interface emulation to use at run time."
17536 msgstr ""
17537
17538 # type: =head2
17539 #: ../fish/guestfish-actions.pod:138
17540 msgid "aug-clear"
17541 msgstr ""
17542
17543 # type: verbatim
17544 #: ../fish/guestfish-actions.pod:140
17545 #, no-wrap
17546 msgid ""
17547 " aug-clear augpath\n"
17548 "\n"
17549 msgstr ""
17550
17551 # type: =head2
17552 #: ../fish/guestfish-actions.pod:145
17553 msgid "aug-close"
17554 msgstr ""
17555
17556 # type: verbatim
17557 #: ../fish/guestfish-actions.pod:147
17558 #, no-wrap
17559 msgid ""
17560 " aug-close\n"
17561 "\n"
17562 msgstr ""
17563
17564 # type: textblock
17565 #: ../fish/guestfish-actions.pod:149
17566 msgid ""
17567 "Close the current Augeas handle and free up any resources used by it.  After "
17568 "calling this, you have to call L</aug-init> again before you can use any "
17569 "other Augeas functions."
17570 msgstr ""
17571
17572 # type: =head2
17573 #: ../fish/guestfish-actions.pod:154
17574 msgid "aug-defnode"
17575 msgstr ""
17576
17577 # type: verbatim
17578 #: ../fish/guestfish-actions.pod:156
17579 #, no-wrap
17580 msgid ""
17581 " aug-defnode name expr val\n"
17582 "\n"
17583 msgstr ""
17584
17585 # type: textblock
17586 #: ../fish/guestfish-actions.pod:161
17587 msgid ""
17588 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17589 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17590 "containing that single node."
17591 msgstr ""
17592
17593 # type: =head2
17594 #: ../fish/guestfish-actions.pod:169
17595 msgid "aug-defvar"
17596 msgstr ""
17597
17598 # type: verbatim
17599 #: ../fish/guestfish-actions.pod:171
17600 #, no-wrap
17601 msgid ""
17602 " aug-defvar name expr\n"
17603 "\n"
17604 msgstr ""
17605
17606 # type: =head2
17607 #: ../fish/guestfish-actions.pod:180
17608 msgid "aug-get"
17609 msgstr ""
17610
17611 # type: verbatim
17612 #: ../fish/guestfish-actions.pod:182
17613 #, no-wrap
17614 msgid ""
17615 " aug-get augpath\n"
17616 "\n"
17617 msgstr ""
17618
17619 # type: =head2
17620 #: ../fish/guestfish-actions.pod:187
17621 msgid "aug-init"
17622 msgstr ""
17623
17624 # type: verbatim
17625 #: ../fish/guestfish-actions.pod:189
17626 #, no-wrap
17627 msgid ""
17628 " aug-init root flags\n"
17629 "\n"
17630 msgstr ""
17631
17632 # type: textblock
17633 #: ../fish/guestfish-actions.pod:195
17634 msgid "You must call this before using any other L</aug-*> commands."
17635 msgstr ""
17636
17637 # type: textblock
17638 #: ../fish/guestfish-actions.pod:230
17639 msgid "Do not load the tree in L</aug-init>."
17640 msgstr ""
17641
17642 # type: textblock
17643 #: ../fish/guestfish-actions.pod:234
17644 msgid "To close the handle, you can call L</aug-close>."
17645 msgstr ""
17646
17647 # type: =head2
17648 #: ../fish/guestfish-actions.pod:238
17649 msgid "aug-insert"
17650 msgstr ""
17651
17652 # type: verbatim
17653 #: ../fish/guestfish-actions.pod:240
17654 #, no-wrap
17655 msgid ""
17656 " aug-insert augpath label true|false\n"
17657 "\n"
17658 msgstr ""
17659
17660 # type: =head2
17661 #: ../fish/guestfish-actions.pod:250
17662 msgid "aug-load"
17663 msgstr ""
17664
17665 # type: verbatim
17666 #: ../fish/guestfish-actions.pod:252
17667 #, no-wrap
17668 msgid ""
17669 " aug-load\n"
17670 "\n"
17671 msgstr ""
17672
17673 # type: =head2
17674 #: ../fish/guestfish-actions.pod:259
17675 msgid "aug-ls"
17676 msgstr ""
17677
17678 # type: verbatim
17679 #: ../fish/guestfish-actions.pod:261
17680 #, no-wrap
17681 msgid ""
17682 " aug-ls augpath\n"
17683 "\n"
17684 msgstr ""
17685
17686 # type: textblock
17687 #: ../fish/guestfish-actions.pod:263
17688 msgid ""
17689 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17690 "resulting nodes into alphabetical order."
17691 msgstr ""
17692
17693 # type: =head2
17694 #: ../fish/guestfish-actions.pod:266
17695 msgid "aug-match"
17696 msgstr ""
17697
17698 # type: verbatim
17699 #: ../fish/guestfish-actions.pod:268
17700 #, no-wrap
17701 msgid ""
17702 " aug-match augpath\n"
17703 "\n"
17704 msgstr ""
17705
17706 # type: =head2
17707 #: ../fish/guestfish-actions.pod:274
17708 msgid "aug-mv"
17709 msgstr ""
17710
17711 # type: verbatim
17712 #: ../fish/guestfish-actions.pod:276
17713 #, no-wrap
17714 msgid ""
17715 " aug-mv src dest\n"
17716 "\n"
17717 msgstr ""
17718
17719 # type: =head2
17720 #: ../fish/guestfish-actions.pod:281
17721 msgid "aug-rm"
17722 msgstr ""
17723
17724 # type: verbatim
17725 #: ../fish/guestfish-actions.pod:283
17726 #, no-wrap
17727 msgid ""
17728 " aug-rm augpath\n"
17729 "\n"
17730 msgstr ""
17731
17732 # type: =head2
17733 #: ../fish/guestfish-actions.pod:289
17734 msgid "aug-save"
17735 msgstr ""
17736
17737 # type: verbatim
17738 #: ../fish/guestfish-actions.pod:291
17739 #, no-wrap
17740 msgid ""
17741 " aug-save\n"
17742 "\n"
17743 msgstr ""
17744
17745 # type: textblock
17746 #: ../fish/guestfish-actions.pod:295
17747 msgid ""
17748 "The flags which were passed to L</aug-init> affect exactly how files are "
17749 "saved."
17750 msgstr ""
17751
17752 # type: =head2
17753 #: ../fish/guestfish-actions.pod:298
17754 msgid "aug-set"
17755 msgstr ""
17756
17757 # type: verbatim
17758 #: ../fish/guestfish-actions.pod:300
17759 #, no-wrap
17760 msgid ""
17761 " aug-set augpath val\n"
17762 "\n"
17763 msgstr ""
17764
17765 # type: textblock
17766 #: ../fish/guestfish-actions.pod:304
17767 msgid ""
17768 "In the Augeas API, it is possible to clear a node by setting the value to "
17769 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17770 "this call.  Instead you must use the L</aug-clear> call."
17771 msgstr ""
17772
17773 # type: =head2
17774 #: ../fish/guestfish-actions.pod:309
17775 msgid "available"
17776 msgstr ""
17777
17778 # type: verbatim
17779 #: ../fish/guestfish-actions.pod:311
17780 #, no-wrap
17781 msgid ""
17782 " available 'groups ...'\n"
17783 "\n"
17784 msgstr ""
17785
17786 # type: textblock
17787 #: ../fish/guestfish-actions.pod:317
17788 msgid ""
17789 "The libguestfs groups, and the functions that those groups correspond to, "
17790 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17791 "runtime by calling L</available-all-groups>."
17792 msgstr ""
17793
17794 # type: textblock
17795 #: ../fish/guestfish-actions.pod:341
17796 msgid "You must call L</launch> before calling this function."
17797 msgstr ""
17798
17799 # type: textblock
17800 #: ../fish/guestfish-actions.pod:363
17801 msgid ""
17802 "This call was added in version C<1.0.80>.  In previous versions of "
17803 "libguestfs all you could do would be to speculatively execute a command to "
17804 "find out if the daemon implemented it.  See also L</version>."
17805 msgstr ""
17806
17807 # type: =head2
17808 #: ../fish/guestfish-actions.pod:370
17809 msgid "available-all-groups"
17810 msgstr ""
17811
17812 # type: verbatim
17813 #: ../fish/guestfish-actions.pod:372
17814 #, no-wrap
17815 msgid ""
17816 " available-all-groups\n"
17817 "\n"
17818 msgstr ""
17819
17820 # type: textblock
17821 #: ../fish/guestfish-actions.pod:374
17822 msgid ""
17823 "This command returns a list of all optional groups that this daemon knows "
17824 "about.  Note this returns both supported and unsupported groups.  To find "
17825 "out which ones the daemon can actually support you have to call L</"
17826 "available> on each member of the returned list."
17827 msgstr ""
17828
17829 # type: textblock
17830 #: ../fish/guestfish-actions.pod:380
17831 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17832 msgstr ""
17833
17834 # type: =head2
17835 #: ../fish/guestfish-actions.pod:382
17836 msgid "base64-in"
17837 msgstr ""
17838
17839 # type: verbatim
17840 #: ../fish/guestfish-actions.pod:384
17841 #, no-wrap
17842 msgid ""
17843 " base64-in (base64file|-) filename\n"
17844 "\n"
17845 msgstr ""
17846
17847 # type: textblock
17848 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398
17849 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769
17850 #: ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835
17851 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3896
17852 #: ../fish/guestfish-actions.pod:3908 ../fish/guestfish-actions.pod:3919
17853 #: ../fish/guestfish-actions.pod:3930 ../fish/guestfish-actions.pod:3982
17854 #: ../fish/guestfish-actions.pod:3991 ../fish/guestfish-actions.pod:4045
17855 #: ../fish/guestfish-actions.pod:4068
17856 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17857 msgstr ""
17858
17859 # type: =head2
17860 #: ../fish/guestfish-actions.pod:391
17861 msgid "base64-out"
17862 msgstr ""
17863
17864 # type: verbatim
17865 #: ../fish/guestfish-actions.pod:393
17866 #, no-wrap
17867 msgid ""
17868 " base64-out filename (base64file|-)\n"
17869 "\n"
17870 msgstr ""
17871
17872 # type: =head2
17873 #: ../fish/guestfish-actions.pod:400
17874 msgid "blockdev-flushbufs"
17875 msgstr ""
17876
17877 # type: verbatim
17878 #: ../fish/guestfish-actions.pod:402
17879 #, no-wrap
17880 msgid ""
17881 " blockdev-flushbufs device\n"
17882 "\n"
17883 msgstr ""
17884
17885 # type: =head2
17886 #: ../fish/guestfish-actions.pod:409
17887 msgid "blockdev-getbsz"
17888 msgstr ""
17889
17890 # type: verbatim
17891 #: ../fish/guestfish-actions.pod:411
17892 #, no-wrap
17893 msgid ""
17894 " blockdev-getbsz device\n"
17895 "\n"
17896 msgstr ""
17897
17898 # type: =head2
17899 #: ../fish/guestfish-actions.pod:420
17900 msgid "blockdev-getro"
17901 msgstr ""
17902
17903 # type: verbatim
17904 #: ../fish/guestfish-actions.pod:422
17905 #, no-wrap
17906 msgid ""
17907 " blockdev-getro device\n"
17908 "\n"
17909 msgstr ""
17910
17911 # type: =head2
17912 #: ../fish/guestfish-actions.pod:429
17913 msgid "blockdev-getsize64"
17914 msgstr ""
17915
17916 # type: verbatim
17917 #: ../fish/guestfish-actions.pod:431
17918 #, no-wrap
17919 msgid ""
17920 " blockdev-getsize64 device\n"
17921 "\n"
17922 msgstr ""
17923
17924 # type: textblock
17925 #: ../fish/guestfish-actions.pod:435
17926 msgid "See also L</blockdev-getsz>."
17927 msgstr ""
17928
17929 # type: =head2
17930 #: ../fish/guestfish-actions.pod:439
17931 msgid "blockdev-getss"
17932 msgstr ""
17933
17934 # type: verbatim
17935 #: ../fish/guestfish-actions.pod:441
17936 #, no-wrap
17937 msgid ""
17938 " blockdev-getss device\n"
17939 "\n"
17940 msgstr ""
17941
17942 # type: textblock
17943 #: ../fish/guestfish-actions.pod:446
17944 msgid ""
17945 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
17946 msgstr ""
17947
17948 # type: =head2
17949 #: ../fish/guestfish-actions.pod:451
17950 msgid "blockdev-getsz"
17951 msgstr ""
17952
17953 # type: verbatim
17954 #: ../fish/guestfish-actions.pod:453
17955 #, no-wrap
17956 msgid ""
17957 " blockdev-getsz device\n"
17958 "\n"
17959 msgstr ""
17960
17961 # type: textblock
17962 #: ../fish/guestfish-actions.pod:458
17963 msgid ""
17964 "See also L</blockdev-getss> for the real sector size of the device, and L</"
17965 "blockdev-getsize64> for the more useful I<size in bytes>."
17966 msgstr ""
17967
17968 # type: =head2
17969 #: ../fish/guestfish-actions.pod:464
17970 msgid "blockdev-rereadpt"
17971 msgstr ""
17972
17973 # type: verbatim
17974 #: ../fish/guestfish-actions.pod:466
17975 #, no-wrap
17976 msgid ""
17977 " blockdev-rereadpt device\n"
17978 "\n"
17979 msgstr ""
17980
17981 # type: =head2
17982 #: ../fish/guestfish-actions.pod:472
17983 msgid "blockdev-setbsz"
17984 msgstr ""
17985
17986 # type: verbatim
17987 #: ../fish/guestfish-actions.pod:474
17988 #, no-wrap
17989 msgid ""
17990 " blockdev-setbsz device blocksize\n"
17991 "\n"
17992 msgstr ""
17993
17994 # type: =head2
17995 #: ../fish/guestfish-actions.pod:483
17996 msgid "blockdev-setro"
17997 msgstr ""
17998
17999 # type: verbatim
18000 #: ../fish/guestfish-actions.pod:485
18001 #, no-wrap
18002 msgid ""
18003 " blockdev-setro device\n"
18004 "\n"
18005 msgstr ""
18006
18007 # type: =head2
18008 #: ../fish/guestfish-actions.pod:491
18009 msgid "blockdev-setrw"
18010 msgstr ""
18011
18012 # type: verbatim
18013 #: ../fish/guestfish-actions.pod:493
18014 #, no-wrap
18015 msgid ""
18016 " blockdev-setrw device\n"
18017 "\n"
18018 msgstr ""
18019
18020 # type: =head2
18021 #: ../fish/guestfish-actions.pod:499
18022 msgid "case-sensitive-path"
18023 msgstr ""
18024
18025 # type: verbatim
18026 #: ../fish/guestfish-actions.pod:501
18027 #, no-wrap
18028 msgid ""
18029 " case-sensitive-path path\n"
18030 "\n"
18031 msgstr ""
18032
18033 # type: textblock
18034 #: ../fish/guestfish-actions.pod:525
18035 msgid ""
18036 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
18037 "WINDOWS/system32\"> (the exact return value would depend on details of how "
18038 "the directories were originally created under Windows)."
18039 msgstr ""
18040
18041 # type: textblock
18042 #: ../fish/guestfish-actions.pod:533
18043 msgid "See also L</realpath>."
18044 msgstr ""
18045
18046 # type: =head2
18047 #: ../fish/guestfish-actions.pod:535
18048 msgid "cat"
18049 msgstr ""
18050
18051 # type: verbatim
18052 #: ../fish/guestfish-actions.pod:537
18053 #, no-wrap
18054 msgid ""
18055 " cat path\n"
18056 "\n"
18057 msgstr ""
18058
18059 # type: textblock
18060 #: ../fish/guestfish-actions.pod:541
18061 msgid ""
18062 "Note that this function cannot correctly handle binary files (specifically, "
18063 "files containing C<\\0> character which is treated as end of string).  For "
18064 "those you need to use the L</read-file> or L</download> functions which have "
18065 "a more complex interface."
18066 msgstr ""
18067
18068 # type: =head2
18069 #: ../fish/guestfish-actions.pod:549
18070 msgid "checksum"
18071 msgstr ""
18072
18073 # type: verbatim
18074 #: ../fish/guestfish-actions.pod:551
18075 #, no-wrap
18076 msgid ""
18077 " checksum csumtype path\n"
18078 "\n"
18079 msgstr ""
18080
18081 # type: textblock
18082 #: ../fish/guestfish-actions.pod:594
18083 msgid "To get the checksum for a device, use L</checksum-device>."
18084 msgstr ""
18085
18086 # type: textblock
18087 #: ../fish/guestfish-actions.pod:596
18088 msgid "To get the checksums for many files, use L</checksums-out>."
18089 msgstr ""
18090
18091 # type: =head2
18092 #: ../fish/guestfish-actions.pod:598
18093 msgid "checksum-device"
18094 msgstr ""
18095
18096 # type: verbatim
18097 #: ../fish/guestfish-actions.pod:600
18098 #, no-wrap
18099 msgid ""
18100 " checksum-device csumtype device\n"
18101 "\n"
18102 msgstr ""
18103
18104 # type: textblock
18105 #: ../fish/guestfish-actions.pod:602
18106 msgid ""
18107 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18108 "device named C<device>.  For the types of checksums supported see the L</"
18109 "checksum> command."
18110 msgstr ""
18111
18112 # type: =head2
18113 #: ../fish/guestfish-actions.pod:606
18114 msgid "checksums-out"
18115 msgstr ""
18116
18117 # type: verbatim
18118 #: ../fish/guestfish-actions.pod:608
18119 #, no-wrap
18120 msgid ""
18121 " checksums-out csumtype directory (sumsfile|-)\n"
18122 "\n"
18123 msgstr ""
18124
18125 # type: =head2
18126 #: ../fish/guestfish-actions.pod:624
18127 msgid "chmod"
18128 msgstr ""
18129
18130 # type: verbatim
18131 #: ../fish/guestfish-actions.pod:626
18132 #, no-wrap
18133 msgid ""
18134 " chmod mode path\n"
18135 "\n"
18136 msgstr ""
18137
18138 # type: =head2
18139 #: ../fish/guestfish-actions.pod:637
18140 msgid "chown"
18141 msgstr ""
18142
18143 # type: verbatim
18144 #: ../fish/guestfish-actions.pod:639
18145 #, no-wrap
18146 msgid ""
18147 " chown owner group path\n"
18148 "\n"
18149 msgstr ""
18150
18151 # type: =head2
18152 #: ../fish/guestfish-actions.pod:647
18153 msgid "command"
18154 msgstr ""
18155
18156 # type: verbatim
18157 #: ../fish/guestfish-actions.pod:649
18158 #, no-wrap
18159 msgid ""
18160 " command 'arguments ...'\n"
18161 "\n"
18162 msgstr ""
18163
18164 # type: textblock
18165 #: ../fish/guestfish-actions.pod:656
18166 msgid ""
18167 "The single parameter is an argv-style list of arguments.  The first element "
18168 "is the name of the program to run.  Subsequent elements are parameters.  The "
18169 "list must be non-empty (ie. must contain a program name).  Note that the "
18170 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18171 msgstr ""
18172
18173 # type: =head2
18174 #: ../fish/guestfish-actions.pod:684
18175 msgid "command-lines"
18176 msgstr ""
18177
18178 # type: verbatim
18179 #: ../fish/guestfish-actions.pod:686
18180 #, no-wrap
18181 msgid ""
18182 " command-lines 'arguments ...'\n"
18183 "\n"
18184 msgstr ""
18185
18186 # type: textblock
18187 #: ../fish/guestfish-actions.pod:688
18188 msgid ""
18189 "This is the same as L</command>, but splits the result into a list of lines."
18190 msgstr ""
18191
18192 # type: textblock
18193 #: ../fish/guestfish-actions.pod:691
18194 msgid "See also: L</sh-lines>"
18195 msgstr ""
18196
18197 # type: =head2
18198 #: ../fish/guestfish-actions.pod:696
18199 msgid "config"
18200 msgstr ""
18201
18202 # type: verbatim
18203 #: ../fish/guestfish-actions.pod:698
18204 #, no-wrap
18205 msgid ""
18206 " config qemuparam qemuvalue\n"
18207 "\n"
18208 msgstr ""
18209
18210 # type: =head2
18211 #: ../fish/guestfish-actions.pod:709
18212 msgid "copy-size"
18213 msgstr ""
18214
18215 # type: verbatim
18216 #: ../fish/guestfish-actions.pod:711
18217 #, no-wrap
18218 msgid ""
18219 " copy-size src dest size\n"
18220 "\n"
18221 msgstr ""
18222
18223 # type: =head2
18224 #: ../fish/guestfish-actions.pod:719
18225 msgid "cp"
18226 msgstr ""
18227
18228 # type: verbatim
18229 #: ../fish/guestfish-actions.pod:721
18230 #, no-wrap
18231 msgid ""
18232 " cp src dest\n"
18233 "\n"
18234 msgstr ""
18235
18236 # type: =head2
18237 #: ../fish/guestfish-actions.pod:726
18238 msgid "cp-a"
18239 msgstr ""
18240
18241 # type: verbatim
18242 #: ../fish/guestfish-actions.pod:728
18243 #, no-wrap
18244 msgid ""
18245 " cp-a src dest\n"
18246 "\n"
18247 msgstr ""
18248
18249 # type: =head2
18250 #: ../fish/guestfish-actions.pod:733
18251 msgid "dd"
18252 msgstr ""
18253
18254 # type: verbatim
18255 #: ../fish/guestfish-actions.pod:735
18256 #, no-wrap
18257 msgid ""
18258 " dd src dest\n"
18259 "\n"
18260 msgstr ""
18261
18262 # type: textblock
18263 #: ../fish/guestfish-actions.pod:742
18264 msgid ""
18265 "If the destination is a device, it must be as large or larger than the "
18266 "source file or device, otherwise the copy will fail.  This command cannot do "
18267 "partial copies (see L</copy-size>)."
18268 msgstr ""
18269
18270 # type: =head2
18271 #: ../fish/guestfish-actions.pod:746
18272 msgid "debug"
18273 msgstr ""
18274
18275 # type: verbatim
18276 #: ../fish/guestfish-actions.pod:748
18277 #, no-wrap
18278 msgid ""
18279 " debug subcmd 'extraargs ...'\n"
18280 "\n"
18281 msgstr ""
18282
18283 # type: textblock
18284 #: ../fish/guestfish-actions.pod:750
18285 msgid ""
18286 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18287 "daemon) that runs inside the qemu subprocess."
18288 msgstr ""
18289
18290 # type: =head2
18291 #: ../fish/guestfish-actions.pod:758
18292 msgid "debug-upload"
18293 msgstr ""
18294
18295 # type: verbatim
18296 #: ../fish/guestfish-actions.pod:760
18297 #, no-wrap
18298 msgid ""
18299 " debug-upload (filename|-) tmpname mode\n"
18300 "\n"
18301 msgstr ""
18302
18303 # type: textblock
18304 #: ../fish/guestfish-actions.pod:762
18305 msgid ""
18306 "The L</debug-upload> command uploads a file to the libguestfs appliance."
18307 msgstr ""
18308
18309 # type: =head2
18310 #: ../fish/guestfish-actions.pod:771
18311 msgid "df"
18312 msgstr ""
18313
18314 # type: verbatim
18315 #: ../fish/guestfish-actions.pod:773
18316 #, no-wrap
18317 msgid ""
18318 " df\n"
18319 "\n"
18320 msgstr ""
18321
18322 # type: =head2
18323 #: ../fish/guestfish-actions.pod:781
18324 msgid "df-h"
18325 msgstr ""
18326
18327 # type: verbatim
18328 #: ../fish/guestfish-actions.pod:783
18329 #, no-wrap
18330 msgid ""
18331 " df-h\n"
18332 "\n"
18333 msgstr ""
18334
18335 # type: =head2
18336 #: ../fish/guestfish-actions.pod:792
18337 msgid "dmesg"
18338 msgstr ""
18339
18340 # type: verbatim
18341 #: ../fish/guestfish-actions.pod:794
18342 #, no-wrap
18343 msgid ""
18344 " dmesg\n"
18345 "\n"
18346 msgstr ""
18347
18348 # type: textblock
18349 #: ../fish/guestfish-actions.pod:800
18350 msgid ""
18351 "Another way to get the same information is to enable verbose messages with "
18352 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18353 "before running the program."
18354 msgstr ""
18355
18356 # type: =head2
18357 #: ../fish/guestfish-actions.pod:805
18358 msgid "download"
18359 msgstr ""
18360
18361 # type: verbatim
18362 #: ../fish/guestfish-actions.pod:807
18363 #, no-wrap
18364 msgid ""
18365 " download remotefilename (filename|-)\n"
18366 "\n"
18367 msgstr ""
18368
18369 # type: textblock
18370 #: ../fish/guestfish-actions.pod:814
18371 msgid "See also L</upload>, L</cat>."
18372 msgstr ""
18373
18374 # type: =head2
18375 #: ../fish/guestfish-actions.pod:818
18376 msgid "download-offset"
18377 msgstr ""
18378
18379 # type: verbatim
18380 #: ../fish/guestfish-actions.pod:820
18381 #, no-wrap
18382 msgid ""
18383 " download-offset remotefilename (filename|-) offset size\n"
18384 "\n"
18385 msgstr ""
18386
18387 # type: textblock
18388 #: ../fish/guestfish-actions.pod:828
18389 msgid ""
18390 "Note that there is no limit on the amount of data that can be downloaded "
18391 "with this call, unlike with L</pread>, and this call always reads the full "
18392 "amount unless an error occurs."
18393 msgstr ""
18394
18395 # type: textblock
18396 #: ../fish/guestfish-actions.pod:833
18397 msgid "See also L</download>, L</pread>."
18398 msgstr ""
18399
18400 # type: =head2
18401 #: ../fish/guestfish-actions.pod:837
18402 msgid "drop-caches"
18403 msgstr ""
18404
18405 # type: verbatim
18406 #: ../fish/guestfish-actions.pod:839
18407 #, no-wrap
18408 msgid ""
18409 " drop-caches whattodrop\n"
18410 "\n"
18411 msgstr ""
18412
18413 # type: =head2
18414 #: ../fish/guestfish-actions.pod:851
18415 msgid "du"
18416 msgstr ""
18417
18418 # type: verbatim
18419 #: ../fish/guestfish-actions.pod:853
18420 #, no-wrap
18421 msgid ""
18422 " du path\n"
18423 "\n"
18424 msgstr ""
18425
18426 # type: =head2
18427 #: ../fish/guestfish-actions.pod:865
18428 msgid "e2fsck-f"
18429 msgstr ""
18430
18431 # type: verbatim
18432 #: ../fish/guestfish-actions.pod:867
18433 #, no-wrap
18434 msgid ""
18435 " e2fsck-f device\n"
18436 "\n"
18437 msgstr ""
18438
18439 # type: textblock
18440 #: ../fish/guestfish-actions.pod:873
18441 msgid ""
18442 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18443 "should use L</fsck>."
18444 msgstr ""
18445
18446 # type: =head2
18447 #: ../fish/guestfish-actions.pod:876
18448 msgid "echo-daemon"
18449 msgstr ""
18450
18451 # type: verbatim
18452 #: ../fish/guestfish-actions.pod:878
18453 #, no-wrap
18454 msgid ""
18455 " echo-daemon 'words ...'\n"
18456 "\n"
18457 msgstr ""
18458
18459 # type: textblock
18460 #: ../fish/guestfish-actions.pod:885
18461 msgid "See also L</ping-daemon>."
18462 msgstr ""
18463
18464 # type: =head2
18465 #: ../fish/guestfish-actions.pod:887
18466 msgid "egrep"
18467 msgstr ""
18468
18469 # type: verbatim
18470 #: ../fish/guestfish-actions.pod:889
18471 #, no-wrap
18472 msgid ""
18473 " egrep regex path\n"
18474 "\n"
18475 msgstr ""
18476
18477 # type: =head2
18478 #: ../fish/guestfish-actions.pod:897
18479 msgid "egrepi"
18480 msgstr ""
18481
18482 # type: verbatim
18483 #: ../fish/guestfish-actions.pod:899
18484 #, no-wrap
18485 msgid ""
18486 " egrepi regex path\n"
18487 "\n"
18488 msgstr ""
18489
18490 # type: =head2
18491 #: ../fish/guestfish-actions.pod:907
18492 msgid "equal"
18493 msgstr ""
18494
18495 # type: verbatim
18496 #: ../fish/guestfish-actions.pod:909
18497 #, no-wrap
18498 msgid ""
18499 " equal file1 file2\n"
18500 "\n"
18501 msgstr ""
18502
18503 # type: =head2
18504 #: ../fish/guestfish-actions.pod:916
18505 msgid "exists"
18506 msgstr ""
18507
18508 # type: verbatim
18509 #: ../fish/guestfish-actions.pod:918
18510 #, no-wrap
18511 msgid ""
18512 " exists path\n"
18513 "\n"
18514 msgstr ""
18515
18516 # type: textblock
18517 #: ../fish/guestfish-actions.pod:923
18518 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18519 msgstr ""
18520
18521 # type: =head2
18522 #: ../fish/guestfish-actions.pod:925
18523 msgid "fallocate"
18524 msgstr ""
18525
18526 # type: verbatim
18527 #: ../fish/guestfish-actions.pod:927
18528 #, no-wrap
18529 msgid ""
18530 " fallocate path len\n"
18531 "\n"
18532 msgstr ""
18533
18534 # type: =head2
18535 #: ../fish/guestfish-actions.pod:944
18536 msgid "fallocate64"
18537 msgstr ""
18538
18539 # type: verbatim
18540 #: ../fish/guestfish-actions.pod:946
18541 #, no-wrap
18542 msgid ""
18543 " fallocate64 path len\n"
18544 "\n"
18545 msgstr ""
18546
18547 # type: textblock
18548 #: ../fish/guestfish-actions.pod:952
18549 msgid ""
18550 "Note that this call allocates disk blocks for the file.  To create a sparse "
18551 "file use L</truncate-size> instead."
18552 msgstr ""
18553
18554 # type: textblock
18555 #: ../fish/guestfish-actions.pod:955
18556 msgid ""
18557 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18558 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18559 "maximum size of files created through that call to 1GB."
18560 msgstr ""
18561
18562 # type: =head2
18563 #: ../fish/guestfish-actions.pod:964
18564 msgid "fgrep"
18565 msgstr ""
18566
18567 # type: verbatim
18568 #: ../fish/guestfish-actions.pod:966
18569 #, no-wrap
18570 msgid ""
18571 " fgrep pattern path\n"
18572 "\n"
18573 msgstr ""
18574
18575 # type: =head2
18576 #: ../fish/guestfish-actions.pod:974
18577 msgid "fgrepi"
18578 msgstr ""
18579
18580 # type: verbatim
18581 #: ../fish/guestfish-actions.pod:976
18582 #, no-wrap
18583 msgid ""
18584 " fgrepi pattern path\n"
18585 "\n"
18586 msgstr ""
18587
18588 # type: =head2
18589 #: ../fish/guestfish-actions.pod:984
18590 msgid "file"
18591 msgstr ""
18592
18593 # type: verbatim
18594 #: ../fish/guestfish-actions.pod:986
18595 #, no-wrap
18596 msgid ""
18597 " file path\n"
18598 "\n"
18599 msgstr ""
18600
18601 # type: textblock
18602 #: ../fish/guestfish-actions.pod:998
18603 msgid ""
18604 "This command can also be used on C</dev/> devices (and partitions, LV "
18605 "names).  You can for example use this to determine if a device contains a "
18606 "filesystem, although it's usually better to use L</vfs-type>."
18607 msgstr ""
18608
18609 # type: =head2
18610 #: ../fish/guestfish-actions.pod:1008
18611 msgid "file-architecture"
18612 msgstr ""
18613
18614 # type: verbatim
18615 #: ../fish/guestfish-actions.pod:1010
18616 #, no-wrap
18617 msgid ""
18618 " file-architecture filename\n"
18619 "\n"
18620 msgstr ""
18621
18622 # type: =head2
18623 #: ../fish/guestfish-actions.pod:1113
18624 msgid "filesize"
18625 msgstr ""
18626
18627 # type: verbatim
18628 #: ../fish/guestfish-actions.pod:1115
18629 #, no-wrap
18630 msgid ""
18631 " filesize file\n"
18632 "\n"
18633 msgstr ""
18634
18635 # type: textblock
18636 #: ../fish/guestfish-actions.pod:1119
18637 msgid ""
18638 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
18639 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
18640 msgstr ""
18641
18642 # type: =head2
18643 #: ../fish/guestfish-actions.pod:1123
18644 msgid "fill"
18645 msgstr ""
18646
18647 # type: verbatim
18648 #: ../fish/guestfish-actions.pod:1125
18649 #, no-wrap
18650 msgid ""
18651 " fill c len path\n"
18652 "\n"
18653 msgstr ""
18654
18655 # type: textblock
18656 #: ../fish/guestfish-actions.pod:1131
18657 msgid ""
18658 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18659 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18660 "L</fill-pattern>."
18661 msgstr ""
18662
18663 # type: =head2
18664 #: ../fish/guestfish-actions.pod:1136
18665 msgid "fill-pattern"
18666 msgstr ""
18667
18668 # type: verbatim
18669 #: ../fish/guestfish-actions.pod:1138
18670 #, no-wrap
18671 msgid ""
18672 " fill-pattern pattern len path\n"
18673 "\n"
18674 msgstr ""
18675
18676 # type: textblock
18677 #: ../fish/guestfish-actions.pod:1140
18678 msgid ""
18679 "This function is like L</fill> except that it creates a new file of length "
18680 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18681 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18682 "bytes."
18683 msgstr ""
18684
18685 # type: =head2
18686 #: ../fish/guestfish-actions.pod:1145
18687 msgid "find"
18688 msgstr ""
18689
18690 # type: verbatim
18691 #: ../fish/guestfish-actions.pod:1147
18692 #, no-wrap
18693 msgid ""
18694 " find directory\n"
18695 "\n"
18696 msgstr ""
18697
18698 # type: textblock
18699 #: ../fish/guestfish-actions.pod:1161
18700 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18701 msgstr ""
18702
18703 # type: textblock
18704 #: ../fish/guestfish-actions.pod:1174
18705 msgid "See also L</find0>."
18706 msgstr ""
18707
18708 # type: =head2
18709 #: ../fish/guestfish-actions.pod:1179
18710 msgid "find0"
18711 msgstr ""
18712
18713 # type: verbatim
18714 #: ../fish/guestfish-actions.pod:1181
18715 #, no-wrap
18716 msgid ""
18717 " find0 directory (files|-)\n"
18718 "\n"
18719 msgstr ""
18720
18721 # type: textblock
18722 #: ../fish/guestfish-actions.pod:1187
18723 msgid ""
18724 "This command works the same way as L</find> with the following exceptions:"
18725 msgstr ""
18726
18727 # type: =head2
18728 #: ../fish/guestfish-actions.pod:1214
18729 msgid "findfs-label"
18730 msgstr ""
18731
18732 # type: verbatim
18733 #: ../fish/guestfish-actions.pod:1216
18734 #, no-wrap
18735 msgid ""
18736 " findfs-label label\n"
18737 "\n"
18738 msgstr ""
18739
18740 # type: textblock
18741 #: ../fish/guestfish-actions.pod:1222
18742 msgid "To find the label of a filesystem, use L</vfs-label>."
18743 msgstr ""
18744
18745 # type: =head2
18746 #: ../fish/guestfish-actions.pod:1224
18747 msgid "findfs-uuid"
18748 msgstr ""
18749
18750 # type: verbatim
18751 #: ../fish/guestfish-actions.pod:1226
18752 #, no-wrap
18753 msgid ""
18754 " findfs-uuid uuid\n"
18755 "\n"
18756 msgstr ""
18757
18758 # type: textblock
18759 #: ../fish/guestfish-actions.pod:1232
18760 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18761 msgstr ""
18762
18763 # type: =head2
18764 #: ../fish/guestfish-actions.pod:1234
18765 msgid "fsck"
18766 msgstr ""
18767
18768 # type: verbatim
18769 #: ../fish/guestfish-actions.pod:1236
18770 #, no-wrap
18771 msgid ""
18772 " fsck fstype device\n"
18773 "\n"
18774 msgstr ""
18775
18776 # type: =head2
18777 #: ../fish/guestfish-actions.pod:1266
18778 msgid "get-append"
18779 msgstr ""
18780
18781 # type: verbatim
18782 #: ../fish/guestfish-actions.pod:1268
18783 #, no-wrap
18784 msgid ""
18785 " get-append\n"
18786 "\n"
18787 msgstr ""
18788
18789 # type: =head2
18790 #: ../fish/guestfish-actions.pod:1275
18791 msgid "get-autosync"
18792 msgstr ""
18793
18794 # type: verbatim
18795 #: ../fish/guestfish-actions.pod:1277
18796 #, no-wrap
18797 msgid ""
18798 " get-autosync\n"
18799 "\n"
18800 msgstr ""
18801
18802 # type: =head2
18803 #: ../fish/guestfish-actions.pod:1281
18804 msgid "get-direct"
18805 msgstr ""
18806
18807 # type: verbatim
18808 #: ../fish/guestfish-actions.pod:1283
18809 #, no-wrap
18810 msgid ""
18811 " get-direct\n"
18812 "\n"
18813 msgstr ""
18814
18815 # type: =head2
18816 #: ../fish/guestfish-actions.pod:1287
18817 msgid "get-e2label"
18818 msgstr ""
18819
18820 # type: verbatim
18821 #: ../fish/guestfish-actions.pod:1289
18822 #, no-wrap
18823 msgid ""
18824 " get-e2label device\n"
18825 "\n"
18826 msgstr ""
18827
18828 # type: =head2
18829 #: ../fish/guestfish-actions.pod:1301
18830 msgid "get-e2uuid"
18831 msgstr ""
18832
18833 # type: verbatim
18834 #: ../fish/guestfish-actions.pod:1303
18835 #, no-wrap
18836 msgid ""
18837 " get-e2uuid device\n"
18838 "\n"
18839 msgstr ""
18840
18841 # type: =head2
18842 #: ../fish/guestfish-actions.pod:1315
18843 msgid "get-memsize"
18844 msgstr ""
18845
18846 # type: verbatim
18847 #: ../fish/guestfish-actions.pod:1317
18848 #, no-wrap
18849 msgid ""
18850 " get-memsize\n"
18851 "\n"
18852 msgstr ""
18853
18854 # type: textblock
18855 #: ../fish/guestfish-actions.pod:1322
18856 msgid ""
18857 "If L</set-memsize> was not called on this handle, and if "
18858 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18859 "value for memsize."
18860 msgstr ""
18861
18862 # type: =head2
18863 #: ../fish/guestfish-actions.pod:1329
18864 msgid "get-network"
18865 msgstr ""
18866
18867 # type: verbatim
18868 #: ../fish/guestfish-actions.pod:1331
18869 #, no-wrap
18870 msgid ""
18871 " get-network\n"
18872 "\n"
18873 msgstr ""
18874
18875 # type: =head2
18876 #: ../fish/guestfish-actions.pod:1335
18877 msgid "get-path"
18878 msgstr ""
18879
18880 # type: verbatim
18881 #: ../fish/guestfish-actions.pod:1337
18882 #, no-wrap
18883 msgid ""
18884 " get-path\n"
18885 "\n"
18886 msgstr ""
18887
18888 # type: =head2
18889 #: ../fish/guestfish-actions.pod:1344
18890 msgid "get-pid"
18891 msgstr ""
18892
18893 # type: =head2
18894 #: ../fish/guestfish-actions.pod:1346
18895 msgid "pid"
18896 msgstr ""
18897
18898 # type: verbatim
18899 #: ../fish/guestfish-actions.pod:1348
18900 #, no-wrap
18901 msgid ""
18902 " get-pid\n"
18903 "\n"
18904 msgstr ""
18905
18906 # type: =head2
18907 #: ../fish/guestfish-actions.pod:1355
18908 msgid "get-qemu"
18909 msgstr ""
18910
18911 # type: verbatim
18912 #: ../fish/guestfish-actions.pod:1357
18913 #, no-wrap
18914 msgid ""
18915 " get-qemu\n"
18916 "\n"
18917 msgstr ""
18918
18919 # type: =head2
18920 #: ../fish/guestfish-actions.pod:1364
18921 msgid "get-recovery-proc"
18922 msgstr ""
18923
18924 # type: verbatim
18925 #: ../fish/guestfish-actions.pod:1366
18926 #, no-wrap
18927 msgid ""
18928 " get-recovery-proc\n"
18929 "\n"
18930 msgstr ""
18931
18932 # type: =head2
18933 #: ../fish/guestfish-actions.pod:1370
18934 msgid "get-selinux"
18935 msgstr ""
18936
18937 # type: verbatim
18938 #: ../fish/guestfish-actions.pod:1372
18939 #, no-wrap
18940 msgid ""
18941 " get-selinux\n"
18942 "\n"
18943 msgstr ""
18944
18945 # type: textblock
18946 #: ../fish/guestfish-actions.pod:1374
18947 msgid ""
18948 "This returns the current setting of the selinux flag which is passed to the "
18949 "appliance at boot time.  See L</set-selinux>."
18950 msgstr ""
18951
18952 # type: =head2
18953 #: ../fish/guestfish-actions.pod:1380
18954 msgid "get-state"
18955 msgstr ""
18956
18957 # type: verbatim
18958 #: ../fish/guestfish-actions.pod:1382
18959 #, no-wrap
18960 msgid ""
18961 " get-state\n"
18962 "\n"
18963 msgstr ""
18964
18965 # type: =head2
18966 #: ../fish/guestfish-actions.pod:1389
18967 msgid "get-trace"
18968 msgstr ""
18969
18970 # type: verbatim
18971 #: ../fish/guestfish-actions.pod:1391
18972 #, no-wrap
18973 msgid ""
18974 " get-trace\n"
18975 "\n"
18976 msgstr ""
18977
18978 # type: =head2
18979 #: ../fish/guestfish-actions.pod:1395
18980 msgid "get-umask"
18981 msgstr ""
18982
18983 # type: verbatim
18984 #: ../fish/guestfish-actions.pod:1397
18985 #, no-wrap
18986 msgid ""
18987 " get-umask\n"
18988 "\n"
18989 msgstr ""
18990
18991 # type: textblock
18992 #: ../fish/guestfish-actions.pod:1399
18993 msgid ""
18994 "Return the current umask.  By default the umask is C<022> unless it has been "
18995 "set by calling L</umask>."
18996 msgstr ""
18997
18998 # type: =head2
18999 #: ../fish/guestfish-actions.pod:1402
19000 msgid "get-verbose"
19001 msgstr ""
19002
19003 # type: verbatim
19004 #: ../fish/guestfish-actions.pod:1404
19005 #, no-wrap
19006 msgid ""
19007 " get-verbose\n"
19008 "\n"
19009 msgstr ""
19010
19011 # type: =head2
19012 #: ../fish/guestfish-actions.pod:1408
19013 msgid "getcon"
19014 msgstr ""
19015
19016 # type: verbatim
19017 #: ../fish/guestfish-actions.pod:1410
19018 #, no-wrap
19019 msgid ""
19020 " getcon\n"
19021 "\n"
19022 msgstr ""
19023
19024 # type: textblock
19025 #: ../fish/guestfish-actions.pod:1414
19026 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19027 msgstr ""
19028
19029 # type: =head2
19030 #: ../fish/guestfish-actions.pod:1417
19031 msgid "getxattrs"
19032 msgstr ""
19033
19034 # type: verbatim
19035 #: ../fish/guestfish-actions.pod:1419
19036 #, no-wrap
19037 msgid ""
19038 " getxattrs path\n"
19039 "\n"
19040 msgstr ""
19041
19042 # type: textblock
19043 #: ../fish/guestfish-actions.pod:1427
19044 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19045 msgstr ""
19046
19047 # type: =head2
19048 #: ../fish/guestfish-actions.pod:1429
19049 msgid "glob-expand"
19050 msgstr ""
19051
19052 # type: verbatim
19053 #: ../fish/guestfish-actions.pod:1431
19054 #, no-wrap
19055 msgid ""
19056 " glob-expand pattern\n"
19057 "\n"
19058 msgstr ""
19059
19060 # type: =head2
19061 #: ../fish/guestfish-actions.pod:1444
19062 msgid "grep"
19063 msgstr ""
19064
19065 # type: verbatim
19066 #: ../fish/guestfish-actions.pod:1446
19067 #, no-wrap
19068 msgid ""
19069 " grep regex path\n"
19070 "\n"
19071 msgstr ""
19072
19073 # type: =head2
19074 #: ../fish/guestfish-actions.pod:1454
19075 msgid "grepi"
19076 msgstr ""
19077
19078 # type: verbatim
19079 #: ../fish/guestfish-actions.pod:1456
19080 #, no-wrap
19081 msgid ""
19082 " grepi regex path\n"
19083 "\n"
19084 msgstr ""
19085
19086 # type: =head2
19087 #: ../fish/guestfish-actions.pod:1464
19088 msgid "grub-install"
19089 msgstr ""
19090
19091 # type: verbatim
19092 #: ../fish/guestfish-actions.pod:1466
19093 #, no-wrap
19094 msgid ""
19095 " grub-install root device\n"
19096 "\n"
19097 msgstr ""
19098
19099 # type: =head2
19100 #: ../fish/guestfish-actions.pod:1482
19101 msgid "head"
19102 msgstr ""
19103
19104 # type: verbatim
19105 #: ../fish/guestfish-actions.pod:1484
19106 #, no-wrap
19107 msgid ""
19108 " head path\n"
19109 "\n"
19110 msgstr ""
19111
19112 # type: =head2
19113 #: ../fish/guestfish-actions.pod:1492
19114 msgid "head-n"
19115 msgstr ""
19116
19117 # type: verbatim
19118 #: ../fish/guestfish-actions.pod:1494
19119 #, no-wrap
19120 msgid ""
19121 " head-n nrlines path\n"
19122 "\n"
19123 msgstr ""
19124
19125 # type: =head2
19126 #: ../fish/guestfish-actions.pod:1507
19127 msgid "hexdump"
19128 msgstr ""
19129
19130 # type: verbatim
19131 #: ../fish/guestfish-actions.pod:1509
19132 #, no-wrap
19133 msgid ""
19134 " hexdump path\n"
19135 "\n"
19136 msgstr ""
19137
19138 # type: =head2
19139 #: ../fish/guestfish-actions.pod:1517
19140 msgid "initrd-cat"
19141 msgstr ""
19142
19143 # type: verbatim
19144 #: ../fish/guestfish-actions.pod:1519
19145 #, no-wrap
19146 msgid ""
19147 " initrd-cat initrdpath filename\n"
19148 "\n"
19149 msgstr ""
19150
19151 # type: textblock
19152 #: ../fish/guestfish-actions.pod:1531
19153 msgid "See also L</initrd-list>."
19154 msgstr ""
19155
19156 # type: =head2
19157 #: ../fish/guestfish-actions.pod:1536
19158 msgid "initrd-list"
19159 msgstr ""
19160
19161 # type: verbatim
19162 #: ../fish/guestfish-actions.pod:1538
19163 #, no-wrap
19164 msgid ""
19165 " initrd-list path\n"
19166 "\n"
19167 msgstr ""
19168
19169 # type: =head2
19170 #: ../fish/guestfish-actions.pod:1550
19171 msgid "inotify-add-watch"
19172 msgstr ""
19173
19174 # type: verbatim
19175 #: ../fish/guestfish-actions.pod:1552
19176 #, no-wrap
19177 msgid ""
19178 " inotify-add-watch path mask\n"
19179 "\n"
19180 msgstr ""
19181
19182 # type: =head2
19183 #: ../fish/guestfish-actions.pod:1564
19184 msgid "inotify-close"
19185 msgstr ""
19186
19187 # type: verbatim
19188 #: ../fish/guestfish-actions.pod:1566
19189 #, no-wrap
19190 msgid ""
19191 " inotify-close\n"
19192 "\n"
19193 msgstr ""
19194
19195 # type: =head2
19196 #: ../fish/guestfish-actions.pod:1572
19197 msgid "inotify-files"
19198 msgstr ""
19199
19200 # type: verbatim
19201 #: ../fish/guestfish-actions.pod:1574
19202 #, no-wrap
19203 msgid ""
19204 " inotify-files\n"
19205 "\n"
19206 msgstr ""
19207
19208 # type: textblock
19209 #: ../fish/guestfish-actions.pod:1576
19210 msgid ""
19211 "This function is a helpful wrapper around L</inotify-read> which just "
19212 "returns a list of pathnames of objects that were touched.  The returned "
19213 "pathnames are sorted and deduplicated."
19214 msgstr ""
19215
19216 # type: =head2
19217 #: ../fish/guestfish-actions.pod:1580
19218 msgid "inotify-init"
19219 msgstr ""
19220
19221 # type: verbatim
19222 #: ../fish/guestfish-actions.pod:1582
19223 #, no-wrap
19224 msgid ""
19225 " inotify-init maxevents\n"
19226 "\n"
19227 msgstr ""
19228
19229 # type: textblock
19230 #: ../fish/guestfish-actions.pod:1588
19231 msgid ""
19232 "C<maxevents> is the maximum number of events which will be queued up between "
19233 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19234 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19235 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19236 "but records the fact that it threw them away by setting a flag "
19237 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19238 msgstr ""
19239
19240 # type: textblock
19241 #: ../fish/guestfish-actions.pod:1598
19242 msgid ""
19243 "Before any events are generated, you have to add some watches to the "
19244 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19245 "L</inotify-watch-all>."
19246 msgstr ""
19247
19248 # type: textblock
19249 #: ../fish/guestfish-actions.pod:1604
19250 msgid ""
19251 "Queued up events should be read periodically by calling L</inotify-read> (or "
19252 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19253 "If you don't read the events out often enough then you risk the internal "
19254 "queue overflowing."
19255 msgstr ""
19256
19257 # type: textblock
19258 #: ../fish/guestfish-actions.pod:1611
19259 msgid ""
19260 "The handle should be closed after use by calling L</inotify-close>.  This "
19261 "also removes any watches automatically."
19262 msgstr ""
19263
19264 # type: =head2
19265 #: ../fish/guestfish-actions.pod:1620
19266 msgid "inotify-read"
19267 msgstr ""
19268
19269 # type: verbatim
19270 #: ../fish/guestfish-actions.pod:1622
19271 #, no-wrap
19272 msgid ""
19273 " inotify-read\n"
19274 "\n"
19275 msgstr ""
19276
19277 # type: =head2
19278 #: ../fish/guestfish-actions.pod:1635
19279 msgid "inotify-rm-watch"
19280 msgstr ""
19281
19282 # type: verbatim
19283 #: ../fish/guestfish-actions.pod:1637
19284 #, no-wrap
19285 msgid ""
19286 " inotify-rm-watch wd\n"
19287 "\n"
19288 msgstr ""
19289
19290 # type: textblock
19291 #: ../fish/guestfish-actions.pod:1639
19292 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19293 msgstr ""
19294
19295 # type: =head2
19296 #: ../fish/guestfish-actions.pod:1642
19297 msgid "inspect-get-arch"
19298 msgstr ""
19299
19300 # type: verbatim
19301 #: ../fish/guestfish-actions.pod:1644
19302 #, no-wrap
19303 msgid ""
19304 " inspect-get-arch root\n"
19305 "\n"
19306 msgstr ""
19307
19308 # type: textblock
19309 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662
19310 #: ../fish/guestfish-actions.pod:1708 ../fish/guestfish-actions.pod:1726
19311 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1762
19312 #: ../fish/guestfish-actions.pod:1785 ../fish/guestfish-actions.pod:1802
19313 msgid ""
19314 "This function should only be called with a root device string as returned by "
19315 "L</inspect-os>."
19316 msgstr ""
19317
19318 # type: textblock
19319 #: ../fish/guestfish-actions.pod:1649
19320 msgid ""
19321 "This returns the architecture of the inspected operating system.  The "
19322 "possible return values are listed under L</file-architecture>."
19323 msgstr ""
19324
19325 # type: =head2
19326 #: ../fish/guestfish-actions.pod:1658
19327 msgid "inspect-get-distro"
19328 msgstr ""
19329
19330 # type: verbatim
19331 #: ../fish/guestfish-actions.pod:1660
19332 #, no-wrap
19333 msgid ""
19334 " inspect-get-distro root\n"
19335 "\n"
19336 msgstr ""
19337
19338 # type: =head2
19339 #: ../fish/guestfish-actions.pod:1704
19340 msgid "inspect-get-filesystems"
19341 msgstr ""
19342
19343 # type: verbatim
19344 #: ../fish/guestfish-actions.pod:1706
19345 #, no-wrap
19346 msgid ""
19347 " inspect-get-filesystems root\n"
19348 "\n"
19349 msgstr ""
19350
19351 # type: textblock
19352 #: ../fish/guestfish-actions.pod:1719
19353 msgid ""
19354 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19355 "get-mountpoints>."
19356 msgstr ""
19357
19358 # type: =head2
19359 #: ../fish/guestfish-actions.pod:1722
19360 msgid "inspect-get-major-version"
19361 msgstr ""
19362
19363 # type: verbatim
19364 #: ../fish/guestfish-actions.pod:1724
19365 #, no-wrap
19366 msgid ""
19367 " inspect-get-major-version root\n"
19368 "\n"
19369 msgstr ""
19370
19371 # type: =head2
19372 #: ../fish/guestfish-actions.pod:1743
19373 msgid "inspect-get-minor-version"
19374 msgstr ""
19375
19376 # type: verbatim
19377 #: ../fish/guestfish-actions.pod:1745
19378 #, no-wrap
19379 msgid ""
19380 " inspect-get-minor-version root\n"
19381 "\n"
19382 msgstr ""
19383
19384 # type: textblock
19385 #: ../fish/guestfish-actions.pod:1755
19386 msgid ""
19387 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19388 "get-major-version>."
19389 msgstr ""
19390
19391 # type: =head2
19392 #: ../fish/guestfish-actions.pod:1758
19393 msgid "inspect-get-mountpoints"
19394 msgstr ""
19395
19396 # type: verbatim
19397 #: ../fish/guestfish-actions.pod:1760
19398 #, no-wrap
19399 msgid ""
19400 " inspect-get-mountpoints root\n"
19401 "\n"
19402 msgstr ""
19403
19404 # type: textblock
19405 #: ../fish/guestfish-actions.pod:1778
19406 msgid ""
19407 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19408 "get-filesystems>."
19409 msgstr ""
19410
19411 # type: =head2
19412 #: ../fish/guestfish-actions.pod:1781
19413 msgid "inspect-get-product-name"
19414 msgstr ""
19415
19416 # type: verbatim
19417 #: ../fish/guestfish-actions.pod:1783
19418 #, no-wrap
19419 msgid ""
19420 " inspect-get-product-name root\n"
19421 "\n"
19422 msgstr ""
19423
19424 # type: =head2
19425 #: ../fish/guestfish-actions.pod:1798
19426 msgid "inspect-get-type"
19427 msgstr ""
19428
19429 # type: verbatim
19430 #: ../fish/guestfish-actions.pod:1800
19431 #, no-wrap
19432 msgid ""
19433 " inspect-get-type root\n"
19434 "\n"
19435 msgstr ""
19436
19437 # type: =head2
19438 #: ../fish/guestfish-actions.pod:1829
19439 msgid "inspect-os"
19440 msgstr ""
19441
19442 # type: verbatim
19443 #: ../fish/guestfish-actions.pod:1831
19444 #, no-wrap
19445 msgid ""
19446 " inspect-os\n"
19447 "\n"
19448 msgstr ""
19449
19450 # type: textblock
19451 #: ../fish/guestfish-actions.pod:1846
19452 msgid ""
19453 "You can pass the root string(s) returned to other L</inspect-get-*> "
19454 "functions in order to query further information about each operating system, "
19455 "such as the name and version."
19456 msgstr ""
19457
19458 # type: textblock
19459 #: ../fish/guestfish-actions.pod:1851
19460 msgid ""
19461 "This function uses other libguestfs features such as L</mount-ro> and L</"
19462 "umount-all> in order to mount and unmount filesystems and look at the "
19463 "contents.  This should be called with no disks currently mounted.  The "
19464 "function may also use Augeas, so any existing Augeas handle will be closed."
19465 msgstr ""
19466
19467 # type: textblock
19468 #: ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:2019
19469 #: ../fish/guestfish-actions.pod:2065
19470 msgid "See also L</list-filesystems>."
19471 msgstr ""
19472
19473 # type: =head2
19474 #: ../fish/guestfish-actions.pod:1865
19475 msgid "is-blockdev"
19476 msgstr ""
19477
19478 # type: verbatim
19479 #: ../fish/guestfish-actions.pod:1867
19480 #, no-wrap
19481 msgid ""
19482 " is-blockdev path\n"
19483 "\n"
19484 msgstr ""
19485
19486 # type: textblock
19487 #: ../fish/guestfish-actions.pod:1872 ../fish/guestfish-actions.pod:1890
19488 #: ../fish/guestfish-actions.pod:1909 ../fish/guestfish-actions.pod:1918
19489 #: ../fish/guestfish-actions.pod:1928 ../fish/guestfish-actions.pod:1962
19490 #: ../fish/guestfish-actions.pod:1971
19491 msgid "See also L</stat>."
19492 msgstr ""
19493
19494 # type: =head2
19495 #: ../fish/guestfish-actions.pod:1874
19496 msgid "is-busy"
19497 msgstr ""
19498
19499 # type: verbatim
19500 #: ../fish/guestfish-actions.pod:1876
19501 #, no-wrap
19502 msgid ""
19503 " is-busy\n"
19504 "\n"
19505 msgstr ""
19506
19507 # type: =head2
19508 #: ../fish/guestfish-actions.pod:1883
19509 msgid "is-chardev"
19510 msgstr ""
19511
19512 # type: verbatim
19513 #: ../fish/guestfish-actions.pod:1885
19514 #, no-wrap
19515 msgid ""
19516 " is-chardev path\n"
19517 "\n"
19518 msgstr ""
19519
19520 # type: =head2
19521 #: ../fish/guestfish-actions.pod:1892
19522 msgid "is-config"
19523 msgstr ""
19524
19525 # type: verbatim
19526 #: ../fish/guestfish-actions.pod:1894
19527 #, no-wrap
19528 msgid ""
19529 " is-config\n"
19530 "\n"
19531 msgstr ""
19532
19533 # type: =head2
19534 #: ../fish/guestfish-actions.pod:1901
19535 msgid "is-dir"
19536 msgstr ""
19537
19538 # type: verbatim
19539 #: ../fish/guestfish-actions.pod:1903
19540 #, no-wrap
19541 msgid ""
19542 " is-dir path\n"
19543 "\n"
19544 msgstr ""
19545
19546 # type: =head2
19547 #: ../fish/guestfish-actions.pod:1911
19548 msgid "is-fifo"
19549 msgstr ""
19550
19551 # type: verbatim
19552 #: ../fish/guestfish-actions.pod:1913
19553 #, no-wrap
19554 msgid ""
19555 " is-fifo path\n"
19556 "\n"
19557 msgstr ""
19558
19559 # type: =head2
19560 #: ../fish/guestfish-actions.pod:1920
19561 msgid "is-file"
19562 msgstr ""
19563
19564 # type: verbatim
19565 #: ../fish/guestfish-actions.pod:1922
19566 #, no-wrap
19567 msgid ""
19568 " is-file path\n"
19569 "\n"
19570 msgstr ""
19571
19572 # type: =head2
19573 #: ../fish/guestfish-actions.pod:1930
19574 msgid "is-launching"
19575 msgstr ""
19576
19577 # type: verbatim
19578 #: ../fish/guestfish-actions.pod:1932
19579 #, no-wrap
19580 msgid ""
19581 " is-launching\n"
19582 "\n"
19583 msgstr ""
19584
19585 # type: =head2
19586 #: ../fish/guestfish-actions.pod:1939
19587 msgid "is-lv"
19588 msgstr ""
19589
19590 # type: verbatim
19591 #: ../fish/guestfish-actions.pod:1941
19592 #, no-wrap
19593 msgid ""
19594 " is-lv device\n"
19595 "\n"
19596 msgstr ""
19597
19598 # type: =head2
19599 #: ../fish/guestfish-actions.pod:1946
19600 msgid "is-ready"
19601 msgstr ""
19602
19603 # type: verbatim
19604 #: ../fish/guestfish-actions.pod:1948
19605 #, no-wrap
19606 msgid ""
19607 " is-ready\n"
19608 "\n"
19609 msgstr ""
19610
19611 # type: =head2
19612 #: ../fish/guestfish-actions.pod:1955
19613 msgid "is-socket"
19614 msgstr ""
19615
19616 # type: verbatim
19617 #: ../fish/guestfish-actions.pod:1957
19618 #, no-wrap
19619 msgid ""
19620 " is-socket path\n"
19621 "\n"
19622 msgstr ""
19623
19624 # type: =head2
19625 #: ../fish/guestfish-actions.pod:1964
19626 msgid "is-symlink"
19627 msgstr ""
19628
19629 # type: verbatim
19630 #: ../fish/guestfish-actions.pod:1966
19631 #, no-wrap
19632 msgid ""
19633 " is-symlink path\n"
19634 "\n"
19635 msgstr ""
19636
19637 # type: =head2
19638 #: ../fish/guestfish-actions.pod:1973
19639 msgid "kill-subprocess"
19640 msgstr ""
19641
19642 # type: verbatim
19643 #: ../fish/guestfish-actions.pod:1975
19644 #, no-wrap
19645 msgid ""
19646 " kill-subprocess\n"
19647 "\n"
19648 msgstr ""
19649
19650 # type: =head2
19651 #: ../fish/guestfish-actions.pod:1979
19652 msgid "launch"
19653 msgstr ""
19654
19655 # type: =head2
19656 #: ../fish/guestfish-actions.pod:1981
19657 msgid "run"
19658 msgstr ""
19659
19660 # type: verbatim
19661 #: ../fish/guestfish-actions.pod:1983
19662 #, no-wrap
19663 msgid ""
19664 " launch\n"
19665 "\n"
19666 msgstr ""
19667
19668 # type: =head2
19669 #: ../fish/guestfish-actions.pod:1991
19670 msgid "lchown"
19671 msgstr ""
19672
19673 # type: verbatim
19674 #: ../fish/guestfish-actions.pod:1993
19675 #, no-wrap
19676 msgid ""
19677 " lchown owner group path\n"
19678 "\n"
19679 msgstr ""
19680
19681 # type: textblock
19682 #: ../fish/guestfish-actions.pod:1995
19683 msgid ""
19684 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
19685 "chown> but if C<path> is a symlink then the link itself is changed, not the "
19686 "target."
19687 msgstr ""
19688
19689 # type: =head2
19690 #: ../fish/guestfish-actions.pod:2003
19691 msgid "lgetxattrs"
19692 msgstr ""
19693
19694 # type: verbatim
19695 #: ../fish/guestfish-actions.pod:2005
19696 #, no-wrap
19697 msgid ""
19698 " lgetxattrs path\n"
19699 "\n"
19700 msgstr ""
19701
19702 # type: textblock
19703 #: ../fish/guestfish-actions.pod:2007
19704 msgid ""
19705 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19706 "it returns the extended attributes of the link itself."
19707 msgstr ""
19708
19709 # type: =head2
19710 #: ../fish/guestfish-actions.pod:2011
19711 msgid "list-devices"
19712 msgstr ""
19713
19714 # type: verbatim
19715 #: ../fish/guestfish-actions.pod:2013
19716 #, no-wrap
19717 msgid ""
19718 " list-devices\n"
19719 "\n"
19720 msgstr ""
19721
19722 # type: =head2
19723 #: ../fish/guestfish-actions.pod:2021
19724 msgid "list-filesystems"
19725 msgstr ""
19726
19727 # type: verbatim
19728 #: ../fish/guestfish-actions.pod:2023
19729 #, no-wrap
19730 msgid ""
19731 " list-filesystems\n"
19732 "\n"
19733 msgstr ""
19734
19735 # type: textblock
19736 #: ../fish/guestfish-actions.pod:2042
19737 msgid ""
19738 "This command runs other libguestfs commands, which might include L</mount> "
19739 "and L</umount>, and therefore you should use this soon after launch and only "
19740 "when nothing is mounted."
19741 msgstr ""
19742
19743 # type: textblock
19744 #: ../fish/guestfish-actions.pod:2046
19745 msgid ""
19746 "Not all of the filesystems returned will be mountable.  In particular, swap "
19747 "partitions are returned in the list.  Also this command does not check that "
19748 "each filesystem found is valid and mountable, and some filesystems might be "
19749 "mountable but require special options.  Filesystems may not all belong to a "
19750 "single logical operating system (use L</inspect-os> to look for OSes)."
19751 msgstr ""
19752
19753 # type: =head2
19754 #: ../fish/guestfish-actions.pod:2054
19755 msgid "list-partitions"
19756 msgstr ""
19757
19758 # type: verbatim
19759 #: ../fish/guestfish-actions.pod:2056
19760 #, no-wrap
19761 msgid ""
19762 " list-partitions\n"
19763 "\n"
19764 msgstr ""
19765
19766 # type: textblock
19767 #: ../fish/guestfish-actions.pod:2062
19768 msgid ""
19769 "This does not return logical volumes.  For that you will need to call L</"
19770 "lvs>."
19771 msgstr ""
19772
19773 # type: =head2
19774 #: ../fish/guestfish-actions.pod:2067
19775 msgid "ll"
19776 msgstr ""
19777
19778 # type: verbatim
19779 #: ../fish/guestfish-actions.pod:2069
19780 #, no-wrap
19781 msgid ""
19782 " ll directory\n"
19783 "\n"
19784 msgstr ""
19785
19786 # type: =head2
19787 #: ../fish/guestfish-actions.pod:2077
19788 msgid "ln"
19789 msgstr ""
19790
19791 # type: verbatim
19792 #: ../fish/guestfish-actions.pod:2079
19793 #, no-wrap
19794 msgid ""
19795 " ln target linkname\n"
19796 "\n"
19797 msgstr ""
19798
19799 # type: =head2
19800 #: ../fish/guestfish-actions.pod:2083
19801 msgid "ln-f"
19802 msgstr ""
19803
19804 # type: verbatim
19805 #: ../fish/guestfish-actions.pod:2085
19806 #, no-wrap
19807 msgid ""
19808 " ln-f target linkname\n"
19809 "\n"
19810 msgstr ""
19811
19812 # type: =head2
19813 #: ../fish/guestfish-actions.pod:2090
19814 msgid "ln-s"
19815 msgstr ""
19816
19817 # type: verbatim
19818 #: ../fish/guestfish-actions.pod:2092
19819 #, no-wrap
19820 msgid ""
19821 " ln-s target linkname\n"
19822 "\n"
19823 msgstr ""
19824
19825 # type: =head2
19826 #: ../fish/guestfish-actions.pod:2096
19827 msgid "ln-sf"
19828 msgstr ""
19829
19830 # type: verbatim
19831 #: ../fish/guestfish-actions.pod:2098
19832 #, no-wrap
19833 msgid ""
19834 " ln-sf target linkname\n"
19835 "\n"
19836 msgstr ""
19837
19838 # type: =head2
19839 #: ../fish/guestfish-actions.pod:2103
19840 msgid "lremovexattr"
19841 msgstr ""
19842
19843 # type: verbatim
19844 #: ../fish/guestfish-actions.pod:2105
19845 #, no-wrap
19846 msgid ""
19847 " lremovexattr xattr path\n"
19848 "\n"
19849 msgstr ""
19850
19851 # type: textblock
19852 #: ../fish/guestfish-actions.pod:2107
19853 msgid ""
19854 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19855 "it removes an extended attribute of the link itself."
19856 msgstr ""
19857
19858 # type: =head2
19859 #: ../fish/guestfish-actions.pod:2111
19860 msgid "ls"
19861 msgstr ""
19862
19863 # type: verbatim
19864 #: ../fish/guestfish-actions.pod:2113
19865 #, no-wrap
19866 msgid ""
19867 " ls directory\n"
19868 "\n"
19869 msgstr ""
19870
19871 # type: textblock
19872 #: ../fish/guestfish-actions.pod:2119
19873 msgid ""
19874 "This command is mostly useful for interactive sessions.  Programs should "
19875 "probably use L</readdir> instead."
19876 msgstr ""
19877
19878 # type: =head2
19879 #: ../fish/guestfish-actions.pod:2122
19880 msgid "lsetxattr"
19881 msgstr ""
19882
19883 # type: verbatim
19884 #: ../fish/guestfish-actions.pod:2124
19885 #, no-wrap
19886 msgid ""
19887 " lsetxattr xattr val vallen path\n"
19888 "\n"
19889 msgstr ""
19890
19891 # type: textblock
19892 #: ../fish/guestfish-actions.pod:2126
19893 msgid ""
19894 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
19895 "sets an extended attribute of the link itself."
19896 msgstr ""
19897
19898 # type: =head2
19899 #: ../fish/guestfish-actions.pod:2130
19900 msgid "lstat"
19901 msgstr ""
19902
19903 # type: verbatim
19904 #: ../fish/guestfish-actions.pod:2132
19905 #, no-wrap
19906 msgid ""
19907 " lstat path\n"
19908 "\n"
19909 msgstr ""
19910
19911 # type: textblock
19912 #: ../fish/guestfish-actions.pod:2136
19913 msgid ""
19914 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
19915 "the link is stat-ed, not the file it refers to."
19916 msgstr ""
19917
19918 # type: =head2
19919 #: ../fish/guestfish-actions.pod:2142
19920 msgid "lstatlist"
19921 msgstr ""
19922
19923 # type: verbatim
19924 #: ../fish/guestfish-actions.pod:2144
19925 #, no-wrap
19926 msgid ""
19927 " lstatlist path 'names ...'\n"
19928 "\n"
19929 msgstr ""
19930
19931 # type: textblock
19932 #: ../fish/guestfish-actions.pod:2146
19933 msgid ""
19934 "This call allows you to perform the L</lstat> operation on multiple files, "
19935 "where all files are in the directory C<path>.  C<names> is the list of files "
19936 "from this directory."
19937 msgstr ""
19938
19939 # type: textblock
19940 #: ../fish/guestfish-actions.pod:2155
19941 msgid ""
19942 "This call is intended for programs that want to efficiently list a directory "
19943 "contents without making many round-trips.  See also L</lxattrlist> for a "
19944 "similarly efficient call for getting extended attributes.  Very long "
19945 "directory listings might cause the protocol message size to be exceeded, "
19946 "causing this call to fail.  The caller must split up such requests into "
19947 "smaller groups of names."
19948 msgstr ""
19949
19950 # type: =head2
19951 #: ../fish/guestfish-actions.pod:2163
19952 msgid "luks-add-key"
19953 msgstr ""
19954
19955 # type: verbatim
19956 #: ../fish/guestfish-actions.pod:2165
19957 #, no-wrap
19958 msgid ""
19959 " luks-add-key device keyslot\n"
19960 "\n"
19961 msgstr ""
19962
19963 # type: textblock
19964 #: ../fish/guestfish-actions.pod:2172
19965 msgid ""
19966 "Note that if C<keyslot> already contains a key, then this command will "
19967 "fail.  You have to use L</luks-kill-slot> first to remove that key."
19968 msgstr ""
19969
19970 # type: textblock
19971 #: ../fish/guestfish-actions.pod:2176 ../fish/guestfish-actions.pod:2198
19972 #: ../fish/guestfish-actions.pod:2211 ../fish/guestfish-actions.pod:2225
19973 #: ../fish/guestfish-actions.pod:2248 ../fish/guestfish-actions.pod:2258
19974 msgid ""
19975 "This command has one or more key or passphrase parameters.  Guestfish will "
19976 "prompt for these separately."
19977 msgstr ""
19978
19979 # type: =head2
19980 #: ../fish/guestfish-actions.pod:2179
19981 msgid "luks-close"
19982 msgstr ""
19983
19984 # type: verbatim
19985 #: ../fish/guestfish-actions.pod:2181
19986 #, no-wrap
19987 msgid ""
19988 " luks-close device\n"
19989 "\n"
19990 msgstr ""
19991
19992 # type: textblock
19993 #: ../fish/guestfish-actions.pod:2183
19994 msgid ""
19995 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
19996 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
19997 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
19998 "block device."
19999 msgstr ""
20000
20001 # type: =head2
20002 #: ../fish/guestfish-actions.pod:2189
20003 msgid "luks-format"
20004 msgstr ""
20005
20006 # type: verbatim
20007 #: ../fish/guestfish-actions.pod:2191
20008 #, no-wrap
20009 msgid ""
20010 " luks-format device keyslot\n"
20011 "\n"
20012 msgstr ""
20013
20014 # type: =head2
20015 #: ../fish/guestfish-actions.pod:2204
20016 msgid "luks-format-cipher"
20017 msgstr ""
20018
20019 # type: verbatim
20020 #: ../fish/guestfish-actions.pod:2206
20021 #, no-wrap
20022 msgid ""
20023 " luks-format-cipher device keyslot cipher\n"
20024 "\n"
20025 msgstr ""
20026
20027 # type: textblock
20028 #: ../fish/guestfish-actions.pod:2208
20029 msgid ""
20030 "This command is the same as L</luks-format> but it also allows you to set "
20031 "the C<cipher> used."
20032 msgstr ""
20033
20034 # type: =head2
20035 #: ../fish/guestfish-actions.pod:2217
20036 msgid "luks-kill-slot"
20037 msgstr ""
20038
20039 # type: verbatim
20040 #: ../fish/guestfish-actions.pod:2219
20041 #, no-wrap
20042 msgid ""
20043 " luks-kill-slot device keyslot\n"
20044 "\n"
20045 msgstr ""
20046
20047 # type: =head2
20048 #: ../fish/guestfish-actions.pod:2228
20049 msgid "luks-open"
20050 msgstr ""
20051
20052 # type: verbatim
20053 #: ../fish/guestfish-actions.pod:2230
20054 #, no-wrap
20055 msgid ""
20056 " luks-open device mapname\n"
20057 "\n"
20058 msgstr ""
20059
20060 # type: textblock
20061 #: ../fish/guestfish-actions.pod:2244
20062 msgid ""
20063 "If this block device contains LVM volume groups, then calling L</vgscan> "
20064 "followed by L</vg-activate-all> will make them visible."
20065 msgstr ""
20066
20067 # type: =head2
20068 #: ../fish/guestfish-actions.pod:2251
20069 msgid "luks-open-ro"
20070 msgstr ""
20071
20072 # type: verbatim
20073 #: ../fish/guestfish-actions.pod:2253
20074 #, no-wrap
20075 msgid ""
20076 " luks-open-ro device mapname\n"
20077 "\n"
20078 msgstr ""
20079
20080 # type: textblock
20081 #: ../fish/guestfish-actions.pod:2255
20082 msgid ""
20083 "This is the same as L</luks-open> except that a read-only mapping is created."
20084 msgstr ""
20085
20086 # type: =head2
20087 #: ../fish/guestfish-actions.pod:2261
20088 msgid "lvcreate"
20089 msgstr ""
20090
20091 # type: verbatim
20092 #: ../fish/guestfish-actions.pod:2263
20093 #, no-wrap
20094 msgid ""
20095 " lvcreate logvol volgroup mbytes\n"
20096 "\n"
20097 msgstr ""
20098
20099 # type: =head2
20100 #: ../fish/guestfish-actions.pod:2268
20101 msgid "lvm-canonical-lv-name"
20102 msgstr ""
20103
20104 # type: verbatim
20105 #: ../fish/guestfish-actions.pod:2270
20106 #, no-wrap
20107 msgid ""
20108 " lvm-canonical-lv-name lvname\n"
20109 "\n"
20110 msgstr ""
20111
20112 # type: textblock
20113 #: ../fish/guestfish-actions.pod:2279
20114 msgid "See also L</is-lv>."
20115 msgstr ""
20116
20117 # type: =head2
20118 #: ../fish/guestfish-actions.pod:2281
20119 msgid "lvm-clear-filter"
20120 msgstr ""
20121
20122 # type: verbatim
20123 #: ../fish/guestfish-actions.pod:2283
20124 #, no-wrap
20125 msgid ""
20126 " lvm-clear-filter\n"
20127 "\n"
20128 msgstr ""
20129
20130 # type: textblock
20131 #: ../fish/guestfish-actions.pod:2285
20132 msgid ""
20133 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20134 "block device."
20135 msgstr ""
20136
20137 # type: =head2
20138 #: ../fish/guestfish-actions.pod:2291
20139 msgid "lvm-remove-all"
20140 msgstr ""
20141
20142 # type: verbatim
20143 #: ../fish/guestfish-actions.pod:2293
20144 #, no-wrap
20145 msgid ""
20146 " lvm-remove-all\n"
20147 "\n"
20148 msgstr ""
20149
20150 # type: =head2
20151 #: ../fish/guestfish-actions.pod:2301
20152 msgid "lvm-set-filter"
20153 msgstr ""
20154
20155 # type: verbatim
20156 #: ../fish/guestfish-actions.pod:2303
20157 #, no-wrap
20158 msgid ""
20159 " lvm-set-filter 'devices ...'\n"
20160 "\n"
20161 msgstr ""
20162
20163 # type: =head2
20164 #: ../fish/guestfish-actions.pod:2328
20165 msgid "lvremove"
20166 msgstr ""
20167
20168 # type: verbatim
20169 #: ../fish/guestfish-actions.pod:2330
20170 #, no-wrap
20171 msgid ""
20172 " lvremove device\n"
20173 "\n"
20174 msgstr ""
20175
20176 # type: =head2
20177 #: ../fish/guestfish-actions.pod:2338
20178 msgid "lvrename"
20179 msgstr ""
20180
20181 # type: verbatim
20182 #: ../fish/guestfish-actions.pod:2340
20183 #, no-wrap
20184 msgid ""
20185 " lvrename logvol newlogvol\n"
20186 "\n"
20187 msgstr ""
20188
20189 # type: =head2
20190 #: ../fish/guestfish-actions.pod:2344
20191 msgid "lvresize"
20192 msgstr ""
20193
20194 # type: verbatim
20195 #: ../fish/guestfish-actions.pod:2346
20196 #, no-wrap
20197 msgid ""
20198 " lvresize device mbytes\n"
20199 "\n"
20200 msgstr ""
20201
20202 # type: =head2
20203 #: ../fish/guestfish-actions.pod:2352
20204 msgid "lvresize-free"
20205 msgstr ""
20206
20207 # type: verbatim
20208 #: ../fish/guestfish-actions.pod:2354
20209 #, no-wrap
20210 msgid ""
20211 " lvresize-free lv percent\n"
20212 "\n"
20213 msgstr ""
20214
20215 # type: =head2
20216 #: ../fish/guestfish-actions.pod:2362
20217 msgid "lvs"
20218 msgstr ""
20219
20220 # type: verbatim
20221 #: ../fish/guestfish-actions.pod:2364
20222 #, no-wrap
20223 msgid ""
20224 " lvs\n"
20225 "\n"
20226 msgstr ""
20227
20228 # type: textblock
20229 #: ../fish/guestfish-actions.pod:2372
20230 msgid "See also L</lvs-full>, L</list-filesystems>."
20231 msgstr ""
20232
20233 # type: =head2
20234 #: ../fish/guestfish-actions.pod:2374
20235 msgid "lvs-full"
20236 msgstr ""
20237
20238 # type: verbatim
20239 #: ../fish/guestfish-actions.pod:2376
20240 #, no-wrap
20241 msgid ""
20242 " lvs-full\n"
20243 "\n"
20244 msgstr ""
20245
20246 # type: =head2
20247 #: ../fish/guestfish-actions.pod:2381
20248 msgid "lvuuid"
20249 msgstr ""
20250
20251 # type: verbatim
20252 #: ../fish/guestfish-actions.pod:2383
20253 #, no-wrap
20254 msgid ""
20255 " lvuuid device\n"
20256 "\n"
20257 msgstr ""
20258
20259 # type: =head2
20260 #: ../fish/guestfish-actions.pod:2387
20261 msgid "lxattrlist"
20262 msgstr ""
20263
20264 # type: verbatim
20265 #: ../fish/guestfish-actions.pod:2389
20266 #, no-wrap
20267 msgid ""
20268 " lxattrlist path 'names ...'\n"
20269 "\n"
20270 msgstr ""
20271
20272 # type: textblock
20273 #: ../fish/guestfish-actions.pod:2405
20274 msgid ""
20275 "This call is intended for programs that want to efficiently list a directory "
20276 "contents without making many round-trips.  See also L</lstatlist> for a "
20277 "similarly efficient call for getting standard stats.  Very long directory "
20278 "listings might cause the protocol message size to be exceeded, causing this "
20279 "call to fail.  The caller must split up such requests into smaller groups of "
20280 "names."
20281 msgstr ""
20282
20283 # type: =head2
20284 #: ../fish/guestfish-actions.pod:2413
20285 msgid "mkdir"
20286 msgstr ""
20287
20288 # type: verbatim
20289 #: ../fish/guestfish-actions.pod:2415
20290 #, no-wrap
20291 msgid ""
20292 " mkdir path\n"
20293 "\n"
20294 msgstr ""
20295
20296 # type: =head2
20297 #: ../fish/guestfish-actions.pod:2419
20298 msgid "mkdir-mode"
20299 msgstr ""
20300
20301 # type: verbatim
20302 #: ../fish/guestfish-actions.pod:2421
20303 #, no-wrap
20304 msgid ""
20305 " mkdir-mode path mode\n"
20306 "\n"
20307 msgstr ""
20308
20309 # type: textblock
20310 #: ../fish/guestfish-actions.pod:2430
20311 msgid "See also L</mkdir>, L</umask>"
20312 msgstr ""
20313
20314 # type: =head2
20315 #: ../fish/guestfish-actions.pod:2432
20316 msgid "mkdir-p"
20317 msgstr ""
20318
20319 # type: verbatim
20320 #: ../fish/guestfish-actions.pod:2434
20321 #, no-wrap
20322 msgid ""
20323 " mkdir-p path\n"
20324 "\n"
20325 msgstr ""
20326
20327 # type: =head2
20328 #: ../fish/guestfish-actions.pod:2439
20329 msgid "mkdtemp"
20330 msgstr ""
20331
20332 # type: verbatim
20333 #: ../fish/guestfish-actions.pod:2441
20334 #, no-wrap
20335 msgid ""
20336 " mkdtemp template\n"
20337 "\n"
20338 msgstr ""
20339
20340 # type: =head2
20341 #: ../fish/guestfish-actions.pod:2462
20342 msgid "mke2fs-J"
20343 msgstr ""
20344
20345 # type: verbatim
20346 #: ../fish/guestfish-actions.pod:2464
20347 #, no-wrap
20348 msgid ""
20349 " mke2fs-J fstype blocksize device journal\n"
20350 "\n"
20351 msgstr ""
20352
20353 # type: textblock
20354 #: ../fish/guestfish-actions.pod:2472
20355 msgid "See also L</mke2journal>."
20356 msgstr ""
20357
20358 # type: =head2
20359 #: ../fish/guestfish-actions.pod:2474
20360 msgid "mke2fs-JL"
20361 msgstr ""
20362
20363 # type: verbatim
20364 #: ../fish/guestfish-actions.pod:2476
20365 #, no-wrap
20366 msgid ""
20367 " mke2fs-JL fstype blocksize device label\n"
20368 "\n"
20369 msgstr ""
20370
20371 # type: textblock
20372 #: ../fish/guestfish-actions.pod:2481
20373 msgid "See also L</mke2journal-L>."
20374 msgstr ""
20375
20376 # type: =head2
20377 #: ../fish/guestfish-actions.pod:2483
20378 msgid "mke2fs-JU"
20379 msgstr ""
20380
20381 # type: verbatim
20382 #: ../fish/guestfish-actions.pod:2485
20383 #, no-wrap
20384 msgid ""
20385 " mke2fs-JU fstype blocksize device uuid\n"
20386 "\n"
20387 msgstr ""
20388
20389 # type: textblock
20390 #: ../fish/guestfish-actions.pod:2490
20391 msgid "See also L</mke2journal-U>."
20392 msgstr ""
20393
20394 # type: =head2
20395 #: ../fish/guestfish-actions.pod:2492
20396 msgid "mke2journal"
20397 msgstr ""
20398
20399 # type: verbatim
20400 #: ../fish/guestfish-actions.pod:2494
20401 #, no-wrap
20402 msgid ""
20403 " mke2journal blocksize device\n"
20404 "\n"
20405 msgstr ""
20406
20407 # type: =head2
20408 #: ../fish/guestfish-actions.pod:2501
20409 msgid "mke2journal-L"
20410 msgstr ""
20411
20412 # type: verbatim
20413 #: ../fish/guestfish-actions.pod:2503
20414 #, no-wrap
20415 msgid ""
20416 " mke2journal-L blocksize label device\n"
20417 "\n"
20418 msgstr ""
20419
20420 # type: =head2
20421 #: ../fish/guestfish-actions.pod:2507
20422 msgid "mke2journal-U"
20423 msgstr ""
20424
20425 # type: verbatim
20426 #: ../fish/guestfish-actions.pod:2509
20427 #, no-wrap
20428 msgid ""
20429 " mke2journal-U blocksize uuid device\n"
20430 "\n"
20431 msgstr ""
20432
20433 # type: =head2
20434 #: ../fish/guestfish-actions.pod:2513
20435 msgid "mkfifo"
20436 msgstr ""
20437
20438 # type: verbatim
20439 #: ../fish/guestfish-actions.pod:2515
20440 #, no-wrap
20441 msgid ""
20442 " mkfifo mode path\n"
20443 "\n"
20444 msgstr ""
20445
20446 # type: textblock
20447 #: ../fish/guestfish-actions.pod:2517
20448 msgid ""
20449 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20450 "is just a convenient wrapper around L</mknod>."
20451 msgstr ""
20452
20453 # type: =head2
20454 #: ../fish/guestfish-actions.pod:2523
20455 msgid "mkfs"
20456 msgstr ""
20457
20458 # type: verbatim
20459 #: ../fish/guestfish-actions.pod:2525
20460 #, no-wrap
20461 msgid ""
20462 " mkfs fstype device\n"
20463 "\n"
20464 msgstr ""
20465
20466 # type: =head2
20467 #: ../fish/guestfish-actions.pod:2531
20468 msgid "mkfs-b"
20469 msgstr ""
20470
20471 # type: verbatim
20472 #: ../fish/guestfish-actions.pod:2533
20473 #, no-wrap
20474 msgid ""
20475 " mkfs-b fstype blocksize device\n"
20476 "\n"
20477 msgstr ""
20478
20479 # type: textblock
20480 #: ../fish/guestfish-actions.pod:2535
20481 msgid ""
20482 "This call is similar to L</mkfs>, but it allows you to control the block "
20483 "size of the resulting filesystem.  Supported block sizes depend on the "
20484 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20485 msgstr ""
20486
20487 # type: =head2
20488 #: ../fish/guestfish-actions.pod:2543
20489 msgid "mkmountpoint"
20490 msgstr ""
20491
20492 # type: verbatim
20493 #: ../fish/guestfish-actions.pod:2545
20494 #, no-wrap
20495 msgid ""
20496 " mkmountpoint exemptpath\n"
20497 "\n"
20498 msgstr ""
20499
20500 # type: textblock
20501 #: ../fish/guestfish-actions.pod:2547
20502 msgid ""
20503 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20504 "to create extra mountpoints before mounting the first filesystem."
20505 msgstr ""
20506
20507 # type: textblock
20508 #: ../fish/guestfish-actions.pod:2571
20509 msgid ""
20510 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
20511 "unexpected errors if you try to mix these calls.  It is safest to manually "
20512 "unmount filesystems and remove mountpoints after use."
20513 msgstr ""
20514
20515 # type: textblock
20516 #: ../fish/guestfish-actions.pod:2575
20517 msgid ""
20518 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
20519 "for this to work for manual mountpoints, you must ensure that the innermost "
20520 "mountpoints have the longest pathnames, as in the example code above."
20521 msgstr ""
20522
20523 # type: textblock
20524 #: ../fish/guestfish-actions.pod:2582
20525 msgid ""
20526 "Autosync [see L</set-autosync>, this is set by default on handles] means "
20527 "that L</umount-all> is called when the handle is closed which can also "
20528 "trigger these issues."
20529 msgstr ""
20530
20531 # type: =head2
20532 #: ../fish/guestfish-actions.pod:2586
20533 msgid "mknod"
20534 msgstr ""
20535
20536 # type: verbatim
20537 #: ../fish/guestfish-actions.pod:2588
20538 #, no-wrap
20539 msgid ""
20540 " mknod mode devmajor devminor path\n"
20541 "\n"
20542 msgstr ""
20543
20544 # type: textblock
20545 #: ../fish/guestfish-actions.pod:2598
20546 msgid ""
20547 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20548 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20549 "regular file).  These constants are available in the standard Linux header "
20550 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20551 "wrappers around this command which bitwise OR in the appropriate constant "
20552 "for you."
20553 msgstr ""
20554
20555 # type: =head2
20556 #: ../fish/guestfish-actions.pod:2608
20557 msgid "mknod-b"
20558 msgstr ""
20559
20560 # type: verbatim
20561 #: ../fish/guestfish-actions.pod:2610
20562 #, no-wrap
20563 msgid ""
20564 " mknod-b mode devmajor devminor path\n"
20565 "\n"
20566 msgstr ""
20567
20568 # type: textblock
20569 #: ../fish/guestfish-actions.pod:2612
20570 msgid ""
20571 "This call creates a block device node called C<path> with mode C<mode> and "
20572 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20573 "wrapper around L</mknod>."
20574 msgstr ""
20575
20576 # type: =head2
20577 #: ../fish/guestfish-actions.pod:2618
20578 msgid "mknod-c"
20579 msgstr ""
20580
20581 # type: verbatim
20582 #: ../fish/guestfish-actions.pod:2620
20583 #, no-wrap
20584 msgid ""
20585 " mknod-c mode devmajor devminor path\n"
20586 "\n"
20587 msgstr ""
20588
20589 # type: textblock
20590 #: ../fish/guestfish-actions.pod:2622
20591 msgid ""
20592 "This call creates a char device node called C<path> with mode C<mode> and "
20593 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20594 "wrapper around L</mknod>."
20595 msgstr ""
20596
20597 # type: =head2
20598 #: ../fish/guestfish-actions.pod:2628
20599 msgid "mkswap"
20600 msgstr ""
20601
20602 # type: verbatim
20603 #: ../fish/guestfish-actions.pod:2630
20604 #, no-wrap
20605 msgid ""
20606 " mkswap device\n"
20607 "\n"
20608 msgstr ""
20609
20610 # type: =head2
20611 #: ../fish/guestfish-actions.pod:2634
20612 msgid "mkswap-L"
20613 msgstr ""
20614
20615 # type: verbatim
20616 #: ../fish/guestfish-actions.pod:2636
20617 #, no-wrap
20618 msgid ""
20619 " mkswap-L label device\n"
20620 "\n"
20621 msgstr ""
20622
20623 # type: =head2
20624 #: ../fish/guestfish-actions.pod:2644
20625 msgid "mkswap-U"
20626 msgstr ""
20627
20628 # type: verbatim
20629 #: ../fish/guestfish-actions.pod:2646
20630 #, no-wrap
20631 msgid ""
20632 " mkswap-U uuid device\n"
20633 "\n"
20634 msgstr ""
20635
20636 # type: =head2
20637 #: ../fish/guestfish-actions.pod:2650
20638 msgid "mkswap-file"
20639 msgstr ""
20640
20641 # type: verbatim
20642 #: ../fish/guestfish-actions.pod:2652
20643 #, no-wrap
20644 msgid ""
20645 " mkswap-file path\n"
20646 "\n"
20647 msgstr ""
20648
20649 # type: textblock
20650 #: ../fish/guestfish-actions.pod:2656
20651 msgid ""
20652 "This command just writes a swap file signature to an existing file.  To "
20653 "create the file itself, use something like L</fallocate>."
20654 msgstr ""
20655
20656 # type: =head2
20657 #: ../fish/guestfish-actions.pod:2659
20658 msgid "modprobe"
20659 msgstr ""
20660
20661 # type: verbatim
20662 #: ../fish/guestfish-actions.pod:2661
20663 #, no-wrap
20664 msgid ""
20665 " modprobe modulename\n"
20666 "\n"
20667 msgstr ""
20668
20669 # type: =head2
20670 #: ../fish/guestfish-actions.pod:2668
20671 msgid "mount"
20672 msgstr ""
20673
20674 # type: verbatim
20675 #: ../fish/guestfish-actions.pod:2670
20676 #, no-wrap
20677 msgid ""
20678 " mount device mountpoint\n"
20679 "\n"
20680 msgstr ""
20681
20682 # type: textblock
20683 #: ../fish/guestfish-actions.pod:2686
20684 msgid ""
20685 "B<Important note:> When you use this call, the filesystem options C<sync> "
20686 "and C<noatime> are set implicitly.  This was originally done because we "
20687 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20688 "very large negative performance impact and negligible effect on "
20689 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20690 "code that needs performance, and instead use L</mount-options> (use an empty "
20691 "string for the first parameter if you don't want any options)."
20692 msgstr ""
20693
20694 # type: =head2
20695 #: ../fish/guestfish-actions.pod:2696
20696 msgid "mount-loop"
20697 msgstr ""
20698
20699 # type: verbatim
20700 #: ../fish/guestfish-actions.pod:2698
20701 #, no-wrap
20702 msgid ""
20703 " mount-loop file mountpoint\n"
20704 "\n"
20705 msgstr ""
20706
20707 # type: =head2
20708 #: ../fish/guestfish-actions.pod:2704
20709 msgid "mount-options"
20710 msgstr ""
20711
20712 # type: verbatim
20713 #: ../fish/guestfish-actions.pod:2706
20714 #, no-wrap
20715 msgid ""
20716 " mount-options options device mountpoint\n"
20717 "\n"
20718 msgstr ""
20719
20720 # type: textblock
20721 #: ../fish/guestfish-actions.pod:2708
20722 msgid ""
20723 "This is the same as the L</mount> command, but it allows you to set the "
20724 "mount options as for the L<mount(8)> I<-o> flag."
20725 msgstr ""
20726
20727 # type: =head2
20728 #: ../fish/guestfish-actions.pod:2716
20729 msgid "mount-ro"
20730 msgstr ""
20731
20732 # type: verbatim
20733 #: ../fish/guestfish-actions.pod:2718
20734 #, no-wrap
20735 msgid ""
20736 " mount-ro device mountpoint\n"
20737 "\n"
20738 msgstr ""
20739
20740 # type: textblock
20741 #: ../fish/guestfish-actions.pod:2720
20742 msgid ""
20743 "This is the same as the L</mount> command, but it mounts the filesystem with "
20744 "the read-only (I<-o ro>) flag."
20745 msgstr ""
20746
20747 # type: =head2
20748 #: ../fish/guestfish-actions.pod:2723
20749 msgid "mount-vfs"
20750 msgstr ""
20751
20752 # type: verbatim
20753 #: ../fish/guestfish-actions.pod:2725
20754 #, no-wrap
20755 msgid ""
20756 " mount-vfs options vfstype device mountpoint\n"
20757 "\n"
20758 msgstr ""
20759
20760 # type: textblock
20761 #: ../fish/guestfish-actions.pod:2727
20762 msgid ""
20763 "This is the same as the L</mount> command, but it allows you to set both the "
20764 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20765 msgstr ""
20766
20767 # type: =head2
20768 #: ../fish/guestfish-actions.pod:2731
20769 msgid "mountpoints"
20770 msgstr ""
20771
20772 # type: verbatim
20773 #: ../fish/guestfish-actions.pod:2733
20774 #, no-wrap
20775 msgid ""
20776 " mountpoints\n"
20777 "\n"
20778 msgstr ""
20779
20780 # type: textblock
20781 #: ../fish/guestfish-actions.pod:2735
20782 msgid ""
20783 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20784 "This one returns a hash table (map) of device name to directory where the "
20785 "device is mounted."
20786 msgstr ""
20787
20788 # type: =head2
20789 #: ../fish/guestfish-actions.pod:2739
20790 msgid "mounts"
20791 msgstr ""
20792
20793 # type: verbatim
20794 #: ../fish/guestfish-actions.pod:2741
20795 #, no-wrap
20796 msgid ""
20797 " mounts\n"
20798 "\n"
20799 msgstr ""
20800
20801 # type: textblock
20802 #: ../fish/guestfish-actions.pod:2748
20803 msgid "See also: L</mountpoints>"
20804 msgstr ""
20805
20806 # type: =head2
20807 #: ../fish/guestfish-actions.pod:2750
20808 msgid "mv"
20809 msgstr ""
20810
20811 # type: verbatim
20812 #: ../fish/guestfish-actions.pod:2752
20813 #, no-wrap
20814 msgid ""
20815 " mv src dest\n"
20816 "\n"
20817 msgstr ""
20818
20819 # type: =head2
20820 #: ../fish/guestfish-actions.pod:2757
20821 msgid "ntfs-3g-probe"
20822 msgstr ""
20823
20824 # type: verbatim
20825 #: ../fish/guestfish-actions.pod:2759
20826 #, no-wrap
20827 msgid ""
20828 " ntfs-3g-probe true|false device\n"
20829 "\n"
20830 msgstr ""
20831
20832 # type: =head2
20833 #: ../fish/guestfish-actions.pod:2773
20834 msgid "ntfsresize"
20835 msgstr ""
20836
20837 # type: verbatim
20838 #: ../fish/guestfish-actions.pod:2775
20839 #, no-wrap
20840 msgid ""
20841 " ntfsresize device\n"
20842 "\n"
20843 msgstr ""
20844
20845 # type: =head2
20846 #: ../fish/guestfish-actions.pod:2781
20847 msgid "ntfsresize-size"
20848 msgstr ""
20849
20850 # type: verbatim
20851 #: ../fish/guestfish-actions.pod:2783
20852 #, no-wrap
20853 msgid ""
20854 " ntfsresize-size device size\n"
20855 "\n"
20856 msgstr ""
20857
20858 # type: textblock
20859 #: ../fish/guestfish-actions.pod:2785
20860 msgid ""
20861 "This command is the same as L</ntfsresize> except that it allows you to "
20862 "specify the new size (in bytes) explicitly."
20863 msgstr ""
20864
20865 # type: =head2
20866 #: ../fish/guestfish-actions.pod:2788
20867 msgid "part-add"
20868 msgstr ""
20869
20870 # type: verbatim
20871 #: ../fish/guestfish-actions.pod:2790
20872 #, no-wrap
20873 msgid ""
20874 " part-add device prlogex startsect endsect\n"
20875 "\n"
20876 msgstr ""
20877
20878 # type: textblock
20879 #: ../fish/guestfish-actions.pod:2792
20880 msgid ""
20881 "This command adds a partition to C<device>.  If there is no partition table "
20882 "on the device, call L</part-init> first."
20883 msgstr ""
20884
20885 # type: textblock
20886 #: ../fish/guestfish-actions.pod:2804
20887 msgid ""
20888 "Creating a partition which covers the whole disk is not so easy.  Use L</"
20889 "part-disk> to do that."
20890 msgstr ""
20891
20892 # type: =head2
20893 #: ../fish/guestfish-actions.pod:2807
20894 msgid "part-del"
20895 msgstr ""
20896
20897 # type: verbatim
20898 #: ../fish/guestfish-actions.pod:2809
20899 #, no-wrap
20900 msgid ""
20901 " part-del device partnum\n"
20902 "\n"
20903 msgstr ""
20904
20905 # type: =head2
20906 #: ../fish/guestfish-actions.pod:2817
20907 msgid "part-disk"
20908 msgstr ""
20909
20910 # type: verbatim
20911 #: ../fish/guestfish-actions.pod:2819
20912 #, no-wrap
20913 msgid ""
20914 " part-disk device parttype\n"
20915 "\n"
20916 msgstr ""
20917
20918 # type: textblock
20919 #: ../fish/guestfish-actions.pod:2821
20920 msgid ""
20921 "This command is simply a combination of L</part-init> followed by L</part-"
20922 "add> to create a single primary partition covering the whole disk."
20923 msgstr ""
20924
20925 # type: textblock
20926 #: ../fish/guestfish-actions.pod:2825
20927 msgid ""
20928 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
20929 "possible values are described in L</part-init>."
20930 msgstr ""
20931
20932 # type: =head2
20933 #: ../fish/guestfish-actions.pod:2831
20934 msgid "part-get-bootable"
20935 msgstr ""
20936
20937 # type: verbatim
20938 #: ../fish/guestfish-actions.pod:2833
20939 #, no-wrap
20940 msgid ""
20941 " part-get-bootable device partnum\n"
20942 "\n"
20943 msgstr ""
20944
20945 # type: textblock
20946 #: ../fish/guestfish-actions.pod:2838
20947 msgid "See also L</part-set-bootable>."
20948 msgstr ""
20949
20950 # type: =head2
20951 #: ../fish/guestfish-actions.pod:2840
20952 msgid "part-get-mbr-id"
20953 msgstr ""
20954
20955 # type: verbatim
20956 #: ../fish/guestfish-actions.pod:2842
20957 #, no-wrap
20958 msgid ""
20959 " part-get-mbr-id device partnum\n"
20960 "\n"
20961 msgstr ""
20962
20963 # type: textblock
20964 #: ../fish/guestfish-actions.pod:2847 ../fish/guestfish-actions.pod:2985
20965 msgid ""
20966 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
20967 "undefined results for other partition table types (see L</part-get-"
20968 "parttype>)."
20969 msgstr ""
20970
20971 # type: =head2
20972 #: ../fish/guestfish-actions.pod:2851
20973 msgid "part-get-parttype"
20974 msgstr ""
20975
20976 # type: verbatim
20977 #: ../fish/guestfish-actions.pod:2853
20978 #, no-wrap
20979 msgid ""
20980 " part-get-parttype device\n"
20981 "\n"
20982 msgstr ""
20983
20984 # type: textblock
20985 #: ../fish/guestfish-actions.pod:2858
20986 msgid ""
20987 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
20988 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
20989 "possible, although unusual.  See L</part-init> for a full list."
20990 msgstr ""
20991
20992 # type: =head2
20993 #: ../fish/guestfish-actions.pod:2863
20994 msgid "part-init"
20995 msgstr ""
20996
20997 # type: verbatim
20998 #: ../fish/guestfish-actions.pod:2865
20999 #, no-wrap
21000 msgid ""
21001 " part-init device parttype\n"
21002 "\n"
21003 msgstr ""
21004
21005 # type: textblock
21006 #: ../fish/guestfish-actions.pod:2871
21007 msgid ""
21008 "Initially there are no partitions.  Following this, you should call L</part-"
21009 "add> for each partition required."
21010 msgstr ""
21011
21012 # type: =head2
21013 #: ../fish/guestfish-actions.pod:2934
21014 msgid "part-list"
21015 msgstr ""
21016
21017 # type: verbatim
21018 #: ../fish/guestfish-actions.pod:2936
21019 #, no-wrap
21020 msgid ""
21021 " part-list device\n"
21022 "\n"
21023 msgstr ""
21024
21025 # type: textblock
21026 #: ../fish/guestfish-actions.pod:2951
21027 msgid ""
21028 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21029 "the device's sector size, see L</blockdev-getss>."
21030 msgstr ""
21031
21032 # type: =head2
21033 #: ../fish/guestfish-actions.pod:2964
21034 msgid "part-set-bootable"
21035 msgstr ""
21036
21037 # type: verbatim
21038 #: ../fish/guestfish-actions.pod:2966
21039 #, no-wrap
21040 msgid ""
21041 " part-set-bootable device partnum true|false\n"
21042 "\n"
21043 msgstr ""
21044
21045 # type: =head2
21046 #: ../fish/guestfish-actions.pod:2975
21047 msgid "part-set-mbr-id"
21048 msgstr ""
21049
21050 # type: verbatim
21051 #: ../fish/guestfish-actions.pod:2977
21052 #, no-wrap
21053 msgid ""
21054 " part-set-mbr-id device partnum idbyte\n"
21055 "\n"
21056 msgstr ""
21057
21058 # type: =head2
21059 #: ../fish/guestfish-actions.pod:2989
21060 msgid "part-set-name"
21061 msgstr ""
21062
21063 # type: verbatim
21064 #: ../fish/guestfish-actions.pod:2991
21065 #, no-wrap
21066 msgid ""
21067 " part-set-name device partnum name\n"
21068 "\n"
21069 msgstr ""
21070
21071 # type: =head2
21072 #: ../fish/guestfish-actions.pod:2999
21073 msgid "part-to-dev"
21074 msgstr ""
21075
21076 # type: verbatim
21077 #: ../fish/guestfish-actions.pod:3001
21078 #, no-wrap
21079 msgid ""
21080 " part-to-dev partition\n"
21081 "\n"
21082 msgstr ""
21083
21084 # type: textblock
21085 #: ../fish/guestfish-actions.pod:3007
21086 msgid ""
21087 "The named partition must exist, for example as a string returned from L</"
21088 "list-partitions>."
21089 msgstr ""
21090
21091 # type: =head2
21092 #: ../fish/guestfish-actions.pod:3010
21093 msgid "ping-daemon"
21094 msgstr ""
21095
21096 # type: verbatim
21097 #: ../fish/guestfish-actions.pod:3012
21098 #, no-wrap
21099 msgid ""
21100 " ping-daemon\n"
21101 "\n"
21102 msgstr ""
21103
21104 # type: =head2
21105 #: ../fish/guestfish-actions.pod:3019
21106 msgid "pread"
21107 msgstr ""
21108
21109 # type: verbatim
21110 #: ../fish/guestfish-actions.pod:3021
21111 #, no-wrap
21112 msgid ""
21113 " pread path count offset\n"
21114 "\n"
21115 msgstr ""
21116
21117 # type: textblock
21118 #: ../fish/guestfish-actions.pod:3029
21119 msgid "See also L</pwrite>, L</pread-device>."
21120 msgstr ""
21121
21122 # type: =head2
21123 #: ../fish/guestfish-actions.pod:3034
21124 msgid "pread-device"
21125 msgstr ""
21126
21127 # type: verbatim
21128 #: ../fish/guestfish-actions.pod:3036
21129 #, no-wrap
21130 msgid ""
21131 " pread-device device count offset\n"
21132 "\n"
21133 msgstr ""
21134
21135 # type: textblock
21136 #: ../fish/guestfish-actions.pod:3044
21137 msgid "See also L</pread>."
21138 msgstr ""
21139
21140 # type: =head2
21141 #: ../fish/guestfish-actions.pod:3049
21142 msgid "pvcreate"
21143 msgstr ""
21144
21145 # type: verbatim
21146 #: ../fish/guestfish-actions.pod:3051
21147 #, no-wrap
21148 msgid ""
21149 " pvcreate device\n"
21150 "\n"
21151 msgstr ""
21152
21153 # type: =head2
21154 #: ../fish/guestfish-actions.pod:3057
21155 msgid "pvremove"
21156 msgstr ""
21157
21158 # type: verbatim
21159 #: ../fish/guestfish-actions.pod:3059
21160 #, no-wrap
21161 msgid ""
21162 " pvremove device\n"
21163 "\n"
21164 msgstr ""
21165
21166 # type: =head2
21167 #: ../fish/guestfish-actions.pod:3068
21168 msgid "pvresize"
21169 msgstr ""
21170
21171 # type: verbatim
21172 #: ../fish/guestfish-actions.pod:3070
21173 #, no-wrap
21174 msgid ""
21175 " pvresize device\n"
21176 "\n"
21177 msgstr ""
21178
21179 # type: =head2
21180 #: ../fish/guestfish-actions.pod:3075
21181 msgid "pvresize-size"
21182 msgstr ""
21183
21184 # type: verbatim
21185 #: ../fish/guestfish-actions.pod:3077
21186 #, no-wrap
21187 msgid ""
21188 " pvresize-size device size\n"
21189 "\n"
21190 msgstr ""
21191
21192 # type: textblock
21193 #: ../fish/guestfish-actions.pod:3079
21194 msgid ""
21195 "This command is the same as L</pvresize> except that it allows you to "
21196 "specify the new size (in bytes) explicitly."
21197 msgstr ""
21198
21199 # type: =head2
21200 #: ../fish/guestfish-actions.pod:3082
21201 msgid "pvs"
21202 msgstr ""
21203
21204 # type: verbatim
21205 #: ../fish/guestfish-actions.pod:3084
21206 #, no-wrap
21207 msgid ""
21208 " pvs\n"
21209 "\n"
21210 msgstr ""
21211
21212 # type: textblock
21213 #: ../fish/guestfish-actions.pod:3092
21214 msgid "See also L</pvs-full>."
21215 msgstr ""
21216
21217 # type: =head2
21218 #: ../fish/guestfish-actions.pod:3094
21219 msgid "pvs-full"
21220 msgstr ""
21221
21222 # type: verbatim
21223 #: ../fish/guestfish-actions.pod:3096
21224 #, no-wrap
21225 msgid ""
21226 " pvs-full\n"
21227 "\n"
21228 msgstr ""
21229
21230 # type: =head2
21231 #: ../fish/guestfish-actions.pod:3101
21232 msgid "pvuuid"
21233 msgstr ""
21234
21235 # type: verbatim
21236 #: ../fish/guestfish-actions.pod:3103
21237 #, no-wrap
21238 msgid ""
21239 " pvuuid device\n"
21240 "\n"
21241 msgstr ""
21242
21243 # type: =head2
21244 #: ../fish/guestfish-actions.pod:3107
21245 msgid "pwrite"
21246 msgstr ""
21247
21248 # type: verbatim
21249 #: ../fish/guestfish-actions.pod:3109
21250 #, no-wrap
21251 msgid ""
21252 " pwrite path content offset\n"
21253 "\n"
21254 msgstr ""
21255
21256 # type: textblock
21257 #: ../fish/guestfish-actions.pod:3120
21258 msgid "See also L</pread>, L</pwrite-device>."
21259 msgstr ""
21260
21261 # type: =head2
21262 #: ../fish/guestfish-actions.pod:3125
21263 msgid "pwrite-device"
21264 msgstr ""
21265
21266 # type: verbatim
21267 #: ../fish/guestfish-actions.pod:3127
21268 #, no-wrap
21269 msgid ""
21270 " pwrite-device device content offset\n"
21271 "\n"
21272 msgstr ""
21273
21274 # type: textblock
21275 #: ../fish/guestfish-actions.pod:3137
21276 msgid "See also L</pwrite>."
21277 msgstr ""
21278
21279 # type: =head2
21280 #: ../fish/guestfish-actions.pod:3142
21281 msgid "read-file"
21282 msgstr ""
21283
21284 # type: verbatim
21285 #: ../fish/guestfish-actions.pod:3144
21286 #, no-wrap
21287 msgid ""
21288 " read-file path\n"
21289 "\n"
21290 msgstr ""
21291
21292 # type: textblock
21293 #: ../fish/guestfish-actions.pod:3149
21294 msgid ""
21295 "Unlike L</cat>, this function can correctly handle files that contain "
21296 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21297 "is limited in the total size of file that can be handled."
21298 msgstr ""
21299
21300 # type: =head2
21301 #: ../fish/guestfish-actions.pod:3157
21302 msgid "read-lines"
21303 msgstr ""
21304
21305 # type: verbatim
21306 #: ../fish/guestfish-actions.pod:3159
21307 #, no-wrap
21308 msgid ""
21309 " read-lines path\n"
21310 "\n"
21311 msgstr ""
21312
21313 # type: textblock
21314 #: ../fish/guestfish-actions.pod:3166
21315 msgid ""
21316 "Note that this function cannot correctly handle binary files (specifically, "
21317 "files containing C<\\0> character which is treated as end of line).  For "
21318 "those you need to use the L</read-file> function which has a more complex "
21319 "interface."
21320 msgstr ""
21321
21322 # type: =head2
21323 #: ../fish/guestfish-actions.pod:3171
21324 msgid "readdir"
21325 msgstr ""
21326
21327 # type: verbatim
21328 #: ../fish/guestfish-actions.pod:3173
21329 #, no-wrap
21330 msgid ""
21331 " readdir dir\n"
21332 "\n"
21333 msgstr ""
21334
21335 # type: textblock
21336 #: ../fish/guestfish-actions.pod:3225
21337 msgid ""
21338 "This function is primarily intended for use by programs.  To get a simple "
21339 "list of names, use L</ls>.  To get a printable directory for human "
21340 "consumption, use L</ll>."
21341 msgstr ""
21342
21343 # type: =head2
21344 #: ../fish/guestfish-actions.pod:3229
21345 msgid "readlink"
21346 msgstr ""
21347
21348 # type: verbatim
21349 #: ../fish/guestfish-actions.pod:3231
21350 #, no-wrap
21351 msgid ""
21352 " readlink path\n"
21353 "\n"
21354 msgstr ""
21355
21356 # type: =head2
21357 #: ../fish/guestfish-actions.pod:3235
21358 msgid "readlinklist"
21359 msgstr ""
21360
21361 # type: verbatim
21362 #: ../fish/guestfish-actions.pod:3237
21363 #, no-wrap
21364 msgid ""
21365 " readlinklist path 'names ...'\n"
21366 "\n"
21367 msgstr ""
21368
21369 # type: =head2
21370 #: ../fish/guestfish-actions.pod:3261
21371 msgid "realpath"
21372 msgstr ""
21373
21374 # type: verbatim
21375 #: ../fish/guestfish-actions.pod:3263
21376 #, no-wrap
21377 msgid ""
21378 " realpath path\n"
21379 "\n"
21380 msgstr ""
21381
21382 # type: =head2
21383 #: ../fish/guestfish-actions.pod:3268
21384 msgid "removexattr"
21385 msgstr ""
21386
21387 # type: verbatim
21388 #: ../fish/guestfish-actions.pod:3270
21389 #, no-wrap
21390 msgid ""
21391 " removexattr xattr path\n"
21392 "\n"
21393 msgstr ""
21394
21395 # type: textblock
21396 #: ../fish/guestfish-actions.pod:3275
21397 msgid "See also: L</lremovexattr>, L<attr(5)>."
21398 msgstr ""
21399
21400 # type: =head2
21401 #: ../fish/guestfish-actions.pod:3277
21402 msgid "resize2fs"
21403 msgstr ""
21404
21405 # type: verbatim
21406 #: ../fish/guestfish-actions.pod:3279
21407 #, no-wrap
21408 msgid ""
21409 " resize2fs device\n"
21410 "\n"
21411 msgstr ""
21412
21413 # type: textblock
21414 #: ../fish/guestfish-actions.pod:3284
21415 msgid ""
21416 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21417 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21418 "gives an error about this and sometimes not.  In any case, it is always safe "
21419 "to call L</e2fsck-f> before calling this function."
21420 msgstr ""
21421
21422 # type: =head2
21423 #: ../fish/guestfish-actions.pod:3290
21424 msgid "resize2fs-size"
21425 msgstr ""
21426
21427 # type: verbatim
21428 #: ../fish/guestfish-actions.pod:3292
21429 #, no-wrap
21430 msgid ""
21431 " resize2fs-size device size\n"
21432 "\n"
21433 msgstr ""
21434
21435 # type: textblock
21436 #: ../fish/guestfish-actions.pod:3294
21437 msgid ""
21438 "This command is the same as L</resize2fs> except that it allows you to "
21439 "specify the new size (in bytes) explicitly."
21440 msgstr ""
21441
21442 # type: =head2
21443 #: ../fish/guestfish-actions.pod:3297
21444 msgid "rm"
21445 msgstr ""
21446
21447 # type: verbatim
21448 #: ../fish/guestfish-actions.pod:3299
21449 #, no-wrap
21450 msgid ""
21451 " rm path\n"
21452 "\n"
21453 msgstr ""
21454
21455 # type: =head2
21456 #: ../fish/guestfish-actions.pod:3303
21457 msgid "rm-rf"
21458 msgstr ""
21459
21460 # type: verbatim
21461 #: ../fish/guestfish-actions.pod:3305
21462 #, no-wrap
21463 msgid ""
21464 " rm-rf path\n"
21465 "\n"
21466 msgstr ""
21467
21468 # type: =head2
21469 #: ../fish/guestfish-actions.pod:3311
21470 msgid "rmdir"
21471 msgstr ""
21472
21473 # type: verbatim
21474 #: ../fish/guestfish-actions.pod:3313
21475 #, no-wrap
21476 msgid ""
21477 " rmdir path\n"
21478 "\n"
21479 msgstr ""
21480
21481 # type: =head2
21482 #: ../fish/guestfish-actions.pod:3317
21483 msgid "rmmountpoint"
21484 msgstr ""
21485
21486 # type: verbatim
21487 #: ../fish/guestfish-actions.pod:3319
21488 #, no-wrap
21489 msgid ""
21490 " rmmountpoint exemptpath\n"
21491 "\n"
21492 msgstr ""
21493
21494 # type: textblock
21495 #: ../fish/guestfish-actions.pod:3321
21496 msgid ""
21497 "This calls removes a mountpoint that was previously created with L</"
21498 "mkmountpoint>.  See L</mkmountpoint> for full details."
21499 msgstr ""
21500
21501 # type: =head2
21502 #: ../fish/guestfish-actions.pod:3325
21503 msgid "scrub-device"
21504 msgstr ""
21505
21506 # type: verbatim
21507 #: ../fish/guestfish-actions.pod:3327
21508 #, no-wrap
21509 msgid ""
21510 " scrub-device device\n"
21511 "\n"
21512 msgstr ""
21513
21514 # type: =head2
21515 #: ../fish/guestfish-actions.pod:3338
21516 msgid "scrub-file"
21517 msgstr ""
21518
21519 # type: verbatim
21520 #: ../fish/guestfish-actions.pod:3340
21521 #, no-wrap
21522 msgid ""
21523 " scrub-file file\n"
21524 "\n"
21525 msgstr ""
21526
21527 # type: =head2
21528 #: ../fish/guestfish-actions.pod:3350
21529 msgid "scrub-freespace"
21530 msgstr ""
21531
21532 # type: verbatim
21533 #: ../fish/guestfish-actions.pod:3352
21534 #, no-wrap
21535 msgid ""
21536 " scrub-freespace dir\n"
21537 "\n"
21538 msgstr ""
21539
21540 # type: textblock
21541 #: ../fish/guestfish-actions.pod:3354
21542 msgid ""
21543 "This command creates the directory C<dir> and then fills it with files until "
21544 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21545 "deletes them.  The intention is to scrub any free space on the partition "
21546 "containing C<dir>."
21547 msgstr ""
21548
21549 # type: =head2
21550 #: ../fish/guestfish-actions.pod:3363
21551 msgid "set-append"
21552 msgstr ""
21553
21554 # type: =head2
21555 #: ../fish/guestfish-actions.pod:3365
21556 msgid "append"
21557 msgstr ""
21558
21559 # type: verbatim
21560 #: ../fish/guestfish-actions.pod:3367
21561 #, no-wrap
21562 msgid ""
21563 " set-append append\n"
21564 "\n"
21565 msgstr ""
21566
21567 # type: =head2
21568 #: ../fish/guestfish-actions.pod:3378
21569 msgid "set-autosync"
21570 msgstr ""
21571
21572 # type: =head2
21573 #: ../fish/guestfish-actions.pod:3380
21574 msgid "autosync"
21575 msgstr ""
21576
21577 # type: verbatim
21578 #: ../fish/guestfish-actions.pod:3382
21579 #, no-wrap
21580 msgid ""
21581 " set-autosync true|false\n"
21582 "\n"
21583 msgstr ""
21584
21585 # type: textblock
21586 #: ../fish/guestfish-actions.pod:3384
21587 msgid ""
21588 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21589 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21590 "closed (also if the program exits without closing handles)."
21591 msgstr ""
21592
21593 # type: =head2
21594 #: ../fish/guestfish-actions.pod:3392
21595 msgid "set-direct"
21596 msgstr ""
21597
21598 # type: =head2
21599 #: ../fish/guestfish-actions.pod:3394
21600 msgid "direct"
21601 msgstr ""
21602
21603 # type: verbatim
21604 #: ../fish/guestfish-actions.pod:3396
21605 #, no-wrap
21606 msgid ""
21607 " set-direct true|false\n"
21608 "\n"
21609 msgstr ""
21610
21611 # type: textblock
21612 #: ../fish/guestfish-actions.pod:3402
21613 msgid ""
21614 "One consequence of this is that log messages aren't caught by the library "
21615 "and handled by L</set-log-message-callback>, but go straight to stdout."
21616 msgstr ""
21617
21618 # type: =head2
21619 #: ../fish/guestfish-actions.pod:3411
21620 msgid "set-e2label"
21621 msgstr ""
21622
21623 # type: verbatim
21624 #: ../fish/guestfish-actions.pod:3413
21625 #, no-wrap
21626 msgid ""
21627 " set-e2label device label\n"
21628 "\n"
21629 msgstr ""
21630
21631 # type: textblock
21632 #: ../fish/guestfish-actions.pod:3419
21633 msgid ""
21634 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21635 "label on a filesystem."
21636 msgstr ""
21637
21638 # type: =head2
21639 #: ../fish/guestfish-actions.pod:3422
21640 msgid "set-e2uuid"
21641 msgstr ""
21642
21643 # type: verbatim
21644 #: ../fish/guestfish-actions.pod:3424
21645 #, no-wrap
21646 msgid ""
21647 " set-e2uuid device uuid\n"
21648 "\n"
21649 msgstr ""
21650
21651 # type: textblock
21652 #: ../fish/guestfish-actions.pod:3431
21653 msgid ""
21654 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21655 "UUID of a filesystem."
21656 msgstr ""
21657
21658 # type: =head2
21659 #: ../fish/guestfish-actions.pod:3434
21660 msgid "set-memsize"
21661 msgstr ""
21662
21663 # type: =head2
21664 #: ../fish/guestfish-actions.pod:3436
21665 msgid "memsize"
21666 msgstr ""
21667
21668 # type: verbatim
21669 #: ../fish/guestfish-actions.pod:3438
21670 #, no-wrap
21671 msgid ""
21672 " set-memsize memsize\n"
21673 "\n"
21674 msgstr ""
21675
21676 # type: textblock
21677 #: ../fish/guestfish-actions.pod:3440
21678 msgid ""
21679 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21680 "This only has any effect if called before L</launch>."
21681 msgstr ""
21682
21683 # type: =head2
21684 #: ../fish/guestfish-actions.pod:3451
21685 msgid "set-network"
21686 msgstr ""
21687
21688 # type: =head2
21689 #: ../fish/guestfish-actions.pod:3453
21690 msgid "network"
21691 msgstr ""
21692
21693 # type: verbatim
21694 #: ../fish/guestfish-actions.pod:3455
21695 #, no-wrap
21696 msgid ""
21697 " set-network true|false\n"
21698 "\n"
21699 msgstr ""
21700
21701 # type: textblock
21702 #: ../fish/guestfish-actions.pod:3463
21703 msgid ""
21704 "You must call this before calling L</launch>, otherwise it has no effect."
21705 msgstr ""
21706
21707 # type: =head2
21708 #: ../fish/guestfish-actions.pod:3466
21709 msgid "set-path"
21710 msgstr ""
21711
21712 # type: =head2
21713 #: ../fish/guestfish-actions.pod:3468
21714 msgid "path"
21715 msgstr ""
21716
21717 # type: verbatim
21718 #: ../fish/guestfish-actions.pod:3470
21719 #, no-wrap
21720 msgid ""
21721 " set-path searchpath\n"
21722 "\n"
21723 msgstr ""
21724
21725 # type: =head2
21726 #: ../fish/guestfish-actions.pod:3479
21727 msgid "set-qemu"
21728 msgstr ""
21729
21730 # type: =head2
21731 #: ../fish/guestfish-actions.pod:3481
21732 msgid "qemu"
21733 msgstr ""
21734
21735 # type: verbatim
21736 #: ../fish/guestfish-actions.pod:3483
21737 #, no-wrap
21738 msgid ""
21739 " set-qemu qemu\n"
21740 "\n"
21741 msgstr ""
21742
21743 # type: =head2
21744 #: ../fish/guestfish-actions.pod:3503
21745 msgid "set-recovery-proc"
21746 msgstr ""
21747
21748 # type: =head2
21749 #: ../fish/guestfish-actions.pod:3505
21750 msgid "recovery-proc"
21751 msgstr ""
21752
21753 # type: verbatim
21754 #: ../fish/guestfish-actions.pod:3507
21755 #, no-wrap
21756 msgid ""
21757 " set-recovery-proc true|false\n"
21758 "\n"
21759 msgstr ""
21760
21761 # type: textblock
21762 #: ../fish/guestfish-actions.pod:3509
21763 msgid ""
21764 "If this is called with the parameter C<false> then L</launch> does not "
21765 "create a recovery process.  The purpose of the recovery process is to stop "
21766 "runaway qemu processes in the case where the main program aborts abruptly."
21767 msgstr ""
21768
21769 # type: textblock
21770 #: ../fish/guestfish-actions.pod:3514
21771 msgid ""
21772 "This only has any effect if called before L</launch>, and the default is "
21773 "true."
21774 msgstr ""
21775
21776 # type: =head2
21777 #: ../fish/guestfish-actions.pod:3523
21778 msgid "set-selinux"
21779 msgstr ""
21780
21781 # type: =head2
21782 #: ../fish/guestfish-actions.pod:3525
21783 msgid "selinux"
21784 msgstr ""
21785
21786 # type: verbatim
21787 #: ../fish/guestfish-actions.pod:3527
21788 #, no-wrap
21789 msgid ""
21790 " set-selinux true|false\n"
21791 "\n"
21792 msgstr ""
21793
21794 # type: =head2
21795 #: ../fish/guestfish-actions.pod:3538
21796 msgid "set-trace"
21797 msgstr ""
21798
21799 # type: =head2
21800 #: ../fish/guestfish-actions.pod:3540
21801 msgid "trace"
21802 msgstr ""
21803
21804 # type: verbatim
21805 #: ../fish/guestfish-actions.pod:3542
21806 #, no-wrap
21807 msgid ""
21808 " set-trace true|false\n"
21809 "\n"
21810 msgstr ""
21811
21812 # type: =head2
21813 #: ../fish/guestfish-actions.pod:3558
21814 msgid "set-verbose"
21815 msgstr ""
21816
21817 # type: =head2
21818 #: ../fish/guestfish-actions.pod:3560
21819 msgid "verbose"
21820 msgstr ""
21821
21822 # type: verbatim
21823 #: ../fish/guestfish-actions.pod:3562
21824 #, no-wrap
21825 msgid ""
21826 " set-verbose true|false\n"
21827 "\n"
21828 msgstr ""
21829
21830 # type: =head2
21831 #: ../fish/guestfish-actions.pod:3569
21832 msgid "setcon"
21833 msgstr ""
21834
21835 # type: verbatim
21836 #: ../fish/guestfish-actions.pod:3571
21837 #, no-wrap
21838 msgid ""
21839 " setcon context\n"
21840 "\n"
21841 msgstr ""
21842
21843 # type: =head2
21844 #: ../fish/guestfish-actions.pod:3578
21845 msgid "setxattr"
21846 msgstr ""
21847
21848 # type: verbatim
21849 #: ../fish/guestfish-actions.pod:3580
21850 #, no-wrap
21851 msgid ""
21852 " setxattr xattr val vallen path\n"
21853 "\n"
21854 msgstr ""
21855
21856 # type: textblock
21857 #: ../fish/guestfish-actions.pod:3586
21858 msgid "See also: L</lsetxattr>, L<attr(5)>."
21859 msgstr ""
21860
21861 # type: =head2
21862 #: ../fish/guestfish-actions.pod:3588
21863 msgid "sfdisk"
21864 msgstr ""
21865
21866 # type: verbatim
21867 #: ../fish/guestfish-actions.pod:3590
21868 #, no-wrap
21869 msgid ""
21870 " sfdisk device cyls heads sectors 'lines ...'\n"
21871 "\n"
21872 msgstr ""
21873
21874 # type: textblock
21875 #: ../fish/guestfish-actions.pod:3612
21876 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
21877 msgstr ""
21878
21879 # type: =head2
21880 #: ../fish/guestfish-actions.pod:3618
21881 msgid "sfdiskM"
21882 msgstr ""
21883
21884 # type: verbatim
21885 #: ../fish/guestfish-actions.pod:3620
21886 #, no-wrap
21887 msgid ""
21888 " sfdiskM device 'lines ...'\n"
21889 "\n"
21890 msgstr ""
21891
21892 # type: textblock
21893 #: ../fish/guestfish-actions.pod:3622
21894 msgid ""
21895 "This is a simplified interface to the L</sfdisk> command, where partition "
21896 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
21897 "you don't need to specify the cyls, heads and sectors parameters which were "
21898 "rarely if ever used anyway."
21899 msgstr ""
21900
21901 # type: textblock
21902 #: ../fish/guestfish-actions.pod:3628
21903 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
21904 msgstr ""
21905
21906 # type: =head2
21907 #: ../fish/guestfish-actions.pod:3634
21908 msgid "sfdisk-N"
21909 msgstr ""
21910
21911 # type: verbatim
21912 #: ../fish/guestfish-actions.pod:3636
21913 #, no-wrap
21914 msgid ""
21915 " sfdisk-N device partnum cyls heads sectors line\n"
21916 "\n"
21917 msgstr ""
21918
21919 # type: textblock
21920 #: ../fish/guestfish-actions.pod:3641
21921 msgid ""
21922 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
21923 "cyls/heads/sectors parameters."
21924 msgstr ""
21925
21926 # type: textblock
21927 #: ../fish/guestfish-actions.pod:3644
21928 msgid "See also: L</part-add>"
21929 msgstr ""
21930
21931 # type: =head2
21932 #: ../fish/guestfish-actions.pod:3649
21933 msgid "sfdisk-disk-geometry"
21934 msgstr ""
21935
21936 # type: verbatim
21937 #: ../fish/guestfish-actions.pod:3651
21938 #, no-wrap
21939 msgid ""
21940 " sfdisk-disk-geometry device\n"
21941 "\n"
21942 msgstr ""
21943
21944 # type: textblock
21945 #: ../fish/guestfish-actions.pod:3653
21946 msgid ""
21947 "This displays the disk geometry of C<device> read from the partition table.  "
21948 "Especially in the case where the underlying block device has been resized, "
21949 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
21950 "kernel-geometry>)."
21951 msgstr ""
21952
21953 # type: =head2
21954 #: ../fish/guestfish-actions.pod:3661
21955 msgid "sfdisk-kernel-geometry"
21956 msgstr ""
21957
21958 # type: verbatim
21959 #: ../fish/guestfish-actions.pod:3663
21960 #, no-wrap
21961 msgid ""
21962 " sfdisk-kernel-geometry device\n"
21963 "\n"
21964 msgstr ""
21965
21966 # type: =head2
21967 #: ../fish/guestfish-actions.pod:3670
21968 msgid "sfdisk-l"
21969 msgstr ""
21970
21971 # type: verbatim
21972 #: ../fish/guestfish-actions.pod:3672
21973 #, no-wrap
21974 msgid ""
21975 " sfdisk-l device\n"
21976 "\n"
21977 msgstr ""
21978
21979 # type: textblock
21980 #: ../fish/guestfish-actions.pod:3678
21981 msgid "See also: L</part-list>"
21982 msgstr ""
21983
21984 # type: =head2
21985 #: ../fish/guestfish-actions.pod:3680
21986 msgid "sh"
21987 msgstr ""
21988
21989 # type: verbatim
21990 #: ../fish/guestfish-actions.pod:3682
21991 #, no-wrap
21992 msgid ""
21993 " sh command\n"
21994 "\n"
21995 msgstr ""
21996
21997 # type: textblock
21998 #: ../fish/guestfish-actions.pod:3687
21999 msgid "This is like L</command>, but passes the command to:"
22000 msgstr ""
22001
22002 # type: textblock
22003 #: ../fish/guestfish-actions.pod:3695
22004 msgid "All the provisos about L</command> apply to this call."
22005 msgstr ""
22006
22007 # type: =head2
22008 #: ../fish/guestfish-actions.pod:3697
22009 msgid "sh-lines"
22010 msgstr ""
22011
22012 # type: verbatim
22013 #: ../fish/guestfish-actions.pod:3699
22014 #, no-wrap
22015 msgid ""
22016 " sh-lines command\n"
22017 "\n"
22018 msgstr ""
22019
22020 # type: textblock
22021 #: ../fish/guestfish-actions.pod:3701
22022 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22023 msgstr ""
22024
22025 # type: textblock
22026 #: ../fish/guestfish-actions.pod:3704
22027 msgid "See also: L</command-lines>"
22028 msgstr ""
22029
22030 # type: =head2
22031 #: ../fish/guestfish-actions.pod:3706
22032 msgid "sleep"
22033 msgstr ""
22034
22035 # type: verbatim
22036 #: ../fish/guestfish-actions.pod:3708
22037 #, no-wrap
22038 msgid ""
22039 " sleep secs\n"
22040 "\n"
22041 msgstr ""
22042
22043 # type: =head2
22044 #: ../fish/guestfish-actions.pod:3712
22045 msgid "stat"
22046 msgstr ""
22047
22048 # type: verbatim
22049 #: ../fish/guestfish-actions.pod:3714
22050 #, no-wrap
22051 msgid ""
22052 " stat path\n"
22053 "\n"
22054 msgstr ""
22055
22056 # type: =head2
22057 #: ../fish/guestfish-actions.pod:3720
22058 msgid "statvfs"
22059 msgstr ""
22060
22061 # type: verbatim
22062 #: ../fish/guestfish-actions.pod:3722
22063 #, no-wrap
22064 msgid ""
22065 " statvfs path\n"
22066 "\n"
22067 msgstr ""
22068
22069 # type: =head2
22070 #: ../fish/guestfish-actions.pod:3730
22071 msgid "strings"
22072 msgstr ""
22073
22074 # type: verbatim
22075 #: ../fish/guestfish-actions.pod:3732
22076 #, no-wrap
22077 msgid ""
22078 " strings path\n"
22079 "\n"
22080 msgstr ""
22081
22082 # type: =head2
22083 #: ../fish/guestfish-actions.pod:3740
22084 msgid "strings-e"
22085 msgstr ""
22086
22087 # type: verbatim
22088 #: ../fish/guestfish-actions.pod:3742
22089 #, no-wrap
22090 msgid ""
22091 " strings-e encoding path\n"
22092 "\n"
22093 msgstr ""
22094
22095 # type: textblock
22096 #: ../fish/guestfish-actions.pod:3744
22097 msgid ""
22098 "This is like the L</strings> command, but allows you to specify the encoding "
22099 "of strings that are looked for in the source file C<path>."
22100 msgstr ""
22101
22102 # type: textblock
22103 #: ../fish/guestfish-actions.pod:3754
22104 msgid ""
22105 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22106 "ISO-8859-X (this is what L</strings> uses)."
22107 msgstr ""
22108
22109 # type: =head2
22110 #: ../fish/guestfish-actions.pod:3786
22111 msgid "swapoff-device"
22112 msgstr ""
22113
22114 # type: verbatim
22115 #: ../fish/guestfish-actions.pod:3788
22116 #, no-wrap
22117 msgid ""
22118 " swapoff-device device\n"
22119 "\n"
22120 msgstr ""
22121
22122 # type: textblock
22123 #: ../fish/guestfish-actions.pod:3790
22124 msgid ""
22125 "This command disables the libguestfs appliance swap device or partition "
22126 "named C<device>.  See L</swapon-device>."
22127 msgstr ""
22128
22129 # type: =head2
22130 #: ../fish/guestfish-actions.pod:3794
22131 msgid "swapoff-file"
22132 msgstr ""
22133
22134 # type: verbatim
22135 #: ../fish/guestfish-actions.pod:3796
22136 #, no-wrap
22137 msgid ""
22138 " swapoff-file file\n"
22139 "\n"
22140 msgstr ""
22141
22142 # type: =head2
22143 #: ../fish/guestfish-actions.pod:3800
22144 msgid "swapoff-label"
22145 msgstr ""
22146
22147 # type: verbatim
22148 #: ../fish/guestfish-actions.pod:3802
22149 #, no-wrap
22150 msgid ""
22151 " swapoff-label label\n"
22152 "\n"
22153 msgstr ""
22154
22155 # type: =head2
22156 #: ../fish/guestfish-actions.pod:3807
22157 msgid "swapoff-uuid"
22158 msgstr ""
22159
22160 # type: verbatim
22161 #: ../fish/guestfish-actions.pod:3809
22162 #, no-wrap
22163 msgid ""
22164 " swapoff-uuid uuid\n"
22165 "\n"
22166 msgstr ""
22167
22168 # type: =head2
22169 #: ../fish/guestfish-actions.pod:3814
22170 msgid "swapon-device"
22171 msgstr ""
22172
22173 # type: verbatim
22174 #: ../fish/guestfish-actions.pod:3816
22175 #, no-wrap
22176 msgid ""
22177 " swapon-device device\n"
22178 "\n"
22179 msgstr ""
22180
22181 # type: textblock
22182 #: ../fish/guestfish-actions.pod:3818
22183 msgid ""
22184 "This command enables the libguestfs appliance to use the swap device or "
22185 "partition named C<device>.  The increased memory is made available for all "
22186 "commands, for example those run using L</command> or L</sh>."
22187 msgstr ""
22188
22189 # type: =head2
22190 #: ../fish/guestfish-actions.pod:3830
22191 msgid "swapon-file"
22192 msgstr ""
22193
22194 # type: verbatim
22195 #: ../fish/guestfish-actions.pod:3832
22196 #, no-wrap
22197 msgid ""
22198 " swapon-file file\n"
22199 "\n"
22200 msgstr ""
22201
22202 # type: textblock
22203 #: ../fish/guestfish-actions.pod:3834
22204 msgid ""
22205 "This command enables swap to a file.  See L</swapon-device> for other notes."
22206 msgstr ""
22207
22208 # type: =head2
22209 #: ../fish/guestfish-actions.pod:3837
22210 msgid "swapon-label"
22211 msgstr ""
22212
22213 # type: verbatim
22214 #: ../fish/guestfish-actions.pod:3839
22215 #, no-wrap
22216 msgid ""
22217 " swapon-label label\n"
22218 "\n"
22219 msgstr ""
22220
22221 # type: textblock
22222 #: ../fish/guestfish-actions.pod:3841
22223 msgid ""
22224 "This command enables swap to a labeled swap partition.  See L</swapon-"
22225 "device> for other notes."
22226 msgstr ""
22227
22228 # type: =head2
22229 #: ../fish/guestfish-actions.pod:3844
22230 msgid "swapon-uuid"
22231 msgstr ""
22232
22233 # type: verbatim
22234 #: ../fish/guestfish-actions.pod:3846
22235 #, no-wrap
22236 msgid ""
22237 " swapon-uuid uuid\n"
22238 "\n"
22239 msgstr ""
22240
22241 # type: textblock
22242 #: ../fish/guestfish-actions.pod:3848
22243 msgid ""
22244 "This command enables swap to a swap partition with the given UUID.  See L</"
22245 "swapon-device> for other notes."
22246 msgstr ""
22247
22248 # type: =head2
22249 #: ../fish/guestfish-actions.pod:3851
22250 msgid "sync"
22251 msgstr ""
22252
22253 # type: verbatim
22254 #: ../fish/guestfish-actions.pod:3853
22255 #, no-wrap
22256 msgid ""
22257 " sync\n"
22258 "\n"
22259 msgstr ""
22260
22261 # type: =head2
22262 #: ../fish/guestfish-actions.pod:3861
22263 msgid "tail"
22264 msgstr ""
22265
22266 # type: verbatim
22267 #: ../fish/guestfish-actions.pod:3863
22268 #, no-wrap
22269 msgid ""
22270 " tail path\n"
22271 "\n"
22272 msgstr ""
22273
22274 # type: =head2
22275 #: ../fish/guestfish-actions.pod:3871
22276 msgid "tail-n"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #: ../fish/guestfish-actions.pod:3873
22281 #, no-wrap
22282 msgid ""
22283 " tail-n nrlines path\n"
22284 "\n"
22285 msgstr ""
22286
22287 # type: =head2
22288 #: ../fish/guestfish-actions.pod:3886
22289 msgid "tar-in"
22290 msgstr ""
22291
22292 # type: verbatim
22293 #: ../fish/guestfish-actions.pod:3888
22294 #, no-wrap
22295 msgid ""
22296 " tar-in (tarfile|-) directory\n"
22297 "\n"
22298 msgstr ""
22299
22300 # type: textblock
22301 #: ../fish/guestfish-actions.pod:3893
22302 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22303 msgstr ""
22304
22305 # type: =head2
22306 #: ../fish/guestfish-actions.pod:3898
22307 msgid "tar-out"
22308 msgstr ""
22309
22310 # type: verbatim
22311 #: ../fish/guestfish-actions.pod:3900
22312 #, no-wrap
22313 msgid ""
22314 " tar-out directory (tarfile|-)\n"
22315 "\n"
22316 msgstr ""
22317
22318 # type: textblock
22319 #: ../fish/guestfish-actions.pod:3905
22320 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22321 msgstr ""
22322
22323 # type: =head2
22324 #: ../fish/guestfish-actions.pod:3910
22325 msgid "tgz-in"
22326 msgstr ""
22327
22328 # type: verbatim
22329 #: ../fish/guestfish-actions.pod:3912
22330 #, no-wrap
22331 msgid ""
22332 " tgz-in (tarball|-) directory\n"
22333 "\n"
22334 msgstr ""
22335
22336 # type: textblock
22337 #: ../fish/guestfish-actions.pod:3917
22338 msgid "To upload an uncompressed tarball, use L</tar-in>."
22339 msgstr ""
22340
22341 # type: =head2
22342 #: ../fish/guestfish-actions.pod:3921
22343 msgid "tgz-out"
22344 msgstr ""
22345
22346 # type: verbatim
22347 #: ../fish/guestfish-actions.pod:3923
22348 #, no-wrap
22349 msgid ""
22350 " tgz-out directory (tarball|-)\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: textblock
22355 #: ../fish/guestfish-actions.pod:3928
22356 msgid "To download an uncompressed tarball, use L</tar-out>."
22357 msgstr ""
22358
22359 # type: =head2
22360 #: ../fish/guestfish-actions.pod:3932
22361 msgid "touch"
22362 msgstr ""
22363
22364 # type: verbatim
22365 #: ../fish/guestfish-actions.pod:3934
22366 #, no-wrap
22367 msgid ""
22368 " touch path\n"
22369 "\n"
22370 msgstr ""
22371
22372 # type: =head2
22373 #: ../fish/guestfish-actions.pod:3943
22374 msgid "truncate"
22375 msgstr ""
22376
22377 # type: verbatim
22378 #: ../fish/guestfish-actions.pod:3945
22379 #, no-wrap
22380 msgid ""
22381 " truncate path\n"
22382 "\n"
22383 msgstr ""
22384
22385 # type: =head2
22386 #: ../fish/guestfish-actions.pod:3950
22387 msgid "truncate-size"
22388 msgstr ""
22389
22390 # type: verbatim
22391 #: ../fish/guestfish-actions.pod:3952
22392 #, no-wrap
22393 msgid ""
22394 " truncate-size path size\n"
22395 "\n"
22396 msgstr ""
22397
22398 # type: textblock
22399 #: ../fish/guestfish-actions.pod:3957
22400 msgid ""
22401 "If the current file size is less than C<size> then the file is extended to "
22402 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22403 "blocks are not allocated for the file until you write to it).  To create a "
22404 "non-sparse file of zeroes, use L</fallocate64> instead."
22405 msgstr ""
22406
22407 # type: =head2
22408 #: ../fish/guestfish-actions.pod:3963
22409 msgid "tune2fs-l"
22410 msgstr ""
22411
22412 # type: verbatim
22413 #: ../fish/guestfish-actions.pod:3965
22414 #, no-wrap
22415 msgid ""
22416 " tune2fs-l device\n"
22417 "\n"
22418 msgstr ""
22419
22420 # type: =head2
22421 #: ../fish/guestfish-actions.pod:3975
22422 msgid "txz-in"
22423 msgstr ""
22424
22425 # type: verbatim
22426 #: ../fish/guestfish-actions.pod:3977
22427 #, no-wrap
22428 msgid ""
22429 " txz-in (tarball|-) directory\n"
22430 "\n"
22431 msgstr ""
22432
22433 # type: =head2
22434 #: ../fish/guestfish-actions.pod:3984
22435 msgid "txz-out"
22436 msgstr ""
22437
22438 # type: verbatim
22439 #: ../fish/guestfish-actions.pod:3986
22440 #, no-wrap
22441 msgid ""
22442 " txz-out directory (tarball|-)\n"
22443 "\n"
22444 msgstr ""
22445
22446 # type: =head2
22447 #: ../fish/guestfish-actions.pod:3993
22448 msgid "umask"
22449 msgstr ""
22450
22451 # type: verbatim
22452 #: ../fish/guestfish-actions.pod:3995
22453 #, no-wrap
22454 msgid ""
22455 " umask mask\n"
22456 "\n"
22457 msgstr ""
22458
22459 # type: textblock
22460 #: ../fish/guestfish-actions.pod:4009
22461 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22462 msgstr ""
22463
22464 # type: =head2
22465 #: ../fish/guestfish-actions.pod:4014
22466 msgid "umount"
22467 msgstr ""
22468
22469 # type: =head2
22470 #: ../fish/guestfish-actions.pod:4016
22471 msgid "unmount"
22472 msgstr ""
22473
22474 # type: verbatim
22475 #: ../fish/guestfish-actions.pod:4018
22476 #, no-wrap
22477 msgid ""
22478 " umount pathordevice\n"
22479 "\n"
22480 msgstr ""
22481
22482 # type: =head2
22483 #: ../fish/guestfish-actions.pod:4024
22484 msgid "umount-all"
22485 msgstr ""
22486
22487 # type: =head2
22488 #: ../fish/guestfish-actions.pod:4026
22489 msgid "unmount-all"
22490 msgstr ""
22491
22492 # type: verbatim
22493 #: ../fish/guestfish-actions.pod:4028
22494 #, no-wrap
22495 msgid ""
22496 " umount-all\n"
22497 "\n"
22498 msgstr ""
22499
22500 # type: =head2
22501 #: ../fish/guestfish-actions.pod:4034
22502 msgid "upload"
22503 msgstr ""
22504
22505 # type: verbatim
22506 #: ../fish/guestfish-actions.pod:4036
22507 #, no-wrap
22508 msgid ""
22509 " upload (filename|-) remotefilename\n"
22510 "\n"
22511 msgstr ""
22512
22513 # type: textblock
22514 #: ../fish/guestfish-actions.pod:4043
22515 msgid "See also L</download>."
22516 msgstr ""
22517
22518 # type: =head2
22519 #: ../fish/guestfish-actions.pod:4047
22520 msgid "upload-offset"
22521 msgstr ""
22522
22523 # type: verbatim
22524 #: ../fish/guestfish-actions.pod:4049
22525 #, no-wrap
22526 msgid ""
22527 " upload-offset (filename|-) remotefilename offset\n"
22528 "\n"
22529 msgstr ""
22530
22531 # type: textblock
22532 #: ../fish/guestfish-actions.pod:4061
22533 msgid ""
22534 "Note that there is no limit on the amount of data that can be uploaded with "
22535 "this call, unlike with L</pwrite>, and this call always writes the full "
22536 "amount unless an error occurs."
22537 msgstr ""
22538
22539 # type: textblock
22540 #: ../fish/guestfish-actions.pod:4066
22541 msgid "See also L</upload>, L</pwrite>."
22542 msgstr ""
22543
22544 # type: =head2
22545 #: ../fish/guestfish-actions.pod:4070
22546 msgid "utimens"
22547 msgstr ""
22548
22549 # type: verbatim
22550 #: ../fish/guestfish-actions.pod:4072
22551 #, no-wrap
22552 msgid ""
22553 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22554 "\n"
22555 msgstr ""
22556
22557 # type: =head2
22558 #: ../fish/guestfish-actions.pod:4091
22559 msgid "version"
22560 msgstr ""
22561
22562 # type: verbatim
22563 #: ../fish/guestfish-actions.pod:4093
22564 #, no-wrap
22565 msgid ""
22566 " version\n"
22567 "\n"
22568 msgstr ""
22569
22570 # type: textblock
22571 #: ../fish/guestfish-actions.pod:4120
22572 msgid ""
22573 "I<Note:> Don't use this call to test for availability of features.  In "
22574 "enterprise distributions we backport features from later versions into "
22575 "earlier versions, making this an unreliable way to test for features.  Use "
22576 "L</available> instead."
22577 msgstr ""
22578
22579 # type: =head2
22580 #: ../fish/guestfish-actions.pod:4126
22581 msgid "vfs-label"
22582 msgstr ""
22583
22584 # type: verbatim
22585 #: ../fish/guestfish-actions.pod:4128
22586 #, no-wrap
22587 msgid ""
22588 " vfs-label device\n"
22589 "\n"
22590 msgstr ""
22591
22592 # type: textblock
22593 #: ../fish/guestfish-actions.pod:4135
22594 msgid "To find a filesystem from the label, use L</findfs-label>."
22595 msgstr ""
22596
22597 # type: =head2
22598 #: ../fish/guestfish-actions.pod:4137
22599 msgid "vfs-type"
22600 msgstr ""
22601
22602 # type: verbatim
22603 #: ../fish/guestfish-actions.pod:4139
22604 #, no-wrap
22605 msgid ""
22606 " vfs-type device\n"
22607 "\n"
22608 msgstr ""
22609
22610 # type: =head2
22611 #: ../fish/guestfish-actions.pod:4149
22612 msgid "vfs-uuid"
22613 msgstr ""
22614
22615 # type: verbatim
22616 #: ../fish/guestfish-actions.pod:4151
22617 #, no-wrap
22618 msgid ""
22619 " vfs-uuid device\n"
22620 "\n"
22621 msgstr ""
22622
22623 # type: textblock
22624 #: ../fish/guestfish-actions.pod:4158
22625 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22626 msgstr ""
22627
22628 # type: =head2
22629 #: ../fish/guestfish-actions.pod:4160
22630 msgid "vg-activate"
22631 msgstr ""
22632
22633 # type: verbatim
22634 #: ../fish/guestfish-actions.pod:4162
22635 #, no-wrap
22636 msgid ""
22637 " vg-activate true|false 'volgroups ...'\n"
22638 "\n"
22639 msgstr ""
22640
22641 # type: =head2
22642 #: ../fish/guestfish-actions.pod:4175
22643 msgid "vg-activate-all"
22644 msgstr ""
22645
22646 # type: verbatim
22647 #: ../fish/guestfish-actions.pod:4177
22648 #, no-wrap
22649 msgid ""
22650 " vg-activate-all true|false\n"
22651 "\n"
22652 msgstr ""
22653
22654 # type: =head2
22655 #: ../fish/guestfish-actions.pod:4187
22656 msgid "vgcreate"
22657 msgstr ""
22658
22659 # type: verbatim
22660 #: ../fish/guestfish-actions.pod:4189
22661 #, no-wrap
22662 msgid ""
22663 " vgcreate volgroup 'physvols ...'\n"
22664 "\n"
22665 msgstr ""
22666
22667 # type: =head2
22668 #: ../fish/guestfish-actions.pod:4194
22669 msgid "vglvuuids"
22670 msgstr ""
22671
22672 # type: verbatim
22673 #: ../fish/guestfish-actions.pod:4196
22674 #, no-wrap
22675 msgid ""
22676 " vglvuuids vgname\n"
22677 "\n"
22678 msgstr ""
22679
22680 # type: textblock
22681 #: ../fish/guestfish-actions.pod:4201
22682 msgid ""
22683 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22684 "logical volumes and volume groups."
22685 msgstr ""
22686
22687 # type: textblock
22688 #: ../fish/guestfish-actions.pod:4204
22689 msgid "See also L</vgpvuuids>."
22690 msgstr ""
22691
22692 # type: =head2
22693 #: ../fish/guestfish-actions.pod:4206
22694 msgid "vgpvuuids"
22695 msgstr ""
22696
22697 # type: verbatim
22698 #: ../fish/guestfish-actions.pod:4208
22699 #, no-wrap
22700 msgid ""
22701 " vgpvuuids vgname\n"
22702 "\n"
22703 msgstr ""
22704
22705 # type: textblock
22706 #: ../fish/guestfish-actions.pod:4213
22707 msgid ""
22708 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22709 "physical volumes and volume groups."
22710 msgstr ""
22711
22712 # type: textblock
22713 #: ../fish/guestfish-actions.pod:4216
22714 msgid "See also L</vglvuuids>."
22715 msgstr ""
22716
22717 # type: =head2
22718 #: ../fish/guestfish-actions.pod:4218
22719 msgid "vgremove"
22720 msgstr ""
22721
22722 # type: verbatim
22723 #: ../fish/guestfish-actions.pod:4220
22724 #, no-wrap
22725 msgid ""
22726 " vgremove vgname\n"
22727 "\n"
22728 msgstr ""
22729
22730 # type: =head2
22731 #: ../fish/guestfish-actions.pod:4227
22732 msgid "vgrename"
22733 msgstr ""
22734
22735 # type: verbatim
22736 #: ../fish/guestfish-actions.pod:4229
22737 #, no-wrap
22738 msgid ""
22739 " vgrename volgroup newvolgroup\n"
22740 "\n"
22741 msgstr ""
22742
22743 # type: =head2
22744 #: ../fish/guestfish-actions.pod:4233
22745 msgid "vgs"
22746 msgstr ""
22747
22748 # type: verbatim
22749 #: ../fish/guestfish-actions.pod:4235
22750 #, no-wrap
22751 msgid ""
22752 " vgs\n"
22753 "\n"
22754 msgstr ""
22755
22756 # type: textblock
22757 #: ../fish/guestfish-actions.pod:4243
22758 msgid "See also L</vgs-full>."
22759 msgstr ""
22760
22761 # type: =head2
22762 #: ../fish/guestfish-actions.pod:4245
22763 msgid "vgs-full"
22764 msgstr ""
22765
22766 # type: verbatim
22767 #: ../fish/guestfish-actions.pod:4247
22768 #, no-wrap
22769 msgid ""
22770 " vgs-full\n"
22771 "\n"
22772 msgstr ""
22773
22774 # type: =head2
22775 #: ../fish/guestfish-actions.pod:4252
22776 msgid "vgscan"
22777 msgstr ""
22778
22779 # type: verbatim
22780 #: ../fish/guestfish-actions.pod:4254
22781 #, no-wrap
22782 msgid ""
22783 " vgscan\n"
22784 "\n"
22785 msgstr ""
22786
22787 # type: =head2
22788 #: ../fish/guestfish-actions.pod:4259
22789 msgid "vguuid"
22790 msgstr ""
22791
22792 # type: verbatim
22793 #: ../fish/guestfish-actions.pod:4261
22794 #, no-wrap
22795 msgid ""
22796 " vguuid vgname\n"
22797 "\n"
22798 msgstr ""
22799
22800 # type: =head2
22801 #: ../fish/guestfish-actions.pod:4265
22802 msgid "wc-c"
22803 msgstr ""
22804
22805 # type: verbatim
22806 #: ../fish/guestfish-actions.pod:4267
22807 #, no-wrap
22808 msgid ""
22809 " wc-c path\n"
22810 "\n"
22811 msgstr ""
22812
22813 # type: =head2
22814 #: ../fish/guestfish-actions.pod:4272
22815 msgid "wc-l"
22816 msgstr ""
22817
22818 # type: verbatim
22819 #: ../fish/guestfish-actions.pod:4274
22820 #, no-wrap
22821 msgid ""
22822 " wc-l path\n"
22823 "\n"
22824 msgstr ""
22825
22826 # type: =head2
22827 #: ../fish/guestfish-actions.pod:4279
22828 msgid "wc-w"
22829 msgstr ""
22830
22831 # type: verbatim
22832 #: ../fish/guestfish-actions.pod:4281
22833 #, no-wrap
22834 msgid ""
22835 " wc-w path\n"
22836 "\n"
22837 msgstr ""
22838
22839 # type: =head2
22840 #: ../fish/guestfish-actions.pod:4286
22841 msgid "write"
22842 msgstr ""
22843
22844 # type: verbatim
22845 #: ../fish/guestfish-actions.pod:4288
22846 #, no-wrap
22847 msgid ""
22848 " write path content\n"
22849 "\n"
22850 msgstr ""
22851
22852 # type: =head2
22853 #: ../fish/guestfish-actions.pod:4296
22854 msgid "write-file"
22855 msgstr ""
22856
22857 # type: verbatim
22858 #: ../fish/guestfish-actions.pod:4298
22859 #, no-wrap
22860 msgid ""
22861 " write-file path content size\n"
22862 "\n"
22863 msgstr ""
22864
22865 # type: =head2
22866 #: ../fish/guestfish-actions.pod:4321
22867 msgid "zegrep"
22868 msgstr ""
22869
22870 # type: verbatim
22871 #: ../fish/guestfish-actions.pod:4323
22872 #, no-wrap
22873 msgid ""
22874 " zegrep regex path\n"
22875 "\n"
22876 msgstr ""
22877
22878 # type: =head2
22879 #: ../fish/guestfish-actions.pod:4331
22880 msgid "zegrepi"
22881 msgstr ""
22882
22883 # type: verbatim
22884 #: ../fish/guestfish-actions.pod:4333
22885 #, no-wrap
22886 msgid ""
22887 " zegrepi regex path\n"
22888 "\n"
22889 msgstr ""
22890
22891 # type: =head2
22892 #: ../fish/guestfish-actions.pod:4341
22893 msgid "zero"
22894 msgstr ""
22895
22896 # type: verbatim
22897 #: ../fish/guestfish-actions.pod:4343
22898 #, no-wrap
22899 msgid ""
22900 " zero device\n"
22901 "\n"
22902 msgstr ""
22903
22904 # type: textblock
22905 #: ../fish/guestfish-actions.pod:4351
22906 msgid "See also: L</zero-device>, L</scrub-device>."
22907 msgstr ""
22908
22909 # type: =head2
22910 #: ../fish/guestfish-actions.pod:4353
22911 msgid "zero-device"
22912 msgstr ""
22913
22914 # type: verbatim
22915 #: ../fish/guestfish-actions.pod:4355
22916 #, no-wrap
22917 msgid ""
22918 " zero-device device\n"
22919 "\n"
22920 msgstr ""
22921
22922 # type: textblock
22923 #: ../fish/guestfish-actions.pod:4357
22924 msgid ""
22925 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
22926 "which just zeroes the first few blocks of a device."
22927 msgstr ""
22928
22929 # type: =head2
22930 #: ../fish/guestfish-actions.pod:4364
22931 msgid "zerofree"
22932 msgstr ""
22933
22934 # type: verbatim
22935 #: ../fish/guestfish-actions.pod:4366
22936 #, no-wrap
22937 msgid ""
22938 " zerofree device\n"
22939 "\n"
22940 msgstr ""
22941
22942 # type: =head2
22943 #: ../fish/guestfish-actions.pod:4379
22944 msgid "zfgrep"
22945 msgstr ""
22946
22947 # type: verbatim
22948 #: ../fish/guestfish-actions.pod:4381
22949 #, no-wrap
22950 msgid ""
22951 " zfgrep pattern path\n"
22952 "\n"
22953 msgstr ""
22954
22955 # type: =head2
22956 #: ../fish/guestfish-actions.pod:4389
22957 msgid "zfgrepi"
22958 msgstr ""
22959
22960 # type: verbatim
22961 #: ../fish/guestfish-actions.pod:4391
22962 #, no-wrap
22963 msgid ""
22964 " zfgrepi pattern path\n"
22965 "\n"
22966 msgstr ""
22967
22968 # type: =head2
22969 #: ../fish/guestfish-actions.pod:4399
22970 msgid "zfile"
22971 msgstr ""
22972
22973 # type: verbatim
22974 #: ../fish/guestfish-actions.pod:4401
22975 #, no-wrap
22976 msgid ""
22977 " zfile meth path\n"
22978 "\n"
22979 msgstr ""
22980
22981 # type: textblock
22982 #: ../fish/guestfish-actions.pod:4408
22983 msgid ""
22984 "Since 1.0.63, use L</file> instead which can now process compressed files."
22985 msgstr ""
22986
22987 # type: =head2
22988 #: ../fish/guestfish-actions.pod:4418
22989 msgid "zgrep"
22990 msgstr ""
22991
22992 # type: verbatim
22993 #: ../fish/guestfish-actions.pod:4420
22994 #, no-wrap
22995 msgid ""
22996 " zgrep regex path\n"
22997 "\n"
22998 msgstr ""
22999
23000 # type: =head2
23001 #: ../fish/guestfish-actions.pod:4428
23002 msgid "zgrepi"
23003 msgstr ""
23004
23005 # type: verbatim
23006 #: ../fish/guestfish-actions.pod:4430
23007 #, no-wrap
23008 msgid ""
23009 " zgrepi regex path\n"
23010 "\n"
23011 msgstr ""
23012
23013 # type: =head2
23014 #: ../fish/guestfish-commands.pod:1
23015 msgid "alloc"
23016 msgstr ""
23017
23018 # type: =head2
23019 #: ../fish/guestfish-commands.pod:3
23020 msgid "allocate"
23021 msgstr ""
23022
23023 # type: verbatim
23024 #: ../fish/guestfish-commands.pod:5
23025 #, no-wrap
23026 msgid ""
23027 " alloc filename size\n"
23028 "\n"
23029 msgstr ""
23030
23031 # type: textblock
23032 #: ../fish/guestfish-commands.pod:7
23033 msgid ""
23034 "This creates an empty (zeroed) file of the given size, and then adds so it "
23035 "can be further examined."
23036 msgstr ""
23037
23038 # type: textblock
23039 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23040 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23041 msgstr ""
23042
23043 # type: textblock
23044 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23045 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23046 msgstr ""
23047
23048 # type: textblock
23049 #: ../fish/guestfish-commands.pod:14
23050 msgid ""
23051 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23052 "image, see L</PREPARED DISK IMAGES>."
23053 msgstr ""
23054
23055 # type: =head2
23056 #: ../fish/guestfish-commands.pod:17
23057 msgid "copy-in"
23058 msgstr ""
23059
23060 # type: verbatim
23061 #: ../fish/guestfish-commands.pod:19
23062 #, no-wrap
23063 msgid ""
23064 " copy-in local [local ...] /remotedir\n"
23065 "\n"
23066 msgstr ""
23067
23068 # type: textblock
23069 #: ../fish/guestfish-commands.pod:21
23070 msgid ""
23071 "C<copy-in> copies local files or directories recursively into the disk "
23072 "image, placing them in the directory called C</remotedir> (which must "
23073 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23074 "other commands as necessary."
23075 msgstr ""
23076
23077 # type: textblock
23078 #: ../fish/guestfish-commands.pod:26
23079 msgid ""
23080 "Multiple local files and directories can be specified, but the last "
23081 "parameter must always be a remote directory.  Wildcards cannot be used."
23082 msgstr ""
23083
23084 # type: =head2
23085 #: ../fish/guestfish-commands.pod:30
23086 msgid "copy-out"
23087 msgstr ""
23088
23089 # type: verbatim
23090 #: ../fish/guestfish-commands.pod:32
23091 #, no-wrap
23092 msgid ""
23093 " copy-out remote [remote ...] localdir\n"
23094 "\n"
23095 msgstr ""
23096
23097 # type: textblock
23098 #: ../fish/guestfish-commands.pod:34
23099 msgid ""
23100 "C<copy-out> copies remote files or directories recursively out of the disk "
23101 "image, placing them on the host disk in a local directory called C<localdir> "
23102 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
23103 "download>, L</tar-out> and other commands as necessary."
23104 msgstr ""
23105
23106 # type: textblock
23107 #: ../fish/guestfish-commands.pod:40
23108 msgid ""
23109 "Multiple remote files and directories can be specified, but the last "
23110 "parameter must always be a local directory.  To download to the current "
23111 "directory, use C<.> as in:"
23112 msgstr ""
23113
23114 # type: verbatim
23115 #: ../fish/guestfish-commands.pod:44
23116 #, no-wrap
23117 msgid ""
23118 " copy-out /home .\n"
23119 "\n"
23120 msgstr ""
23121
23122 # type: textblock
23123 #: ../fish/guestfish-commands.pod:46
23124 msgid ""
23125 "Wildcards cannot be used in the ordinary command, but you can use them with "
23126 "the help of L</glob> like this:"
23127 msgstr ""
23128
23129 # type: verbatim
23130 #: ../fish/guestfish-commands.pod:49
23131 #, no-wrap
23132 msgid ""
23133 " glob copy-out /home/* .\n"
23134 "\n"
23135 msgstr ""
23136
23137 # type: =head2
23138 #: ../fish/guestfish-commands.pod:51
23139 msgid "echo"
23140 msgstr ""
23141
23142 # type: verbatim
23143 #: ../fish/guestfish-commands.pod:53
23144 #, no-wrap
23145 msgid ""
23146 " echo [params ...]\n"
23147 "\n"
23148 msgstr ""
23149
23150 # type: textblock
23151 #: ../fish/guestfish-commands.pod:55
23152 msgid "This echos the parameters to the terminal."
23153 msgstr ""
23154
23155 # type: =head2
23156 #: ../fish/guestfish-commands.pod:57
23157 msgid "edit"
23158 msgstr ""
23159
23160 # type: =head2
23161 #: ../fish/guestfish-commands.pod:59
23162 msgid "vi"
23163 msgstr ""
23164
23165 # type: =head2
23166 #: ../fish/guestfish-commands.pod:61
23167 msgid "emacs"
23168 msgstr ""
23169
23170 # type: verbatim
23171 #: ../fish/guestfish-commands.pod:63
23172 #, no-wrap
23173 msgid ""
23174 " edit filename\n"
23175 "\n"
23176 msgstr ""
23177
23178 # type: textblock
23179 #: ../fish/guestfish-commands.pod:65
23180 msgid ""
23181 "This is used to edit a file.  It downloads the file, edits it locally using "
23182 "your editor, then uploads the result."
23183 msgstr ""
23184
23185 # type: textblock
23186 #: ../fish/guestfish-commands.pod:68
23187 msgid ""
23188 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23189 "or C<emacs> you will get those corresponding editors."
23190 msgstr ""
23191
23192 # type: =head2
23193 #: ../fish/guestfish-commands.pod:72
23194 msgid "glob"
23195 msgstr ""
23196
23197 # type: verbatim
23198 #: ../fish/guestfish-commands.pod:74
23199 #, no-wrap
23200 msgid ""
23201 " glob command args...\n"
23202 "\n"
23203 msgstr ""
23204
23205 # type: textblock
23206 #: ../fish/guestfish-commands.pod:76
23207 msgid ""
23208 "Expand wildcards in any paths in the args list, and run C<command> "
23209 "repeatedly on each matching path."
23210 msgstr ""
23211
23212 # type: textblock
23213 #: ../fish/guestfish-commands.pod:79
23214 msgid "See L</WILDCARDS AND GLOBBING>."
23215 msgstr ""
23216
23217 # type: =head2
23218 #: ../fish/guestfish-commands.pod:81
23219 msgid "hexedit"
23220 msgstr ""
23221
23222 # type: verbatim
23223 #: ../fish/guestfish-commands.pod:83
23224 #, no-wrap
23225 msgid ""
23226 " hexedit <filename|device>\n"
23227 " hexedit <filename|device> <max>\n"
23228 " hexedit <filename|device> <start> <max>\n"
23229 "\n"
23230 msgstr ""
23231
23232 # type: textblock
23233 #: ../fish/guestfish-commands.pod:87
23234 msgid ""
23235 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23236 "device."
23237 msgstr ""
23238
23239 # type: textblock
23240 #: ../fish/guestfish-commands.pod:90
23241 msgid ""
23242 "This command works by downloading potentially the whole file or device, "
23243 "editing it locally, then uploading it.  If the file or device is large, you "
23244 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23245 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23246 "usual modifiers allowed such as C<1M> (1 megabyte)."
23247 msgstr ""
23248
23249 # type: textblock
23250 #: ../fish/guestfish-commands.pod:97
23251 msgid "For example to edit the first few sectors of a disk you might do:"
23252 msgstr ""
23253
23254 # type: verbatim
23255 #: ../fish/guestfish-commands.pod:100
23256 #, no-wrap
23257 msgid ""
23258 " hexedit /dev/sda 1M\n"
23259 "\n"
23260 msgstr ""
23261
23262 # type: textblock
23263 #: ../fish/guestfish-commands.pod:102
23264 msgid ""
23265 "which would allow you to edit anywhere within the first megabyte of the disk."
23266 msgstr ""
23267
23268 # type: textblock
23269 #: ../fish/guestfish-commands.pod:105
23270 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23271 msgstr ""
23272
23273 # type: verbatim
23274 #: ../fish/guestfish-commands.pod:107
23275 #, no-wrap
23276 msgid ""
23277 " hexedit /dev/sda1 0x400 0x400\n"
23278 "\n"
23279 msgstr ""
23280
23281 # type: textblock
23282 #: ../fish/guestfish-commands.pod:109
23283 msgid "(assuming the superblock is in the standard location)."
23284 msgstr ""
23285
23286 # type: textblock
23287 #: ../fish/guestfish-commands.pod:111
23288 msgid ""
23289 "This command requires the external L<hexedit(1)> program.  You can specify "
23290 "another program to use by setting the C<HEXEDITOR> environment variable."
23291 msgstr ""
23292
23293 # type: textblock
23294 #: ../fish/guestfish-commands.pod:115
23295 msgid "See also L</hexdump>."
23296 msgstr ""
23297
23298 # type: =head2
23299 #: ../fish/guestfish-commands.pod:117
23300 msgid "lcd"
23301 msgstr ""
23302
23303 # type: verbatim
23304 #: ../fish/guestfish-commands.pod:119
23305 #, no-wrap
23306 msgid ""
23307 " lcd directory\n"
23308 "\n"
23309 msgstr ""
23310
23311 # type: textblock
23312 #: ../fish/guestfish-commands.pod:121
23313 msgid ""
23314 "Change the local directory, ie. the current directory of guestfish itself."
23315 msgstr ""
23316
23317 # type: textblock
23318 #: ../fish/guestfish-commands.pod:124
23319 msgid "Note that C<!cd> won't do what you might expect."
23320 msgstr ""
23321
23322 # type: =head2
23323 #: ../fish/guestfish-commands.pod:126
23324 msgid "man"
23325 msgstr ""
23326
23327 # type: =head2
23328 #: ../fish/guestfish-commands.pod:128
23329 msgid "manual"
23330 msgstr ""
23331
23332 # type: verbatim
23333 #: ../fish/guestfish-commands.pod:130
23334 #, no-wrap
23335 msgid ""
23336 "  man\n"
23337 "\n"
23338 msgstr ""
23339
23340 # type: textblock
23341 #: ../fish/guestfish-commands.pod:132
23342 msgid "Opens the manual page for guestfish."
23343 msgstr ""
23344
23345 # type: =head2
23346 #: ../fish/guestfish-commands.pod:134
23347 msgid "more"
23348 msgstr ""
23349
23350 # type: =head2
23351 #: ../fish/guestfish-commands.pod:136
23352 msgid "less"
23353 msgstr ""
23354
23355 # type: verbatim
23356 #: ../fish/guestfish-commands.pod:138
23357 #, no-wrap
23358 msgid ""
23359 " more filename\n"
23360 "\n"
23361 msgstr ""
23362
23363 # type: verbatim
23364 #: ../fish/guestfish-commands.pod:140
23365 #, no-wrap
23366 msgid ""
23367 " less filename\n"
23368 "\n"
23369 msgstr ""
23370
23371 # type: textblock
23372 #: ../fish/guestfish-commands.pod:142
23373 msgid "This is used to view a file."
23374 msgstr ""
23375
23376 # type: textblock
23377 #: ../fish/guestfish-commands.pod:144
23378 msgid ""
23379 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23380 "C<less> you will get the C<less> command specifically."
23381 msgstr ""
23382
23383 # type: =head2
23384 #: ../fish/guestfish-commands.pod:147
23385 msgid "reopen"
23386 msgstr ""
23387
23388 # type: verbatim
23389 #: ../fish/guestfish-commands.pod:149
23390 #, no-wrap
23391 msgid ""
23392 "  reopen\n"
23393 "\n"
23394 msgstr ""
23395
23396 # type: textblock
23397 #: ../fish/guestfish-commands.pod:151
23398 msgid ""
23399 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23400 "normally, because the handle is closed properly when guestfish exits.  "
23401 "However this is occasionally useful for testing."
23402 msgstr ""
23403
23404 # type: =head2
23405 #: ../fish/guestfish-commands.pod:155
23406 msgid "sparse"
23407 msgstr ""
23408
23409 # type: verbatim
23410 #: ../fish/guestfish-commands.pod:157
23411 #, no-wrap
23412 msgid ""
23413 " sparse filename size\n"
23414 "\n"
23415 msgstr ""
23416
23417 # type: textblock
23418 #: ../fish/guestfish-commands.pod:159
23419 msgid ""
23420 "This creates an empty sparse file of the given size, and then adds so it can "
23421 "be further examined."
23422 msgstr ""
23423
23424 # type: textblock
23425 #: ../fish/guestfish-commands.pod:162
23426 msgid ""
23427 "In all respects it works the same as the L</alloc> command, except that the "
23428 "image file is allocated sparsely, which means that disk blocks are not "
23429 "assigned to the file until they are needed.  Sparse disk files only use "
23430 "space when written to, but they are slower and there is a danger you could "
23431 "run out of real disk space during a write operation."
23432 msgstr ""
23433
23434 # type: =head2
23435 #: ../fish/guestfish-commands.pod:172
23436 msgid "supported"
23437 msgstr ""
23438
23439 # type: verbatim
23440 #: ../fish/guestfish-commands.pod:174
23441 #, no-wrap
23442 msgid ""
23443 " supported\n"
23444 "\n"
23445 msgstr ""
23446
23447 # type: textblock
23448 #: ../fish/guestfish-commands.pod:176
23449 msgid ""
23450 "This command returns a list of the optional groups known to the daemon, and "
23451 "indicates which ones are supported by this build of the libguestfs appliance."
23452 msgstr ""
23453
23454 # type: textblock
23455 #: ../fish/guestfish-commands.pod:180
23456 msgid "See also L<guestfs(3)/AVAILABILITY>."
23457 msgstr ""
23458
23459 # type: =head2
23460 #: ../fish/guestfish-commands.pod:182
23461 msgid "time"
23462 msgstr ""
23463
23464 # type: verbatim
23465 #: ../fish/guestfish-commands.pod:184
23466 #, no-wrap
23467 msgid ""
23468 " time command args...\n"
23469 "\n"
23470 msgstr ""
23471
23472 # type: textblock
23473 #: ../fish/guestfish-commands.pod:186
23474 msgid ""
23475 "Run the command as usual, but print the elapsed time afterwards.  This can "
23476 "be useful for benchmarking operations."
23477 msgstr ""
23478
23479 # type: textblock
23480 #: ../test-tool/libguestfs-test-tool.pod:5
23481 msgid "libguestfs-test-tool - End user tests for libguestfs"
23482 msgstr ""
23483
23484 # type: verbatim
23485 #: ../test-tool/libguestfs-test-tool.pod:9
23486 #, no-wrap
23487 msgid ""
23488 " libguestfs-test-tool [--options]\n"
23489 "\n"
23490 msgstr ""
23491
23492 # type: textblock
23493 #: ../test-tool/libguestfs-test-tool.pod:13
23494 msgid ""
23495 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23496 "and developers, to allow them to check basic libguestfs functionality is "
23497 "working.  This is needed because libguestfs occasionally breaks for reasons "
23498 "beyond our control: usually because of changes in the underlying qemu or "
23499 "kernel packages, or the host environment."
23500 msgstr ""
23501
23502 # type: textblock
23503 #: ../test-tool/libguestfs-test-tool.pod:20
23504 msgid "If you suspect a problem in libguestfs, then just run:"
23505 msgstr ""
23506
23507 # type: verbatim
23508 #: ../test-tool/libguestfs-test-tool.pod:22
23509 #, no-wrap
23510 msgid ""
23511 " libguestfs-test-tool\n"
23512 "\n"
23513 msgstr ""
23514
23515 # type: textblock
23516 #: ../test-tool/libguestfs-test-tool.pod:24
23517 msgid "It will print lots of diagnostic messages."
23518 msgstr ""
23519
23520 # type: textblock
23521 #: ../test-tool/libguestfs-test-tool.pod:26
23522 msgid "If it runs to completion successfully, you will see this near the end:"
23523 msgstr ""
23524
23525 # type: verbatim
23526 #: ../test-tool/libguestfs-test-tool.pod:28
23527 #, no-wrap
23528 msgid ""
23529 " ===== TEST FINISHED OK =====\n"
23530 "\n"
23531 msgstr ""
23532
23533 # type: textblock
23534 #: ../test-tool/libguestfs-test-tool.pod:30
23535 msgid "and the test tool will exit with code 0."
23536 msgstr ""
23537
23538 # type: textblock
23539 #: ../test-tool/libguestfs-test-tool.pod:32
23540 msgid ""
23541 "If it fails (and/or exits with non-zero error code), please paste the "
23542 "B<complete, unedited> output of the test tool into a bug report.  More "
23543 "information about reporting bugs can be found on the L<http://libguestfs.org/"
23544 "> website."
23545 msgstr ""
23546
23547 # type: =item
23548 #: ../test-tool/libguestfs-test-tool.pod:41
23549 msgid "I<--help>"
23550 msgstr ""
23551
23552 # type: textblock
23553 #: ../test-tool/libguestfs-test-tool.pod:43
23554 msgid "Display short usage information and exit."
23555 msgstr ""
23556
23557 # type: =item
23558 #: ../test-tool/libguestfs-test-tool.pod:45
23559 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23560 msgstr ""
23561
23562 # type: textblock
23563 #: ../test-tool/libguestfs-test-tool.pod:47
23564 msgid ""
23565 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23566 "normally look in the C<$libexec> directory that was configured when the tool "
23567 "was built."
23568 msgstr ""
23569
23570 # type: =item
23571 #: ../test-tool/libguestfs-test-tool.pod:51
23572 msgid "I<--qemu qemu_binary>"
23573 msgstr ""
23574
23575 # type: textblock
23576 #: ../test-tool/libguestfs-test-tool.pod:53
23577 msgid ""
23578 "If you have downloaded another qemu binary, point this option at the full "
23579 "path of the binary to try it."
23580 msgstr ""
23581
23582 # type: =item
23583 #: ../test-tool/libguestfs-test-tool.pod:56
23584 msgid "I<--qemudir qemu_source_dir>"
23585 msgstr ""
23586
23587 # type: textblock
23588 #: ../test-tool/libguestfs-test-tool.pod:58
23589 msgid ""
23590 "If you have compiled qemu from source, point this option at the source "
23591 "directory to try it."
23592 msgstr ""
23593
23594 # type: =item
23595 #: ../test-tool/libguestfs-test-tool.pod:61
23596 msgid "I<--timeout N>"
23597 msgstr ""
23598
23599 # type: textblock
23600 #: ../test-tool/libguestfs-test-tool.pod:63
23601 msgid ""
23602 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23603 "does not usually need to be adjusted unless your machine is very slow."
23604 msgstr ""
23605
23606 # type: =head1
23607 #: ../test-tool/libguestfs-test-tool.pod:69
23608 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23609 msgstr ""
23610
23611 # type: textblock
23612 #: ../test-tool/libguestfs-test-tool.pod:71
23613 msgid ""
23614 "If you have compiled another version of qemu from source and would like to "
23615 "try that, then you can use the I<--qemudir> option to point to the qemu "
23616 "source directory."
23617 msgstr ""
23618
23619 # type: textblock
23620 #: ../test-tool/libguestfs-test-tool.pod:75
23621 msgid ""
23622 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23623 "option to point to the binary."
23624 msgstr ""
23625
23626 # type: textblock
23627 #: ../test-tool/libguestfs-test-tool.pod:78
23628 msgid ""
23629 "When using an alternate qemu with libguestfs, usually you would need to "
23630 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
23631 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
23632 "use either of the I<--qemudir> or I<--qemu> options."
23633 msgstr ""
23634
23635 # type: textblock
23636 #: ../test-tool/libguestfs-test-tool.pod:85
23637 msgid ""
23638 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23639 "I<1> if there was an error."
23640 msgstr ""
23641
23642 # type: =item
23643 #: ../test-tool/libguestfs-test-tool.pod:92
23644 msgid "/usr/libexec/libguestfs-test-tool-helper"
23645 msgstr ""
23646
23647 # type: textblock
23648 #: ../test-tool/libguestfs-test-tool.pod:94
23649 msgid ""
23650 "This helper program is run inside the appliance and provides additional "
23651 "tests."
23652 msgstr ""
23653
23654 # type: =item
23655 #: ../test-tool/libguestfs-test-tool.pod:97
23656 msgid "/usr/bin/mkisofs"
23657 msgstr ""
23658
23659 # type: textblock
23660 #: ../test-tool/libguestfs-test-tool.pod:99
23661 msgid ""
23662 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23663 "which is used as part of the tests."
23664 msgstr ""
23665
23666 # type: textblock
23667 #: ../test-tool/libguestfs-test-tool.pod:106
23668 msgid ""
23669 "For the full list of environment variables which may affect libguestfs, "
23670 "please see the L<guestfs(3)> manual page."
23671 msgstr ""
23672
23673 # type: textblock
23674 #: ../test-tool/libguestfs-test-tool.pod:111
23675 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23676 msgstr ""
23677
23678 # type: textblock
23679 #: ../test-tool/libguestfs-test-tool.pod:121
23680 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23681 msgstr ""
23682
23683 # type: textblock
23684 #: ../fuse/guestmount.pod:5
23685 msgid ""
23686 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23687 msgstr ""
23688
23689 # type: verbatim
23690 #: ../fuse/guestmount.pod:9
23691 #, no-wrap
23692 msgid ""
23693 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23694 "\n"
23695 msgstr ""
23696
23697 # type: verbatim
23698 #: ../fuse/guestmount.pod:11
23699 #, no-wrap
23700 msgid ""
23701 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23702 "\n"
23703 msgstr ""
23704
23705 # type: verbatim
23706 #: ../fuse/guestmount.pod:13
23707 #, no-wrap
23708 msgid ""
23709 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23710 "\n"
23711 msgstr ""
23712
23713 # type: textblock
23714 #: ../fuse/guestmount.pod:17
23715 msgid ""
23716 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23717 "machines.  If you do this, you risk disk corruption in the VM."
23718 msgstr ""
23719
23720 # type: textblock
23721 #: ../fuse/guestmount.pod:22
23722 msgid ""
23723 "The guestmount program can be used to mount virtual machine filesystems and "
23724 "other disk images on the host.  It uses libguestfs for access to the guest "
23725 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23726 "a mountable device."
23727 msgstr ""
23728
23729 # type: textblock
23730 #: ../fuse/guestmount.pod:27
23731 msgid ""
23732 "Along with other options, you have to give at least one device (I<-a> "
23733 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23734 "option) or use the I<-i> inspection option.  How this works is better "
23735 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
23736 "below."
23737 msgstr ""
23738
23739 # type: textblock
23740 #: ../fuse/guestmount.pod:33
23741 msgid ""
23742 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23743 "by you, and the filesystem will not be visible to any other users unless you "
23744 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23745 "the filesystem, use the C<fusermount -u> command."
23746 msgstr ""
23747
23748 # type: textblock
23749 #: ../fuse/guestmount.pod:41
23750 msgid ""
23751 "For a typical Windows guest which has its main filesystem on the first "
23752 "partition:"
23753 msgstr ""
23754
23755 # type: verbatim
23756 #: ../fuse/guestmount.pod:44
23757 #, no-wrap
23758 msgid ""
23759 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23760 "\n"
23761 msgstr ""
23762
23763 # type: textblock
23764 #: ../fuse/guestmount.pod:46
23765 msgid ""
23766 "For a typical Linux guest which has a /boot filesystem on the first "
23767 "partition, and the root filesystem on a logical volume:"
23768 msgstr ""
23769
23770 # type: verbatim
23771 #: ../fuse/guestmount.pod:49
23772 #, no-wrap
23773 msgid ""
23774 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23775 "\n"
23776 msgstr ""
23777
23778 # type: textblock
23779 #: ../fuse/guestmount.pod:51
23780 msgid "To get libguestfs to detect guest mountpoints for you:"
23781 msgstr ""
23782
23783 # type: verbatim
23784 #: ../fuse/guestmount.pod:53
23785 #, no-wrap
23786 msgid ""
23787 " guestmount -a guest.img -i --ro /mnt\n"
23788 "\n"
23789 msgstr ""
23790
23791 # type: textblock
23792 #: ../fuse/guestmount.pod:55
23793 msgid "For a libvirt guest called \"Guest\" you could do:"
23794 msgstr ""
23795
23796 # type: verbatim
23797 #: ../fuse/guestmount.pod:57
23798 #, no-wrap
23799 msgid ""
23800 " guestmount -d Guest -i --ro /mnt\n"
23801 "\n"
23802 msgstr ""
23803
23804 # type: textblock
23805 #: ../fuse/guestmount.pod:59
23806 msgid ""
23807 "If you don't know what filesystems are contained in a guest or disk image, "
23808 "use L<virt-list-filesystems(1)> first:"
23809 msgstr ""
23810
23811 # type: verbatim
23812 #: ../fuse/guestmount.pod:62
23813 #, no-wrap
23814 msgid ""
23815 " virt-list-filesystems MyGuest\n"
23816 "\n"
23817 msgstr ""
23818
23819 # type: textblock
23820 #: ../fuse/guestmount.pod:64
23821 msgid ""
23822 "If you want to trace the libguestfs calls but without excessive debugging "
23823 "information, we recommend:"
23824 msgstr ""
23825
23826 # type: verbatim
23827 #: ../fuse/guestmount.pod:67
23828 #, no-wrap
23829 msgid ""
23830 " guestmount [...] --trace /mnt\n"
23831 "\n"
23832 msgstr ""
23833
23834 # type: textblock
23835 #: ../fuse/guestmount.pod:69
23836 msgid "If you want to debug the program, we recommend:"
23837 msgstr ""
23838
23839 # type: verbatim
23840 #: ../fuse/guestmount.pod:71
23841 #, no-wrap
23842 msgid ""
23843 " guestmount [...] --trace --verbose /mnt\n"
23844 "\n"
23845 msgstr ""
23846
23847 # type: textblock
23848 #: ../fuse/guestmount.pod:79
23849 msgid "Add a block device or virtual machine image."
23850 msgstr ""
23851
23852 # type: =item
23853 #: ../fuse/guestmount.pod:96
23854 msgid "B<--dir-cache-timeout N>"
23855 msgstr ""
23856
23857 # type: textblock
23858 #: ../fuse/guestmount.pod:98
23859 msgid ""
23860 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23861 "seconds.  The readdir cache [actually, there are several semi-independent "
23862 "caches] is populated after a readdir(2) call with the stat and extended "
23863 "attributes of the files in the directory, in anticipation that they will be "
23864 "requested soon after."
23865 msgstr ""
23866
23867 # type: textblock
23868 #: ../fuse/guestmount.pod:104
23869 msgid ""
23870 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23871 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23872 "requests, only cache existing ones."
23873 msgstr ""
23874
23875 # type: textblock
23876 #: ../fuse/guestmount.pod:115
23877 msgid ""
23878 "If you have untrusted raw-format guest disk images, you should use this "
23879 "option to specify the disk format.  This avoids a possible security problem "
23880 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
23881 "guestfs_add_drive_opts>."
23882 msgstr ""
23883
23884 # type: =item
23885 #: ../fuse/guestmount.pod:120
23886 msgid "B<--fuse-help>"
23887 msgstr ""
23888
23889 # type: textblock
23890 #: ../fuse/guestmount.pod:122
23891 msgid "Display help on special FUSE options (see I<-o> below)."
23892 msgstr ""
23893
23894 # type: textblock
23895 #: ../fuse/guestmount.pod:126
23896 msgid "Display brief help and exit."
23897 msgstr ""
23898
23899 # type: =item
23900 #: ../fuse/guestmount.pod:134
23901 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
23902 msgstr ""
23903
23904 # type: textblock
23905 #: ../fuse/guestmount.pod:136
23906 msgid ""
23907 "Mount the named partition or logical volume on the given mountpoint B<in the "
23908 "guest> (this has nothing to do with mountpoints in the host)."
23909 msgstr ""
23910
23911 # type: textblock
23912 #: ../fuse/guestmount.pod:139
23913 msgid ""
23914 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23915 "something on C</>."
23916 msgstr ""
23917
23918 # type: textblock
23919 #: ../fuse/guestmount.pod:144
23920 msgid ""
23921 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23922 "unmounted.  If you specify this option, then we don't attempt to sync the "
23923 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23924 msgstr ""
23925
23926 # type: =item
23927 #: ../fuse/guestmount.pod:149
23928 msgid "B<-o option> | B<--option option>"
23929 msgstr ""
23930
23931 # type: textblock
23932 #: ../fuse/guestmount.pod:151
23933 msgid "Pass extra options to FUSE."
23934 msgstr ""
23935
23936 # type: textblock
23937 #: ../fuse/guestmount.pod:153
23938 msgid ""
23939 "To get a list of all the extra options supported by FUSE, use the command "
23940 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
23941 "of them are a good idea."
23942 msgstr ""
23943
23944 # type: verbatim
23945 #: ../fuse/guestmount.pod:157
23946 #, no-wrap
23947 msgid ""
23948 " guestmount --fuse-help\n"
23949 "\n"
23950 msgstr ""
23951
23952 # type: textblock
23953 #: ../fuse/guestmount.pod:159
23954 msgid "Some potentially useful FUSE options:"
23955 msgstr ""
23956
23957 # type: =item
23958 #: ../fuse/guestmount.pod:163
23959 msgid "B<-o allow_other>"
23960 msgstr ""
23961
23962 # type: textblock
23963 #: ../fuse/guestmount.pod:165
23964 msgid "Allow other users to see the filesystem."
23965 msgstr ""
23966
23967 # type: =item
23968 #: ../fuse/guestmount.pod:167
23969 msgid "B<-o attr_timeout=N>"
23970 msgstr ""
23971
23972 # type: textblock
23973 #: ../fuse/guestmount.pod:169
23974 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23975 msgstr ""
23976
23977 # type: =item
23978 #: ../fuse/guestmount.pod:171
23979 msgid "B<-o kernel_cache>"
23980 msgstr ""
23981
23982 # type: textblock
23983 #: ../fuse/guestmount.pod:173
23984 msgid ""
23985 "Allow the kernel to cache files (reduces the number of reads that have to go "
23986 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
23987 "afford the extra memory usage."
23988 msgstr ""
23989
23990 # type: =item
23991 #: ../fuse/guestmount.pod:177
23992 msgid "B<-o uid=N> B<-o gid=N>"
23993 msgstr ""
23994
23995 # type: textblock
23996 #: ../fuse/guestmount.pod:179
23997 msgid ""
23998 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23999 "the chosen values."
24000 msgstr ""
24001
24002 # type: textblock
24003 #: ../fuse/guestmount.pod:186
24004 msgid ""
24005 "Add devices and mount everything read-only.  Also disallow writes and make "
24006 "the disk appear read-only to FUSE."
24007 msgstr ""
24008
24009 # type: textblock
24010 #: ../fuse/guestmount.pod:189
24011 msgid ""
24012 "This is highly recommended if you are not going to edit the guest disk.  If "
24013 "the guest is running and this option is I<not> supplied, then there is a "
24014 "strong risk of disk corruption in the guest.  We try to prevent this from "
24015 "happening, but it is not always possible."
24016 msgstr ""
24017
24018 # type: textblock
24019 #: ../fuse/guestmount.pod:196
24020 msgid "Enable SELinux support for the guest."
24021 msgstr ""
24022
24023 # type: textblock
24024 #: ../fuse/guestmount.pod:200
24025 msgid "Enable verbose messages from underlying libguestfs."
24026 msgstr ""
24027
24028 # type: textblock
24029 #: ../fuse/guestmount.pod:204
24030 msgid "Display the program version and exit."
24031 msgstr ""
24032
24033 # type: =item
24034 #: ../fuse/guestmount.pod:206
24035 msgid "B<-x> | B<--trace>"
24036 msgstr ""
24037
24038 # type: textblock
24039 #: ../fuse/guestmount.pod:208
24040 msgid "Trace libguestfs calls."
24041 msgstr ""
24042
24043 # type: textblock
24044 #: ../fuse/guestmount.pod:210
24045 msgid "This also stops the daemon from forking into the background."
24046 msgstr ""
24047
24048 # type: textblock
24049 #: ../fuse/guestmount.pod:216
24050 msgid ""
24051 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24052 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
24053 "net/>."
24054 msgstr ""
24055
24056 # type: textblock
24057 #: ../inspector/virt-inspector.pl:40
24058 msgid ""
24059 "virt-inspector - Display OS version, kernel, drivers, mount points, "
24060 "applications, etc. in a virtual machine"
24061 msgstr ""
24062
24063 # type: verbatim
24064 #: ../inspector/virt-inspector.pl:44
24065 #, no-wrap
24066 msgid ""
24067 " virt-inspector [--connect URI] domname\n"
24068 "\n"
24069 msgstr ""
24070
24071 # type: verbatim
24072 #: ../inspector/virt-inspector.pl:46
24073 #, no-wrap
24074 msgid ""
24075 " virt-inspector guest.img [guest.img ...]\n"
24076 "\n"
24077 msgstr ""
24078
24079 # type: textblock
24080 #: ../inspector/virt-inspector.pl:50
24081 msgid ""
24082 "B<virt-inspector> examines a virtual machine and tries to determine the "
24083 "version of the OS, the kernel version, what drivers are installed, whether "
24084 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
24085 "applications are installed and more."
24086 msgstr ""
24087
24088 # type: textblock
24089 #: ../inspector/virt-inspector.pl:55
24090 msgid ""
24091 "Virt-inspector can produce output in several formats, including a readable "
24092 "text report, and XML for feeding into other programs."
24093 msgstr ""
24094
24095 # type: textblock
24096 #: ../inspector/virt-inspector.pl:58
24097 msgid ""
24098 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24099 "libvirt domain (see: C<virsh list --all>)."
24100 msgstr ""
24101
24102 # type: textblock
24103 #: ../inspector/virt-inspector.pl:61
24104 msgid ""
24105 "You can also run virt-inspector directly on disk images from a single "
24106 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24107 "has several block devices, in which case you should list them one after "
24108 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24109 "to the guest's C</dev/sdb> and so on."
24110 msgstr ""
24111
24112 # type: textblock
24113 #: ../inspector/virt-inspector.pl:67
24114 msgid ""
24115 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24116 "inspect several virtual machines, you have to run virt-inspector several "
24117 "times (for example, from a shell script for-loop)."
24118 msgstr ""
24119
24120 # type: textblock
24121 #: ../inspector/virt-inspector.pl:72
24122 msgid ""
24123 "Because virt-inspector needs direct access to guest images, it won't "
24124 "normally work over remote libvirt connections."
24125 msgstr ""
24126
24127 # type: textblock
24128 #: ../inspector/virt-inspector.pl:85 ../tools/virt-edit.pl:83
24129 #: ../tools/virt-win-reg.pl:182 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:89
24130 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:90
24131 #: ../tools/virt-tar.pl:109 ../tools/virt-rescue.pl:113
24132 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
24133 msgid "Display brief help."
24134 msgstr ""
24135
24136 # type: =item
24137 #: ../inspector/virt-inspector.pl:91 ../tools/virt-edit.pl:89
24138 #: ../tools/virt-win-reg.pl:188 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:95
24139 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
24140 #: ../tools/virt-cat.pl:96 ../tools/virt-tar.pl:115
24141 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
24142 #: ../tools/virt-list-partitions.pl:67
24143 msgid "B<--version>"
24144 msgstr ""
24145
24146 # type: textblock
24147 #: ../inspector/virt-inspector.pl:93 ../tools/virt-edit.pl:91
24148 #: ../tools/virt-win-reg.pl:190 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:97
24149 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
24150 #: ../tools/virt-cat.pl:98 ../tools/virt-tar.pl:117
24151 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
24152 #: ../tools/virt-list-partitions.pl:69
24153 msgid "Display version number and exit."
24154 msgstr ""
24155
24156 # type: =item
24157 #: ../inspector/virt-inspector.pl:99 ../tools/virt-edit.pl:113
24158 #: ../tools/virt-win-reg.pl:204 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:103
24159 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:104
24160 #: ../tools/virt-tar.pl:123 ../tools/virt-rescue.pl:135
24161 #: ../tools/virt-list-partitions.pl:75
24162 msgid "B<--connect URI> | B<-c URI>"
24163 msgstr ""
24164
24165 # type: textblock
24166 #: ../inspector/virt-inspector.pl:101 ../tools/virt-edit.pl:115
24167 #: ../tools/virt-win-reg.pl:206 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:105
24168 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:106
24169 #: ../tools/virt-tar.pl:125 ../tools/virt-rescue.pl:137
24170 #: ../tools/virt-list-partitions.pl:77
24171 msgid ""
24172 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24173 "to the default libvirt hypervisor."
24174 msgstr ""
24175
24176 # type: textblock
24177 #: ../inspector/virt-inspector.pl:104
24178 msgid ""
24179 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24180 "you specify guest block devices directly, then libvirt is not used at all."
24181 msgstr ""
24182
24183 # type: =item
24184 #: ../inspector/virt-inspector.pl:112 ../tools/virt-edit.pl:125
24185 #: ../tools/virt-win-reg.pl:216 ../tools/virt-df.pl:117
24186 #: ../tools/virt-ls.pl:115 ../tools/virt-resize.pl:523
24187 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:116
24188 #: ../tools/virt-tar.pl:135 ../tools/virt-rescue.pl:147
24189 #: ../tools/virt-list-partitions.pl:87
24190 msgid "B<--format> raw"
24191 msgstr ""
24192
24193 # type: textblock
24194 #: ../inspector/virt-inspector.pl:114 ../tools/virt-edit.pl:127
24195 #: ../tools/virt-win-reg.pl:218 ../tools/virt-df.pl:119
24196 #: ../tools/virt-ls.pl:117 ../tools/virt-list-filesystems.pl:88
24197 #: ../tools/virt-cat.pl:118 ../tools/virt-tar.pl:137
24198 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
24199 msgid ""
24200 "Specify the format of disk images given on the command line.  If this is "
24201 "omitted then the format is autodetected from the content of the disk image."
24202 msgstr ""
24203
24204 # type: textblock
24205 #: ../inspector/virt-inspector.pl:118 ../tools/virt-edit.pl:131
24206 #: ../tools/virt-win-reg.pl:222 ../tools/virt-df.pl:123
24207 #: ../tools/virt-ls.pl:121 ../tools/virt-list-filesystems.pl:92
24208 #: ../tools/virt-cat.pl:122 ../tools/virt-tar.pl:141
24209 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
24210 msgid ""
24211 "If disk images are requested from libvirt, then this program asks libvirt "
24212 "for this information.  In this case, the value of the format parameter is "
24213 "ignored."
24214 msgstr ""
24215
24216 # type: textblock
24217 #: ../inspector/virt-inspector.pl:122 ../tools/virt-edit.pl:135
24218 #: ../tools/virt-win-reg.pl:226 ../tools/virt-df.pl:127
24219 #: ../tools/virt-ls.pl:125 ../tools/virt-resize.pl:528
24220 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
24221 #: ../tools/virt-cat.pl:126 ../tools/virt-tar.pl:145
24222 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
24223 msgid ""
24224 "If working with untrusted raw-format guest disk images, you should ensure "
24225 "the format is always specified."
24226 msgstr ""
24227
24228 # type: textblock
24229 #: ../inspector/virt-inspector.pl:131
24230 msgid ""
24231 "The following options select the output format.  Use only one of them.  The "
24232 "default is a readable text report."
24233 msgstr ""
24234
24235 # type: =item
24236 #: ../inspector/virt-inspector.pl:136
24237 msgid "B<--text> (default)"
24238 msgstr ""
24239
24240 # type: textblock
24241 #: ../inspector/virt-inspector.pl:138
24242 msgid "Plain text report."
24243 msgstr ""
24244
24245 # type: =item
24246 #: ../inspector/virt-inspector.pl:140
24247 msgid "B<--none>"
24248 msgstr ""
24249
24250 # type: textblock
24251 #: ../inspector/virt-inspector.pl:142
24252 msgid "Produce no output at all."
24253 msgstr ""
24254
24255 # type: =item
24256 #: ../inspector/virt-inspector.pl:144
24257 msgid "B<--xml>"
24258 msgstr ""
24259
24260 # type: textblock
24261 #: ../inspector/virt-inspector.pl:146
24262 msgid ""
24263 "If you select I<--xml> then you get XML output which can be fed to other "
24264 "programs."
24265 msgstr ""
24266
24267 # type: =item
24268 #: ../inspector/virt-inspector.pl:149
24269 msgid "B<--yaml>"
24270 msgstr ""
24271
24272 # type: textblock
24273 #: ../inspector/virt-inspector.pl:151
24274 msgid ""
24275 "If you select I<--yaml> then you get YAML output which can be fed to other "
24276 "programs."
24277 msgstr ""
24278
24279 # type: =item
24280 #: ../inspector/virt-inspector.pl:154
24281 msgid "B<--perl>"
24282 msgstr ""
24283
24284 # type: textblock
24285 #: ../inspector/virt-inspector.pl:156
24286 msgid ""
24287 "If you select I<--perl> then you get Perl structures output which can be "
24288 "used directly in another Perl program."
24289 msgstr ""
24290
24291 # type: =item
24292 #: ../inspector/virt-inspector.pl:159
24293 msgid "B<--fish>"
24294 msgstr ""
24295
24296 # type: =item
24297 #: ../inspector/virt-inspector.pl:161
24298 msgid "B<--ro-fish>"
24299 msgstr ""
24300
24301 # type: textblock
24302 #: ../inspector/virt-inspector.pl:163
24303 msgid ""
24304 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
24305 "will automatically mount up the filesystems on the correct mount points.  "
24306 "Try this for example:"
24307 msgstr ""
24308
24309 # type: verbatim
24310 #: ../inspector/virt-inspector.pl:167
24311 #, no-wrap
24312 msgid ""
24313 " guestfish $(virt-inspector --fish guest.img)\n"
24314 "\n"
24315 msgstr ""
24316
24317 # type: textblock
24318 #: ../inspector/virt-inspector.pl:169
24319 msgid ""
24320 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
24321 "that the filesystems are mounted read-only."
24322 msgstr ""
24323
24324 # type: =item
24325 #: ../inspector/virt-inspector.pl:172
24326 msgid "B<--query>"
24327 msgstr ""
24328
24329 # type: textblock
24330 #: ../inspector/virt-inspector.pl:174
24331 msgid ""
24332 "In \"query mode\" we answer common questions about the guest, such as "
24333 "whether it is fullvirt or needs a Xen hypervisor to run."
24334 msgstr ""
24335
24336 # type: textblock
24337 #: ../inspector/virt-inspector.pl:177
24338 msgid "See section I<QUERY MODE> below."
24339 msgstr ""
24340
24341 # type: =item
24342 #: ../inspector/virt-inspector.pl:183
24343 msgid "B<--windows-registry>"
24344 msgstr ""
24345
24346 # type: textblock
24347 #: ../inspector/virt-inspector.pl:185
24348 msgid ""
24349 "This flag is ignored for compatibility with earlier releases of the software."
24350 msgstr ""
24351
24352 # type: textblock
24353 #: ../inspector/virt-inspector.pl:188
24354 msgid ""
24355 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
24356 "information out of the Registry for any Windows guest."
24357 msgstr ""
24358
24359 # type: =head1
24360 #: ../inspector/virt-inspector.pl:244
24361 msgid "OUTPUT FORMAT"
24362 msgstr ""
24363
24364 # type: verbatim
24365 #: ../inspector/virt-inspector.pl:246
24366 #, no-wrap
24367 msgid ""
24368 " Operating system(s)\n"
24369 " -------------------\n"
24370 " Linux (distro + version)\n"
24371 " Windows (version)\n"
24372 "    |\n"
24373 "    |\n"
24374 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
24375 "         -----------            --------------     ----------------\n"
24376 "         mount point => device  List of apps       Extra information\n"
24377 "         mount point => device  and versions       about kernel(s)\n"
24378 "              ...                                  and drivers\n"
24379 "         swap => swap device\n"
24380 "         (plus lots of extra information\n"
24381 "         about each filesystem)\n"
24382 "\n"
24383 msgstr ""
24384
24385 # type: textblock
24386 #: ../inspector/virt-inspector.pl:261
24387 msgid "The output of virt-inspector is a complex two-level data structure."
24388 msgstr ""
24389
24390 # type: textblock
24391 #: ../inspector/virt-inspector.pl:263
24392 msgid ""
24393 "At the top level is a list of the operating systems installed on the guest.  "
24394 "(For the vast majority of guests, only a single OS is installed.)  The data "
24395 "returned for the OS includes the name (Linux, Windows), the distribution and "
24396 "version."
24397 msgstr ""
24398
24399 # type: textblock
24400 #: ../inspector/virt-inspector.pl:268
24401 msgid "The diagram above shows what we return for each OS."
24402 msgstr ""
24403
24404 # type: textblock
24405 #: ../inspector/virt-inspector.pl:270
24406 msgid ""
24407 "With the I<--xml> option the output is mapped into an XML document.  There "
24408 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
24409 "normally ships with virt-inspector, or can be found in the source."
24410 msgstr ""
24411
24412 # type: textblock
24413 #: ../inspector/virt-inspector.pl:275
24414 msgid ""
24415 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
24416 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
24417 "and inspect the guest with everything mounted in the right place.  For "
24418 "example:"
24419 msgstr ""
24420
24421 # type: verbatim
24422 #: ../inspector/virt-inspector.pl:280
24423 #, no-wrap
24424 msgid ""
24425 " guestfish $(virt-inspector --ro-fish guest.img)\n"
24426 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
24427 "\n"
24428 msgstr ""
24429
24430 # type: =head1
24431 #: ../inspector/virt-inspector.pl:620
24432 msgid "QUERY MODE"
24433 msgstr ""
24434
24435 # type: textblock
24436 #: ../inspector/virt-inspector.pl:622
24437 msgid ""
24438 "When you use C<virt-inspector --query>, the output is a series of lines of "
24439 "the form:"
24440 msgstr ""
24441
24442 # type: verbatim
24443 #: ../inspector/virt-inspector.pl:625
24444 #, no-wrap
24445 msgid ""
24446 " windows=no\n"
24447 " linux=yes\n"
24448 " fullvirt=yes\n"
24449 " xen_pv_drivers=no\n"
24450 "\n"
24451 msgstr ""
24452
24453 # type: textblock
24454 #: ../inspector/virt-inspector.pl:630
24455 msgid ""
24456 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
24457 "if we could not determine the answer at all)."
24458 msgstr ""
24459
24460 # type: textblock
24461 #: ../inspector/virt-inspector.pl:633
24462 msgid ""
24463 "If the guest is multiboot, you can get apparently conflicting answers (eg. "
24464 "C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and has a "
24465 "Xen PV kernel).  This is normal, and just means that the guest can do both "
24466 "things, although it might require operator intervention such as selecting a "
24467 "boot option when the guest is booting."
24468 msgstr ""
24469
24470 # type: textblock
24471 #: ../inspector/virt-inspector.pl:640
24472 msgid "This section describes the full range of answers possible."
24473 msgstr ""
24474
24475 # type: =item
24476 #: ../inspector/virt-inspector.pl:661
24477 msgid "windows=(yes|no)"
24478 msgstr ""
24479
24480 # type: textblock
24481 #: ../inspector/virt-inspector.pl:663
24482 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
24483 msgstr ""
24484
24485 # type: =item
24486 #: ../inspector/virt-inspector.pl:676
24487 msgid "linux=(yes|no)"
24488 msgstr ""
24489
24490 # type: textblock
24491 #: ../inspector/virt-inspector.pl:678
24492 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
24493 msgstr ""
24494
24495 # type: =item
24496 #: ../inspector/virt-inspector.pl:691
24497 msgid "rhel=(yes|no)"
24498 msgstr ""
24499
24500 # type: textblock
24501 #: ../inspector/virt-inspector.pl:693
24502 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
24503 msgstr ""
24504
24505 # type: =item
24506 #: ../inspector/virt-inspector.pl:707
24507 msgid "fedora=(yes|no)"
24508 msgstr ""
24509
24510 # type: textblock
24511 #: ../inspector/virt-inspector.pl:709
24512 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
24513 msgstr ""
24514
24515 # type: =item
24516 #: ../inspector/virt-inspector.pl:722
24517 msgid "debian=(yes|no)"
24518 msgstr ""
24519
24520 # type: textblock
24521 #: ../inspector/virt-inspector.pl:724
24522 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
24523 msgstr ""
24524
24525 # type: =item
24526 #: ../inspector/virt-inspector.pl:737
24527 msgid "fullvirt=(yes|no)"
24528 msgstr ""
24529
24530 # type: textblock
24531 #: ../inspector/virt-inspector.pl:739
24532 msgid ""
24533 "Answer C<yes> if there is at least one operating system kernel installed in "
24534 "the guest which runs fully virtualized.  Such a guest would require a "
24535 "hypervisor which supports full system virtualization."
24536 msgstr ""
24537
24538 # type: =item
24539 #: ../inspector/virt-inspector.pl:762
24540 msgid "xen_domU_kernel=(yes|no)"
24541 msgstr ""
24542
24543 # type: textblock
24544 #: ../inspector/virt-inspector.pl:764
24545 msgid ""
24546 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
24547 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
24548 msgstr ""
24549
24550 # type: =item
24551 #: ../inspector/virt-inspector.pl:784
24552 msgid "xen_pv_drivers=(yes|no)"
24553 msgstr ""
24554
24555 # type: textblock
24556 #: ../inspector/virt-inspector.pl:786
24557 msgid ""
24558 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
24559 "(usually the kernel itself will be fully virtualized, but the PV drivers "
24560 "have been installed by the administrator for performance reasons)."
24561 msgstr ""
24562
24563 # type: =item
24564 #: ../inspector/virt-inspector.pl:808
24565 msgid "virtio_drivers=(yes|no)"
24566 msgstr ""
24567
24568 # type: textblock
24569 #: ../inspector/virt-inspector.pl:810
24570 msgid ""
24571 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
24572 "Virtio drivers are commonly used to improve the performance of KVM."
24573 msgstr ""
24574
24575 # type: =item
24576 #: ../inspector/virt-inspector.pl:831
24577 msgid "userspace_arch=(x86_64|...)"
24578 msgstr ""
24579
24580 # type: textblock
24581 #: ../inspector/virt-inspector.pl:833
24582 msgid "Print the architecture of userspace."
24583 msgstr ""
24584
24585 # type: textblock
24586 #: ../inspector/virt-inspector.pl:835 ../inspector/virt-inspector.pl:856
24587 msgid "NB. For multi-boot VMs this can print several lines."
24588 msgstr ""
24589
24590 # type: =item
24591 #: ../inspector/virt-inspector.pl:852
24592 msgid "kernel_arch=(x86_64|...)"
24593 msgstr ""
24594
24595 # type: textblock
24596 #: ../inspector/virt-inspector.pl:854
24597 msgid "Print the architecture of the kernel."
24598 msgstr ""
24599
24600 # type: =head2
24601 #: ../inspector/virt-inspector.pl:877 ../tools/virt-edit.pl:343
24602 #: ../tools/virt-win-reg.pl:142 ../tools/virt-win-reg.pl:480
24603 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:228
24604 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:209
24605 #: ../tools/virt-cat.pl:181 ../tools/virt-tar.pl:276
24606 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
24607 #: ../tools/virt-list-partitions.pl:247
24608 msgid "SHELL QUOTING"
24609 msgstr ""
24610
24611 # type: textblock
24612 #: ../inspector/virt-inspector.pl:879 ../tools/virt-edit.pl:345
24613 #: ../tools/virt-win-reg.pl:482 ../tools/virt-df.pl:635
24614 #: ../tools/virt-ls.pl:230 ../tools/virt-resize.pl:1481
24615 #: ../tools/virt-list-filesystems.pl:211 ../tools/virt-cat.pl:183
24616 #: ../tools/virt-tar.pl:278 ../tools/virt-rescue.pl:262
24617 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
24618 msgid ""
24619 "Libvirt guest names can contain arbitrary characters, some of which have "
24620 "meaning to the shell such as C<#> and space.  You may need to quote or "
24621 "escape these characters on the command line.  See the shell manual page L<sh"
24622 "(1)> for details."
24623 msgstr ""
24624
24625 # type: textblock
24626 #: ../inspector/virt-inspector.pl:886 ../tools/virt-df.pl:642
24627 msgid ""
24628 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24629 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24630 msgstr ""
24631
24632 # type: textblock
24633 #: ../inspector/virt-inspector.pl:895 ../tools/virt-edit.pl:364
24634 #: ../tools/virt-win-reg.pl:515 ../tools/virt-df.pl:651
24635 #: ../tools/virt-ls.pl:248 ../tools/virt-resize.pl:1510
24636 #: ../tools/virt-list-filesystems.pl:230 ../tools/virt-cat.pl:200
24637 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:279
24638 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
24639 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24640 msgstr ""
24641
24642 # type: textblock
24643 #: ../inspector/virt-inspector.pl:897
24644 msgid "Matthew Booth L<mbooth@redhat.com>"
24645 msgstr ""
24646
24647 # type: textblock
24648 #: ../inspector/virt-inspector.pl:901 ../tools/virt-ls.pl:252
24649 #: ../tools/virt-list-filesystems.pl:234 ../tools/virt-cat.pl:204
24650 #: ../tools/virt-tar.pl:300
24651 msgid "Copyright (C) 2009 Red Hat Inc."
24652 msgstr ""
24653
24654 # type: textblock
24655 #: ../tools/virt-edit.pl:35
24656 msgid "virt-edit - Edit a file in a virtual machine"
24657 msgstr ""
24658
24659 # type: verbatim
24660 #: ../tools/virt-edit.pl:39
24661 #, no-wrap
24662 msgid ""
24663 " virt-edit [--options] domname file\n"
24664 "\n"
24665 msgstr ""
24666
24667 # type: verbatim
24668 #: ../tools/virt-edit.pl:41
24669 #, no-wrap
24670 msgid ""
24671 " virt-edit [--options] disk.img [disk.img ...] file\n"
24672 "\n"
24673 msgstr ""
24674
24675 # type: verbatim
24676 #: ../tools/virt-edit.pl:43
24677 #, no-wrap
24678 msgid ""
24679 " virt-edit [domname|disk.img] file -e 'expr'\n"
24680 "\n"
24681 msgstr ""
24682
24683 # type: textblock
24684 #: ../tools/virt-edit.pl:47
24685 msgid ""
24686 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24687 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24688 "doing this, but doesn't catch all cases."
24689 msgstr ""
24690
24691 # type: textblock
24692 #: ../tools/virt-edit.pl:53
24693 msgid ""
24694 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24695 "the named virtual machine (or disk image)."
24696 msgstr ""
24697
24698 # type: textblock
24699 #: ../tools/virt-edit.pl:56
24700 msgid ""
24701 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24702 "you should look at the L<guestfish(1)> tool."
24703 msgstr ""
24704
24705 # type: textblock
24706 #: ../tools/virt-edit.pl:61
24707 msgid "Edit the named files interactively:"
24708 msgstr ""
24709
24710 # type: verbatim
24711 #: ../tools/virt-edit.pl:63
24712 #, no-wrap
24713 msgid ""
24714 " virt-edit mydomain /boot/grub/grub.conf\n"
24715 "\n"
24716 msgstr ""
24717
24718 # type: verbatim
24719 #: ../tools/virt-edit.pl:65
24720 #, no-wrap
24721 msgid ""
24722 " virt-edit mydomain /etc/passwd\n"
24723 "\n"
24724 msgstr ""
24725
24726 # type: textblock
24727 #: ../tools/virt-edit.pl:67
24728 msgid ""
24729 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
24730 "below).  To change the init default level to 5:"
24731 msgstr ""
24732
24733 # type: verbatim
24734 #: ../tools/virt-edit.pl:71
24735 #, no-wrap
24736 msgid ""
24737 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
24738 "\n"
24739 msgstr ""
24740
24741 # type: =item
24742 #: ../tools/virt-edit.pl:97
24743 msgid "B<--backup extension> | B<-b extension>"
24744 msgstr ""
24745
24746 # type: textblock
24747 #: ../tools/virt-edit.pl:99
24748 msgid ""
24749 "Create a backup of the original file I<in the guest disk image>.  The backup "
24750 "has the original filename with C<extension> added."
24751 msgstr ""
24752
24753 # type: textblock
24754 #: ../tools/virt-edit.pl:102
24755 msgid ""
24756 "Usually the first character of C<extension> would be a dot C<.> so you would "
24757 "write:"
24758 msgstr ""
24759
24760 # type: verbatim
24761 #: ../tools/virt-edit.pl:105
24762 #, no-wrap
24763 msgid ""
24764 " virt-edit -b .orig [etc]\n"
24765 "\n"
24766 msgstr ""
24767
24768 # type: textblock
24769 #: ../tools/virt-edit.pl:107
24770 msgid "By default, no backup file is made."
24771 msgstr ""
24772
24773 # type: textblock
24774 #: ../tools/virt-edit.pl:118 ../tools/virt-win-reg.pl:209
24775 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:108
24776 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:109
24777 #: ../tools/virt-tar.pl:128 ../tools/virt-rescue.pl:140
24778 #: ../tools/virt-list-partitions.pl:80
24779 msgid ""
24780 "If you specify guest block devices directly, then libvirt is not used at all."
24781 msgstr ""
24782
24783 # type: =item
24784 #: ../tools/virt-edit.pl:142
24785 msgid "B<--expr EXPR> | B<-e EXPR>"
24786 msgstr ""
24787
24788 # type: textblock
24789 #: ../tools/virt-edit.pl:144
24790 msgid ""
24791 "Instead of launching the external editor, non-interactively apply the Perl "
24792 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
24793 "EDITING> below."
24794 msgstr ""
24795
24796 # type: textblock
24797 #: ../tools/virt-edit.pl:148
24798 msgid ""
24799 "Be careful to properly quote the expression to prevent it from being altered "
24800 "by the shell."
24801 msgstr ""
24802
24803 # type: =head1
24804 #: ../tools/virt-edit.pl:268
24805 msgid "NON-INTERACTIVE EDITING"
24806 msgstr ""
24807
24808 # type: textblock
24809 #: ../tools/virt-edit.pl:270
24810 msgid ""
24811 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24812 "administrator can interactively edit the file."
24813 msgstr ""
24814
24815 # type: textblock
24816 #: ../tools/virt-edit.pl:273
24817 msgid ""
24818 "There are two ways also to use C<virt-edit> from scripts in order to make "
24819 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24820 "like this, it's less error-prone to write scripts directly using the "
24821 "libguestfs API and Augeas for configuration file editing.)"
24822 msgstr ""
24823
24824 # type: textblock
24825 #: ../tools/virt-edit.pl:279
24826 msgid ""
24827 "The first method is to temporarily set C<$EDITOR> to any script or program "
24828 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24829 "update C<tmpfile> in place however it likes."
24830 msgstr ""
24831
24832 # type: textblock
24833 #: ../tools/virt-edit.pl:283
24834 msgid ""
24835 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24836 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24837 "instances of C<foo> with C<bar> in a file:"
24838 msgstr ""
24839
24840 # type: verbatim
24841 #: ../tools/virt-edit.pl:287
24842 #, no-wrap
24843 msgid ""
24844 " virt-edit domname filename -e 's/foo/bar/'\n"
24845 "\n"
24846 msgstr ""
24847
24848 # type: textblock
24849 #: ../tools/virt-edit.pl:289
24850 msgid ""
24851 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24852 "For example to delete root's password you could do:"
24853 msgstr ""
24854
24855 # type: verbatim
24856 #: ../tools/virt-edit.pl:292
24857 #, no-wrap
24858 msgid ""
24859 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24860 "\n"
24861 msgstr ""
24862
24863 # type: textblock
24864 #: ../tools/virt-edit.pl:294
24865 msgid ""
24866 "What really happens is that the snippet is evaluated as a Perl expression "
24867 "for each line of the file.  The line, including the final C<\\n>, is passed "
24868 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24869 msgstr ""
24870
24871 # type: textblock
24872 #: ../tools/virt-edit.pl:299
24873 msgid ""
24874 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24875 "C<apache> user account from the password file you can do:"
24876 msgstr ""
24877
24878 # type: verbatim
24879 #: ../tools/virt-edit.pl:302
24880 #, no-wrap
24881 msgid ""
24882 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24883 "\n"
24884 msgstr ""
24885
24886 # type: textblock
24887 #: ../tools/virt-edit.pl:304
24888 msgid ""
24889 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24890 "the end of the file is rather difficult this way since there is no concept "
24891 "of \"last line of the file\" - your expression just doesn't get called "
24892 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24893 "want to do this."
24894 msgstr ""
24895
24896 # type: textblock
24897 #: ../tools/virt-edit.pl:310
24898 msgid ""
24899 "The variable C<$lineno> contains the current line number.  As is "
24900 "traditional, the first line in the file is number C<1>."
24901 msgstr ""
24902
24903 # type: textblock
24904 #: ../tools/virt-edit.pl:313
24905 msgid ""
24906 "The return value from the expression is ignored, but the expression may call "
24907 "C<die> in order to abort the whole program, leaving the original file "
24908 "untouched."
24909 msgstr ""
24910
24911 # type: textblock
24912 #: ../tools/virt-edit.pl:317
24913 msgid ""
24914 "Remember when matching the end of a line that C<$_> may contain the final C<"
24915 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24916 "newline then neither of these.  Thus to match or substitute some text at the "
24917 "end of a line, use this regular expression:"
24918 msgstr ""
24919
24920 # type: verbatim
24921 #: ../tools/virt-edit.pl:322
24922 #, no-wrap
24923 msgid ""
24924 " /some text(\\r?\\n)?$/\n"
24925 "\n"
24926 msgstr ""
24927
24928 # type: textblock
24929 #: ../tools/virt-edit.pl:324
24930 msgid ""
24931 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
24932 "$_> itself (since that would remove all newlines from the file):"
24933 msgstr ""
24934
24935 # type: verbatim
24936 #: ../tools/virt-edit.pl:328
24937 #, no-wrap
24938 msgid ""
24939 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24940 "\n"
24941 msgstr ""
24942
24943 # type: =item
24944 #: ../tools/virt-edit.pl:334
24945 msgid "C<EDITOR>"
24946 msgstr ""
24947
24948 # type: textblock
24949 #: ../tools/virt-edit.pl:336
24950 msgid ""
24951 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
24952 "\"emacs -nw\">"
24953 msgstr ""
24954
24955 # type: textblock
24956 #: ../tools/virt-edit.pl:339
24957 msgid "If not set, C<vi> is used."
24958 msgstr ""
24959
24960 # type: textblock
24961 #: ../tools/virt-edit.pl:352
24962 msgid ""
24963 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
24964 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
24965 "L<perlre(1)>."
24966 msgstr ""
24967
24968 # type: =head1
24969 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:513
24970 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:246
24971 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:228
24972 #: ../tools/virt-cat.pl:198 ../tools/virt-tar.pl:294
24973 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
24974 #: ../tools/virt-list-partitions.pl:265
24975 msgid "AUTHOR"
24976 msgstr ""
24977
24978 # type: textblock
24979 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
24980 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
24981 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24982 msgstr ""
24983
24984 # type: textblock
24985 #: ../tools/virt-win-reg.pl:38
24986 msgid ""
24987 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
24988 msgstr ""
24989
24990 # type: verbatim
24991 #: ../tools/virt-win-reg.pl:42
24992 #, no-wrap
24993 msgid ""
24994 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24995 "\n"
24996 msgstr ""
24997
24998 # type: verbatim
24999 #: ../tools/virt-win-reg.pl:44
25000 #, no-wrap
25001 msgid ""
25002 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25003 "\n"
25004 msgstr ""
25005
25006 # type: verbatim
25007 #: ../tools/virt-win-reg.pl:46
25008 #, no-wrap
25009 msgid ""
25010 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25011 "\n"
25012 msgstr ""
25013
25014 # type: verbatim
25015 #: ../tools/virt-win-reg.pl:48
25016 #, no-wrap
25017 msgid ""
25018 " virt-win-reg --merge domname [input.reg ...]\n"
25019 "\n"
25020 msgstr ""
25021
25022 # type: verbatim
25023 #: ../tools/virt-win-reg.pl:50
25024 #, no-wrap
25025 msgid ""
25026 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25027 "\n"
25028 msgstr ""
25029
25030 # type: textblock
25031 #: ../tools/virt-win-reg.pl:54
25032 msgid ""
25033 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25034 "virtual machines.  If you do this, you I<will> get irreversible disk "
25035 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25036 "but doesn't catch all cases."
25037 msgstr ""
25038
25039 # type: textblock
25040 #: ../tools/virt-win-reg.pl:59
25041 msgid ""
25042 "Modifying the Windows Registry is an inherently risky operation.  The format "
25043 "is deliberately obscure and undocumented, and Registry changes can leave the "
25044 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25045 "you have a reliable backup first."
25046 msgstr ""
25047
25048 # type: textblock
25049 #: ../tools/virt-win-reg.pl:66
25050 msgid ""
25051 "This program can export and merge Windows Registry entries from a Windows "
25052 "guest."
25053 msgstr ""
25054
25055 # type: textblock
25056 #: ../tools/virt-win-reg.pl:69
25057 msgid ""
25058 "The first parameter is the libvirt guest name or the raw disk image of a "
25059 "Windows guest."
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../tools/virt-win-reg.pl:72
25064 msgid ""
25065 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
25066 "exported (recursively).  For example:"
25067 msgstr ""
25068
25069 # type: verbatim
25070 #: ../tools/virt-win-reg.pl:75
25071 #, no-wrap
25072 msgid ""
25073 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25074 "\n"
25075 msgstr ""
25076
25077 # type: textblock
25078 #: ../tools/virt-win-reg.pl:77
25079 msgid ""
25080 "You can also display single values from within registry keys, for example:"
25081 msgstr ""
25082
25083 # type: verbatim
25084 #: ../tools/virt-win-reg.pl:80
25085 #, no-wrap
25086 msgid ""
25087 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25088 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25089 " Windows 7 Enterprise\n"
25090 "\n"
25091 msgstr ""
25092
25093 # type: textblock
25094 #: ../tools/virt-win-reg.pl:84
25095 msgid ""
25096 "With C<--merge>, you can merge a textual regedit file into the Windows "
25097 "Registry:"
25098 msgstr ""
25099
25100 # type: verbatim
25101 #: ../tools/virt-win-reg.pl:87
25102 #, no-wrap
25103 msgid ""
25104 " $ virt-win-reg --merge Windows7 changes.reg\n"
25105 "\n"
25106 msgstr ""
25107
25108 # type: =head2
25109 #: ../tools/virt-win-reg.pl:89
25110 msgid "SUPPORTED SYSTEMS"
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../tools/virt-win-reg.pl:91
25115 msgid ""
25116 "The program currently supports Windows NT-derived guests starting with "
25117 "Windows XP through to at least Windows 7."
25118 msgstr ""
25119
25120 # type: textblock
25121 #: ../tools/virt-win-reg.pl:94
25122 msgid ""
25123 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
25124 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
25125 "and C<HKEY_USERS\\.DEFAULT>."
25126 msgstr ""
25127
25128 # type: textblock
25129 #: ../tools/virt-win-reg.pl:98
25130 msgid ""
25131 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25132 "C<HKEY_USERS>."
25133 msgstr ""
25134
25135 # type: textblock
25136 #: ../tools/virt-win-reg.pl:101
25137 msgid ""
25138 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25139 "time."
25140 msgstr ""
25141
25142 # type: =head2
25143 #: ../tools/virt-win-reg.pl:104
25144 msgid "NOTE"
25145 msgstr ""
25146
25147 # type: textblock
25148 #: ../tools/virt-win-reg.pl:106
25149 msgid ""
25150 "This program is only meant for simple access to the registry.  If you want "
25151 "to do complicated things with the registry, we suggest you download the "
25152 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25153 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25154 "L<hivexregedit(1)>."
25155 msgstr ""
25156
25157 # type: =head2
25158 #: ../tools/virt-win-reg.pl:112
25159 msgid "ENCODING"
25160 msgstr ""
25161
25162 # type: textblock
25163 #: ../tools/virt-win-reg.pl:114
25164 msgid ""
25165 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25166 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
25167 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
25168 "Windows-style line endings, you may need to reencode the whole file before "
25169 "or after processing."
25170 msgstr ""
25171
25172 # type: textblock
25173 #: ../tools/virt-win-reg.pl:120
25174 msgid ""
25175 "To reencode a file from Windows format to Linux (before processing it with "
25176 "the C<--merge> option), you would do something like this:"
25177 msgstr ""
25178
25179 # type: verbatim
25180 #: ../tools/virt-win-reg.pl:123
25181 #, no-wrap
25182 msgid ""
25183 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25184 "\n"
25185 msgstr ""
25186
25187 # type: textblock
25188 #: ../tools/virt-win-reg.pl:125
25189 msgid ""
25190 "To go in the opposite direction, after exporting and before sending the file "
25191 "to a Windows user, do something like this:"
25192 msgstr ""
25193
25194 # type: verbatim
25195 #: ../tools/virt-win-reg.pl:128
25196 #, no-wrap
25197 msgid ""
25198 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25199 "\n"
25200 msgstr ""
25201
25202 # type: textblock
25203 #: ../tools/virt-win-reg.pl:130
25204 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25205 msgstr ""
25206
25207 # type: textblock
25208 #: ../tools/virt-win-reg.pl:132
25209 msgid ""
25210 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25211 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
25212 "style (CRLF) line endings, like this:"
25213 msgstr ""
25214
25215 # type: verbatim
25216 #: ../tools/virt-win-reg.pl:136
25217 #, no-wrap
25218 msgid ""
25219 " $ file software.reg\n"
25220 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25221 " with CRLF line terminators\n"
25222 "\n"
25223 msgstr ""
25224
25225 # type: textblock
25226 #: ../tools/virt-win-reg.pl:140
25227 msgid "This file would need conversion before you could C<--merge> it."
25228 msgstr ""
25229
25230 # type: textblock
25231 #: ../tools/virt-win-reg.pl:144
25232 msgid ""
25233 "Be careful when passing parameters containing C<\\> (backslash) in the "
25234 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25235 "(but not both) to protect them from the shell."
25236 msgstr ""
25237
25238 # type: textblock
25239 #: ../tools/virt-win-reg.pl:148
25240 msgid "Paths and value names are case-insensitive."
25241 msgstr ""
25242
25243 # type: =head2
25244 #: ../tools/virt-win-reg.pl:150
25245 msgid "CurrentControlSet etc."
25246 msgstr ""
25247
25248 # type: textblock
25249 #: ../tools/virt-win-reg.pl:152
25250 msgid ""
25251 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25252 "Registry at the level of the hive file, and therefore you cannot modify "
25253 "these."
25254 msgstr ""
25255
25256 # type: textblock
25257 #: ../tools/virt-win-reg.pl:156
25258 msgid ""
25259 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25260 "circumstances it might refer to another control set.  The way to find out is "
25261 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25262 msgstr ""
25263
25264 # type: verbatim
25265 #: ../tools/virt-win-reg.pl:160
25266 #, no-wrap
25267 msgid ""
25268 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25269 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25270 " \"Current\"=dword:00000001\n"
25271 " \"Default\"=dword:00000001\n"
25272 " \"Failed\"=dword:00000000\n"
25273 " \"LastKnownGood\"=dword:00000002\n"
25274 "\n"
25275 msgstr ""
25276
25277 # type: textblock
25278 #: ../tools/virt-win-reg.pl:167
25279 msgid "\"Default\" is the one which Windows will choose when it boots."
25280 msgstr ""
25281
25282 # type: textblock
25283 #: ../tools/virt-win-reg.pl:169
25284 msgid ""
25285 "Similarly, other C<Current...> keys in the path may need to be replaced."
25286 msgstr ""
25287
25288 # type: =item
25289 #: ../tools/virt-win-reg.pl:196 ../tools/virt-make-fs.pl:177
25290 msgid "B<--debug>"
25291 msgstr ""
25292
25293 # type: textblock
25294 #: ../tools/virt-win-reg.pl:198 ../tools/virt-resize.pl:501
25295 msgid "Enable debugging messages."
25296 msgstr ""
25297
25298 # type: =item
25299 #: ../tools/virt-win-reg.pl:233
25300 msgid "B<--merge>"
25301 msgstr ""
25302
25303 # type: textblock
25304 #: ../tools/virt-win-reg.pl:235
25305 msgid ""
25306 "In merge mode, this merges a textual regedit file into the Windows Registry "
25307 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25308 "displays or exports Registry entries instead."
25309 msgstr ""
25310
25311 # type: textblock
25312 #: ../tools/virt-win-reg.pl:239
25313 msgid ""
25314 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25315 "result in disk corruption.  However exporting (without this flag)  is always "
25316 "safe."
25317 msgstr ""
25318
25319 # type: =item
25320 #: ../tools/virt-win-reg.pl:247
25321 msgid "B<--encoding> UTF-16LE|ASCII"
25322 msgstr ""
25323
25324 # type: textblock
25325 #: ../tools/virt-win-reg.pl:249
25326 msgid ""
25327 "When merging (only), you may need to specify the encoding for strings to be "
25328 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
25329 "(3)/ENCODING STRINGS>."
25330 msgstr ""
25331
25332 # type: textblock
25333 #: ../tools/virt-win-reg.pl:253
25334 msgid ""
25335 "The default is to use UTF-16LE, which should work with recent versions of "
25336 "Windows."
25337 msgstr ""
25338
25339 # type: textblock
25340 #: ../tools/virt-win-reg.pl:489
25341 msgid ""
25342 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
25343 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
25344 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25345 msgstr ""
25346
25347 # type: textblock
25348 #: ../tools/virt-win-reg.pl:504 ../tools/virt-make-fs.pl:550
25349 msgid ""
25350 "When reporting bugs, please enable debugging and capture the I<complete> "
25351 "output:"
25352 msgstr ""
25353
25354 # type: verbatim
25355 #: ../tools/virt-win-reg.pl:507
25356 #, no-wrap
25357 msgid ""
25358 " export LIBGUESTFS_DEBUG=1\n"
25359 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25360 "\n"
25361 msgstr ""
25362
25363 # type: textblock
25364 #: ../tools/virt-win-reg.pl:510
25365 msgid ""
25366 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
25367 "redhat.com/>"
25368 msgstr ""
25369
25370 # type: textblock
25371 #: ../tools/virt-win-reg.pl:519 ../tools/virt-resize.pl:1514
25372 #: ../tools/virt-make-fs.pl:565
25373 msgid "Copyright (C) 2010 Red Hat Inc."
25374 msgstr ""
25375
25376 # type: textblock
25377 #: ../tools/virt-df.pl:36
25378 msgid "virt-df - Display free space on virtual filesystems"
25379 msgstr ""
25380
25381 # type: verbatim
25382 #: ../tools/virt-df.pl:40
25383 #, no-wrap
25384 msgid ""
25385 " virt-df [--options]\n"
25386 "\n"
25387 msgstr ""
25388
25389 # type: verbatim
25390 #: ../tools/virt-df.pl:42
25391 #, no-wrap
25392 msgid ""
25393 " virt-df [--options] domname\n"
25394 "\n"
25395 msgstr ""
25396
25397 # type: verbatim
25398 #: ../tools/virt-df.pl:44
25399 #, no-wrap
25400 msgid ""
25401 " virt-df [--options] disk.img [disk.img ...]\n"
25402 "\n"
25403 msgstr ""
25404
25405 # type: textblock
25406 #: ../tools/virt-df.pl:48
25407 msgid ""
25408 "C<virt-df> is a command line tool to display free space on virtual machine "
25409 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25410 "space allocated to a virtual machine, but can look inside the virtual "
25411 "machine to see how much space is really being used."
25412 msgstr ""
25413
25414 # type: textblock
25415 #: ../tools/virt-df.pl:53
25416 msgid ""
25417 "It is like the L<df(1)> command, but for virtual machines, except that it "
25418 "also works for Windows virtual machines."
25419 msgstr ""
25420
25421 # type: textblock
25422 #: ../tools/virt-df.pl:56
25423 msgid ""
25424 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25425 "of all active and inactive guests, and performs a C<df>-type operation on "
25426 "each one in turn, printing out the results."
25427 msgstr ""
25428
25429 # type: textblock
25430 #: ../tools/virt-df.pl:60
25431 msgid ""
25432 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25433 "either the single named libvirt domain, or on the disk image(s) listed on "
25434 "the command line (which must all belong to a single VM).  In this mode (with "
25435 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25436 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25437 msgstr ""
25438
25439 # type: textblock
25440 #: ../tools/virt-df.pl:67
25441 msgid ""
25442 "Use the C<--csv> option to get a format which can be easily parsed by other "
25443 "programs.  Other options are mostly similar to standard C<df> options.  See "
25444 "below for the complete list."
25445 msgstr ""
25446
25447 # type: =item
25448 #: ../tools/virt-df.pl:107
25449 msgid "B<--csv>"
25450 msgstr ""
25451
25452 # type: textblock
25453 #: ../tools/virt-df.pl:109
25454 msgid ""
25455 "Write out the results in CSV format (comma-separated values).  This format "
25456 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25457 "ABOUT CSV FORMAT> below."
25458 msgstr ""
25459
25460 # type: =item
25461 #: ../tools/virt-df.pl:134
25462 msgid "B<--human-readable> | B<-h>"
25463 msgstr ""
25464
25465 # type: textblock
25466 #: ../tools/virt-df.pl:136
25467 msgid "Print sizes in human-readable format."
25468 msgstr ""
25469
25470 # type: textblock
25471 #: ../tools/virt-df.pl:138
25472 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25473 msgstr ""
25474
25475 # type: =item
25476 #: ../tools/virt-df.pl:144
25477 msgid "B<--inodes> | B<-i>"
25478 msgstr ""
25479
25480 # type: textblock
25481 #: ../tools/virt-df.pl:146
25482 msgid "Print inodes instead of blocks."
25483 msgstr ""
25484
25485 # type: =item
25486 #: ../tools/virt-df.pl:152
25487 msgid "B<--one-per-guest>"
25488 msgstr ""
25489
25490 # type: textblock
25491 #: ../tools/virt-df.pl:154
25492 msgid ""
25493 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25494 "disks from several guests to a single libguestfs appliance."
25495 msgstr ""
25496
25497 # type: textblock
25498 #: ../tools/virt-df.pl:157
25499 msgid "You might use this option in the following circumstances:"
25500 msgstr ""
25501
25502 # type: textblock
25503 #: ../tools/virt-df.pl:163
25504 msgid ""
25505 "If you think an untrusted guest might actively try to exploit the libguestfs "
25506 "appliance kernel, then this prevents one guest from interfering with the "
25507 "stats printed for another guest."
25508 msgstr ""
25509
25510 # type: textblock
25511 #: ../tools/virt-df.pl:169
25512 msgid ""
25513 "If the kernel has a bug which stops it from accessing a filesystem in one "
25514 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25515 "and report stats for further guests."
25516 msgstr ""
25517
25518 # type: =item
25519 #: ../tools/virt-df.pl:180
25520 msgid "B<--uuid>"
25521 msgstr ""
25522
25523 # type: textblock
25524 #: ../tools/virt-df.pl:182
25525 msgid ""
25526 "Print UUIDs instead of names.  This is useful for following a guest even "
25527 "when the guest is migrated or renamed, or when two guests happen to have the "
25528 "same name."
25529 msgstr ""
25530
25531 # type: textblock
25532 #: ../tools/virt-df.pl:186
25533 msgid ""
25534 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25535 "images, we still print the disk image name even when this option is "
25536 "specified."
25537 msgstr ""
25538
25539 # type: =head1
25540 #: ../tools/virt-df.pl:609
25541 msgid "NOTE ABOUT CSV FORMAT"
25542 msgstr ""
25543
25544 # type: textblock
25545 #: ../tools/virt-df.pl:611
25546 msgid ""
25547 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25548 "should be easy to parse, but it is definitely not easy to parse."
25549 msgstr ""
25550
25551 # type: textblock
25552 #: ../tools/virt-df.pl:614
25553 msgid ""
25554 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25555 "reliably.  This example has two columns:"
25556 msgstr ""
25557
25558 # type: verbatim
25559 #: ../tools/virt-df.pl:617
25560 #, no-wrap
25561 msgid ""
25562 " \"foo,bar\",baz\n"
25563 "\n"
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../tools/virt-df.pl:619
25568 msgid ""
25569 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25570 "reliably.  This example has one row:"
25571 msgstr ""
25572
25573 # type: verbatim
25574 #: ../tools/virt-df.pl:622
25575 #, no-wrap
25576 msgid ""
25577 " \"foo\n"
25578 " bar\",baz\n"
25579 "\n"
25580 msgstr ""
25581
25582 # type: textblock
25583 #: ../tools/virt-df.pl:625
25584 msgid ""
25585 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25586 "packaged in major Linux distributions)."
25587 msgstr ""
25588
25589 # type: textblock
25590 #: ../tools/virt-df.pl:628
25591 msgid ""
25592 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25593 "or Python's built-in csv library)."
25594 msgstr ""
25595
25596 # type: textblock
25597 #: ../tools/virt-df.pl:631
25598 msgid "Most spreadsheets and databases can import CSV directly."
25599 msgstr ""
25600
25601 # type: textblock
25602 #: ../tools/virt-ls.pl:35
25603 msgid "virt-ls - List files in a virtual machine"
25604 msgstr ""
25605
25606 # type: verbatim
25607 #: ../tools/virt-ls.pl:39
25608 #, no-wrap
25609 msgid ""
25610 " virt-ls [--options] domname directory\n"
25611 "\n"
25612 msgstr ""
25613
25614 # type: verbatim
25615 #: ../tools/virt-ls.pl:41
25616 #, no-wrap
25617 msgid ""
25618 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25619 "\n"
25620 msgstr ""
25621
25622 # type: textblock
25623 #: ../tools/virt-ls.pl:45
25624 msgid ""
25625 "C<virt-ls> is a command line tool to list the names of files in a directory "
25626 "inside a virtual machine or disk image."
25627 msgstr ""
25628
25629 # type: textblock
25630 #: ../tools/virt-ls.pl:48
25631 msgid ""
25632 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25633 "For more complex cases you should look at the L<guestfish(1)> tool."
25634 msgstr ""
25635
25636 # type: textblock
25637 #: ../tools/virt-ls.pl:52
25638 msgid ""
25639 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
25640 "simple listing is like the ordinary L<ls(1)> command:"
25641 msgstr ""
25642
25643 # type: verbatim
25644 #: ../tools/virt-ls.pl:55
25645 #, no-wrap
25646 msgid ""
25647 " $ virt-ls myguest /\n"
25648 " bin\n"
25649 " boot\n"
25650 " [etc.]\n"
25651 "\n"
25652 msgstr ""
25653
25654 # type: textblock
25655 #: ../tools/virt-ls.pl:60
25656 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
25657 msgstr ""
25658
25659 # type: verbatim
25660 #: ../tools/virt-ls.pl:62
25661 #, no-wrap
25662 msgid ""
25663 " $ virt-ls -l myguest /\n"
25664 " total 204\n"
25665 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25666 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25667 " [etc.]\n"
25668 "\n"
25669 msgstr ""
25670
25671 # type: textblock
25672 #: ../tools/virt-ls.pl:68
25673 msgid ""
25674 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25675 "and directories recursively:"
25676 msgstr ""
25677
25678 # type: verbatim
25679 #: ../tools/virt-ls.pl:71
25680 #, no-wrap
25681 msgid ""
25682 " $ virt-ls -R myguest /tmp\n"
25683 " foo\n"
25684 " foo/bar\n"
25685 " [etc.]\n"
25686 "\n"
25687 msgstr ""
25688
25689 # type: textblock
25690 #: ../tools/virt-ls.pl:76
25691 msgid ""
25692 "You I<cannot> combine these options.  To do more complicated things, use "
25693 "L<guestfish(1)>."
25694 msgstr ""
25695
25696 # type: =item
25697 #: ../tools/virt-ls.pl:132 ../tools/virt-list-filesystems.pl:103
25698 #: ../tools/virt-list-partitions.pl:112
25699 msgid "B<-l> | B<--long>"
25700 msgstr ""
25701
25702 # type: =item
25703 #: ../tools/virt-ls.pl:134
25704 msgid "B<-R> | B<--recursive>"
25705 msgstr ""
25706
25707 # type: textblock
25708 #: ../tools/virt-ls.pl:136
25709 msgid ""
25710 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25711 "simple, flat list of the files in the named directory."
25712 msgstr ""
25713
25714 # type: textblock
25715 #: ../tools/virt-ls.pl:139
25716 msgid ""
25717 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
25718 "like the plain C<ls -l> command)."
25719 msgstr ""
25720
25721 # type: textblock
25722 #: ../tools/virt-ls.pl:142
25723 msgid ""
25724 "C<virt-ls -R> produces a recursive list of files starting at the named "
25725 "directory.  See the documentation for the C<guestfs_find> command L<guestfs"
25726 "(3)> for precise details."
25727 msgstr ""
25728
25729 # type: textblock
25730 #: ../tools/virt-ls.pl:146
25731 msgid "You cannot combine these options."
25732 msgstr ""
25733
25734 # type: textblock
25735 #: ../tools/virt-ls.pl:237
25736 msgid ""
25737 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
25738 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25739 "org/>."
25740 msgstr ""
25741
25742 # type: textblock
25743 #: ../tools/virt-resize.pl:42
25744 msgid "virt-resize - Resize a virtual machine disk"
25745 msgstr ""
25746
25747 # type: verbatim
25748 #: ../tools/virt-resize.pl:46
25749 #, no-wrap
25750 msgid ""
25751 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25752 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25753 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25754 "\n"
25755 msgstr ""
25756
25757 # type: textblock
25758 #: ../tools/virt-resize.pl:52
25759 msgid ""
25760 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25761 "larger or smaller overall, and resizing or deleting any partitions contained "
25762 "within."
25763 msgstr ""
25764
25765 # type: textblock
25766 #: ../tools/virt-resize.pl:56
25767 msgid ""
25768 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25769 "not> be used on live virtual machines - for consistent results, shut the "
25770 "virtual machine down before resizing it."
25771 msgstr ""
25772
25773 # type: textblock
25774 #: ../tools/virt-resize.pl:60
25775 msgid ""
25776 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
25777 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
25778 "read those manual pages first."
25779 msgstr ""
25780
25781 # type: textblock
25782 #: ../tools/virt-resize.pl:68
25783 msgid ""
25784 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25785 "fill the extra 5GB of space."
25786 msgstr ""
25787
25788 # type: verbatim
25789 #: ../tools/virt-resize.pl:71
25790 #, no-wrap
25791 msgid ""
25792 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
25793 " virt-list-partitions -lht olddisk\n"
25794 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25795 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25796 "\n"
25797 msgstr ""
25798
25799 # type: textblock
25800 #: ../tools/virt-resize.pl:76
25801 msgid ""
25802 "As above, but make the /boot partition 200MB bigger, while giving the "
25803 "remaining space to /dev/sda2:"
25804 msgstr ""
25805
25806 # type: verbatim
25807 #: ../tools/virt-resize.pl:79
25808 #, no-wrap
25809 msgid ""
25810 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25811 "\n"
25812 msgstr ""
25813
25814 # type: textblock
25815 #: ../tools/virt-resize.pl:81
25816 msgid "As above, but the output format will be uncompressed qcow2:"
25817 msgstr ""
25818
25819 # type: verbatim
25820 #: ../tools/virt-resize.pl:83
25821 #, no-wrap
25822 msgid ""
25823 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25824 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25825 "\n"
25826 msgstr ""
25827
25828 # type: =head1
25829 #: ../tools/virt-resize.pl:86
25830 msgid "DETAILED USAGE"
25831 msgstr ""
25832
25833 # type: =head2
25834 #: ../tools/virt-resize.pl:88
25835 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25836 msgstr ""
25837
25838 # type: =item
25839 #: ../tools/virt-resize.pl:92
25840 msgid "1. Shut down the virtual machine"
25841 msgstr ""
25842
25843 # type: =item
25844 #: ../tools/virt-resize.pl:94
25845 msgid "2. Locate input disk image"
25846 msgstr ""
25847
25848 # type: textblock
25849 #: ../tools/virt-resize.pl:96
25850 msgid ""
25851 "Locate the input disk image (ie. the file or device on the host containing "
25852 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25853 "dumpxml> like this to find the disk image name:"
25854 msgstr ""
25855
25856 # type: verbatim
25857 #: ../tools/virt-resize.pl:100
25858 #, no-wrap
25859 msgid ""
25860 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25861 " Found 1 nodes:\n"
25862 " -- NODE --\n"
25863 " <source dev=\"/dev/vg/lv_guest\" />\n"
25864 "\n"
25865 msgstr ""
25866
25867 # type: =item
25868 #: ../tools/virt-resize.pl:105
25869 msgid "3. Look at current sizing"
25870 msgstr ""
25871
25872 # type: textblock
25873 #: ../tools/virt-resize.pl:107
25874 msgid ""
25875 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25876 msgstr ""
25877
25878 # type: verbatim
25879 #: ../tools/virt-resize.pl:110
25880 #, no-wrap
25881 msgid ""
25882 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25883 " /dev/sda1 ext3 101.9M\n"
25884 " /dev/sda2 pv 7.9G\n"
25885 " /dev/sda device 8.0G\n"
25886 "\n"
25887 msgstr ""
25888
25889 # type: textblock
25890 #: ../tools/virt-resize.pl:115
25891 msgid ""
25892 "(This example is a virtual machine with an 8 GB disk which we would like to "
25893 "expand up to 10 GB)."
25894 msgstr ""
25895
25896 # type: =item
25897 #: ../tools/virt-resize.pl:118
25898 msgid "4. Create output disk"
25899 msgstr ""
25900
25901 # type: textblock
25902 #: ../tools/virt-resize.pl:120
25903 msgid ""
25904 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25905 "to store the resized output disk."
25906 msgstr ""
25907
25908 # type: textblock
25909 #: ../tools/virt-resize.pl:123
25910 msgid ""
25911 "To store the resized disk image in a file, create a file of a suitable size:"
25912 msgstr ""
25913
25914 # type: verbatim
25915 #: ../tools/virt-resize.pl:126
25916 #, no-wrap
25917 msgid ""
25918 " # rm -f outdisk\n"
25919 " # truncate -s 10G outdisk\n"
25920 "\n"
25921 msgstr ""
25922
25923 # type: textblock
25924 #: ../tools/virt-resize.pl:129
25925 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25926 msgstr ""
25927
25928 # type: verbatim
25929 #: ../tools/virt-resize.pl:131
25930 #, no-wrap
25931 msgid ""
25932 " # lvcreate -L 10G -n lv_name vg_name\n"
25933 "\n"
25934 msgstr ""
25935
25936 # type: textblock
25937 #: ../tools/virt-resize.pl:133
25938 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25939 msgstr ""
25940
25941 # type: verbatim
25942 #: ../tools/virt-resize.pl:135
25943 #, no-wrap
25944 msgid ""
25945 " # virsh pool-list\n"
25946 " # virsh vol-create-as poolname newvol 10G\n"
25947 "\n"
25948 msgstr ""
25949
25950 # type: =item
25951 #: ../tools/virt-resize.pl:138
25952 msgid "5. Resize"
25953 msgstr ""
25954
25955 # type: textblock
25956 #: ../tools/virt-resize.pl:140
25957 msgid ""
25958 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25959 "file) and the output disk.  The output disk is the one created in the "
25960 "previous step."
25961 msgstr ""
25962
25963 # type: verbatim
25964 #: ../tools/virt-resize.pl:144
25965 #, no-wrap
25966 msgid ""
25967 " # virt-resize indisk outdisk\n"
25968 "\n"
25969 msgstr ""
25970
25971 # type: textblock
25972 #: ../tools/virt-resize.pl:146
25973 msgid ""
25974 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25975 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25976 "larger, then an extra, empty partition is created at the end of the disk "
25977 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25978 "error."
25979 msgstr ""
25980
25981 # type: textblock
25982 #: ../tools/virt-resize.pl:152
25983 msgid ""
25984 "More realistically you'd want to expand existing partitions in the disk "
25985 "image by passing extra options (for the full list see the L</OPTIONS> "
25986 "section below)."
25987 msgstr ""
25988
25989 # type: textblock
25990 #: ../tools/virt-resize.pl:156
25991 msgid ""
25992 "L</--expand> is the most useful option.  It expands the named partition "
25993 "within the disk to fill any extra space:"
25994 msgstr ""
25995
25996 # type: verbatim
25997 #: ../tools/virt-resize.pl:159
25998 #, no-wrap
25999 msgid ""
26000 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26001 "\n"
26002 msgstr ""
26003
26004 # type: textblock
26005 #: ../tools/virt-resize.pl:161
26006 msgid ""
26007 "(In this case, an extra partition is I<not> created at the end of the disk, "
26008 "because there will be no unused space)."
26009 msgstr ""
26010
26011 # type: textblock
26012 #: ../tools/virt-resize.pl:164
26013 msgid ""
26014 "L</--resize> is the other commonly used option.  The following would "
26015 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26016 "rest of the available space:"
26017 msgstr ""
26018
26019 # type: verbatim
26020 #: ../tools/virt-resize.pl:168
26021 #, no-wrap
26022 msgid ""
26023 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26024 "     indisk outdisk\n"
26025 "\n"
26026 msgstr ""
26027
26028 # type: textblock
26029 #: ../tools/virt-resize.pl:171
26030 msgid ""
26031 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26032 "if virt-resize knows how, it will resize the contents, the equivalent of "
26033 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
26034 ">.  However virt-resize does not know how to resize some filesystems, so you "
26035 "would have to online resize them after booting the guest.  And virt-resize "
26036 "also does not resize anything inside an LVM PV, it just resizes the PV "
26037 "itself and leaves the user to resize any LVs inside that PV as desired."
26038 msgstr ""
26039
26040 # type: textblock
26041 #: ../tools/virt-resize.pl:180
26042 msgid "Other options are covered below."
26043 msgstr ""
26044
26045 # type: =item
26046 #: ../tools/virt-resize.pl:182
26047 msgid "6. Test"
26048 msgstr ""
26049
26050 # type: textblock
26051 #: ../tools/virt-resize.pl:184
26052 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26053 msgstr ""
26054
26055 # type: textblock
26056 #: ../tools/virt-resize.pl:186
26057 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26058 msgstr ""
26059
26060 # type: verbatim
26061 #: ../tools/virt-resize.pl:188
26062 #, no-wrap
26063 msgid ""
26064 " # virsh edit guestname\n"
26065 "\n"
26066 msgstr ""
26067
26068 # type: textblock
26069 #: ../tools/virt-resize.pl:190
26070 msgid ""
26071 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
26072 "html#elementsDisks>"
26073 msgstr ""
26074
26075 # type: textblock
26076 #: ../tools/virt-resize.pl:193
26077 msgid "Then start up the domain with the new, resized disk:"
26078 msgstr ""
26079
26080 # type: verbatim
26081 #: ../tools/virt-resize.pl:195
26082 #, no-wrap
26083 msgid ""
26084 " # virsh start guestname\n"
26085 "\n"
26086 msgstr ""
26087
26088 # type: textblock
26089 #: ../tools/virt-resize.pl:197
26090 msgid ""
26091 "and check that it still works.  See also the L</NOTES> section below for "
26092 "additional information."
26093 msgstr ""
26094
26095 # type: =item
26096 #: ../tools/virt-resize.pl:200
26097 msgid "7. Resize LVs etc inside the guest"
26098 msgstr ""
26099
26100 # type: textblock
26101 #: ../tools/virt-resize.pl:202
26102 msgid "(This can also be done offline using L<guestfish(1)>)"
26103 msgstr ""
26104
26105 # type: textblock
26106 #: ../tools/virt-resize.pl:204
26107 msgid ""
26108 "Once the guest has booted you should see the new space available, at least "
26109 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26110 "may need to resize LVs inside PVs, and also resize filesystem types that "
26111 "virt-resize does not know how to expand."
26112 msgstr ""
26113
26114 # type: =head2
26115 #: ../tools/virt-resize.pl:211
26116 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26117 msgstr ""
26118
26119 # type: textblock
26120 #: ../tools/virt-resize.pl:213
26121 msgid ""
26122 "Shrinking is somewhat more complex than expanding, and only an overview is "
26123 "given here."
26124 msgstr ""
26125
26126 # type: textblock
26127 #: ../tools/virt-resize.pl:216
26128 msgid ""
26129 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26130 "filesystems).  The user has to shrink content before passing the disk image "
26131 "to virt-resize, and virt-resize will check that the content has been shrunk "
26132 "properly."
26133 msgstr ""
26134
26135 # type: textblock
26136 #: ../tools/virt-resize.pl:221
26137 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26138 msgstr ""
26139
26140 # type: textblock
26141 #: ../tools/virt-resize.pl:223
26142 msgid ""
26143 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26144 "steps 3 and 4 above to allocate a new disk image."
26145 msgstr ""
26146
26147 # type: textblock
26148 #: ../tools/virt-resize.pl:226
26149 msgid ""
26150 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26151 msgstr ""
26152
26153 # type: =head2
26154 #: ../tools/virt-resize.pl:229
26155 msgid "IGNORING OR DELETING PARTITIONS"
26156 msgstr ""
26157
26158 # type: textblock
26159 #: ../tools/virt-resize.pl:231
26160 msgid ""
26161 "virt-resize also gives a convenient way to ignore or delete partitions when "
26162 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26163 "up the copy where you don't care about the existing contents of a "
26164 "partition.  Deleting a partition removes it completely, but note that it "
26165 "also renumbers any partitions after the one which is deleted, which can "
26166 "leave some guests unbootable."
26167 msgstr ""
26168
26169 # type: =head2
26170 #: ../tools/virt-resize.pl:238
26171 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26172 msgstr ""
26173
26174 # type: textblock
26175 #: ../tools/virt-resize.pl:240
26176 msgid ""
26177 "If the input disk is in qcow2 format, then you may prefer that the output is "
26178 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26179 "the fly.  The output format is simply determined by the format of the empty "
26180 "output container that you provide.  Thus to create qcow2 output, use:"
26181 msgstr ""
26182
26183 # type: verbatim
26184 #: ../tools/virt-resize.pl:246
26185 #, no-wrap
26186 msgid ""
26187 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26188 "\n"
26189 msgstr ""
26190
26191 # type: textblock
26192 #: ../tools/virt-resize.pl:248
26193 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26194 msgstr ""
26195
26196 # type: textblock
26197 #: ../tools/virt-resize.pl:250
26198 msgid "Similarly, to get non-sparse raw output use:"
26199 msgstr ""
26200
26201 # type: verbatim
26202 #: ../tools/virt-resize.pl:252
26203 #, no-wrap
26204 msgid ""
26205 " fallocate -l size outdisk\n"
26206 "\n"
26207 msgstr ""
26208
26209 # type: textblock
26210 #: ../tools/virt-resize.pl:254
26211 msgid ""
26212 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
26213 "dev/zero of=outdisk bs=1M count=..>)"
26214 msgstr ""
26215
26216 # type: textblock
26217 #: ../tools/virt-resize.pl:267
26218 msgid "Display help."
26219 msgstr ""
26220
26221 # type: =item
26222 #: ../tools/virt-resize.pl:281
26223 msgid "B<--resize part=size>"
26224 msgstr ""
26225
26226 # type: textblock
26227 #: ../tools/virt-resize.pl:283
26228 msgid ""
26229 "Resize the named partition (expanding or shrinking it) so that it has the "
26230 "given size."
26231 msgstr ""
26232
26233 # type: textblock
26234 #: ../tools/virt-resize.pl:286
26235 msgid ""
26236 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26237 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26238 "Exabytes; or as a percentage of the current size; or as a relative number or "
26239 "percentage.  For example:"
26240 msgstr ""
26241
26242 # type: verbatim
26243 #: ../tools/virt-resize.pl:291
26244 #, no-wrap
26245 msgid ""
26246 " --resize /dev/sda2=10G\n"
26247 "\n"
26248 msgstr ""
26249
26250 # type: verbatim
26251 #: ../tools/virt-resize.pl:293
26252 #, no-wrap
26253 msgid ""
26254 " --resize /dev/sda4=90%\n"
26255 "\n"
26256 msgstr ""
26257
26258 # type: verbatim
26259 #: ../tools/virt-resize.pl:295
26260 #, no-wrap
26261 msgid ""
26262 " --resize /dev/sda2=+1G\n"
26263 "\n"
26264 msgstr ""
26265
26266 # type: verbatim
26267 #: ../tools/virt-resize.pl:297
26268 #, no-wrap
26269 msgid ""
26270 " --resize /dev/sda2=-200M\n"
26271 "\n"
26272 msgstr ""
26273
26274 # type: verbatim
26275 #: ../tools/virt-resize.pl:299
26276 #, no-wrap
26277 msgid ""
26278 " --resize /dev/sda1=+128K\n"
26279 "\n"
26280 msgstr ""
26281
26282 # type: verbatim
26283 #: ../tools/virt-resize.pl:301
26284 #, no-wrap
26285 msgid ""
26286 " --resize /dev/sda1=+10%\n"
26287 "\n"
26288 msgstr ""
26289
26290 # type: verbatim
26291 #: ../tools/virt-resize.pl:303
26292 #, no-wrap
26293 msgid ""
26294 " --resize /dev/sda1=-10%\n"
26295 "\n"
26296 msgstr ""
26297
26298 # type: textblock
26299 #: ../tools/virt-resize.pl:305
26300 msgid ""
26301 "You can increase the size of any partition.  Virt-resize will expand the "
26302 "direct content of the partition if it knows how (see C<--expand> below)."
26303 msgstr ""
26304
26305 # type: textblock
26306 #: ../tools/virt-resize.pl:309
26307 msgid ""
26308 "You can only I<decrease> the size of partitions that contain filesystems or "
26309 "PVs which have already been shrunk.  Virt-resize will check this has been "
26310 "done before proceeding, or else will print an error (see also C<--resize-"
26311 "force>)."
26312 msgstr ""
26313
26314 # type: textblock
26315 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
26316 #: ../tools/virt-resize.pl:423
26317 msgid "You can give this option multiple times."
26318 msgstr ""
26319
26320 # type: =item
26321 #: ../tools/virt-resize.pl:320
26322 msgid "B<--resize-force part=size>"
26323 msgstr ""
26324
26325 # type: textblock
26326 #: ../tools/virt-resize.pl:322
26327 msgid ""
26328 "This is the same as C<--resize> except that it will let you decrease the "
26329 "size of any partition.  Generally this means you will lose any data which "
26330 "was at the end of the partition you shrink, but you may not care about that "
26331 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26332 "as a swap partition)."
26333 msgstr ""
26334
26335 # type: textblock
26336 #: ../tools/virt-resize.pl:328
26337 msgid "See also the C<--ignore> option."
26338 msgstr ""
26339
26340 # type: =item
26341 #: ../tools/virt-resize.pl:334
26342 msgid "B<--expand part>"
26343 msgstr ""
26344
26345 # type: textblock
26346 #: ../tools/virt-resize.pl:336
26347 msgid ""
26348 "Expand the named partition so it uses up all extra space (space left over "
26349 "after any other resize changes that you request have been done)."
26350 msgstr ""
26351
26352 # type: textblock
26353 #: ../tools/virt-resize.pl:339
26354 msgid ""
26355 "If virt-resize knows how, it will expand the direct content of the "
26356 "partition.  For example, if the partition is an LVM PV, it will expand the "
26357 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26358 "content it doesn't know about alone."
26359 msgstr ""
26360
26361 # type: textblock
26362 #: ../tools/virt-resize.pl:344
26363 msgid "Currently virt-resize can resize:"
26364 msgstr ""
26365
26366 # type: textblock
26367 #: ../tools/virt-resize.pl:350
26368 msgid ""
26369 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26370 "partition."
26371 msgstr ""
26372
26373 # type: textblock
26374 #: ../tools/virt-resize.pl:355
26375 msgid ""
26376 "NTFS filesystems contained directly in a partition, if libguestfs was "
26377 "compiled with support for NTFS."
26378 msgstr ""
26379
26380 # type: textblock
26381 #: ../tools/virt-resize.pl:358
26382 msgid ""
26383 "The filesystem must have been shut down consistently last time it was used.  "
26384 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26385 "consistency check, so at the first boot after resizing Windows will check "
26386 "the disk."
26387 msgstr ""
26388
26389 # type: textblock
26390 #: ../tools/virt-resize.pl:365
26391 msgid ""
26392 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26393 "inside the PV.  The user will have to resize LVs as desired."
26394 msgstr ""
26395
26396 # type: textblock
26397 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26398 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26399 msgstr ""
26400
26401 # type: =item
26402 #: ../tools/virt-resize.pl:377
26403 msgid "B<--shrink part>"
26404 msgstr ""
26405
26406 # type: textblock
26407 #: ../tools/virt-resize.pl:379
26408 msgid ""
26409 "Shrink the named partition until the overall disk image fits in the "
26410 "destination.  The named partition B<must> contain a filesystem or PV which "
26411 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26412 "online tools).  Virt-resize will check this and give an error if it has not "
26413 "been done."
26414 msgstr ""
26415
26416 # type: textblock
26417 #: ../tools/virt-resize.pl:385
26418 msgid ""
26419 "The amount by which the overall disk must be shrunk (after carrying out all "
26420 "other operations requested by the user) is called the \"deficit\".  For "
26421 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26422 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26423 "would give an error unless the user specified a partition to shrink and that "
26424 "partition had more than a gigabyte of free space."
26425 msgstr ""
26426
26427 # type: =item
26428 #: ../tools/virt-resize.pl:399
26429 msgid "B<--ignore part>"
26430 msgstr ""
26431
26432 # type: textblock
26433 #: ../tools/virt-resize.pl:401
26434 msgid ""
26435 "Ignore the named partition.  Effectively this means the partition is "
26436 "allocated on the destination disk, but the content is not copied across from "
26437 "the source disk.  The content of the partition will be blank (all zero "
26438 "bytes)."
26439 msgstr ""
26440
26441 # type: =item
26442 #: ../tools/virt-resize.pl:412
26443 msgid "B<--delete part>"
26444 msgstr ""
26445
26446 # type: textblock
26447 #: ../tools/virt-resize.pl:414
26448 msgid ""
26449 "Delete the named partition.  It would be more accurate to describe this as "
26450 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26451 "the original disk image is left intact."
26452 msgstr ""
26453
26454 # type: textblock
26455 #: ../tools/virt-resize.pl:418
26456 msgid ""
26457 "Note that when you delete a partition, then anything contained in the "
26458 "partition is also deleted.  Furthermore, this causes any partitions that "
26459 "come after to be I<renumbered>, which can easily make your guest unbootable."
26460 msgstr ""
26461
26462 # type: =item
26463 #: ../tools/virt-resize.pl:429
26464 msgid "B<--LV-expand logvol>"
26465 msgstr ""
26466
26467 # type: textblock
26468 #: ../tools/virt-resize.pl:431
26469 msgid ""
26470 "This takes the logical volume and, as a final step, expands it to fill all "
26471 "the space available in its volume group.  A typical usage, assuming a Linux "
26472 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
26473 "lv_root> would be:"
26474 msgstr ""
26475
26476 # type: verbatim
26477 #: ../tools/virt-resize.pl:436
26478 #, no-wrap
26479 msgid ""
26480 " virt-resize indisk outdisk \\\n"
26481 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26482 "\n"
26483 msgstr ""
26484
26485 # type: textblock
26486 #: ../tools/virt-resize.pl:439
26487 msgid ""
26488 "This would first expand the partition (and PV), and then expand the root "
26489 "device to fill the extra space in the PV."
26490 msgstr ""
26491
26492 # type: textblock
26493 #: ../tools/virt-resize.pl:442
26494 msgid ""
26495 "The contents of the LV are also resized if virt-resize knows how to do "
26496 "that.  You can stop virt-resize from trying to expand the content by using "
26497 "the option C<--no-expand-content>."
26498 msgstr ""
26499
26500 # type: textblock
26501 #: ../tools/virt-resize.pl:446
26502 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26503 msgstr ""
26504
26505 # type: textblock
26506 #: ../tools/virt-resize.pl:449
26507 msgid ""
26508 "You can give this option multiple times, I<but> it doesn't make sense to do "
26509 "this unless the logical volumes you specify are all in different volume "
26510 "groups."
26511 msgstr ""
26512
26513 # type: =item
26514 #: ../tools/virt-resize.pl:457
26515 msgid "B<--no-copy-boot-loader>"
26516 msgstr ""
26517
26518 # type: textblock
26519 #: ../tools/virt-resize.pl:459
26520 msgid ""
26521 "By default, virt-resize copies over some sectors at the start of the disk "
26522 "(up to the beginning of the first partition).  Commonly these sectors "
26523 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26524 "in order for the guest to boot correctly."
26525 msgstr ""
26526
26527 # type: textblock
26528 #: ../tools/virt-resize.pl:464
26529 msgid ""
26530 "If you specify this flag, then this initial copy is not done.  You may need "
26531 "to reinstall the boot loader in this case."
26532 msgstr ""
26533
26534 # type: =item
26535 #: ../tools/virt-resize.pl:472
26536 msgid "B<--no-extra-partition>"
26537 msgstr ""
26538
26539 # type: textblock
26540 #: ../tools/virt-resize.pl:474
26541 msgid ""
26542 "By default, virt-resize creates an extra partition if there is any extra, "
26543 "unused space after all resizing has happened.  Use this option to prevent "
26544 "the extra partition from being created.  If you do this then the extra space "
26545 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26546 "tool in the guest."
26547 msgstr ""
26548
26549 # type: textblock
26550 #: ../tools/virt-resize.pl:480
26551 msgid ""
26552 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26553 "will be created."
26554 msgstr ""
26555
26556 # type: =item
26557 #: ../tools/virt-resize.pl:487
26558 msgid "B<--no-expand-content>"
26559 msgstr ""
26560
26561 # type: textblock
26562 #: ../tools/virt-resize.pl:489
26563 msgid ""
26564 "By default, virt-resize will try to expand the direct contents of "
26565 "partitions, if it knows how (see C<--expand> option above)."
26566 msgstr ""
26567
26568 # type: textblock
26569 #: ../tools/virt-resize.pl:492
26570 msgid ""
26571 "If you give the C<--no-expand-content> option then virt-resize will not "
26572 "attempt this."
26573 msgstr ""
26574
26575 # type: =item
26576 #: ../tools/virt-resize.pl:499
26577 msgid "B<-d> | B<--debug>"
26578 msgstr ""
26579
26580 # type: =item
26581 #: ../tools/virt-resize.pl:507
26582 msgid "B<-n> | B<--dryrun>"
26583 msgstr ""
26584
26585 # type: textblock
26586 #: ../tools/virt-resize.pl:509
26587 msgid "Print a summary of what would be done, but don't do anything."
26588 msgstr ""
26589
26590 # type: =item
26591 #: ../tools/virt-resize.pl:515
26592 msgid "B<-q> | B<--quiet>"
26593 msgstr ""
26594
26595 # type: textblock
26596 #: ../tools/virt-resize.pl:517
26597 msgid "Don't print the summary."
26598 msgstr ""
26599
26600 # type: textblock
26601 #: ../tools/virt-resize.pl:525
26602 msgid ""
26603 "Specify the format of the input disk image.  If this flag is not given then "
26604 "it is auto-detected from the image itself."
26605 msgstr ""
26606
26607 # type: textblock
26608 #: ../tools/virt-resize.pl:531
26609 msgid ""
26610 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26611 "AND NON-SPARSE RAW FORMATS>."
26612 msgstr ""
26613
26614 # type: =item
26615 #: ../tools/virt-resize.pl:538
26616 msgid "B<--output-format> raw"
26617 msgstr ""
26618
26619 # type: textblock
26620 #: ../tools/virt-resize.pl:540
26621 msgid ""
26622 "Specify the format of the output disk image.  If this flag is not given then "
26623 "it is auto-detected from the image itself."
26624 msgstr ""
26625
26626 # type: textblock
26627 #: ../tools/virt-resize.pl:546
26628 msgid ""
26629 "Note that you still need to create the output disk with the right format.  "
26630 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
26631 msgstr ""
26632
26633 # type: =head1
26634 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
26635 msgid "NOTES"
26636 msgstr ""
26637
26638 # type: =head2
26639 #: ../tools/virt-resize.pl:1424
26640 msgid "\"Partition 1 does not end on cylinder boundary.\""
26641 msgstr ""
26642
26643 # type: textblock
26644 #: ../tools/virt-resize.pl:1426
26645 msgid ""
26646 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
26647 "means the partitions will not be aligned to the ancient CHS geometry.  "
26648 "However CHS geometry is meaningless for disks manufactured since the early "
26649 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
26650 "cylinders is not required by any modern operating system."
26651 msgstr ""
26652
26653 # type: =head2
26654 #: ../tools/virt-resize.pl:1433
26655 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26656 msgstr ""
26657
26658 # type: textblock
26659 #: ../tools/virt-resize.pl:1435
26660 msgid ""
26661 "In Windows Vista and later versions, Microsoft switched to using a separate "
26662 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26663 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26664 "the boot partition.  Doing so seems to break the guest completely.  However "
26665 "expanding the second partition (ie. C: drive) should work."
26666 msgstr ""
26667
26668 # type: textblock
26669 #: ../tools/virt-resize.pl:1442
26670 msgid ""
26671 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26672 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26673 "it find errors) is nothing to worry about."
26674 msgstr ""
26675
26676 # type: =head2
26677 #: ../tools/virt-resize.pl:1446
26678 msgid "GUEST BOOT STUCK AT \"GRUB\""
26679 msgstr ""
26680
26681 # type: textblock
26682 #: ../tools/virt-resize.pl:1448
26683 msgid ""
26684 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26685 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26686 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26687 "although we think is to do with partition alignment."
26688 msgstr ""
26689
26690 # type: verbatim
26691 #: ../tools/virt-resize.pl:1453
26692 #, no-wrap
26693 msgid ""
26694 " guestfish -i -a newdisk\n"
26695 " ><fs> cat /boot/grub/device.map\n"
26696 " # check the contents of this file are sensible or\n"
26697 " # edit the file if necessary\n"
26698 " ><fs> grub-install / /dev/vda\n"
26699 " ><fs> exit\n"
26700 "\n"
26701 msgstr ""
26702
26703 # type: textblock
26704 #: ../tools/virt-resize.pl:1460
26705 msgid ""
26706 "For more flexible guest reconfiguration, including if you need to specify "
26707 "other parameters to grub-install, use L<virt-rescue(1)>."
26708 msgstr ""
26709
26710 # type: =head1
26711 #: ../tools/virt-resize.pl:1463
26712 msgid "ALTERNATIVE TOOLS"
26713 msgstr ""
26714
26715 # type: textblock
26716 #: ../tools/virt-resize.pl:1465
26717 msgid ""
26718 "There are several proprietary tools for resizing partitions.  We won't "
26719 "mention any here."
26720 msgstr ""
26721
26722 # type: textblock
26723 #: ../tools/virt-resize.pl:1468
26724 msgid ""
26725 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26726 "operations on disk images.  They can resize and move partitions, but I don't "
26727 "think they can do anything with the contents, and they certainly don't "
26728 "understand LVM."
26729 msgstr ""
26730
26731 # type: textblock
26732 #: ../tools/virt-resize.pl:1473
26733 msgid ""
26734 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26735 "but at a much lower level.  You will probably end up hand-calculating sector "
26736 "offsets, which is something that virt-resize was designed to avoid.  If you "
26737 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26738 "C<--debug> flag."
26739 msgstr ""
26740
26741 # type: textblock
26742 #: ../tools/virt-resize.pl:1488
26743 msgid ""
26744 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
26745 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
26746 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
26747 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
26748 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26749 msgstr ""
26750
26751 # type: textblock
26752 #: ../tools/virt-list-filesystems.pl:32
26753 msgid ""
26754 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
26755 msgstr ""
26756
26757 # type: verbatim
26758 #: ../tools/virt-list-filesystems.pl:36
26759 #, no-wrap
26760 msgid ""
26761 " virt-list-filesystems [--options] domname\n"
26762 "\n"
26763 msgstr ""
26764
26765 # type: verbatim
26766 #: ../tools/virt-list-filesystems.pl:38
26767 #, no-wrap
26768 msgid ""
26769 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
26770 "\n"
26771 msgstr ""
26772
26773 # type: textblock
26774 #: ../tools/virt-list-filesystems.pl:42
26775 msgid ""
26776 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
26777 "are contained in a virtual machine or disk image."
26778 msgstr ""
26779
26780 # type: textblock
26781 #: ../tools/virt-list-filesystems.pl:46
26782 msgid ""
26783 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
26784 "functionality.  For more complex cases you should look at the L<guestfish(1)"
26785 "> tool."
26786 msgstr ""
26787
26788 # type: textblock
26789 #: ../tools/virt-list-filesystems.pl:105
26790 msgid ""
26791 "With this option, C<virt-list-filesystems> displays the type of each "
26792 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
26793 msgstr ""
26794
26795 # type: =item
26796 #: ../tools/virt-list-filesystems.pl:112
26797 msgid "B<-a> | B<--all>"
26798 msgstr ""
26799
26800 # type: textblock
26801 #: ../tools/virt-list-filesystems.pl:114
26802 msgid ""
26803 "Normally we only show mountable filesystems.  If this option is given then "
26804 "swap devices are shown too."
26805 msgstr ""
26806
26807 # type: textblock
26808 #: ../tools/virt-list-filesystems.pl:218
26809 msgid ""
26810 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
26811 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
26812 ">, L<http://libguestfs.org/>."
26813 msgstr ""
26814
26815 # type: textblock
26816 #: ../tools/virt-cat.pl:34
26817 msgid "virt-cat - Display a file in a virtual machine"
26818 msgstr ""
26819
26820 # type: verbatim
26821 #: ../tools/virt-cat.pl:38
26822 #, no-wrap
26823 msgid ""
26824 " virt-cat [--options] domname file\n"
26825 "\n"
26826 msgstr ""
26827
26828 # type: verbatim
26829 #: ../tools/virt-cat.pl:40
26830 #, no-wrap
26831 msgid ""
26832 " virt-cat [--options] disk.img [disk.img ...] file\n"
26833 "\n"
26834 msgstr ""
26835
26836 # type: textblock
26837 #: ../tools/virt-cat.pl:44
26838 msgid ""
26839 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26840 "C<file> exists in the named virtual machine (or disk image)."
26841 msgstr ""
26842
26843 # type: textblock
26844 #: ../tools/virt-cat.pl:47
26845 msgid ""
26846 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26847 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26848 "tool."
26849 msgstr ""
26850
26851 # type: textblock
26852 #: ../tools/virt-cat.pl:53
26853 msgid ""
26854 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26855 msgstr ""
26856
26857 # type: verbatim
26858 #: ../tools/virt-cat.pl:56
26859 #, no-wrap
26860 msgid ""
26861 " virt-cat mydomain /etc/fstab\n"
26862 "\n"
26863 msgstr ""
26864
26865 # type: textblock
26866 #: ../tools/virt-cat.pl:58
26867 msgid "List syslog messages from a VM:"
26868 msgstr ""
26869
26870 # type: verbatim
26871 #: ../tools/virt-cat.pl:60
26872 #, no-wrap
26873 msgid ""
26874 " virt-cat mydomain /var/log/messages | tail\n"
26875 "\n"
26876 msgstr ""
26877
26878 # type: textblock
26879 #: ../tools/virt-cat.pl:62
26880 msgid "Find out what DHCP IP address a VM acquired:"
26881 msgstr ""
26882
26883 # type: verbatim
26884 #: ../tools/virt-cat.pl:64
26885 #, no-wrap
26886 msgid ""
26887 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26888 "\n"
26889 msgstr ""
26890
26891 # type: textblock
26892 #: ../tools/virt-cat.pl:66
26893 msgid "Find out what packages were recently installed:"
26894 msgstr ""
26895
26896 # type: verbatim
26897 #: ../tools/virt-cat.pl:68
26898 #, no-wrap
26899 msgid ""
26900 " virt-cat mydomain /var/log/yum.log | tail\n"
26901 "\n"
26902 msgstr ""
26903
26904 # type: textblock
26905 #: ../tools/virt-cat.pl:70
26906 msgid "Find out who is logged on inside a virtual machine:"
26907 msgstr ""
26908
26909 # type: verbatim
26910 #: ../tools/virt-cat.pl:72
26911 #, no-wrap
26912 msgid ""
26913 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26914 " who /tmp/utmp\n"
26915 "\n"
26916 msgstr ""
26917
26918 # type: textblock
26919 #: ../tools/virt-cat.pl:75
26920 msgid "or who was logged on:"
26921 msgstr ""
26922
26923 # type: verbatim
26924 #: ../tools/virt-cat.pl:77
26925 #, no-wrap
26926 msgid ""
26927 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26928 " last -f /tmp/wtmp\n"
26929 "\n"
26930 msgstr ""
26931
26932 # type: textblock
26933 #: ../tools/virt-cat.pl:190
26934 msgid ""
26935 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26936 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26937 msgstr ""
26938
26939 # type: textblock
26940 #: ../tools/virt-tar.pl:34
26941 msgid "virt-tar - Extract or upload files to a virtual machine"
26942 msgstr ""
26943
26944 # type: verbatim
26945 #: ../tools/virt-tar.pl:38
26946 #, no-wrap
26947 msgid ""
26948 " virt-tar [--options] -x domname directory tarball\n"
26949 "\n"
26950 msgstr ""
26951
26952 # type: verbatim
26953 #: ../tools/virt-tar.pl:40
26954 #, no-wrap
26955 msgid ""
26956 " virt-tar [--options] -u domname tarball directory\n"
26957 "\n"
26958 msgstr ""
26959
26960 # type: verbatim
26961 #: ../tools/virt-tar.pl:42
26962 #, no-wrap
26963 msgid ""
26964 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26965 "\n"
26966 msgstr ""
26967
26968 # type: verbatim
26969 #: ../tools/virt-tar.pl:44
26970 #, no-wrap
26971 msgid ""
26972 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26973 "\n"
26974 msgstr ""
26975
26976 # type: textblock
26977 #: ../tools/virt-tar.pl:48
26978 msgid "Download C</home> from the VM into a local tarball:"
26979 msgstr ""
26980
26981 # type: verbatim
26982 #: ../tools/virt-tar.pl:50
26983 #, no-wrap
26984 msgid ""
26985 " virt-tar -x domname /home home.tar\n"
26986 "\n"
26987 msgstr ""
26988
26989 # type: verbatim
26990 #: ../tools/virt-tar.pl:52
26991 #, no-wrap
26992 msgid ""
26993 " virt-tar -zx domname /home home.tar.gz\n"
26994 "\n"
26995 msgstr ""
26996
26997 # type: textblock
26998 #: ../tools/virt-tar.pl:54
26999 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27000 msgstr ""
27001
27002 # type: verbatim
27003 #: ../tools/virt-tar.pl:56
27004 #, no-wrap
27005 msgid ""
27006 " virt-tar -u domname uploadstuff.tar /tmp\n"
27007 "\n"
27008 msgstr ""
27009
27010 # type: verbatim
27011 #: ../tools/virt-tar.pl:58
27012 #, no-wrap
27013 msgid ""
27014 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27015 "\n"
27016 msgstr ""
27017
27018 # type: textblock
27019 #: ../tools/virt-tar.pl:62
27020 msgid ""
27021 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27022 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27023 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27024 msgstr ""
27025
27026 # type: textblock
27027 #: ../tools/virt-tar.pl:67
27028 msgid ""
27029 "You can use C<-x> (extract) on live virtual machines, but you might get "
27030 "inconsistent results or errors if there is filesystem activity inside the "
27031 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27032 "work, but the only way to guarantee consistent results is if the virtual "
27033 "machine is shut down."
27034 msgstr ""
27035
27036 # type: textblock
27037 #: ../tools/virt-tar.pl:75
27038 msgid ""
27039 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27040 "parts of a guest filesystem.  There are many possibilities: making backups, "
27041 "uploading data files, snooping on guest activity, fixing or customizing "
27042 "guests, etc."
27043 msgstr ""
27044
27045 # type: textblock
27046 #: ../tools/virt-tar.pl:80
27047 msgid ""
27048 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27049 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27050 "should look at the L<guestfish(1)> tool."
27051 msgstr ""
27052
27053 # type: textblock
27054 #: ../tools/virt-tar.pl:84
27055 msgid ""
27056 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27057 "its contents (recursively) from the virtual machine into a local tarball.  "
27058 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27059 "virtual machine.  You cannot use these two options together."
27060 msgstr ""
27061
27062 # type: textblock
27063 #: ../tools/virt-tar.pl:90
27064 msgid ""
27065 "In addition, you may need to use the C<-z> (gZip) option to enable "
27066 "compression.  When uploading, you have to specify C<-z> if the upload file "
27067 "is compressed because virt-tar won't detect this on its own."
27068 msgstr ""
27069
27070 # type: textblock
27071 #: ../tools/virt-tar.pl:94
27072 msgid ""
27073 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27074 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27075 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27076 "the L<libguestfs(3)> API)."
27077 msgstr ""
27078
27079 # type: =item
27080 #: ../tools/virt-tar.pl:152
27081 msgid "B<-x> | B<--extract> | B<--download>"
27082 msgstr ""
27083
27084 # type: =item
27085 #: ../tools/virt-tar.pl:154
27086 msgid "B<-u> | B<--upload>"
27087 msgstr ""
27088
27089 # type: textblock
27090 #: ../tools/virt-tar.pl:156
27091 msgid ""
27092 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27093 "local tarball."
27094 msgstr ""
27095
27096 # type: textblock
27097 #: ../tools/virt-tar.pl:159
27098 msgid ""
27099 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27100 "Please read the L</WARNING> section above before using this option."
27101 msgstr ""
27102
27103 # type: textblock
27104 #: ../tools/virt-tar.pl:163
27105 msgid "You must specify exactly one of these options."
27106 msgstr ""
27107
27108 # type: =item
27109 #: ../tools/virt-tar.pl:169
27110 msgid "B<-z> | B<--gzip>"
27111 msgstr ""
27112
27113 # type: textblock
27114 #: ../tools/virt-tar.pl:171
27115 msgid "Specify that the input or output tarball is gzip-compressed."
27116 msgstr ""
27117
27118 # type: textblock
27119 #: ../tools/virt-tar.pl:285
27120 msgid ""
27121 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
27122 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
27123 "org/>."
27124 msgstr ""
27125
27126 # type: textblock
27127 #: ../tools/virt-rescue.pl:33
27128 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27129 msgstr ""
27130
27131 # type: verbatim
27132 #: ../tools/virt-rescue.pl:37
27133 #, no-wrap
27134 msgid ""
27135 " virt-rescue [--options] domname\n"
27136 "\n"
27137 msgstr ""
27138
27139 # type: verbatim
27140 #: ../tools/virt-rescue.pl:39
27141 #, no-wrap
27142 msgid ""
27143 " virt-rescue [--options] disk.img [disk.img ...]\n"
27144 "\n"
27145 msgstr ""
27146
27147 # type: textblock
27148 #: ../tools/virt-rescue.pl:43
27149 msgid ""
27150 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27151 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27152 "you from doing this, but doesn't catch all cases."
27153 msgstr ""
27154
27155 # type: textblock
27156 #: ../tools/virt-rescue.pl:47
27157 msgid ""
27158 "However if you use the I<--ro> (read only) option, then you can attach a "
27159 "shell to a live virtual machine.  The results might be strange or "
27160 "inconsistent at times but you won't get disk corruption."
27161 msgstr ""
27162
27163 # type: textblock
27164 #: ../tools/virt-rescue.pl:53
27165 msgid ""
27166 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27167 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27168 "recovery tools which you can use to examine or rescue a virtual machine or "
27169 "disk image."
27170 msgstr ""
27171
27172 # type: textblock
27173 #: ../tools/virt-rescue.pl:58
27174 msgid ""
27175 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27176 "on disk image(s):"
27177 msgstr ""
27178
27179 # type: verbatim
27180 #: ../tools/virt-rescue.pl:61
27181 #, no-wrap
27182 msgid ""
27183 " virt-rescue GuestName\n"
27184 "\n"
27185 msgstr ""
27186
27187 # type: verbatim
27188 #: ../tools/virt-rescue.pl:63
27189 #, no-wrap
27190 msgid ""
27191 " virt-rescue --ro /path/to/disk.img\n"
27192 "\n"
27193 msgstr ""
27194
27195 # type: verbatim
27196 #: ../tools/virt-rescue.pl:65
27197 #, no-wrap
27198 msgid ""
27199 " virt-rescue /dev/sdc\n"
27200 "\n"
27201 msgstr ""
27202
27203 # type: textblock
27204 #: ../tools/virt-rescue.pl:67
27205 msgid "For live VMs you I<must> use the --ro option."
27206 msgstr ""
27207
27208 # type: textblock
27209 #: ../tools/virt-rescue.pl:69
27210 msgid ""
27211 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27212 "in an interactive bash shell where you can use many ordinary Linux "
27213 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27214 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27215 "is an empty directory called C</sysroot> where you can mount filesystems."
27216 msgstr ""
27217
27218 # type: textblock
27219 #: ../tools/virt-rescue.pl:76
27220 msgid ""
27221 "In the example below, we list logical volumes, then choose one to mount "
27222 "under C</sysroot>:"
27223 msgstr ""
27224
27225 # type: verbatim
27226 #: ../tools/virt-rescue.pl:79
27227 #, no-wrap
27228 msgid ""
27229 " ><rescue> lvs\n"
27230 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27231 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27232 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27233 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27234 " ><rescue> ls /sysroot\n"
27235 "\n"
27236 msgstr ""
27237
27238 # type: textblock
27239 #: ../tools/virt-rescue.pl:86
27240 msgid ""
27241 "If you don't know what filesystems are available on the virtual machine then "
27242 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27243 msgstr ""
27244
27245 # type: textblock
27246 #: ../tools/virt-rescue.pl:92
27247 msgid ""
27248 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27249 "virtual machine.  For example you can use it on a blank file if you want to "
27250 "partition that file (although we would recommend using L<guestfish(1)> "
27251 "instead as it is more suitable for this purpose).  You can even use virt-"
27252 "rescue on things like SD cards."
27253 msgstr ""
27254
27255 # type: textblock
27256 #: ../tools/virt-rescue.pl:98
27257 msgid ""
27258 "This tool is just designed for quick interactive hacking on a virtual "
27259 "machine.  For more structured access to a virtual machine disk image, you "
27260 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27261 "make scripted changes to guests, use L<guestfish(1)>."
27262 msgstr ""
27263
27264 # type: =item
27265 #: ../tools/virt-rescue.pl:127
27266 msgid "B<--append kernelopts>"
27267 msgstr ""
27268
27269 # type: textblock
27270 #: ../tools/virt-rescue.pl:129
27271 msgid "Pass additional options to the rescue kernel."
27272 msgstr ""
27273
27274 # type: =item
27275 #: ../tools/virt-rescue.pl:164
27276 msgid "B<--memsize MB> | B<-m MB>"
27277 msgstr ""
27278
27279 # type: textblock
27280 #: ../tools/virt-rescue.pl:166
27281 msgid ""
27282 "Change the amount of memory allocated to the rescue system.  The default is "
27283 "set by libguestfs and is small but adequate for running system tools.  The "
27284 "occasional program might need more memory.  The parameter is specified in "
27285 "megabytes."
27286 msgstr ""
27287
27288 # type: =item
27289 #: ../tools/virt-rescue.pl:175
27290 msgid "B<--network MB>"
27291 msgstr ""
27292
27293 # type: textblock
27294 #: ../tools/virt-rescue.pl:177
27295 msgid "Enable QEMU user networking in the guest."
27296 msgstr ""
27297
27298 # type: =item
27299 #: ../tools/virt-rescue.pl:183
27300 msgid "B<--ro> | B<-r>"
27301 msgstr ""
27302
27303 # type: textblock
27304 #: ../tools/virt-rescue.pl:185
27305 msgid "Open the image read-only."
27306 msgstr ""
27307
27308 # type: textblock
27309 #: ../tools/virt-rescue.pl:197
27310 msgid ""
27311 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
27312 "SELINUX> before using this option."
27313 msgstr ""
27314
27315 # type: textblock
27316 #: ../tools/virt-rescue.pl:257
27317 msgid ""
27318 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
27319 "ENVIRONMENT VARIABLES> for the complete list."
27320 msgstr ""
27321
27322 # type: textblock
27323 #: ../tools/virt-rescue.pl:269
27324 msgid ""
27325 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27326 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27327 msgstr ""
27328
27329 # type: textblock
27330 #: ../tools/virt-make-fs.pl:37
27331 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27332 msgstr ""
27333
27334 # type: verbatim
27335 #: ../tools/virt-make-fs.pl:41
27336 #, no-wrap
27337 msgid ""
27338 " virt-make-fs [--options] input.tar output.img\n"
27339 "\n"
27340 msgstr ""
27341
27342 # type: verbatim
27343 #: ../tools/virt-make-fs.pl:43
27344 #, no-wrap
27345 msgid ""
27346 " virt-make-fs [--options] input.tar.gz output.img\n"
27347 "\n"
27348 msgstr ""
27349
27350 # type: verbatim
27351 #: ../tools/virt-make-fs.pl:45
27352 #, no-wrap
27353 msgid ""
27354 " virt-make-fs [--options] directory output.img\n"
27355 "\n"
27356 msgstr ""
27357
27358 # type: textblock
27359 #: ../tools/virt-make-fs.pl:49
27360 msgid ""
27361 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27362 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
27363 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
27364 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
27365 "you want to attach these filesystems to existing virtual machines (eg. to "
27366 "import large amounts of read-only data to a VM)."
27367 msgstr ""
27368
27369 # type: textblock
27370 #: ../tools/virt-make-fs.pl:57
27371 msgid "Basic usage is:"
27372 msgstr ""
27373
27374 # type: verbatim
27375 #: ../tools/virt-make-fs.pl:59
27376 #, no-wrap
27377 msgid ""
27378 " virt-make-fs input output\n"
27379 "\n"
27380 msgstr ""
27381
27382 # type: textblock
27383 #: ../tools/virt-make-fs.pl:61
27384 msgid ""
27385 "where C<input> is either a directory containing files that you want to add, "
27386 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27387 "C<output> is a disk image.  The input type is detected automatically.  The "
27388 "output disk image defaults to a raw ext2 image unless you specify extra "
27389 "flags (see L</OPTIONS> below)."
27390 msgstr ""
27391
27392 # type: =head2
27393 #: ../tools/virt-make-fs.pl:67
27394 msgid "EXTRA SPACE"
27395 msgstr ""
27396
27397 # type: textblock
27398 #: ../tools/virt-make-fs.pl:69
27399 msgid ""
27400 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27401 "the files that it contains, but might have extra space.  Depending on how "
27402 "you are going to use the output, you might think this extra space is wasted "
27403 "and want to minimize it, or you might want to leave space so that more files "
27404 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27405 "but you can use the C<--size> flag to leave space in the filesystem if you "
27406 "want it."
27407 msgstr ""
27408
27409 # type: textblock
27410 #: ../tools/virt-make-fs.pl:77
27411 msgid ""
27412 "An alternative way to leave extra space but not make the output image any "
27413 "bigger is to use an alternative disk image format (instead of the default "
27414 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27415 "image format (check your hypervisor supports this before using it).  This "
27416 "allows you to choose a large C<--size> but the extra space won't actually be "
27417 "allocated in the image until you try to store something in it."
27418 msgstr ""
27419
27420 # type: textblock
27421 #: ../tools/virt-make-fs.pl:85
27422 msgid ""
27423 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27424 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
27425 "resize to build another image from scratch."
27426 msgstr ""
27427
27428 # type: =head3
27429 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
27430 #: ../tools/virt-make-fs.pl:142
27431 msgid "EXAMPLE"
27432 msgstr ""
27433
27434 # type: verbatim
27435 #: ../tools/virt-make-fs.pl:91
27436 #, no-wrap
27437 msgid ""
27438 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27439 "\n"
27440 msgstr ""
27441
27442 # type: =head2
27443 #: ../tools/virt-make-fs.pl:93
27444 msgid "FILESYSTEM TYPE"
27445 msgstr ""
27446
27447 # type: textblock
27448 #: ../tools/virt-make-fs.pl:95
27449 msgid ""
27450 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27451 "libguestfs supports can be used (but I<not> read-only formats like "
27452 "ISO9660).  Here are some of the more common choices:"
27453 msgstr ""
27454
27455 # type: =item
27456 #: ../tools/virt-make-fs.pl:101
27457 msgid "I<ext3>"
27458 msgstr ""
27459
27460 # type: textblock
27461 #: ../tools/virt-make-fs.pl:103
27462 msgid ""
27463 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27464 "you are not going to use the filesystem in a way that requires the journal, "
27465 "then this is just wasted overhead."
27466 msgstr ""
27467
27468 # type: =item
27469 #: ../tools/virt-make-fs.pl:107
27470 msgid "I<ntfs> or I<vfat>"
27471 msgstr ""
27472
27473 # type: textblock
27474 #: ../tools/virt-make-fs.pl:109
27475 msgid "Useful if exporting data to a Windows guest."
27476 msgstr ""
27477
27478 # type: textblock
27479 #: ../tools/virt-make-fs.pl:111
27480 msgid ""
27481 "I<Note for vfat>: The tar archive or local directory must only contain files "
27482 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27483 "program running within libguestfs is unable to change the ownership of non-"
27484 "root files, since vfat itself does not support this."
27485 msgstr ""
27486
27487 # type: =item
27488 #: ../tools/virt-make-fs.pl:116
27489 msgid "I<minix>"
27490 msgstr ""
27491
27492 # type: textblock
27493 #: ../tools/virt-make-fs.pl:118
27494 msgid ""
27495 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27496 "total filesystem size."
27497 msgstr ""
27498
27499 # type: verbatim
27500 #: ../tools/virt-make-fs.pl:125
27501 #, no-wrap
27502 msgid ""
27503 " virt-make-fs --type=minix input minixfs.img\n"
27504 "\n"
27505 msgstr ""
27506
27507 # type: =head2
27508 #: ../tools/virt-make-fs.pl:127
27509 msgid "TO PARTITION OR NOT TO PARTITION"
27510 msgstr ""
27511
27512 # type: textblock
27513 #: ../tools/virt-make-fs.pl:129
27514 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27515 msgstr ""
27516
27517 # type: textblock
27518 #: ../tools/virt-make-fs.pl:131
27519 msgid ""
27520 "Adding a partition can make the disk image more compatible with certain "
27521 "virtualized operating systems which don't expect to see a filesystem "
27522 "directly located on a block device (Linux doesn't care and will happily "
27523 "handle both types)."
27524 msgstr ""
27525
27526 # type: textblock
27527 #: ../tools/virt-make-fs.pl:136
27528 msgid ""
27529 "On the other hand, if you have a partition table then the output image is no "
27530 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27531 "directly on a partitioned disk image.  (However libguestfs tools such as "
27532 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27533 msgstr ""
27534
27535 # type: textblock
27536 #: ../tools/virt-make-fs.pl:144
27537 msgid "Add an MBR partition:"
27538 msgstr ""
27539
27540 # type: verbatim
27541 #: ../tools/virt-make-fs.pl:146
27542 #, no-wrap
27543 msgid ""
27544 " virt-make-fs --partition -- input disk.img\n"
27545 "\n"
27546 msgstr ""
27547
27548 # type: textblock
27549 #: ../tools/virt-make-fs.pl:148
27550 msgid ""
27551 "If the output disk image could be terabyte-sized or larger, it's better to "
27552 "use an EFI/GPT-compatible partition table:"
27553 msgstr ""
27554
27555 # type: verbatim
27556 #: ../tools/virt-make-fs.pl:151
27557 #, no-wrap
27558 msgid ""
27559 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27560 "\n"
27561 msgstr ""
27562
27563 # type: textblock
27564 #: ../tools/virt-make-fs.pl:179
27565 msgid "Enable debugging information."
27566 msgstr ""
27567
27568 # type: =item
27569 #: ../tools/virt-make-fs.pl:185
27570 msgid "B<--size=E<lt>NE<gt>>"
27571 msgstr ""
27572
27573 # type: =item
27574 #: ../tools/virt-make-fs.pl:187
27575 msgid "B<--size=+E<lt>NE<gt>>"
27576 msgstr ""
27577
27578 # type: =item
27579 #: ../tools/virt-make-fs.pl:189
27580 msgid "B<-s E<lt>NE<gt>>"
27581 msgstr ""
27582
27583 # type: =item
27584 #: ../tools/virt-make-fs.pl:191
27585 msgid "B<-s +E<lt>NE<gt>>"
27586 msgstr ""
27587
27588 # type: textblock
27589 #: ../tools/virt-make-fs.pl:193
27590 msgid ""
27591 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27592 msgstr ""
27593
27594 # type: textblock
27595 #: ../tools/virt-make-fs.pl:196
27596 msgid ""
27597 "If this option is I<not> given, then the output image will be just large "
27598 "enough to contain all the files, with not much wasted space."
27599 msgstr ""
27600
27601 # type: textblock
27602 #: ../tools/virt-make-fs.pl:199
27603 msgid ""
27604 "To choose a fixed size output disk, specify an absolute number followed by b/"
27605 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27606 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27607 "files, else you will get an error."
27608 msgstr ""
27609
27610 # type: textblock
27611 #: ../tools/virt-make-fs.pl:204
27612 msgid ""
27613 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
27614 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27615 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27616 "the input files, and (approximately) an extra 200 MB free space."
27617 msgstr ""
27618
27619 # type: textblock
27620 #: ../tools/virt-make-fs.pl:210
27621 msgid ""
27622 "Note that virt-make-fs estimates free space, and therefore will not produce "
27623 "filesystems containing precisely the free space requested.  (It is much more "
27624 "expensive and time-consuming to produce a filesystem which has precisely the "
27625 "desired free space)."
27626 msgstr ""
27627
27628 # type: =item
27629 #: ../tools/virt-make-fs.pl:219
27630 msgid "B<--format=E<lt>fmtE<gt>>"
27631 msgstr ""
27632
27633 # type: =item
27634 #: ../tools/virt-make-fs.pl:221
27635 msgid "B<-F E<lt>fmtE<gt>>"
27636 msgstr ""
27637
27638 # type: textblock
27639 #: ../tools/virt-make-fs.pl:223
27640 msgid "Choose the output disk image format."
27641 msgstr ""
27642
27643 # type: textblock
27644 #: ../tools/virt-make-fs.pl:225
27645 msgid "The default is C<raw> (raw disk image)."
27646 msgstr ""
27647
27648 # type: textblock
27649 #: ../tools/virt-make-fs.pl:227
27650 msgid ""
27651 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27652 "that would really make sense here is C<qcow2>."
27653 msgstr ""
27654
27655 # type: =item
27656 #: ../tools/virt-make-fs.pl:234
27657 msgid "B<--type=E<lt>fsE<gt>>"
27658 msgstr ""
27659
27660 # type: =item
27661 #: ../tools/virt-make-fs.pl:236
27662 msgid "B<-t E<lt>fsE<gt>>"
27663 msgstr ""
27664
27665 # type: textblock
27666 #: ../tools/virt-make-fs.pl:238
27667 msgid "Choose the output filesystem type."
27668 msgstr ""
27669
27670 # type: textblock
27671 #: ../tools/virt-make-fs.pl:240
27672 msgid "The default is C<ext2>."
27673 msgstr ""
27674
27675 # type: textblock
27676 #: ../tools/virt-make-fs.pl:242
27677 msgid ""
27678 "Any filesystem which is supported read-write by libguestfs can be used here."
27679 msgstr ""
27680
27681 # type: =item
27682 #: ../tools/virt-make-fs.pl:249
27683 msgid "B<--partition>"
27684 msgstr ""
27685
27686 # type: =item
27687 #: ../tools/virt-make-fs.pl:251
27688 msgid "B<--partition=E<lt>parttypeE<gt>>"
27689 msgstr ""
27690
27691 # type: textblock
27692 #: ../tools/virt-make-fs.pl:253
27693 msgid ""
27694 "If specified, this flag adds an MBR partition table to the output disk image."
27695 msgstr ""
27696
27697 # type: textblock
27698 #: ../tools/virt-make-fs.pl:256
27699 msgid ""
27700 "You can change the partition table type, eg. C<--partition=gpt> for large "
27701 "disks."
27702 msgstr ""
27703
27704 # type: textblock
27705 #: ../tools/virt-make-fs.pl:259
27706 msgid ""
27707 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27708 "might consider the next parameter to be the partition type.  For example:"
27709 msgstr ""
27710
27711 # type: verbatim
27712 #: ../tools/virt-make-fs.pl:263
27713 #, no-wrap
27714 msgid ""
27715 " virt-make-fs --partition input.tar ...\n"
27716 "\n"
27717 msgstr ""
27718
27719 # type: textblock
27720 #: ../tools/virt-make-fs.pl:265
27721 msgid ""
27722 "would cause virt-make-fs to think you wanted to use a partition type of "
27723 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27724 "dash) between options and the input file argument:"
27725 msgstr ""
27726
27727 # type: verbatim
27728 #: ../tools/virt-make-fs.pl:269
27729 #, no-wrap
27730 msgid ""
27731 " virt-make-fs --partition -- input.tar ...\n"
27732 "\n"
27733 msgstr ""
27734
27735 # type: textblock
27736 #: ../tools/virt-make-fs.pl:536
27737 msgid ""
27738 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27739 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
27740 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27741 msgstr ""
27742
27743 # type: verbatim
27744 #: ../tools/virt-make-fs.pl:553
27745 #, no-wrap
27746 msgid ""
27747 " export LIBGUESTFS_DEBUG=1\n"
27748 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
27749 "\n"
27750 msgstr ""
27751
27752 # type: textblock
27753 #: ../tools/virt-make-fs.pl:556
27754 msgid ""
27755 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
27756 "redhat.com/>"
27757 msgstr ""
27758
27759 # type: textblock
27760 #: ../tools/virt-list-partitions.pl:32
27761 msgid ""
27762 "virt-list-partitions - List partitions in a virtual machine or disk image"
27763 msgstr ""
27764
27765 # type: verbatim
27766 #: ../tools/virt-list-partitions.pl:36
27767 #, no-wrap
27768 msgid ""
27769 " virt-list-partitions [--options] domname\n"
27770 "\n"
27771 msgstr ""
27772
27773 # type: verbatim
27774 #: ../tools/virt-list-partitions.pl:38
27775 #, no-wrap
27776 msgid ""
27777 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
27778 "\n"
27779 msgstr ""
27780
27781 # type: textblock
27782 #: ../tools/virt-list-partitions.pl:42
27783 msgid ""
27784 "C<virt-list-partitions> is a command line tool to list the partitions that "
27785 "are contained in a virtual machine or disk image.  It is mainly useful as a "
27786 "first step to using L<virt-resize(1)>."
27787 msgstr ""
27788
27789 # type: textblock
27790 #: ../tools/virt-list-partitions.pl:47
27791 msgid ""
27792 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
27793 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27794 "> tool."
27795 msgstr ""
27796
27797 # type: =item
27798 #: ../tools/virt-list-partitions.pl:104
27799 msgid "B<-h> | B<--human-readable>"
27800 msgstr ""
27801
27802 # type: textblock
27803 #: ../tools/virt-list-partitions.pl:106
27804 msgid "Show sizes in human-readable form (eg. \"1G\")."
27805 msgstr ""
27806
27807 # type: textblock
27808 #: ../tools/virt-list-partitions.pl:114
27809 msgid ""
27810 "With this option, C<virt-list-partitions> displays the type and size of each "
27811 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
27812 msgstr ""
27813
27814 # type: =item
27815 #: ../tools/virt-list-partitions.pl:121
27816 msgid "B<-t> | B<--total>"
27817 msgstr ""
27818
27819 # type: textblock
27820 #: ../tools/virt-list-partitions.pl:123
27821 msgid ""
27822 "Display the total size of each block device (as a separate row or rows)."
27823 msgstr ""
27824
27825 # type: textblock
27826 #: ../tools/virt-list-partitions.pl:256
27827 msgid ""
27828 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
27829 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
27830 "libguestfs.org/>."
27831 msgstr ""