Version 1.5.26.
[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-29 15:47+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:31 ../tools/virt-edit.pl:30
23 #: ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30
24 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
25 #: ../tools/virt-cat.pl:29 ../tools/virt-tar.pl:29 ../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:33 ../tools/virt-edit.pl:32
34 #: ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32
35 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
36 #: ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../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:37 ../tools/virt-edit.pl:36
50 #: ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36
51 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
52 #: ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../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:43 ../tools/virt-edit.pl:50
94 #: ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42
95 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../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:393 ../src/guestfs.pod:1159
782 #: ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1384
783 #: ../src/guestfs.pod:1389 ../src/guestfs.pod:1393 ../src/guestfs.pod:1495
784 #: ../src/guestfs.pod:1499 ../src/guestfs.pod:1503 ../src/guestfs.pod:1508
785 #: ../src/guestfs.pod:1516 ../src/guestfs.pod:1535 ../src/guestfs.pod:1543
786 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:1779 ../src/guestfs.pod:1784
787 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1897 ../src/guestfs.pod:1901
788 #: ../src/guestfs.pod:1905 ../src/guestfs.pod:1909
789 #: ../src/guestfs-actions.pod:14 ../src/guestfs-actions.pod:21
790 #: ../src/guestfs-actions.pod:438 ../src/guestfs-actions.pod:446
791 #: ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:460
792 #: ../src/guestfs-actions.pod:1351 ../src/guestfs-actions.pod:1355
793 #: ../src/guestfs-actions.pod:1359 ../src/guestfs-actions.pod:1363
794 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1375
795 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1389
796 #: ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1397
797 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1524
798 #: ../src/guestfs-actions.pod:1529 ../src/guestfs-actions.pod:1534
799 #: ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1590
800 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish.pod:364
801 #: ../fish/guestfish.pod:368 ../fish/guestfish.pod:372
802 #: ../fish/guestfish.pod:376 ../fish/guestfish-actions.pod:13
803 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:339
804 #: ../fish/guestfish-actions.pod:347 ../fish/guestfish-actions.pod:354
805 #: ../fish/guestfish-actions.pod:361 ../fish/guestfish-actions.pod:1056
806 #: ../fish/guestfish-actions.pod:1060 ../fish/guestfish-actions.pod:1064
807 #: ../fish/guestfish-actions.pod:1068 ../fish/guestfish-actions.pod:1076
808 #: ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084
809 #: ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098
810 #: ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1192
811 #: ../fish/guestfish-actions.pod:1196 ../fish/guestfish-actions.pod:1201
812 #: ../fish/guestfish-actions.pod:1206 ../fish/guestfish-actions.pod:1248
813 #: ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1257
814 #: ../inspector/virt-inspector.pl:584 ../inspector/virt-inspector.pl:588
815 #: ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348
816 #: ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
817 msgid "*"
818 msgstr ""
819
820 # type: textblock
821 #: ../src/guestfs.pod:362
822 msgid ""
823 "The kernel version that the command runs under will be different from what "
824 "it expects."
825 msgstr ""
826
827 # type: textblock
828 #: ../src/guestfs.pod:367
829 msgid ""
830 "If the command needs to communicate with daemons, then most likely they "
831 "won't be running."
832 msgstr ""
833
834 # type: textblock
835 #: ../src/guestfs.pod:372
836 msgid "The command will be running in limited memory."
837 msgstr ""
838
839 # type: textblock
840 #: ../src/guestfs.pod:376
841 msgid ""
842 "The network may not be available unless you enable it (see L</"
843 "guestfs_set_network>)."
844 msgstr ""
845
846 # type: textblock
847 #: ../src/guestfs.pod:381
848 msgid "Only supports Linux guests (not Windows, BSD, etc)."
849 msgstr ""
850
851 # type: textblock
852 #: ../src/guestfs.pod:385
853 msgid ""
854 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
855 msgstr ""
856
857 # type: textblock
858 #: ../src/guestfs.pod:390
859 msgid ""
860 "For SELinux guests, you may need to enable SELinux and load policy first.  "
861 "See L</SELINUX> in this manpage."
862 msgstr ""
863
864 # type: textblock
865 #: ../src/guestfs.pod:395
866 msgid ""
867 "I<Security:> It is not safe to run commands from untrusted, possibly "
868 "malicious guests.  These commands may attempt to exploit your program by "
869 "sending unexpected output.  They could also try to exploit the Linux kernel "
870 "or qemu provided by the libguestfs appliance.  They could use the network "
871 "provided by the libguestfs appliance to bypass ordinary network partitions "
872 "and firewalls.  They could use the elevated privileges or different SELinux "
873 "context of your program to their advantage."
874 msgstr ""
875
876 # type: textblock
877 #: ../src/guestfs.pod:404
878 msgid ""
879 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
880 "(a script which runs when the guest next boots normally), and to have this "
881 "script run the commands you want in the normal context of the running guest, "
882 "network security and so on."
883 msgstr ""
884
885 # type: textblock
886 #: ../src/guestfs.pod:411
887 msgid ""
888 "The two main API calls to run commands are L</guestfs_command> and L</"
889 "guestfs_sh> (there are also variations)."
890 msgstr ""
891
892 # type: textblock
893 #: ../src/guestfs.pod:414
894 msgid ""
895 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
896 "shell globs, redirections, etc will work."
897 msgstr ""
898
899 # type: =head2
900 #: ../src/guestfs.pod:417
901 msgid "CONFIGURATION FILES"
902 msgstr ""
903
904 # type: textblock
905 #: ../src/guestfs.pod:419
906 msgid ""
907 "To read and write configuration files in Linux guest filesystems, we "
908 "strongly recommend using Augeas.  For example, Augeas understands how to "
909 "read and write, say, a Linux shadow password file or X.org configuration "
910 "file, and so avoids you having to write that code."
911 msgstr ""
912
913 # type: textblock
914 #: ../src/guestfs.pod:424
915 msgid ""
916 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
917 "document Augeas itself here because there is excellent documentation on the "
918 "L<http://augeas.net/> website."
919 msgstr ""
920
921 # type: textblock
922 #: ../src/guestfs.pod:428
923 msgid ""
924 "If you don't want to use Augeas (you fool!) then try calling L</"
925 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
926 "over."
927 msgstr ""
928
929 # type: =head2
930 #: ../src/guestfs.pod:432
931 msgid "SELINUX"
932 msgstr ""
933
934 # type: textblock
935 #: ../src/guestfs.pod:434
936 msgid ""
937 "We support SELinux guests.  To ensure that labeling happens correctly in "
938 "SELinux guests, you need to enable SELinux and load the guest's policy:"
939 msgstr ""
940
941 # type: =item
942 #: ../src/guestfs.pod:440
943 msgid "1."
944 msgstr ""
945
946 # type: textblock
947 #: ../src/guestfs.pod:442
948 msgid "Before launching, do:"
949 msgstr ""
950
951 # type: verbatim
952 #: ../src/guestfs.pod:444
953 #, no-wrap
954 msgid ""
955 " guestfs_set_selinux (g, 1);\n"
956 "\n"
957 msgstr ""
958
959 # type: =item
960 #: ../src/guestfs.pod:446
961 msgid "2."
962 msgstr ""
963
964 # type: textblock
965 #: ../src/guestfs.pod:448
966 msgid ""
967 "After mounting the guest's filesystem(s), load the policy.  This is best "
968 "done by running the L<load_policy(8)> command in the guest itself:"
969 msgstr ""
970
971 # type: verbatim
972 #: ../src/guestfs.pod:452
973 #, no-wrap
974 msgid ""
975 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
976 "\n"
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:454
981 msgid ""
982 "(Older versions of C<load_policy> require you to specify the name of the "
983 "policy file)."
984 msgstr ""
985
986 # type: =item
987 #: ../src/guestfs.pod:457
988 msgid "3."
989 msgstr ""
990
991 # type: textblock
992 #: ../src/guestfs.pod:459
993 msgid ""
994 "Optionally, set the security context for the API.  The correct security "
995 "context to use can only be known by inspecting the guest.  As an example:"
996 msgstr ""
997
998 # type: verbatim
999 #: ../src/guestfs.pod:463
1000 #, no-wrap
1001 msgid ""
1002 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1003 "\n"
1004 msgstr ""
1005
1006 # type: textblock
1007 #: ../src/guestfs.pod:467
1008 msgid "This will work for running commands and editing existing files."
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:469
1013 msgid ""
1014 "When new files are created, you may need to label them explicitly, for "
1015 "example by running the external command C<restorecon pathname>."
1016 msgstr ""
1017
1018 # type: =head2
1019 #: ../src/guestfs.pod:473
1020 msgid "UMASK"
1021 msgstr ""
1022
1023 # type: textblock
1024 #: ../src/guestfs.pod:475
1025 msgid ""
1026 "Certain calls are affected by the current file mode creation mask (the "
1027 "\"umask\").  In particular ones which create files or directories, such as "
1028 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1029 "either the default mode that the file is created with or modifies the mode "
1030 "that you supply."
1031 msgstr ""
1032
1033 # type: textblock
1034 #: ../src/guestfs.pod:481
1035 msgid ""
1036 "The default umask is C<022>, so files are created with modes such as C<0644> "
1037 "and directories with C<0755>."
1038 msgstr ""
1039
1040 # type: textblock
1041 #: ../src/guestfs.pod:484
1042 msgid ""
1043 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1044 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1045 "guestfs_chmod> after creating each file or directory."
1046 msgstr ""
1047
1048 # type: textblock
1049 #: ../src/guestfs.pod:488
1050 msgid "For more information about umask, see L<umask(2)>."
1051 msgstr ""
1052
1053 # type: =head1
1054 #: ../src/guestfs.pod:490 ../fish/guestfish.pod:630
1055 msgid "ENCRYPTED DISKS"
1056 msgstr ""
1057
1058 # type: textblock
1059 #: ../src/guestfs.pod:492
1060 msgid ""
1061 "Libguestfs allows you to access Linux guests which have been encrypted using "
1062 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1063 "standard.  This includes nearly all whole disk encryption systems used by "
1064 "modern Linux guests."
1065 msgstr ""
1066
1067 # type: textblock
1068 #: ../src/guestfs.pod:498
1069 msgid ""
1070 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1071 "returns the string C<crypto_LUKS>)."
1072 msgstr ""
1073
1074 # type: textblock
1075 #: ../src/guestfs.pod:501
1076 msgid ""
1077 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1078 "will require the passphrase!"
1079 msgstr ""
1080
1081 # type: textblock
1082 #: ../src/guestfs.pod:504
1083 msgid ""
1084 "Opening a LUKS device creates a new device mapper device called C</dev/"
1085 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1086 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1087 "from and encrypted to the underlying block device respectively."
1088 msgstr ""
1089
1090 # type: textblock
1091 #: ../src/guestfs.pod:510
1092 msgid ""
1093 "LVM volume groups on the device can be made visible by calling L</"
1094 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1095 "(s) can now be mounted in the usual way."
1096 msgstr ""
1097
1098 # type: textblock
1099 #: ../src/guestfs.pod:514
1100 msgid ""
1101 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1102 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1103 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1104 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1105 "underlying encrypted block device)."
1106 msgstr ""
1107
1108 # type: =head2
1109 #: ../src/guestfs.pod:521
1110 msgid "INSPECTION"
1111 msgstr ""
1112
1113 # type: textblock
1114 #: ../src/guestfs.pod:523
1115 msgid ""
1116 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1117 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1118 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1119 "frequently used part of this library has been rewritten in C and moved into "
1120 "the core code)."
1121 msgstr ""
1122
1123 # type: textblock
1124 #: ../src/guestfs.pod:529
1125 msgid ""
1126 "Add all disks belonging to the unknown virtual machine and call L</"
1127 "guestfs_launch> in the usual way."
1128 msgstr ""
1129
1130 # type: textblock
1131 #: ../src/guestfs.pod:532
1132 msgid ""
1133 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1134 "and certain heuristics, and returns a list of operating systems that were "
1135 "found.  An empty list means none were found.  A single element is the root "
1136 "filesystem of the operating system.  For dual- or multi-boot guests, "
1137 "multiple roots can be returned, each one corresponding to a separate "
1138 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1139 "world of virtualization, but since this scenario can happen, we have built "
1140 "libguestfs to deal with it.)"
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:541
1145 msgid ""
1146 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1147 "to get additional details about that operating system.  For example, call L</"
1148 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1149 "Windows and Linux-based operating systems respectively."
1150 msgstr ""
1151
1152 # type: textblock
1153 #: ../src/guestfs.pod:547
1154 msgid ""
1155 "Un*x-like and Linux-based operating systems usually consist of several "
1156 "filesystems which are mounted at boot time (for example, a separate boot "
1157 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1158 "filesystems correspond to mount points.  Call "
1159 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1160 "hash table like this example:"
1161 msgstr ""
1162
1163 # type: verbatim
1164 #: ../src/guestfs.pod:554
1165 #, no-wrap
1166 msgid ""
1167 " /boot => /dev/sda1\n"
1168 " /     => /dev/vg_guest/lv_root\n"
1169 " /usr  => /dev/vg_guest/lv_usr\n"
1170 "\n"
1171 msgstr ""
1172
1173 # type: textblock
1174 #: ../src/guestfs.pod:558
1175 msgid ""
1176 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1177 "filesystems as suggested."
1178 msgstr ""
1179
1180 # type: textblock
1181 #: ../src/guestfs.pod:561
1182 msgid ""
1183 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1184 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1185 msgstr ""
1186
1187 # type: textblock
1188 #: ../src/guestfs.pod:565
1189 msgid ""
1190 "Inspection currently only works for some common operating systems.  "
1191 "Contributors are welcome to send patches for other operating systems that we "
1192 "currently cannot detect."
1193 msgstr ""
1194
1195 # type: textblock
1196 #: ../src/guestfs.pod:569
1197 msgid ""
1198 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1199 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1200 "encrypted devices."
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:573
1205 msgid ""
1206 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1207 "inspection and caches the results in the guest handle.  Subsequent calls to "
1208 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1209 "read the disks.  If you change the content of the guest disks, you can redo "
1210 "inspection by calling L</guestfs_inspect_os> again."
1211 msgstr ""
1212
1213 # type: =head2
1214 #: ../src/guestfs.pod:580
1215 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1216 msgstr ""
1217
1218 # type: textblock
1219 #: ../src/guestfs.pod:582
1220 msgid ""
1221 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1222 "ntfs-3g.org/> driver."
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:585
1227 msgid ""
1228 "DOS and Windows still use drive letters, and the filesystems are always "
1229 "treated as case insensitive by Windows itself, and therefore you might find "
1230 "a Windows configuration file referring to a path like C<c:\\windows"
1231 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1232 "might be referred to as C</WINDOWS/System32>."
1233 msgstr ""
1234
1235 # type: textblock
1236 #: ../src/guestfs.pod:591
1237 msgid ""
1238 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1239 "libguestfs to read the appropriate Windows Registry and configuration files, "
1240 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1241 "inspector(1)>)."
1242 msgstr ""
1243
1244 # type: textblock
1245 #: ../src/guestfs.pod:596
1246 msgid ""
1247 "Replacing backslash characters with forward slash characters is also outside "
1248 "the scope of libguestfs, but something that you can easily do."
1249 msgstr ""
1250
1251 # type: textblock
1252 #: ../src/guestfs.pod:599
1253 msgid ""
1254 "Where we can help is in resolving the case insensitivity of paths.  For "
1255 "this, call L</guestfs_case_sensitive_path>."
1256 msgstr ""
1257
1258 # type: textblock
1259 #: ../src/guestfs.pod:602
1260 msgid ""
1261 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1262 "files, through the library C<hivex> which is part of the libguestfs project "
1263 "although ships as a separate tarball.  You have to locate and download the "
1264 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1265 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1266 "reg(1)> for more help on this issue."
1267 msgstr ""
1268
1269 # type: =head2
1270 #: ../src/guestfs.pod:610
1271 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1272 msgstr ""
1273
1274 # type: textblock
1275 #: ../src/guestfs.pod:612
1276 msgid ""
1277 "Although we don't want to discourage you from using the C API, we will "
1278 "mention here that the same API is also available in other languages."
1279 msgstr ""
1280
1281 # type: textblock
1282 #: ../src/guestfs.pod:615
1283 msgid ""
1284 "The API is broadly identical in all supported languages.  This means that "
1285 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1286 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1287 "words, a straightforward, predictable isomorphism between each language."
1288 msgstr ""
1289
1290 # type: textblock
1291 #: ../src/guestfs.pod:621
1292 msgid ""
1293 "Error messages are automatically transformed into exceptions if the language "
1294 "supports it."
1295 msgstr ""
1296
1297 # type: textblock
1298 #: ../src/guestfs.pod:624
1299 msgid ""
1300 "We don't try to \"object orientify\" parts of the API in OO languages, "
1301 "although contributors are welcome to write higher level APIs above what we "
1302 "provide in their favourite languages if they wish."
1303 msgstr ""
1304
1305 # type: =item
1306 #: ../src/guestfs.pod:630
1307 msgid "B<C++>"
1308 msgstr ""
1309
1310 # type: textblock
1311 #: ../src/guestfs.pod:632
1312 msgid ""
1313 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1314 "identical to the C API.  C++ classes and exceptions are not used."
1315 msgstr ""
1316
1317 # type: =item
1318 #: ../src/guestfs.pod:636
1319 msgid "B<C#>"
1320 msgstr ""
1321
1322 # type: textblock
1323 #: ../src/guestfs.pod:638
1324 msgid ""
1325 "The C# bindings are highly experimental.  Please read the warnings at the "
1326 "top of C<csharp/Libguestfs.cs>."
1327 msgstr ""
1328
1329 # type: =item
1330 #: ../src/guestfs.pod:641
1331 msgid "B<Haskell>"
1332 msgstr ""
1333
1334 # type: textblock
1335 #: ../src/guestfs.pod:643
1336 msgid ""
1337 "This is the only language binding that is working but incomplete.  Only "
1338 "calls which return simple integers have been bound in Haskell, and we are "
1339 "looking for help to complete this binding."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:647
1344 msgid "B<Java>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:649
1349 msgid ""
1350 "Full documentation is contained in the Javadoc which is distributed with "
1351 "libguestfs."
1352 msgstr ""
1353
1354 # type: =item
1355 #: ../src/guestfs.pod:652
1356 msgid "B<OCaml>"
1357 msgstr ""
1358
1359 # type: textblock
1360 #: ../src/guestfs.pod:654
1361 msgid "For documentation see the file C<guestfs.mli>."
1362 msgstr ""
1363
1364 # type: =item
1365 #: ../src/guestfs.pod:656
1366 msgid "B<Perl>"
1367 msgstr ""
1368
1369 # type: textblock
1370 #: ../src/guestfs.pod:658
1371 msgid "For documentation see L<Sys::Guestfs(3)>."
1372 msgstr ""
1373
1374 # type: =item
1375 #: ../src/guestfs.pod:660
1376 msgid "B<PHP>"
1377 msgstr ""
1378
1379 # type: textblock
1380 #: ../src/guestfs.pod:662
1381 msgid ""
1382 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1383 "the php-libguestfs package for your distribution."
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:665
1388 msgid "The PHP binding only works correctly on 64 bit machines."
1389 msgstr ""
1390
1391 # type: =item
1392 #: ../src/guestfs.pod:667
1393 msgid "B<Python>"
1394 msgstr ""
1395
1396 # type: textblock
1397 #: ../src/guestfs.pod:669
1398 msgid "For documentation do:"
1399 msgstr ""
1400
1401 # type: verbatim
1402 #: ../src/guestfs.pod:671
1403 #, no-wrap
1404 msgid ""
1405 " $ python\n"
1406 " >>> import guestfs\n"
1407 " >>> help (guestfs)\n"
1408 "\n"
1409 msgstr ""
1410
1411 # type: =item
1412 #: ../src/guestfs.pod:675
1413 msgid "B<Ruby>"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:677
1418 msgid ""
1419 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1420 "can find examples written in Ruby in the libguestfs source."
1421 msgstr ""
1422
1423 # type: =item
1424 #: ../src/guestfs.pod:680
1425 msgid "B<shell scripts>"
1426 msgstr ""
1427
1428 # type: textblock
1429 #: ../src/guestfs.pod:682
1430 msgid "For documentation see L<guestfish(1)>."
1431 msgstr ""
1432
1433 # type: =head2
1434 #: ../src/guestfs.pod:686
1435 msgid "LIBGUESTFS GOTCHAS"
1436 msgstr ""
1437
1438 # type: textblock
1439 #: ../src/guestfs.pod:688
1440 msgid ""
1441 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1442 "system [...] that works in the way it is documented but is counterintuitive "
1443 "and almost invites mistakes.\""
1444 msgstr ""
1445
1446 # type: textblock
1447 #: ../src/guestfs.pod:692
1448 msgid ""
1449 "Since we developed libguestfs and the associated tools, there are several "
1450 "things we would have designed differently, but are now stuck with for "
1451 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1452 "release, you can expect these to change.  Beware of them."
1453 msgstr ""
1454
1455 # type: =item
1456 #: ../src/guestfs.pod:700
1457 msgid "Autosync / forgetting to sync."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:702
1462 msgid ""
1463 "When modifying a filesystem from C or another language, you B<must> unmount "
1464 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1465 "libguestfs handle.  You can also call:"
1466 msgstr ""
1467
1468 # type: verbatim
1469 #: ../src/guestfs.pod:706
1470 #, no-wrap
1471 msgid ""
1472 " guestfs_set_autosync (g, 1);\n"
1473 "\n"
1474 msgstr ""
1475
1476 # type: textblock
1477 #: ../src/guestfs.pod:708
1478 msgid ""
1479 "to have the unmount/sync done automatically for you when the handle 'g' is "
1480 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1481 msgstr ""
1482
1483 # type: textblock
1484 #: ../src/guestfs.pod:712
1485 msgid ""
1486 "If you forget to do this, then it is entirely possible that your changes "
1487 "won't be written out, or will be partially written, or (very rarely) that "
1488 "you'll get disk corruption."
1489 msgstr ""
1490
1491 # type: textblock
1492 #: ../src/guestfs.pod:716
1493 msgid ""
1494 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1495 "guestfish scripts that forget to sync will work just fine, which can make "
1496 "this very puzzling if you are trying to debug a problem."
1497 msgstr ""
1498
1499 # type: textblock
1500 #: ../src/guestfs.pod:720
1501 msgid ""
1502 "Update: Autosync is enabled by default for all API users starting from "
1503 "libguestfs 1.5.24."
1504 msgstr ""
1505
1506 # type: =item
1507 #: ../src/guestfs.pod:723
1508 msgid "Mount option C<-o sync> should not be the default."
1509 msgstr ""
1510
1511 # type: textblock
1512 #: ../src/guestfs.pod:725
1513 msgid ""
1514 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1515 "However C<-o sync> does not add any reliability benefit, but does have a "
1516 "very large performance impact."
1517 msgstr ""
1518
1519 # type: textblock
1520 #: ../src/guestfs.pod:729
1521 msgid ""
1522 "The work around is to use L</guestfs_mount_options> and set the mount "
1523 "options that you actually want to use."
1524 msgstr ""
1525
1526 # type: =item
1527 #: ../src/guestfs.pod:732
1528 msgid "Read-only should be the default."
1529 msgstr ""
1530
1531 # type: textblock
1532 #: ../src/guestfs.pod:734
1533 msgid ""
1534 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1535 "specify I<--rw> if you want to make changes to the image."
1536 msgstr ""
1537
1538 # type: textblock
1539 #: ../src/guestfs.pod:737
1540 msgid "This would reduce the potential to corrupt live VM images."
1541 msgstr ""
1542
1543 # type: textblock
1544 #: ../src/guestfs.pod:739
1545 msgid ""
1546 "Note that many filesystems change the disk when you just mount and unmount, "
1547 "even if you didn't perform any writes.  You need to use L</"
1548 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1549 msgstr ""
1550
1551 # type: =item
1552 #: ../src/guestfs.pod:743
1553 msgid "guestfish command line is hard to use."
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:745
1558 msgid ""
1559 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1560 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1561 "exist, so it fails.  In earlier versions of guestfish the error message was "
1562 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1563 "we should have used C<guestfish -c command> to run commands."
1564 msgstr ""
1565
1566 # type: =item
1567 #: ../src/guestfs.pod:752
1568 msgid "guestfish megabyte modifiers don't work right on all commands"
1569 msgstr ""
1570
1571 # type: textblock
1572 #: ../src/guestfs.pod:754
1573 msgid ""
1574 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1575 "other modifiers).  What guestfish actually does is to multiply the number "
1576 "part by the modifier part and pass the result to the C API.  However this "
1577 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1578 "expecting some other unit (eg. megabytes)."
1579 msgstr ""
1580
1581 # type: textblock
1582 #: ../src/guestfs.pod:761
1583 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1584 msgstr ""
1585
1586 # type: verbatim
1587 #: ../src/guestfs.pod:763
1588 #, no-wrap
1589 msgid ""
1590 " lvcreate LV VG 100M\n"
1591 "\n"
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:765
1596 msgid ""
1597 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1598 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1599 "megabytes * megabytes) logical volume.  The error message you get from this "
1600 "is also a little obscure."
1601 msgstr ""
1602
1603 # type: textblock
1604 #: ../src/guestfs.pod:770
1605 msgid ""
1606 "This could be fixed in the generator by specially marking parameters and "
1607 "return values which take bytes or other units."
1608 msgstr ""
1609
1610 # type: =item
1611 #: ../src/guestfs.pod:773
1612 msgid "Library should return errno with error messages."
1613 msgstr ""
1614
1615 # type: textblock
1616 #: ../src/guestfs.pod:775
1617 msgid ""
1618 "It would be a nice-to-have to be able to get the original value of 'errno' "
1619 "from inside the appliance along error paths (where set).  Currently "
1620 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1621 "string into an errno, see the function error() in fuse/guestmount.c."
1622 msgstr ""
1623
1624 # type: textblock
1625 #: ../src/guestfs.pod:781
1626 msgid ""
1627 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1628 "sent back from the daemon."
1629 msgstr ""
1630
1631 # type: =item
1632 #: ../src/guestfs.pod:784
1633 msgid "Ambiguity between devices and paths"
1634 msgstr ""
1635
1636 # type: textblock
1637 #: ../src/guestfs.pod:786
1638 msgid ""
1639 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1640 "sdb2>) and a similar pathname.  A file might just happen to be called "
1641 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1642 msgstr ""
1643
1644 # type: textblock
1645 #: ../src/guestfs.pod:791
1646 msgid ""
1647 "In the current API we usually resolve this ambiguity by having two separate "
1648 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1649 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1650 "detecting if the path supplied begins with C</dev/>."
1651 msgstr ""
1652
1653 # type: textblock
1654 #: ../src/guestfs.pod:797
1655 msgid ""
1656 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1657 "make paths/devices into structured names.  One way to do this would be to "
1658 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1659 "aspect of grub.  Another way would be to use a structured type, equivalent "
1660 "to this OCaml type:"
1661 msgstr ""
1662
1663 # type: verbatim
1664 #: ../src/guestfs.pod:803
1665 #, no-wrap
1666 msgid ""
1667 " type path = Path of string | Device of int | Partition of int * int\n"
1668 "\n"
1669 msgstr ""
1670
1671 # type: textblock
1672 #: ../src/guestfs.pod:805
1673 msgid "which would allow you to pass arguments like:"
1674 msgstr ""
1675
1676 # type: verbatim
1677 #: ../src/guestfs.pod:807
1678 #, no-wrap
1679 msgid ""
1680 " Path \"/foo/bar\"\n"
1681 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1682 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1683 " Path \"/dev/sdb2\"    (* not a device *)\n"
1684 "\n"
1685 msgstr ""
1686
1687 # type: textblock
1688 #: ../src/guestfs.pod:812
1689 msgid ""
1690 "As you can see there are still problems to resolve even with this "
1691 "representation.  Also consider how it might work in guestfish."
1692 msgstr ""
1693
1694 # type: =head2
1695 #: ../src/guestfs.pod:817
1696 msgid "PROTOCOL LIMITS"
1697 msgstr ""
1698
1699 # type: textblock
1700 #: ../src/guestfs.pod:819
1701 msgid ""
1702 "Internally libguestfs uses a message-based protocol to pass API calls and "
1703 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1704 "plenty more detail about this).  The maximum message size used by the "
1705 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1706 "aware of this limit.  The API calls which may be affected are individually "
1707 "documented, with a link back to this section of the documentation."
1708 msgstr ""
1709
1710 # type: textblock
1711 #: ../src/guestfs.pod:827
1712 msgid ""
1713 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1714 "a simple string.  Because this string is at some point internally encoded as "
1715 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1716 "the requested file is larger than this then you will get an error."
1717 msgstr ""
1718
1719 # type: textblock
1720 #: ../src/guestfs.pod:833
1721 msgid ""
1722 "In order to transfer large files into and out of the guest filesystem, you "
1723 "need to use particular calls that support this.  The sections L</UPLOADING> "
1724 "and L</DOWNLOADING> document how to do this."
1725 msgstr ""
1726
1727 # type: textblock
1728 #: ../src/guestfs.pod:837
1729 msgid ""
1730 "You might also consider mounting the disk image using our FUSE filesystem "
1731 "support (L<guestmount(1)>)."
1732 msgstr ""
1733
1734 # type: =head2
1735 #: ../src/guestfs.pod:840
1736 msgid "KEYS AND PASSPHRASES"
1737 msgstr ""
1738
1739 # type: textblock
1740 #: ../src/guestfs.pod:842
1741 msgid ""
1742 "Certain libguestfs calls take a parameter that contains sensitive key "
1743 "material, passed in as a C string."
1744 msgstr ""
1745
1746 # type: textblock
1747 #: ../src/guestfs.pod:845
1748 msgid ""
1749 "In the future we would hope to change the libguestfs implementation so that "
1750 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1751 "swap.  However this is I<not> done at the moment, because of the complexity "
1752 "of such an implementation."
1753 msgstr ""
1754
1755 # type: textblock
1756 #: ../src/guestfs.pod:850
1757 msgid ""
1758 "Therefore you should be aware that any key parameter you pass to libguestfs "
1759 "might end up being written out to the swap partition.  If this is a concern, "
1760 "scrub the swap partition or don't use libguestfs on encrypted devices."
1761 msgstr ""
1762
1763 # type: =head1
1764 #: ../src/guestfs.pod:855
1765 msgid "CONNECTION MANAGEMENT"
1766 msgstr ""
1767
1768 # type: =head2
1769 #: ../src/guestfs.pod:857
1770 msgid "guestfs_h *"
1771 msgstr ""
1772
1773 # type: textblock
1774 #: ../src/guestfs.pod:859
1775 msgid ""
1776 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1777 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1778 "handle and release all resources used."
1779 msgstr ""
1780
1781 # type: textblock
1782 #: ../src/guestfs.pod:863
1783 msgid ""
1784 "For information on using multiple handles and threads, see the section L</"
1785 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1786 msgstr ""
1787
1788 # type: =head2
1789 #: ../src/guestfs.pod:866
1790 msgid "guestfs_create"
1791 msgstr ""
1792
1793 # type: verbatim
1794 #: ../src/guestfs.pod:868
1795 #, no-wrap
1796 msgid ""
1797 " guestfs_h *guestfs_create (void);\n"
1798 "\n"
1799 msgstr ""
1800
1801 # type: textblock
1802 #: ../src/guestfs.pod:870
1803 msgid "Create a connection handle."
1804 msgstr ""
1805
1806 # type: textblock
1807 #: ../src/guestfs.pod:872
1808 msgid ""
1809 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1810 "on the handle at least once."
1811 msgstr ""
1812
1813 # type: textblock
1814 #: ../src/guestfs.pod:875
1815 msgid ""
1816 "This function returns a non-NULL pointer to a handle on success or NULL on "
1817 "error."
1818 msgstr ""
1819
1820 # type: textblock
1821 #: ../src/guestfs.pod:878
1822 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1823 msgstr ""
1824
1825 # type: textblock
1826 #: ../src/guestfs.pod:880
1827 msgid ""
1828 "You may also want to configure error handling for the handle.  See L</ERROR "
1829 "HANDLING> section below."
1830 msgstr ""
1831
1832 # type: =head2
1833 #: ../src/guestfs.pod:883
1834 msgid "guestfs_close"
1835 msgstr ""
1836
1837 # type: verbatim
1838 #: ../src/guestfs.pod:885
1839 #, no-wrap
1840 msgid ""
1841 " void guestfs_close (guestfs_h *g);\n"
1842 "\n"
1843 msgstr ""
1844
1845 # type: textblock
1846 #: ../src/guestfs.pod:887
1847 msgid "This closes the connection handle and frees up all resources used."
1848 msgstr ""
1849
1850 # type: =head1
1851 #: ../src/guestfs.pod:889
1852 msgid "ERROR HANDLING"
1853 msgstr ""
1854
1855 # type: textblock
1856 #: ../src/guestfs.pod:891
1857 msgid ""
1858 "The convention in all functions that return C<int> is that they return C<-1> "
1859 "to indicate an error.  You can get additional information on errors by "
1860 "calling L</guestfs_last_error> and/or by setting up an error handler with L</"
1861 "guestfs_set_error_handler>."
1862 msgstr ""
1863
1864 # type: textblock
1865 #: ../src/guestfs.pod:896
1866 msgid "The default error handler prints the information string to C<stderr>."
1867 msgstr ""
1868
1869 # type: textblock
1870 #: ../src/guestfs.pod:898
1871 msgid ""
1872 "Out of memory errors are handled differently.  The default action is to call "
1873 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1874 "guestfs_set_out_of_memory_handler>."
1875 msgstr ""
1876
1877 # type: =head2
1878 #: ../src/guestfs.pod:902
1879 msgid "guestfs_last_error"
1880 msgstr ""
1881
1882 # type: verbatim
1883 #: ../src/guestfs.pod:904
1884 #, no-wrap
1885 msgid ""
1886 " const char *guestfs_last_error (guestfs_h *g);\n"
1887 "\n"
1888 msgstr ""
1889
1890 # type: textblock
1891 #: ../src/guestfs.pod:906
1892 msgid ""
1893 "This returns the last error message that happened on C<g>.  If there has not "
1894 "been an error since the handle was created, then this returns C<NULL>."
1895 msgstr ""
1896
1897 # type: textblock
1898 #: ../src/guestfs.pod:910
1899 msgid ""
1900 "The lifetime of the returned string is until the next error occurs, or L</"
1901 "guestfs_close> is called."
1902 msgstr ""
1903
1904 # type: textblock
1905 #: ../src/guestfs.pod:913
1906 msgid ""
1907 "The error string is not localized (ie. is always in English), because this "
1908 "makes searching for error messages in search engines give the largest number "
1909 "of results."
1910 msgstr ""
1911
1912 # type: =head2
1913 #: ../src/guestfs.pod:917
1914 msgid "guestfs_set_error_handler"
1915 msgstr ""
1916
1917 # type: verbatim
1918 #: ../src/guestfs.pod:919
1919 #, no-wrap
1920 msgid ""
1921 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1922 "                                           void *opaque,\n"
1923 "                                           const char *msg);\n"
1924 " void guestfs_set_error_handler (guestfs_h *g,\n"
1925 "                                 guestfs_error_handler_cb cb,\n"
1926 "                                 void *opaque);\n"
1927 "\n"
1928 msgstr ""
1929
1930 # type: textblock
1931 #: ../src/guestfs.pod:926
1932 msgid ""
1933 "The callback C<cb> will be called if there is an error.  The parameters "
1934 "passed to the callback are an opaque data pointer and the error message "
1935 "string."
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:930
1940 msgid ""
1941 "Note that the message string C<msg> is freed as soon as the callback "
1942 "function returns, so if you want to stash it somewhere you must make your "
1943 "own copy."
1944 msgstr ""
1945
1946 # type: textblock
1947 #: ../src/guestfs.pod:934
1948 msgid "The default handler prints messages on C<stderr>."
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:936
1953 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1954 msgstr ""
1955
1956 # type: =head2
1957 #: ../src/guestfs.pod:938
1958 msgid "guestfs_get_error_handler"
1959 msgstr ""
1960
1961 # type: verbatim
1962 #: ../src/guestfs.pod:940
1963 #, no-wrap
1964 msgid ""
1965 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1966 "                                                     void **opaque_rtn);\n"
1967 "\n"
1968 msgstr ""
1969
1970 # type: textblock
1971 #: ../src/guestfs.pod:943
1972 msgid "Returns the current error handler callback."
1973 msgstr ""
1974
1975 # type: =head2
1976 #: ../src/guestfs.pod:945
1977 msgid "guestfs_set_out_of_memory_handler"
1978 msgstr ""
1979
1980 # type: verbatim
1981 #: ../src/guestfs.pod:947
1982 #, no-wrap
1983 msgid ""
1984 " typedef void (*guestfs_abort_cb) (void);\n"
1985 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1986 "                                        guestfs_abort_cb);\n"
1987 "\n"
1988 msgstr ""
1989
1990 # type: textblock
1991 #: ../src/guestfs.pod:951
1992 msgid ""
1993 "The callback C<cb> will be called if there is an out of memory situation.  "
1994 "I<Note this callback must not return>."
1995 msgstr ""
1996
1997 # type: textblock
1998 #: ../src/guestfs.pod:954
1999 msgid "The default is to call L<abort(3)>."
2000 msgstr ""
2001
2002 # type: textblock
2003 #: ../src/guestfs.pod:956
2004 msgid ""
2005 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2006 msgstr ""
2007
2008 # type: =head2
2009 #: ../src/guestfs.pod:959
2010 msgid "guestfs_get_out_of_memory_handler"
2011 msgstr ""
2012
2013 # type: verbatim
2014 #: ../src/guestfs.pod:961
2015 #, no-wrap
2016 msgid ""
2017 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2018 "\n"
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:963
2023 msgid "This returns the current out of memory handler."
2024 msgstr ""
2025
2026 # type: =head1
2027 #: ../src/guestfs.pod:965
2028 msgid "PATH"
2029 msgstr ""
2030
2031 # type: textblock
2032 #: ../src/guestfs.pod:967
2033 msgid ""
2034 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2035 "internal path."
2036 msgstr ""
2037
2038 # type: textblock
2039 #: ../src/guestfs.pod:970
2040 msgid ""
2041 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2042 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2043 msgstr ""
2044
2045 # type: textblock
2046 #: ../src/guestfs.pod:973
2047 msgid ""
2048 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2049 "to change the directories that libguestfs will search in.  The value is a "
2050 "colon-separated list of paths.  The current directory is I<not> searched "
2051 "unless the path contains an empty element or C<.>.  For example "
2052 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2053 "then C</usr/lib/guestfs>."
2054 msgstr ""
2055
2056 # type: =head1
2057 #: ../src/guestfs.pod:980
2058 msgid "HIGH-LEVEL API ACTIONS"
2059 msgstr ""
2060
2061 # type: =head2
2062 #: ../src/guestfs.pod:982
2063 msgid "ABI GUARANTEE"
2064 msgstr ""
2065
2066 # type: textblock
2067 #: ../src/guestfs.pod:984
2068 msgid ""
2069 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2070 "actions as outlined in this section.  Although we will deprecate some "
2071 "actions, for example if they get replaced by newer calls, we will keep the "
2072 "old actions forever.  This allows you the developer to program in confidence "
2073 "against the libguestfs API."
2074 msgstr ""
2075
2076 # type: textblock
2077 #: ../src/guestfs.pod:990 ../fish/guestfish.pod:860
2078 msgid "@ACTIONS@"
2079 msgstr ""
2080
2081 # type: =head1
2082 #: ../src/guestfs.pod:992
2083 msgid "STRUCTURES"
2084 msgstr ""
2085
2086 # type: textblock
2087 #: ../src/guestfs.pod:994
2088 msgid "@STRUCTS@"
2089 msgstr ""
2090
2091 # type: =head1
2092 #: ../src/guestfs.pod:996
2093 msgid "AVAILABILITY"
2094 msgstr ""
2095
2096 # type: =head2
2097 #: ../src/guestfs.pod:998
2098 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2099 msgstr ""
2100
2101 # type: textblock
2102 #: ../src/guestfs.pod:1000
2103 msgid ""
2104 "Using L</guestfs_available> you can test availability of the following "
2105 "groups of functions.  This test queries the appliance to see if the "
2106 "appliance you are currently using supports the functionality."
2107 msgstr ""
2108
2109 # type: textblock
2110 #: ../src/guestfs.pod:1005
2111 msgid "@AVAILABILITY@"
2112 msgstr ""
2113
2114 # type: =head2
2115 #: ../src/guestfs.pod:1007
2116 msgid "GUESTFISH supported COMMAND"
2117 msgstr ""
2118
2119 # type: textblock
2120 #: ../src/guestfs.pod:1009
2121 msgid ""
2122 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2123 "prints out the available groups and whether they are supported by this build "
2124 "of libguestfs.  Note however that you have to do C<run> first."
2125 msgstr ""
2126
2127 # type: =head2
2128 #: ../src/guestfs.pod:1014
2129 msgid "SINGLE CALLS AT COMPILE TIME"
2130 msgstr ""
2131
2132 # type: textblock
2133 #: ../src/guestfs.pod:1016
2134 msgid ""
2135 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2136 "function, such as:"
2137 msgstr ""
2138
2139 # type: verbatim
2140 #: ../src/guestfs.pod:1019
2141 #, no-wrap
2142 msgid ""
2143 " #define LIBGUESTFS_HAVE_DD 1\n"
2144 "\n"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1021
2149 msgid "if L</guestfs_dd> is available."
2150 msgstr ""
2151
2152 # type: textblock
2153 #: ../src/guestfs.pod:1023
2154 msgid ""
2155 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2156 "function is available at compile time, we recommended using build tools such "
2157 "as autoconf or cmake.  For example in autotools you could use:"
2158 msgstr ""
2159
2160 # type: verbatim
2161 #: ../src/guestfs.pod:1028
2162 #, no-wrap
2163 msgid ""
2164 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2165 " AC_CHECK_FUNCS([guestfs_dd])\n"
2166 "\n"
2167 msgstr ""
2168
2169 # type: textblock
2170 #: ../src/guestfs.pod:1031
2171 msgid ""
2172 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2173 "in your program."
2174 msgstr ""
2175
2176 # type: =head2
2177 #: ../src/guestfs.pod:1034
2178 msgid "SINGLE CALLS AT RUN TIME"
2179 msgstr ""
2180
2181 # type: textblock
2182 #: ../src/guestfs.pod:1036
2183 msgid ""
2184 "Testing at compile time doesn't guarantee that a function really exists in "
2185 "the library.  The reason is that you might be dynamically linked against a "
2186 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2187 "This situation unfortunately results in a segmentation fault, which is a "
2188 "shortcoming of the C dynamic linking system itself."
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1043
2193 msgid ""
2194 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2195 "in this example program (note that you still need the compile time check as "
2196 "well):"
2197 msgstr ""
2198
2199 # type: verbatim
2200 #: ../src/guestfs.pod:1047
2201 #, no-wrap
2202 msgid ""
2203 " #include <stdio.h>\n"
2204 " #include <stdlib.h>\n"
2205 " #include <unistd.h>\n"
2206 " #include <dlfcn.h>\n"
2207 " #include <guestfs.h>\n"
2208 " \n"
2209 msgstr ""
2210
2211 # type: verbatim
2212 #: ../src/guestfs.pod:1053
2213 #, no-wrap
2214 msgid ""
2215 " main ()\n"
2216 " {\n"
2217 " #ifdef LIBGUESTFS_HAVE_DD\n"
2218 "   void *dl;\n"
2219 "   int has_function;\n"
2220 " \n"
2221 msgstr ""
2222
2223 # type: verbatim
2224 #: ../src/guestfs.pod:1059
2225 #, no-wrap
2226 msgid ""
2227 "   /* Test if the function guestfs_dd is really available. */\n"
2228 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2229 "   if (!dl) {\n"
2230 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2231 "     exit (EXIT_FAILURE);\n"
2232 "   }\n"
2233 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2234 "   dlclose (dl);\n"
2235 " \n"
2236 msgstr ""
2237
2238 # type: verbatim
2239 #: ../src/guestfs.pod:1068
2240 #, no-wrap
2241 msgid ""
2242 "   if (!has_function)\n"
2243 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2244 "   else {\n"
2245 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2246 "     /* Now it's safe to call\n"
2247 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2248 "     */\n"
2249 "   }\n"
2250 " #else\n"
2251 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2252 " #endif\n"
2253 "  }\n"
2254 "\n"
2255 msgstr ""
2256
2257 # type: textblock
2258 #: ../src/guestfs.pod:1081
2259 msgid ""
2260 "You may think the above is an awful lot of hassle, and it is.  There are "
2261 "other ways outside of the C linking system to ensure that this kind of "
2262 "incompatibility never arises, such as using package versioning:"
2263 msgstr ""
2264
2265 # type: verbatim
2266 #: ../src/guestfs.pod:1086
2267 #, no-wrap
2268 msgid ""
2269 " Requires: libguestfs >= 1.0.80\n"
2270 "\n"
2271 msgstr ""
2272
2273 # type: =head1
2274 #: ../src/guestfs.pod:1088
2275 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2276 msgstr ""
2277
2278 # type: textblock
2279 #: ../src/guestfs.pod:1090
2280 msgid ""
2281 "A recent feature of the API is the introduction of calls which take optional "
2282 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2283 "takes variable arguments (ie. C<...>), as in this example:"
2284 msgstr ""
2285
2286 # type: verbatim
2287 #: ../src/guestfs.pod:1095
2288 #, no-wrap
2289 msgid ""
2290 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2291 "\n"
2292 msgstr ""
2293
2294 # type: textblock
2295 #: ../src/guestfs.pod:1097
2296 msgid ""
2297 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2298 "call with no optional arguments specified:"
2299 msgstr ""
2300
2301 # type: verbatim
2302 #: ../src/guestfs.pod:1100
2303 #, no-wrap
2304 msgid ""
2305 " guestfs_add_drive_opts (g, filename, -1);\n"
2306 "\n"
2307 msgstr ""
2308
2309 # type: textblock
2310 #: ../src/guestfs.pod:1102
2311 msgid "With a single optional argument:"
2312 msgstr ""
2313
2314 # type: verbatim
2315 #: ../src/guestfs.pod:1104
2316 #, no-wrap
2317 msgid ""
2318 " guestfs_add_drive_opts (g, filename,\n"
2319 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2320 "                         -1);\n"
2321 "\n"
2322 msgstr ""
2323
2324 # type: textblock
2325 #: ../src/guestfs.pod:1108
2326 msgid "With two:"
2327 msgstr ""
2328
2329 # type: verbatim
2330 #: ../src/guestfs.pod:1110
2331 #, no-wrap
2332 msgid ""
2333 " guestfs_add_drive_opts (g, filename,\n"
2334 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2335 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2336 "                         -1);\n"
2337 "\n"
2338 msgstr ""
2339
2340 # type: textblock
2341 #: ../src/guestfs.pod:1115
2342 msgid ""
2343 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2344 "happen!"
2345 msgstr ""
2346
2347 # type: =head2
2348 #: ../src/guestfs.pod:1118
2349 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2350 msgstr ""
2351
2352 # type: textblock
2353 #: ../src/guestfs.pod:1120
2354 msgid ""
2355 "The second variant has the same name with the suffix C<_va>, which works the "
2356 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2357 "example function, this is declared:"
2358 msgstr ""
2359
2360 # type: verbatim
2361 #: ../src/guestfs.pod:1124
2362 #, no-wrap
2363 msgid ""
2364 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2365 "                                va_list args);\n"
2366 "\n"
2367 msgstr ""
2368
2369 # type: =head2
2370 #: ../src/guestfs.pod:1127
2371 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2372 msgstr ""
2373
2374 # type: textblock
2375 #: ../src/guestfs.pod:1129
2376 msgid ""
2377 "The third variant is useful where you need to construct these calls.  You "
2378 "pass in a structure where you fill in the optional fields.  The structure "
2379 "has a bitmask as the first element which you must set to indicate which "
2380 "fields you have filled in.  For our example function the structure and call "
2381 "are declared:"
2382 msgstr ""
2383
2384 # type: verbatim
2385 #: ../src/guestfs.pod:1135
2386 #, no-wrap
2387 msgid ""
2388 " struct guestfs_add_drive_opts_argv {\n"
2389 "   uint64_t bitmask;\n"
2390 "   int readonly;\n"
2391 "   const char *format;\n"
2392 "   /* ... */\n"
2393 " };\n"
2394 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2395 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2396 "\n"
2397 msgstr ""
2398
2399 # type: textblock
2400 #: ../src/guestfs.pod:1144
2401 msgid "You could call it like this:"
2402 msgstr ""
2403
2404 # type: verbatim
2405 #: ../src/guestfs.pod:1146
2406 #, no-wrap
2407 msgid ""
2408 " struct guestfs_add_drive_opts_argv optargs = {\n"
2409 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2410 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2411 "   .readonly = 1,\n"
2412 "   .format = \"qcow2\"\n"
2413 " };\n"
2414 " \n"
2415 msgstr ""
2416
2417 # type: verbatim
2418 #: ../src/guestfs.pod:1153
2419 #, no-wrap
2420 msgid ""
2421 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2422 "\n"
2423 msgstr ""
2424
2425 # type: textblock
2426 #: ../src/guestfs.pod:1155 ../src/guestfs-actions.pod:10
2427 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:9
2428 #: ../fish/guestfish-actions.pod:1244
2429 msgid "Notes:"
2430 msgstr ""
2431
2432 # type: textblock
2433 #: ../src/guestfs.pod:1161
2434 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2435 msgstr ""
2436
2437 # type: textblock
2438 #: ../src/guestfs.pod:1166
2439 msgid "You do not need to fill in all fields of the structure."
2440 msgstr ""
2441
2442 # type: textblock
2443 #: ../src/guestfs.pod:1170
2444 msgid ""
2445 "There must be a one-to-one correspondence between fields of the structure "
2446 "that are filled in, and bits set in the bitmask."
2447 msgstr ""
2448
2449 # type: =head2
2450 #: ../src/guestfs.pod:1175
2451 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2452 msgstr ""
2453
2454 # type: textblock
2455 #: ../src/guestfs.pod:1177
2456 msgid ""
2457 "In other languages, optional arguments are expressed in the way that is "
2458 "natural for that language.  We refer you to the language-specific "
2459 "documentation for more details on that."
2460 msgstr ""
2461
2462 # type: textblock
2463 #: ../src/guestfs.pod:1181
2464 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2465 msgstr ""
2466
2467 # type: =end
2468 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1188
2469 msgid "html"
2470 msgstr ""
2471
2472 # type: textblock
2473 #: ../src/guestfs.pod:1185
2474 msgid ""
2475 "<!-- old anchor for the next section --> <a name="
2476 "\"state_machine_and_low_level_event_api\"/>"
2477 msgstr ""
2478
2479 # type: =head1
2480 #: ../src/guestfs.pod:1190
2481 msgid "ARCHITECTURE"
2482 msgstr ""
2483
2484 # type: textblock
2485 #: ../src/guestfs.pod:1192
2486 msgid ""
2487 "Internally, libguestfs is implemented by running an appliance (a special "
2488 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2489 "process of the main program."
2490 msgstr ""
2491
2492 # type: verbatim
2493 #: ../src/guestfs.pod:1196
2494 #, no-wrap
2495 msgid ""
2496 "  ___________________\n"
2497 " /                   \\\n"
2498 " | main program      |\n"
2499 " |                   |\n"
2500 " |                   |           child process / appliance\n"
2501 " |                   |           __________________________\n"
2502 " |                   |          / qemu                     \\\n"
2503 " +-------------------+   RPC    |      +-----------------+ |\n"
2504 " | libguestfs     <--------------------> guestfsd        | |\n"
2505 " |                   |          |      +-----------------+ |\n"
2506 " \\___________________/          |      | Linux kernel    | |\n"
2507 "                                |      +--^--------------+ |\n"
2508 "                                \\_________|________________/\n"
2509 "                                          |\n"
2510 "                                   _______v______\n"
2511 "                                  /              \\\n"
2512 "                                  | Device or    |\n"
2513 "                                  | disk image   |\n"
2514 "                                  \\______________/\n"
2515 "\n"
2516 msgstr ""
2517
2518 # type: textblock
2519 #: ../src/guestfs.pod:1216
2520 msgid ""
2521 "The library, linked to the main program, creates the child process and hence "
2522 "the appliance in the L</guestfs_launch> function."
2523 msgstr ""
2524
2525 # type: textblock
2526 #: ../src/guestfs.pod:1219
2527 msgid ""
2528 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2529 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2530 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2531 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2532 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2533 "attached to the qemu process which translates device access by the "
2534 "appliance's Linux kernel into accesses to the image."
2535 msgstr ""
2536
2537 # type: textblock
2538 #: ../src/guestfs.pod:1228
2539 msgid ""
2540 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2541 "Although the disk image you are attached to might also be used by some "
2542 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2543 "care if both libguestfs's qemu process and your virtual machine are trying "
2544 "to update the disk image at the same time, since these usually results in "
2545 "massive disk corruption)."
2546 msgstr ""
2547
2548 # type: =head1
2549 #: ../src/guestfs.pod:1235
2550 msgid "STATE MACHINE"
2551 msgstr ""
2552
2553 # type: textblock
2554 #: ../src/guestfs.pod:1237
2555 msgid "libguestfs uses a state machine to model the child process:"
2556 msgstr ""
2557
2558 # type: verbatim
2559 #: ../src/guestfs.pod:1239
2560 #, no-wrap
2561 msgid ""
2562 "                         |\n"
2563 "                    guestfs_create\n"
2564 "                         |\n"
2565 "                         |\n"
2566 "                     ____V_____\n"
2567 "                    /          \\\n"
2568 "                    |  CONFIG  |\n"
2569 "                    \\__________/\n"
2570 "                     ^ ^   ^  \\\n"
2571 "                    /  |    \\  \\ guestfs_launch\n"
2572 "                   /   |    _\\__V______\n"
2573 "                  /    |   /           \\\n"
2574 "                 /     |   | LAUNCHING |\n"
2575 "                /      |   \\___________/\n"
2576 "               /       |       /\n"
2577 "              /        |  guestfs_launch\n"
2578 "             /         |     /\n"
2579 "    ______  /        __|____V\n"
2580 "   /      \\ ------> /        \\\n"
2581 "   | BUSY |         | READY  |\n"
2582 "   \\______/ <------ \\________/\n"
2583 "\n"
2584 msgstr ""
2585
2586 # type: textblock
2587 #: ../src/guestfs.pod:1261
2588 msgid ""
2589 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2590 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2591 "(3) alternating between READY and BUSY as commands are issued to, and "
2592 "carried out by, the child process."
2593 msgstr ""
2594
2595 # type: textblock
2596 #: ../src/guestfs.pod:1266
2597 msgid ""
2598 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2599 "asynchronously at any time (eg. due to some internal error), and that causes "
2600 "the state to transition back to CONFIG."
2601 msgstr ""
2602
2603 # type: textblock
2604 #: ../src/guestfs.pod:1270
2605 msgid ""
2606 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2607 "issued when in the CONFIG state."
2608 msgstr ""
2609
2610 # type: textblock
2611 #: ../src/guestfs.pod:1273
2612 msgid ""
2613 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2614 "L</guestfs_launch> blocks until the child process is READY to accept "
2615 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2616 "moves the state from CONFIG to LAUNCHING while it is running."
2617 msgstr ""
2618
2619 # type: textblock
2620 #: ../src/guestfs.pod:1279
2621 msgid ""
2622 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2623 "state.  These API calls block waiting for the command to be carried out (ie. "
2624 "the state to transition to BUSY and then back to READY).  There are no non-"
2625 "blocking versions, and no way to issue more than one command per handle at "
2626 "the same time."
2627 msgstr ""
2628
2629 # type: textblock
2630 #: ../src/guestfs.pod:1285
2631 msgid ""
2632 "Finally, the child process sends asynchronous messages back to the main "
2633 "program, such as kernel log messages.  You can register a callback to "
2634 "receive these messages."
2635 msgstr ""
2636
2637 # type: =head2
2638 #: ../src/guestfs.pod:1289
2639 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2640 msgstr ""
2641
2642 # type: textblock
2643 #: ../src/guestfs.pod:1291
2644 msgid ""
2645 "The child process generates events in some situations.  Current events "
2646 "include: receiving a log message, the child process exits."
2647 msgstr ""
2648
2649 # type: textblock
2650 #: ../src/guestfs.pod:1294
2651 msgid ""
2652 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2653 "types of events."
2654 msgstr ""
2655
2656 # type: textblock
2657 #: ../src/guestfs.pod:1297
2658 msgid ""
2659 "Only I<one callback of each type> can be registered for each handle.  "
2660 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2661 "that type.  Cancel all callbacks of this type by calling this function with "
2662 "C<cb> set to C<NULL>."
2663 msgstr ""
2664
2665 # type: =head2
2666 #: ../src/guestfs.pod:1302
2667 msgid "guestfs_set_log_message_callback"
2668 msgstr ""
2669
2670 # type: verbatim
2671 #: ../src/guestfs.pod:1304
2672 #, no-wrap
2673 msgid ""
2674 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2675 "                                         char *buf, int len);\n"
2676 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2677 "                                        guestfs_log_message_cb cb,\n"
2678 "                                        void *opaque);\n"
2679 "\n"
2680 msgstr ""
2681
2682 # type: textblock
2683 #: ../src/guestfs.pod:1310
2684 msgid ""
2685 "The callback function C<cb> will be called whenever qemu or the guest writes "
2686 "anything to the console."
2687 msgstr ""
2688
2689 # type: textblock
2690 #: ../src/guestfs.pod:1313
2691 msgid "Use this function to capture kernel messages and similar."
2692 msgstr ""
2693
2694 # type: textblock
2695 #: ../src/guestfs.pod:1315
2696 msgid ""
2697 "Normally there is no log message handler, and log messages are just "
2698 "discarded."
2699 msgstr ""
2700
2701 # type: =head2
2702 #: ../src/guestfs.pod:1318
2703 msgid "guestfs_set_subprocess_quit_callback"
2704 msgstr ""
2705
2706 # type: verbatim
2707 #: ../src/guestfs.pod:1320
2708 #, no-wrap
2709 msgid ""
2710 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2711 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2712 "                                            guestfs_subprocess_quit_cb cb,\n"
2713 "                                            void *opaque);\n"
2714 "\n"
2715 msgstr ""
2716
2717 # type: textblock
2718 #: ../src/guestfs.pod:1325
2719 msgid ""
2720 "The callback function C<cb> will be called when the child process quits, "
2721 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2722 "corresponds to a transition from any state to the CONFIG state)."
2723 msgstr ""
2724
2725 # type: =head2
2726 #: ../src/guestfs.pod:1330
2727 msgid "guestfs_set_launch_done_callback"
2728 msgstr ""
2729
2730 # type: verbatim
2731 #: ../src/guestfs.pod:1332
2732 #, no-wrap
2733 msgid ""
2734 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2735 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2736 "                                        guestfs_launch_done_cb cb,\n"
2737 "                                        void *opaque);\n"
2738 "\n"
2739 msgstr ""
2740
2741 # type: textblock
2742 #: ../src/guestfs.pod:1337
2743 msgid ""
2744 "The callback function C<cb> will be called when the child process becomes "
2745 "ready first time after it has been launched.  (This corresponds to a "
2746 "transition from LAUNCHING to the READY state)."
2747 msgstr ""
2748
2749 # type: =head2
2750 #: ../src/guestfs.pod:1341
2751 msgid "guestfs_set_close_callback"
2752 msgstr ""
2753
2754 # type: verbatim
2755 #: ../src/guestfs.pod:1343
2756 #, no-wrap
2757 msgid ""
2758 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2759 " void guestfs_set_close_callback (guestfs_h *g,\n"
2760 "                                  guestfs_close_cb cb,\n"
2761 "                                  void *opaque);\n"
2762 "\n"
2763 msgstr ""
2764
2765 # type: textblock
2766 #: ../src/guestfs.pod:1348
2767 msgid ""
2768 "The callback function C<cb> will be called while the handle is being closed "
2769 "(synchronously from L</guestfs_close>)."
2770 msgstr ""
2771
2772 # type: textblock
2773 #: ../src/guestfs.pod:1351
2774 msgid ""
2775 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2776 "handles that are open when the program exits.  This means that this callback "
2777 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2778 "problems in higher-level languages (eg. if your HLL interpreter has already "
2779 "been cleaned up by the time this is called, and if your callback then jumps "
2780 "into some HLL function)."
2781 msgstr ""
2782
2783 # type: =head2
2784 #: ../src/guestfs.pod:1359
2785 msgid "guestfs_set_progress_callback"
2786 msgstr ""
2787
2788 # type: verbatim
2789 #: ../src/guestfs.pod:1361
2790 #, no-wrap
2791 msgid ""
2792 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2793 "                                      int proc_nr, int serial,\n"
2794 "                                      uint64_t position, uint64_t total);\n"
2795 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2796 "                                     guestfs_progress_cb cb,\n"
2797 "                                     void *opaque);\n"
2798 "\n"
2799 msgstr ""
2800
2801 # type: textblock
2802 #: ../src/guestfs.pod:1368
2803 msgid ""
2804 "Some long-running operations can generate progress messages.  If this "
2805 "callback is registered, then it will be called each time a progress message "
2806 "is generated (usually two seconds after the operation started, and three "
2807 "times per second thereafter until it completes, although the frequency may "
2808 "change in future versions)."
2809 msgstr ""
2810
2811 # type: textblock
2812 #: ../src/guestfs.pod:1374
2813 msgid ""
2814 "The callback receives two numbers: C<position> and C<total>.  The units of "
2815 "C<total> are not defined, although for some operations C<total> may relate "
2816 "in some way to the amount of data to be transferred (eg. in bytes or "
2817 "megabytes), and C<position> may be the portion which has been transferred."
2818 msgstr ""
2819
2820 # type: textblock
2821 #: ../src/guestfs.pod:1380
2822 msgid "The only defined and stable parts of the API are:"
2823 msgstr ""
2824
2825 # type: textblock
2826 #: ../src/guestfs.pod:1386
2827 msgid ""
2828 "The callback can display to the user some type of progress bar or indicator "
2829 "which shows the ratio of C<position>:C<total>."
2830 msgstr ""
2831
2832 # type: textblock
2833 #: ../src/guestfs.pod:1391
2834 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2835 msgstr ""
2836
2837 # type: textblock
2838 #: ../src/guestfs.pod:1395
2839 msgid ""
2840 "If any progress notification is sent during a call, then a final progress "
2841 "notification is always sent when C<position> = C<total>."
2842 msgstr ""
2843
2844 # type: textblock
2845 #: ../src/guestfs.pod:1398
2846 msgid ""
2847 "This is to simplify caller code, so callers can easily set the progress "
2848 "indicator to \"100%\" at the end of the operation, without requiring special "
2849 "code to detect this case."
2850 msgstr ""
2851
2852 # type: textblock
2853 #: ../src/guestfs.pod:1404
2854 msgid ""
2855 "The callback also receives the procedure number and serial number of the "
2856 "call.  These are only useful for debugging protocol issues, and the callback "
2857 "can normally ignore them.  The callback may want to print these numbers in "
2858 "error messages or debugging messages."
2859 msgstr ""
2860
2861 # type: =head1
2862 #: ../src/guestfs.pod:1409
2863 msgid "PRIVATE DATA AREA"
2864 msgstr ""
2865
2866 # type: textblock
2867 #: ../src/guestfs.pod:1411
2868 msgid ""
2869 "You can attach named pieces of private data to the libguestfs handle, and "
2870 "fetch them by name for the lifetime of the handle.  This is called the "
2871 "private data area and is only available from the C API."
2872 msgstr ""
2873
2874 # type: textblock
2875 #: ../src/guestfs.pod:1415
2876 msgid "To attach a named piece of data, use the following call:"
2877 msgstr ""
2878
2879 # type: verbatim
2880 #: ../src/guestfs.pod:1417
2881 #, no-wrap
2882 msgid ""
2883 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2884 "\n"
2885 msgstr ""
2886
2887 # type: textblock
2888 #: ../src/guestfs.pod:1419
2889 msgid ""
2890 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2891 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2892 "overwritten."
2893 msgstr ""
2894
2895 # type: textblock
2896 #: ../src/guestfs.pod:1423
2897 msgid ""
2898 "You can use any C<key> you want, but names beginning with an underscore "
2899 "character are reserved for internal libguestfs purposes (for implementing "
2900 "language bindings).  It is recommended to prefix the name with some unique "
2901 "string to avoid collisions with other users."
2902 msgstr ""
2903
2904 # type: textblock
2905 #: ../src/guestfs.pod:1428
2906 msgid "To retrieve the pointer, use:"
2907 msgstr ""
2908
2909 # type: verbatim
2910 #: ../src/guestfs.pod:1430
2911 #, no-wrap
2912 msgid ""
2913 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2914 "\n"
2915 msgstr ""
2916
2917 # type: textblock
2918 #: ../src/guestfs.pod:1432
2919 msgid ""
2920 "This function returns C<NULL> if either no data is found associated with "
2921 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2922 "C<NULL>."
2923 msgstr ""
2924
2925 # type: textblock
2926 #: ../src/guestfs.pod:1436
2927 msgid ""
2928 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2929 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2930 "all.  In particular, libguestfs does I<not> try to free the data when the "
2931 "handle is closed.  If the data must be freed, then the caller must either "
2932 "free it before calling L</guestfs_close> or must set up a close callback to "
2933 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2934 "can be registered for a handle)."
2935 msgstr ""
2936
2937 # type: textblock
2938 #: ../src/guestfs.pod:1444
2939 msgid ""
2940 "The private data area is implemented using a hash table, and should be "
2941 "reasonably efficient for moderate numbers of keys."
2942 msgstr ""
2943
2944 # type: =head1
2945 #: ../src/guestfs.pod:1447
2946 msgid "BLOCK DEVICE NAMING"
2947 msgstr ""
2948
2949 # type: textblock
2950 #: ../src/guestfs.pod:1449
2951 msgid ""
2952 "In the kernel there is now quite a profusion of schemata for naming block "
2953 "devices (in this context, by I<block device> I mean a physical or virtual "
2954 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2955 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2956 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2957 "for the old IDE driver (particularly for SATA devices) those devices also "
2958 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2959 "paravirtualized drivers.  This has created several different naming systems, "
2960 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2961 msgstr ""
2962
2963 # type: textblock
2964 #: ../src/guestfs.pod:1461
2965 msgid ""
2966 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2967 "Linux kernel to access block devices.  We can run a variety of appliances "
2968 "based on a variety of Linux kernels."
2969 msgstr ""
2970
2971 # type: textblock
2972 #: ../src/guestfs.pod:1465
2973 msgid ""
2974 "This causes a problem for libguestfs because many API calls use device or "
2975 "partition names.  Working scripts and the recipe (example) scripts that we "
2976 "make available over the internet could fail if the naming scheme changes."
2977 msgstr ""
2978
2979 # type: textblock
2980 #: ../src/guestfs.pod:1470
2981 msgid ""
2982 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2983 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2984 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2985 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2986 msgstr ""
2987
2988 # type: textblock
2989 #: ../src/guestfs.pod:1476
2990 msgid ""
2991 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2992 "L</guestfs_list_partitions> and similar calls return the true names of the "
2993 "devices and partitions as known to the appliance."
2994 msgstr ""
2995
2996 # type: =head2
2997 #: ../src/guestfs.pod:1481
2998 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2999 msgstr ""
3000
3001 # type: textblock
3002 #: ../src/guestfs.pod:1483
3003 msgid ""
3004 "Usually this translation is transparent.  However in some (very rare)  cases "
3005 "you may need to know the exact algorithm.  Such cases include where you use "
3006 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
3007 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
3008 msgstr ""
3009
3010 # type: textblock
3011 #: ../src/guestfs.pod:1489
3012 msgid ""
3013 "The algorithm is applied only to I<parameters> which are known to be either "
3014 "device or partition names.  Return values from functions such as L</"
3015 "guestfs_list_devices> are never changed."
3016 msgstr ""
3017
3018 # type: textblock
3019 #: ../src/guestfs.pod:1497
3020 msgid "Is the string a parameter which is a device or partition name?"
3021 msgstr ""
3022
3023 # type: textblock
3024 #: ../src/guestfs.pod:1501
3025 msgid "Does the string begin with C</dev/sd>?"
3026 msgstr ""
3027
3028 # type: textblock
3029 #: ../src/guestfs.pod:1505
3030 msgid ""
3031 "Does the named device exist? If so, we use that device.  However if I<not> "
3032 "then we continue with this algorithm."
3033 msgstr ""
3034
3035 # type: textblock
3036 #: ../src/guestfs.pod:1510
3037 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3038 msgstr ""
3039
3040 # type: textblock
3041 #: ../src/guestfs.pod:1512
3042 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1514
3047 msgid "If that named device exists, use it.  If not, continue."
3048 msgstr ""
3049
3050 # type: textblock
3051 #: ../src/guestfs.pod:1518
3052 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3053 msgstr ""
3054
3055 # type: textblock
3056 #: ../src/guestfs.pod:1520
3057 msgid "If that named device exists, use it.  If not, return an error."
3058 msgstr ""
3059
3060 # type: =head2
3061 #: ../src/guestfs.pod:1524
3062 msgid "PORTABILITY CONCERNS"
3063 msgstr ""
3064
3065 # type: textblock
3066 #: ../src/guestfs.pod:1526
3067 msgid ""
3068 "Although the standard naming scheme and automatic translation is useful for "
3069 "simple programs and guestfish scripts, for larger programs it is best not to "
3070 "rely on this mechanism."
3071 msgstr ""
3072
3073 # type: textblock
3074 #: ../src/guestfs.pod:1530
3075 msgid ""
3076 "Where possible for maximum future portability programs using libguestfs "
3077 "should use these future-proof techniques:"
3078 msgstr ""
3079
3080 # type: textblock
3081 #: ../src/guestfs.pod:1537
3082 msgid ""
3083 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3084 "device names, and then use those names directly."
3085 msgstr ""
3086
3087 # type: textblock
3088 #: ../src/guestfs.pod:1540
3089 msgid ""
3090 "Since those device names exist by definition, they will never be translated."
3091 msgstr ""
3092
3093 # type: textblock
3094 #: ../src/guestfs.pod:1545
3095 msgid ""
3096 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3097 "filesystem labels."
3098 msgstr ""
3099
3100 # type: =head1
3101 #: ../src/guestfs.pod:1550
3102 msgid "INTERNALS"
3103 msgstr ""
3104
3105 # type: =head2
3106 #: ../src/guestfs.pod:1552
3107 msgid "COMMUNICATION PROTOCOL"
3108 msgstr ""
3109
3110 # type: textblock
3111 #: ../src/guestfs.pod:1554
3112 msgid ""
3113 "Don't rely on using this protocol directly.  This section documents how it "
3114 "currently works, but it may change at any time."
3115 msgstr ""
3116
3117 # type: textblock
3118 #: ../src/guestfs.pod:1557
3119 msgid ""
3120 "The protocol used to talk between the library and the daemon running inside "
3121 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3122 "1014, RFC 1832, RFC 4506)."
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1561
3127 msgid ""
3128 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3129 "this file is automatically generated)."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1564
3134 msgid ""
3135 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3136 "and C<FileOut> parameters, which are handled with very simple request/reply "
3137 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3138 "parameters, which use the same request and reply messages, but they may also "
3139 "be followed by files sent using a chunked encoding."
3140 msgstr ""
3141
3142 # type: =head3
3143 #: ../src/guestfs.pod:1571
3144 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3145 msgstr ""
3146
3147 # type: textblock
3148 #: ../src/guestfs.pod:1573
3149 msgid "For ordinary functions, the request message is:"
3150 msgstr ""
3151
3152 # type: verbatim
3153 #: ../src/guestfs.pod:1575
3154 #, no-wrap
3155 msgid ""
3156 " total length (header + arguments,\n"
3157 "      but not including the length word itself)\n"
3158 " struct guestfs_message_header (encoded as XDR)\n"
3159 " struct guestfs_<foo>_args (encoded as XDR)\n"
3160 "\n"
3161 msgstr ""
3162
3163 # type: textblock
3164 #: ../src/guestfs.pod:1580
3165 msgid ""
3166 "The total length field allows the daemon to allocate a fixed size buffer "
3167 "into which it slurps the rest of the message.  As a result, the total length "
3168 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3169 "effective size of any request is limited to somewhere under this size."
3170 msgstr ""
3171
3172 # type: textblock
3173 #: ../src/guestfs.pod:1586
3174 msgid ""
3175 "Note also that many functions don't take any arguments, in which case the "
3176 "C<guestfs_I<foo>_args> is completely omitted."
3177 msgstr ""
3178
3179 # type: textblock
3180 #: ../src/guestfs.pod:1589
3181 msgid ""
3182 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3183 "receiver knows what type of args structure to expect, or none at all."
3184 msgstr ""
3185
3186 # type: textblock
3187 #: ../src/guestfs.pod:1593
3188 msgid "The reply message for ordinary functions is:"
3189 msgstr ""
3190
3191 # type: verbatim
3192 #: ../src/guestfs.pod:1595
3193 #, no-wrap
3194 msgid ""
3195 " total length (header + ret,\n"
3196 "      but not including the length word itself)\n"
3197 " struct guestfs_message_header (encoded as XDR)\n"
3198 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3199 "\n"
3200 msgstr ""
3201
3202 # type: textblock
3203 #: ../src/guestfs.pod:1600
3204 msgid ""
3205 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3206 "functions that return no formal return values."
3207 msgstr ""
3208
3209 # type: textblock
3210 #: ../src/guestfs.pod:1603
3211 msgid ""
3212 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1606
3217 msgid ""
3218 "In the case of an error, a flag is set in the header, and the reply message "
3219 "is slightly changed:"
3220 msgstr ""
3221
3222 # type: verbatim
3223 #: ../src/guestfs.pod:1609
3224 #, no-wrap
3225 msgid ""
3226 " total length (header + error,\n"
3227 "      but not including the length word itself)\n"
3228 " struct guestfs_message_header (encoded as XDR)\n"
3229 " struct guestfs_message_error (encoded as XDR)\n"
3230 "\n"
3231 msgstr ""
3232
3233 # type: textblock
3234 #: ../src/guestfs.pod:1614
3235 msgid ""
3236 "The C<guestfs_message_error> structure contains the error message as a "
3237 "string."
3238 msgstr ""
3239
3240 # type: =head3
3241 #: ../src/guestfs.pod:1617
3242 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3243 msgstr ""
3244
3245 # type: textblock
3246 #: ../src/guestfs.pod:1619
3247 msgid ""
3248 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3249 "The normal request message is sent (see above).  However this is followed by "
3250 "a sequence of file chunks."
3251 msgstr ""
3252
3253 # type: verbatim
3254 #: ../src/guestfs.pod:1623
3255 #, no-wrap
3256 msgid ""
3257 " total length (header + arguments,\n"
3258 "      but not including the length word itself,\n"
3259 "      and not including the chunks)\n"
3260 " struct guestfs_message_header (encoded as XDR)\n"
3261 " struct guestfs_<foo>_args (encoded as XDR)\n"
3262 " sequence of chunks for FileIn param #0\n"
3263 " sequence of chunks for FileIn param #1 etc.\n"
3264 "\n"
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1631
3269 msgid "The \"sequence of chunks\" is:"
3270 msgstr ""
3271
3272 # type: verbatim
3273 #: ../src/guestfs.pod:1633
3274 #, no-wrap
3275 msgid ""
3276 " length of chunk (not including length word itself)\n"
3277 " struct guestfs_chunk (encoded as XDR)\n"
3278 " length of chunk\n"
3279 " struct guestfs_chunk (encoded as XDR)\n"
3280 "   ...\n"
3281 " length of chunk\n"
3282 " struct guestfs_chunk (with data.data_len == 0)\n"
3283 "\n"
3284 msgstr ""
3285
3286 # type: textblock
3287 #: ../src/guestfs.pod:1641
3288 msgid ""
3289 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3290 "is set in the final chunk to indicate either successful completion or early "
3291 "cancellation."
3292 msgstr ""
3293
3294 # type: textblock
3295 #: ../src/guestfs.pod:1645
3296 msgid ""
3297 "At time of writing there are no functions that have more than one FileIn "
3298 "parameter.  However this is (theoretically) supported, by sending the "
3299 "sequence of chunks for each FileIn parameter one after another (from left to "
3300 "right)."
3301 msgstr ""
3302
3303 # type: textblock
3304 #: ../src/guestfs.pod:1650
3305 msgid ""
3306 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3307 "transfer.  The library does this by sending a chunk with a special flag set "
3308 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3309 "RPC, does I<not> send any reply, and goes back to reading the next request."
3310 msgstr ""
3311
3312 # type: textblock
3313 #: ../src/guestfs.pod:1656
3314 msgid ""
3315 "The daemon may also cancel.  It does this by writing a special word "
3316 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3317 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3318 "cancel chunk).  The special word is chosen so that even if cancellation "
3319 "happens right at the end of the transfer (after the library has finished "
3320 "writing and has started listening for the reply), the \"spurious\" cancel "
3321 "flag will not be confused with the reply message."
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1665
3326 msgid ""
3327 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3328 "limit), and also files where the size is not known in advance (eg. from "
3329 "pipes or sockets).  However the chunks are rather small "
3330 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3331 "to keep much in memory."
3332 msgstr ""
3333
3334 # type: =head3
3335 #: ../src/guestfs.pod:1671
3336 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3337 msgstr ""
3338
3339 # type: textblock
3340 #: ../src/guestfs.pod:1673
3341 msgid ""
3342 "The protocol for FileOut parameters is exactly the same as for FileIn "
3343 "parameters, but with the roles of daemon and library reversed."
3344 msgstr ""
3345
3346 # type: verbatim
3347 #: ../src/guestfs.pod:1676
3348 #, no-wrap
3349 msgid ""
3350 " total length (header + ret,\n"
3351 "      but not including the length word itself,\n"
3352 "      and not including the chunks)\n"
3353 " struct guestfs_message_header (encoded as XDR)\n"
3354 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3355 " sequence of chunks for FileOut param #0\n"
3356 " sequence of chunks for FileOut param #1 etc.\n"
3357 "\n"
3358 msgstr ""
3359
3360 # type: =head3
3361 #: ../src/guestfs.pod:1684
3362 msgid "INITIAL MESSAGE"
3363 msgstr ""
3364
3365 # type: textblock
3366 #: ../src/guestfs.pod:1686
3367 msgid ""
3368 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3369 "which indicates that the guest and daemon is alive.  This is what L</"
3370 "guestfs_launch> waits for."
3371 msgstr ""
3372
3373 # type: =head3
3374 #: ../src/guestfs.pod:1690
3375 msgid "PROGRESS NOTIFICATION MESSAGES"
3376 msgstr ""
3377
3378 # type: textblock
3379 #: ../src/guestfs.pod:1692
3380 msgid ""
3381 "The daemon may send progress notification messages at any time.  These are "
3382 "distinguished by the normal length word being replaced by "
3383 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3384 msgstr ""
3385
3386 # type: textblock
3387 #: ../src/guestfs.pod:1696
3388 msgid ""
3389 "The library turns them into progress callbacks (see "
3390 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3391 "discards them if not."
3392 msgstr ""
3393
3394 # type: textblock
3395 #: ../src/guestfs.pod:1700
3396 msgid ""
3397 "The daemon self-limits the frequency of progress messages it sends (see "
3398 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3399 "messages."
3400 msgstr ""
3401
3402 # type: =head1
3403 #: ../src/guestfs.pod:1704
3404 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3405 msgstr ""
3406
3407 # type: textblock
3408 #: ../src/guestfs.pod:1706
3409 msgid ""
3410 "All high-level libguestfs actions are synchronous.  If you want to use "
3411 "libguestfs asynchronously then you must create a thread."
3412 msgstr ""
3413
3414 # type: textblock
3415 #: ../src/guestfs.pod:1709
3416 msgid ""
3417 "Only use the handle from a single thread.  Either use the handle exclusively "
3418 "from one thread, or provide your own mutex so that two threads cannot issue "
3419 "calls on the same handle at the same time."
3420 msgstr ""
3421
3422 # type: textblock
3423 #: ../src/guestfs.pod:1713
3424 msgid ""
3425 "See the graphical program guestfs-browser for one possible architecture for "
3426 "multithreaded programs using libvirt and libguestfs."
3427 msgstr ""
3428
3429 # type: =head1
3430 #: ../src/guestfs.pod:1716
3431 msgid "QEMU WRAPPERS"
3432 msgstr ""
3433
3434 # type: textblock
3435 #: ../src/guestfs.pod:1718
3436 msgid ""
3437 "If you want to compile your own qemu, run qemu from a non-standard location, "
3438 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3439 "around qemu."
3440 msgstr ""
3441
3442 # type: textblock
3443 #: ../src/guestfs.pod:1722
3444 msgid ""
3445 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3446 "last command in the shell script (so that qemu replaces the shell and "
3447 "becomes the direct child of the libguestfs-using program).  If you don't do "
3448 "this, then the qemu process won't be cleaned up correctly."
3449 msgstr ""
3450
3451 # type: textblock
3452 #: ../src/guestfs.pod:1727
3453 msgid ""
3454 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3455 "source:"
3456 msgstr ""
3457
3458 # type: verbatim
3459 #: ../src/guestfs.pod:1730
3460 #, no-wrap
3461 msgid ""
3462 " #!/bin/sh -\n"
3463 " qemudir=/home/rjones/d/qemu\n"
3464 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3465 "\n"
3466 msgstr ""
3467
3468 # type: textblock
3469 #: ../src/guestfs.pod:1734
3470 msgid ""
3471 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3472 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3473 "example:"
3474 msgstr ""
3475
3476 # type: verbatim
3477 #: ../src/guestfs.pod:1738
3478 #, no-wrap
3479 msgid ""
3480 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3481 "\n"
3482 msgstr ""
3483
3484 # type: textblock
3485 #: ../src/guestfs.pod:1740
3486 msgid ""
3487 "Note that libguestfs also calls qemu with the -help and -version options in "
3488 "order to determine features."
3489 msgstr ""
3490
3491 # type: =head1
3492 #: ../src/guestfs.pod:1743
3493 msgid "LIBGUESTFS VERSION NUMBERS"
3494 msgstr ""
3495
3496 # type: textblock
3497 #: ../src/guestfs.pod:1745
3498 msgid ""
3499 "Since April 2010, libguestfs has started to make separate development and "
3500 "stable releases, along with corresponding branches in our git repository.  "
3501 "These separate releases can be identified by version number:"
3502 msgstr ""
3503
3504 # type: verbatim
3505 #: ../src/guestfs.pod:1750
3506 #, no-wrap
3507 msgid ""
3508 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3509 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3510 "       |\n"
3511 "       v\n"
3512 " 1  .  3  .  5\n"
3513 " ^           ^\n"
3514 " |           |\n"
3515 " |           `-------- sub-version\n"
3516 " |\n"
3517 " `------ always '1' because we don't change the ABI\n"
3518 "\n"
3519 msgstr ""
3520
3521 # type: textblock
3522 #: ../src/guestfs.pod:1761
3523 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3524 msgstr ""
3525
3526 # type: textblock
3527 #: ../src/guestfs.pod:1763
3528 msgid ""
3529 "As time passes we cherry pick fixes from the development branch and backport "
3530 "those into the stable branch, the effect being that the stable branch should "
3531 "get more stable and less buggy over time.  So the stable releases are ideal "
3532 "for people who don't need new features but would just like the software to "
3533 "work."
3534 msgstr ""
3535
3536 # type: textblock
3537 #: ../src/guestfs.pod:1769
3538 msgid "Our criteria for backporting changes are:"
3539 msgstr ""
3540
3541 # type: textblock
3542 #: ../src/guestfs.pod:1775
3543 msgid ""
3544 "Documentation changes which don't affect any code are backported unless the "
3545 "documentation refers to a future feature which is not in stable."
3546 msgstr ""
3547
3548 # type: textblock
3549 #: ../src/guestfs.pod:1781
3550 msgid ""
3551 "Bug fixes which are not controversial, fix obvious problems, and have been "
3552 "well tested are backported."
3553 msgstr ""
3554
3555 # type: textblock
3556 #: ../src/guestfs.pod:1786
3557 msgid ""
3558 "Simple rearrangements of code which shouldn't affect how it works get "
3559 "backported.  This is so that the code in the two branches doesn't get too "
3560 "far out of step, allowing us to backport future fixes more easily."
3561 msgstr ""
3562
3563 # type: textblock
3564 #: ../src/guestfs.pod:1792
3565 msgid ""
3566 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3567 "exceptional case: the new feature is required in order to implement an "
3568 "important bug fix."
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1798
3573 msgid ""
3574 "A new stable branch starts when we think the new features in development are "
3575 "substantial and compelling enough over the current stable branch to warrant "
3576 "it.  When that happens we create new stable and development versions 1.N.0 "
3577 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3578 "stable at this point, but by backporting fixes from development, that branch "
3579 "will stabilize over time."
3580 msgstr ""
3581
3582 # type: =head1
3583 #: ../src/guestfs.pod:1806 ../fish/guestfish.pod:867
3584 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3585 #: ../tools/virt-rescue.pl:255
3586 msgid "ENVIRONMENT VARIABLES"
3587 msgstr ""
3588
3589 # type: =item
3590 #: ../src/guestfs.pod:1810 ../fish/guestfish.pod:893
3591 msgid "LIBGUESTFS_APPEND"
3592 msgstr ""
3593
3594 # type: textblock
3595 #: ../src/guestfs.pod:1812 ../fish/guestfish.pod:895
3596 msgid "Pass additional options to the guest kernel."
3597 msgstr ""
3598
3599 # type: =item
3600 #: ../src/guestfs.pod:1814 ../fish/guestfish.pod:897
3601 msgid "LIBGUESTFS_DEBUG"
3602 msgstr ""
3603
3604 # type: textblock
3605 #: ../src/guestfs.pod:1816
3606 msgid ""
3607 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3608 "effect as calling C<guestfs_set_verbose (g, 1)>."
3609 msgstr ""
3610
3611 # type: =item
3612 #: ../src/guestfs.pod:1819 ../fish/guestfish.pod:902
3613 msgid "LIBGUESTFS_MEMSIZE"
3614 msgstr ""
3615
3616 # type: textblock
3617 #: ../src/guestfs.pod:1821 ../fish/guestfish.pod:904
3618 msgid ""
3619 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3620 msgstr ""
3621
3622 # type: verbatim
3623 #: ../src/guestfs.pod:1824 ../fish/guestfish.pod:907
3624 #, no-wrap
3625 msgid ""
3626 " LIBGUESTFS_MEMSIZE=700\n"
3627 "\n"
3628 msgstr ""
3629
3630 # type: =item
3631 #: ../src/guestfs.pod:1826 ../fish/guestfish.pod:909
3632 msgid "LIBGUESTFS_PATH"
3633 msgstr ""
3634
3635 # type: textblock
3636 #: ../src/guestfs.pod:1828
3637 msgid ""
3638 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3639 "the discussion of paths in section PATH above."
3640 msgstr ""
3641
3642 # type: =item
3643 #: ../src/guestfs.pod:1831 ../fish/guestfish.pod:914
3644 msgid "LIBGUESTFS_QEMU"
3645 msgstr ""
3646
3647 # type: textblock
3648 #: ../src/guestfs.pod:1833 ../fish/guestfish.pod:916
3649 msgid ""
3650 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3651 "which was found at compile time by the configure script is used."
3652 msgstr ""
3653
3654 # type: textblock
3655 #: ../src/guestfs.pod:1837
3656 msgid "See also L</QEMU WRAPPERS> above."
3657 msgstr ""
3658
3659 # type: =item
3660 #: ../src/guestfs.pod:1839 ../fish/guestfish.pod:920
3661 msgid "LIBGUESTFS_TRACE"
3662 msgstr ""
3663
3664 # type: textblock
3665 #: ../src/guestfs.pod:1841
3666 msgid ""
3667 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3668 "effect as calling C<guestfs_set_trace (g, 1)>."
3669 msgstr ""
3670
3671 # type: =item
3672 #: ../src/guestfs.pod:1844 ../fish/guestfish.pod:929
3673 msgid "TMPDIR"
3674 msgstr ""
3675
3676 # type: textblock
3677 #: ../src/guestfs.pod:1846 ../fish/guestfish.pod:931
3678 msgid "Location of temporary directory, defaults to C</tmp>."
3679 msgstr ""
3680
3681 # type: textblock
3682 #: ../src/guestfs.pod:1848 ../fish/guestfish.pod:933
3683 msgid ""
3684 "If libguestfs was compiled to use the supermin appliance then the real "
3685 "appliance is cached in this directory, shared between all handles belonging "
3686 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3687 "use in case C</tmp> is not large enough."
3688 msgstr ""
3689
3690 # type: =head1
3691 #: ../src/guestfs.pod:1856 ../fish/guestfish.pod:991
3692 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:214
3693 #: ../inspector/virt-inspector.pl:570 ../tools/virt-edit.pl:350
3694 #: ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640
3695 #: ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486
3696 #: ../tools/virt-list-filesystems.pl:186 ../tools/virt-cat.pl:185
3697 #: ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267
3698 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3699 msgid "SEE ALSO"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1858
3704 msgid ""
3705 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3706 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3707 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3708 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3709 "L<http://libguestfs.org/>."
3710 msgstr ""
3711
3712 # type: textblock
3713 #: ../src/guestfs.pod:1876
3714 msgid ""
3715 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3716 "(8)>, L<disktype(1)>."
3717 msgstr ""
3718
3719 # type: =head1
3720 #: ../src/guestfs.pod:1883 ../tools/virt-win-reg.pl:499
3721 #: ../tools/virt-make-fs.pl:548
3722 msgid "BUGS"
3723 msgstr ""
3724
3725 # type: textblock
3726 #: ../src/guestfs.pod:1885
3727 msgid "To get a list of bugs against libguestfs use this link:"
3728 msgstr ""
3729
3730 # type: textblock
3731 #: ../src/guestfs.pod:1887
3732 msgid ""
3733 "L<https://bugzilla.redhat.com/buglist.cgi?"
3734 "component=libguestfs&product=Virtualization+Tools>"
3735 msgstr ""
3736
3737 # type: textblock
3738 #: ../src/guestfs.pod:1889
3739 msgid "To report a new bug against libguestfs use this link:"
3740 msgstr ""
3741
3742 # type: textblock
3743 #: ../src/guestfs.pod:1891
3744 msgid ""
3745 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3746 "component=libguestfs&product=Virtualization+Tools>"
3747 msgstr ""
3748
3749 # type: textblock
3750 #: ../src/guestfs.pod:1893
3751 msgid "When reporting a bug, please check:"
3752 msgstr ""
3753
3754 # type: textblock
3755 #: ../src/guestfs.pod:1899
3756 msgid "That the bug hasn't been reported already."
3757 msgstr ""
3758
3759 # type: textblock
3760 #: ../src/guestfs.pod:1903
3761 msgid "That you are testing a recent version."
3762 msgstr ""
3763
3764 # type: textblock
3765 #: ../src/guestfs.pod:1907
3766 msgid "Describe the bug accurately, and give a way to reproduce it."
3767 msgstr ""
3768
3769 # type: textblock
3770 #: ../src/guestfs.pod:1911
3771 msgid ""
3772 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3773 "bug report."
3774 msgstr ""
3775
3776 # type: =head1
3777 #: ../src/guestfs.pod:1916 ../fish/guestfish.pod:1008
3778 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:225
3779 #: ../inspector/virt-inspector.pl:580
3780 msgid "AUTHORS"
3781 msgstr ""
3782
3783 # type: textblock
3784 #: ../src/guestfs.pod:1918 ../fish/guestfish.pod:1010
3785 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:227
3786 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3787 msgstr ""
3788
3789 # type: =head1
3790 #: ../src/guestfs.pod:1920 ../fish/guestfish.pod:1012
3791 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:229
3792 #: ../inspector/virt-inspector.pl:594 ../tools/virt-edit.pl:366
3793 #: ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653
3794 #: ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512
3795 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-cat.pl:199
3796 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281
3797 #: ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3798 msgid "COPYRIGHT"
3799 msgstr ""
3800
3801 # type: textblock
3802 #: ../src/guestfs.pod:1922 ../fish/guestfish.pod:1014
3803 #: ../fuse/guestmount.pod:231
3804 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3805 msgstr ""
3806
3807 # type: textblock
3808 #: ../src/guestfs.pod:1925
3809 msgid ""
3810 "This library is free software; you can redistribute it and/or modify it "
3811 "under the terms of the GNU Lesser General Public License as published by the "
3812 "Free Software Foundation; either version 2 of the License, or (at your "
3813 "option) any later version."
3814 msgstr ""
3815
3816 # type: textblock
3817 #: ../src/guestfs.pod:1930
3818 msgid ""
3819 "This library is distributed in the hope that it will be useful, but WITHOUT "
3820 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3821 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3822 "for more details."
3823 msgstr ""
3824
3825 # type: textblock
3826 #: ../src/guestfs.pod:1935
3827 msgid ""
3828 "You should have received a copy of the GNU Lesser General Public License "
3829 "along with this library; if not, write to the Free Software Foundation, "
3830 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3831 msgstr ""
3832
3833 # type: =head2
3834 #: ../src/guestfs-actions.pod:1
3835 msgid "guestfs_add_cdrom"
3836 msgstr ""
3837
3838 # type: verbatim
3839 #: ../src/guestfs-actions.pod:3
3840 #, no-wrap
3841 msgid ""
3842 " int guestfs_add_cdrom (guestfs_h *g,\n"
3843 "\t\tconst char *filename);\n"
3844 "\n"
3845 msgstr ""
3846
3847 # type: textblock
3848 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3849 msgid "This function adds a virtual CD-ROM disk image to the guest."
3850 msgstr ""
3851
3852 # type: textblock
3853 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3854 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs-actions.pod:16
3859 msgid ""
3860 "This call checks for the existence of C<filename>.  This stops you from "
3861 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3862 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3863 "instead."
3864 msgstr ""
3865
3866 # type: textblock
3867 #: ../src/guestfs-actions.pod:23
3868 msgid ""
3869 "If you just want to add an ISO file (often you use this as an efficient way "
3870 "to transfer large files into the guest), then you should probably use "
3871 "C<guestfs_add_drive_ro> instead."
3872 msgstr ""
3873
3874 # type: textblock
3875 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:54
3876 #: ../src/guestfs-actions.pod:112 ../src/guestfs-actions.pod:144
3877 #: ../src/guestfs-actions.pod:155 ../src/guestfs-actions.pod:173
3878 #: ../src/guestfs-actions.pod:190 ../src/guestfs-actions.pod:201
3879 #: ../src/guestfs-actions.pod:304 ../src/guestfs-actions.pod:321
3880 #: ../src/guestfs-actions.pod:332 ../src/guestfs-actions.pod:368
3881 #: ../src/guestfs-actions.pod:390 ../src/guestfs-actions.pod:405
3882 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:496
3883 #: ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:519
3884 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:615
3885 #: ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:637
3886 #: ../src/guestfs-actions.pod:783 ../src/guestfs-actions.pod:800
3887 #: ../src/guestfs-actions.pod:815 ../src/guestfs-actions.pod:890
3888 #: ../src/guestfs-actions.pod:905 ../src/guestfs-actions.pod:921
3889 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:949
3890 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1040
3891 #: ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1090
3892 #: ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1209
3893 #: ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:1440
3894 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1540
3895 #: ../src/guestfs-actions.pod:1888 ../src/guestfs-actions.pod:2011
3896 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2096
3897 #: ../src/guestfs-actions.pod:2541 ../src/guestfs-actions.pod:2553
3898 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2678
3899 #: ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2699
3900 #: ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2722
3901 #: ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2816
3902 #: ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2847
3903 #: ../src/guestfs-actions.pod:2867 ../src/guestfs-actions.pod:2887
3904 #: ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:2932
3905 #: ../src/guestfs-actions.pod:2948 ../src/guestfs-actions.pod:2977
3906 #: ../src/guestfs-actions.pod:2986 ../src/guestfs-actions.pod:3019
3907 #: ../src/guestfs-actions.pod:3032 ../src/guestfs-actions.pod:3042
3908 #: ../src/guestfs-actions.pod:3054 ../src/guestfs-actions.pod:3068
3909 #: ../src/guestfs-actions.pod:3148 ../src/guestfs-actions.pod:3165
3910 #: ../src/guestfs-actions.pod:3175 ../src/guestfs-actions.pod:3220
3911 #: ../src/guestfs-actions.pod:3235 ../src/guestfs-actions.pod:3250
3912 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3274
3913 #: ../src/guestfs-actions.pod:3285 ../src/guestfs-actions.pod:3299
3914 #: ../src/guestfs-actions.pod:3311 ../src/guestfs-actions.pod:3328
3915 #: ../src/guestfs-actions.pod:3374 ../src/guestfs-actions.pod:3402
3916 #: ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3434
3917 #: ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3457
3918 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3479
3919 #: ../src/guestfs-actions.pod:3491 ../src/guestfs-actions.pod:3523
3920 #: ../src/guestfs-actions.pod:3535 ../src/guestfs-actions.pod:3552
3921 #: ../src/guestfs-actions.pod:3563 ../src/guestfs-actions.pod:3577
3922 #: ../src/guestfs-actions.pod:3617 ../src/guestfs-actions.pod:3648
3923 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3684
3924 #: ../src/guestfs-actions.pod:3698 ../src/guestfs-actions.pod:3713
3925 #: ../src/guestfs-actions.pod:3835 ../src/guestfs-actions.pod:3887
3926 #: ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3921
3927 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4004
3928 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4028
3929 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4294
3930 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4321
3931 #: ../src/guestfs-actions.pod:4330 ../src/guestfs-actions.pod:4341
3932 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4361
3933 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4392
3934 #: ../src/guestfs-actions.pod:4408 ../src/guestfs-actions.pod:4424
3935 #: ../src/guestfs-actions.pod:4439 ../src/guestfs-actions.pod:4459
3936 #: ../src/guestfs-actions.pod:4474 ../src/guestfs-actions.pod:4490
3937 #: ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:4524
3938 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4563
3939 #: ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4600
3940 #: ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4633
3941 #: ../src/guestfs-actions.pod:4645 ../src/guestfs-actions.pod:4661
3942 #: ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4715
3943 #: ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4828
3944 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4943
3945 #: ../src/guestfs-actions.pod:4953 ../src/guestfs-actions.pod:4963
3946 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:4992
3947 #: ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5012
3948 #: ../src/guestfs-actions.pod:5024 ../src/guestfs-actions.pod:5074
3949 #: ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5101
3950 #: ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5128
3951 #: ../src/guestfs-actions.pod:5138 ../src/guestfs-actions.pod:5155
3952 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5196
3953 #: ../src/guestfs-actions.pod:5231 ../src/guestfs-actions.pod:5241
3954 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5282
3955 #: ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5414
3956 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5440
3957 #: ../src/guestfs-actions.pod:5486 ../src/guestfs-actions.pod:5496
3958 #: ../src/guestfs-actions.pod:5533 ../src/guestfs-actions.pod:5560
3959 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5625
3960 #: ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5698
3961 #: ../src/guestfs-actions.pod:5724
3962 msgid "This function returns 0 on success or -1 on error."
3963 msgstr ""
3964
3965 # type: textblock
3966 #: ../src/guestfs-actions.pod:31 ../src/guestfs-actions.pod:157
3967 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:28
3968 #: ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3969 msgid ""
3970 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3971 "instead."
3972 msgstr ""
3973
3974 # type: textblock
3975 #: ../src/guestfs-actions.pod:34 ../src/guestfs-actions.pod:160
3976 #: ../src/guestfs-actions.pod:178 ../src/guestfs-actions.pod:1214
3977 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1667
3978 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5778
3979 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120
3980 #: ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940
3981 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311
3982 #: ../fish/guestfish-actions.pod:4349 ../fish/guestfish-actions.pod:4446
3983 msgid ""
3984 "Deprecated functions will not be removed from the API, but the fact that "
3985 "they are deprecated indicates that there are problems with correct use of "
3986 "these functions."
3987 msgstr ""
3988
3989 # type: =head2
3990 #: ../src/guestfs-actions.pod:38
3991 msgid "guestfs_add_drive"
3992 msgstr ""
3993
3994 # type: verbatim
3995 #: ../src/guestfs-actions.pod:40
3996 #, no-wrap
3997 msgid ""
3998 " int guestfs_add_drive (guestfs_h *g,\n"
3999 "\t\tconst char *filename);\n"
4000 "\n"
4001 msgstr ""
4002
4003 # type: textblock
4004 #: ../src/guestfs-actions.pod:43
4005 msgid ""
4006 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4007 "optional parameters, so the disk is added writable, with the format being "
4008 "detected automatically."
4009 msgstr ""
4010
4011 # type: textblock
4012 #: ../src/guestfs-actions.pod:47
4013 msgid ""
4014 "Automatic detection of the format opens you up to a potential security hole "
4015 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4016 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4017 "you should think about replacing calls to this function with calls to "
4018 "C<guestfs_add_drive_opts>, and specifying the format."
4019 msgstr ""
4020
4021 # type: =head2
4022 #: ../src/guestfs-actions.pod:56
4023 msgid "guestfs_add_drive_opts"
4024 msgstr ""
4025
4026 # type: verbatim
4027 #: ../src/guestfs-actions.pod:58
4028 #, no-wrap
4029 msgid ""
4030 " int guestfs_add_drive_opts (guestfs_h *g,\n"
4031 "\t\tconst char *filename,\n"
4032 "\t\t...);\n"
4033 "\n"
4034 msgstr ""
4035
4036 # type: textblock
4037 #: ../src/guestfs-actions.pod:62
4038 msgid ""
4039 "You may supply a list of optional arguments to this call.  Use zero or more "
4040 "of the following pairs of parameters, and terminate the list with C<-1> on "
4041 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4042 msgstr ""
4043
4044 # type: verbatim
4045 #: ../src/guestfs-actions.pod:67
4046 #, no-wrap
4047 msgid ""
4048 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4049 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4050 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4051 "\n"
4052 msgstr ""
4053
4054 # type: textblock
4055 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:56
4056 msgid ""
4057 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4058 "The first time you call this function, the disk appears as C</dev/sda>, the "
4059 "second time as C</dev/sdb>, and so on."
4060 msgstr ""
4061
4062 # type: textblock
4063 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:61
4064 msgid ""
4065 "You don't necessarily need to be root when using libguestfs.  However you "
4066 "obviously do need sufficient permissions to access the filename for whatever "
4067 "operations you want to perform (ie. read access if you just want to read the "
4068 "image or write access if you want to modify the image)."
4069 msgstr ""
4070
4071 # type: textblock
4072 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:67
4073 msgid "This call checks that C<filename> exists."
4074 msgstr ""
4075
4076 # type: textblock
4077 #: ../src/guestfs-actions.pod:84 ../fish/guestfish-actions.pod:69
4078 msgid "The optional arguments are:"
4079 msgstr ""
4080
4081 # type: =item
4082 #: ../src/guestfs-actions.pod:88 ../fish/guestfish-actions.pod:73
4083 msgid "C<readonly>"
4084 msgstr ""
4085
4086 # type: textblock
4087 #: ../src/guestfs-actions.pod:90 ../fish/guestfish-actions.pod:75
4088 msgid ""
4089 "If true then the image is treated as read-only.  Writes are still allowed, "
4090 "but they are stored in a temporary snapshot overlay which is discarded at "
4091 "the end.  The disk that you add is not modified."
4092 msgstr ""
4093
4094 # type: =item
4095 #: ../src/guestfs-actions.pod:94 ../fish/guestfish-actions.pod:79
4096 msgid "C<format>"
4097 msgstr ""
4098
4099 # type: textblock
4100 #: ../src/guestfs-actions.pod:96
4101 msgid ""
4102 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4103 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4104 "Possible formats include C<raw> and C<qcow2>."
4105 msgstr ""
4106
4107 # type: textblock
4108 #: ../src/guestfs-actions.pod:100 ../fish/guestfish-actions.pod:85
4109 msgid ""
4110 "Automatic detection of the format opens you up to a potential security hole "
4111 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4112 "RHBZ#642934.  Specifying the format closes this security hole."
4113 msgstr ""
4114
4115 # type: =item
4116 #: ../src/guestfs-actions.pod:105 ../fish/guestfish-actions.pod:90
4117 msgid "C<iface>"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs-actions.pod:107
4122 msgid ""
4123 "This rarely-used option lets you emulate the behaviour of the deprecated "
4124 "C<guestfs_add_drive_with_if> call (q.v.)"
4125 msgstr ""
4126
4127 # type: =head2
4128 #: ../src/guestfs-actions.pod:114
4129 msgid "guestfs_add_drive_opts_va"
4130 msgstr ""
4131
4132 # type: verbatim
4133 #: ../src/guestfs-actions.pod:116
4134 #, no-wrap
4135 msgid ""
4136 " int guestfs_add_drive_opts_va (guestfs_h *g,\n"
4137 "\t\tconst char *filename,\n"
4138 "\t\tva_list args);\n"
4139 "\n"
4140 msgstr ""
4141
4142 # type: textblock
4143 #: ../src/guestfs-actions.pod:120
4144 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4145 msgstr ""
4146
4147 # type: textblock
4148 #: ../src/guestfs-actions.pod:122 ../src/guestfs-actions.pod:132
4149 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4150 msgstr ""
4151
4152 # type: =head2
4153 #: ../src/guestfs-actions.pod:124
4154 msgid "guestfs_add_drive_opts_argv"
4155 msgstr ""
4156
4157 # type: verbatim
4158 #: ../src/guestfs-actions.pod:126
4159 #, no-wrap
4160 msgid ""
4161 " int guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4162 "\t\tconst char *filename,\n"
4163 "\t\tconst struct guestfs_add_drive_opts_argv *optargs);\n"
4164 "\n"
4165 msgstr ""
4166
4167 # type: textblock
4168 #: ../src/guestfs-actions.pod:130
4169 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4170 msgstr ""
4171
4172 # type: =head2
4173 #: ../src/guestfs-actions.pod:134
4174 msgid "guestfs_add_drive_ro"
4175 msgstr ""
4176
4177 # type: verbatim
4178 #: ../src/guestfs-actions.pod:136
4179 #, no-wrap
4180 msgid ""
4181 " int guestfs_add_drive_ro (guestfs_h *g,\n"
4182 "\t\tconst char *filename);\n"
4183 "\n"
4184 msgstr ""
4185
4186 # type: textblock
4187 #: ../src/guestfs-actions.pod:139
4188 msgid ""
4189 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4190 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4191 "disk is added read-only, with the format being detected automatically."
4192 msgstr ""
4193
4194 # type: =head2
4195 #: ../src/guestfs-actions.pod:146
4196 msgid "guestfs_add_drive_ro_with_if"
4197 msgstr ""
4198
4199 # type: verbatim
4200 #: ../src/guestfs-actions.pod:148
4201 #, no-wrap
4202 msgid ""
4203 " int guestfs_add_drive_ro_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:152
4211 msgid ""
4212 "This is the same as C<guestfs_add_drive_ro> 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:164
4218 msgid "guestfs_add_drive_with_if"
4219 msgstr ""
4220
4221 # type: verbatim
4222 #: ../src/guestfs-actions.pod:166
4223 #, no-wrap
4224 msgid ""
4225 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
4226 "\t\tconst char *filename,\n"
4227 "\t\tconst char *iface);\n"
4228 "\n"
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs-actions.pod:170
4233 msgid ""
4234 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4235 "QEMU interface emulation to use at run time."
4236 msgstr ""
4237
4238 # type: =head2
4239 #: ../src/guestfs-actions.pod:182
4240 msgid "guestfs_aug_clear"
4241 msgstr ""
4242
4243 # type: verbatim
4244 #: ../src/guestfs-actions.pod:184
4245 #, no-wrap
4246 msgid ""
4247 " int guestfs_aug_clear (guestfs_h *g,\n"
4248 "\t\tconst char *augpath);\n"
4249 "\n"
4250 msgstr ""
4251
4252 # type: textblock
4253 #: ../src/guestfs-actions.pod:187 ../fish/guestfish-actions.pod:142
4254 msgid ""
4255 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4256 "L<augtool(1)> C<clear> command."
4257 msgstr ""
4258
4259 # type: =head2
4260 #: ../src/guestfs-actions.pod:192
4261 msgid "guestfs_aug_close"
4262 msgstr ""
4263
4264 # type: verbatim
4265 #: ../src/guestfs-actions.pod:194
4266 #, no-wrap
4267 msgid ""
4268 " int guestfs_aug_close (guestfs_h *g);\n"
4269 "\n"
4270 msgstr ""
4271
4272 # type: textblock
4273 #: ../src/guestfs-actions.pod:196
4274 msgid ""
4275 "Close the current Augeas handle and free up any resources used by it.  After "
4276 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4277 "any other Augeas functions."
4278 msgstr ""
4279
4280 # type: =head2
4281 #: ../src/guestfs-actions.pod:203
4282 msgid "guestfs_aug_defnode"
4283 msgstr ""
4284
4285 # type: verbatim
4286 #: ../src/guestfs-actions.pod:205
4287 #, no-wrap
4288 msgid ""
4289 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
4290 "\t\tconst char *name,\n"
4291 "\t\tconst char *expr,\n"
4292 "\t\tconst char *val);\n"
4293 "\n"
4294 msgstr ""
4295
4296 # type: textblock
4297 #: ../src/guestfs-actions.pod:210 ../fish/guestfish-actions.pod:158
4298 msgid ""
4299 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4300 msgstr ""
4301
4302 # type: textblock
4303 #: ../src/guestfs-actions.pod:213
4304 msgid ""
4305 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4306 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4307 "containing that single node."
4308 msgstr ""
4309
4310 # type: textblock
4311 #: ../src/guestfs-actions.pod:217 ../fish/guestfish-actions.pod:165
4312 msgid ""
4313 "On success this returns a pair containing the number of nodes in the "
4314 "nodeset, and a boolean flag if a node was created."
4315 msgstr ""
4316
4317 # type: textblock
4318 #: ../src/guestfs-actions.pod:221
4319 msgid ""
4320 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4321 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4322 msgstr ""
4323
4324 # type: =head2
4325 #: ../src/guestfs-actions.pod:225
4326 msgid "guestfs_aug_defvar"
4327 msgstr ""
4328
4329 # type: verbatim
4330 #: ../src/guestfs-actions.pod:227
4331 #, no-wrap
4332 msgid ""
4333 " int guestfs_aug_defvar (guestfs_h *g,\n"
4334 "\t\tconst char *name,\n"
4335 "\t\tconst char *expr);\n"
4336 "\n"
4337 msgstr ""
4338
4339 # type: textblock
4340 #: ../src/guestfs-actions.pod:231 ../fish/guestfish-actions.pod:173
4341 msgid ""
4342 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4343 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4344 msgstr ""
4345
4346 # type: textblock
4347 #: ../src/guestfs-actions.pod:235 ../fish/guestfish-actions.pod:177
4348 msgid ""
4349 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4350 "evaluates to something which is not a nodeset."
4351 msgstr ""
4352
4353 # type: textblock
4354 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:379
4355 #: ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:558
4356 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:589
4357 #: ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1422
4358 #: ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1685
4359 #: ../src/guestfs-actions.pod:1716 ../src/guestfs-actions.pod:1759
4360 #: ../src/guestfs-actions.pod:1776 ../src/guestfs-actions.pod:2001
4361 #: ../src/guestfs-actions.pod:2229 ../src/guestfs-actions.pod:2247
4362 #: ../src/guestfs-actions.pod:3637 ../src/guestfs-actions.pod:3744
4363 #: ../src/guestfs-actions.pod:4098 ../src/guestfs-actions.pod:4121
4364 #: ../src/guestfs-actions.pod:5220 ../src/guestfs-actions.pod:5570
4365 #: ../src/guestfs-actions.pod:5580 ../src/guestfs-actions.pod:5590
4366 msgid "On error this function returns -1."
4367 msgstr ""
4368
4369 # type: =head2
4370 #: ../src/guestfs-actions.pod:240
4371 msgid "guestfs_aug_get"
4372 msgstr ""
4373
4374 # type: verbatim
4375 #: ../src/guestfs-actions.pod:242
4376 #, no-wrap
4377 msgid ""
4378 " char *guestfs_aug_get (guestfs_h *g,\n"
4379 "\t\tconst char *augpath);\n"
4380 "\n"
4381 msgstr ""
4382
4383 # type: textblock
4384 #: ../src/guestfs-actions.pod:245 ../fish/guestfish-actions.pod:184
4385 msgid ""
4386 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4387 "node, the C<value> is returned."
4388 msgstr ""
4389
4390 # type: textblock
4391 #: ../src/guestfs-actions.pod:248 ../src/guestfs-actions.pod:676
4392 #: ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:748
4393 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:852
4394 #: ../src/guestfs-actions.pod:965 ../src/guestfs-actions.pod:994
4395 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1024
4396 #: ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1299
4397 #: ../src/guestfs-actions.pod:1408 ../src/guestfs-actions.pod:1553
4398 #: ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1643
4399 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1795
4400 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:2115
4401 #: ../src/guestfs-actions.pod:2181 ../src/guestfs-actions.pod:2297
4402 #: ../src/guestfs-actions.pod:2332 ../src/guestfs-actions.pod:2352
4403 #: ../src/guestfs-actions.pod:2667 ../src/guestfs-actions.pod:2964
4404 #: ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3201
4405 #: ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3935
4406 #: ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4237
4407 #: ../src/guestfs-actions.pod:4280 ../src/guestfs-actions.pod:4756
4408 #: ../src/guestfs-actions.pod:4769 ../src/guestfs-actions.pod:4783
4409 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5363
4410 #: ../src/guestfs-actions.pod:5379 ../src/guestfs-actions.pod:5394
4411 #: ../src/guestfs-actions.pod:5542 ../src/guestfs-actions.pod:5772
4412 msgid ""
4413 "This function returns a string, or NULL on error.  I<The caller must free "
4414 "the returned string after use>."
4415 msgstr ""
4416
4417 # type: =head2
4418 #: ../src/guestfs-actions.pod:251
4419 msgid "guestfs_aug_init"
4420 msgstr ""
4421
4422 # type: verbatim
4423 #: ../src/guestfs-actions.pod:253
4424 #, no-wrap
4425 msgid ""
4426 " int guestfs_aug_init (guestfs_h *g,\n"
4427 "\t\tconst char *root,\n"
4428 "\t\tint flags);\n"
4429 "\n"
4430 msgstr ""
4431
4432 # type: textblock
4433 #: ../src/guestfs-actions.pod:257 ../fish/guestfish-actions.pod:191
4434 msgid ""
4435 "Create a new Augeas handle for editing configuration files.  If there was "
4436 "any previous Augeas handle associated with this guestfs session, then it is "
4437 "closed."
4438 msgstr ""
4439
4440 # type: textblock
4441 #: ../src/guestfs-actions.pod:261
4442 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4443 msgstr ""
4444
4445 # type: textblock
4446 #: ../src/guestfs-actions.pod:264 ../fish/guestfish-actions.pod:198
4447 msgid ""
4448 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4449 msgstr ""
4450
4451 # type: textblock
4452 #: ../src/guestfs-actions.pod:267 ../fish/guestfish-actions.pod:201
4453 msgid ""
4454 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4455 "logical I<or> of the following integers:"
4456 msgstr ""
4457
4458 # type: =item
4459 #: ../src/guestfs-actions.pod:273 ../fish/guestfish-actions.pod:207
4460 msgid "C<AUG_SAVE_BACKUP> = 1"
4461 msgstr ""
4462
4463 # type: textblock
4464 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:209
4465 msgid "Keep the original file with a C<.augsave> extension."
4466 msgstr ""
4467
4468 # type: =item
4469 #: ../src/guestfs-actions.pod:277 ../fish/guestfish-actions.pod:211
4470 msgid "C<AUG_SAVE_NEWFILE> = 2"
4471 msgstr ""
4472
4473 # type: textblock
4474 #: ../src/guestfs-actions.pod:279 ../fish/guestfish-actions.pod:213
4475 msgid ""
4476 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4477 "original.  Overrides C<AUG_SAVE_BACKUP>."
4478 msgstr ""
4479
4480 # type: =item
4481 #: ../src/guestfs-actions.pod:282 ../fish/guestfish-actions.pod:216
4482 msgid "C<AUG_TYPE_CHECK> = 4"
4483 msgstr ""
4484
4485 # type: textblock
4486 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:218
4487 msgid "Typecheck lenses (can be expensive)."
4488 msgstr ""
4489
4490 # type: =item
4491 #: ../src/guestfs-actions.pod:286 ../fish/guestfish-actions.pod:220
4492 msgid "C<AUG_NO_STDINC> = 8"
4493 msgstr ""
4494
4495 # type: textblock
4496 #: ../src/guestfs-actions.pod:288 ../fish/guestfish-actions.pod:222
4497 msgid "Do not use standard load path for modules."
4498 msgstr ""
4499
4500 # type: =item
4501 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:224
4502 msgid "C<AUG_SAVE_NOOP> = 16"
4503 msgstr ""
4504
4505 # type: textblock
4506 #: ../src/guestfs-actions.pod:292 ../fish/guestfish-actions.pod:226
4507 msgid "Make save a no-op, just record what would have been changed."
4508 msgstr ""
4509
4510 # type: =item
4511 #: ../src/guestfs-actions.pod:294 ../fish/guestfish-actions.pod:228
4512 msgid "C<AUG_NO_LOAD> = 32"
4513 msgstr ""
4514
4515 # type: textblock
4516 #: ../src/guestfs-actions.pod:296
4517 msgid "Do not load the tree in C<guestfs_aug_init>."
4518 msgstr ""
4519
4520 # type: textblock
4521 #: ../src/guestfs-actions.pod:300
4522 msgid "To close the handle, you can call C<guestfs_aug_close>."
4523 msgstr ""
4524
4525 # type: textblock
4526 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:236
4527 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4528 msgstr ""
4529
4530 # type: =head2
4531 #: ../src/guestfs-actions.pod:306
4532 msgid "guestfs_aug_insert"
4533 msgstr ""
4534
4535 # type: verbatim
4536 #: ../src/guestfs-actions.pod:308
4537 #, no-wrap
4538 msgid ""
4539 " int guestfs_aug_insert (guestfs_h *g,\n"
4540 "\t\tconst char *augpath,\n"
4541 "\t\tconst char *label,\n"
4542 "\t\tint before);\n"
4543 "\n"
4544 msgstr ""
4545
4546 # type: textblock
4547 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:242
4548 msgid ""
4549 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4550 "or after C<path> (depending on the boolean flag C<before>)."
4551 msgstr ""
4552
4553 # type: textblock
4554 #: ../src/guestfs-actions.pod:317 ../fish/guestfish-actions.pod:246
4555 msgid ""
4556 "C<path> must match exactly one existing node in the tree, and C<label> must "
4557 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4558 msgstr ""
4559
4560 # type: =head2
4561 #: ../src/guestfs-actions.pod:323
4562 msgid "guestfs_aug_load"
4563 msgstr ""
4564
4565 # type: verbatim
4566 #: ../src/guestfs-actions.pod:325
4567 #, no-wrap
4568 msgid ""
4569 " int guestfs_aug_load (guestfs_h *g);\n"
4570 "\n"
4571 msgstr ""
4572
4573 # type: textblock
4574 #: ../src/guestfs-actions.pod:327 ../fish/guestfish-actions.pod:254
4575 msgid "Load files into the tree."
4576 msgstr ""
4577
4578 # type: textblock
4579 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:256
4580 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4581 msgstr ""
4582
4583 # type: =head2
4584 #: ../src/guestfs-actions.pod:334
4585 msgid "guestfs_aug_ls"
4586 msgstr ""
4587
4588 # type: verbatim
4589 #: ../src/guestfs-actions.pod:336
4590 #, no-wrap
4591 msgid ""
4592 " char **guestfs_aug_ls (guestfs_h *g,\n"
4593 "\t\tconst char *augpath);\n"
4594 "\n"
4595 msgstr ""
4596
4597 # type: textblock
4598 #: ../src/guestfs-actions.pod:339
4599 msgid ""
4600 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4601 "sorting the resulting nodes into alphabetical order."
4602 msgstr ""
4603
4604 # type: textblock
4605 #: ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:355
4606 #: ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:868
4607 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1163
4608 #: ../src/guestfs-actions.pod:1251 ../src/guestfs-actions.pod:1267
4609 #: ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1832
4610 #: ../src/guestfs-actions.pod:1845 ../src/guestfs-actions.pod:1861
4611 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:1919
4612 #: ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021
4613 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2391
4614 #: ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:2652
4615 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3082
4616 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:4053
4617 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4268
4618 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4866
4619 #: ../src/guestfs-actions.pod:4918 ../src/guestfs-actions.pod:5034
4620 #: ../src/guestfs-actions.pod:5055 ../src/guestfs-actions.pod:5455
4621 #: ../src/guestfs-actions.pod:5472 ../src/guestfs-actions.pod:5510
4622 #: ../src/guestfs-actions.pod:5646 ../src/guestfs-actions.pod:5662
4623 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5751
4624 #: ../src/guestfs-actions.pod:5791 ../src/guestfs-actions.pod:5807
4625 msgid ""
4626 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4627 ">), or NULL if there was an error.  I<The caller must free the strings and "
4628 "the array after use>."
4629 msgstr ""
4630
4631 # type: =head2
4632 #: ../src/guestfs-actions.pod:346
4633 msgid "guestfs_aug_match"
4634 msgstr ""
4635
4636 # type: verbatim
4637 #: ../src/guestfs-actions.pod:348
4638 #, no-wrap
4639 msgid ""
4640 " char **guestfs_aug_match (guestfs_h *g,\n"
4641 "\t\tconst char *augpath);\n"
4642 "\n"
4643 msgstr ""
4644
4645 # type: textblock
4646 #: ../src/guestfs-actions.pod:351 ../fish/guestfish-actions.pod:270
4647 msgid ""
4648 "Returns a list of paths which match the path expression C<path>.  The "
4649 "returned paths are sufficiently qualified so that they match exactly one "
4650 "node in the current tree."
4651 msgstr ""
4652
4653 # type: =head2
4654 #: ../src/guestfs-actions.pod:359
4655 msgid "guestfs_aug_mv"
4656 msgstr ""
4657
4658 # type: verbatim
4659 #: ../src/guestfs-actions.pod:361
4660 #, no-wrap
4661 msgid ""
4662 " int guestfs_aug_mv (guestfs_h *g,\n"
4663 "\t\tconst char *src,\n"
4664 "\t\tconst char *dest);\n"
4665 "\n"
4666 msgstr ""
4667
4668 # type: textblock
4669 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:278
4670 msgid ""
4671 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4672 "C<dest> is overwritten if it exists."
4673 msgstr ""
4674
4675 # type: =head2
4676 #: ../src/guestfs-actions.pod:370
4677 msgid "guestfs_aug_rm"
4678 msgstr ""
4679
4680 # type: verbatim
4681 #: ../src/guestfs-actions.pod:372
4682 #, no-wrap
4683 msgid ""
4684 " int guestfs_aug_rm (guestfs_h *g,\n"
4685 "\t\tconst char *augpath);\n"
4686 "\n"
4687 msgstr ""
4688
4689 # type: textblock
4690 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:285
4691 msgid "Remove C<path> and all of its children."
4692 msgstr ""
4693
4694 # type: textblock
4695 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:287
4696 msgid "On success this returns the number of entries which were removed."
4697 msgstr ""
4698
4699 # type: =head2
4700 #: ../src/guestfs-actions.pod:381
4701 msgid "guestfs_aug_save"
4702 msgstr ""
4703
4704 # type: verbatim
4705 #: ../src/guestfs-actions.pod:383
4706 #, no-wrap
4707 msgid ""
4708 " int guestfs_aug_save (guestfs_h *g);\n"
4709 "\n"
4710 msgstr ""
4711
4712 # type: textblock
4713 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:293
4714 msgid "This writes all pending changes to disk."
4715 msgstr ""
4716
4717 # type: textblock
4718 #: ../src/guestfs-actions.pod:387
4719 msgid ""
4720 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4721 "are saved."
4722 msgstr ""
4723
4724 # type: =head2
4725 #: ../src/guestfs-actions.pod:392
4726 msgid "guestfs_aug_set"
4727 msgstr ""
4728
4729 # type: verbatim
4730 #: ../src/guestfs-actions.pod:394
4731 #, no-wrap
4732 msgid ""
4733 " int guestfs_aug_set (guestfs_h *g,\n"
4734 "\t\tconst char *augpath,\n"
4735 "\t\tconst char *val);\n"
4736 "\n"
4737 msgstr ""
4738
4739 # type: textblock
4740 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:302
4741 msgid "Set the value associated with C<path> to C<val>."
4742 msgstr ""
4743
4744 # type: textblock
4745 #: ../src/guestfs-actions.pod:400
4746 msgid ""
4747 "In the Augeas API, it is possible to clear a node by setting the value to "
4748 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4749 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4750 msgstr ""
4751
4752 # type: =head2
4753 #: ../src/guestfs-actions.pod:407
4754 msgid "guestfs_available"
4755 msgstr ""
4756
4757 # type: verbatim
4758 #: ../src/guestfs-actions.pod:409
4759 #, no-wrap
4760 msgid ""
4761 " int guestfs_available (guestfs_h *g,\n"
4762 "\t\tchar *const *groups);\n"
4763 "\n"
4764 msgstr ""
4765
4766 # type: textblock
4767 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:313
4768 msgid ""
4769 "This command is used to check the availability of some groups of "
4770 "functionality in the appliance, which not all builds of the libguestfs "
4771 "appliance will be able to provide."
4772 msgstr ""
4773
4774 # type: textblock
4775 #: ../src/guestfs-actions.pod:416
4776 msgid ""
4777 "The libguestfs groups, and the functions that those groups correspond to, "
4778 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4779 "runtime by calling C<guestfs_available_all_groups>."
4780 msgstr ""
4781
4782 # type: textblock
4783 #: ../src/guestfs-actions.pod:421 ../fish/guestfish-actions.pod:322
4784 msgid ""
4785 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4786 "\"]> would check for the availability of the Linux inotify functions and "
4787 "Augeas (configuration file editing) functions."
4788 msgstr ""
4789
4790 # type: textblock
4791 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:327
4792 msgid "The command returns no error if I<all> requested groups are available."
4793 msgstr ""
4794
4795 # type: textblock
4796 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:329
4797 msgid ""
4798 "It fails with an error if one or more of the requested groups is unavailable "
4799 "in the appliance."
4800 msgstr ""
4801
4802 # type: textblock
4803 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:332
4804 msgid ""
4805 "If an unknown group name is included in the list of groups then an error is "
4806 "always returned."
4807 msgstr ""
4808
4809 # type: textblock
4810 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:335
4811 msgid "I<Notes:>"
4812 msgstr ""
4813
4814 # type: textblock
4815 #: ../src/guestfs-actions.pod:440
4816 msgid "You must call C<guestfs_launch> before calling this function."
4817 msgstr ""
4818
4819 # type: textblock
4820 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:343
4821 msgid ""
4822 "The reason is because we don't know what groups are supported by the "
4823 "appliance/daemon until it is running and can be queried."
4824 msgstr ""
4825
4826 # type: textblock
4827 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:349
4828 msgid ""
4829 "If a group of functions is available, this does not necessarily mean that "
4830 "they will work.  You still have to check for errors when calling individual "
4831 "API functions even if they are available."
4832 msgstr ""
4833
4834 # type: textblock
4835 #: ../src/guestfs-actions.pod:455 ../fish/guestfish-actions.pod:356
4836 msgid ""
4837 "It is usually the job of distro packagers to build complete functionality "
4838 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4839 "with all requirements satisfied, will support everything."
4840 msgstr ""
4841
4842 # type: textblock
4843 #: ../src/guestfs-actions.pod:462
4844 msgid ""
4845 "This call was added in version C<1.0.80>.  In previous versions of "
4846 "libguestfs all you could do would be to speculatively execute a command to "
4847 "find out if the daemon implemented it.  See also C<guestfs_version>."
4848 msgstr ""
4849
4850 # type: =head2
4851 #: ../src/guestfs-actions.pod:471
4852 msgid "guestfs_available_all_groups"
4853 msgstr ""
4854
4855 # type: verbatim
4856 #: ../src/guestfs-actions.pod:473
4857 #, no-wrap
4858 msgid ""
4859 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4860 "\n"
4861 msgstr ""
4862
4863 # type: textblock
4864 #: ../src/guestfs-actions.pod:475
4865 msgid ""
4866 "This command returns a list of all optional groups that this daemon knows "
4867 "about.  Note this returns both supported and unsupported groups.  To find "
4868 "out which ones the daemon can actually support you have to call "
4869 "C<guestfs_available> on each member of the returned list."
4870 msgstr ""
4871
4872 # type: textblock
4873 #: ../src/guestfs-actions.pod:481
4874 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4875 msgstr ""
4876
4877 # type: =head2
4878 #: ../src/guestfs-actions.pod:487
4879 msgid "guestfs_base64_in"
4880 msgstr ""
4881
4882 # type: verbatim
4883 #: ../src/guestfs-actions.pod:489
4884 #, no-wrap
4885 msgid ""
4886 " int guestfs_base64_in (guestfs_h *g,\n"
4887 "\t\tconst char *base64file,\n"
4888 "\t\tconst char *filename);\n"
4889 "\n"
4890 msgstr ""
4891
4892 # type: textblock
4893 #: ../src/guestfs-actions.pod:493 ../fish/guestfish-actions.pod:386
4894 msgid ""
4895 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4896 msgstr ""
4897
4898 # type: =head2
4899 #: ../src/guestfs-actions.pod:498
4900 msgid "guestfs_base64_out"
4901 msgstr ""
4902
4903 # type: verbatim
4904 #: ../src/guestfs-actions.pod:500
4905 #, no-wrap
4906 msgid ""
4907 " int guestfs_base64_out (guestfs_h *g,\n"
4908 "\t\tconst char *filename,\n"
4909 "\t\tconst char *base64file);\n"
4910 "\n"
4911 msgstr ""
4912
4913 # type: textblock
4914 #: ../src/guestfs-actions.pod:504 ../fish/guestfish-actions.pod:395
4915 msgid ""
4916 "This command downloads the contents of C<filename>, writing it out to local "
4917 "file C<base64file> encoded as base64."
4918 msgstr ""
4919
4920 # type: =head2
4921 #: ../src/guestfs-actions.pod:509
4922 msgid "guestfs_blockdev_flushbufs"
4923 msgstr ""
4924
4925 # type: verbatim
4926 #: ../src/guestfs-actions.pod:511
4927 #, no-wrap
4928 msgid ""
4929 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4930 "\t\tconst char *device);\n"
4931 "\n"
4932 msgstr ""
4933
4934 # type: textblock
4935 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:404
4936 msgid ""
4937 "This tells the kernel to flush internal buffers associated with C<device>."
4938 msgstr ""
4939
4940 # type: textblock
4941 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531
4942 #: ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:556
4943 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:587
4944 #: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:613
4945 #: ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:635
4946 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418
4947 #: ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437
4948 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462
4949 #: ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481
4950 #: ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
4951 msgid "This uses the L<blockdev(8)> command."
4952 msgstr ""
4953
4954 # type: =head2
4955 #: ../src/guestfs-actions.pod:521
4956 msgid "guestfs_blockdev_getbsz"
4957 msgstr ""
4958
4959 # type: verbatim
4960 #: ../src/guestfs-actions.pod:523
4961 #, no-wrap
4962 msgid ""
4963 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4964 "\t\tconst char *device);\n"
4965 "\n"
4966 msgstr ""
4967
4968 # type: textblock
4969 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:413
4970 msgid "This returns the block size of a device."
4971 msgstr ""
4972
4973 # type: textblock
4974 #: ../src/guestfs-actions.pod:528 ../src/guestfs-actions.pod:610
4975 #: ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4976 msgid ""
4977 "(Note this is different from both I<size in blocks> and I<filesystem block "
4978 "size>)."
4979 msgstr ""
4980
4981 # type: =head2
4982 #: ../src/guestfs-actions.pod:535
4983 msgid "guestfs_blockdev_getro"
4984 msgstr ""
4985
4986 # type: verbatim
4987 #: ../src/guestfs-actions.pod:537
4988 #, no-wrap
4989 msgid ""
4990 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4991 "\t\tconst char *device);\n"
4992 "\n"
4993 msgstr ""
4994
4995 # type: textblock
4996 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:424
4997 msgid ""
4998 "Returns a boolean indicating if the block device is read-only (true if read-"
4999 "only, false if not)."
5000 msgstr ""
5001
5002 # type: textblock
5003 #: ../src/guestfs-actions.pod:545 ../src/guestfs-actions.pod:1181
5004 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1625
5005 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1693
5006 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1748
5007 #: ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1784
5008 #: ../src/guestfs-actions.pod:2405 ../src/guestfs-actions.pod:2416
5009 #: ../src/guestfs-actions.pod:2428 ../src/guestfs-actions.pod:2439
5010 #: ../src/guestfs-actions.pod:2452 ../src/guestfs-actions.pod:2464
5011 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2488
5012 #: ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:2509
5013 #: ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2533
5014 #: ../src/guestfs-actions.pod:3729
5015 msgid "This function returns a C truth value on success or -1 on error."
5016 msgstr ""
5017
5018 # type: =head2
5019 #: ../src/guestfs-actions.pod:547
5020 msgid "guestfs_blockdev_getsize64"
5021 msgstr ""
5022
5023 # type: verbatim
5024 #: ../src/guestfs-actions.pod:549
5025 #, no-wrap
5026 msgid ""
5027 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5028 "\t\tconst char *device);\n"
5029 "\n"
5030 msgstr ""
5031
5032 # type: textblock
5033 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:433
5034 msgid "This returns the size of the device in bytes."
5035 msgstr ""
5036
5037 # type: textblock
5038 #: ../src/guestfs-actions.pod:554
5039 msgid "See also C<guestfs_blockdev_getsz>."
5040 msgstr ""
5041
5042 # type: =head2
5043 #: ../src/guestfs-actions.pod:560
5044 msgid "guestfs_blockdev_getss"
5045 msgstr ""
5046
5047 # type: verbatim
5048 #: ../src/guestfs-actions.pod:562
5049 #, no-wrap
5050 msgid ""
5051 " int guestfs_blockdev_getss (guestfs_h *g,\n"
5052 "\t\tconst char *device);\n"
5053 "\n"
5054 msgstr ""
5055
5056 # type: textblock
5057 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:443
5058 msgid ""
5059 "This returns the size of sectors on a block device.  Usually 512, but can be "
5060 "larger for modern devices."
5061 msgstr ""
5062
5063 # type: textblock
5064 #: ../src/guestfs-actions.pod:568
5065 msgid ""
5066 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5067 "that)."
5068 msgstr ""
5069
5070 # type: =head2
5071 #: ../src/guestfs-actions.pod:575
5072 msgid "guestfs_blockdev_getsz"
5073 msgstr ""
5074
5075 # type: verbatim
5076 #: ../src/guestfs-actions.pod:577
5077 #, no-wrap
5078 msgid ""
5079 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
5080 "\t\tconst char *device);\n"
5081 "\n"
5082 msgstr ""
5083
5084 # type: textblock
5085 #: ../src/guestfs-actions.pod:580 ../fish/guestfish-actions.pod:455
5086 msgid ""
5087 "This returns the size of the device in units of 512-byte sectors (even if "
5088 "the sectorsize isn't 512 bytes ... weird)."
5089 msgstr ""
5090
5091 # type: textblock
5092 #: ../src/guestfs-actions.pod:583
5093 msgid ""
5094 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5095 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5096 msgstr ""
5097
5098 # type: =head2
5099 #: ../src/guestfs-actions.pod:591
5100 msgid "guestfs_blockdev_rereadpt"
5101 msgstr ""
5102
5103 # type: verbatim
5104 #: ../src/guestfs-actions.pod:593
5105 #, no-wrap
5106 msgid ""
5107 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5108 "\t\tconst char *device);\n"
5109 "\n"
5110 msgstr ""
5111
5112 # type: textblock
5113 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:468
5114 msgid "Reread the partition table on C<device>."
5115 msgstr ""
5116
5117 # type: =head2
5118 #: ../src/guestfs-actions.pod:602
5119 msgid "guestfs_blockdev_setbsz"
5120 msgstr ""
5121
5122 # type: verbatim
5123 #: ../src/guestfs-actions.pod:604
5124 #, no-wrap
5125 msgid ""
5126 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
5127 "\t\tconst char *device,\n"
5128 "\t\tint blocksize);\n"
5129 "\n"
5130 msgstr ""
5131
5132 # type: textblock
5133 #: ../src/guestfs-actions.pod:608 ../fish/guestfish-actions.pod:476
5134 msgid "This sets the block size of a device."
5135 msgstr ""
5136
5137 # type: =head2
5138 #: ../src/guestfs-actions.pod:617
5139 msgid "guestfs_blockdev_setro"
5140 msgstr ""
5141
5142 # type: verbatim
5143 #: ../src/guestfs-actions.pod:619
5144 #, no-wrap
5145 msgid ""
5146 " int guestfs_blockdev_setro (guestfs_h *g,\n"
5147 "\t\tconst char *device);\n"
5148 "\n"
5149 msgstr ""
5150
5151 # type: textblock
5152 #: ../src/guestfs-actions.pod:622 ../fish/guestfish-actions.pod:487
5153 msgid "Sets the block device named C<device> to read-only."
5154 msgstr ""
5155
5156 # type: =head2
5157 #: ../src/guestfs-actions.pod:628
5158 msgid "guestfs_blockdev_setrw"
5159 msgstr ""
5160
5161 # type: verbatim
5162 #: ../src/guestfs-actions.pod:630
5163 #, no-wrap
5164 msgid ""
5165 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
5166 "\t\tconst char *device);\n"
5167 "\n"
5168 msgstr ""
5169
5170 # type: textblock
5171 #: ../src/guestfs-actions.pod:633 ../fish/guestfish-actions.pod:495
5172 msgid "Sets the block device named C<device> to read-write."
5173 msgstr ""
5174
5175 # type: =head2
5176 #: ../src/guestfs-actions.pod:639
5177 msgid "guestfs_case_sensitive_path"
5178 msgstr ""
5179
5180 # type: verbatim
5181 #: ../src/guestfs-actions.pod:641
5182 #, no-wrap
5183 msgid ""
5184 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
5185 "\t\tconst char *path);\n"
5186 "\n"
5187 msgstr ""
5188
5189 # type: textblock
5190 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:503
5191 msgid ""
5192 "This can be used to resolve case insensitive paths on a filesystem which is "
5193 "case sensitive.  The use case is to resolve paths which you have read from "
5194 "Windows configuration files or the Windows Registry, to the true path."
5195 msgstr ""
5196
5197 # type: textblock
5198 #: ../src/guestfs-actions.pod:649 ../fish/guestfish-actions.pod:508
5199 msgid ""
5200 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5201 "(and probably others), which is that although the underlying filesystem is "
5202 "case-insensitive, the driver exports the filesystem to Linux as case-"
5203 "sensitive."
5204 msgstr ""
5205
5206 # type: textblock
5207 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:513
5208 msgid ""
5209 "One consequence of this is that special directories such as C<c:\\windows> "
5210 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5211 "precise details of how they were created.  In Windows itself this would not "
5212 "be a problem."
5213 msgstr ""
5214
5215 # type: textblock
5216 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:519
5217 msgid ""
5218 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5219 "#posixfilenames1>"
5220 msgstr ""
5221
5222 # type: textblock
5223 #: ../src/guestfs-actions.pod:663 ../fish/guestfish-actions.pod:522
5224 msgid ""
5225 "This function resolves the true case of each element in the path and returns "
5226 "the case-sensitive path."
5227 msgstr ""
5228
5229 # type: textblock
5230 #: ../src/guestfs-actions.pod:666
5231 msgid ""
5232 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5233 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5234 "how the directories were originally created under Windows)."
5235 msgstr ""
5236
5237 # type: textblock
5238 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:530
5239 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5240 msgstr ""
5241
5242 # type: textblock
5243 #: ../src/guestfs-actions.pod:674
5244 msgid "See also C<guestfs_realpath>."
5245 msgstr ""
5246
5247 # type: =head2
5248 #: ../src/guestfs-actions.pod:679
5249 msgid "guestfs_cat"
5250 msgstr ""
5251
5252 # type: verbatim
5253 #: ../src/guestfs-actions.pod:681
5254 #, no-wrap
5255 msgid ""
5256 " char *guestfs_cat (guestfs_h *g,\n"
5257 "\t\tconst char *path);\n"
5258 "\n"
5259 msgstr ""
5260
5261 # type: textblock
5262 #: ../src/guestfs-actions.pod:684 ../src/guestfs-actions.pod:4152
5263 #: ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3193
5264 msgid "Return the contents of the file named C<path>."
5265 msgstr ""
5266
5267 # type: textblock
5268 #: ../src/guestfs-actions.pod:686
5269 msgid ""
5270 "Note that this function cannot correctly handle binary files (specifically, "
5271 "files containing C<\\0> character which is treated as end of string).  For "
5272 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5273 "functions which have a more complex interface."
5274 msgstr ""
5275
5276 # type: textblock
5277 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:855
5278 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1151
5279 #: ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1255
5280 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1502
5281 #: ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:1865
5282 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1923
5283 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:1963
5284 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3992
5285 #: ../src/guestfs-actions.pod:4100 ../src/guestfs-actions.pod:4123
5286 #: ../src/guestfs-actions.pod:4144 ../src/guestfs-actions.pod:4870
5287 #: ../src/guestfs-actions.pod:4922 ../src/guestfs-actions.pod:5038
5288 #: ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:5604
5289 #: ../src/guestfs-actions.pod:5627 ../src/guestfs-actions.pod:5650
5290 #: ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:5739
5291 #: ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:5795
5292 #: ../src/guestfs-actions.pod:5811 ../fish/guestfish-actions.pod:546
5293 #: ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693
5294 #: ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904
5295 #: ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981
5296 #: ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451
5297 #: ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489
5298 #: ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514
5299 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3063
5300 #: ../fish/guestfish-actions.pod:3078 ../fish/guestfish-actions.pod:3154
5301 #: ../fish/guestfish-actions.pod:3171 ../fish/guestfish-actions.pod:3186
5302 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3815
5303 #: ../fish/guestfish-actions.pod:3900 ../fish/guestfish-actions.pod:3915
5304 #: ../fish/guestfish-actions.pod:4325 ../fish/guestfish-actions.pod:4343
5305 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4370
5306 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4428
5307 #: ../fish/guestfish-actions.pod:4457 ../fish/guestfish-actions.pod:4467
5308 msgid ""
5309 "Because of the message protocol, there is a transfer limit of somewhere "
5310 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5311 msgstr ""
5312
5313 # type: =head2
5314 #: ../src/guestfs-actions.pod:697
5315 msgid "guestfs_checksum"
5316 msgstr ""
5317
5318 # type: verbatim
5319 #: ../src/guestfs-actions.pod:699
5320 #, no-wrap
5321 msgid ""
5322 " char *guestfs_checksum (guestfs_h *g,\n"
5323 "\t\tconst char *csumtype,\n"
5324 "\t\tconst char *path);\n"
5325 "\n"
5326 msgstr ""
5327
5328 # type: textblock
5329 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:553
5330 msgid ""
5331 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5332 msgstr ""
5333
5334 # type: textblock
5335 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:556
5336 msgid ""
5337 "The type of checksum to compute is given by the C<csumtype> parameter which "
5338 "must have one of the following values:"
5339 msgstr ""
5340
5341 # type: =item
5342 #: ../src/guestfs-actions.pod:711 ../fish/guestfish-actions.pod:561
5343 msgid "C<crc>"
5344 msgstr ""
5345
5346 # type: textblock
5347 #: ../src/guestfs-actions.pod:713 ../fish/guestfish-actions.pod:563
5348 msgid ""
5349 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5350 "C<cksum> command."
5351 msgstr ""
5352
5353 # type: =item
5354 #: ../src/guestfs-actions.pod:716 ../fish/guestfish-actions.pod:566
5355 msgid "C<md5>"
5356 msgstr ""
5357
5358 # type: textblock
5359 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:568
5360 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5361 msgstr ""
5362
5363 # type: =item
5364 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:570
5365 msgid "C<sha1>"
5366 msgstr ""
5367
5368 # type: textblock
5369 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:572
5370 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5371 msgstr ""
5372
5373 # type: =item
5374 #: ../src/guestfs-actions.pod:724 ../fish/guestfish-actions.pod:574
5375 msgid "C<sha224>"
5376 msgstr ""
5377
5378 # type: textblock
5379 #: ../src/guestfs-actions.pod:726 ../fish/guestfish-actions.pod:576
5380 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5381 msgstr ""
5382
5383 # type: =item
5384 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:578
5385 msgid "C<sha256>"
5386 msgstr ""
5387
5388 # type: textblock
5389 #: ../src/guestfs-actions.pod:730 ../fish/guestfish-actions.pod:580
5390 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5391 msgstr ""
5392
5393 # type: =item
5394 #: ../src/guestfs-actions.pod:732 ../fish/guestfish-actions.pod:582
5395 msgid "C<sha384>"
5396 msgstr ""
5397
5398 # type: textblock
5399 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:584
5400 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5401 msgstr ""
5402
5403 # type: =item
5404 #: ../src/guestfs-actions.pod:736 ../fish/guestfish-actions.pod:586
5405 msgid "C<sha512>"
5406 msgstr ""
5407
5408 # type: textblock
5409 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:588
5410 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5411 msgstr ""
5412
5413 # type: textblock
5414 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:592
5415 msgid "The checksum is returned as a printable string."
5416 msgstr ""
5417
5418 # type: textblock
5419 #: ../src/guestfs-actions.pod:744
5420 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5421 msgstr ""
5422
5423 # type: textblock
5424 #: ../src/guestfs-actions.pod:746
5425 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5426 msgstr ""
5427
5428 # type: =head2
5429 #: ../src/guestfs-actions.pod:751
5430 msgid "guestfs_checksum_device"
5431 msgstr ""
5432
5433 # type: verbatim
5434 #: ../src/guestfs-actions.pod:753
5435 #, no-wrap
5436 msgid ""
5437 " char *guestfs_checksum_device (guestfs_h *g,\n"
5438 "\t\tconst char *csumtype,\n"
5439 "\t\tconst char *device);\n"
5440 "\n"
5441 msgstr ""
5442
5443 # type: textblock
5444 #: ../src/guestfs-actions.pod:757
5445 msgid ""
5446 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5447 "device named C<device>.  For the types of checksums supported see the "
5448 "C<guestfs_checksum> command."
5449 msgstr ""
5450
5451 # type: =head2
5452 #: ../src/guestfs-actions.pod:764
5453 msgid "guestfs_checksums_out"
5454 msgstr ""
5455
5456 # type: verbatim
5457 #: ../src/guestfs-actions.pod:766
5458 #, no-wrap
5459 msgid ""
5460 " int guestfs_checksums_out (guestfs_h *g,\n"
5461 "\t\tconst char *csumtype,\n"
5462 "\t\tconst char *directory,\n"
5463 "\t\tconst char *sumsfile);\n"
5464 "\n"
5465 msgstr ""
5466
5467 # type: textblock
5468 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:610
5469 msgid ""
5470 "This command computes the checksums of all regular files in C<directory> and "
5471 "then emits a list of those checksums to the local output file C<sumsfile>."
5472 msgstr ""
5473
5474 # type: textblock
5475 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:614
5476 msgid ""
5477 "This can be used for verifying the integrity of a virtual machine.  However "
5478 "to be properly secure you should pay attention to the output of the checksum "
5479 "command (it uses the ones from GNU coreutils).  In particular when the "
5480 "filename is not printable, coreutils uses a special backslash syntax.  For "
5481 "more information, see the GNU coreutils info file."
5482 msgstr ""
5483
5484 # type: =head2
5485 #: ../src/guestfs-actions.pod:785
5486 msgid "guestfs_chmod"
5487 msgstr ""
5488
5489 # type: verbatim
5490 #: ../src/guestfs-actions.pod:787
5491 #, no-wrap
5492 msgid ""
5493 " int guestfs_chmod (guestfs_h *g,\n"
5494 "\t\tint mode,\n"
5495 "\t\tconst char *path);\n"
5496 "\n"
5497 msgstr ""
5498
5499 # type: textblock
5500 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:628
5501 msgid ""
5502 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5503 "supported."
5504 msgstr ""
5505
5506 # type: textblock
5507 #: ../src/guestfs-actions.pod:794 ../fish/guestfish-actions.pod:631
5508 msgid ""
5509 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5510 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5511 "C<700>."
5512 msgstr ""
5513
5514 # type: textblock
5515 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:3297
5516 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3416
5517 #: ../src/guestfs-actions.pod:3432 ../fish/guestfish-actions.pod:635
5518 #: ../fish/guestfish-actions.pod:2553 ../fish/guestfish-actions.pod:2638
5519 #: ../fish/guestfish-actions.pod:2648 ../fish/guestfish-actions.pod:2658
5520 msgid "The mode actually set is affected by the umask."
5521 msgstr ""
5522
5523 # type: =head2
5524 #: ../src/guestfs-actions.pod:802
5525 msgid "guestfs_chown"
5526 msgstr ""
5527
5528 # type: verbatim
5529 #: ../src/guestfs-actions.pod:804
5530 #, no-wrap
5531 msgid ""
5532 " int guestfs_chown (guestfs_h *g,\n"
5533 "\t\tint owner,\n"
5534 "\t\tint group,\n"
5535 "\t\tconst char *path);\n"
5536 "\n"
5537 msgstr ""
5538
5539 # type: textblock
5540 #: ../src/guestfs-actions.pod:809 ../fish/guestfish-actions.pod:641
5541 msgid "Change the file owner to C<owner> and group to C<group>."
5542 msgstr ""
5543
5544 # type: textblock
5545 #: ../src/guestfs-actions.pod:811 ../src/guestfs-actions.pod:2566
5546 #: ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2031
5547 msgid ""
5548 "Only numeric uid and gid are supported.  If you want to use names, you will "
5549 "need to locate and parse the password file yourself (Augeas support makes "
5550 "this relatively easy)."
5551 msgstr ""
5552
5553 # type: =head2
5554 #: ../src/guestfs-actions.pod:817
5555 msgid "guestfs_command"
5556 msgstr ""
5557
5558 # type: verbatim
5559 #: ../src/guestfs-actions.pod:819
5560 #, no-wrap
5561 msgid ""
5562 " char *guestfs_command (guestfs_h *g,\n"
5563 "\t\tchar *const *arguments);\n"
5564 "\n"
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:651
5569 msgid ""
5570 "This call runs a command from the guest filesystem.  The filesystem must be "
5571 "mounted, and must contain a compatible operating system (ie. something "
5572 "Linux, with the same or compatible processor architecture)."
5573 msgstr ""
5574
5575 # type: textblock
5576 #: ../src/guestfs-actions.pod:827
5577 msgid ""
5578 "The single parameter is an argv-style list of arguments.  The first element "
5579 "is the name of the program to run.  Subsequent elements are parameters.  The "
5580 "list must be non-empty (ie. must contain a program name).  Note that the "
5581 "command runs directly, and is I<not> invoked via the shell (see "
5582 "C<guestfs_sh>)."
5583 msgstr ""
5584
5585 # type: textblock
5586 #: ../src/guestfs-actions.pod:834 ../fish/guestfish-actions.pod:663
5587 msgid "The return value is anything printed to I<stdout> by the command."
5588 msgstr ""
5589
5590 # type: textblock
5591 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:666
5592 msgid ""
5593 "If the command returns a non-zero exit status, then this function returns an "
5594 "error message.  The error message string is the content of I<stderr> from "
5595 "the command."
5596 msgstr ""
5597
5598 # type: textblock
5599 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:670
5600 msgid ""
5601 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5602 "bin>.  If you require a program from another location, you should provide "
5603 "the full path in the first parameter."
5604 msgstr ""
5605
5606 # type: textblock
5607 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:675
5608 msgid ""
5609 "Shared libraries and data files required by the program must be available on "
5610 "filesystems which are mounted in the correct places.  It is the caller's "
5611 "responsibility to ensure all filesystems that are needed are mounted at the "
5612 "right locations."
5613 msgstr ""
5614
5615 # type: =head2
5616 #: ../src/guestfs-actions.pod:858
5617 msgid "guestfs_command_lines"
5618 msgstr ""
5619
5620 # type: verbatim
5621 #: ../src/guestfs-actions.pod:860
5622 #, no-wrap
5623 msgid ""
5624 " char **guestfs_command_lines (guestfs_h *g,\n"
5625 "\t\tchar *const *arguments);\n"
5626 "\n"
5627 msgstr ""
5628
5629 # type: textblock
5630 #: ../src/guestfs-actions.pod:863
5631 msgid ""
5632 "This is the same as C<guestfs_command>, but splits the result into a list of "
5633 "lines."
5634 msgstr ""
5635
5636 # type: textblock
5637 #: ../src/guestfs-actions.pod:866
5638 msgid "See also: C<guestfs_sh_lines>"
5639 msgstr ""
5640
5641 # type: =head2
5642 #: ../src/guestfs-actions.pod:875
5643 msgid "guestfs_config"
5644 msgstr ""
5645
5646 # type: verbatim
5647 #: ../src/guestfs-actions.pod:877
5648 #, no-wrap
5649 msgid ""
5650 " int guestfs_config (guestfs_h *g,\n"
5651 "\t\tconst char *qemuparam,\n"
5652 "\t\tconst char *qemuvalue);\n"
5653 "\n"
5654 msgstr ""
5655
5656 # type: textblock
5657 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:700
5658 msgid ""
5659 "This can be used to add arbitrary qemu command line parameters of the form "
5660 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5661 "setting some parameters which would interfere with parameters that we use."
5662 msgstr ""
5663
5664 # type: textblock
5665 #: ../src/guestfs-actions.pod:886 ../fish/guestfish-actions.pod:705
5666 msgid "The first character of C<param> string must be a C<-> (dash)."
5667 msgstr ""
5668
5669 # type: textblock
5670 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:707
5671 msgid "C<value> can be NULL."
5672 msgstr ""
5673
5674 # type: =head2
5675 #: ../src/guestfs-actions.pod:892
5676 msgid "guestfs_copy_size"
5677 msgstr ""
5678
5679 # type: verbatim
5680 #: ../src/guestfs-actions.pod:894
5681 #, no-wrap
5682 msgid ""
5683 " int guestfs_copy_size (guestfs_h *g,\n"
5684 "\t\tconst char *src,\n"
5685 "\t\tconst char *dest,\n"
5686 "\t\tint64_t size);\n"
5687 "\n"
5688 msgstr ""
5689
5690 # type: textblock
5691 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:713
5692 msgid ""
5693 "This command copies exactly C<size> bytes from one source device or file "
5694 "C<src> to another destination device or file C<dest>."
5695 msgstr ""
5696
5697 # type: textblock
5698 #: ../src/guestfs-actions.pod:902 ../fish/guestfish-actions.pod:716
5699 msgid ""
5700 "Note this will fail if the source is too short or if the destination is not "
5701 "large enough."
5702 msgstr ""
5703
5704 # type: textblock
5705 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:1042
5706 #: ../src/guestfs-actions.pod:1070 ../src/guestfs-actions.pod:1442
5707 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:5684
5708 #: ../src/guestfs-actions.pod:5700
5709 msgid ""
5710 "This long-running command can generate progress notification messages so "
5711 "that the caller can display a progress bar or indicator.  To receive these "
5712 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
5713 "guestfs_set_progress_callback>."
5714 msgstr ""
5715
5716 # type: =head2
5717 #: ../src/guestfs-actions.pod:912
5718 msgid "guestfs_cp"
5719 msgstr ""
5720
5721 # type: verbatim
5722 #: ../src/guestfs-actions.pod:914
5723 #, no-wrap
5724 msgid ""
5725 " int guestfs_cp (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:918 ../fish/guestfish-actions.pod:723
5733 msgid ""
5734 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5735 "destination filename or destination directory."
5736 msgstr ""
5737
5738 # type: =head2
5739 #: ../src/guestfs-actions.pod:923
5740 msgid "guestfs_cp_a"
5741 msgstr ""
5742
5743 # type: verbatim
5744 #: ../src/guestfs-actions.pod:925
5745 #, no-wrap
5746 msgid ""
5747 " int guestfs_cp_a (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:929 ../fish/guestfish-actions.pod:730
5755 msgid ""
5756 "This copies a file or directory from C<src> to C<dest> recursively using the "
5757 "C<cp -a> command."
5758 msgstr ""
5759
5760 # type: =head2
5761 #: ../src/guestfs-actions.pod:934
5762 msgid "guestfs_dd"
5763 msgstr ""
5764
5765 # type: verbatim
5766 #: ../src/guestfs-actions.pod:936
5767 #, no-wrap
5768 msgid ""
5769 " int guestfs_dd (guestfs_h *g,\n"
5770 "\t\tconst char *src,\n"
5771 "\t\tconst char *dest);\n"
5772 "\n"
5773 msgstr ""
5774
5775 # type: textblock
5776 #: ../src/guestfs-actions.pod:940 ../fish/guestfish-actions.pod:737
5777 msgid ""
5778 "This command copies from one source device or file C<src> to another "
5779 "destination device or file C<dest>.  Normally you would use this to copy to "
5780 "or from a device or partition, for example to duplicate a filesystem."
5781 msgstr ""
5782
5783 # type: textblock
5784 #: ../src/guestfs-actions.pod:945
5785 msgid ""
5786 "If the destination is a device, it must be as large or larger than the "
5787 "source file or device, otherwise the copy will fail.  This command cannot do "
5788 "partial copies (see C<guestfs_copy_size>)."
5789 msgstr ""
5790
5791 # type: =head2
5792 #: ../src/guestfs-actions.pod:951
5793 msgid "guestfs_debug"
5794 msgstr ""
5795
5796 # type: verbatim
5797 #: ../src/guestfs-actions.pod:953
5798 #, no-wrap
5799 msgid ""
5800 " char *guestfs_debug (guestfs_h *g,\n"
5801 "\t\tconst char *subcmd,\n"
5802 "\t\tchar *const *extraargs);\n"
5803 "\n"
5804 msgstr ""
5805
5806 # type: textblock
5807 #: ../src/guestfs-actions.pod:957
5808 msgid ""
5809 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5810 "guestfs daemon) that runs inside the qemu subprocess."
5811 msgstr ""
5812
5813 # type: textblock
5814 #: ../src/guestfs-actions.pod:961 ../fish/guestfish-actions.pod:754
5815 msgid ""
5816 "There is no comprehensive help for this command.  You have to look at the "
5817 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5818 msgstr ""
5819
5820 # type: =head2
5821 #: ../src/guestfs-actions.pod:968
5822 msgid "guestfs_debug_upload"
5823 msgstr ""
5824
5825 # type: verbatim
5826 #: ../src/guestfs-actions.pod:970
5827 #, no-wrap
5828 msgid ""
5829 " int guestfs_debug_upload (guestfs_h *g,\n"
5830 "\t\tconst char *filename,\n"
5831 "\t\tconst char *tmpname,\n"
5832 "\t\tint mode);\n"
5833 "\n"
5834 msgstr ""
5835
5836 # type: textblock
5837 #: ../src/guestfs-actions.pod:975
5838 msgid ""
5839 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5840 "appliance."
5841 msgstr ""
5842
5843 # type: textblock
5844 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:765
5845 msgid ""
5846 "There is no comprehensive help for this command.  You have to look at the "
5847 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5848 msgstr ""
5849
5850 # type: =head2
5851 #: ../src/guestfs-actions.pod:984
5852 msgid "guestfs_df"
5853 msgstr ""
5854
5855 # type: verbatim
5856 #: ../src/guestfs-actions.pod:986
5857 #, no-wrap
5858 msgid ""
5859 " char *guestfs_df (guestfs_h *g);\n"
5860 "\n"
5861 msgstr ""
5862
5863 # type: textblock
5864 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:775
5865 msgid "This command runs the C<df> command to report disk space used."
5866 msgstr ""
5867
5868 # type: textblock
5869 #: ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1004
5870 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5871 msgid ""
5872 "This command is mostly useful for interactive sessions.  It is I<not> "
5873 "intended that you try to parse the output string.  Use C<statvfs> from "
5874 "programs."
5875 msgstr ""
5876
5877 # type: =head2
5878 #: ../src/guestfs-actions.pod:997
5879 msgid "guestfs_df_h"
5880 msgstr ""
5881
5882 # type: verbatim
5883 #: ../src/guestfs-actions.pod:999
5884 #, no-wrap
5885 msgid ""
5886 " char *guestfs_df_h (guestfs_h *g);\n"
5887 "\n"
5888 msgstr ""
5889
5890 # type: textblock
5891 #: ../src/guestfs-actions.pod:1001 ../fish/guestfish-actions.pod:785
5892 msgid ""
5893 "This command runs the C<df -h> command to report disk space used in human-"
5894 "readable format."
5895 msgstr ""
5896
5897 # type: =head2
5898 #: ../src/guestfs-actions.pod:1011
5899 msgid "guestfs_dmesg"
5900 msgstr ""
5901
5902 # type: verbatim
5903 #: ../src/guestfs-actions.pod:1013
5904 #, no-wrap
5905 msgid ""
5906 " char *guestfs_dmesg (guestfs_h *g);\n"
5907 "\n"
5908 msgstr ""
5909
5910 # type: textblock
5911 #: ../src/guestfs-actions.pod:1015 ../fish/guestfish-actions.pod:796
5912 msgid ""
5913 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5914 "This is sometimes useful for extended debugging of problems."
5915 msgstr ""
5916
5917 # type: textblock
5918 #: ../src/guestfs-actions.pod:1019
5919 msgid ""
5920 "Another way to get the same information is to enable verbose messages with "
5921 "C<guestfs_set_verbose> or by setting the environment variable "
5922 "C<LIBGUESTFS_DEBUG=1> before running the program."
5923 msgstr ""
5924
5925 # type: =head2
5926 #: ../src/guestfs-actions.pod:1027
5927 msgid "guestfs_download"
5928 msgstr ""
5929
5930 # type: verbatim
5931 #: ../src/guestfs-actions.pod:1029
5932 #, no-wrap
5933 msgid ""
5934 " int guestfs_download (guestfs_h *g,\n"
5935 "\t\tconst char *remotefilename,\n"
5936 "\t\tconst char *filename);\n"
5937 "\n"
5938 msgstr ""
5939
5940 # type: textblock
5941 #: ../src/guestfs-actions.pod:1033 ../src/guestfs-actions.pod:1055
5942 #: ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5943 msgid ""
5944 "Download file C<remotefilename> and save it as C<filename> on the local "
5945 "machine."
5946 msgstr ""
5947
5948 # type: textblock
5949 #: ../src/guestfs-actions.pod:1036 ../src/guestfs-actions.pod:5252
5950 #: ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4073
5951 msgid "C<filename> can also be a named pipe."
5952 msgstr ""
5953
5954 # type: textblock
5955 #: ../src/guestfs-actions.pod:1038
5956 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5957 msgstr ""
5958
5959 # type: =head2
5960 #: ../src/guestfs-actions.pod:1047
5961 msgid "guestfs_download_offset"
5962 msgstr ""
5963
5964 # type: verbatim
5965 #: ../src/guestfs-actions.pod:1049
5966 #, no-wrap
5967 msgid ""
5968 " int guestfs_download_offset (guestfs_h *g,\n"
5969 "\t\tconst char *remotefilename,\n"
5970 "\t\tconst char *filename,\n"
5971 "\t\tint64_t offset,\n"
5972 "\t\tint64_t size);\n"
5973 "\n"
5974 msgstr ""
5975
5976 # type: textblock
5977 #: ../src/guestfs-actions.pod:1058 ../fish/guestfish-actions.pod:825
5978 msgid ""
5979 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5980 "region must be within the file or device)."
5981 msgstr ""
5982
5983 # type: textblock
5984 #: ../src/guestfs-actions.pod:1061
5985 msgid ""
5986 "Note that there is no limit on the amount of data that can be downloaded "
5987 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5988 "full amount unless an error occurs."
5989 msgstr ""
5990
5991 # type: textblock
5992 #: ../src/guestfs-actions.pod:1066
5993 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5994 msgstr ""
5995
5996 # type: =head2
5997 #: ../src/guestfs-actions.pod:1075
5998 msgid "guestfs_drop_caches"
5999 msgstr ""
6000
6001 # type: verbatim
6002 #: ../src/guestfs-actions.pod:1077
6003 #, no-wrap
6004 msgid ""
6005 " int guestfs_drop_caches (guestfs_h *g,\n"
6006 "\t\tint whattodrop);\n"
6007 "\n"
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:1080 ../fish/guestfish-actions.pod:841
6012 msgid ""
6013 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6014 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6015 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6016 msgstr ""
6017
6018 # type: textblock
6019 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:846
6020 msgid "Setting C<whattodrop> to 3 should drop everything."
6021 msgstr ""
6022
6023 # type: textblock
6024 #: ../src/guestfs-actions.pod:1087 ../fish/guestfish-actions.pod:848
6025 msgid ""
6026 "This automatically calls L<sync(2)> before the operation, so that the "
6027 "maximum guest memory is freed."
6028 msgstr ""
6029
6030 # type: =head2
6031 #: ../src/guestfs-actions.pod:1092
6032 msgid "guestfs_du"
6033 msgstr ""
6034
6035 # type: verbatim
6036 #: ../src/guestfs-actions.pod:1094
6037 #, no-wrap
6038 msgid ""
6039 " int64_t guestfs_du (guestfs_h *g,\n"
6040 "\t\tconst char *path);\n"
6041 "\n"
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:1097 ../fish/guestfish-actions.pod:855
6046 msgid ""
6047 "This command runs the C<du -s> command to estimate file space usage for "
6048 "C<path>."
6049 msgstr ""
6050
6051 # type: textblock
6052 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:858
6053 msgid ""
6054 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6055 "estimate includes the contents of the directory and all subdirectories "
6056 "(recursively)."
6057 msgstr ""
6058
6059 # type: textblock
6060 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:862
6061 msgid ""
6062 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6063 msgstr ""
6064
6065 # type: =head2
6066 #: ../src/guestfs-actions.pod:1109
6067 msgid "guestfs_e2fsck_f"
6068 msgstr ""
6069
6070 # type: verbatim
6071 #: ../src/guestfs-actions.pod:1111
6072 #, no-wrap
6073 msgid ""
6074 " int guestfs_e2fsck_f (guestfs_h *g,\n"
6075 "\t\tconst char *device);\n"
6076 "\n"
6077 msgstr ""
6078
6079 # type: textblock
6080 #: ../src/guestfs-actions.pod:1114 ../fish/guestfish-actions.pod:869
6081 msgid ""
6082 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6083 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6084 "clean (C<-f>)."
6085 msgstr ""
6086
6087 # type: textblock
6088 #: ../src/guestfs-actions.pod:1118
6089 msgid ""
6090 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6091 "Normally you should use C<guestfs_fsck>."
6092 msgstr ""
6093
6094 # type: =head2
6095 #: ../src/guestfs-actions.pod:1123
6096 msgid "guestfs_echo_daemon"
6097 msgstr ""
6098
6099 # type: verbatim
6100 #: ../src/guestfs-actions.pod:1125
6101 #, no-wrap
6102 msgid ""
6103 " char *guestfs_echo_daemon (guestfs_h *g,\n"
6104 "\t\tchar *const *words);\n"
6105 "\n"
6106 msgstr ""
6107
6108 # type: textblock
6109 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:880
6110 msgid ""
6111 "This command concatenates the list of C<words> passed with single spaces "
6112 "between them and returns the resulting string."
6113 msgstr ""
6114
6115 # type: textblock
6116 #: ../src/guestfs-actions.pod:1131 ../fish/guestfish-actions.pod:883
6117 msgid "You can use this command to test the connection through to the daemon."
6118 msgstr ""
6119
6120 # type: textblock
6121 #: ../src/guestfs-actions.pod:1133
6122 msgid "See also C<guestfs_ping_daemon>."
6123 msgstr ""
6124
6125 # type: =head2
6126 #: ../src/guestfs-actions.pod:1138
6127 msgid "guestfs_egrep"
6128 msgstr ""
6129
6130 # type: verbatim
6131 #: ../src/guestfs-actions.pod:1140
6132 #, no-wrap
6133 msgid ""
6134 " char **guestfs_egrep (guestfs_h *g,\n"
6135 "\t\tconst char *regex,\n"
6136 "\t\tconst char *path);\n"
6137 "\n"
6138 msgstr ""
6139
6140 # type: textblock
6141 #: ../src/guestfs-actions.pod:1144 ../fish/guestfish-actions.pod:891
6142 msgid ""
6143 "This calls the external C<egrep> program and returns the matching lines."
6144 msgstr ""
6145
6146 # type: =head2
6147 #: ../src/guestfs-actions.pod:1154
6148 msgid "guestfs_egrepi"
6149 msgstr ""
6150
6151 # type: verbatim
6152 #: ../src/guestfs-actions.pod:1156
6153 #, no-wrap
6154 msgid ""
6155 " char **guestfs_egrepi (guestfs_h *g,\n"
6156 "\t\tconst char *regex,\n"
6157 "\t\tconst char *path);\n"
6158 "\n"
6159 msgstr ""
6160
6161 # type: textblock
6162 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:901
6163 msgid ""
6164 "This calls the external C<egrep -i> program and returns the matching lines."
6165 msgstr ""
6166
6167 # type: =head2
6168 #: ../src/guestfs-actions.pod:1170
6169 msgid "guestfs_equal"
6170 msgstr ""
6171
6172 # type: verbatim
6173 #: ../src/guestfs-actions.pod:1172
6174 #, no-wrap
6175 msgid ""
6176 " int guestfs_equal (guestfs_h *g,\n"
6177 "\t\tconst char *file1,\n"
6178 "\t\tconst char *file2);\n"
6179 "\n"
6180 msgstr ""
6181
6182 # type: textblock
6183 #: ../src/guestfs-actions.pod:1176 ../fish/guestfish-actions.pod:911
6184 msgid ""
6185 "This compares the two files C<file1> and C<file2> and returns true if their "
6186 "content is exactly equal, or false otherwise."
6187 msgstr ""
6188
6189 # type: textblock
6190 #: ../src/guestfs-actions.pod:1179 ../fish/guestfish-actions.pod:914
6191 msgid "The external L<cmp(1)> program is used for the comparison."
6192 msgstr ""
6193
6194 # type: =head2
6195 #: ../src/guestfs-actions.pod:1183
6196 msgid "guestfs_exists"
6197 msgstr ""
6198
6199 # type: verbatim
6200 #: ../src/guestfs-actions.pod:1185
6201 #, no-wrap
6202 msgid ""
6203 " int guestfs_exists (guestfs_h *g,\n"
6204 "\t\tconst char *path);\n"
6205 "\n"
6206 msgstr ""
6207
6208 # type: textblock
6209 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:920
6210 msgid ""
6211 "This returns C<true> if and only if there is a file, directory (or anything) "
6212 "with the given C<path> name."
6213 msgstr ""
6214
6215 # type: textblock
6216 #: ../src/guestfs-actions.pod:1191
6217 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6218 msgstr ""
6219
6220 # type: =head2
6221 #: ../src/guestfs-actions.pod:1195
6222 msgid "guestfs_fallocate"
6223 msgstr ""
6224
6225 # type: verbatim
6226 #: ../src/guestfs-actions.pod:1197
6227 #, no-wrap
6228 msgid ""
6229 " int guestfs_fallocate (guestfs_h *g,\n"
6230 "\t\tconst char *path,\n"
6231 "\t\tint len);\n"
6232 "\n"
6233 msgstr ""
6234
6235 # type: textblock
6236 #: ../src/guestfs-actions.pod:1201 ../src/guestfs-actions.pod:1224
6237 #: ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6238 msgid ""
6239 "This command preallocates a file (containing zero bytes) named C<path> of "
6240 "size C<len> bytes.  If the file exists already, it is overwritten."
6241 msgstr ""
6242
6243 # type: textblock
6244 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:933
6245 msgid ""
6246 "Do not confuse this with the guestfish-specific C<alloc> command which "
6247 "allocates a file in the host and attaches it as a device."
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:937
6252 msgid ""
6253 "This function is deprecated.  In new code, use the C<fallocate64> call "
6254 "instead."
6255 msgstr ""
6256
6257 # type: =head2
6258 #: ../src/guestfs-actions.pod:1218
6259 msgid "guestfs_fallocate64"
6260 msgstr ""
6261
6262 # type: verbatim
6263 #: ../src/guestfs-actions.pod:1220
6264 #, no-wrap
6265 msgid ""
6266 " int guestfs_fallocate64 (guestfs_h *g,\n"
6267 "\t\tconst char *path,\n"
6268 "\t\tint64_t len);\n"
6269 "\n"
6270 msgstr ""
6271
6272 # type: textblock
6273 #: ../src/guestfs-actions.pod:1228
6274 msgid ""
6275 "Note that this call allocates disk blocks for the file.  To create a sparse "
6276 "file use C<guestfs_truncate_size> instead."
6277 msgstr ""
6278
6279 # type: textblock
6280 #: ../src/guestfs-actions.pod:1231
6281 msgid ""
6282 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6283 "oversight it only allowed 30 bit lengths to be specified, effectively "
6284 "limiting the maximum size of files created through that call to 1GB."
6285 msgstr ""
6286
6287 # type: textblock
6288 #: ../src/guestfs-actions.pod:1236 ../fish/guestfish-actions.pod:960
6289 msgid ""
6290 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6291 "commands which create a file in the host and attach it as a device."
6292 msgstr ""
6293
6294 # type: =head2
6295 #: ../src/guestfs-actions.pod:1242
6296 msgid "guestfs_fgrep"
6297 msgstr ""
6298
6299 # type: verbatim
6300 #: ../src/guestfs-actions.pod:1244
6301 #, no-wrap
6302 msgid ""
6303 " char **guestfs_fgrep (guestfs_h *g,\n"
6304 "\t\tconst char *pattern,\n"
6305 "\t\tconst char *path);\n"
6306 "\n"
6307 msgstr ""
6308
6309 # type: textblock
6310 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:968
6311 msgid ""
6312 "This calls the external C<fgrep> program and returns the matching lines."
6313 msgstr ""
6314
6315 # type: =head2
6316 #: ../src/guestfs-actions.pod:1258
6317 msgid "guestfs_fgrepi"
6318 msgstr ""
6319
6320 # type: verbatim
6321 #: ../src/guestfs-actions.pod:1260
6322 #, no-wrap
6323 msgid ""
6324 " char **guestfs_fgrepi (guestfs_h *g,\n"
6325 "\t\tconst char *pattern,\n"
6326 "\t\tconst char *path);\n"
6327 "\n"
6328 msgstr ""
6329
6330 # type: textblock
6331 #: ../src/guestfs-actions.pod:1264 ../fish/guestfish-actions.pod:978
6332 msgid ""
6333 "This calls the external C<fgrep -i> program and returns the matching lines."
6334 msgstr ""
6335
6336 # type: =head2
6337 #: ../src/guestfs-actions.pod:1274
6338 msgid "guestfs_file"
6339 msgstr ""
6340
6341 # type: verbatim
6342 #: ../src/guestfs-actions.pod:1276
6343 #, no-wrap
6344 msgid ""
6345 " char *guestfs_file (guestfs_h *g,\n"
6346 "\t\tconst char *path);\n"
6347 "\n"
6348 msgstr ""
6349
6350 # type: textblock
6351 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:988
6352 msgid ""
6353 "This call uses the standard L<file(1)> command to determine the type or "
6354 "contents of the file."
6355 msgstr ""
6356
6357 # type: textblock
6358 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:991
6359 msgid ""
6360 "This call will also transparently look inside various types of compressed "
6361 "file."
6362 msgstr ""
6363
6364 # type: textblock
6365 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:994
6366 msgid ""
6367 "The exact command which runs is C<file -zb path>.  Note in particular that "
6368 "the filename is not prepended to the output (the C<-b> option)."
6369 msgstr ""
6370
6371 # type: textblock
6372 #: ../src/guestfs-actions.pod:1289
6373 msgid ""
6374 "This command can also be used on C</dev/> devices (and partitions, LV "
6375 "names).  You can for example use this to determine if a device contains a "
6376 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6377 msgstr ""
6378
6379 # type: textblock
6380 #: ../src/guestfs-actions.pod:1294 ../fish/guestfish-actions.pod:1003
6381 msgid ""
6382 "If the C<path> does not begin with C</dev/> then this command only works for "
6383 "the content of regular files.  For other file types (directory, symbolic "
6384 "link etc) it will just return the string C<directory> etc."
6385 msgstr ""
6386
6387 # type: =head2
6388 #: ../src/guestfs-actions.pod:1302
6389 msgid "guestfs_file_architecture"
6390 msgstr ""
6391
6392 # type: verbatim
6393 #: ../src/guestfs-actions.pod:1304
6394 #, no-wrap
6395 msgid ""
6396 " char *guestfs_file_architecture (guestfs_h *g,\n"
6397 "\t\tconst char *filename);\n"
6398 "\n"
6399 msgstr ""
6400
6401 # type: textblock
6402 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1012
6403 msgid ""
6404 "This detects the architecture of the binary C<filename>, and returns it if "
6405 "known."
6406 msgstr ""
6407
6408 # type: textblock
6409 #: ../src/guestfs-actions.pod:1310 ../fish/guestfish-actions.pod:1015
6410 msgid "Currently defined architectures are:"
6411 msgstr ""
6412
6413 # type: =item
6414 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:1019
6415 msgid "\"i386\""
6416 msgstr ""
6417
6418 # type: textblock
6419 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:1021
6420 msgid ""
6421 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6422 "irrespective of the precise processor requirements of the binary."
6423 msgstr ""
6424
6425 # type: =item
6426 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:1024
6427 msgid "\"x86_64\""
6428 msgstr ""
6429
6430 # type: textblock
6431 #: ../src/guestfs-actions.pod:1321 ../fish/guestfish-actions.pod:1026
6432 msgid "64 bit x86-64."
6433 msgstr ""
6434
6435 # type: =item
6436 #: ../src/guestfs-actions.pod:1323 ../fish/guestfish-actions.pod:1028
6437 msgid "\"sparc\""
6438 msgstr ""
6439
6440 # type: textblock
6441 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:1030
6442 msgid "32 bit SPARC."
6443 msgstr ""
6444
6445 # type: =item
6446 #: ../src/guestfs-actions.pod:1327 ../fish/guestfish-actions.pod:1032
6447 msgid "\"sparc64\""
6448 msgstr ""
6449
6450 # type: textblock
6451 #: ../src/guestfs-actions.pod:1329 ../fish/guestfish-actions.pod:1034
6452 msgid "64 bit SPARC V9 and above."
6453 msgstr ""
6454
6455 # type: =item
6456 #: ../src/guestfs-actions.pod:1331 ../fish/guestfish-actions.pod:1036
6457 msgid "\"ia64\""
6458 msgstr ""
6459
6460 # type: textblock
6461 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:1038
6462 msgid "Intel Itanium."
6463 msgstr ""
6464
6465 # type: =item
6466 #: ../src/guestfs-actions.pod:1335 ../fish/guestfish-actions.pod:1040
6467 msgid "\"ppc\""
6468 msgstr ""
6469
6470 # type: textblock
6471 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1042
6472 msgid "32 bit Power PC."
6473 msgstr ""
6474
6475 # type: =item
6476 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:1044
6477 msgid "\"ppc64\""
6478 msgstr ""
6479
6480 # type: textblock
6481 #: ../src/guestfs-actions.pod:1341 ../fish/guestfish-actions.pod:1046
6482 msgid "64 bit Power PC."
6483 msgstr ""
6484
6485 # type: textblock
6486 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:1050
6487 msgid "Libguestfs may return other architecture strings in future."
6488 msgstr ""
6489
6490 # type: textblock
6491 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:1052
6492 msgid "The function works on at least the following types of files:"
6493 msgstr ""
6494
6495 # type: textblock
6496 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:1058
6497 msgid "many types of Un*x and Linux binary"
6498 msgstr ""
6499
6500 # type: textblock
6501 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:1062
6502 msgid "many types of Un*x and Linux shared library"
6503 msgstr ""
6504
6505 # type: textblock
6506 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:1066
6507 msgid "Windows Win32 and Win64 binaries"
6508 msgstr ""
6509
6510 # type: textblock
6511 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:1070
6512 msgid "Windows Win32 and Win64 DLLs"
6513 msgstr ""
6514
6515 # type: textblock
6516 #: ../src/guestfs-actions.pod:1367 ../fish/guestfish-actions.pod:1072
6517 msgid "Win32 binaries and DLLs return C<i386>."
6518 msgstr ""
6519
6520 # type: textblock
6521 #: ../src/guestfs-actions.pod:1369 ../fish/guestfish-actions.pod:1074
6522 msgid "Win64 binaries and DLLs return C<x86_64>."
6523 msgstr ""
6524
6525 # type: textblock
6526 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:1078
6527 msgid "Linux kernel modules"
6528 msgstr ""
6529
6530 # type: textblock
6531 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1082
6532 msgid "Linux new-style initrd images"
6533 msgstr ""
6534
6535 # type: textblock
6536 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1086
6537 msgid "some non-x86 Linux vmlinuz kernels"
6538 msgstr ""
6539
6540 # type: textblock
6541 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1090
6542 msgid "What it can't do currently:"
6543 msgstr ""
6544
6545 # type: textblock
6546 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:1096
6547 msgid "static libraries (libfoo.a)"
6548 msgstr ""
6549
6550 # type: textblock
6551 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:1100
6552 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6553 msgstr ""
6554
6555 # type: textblock
6556 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:1104
6557 msgid "x86 Linux vmlinuz kernels"
6558 msgstr ""
6559
6560 # type: textblock
6561 #: ../src/guestfs-actions.pod:1401 ../fish/guestfish-actions.pod:1106
6562 msgid ""
6563 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6564 "compressed code, and are horribly hard to unpack.  If you want to find the "
6565 "architecture of a kernel, use the architecture of the associated initrd or "
6566 "kernel module(s) instead."
6567 msgstr ""
6568
6569 # type: =head2
6570 #: ../src/guestfs-actions.pod:1411
6571 msgid "guestfs_filesize"
6572 msgstr ""
6573
6574 # type: verbatim
6575 #: ../src/guestfs-actions.pod:1413
6576 #, no-wrap
6577 msgid ""
6578 " int64_t guestfs_filesize (guestfs_h *g,\n"
6579 "\t\tconst char *file);\n"
6580 "\n"
6581 msgstr ""
6582
6583 # type: textblock
6584 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1117
6585 msgid "This command returns the size of C<file> in bytes."
6586 msgstr ""
6587
6588 # type: textblock
6589 #: ../src/guestfs-actions.pod:1418
6590 msgid ""
6591 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6592 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6593 "devices, use C<guestfs_blockdev_getsize64>."
6594 msgstr ""
6595
6596 # type: =head2
6597 #: ../src/guestfs-actions.pod:1424
6598 msgid "guestfs_fill"
6599 msgstr ""
6600
6601 # type: verbatim
6602 #: ../src/guestfs-actions.pod:1426
6603 #, no-wrap
6604 msgid ""
6605 " int guestfs_fill (guestfs_h *g,\n"
6606 "\t\tint c,\n"
6607 "\t\tint len,\n"
6608 "\t\tconst char *path);\n"
6609 "\n"
6610 msgstr ""
6611
6612 # type: textblock
6613 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:1127
6614 msgid ""
6615 "This command creates a new file called C<path>.  The initial content of the "
6616 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6617 "[0..255]>."
6618 msgstr ""
6619
6620 # type: textblock
6621 #: ../src/guestfs-actions.pod:1435
6622 msgid ""
6623 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6624 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6625 "bytes use C<guestfs_fill_pattern>."
6626 msgstr ""
6627
6628 # type: =head2
6629 #: ../src/guestfs-actions.pod:1447
6630 msgid "guestfs_fill_pattern"
6631 msgstr ""
6632
6633 # type: verbatim
6634 #: ../src/guestfs-actions.pod:1449
6635 #, no-wrap
6636 msgid ""
6637 " int guestfs_fill_pattern (guestfs_h *g,\n"
6638 "\t\tconst char *pattern,\n"
6639 "\t\tint len,\n"
6640 "\t\tconst char *path);\n"
6641 "\n"
6642 msgstr ""
6643
6644 # type: textblock
6645 #: ../src/guestfs-actions.pod:1454
6646 msgid ""
6647 "This function is like C<guestfs_fill> except that it creates a new file of "
6648 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6649 "pattern is truncated if necessary to ensure the length of the file is "
6650 "exactly C<len> bytes."
6651 msgstr ""
6652
6653 # type: =head2
6654 #: ../src/guestfs-actions.pod:1466
6655 msgid "guestfs_find"
6656 msgstr ""
6657
6658 # type: verbatim
6659 #: ../src/guestfs-actions.pod:1468
6660 #, no-wrap
6661 msgid ""
6662 " char **guestfs_find (guestfs_h *g,\n"
6663 "\t\tconst char *directory);\n"
6664 "\n"
6665 msgstr ""
6666
6667 # type: textblock
6668 #: ../src/guestfs-actions.pod:1471 ../fish/guestfish-actions.pod:1149
6669 msgid ""
6670 "This command lists out all files and directories, recursively, starting at "
6671 "C<directory>.  It is essentially equivalent to running the shell command "
6672 "C<find directory -print> but some post-processing happens on the output, "
6673 "described below."
6674 msgstr ""
6675
6676 # type: textblock
6677 #: ../src/guestfs-actions.pod:1476 ../fish/guestfish-actions.pod:1154
6678 msgid ""
6679 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6680 "structure was:"
6681 msgstr ""
6682
6683 # type: verbatim
6684 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:1157
6685 #, no-wrap
6686 msgid ""
6687 " /tmp/a\n"
6688 " /tmp/b\n"
6689 " /tmp/c/d\n"
6690 "\n"
6691 msgstr ""
6692
6693 # type: textblock
6694 #: ../src/guestfs-actions.pod:1483
6695 msgid ""
6696 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6697 msgstr ""
6698
6699 # type: verbatim
6700 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:1164
6701 #, no-wrap
6702 msgid ""
6703 " a\n"
6704 " b\n"
6705 " c\n"
6706 " c/d\n"
6707 "\n"
6708 msgstr ""
6709
6710 # type: textblock
6711 #: ../src/guestfs-actions.pod:1491 ../fish/guestfish-actions.pod:1169
6712 msgid "If C<directory> is not a directory, then this command returns an error."
6713 msgstr ""
6714
6715 # type: textblock
6716 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1172
6717 msgid "The returned list is sorted."
6718 msgstr ""
6719
6720 # type: textblock
6721 #: ../src/guestfs-actions.pod:1496
6722 msgid "See also C<guestfs_find0>."
6723 msgstr ""
6724
6725 # type: =head2
6726 #: ../src/guestfs-actions.pod:1505
6727 msgid "guestfs_find0"
6728 msgstr ""
6729
6730 # type: verbatim
6731 #: ../src/guestfs-actions.pod:1507
6732 #, no-wrap
6733 msgid ""
6734 " int guestfs_find0 (guestfs_h *g,\n"
6735 "\t\tconst char *directory,\n"
6736 "\t\tconst char *files);\n"
6737 "\n"
6738 msgstr ""
6739
6740 # type: textblock
6741 #: ../src/guestfs-actions.pod:1511 ../fish/guestfish-actions.pod:1183
6742 msgid ""
6743 "This command lists out all files and directories, recursively, starting at "
6744 "C<directory>, placing the resulting list in the external file called "
6745 "C<files>."
6746 msgstr ""
6747
6748 # type: textblock
6749 #: ../src/guestfs-actions.pod:1515
6750 msgid ""
6751 "This command works the same way as C<guestfs_find> with the following "
6752 "exceptions:"
6753 msgstr ""
6754
6755 # type: textblock
6756 #: ../src/guestfs-actions.pod:1522 ../fish/guestfish-actions.pod:1194
6757 msgid "The resulting list is written to an external file."
6758 msgstr ""
6759
6760 # type: textblock
6761 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1198
6762 msgid ""
6763 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6764 "L<find(1)> option I<-print0>."
6765 msgstr ""
6766
6767 # type: textblock
6768 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1203
6769 msgid "This command is not limited in the number of names that it can return."
6770 msgstr ""
6771
6772 # type: textblock
6773 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1208
6774 msgid "The result list is not sorted."
6775 msgstr ""
6776
6777 # type: =head2
6778 #: ../src/guestfs-actions.pod:1542
6779 msgid "guestfs_findfs_label"
6780 msgstr ""
6781
6782 # type: verbatim
6783 #: ../src/guestfs-actions.pod:1544
6784 #, no-wrap
6785 msgid ""
6786 " char *guestfs_findfs_label (guestfs_h *g,\n"
6787 "\t\tconst char *label);\n"
6788 "\n"
6789 msgstr ""
6790
6791 # type: textblock
6792 #: ../src/guestfs-actions.pod:1547 ../fish/guestfish-actions.pod:1218
6793 msgid ""
6794 "This command searches the filesystems and returns the one which has the "
6795 "given label.  An error is returned if no such filesystem can be found."
6796 msgstr ""
6797
6798 # type: textblock
6799 #: ../src/guestfs-actions.pod:1551
6800 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6801 msgstr ""
6802
6803 # type: =head2
6804 #: ../src/guestfs-actions.pod:1556
6805 msgid "guestfs_findfs_uuid"
6806 msgstr ""
6807
6808 # type: verbatim
6809 #: ../src/guestfs-actions.pod:1558
6810 #, no-wrap
6811 msgid ""
6812 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6813 "\t\tconst char *uuid);\n"
6814 "\n"
6815 msgstr ""
6816
6817 # type: textblock
6818 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1228
6819 msgid ""
6820 "This command searches the filesystems and returns the one which has the "
6821 "given UUID.  An error is returned if no such filesystem can be found."
6822 msgstr ""
6823
6824 # type: textblock
6825 #: ../src/guestfs-actions.pod:1565
6826 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6827 msgstr ""
6828
6829 # type: =head2
6830 #: ../src/guestfs-actions.pod:1570
6831 msgid "guestfs_fsck"
6832 msgstr ""
6833
6834 # type: verbatim
6835 #: ../src/guestfs-actions.pod:1572
6836 #, no-wrap
6837 msgid ""
6838 " int guestfs_fsck (guestfs_h *g,\n"
6839 "\t\tconst char *fstype,\n"
6840 "\t\tconst char *device);\n"
6841 "\n"
6842 msgstr ""
6843
6844 # type: textblock
6845 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1238
6846 msgid ""
6847 "This runs the filesystem checker (fsck) on C<device> which should have "
6848 "filesystem type C<fstype>."
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1241
6853 msgid ""
6854 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6855 "codes from C<fsck>."
6856 msgstr ""
6857
6858 # type: textblock
6859 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1250
6860 msgid "Multiple status codes can be summed together."
6861 msgstr ""
6862
6863 # type: textblock
6864 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1254
6865 msgid ""
6866 "A non-zero return code can mean \"success\", for example if errors have been "
6867 "corrected on the filesystem."
6868 msgstr ""
6869
6870 # type: textblock
6871 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1259
6872 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1264
6877 msgid ""
6878 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6879 msgstr ""
6880
6881 # type: =head2
6882 #: ../src/guestfs-actions.pod:1606
6883 msgid "guestfs_get_append"
6884 msgstr ""
6885
6886 # type: verbatim
6887 #: ../src/guestfs-actions.pod:1608
6888 #, no-wrap
6889 msgid ""
6890 " const char *guestfs_get_append (guestfs_h *g);\n"
6891 "\n"
6892 msgstr ""
6893
6894 # type: textblock
6895 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1270
6896 msgid ""
6897 "Return the additional kernel options which are added to the guest kernel "
6898 "command line."
6899 msgstr ""
6900
6901 # type: textblock
6902 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1273
6903 msgid "If C<NULL> then no options are added."
6904 msgstr ""
6905
6906 # type: textblock
6907 #: ../src/guestfs-actions.pod:1615
6908 msgid ""
6909 "This function returns a string which may be NULL.  There is no way to return "
6910 "an error from this function.  The string is owned by the guest handle and "
6911 "must I<not> be freed."
6912 msgstr ""
6913
6914 # type: =head2
6915 #: ../src/guestfs-actions.pod:1619
6916 msgid "guestfs_get_autosync"
6917 msgstr ""
6918
6919 # type: verbatim
6920 #: ../src/guestfs-actions.pod:1621
6921 #, no-wrap
6922 msgid ""
6923 " int guestfs_get_autosync (guestfs_h *g);\n"
6924 "\n"
6925 msgstr ""
6926
6927 # type: textblock
6928 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1279
6929 msgid "Get the autosync flag."
6930 msgstr ""
6931
6932 # type: =head2
6933 #: ../src/guestfs-actions.pod:1627
6934 msgid "guestfs_get_direct"
6935 msgstr ""
6936
6937 # type: verbatim
6938 #: ../src/guestfs-actions.pod:1629
6939 #, no-wrap
6940 msgid ""
6941 " int guestfs_get_direct (guestfs_h *g);\n"
6942 "\n"
6943 msgstr ""
6944
6945 # type: textblock
6946 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1285
6947 msgid "Return the direct appliance mode flag."
6948 msgstr ""
6949
6950 # type: =head2
6951 #: ../src/guestfs-actions.pod:1635
6952 msgid "guestfs_get_e2label"
6953 msgstr ""
6954
6955 # type: verbatim
6956 #: ../src/guestfs-actions.pod:1637
6957 #, no-wrap
6958 msgid ""
6959 " char *guestfs_get_e2label (guestfs_h *g,\n"
6960 "\t\tconst char *device);\n"
6961 "\n"
6962 msgstr ""
6963
6964 # type: textblock
6965 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1291
6966 msgid ""
6967 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6968 msgstr ""
6969
6970 # type: textblock
6971 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1294
6972 msgid ""
6973 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
6974 msgstr ""
6975
6976 # type: =head2
6977 #: ../src/guestfs-actions.pod:1653
6978 msgid "guestfs_get_e2uuid"
6979 msgstr ""
6980
6981 # type: verbatim
6982 #: ../src/guestfs-actions.pod:1655
6983 #, no-wrap
6984 msgid ""
6985 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6986 "\t\tconst char *device);\n"
6987 "\n"
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1305
6992 msgid ""
6993 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6994 msgstr ""
6995
6996 # type: textblock
6997 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1308
6998 msgid ""
6999 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7000 msgstr ""
7001
7002 # type: =head2
7003 #: ../src/guestfs-actions.pod:1671
7004 msgid "guestfs_get_memsize"
7005 msgstr ""
7006
7007 # type: verbatim
7008 #: ../src/guestfs-actions.pod:1673
7009 #, no-wrap
7010 msgid ""
7011 " int guestfs_get_memsize (guestfs_h *g);\n"
7012 "\n"
7013 msgstr ""
7014
7015 # type: textblock
7016 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1319
7017 msgid ""
7018 "This gets the memory size in megabytes allocated to the qemu subprocess."
7019 msgstr ""
7020
7021 # type: textblock
7022 #: ../src/guestfs-actions.pod:1678
7023 msgid ""
7024 "If C<guestfs_set_memsize> was not called on this handle, and if "
7025 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7026 "value for memsize."
7027 msgstr ""
7028
7029 # type: textblock
7030 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1745
7031 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4597
7032 #: ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377
7033 #: ../fish/guestfish-actions.pod:3480 ../fish/guestfish-actions.pod:3567
7034 msgid ""
7035 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7036 msgstr ""
7037
7038 # type: =head2
7039 #: ../src/guestfs-actions.pod:1687
7040 msgid "guestfs_get_network"
7041 msgstr ""
7042
7043 # type: verbatim
7044 #: ../src/guestfs-actions.pod:1689
7045 #, no-wrap
7046 msgid ""
7047 " int guestfs_get_network (guestfs_h *g);\n"
7048 "\n"
7049 msgstr ""
7050
7051 # type: textblock
7052 #: ../src/guestfs-actions.pod:1691 ../fish/guestfish-actions.pod:1333
7053 msgid "This returns the enable network flag."
7054 msgstr ""
7055
7056 # type: =head2
7057 #: ../src/guestfs-actions.pod:1695
7058 msgid "guestfs_get_path"
7059 msgstr ""
7060
7061 # type: verbatim
7062 #: ../src/guestfs-actions.pod:1697
7063 #, no-wrap
7064 msgid ""
7065 " const char *guestfs_get_path (guestfs_h *g);\n"
7066 "\n"
7067 msgstr ""
7068
7069 # type: textblock
7070 #: ../src/guestfs-actions.pod:1699 ../fish/guestfish-actions.pod:1339
7071 msgid "Return the current search path."
7072 msgstr ""
7073
7074 # type: textblock
7075 #: ../src/guestfs-actions.pod:1701 ../fish/guestfish-actions.pod:1341
7076 msgid ""
7077 "This is always non-NULL.  If it wasn't set already, then this will return "
7078 "the default path."
7079 msgstr ""
7080
7081 # type: textblock
7082 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1727
7083 msgid ""
7084 "This function returns a string, or NULL on error.  The string is owned by "
7085 "the guest handle and must I<not> be freed."
7086 msgstr ""
7087
7088 # type: =head2
7089 #: ../src/guestfs-actions.pod:1707
7090 msgid "guestfs_get_pid"
7091 msgstr ""
7092
7093 # type: verbatim
7094 #: ../src/guestfs-actions.pod:1709
7095 #, no-wrap
7096 msgid ""
7097 " int guestfs_get_pid (guestfs_h *g);\n"
7098 "\n"
7099 msgstr ""
7100
7101 # type: textblock
7102 #: ../src/guestfs-actions.pod:1711 ../fish/guestfish-actions.pod:1350
7103 msgid ""
7104 "Return the process ID of the qemu subprocess.  If there is no qemu "
7105 "subprocess, then this will return an error."
7106 msgstr ""
7107
7108 # type: textblock
7109 #: ../src/guestfs-actions.pod:1714 ../fish/guestfish-actions.pod:1353
7110 msgid "This is an internal call used for debugging and testing."
7111 msgstr ""
7112
7113 # type: =head2
7114 #: ../src/guestfs-actions.pod:1718
7115 msgid "guestfs_get_qemu"
7116 msgstr ""
7117
7118 # type: verbatim
7119 #: ../src/guestfs-actions.pod:1720
7120 #, no-wrap
7121 msgid ""
7122 " const char *guestfs_get_qemu (guestfs_h *g);\n"
7123 "\n"
7124 msgstr ""
7125
7126 # type: textblock
7127 #: ../src/guestfs-actions.pod:1722 ../fish/guestfish-actions.pod:1359
7128 msgid "Return the current qemu binary."
7129 msgstr ""
7130
7131 # type: textblock
7132 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1361
7133 msgid ""
7134 "This is always non-NULL.  If it wasn't set already, then this will return "
7135 "the default qemu binary name."
7136 msgstr ""
7137
7138 # type: =head2
7139 #: ../src/guestfs-actions.pod:1730
7140 msgid "guestfs_get_recovery_proc"
7141 msgstr ""
7142
7143 # type: verbatim
7144 #: ../src/guestfs-actions.pod:1732
7145 #, no-wrap
7146 msgid ""
7147 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
7148 "\n"
7149 msgstr ""
7150
7151 # type: textblock
7152 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1368
7153 msgid "Return the recovery process enabled flag."
7154 msgstr ""
7155
7156 # type: =head2
7157 #: ../src/guestfs-actions.pod:1738
7158 msgid "guestfs_get_selinux"
7159 msgstr ""
7160
7161 # type: verbatim
7162 #: ../src/guestfs-actions.pod:1740
7163 #, no-wrap
7164 msgid ""
7165 " int guestfs_get_selinux (guestfs_h *g);\n"
7166 "\n"
7167 msgstr ""
7168
7169 # type: textblock
7170 #: ../src/guestfs-actions.pod:1742
7171 msgid ""
7172 "This returns the current setting of the selinux flag which is passed to the "
7173 "appliance at boot time.  See C<guestfs_set_selinux>."
7174 msgstr ""
7175
7176 # type: =head2
7177 #: ../src/guestfs-actions.pod:1750
7178 msgid "guestfs_get_state"
7179 msgstr ""
7180
7181 # type: verbatim
7182 #: ../src/guestfs-actions.pod:1752
7183 #, no-wrap
7184 msgid ""
7185 " int guestfs_get_state (guestfs_h *g);\n"
7186 "\n"
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:1754 ../fish/guestfish-actions.pod:1384
7191 msgid ""
7192 "This returns the current state as an opaque integer.  This is only useful "
7193 "for printing debug and internal error messages."
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:2414
7198 #: ../src/guestfs-actions.pod:2437 ../src/guestfs-actions.pod:2486
7199 #: ../src/guestfs-actions.pod:2507 ../fish/guestfish-actions.pod:1387
7200 #: ../fish/guestfish-actions.pod:1913 ../fish/guestfish-actions.pod:1931
7201 #: ../fish/guestfish-actions.pod:1969 ../fish/guestfish-actions.pod:1985
7202 msgid "For more information on states, see L<guestfs(3)>."
7203 msgstr ""
7204
7205 # type: =head2
7206 #: ../src/guestfs-actions.pod:1761
7207 msgid "guestfs_get_trace"
7208 msgstr ""
7209
7210 # type: verbatim
7211 #: ../src/guestfs-actions.pod:1763
7212 #, no-wrap
7213 msgid ""
7214 " int guestfs_get_trace (guestfs_h *g);\n"
7215 "\n"
7216 msgstr ""
7217
7218 # type: textblock
7219 #: ../src/guestfs-actions.pod:1765 ../fish/guestfish-actions.pod:1393
7220 msgid "Return the command trace flag."
7221 msgstr ""
7222
7223 # type: =head2
7224 #: ../src/guestfs-actions.pod:1769
7225 msgid "guestfs_get_umask"
7226 msgstr ""
7227
7228 # type: verbatim
7229 #: ../src/guestfs-actions.pod:1771
7230 #, no-wrap
7231 msgid ""
7232 " int guestfs_get_umask (guestfs_h *g);\n"
7233 "\n"
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1773
7238 msgid ""
7239 "Return the current umask.  By default the umask is C<022> unless it has been "
7240 "set by calling C<guestfs_umask>."
7241 msgstr ""
7242
7243 # type: =head2
7244 #: ../src/guestfs-actions.pod:1778
7245 msgid "guestfs_get_verbose"
7246 msgstr ""
7247
7248 # type: verbatim
7249 #: ../src/guestfs-actions.pod:1780
7250 #, no-wrap
7251 msgid ""
7252 " int guestfs_get_verbose (guestfs_h *g);\n"
7253 "\n"
7254 msgstr ""
7255
7256 # type: textblock
7257 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1406
7258 msgid "This returns the verbose messages flag."
7259 msgstr ""
7260
7261 # type: =head2
7262 #: ../src/guestfs-actions.pod:1786
7263 msgid "guestfs_getcon"
7264 msgstr ""
7265
7266 # type: verbatim
7267 #: ../src/guestfs-actions.pod:1788
7268 #, no-wrap
7269 msgid ""
7270 " char *guestfs_getcon (guestfs_h *g);\n"
7271 "\n"
7272 msgstr ""
7273
7274 # type: textblock
7275 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1412
7276 msgid "This gets the SELinux security context of the daemon."
7277 msgstr ""
7278
7279 # type: textblock
7280 #: ../src/guestfs-actions.pod:1792
7281 msgid ""
7282 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7283 msgstr ""
7284
7285 # type: =head2
7286 #: ../src/guestfs-actions.pod:1798
7287 msgid "guestfs_getxattrs"
7288 msgstr ""
7289
7290 # type: verbatim
7291 #: ../src/guestfs-actions.pod:1800
7292 #, no-wrap
7293 msgid ""
7294 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
7295 "\t\tconst char *path);\n"
7296 "\n"
7297 msgstr ""
7298
7299 # type: textblock
7300 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1421
7301 msgid ""
7302 "This call lists the extended attributes of the file or directory C<path>."
7303 msgstr ""
7304
7305 # type: textblock
7306 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1424
7307 msgid ""
7308 "At the system call level, this is a combination of the L<listxattr(2)> and "
7309 "L<getxattr(2)> calls."
7310 msgstr ""
7311
7312 # type: textblock
7313 #: ../src/guestfs-actions.pod:1809
7314 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7315 msgstr ""
7316
7317 # type: textblock
7318 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:2581
7319 #: ../src/guestfs-actions.pod:3136
7320 msgid ""
7321 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
7322 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
7323 "C<guestfs_free_xattr_list> after use>."
7324 msgstr ""
7325
7326 # type: =head2
7327 #: ../src/guestfs-actions.pod:1816
7328 msgid "guestfs_glob_expand"
7329 msgstr ""
7330
7331 # type: verbatim
7332 #: ../src/guestfs-actions.pod:1818
7333 #, no-wrap
7334 msgid ""
7335 " char **guestfs_glob_expand (guestfs_h *g,\n"
7336 "\t\tconst char *pattern);\n"
7337 "\n"
7338 msgstr ""
7339
7340 # type: textblock
7341 #: ../src/guestfs-actions.pod:1821 ../fish/guestfish-actions.pod:1433
7342 msgid ""
7343 "This command searches for all the pathnames matching C<pattern> according to "
7344 "the wildcard expansion rules used by the shell."
7345 msgstr ""
7346
7347 # type: textblock
7348 #: ../src/guestfs-actions.pod:1825 ../fish/guestfish-actions.pod:1437
7349 msgid ""
7350 "If no paths match, then this returns an empty list (note: not an error)."
7351 msgstr ""
7352
7353 # type: textblock
7354 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1440
7355 msgid ""
7356 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7357 "GLOB_BRACE>.  See that manual page for more details."
7358 msgstr ""
7359
7360 # type: =head2
7361 #: ../src/guestfs-actions.pod:1836
7362 msgid "guestfs_grep"
7363 msgstr ""
7364
7365 # type: verbatim
7366 #: ../src/guestfs-actions.pod:1838
7367 #, no-wrap
7368 msgid ""
7369 " char **guestfs_grep (guestfs_h *g,\n"
7370 "\t\tconst char *regex,\n"
7371 "\t\tconst char *path);\n"
7372 "\n"
7373 msgstr ""
7374
7375 # type: textblock
7376 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:1448
7377 msgid "This calls the external C<grep> program and returns the matching lines."
7378 msgstr ""
7379
7380 # type: =head2
7381 #: ../src/guestfs-actions.pod:1852
7382 msgid "guestfs_grepi"
7383 msgstr ""
7384
7385 # type: verbatim
7386 #: ../src/guestfs-actions.pod:1854
7387 #, no-wrap
7388 msgid ""
7389 " char **guestfs_grepi (guestfs_h *g,\n"
7390 "\t\tconst char *regex,\n"
7391 "\t\tconst char *path);\n"
7392 "\n"
7393 msgstr ""
7394
7395 # type: textblock
7396 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1458
7397 msgid ""
7398 "This calls the external C<grep -i> program and returns the matching lines."
7399 msgstr ""
7400
7401 # type: =head2
7402 #: ../src/guestfs-actions.pod:1868
7403 msgid "guestfs_grub_install"
7404 msgstr ""
7405
7406 # type: verbatim
7407 #: ../src/guestfs-actions.pod:1870
7408 #, no-wrap
7409 msgid ""
7410 " int guestfs_grub_install (guestfs_h *g,\n"
7411 "\t\tconst char *root,\n"
7412 "\t\tconst char *device);\n"
7413 "\n"
7414 msgstr ""
7415
7416 # type: textblock
7417 #: ../src/guestfs-actions.pod:1874 ../fish/guestfish-actions.pod:1468
7418 msgid ""
7419 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7420 "the root directory being C<root>."
7421 msgstr ""
7422
7423 # type: textblock
7424 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1471
7425 msgid ""
7426 "Note: If grub-install reports the error \"No suitable drive was found in the "
7427 "generated device map.\" it may be that you need to create a C</boot/grub/"
7428 "device.map> file first that contains the mapping between grub device names "
7429 "and Linux device names.  It is usually sufficient to create a file "
7430 "containing:"
7431 msgstr ""
7432
7433 # type: verbatim
7434 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1478
7435 #, no-wrap
7436 msgid ""
7437 " (hd0) /dev/vda\n"
7438 "\n"
7439 msgstr ""
7440
7441 # type: textblock
7442 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1480
7443 msgid "replacing C</dev/vda> with the name of the installation device."
7444 msgstr ""
7445
7446 # type: =head2
7447 #: ../src/guestfs-actions.pod:1890
7448 msgid "guestfs_head"
7449 msgstr ""
7450
7451 # type: verbatim
7452 #: ../src/guestfs-actions.pod:1892
7453 #, no-wrap
7454 msgid ""
7455 " char **guestfs_head (guestfs_h *g,\n"
7456 "\t\tconst char *path);\n"
7457 "\n"
7458 msgstr ""
7459
7460 # type: textblock
7461 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1486
7462 msgid ""
7463 "This command returns up to the first 10 lines of a file as a list of strings."
7464 msgstr ""
7465
7466 # type: =head2
7467 #: ../src/guestfs-actions.pod:1905
7468 msgid "guestfs_head_n"
7469 msgstr ""
7470
7471 # type: verbatim
7472 #: ../src/guestfs-actions.pod:1907
7473 #, no-wrap
7474 msgid ""
7475 " char **guestfs_head_n (guestfs_h *g,\n"
7476 "\t\tint nrlines,\n"
7477 "\t\tconst char *path);\n"
7478 "\n"
7479 msgstr ""
7480
7481 # type: textblock
7482 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1496
7483 msgid ""
7484 "If the parameter C<nrlines> is a positive number, this returns the first "
7485 "C<nrlines> lines of the file C<path>."
7486 msgstr ""
7487
7488 # type: textblock
7489 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1499
7490 msgid ""
7491 "If the parameter C<nrlines> is a negative number, this returns lines from "
7492 "the file C<path>, excluding the last C<nrlines> lines."
7493 msgstr ""
7494
7495 # type: textblock
7496 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:5053
7497 #: ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3913
7498 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7499 msgstr ""
7500
7501 # type: =head2
7502 #: ../src/guestfs-actions.pod:1926
7503 msgid "guestfs_hexdump"
7504 msgstr ""
7505
7506 # type: verbatim
7507 #: ../src/guestfs-actions.pod:1928
7508 #, no-wrap
7509 msgid ""
7510 " char *guestfs_hexdump (guestfs_h *g,\n"
7511 "\t\tconst char *path);\n"
7512 "\n"
7513 msgstr ""
7514
7515 # type: textblock
7516 #: ../src/guestfs-actions.pod:1931 ../fish/guestfish-actions.pod:1511
7517 msgid ""
7518 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7519 "readable, canonical hex dump of the file."
7520 msgstr ""
7521
7522 # type: =head2
7523 #: ../src/guestfs-actions.pod:1940
7524 msgid "guestfs_initrd_cat"
7525 msgstr ""
7526
7527 # type: verbatim
7528 #: ../src/guestfs-actions.pod:1942
7529 #, no-wrap
7530 msgid ""
7531 " char *guestfs_initrd_cat (guestfs_h *g,\n"
7532 "\t\tconst char *initrdpath,\n"
7533 "\t\tconst char *filename,\n"
7534 "\t\tsize_t *size_r);\n"
7535 "\n"
7536 msgstr ""
7537
7538 # type: textblock
7539 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1521
7540 msgid ""
7541 "This command unpacks the file C<filename> from the initrd file called "
7542 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7543 "character."
7544 msgstr ""
7545
7546 # type: textblock
7547 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1525
7548 msgid ""
7549 "For example, in guestfish you could use the following command to examine the "
7550 "boot script (usually called C</init>)  contained in a Linux initrd or "
7551 "initramfs image:"
7552 msgstr ""
7553
7554 # type: verbatim
7555 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1529
7556 #, no-wrap
7557 msgid ""
7558 " initrd-cat /boot/initrd-<version>.img init\n"
7559 "\n"
7560 msgstr ""
7561
7562 # type: textblock
7563 #: ../src/guestfs-actions.pod:1957
7564 msgid "See also C<guestfs_initrd_list>."
7565 msgstr ""
7566
7567 # type: textblock
7568 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:3965
7569 #: ../src/guestfs-actions.pod:3988 ../src/guestfs-actions.pod:4140
7570 msgid ""
7571 "This function returns a buffer, or NULL on error.  The size of the returned "
7572 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7573 "after use>."
7574 msgstr ""
7575
7576 # type: =head2
7577 #: ../src/guestfs-actions.pod:1966
7578 msgid "guestfs_initrd_list"
7579 msgstr ""
7580
7581 # type: verbatim
7582 #: ../src/guestfs-actions.pod:1968
7583 #, no-wrap
7584 msgid ""
7585 " char **guestfs_initrd_list (guestfs_h *g,\n"
7586 "\t\tconst char *path);\n"
7587 "\n"
7588 msgstr ""
7589
7590 # type: textblock
7591 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1540
7592 msgid "This command lists out files contained in an initrd."
7593 msgstr ""
7594
7595 # type: textblock
7596 #: ../src/guestfs-actions.pod:1973 ../fish/guestfish-actions.pod:1542
7597 msgid ""
7598 "The files are listed without any initial C</> character.  The files are "
7599 "listed in the order they appear (not necessarily alphabetical).  Directory "
7600 "names are listed as separate items."
7601 msgstr ""
7602
7603 # type: textblock
7604 #: ../src/guestfs-actions.pod:1977 ../fish/guestfish-actions.pod:1546
7605 msgid ""
7606 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7607 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7608 "files)."
7609 msgstr ""
7610
7611 # type: =head2
7612 #: ../src/guestfs-actions.pod:1985
7613 msgid "guestfs_inotify_add_watch"
7614 msgstr ""
7615
7616 # type: verbatim
7617 #: ../src/guestfs-actions.pod:1987
7618 #, no-wrap
7619 msgid ""
7620 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
7621 "\t\tconst char *path,\n"
7622 "\t\tint mask);\n"
7623 "\n"
7624 msgstr ""
7625
7626 # type: textblock
7627 #: ../src/guestfs-actions.pod:1991 ../fish/guestfish-actions.pod:1554
7628 msgid "Watch C<path> for the events listed in C<mask>."
7629 msgstr ""
7630
7631 # type: textblock
7632 #: ../src/guestfs-actions.pod:1993 ../fish/guestfish-actions.pod:1556
7633 msgid ""
7634 "Note that if C<path> is a directory then events within that directory are "
7635 "watched, but this does I<not> happen recursively (in subdirectories)."
7636 msgstr ""
7637
7638 # type: textblock
7639 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1560
7640 msgid ""
7641 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7642 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7643 msgstr ""
7644
7645 # type: =head2
7646 #: ../src/guestfs-actions.pod:2003
7647 msgid "guestfs_inotify_close"
7648 msgstr ""
7649
7650 # type: verbatim
7651 #: ../src/guestfs-actions.pod:2005
7652 #, no-wrap
7653 msgid ""
7654 " int guestfs_inotify_close (guestfs_h *g);\n"
7655 "\n"
7656 msgstr ""
7657
7658 # type: textblock
7659 #: ../src/guestfs-actions.pod:2007 ../fish/guestfish-actions.pod:1568
7660 msgid ""
7661 "This closes the inotify handle which was previously opened by inotify_init.  "
7662 "It removes all watches, throws away any pending events, and deallocates all "
7663 "resources."
7664 msgstr ""
7665
7666 # type: =head2
7667 #: ../src/guestfs-actions.pod:2013
7668 msgid "guestfs_inotify_files"
7669 msgstr ""
7670
7671 # type: verbatim
7672 #: ../src/guestfs-actions.pod:2015
7673 #, no-wrap
7674 msgid ""
7675 " char **guestfs_inotify_files (guestfs_h *g);\n"
7676 "\n"
7677 msgstr ""
7678
7679 # type: textblock
7680 #: ../src/guestfs-actions.pod:2017
7681 msgid ""
7682 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7683 "returns a list of pathnames of objects that were touched.  The returned "
7684 "pathnames are sorted and deduplicated."
7685 msgstr ""
7686
7687 # type: =head2
7688 #: ../src/guestfs-actions.pod:2025
7689 msgid "guestfs_inotify_init"
7690 msgstr ""
7691
7692 # type: verbatim
7693 #: ../src/guestfs-actions.pod:2027
7694 #, no-wrap
7695 msgid ""
7696 " int guestfs_inotify_init (guestfs_h *g,\n"
7697 "\t\tint maxevents);\n"
7698 "\n"
7699 msgstr ""
7700
7701 # type: textblock
7702 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1584
7703 msgid ""
7704 "This command creates a new inotify handle.  The inotify subsystem can be "
7705 "used to notify events which happen to objects in the guest filesystem."
7706 msgstr ""
7707
7708 # type: textblock
7709 #: ../src/guestfs-actions.pod:2034
7710 msgid ""
7711 "C<maxevents> is the maximum number of events which will be queued up between "
7712 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7713 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7714 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7715 "throws away events, but records the fact that it threw them away by setting "
7716 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7717 "C<guestfs_inotify_read>)."
7718 msgstr ""
7719
7720 # type: textblock
7721 #: ../src/guestfs-actions.pod:2044
7722 msgid ""
7723 "Before any events are generated, you have to add some watches to the "
7724 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7725 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7726 msgstr ""
7727
7728 # type: textblock
7729 #: ../src/guestfs-actions.pod:2050
7730 msgid ""
7731 "Queued up events should be read periodically by calling "
7732 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7733 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7734 "often enough then you risk the internal queue overflowing."
7735 msgstr ""
7736
7737 # type: textblock
7738 #: ../src/guestfs-actions.pod:2057
7739 msgid ""
7740 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7741 "This also removes any watches automatically."
7742 msgstr ""
7743
7744 # type: textblock
7745 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1615
7746 msgid ""
7747 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7748 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7749 "that there is one global inotify handle per libguestfs instance."
7750 msgstr ""
7751
7752 # type: =head2
7753 #: ../src/guestfs-actions.pod:2068
7754 msgid "guestfs_inotify_read"
7755 msgstr ""
7756
7757 # type: verbatim
7758 #: ../src/guestfs-actions.pod:2070
7759 #, no-wrap
7760 msgid ""
7761 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7762 "\n"
7763 msgstr ""
7764
7765 # type: textblock
7766 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1624
7767 msgid ""
7768 "Return the complete queue of events that have happened since the previous "
7769 "read call."
7770 msgstr ""
7771
7772 # type: textblock
7773 #: ../src/guestfs-actions.pod:2075 ../fish/guestfish-actions.pod:1627
7774 msgid "If no events have happened, this returns an empty list."
7775 msgstr ""
7776
7777 # type: textblock
7778 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1629
7779 msgid ""
7780 "I<Note>: In order to make sure that all events have been read, you must call "
7781 "this function repeatedly until it returns an empty list.  The reason is that "
7782 "the call will read events up to the maximum appliance-to-host message size "
7783 "and leave remaining events in the queue."
7784 msgstr ""
7785
7786 # type: textblock
7787 #: ../src/guestfs-actions.pod:2083
7788 msgid ""
7789 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7790 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7791 "must call C<guestfs_free_inotify_event_list> after use>."
7792 msgstr ""
7793
7794 # type: =head2
7795 #: ../src/guestfs-actions.pod:2088
7796 msgid "guestfs_inotify_rm_watch"
7797 msgstr ""
7798
7799 # type: verbatim
7800 #: ../src/guestfs-actions.pod:2090
7801 #, no-wrap
7802 msgid ""
7803 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7804 "\t\tint wd);\n"
7805 "\n"
7806 msgstr ""
7807
7808 # type: textblock
7809 #: ../src/guestfs-actions.pod:2093
7810 msgid ""
7811 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
7812 msgstr ""
7813
7814 # type: =head2
7815 #: ../src/guestfs-actions.pod:2098
7816 msgid "guestfs_inspect_get_arch"
7817 msgstr ""
7818
7819 # type: verbatim
7820 #: ../src/guestfs-actions.pod:2100
7821 #, no-wrap
7822 msgid ""
7823 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7824 "\t\tconst char *root);\n"
7825 "\n"
7826 msgstr ""
7827
7828 # type: textblock
7829 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2123
7830 #: ../src/guestfs-actions.pod:2189 ../src/guestfs-actions.pod:2212
7831 #: ../src/guestfs-actions.pod:2236 ../src/guestfs-actions.pod:2254
7832 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:2305
7833 #: ../src/guestfs-actions.pod:2340
7834 msgid ""
7835 "This function should only be called with a root device string as returned by "
7836 "C<guestfs_inspect_os>."
7837 msgstr ""
7838
7839 # type: textblock
7840 #: ../src/guestfs-actions.pod:2106
7841 msgid ""
7842 "This returns the architecture of the inspected operating system.  The "
7843 "possible return values are listed under C<guestfs_file_architecture>."
7844 msgstr ""
7845
7846 # type: textblock
7847 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1653
7848 msgid ""
7849 "If the architecture could not be determined, then the string C<unknown> is "
7850 "returned."
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2179
7855 #: ../src/guestfs-actions.pod:2227 ../src/guestfs-actions.pod:2295
7856 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2350
7857 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1656
7858 #: ../fish/guestfish-actions.pod:1718 ../fish/guestfish-actions.pod:1757
7859 #: ../fish/guestfish-actions.pod:1812 ../fish/guestfish-actions.pod:1843
7860 #: ../fish/guestfish-actions.pod:1859 ../fish/guestfish-actions.pod:1893
7861 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7862 msgstr ""
7863
7864 # type: =head2
7865 #: ../src/guestfs-actions.pod:2118
7866 msgid "guestfs_inspect_get_distro"
7867 msgstr ""
7868
7869 # type: verbatim
7870 #: ../src/guestfs-actions.pod:2120
7871 #, no-wrap
7872 msgid ""
7873 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7874 "\t\tconst char *root);\n"
7875 "\n"
7876 msgstr ""
7877
7878 # type: textblock
7879 #: ../src/guestfs-actions.pod:2126 ../fish/guestfish-actions.pod:1665
7880 msgid ""
7881 "This returns the distro (distribution) of the inspected operating system."
7882 msgstr ""
7883
7884 # type: textblock
7885 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1668
7886 msgid "Currently defined distros are:"
7887 msgstr ""
7888
7889 # type: =item
7890 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1672
7891 msgid "\"archlinux\""
7892 msgstr ""
7893
7894 # type: textblock
7895 #: ../src/guestfs-actions.pod:2135 ../fish/guestfish-actions.pod:1674
7896 msgid "Arch Linux."
7897 msgstr ""
7898
7899 # type: =item
7900 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1676
7901 msgid "\"debian\""
7902 msgstr ""
7903
7904 # type: textblock
7905 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1678
7906 msgid "Debian or a Debian-derived distro such as Ubuntu."
7907 msgstr ""
7908
7909 # type: =item
7910 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1680
7911 msgid "\"fedora\""
7912 msgstr ""
7913
7914 # type: textblock
7915 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1682
7916 msgid "Fedora."
7917 msgstr ""
7918
7919 # type: =item
7920 #: ../src/guestfs-actions.pod:2145 ../fish/guestfish-actions.pod:1684
7921 msgid "\"gentoo\""
7922 msgstr ""
7923
7924 # type: textblock
7925 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1686
7926 msgid "Gentoo."
7927 msgstr ""
7928
7929 # type: =item
7930 #: ../src/guestfs-actions.pod:2149 ../fish/guestfish-actions.pod:1688
7931 msgid "\"pardus\""
7932 msgstr ""
7933
7934 # type: textblock
7935 #: ../src/guestfs-actions.pod:2151 ../fish/guestfish-actions.pod:1690
7936 msgid "Pardus."
7937 msgstr ""
7938
7939 # type: =item
7940 #: ../src/guestfs-actions.pod:2153 ../fish/guestfish-actions.pod:1692
7941 msgid "\"redhat-based\""
7942 msgstr ""
7943
7944 # type: textblock
7945 #: ../src/guestfs-actions.pod:2155 ../fish/guestfish-actions.pod:1694
7946 msgid "Some Red Hat-derived distro."
7947 msgstr ""
7948
7949 # type: =item
7950 #: ../src/guestfs-actions.pod:2157 ../fish/guestfish-actions.pod:1696
7951 msgid "\"rhel\""
7952 msgstr ""
7953
7954 # type: textblock
7955 #: ../src/guestfs-actions.pod:2159 ../fish/guestfish-actions.pod:1698
7956 msgid "Red Hat Enterprise Linux and some derivatives."
7957 msgstr ""
7958
7959 # type: =item
7960 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2317
7961 #: ../fish/guestfish-actions.pod:1700 ../fish/guestfish-actions.pod:1830
7962 msgid "\"windows\""
7963 msgstr ""
7964
7965 # type: textblock
7966 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1702
7967 msgid ""
7968 "Windows does not have distributions.  This string is returned if the OS type "
7969 "is Windows."
7970 msgstr ""
7971
7972 # type: =item
7973 #: ../src/guestfs-actions.pod:2166 ../fish/guestfish-actions.pod:1705
7974 msgid "\"ubuntu\""
7975 msgstr ""
7976
7977 # type: textblock
7978 #: ../src/guestfs-actions.pod:2168 ../fish/guestfish-actions.pod:1707
7979 msgid "Ubuntu."
7980 msgstr ""
7981
7982 # type: =item
7983 #: ../src/guestfs-actions.pod:2170 ../src/guestfs-actions.pod:2321
7984 #: ../fish/guestfish-actions.pod:1709 ../fish/guestfish-actions.pod:1834
7985 msgid "\"unknown\""
7986 msgstr ""
7987
7988 # type: textblock
7989 #: ../src/guestfs-actions.pod:2172 ../fish/guestfish-actions.pod:1711
7990 msgid "The distro could not be determined."
7991 msgstr ""
7992
7993 # type: textblock
7994 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2327
7995 #: ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:1840
7996 msgid ""
7997 "Future versions of libguestfs may return other strings here.  The caller "
7998 "should be prepared to handle any string."
7999 msgstr ""
8000
8001 # type: =head2
8002 #: ../src/guestfs-actions.pod:2184
8003 msgid "guestfs_inspect_get_filesystems"
8004 msgstr ""
8005
8006 # type: verbatim
8007 #: ../src/guestfs-actions.pod:2186
8008 #, no-wrap
8009 msgid ""
8010 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8011 "\t\tconst char *root);\n"
8012 "\n"
8013 msgstr ""
8014
8015 # type: textblock
8016 #: ../src/guestfs-actions.pod:2192 ../fish/guestfish-actions.pod:1727
8017 msgid ""
8018 "This returns a list of all the filesystems that we think are associated with "
8019 "this operating system.  This includes the root filesystem, other ordinary "
8020 "filesystems, and non-mounted devices like swap partitions."
8021 msgstr ""
8022
8023 # type: textblock
8024 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1732
8025 msgid ""
8026 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8027 "to be shared between operating systems."
8028 msgstr ""
8029
8030 # type: textblock
8031 #: ../src/guestfs-actions.pod:2200
8032 msgid ""
8033 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8034 "C<guestfs_inspect_get_mountpoints>."
8035 msgstr ""
8036
8037 # type: =head2
8038 #: ../src/guestfs-actions.pod:2207
8039 msgid "guestfs_inspect_get_major_version"
8040 msgstr ""
8041
8042 # type: verbatim
8043 #: ../src/guestfs-actions.pod:2209
8044 #, no-wrap
8045 msgid ""
8046 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
8047 "\t\tconst char *root);\n"
8048 "\n"
8049 msgstr ""
8050
8051 # type: textblock
8052 #: ../src/guestfs-actions.pod:2215 ../fish/guestfish-actions.pod:1745
8053 msgid ""
8054 "This returns the major version number of the inspected operating system."
8055 msgstr ""
8056
8057 # type: textblock
8058 #: ../src/guestfs-actions.pod:2218 ../fish/guestfish-actions.pod:1748
8059 msgid ""
8060 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8061 "popular public names used by the operating system.  Notably the operating "
8062 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8063 "1).  You can find out the real versions corresponding to releases of Windows "
8064 "by consulting Wikipedia or MSDN."
8065 msgstr ""
8066
8067 # type: textblock
8068 #: ../src/guestfs-actions.pod:2225 ../src/guestfs-actions.pod:2242
8069 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1769
8070 msgid "If the version could not be determined, then C<0> is returned."
8071 msgstr ""
8072
8073 # type: =head2
8074 #: ../src/guestfs-actions.pod:2231
8075 msgid "guestfs_inspect_get_minor_version"
8076 msgstr ""
8077
8078 # type: verbatim
8079 #: ../src/guestfs-actions.pod:2233
8080 #, no-wrap
8081 msgid ""
8082 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8083 "\t\tconst char *root);\n"
8084 "\n"
8085 msgstr ""
8086
8087 # type: textblock
8088 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1766
8089 msgid ""
8090 "This returns the minor version number of the inspected operating system."
8091 msgstr ""
8092
8093 # type: textblock
8094 #: ../src/guestfs-actions.pod:2244
8095 msgid ""
8096 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8097 "C<guestfs_inspect_get_major_version>."
8098 msgstr ""
8099
8100 # type: =head2
8101 #: ../src/guestfs-actions.pod:2249
8102 msgid "guestfs_inspect_get_mountpoints"
8103 msgstr ""
8104
8105 # type: verbatim
8106 #: ../src/guestfs-actions.pod:2251
8107 #, no-wrap
8108 msgid ""
8109 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8110 "\t\tconst char *root);\n"
8111 "\n"
8112 msgstr ""
8113
8114 # type: textblock
8115 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1781
8116 msgid ""
8117 "This returns a hash of where we think the filesystems associated with this "
8118 "operating system should be mounted.  Callers should note that this is at "
8119 "best an educated guess made by reading configuration files such as C</etc/"
8120 "fstab>."
8121 msgstr ""
8122
8123 # type: textblock
8124 #: ../src/guestfs-actions.pod:2262 ../fish/guestfish-actions.pod:1786
8125 msgid ""
8126 "Each element in the returned hashtable has a key which is the path of the "
8127 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8128 "mounted there (eg. C</dev/sda1>)."
8129 msgstr ""
8130
8131 # type: textblock
8132 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1791
8133 msgid ""
8134 "Non-mounted devices such as swap devices are I<not> returned in this list."
8135 msgstr ""
8136
8137 # type: textblock
8138 #: ../src/guestfs-actions.pod:2270
8139 msgid ""
8140 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8141 "C<guestfs_inspect_get_filesystems>."
8142 msgstr ""
8143
8144 # type: textblock
8145 #: ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2633
8146 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:5170
8147 msgid ""
8148 "This function returns a NULL-terminated array of strings, or NULL if there "
8149 "was an error.  The array of strings will always have length C<2n+1>, where "
8150 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8151 "caller must free the strings and the array after use>."
8152 msgstr ""
8153
8154 # type: =head2
8155 #: ../src/guestfs-actions.pod:2279
8156 msgid "guestfs_inspect_get_product_name"
8157 msgstr ""
8158
8159 # type: verbatim
8160 #: ../src/guestfs-actions.pod:2281
8161 #, no-wrap
8162 msgid ""
8163 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
8164 "\t\tconst char *root);\n"
8165 "\n"
8166 msgstr ""
8167
8168 # type: textblock
8169 #: ../src/guestfs-actions.pod:2287 ../fish/guestfish-actions.pod:1804
8170 msgid ""
8171 "This returns the product name of the inspected operating system.  The "
8172 "product name is generally some freeform string which can be displayed to the "
8173 "user, but should not be parsed by programs."
8174 msgstr ""
8175
8176 # type: textblock
8177 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1809
8178 msgid ""
8179 "If the product name could not be determined, then the string C<unknown> is "
8180 "returned."
8181 msgstr ""
8182
8183 # type: =head2
8184 #: ../src/guestfs-actions.pod:2300
8185 msgid "guestfs_inspect_get_type"
8186 msgstr ""
8187
8188 # type: verbatim
8189 #: ../src/guestfs-actions.pod:2302
8190 #, no-wrap
8191 msgid ""
8192 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
8193 "\t\tconst char *root);\n"
8194 "\n"
8195 msgstr ""
8196
8197 # type: textblock
8198 #: ../src/guestfs-actions.pod:2308 ../fish/guestfish-actions.pod:1821
8199 msgid ""
8200 "This returns the type of the inspected operating system.  Currently defined "
8201 "types are:"
8202 msgstr ""
8203
8204 # type: =item
8205 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1826
8206 msgid "\"linux\""
8207 msgstr ""
8208
8209 # type: textblock
8210 #: ../src/guestfs-actions.pod:2315 ../fish/guestfish-actions.pod:1828
8211 msgid "Any Linux-based operating system."
8212 msgstr ""
8213
8214 # type: textblock
8215 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1832
8216 msgid "Any Microsoft Windows operating system."
8217 msgstr ""
8218
8219 # type: textblock
8220 #: ../src/guestfs-actions.pod:2323 ../fish/guestfish-actions.pod:1836
8221 msgid "The operating system type could not be determined."
8222 msgstr ""
8223
8224 # type: =head2
8225 #: ../src/guestfs-actions.pod:2335
8226 msgid "guestfs_inspect_get_windows_systemroot"
8227 msgstr ""
8228
8229 # type: verbatim
8230 #: ../src/guestfs-actions.pod:2337
8231 #, no-wrap
8232 msgid ""
8233 " char *guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8234 "\t\tconst char *root);\n"
8235 "\n"
8236 msgstr ""
8237
8238 # type: textblock
8239 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1852
8240 msgid ""
8241 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8242 "is a directory path such as C</WINDOWS>."
8243 msgstr ""
8244
8245 # type: textblock
8246 #: ../src/guestfs-actions.pod:2346 ../fish/guestfish-actions.pod:1855
8247 msgid ""
8248 "This call assumes that the guest is Windows and that the systemroot could be "
8249 "determined by inspection.  If this is not the case then an error is returned."
8250 msgstr ""
8251
8252 # type: =head2
8253 #: ../src/guestfs-actions.pod:2355
8254 msgid "guestfs_inspect_os"
8255 msgstr ""
8256
8257 # type: verbatim
8258 #: ../src/guestfs-actions.pod:2357
8259 #, no-wrap
8260 msgid ""
8261 " char **guestfs_inspect_os (guestfs_h *g);\n"
8262 "\n"
8263 msgstr ""
8264
8265 # type: textblock
8266 #: ../src/guestfs-actions.pod:2359 ../fish/guestfish-actions.pod:1865
8267 msgid ""
8268 "This function uses other libguestfs functions and certain heuristics to "
8269 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8270 "for operating systems."
8271 msgstr ""
8272
8273 # type: textblock
8274 #: ../src/guestfs-actions.pod:2363 ../fish/guestfish-actions.pod:1869
8275 msgid "The list returned is empty if no operating systems were found."
8276 msgstr ""
8277
8278 # type: textblock
8279 #: ../src/guestfs-actions.pod:2365 ../fish/guestfish-actions.pod:1871
8280 msgid ""
8281 "If one operating system was found, then this returns a list with a single "
8282 "element, which is the name of the root filesystem of this operating system.  "
8283 "It is also possible for this function to return a list containing more than "
8284 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8285 "element being the root filesystem of one of the operating systems."
8286 msgstr ""
8287
8288 # type: textblock
8289 #: ../src/guestfs-actions.pod:2372
8290 msgid ""
8291 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8292 "functions in order to query further information about each operating system, "
8293 "such as the name and version."
8294 msgstr ""
8295
8296 # type: textblock
8297 #: ../src/guestfs-actions.pod:2377
8298 msgid ""
8299 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8300 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8301 "the contents.  This should be called with no disks currently mounted.  The "
8302 "function may also use Augeas, so any existing Augeas handle will be closed."
8303 msgstr ""
8304
8305 # type: textblock
8306 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1889
8307 msgid ""
8308 "This function cannot decrypt encrypted disks.  The caller must do that first "
8309 "(supplying the necessary keys) if the disk is encrypted."
8310 msgstr ""
8311
8312 # type: textblock
8313 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2594
8314 #: ../src/guestfs-actions.pod:2650
8315 msgid "See also C<guestfs_list_filesystems>."
8316 msgstr ""
8317
8318 # type: =head2
8319 #: ../src/guestfs-actions.pod:2395
8320 msgid "guestfs_is_blockdev"
8321 msgstr ""
8322
8323 # type: verbatim
8324 #: ../src/guestfs-actions.pod:2397
8325 #, no-wrap
8326 msgid ""
8327 " int guestfs_is_blockdev (guestfs_h *g,\n"
8328 "\t\tconst char *path);\n"
8329 "\n"
8330 msgstr ""
8331
8332 # type: textblock
8333 #: ../src/guestfs-actions.pod:2400 ../fish/guestfish-actions.pod:1901
8334 msgid ""
8335 "This returns C<true> if and only if there is a block device with the given "
8336 "C<path> name."
8337 msgstr ""
8338
8339 # type: textblock
8340 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:2426
8341 #: ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2462
8342 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2519
8343 #: ../src/guestfs-actions.pod:2531
8344 msgid "See also C<guestfs_stat>."
8345 msgstr ""
8346
8347 # type: =head2
8348 #: ../src/guestfs-actions.pod:2407
8349 msgid "guestfs_is_busy"
8350 msgstr ""
8351
8352 # type: verbatim
8353 #: ../src/guestfs-actions.pod:2409
8354 #, no-wrap
8355 msgid ""
8356 " int guestfs_is_busy (guestfs_h *g);\n"
8357 "\n"
8358 msgstr ""
8359
8360 # type: textblock
8361 #: ../src/guestfs-actions.pod:2411 ../fish/guestfish-actions.pod:1910
8362 msgid ""
8363 "This returns true iff this handle is busy processing a command (in the "
8364 "C<BUSY> state)."
8365 msgstr ""
8366
8367 # type: =head2
8368 #: ../src/guestfs-actions.pod:2418
8369 msgid "guestfs_is_chardev"
8370 msgstr ""
8371
8372 # type: verbatim
8373 #: ../src/guestfs-actions.pod:2420
8374 #, no-wrap
8375 msgid ""
8376 " int guestfs_is_chardev (guestfs_h *g,\n"
8377 "\t\tconst char *path);\n"
8378 "\n"
8379 msgstr ""
8380
8381 # type: textblock
8382 #: ../src/guestfs-actions.pod:2423 ../fish/guestfish-actions.pod:1919
8383 msgid ""
8384 "This returns C<true> if and only if there is a character device with the "
8385 "given C<path> name."
8386 msgstr ""
8387
8388 # type: =head2
8389 #: ../src/guestfs-actions.pod:2430
8390 msgid "guestfs_is_config"
8391 msgstr ""
8392
8393 # type: verbatim
8394 #: ../src/guestfs-actions.pod:2432
8395 #, no-wrap
8396 msgid ""
8397 " int guestfs_is_config (guestfs_h *g);\n"
8398 "\n"
8399 msgstr ""
8400
8401 # type: textblock
8402 #: ../src/guestfs-actions.pod:2434 ../fish/guestfish-actions.pod:1928
8403 msgid ""
8404 "This returns true iff this handle is being configured (in the C<CONFIG> "
8405 "state)."
8406 msgstr ""
8407
8408 # type: =head2
8409 #: ../src/guestfs-actions.pod:2441
8410 msgid "guestfs_is_dir"
8411 msgstr ""
8412
8413 # type: verbatim
8414 #: ../src/guestfs-actions.pod:2443
8415 #, no-wrap
8416 msgid ""
8417 " int guestfs_is_dir (guestfs_h *g,\n"
8418 "\t\tconst char *path);\n"
8419 "\n"
8420 msgstr ""
8421
8422 # type: textblock
8423 #: ../src/guestfs-actions.pod:2446 ../fish/guestfish-actions.pod:1937
8424 msgid ""
8425 "This returns C<true> if and only if there is a directory with the given "
8426 "C<path> name.  Note that it returns false for other objects like files."
8427 msgstr ""
8428
8429 # type: =head2
8430 #: ../src/guestfs-actions.pod:2454
8431 msgid "guestfs_is_fifo"
8432 msgstr ""
8433
8434 # type: verbatim
8435 #: ../src/guestfs-actions.pod:2456
8436 #, no-wrap
8437 msgid ""
8438 " int guestfs_is_fifo (guestfs_h *g,\n"
8439 "\t\tconst char *path);\n"
8440 "\n"
8441 msgstr ""
8442
8443 # type: textblock
8444 #: ../src/guestfs-actions.pod:2459 ../fish/guestfish-actions.pod:1947
8445 msgid ""
8446 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8447 "given C<path> name."
8448 msgstr ""
8449
8450 # type: =head2
8451 #: ../src/guestfs-actions.pod:2466
8452 msgid "guestfs_is_file"
8453 msgstr ""
8454
8455 # type: verbatim
8456 #: ../src/guestfs-actions.pod:2468
8457 #, no-wrap
8458 msgid ""
8459 " int guestfs_is_file (guestfs_h *g,\n"
8460 "\t\tconst char *path);\n"
8461 "\n"
8462 msgstr ""
8463
8464 # type: textblock
8465 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1956
8466 msgid ""
8467 "This returns C<true> if and only if there is a regular file with the given "
8468 "C<path> name.  Note that it returns false for other objects like directories."
8469 msgstr ""
8470
8471 # type: =head2
8472 #: ../src/guestfs-actions.pod:2479
8473 msgid "guestfs_is_launching"
8474 msgstr ""
8475
8476 # type: verbatim
8477 #: ../src/guestfs-actions.pod:2481
8478 #, no-wrap
8479 msgid ""
8480 " int guestfs_is_launching (guestfs_h *g);\n"
8481 "\n"
8482 msgstr ""
8483
8484 # type: textblock
8485 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1966
8486 msgid ""
8487 "This returns true iff this handle is launching the subprocess (in the "
8488 "C<LAUNCHING> state)."
8489 msgstr ""
8490
8491 # type: =head2
8492 #: ../src/guestfs-actions.pod:2490
8493 msgid "guestfs_is_lv"
8494 msgstr ""
8495
8496 # type: verbatim
8497 #: ../src/guestfs-actions.pod:2492
8498 #, no-wrap
8499 msgid ""
8500 " int guestfs_is_lv (guestfs_h *g,\n"
8501 "\t\tconst char *device);\n"
8502 "\n"
8503 msgstr ""
8504
8505 # type: textblock
8506 #: ../src/guestfs-actions.pod:2495 ../fish/guestfish-actions.pod:1975
8507 msgid ""
8508 "This command tests whether C<device> is a logical volume, and returns true "
8509 "iff this is the case."
8510 msgstr ""
8511
8512 # type: =head2
8513 #: ../src/guestfs-actions.pod:2500
8514 msgid "guestfs_is_ready"
8515 msgstr ""
8516
8517 # type: verbatim
8518 #: ../src/guestfs-actions.pod:2502
8519 #, no-wrap
8520 msgid ""
8521 " int guestfs_is_ready (guestfs_h *g);\n"
8522 "\n"
8523 msgstr ""
8524
8525 # type: textblock
8526 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1982
8527 msgid ""
8528 "This returns true iff this handle is ready to accept commands (in the "
8529 "C<READY> state)."
8530 msgstr ""
8531
8532 # type: =head2
8533 #: ../src/guestfs-actions.pod:2511
8534 msgid "guestfs_is_socket"
8535 msgstr ""
8536
8537 # type: verbatim
8538 #: ../src/guestfs-actions.pod:2513
8539 #, no-wrap
8540 msgid ""
8541 " int guestfs_is_socket (guestfs_h *g,\n"
8542 "\t\tconst char *path);\n"
8543 "\n"
8544 msgstr ""
8545
8546 # type: textblock
8547 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1991
8548 msgid ""
8549 "This returns C<true> if and only if there is a Unix domain socket with the "
8550 "given C<path> name."
8551 msgstr ""
8552
8553 # type: =head2
8554 #: ../src/guestfs-actions.pod:2523
8555 msgid "guestfs_is_symlink"
8556 msgstr ""
8557
8558 # type: verbatim
8559 #: ../src/guestfs-actions.pod:2525
8560 #, no-wrap
8561 msgid ""
8562 " int guestfs_is_symlink (guestfs_h *g,\n"
8563 "\t\tconst char *path);\n"
8564 "\n"
8565 msgstr ""
8566
8567 # type: textblock
8568 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:2000
8569 msgid ""
8570 "This returns C<true> if and only if there is a symbolic link with the given "
8571 "C<path> name."
8572 msgstr ""
8573
8574 # type: =head2
8575 #: ../src/guestfs-actions.pod:2535
8576 msgid "guestfs_kill_subprocess"
8577 msgstr ""
8578
8579 # type: verbatim
8580 #: ../src/guestfs-actions.pod:2537
8581 #, no-wrap
8582 msgid ""
8583 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8584 "\n"
8585 msgstr ""
8586
8587 # type: textblock
8588 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:2009
8589 msgid "This kills the qemu subprocess.  You should never need to call this."
8590 msgstr ""
8591
8592 # type: =head2
8593 #: ../src/guestfs-actions.pod:2543
8594 msgid "guestfs_launch"
8595 msgstr ""
8596
8597 # type: verbatim
8598 #: ../src/guestfs-actions.pod:2545
8599 #, no-wrap
8600 msgid ""
8601 " int guestfs_launch (guestfs_h *g);\n"
8602 "\n"
8603 msgstr ""
8604
8605 # type: textblock
8606 #: ../src/guestfs-actions.pod:2547 ../fish/guestfish-actions.pod:2017
8607 msgid ""
8608 "Internally libguestfs is implemented by running a virtual machine using "
8609 "L<qemu(1)>."
8610 msgstr ""
8611
8612 # type: textblock
8613 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:2020
8614 msgid ""
8615 "You should call this after configuring the handle (eg. adding drives) but "
8616 "before performing any actions."
8617 msgstr ""
8618
8619 # type: =head2
8620 #: ../src/guestfs-actions.pod:2555
8621 msgid "guestfs_lchown"
8622 msgstr ""
8623
8624 # type: verbatim
8625 #: ../src/guestfs-actions.pod:2557
8626 #, no-wrap
8627 msgid ""
8628 " int guestfs_lchown (guestfs_h *g,\n"
8629 "\t\tint owner,\n"
8630 "\t\tint group,\n"
8631 "\t\tconst char *path);\n"
8632 "\n"
8633 msgstr ""
8634
8635 # type: textblock
8636 #: ../src/guestfs-actions.pod:2562
8637 msgid ""
8638 "Change the file owner to C<owner> and group to C<group>.  This is like "
8639 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8640 "changed, not the target."
8641 msgstr ""
8642
8643 # type: =head2
8644 #: ../src/guestfs-actions.pod:2572
8645 msgid "guestfs_lgetxattrs"
8646 msgstr ""
8647
8648 # type: verbatim
8649 #: ../src/guestfs-actions.pod:2574
8650 #, no-wrap
8651 msgid ""
8652 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8653 "\t\tconst char *path);\n"
8654 "\n"
8655 msgstr ""
8656
8657 # type: textblock
8658 #: ../src/guestfs-actions.pod:2577
8659 msgid ""
8660 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8661 "then it returns the extended attributes of the link itself."
8662 msgstr ""
8663
8664 # type: =head2
8665 #: ../src/guestfs-actions.pod:2586
8666 msgid "guestfs_list_devices"
8667 msgstr ""
8668
8669 # type: verbatim
8670 #: ../src/guestfs-actions.pod:2588
8671 #, no-wrap
8672 msgid ""
8673 " char **guestfs_list_devices (guestfs_h *g);\n"
8674 "\n"
8675 msgstr ""
8676
8677 # type: textblock
8678 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:2047
8679 msgid "List all the block devices."
8680 msgstr ""
8681
8682 # type: textblock
8683 #: ../src/guestfs-actions.pod:2592 ../fish/guestfish-actions.pod:2049
8684 msgid "The full block device names are returned, eg. C</dev/sda>."
8685 msgstr ""
8686
8687 # type: =head2
8688 #: ../src/guestfs-actions.pod:2600
8689 msgid "guestfs_list_filesystems"
8690 msgstr ""
8691
8692 # type: verbatim
8693 #: ../src/guestfs-actions.pod:2602
8694 #, no-wrap
8695 msgid ""
8696 " char **guestfs_list_filesystems (guestfs_h *g);\n"
8697 "\n"
8698 msgstr ""
8699
8700 # type: textblock
8701 #: ../src/guestfs-actions.pod:2604 ../fish/guestfish-actions.pod:2057
8702 msgid ""
8703 "This inspection command looks for filesystems on partitions, block devices "
8704 "and logical volumes, returning a list of devices containing filesystems and "
8705 "their type."
8706 msgstr ""
8707
8708 # type: textblock
8709 #: ../src/guestfs-actions.pod:2608 ../fish/guestfish-actions.pod:2061
8710 msgid ""
8711 "The return value is a hash, where the keys are the devices containing "
8712 "filesystems, and the values are the filesystem types.  For example:"
8713 msgstr ""
8714
8715 # type: verbatim
8716 #: ../src/guestfs-actions.pod:2612 ../fish/guestfish-actions.pod:2065
8717 #, no-wrap
8718 msgid ""
8719 " \"/dev/sda1\" => \"ntfs\"\n"
8720 " \"/dev/sda2\" => \"ext2\"\n"
8721 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8722 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8723 "\n"
8724 msgstr ""
8725
8726 # type: textblock
8727 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:2070
8728 msgid ""
8729 "The value can have the special value \"unknown\", meaning the content of the "
8730 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8731 msgstr ""
8732
8733 # type: textblock
8734 #: ../src/guestfs-actions.pod:2621
8735 msgid ""
8736 "This command runs other libguestfs commands, which might include "
8737 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8738 "soon after launch and only when nothing is mounted."
8739 msgstr ""
8740
8741 # type: textblock
8742 #: ../src/guestfs-actions.pod:2625
8743 msgid ""
8744 "Not all of the filesystems returned will be mountable.  In particular, swap "
8745 "partitions are returned in the list.  Also this command does not check that "
8746 "each filesystem found is valid and mountable, and some filesystems might be "
8747 "mountable but require special options.  Filesystems may not all belong to a "
8748 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
8749 msgstr ""
8750
8751 # type: =head2
8752 #: ../src/guestfs-actions.pod:2639
8753 msgid "guestfs_list_partitions"
8754 msgstr ""
8755
8756 # type: verbatim
8757 #: ../src/guestfs-actions.pod:2641
8758 #, no-wrap
8759 msgid ""
8760 " char **guestfs_list_partitions (guestfs_h *g);\n"
8761 "\n"
8762 msgstr ""
8763
8764 # type: textblock
8765 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:2090
8766 msgid "List all the partitions detected on all block devices."
8767 msgstr ""
8768
8769 # type: textblock
8770 #: ../src/guestfs-actions.pod:2645 ../fish/guestfish-actions.pod:2092
8771 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8772 msgstr ""
8773
8774 # type: textblock
8775 #: ../src/guestfs-actions.pod:2647
8776 msgid ""
8777 "This does not return logical volumes.  For that you will need to call "
8778 "C<guestfs_lvs>."
8779 msgstr ""
8780
8781 # type: =head2
8782 #: ../src/guestfs-actions.pod:2656
8783 msgid "guestfs_ll"
8784 msgstr ""
8785
8786 # type: verbatim
8787 #: ../src/guestfs-actions.pod:2658
8788 #, no-wrap
8789 msgid ""
8790 " char *guestfs_ll (guestfs_h *g,\n"
8791 "\t\tconst char *directory);\n"
8792 "\n"
8793 msgstr ""
8794
8795 # type: textblock
8796 #: ../src/guestfs-actions.pod:2661 ../fish/guestfish-actions.pod:2103
8797 msgid ""
8798 "List the files in C<directory> (relative to the root directory, there is no "
8799 "cwd) in the format of 'ls -la'."
8800 msgstr ""
8801
8802 # type: textblock
8803 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:2106
8804 msgid ""
8805 "This command is mostly useful for interactive sessions.  It is I<not> "
8806 "intended that you try to parse the output string."
8807 msgstr ""
8808
8809 # type: =head2
8810 #: ../src/guestfs-actions.pod:2670
8811 msgid "guestfs_ln"
8812 msgstr ""
8813
8814 # type: verbatim
8815 #: ../src/guestfs-actions.pod:2672
8816 #, no-wrap
8817 msgid ""
8818 " int guestfs_ln (guestfs_h *g,\n"
8819 "\t\tconst char *target,\n"
8820 "\t\tconst char *linkname);\n"
8821 "\n"
8822 msgstr ""
8823
8824 # type: textblock
8825 #: ../src/guestfs-actions.pod:2676 ../fish/guestfish-actions.pod:2113
8826 msgid "This command creates a hard link using the C<ln> command."
8827 msgstr ""
8828
8829 # type: =head2
8830 #: ../src/guestfs-actions.pod:2680
8831 msgid "guestfs_ln_f"
8832 msgstr ""
8833
8834 # type: verbatim
8835 #: ../src/guestfs-actions.pod:2682
8836 #, no-wrap
8837 msgid ""
8838 " int guestfs_ln_f (guestfs_h *g,\n"
8839 "\t\tconst char *target,\n"
8840 "\t\tconst char *linkname);\n"
8841 "\n"
8842 msgstr ""
8843
8844 # type: textblock
8845 #: ../src/guestfs-actions.pod:2686 ../fish/guestfish-actions.pod:2119
8846 msgid ""
8847 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8848 "option removes the link (C<linkname>) if it exists already."
8849 msgstr ""
8850
8851 # type: =head2
8852 #: ../src/guestfs-actions.pod:2691
8853 msgid "guestfs_ln_s"
8854 msgstr ""
8855
8856 # type: verbatim
8857 #: ../src/guestfs-actions.pod:2693
8858 #, no-wrap
8859 msgid ""
8860 " int guestfs_ln_s (guestfs_h *g,\n"
8861 "\t\tconst char *target,\n"
8862 "\t\tconst char *linkname);\n"
8863 "\n"
8864 msgstr ""
8865
8866 # type: textblock
8867 #: ../src/guestfs-actions.pod:2697 ../fish/guestfish-actions.pod:2126
8868 msgid "This command creates a symbolic link using the C<ln -s> command."
8869 msgstr ""
8870
8871 # type: =head2
8872 #: ../src/guestfs-actions.pod:2701
8873 msgid "guestfs_ln_sf"
8874 msgstr ""
8875
8876 # type: verbatim
8877 #: ../src/guestfs-actions.pod:2703
8878 #, no-wrap
8879 msgid ""
8880 " int guestfs_ln_sf (guestfs_h *g,\n"
8881 "\t\tconst char *target,\n"
8882 "\t\tconst char *linkname);\n"
8883 "\n"
8884 msgstr ""
8885
8886 # type: textblock
8887 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:2132
8888 msgid ""
8889 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8890 "option removes the link (C<linkname>) if it exists already."
8891 msgstr ""
8892
8893 # type: =head2
8894 #: ../src/guestfs-actions.pod:2712
8895 msgid "guestfs_lremovexattr"
8896 msgstr ""
8897
8898 # type: verbatim
8899 #: ../src/guestfs-actions.pod:2714
8900 #, no-wrap
8901 msgid ""
8902 " int guestfs_lremovexattr (guestfs_h *g,\n"
8903 "\t\tconst char *xattr,\n"
8904 "\t\tconst char *path);\n"
8905 "\n"
8906 msgstr ""
8907
8908 # type: textblock
8909 #: ../src/guestfs-actions.pod:2718
8910 msgid ""
8911 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8912 "link, then it removes an extended attribute of the link itself."
8913 msgstr ""
8914
8915 # type: =head2
8916 #: ../src/guestfs-actions.pod:2724
8917 msgid "guestfs_ls"
8918 msgstr ""
8919
8920 # type: verbatim
8921 #: ../src/guestfs-actions.pod:2726
8922 #, no-wrap
8923 msgid ""
8924 " char **guestfs_ls (guestfs_h *g,\n"
8925 "\t\tconst char *directory);\n"
8926 "\n"
8927 msgstr ""
8928
8929 # type: textblock
8930 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:2147
8931 msgid ""
8932 "List the files in C<directory> (relative to the root directory, there is no "
8933 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
8934 msgstr ""
8935
8936 # type: textblock
8937 #: ../src/guestfs-actions.pod:2733
8938 msgid ""
8939 "This command is mostly useful for interactive sessions.  Programs should "
8940 "probably use C<guestfs_readdir> instead."
8941 msgstr ""
8942
8943 # type: =head2
8944 #: ../src/guestfs-actions.pod:2740
8945 msgid "guestfs_lsetxattr"
8946 msgstr ""
8947
8948 # type: verbatim
8949 #: ../src/guestfs-actions.pod:2742
8950 #, no-wrap
8951 msgid ""
8952 " int guestfs_lsetxattr (guestfs_h *g,\n"
8953 "\t\tconst char *xattr,\n"
8954 "\t\tconst char *val,\n"
8955 "\t\tint vallen,\n"
8956 "\t\tconst char *path);\n"
8957 "\n"
8958 msgstr ""
8959
8960 # type: textblock
8961 #: ../src/guestfs-actions.pod:2748
8962 msgid ""
8963 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8964 "then it sets an extended attribute of the link itself."
8965 msgstr ""
8966
8967 # type: =head2
8968 #: ../src/guestfs-actions.pod:2754
8969 msgid "guestfs_lstat"
8970 msgstr ""
8971
8972 # type: verbatim
8973 #: ../src/guestfs-actions.pod:2756
8974 #, no-wrap
8975 msgid ""
8976 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8977 "\t\tconst char *path);\n"
8978 "\n"
8979 msgstr ""
8980
8981 # type: textblock
8982 #: ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:4835
8983 #: ../fish/guestfish-actions.pod:2166 ../fish/guestfish-actions.pod:3748
8984 msgid "Returns file information for the given C<path>."
8985 msgstr ""
8986
8987 # type: textblock
8988 #: ../src/guestfs-actions.pod:2761
8989 msgid ""
8990 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8991 "link, then the link is stat-ed, not the file it refers to."
8992 msgstr ""
8993
8994 # type: textblock
8995 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:2172
8996 msgid "This is the same as the C<lstat(2)> system call."
8997 msgstr ""
8998
8999 # type: textblock
9000 #: ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:4839
9001 msgid ""
9002 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9003 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9004 msgstr ""
9005
9006 # type: =head2
9007 #: ../src/guestfs-actions.pod:2771
9008 msgid "guestfs_lstatlist"
9009 msgstr ""
9010
9011 # type: verbatim
9012 #: ../src/guestfs-actions.pod:2773
9013 #, no-wrap
9014 msgid ""
9015 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
9016 "\t\tconst char *path,\n"
9017 "\t\tchar *const *names);\n"
9018 "\n"
9019 msgstr ""
9020
9021 # type: textblock
9022 #: ../src/guestfs-actions.pod:2777
9023 msgid ""
9024 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9025 "files, where all files are in the directory C<path>.  C<names> is the list "
9026 "of files from this directory."
9027 msgstr ""
9028
9029 # type: textblock
9030 #: ../src/guestfs-actions.pod:2781 ../fish/guestfish-actions.pod:2182
9031 msgid ""
9032 "On return you get a list of stat structs, with a one-to-one correspondence "
9033 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9034 "then the C<ino> field of that structure is set to C<-1>."
9035 msgstr ""
9036
9037 # type: textblock
9038 #: ../src/guestfs-actions.pod:2786
9039 msgid ""
9040 "This call is intended for programs that want to efficiently list a directory "
9041 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9042 "for a similarly efficient call for getting extended attributes.  Very long "
9043 "directory listings might cause the protocol message size to be exceeded, "
9044 "causing this call to fail.  The caller must split up such requests into "
9045 "smaller groups of names."
9046 msgstr ""
9047
9048 # type: textblock
9049 #: ../src/guestfs-actions.pod:2794
9050 msgid ""
9051 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
9052 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9053 "C<guestfs_free_stat_list> after use>."
9054 msgstr ""
9055
9056 # type: =head2
9057 #: ../src/guestfs-actions.pod:2799
9058 msgid "guestfs_luks_add_key"
9059 msgstr ""
9060
9061 # type: verbatim
9062 #: ../src/guestfs-actions.pod:2801
9063 #, no-wrap
9064 msgid ""
9065 " int guestfs_luks_add_key (guestfs_h *g,\n"
9066 "\t\tconst char *device,\n"
9067 "\t\tconst char *key,\n"
9068 "\t\tconst char *newkey,\n"
9069 "\t\tint keyslot);\n"
9070 "\n"
9071 msgstr ""
9072
9073 # type: textblock
9074 #: ../src/guestfs-actions.pod:2807 ../fish/guestfish-actions.pod:2199
9075 msgid ""
9076 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9077 "existing key, and is used to access the device.  C<newkey> is the new key to "
9078 "add.  C<keyslot> is the key slot that will be replaced."
9079 msgstr ""
9080
9081 # type: textblock
9082 #: ../src/guestfs-actions.pod:2812
9083 msgid ""
9084 "Note that if C<keyslot> already contains a key, then this command will "
9085 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9086 msgstr ""
9087
9088 # type: textblock
9089 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:2852
9090 #: ../src/guestfs-actions.pod:2872 ../src/guestfs-actions.pod:2889
9091 #: ../src/guestfs-actions.pod:2918 ../src/guestfs-actions.pod:2934
9092 msgid ""
9093 "This function takes a key or passphrase parameter which could contain "
9094 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9095 "information."
9096 msgstr ""
9097
9098 # type: =head2
9099 #: ../src/guestfs-actions.pod:2822
9100 msgid "guestfs_luks_close"
9101 msgstr ""
9102
9103 # type: verbatim
9104 #: ../src/guestfs-actions.pod:2824
9105 #, no-wrap
9106 msgid ""
9107 " int guestfs_luks_close (guestfs_h *g,\n"
9108 "\t\tconst char *device);\n"
9109 "\n"
9110 msgstr ""
9111
9112 # type: textblock
9113 #: ../src/guestfs-actions.pod:2827
9114 msgid ""
9115 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9116 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9117 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9118 "underlying block device."
9119 msgstr ""
9120
9121 # type: =head2
9122 #: ../src/guestfs-actions.pod:2835
9123 msgid "guestfs_luks_format"
9124 msgstr ""
9125
9126 # type: verbatim
9127 #: ../src/guestfs-actions.pod:2837
9128 #, no-wrap
9129 msgid ""
9130 " int guestfs_luks_format (guestfs_h *g,\n"
9131 "\t\tconst char *device,\n"
9132 "\t\tconst char *key,\n"
9133 "\t\tint keyslot);\n"
9134 "\n"
9135 msgstr ""
9136
9137 # type: textblock
9138 #: ../src/guestfs-actions.pod:2842 ../fish/guestfish-actions.pod:2225
9139 msgid ""
9140 "This command erases existing data on C<device> and formats the device as a "
9141 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9142 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9143 msgstr ""
9144
9145 # type: textblock
9146 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2869
9147 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3715
9148 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4697
9149 #: ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:4740
9150 #: ../src/guestfs-actions.pod:5705 ../fish/guestfish-actions.pod:2233
9151 #: ../fish/guestfish-actions.pod:2246 ../fish/guestfish-actions.pod:2330
9152 #: ../fish/guestfish-actions.pod:2860 ../fish/guestfish-actions.pod:3367
9153 #: ../fish/guestfish-actions.pod:3647 ../fish/guestfish-actions.pod:3663
9154 #: ../fish/guestfish-actions.pod:3678 ../fish/guestfish-actions.pod:4393
9155 msgid ""
9156 "B<This command is dangerous.  Without careful use you can easily destroy all "
9157 "your data>."
9158 msgstr ""
9159
9160 # type: =head2
9161 #: ../src/guestfs-actions.pod:2856
9162 msgid "guestfs_luks_format_cipher"
9163 msgstr ""
9164
9165 # type: verbatim
9166 #: ../src/guestfs-actions.pod:2858
9167 #, no-wrap
9168 msgid ""
9169 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
9170 "\t\tconst char *device,\n"
9171 "\t\tconst char *key,\n"
9172 "\t\tint keyslot,\n"
9173 "\t\tconst char *cipher);\n"
9174 "\n"
9175 msgstr ""
9176
9177 # type: textblock
9178 #: ../src/guestfs-actions.pod:2864
9179 msgid ""
9180 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9181 "set the C<cipher> used."
9182 msgstr ""
9183
9184 # type: =head2
9185 #: ../src/guestfs-actions.pod:2876
9186 msgid "guestfs_luks_kill_slot"
9187 msgstr ""
9188
9189 # type: verbatim
9190 #: ../src/guestfs-actions.pod:2878
9191 #, no-wrap
9192 msgid ""
9193 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
9194 "\t\tconst char *device,\n"
9195 "\t\tconst char *key,\n"
9196 "\t\tint keyslot);\n"
9197 "\n"
9198 msgstr ""
9199
9200 # type: textblock
9201 #: ../src/guestfs-actions.pod:2883 ../fish/guestfish-actions.pod:2253
9202 msgid ""
9203 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9204 "device C<device>.  C<key> must be one of the I<other> keys."
9205 msgstr ""
9206
9207 # type: =head2
9208 #: ../src/guestfs-actions.pod:2893
9209 msgid "guestfs_luks_open"
9210 msgstr ""
9211
9212 # type: verbatim
9213 #: ../src/guestfs-actions.pod:2895
9214 #, no-wrap
9215 msgid ""
9216 " int guestfs_luks_open (guestfs_h *g,\n"
9217 "\t\tconst char *device,\n"
9218 "\t\tconst char *key,\n"
9219 "\t\tconst char *mapname);\n"
9220 "\n"
9221 msgstr ""
9222
9223 # type: textblock
9224 #: ../src/guestfs-actions.pod:2900 ../fish/guestfish-actions.pod:2264
9225 msgid ""
9226 "This command opens a block device which has been encrypted according to the "
9227 "Linux Unified Key Setup (LUKS) standard."
9228 msgstr ""
9229
9230 # type: textblock
9231 #: ../src/guestfs-actions.pod:2903 ../fish/guestfish-actions.pod:2267
9232 msgid "C<device> is the encrypted block device or partition."
9233 msgstr ""
9234
9235 # type: textblock
9236 #: ../src/guestfs-actions.pod:2905 ../fish/guestfish-actions.pod:2269
9237 msgid ""
9238 "The caller must supply one of the keys associated with the LUKS block "
9239 "device, in the C<key> parameter."
9240 msgstr ""
9241
9242 # type: textblock
9243 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2272
9244 msgid ""
9245 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9246 "writes to this block device are decrypted from and encrypted to the "
9247 "underlying C<device> respectively."
9248 msgstr ""
9249
9250 # type: textblock
9251 #: ../src/guestfs-actions.pod:2912
9252 msgid ""
9253 "If this block device contains LVM volume groups, then calling "
9254 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9255 "visible."
9256 msgstr ""
9257
9258 # type: =head2
9259 #: ../src/guestfs-actions.pod:2922
9260 msgid "guestfs_luks_open_ro"
9261 msgstr ""
9262
9263 # type: verbatim
9264 #: ../src/guestfs-actions.pod:2924
9265 #, no-wrap
9266 msgid ""
9267 " int guestfs_luks_open_ro (guestfs_h *g,\n"
9268 "\t\tconst char *device,\n"
9269 "\t\tconst char *key,\n"
9270 "\t\tconst char *mapname);\n"
9271 "\n"
9272 msgstr ""
9273
9274 # type: textblock
9275 #: ../src/guestfs-actions.pod:2929
9276 msgid ""
9277 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9278 "created."
9279 msgstr ""
9280
9281 # type: =head2
9282 #: ../src/guestfs-actions.pod:2938
9283 msgid "guestfs_lvcreate"
9284 msgstr ""
9285
9286 # type: verbatim
9287 #: ../src/guestfs-actions.pod:2940
9288 #, no-wrap
9289 msgid ""
9290 " int guestfs_lvcreate (guestfs_h *g,\n"
9291 "\t\tconst char *logvol,\n"
9292 "\t\tconst char *volgroup,\n"
9293 "\t\tint mbytes);\n"
9294 "\n"
9295 msgstr ""
9296
9297 # type: textblock
9298 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2297
9299 msgid ""
9300 "This creates an LVM logical volume called C<logvol> on the volume group "
9301 "C<volgroup>, with C<size> megabytes."
9302 msgstr ""
9303
9304 # type: =head2
9305 #: ../src/guestfs-actions.pod:2950
9306 msgid "guestfs_lvm_canonical_lv_name"
9307 msgstr ""
9308
9309 # type: verbatim
9310 #: ../src/guestfs-actions.pod:2952
9311 #, no-wrap
9312 msgid ""
9313 " char *guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9314 "\t\tconst char *lvname);\n"
9315 "\n"
9316 msgstr ""
9317
9318 # type: textblock
9319 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2304
9320 msgid ""
9321 "This converts alternative naming schemes for LVs that you might find to the "
9322 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
9323 "LV>."
9324 msgstr ""
9325
9326 # type: textblock
9327 #: ../src/guestfs-actions.pod:2959 ../fish/guestfish-actions.pod:2308
9328 msgid ""
9329 "This command returns an error if the C<lvname> parameter does not refer to a "
9330 "logical volume."
9331 msgstr ""
9332
9333 # type: textblock
9334 #: ../src/guestfs-actions.pod:2962
9335 msgid "See also C<guestfs_is_lv>."
9336 msgstr ""
9337
9338 # type: =head2
9339 #: ../src/guestfs-actions.pod:2967
9340 msgid "guestfs_lvm_clear_filter"
9341 msgstr ""
9342
9343 # type: verbatim
9344 #: ../src/guestfs-actions.pod:2969
9345 #, no-wrap
9346 msgid ""
9347 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
9348 "\n"
9349 msgstr ""
9350
9351 # type: textblock
9352 #: ../src/guestfs-actions.pod:2971
9353 msgid ""
9354 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9355 "see every block device."
9356 msgstr ""
9357
9358 # type: textblock
9359 #: ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3010
9360 #: ../fish/guestfish-actions.pod:2320 ../fish/guestfish-actions.pod:2351
9361 msgid ""
9362 "This command also clears the LVM cache and performs a volume group scan."
9363 msgstr ""
9364
9365 # type: =head2
9366 #: ../src/guestfs-actions.pod:2979
9367 msgid "guestfs_lvm_remove_all"
9368 msgstr ""
9369
9370 # type: verbatim
9371 #: ../src/guestfs-actions.pod:2981
9372 #, no-wrap
9373 msgid ""
9374 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
9375 "\n"
9376 msgstr ""
9377
9378 # type: textblock
9379 #: ../src/guestfs-actions.pod:2983 ../fish/guestfish-actions.pod:2327
9380 msgid ""
9381 "This command removes all LVM logical volumes, volume groups and physical "
9382 "volumes."
9383 msgstr ""
9384
9385 # type: =head2
9386 #: ../src/guestfs-actions.pod:2991
9387 msgid "guestfs_lvm_set_filter"
9388 msgstr ""
9389
9390 # type: verbatim
9391 #: ../src/guestfs-actions.pod:2993
9392 #, no-wrap
9393 msgid ""
9394 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
9395 "\t\tchar *const *devices);\n"
9396 "\n"
9397 msgstr ""
9398
9399 # type: textblock
9400 #: ../src/guestfs-actions.pod:2996 ../fish/guestfish-actions.pod:2337
9401 msgid ""
9402 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9403 "block devices in the list C<devices>, and will ignore all other attached "
9404 "block devices."
9405 msgstr ""
9406
9407 # type: textblock
9408 #: ../src/guestfs-actions.pod:3000 ../fish/guestfish-actions.pod:2341
9409 msgid ""
9410 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9411 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9412 "there are two types of duplication possible: either cloned PVs/VGs which "
9413 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9414 "same name.  In normal operation you cannot create this situation, but you "
9415 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9416 "inside the LVM metadata."
9417 msgstr ""
9418
9419 # type: textblock
9420 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2354
9421 msgid "You can filter whole block devices or individual partitions."
9422 msgstr ""
9423
9424 # type: textblock
9425 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2356
9426 msgid ""
9427 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9428 "filesystem), even if you are not filtering out that VG."
9429 msgstr ""
9430
9431 # type: =head2
9432 #: ../src/guestfs-actions.pod:3021
9433 msgid "guestfs_lvremove"
9434 msgstr ""
9435
9436 # type: verbatim
9437 #: ../src/guestfs-actions.pod:3023
9438 #, no-wrap
9439 msgid ""
9440 " int guestfs_lvremove (guestfs_h *g,\n"
9441 "\t\tconst char *device);\n"
9442 "\n"
9443 msgstr ""
9444
9445 # type: textblock
9446 #: ../src/guestfs-actions.pod:3026 ../fish/guestfish-actions.pod:2364
9447 msgid ""
9448 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9449 "LV, such as C</dev/VG/LV>."
9450 msgstr ""
9451
9452 # type: textblock
9453 #: ../src/guestfs-actions.pod:3029 ../fish/guestfish-actions.pod:2367
9454 msgid ""
9455 "You can also remove all LVs in a volume group by specifying the VG name, C</"
9456 "dev/VG>."
9457 msgstr ""
9458
9459 # type: =head2
9460 #: ../src/guestfs-actions.pod:3034
9461 msgid "guestfs_lvrename"
9462 msgstr ""
9463
9464 # type: verbatim
9465 #: ../src/guestfs-actions.pod:3036
9466 #, no-wrap
9467 msgid ""
9468 " int guestfs_lvrename (guestfs_h *g,\n"
9469 "\t\tconst char *logvol,\n"
9470 "\t\tconst char *newlogvol);\n"
9471 "\n"
9472 msgstr ""
9473
9474 # type: textblock
9475 #: ../src/guestfs-actions.pod:3040 ../fish/guestfish-actions.pod:2374
9476 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9477 msgstr ""
9478
9479 # type: =head2
9480 #: ../src/guestfs-actions.pod:3044
9481 msgid "guestfs_lvresize"
9482 msgstr ""
9483
9484 # type: verbatim
9485 #: ../src/guestfs-actions.pod:3046
9486 #, no-wrap
9487 msgid ""
9488 " int guestfs_lvresize (guestfs_h *g,\n"
9489 "\t\tconst char *device,\n"
9490 "\t\tint mbytes);\n"
9491 "\n"
9492 msgstr ""
9493
9494 # type: textblock
9495 #: ../src/guestfs-actions.pod:3050 ../fish/guestfish-actions.pod:2380
9496 msgid ""
9497 "This resizes (expands or shrinks) an existing LVM logical volume to "
9498 "C<mbytes>.  When reducing, data in the reduced part is lost."
9499 msgstr ""
9500
9501 # type: =head2
9502 #: ../src/guestfs-actions.pod:3056
9503 msgid "guestfs_lvresize_free"
9504 msgstr ""
9505
9506 # type: verbatim
9507 #: ../src/guestfs-actions.pod:3058
9508 #, no-wrap
9509 msgid ""
9510 " int guestfs_lvresize_free (guestfs_h *g,\n"
9511 "\t\tconst char *lv,\n"
9512 "\t\tint percent);\n"
9513 "\n"
9514 msgstr ""
9515
9516 # type: textblock
9517 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2388
9518 msgid ""
9519 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9520 "remaining free space in the volume group.  Commonly you would call this with "
9521 "pc = 100 which expands the logical volume as much as possible, using all "
9522 "remaining free space in the volume group."
9523 msgstr ""
9524
9525 # type: =head2
9526 #: ../src/guestfs-actions.pod:3070
9527 msgid "guestfs_lvs"
9528 msgstr ""
9529
9530 # type: verbatim
9531 #: ../src/guestfs-actions.pod:3072
9532 #, no-wrap
9533 msgid ""
9534 " char **guestfs_lvs (guestfs_h *g);\n"
9535 "\n"
9536 msgstr ""
9537
9538 # type: textblock
9539 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2398
9540 msgid ""
9541 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9542 "(8)> command."
9543 msgstr ""
9544
9545 # type: textblock
9546 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2401
9547 msgid ""
9548 "This returns a list of the logical volume device names (eg. C</dev/"
9549 "VolGroup00/LogVol00>)."
9550 msgstr ""
9551
9552 # type: textblock
9553 #: ../src/guestfs-actions.pod:3080
9554 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9555 msgstr ""
9556
9557 # type: =head2
9558 #: ../src/guestfs-actions.pod:3086
9559 msgid "guestfs_lvs_full"
9560 msgstr ""
9561
9562 # type: verbatim
9563 #: ../src/guestfs-actions.pod:3088
9564 #, no-wrap
9565 msgid ""
9566 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
9567 "\n"
9568 msgstr ""
9569
9570 # type: textblock
9571 #: ../src/guestfs-actions.pod:3090 ../fish/guestfish-actions.pod:2410
9572 msgid ""
9573 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9574 "(8)> command.  The \"full\" version includes all fields."
9575 msgstr ""
9576
9577 # type: textblock
9578 #: ../src/guestfs-actions.pod:3093
9579 msgid ""
9580 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
9581 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9582 "C<guestfs_free_lvm_lv_list> after use>."
9583 msgstr ""
9584
9585 # type: =head2
9586 #: ../src/guestfs-actions.pod:3098
9587 msgid "guestfs_lvuuid"
9588 msgstr ""
9589
9590 # type: verbatim
9591 #: ../src/guestfs-actions.pod:3100
9592 #, no-wrap
9593 msgid ""
9594 " char *guestfs_lvuuid (guestfs_h *g,\n"
9595 "\t\tconst char *device);\n"
9596 "\n"
9597 msgstr ""
9598
9599 # type: textblock
9600 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2417
9601 msgid "This command returns the UUID of the LVM LV C<device>."
9602 msgstr ""
9603
9604 # type: =head2
9605 #: ../src/guestfs-actions.pod:3108
9606 msgid "guestfs_lxattrlist"
9607 msgstr ""
9608
9609 # type: verbatim
9610 #: ../src/guestfs-actions.pod:3110
9611 #, no-wrap
9612 msgid ""
9613 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
9614 "\t\tconst char *path,\n"
9615 "\t\tchar *const *names);\n"
9616 "\n"
9617 msgstr ""
9618
9619 # type: textblock
9620 #: ../src/guestfs-actions.pod:3114 ../fish/guestfish-actions.pod:2423
9621 msgid ""
9622 "This call allows you to get the extended attributes of multiple files, where "
9623 "all files are in the directory C<path>.  C<names> is the list of files from "
9624 "this directory."
9625 msgstr ""
9626
9627 # type: textblock
9628 #: ../src/guestfs-actions.pod:3118 ../fish/guestfish-actions.pod:2427
9629 msgid ""
9630 "On return you get a flat list of xattr structs which must be interpreted "
9631 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9632 "C<attrval> in this struct is zero-length to indicate there was an error "
9633 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9634 "number (the number of following attributes for this file, which could be C<"
9635 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
9636 "for the first named file.  This repeats for the second and subsequent files."
9637 msgstr ""
9638
9639 # type: textblock
9640 #: ../src/guestfs-actions.pod:3128
9641 msgid ""
9642 "This call is intended for programs that want to efficiently list a directory "
9643 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9644 "a similarly efficient call for getting standard stats.  Very long directory "
9645 "listings might cause the protocol message size to be exceeded, causing this "
9646 "call to fail.  The caller must split up such requests into smaller groups of "
9647 "names."
9648 msgstr ""
9649
9650 # type: =head2
9651 #: ../src/guestfs-actions.pod:3141
9652 msgid "guestfs_mkdir"
9653 msgstr ""
9654
9655 # type: verbatim
9656 #: ../src/guestfs-actions.pod:3143
9657 #, no-wrap
9658 msgid ""
9659 " int guestfs_mkdir (guestfs_h *g,\n"
9660 "\t\tconst char *path);\n"
9661 "\n"
9662 msgstr ""
9663
9664 # type: textblock
9665 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2449
9666 msgid "Create a directory named C<path>."
9667 msgstr ""
9668
9669 # type: =head2
9670 #: ../src/guestfs-actions.pod:3150
9671 msgid "guestfs_mkdir_mode"
9672 msgstr ""
9673
9674 # type: verbatim
9675 #: ../src/guestfs-actions.pod:3152
9676 #, no-wrap
9677 msgid ""
9678 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9679 "\t\tconst char *path,\n"
9680 "\t\tint mode);\n"
9681 "\n"
9682 msgstr ""
9683
9684 # type: textblock
9685 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2455
9686 msgid ""
9687 "This command creates a directory, setting the initial permissions of the "
9688 "directory to C<mode>."
9689 msgstr ""
9690
9691 # type: textblock
9692 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2458
9693 msgid ""
9694 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9695 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9696 "other ways."
9697 msgstr ""
9698
9699 # type: textblock
9700 #: ../src/guestfs-actions.pod:3163
9701 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9702 msgstr ""
9703
9704 # type: =head2
9705 #: ../src/guestfs-actions.pod:3167
9706 msgid "guestfs_mkdir_p"
9707 msgstr ""
9708
9709 # type: verbatim
9710 #: ../src/guestfs-actions.pod:3169
9711 #, no-wrap
9712 msgid ""
9713 " int guestfs_mkdir_p (guestfs_h *g,\n"
9714 "\t\tconst char *path);\n"
9715 "\n"
9716 msgstr ""
9717
9718 # type: textblock
9719 #: ../src/guestfs-actions.pod:3172 ../fish/guestfish-actions.pod:2468
9720 msgid ""
9721 "Create a directory named C<path>, creating any parent directories as "
9722 "necessary.  This is like the C<mkdir -p> shell command."
9723 msgstr ""
9724
9725 # type: =head2
9726 #: ../src/guestfs-actions.pod:3177
9727 msgid "guestfs_mkdtemp"
9728 msgstr ""
9729
9730 # type: verbatim
9731 #: ../src/guestfs-actions.pod:3179
9732 #, no-wrap
9733 msgid ""
9734 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9735 "\t\tconst char *template);\n"
9736 "\n"
9737 msgstr ""
9738
9739 # type: textblock
9740 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2475
9741 msgid ""
9742 "This command creates a temporary directory.  The C<template> parameter "
9743 "should be a full pathname for the temporary directory name with the final "
9744 "six characters being \"XXXXXX\"."
9745 msgstr ""
9746
9747 # type: textblock
9748 #: ../src/guestfs-actions.pod:3187 ../fish/guestfish-actions.pod:2480
9749 msgid ""
9750 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9751 "being suitable for Windows filesystems."
9752 msgstr ""
9753
9754 # type: textblock
9755 #: ../src/guestfs-actions.pod:3190 ../fish/guestfish-actions.pod:2483
9756 msgid "The name of the temporary directory that was created is returned."
9757 msgstr ""
9758
9759 # type: textblock
9760 #: ../src/guestfs-actions.pod:3193 ../fish/guestfish-actions.pod:2486
9761 msgid "The temporary directory is created with mode 0700 and is owned by root."
9762 msgstr ""
9763
9764 # type: textblock
9765 #: ../src/guestfs-actions.pod:3196 ../fish/guestfish-actions.pod:2489
9766 msgid ""
9767 "The caller is responsible for deleting the temporary directory and its "
9768 "contents after use."
9769 msgstr ""
9770
9771 # type: textblock
9772 #: ../src/guestfs-actions.pod:3199 ../fish/guestfish-actions.pod:2492
9773 msgid "See also: L<mkdtemp(3)>"
9774 msgstr ""
9775
9776 # type: =head2
9777 #: ../src/guestfs-actions.pod:3204
9778 msgid "guestfs_mke2fs_J"
9779 msgstr ""
9780
9781 # type: verbatim
9782 #: ../src/guestfs-actions.pod:3206
9783 #, no-wrap
9784 msgid ""
9785 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9786 "\t\tconst char *fstype,\n"
9787 "\t\tint blocksize,\n"
9788 "\t\tconst char *device,\n"
9789 "\t\tconst char *journal);\n"
9790 "\n"
9791 msgstr ""
9792
9793 # type: textblock
9794 #: ../src/guestfs-actions.pod:3212 ../fish/guestfish-actions.pod:2498
9795 msgid ""
9796 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9797 "C<journal>.  It is equivalent to the command:"
9798 msgstr ""
9799
9800 # type: verbatim
9801 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2502
9802 #, no-wrap
9803 msgid ""
9804 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9805 "\n"
9806 msgstr ""
9807
9808 # type: textblock
9809 #: ../src/guestfs-actions.pod:3218
9810 msgid "See also C<guestfs_mke2journal>."
9811 msgstr ""
9812
9813 # type: =head2
9814 #: ../src/guestfs-actions.pod:3222
9815 msgid "guestfs_mke2fs_JL"
9816 msgstr ""
9817
9818 # type: verbatim
9819 #: ../src/guestfs-actions.pod:3224
9820 #, no-wrap
9821 msgid ""
9822 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9823 "\t\tconst char *fstype,\n"
9824 "\t\tint blocksize,\n"
9825 "\t\tconst char *device,\n"
9826 "\t\tconst char *label);\n"
9827 "\n"
9828 msgstr ""
9829
9830 # type: textblock
9831 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2510
9832 msgid ""
9833 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9834 "the journal labeled C<label>."
9835 msgstr ""
9836
9837 # type: textblock
9838 #: ../src/guestfs-actions.pod:3233
9839 msgid "See also C<guestfs_mke2journal_L>."
9840 msgstr ""
9841
9842 # type: =head2
9843 #: ../src/guestfs-actions.pod:3237
9844 msgid "guestfs_mke2fs_JU"
9845 msgstr ""
9846
9847 # type: verbatim
9848 #: ../src/guestfs-actions.pod:3239
9849 #, no-wrap
9850 msgid ""
9851 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9852 "\t\tconst char *fstype,\n"
9853 "\t\tint blocksize,\n"
9854 "\t\tconst char *device,\n"
9855 "\t\tconst char *uuid);\n"
9856 "\n"
9857 msgstr ""
9858
9859 # type: textblock
9860 #: ../src/guestfs-actions.pod:3245 ../fish/guestfish-actions.pod:2519
9861 msgid ""
9862 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9863 "the journal with UUID C<uuid>."
9864 msgstr ""
9865
9866 # type: textblock
9867 #: ../src/guestfs-actions.pod:3248
9868 msgid "See also C<guestfs_mke2journal_U>."
9869 msgstr ""
9870
9871 # type: =head2
9872 #: ../src/guestfs-actions.pod:3252
9873 msgid "guestfs_mke2journal"
9874 msgstr ""
9875
9876 # type: verbatim
9877 #: ../src/guestfs-actions.pod:3254
9878 #, no-wrap
9879 msgid ""
9880 " int guestfs_mke2journal (guestfs_h *g,\n"
9881 "\t\tint blocksize,\n"
9882 "\t\tconst char *device);\n"
9883 "\n"
9884 msgstr ""
9885
9886 # type: textblock
9887 #: ../src/guestfs-actions.pod:3258 ../fish/guestfish-actions.pod:2528
9888 msgid ""
9889 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9890 "command:"
9891 msgstr ""
9892
9893 # type: verbatim
9894 #: ../src/guestfs-actions.pod:3261 ../fish/guestfish-actions.pod:2531
9895 #, no-wrap
9896 msgid ""
9897 " mke2fs -O journal_dev -b blocksize device\n"
9898 "\n"
9899 msgstr ""
9900
9901 # type: =head2
9902 #: ../src/guestfs-actions.pod:3265
9903 msgid "guestfs_mke2journal_L"
9904 msgstr ""
9905
9906 # type: verbatim
9907 #: ../src/guestfs-actions.pod:3267
9908 #, no-wrap
9909 msgid ""
9910 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9911 "\t\tint blocksize,\n"
9912 "\t\tconst char *label,\n"
9913 "\t\tconst char *device);\n"
9914 "\n"
9915 msgstr ""
9916
9917 # type: textblock
9918 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2537
9919 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9920 msgstr ""
9921
9922 # type: =head2
9923 #: ../src/guestfs-actions.pod:3276
9924 msgid "guestfs_mke2journal_U"
9925 msgstr ""
9926
9927 # type: verbatim
9928 #: ../src/guestfs-actions.pod:3278
9929 #, no-wrap
9930 msgid ""
9931 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9932 "\t\tint blocksize,\n"
9933 "\t\tconst char *uuid,\n"
9934 "\t\tconst char *device);\n"
9935 "\n"
9936 msgstr ""
9937
9938 # type: textblock
9939 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2543
9940 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9941 msgstr ""
9942
9943 # type: =head2
9944 #: ../src/guestfs-actions.pod:3287
9945 msgid "guestfs_mkfifo"
9946 msgstr ""
9947
9948 # type: verbatim
9949 #: ../src/guestfs-actions.pod:3289
9950 #, no-wrap
9951 msgid ""
9952 " int guestfs_mkfifo (guestfs_h *g,\n"
9953 "\t\tint mode,\n"
9954 "\t\tconst char *path);\n"
9955 "\n"
9956 msgstr ""
9957
9958 # type: textblock
9959 #: ../src/guestfs-actions.pod:3293
9960 msgid ""
9961 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9962 "is just a convenient wrapper around C<guestfs_mknod>."
9963 msgstr ""
9964
9965 # type: =head2
9966 #: ../src/guestfs-actions.pod:3301
9967 msgid "guestfs_mkfs"
9968 msgstr ""
9969
9970 # type: verbatim
9971 #: ../src/guestfs-actions.pod:3303
9972 #, no-wrap
9973 msgid ""
9974 " int guestfs_mkfs (guestfs_h *g,\n"
9975 "\t\tconst char *fstype,\n"
9976 "\t\tconst char *device);\n"
9977 "\n"
9978 msgstr ""
9979
9980 # type: textblock
9981 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2559
9982 msgid ""
9983 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9984 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9985 msgstr ""
9986
9987 # type: =head2
9988 #: ../src/guestfs-actions.pod:3313
9989 msgid "guestfs_mkfs_b"
9990 msgstr ""
9991
9992 # type: verbatim
9993 #: ../src/guestfs-actions.pod:3315
9994 #, no-wrap
9995 msgid ""
9996 " int guestfs_mkfs_b (guestfs_h *g,\n"
9997 "\t\tconst char *fstype,\n"
9998 "\t\tint blocksize,\n"
9999 "\t\tconst char *device);\n"
10000 "\n"
10001 msgstr ""
10002
10003 # type: textblock
10004 #: ../src/guestfs-actions.pod:3320
10005 msgid ""
10006 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10007 "block size of the resulting filesystem.  Supported block sizes depend on the "
10008 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10009 msgstr ""
10010
10011 # type: textblock
10012 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2572
10013 msgid ""
10014 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10015 "cluster size."
10016 msgstr ""
10017
10018 # type: =head2
10019 #: ../src/guestfs-actions.pod:3330
10020 msgid "guestfs_mkmountpoint"
10021 msgstr ""
10022
10023 # type: verbatim
10024 #: ../src/guestfs-actions.pod:3332
10025 #, no-wrap
10026 msgid ""
10027 " int guestfs_mkmountpoint (guestfs_h *g,\n"
10028 "\t\tconst char *exemptpath);\n"
10029 "\n"
10030 msgstr ""
10031
10032 # type: textblock
10033 #: ../src/guestfs-actions.pod:3335
10034 msgid ""
10035 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10036 "that can be used to create extra mountpoints before mounting the first "
10037 "filesystem."
10038 msgstr ""
10039
10040 # type: textblock
10041 #: ../src/guestfs-actions.pod:3339 ../fish/guestfish-actions.pod:2583
10042 msgid ""
10043 "These calls are I<only> necessary in some very limited circumstances, mainly "
10044 "the case where you want to mount a mix of unrelated and/or read-only "
10045 "filesystems together."
10046 msgstr ""
10047
10048 # type: textblock
10049 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2587
10050 msgid ""
10051 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10052 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10053 "inside that.  You can unpack this as follows in guestfish:"
10054 msgstr ""
10055
10056 # type: verbatim
10057 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2592
10058 #, no-wrap
10059 msgid ""
10060 " add-ro Fedora-11-i686-Live.iso\n"
10061 " run\n"
10062 " mkmountpoint /cd\n"
10063 " mkmountpoint /sqsh\n"
10064 " mkmountpoint /ext3fs\n"
10065 " mount /dev/sda /cd\n"
10066 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10067 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10068 "\n"
10069 msgstr ""
10070
10071 # type: textblock
10072 #: ../src/guestfs-actions.pod:3357 ../fish/guestfish-actions.pod:2601
10073 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10074 msgstr ""
10075
10076 # type: textblock
10077 #: ../src/guestfs-actions.pod:3359
10078 msgid ""
10079 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10080 "may get unexpected errors if you try to mix these calls.  It is safest to "
10081 "manually unmount filesystems and remove mountpoints after use."
10082 msgstr ""
10083
10084 # type: textblock
10085 #: ../src/guestfs-actions.pod:3363
10086 msgid ""
10087 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10088 "first, so for this to work for manual mountpoints, you must ensure that the "
10089 "innermost mountpoints have the longest pathnames, as in the example code "
10090 "above."
10091 msgstr ""
10092
10093 # type: textblock
10094 #: ../src/guestfs-actions.pod:3368 ../fish/guestfish-actions.pod:2612
10095 msgid ""
10096 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10097 msgstr ""
10098
10099 # type: textblock
10100 #: ../src/guestfs-actions.pod:3370
10101 msgid ""
10102 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10103 "means that C<guestfs_umount_all> is called when the handle is closed which "
10104 "can also trigger these issues."
10105 msgstr ""
10106
10107 # type: =head2
10108 #: ../src/guestfs-actions.pod:3376
10109 msgid "guestfs_mknod"
10110 msgstr ""
10111
10112 # type: verbatim
10113 #: ../src/guestfs-actions.pod:3378
10114 #, no-wrap
10115 msgid ""
10116 " int guestfs_mknod (guestfs_h *g,\n"
10117 "\t\tint mode,\n"
10118 "\t\tint devmajor,\n"
10119 "\t\tint devminor,\n"
10120 "\t\tconst char *path);\n"
10121 "\n"
10122 msgstr ""
10123
10124 # type: textblock
10125 #: ../src/guestfs-actions.pod:3384 ../fish/guestfish-actions.pod:2622
10126 msgid ""
10127 "This call creates block or character special devices, or named pipes (FIFOs)."
10128 msgstr ""
10129
10130 # type: textblock
10131 #: ../src/guestfs-actions.pod:3387 ../fish/guestfish-actions.pod:2625
10132 msgid ""
10133 "The C<mode> parameter should be the mode, using the standard constants.  "
10134 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10135 "used when creating block and character special devices."
10136 msgstr ""
10137
10138 # type: textblock
10139 #: ../src/guestfs-actions.pod:3392
10140 msgid ""
10141 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10142 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10143 "regular file).  These constants are available in the standard Linux header "
10144 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10145 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10146 "the appropriate constant for you."
10147 msgstr ""
10148
10149 # type: =head2
10150 #: ../src/guestfs-actions.pod:3404
10151 msgid "guestfs_mknod_b"
10152 msgstr ""
10153
10154 # type: verbatim
10155 #: ../src/guestfs-actions.pod:3406
10156 #, no-wrap
10157 msgid ""
10158 " int guestfs_mknod_b (guestfs_h *g,\n"
10159 "\t\tint mode,\n"
10160 "\t\tint devmajor,\n"
10161 "\t\tint devminor,\n"
10162 "\t\tconst char *path);\n"
10163 "\n"
10164 msgstr ""
10165
10166 # type: textblock
10167 #: ../src/guestfs-actions.pod:3412
10168 msgid ""
10169 "This call creates a block device node called C<path> with mode C<mode> and "
10170 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10171 "wrapper around C<guestfs_mknod>."
10172 msgstr ""
10173
10174 # type: =head2
10175 #: ../src/guestfs-actions.pod:3420
10176 msgid "guestfs_mknod_c"
10177 msgstr ""
10178
10179 # type: verbatim
10180 #: ../src/guestfs-actions.pod:3422
10181 #, no-wrap
10182 msgid ""
10183 " int guestfs_mknod_c (guestfs_h *g,\n"
10184 "\t\tint mode,\n"
10185 "\t\tint devmajor,\n"
10186 "\t\tint devminor,\n"
10187 "\t\tconst char *path);\n"
10188 "\n"
10189 msgstr ""
10190
10191 # type: textblock
10192 #: ../src/guestfs-actions.pod:3428
10193 msgid ""
10194 "This call creates a char device node called C<path> with mode C<mode> and "
10195 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10196 "wrapper around C<guestfs_mknod>."
10197 msgstr ""
10198
10199 # type: =head2
10200 #: ../src/guestfs-actions.pod:3436
10201 msgid "guestfs_mkswap"
10202 msgstr ""
10203
10204 # type: verbatim
10205 #: ../src/guestfs-actions.pod:3438
10206 #, no-wrap
10207 msgid ""
10208 " int guestfs_mkswap (guestfs_h *g,\n"
10209 "\t\tconst char *device);\n"
10210 "\n"
10211 msgstr ""
10212
10213 # type: textblock
10214 #: ../src/guestfs-actions.pod:3441 ../fish/guestfish-actions.pod:2664
10215 msgid "Create a swap partition on C<device>."
10216 msgstr ""
10217
10218 # type: =head2
10219 #: ../src/guestfs-actions.pod:3445
10220 msgid "guestfs_mkswap_L"
10221 msgstr ""
10222
10223 # type: verbatim
10224 #: ../src/guestfs-actions.pod:3447
10225 #, no-wrap
10226 msgid ""
10227 " int guestfs_mkswap_L (guestfs_h *g,\n"
10228 "\t\tconst char *label,\n"
10229 "\t\tconst char *device);\n"
10230 "\n"
10231 msgstr ""
10232
10233 # type: textblock
10234 #: ../src/guestfs-actions.pod:3451 ../fish/guestfish-actions.pod:2670
10235 msgid "Create a swap partition on C<device> with label C<label>."
10236 msgstr ""
10237
10238 # type: textblock
10239 #: ../src/guestfs-actions.pod:3453 ../fish/guestfish-actions.pod:2672
10240 msgid ""
10241 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
10242 "sda>), just to a partition.  This appears to be a limitation of the kernel "
10243 "or swap tools."
10244 msgstr ""
10245
10246 # type: =head2
10247 #: ../src/guestfs-actions.pod:3459
10248 msgid "guestfs_mkswap_U"
10249 msgstr ""
10250
10251 # type: verbatim
10252 #: ../src/guestfs-actions.pod:3461
10253 #, no-wrap
10254 msgid ""
10255 " int guestfs_mkswap_U (guestfs_h *g,\n"
10256 "\t\tconst char *uuid,\n"
10257 "\t\tconst char *device);\n"
10258 "\n"
10259 msgstr ""
10260
10261 # type: textblock
10262 #: ../src/guestfs-actions.pod:3465 ../fish/guestfish-actions.pod:2680
10263 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10264 msgstr ""
10265
10266 # type: =head2
10267 #: ../src/guestfs-actions.pod:3469
10268 msgid "guestfs_mkswap_file"
10269 msgstr ""
10270
10271 # type: verbatim
10272 #: ../src/guestfs-actions.pod:3471
10273 #, no-wrap
10274 msgid ""
10275 " int guestfs_mkswap_file (guestfs_h *g,\n"
10276 "\t\tconst char *path);\n"
10277 "\n"
10278 msgstr ""
10279
10280 # type: textblock
10281 #: ../src/guestfs-actions.pod:3474 ../fish/guestfish-actions.pod:2686
10282 msgid "Create a swap file."
10283 msgstr ""
10284
10285 # type: textblock
10286 #: ../src/guestfs-actions.pod:3476
10287 msgid ""
10288 "This command just writes a swap file signature to an existing file.  To "
10289 "create the file itself, use something like C<guestfs_fallocate>."
10290 msgstr ""
10291
10292 # type: =head2
10293 #: ../src/guestfs-actions.pod:3481
10294 msgid "guestfs_modprobe"
10295 msgstr ""
10296
10297 # type: verbatim
10298 #: ../src/guestfs-actions.pod:3483
10299 #, no-wrap
10300 msgid ""
10301 " int guestfs_modprobe (guestfs_h *g,\n"
10302 "\t\tconst char *modulename);\n"
10303 "\n"
10304 msgstr ""
10305
10306 # type: textblock
10307 #: ../src/guestfs-actions.pod:3486 ../fish/guestfish-actions.pod:2695
10308 msgid "This loads a kernel module in the appliance."
10309 msgstr ""
10310
10311 # type: textblock
10312 #: ../src/guestfs-actions.pod:3488 ../fish/guestfish-actions.pod:2697
10313 msgid ""
10314 "The kernel module must have been whitelisted when libguestfs was built (see "
10315 "C<appliance/kmod.whitelist.in> in the source)."
10316 msgstr ""
10317
10318 # type: =head2
10319 #: ../src/guestfs-actions.pod:3493
10320 msgid "guestfs_mount"
10321 msgstr ""
10322
10323 # type: verbatim
10324 #: ../src/guestfs-actions.pod:3495
10325 #, no-wrap
10326 msgid ""
10327 " int guestfs_mount (guestfs_h *g,\n"
10328 "\t\tconst char *device,\n"
10329 "\t\tconst char *mountpoint);\n"
10330 "\n"
10331 msgstr ""
10332
10333 # type: textblock
10334 #: ../src/guestfs-actions.pod:3499 ../fish/guestfish-actions.pod:2704
10335 msgid ""
10336 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10337 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10338 "those block devices contain partitions, they will have the usual names (eg. "
10339 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10340 msgstr ""
10341
10342 # type: textblock
10343 #: ../src/guestfs-actions.pod:3505 ../fish/guestfish-actions.pod:2710
10344 msgid ""
10345 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10346 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10347 "mounted on directories which already exist."
10348 msgstr ""
10349
10350 # type: textblock
10351 #: ../src/guestfs-actions.pod:3510 ../fish/guestfish-actions.pod:2715
10352 msgid ""
10353 "The mounted filesystem is writable, if we have sufficient permissions on the "
10354 "underlying device."
10355 msgstr ""
10356
10357 # type: textblock
10358 #: ../src/guestfs-actions.pod:3513
10359 msgid ""
10360 "B<Important note:> When you use this call, the filesystem options C<sync> "
10361 "and C<noatime> are set implicitly.  This was originally done because we "
10362 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10363 "very large negative performance impact and negligible effect on "
10364 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10365 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10366 "(use an empty string for the first parameter if you don't want any options)."
10367 msgstr ""
10368
10369 # type: =head2
10370 #: ../src/guestfs-actions.pod:3525
10371 msgid "guestfs_mount_loop"
10372 msgstr ""
10373
10374 # type: verbatim
10375 #: ../src/guestfs-actions.pod:3527
10376 #, no-wrap
10377 msgid ""
10378 " int guestfs_mount_loop (guestfs_h *g,\n"
10379 "\t\tconst char *file,\n"
10380 "\t\tconst char *mountpoint);\n"
10381 "\n"
10382 msgstr ""
10383
10384 # type: textblock
10385 #: ../src/guestfs-actions.pod:3531 ../fish/guestfish-actions.pod:2732
10386 msgid ""
10387 "This command lets you mount C<file> (a filesystem image in a file) on a "
10388 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10389 "mountpoint>."
10390 msgstr ""
10391
10392 # type: =head2
10393 #: ../src/guestfs-actions.pod:3537
10394 msgid "guestfs_mount_options"
10395 msgstr ""
10396
10397 # type: verbatim
10398 #: ../src/guestfs-actions.pod:3539
10399 #, no-wrap
10400 msgid ""
10401 " int guestfs_mount_options (guestfs_h *g,\n"
10402 "\t\tconst char *options,\n"
10403 "\t\tconst char *device,\n"
10404 "\t\tconst char *mountpoint);\n"
10405 "\n"
10406 msgstr ""
10407
10408 # type: textblock
10409 #: ../src/guestfs-actions.pod:3544
10410 msgid ""
10411 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10412 "the mount options as for the L<mount(8)> I<-o> flag."
10413 msgstr ""
10414
10415 # type: textblock
10416 #: ../src/guestfs-actions.pod:3548 ../fish/guestfish-actions.pod:2744
10417 msgid ""
10418 "If the C<options> parameter is an empty string, then no options are passed "
10419 "(all options default to whatever the filesystem uses)."
10420 msgstr ""
10421
10422 # type: =head2
10423 #: ../src/guestfs-actions.pod:3554
10424 msgid "guestfs_mount_ro"
10425 msgstr ""
10426
10427 # type: verbatim
10428 #: ../src/guestfs-actions.pod:3556
10429 #, no-wrap
10430 msgid ""
10431 " int guestfs_mount_ro (guestfs_h *g,\n"
10432 "\t\tconst char *device,\n"
10433 "\t\tconst char *mountpoint);\n"
10434 "\n"
10435 msgstr ""
10436
10437 # type: textblock
10438 #: ../src/guestfs-actions.pod:3560
10439 msgid ""
10440 "This is the same as the C<guestfs_mount> command, but it mounts the "
10441 "filesystem with the read-only (I<-o ro>) flag."
10442 msgstr ""
10443
10444 # type: =head2
10445 #: ../src/guestfs-actions.pod:3565
10446 msgid "guestfs_mount_vfs"
10447 msgstr ""
10448
10449 # type: verbatim
10450 #: ../src/guestfs-actions.pod:3567
10451 #, no-wrap
10452 msgid ""
10453 " int guestfs_mount_vfs (guestfs_h *g,\n"
10454 "\t\tconst char *options,\n"
10455 "\t\tconst char *vfstype,\n"
10456 "\t\tconst char *device,\n"
10457 "\t\tconst char *mountpoint);\n"
10458 "\n"
10459 msgstr ""
10460
10461 # type: textblock
10462 #: ../src/guestfs-actions.pod:3573
10463 msgid ""
10464 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10465 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
10466 "t> flags."
10467 msgstr ""
10468
10469 # type: =head2
10470 #: ../src/guestfs-actions.pod:3579
10471 msgid "guestfs_mountpoints"
10472 msgstr ""
10473
10474 # type: verbatim
10475 #: ../src/guestfs-actions.pod:3581
10476 #, no-wrap
10477 msgid ""
10478 " char **guestfs_mountpoints (guestfs_h *g);\n"
10479 "\n"
10480 msgstr ""
10481
10482 # type: textblock
10483 #: ../src/guestfs-actions.pod:3583
10484 msgid ""
10485 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10486 "devices.  This one returns a hash table (map) of device name to directory "
10487 "where the device is mounted."
10488 msgstr ""
10489
10490 # type: =head2
10491 #: ../src/guestfs-actions.pod:3593
10492 msgid "guestfs_mounts"
10493 msgstr ""
10494
10495 # type: verbatim
10496 #: ../src/guestfs-actions.pod:3595
10497 #, no-wrap
10498 msgid ""
10499 " char **guestfs_mounts (guestfs_h *g);\n"
10500 "\n"
10501 msgstr ""
10502
10503 # type: textblock
10504 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2775
10505 msgid ""
10506 "This returns the list of currently mounted filesystems.  It returns the list "
10507 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10508 msgstr ""
10509
10510 # type: textblock
10511 #: ../src/guestfs-actions.pod:3600 ../fish/guestfish-actions.pod:2778
10512 msgid "Some internal mounts are not shown."
10513 msgstr ""
10514
10515 # type: textblock
10516 #: ../src/guestfs-actions.pod:3602
10517 msgid "See also: C<guestfs_mountpoints>"
10518 msgstr ""
10519
10520 # type: =head2
10521 #: ../src/guestfs-actions.pod:3608
10522 msgid "guestfs_mv"
10523 msgstr ""
10524
10525 # type: verbatim
10526 #: ../src/guestfs-actions.pod:3610
10527 #, no-wrap
10528 msgid ""
10529 " int guestfs_mv (guestfs_h *g,\n"
10530 "\t\tconst char *src,\n"
10531 "\t\tconst char *dest);\n"
10532 "\n"
10533 msgstr ""
10534
10535 # type: textblock
10536 #: ../src/guestfs-actions.pod:3614 ../fish/guestfish-actions.pod:2786
10537 msgid ""
10538 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10539 "destination filename or destination directory."
10540 msgstr ""
10541
10542 # type: =head2
10543 #: ../src/guestfs-actions.pod:3619
10544 msgid "guestfs_ntfs_3g_probe"
10545 msgstr ""
10546
10547 # type: verbatim
10548 #: ../src/guestfs-actions.pod:3621
10549 #, no-wrap
10550 msgid ""
10551 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10552 "\t\tint rw,\n"
10553 "\t\tconst char *device);\n"
10554 "\n"
10555 msgstr ""
10556
10557 # type: textblock
10558 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2793
10559 msgid ""
10560 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10561 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
10562 "write, and some cannot be mounted at all)."
10563 msgstr ""
10564
10565 # type: textblock
10566 #: ../src/guestfs-actions.pod:3629 ../fish/guestfish-actions.pod:2797
10567 msgid ""
10568 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10569 "can be mounted read-write.  Set it to false if you want to test if the "
10570 "volume can be mounted read-only."
10571 msgstr ""
10572
10573 # type: textblock
10574 #: ../src/guestfs-actions.pod:3633 ../fish/guestfish-actions.pod:2801
10575 msgid ""
10576 "The return value is an integer which C<0> if the operation would succeed, or "
10577 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10578 msgstr ""
10579
10580 # type: =head2
10581 #: ../src/guestfs-actions.pod:3639
10582 msgid "guestfs_ntfsresize"
10583 msgstr ""
10584
10585 # type: verbatim
10586 #: ../src/guestfs-actions.pod:3641
10587 #, no-wrap
10588 msgid ""
10589 " int guestfs_ntfsresize (guestfs_h *g,\n"
10590 "\t\tconst char *device);\n"
10591 "\n"
10592 msgstr ""
10593
10594 # type: textblock
10595 #: ../src/guestfs-actions.pod:3644 ../fish/guestfish-actions.pod:2809
10596 msgid ""
10597 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10598 "size of the underlying device.  See also L<ntfsresize(8)>."
10599 msgstr ""
10600
10601 # type: =head2
10602 #: ../src/guestfs-actions.pod:3650
10603 msgid "guestfs_ntfsresize_size"
10604 msgstr ""
10605
10606 # type: verbatim
10607 #: ../src/guestfs-actions.pod:3652
10608 #, no-wrap
10609 msgid ""
10610 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
10611 "\t\tconst char *device,\n"
10612 "\t\tint64_t size);\n"
10613 "\n"
10614 msgstr ""
10615
10616 # type: textblock
10617 #: ../src/guestfs-actions.pod:3656
10618 msgid ""
10619 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10620 "to specify the new size (in bytes) explicitly."
10621 msgstr ""
10622
10623 # type: =head2
10624 #: ../src/guestfs-actions.pod:3661
10625 msgid "guestfs_part_add"
10626 msgstr ""
10627
10628 # type: verbatim
10629 #: ../src/guestfs-actions.pod:3663
10630 #, no-wrap
10631 msgid ""
10632 " int guestfs_part_add (guestfs_h *g,\n"
10633 "\t\tconst char *device,\n"
10634 "\t\tconst char *prlogex,\n"
10635 "\t\tint64_t startsect,\n"
10636 "\t\tint64_t endsect);\n"
10637 "\n"
10638 msgstr ""
10639
10640 # type: textblock
10641 #: ../src/guestfs-actions.pod:3669
10642 msgid ""
10643 "This command adds a partition to C<device>.  If there is no partition table "
10644 "on the device, call C<guestfs_part_init> first."
10645 msgstr ""
10646
10647 # type: textblock
10648 #: ../src/guestfs-actions.pod:3672 ../fish/guestfish-actions.pod:2827
10649 msgid ""
10650 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10651 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10652 "C<logical>) and C<e> (or C<extended>) partition types."
10653 msgstr ""
10654
10655 # type: textblock
10656 #: ../src/guestfs-actions.pod:3677 ../fish/guestfish-actions.pod:2832
10657 msgid ""
10658 "C<startsect> and C<endsect> are the start and end of the partition in "
10659 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10660 "from the end of the disk (C<-1> is the last sector)."
10661 msgstr ""
10662
10663 # type: textblock
10664 #: ../src/guestfs-actions.pod:3681
10665 msgid ""
10666 "Creating a partition which covers the whole disk is not so easy.  Use "
10667 "C<guestfs_part_disk> to do that."
10668 msgstr ""
10669
10670 # type: =head2
10671 #: ../src/guestfs-actions.pod:3686
10672 msgid "guestfs_part_del"
10673 msgstr ""
10674
10675 # type: verbatim
10676 #: ../src/guestfs-actions.pod:3688
10677 #, no-wrap
10678 msgid ""
10679 " int guestfs_part_del (guestfs_h *g,\n"
10680 "\t\tconst char *device,\n"
10681 "\t\tint partnum);\n"
10682 "\n"
10683 msgstr ""
10684
10685 # type: textblock
10686 #: ../src/guestfs-actions.pod:3692 ../fish/guestfish-actions.pod:2843
10687 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10688 msgstr ""
10689
10690 # type: textblock
10691 #: ../src/guestfs-actions.pod:3694 ../fish/guestfish-actions.pod:2845
10692 msgid ""
10693 "Note that in the case of MBR partitioning, deleting an extended partition "
10694 "also deletes any logical partitions it contains."
10695 msgstr ""
10696
10697 # type: =head2
10698 #: ../src/guestfs-actions.pod:3700
10699 msgid "guestfs_part_disk"
10700 msgstr ""
10701
10702 # type: verbatim
10703 #: ../src/guestfs-actions.pod:3702
10704 #, no-wrap
10705 msgid ""
10706 " int guestfs_part_disk (guestfs_h *g,\n"
10707 "\t\tconst char *device,\n"
10708 "\t\tconst char *parttype);\n"
10709 "\n"
10710 msgstr ""
10711
10712 # type: textblock
10713 #: ../src/guestfs-actions.pod:3706
10714 msgid ""
10715 "This command is simply a combination of C<guestfs_part_init> followed by "
10716 "C<guestfs_part_add> to create a single primary partition covering the whole "
10717 "disk."
10718 msgstr ""
10719
10720 # type: textblock
10721 #: ../src/guestfs-actions.pod:3710
10722 msgid ""
10723 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10724 "possible values are described in C<guestfs_part_init>."
10725 msgstr ""
10726
10727 # type: =head2
10728 #: ../src/guestfs-actions.pod:3718
10729 msgid "guestfs_part_get_bootable"
10730 msgstr ""
10731
10732 # type: verbatim
10733 #: ../src/guestfs-actions.pod:3720
10734 #, no-wrap
10735 msgid ""
10736 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10737 "\t\tconst char *device,\n"
10738 "\t\tint partnum);\n"
10739 "\n"
10740 msgstr ""
10741
10742 # type: textblock
10743 #: ../src/guestfs-actions.pod:3724 ../fish/guestfish-actions.pod:2867
10744 msgid ""
10745 "This command returns true if the partition C<partnum> on C<device> has the "
10746 "bootable flag set."
10747 msgstr ""
10748
10749 # type: textblock
10750 #: ../src/guestfs-actions.pod:3727
10751 msgid "See also C<guestfs_part_set_bootable>."
10752 msgstr ""
10753
10754 # type: =head2
10755 #: ../src/guestfs-actions.pod:3731
10756 msgid "guestfs_part_get_mbr_id"
10757 msgstr ""
10758
10759 # type: verbatim
10760 #: ../src/guestfs-actions.pod:3733
10761 #, no-wrap
10762 msgid ""
10763 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10764 "\t\tconst char *device,\n"
10765 "\t\tint partnum);\n"
10766 "\n"
10767 msgstr ""
10768
10769 # type: textblock
10770 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2876
10771 msgid ""
10772 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10773 "partition C<partnum>."
10774 msgstr ""
10775
10776 # type: textblock
10777 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3902
10778 msgid ""
10779 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10780 "undefined results for other partition table types (see "
10781 "C<guestfs_part_get_parttype>)."
10782 msgstr ""
10783
10784 # type: =head2
10785 #: ../src/guestfs-actions.pod:3746
10786 msgid "guestfs_part_get_parttype"
10787 msgstr ""
10788
10789 # type: verbatim
10790 #: ../src/guestfs-actions.pod:3748
10791 #, no-wrap
10792 msgid ""
10793 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10794 "\t\tconst char *device);\n"
10795 "\n"
10796 msgstr ""
10797
10798 # type: textblock
10799 #: ../src/guestfs-actions.pod:3751 ../fish/guestfish-actions.pod:2887
10800 msgid ""
10801 "This command examines the partition table on C<device> and returns the "
10802 "partition table type (format) being used."
10803 msgstr ""
10804
10805 # type: textblock
10806 #: ../src/guestfs-actions.pod:3754
10807 msgid ""
10808 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10809 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10810 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10811 msgstr ""
10812
10813 # type: =head2
10814 #: ../src/guestfs-actions.pod:3762
10815 msgid "guestfs_part_init"
10816 msgstr ""
10817
10818 # type: verbatim
10819 #: ../src/guestfs-actions.pod:3764
10820 #, no-wrap
10821 msgid ""
10822 " int guestfs_part_init (guestfs_h *g,\n"
10823 "\t\tconst char *device,\n"
10824 "\t\tconst char *parttype);\n"
10825 "\n"
10826 msgstr ""
10827
10828 # type: textblock
10829 #: ../src/guestfs-actions.pod:3768 ../fish/guestfish-actions.pod:2899
10830 msgid ""
10831 "This creates an empty partition table on C<device> of one of the partition "
10832 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10833 "(for large disks)."
10834 msgstr ""
10835
10836 # type: textblock
10837 #: ../src/guestfs-actions.pod:3772
10838 msgid ""
10839 "Initially there are no partitions.  Following this, you should call "
10840 "C<guestfs_part_add> for each partition required."
10841 msgstr ""
10842
10843 # type: textblock
10844 #: ../src/guestfs-actions.pod:3775 ../fish/guestfish-actions.pod:2906
10845 msgid "Possible values for C<parttype> are:"
10846 msgstr ""
10847
10848 # type: =item
10849 #: ../src/guestfs-actions.pod:3779 ../fish/guestfish-actions.pod:2910
10850 msgid "B<efi> | B<gpt>"
10851 msgstr ""
10852
10853 # type: textblock
10854 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2912
10855 msgid "Intel EFI / GPT partition table."
10856 msgstr ""
10857
10858 # type: textblock
10859 #: ../src/guestfs-actions.pod:3783 ../fish/guestfish-actions.pod:2914
10860 msgid ""
10861 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10862 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10863 "the C<mbr> format."
10864 msgstr ""
10865
10866 # type: =item
10867 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2918
10868 msgid "B<mbr> | B<msdos>"
10869 msgstr ""
10870
10871 # type: textblock
10872 #: ../src/guestfs-actions.pod:3789 ../fish/guestfish-actions.pod:2920
10873 msgid ""
10874 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10875 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10876 "TB.  For large disks we recommend using C<gpt>."
10877 msgstr ""
10878
10879 # type: textblock
10880 #: ../src/guestfs-actions.pod:3796 ../fish/guestfish-actions.pod:2927
10881 msgid ""
10882 "Other partition table types that may work but are not supported include:"
10883 msgstr ""
10884
10885 # type: =item
10886 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2932
10887 msgid "B<aix>"
10888 msgstr ""
10889
10890 # type: textblock
10891 #: ../src/guestfs-actions.pod:3803 ../fish/guestfish-actions.pod:2934
10892 msgid "AIX disk labels."
10893 msgstr ""
10894
10895 # type: =item
10896 #: ../src/guestfs-actions.pod:3805 ../fish/guestfish-actions.pod:2936
10897 msgid "B<amiga> | B<rdb>"
10898 msgstr ""
10899
10900 # type: textblock
10901 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2938
10902 msgid "Amiga \"Rigid Disk Block\" format."
10903 msgstr ""
10904
10905 # type: =item
10906 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2940
10907 msgid "B<bsd>"
10908 msgstr ""
10909
10910 # type: textblock
10911 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2942
10912 msgid "BSD disk labels."
10913 msgstr ""
10914
10915 # type: =item
10916 #: ../src/guestfs-actions.pod:3813 ../fish/guestfish-actions.pod:2944
10917 msgid "B<dasd>"
10918 msgstr ""
10919
10920 # type: textblock
10921 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2946
10922 msgid "DASD, used on IBM mainframes."
10923 msgstr ""
10924
10925 # type: =item
10926 #: ../src/guestfs-actions.pod:3817 ../fish/guestfish-actions.pod:2948
10927 msgid "B<dvh>"
10928 msgstr ""
10929
10930 # type: textblock
10931 #: ../src/guestfs-actions.pod:3819 ../fish/guestfish-actions.pod:2950
10932 msgid "MIPS/SGI volumes."
10933 msgstr ""
10934
10935 # type: =item
10936 #: ../src/guestfs-actions.pod:3821 ../fish/guestfish-actions.pod:2952
10937 msgid "B<mac>"
10938 msgstr ""
10939
10940 # type: textblock
10941 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2954
10942 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10943 msgstr ""
10944
10945 # type: =item
10946 #: ../src/guestfs-actions.pod:3825 ../fish/guestfish-actions.pod:2956
10947 msgid "B<pc98>"
10948 msgstr ""
10949
10950 # type: textblock
10951 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2958
10952 msgid "NEC PC-98 format, common in Japan apparently."
10953 msgstr ""
10954
10955 # type: =item
10956 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2960
10957 msgid "B<sun>"
10958 msgstr ""
10959
10960 # type: textblock
10961 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2962
10962 msgid "Sun disk labels."
10963 msgstr ""
10964
10965 # type: =head2
10966 #: ../src/guestfs-actions.pod:3837
10967 msgid "guestfs_part_list"
10968 msgstr ""
10969
10970 # type: verbatim
10971 #: ../src/guestfs-actions.pod:3839
10972 #, no-wrap
10973 msgid ""
10974 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10975 "\t\tconst char *device);\n"
10976 "\n"
10977 msgstr ""
10978
10979 # type: textblock
10980 #: ../src/guestfs-actions.pod:3842 ../fish/guestfish-actions.pod:2970
10981 msgid ""
10982 "This command parses the partition table on C<device> and returns the list of "
10983 "partitions found."
10984 msgstr ""
10985
10986 # type: textblock
10987 #: ../src/guestfs-actions.pod:3845 ../fish/guestfish-actions.pod:2973
10988 msgid "The fields in the returned structure are:"
10989 msgstr ""
10990
10991 # type: =item
10992 #: ../src/guestfs-actions.pod:3849 ../fish/guestfish-actions.pod:2977
10993 msgid "B<part_num>"
10994 msgstr ""
10995
10996 # type: textblock
10997 #: ../src/guestfs-actions.pod:3851 ../fish/guestfish-actions.pod:2979
10998 msgid "Partition number, counting from 1."
10999 msgstr ""
11000
11001 # type: =item
11002 #: ../src/guestfs-actions.pod:3853 ../fish/guestfish-actions.pod:2981
11003 msgid "B<part_start>"
11004 msgstr ""
11005
11006 # type: textblock
11007 #: ../src/guestfs-actions.pod:3855
11008 msgid ""
11009 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11010 "the device's sector size, see C<guestfs_blockdev_getss>."
11011 msgstr ""
11012
11013 # type: =item
11014 #: ../src/guestfs-actions.pod:3858 ../fish/guestfish-actions.pod:2986
11015 msgid "B<part_end>"
11016 msgstr ""
11017
11018 # type: textblock
11019 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2988
11020 msgid "End of the partition in bytes."
11021 msgstr ""
11022
11023 # type: =item
11024 #: ../src/guestfs-actions.pod:3862 ../fish/guestfish-actions.pod:2990
11025 msgid "B<part_size>"
11026 msgstr ""
11027
11028 # type: textblock
11029 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2992
11030 msgid "Size of the partition in bytes."
11031 msgstr ""
11032
11033 # type: textblock
11034 #: ../src/guestfs-actions.pod:3868
11035 msgid ""
11036 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
11037 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11038 "C<guestfs_free_partition_list> after use>."
11039 msgstr ""
11040
11041 # type: =head2
11042 #: ../src/guestfs-actions.pod:3873
11043 msgid "guestfs_part_set_bootable"
11044 msgstr ""
11045
11046 # type: verbatim
11047 #: ../src/guestfs-actions.pod:3875
11048 #, no-wrap
11049 msgid ""
11050 " int guestfs_part_set_bootable (guestfs_h *g,\n"
11051 "\t\tconst char *device,\n"
11052 "\t\tint partnum,\n"
11053 "\t\tint bootable);\n"
11054 "\n"
11055 msgstr ""
11056
11057 # type: textblock
11058 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:3000
11059 msgid ""
11060 "This sets the bootable flag on partition numbered C<partnum> on device "
11061 "C<device>.  Note that partitions are numbered from 1."
11062 msgstr ""
11063
11064 # type: textblock
11065 #: ../src/guestfs-actions.pod:3883 ../fish/guestfish-actions.pod:3003
11066 msgid ""
11067 "The bootable flag is used by some operating systems (notably Windows) to "
11068 "determine which partition to boot from.  It is by no means universally "
11069 "recognized."
11070 msgstr ""
11071
11072 # type: =head2
11073 #: ../src/guestfs-actions.pod:3889
11074 msgid "guestfs_part_set_mbr_id"
11075 msgstr ""
11076
11077 # type: verbatim
11078 #: ../src/guestfs-actions.pod:3891
11079 #, no-wrap
11080 msgid ""
11081 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
11082 "\t\tconst char *device,\n"
11083 "\t\tint partnum,\n"
11084 "\t\tint idbyte);\n"
11085 "\n"
11086 msgstr ""
11087
11088 # type: textblock
11089 #: ../src/guestfs-actions.pod:3896 ../fish/guestfish-actions.pod:3011
11090 msgid ""
11091 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11092 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11093 "documentation are in fact hexadecimal numbers, but usually documented "
11094 "without any leading \"0x\" which might be confusing."
11095 msgstr ""
11096
11097 # type: =head2
11098 #: ../src/guestfs-actions.pod:3908
11099 msgid "guestfs_part_set_name"
11100 msgstr ""
11101
11102 # type: verbatim
11103 #: ../src/guestfs-actions.pod:3910
11104 #, no-wrap
11105 msgid ""
11106 " int guestfs_part_set_name (guestfs_h *g,\n"
11107 "\t\tconst char *device,\n"
11108 "\t\tint partnum,\n"
11109 "\t\tconst char *name);\n"
11110 "\n"
11111 msgstr ""
11112
11113 # type: textblock
11114 #: ../src/guestfs-actions.pod:3915 ../fish/guestfish-actions.pod:3025
11115 msgid ""
11116 "This sets the partition name on partition numbered C<partnum> on device "
11117 "C<device>.  Note that partitions are numbered from 1."
11118 msgstr ""
11119
11120 # type: textblock
11121 #: ../src/guestfs-actions.pod:3918 ../fish/guestfish-actions.pod:3028
11122 msgid ""
11123 "The partition name can only be set on certain types of partition table.  "
11124 "This works on C<gpt> but not on C<mbr> partitions."
11125 msgstr ""
11126
11127 # type: =head2
11128 #: ../src/guestfs-actions.pod:3923
11129 msgid "guestfs_part_to_dev"
11130 msgstr ""
11131
11132 # type: verbatim
11133 #: ../src/guestfs-actions.pod:3925
11134 #, no-wrap
11135 msgid ""
11136 " char *guestfs_part_to_dev (guestfs_h *g,\n"
11137 "\t\tconst char *partition);\n"
11138 "\n"
11139 msgstr ""
11140
11141 # type: textblock
11142 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:3035
11143 msgid ""
11144 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11145 "partition number, returning the device name (eg. \"/dev/sdb\")."
11146 msgstr ""
11147
11148 # type: textblock
11149 #: ../src/guestfs-actions.pod:3932
11150 msgid ""
11151 "The named partition must exist, for example as a string returned from "
11152 "C<guestfs_list_partitions>."
11153 msgstr ""
11154
11155 # type: =head2
11156 #: ../src/guestfs-actions.pod:3938
11157 msgid "guestfs_ping_daemon"
11158 msgstr ""
11159
11160 # type: verbatim
11161 #: ../src/guestfs-actions.pod:3940
11162 #, no-wrap
11163 msgid ""
11164 " int guestfs_ping_daemon (guestfs_h *g);\n"
11165 "\n"
11166 msgstr ""
11167
11168 # type: textblock
11169 #: ../src/guestfs-actions.pod:3942 ../fish/guestfish-actions.pod:3046
11170 msgid ""
11171 "This is a test probe into the guestfs daemon running inside the qemu "
11172 "subprocess.  Calling this function checks that the daemon responds to the "
11173 "ping message, without affecting the daemon or attached block device(s) in "
11174 "any other way."
11175 msgstr ""
11176
11177 # type: =head2
11178 #: ../src/guestfs-actions.pod:3949
11179 msgid "guestfs_pread"
11180 msgstr ""
11181
11182 # type: verbatim
11183 #: ../src/guestfs-actions.pod:3951
11184 #, no-wrap
11185 msgid ""
11186 " char *guestfs_pread (guestfs_h *g,\n"
11187 "\t\tconst char *path,\n"
11188 "\t\tint count,\n"
11189 "\t\tint64_t offset,\n"
11190 "\t\tsize_t *size_r);\n"
11191 "\n"
11192 msgstr ""
11193
11194 # type: textblock
11195 #: ../src/guestfs-actions.pod:3957 ../fish/guestfish-actions.pod:3055
11196 msgid ""
11197 "This command lets you read part of a file.  It reads C<count> bytes of the "
11198 "file, starting at C<offset>, from file C<path>."
11199 msgstr ""
11200
11201 # type: textblock
11202 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:3983
11203 #: ../fish/guestfish-actions.pod:3058 ../fish/guestfish-actions.pod:3073
11204 msgid ""
11205 "This may read fewer bytes than requested.  For further details see the "
11206 "L<pread(2)> system call."
11207 msgstr ""
11208
11209 # type: textblock
11210 #: ../src/guestfs-actions.pod:3963
11211 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11212 msgstr ""
11213
11214 # type: =head2
11215 #: ../src/guestfs-actions.pod:3972
11216 msgid "guestfs_pread_device"
11217 msgstr ""
11218
11219 # type: verbatim
11220 #: ../src/guestfs-actions.pod:3974
11221 #, no-wrap
11222 msgid ""
11223 " char *guestfs_pread_device (guestfs_h *g,\n"
11224 "\t\tconst char *device,\n"
11225 "\t\tint count,\n"
11226 "\t\tint64_t offset,\n"
11227 "\t\tsize_t *size_r);\n"
11228 "\n"
11229 msgstr ""
11230
11231 # type: textblock
11232 #: ../src/guestfs-actions.pod:3980 ../fish/guestfish-actions.pod:3070
11233 msgid ""
11234 "This command lets you read part of a file.  It reads C<count> bytes of "
11235 "C<device>, starting at C<offset>."
11236 msgstr ""
11237
11238 # type: textblock
11239 #: ../src/guestfs-actions.pod:3986
11240 msgid "See also C<guestfs_pread>."
11241 msgstr ""
11242
11243 # type: =head2
11244 #: ../src/guestfs-actions.pod:3995
11245 msgid "guestfs_pvcreate"
11246 msgstr ""
11247
11248 # type: verbatim
11249 #: ../src/guestfs-actions.pod:3997
11250 #, no-wrap
11251 msgid ""
11252 " int guestfs_pvcreate (guestfs_h *g,\n"
11253 "\t\tconst char *device);\n"
11254 "\n"
11255 msgstr ""
11256
11257 # type: textblock
11258 #: ../src/guestfs-actions.pod:4000 ../fish/guestfish-actions.pod:3085
11259 msgid ""
11260 "This creates an LVM physical volume on the named C<device>, where C<device> "
11261 "should usually be a partition name such as C</dev/sda1>."
11262 msgstr ""
11263
11264 # type: =head2
11265 #: ../src/guestfs-actions.pod:4006
11266 msgid "guestfs_pvremove"
11267 msgstr ""
11268
11269 # type: verbatim
11270 #: ../src/guestfs-actions.pod:4008
11271 #, no-wrap
11272 msgid ""
11273 " int guestfs_pvremove (guestfs_h *g,\n"
11274 "\t\tconst char *device);\n"
11275 "\n"
11276 msgstr ""
11277
11278 # type: textblock
11279 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:3093
11280 msgid ""
11281 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11282 "it."
11283 msgstr ""
11284
11285 # type: textblock
11286 #: ../src/guestfs-actions.pod:4014 ../fish/guestfish-actions.pod:3096
11287 msgid ""
11288 "The implementation uses the C<pvremove> command which refuses to wipe "
11289 "physical volumes that contain any volume groups, so you have to remove those "
11290 "first."
11291 msgstr ""
11292
11293 # type: =head2
11294 #: ../src/guestfs-actions.pod:4020
11295 msgid "guestfs_pvresize"
11296 msgstr ""
11297
11298 # type: verbatim
11299 #: ../src/guestfs-actions.pod:4022
11300 #, no-wrap
11301 msgid ""
11302 " int guestfs_pvresize (guestfs_h *g,\n"
11303 "\t\tconst char *device);\n"
11304 "\n"
11305 msgstr ""
11306
11307 # type: textblock
11308 #: ../src/guestfs-actions.pod:4025 ../fish/guestfish-actions.pod:3104
11309 msgid ""
11310 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11311 "the new size of the underlying device."
11312 msgstr ""
11313
11314 # type: =head2
11315 #: ../src/guestfs-actions.pod:4030
11316 msgid "guestfs_pvresize_size"
11317 msgstr ""
11318
11319 # type: verbatim
11320 #: ../src/guestfs-actions.pod:4032
11321 #, no-wrap
11322 msgid ""
11323 " int guestfs_pvresize_size (guestfs_h *g,\n"
11324 "\t\tconst char *device,\n"
11325 "\t\tint64_t size);\n"
11326 "\n"
11327 msgstr ""
11328
11329 # type: textblock
11330 #: ../src/guestfs-actions.pod:4036
11331 msgid ""
11332 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11333 "specify the new size (in bytes) explicitly."
11334 msgstr ""
11335
11336 # type: =head2
11337 #: ../src/guestfs-actions.pod:4041
11338 msgid "guestfs_pvs"
11339 msgstr ""
11340
11341 # type: verbatim
11342 #: ../src/guestfs-actions.pod:4043
11343 #, no-wrap
11344 msgid ""
11345 " char **guestfs_pvs (guestfs_h *g);\n"
11346 "\n"
11347 msgstr ""
11348
11349 # type: textblock
11350 #: ../src/guestfs-actions.pod:4045 ../fish/guestfish-actions.pod:3118
11351 msgid ""
11352 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11353 "(8)> command."
11354 msgstr ""
11355
11356 # type: textblock
11357 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:3121
11358 msgid ""
11359 "This returns a list of just the device names that contain PVs (eg. C</dev/"
11360 "sda2>)."
11361 msgstr ""
11362
11363 # type: textblock
11364 #: ../src/guestfs-actions.pod:4051
11365 msgid "See also C<guestfs_pvs_full>."
11366 msgstr ""
11367
11368 # type: =head2
11369 #: ../src/guestfs-actions.pod:4057
11370 msgid "guestfs_pvs_full"
11371 msgstr ""
11372
11373 # type: verbatim
11374 #: ../src/guestfs-actions.pod:4059
11375 #, no-wrap
11376 msgid ""
11377 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
11378 "\n"
11379 msgstr ""
11380
11381 # type: textblock
11382 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:3130
11383 msgid ""
11384 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11385 "(8)> command.  The \"full\" version includes all fields."
11386 msgstr ""
11387
11388 # type: textblock
11389 #: ../src/guestfs-actions.pod:4064
11390 msgid ""
11391 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
11392 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11393 "C<guestfs_free_lvm_pv_list> after use>."
11394 msgstr ""
11395
11396 # type: =head2
11397 #: ../src/guestfs-actions.pod:4069
11398 msgid "guestfs_pvuuid"
11399 msgstr ""
11400
11401 # type: verbatim
11402 #: ../src/guestfs-actions.pod:4071
11403 #, no-wrap
11404 msgid ""
11405 " char *guestfs_pvuuid (guestfs_h *g,\n"
11406 "\t\tconst char *device);\n"
11407 "\n"
11408 msgstr ""
11409
11410 # type: textblock
11411 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:3137
11412 msgid "This command returns the UUID of the LVM PV C<device>."
11413 msgstr ""
11414
11415 # type: =head2
11416 #: ../src/guestfs-actions.pod:4079
11417 msgid "guestfs_pwrite"
11418 msgstr ""
11419
11420 # type: verbatim
11421 #: ../src/guestfs-actions.pod:4081
11422 #, no-wrap
11423 msgid ""
11424 " int guestfs_pwrite (guestfs_h *g,\n"
11425 "\t\tconst char *path,\n"
11426 "\t\tconst char *content,\n"
11427 "\t\tsize_t content_size,\n"
11428 "\t\tint64_t offset);\n"
11429 "\n"
11430 msgstr ""
11431
11432 # type: textblock
11433 #: ../src/guestfs-actions.pod:4087 ../fish/guestfish-actions.pod:3143
11434 msgid ""
11435 "This command writes to part of a file.  It writes the data buffer C<content> "
11436 "to the file C<path> starting at offset C<offset>."
11437 msgstr ""
11438
11439 # type: textblock
11440 #: ../src/guestfs-actions.pod:4090 ../fish/guestfish-actions.pod:3146
11441 msgid ""
11442 "This command implements the L<pwrite(2)> system call, and like that system "
11443 "call it may not write the full data requested.  The return value is the "
11444 "number of bytes that were actually written to the file.  This could even be "
11445 "0, although short writes are unlikely for regular files in ordinary "
11446 "circumstances."
11447 msgstr ""
11448
11449 # type: textblock
11450 #: ../src/guestfs-actions.pod:4096
11451 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11452 msgstr ""
11453
11454 # type: =head2
11455 #: ../src/guestfs-actions.pod:4103
11456 msgid "guestfs_pwrite_device"
11457 msgstr ""
11458
11459 # type: verbatim
11460 #: ../src/guestfs-actions.pod:4105
11461 #, no-wrap
11462 msgid ""
11463 " int guestfs_pwrite_device (guestfs_h *g,\n"
11464 "\t\tconst char *device,\n"
11465 "\t\tconst char *content,\n"
11466 "\t\tsize_t content_size,\n"
11467 "\t\tint64_t offset);\n"
11468 "\n"
11469 msgstr ""
11470
11471 # type: textblock
11472 #: ../src/guestfs-actions.pod:4111 ../fish/guestfish-actions.pod:3161
11473 msgid ""
11474 "This command writes to part of a device.  It writes the data buffer "
11475 "C<content> to C<device> starting at offset C<offset>."
11476 msgstr ""
11477
11478 # type: textblock
11479 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:3164
11480 msgid ""
11481 "This command implements the L<pwrite(2)> system call, and like that system "
11482 "call it may not write the full data requested (although short writes to disk "
11483 "devices and partitions are probably impossible with standard Linux kernels)."
11484 msgstr ""
11485
11486 # type: textblock
11487 #: ../src/guestfs-actions.pod:4119
11488 msgid "See also C<guestfs_pwrite>."
11489 msgstr ""
11490
11491 # type: =head2
11492 #: ../src/guestfs-actions.pod:4126
11493 msgid "guestfs_read_file"
11494 msgstr ""
11495
11496 # type: verbatim
11497 #: ../src/guestfs-actions.pod:4128
11498 #, no-wrap
11499 msgid ""
11500 " char *guestfs_read_file (guestfs_h *g,\n"
11501 "\t\tconst char *path,\n"
11502 "\t\tsize_t *size_r);\n"
11503 "\n"
11504 msgstr ""
11505
11506 # type: textblock
11507 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:3178
11508 msgid "This calls returns the contents of the file C<path> as a buffer."
11509 msgstr ""
11510
11511 # type: textblock
11512 #: ../src/guestfs-actions.pod:4135
11513 msgid ""
11514 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11515 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11516 "function is limited in the total size of file that can be handled."
11517 msgstr ""
11518
11519 # type: =head2
11520 #: ../src/guestfs-actions.pod:4147
11521 msgid "guestfs_read_lines"
11522 msgstr ""
11523
11524 # type: verbatim
11525 #: ../src/guestfs-actions.pod:4149
11526 #, no-wrap
11527 msgid ""
11528 " char **guestfs_read_lines (guestfs_h *g,\n"
11529 "\t\tconst char *path);\n"
11530 "\n"
11531 msgstr ""
11532
11533 # type: textblock
11534 #: ../src/guestfs-actions.pod:4154 ../fish/guestfish-actions.pod:3195
11535 msgid ""
11536 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11537 "C<CRLF> character sequences are I<not> returned."
11538 msgstr ""
11539
11540 # type: textblock
11541 #: ../src/guestfs-actions.pod:4157
11542 msgid ""
11543 "Note that this function cannot correctly handle binary files (specifically, "
11544 "files containing C<\\0> character which is treated as end of line).  For "
11545 "those you need to use the C<guestfs_read_file> function which has a more "
11546 "complex interface."
11547 msgstr ""
11548
11549 # type: =head2
11550 #: ../src/guestfs-actions.pod:4166
11551 msgid "guestfs_readdir"
11552 msgstr ""
11553
11554 # type: verbatim
11555 #: ../src/guestfs-actions.pod:4168
11556 #, no-wrap
11557 msgid ""
11558 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
11559 "\t\tconst char *dir);\n"
11560 "\n"
11561 msgstr ""
11562
11563 # type: textblock
11564 #: ../src/guestfs-actions.pod:4171 ../fish/guestfish-actions.pod:3207
11565 msgid "This returns the list of directory entries in directory C<dir>."
11566 msgstr ""
11567
11568 # type: textblock
11569 #: ../src/guestfs-actions.pod:4173 ../fish/guestfish-actions.pod:3209
11570 msgid ""
11571 "All entries in the directory are returned, including C<.> and C<..>.  The "
11572 "entries are I<not> sorted, but returned in the same order as the underlying "
11573 "filesystem."
11574 msgstr ""
11575
11576 # type: textblock
11577 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:3213
11578 msgid ""
11579 "Also this call returns basic file type information about each file.  The "
11580 "C<ftyp> field will contain one of the following characters:"
11581 msgstr ""
11582
11583 # type: =item
11584 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:3218
11585 msgid "'b'"
11586 msgstr ""
11587
11588 # type: textblock
11589 #: ../src/guestfs-actions.pod:4184 ../fish/guestfish-actions.pod:3220
11590 msgid "Block special"
11591 msgstr ""
11592
11593 # type: =item
11594 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:3222
11595 msgid "'c'"
11596 msgstr ""
11597
11598 # type: textblock
11599 #: ../src/guestfs-actions.pod:4188 ../fish/guestfish-actions.pod:3224
11600 msgid "Char special"
11601 msgstr ""
11602
11603 # type: =item
11604 #: ../src/guestfs-actions.pod:4190 ../fish/guestfish-actions.pod:3226
11605 msgid "'d'"
11606 msgstr ""
11607
11608 # type: textblock
11609 #: ../src/guestfs-actions.pod:4192 ../fish/guestfish-actions.pod:3228
11610 msgid "Directory"
11611 msgstr ""
11612
11613 # type: =item
11614 #: ../src/guestfs-actions.pod:4194 ../fish/guestfish-actions.pod:3230
11615 msgid "'f'"
11616 msgstr ""
11617
11618 # type: textblock
11619 #: ../src/guestfs-actions.pod:4196 ../fish/guestfish-actions.pod:3232
11620 msgid "FIFO (named pipe)"
11621 msgstr ""
11622
11623 # type: =item
11624 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:3234
11625 msgid "'l'"
11626 msgstr ""
11627
11628 # type: textblock
11629 #: ../src/guestfs-actions.pod:4200 ../fish/guestfish-actions.pod:3236
11630 msgid "Symbolic link"
11631 msgstr ""
11632
11633 # type: =item
11634 #: ../src/guestfs-actions.pod:4202 ../fish/guestfish-actions.pod:3238
11635 msgid "'r'"
11636 msgstr ""
11637
11638 # type: textblock
11639 #: ../src/guestfs-actions.pod:4204 ../fish/guestfish-actions.pod:3240
11640 msgid "Regular file"
11641 msgstr ""
11642
11643 # type: =item
11644 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:3242
11645 msgid "'s'"
11646 msgstr ""
11647
11648 # type: textblock
11649 #: ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:3244
11650 msgid "Socket"
11651 msgstr ""
11652
11653 # type: =item
11654 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:3246
11655 msgid "'u'"
11656 msgstr ""
11657
11658 # type: textblock
11659 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:3248
11660 msgid "Unknown file type"
11661 msgstr ""
11662
11663 # type: =item
11664 #: ../src/guestfs-actions.pod:4214 ../fish/guestfish-actions.pod:3250
11665 msgid "'?'"
11666 msgstr ""
11667
11668 # type: textblock
11669 #: ../src/guestfs-actions.pod:4216 ../fish/guestfish-actions.pod:3252
11670 msgid ""
11671 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11672 msgstr ""
11673
11674 # type: textblock
11675 #: ../src/guestfs-actions.pod:4221
11676 msgid ""
11677 "This function is primarily intended for use by programs.  To get a simple "
11678 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11679 "consumption, use C<guestfs_ll>."
11680 msgstr ""
11681
11682 # type: textblock
11683 #: ../src/guestfs-actions.pod:4225
11684 msgid ""
11685 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
11686 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11687 "C<guestfs_free_dirent_list> after use>."
11688 msgstr ""
11689
11690 # type: =head2
11691 #: ../src/guestfs-actions.pod:4230
11692 msgid "guestfs_readlink"
11693 msgstr ""
11694
11695 # type: verbatim
11696 #: ../src/guestfs-actions.pod:4232
11697 #, no-wrap
11698 msgid ""
11699 " char *guestfs_readlink (guestfs_h *g,\n"
11700 "\t\tconst char *path);\n"
11701 "\n"
11702 msgstr ""
11703
11704 # type: textblock
11705 #: ../src/guestfs-actions.pod:4235 ../fish/guestfish-actions.pod:3265
11706 msgid "This command reads the target of a symbolic link."
11707 msgstr ""
11708
11709 # type: =head2
11710 #: ../src/guestfs-actions.pod:4240
11711 msgid "guestfs_readlinklist"
11712 msgstr ""
11713
11714 # type: verbatim
11715 #: ../src/guestfs-actions.pod:4242
11716 #, no-wrap
11717 msgid ""
11718 " char **guestfs_readlinklist (guestfs_h *g,\n"
11719 "\t\tconst char *path,\n"
11720 "\t\tchar *const *names);\n"
11721 "\n"
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4246 ../fish/guestfish-actions.pod:3271
11726 msgid ""
11727 "This call allows you to do a C<readlink> operation on multiple files, where "
11728 "all files are in the directory C<path>.  C<names> is the list of files from "
11729 "this directory."
11730 msgstr ""
11731
11732 # type: textblock
11733 #: ../src/guestfs-actions.pod:4250 ../fish/guestfish-actions.pod:3275
11734 msgid ""
11735 "On return you get a list of strings, with a one-to-one correspondence to the "
11736 "C<names> list.  Each string is the value of the symbolic link."
11737 msgstr ""
11738
11739 # type: textblock
11740 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:3279
11741 msgid ""
11742 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11743 "result string is the empty string C<\"\">.  However the whole operation is "
11744 "completed even if there were C<readlink(2)> errors, and so you can call this "
11745 "function with names where you don't know if they are symbolic links already "
11746 "(albeit slightly less efficient)."
11747 msgstr ""
11748
11749 # type: textblock
11750 #: ../src/guestfs-actions.pod:4261 ../fish/guestfish-actions.pod:3286
11751 msgid ""
11752 "This call is intended for programs that want to efficiently list a directory "
11753 "contents without making many round-trips.  Very long directory listings "
11754 "might cause the protocol message size to be exceeded, causing this call to "
11755 "fail.  The caller must split up such requests into smaller groups of names."
11756 msgstr ""
11757
11758 # type: =head2
11759 #: ../src/guestfs-actions.pod:4272
11760 msgid "guestfs_realpath"
11761 msgstr ""
11762
11763 # type: verbatim
11764 #: ../src/guestfs-actions.pod:4274
11765 #, no-wrap
11766 msgid ""
11767 " char *guestfs_realpath (guestfs_h *g,\n"
11768 "\t\tconst char *path);\n"
11769 "\n"
11770 msgstr ""
11771
11772 # type: textblock
11773 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:3297
11774 msgid ""
11775 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11776 "has no C<.>, C<..> or symbolic link path elements."
11777 msgstr ""
11778
11779 # type: =head2
11780 #: ../src/guestfs-actions.pod:4283
11781 msgid "guestfs_removexattr"
11782 msgstr ""
11783
11784 # type: verbatim
11785 #: ../src/guestfs-actions.pod:4285
11786 #, no-wrap
11787 msgid ""
11788 " int guestfs_removexattr (guestfs_h *g,\n"
11789 "\t\tconst char *xattr,\n"
11790 "\t\tconst char *path);\n"
11791 "\n"
11792 msgstr ""
11793
11794 # type: textblock
11795 #: ../src/guestfs-actions.pod:4289 ../fish/guestfish-actions.pod:3304
11796 msgid ""
11797 "This call removes the extended attribute named C<xattr> of the file C<path>."
11798 msgstr ""
11799
11800 # type: textblock
11801 #: ../src/guestfs-actions.pod:4292
11802 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11803 msgstr ""
11804
11805 # type: =head2
11806 #: ../src/guestfs-actions.pod:4296
11807 msgid "guestfs_resize2fs"
11808 msgstr ""
11809
11810 # type: verbatim
11811 #: ../src/guestfs-actions.pod:4298
11812 #, no-wrap
11813 msgid ""
11814 " int guestfs_resize2fs (guestfs_h *g,\n"
11815 "\t\tconst char *device);\n"
11816 "\n"
11817 msgstr ""
11818
11819 # type: textblock
11820 #: ../src/guestfs-actions.pod:4301 ../fish/guestfish-actions.pod:3313
11821 msgid ""
11822 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11823 "underlying device."
11824 msgstr ""
11825
11826 # type: textblock
11827 #: ../src/guestfs-actions.pod:4304
11828 msgid ""
11829 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11830 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11831 "sometimes gives an error about this and sometimes not.  In any case, it is "
11832 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11833 msgstr ""
11834
11835 # type: =head2
11836 #: ../src/guestfs-actions.pod:4312
11837 msgid "guestfs_resize2fs_size"
11838 msgstr ""
11839
11840 # type: verbatim
11841 #: ../src/guestfs-actions.pod:4314
11842 #, no-wrap
11843 msgid ""
11844 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11845 "\t\tconst char *device,\n"
11846 "\t\tint64_t size);\n"
11847 "\n"
11848 msgstr ""
11849
11850 # type: textblock
11851 #: ../src/guestfs-actions.pod:4318
11852 msgid ""
11853 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11854 "to specify the new size (in bytes) explicitly."
11855 msgstr ""
11856
11857 # type: =head2
11858 #: ../src/guestfs-actions.pod:4323
11859 msgid "guestfs_rm"
11860 msgstr ""
11861
11862 # type: verbatim
11863 #: ../src/guestfs-actions.pod:4325
11864 #, no-wrap
11865 msgid ""
11866 " int guestfs_rm (guestfs_h *g,\n"
11867 "\t\tconst char *path);\n"
11868 "\n"
11869 msgstr ""
11870
11871 # type: textblock
11872 #: ../src/guestfs-actions.pod:4328 ../fish/guestfish-actions.pod:3333
11873 msgid "Remove the single file C<path>."
11874 msgstr ""
11875
11876 # type: =head2
11877 #: ../src/guestfs-actions.pod:4332
11878 msgid "guestfs_rm_rf"
11879 msgstr ""
11880
11881 # type: verbatim
11882 #: ../src/guestfs-actions.pod:4334
11883 #, no-wrap
11884 msgid ""
11885 " int guestfs_rm_rf (guestfs_h *g,\n"
11886 "\t\tconst char *path);\n"
11887 "\n"
11888 msgstr ""
11889
11890 # type: textblock
11891 #: ../src/guestfs-actions.pod:4337 ../fish/guestfish-actions.pod:3339
11892 msgid ""
11893 "Remove the file or directory C<path>, recursively removing the contents if "
11894 "its a directory.  This is like the C<rm -rf> shell command."
11895 msgstr ""
11896
11897 # type: =head2
11898 #: ../src/guestfs-actions.pod:4343
11899 msgid "guestfs_rmdir"
11900 msgstr ""
11901
11902 # type: verbatim
11903 #: ../src/guestfs-actions.pod:4345
11904 #, no-wrap
11905 msgid ""
11906 " int guestfs_rmdir (guestfs_h *g,\n"
11907 "\t\tconst char *path);\n"
11908 "\n"
11909 msgstr ""
11910
11911 # type: textblock
11912 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:3347
11913 msgid "Remove the single directory C<path>."
11914 msgstr ""
11915
11916 # type: =head2
11917 #: ../src/guestfs-actions.pod:4352
11918 msgid "guestfs_rmmountpoint"
11919 msgstr ""
11920
11921 # type: verbatim
11922 #: ../src/guestfs-actions.pod:4354
11923 #, no-wrap
11924 msgid ""
11925 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11926 "\t\tconst char *exemptpath);\n"
11927 "\n"
11928 msgstr ""
11929
11930 # type: textblock
11931 #: ../src/guestfs-actions.pod:4357
11932 msgid ""
11933 "This calls removes a mountpoint that was previously created with "
11934 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11935 msgstr ""
11936
11937 # type: =head2
11938 #: ../src/guestfs-actions.pod:4363
11939 msgid "guestfs_scrub_device"
11940 msgstr ""
11941
11942 # type: verbatim
11943 #: ../src/guestfs-actions.pod:4365
11944 #, no-wrap
11945 msgid ""
11946 " int guestfs_scrub_device (guestfs_h *g,\n"
11947 "\t\tconst char *device);\n"
11948 "\n"
11949 msgstr ""
11950
11951 # type: textblock
11952 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:3361
11953 msgid ""
11954 "This command writes patterns over C<device> to make data retrieval more "
11955 "difficult."
11956 msgstr ""
11957
11958 # type: textblock
11959 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4389
11960 #: ../src/guestfs-actions.pod:4405 ../fish/guestfish-actions.pod:3364
11961 #: ../fish/guestfish-actions.pod:3379 ../fish/guestfish-actions.pod:3392
11962 msgid ""
11963 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11964 "more details."
11965 msgstr ""
11966
11967 # type: =head2
11968 #: ../src/guestfs-actions.pod:4379
11969 msgid "guestfs_scrub_file"
11970 msgstr ""
11971
11972 # type: verbatim
11973 #: ../src/guestfs-actions.pod:4381
11974 #, no-wrap
11975 msgid ""
11976 " int guestfs_scrub_file (guestfs_h *g,\n"
11977 "\t\tconst char *file);\n"
11978 "\n"
11979 msgstr ""
11980
11981 # type: textblock
11982 #: ../src/guestfs-actions.pod:4384 ../fish/guestfish-actions.pod:3374
11983 msgid ""
11984 "This command writes patterns over a file to make data retrieval more "
11985 "difficult."
11986 msgstr ""
11987
11988 # type: textblock
11989 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:3377
11990 msgid "The file is I<removed> after scrubbing."
11991 msgstr ""
11992
11993 # type: =head2
11994 #: ../src/guestfs-actions.pod:4394
11995 msgid "guestfs_scrub_freespace"
11996 msgstr ""
11997
11998 # type: verbatim
11999 #: ../src/guestfs-actions.pod:4396
12000 #, no-wrap
12001 msgid ""
12002 " int guestfs_scrub_freespace (guestfs_h *g,\n"
12003 "\t\tconst char *dir);\n"
12004 "\n"
12005 msgstr ""
12006
12007 # type: textblock
12008 #: ../src/guestfs-actions.pod:4399
12009 msgid ""
12010 "This command creates the directory C<dir> and then fills it with files until "
12011 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12012 "and deletes them.  The intention is to scrub any free space on the partition "
12013 "containing C<dir>."
12014 msgstr ""
12015
12016 # type: =head2
12017 #: ../src/guestfs-actions.pod:4410
12018 msgid "guestfs_set_append"
12019 msgstr ""
12020
12021 # type: verbatim
12022 #: ../src/guestfs-actions.pod:4412
12023 #, no-wrap
12024 msgid ""
12025 " int guestfs_set_append (guestfs_h *g,\n"
12026 "\t\tconst char *append);\n"
12027 "\n"
12028 msgstr ""
12029
12030 # type: textblock
12031 #: ../src/guestfs-actions.pod:4415 ../fish/guestfish-actions.pod:3401
12032 msgid ""
12033 "This function is used to add additional options to the guest kernel command "
12034 "line."
12035 msgstr ""
12036
12037 # type: textblock
12038 #: ../src/guestfs-actions.pod:4418 ../fish/guestfish-actions.pod:3404
12039 msgid ""
12040 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12041 "environment variable."
12042 msgstr ""
12043
12044 # type: textblock
12045 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:3407
12046 msgid ""
12047 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12048 "(libguestfs always adds a few of its own)."
12049 msgstr ""
12050
12051 # type: =head2
12052 #: ../src/guestfs-actions.pod:4426
12053 msgid "guestfs_set_autosync"
12054 msgstr ""
12055
12056 # type: verbatim
12057 #: ../src/guestfs-actions.pod:4428
12058 #, no-wrap
12059 msgid ""
12060 " int guestfs_set_autosync (guestfs_h *g,\n"
12061 "\t\tint autosync);\n"
12062 "\n"
12063 msgstr ""
12064
12065 # type: textblock
12066 #: ../src/guestfs-actions.pod:4431
12067 msgid ""
12068 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12069 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12070 "the handle is closed (also if the program exits without closing handles)."
12071 msgstr ""
12072
12073 # type: textblock
12074 #: ../src/guestfs-actions.pod:4436 ../fish/guestfish-actions.pod:3421
12075 msgid ""
12076 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12077 "disabled by default)."
12078 msgstr ""
12079
12080 # type: =head2
12081 #: ../src/guestfs-actions.pod:4441
12082 msgid "guestfs_set_direct"
12083 msgstr ""
12084
12085 # type: verbatim
12086 #: ../src/guestfs-actions.pod:4443
12087 #, no-wrap
12088 msgid ""
12089 " int guestfs_set_direct (guestfs_h *g,\n"
12090 "\t\tint direct);\n"
12091 "\n"
12092 msgstr ""
12093
12094 # type: textblock
12095 #: ../src/guestfs-actions.pod:4446 ../fish/guestfish-actions.pod:3430
12096 msgid ""
12097 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12098 "passed directly through to the appliance once it is launched."
12099 msgstr ""
12100
12101 # type: textblock
12102 #: ../src/guestfs-actions.pod:4450
12103 msgid ""
12104 "One consequence of this is that log messages aren't caught by the library "
12105 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12106 "stdout."
12107 msgstr ""
12108
12109 # type: textblock
12110 #: ../src/guestfs-actions.pod:4454 ../fish/guestfish-actions.pod:3438
12111 msgid "You probably don't want to use this unless you know what you are doing."
12112 msgstr ""
12113
12114 # type: textblock
12115 #: ../src/guestfs-actions.pod:4457 ../fish/guestfish-actions.pod:3441
12116 msgid "The default is disabled."
12117 msgstr ""
12118
12119 # type: =head2
12120 #: ../src/guestfs-actions.pod:4461
12121 msgid "guestfs_set_e2label"
12122 msgstr ""
12123
12124 # type: verbatim
12125 #: ../src/guestfs-actions.pod:4463
12126 #, no-wrap
12127 msgid ""
12128 " int guestfs_set_e2label (guestfs_h *g,\n"
12129 "\t\tconst char *device,\n"
12130 "\t\tconst char *label);\n"
12131 "\n"
12132 msgstr ""
12133
12134 # type: textblock
12135 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:3447
12136 msgid ""
12137 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12138 "C<label>.  Filesystem labels are limited to 16 characters."
12139 msgstr ""
12140
12141 # type: textblock
12142 #: ../src/guestfs-actions.pod:4471
12143 msgid ""
12144 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12145 "the existing label on a filesystem."
12146 msgstr ""
12147
12148 # type: =head2
12149 #: ../src/guestfs-actions.pod:4476
12150 msgid "guestfs_set_e2uuid"
12151 msgstr ""
12152
12153 # type: verbatim
12154 #: ../src/guestfs-actions.pod:4478
12155 #, no-wrap
12156 msgid ""
12157 " int guestfs_set_e2uuid (guestfs_h *g,\n"
12158 "\t\tconst char *device,\n"
12159 "\t\tconst char *uuid);\n"
12160 "\n"
12161 msgstr ""
12162
12163 # type: textblock
12164 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3458
12165 msgid ""
12166 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12167 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12168 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12169 msgstr ""
12170
12171 # type: textblock
12172 #: ../src/guestfs-actions.pod:4487
12173 msgid ""
12174 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12175 "the existing UUID of a filesystem."
12176 msgstr ""
12177
12178 # type: =head2
12179 #: ../src/guestfs-actions.pod:4492
12180 msgid "guestfs_set_memsize"
12181 msgstr ""
12182
12183 # type: verbatim
12184 #: ../src/guestfs-actions.pod:4494
12185 #, no-wrap
12186 msgid ""
12187 " int guestfs_set_memsize (guestfs_h *g,\n"
12188 "\t\tint memsize);\n"
12189 "\n"
12190 msgstr ""
12191
12192 # type: textblock
12193 #: ../src/guestfs-actions.pod:4497
12194 msgid ""
12195 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12196 "This only has any effect if called before C<guestfs_launch>."
12197 msgstr ""
12198
12199 # type: textblock
12200 #: ../src/guestfs-actions.pod:4501 ../fish/guestfish-actions.pod:3476
12201 msgid ""
12202 "You can also change this by setting the environment variable "
12203 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12204 msgstr ""
12205
12206 # type: =head2
12207 #: ../src/guestfs-actions.pod:4510
12208 msgid "guestfs_set_network"
12209 msgstr ""
12210
12211 # type: verbatim
12212 #: ../src/guestfs-actions.pod:4512
12213 #, no-wrap
12214 msgid ""
12215 " int guestfs_set_network (guestfs_h *g,\n"
12216 "\t\tint network);\n"
12217 "\n"
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:3489
12222 msgid ""
12223 "If C<network> is true, then the network is enabled in the libguestfs "
12224 "appliance.  The default is false."
12225 msgstr ""
12226
12227 # type: textblock
12228 #: ../src/guestfs-actions.pod:4518 ../fish/guestfish-actions.pod:3492
12229 msgid ""
12230 "This affects whether commands are able to access the network (see L<guestfs"
12231 "(3)/RUNNING COMMANDS>)."
12232 msgstr ""
12233
12234 # type: textblock
12235 #: ../src/guestfs-actions.pod:4521
12236 msgid ""
12237 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12238 "effect."
12239 msgstr ""
12240
12241 # type: =head2
12242 #: ../src/guestfs-actions.pod:4526
12243 msgid "guestfs_set_path"
12244 msgstr ""
12245
12246 # type: verbatim
12247 #: ../src/guestfs-actions.pod:4528
12248 #, no-wrap
12249 msgid ""
12250 " int guestfs_set_path (guestfs_h *g,\n"
12251 "\t\tconst char *searchpath);\n"
12252 "\n"
12253 msgstr ""
12254
12255 # type: textblock
12256 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3504
12257 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12258 msgstr ""
12259
12260 # type: textblock
12261 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3506
12262 msgid ""
12263 "The default is C<$libdir/guestfs> unless overridden by setting "
12264 "C<LIBGUESTFS_PATH> environment variable."
12265 msgstr ""
12266
12267 # type: textblock
12268 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3509
12269 msgid "Setting C<path> to C<NULL> restores the default path."
12270 msgstr ""
12271
12272 # type: =head2
12273 #: ../src/guestfs-actions.pod:4540
12274 msgid "guestfs_set_qemu"
12275 msgstr ""
12276
12277 # type: verbatim
12278 #: ../src/guestfs-actions.pod:4542
12279 #, no-wrap
12280 msgid ""
12281 " int guestfs_set_qemu (guestfs_h *g,\n"
12282 "\t\tconst char *qemu);\n"
12283 "\n"
12284 msgstr ""
12285
12286 # type: textblock
12287 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3517
12288 msgid "Set the qemu binary that we will use."
12289 msgstr ""
12290
12291 # type: textblock
12292 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3519
12293 msgid ""
12294 "The default is chosen when the library was compiled by the configure script."
12295 msgstr ""
12296
12297 # type: textblock
12298 #: ../src/guestfs-actions.pod:4550 ../fish/guestfish-actions.pod:3522
12299 msgid ""
12300 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12301 "variable."
12302 msgstr ""
12303
12304 # type: textblock
12305 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3525
12306 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12307 msgstr ""
12308
12309 # type: textblock
12310 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3527
12311 msgid ""
12312 "Note that you should call this function as early as possible after creating "
12313 "the handle.  This is because some pre-launch operations depend on testing "
12314 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12315 "don't retest features, and so you might see inconsistent results.  Using the "
12316 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12317 "the qemu binary at the same time as the handle is created."
12318 msgstr ""
12319
12320 # type: =head2
12321 #: ../src/guestfs-actions.pod:4565
12322 msgid "guestfs_set_recovery_proc"
12323 msgstr ""
12324
12325 # type: verbatim
12326 #: ../src/guestfs-actions.pod:4567
12327 #, no-wrap
12328 msgid ""
12329 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
12330 "\t\tint recoveryproc);\n"
12331 "\n"
12332 msgstr ""
12333
12334 # type: textblock
12335 #: ../src/guestfs-actions.pod:4570
12336 msgid ""
12337 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12338 "not create a recovery process.  The purpose of the recovery process is to "
12339 "stop runaway qemu processes in the case where the main program aborts "
12340 "abruptly."
12341 msgstr ""
12342
12343 # type: textblock
12344 #: ../src/guestfs-actions.pod:4575
12345 msgid ""
12346 "This only has any effect if called before C<guestfs_launch>, and the default "
12347 "is true."
12348 msgstr ""
12349
12350 # type: textblock
12351 #: ../src/guestfs-actions.pod:4578 ../fish/guestfish-actions.pod:3549
12352 msgid ""
12353 "About the only time when you would want to disable this is if the main "
12354 "process will fork itself into the background (\"daemonize\" itself).  In "
12355 "this case the recovery process thinks that the main program has disappeared "
12356 "and so kills qemu, which is not very helpful."
12357 msgstr ""
12358
12359 # type: =head2
12360 #: ../src/guestfs-actions.pod:4586
12361 msgid "guestfs_set_selinux"
12362 msgstr ""
12363
12364 # type: verbatim
12365 #: ../src/guestfs-actions.pod:4588
12366 #, no-wrap
12367 msgid ""
12368 " int guestfs_set_selinux (guestfs_h *g,\n"
12369 "\t\tint selinux);\n"
12370 "\n"
12371 msgstr ""
12372
12373 # type: textblock
12374 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3561
12375 msgid ""
12376 "This sets the selinux flag that is passed to the appliance at boot time.  "
12377 "The default is C<selinux=0> (disabled)."
12378 msgstr ""
12379
12380 # type: textblock
12381 #: ../src/guestfs-actions.pod:4594 ../fish/guestfish-actions.pod:3564
12382 msgid ""
12383 "Note that if SELinux is enabled, it is always in Permissive mode "
12384 "(C<enforcing=0>)."
12385 msgstr ""
12386
12387 # type: =head2
12388 #: ../src/guestfs-actions.pod:4602
12389 msgid "guestfs_set_trace"
12390 msgstr ""
12391
12392 # type: verbatim
12393 #: ../src/guestfs-actions.pod:4604
12394 #, no-wrap
12395 msgid ""
12396 " int guestfs_set_trace (guestfs_h *g,\n"
12397 "\t\tint trace);\n"
12398 "\n"
12399 msgstr ""
12400
12401 # type: textblock
12402 #: ../src/guestfs-actions.pod:4607 ../fish/guestfish-actions.pod:3576
12403 msgid ""
12404 "If the command trace flag is set to 1, then commands are printed on stderr "
12405 "before they are executed in a format which is very similar to the one used "
12406 "by guestfish.  In other words, you can run a program with this enabled, and "
12407 "you will get out a script which you can feed to guestfish to perform the "
12408 "same set of actions."
12409 msgstr ""
12410
12411 # type: textblock
12412 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3583
12413 msgid ""
12414 "If you want to trace C API calls into libguestfs (and other libraries) then "
12415 "possibly a better way is to use the external ltrace(1) command."
12416 msgstr ""
12417
12418 # type: textblock
12419 #: ../src/guestfs-actions.pod:4618 ../fish/guestfish-actions.pod:3587
12420 msgid ""
12421 "Command traces are disabled unless the environment variable "
12422 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12423 msgstr ""
12424
12425 # type: =head2
12426 #: ../src/guestfs-actions.pod:4623
12427 msgid "guestfs_set_verbose"
12428 msgstr ""
12429
12430 # type: verbatim
12431 #: ../src/guestfs-actions.pod:4625
12432 #, no-wrap
12433 msgid ""
12434 " int guestfs_set_verbose (guestfs_h *g,\n"
12435 "\t\tint verbose);\n"
12436 "\n"
12437 msgstr ""
12438
12439 # type: textblock
12440 #: ../src/guestfs-actions.pod:4628 ../fish/guestfish-actions.pod:3596
12441 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12442 msgstr ""
12443
12444 # type: textblock
12445 #: ../src/guestfs-actions.pod:4630 ../fish/guestfish-actions.pod:3598
12446 msgid ""
12447 "Verbose messages are disabled unless the environment variable "
12448 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12449 msgstr ""
12450
12451 # type: =head2
12452 #: ../src/guestfs-actions.pod:4635
12453 msgid "guestfs_setcon"
12454 msgstr ""
12455
12456 # type: verbatim
12457 #: ../src/guestfs-actions.pod:4637
12458 #, no-wrap
12459 msgid ""
12460 " int guestfs_setcon (guestfs_h *g,\n"
12461 "\t\tconst char *context);\n"
12462 "\n"
12463 msgstr ""
12464
12465 # type: textblock
12466 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3605
12467 msgid ""
12468 "This sets the SELinux security context of the daemon to the string "
12469 "C<context>."
12470 msgstr ""
12471
12472 # type: textblock
12473 #: ../src/guestfs-actions.pod:4643 ../fish/guestfish-actions.pod:3608
12474 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12475 msgstr ""
12476
12477 # type: =head2
12478 #: ../src/guestfs-actions.pod:4647
12479 msgid "guestfs_setxattr"
12480 msgstr ""
12481
12482 # type: verbatim
12483 #: ../src/guestfs-actions.pod:4649
12484 #, no-wrap
12485 msgid ""
12486 " int guestfs_setxattr (guestfs_h *g,\n"
12487 "\t\tconst char *xattr,\n"
12488 "\t\tconst char *val,\n"
12489 "\t\tint vallen,\n"
12490 "\t\tconst char *path);\n"
12491 "\n"
12492 msgstr ""
12493
12494 # type: textblock
12495 #: ../src/guestfs-actions.pod:4655 ../fish/guestfish-actions.pod:3614
12496 msgid ""
12497 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12498 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12499 msgstr ""
12500
12501 # type: textblock
12502 #: ../src/guestfs-actions.pod:4659
12503 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12504 msgstr ""
12505
12506 # type: =head2
12507 #: ../src/guestfs-actions.pod:4663
12508 msgid "guestfs_sfdisk"
12509 msgstr ""
12510
12511 # type: verbatim
12512 #: ../src/guestfs-actions.pod:4665
12513 #, no-wrap
12514 msgid ""
12515 " int guestfs_sfdisk (guestfs_h *g,\n"
12516 "\t\tconst char *device,\n"
12517 "\t\tint cyls,\n"
12518 "\t\tint heads,\n"
12519 "\t\tint sectors,\n"
12520 "\t\tchar *const *lines);\n"
12521 "\n"
12522 msgstr ""
12523
12524 # type: textblock
12525 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3624
12526 msgid ""
12527 "This is a direct interface to the L<sfdisk(8)> program for creating "
12528 "partitions on block devices."
12529 msgstr ""
12530
12531 # type: textblock
12532 #: ../src/guestfs-actions.pod:4675 ../fish/guestfish-actions.pod:3627
12533 msgid "C<device> should be a block device, for example C</dev/sda>."
12534 msgstr ""
12535
12536 # type: textblock
12537 #: ../src/guestfs-actions.pod:4677 ../fish/guestfish-actions.pod:3629
12538 msgid ""
12539 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12540 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
12541 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12542 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12543 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12544 "the kernel) cannot work out the right geometry and you will need to tell it."
12545 msgstr ""
12546
12547 # type: textblock
12548 #: ../src/guestfs-actions.pod:4685 ../fish/guestfish-actions.pod:3637
12549 msgid ""
12550 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12551 "refer to the L<sfdisk(8)> manpage."
12552 msgstr ""
12553
12554 # type: textblock
12555 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3640
12556 msgid ""
12557 "To create a single partition occupying the whole disk, you would pass "
12558 "C<lines> as a single element list, when the single element being the string "
12559 "C<,> (comma)."
12560 msgstr ""
12561
12562 # type: textblock
12563 #: ../src/guestfs-actions.pod:4692
12564 msgid ""
12565 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12566 msgstr ""
12567
12568 # type: =head2
12569 #: ../src/guestfs-actions.pod:4700
12570 msgid "guestfs_sfdiskM"
12571 msgstr ""
12572
12573 # type: verbatim
12574 #: ../src/guestfs-actions.pod:4702
12575 #, no-wrap
12576 msgid ""
12577 " int guestfs_sfdiskM (guestfs_h *g,\n"
12578 "\t\tconst char *device,\n"
12579 "\t\tchar *const *lines);\n"
12580 "\n"
12581 msgstr ""
12582
12583 # type: textblock
12584 #: ../src/guestfs-actions.pod:4706
12585 msgid ""
12586 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12587 "partition sizes are specified in megabytes only (rounded to the nearest "
12588 "cylinder) and you don't need to specify the cyls, heads and sectors "
12589 "parameters which were rarely if ever used anyway."
12590 msgstr ""
12591
12592 # type: textblock
12593 #: ../src/guestfs-actions.pod:4712
12594 msgid ""
12595 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12596 "C<guestfs_part_disk>"
12597 msgstr ""
12598
12599 # type: =head2
12600 #: ../src/guestfs-actions.pod:4720
12601 msgid "guestfs_sfdisk_N"
12602 msgstr ""
12603
12604 # type: verbatim
12605 #: ../src/guestfs-actions.pod:4722
12606 #, no-wrap
12607 msgid ""
12608 " int guestfs_sfdisk_N (guestfs_h *g,\n"
12609 "\t\tconst char *device,\n"
12610 "\t\tint partnum,\n"
12611 "\t\tint cyls,\n"
12612 "\t\tint heads,\n"
12613 "\t\tint sectors,\n"
12614 "\t\tconst char *line);\n"
12615 "\n"
12616 msgstr ""
12617
12618 # type: textblock
12619 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3670
12620 msgid ""
12621 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12622 "(note: C<n> counts from 1)."
12623 msgstr ""
12624
12625 # type: textblock
12626 #: ../src/guestfs-actions.pod:4733
12627 msgid ""
12628 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12629 "for the cyls/heads/sectors parameters."
12630 msgstr ""
12631
12632 # type: textblock
12633 #: ../src/guestfs-actions.pod:4736
12634 msgid "See also: C<guestfs_part_add>"
12635 msgstr ""
12636
12637 # type: =head2
12638 #: ../src/guestfs-actions.pod:4743
12639 msgid "guestfs_sfdisk_disk_geometry"
12640 msgstr ""
12641
12642 # type: verbatim
12643 #: ../src/guestfs-actions.pod:4745
12644 #, no-wrap
12645 msgid ""
12646 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12647 "\t\tconst char *device);\n"
12648 "\n"
12649 msgstr ""
12650
12651 # type: textblock
12652 #: ../src/guestfs-actions.pod:4748
12653 msgid ""
12654 "This displays the disk geometry of C<device> read from the partition table.  "
12655 "Especially in the case where the underlying block device has been resized, "
12656 "this can be different from the kernel's idea of the geometry (see "
12657 "C<guestfs_sfdisk_kernel_geometry>)."
12658 msgstr ""
12659
12660 # type: textblock
12661 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:4766
12662 #: ../fish/guestfish-actions.pod:3690 ../fish/guestfish-actions.pod:3699
12663 msgid "The result is in human-readable format, and not designed to be parsed."
12664 msgstr ""
12665
12666 # type: =head2
12667 #: ../src/guestfs-actions.pod:4759
12668 msgid "guestfs_sfdisk_kernel_geometry"
12669 msgstr ""
12670
12671 # type: verbatim
12672 #: ../src/guestfs-actions.pod:4761
12673 #, no-wrap
12674 msgid ""
12675 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12676 "\t\tconst char *device);\n"
12677 "\n"
12678 msgstr ""
12679
12680 # type: textblock
12681 #: ../src/guestfs-actions.pod:4764 ../fish/guestfish-actions.pod:3697
12682 msgid "This displays the kernel's idea of the geometry of C<device>."
12683 msgstr ""
12684
12685 # type: =head2
12686 #: ../src/guestfs-actions.pod:4772
12687 msgid "guestfs_sfdisk_l"
12688 msgstr ""
12689
12690 # type: verbatim
12691 #: ../src/guestfs-actions.pod:4774
12692 #, no-wrap
12693 msgid ""
12694 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
12695 "\t\tconst char *device);\n"
12696 "\n"
12697 msgstr ""
12698
12699 # type: textblock
12700 #: ../src/guestfs-actions.pod:4777 ../fish/guestfish-actions.pod:3706
12701 msgid ""
12702 "This displays the partition table on C<device>, in the human-readable output "
12703 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12704 msgstr ""
12705
12706 # type: textblock
12707 #: ../src/guestfs-actions.pod:4781
12708 msgid "See also: C<guestfs_part_list>"
12709 msgstr ""
12710
12711 # type: =head2
12712 #: ../src/guestfs-actions.pod:4786
12713 msgid "guestfs_sh"
12714 msgstr ""
12715
12716 # type: verbatim
12717 #: ../src/guestfs-actions.pod:4788
12718 #, no-wrap
12719 msgid ""
12720 " char *guestfs_sh (guestfs_h *g,\n"
12721 "\t\tconst char *command);\n"
12722 "\n"
12723 msgstr ""
12724
12725 # type: textblock
12726 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3716
12727 msgid ""
12728 "This call runs a command from the guest filesystem via the guest's C</bin/"
12729 "sh>."
12730 msgstr ""
12731
12732 # type: textblock
12733 #: ../src/guestfs-actions.pod:4794
12734 msgid "This is like C<guestfs_command>, but passes the command to:"
12735 msgstr ""
12736
12737 # type: verbatim
12738 #: ../src/guestfs-actions.pod:4796 ../fish/guestfish-actions.pod:3721
12739 #, no-wrap
12740 msgid ""
12741 " /bin/sh -c \"command\"\n"
12742 "\n"
12743 msgstr ""
12744
12745 # type: textblock
12746 #: ../src/guestfs-actions.pod:4798 ../fish/guestfish-actions.pod:3723
12747 msgid ""
12748 "Depending on the guest's shell, this usually results in wildcards being "
12749 "expanded, shell expressions being interpolated and so on."
12750 msgstr ""
12751
12752 # type: textblock
12753 #: ../src/guestfs-actions.pod:4802
12754 msgid "All the provisos about C<guestfs_command> apply to this call."
12755 msgstr ""
12756
12757 # type: =head2
12758 #: ../src/guestfs-actions.pod:4807
12759 msgid "guestfs_sh_lines"
12760 msgstr ""
12761
12762 # type: verbatim
12763 #: ../src/guestfs-actions.pod:4809
12764 #, no-wrap
12765 msgid ""
12766 " char **guestfs_sh_lines (guestfs_h *g,\n"
12767 "\t\tconst char *command);\n"
12768 "\n"
12769 msgstr ""
12770
12771 # type: textblock
12772 #: ../src/guestfs-actions.pod:4812
12773 msgid ""
12774 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12775 "lines."
12776 msgstr ""
12777
12778 # type: textblock
12779 #: ../src/guestfs-actions.pod:4815
12780 msgid "See also: C<guestfs_command_lines>"
12781 msgstr ""
12782
12783 # type: =head2
12784 #: ../src/guestfs-actions.pod:4821
12785 msgid "guestfs_sleep"
12786 msgstr ""
12787
12788 # type: verbatim
12789 #: ../src/guestfs-actions.pod:4823
12790 #, no-wrap
12791 msgid ""
12792 " int guestfs_sleep (guestfs_h *g,\n"
12793 "\t\tint secs);\n"
12794 "\n"
12795 msgstr ""
12796
12797 # type: textblock
12798 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3742
12799 msgid "Sleep for C<secs> seconds."
12800 msgstr ""
12801
12802 # type: =head2
12803 #: ../src/guestfs-actions.pod:4830 ../src/guestfs-structs.pod:109
12804 msgid "guestfs_stat"
12805 msgstr ""
12806
12807 # type: verbatim
12808 #: ../src/guestfs-actions.pod:4832
12809 #, no-wrap
12810 msgid ""
12811 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12812 "\t\tconst char *path);\n"
12813 "\n"
12814 msgstr ""
12815
12816 # type: textblock
12817 #: ../src/guestfs-actions.pod:4837 ../fish/guestfish-actions.pod:3750
12818 msgid "This is the same as the C<stat(2)> system call."
12819 msgstr ""
12820
12821 # type: =head2
12822 #: ../src/guestfs-actions.pod:4843 ../src/guestfs-structs.pod:135
12823 msgid "guestfs_statvfs"
12824 msgstr ""
12825
12826 # type: verbatim
12827 #: ../src/guestfs-actions.pod:4845
12828 #, no-wrap
12829 msgid ""
12830 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12831 "\t\tconst char *path);\n"
12832 "\n"
12833 msgstr ""
12834
12835 # type: textblock
12836 #: ../src/guestfs-actions.pod:4848 ../fish/guestfish-actions.pod:3756
12837 msgid ""
12838 "Returns file system statistics for any mounted file system.  C<path> should "
12839 "be a file or directory in the mounted file system (typically it is the mount "
12840 "point itself, but it doesn't need to be)."
12841 msgstr ""
12842
12843 # type: textblock
12844 #: ../src/guestfs-actions.pod:4852 ../fish/guestfish-actions.pod:3760
12845 msgid "This is the same as the C<statvfs(2)> system call."
12846 msgstr ""
12847
12848 # type: textblock
12849 #: ../src/guestfs-actions.pod:4854
12850 msgid ""
12851 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12852 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12853 msgstr ""
12854
12855 # type: =head2
12856 #: ../src/guestfs-actions.pod:4858
12857 msgid "guestfs_strings"
12858 msgstr ""
12859
12860 # type: verbatim
12861 #: ../src/guestfs-actions.pod:4860
12862 #, no-wrap
12863 msgid ""
12864 " char **guestfs_strings (guestfs_h *g,\n"
12865 "\t\tconst char *path);\n"
12866 "\n"
12867 msgstr ""
12868
12869 # type: textblock
12870 #: ../src/guestfs-actions.pod:4863 ../fish/guestfish-actions.pod:3766
12871 msgid ""
12872 "This runs the L<strings(1)> command on a file and returns the list of "
12873 "printable strings found."
12874 msgstr ""
12875
12876 # type: =head2
12877 #: ../src/guestfs-actions.pod:4873
12878 msgid "guestfs_strings_e"
12879 msgstr ""
12880
12881 # type: verbatim
12882 #: ../src/guestfs-actions.pod:4875
12883 #, no-wrap
12884 msgid ""
12885 " char **guestfs_strings_e (guestfs_h *g,\n"
12886 "\t\tconst char *encoding,\n"
12887 "\t\tconst char *path);\n"
12888 "\n"
12889 msgstr ""
12890
12891 # type: textblock
12892 #: ../src/guestfs-actions.pod:4879
12893 msgid ""
12894 "This is like the C<guestfs_strings> command, but allows you to specify the "
12895 "encoding of strings that are looked for in the source file C<path>."
12896 msgstr ""
12897
12898 # type: textblock
12899 #: ../src/guestfs-actions.pod:4883 ../fish/guestfish-actions.pod:3780
12900 msgid "Allowed encodings are:"
12901 msgstr ""
12902
12903 # type: =item
12904 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3784
12905 msgid "s"
12906 msgstr ""
12907
12908 # type: textblock
12909 #: ../src/guestfs-actions.pod:4889
12910 msgid ""
12911 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12912 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12913 msgstr ""
12914
12915 # type: =item
12916 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3789
12917 msgid "S"
12918 msgstr ""
12919
12920 # type: textblock
12921 #: ../src/guestfs-actions.pod:4894 ../fish/guestfish-actions.pod:3791
12922 msgid "Single 8-bit-byte characters."
12923 msgstr ""
12924
12925 # type: =item
12926 #: ../src/guestfs-actions.pod:4896 ../fish/guestfish-actions.pod:3793
12927 msgid "b"
12928 msgstr ""
12929
12930 # type: textblock
12931 #: ../src/guestfs-actions.pod:4898 ../fish/guestfish-actions.pod:3795
12932 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12933 msgstr ""
12934
12935 # type: =item
12936 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3798
12937 msgid "l (lower case letter L)"
12938 msgstr ""
12939
12940 # type: textblock
12941 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3800
12942 msgid ""
12943 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12944 "examining binaries in Windows guests."
12945 msgstr ""
12946
12947 # type: =item
12948 #: ../src/guestfs-actions.pod:4906 ../fish/guestfish-actions.pod:3803
12949 msgid "B"
12950 msgstr ""
12951
12952 # type: textblock
12953 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3805
12954 msgid "32-bit big endian such as UCS-4BE."
12955 msgstr ""
12956
12957 # type: =item
12958 #: ../src/guestfs-actions.pod:4910 ../fish/guestfish-actions.pod:3807
12959 msgid "L"
12960 msgstr ""
12961
12962 # type: textblock
12963 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3809
12964 msgid "32-bit little endian such as UCS-4LE."
12965 msgstr ""
12966
12967 # type: textblock
12968 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3813
12969 msgid "The returned strings are transcoded to UTF-8."
12970 msgstr ""
12971
12972 # type: =head2
12973 #: ../src/guestfs-actions.pod:4925
12974 msgid "guestfs_swapoff_device"
12975 msgstr ""
12976
12977 # type: verbatim
12978 #: ../src/guestfs-actions.pod:4927
12979 #, no-wrap
12980 msgid ""
12981 " int guestfs_swapoff_device (guestfs_h *g,\n"
12982 "\t\tconst char *device);\n"
12983 "\n"
12984 msgstr ""
12985
12986 # type: textblock
12987 #: ../src/guestfs-actions.pod:4930
12988 msgid ""
12989 "This command disables the libguestfs appliance swap device or partition "
12990 "named C<device>.  See C<guestfs_swapon_device>."
12991 msgstr ""
12992
12993 # type: =head2
12994 #: ../src/guestfs-actions.pod:4936
12995 msgid "guestfs_swapoff_file"
12996 msgstr ""
12997
12998 # type: verbatim
12999 #: ../src/guestfs-actions.pod:4938
13000 #, no-wrap
13001 msgid ""
13002 " int guestfs_swapoff_file (guestfs_h *g,\n"
13003 "\t\tconst char *file);\n"
13004 "\n"
13005 msgstr ""
13006
13007 # type: textblock
13008 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3830
13009 msgid "This command disables the libguestfs appliance swap on file."
13010 msgstr ""
13011
13012 # type: =head2
13013 #: ../src/guestfs-actions.pod:4945
13014 msgid "guestfs_swapoff_label"
13015 msgstr ""
13016
13017 # type: verbatim
13018 #: ../src/guestfs-actions.pod:4947
13019 #, no-wrap
13020 msgid ""
13021 " int guestfs_swapoff_label (guestfs_h *g,\n"
13022 "\t\tconst char *label);\n"
13023 "\n"
13024 msgstr ""
13025
13026 # type: textblock
13027 #: ../src/guestfs-actions.pod:4950 ../fish/guestfish-actions.pod:3836
13028 msgid ""
13029 "This command disables the libguestfs appliance swap on labeled swap "
13030 "partition."
13031 msgstr ""
13032
13033 # type: =head2
13034 #: ../src/guestfs-actions.pod:4955
13035 msgid "guestfs_swapoff_uuid"
13036 msgstr ""
13037
13038 # type: verbatim
13039 #: ../src/guestfs-actions.pod:4957
13040 #, no-wrap
13041 msgid ""
13042 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
13043 "\t\tconst char *uuid);\n"
13044 "\n"
13045 msgstr ""
13046
13047 # type: textblock
13048 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3843
13049 msgid ""
13050 "This command disables the libguestfs appliance swap partition with the given "
13051 "UUID."
13052 msgstr ""
13053
13054 # type: =head2
13055 #: ../src/guestfs-actions.pod:4965
13056 msgid "guestfs_swapon_device"
13057 msgstr ""
13058
13059 # type: verbatim
13060 #: ../src/guestfs-actions.pod:4967
13061 #, no-wrap
13062 msgid ""
13063 " int guestfs_swapon_device (guestfs_h *g,\n"
13064 "\t\tconst char *device);\n"
13065 "\n"
13066 msgstr ""
13067
13068 # type: textblock
13069 #: ../src/guestfs-actions.pod:4970
13070 msgid ""
13071 "This command enables the libguestfs appliance to use the swap device or "
13072 "partition named C<device>.  The increased memory is made available for all "
13073 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13074 msgstr ""
13075
13076 # type: textblock
13077 #: ../src/guestfs-actions.pod:4975 ../fish/guestfish-actions.pod:3855
13078 msgid ""
13079 "Note that you should not swap to existing guest swap partitions unless you "
13080 "know what you are doing.  They may contain hibernation information, or other "
13081 "information that the guest doesn't want you to trash.  You also risk leaking "
13082 "information about the host to the guest this way.  Instead, attach a new "
13083 "host device to the guest and swap on that."
13084 msgstr ""
13085
13086 # type: =head2
13087 #: ../src/guestfs-actions.pod:4984
13088 msgid "guestfs_swapon_file"
13089 msgstr ""
13090
13091 # type: verbatim
13092 #: ../src/guestfs-actions.pod:4986
13093 #, no-wrap
13094 msgid ""
13095 " int guestfs_swapon_file (guestfs_h *g,\n"
13096 "\t\tconst char *file);\n"
13097 "\n"
13098 msgstr ""
13099
13100 # type: textblock
13101 #: ../src/guestfs-actions.pod:4989
13102 msgid ""
13103 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13104 "notes."
13105 msgstr ""
13106
13107 # type: =head2
13108 #: ../src/guestfs-actions.pod:4994
13109 msgid "guestfs_swapon_label"
13110 msgstr ""
13111
13112 # type: verbatim
13113 #: ../src/guestfs-actions.pod:4996
13114 #, no-wrap
13115 msgid ""
13116 " int guestfs_swapon_label (guestfs_h *g,\n"
13117 "\t\tconst char *label);\n"
13118 "\n"
13119 msgstr ""
13120
13121 # type: textblock
13122 #: ../src/guestfs-actions.pod:4999
13123 msgid ""
13124 "This command enables swap to a labeled swap partition.  See "
13125 "C<guestfs_swapon_device> for other notes."
13126 msgstr ""
13127
13128 # type: =head2
13129 #: ../src/guestfs-actions.pod:5004
13130 msgid "guestfs_swapon_uuid"
13131 msgstr ""
13132
13133 # type: verbatim
13134 #: ../src/guestfs-actions.pod:5006
13135 #, no-wrap
13136 msgid ""
13137 " int guestfs_swapon_uuid (guestfs_h *g,\n"
13138 "\t\tconst char *uuid);\n"
13139 "\n"
13140 msgstr ""
13141
13142 # type: textblock
13143 #: ../src/guestfs-actions.pod:5009
13144 msgid ""
13145 "This command enables swap to a swap partition with the given UUID.  See "
13146 "C<guestfs_swapon_device> for other notes."
13147 msgstr ""
13148
13149 # type: =head2
13150 #: ../src/guestfs-actions.pod:5014
13151 msgid "guestfs_sync"
13152 msgstr ""
13153
13154 # type: verbatim
13155 #: ../src/guestfs-actions.pod:5016
13156 #, no-wrap
13157 msgid ""
13158 " int guestfs_sync (guestfs_h *g);\n"
13159 "\n"
13160 msgstr ""
13161
13162 # type: textblock
13163 #: ../src/guestfs-actions.pod:5018 ../fish/guestfish-actions.pod:3887
13164 msgid ""
13165 "This syncs the disk, so that any writes are flushed through to the "
13166 "underlying disk image."
13167 msgstr ""
13168
13169 # type: textblock
13170 #: ../src/guestfs-actions.pod:5021 ../fish/guestfish-actions.pod:3890
13171 msgid ""
13172 "You should always call this if you have modified a disk image, before "
13173 "closing the handle."
13174 msgstr ""
13175
13176 # type: =head2
13177 #: ../src/guestfs-actions.pod:5026
13178 msgid "guestfs_tail"
13179 msgstr ""
13180
13181 # type: verbatim
13182 #: ../src/guestfs-actions.pod:5028
13183 #, no-wrap
13184 msgid ""
13185 " char **guestfs_tail (guestfs_h *g,\n"
13186 "\t\tconst char *path);\n"
13187 "\n"
13188 msgstr ""
13189
13190 # type: textblock
13191 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3897
13192 msgid ""
13193 "This command returns up to the last 10 lines of a file as a list of strings."
13194 msgstr ""
13195
13196 # type: =head2
13197 #: ../src/guestfs-actions.pod:5041
13198 msgid "guestfs_tail_n"
13199 msgstr ""
13200
13201 # type: verbatim
13202 #: ../src/guestfs-actions.pod:5043
13203 #, no-wrap
13204 msgid ""
13205 " char **guestfs_tail_n (guestfs_h *g,\n"
13206 "\t\tint nrlines,\n"
13207 "\t\tconst char *path);\n"
13208 "\n"
13209 msgstr ""
13210
13211 # type: textblock
13212 #: ../src/guestfs-actions.pod:5047 ../fish/guestfish-actions.pod:3907
13213 msgid ""
13214 "If the parameter C<nrlines> is a positive number, this returns the last "
13215 "C<nrlines> lines of the file C<path>."
13216 msgstr ""
13217
13218 # type: textblock
13219 #: ../src/guestfs-actions.pod:5050 ../fish/guestfish-actions.pod:3910
13220 msgid ""
13221 "If the parameter C<nrlines> is a negative number, this returns lines from "
13222 "the file C<path>, starting with the C<-nrlines>th line."
13223 msgstr ""
13224
13225 # type: =head2
13226 #: ../src/guestfs-actions.pod:5062
13227 msgid "guestfs_tar_in"
13228 msgstr ""
13229
13230 # type: verbatim
13231 #: ../src/guestfs-actions.pod:5064
13232 #, no-wrap
13233 msgid ""
13234 " int guestfs_tar_in (guestfs_h *g,\n"
13235 "\t\tconst char *tarfile,\n"
13236 "\t\tconst char *directory);\n"
13237 "\n"
13238 msgstr ""
13239
13240 # type: textblock
13241 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3922
13242 msgid ""
13243 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13244 "tar file) into C<directory>."
13245 msgstr ""
13246
13247 # type: textblock
13248 #: ../src/guestfs-actions.pod:5071
13249 msgid ""
13250 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13251 msgstr ""
13252
13253 # type: =head2
13254 #: ../src/guestfs-actions.pod:5076
13255 msgid "guestfs_tar_out"
13256 msgstr ""
13257
13258 # type: verbatim
13259 #: ../src/guestfs-actions.pod:5078
13260 #, no-wrap
13261 msgid ""
13262 " int guestfs_tar_out (guestfs_h *g,\n"
13263 "\t\tconst char *directory,\n"
13264 "\t\tconst char *tarfile);\n"
13265 "\n"
13266 msgstr ""
13267
13268 # type: textblock
13269 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3934
13270 msgid ""
13271 "This command packs the contents of C<directory> and downloads it to local "
13272 "file C<tarfile>."
13273 msgstr ""
13274
13275 # type: textblock
13276 #: ../src/guestfs-actions.pod:5085
13277 msgid ""
13278 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13279 "C<guestfs_txz_out>."
13280 msgstr ""
13281
13282 # type: =head2
13283 #: ../src/guestfs-actions.pod:5090
13284 msgid "guestfs_tgz_in"
13285 msgstr ""
13286
13287 # type: verbatim
13288 #: ../src/guestfs-actions.pod:5092
13289 #, no-wrap
13290 msgid ""
13291 " int guestfs_tgz_in (guestfs_h *g,\n"
13292 "\t\tconst char *tarball,\n"
13293 "\t\tconst char *directory);\n"
13294 "\n"
13295 msgstr ""
13296
13297 # type: textblock
13298 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3946
13299 msgid ""
13300 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13301 "tar file) into C<directory>."
13302 msgstr ""
13303
13304 # type: textblock
13305 #: ../src/guestfs-actions.pod:5099
13306 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13307 msgstr ""
13308
13309 # type: =head2
13310 #: ../src/guestfs-actions.pod:5103
13311 msgid "guestfs_tgz_out"
13312 msgstr ""
13313
13314 # type: verbatim
13315 #: ../src/guestfs-actions.pod:5105
13316 #, no-wrap
13317 msgid ""
13318 " int guestfs_tgz_out (guestfs_h *g,\n"
13319 "\t\tconst char *directory,\n"
13320 "\t\tconst char *tarball);\n"
13321 "\n"
13322 msgstr ""
13323
13324 # type: textblock
13325 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3957
13326 msgid ""
13327 "This command packs the contents of C<directory> and downloads it to local "
13328 "file C<tarball>."
13329 msgstr ""
13330
13331 # type: textblock
13332 #: ../src/guestfs-actions.pod:5112
13333 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13334 msgstr ""
13335
13336 # type: =head2
13337 #: ../src/guestfs-actions.pod:5116
13338 msgid "guestfs_touch"
13339 msgstr ""
13340
13341 # type: verbatim
13342 #: ../src/guestfs-actions.pod:5118
13343 #, no-wrap
13344 msgid ""
13345 " int guestfs_touch (guestfs_h *g,\n"
13346 "\t\tconst char *path);\n"
13347 "\n"
13348 msgstr ""
13349
13350 # type: textblock
13351 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3968
13352 msgid ""
13353 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13354 "timestamps on a file, or, if the file does not exist, to create a new zero-"
13355 "length file."
13356 msgstr ""
13357
13358 # type: textblock
13359 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3972
13360 msgid ""
13361 "This command only works on regular files, and will fail on other file types "
13362 "such as directories, symbolic links, block special etc."
13363 msgstr ""
13364
13365 # type: =head2
13366 #: ../src/guestfs-actions.pod:5130
13367 msgid "guestfs_truncate"
13368 msgstr ""
13369
13370 # type: verbatim
13371 #: ../src/guestfs-actions.pod:5132
13372 #, no-wrap
13373 msgid ""
13374 " int guestfs_truncate (guestfs_h *g,\n"
13375 "\t\tconst char *path);\n"
13376 "\n"
13377 msgstr ""
13378
13379 # type: textblock
13380 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3979
13381 msgid ""
13382 "This command truncates C<path> to a zero-length file.  The file must exist "
13383 "already."
13384 msgstr ""
13385
13386 # type: =head2
13387 #: ../src/guestfs-actions.pod:5140
13388 msgid "guestfs_truncate_size"
13389 msgstr ""
13390
13391 # type: verbatim
13392 #: ../src/guestfs-actions.pod:5142
13393 #, no-wrap
13394 msgid ""
13395 " int guestfs_truncate_size (guestfs_h *g,\n"
13396 "\t\tconst char *path,\n"
13397 "\t\tint64_t size);\n"
13398 "\n"
13399 msgstr ""
13400
13401 # type: textblock
13402 #: ../src/guestfs-actions.pod:5146 ../fish/guestfish-actions.pod:3986
13403 msgid ""
13404 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13405 "already."
13406 msgstr ""
13407
13408 # type: textblock
13409 #: ../src/guestfs-actions.pod:5149
13410 msgid ""
13411 "If the current file size is less than C<size> then the file is extended to "
13412 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13413 "blocks are not allocated for the file until you write to it).  To create a "
13414 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13415 msgstr ""
13416
13417 # type: =head2
13418 #: ../src/guestfs-actions.pod:5157
13419 msgid "guestfs_tune2fs_l"
13420 msgstr ""
13421
13422 # type: verbatim
13423 #: ../src/guestfs-actions.pod:5159
13424 #, no-wrap
13425 msgid ""
13426 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
13427 "\t\tconst char *device);\n"
13428 "\n"
13429 msgstr ""
13430
13431 # type: textblock
13432 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:3999
13433 msgid ""
13434 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13435 "C<device>."
13436 msgstr ""
13437
13438 # type: textblock
13439 #: ../src/guestfs-actions.pod:5165 ../fish/guestfish-actions.pod:4002
13440 msgid ""
13441 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13442 "for more details.  The list of fields returned isn't clearly defined, and "
13443 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13444 "and the filesystem itself."
13445 msgstr ""
13446
13447 # type: =head2
13448 #: ../src/guestfs-actions.pod:5176
13449 msgid "guestfs_txz_in"
13450 msgstr ""
13451
13452 # type: verbatim
13453 #: ../src/guestfs-actions.pod:5178
13454 #, no-wrap
13455 msgid ""
13456 " int guestfs_txz_in (guestfs_h *g,\n"
13457 "\t\tconst char *tarball,\n"
13458 "\t\tconst char *directory);\n"
13459 "\n"
13460 msgstr ""
13461
13462 # type: textblock
13463 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:4011
13464 msgid ""
13465 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13466 "tar file) into C<directory>."
13467 msgstr ""
13468
13469 # type: =head2
13470 #: ../src/guestfs-actions.pod:5187
13471 msgid "guestfs_txz_out"
13472 msgstr ""
13473
13474 # type: verbatim
13475 #: ../src/guestfs-actions.pod:5189
13476 #, no-wrap
13477 msgid ""
13478 " int guestfs_txz_out (guestfs_h *g,\n"
13479 "\t\tconst char *directory,\n"
13480 "\t\tconst char *tarball);\n"
13481 "\n"
13482 msgstr ""
13483
13484 # type: textblock
13485 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:4020
13486 msgid ""
13487 "This command packs the contents of C<directory> and downloads it to local "
13488 "file C<tarball> (as an xz compressed tar archive)."
13489 msgstr ""
13490
13491 # type: =head2
13492 #: ../src/guestfs-actions.pod:5198
13493 msgid "guestfs_umask"
13494 msgstr ""
13495
13496 # type: verbatim
13497 #: ../src/guestfs-actions.pod:5200
13498 #, no-wrap
13499 msgid ""
13500 " int guestfs_umask (guestfs_h *g,\n"
13501 "\t\tint mask);\n"
13502 "\n"
13503 msgstr ""
13504
13505 # type: textblock
13506 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:4029
13507 msgid ""
13508 "This function sets the mask used for creating new files and device nodes to "
13509 "C<mask & 0777>."
13510 msgstr ""
13511
13512 # type: textblock
13513 #: ../src/guestfs-actions.pod:5206 ../fish/guestfish-actions.pod:4032
13514 msgid ""
13515 "Typical umask values would be C<022> which creates new files with "
13516 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13517 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13518 msgstr ""
13519
13520 # type: textblock
13521 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:4037
13522 msgid ""
13523 "The default umask is C<022>.  This is important because it means that "
13524 "directories and device nodes will be created with C<0644> or C<0755> mode "
13525 "even if you specify C<0777>."
13526 msgstr ""
13527
13528 # type: textblock
13529 #: ../src/guestfs-actions.pod:5215
13530 msgid ""
13531 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13532 "C<guestfs_mkdir>."
13533 msgstr ""
13534
13535 # type: textblock
13536 #: ../src/guestfs-actions.pod:5218 ../fish/guestfish-actions.pod:4044
13537 msgid "This call returns the previous umask."
13538 msgstr ""
13539
13540 # type: =head2
13541 #: ../src/guestfs-actions.pod:5222
13542 msgid "guestfs_umount"
13543 msgstr ""
13544
13545 # type: verbatim
13546 #: ../src/guestfs-actions.pod:5224
13547 #, no-wrap
13548 msgid ""
13549 " int guestfs_umount (guestfs_h *g,\n"
13550 "\t\tconst char *pathordevice);\n"
13551 "\n"
13552 msgstr ""
13553
13554 # type: textblock
13555 #: ../src/guestfs-actions.pod:5227 ../fish/guestfish-actions.pod:4052
13556 msgid ""
13557 "This unmounts the given filesystem.  The filesystem may be specified either "
13558 "by its mountpoint (path) or the device which contains the filesystem."
13559 msgstr ""
13560
13561 # type: =head2
13562 #: ../src/guestfs-actions.pod:5233
13563 msgid "guestfs_umount_all"
13564 msgstr ""
13565
13566 # type: verbatim
13567 #: ../src/guestfs-actions.pod:5235
13568 #, no-wrap
13569 msgid ""
13570 " int guestfs_umount_all (guestfs_h *g);\n"
13571 "\n"
13572 msgstr ""
13573
13574 # type: textblock
13575 #: ../src/guestfs-actions.pod:5237 ../fish/guestfish-actions.pod:4062
13576 msgid "This unmounts all mounted filesystems."
13577 msgstr ""
13578
13579 # type: textblock
13580 #: ../src/guestfs-actions.pod:5239 ../fish/guestfish-actions.pod:4064
13581 msgid "Some internal mounts are not unmounted by this call."
13582 msgstr ""
13583
13584 # type: =head2
13585 #: ../src/guestfs-actions.pod:5243
13586 msgid "guestfs_upload"
13587 msgstr ""
13588
13589 # type: verbatim
13590 #: ../src/guestfs-actions.pod:5245
13591 #, no-wrap
13592 msgid ""
13593 " int guestfs_upload (guestfs_h *g,\n"
13594 "\t\tconst char *filename,\n"
13595 "\t\tconst char *remotefilename);\n"
13596 "\n"
13597 msgstr ""
13598
13599 # type: textblock
13600 #: ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5265
13601 #: ../fish/guestfish-actions.pod:4070 ../fish/guestfish-actions.pod:4083
13602 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13603 msgstr ""
13604
13605 # type: textblock
13606 #: ../src/guestfs-actions.pod:5254
13607 msgid "See also C<guestfs_download>."
13608 msgstr ""
13609
13610 # type: =head2
13611 #: ../src/guestfs-actions.pod:5258
13612 msgid "guestfs_upload_offset"
13613 msgstr ""
13614
13615 # type: verbatim
13616 #: ../src/guestfs-actions.pod:5260
13617 #, no-wrap
13618 msgid ""
13619 " int guestfs_upload_offset (guestfs_h *g,\n"
13620 "\t\tconst char *filename,\n"
13621 "\t\tconst char *remotefilename,\n"
13622 "\t\tint64_t offset);\n"
13623 "\n"
13624 msgstr ""
13625
13626 # type: textblock
13627 #: ../src/guestfs-actions.pod:5268 ../fish/guestfish-actions.pod:4086
13628 msgid ""
13629 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13630 "The intention is to overwrite parts of existing files or devices, although "
13631 "if a non-existant file is specified then it is created with a \"hole\" "
13632 "before C<offset>.  The size of the data written is implicit in the size of "
13633 "the source C<filename>."
13634 msgstr ""
13635
13636 # type: textblock
13637 #: ../src/guestfs-actions.pod:5275
13638 msgid ""
13639 "Note that there is no limit on the amount of data that can be uploaded with "
13640 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13641 "full amount unless an error occurs."
13642 msgstr ""
13643
13644 # type: textblock
13645 #: ../src/guestfs-actions.pod:5280
13646 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13647 msgstr ""
13648
13649 # type: =head2
13650 #: ../src/guestfs-actions.pod:5284
13651 msgid "guestfs_utimens"
13652 msgstr ""
13653
13654 # type: verbatim
13655 #: ../src/guestfs-actions.pod:5286
13656 #, no-wrap
13657 msgid ""
13658 " int guestfs_utimens (guestfs_h *g,\n"
13659 "\t\tconst char *path,\n"
13660 "\t\tint64_t atsecs,\n"
13661 "\t\tint64_t atnsecs,\n"
13662 "\t\tint64_t mtsecs,\n"
13663 "\t\tint64_t mtnsecs);\n"
13664 "\n"
13665 msgstr ""
13666
13667 # type: textblock
13668 #: ../src/guestfs-actions.pod:5293 ../fish/guestfish-actions.pod:4106
13669 msgid "This command sets the timestamps of a file with nanosecond precision."
13670 msgstr ""
13671
13672 # type: textblock
13673 #: ../src/guestfs-actions.pod:5296 ../fish/guestfish-actions.pod:4109
13674 msgid ""
13675 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13676 "from the epoch."
13677 msgstr ""
13678
13679 # type: textblock
13680 #: ../src/guestfs-actions.pod:5299 ../fish/guestfish-actions.pod:4112
13681 msgid ""
13682 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13683 "nanoseconds from the epoch."
13684 msgstr ""
13685
13686 # type: textblock
13687 #: ../src/guestfs-actions.pod:5302 ../fish/guestfish-actions.pod:4115
13688 msgid ""
13689 "If the C<*nsecs> field contains the special value C<-1> then the "
13690 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13691 "ignored in this case)."
13692 msgstr ""
13693
13694 # type: textblock
13695 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:4119
13696 msgid ""
13697 "If the C<*nsecs> field contains the special value C<-2> then the "
13698 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13699 "in this case)."
13700 msgstr ""
13701
13702 # type: =head2
13703 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-structs.pod:175
13704 msgid "guestfs_version"
13705 msgstr ""
13706
13707 # type: verbatim
13708 #: ../src/guestfs-actions.pod:5314
13709 #, no-wrap
13710 msgid ""
13711 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
13712 "\n"
13713 msgstr ""
13714
13715 # type: textblock
13716 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:4127
13717 msgid ""
13718 "Return the libguestfs version number that the program is linked against."
13719 msgstr ""
13720
13721 # type: textblock
13722 #: ../src/guestfs-actions.pod:5319 ../fish/guestfish-actions.pod:4130
13723 msgid ""
13724 "Note that because of dynamic linking this is not necessarily the version of "
13725 "libguestfs that you compiled against.  You can compile the program, and then "
13726 "at runtime dynamically link against a completely different C<libguestfs.so> "
13727 "library."
13728 msgstr ""
13729
13730 # type: textblock
13731 #: ../src/guestfs-actions.pod:5324 ../fish/guestfish-actions.pod:4135
13732 msgid ""
13733 "This call was added in version C<1.0.58>.  In previous versions of "
13734 "libguestfs there was no way to get the version number.  From C code you can "
13735 "use dynamic linker functions to find out if this symbol exists (if it "
13736 "doesn't, then it's an earlier version)."
13737 msgstr ""
13738
13739 # type: textblock
13740 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:4141
13741 msgid ""
13742 "The call returns a structure with four elements.  The first three (C<major>, "
13743 "C<minor> and C<release>) are numbers and correspond to the usual version "
13744 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13745 "but may be used for distro-specific information."
13746 msgstr ""
13747
13748 # type: textblock
13749 #: ../src/guestfs-actions.pod:5336 ../fish/guestfish-actions.pod:4147
13750 msgid ""
13751 "To construct the original version string: C<$major.$minor.$release$extra>"
13752 msgstr ""
13753
13754 # type: textblock
13755 #: ../src/guestfs-actions.pod:5339 ../fish/guestfish-actions.pod:4150
13756 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13757 msgstr ""
13758
13759 # type: textblock
13760 #: ../src/guestfs-actions.pod:5341
13761 msgid ""
13762 "I<Note:> Don't use this call to test for availability of features.  In "
13763 "enterprise distributions we backport features from later versions into "
13764 "earlier versions, making this an unreliable way to test for features.  Use "
13765 "C<guestfs_available> instead."
13766 msgstr ""
13767
13768 # type: textblock
13769 #: ../src/guestfs-actions.pod:5347
13770 msgid ""
13771 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13772 "error.  I<The caller must call C<guestfs_free_version> after use>."
13773 msgstr ""
13774
13775 # type: =head2
13776 #: ../src/guestfs-actions.pod:5351
13777 msgid "guestfs_vfs_label"
13778 msgstr ""
13779
13780 # type: verbatim
13781 #: ../src/guestfs-actions.pod:5353
13782 #, no-wrap
13783 msgid ""
13784 " char *guestfs_vfs_label (guestfs_h *g,\n"
13785 "\t\tconst char *device);\n"
13786 "\n"
13787 msgstr ""
13788
13789 # type: textblock
13790 #: ../src/guestfs-actions.pod:5356 ../fish/guestfish-actions.pod:4162
13791 msgid "This returns the filesystem label of the filesystem on C<device>."
13792 msgstr ""
13793
13794 # type: textblock
13795 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:4165
13796 msgid "If the filesystem is unlabeled, this returns the empty string."
13797 msgstr ""
13798
13799 # type: textblock
13800 #: ../src/guestfs-actions.pod:5361
13801 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13802 msgstr ""
13803
13804 # type: =head2
13805 #: ../src/guestfs-actions.pod:5366
13806 msgid "guestfs_vfs_type"
13807 msgstr ""
13808
13809 # type: verbatim
13810 #: ../src/guestfs-actions.pod:5368
13811 #, no-wrap
13812 msgid ""
13813 " char *guestfs_vfs_type (guestfs_h *g,\n"
13814 "\t\tconst char *device);\n"
13815 "\n"
13816 msgstr ""
13817
13818 # type: textblock
13819 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:4173
13820 msgid ""
13821 "This command gets the filesystem type corresponding to the filesystem on "
13822 "C<device>."
13823 msgstr ""
13824
13825 # type: textblock
13826 #: ../src/guestfs-actions.pod:5374 ../fish/guestfish-actions.pod:4176
13827 msgid ""
13828 "For most filesystems, the result is the name of the Linux VFS module which "
13829 "would be used to mount this filesystem if you mounted it without specifying "
13830 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13831 msgstr ""
13832
13833 # type: =head2
13834 #: ../src/guestfs-actions.pod:5382
13835 msgid "guestfs_vfs_uuid"
13836 msgstr ""
13837
13838 # type: verbatim
13839 #: ../src/guestfs-actions.pod:5384
13840 #, no-wrap
13841 msgid ""
13842 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13843 "\t\tconst char *device);\n"
13844 "\n"
13845 msgstr ""
13846
13847 # type: textblock
13848 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:4185
13849 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13850 msgstr ""
13851
13852 # type: textblock
13853 #: ../src/guestfs-actions.pod:5390 ../fish/guestfish-actions.pod:4188
13854 msgid "If the filesystem does not have a UUID, this returns the empty string."
13855 msgstr ""
13856
13857 # type: textblock
13858 #: ../src/guestfs-actions.pod:5392
13859 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13860 msgstr ""
13861
13862 # type: =head2
13863 #: ../src/guestfs-actions.pod:5397
13864 msgid "guestfs_vg_activate"
13865 msgstr ""
13866
13867 # type: verbatim
13868 #: ../src/guestfs-actions.pod:5399
13869 #, no-wrap
13870 msgid ""
13871 " int guestfs_vg_activate (guestfs_h *g,\n"
13872 "\t\tint activate,\n"
13873 "\t\tchar *const *volgroups);\n"
13874 "\n"
13875 msgstr ""
13876
13877 # type: textblock
13878 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:4196
13879 msgid ""
13880 "This command activates or (if C<activate> is false) deactivates all logical "
13881 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13882 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13883 "deactivated, then those devices disappear."
13884 msgstr ""
13885
13886 # type: textblock
13887 #: ../src/guestfs-actions.pod:5409 ../fish/guestfish-actions.pod:4202
13888 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13889 msgstr ""
13890
13891 # type: textblock
13892 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:4204
13893 msgid ""
13894 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13895 "activated or deactivated."
13896 msgstr ""
13897
13898 # type: =head2
13899 #: ../src/guestfs-actions.pod:5416
13900 msgid "guestfs_vg_activate_all"
13901 msgstr ""
13902
13903 # type: verbatim
13904 #: ../src/guestfs-actions.pod:5418
13905 #, no-wrap
13906 msgid ""
13907 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13908 "\t\tint activate);\n"
13909 "\n"
13910 msgstr ""
13911
13912 # type: textblock
13913 #: ../src/guestfs-actions.pod:5421 ../fish/guestfish-actions.pod:4211
13914 msgid ""
13915 "This command activates or (if C<activate> is false) deactivates all logical "
13916 "volumes in all volume groups.  If activated, then they are made known to the "
13917 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13918 "those devices disappear."
13919 msgstr ""
13920
13921 # type: textblock
13922 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:4217
13923 msgid "This command is the same as running C<vgchange -a y|n>"
13924 msgstr ""
13925
13926 # type: =head2
13927 #: ../src/guestfs-actions.pod:5431
13928 msgid "guestfs_vgcreate"
13929 msgstr ""
13930
13931 # type: verbatim
13932 #: ../src/guestfs-actions.pod:5433
13933 #, no-wrap
13934 msgid ""
13935 " int guestfs_vgcreate (guestfs_h *g,\n"
13936 "\t\tconst char *volgroup,\n"
13937 "\t\tchar *const *physvols);\n"
13938 "\n"
13939 msgstr ""
13940
13941 # type: textblock
13942 #: ../src/guestfs-actions.pod:5437 ../fish/guestfish-actions.pod:4223
13943 msgid ""
13944 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13945 "of physical volumes C<physvols>."
13946 msgstr ""
13947
13948 # type: =head2
13949 #: ../src/guestfs-actions.pod:5442
13950 msgid "guestfs_vglvuuids"
13951 msgstr ""
13952
13953 # type: verbatim
13954 #: ../src/guestfs-actions.pod:5444
13955 #, no-wrap
13956 msgid ""
13957 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13958 "\t\tconst char *vgname);\n"
13959 "\n"
13960 msgstr ""
13961
13962 # type: textblock
13963 #: ../src/guestfs-actions.pod:5447 ../fish/guestfish-actions.pod:4230
13964 msgid ""
13965 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13966 "volumes created in this volume group."
13967 msgstr ""
13968
13969 # type: textblock
13970 #: ../src/guestfs-actions.pod:5450
13971 msgid ""
13972 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13973 "associate logical volumes and volume groups."
13974 msgstr ""
13975
13976 # type: textblock
13977 #: ../src/guestfs-actions.pod:5453
13978 msgid "See also C<guestfs_vgpvuuids>."
13979 msgstr ""
13980
13981 # type: =head2
13982 #: ../src/guestfs-actions.pod:5459
13983 msgid "guestfs_vgpvuuids"
13984 msgstr ""
13985
13986 # type: verbatim
13987 #: ../src/guestfs-actions.pod:5461
13988 #, no-wrap
13989 msgid ""
13990 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13991 "\t\tconst char *vgname);\n"
13992 "\n"
13993 msgstr ""
13994
13995 # type: textblock
13996 #: ../src/guestfs-actions.pod:5464 ../fish/guestfish-actions.pod:4242
13997 msgid ""
13998 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13999 "volumes that this volume group resides on."
14000 msgstr ""
14001
14002 # type: textblock
14003 #: ../src/guestfs-actions.pod:5467
14004 msgid ""
14005 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14006 "associate physical volumes and volume groups."
14007 msgstr ""
14008
14009 # type: textblock
14010 #: ../src/guestfs-actions.pod:5470
14011 msgid "See also C<guestfs_vglvuuids>."
14012 msgstr ""
14013
14014 # type: =head2
14015 #: ../src/guestfs-actions.pod:5476
14016 msgid "guestfs_vgremove"
14017 msgstr ""
14018
14019 # type: verbatim
14020 #: ../src/guestfs-actions.pod:5478
14021 #, no-wrap
14022 msgid ""
14023 " int guestfs_vgremove (guestfs_h *g,\n"
14024 "\t\tconst char *vgname);\n"
14025 "\n"
14026 msgstr ""
14027
14028 # type: textblock
14029 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:4254
14030 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14031 msgstr ""
14032
14033 # type: textblock
14034 #: ../src/guestfs-actions.pod:5483 ../fish/guestfish-actions.pod:4256
14035 msgid ""
14036 "This also forcibly removes all logical volumes in the volume group (if any)."
14037 msgstr ""
14038
14039 # type: =head2
14040 #: ../src/guestfs-actions.pod:5488
14041 msgid "guestfs_vgrename"
14042 msgstr ""
14043
14044 # type: verbatim
14045 #: ../src/guestfs-actions.pod:5490
14046 #, no-wrap
14047 msgid ""
14048 " int guestfs_vgrename (guestfs_h *g,\n"
14049 "\t\tconst char *volgroup,\n"
14050 "\t\tconst char *newvolgroup);\n"
14051 "\n"
14052 msgstr ""
14053
14054 # type: textblock
14055 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:4263
14056 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14057 msgstr ""
14058
14059 # type: =head2
14060 #: ../src/guestfs-actions.pod:5498
14061 msgid "guestfs_vgs"
14062 msgstr ""
14063
14064 # type: verbatim
14065 #: ../src/guestfs-actions.pod:5500
14066 #, no-wrap
14067 msgid ""
14068 " char **guestfs_vgs (guestfs_h *g);\n"
14069 "\n"
14070 msgstr ""
14071
14072 # type: textblock
14073 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:4269
14074 msgid ""
14075 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14076 "> command."
14077 msgstr ""
14078
14079 # type: textblock
14080 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:4272
14081 msgid ""
14082 "This returns a list of just the volume group names that were detected (eg. "
14083 "C<VolGroup00>)."
14084 msgstr ""
14085
14086 # type: textblock
14087 #: ../src/guestfs-actions.pod:5508
14088 msgid "See also C<guestfs_vgs_full>."
14089 msgstr ""
14090
14091 # type: =head2
14092 #: ../src/guestfs-actions.pod:5514
14093 msgid "guestfs_vgs_full"
14094 msgstr ""
14095
14096 # type: verbatim
14097 #: ../src/guestfs-actions.pod:5516
14098 #, no-wrap
14099 msgid ""
14100 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
14101 "\n"
14102 msgstr ""
14103
14104 # type: textblock
14105 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:4281
14106 msgid ""
14107 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14108 "> command.  The \"full\" version includes all fields."
14109 msgstr ""
14110
14111 # type: textblock
14112 #: ../src/guestfs-actions.pod:5521
14113 msgid ""
14114 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
14115 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
14116 "C<guestfs_free_lvm_vg_list> after use>."
14117 msgstr ""
14118
14119 # type: =head2
14120 #: ../src/guestfs-actions.pod:5526
14121 msgid "guestfs_vgscan"
14122 msgstr ""
14123
14124 # type: verbatim
14125 #: ../src/guestfs-actions.pod:5528
14126 #, no-wrap
14127 msgid ""
14128 " int guestfs_vgscan (guestfs_h *g);\n"
14129 "\n"
14130 msgstr ""
14131
14132 # type: textblock
14133 #: ../src/guestfs-actions.pod:5530 ../fish/guestfish-actions.pod:4288
14134 msgid ""
14135 "This rescans all block devices and rebuilds the list of LVM physical "
14136 "volumes, volume groups and logical volumes."
14137 msgstr ""
14138
14139 # type: =head2
14140 #: ../src/guestfs-actions.pod:5535
14141 msgid "guestfs_vguuid"
14142 msgstr ""
14143
14144 # type: verbatim
14145 #: ../src/guestfs-actions.pod:5537
14146 #, no-wrap
14147 msgid ""
14148 " char *guestfs_vguuid (guestfs_h *g,\n"
14149 "\t\tconst char *vgname);\n"
14150 "\n"
14151 msgstr ""
14152
14153 # type: textblock
14154 #: ../src/guestfs-actions.pod:5540 ../fish/guestfish-actions.pod:4295
14155 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14156 msgstr ""
14157
14158 # type: =head2
14159 #: ../src/guestfs-actions.pod:5545
14160 msgid "guestfs_wait_ready"
14161 msgstr ""
14162
14163 # type: verbatim
14164 #: ../src/guestfs-actions.pod:5547
14165 #, no-wrap
14166 msgid ""
14167 " int guestfs_wait_ready (guestfs_h *g);\n"
14168 "\n"
14169 msgstr ""
14170
14171 # type: textblock
14172 #: ../src/guestfs-actions.pod:5549
14173 msgid "This function is a no op."
14174 msgstr ""
14175
14176 # type: textblock
14177 #: ../src/guestfs-actions.pod:5551
14178 msgid ""
14179 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14180 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14181 "is no longer necessary because C<guestfs_launch> now does the waiting."
14182 msgstr ""
14183
14184 # type: textblock
14185 #: ../src/guestfs-actions.pod:5556
14186 msgid ""
14187 "If you see any calls to this function in code then you can just remove them, "
14188 "unless you want to retain compatibility with older versions of the API."
14189 msgstr ""
14190
14191 # type: =head2
14192 #: ../src/guestfs-actions.pod:5562
14193 msgid "guestfs_wc_c"
14194 msgstr ""
14195
14196 # type: verbatim
14197 #: ../src/guestfs-actions.pod:5564
14198 #, no-wrap
14199 msgid ""
14200 " int guestfs_wc_c (guestfs_h *g,\n"
14201 "\t\tconst char *path);\n"
14202 "\n"
14203 msgstr ""
14204
14205 # type: textblock
14206 #: ../src/guestfs-actions.pod:5567 ../fish/guestfish-actions.pod:4301
14207 msgid ""
14208 "This command counts the characters in a file, using the C<wc -c> external "
14209 "command."
14210 msgstr ""
14211
14212 # type: =head2
14213 #: ../src/guestfs-actions.pod:5572
14214 msgid "guestfs_wc_l"
14215 msgstr ""
14216
14217 # type: verbatim
14218 #: ../src/guestfs-actions.pod:5574
14219 #, no-wrap
14220 msgid ""
14221 " int guestfs_wc_l (guestfs_h *g,\n"
14222 "\t\tconst char *path);\n"
14223 "\n"
14224 msgstr ""
14225
14226 # type: textblock
14227 #: ../src/guestfs-actions.pod:5577 ../fish/guestfish-actions.pod:4308
14228 msgid ""
14229 "This command counts the lines in a file, using the C<wc -l> external command."
14230 msgstr ""
14231
14232 # type: =head2
14233 #: ../src/guestfs-actions.pod:5582
14234 msgid "guestfs_wc_w"
14235 msgstr ""
14236
14237 # type: verbatim
14238 #: ../src/guestfs-actions.pod:5584
14239 #, no-wrap
14240 msgid ""
14241 " int guestfs_wc_w (guestfs_h *g,\n"
14242 "\t\tconst char *path);\n"
14243 "\n"
14244 msgstr ""
14245
14246 # type: textblock
14247 #: ../src/guestfs-actions.pod:5587 ../fish/guestfish-actions.pod:4315
14248 msgid ""
14249 "This command counts the words in a file, using the C<wc -w> external command."
14250 msgstr ""
14251
14252 # type: =head2
14253 #: ../src/guestfs-actions.pod:5592
14254 msgid "guestfs_write"
14255 msgstr ""
14256
14257 # type: verbatim
14258 #: ../src/guestfs-actions.pod:5594
14259 #, no-wrap
14260 msgid ""
14261 " int guestfs_write (guestfs_h *g,\n"
14262 "\t\tconst char *path,\n"
14263 "\t\tconst char *content,\n"
14264 "\t\tsize_t content_size);\n"
14265 "\n"
14266 msgstr ""
14267
14268 # type: textblock
14269 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:4322
14270 msgid ""
14271 "This call creates a file called C<path>.  The content of the file is the "
14272 "string C<content> (which can contain any 8 bit data)."
14273 msgstr ""
14274
14275 # type: =head2
14276 #: ../src/guestfs-actions.pod:5607
14277 msgid "guestfs_write_file"
14278 msgstr ""
14279
14280 # type: verbatim
14281 #: ../src/guestfs-actions.pod:5609
14282 #, no-wrap
14283 msgid ""
14284 " int guestfs_write_file (guestfs_h *g,\n"
14285 "\t\tconst char *path,\n"
14286 "\t\tconst char *content,\n"
14287 "\t\tint size);\n"
14288 "\n"
14289 msgstr ""
14290
14291 # type: textblock
14292 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:4332
14293 msgid ""
14294 "This call creates a file called C<path>.  The contents of the file is the "
14295 "string C<content> (which can contain any 8 bit data), with length C<size>."
14296 msgstr ""
14297
14298 # type: textblock
14299 #: ../src/guestfs-actions.pod:5618 ../fish/guestfish-actions.pod:4336
14300 msgid ""
14301 "As a special case, if C<size> is C<0> then the length is calculated using "
14302 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14303 msgstr ""
14304
14305 # type: textblock
14306 #: ../src/guestfs-actions.pod:5622 ../fish/guestfish-actions.pod:4340
14307 msgid ""
14308 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14309 "I<not> work, even if the length is specified."
14310 msgstr ""
14311
14312 # type: textblock
14313 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:4346
14314 msgid ""
14315 "This function is deprecated.  In new code, use the C<write> call instead."
14316 msgstr ""
14317
14318 # type: =head2
14319 #: ../src/guestfs-actions.pod:5637
14320 msgid "guestfs_zegrep"
14321 msgstr ""
14322
14323 # type: verbatim
14324 #: ../src/guestfs-actions.pod:5639
14325 #, no-wrap
14326 msgid ""
14327 " char **guestfs_zegrep (guestfs_h *g,\n"
14328 "\t\tconst char *regex,\n"
14329 "\t\tconst char *path);\n"
14330 "\n"
14331 msgstr ""
14332
14333 # type: textblock
14334 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:4357
14335 msgid ""
14336 "This calls the external C<zegrep> program and returns the matching lines."
14337 msgstr ""
14338
14339 # type: =head2
14340 #: ../src/guestfs-actions.pod:5653
14341 msgid "guestfs_zegrepi"
14342 msgstr ""
14343
14344 # type: verbatim
14345 #: ../src/guestfs-actions.pod:5655
14346 #, no-wrap
14347 msgid ""
14348 " char **guestfs_zegrepi (guestfs_h *g,\n"
14349 "\t\tconst char *regex,\n"
14350 "\t\tconst char *path);\n"
14351 "\n"
14352 msgstr ""
14353
14354 # type: textblock
14355 #: ../src/guestfs-actions.pod:5659 ../fish/guestfish-actions.pod:4367
14356 msgid ""
14357 "This calls the external C<zegrep -i> program and returns the matching lines."
14358 msgstr ""
14359
14360 # type: =head2
14361 #: ../src/guestfs-actions.pod:5669
14362 msgid "guestfs_zero"
14363 msgstr ""
14364
14365 # type: verbatim
14366 #: ../src/guestfs-actions.pod:5671
14367 #, no-wrap
14368 msgid ""
14369 " int guestfs_zero (guestfs_h *g,\n"
14370 "\t\tconst char *device);\n"
14371 "\n"
14372 msgstr ""
14373
14374 # type: textblock
14375 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:4377
14376 msgid "This command writes zeroes over the first few blocks of C<device>."
14377 msgstr ""
14378
14379 # type: textblock
14380 #: ../src/guestfs-actions.pod:5676 ../fish/guestfish-actions.pod:4379
14381 msgid ""
14382 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14383 "securely wipe the device).  It should be sufficient to remove any partition "
14384 "tables, filesystem superblocks and so on."
14385 msgstr ""
14386
14387 # type: textblock
14388 #: ../src/guestfs-actions.pod:5680
14389 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14390 msgstr ""
14391
14392 # type: =head2
14393 #: ../src/guestfs-actions.pod:5689
14394 msgid "guestfs_zero_device"
14395 msgstr ""
14396
14397 # type: verbatim
14398 #: ../src/guestfs-actions.pod:5691
14399 #, no-wrap
14400 msgid ""
14401 " int guestfs_zero_device (guestfs_h *g,\n"
14402 "\t\tconst char *device);\n"
14403 "\n"
14404 msgstr ""
14405
14406 # type: textblock
14407 #: ../src/guestfs-actions.pod:5694
14408 msgid ""
14409 "This command writes zeroes over the entire C<device>.  Compare with "
14410 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14411 msgstr ""
14412
14413 # type: =head2
14414 #: ../src/guestfs-actions.pod:5708
14415 msgid "guestfs_zerofree"
14416 msgstr ""
14417
14418 # type: verbatim
14419 #: ../src/guestfs-actions.pod:5710
14420 #, no-wrap
14421 msgid ""
14422 " int guestfs_zerofree (guestfs_h *g,\n"
14423 "\t\tconst char *device);\n"
14424 "\n"
14425 msgstr ""
14426
14427 # type: textblock
14428 #: ../src/guestfs-actions.pod:5713 ../fish/guestfish-actions.pod:4400
14429 msgid ""
14430 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14431 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14432 "possible to compress the filesystem more effectively."
14433 msgstr ""
14434
14435 # type: textblock
14436 #: ../src/guestfs-actions.pod:5718 ../fish/guestfish-actions.pod:4405
14437 msgid "You should B<not> run this program if the filesystem is mounted."
14438 msgstr ""
14439
14440 # type: textblock
14441 #: ../src/guestfs-actions.pod:5721 ../fish/guestfish-actions.pod:4408
14442 msgid ""
14443 "It is possible that using this program can damage the filesystem or data on "
14444 "the filesystem."
14445 msgstr ""
14446
14447 # type: =head2
14448 #: ../src/guestfs-actions.pod:5726
14449 msgid "guestfs_zfgrep"
14450 msgstr ""
14451
14452 # type: verbatim
14453 #: ../src/guestfs-actions.pod:5728
14454 #, no-wrap
14455 msgid ""
14456 " char **guestfs_zfgrep (guestfs_h *g,\n"
14457 "\t\tconst char *pattern,\n"
14458 "\t\tconst char *path);\n"
14459 "\n"
14460 msgstr ""
14461
14462 # type: textblock
14463 #: ../src/guestfs-actions.pod:5732 ../fish/guestfish-actions.pod:4415
14464 msgid ""
14465 "This calls the external C<zfgrep> program and returns the matching lines."
14466 msgstr ""
14467
14468 # type: =head2
14469 #: ../src/guestfs-actions.pod:5742
14470 msgid "guestfs_zfgrepi"
14471 msgstr ""
14472
14473 # type: verbatim
14474 #: ../src/guestfs-actions.pod:5744
14475 #, no-wrap
14476 msgid ""
14477 " char **guestfs_zfgrepi (guestfs_h *g,\n"
14478 "\t\tconst char *pattern,\n"
14479 "\t\tconst char *path);\n"
14480 "\n"
14481 msgstr ""
14482
14483 # type: textblock
14484 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:4425
14485 msgid ""
14486 "This calls the external C<zfgrep -i> program and returns the matching lines."
14487 msgstr ""
14488
14489 # type: =head2
14490 #: ../src/guestfs-actions.pod:5758
14491 msgid "guestfs_zfile"
14492 msgstr ""
14493
14494 # type: verbatim
14495 #: ../src/guestfs-actions.pod:5760
14496 #, no-wrap
14497 msgid ""
14498 " char *guestfs_zfile (guestfs_h *g,\n"
14499 "\t\tconst char *meth,\n"
14500 "\t\tconst char *path);\n"
14501 "\n"
14502 msgstr ""
14503
14504 # type: textblock
14505 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:4435
14506 msgid ""
14507 "This command runs C<file> after first decompressing C<path> using C<method>."
14508 msgstr ""
14509
14510 # type: textblock
14511 #: ../src/guestfs-actions.pod:5767 ../fish/guestfish-actions.pod:4438
14512 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14513 msgstr ""
14514
14515 # type: textblock
14516 #: ../src/guestfs-actions.pod:5769
14517 msgid ""
14518 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14519 "files."
14520 msgstr ""
14521
14522 # type: textblock
14523 #: ../src/guestfs-actions.pod:5775 ../fish/guestfish-actions.pod:4443
14524 msgid ""
14525 "This function is deprecated.  In new code, use the C<file> call instead."
14526 msgstr ""
14527
14528 # type: =head2
14529 #: ../src/guestfs-actions.pod:5782
14530 msgid "guestfs_zgrep"
14531 msgstr ""
14532
14533 # type: verbatim
14534 #: ../src/guestfs-actions.pod:5784
14535 #, no-wrap
14536 msgid ""
14537 " char **guestfs_zgrep (guestfs_h *g,\n"
14538 "\t\tconst char *regex,\n"
14539 "\t\tconst char *path);\n"
14540 "\n"
14541 msgstr ""
14542
14543 # type: textblock
14544 #: ../src/guestfs-actions.pod:5788 ../fish/guestfish-actions.pod:4454
14545 msgid ""
14546 "This calls the external C<zgrep> program and returns the matching lines."
14547 msgstr ""
14548
14549 # type: =head2
14550 #: ../src/guestfs-actions.pod:5798
14551 msgid "guestfs_zgrepi"
14552 msgstr ""
14553
14554 # type: verbatim
14555 #: ../src/guestfs-actions.pod:5800
14556 #, no-wrap
14557 msgid ""
14558 " char **guestfs_zgrepi (guestfs_h *g,\n"
14559 "\t\tconst char *regex,\n"
14560 "\t\tconst char *path);\n"
14561 "\n"
14562 msgstr ""
14563
14564 # type: textblock
14565 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:4464
14566 msgid ""
14567 "This calls the external C<zgrep -i> program and returns the matching lines."
14568 msgstr ""
14569
14570 # type: =item
14571 #: ../src/guestfs-availability.pod:3
14572 msgid "B<augeas>"
14573 msgstr ""
14574
14575 # type: textblock
14576 #: ../src/guestfs-availability.pod:5
14577 msgid ""
14578 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
14579 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
14580 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
14581 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
14582 "L</guestfs_aug_save> L</guestfs_aug_set>"
14583 msgstr ""
14584
14585 # type: =item
14586 #: ../src/guestfs-availability.pod:21
14587 msgid "B<inotify>"
14588 msgstr ""
14589
14590 # type: textblock
14591 #: ../src/guestfs-availability.pod:23
14592 msgid ""
14593 "The following functions: L</guestfs_inotify_add_watch> L</"
14594 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
14595 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14596 msgstr ""
14597
14598 # type: =item
14599 #: ../src/guestfs-availability.pod:31
14600 msgid "B<linuxfsuuid>"
14601 msgstr ""
14602
14603 # type: textblock
14604 #: ../src/guestfs-availability.pod:33
14605 msgid ""
14606 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
14607 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14608 msgstr ""
14609
14610 # type: =item
14611 #: ../src/guestfs-availability.pod:40
14612 msgid "B<linuxmodules>"
14613 msgstr ""
14614
14615 # type: textblock
14616 #: ../src/guestfs-availability.pod:42
14617 msgid "The following functions: L</guestfs_modprobe>"
14618 msgstr ""
14619
14620 # type: =item
14621 #: ../src/guestfs-availability.pod:45
14622 msgid "B<linuxxattrs>"
14623 msgstr ""
14624
14625 # type: textblock
14626 #: ../src/guestfs-availability.pod:47
14627 msgid ""
14628 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
14629 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
14630 "guestfs_removexattr> L</guestfs_setxattr>"
14631 msgstr ""
14632
14633 # type: =item
14634 #: ../src/guestfs-availability.pod:56
14635 msgid "B<luks>"
14636 msgstr ""
14637
14638 # type: textblock
14639 #: ../src/guestfs-availability.pod:58
14640 msgid ""
14641 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
14642 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
14643 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14644 msgstr ""
14645
14646 # type: =item
14647 #: ../src/guestfs-availability.pod:67
14648 msgid "B<lvm2>"
14649 msgstr ""
14650
14651 # type: textblock
14652 #: ../src/guestfs-availability.pod:69
14653 msgid ""
14654 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
14655 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
14656 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
14657 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
14658 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
14659 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
14660 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
14661 msgstr ""
14662
14663 # type: =item
14664 #: ../src/guestfs-availability.pod:92
14665 msgid "B<mknod>"
14666 msgstr ""
14667
14668 # type: textblock
14669 #: ../src/guestfs-availability.pod:94
14670 msgid ""
14671 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
14672 "guestfs_mknod_b> L</guestfs_mknod_c>"
14673 msgstr ""
14674
14675 # type: =item
14676 #: ../src/guestfs-availability.pod:100
14677 msgid "B<ntfs3g>"
14678 msgstr ""
14679
14680 # type: textblock
14681 #: ../src/guestfs-availability.pod:102
14682 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14683 msgstr ""
14684
14685 # type: =item
14686 #: ../src/guestfs-availability.pod:105
14687 msgid "B<ntfsprogs>"
14688 msgstr ""
14689
14690 # type: textblock
14691 #: ../src/guestfs-availability.pod:107
14692 msgid ""
14693 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14694 msgstr ""
14695
14696 # type: =item
14697 #: ../src/guestfs-availability.pod:111
14698 msgid "B<realpath>"
14699 msgstr ""
14700
14701 # type: textblock
14702 #: ../src/guestfs-availability.pod:113
14703 msgid "The following functions: L</guestfs_realpath>"
14704 msgstr ""
14705
14706 # type: =item
14707 #: ../src/guestfs-availability.pod:116
14708 msgid "B<scrub>"
14709 msgstr ""
14710
14711 # type: textblock
14712 #: ../src/guestfs-availability.pod:118
14713 msgid ""
14714 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
14715 "guestfs_scrub_freespace>"
14716 msgstr ""
14717
14718 # type: =item
14719 #: ../src/guestfs-availability.pod:123
14720 msgid "B<selinux>"
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-availability.pod:125
14725 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14726 msgstr ""
14727
14728 # type: =item
14729 #: ../src/guestfs-availability.pod:129
14730 msgid "B<xz>"
14731 msgstr ""
14732
14733 # type: textblock
14734 #: ../src/guestfs-availability.pod:131
14735 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14736 msgstr ""
14737
14738 # type: =item
14739 #: ../src/guestfs-availability.pod:135
14740 msgid "B<zerofree>"
14741 msgstr ""
14742
14743 # type: textblock
14744 #: ../src/guestfs-availability.pod:137
14745 msgid "The following functions: L</guestfs_zerofree>"
14746 msgstr ""
14747
14748 # type: =head2
14749 #: ../src/guestfs-structs.pod:1
14750 msgid "guestfs_int_bool"
14751 msgstr ""
14752
14753 # type: verbatim
14754 #: ../src/guestfs-structs.pod:3
14755 #, no-wrap
14756 msgid ""
14757 " struct guestfs_int_bool {\n"
14758 "   int32_t i;\n"
14759 "   int32_t b;\n"
14760 " };\n"
14761 " \n"
14762 msgstr ""
14763
14764 # type: verbatim
14765 #: ../src/guestfs-structs.pod:8
14766 #, no-wrap
14767 msgid ""
14768 " struct guestfs_int_bool_list {\n"
14769 "   uint32_t len; /* Number of elements in list. */\n"
14770 "   struct guestfs_int_bool *val; /* Elements. */\n"
14771 " };\n"
14772 " \n"
14773 msgstr ""
14774
14775 # type: verbatim
14776 #: ../src/guestfs-structs.pod:13
14777 #, no-wrap
14778 msgid ""
14779 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14780 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14781 "\n"
14782 msgstr ""
14783
14784 # type: =head2
14785 #: ../src/guestfs-structs.pod:16
14786 msgid "guestfs_lvm_pv"
14787 msgstr ""
14788
14789 # type: verbatim
14790 #: ../src/guestfs-structs.pod:18
14791 #, no-wrap
14792 msgid ""
14793 " struct guestfs_lvm_pv {\n"
14794 "   char *pv_name;\n"
14795 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14796 "   char pv_uuid[32];\n"
14797 "   char *pv_fmt;\n"
14798 "   uint64_t pv_size;\n"
14799 "   uint64_t dev_size;\n"
14800 "   uint64_t pv_free;\n"
14801 "   uint64_t pv_used;\n"
14802 "   char *pv_attr;\n"
14803 "   int64_t pv_pe_count;\n"
14804 "   int64_t pv_pe_alloc_count;\n"
14805 "   char *pv_tags;\n"
14806 "   uint64_t pe_start;\n"
14807 "   int64_t pv_mda_count;\n"
14808 "   uint64_t pv_mda_free;\n"
14809 " };\n"
14810 " \n"
14811 msgstr ""
14812
14813 # type: verbatim
14814 #: ../src/guestfs-structs.pod:36
14815 #, no-wrap
14816 msgid ""
14817 " struct guestfs_lvm_pv_list {\n"
14818 "   uint32_t len; /* Number of elements in list. */\n"
14819 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14820 " };\n"
14821 " \n"
14822 msgstr ""
14823
14824 # type: verbatim
14825 #: ../src/guestfs-structs.pod:41
14826 #, no-wrap
14827 msgid ""
14828 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14829 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14830 "\n"
14831 msgstr ""
14832
14833 # type: =head2
14834 #: ../src/guestfs-structs.pod:44
14835 msgid "guestfs_lvm_vg"
14836 msgstr ""
14837
14838 # type: verbatim
14839 #: ../src/guestfs-structs.pod:46
14840 #, no-wrap
14841 msgid ""
14842 " struct guestfs_lvm_vg {\n"
14843 "   char *vg_name;\n"
14844 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14845 "   char vg_uuid[32];\n"
14846 "   char *vg_fmt;\n"
14847 "   char *vg_attr;\n"
14848 "   uint64_t vg_size;\n"
14849 "   uint64_t vg_free;\n"
14850 "   char *vg_sysid;\n"
14851 "   uint64_t vg_extent_size;\n"
14852 "   int64_t vg_extent_count;\n"
14853 "   int64_t vg_free_count;\n"
14854 "   int64_t max_lv;\n"
14855 "   int64_t max_pv;\n"
14856 "   int64_t pv_count;\n"
14857 "   int64_t lv_count;\n"
14858 "   int64_t snap_count;\n"
14859 "   int64_t vg_seqno;\n"
14860 "   char *vg_tags;\n"
14861 "   int64_t vg_mda_count;\n"
14862 "   uint64_t vg_mda_free;\n"
14863 " };\n"
14864 " \n"
14865 msgstr ""
14866
14867 # type: verbatim
14868 #: ../src/guestfs-structs.pod:69
14869 #, no-wrap
14870 msgid ""
14871 " struct guestfs_lvm_vg_list {\n"
14872 "   uint32_t len; /* Number of elements in list. */\n"
14873 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14874 " };\n"
14875 " \n"
14876 msgstr ""
14877
14878 # type: verbatim
14879 #: ../src/guestfs-structs.pod:74
14880 #, no-wrap
14881 msgid ""
14882 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14883 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14884 "\n"
14885 msgstr ""
14886
14887 # type: =head2
14888 #: ../src/guestfs-structs.pod:77
14889 msgid "guestfs_lvm_lv"
14890 msgstr ""
14891
14892 # type: verbatim
14893 #: ../src/guestfs-structs.pod:79
14894 #, no-wrap
14895 msgid ""
14896 " struct guestfs_lvm_lv {\n"
14897 "   char *lv_name;\n"
14898 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14899 "   char lv_uuid[32];\n"
14900 "   char *lv_attr;\n"
14901 "   int64_t lv_major;\n"
14902 "   int64_t lv_minor;\n"
14903 "   int64_t lv_kernel_major;\n"
14904 "   int64_t lv_kernel_minor;\n"
14905 "   uint64_t lv_size;\n"
14906 "   int64_t seg_count;\n"
14907 "   char *origin;\n"
14908 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14909 "   float snap_percent;\n"
14910 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14911 "   float copy_percent;\n"
14912 "   char *move_pv;\n"
14913 "   char *lv_tags;\n"
14914 "   char *mirror_log;\n"
14915 "   char *modules;\n"
14916 " };\n"
14917 " \n"
14918 msgstr ""
14919
14920 # type: verbatim
14921 #: ../src/guestfs-structs.pod:101
14922 #, no-wrap
14923 msgid ""
14924 " struct guestfs_lvm_lv_list {\n"
14925 "   uint32_t len; /* Number of elements in list. */\n"
14926 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14927 " };\n"
14928 " \n"
14929 msgstr ""
14930
14931 # type: verbatim
14932 #: ../src/guestfs-structs.pod:106
14933 #, no-wrap
14934 msgid ""
14935 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14936 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14937 "\n"
14938 msgstr ""
14939
14940 # type: verbatim
14941 #: ../src/guestfs-structs.pod:111
14942 #, no-wrap
14943 msgid ""
14944 " struct guestfs_stat {\n"
14945 "   int64_t dev;\n"
14946 "   int64_t ino;\n"
14947 "   int64_t mode;\n"
14948 "   int64_t nlink;\n"
14949 "   int64_t uid;\n"
14950 "   int64_t gid;\n"
14951 "   int64_t rdev;\n"
14952 "   int64_t size;\n"
14953 "   int64_t blksize;\n"
14954 "   int64_t blocks;\n"
14955 "   int64_t atime;\n"
14956 "   int64_t mtime;\n"
14957 "   int64_t ctime;\n"
14958 " };\n"
14959 " \n"
14960 msgstr ""
14961
14962 # type: verbatim
14963 #: ../src/guestfs-structs.pod:127
14964 #, no-wrap
14965 msgid ""
14966 " struct guestfs_stat_list {\n"
14967 "   uint32_t len; /* Number of elements in list. */\n"
14968 "   struct guestfs_stat *val; /* Elements. */\n"
14969 " };\n"
14970 " \n"
14971 msgstr ""
14972
14973 # type: verbatim
14974 #: ../src/guestfs-structs.pod:132
14975 #, no-wrap
14976 msgid ""
14977 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14978 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14979 "\n"
14980 msgstr ""
14981
14982 # type: verbatim
14983 #: ../src/guestfs-structs.pod:137
14984 #, no-wrap
14985 msgid ""
14986 " struct guestfs_statvfs {\n"
14987 "   int64_t bsize;\n"
14988 "   int64_t frsize;\n"
14989 "   int64_t blocks;\n"
14990 "   int64_t bfree;\n"
14991 "   int64_t bavail;\n"
14992 "   int64_t files;\n"
14993 "   int64_t ffree;\n"
14994 "   int64_t favail;\n"
14995 "   int64_t fsid;\n"
14996 "   int64_t flag;\n"
14997 "   int64_t namemax;\n"
14998 " };\n"
14999 " \n"
15000 msgstr ""
15001
15002 # type: verbatim
15003 #: ../src/guestfs-structs.pod:151
15004 #, no-wrap
15005 msgid ""
15006 " struct guestfs_statvfs_list {\n"
15007 "   uint32_t len; /* Number of elements in list. */\n"
15008 "   struct guestfs_statvfs *val; /* Elements. */\n"
15009 " };\n"
15010 " \n"
15011 msgstr ""
15012
15013 # type: verbatim
15014 #: ../src/guestfs-structs.pod:156
15015 #, no-wrap
15016 msgid ""
15017 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15018 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15019 "\n"
15020 msgstr ""
15021
15022 # type: =head2
15023 #: ../src/guestfs-structs.pod:159
15024 msgid "guestfs_dirent"
15025 msgstr ""
15026
15027 # type: verbatim
15028 #: ../src/guestfs-structs.pod:161
15029 #, no-wrap
15030 msgid ""
15031 " struct guestfs_dirent {\n"
15032 "   int64_t ino;\n"
15033 "   char ftyp;\n"
15034 "   char *name;\n"
15035 " };\n"
15036 " \n"
15037 msgstr ""
15038
15039 # type: verbatim
15040 #: ../src/guestfs-structs.pod:167
15041 #, no-wrap
15042 msgid ""
15043 " struct guestfs_dirent_list {\n"
15044 "   uint32_t len; /* Number of elements in list. */\n"
15045 "   struct guestfs_dirent *val; /* Elements. */\n"
15046 " };\n"
15047 " \n"
15048 msgstr ""
15049
15050 # type: verbatim
15051 #: ../src/guestfs-structs.pod:172
15052 #, no-wrap
15053 msgid ""
15054 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15055 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15056 "\n"
15057 msgstr ""
15058
15059 # type: verbatim
15060 #: ../src/guestfs-structs.pod:177
15061 #, no-wrap
15062 msgid ""
15063 " struct guestfs_version {\n"
15064 "   int64_t major;\n"
15065 "   int64_t minor;\n"
15066 "   int64_t release;\n"
15067 "   char *extra;\n"
15068 " };\n"
15069 " \n"
15070 msgstr ""
15071
15072 # type: verbatim
15073 #: ../src/guestfs-structs.pod:184
15074 #, no-wrap
15075 msgid ""
15076 " struct guestfs_version_list {\n"
15077 "   uint32_t len; /* Number of elements in list. */\n"
15078 "   struct guestfs_version *val; /* Elements. */\n"
15079 " };\n"
15080 " \n"
15081 msgstr ""
15082
15083 # type: verbatim
15084 #: ../src/guestfs-structs.pod:189
15085 #, no-wrap
15086 msgid ""
15087 " void guestfs_free_version (struct guestfs_free_version *);\n"
15088 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15089 "\n"
15090 msgstr ""
15091
15092 # type: =head2
15093 #: ../src/guestfs-structs.pod:192
15094 msgid "guestfs_xattr"
15095 msgstr ""
15096
15097 # type: verbatim
15098 #: ../src/guestfs-structs.pod:194
15099 #, no-wrap
15100 msgid ""
15101 " struct guestfs_xattr {\n"
15102 "   char *attrname;\n"
15103 "   /* The next two fields describe a byte array. */\n"
15104 "   uint32_t attrval_len;\n"
15105 "   char *attrval;\n"
15106 " };\n"
15107 " \n"
15108 msgstr ""
15109
15110 # type: verbatim
15111 #: ../src/guestfs-structs.pod:201
15112 #, no-wrap
15113 msgid ""
15114 " struct guestfs_xattr_list {\n"
15115 "   uint32_t len; /* Number of elements in list. */\n"
15116 "   struct guestfs_xattr *val; /* Elements. */\n"
15117 " };\n"
15118 " \n"
15119 msgstr ""
15120
15121 # type: verbatim
15122 #: ../src/guestfs-structs.pod:206
15123 #, no-wrap
15124 msgid ""
15125 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15126 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15127 "\n"
15128 msgstr ""
15129
15130 # type: =head2
15131 #: ../src/guestfs-structs.pod:209
15132 msgid "guestfs_inotify_event"
15133 msgstr ""
15134
15135 # type: verbatim
15136 #: ../src/guestfs-structs.pod:211
15137 #, no-wrap
15138 msgid ""
15139 " struct guestfs_inotify_event {\n"
15140 "   int64_t in_wd;\n"
15141 "   uint32_t in_mask;\n"
15142 "   uint32_t in_cookie;\n"
15143 "   char *in_name;\n"
15144 " };\n"
15145 " \n"
15146 msgstr ""
15147
15148 # type: verbatim
15149 #: ../src/guestfs-structs.pod:218
15150 #, no-wrap
15151 msgid ""
15152 " struct guestfs_inotify_event_list {\n"
15153 "   uint32_t len; /* Number of elements in list. */\n"
15154 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15155 " };\n"
15156 " \n"
15157 msgstr ""
15158
15159 # type: verbatim
15160 #: ../src/guestfs-structs.pod:223
15161 #, no-wrap
15162 msgid ""
15163 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15164 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
15165 "\n"
15166 msgstr ""
15167
15168 # type: =head2
15169 #: ../src/guestfs-structs.pod:226
15170 msgid "guestfs_partition"
15171 msgstr ""
15172
15173 # type: verbatim
15174 #: ../src/guestfs-structs.pod:228
15175 #, no-wrap
15176 msgid ""
15177 " struct guestfs_partition {\n"
15178 "   int32_t part_num;\n"
15179 "   uint64_t part_start;\n"
15180 "   uint64_t part_end;\n"
15181 "   uint64_t part_size;\n"
15182 " };\n"
15183 " \n"
15184 msgstr ""
15185
15186 # type: verbatim
15187 #: ../src/guestfs-structs.pod:235
15188 #, no-wrap
15189 msgid ""
15190 " struct guestfs_partition_list {\n"
15191 "   uint32_t len; /* Number of elements in list. */\n"
15192 "   struct guestfs_partition *val; /* Elements. */\n"
15193 " };\n"
15194 " \n"
15195 msgstr ""
15196
15197 # type: verbatim
15198 #: ../src/guestfs-structs.pod:240
15199 #, no-wrap
15200 msgid ""
15201 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15202 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15203 "\n"
15204 msgstr ""
15205
15206 # type: textblock
15207 #: ../fish/guestfish.pod:5
15208 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15209 msgstr ""
15210
15211 # type: verbatim
15212 #: ../fish/guestfish.pod:9
15213 #, no-wrap
15214 msgid ""
15215 " guestfish [--options] [commands]\n"
15216 "\n"
15217 msgstr ""
15218
15219 # type: verbatim
15220 #: ../fish/guestfish.pod:11
15221 #, no-wrap
15222 msgid ""
15223 " guestfish\n"
15224 "\n"
15225 msgstr ""
15226
15227 # type: verbatim
15228 #: ../fish/guestfish.pod:13
15229 #, no-wrap
15230 msgid ""
15231 " guestfish -a disk.img\n"
15232 "\n"
15233 msgstr ""
15234
15235 # type: verbatim
15236 #: ../fish/guestfish.pod:15
15237 #, no-wrap
15238 msgid ""
15239 " guestfish -a disk.img -m dev[:mountpoint]\n"
15240 "\n"
15241 msgstr ""
15242
15243 # type: verbatim
15244 #: ../fish/guestfish.pod:17
15245 #, no-wrap
15246 msgid ""
15247 " guestfish -d libvirt-domain\n"
15248 "\n"
15249 msgstr ""
15250
15251 # type: verbatim
15252 #: ../fish/guestfish.pod:19
15253 #, no-wrap
15254 msgid ""
15255 " guestfish -a disk.img -i\n"
15256 "\n"
15257 msgstr ""
15258
15259 # type: verbatim
15260 #: ../fish/guestfish.pod:21
15261 #, no-wrap
15262 msgid ""
15263 " guestfish -d libvirt-domain -i\n"
15264 "\n"
15265 msgstr ""
15266
15267 # type: =head1
15268 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
15269 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
15270 #: ../tools/virt-rescue.pl:41
15271 msgid "WARNING"
15272 msgstr ""
15273
15274 # type: textblock
15275 #: ../fish/guestfish.pod:25
15276 msgid ""
15277 "Using guestfish in read/write mode on live virtual machines can be "
15278 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15279 "option to use guestfish safely if the disk image or virtual machine might be "
15280 "live."
15281 msgstr ""
15282
15283 # type: textblock
15284 #: ../fish/guestfish.pod:32
15285 msgid ""
15286 "Guestfish is a shell and command-line tool for examining and modifying "
15287 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15288 "functionality of the guestfs API, see L<guestfs(3)>."
15289 msgstr ""
15290
15291 # type: textblock
15292 #: ../fish/guestfish.pod:36
15293 msgid ""
15294 "Guestfish gives you structured access to the libguestfs API, from shell "
15295 "scripts or the command line or interactively.  If you want to rescue a "
15296 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15297 "command."
15298 msgstr ""
15299
15300 # type: =head1
15301 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800
15302 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
15303 #: ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
15304 msgid "EXAMPLES"
15305 msgstr ""
15306
15307 # type: =head2
15308 #: ../fish/guestfish.pod:43
15309 msgid "As an interactive shell"
15310 msgstr ""
15311
15312 # type: verbatim
15313 #: ../fish/guestfish.pod:45
15314 #, no-wrap
15315 msgid ""
15316 " $ guestfish\n"
15317 " \n"
15318 msgstr ""
15319
15320 # type: verbatim
15321 #: ../fish/guestfish.pod:47
15322 #, no-wrap
15323 msgid ""
15324 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15325 " editing virtual machine filesystems.\n"
15326 " \n"
15327 msgstr ""
15328
15329 # type: verbatim
15330 #: ../fish/guestfish.pod:50
15331 #, no-wrap
15332 msgid ""
15333 " Type: 'help' for a list of commands\n"
15334 "       'man' to read the manual\n"
15335 "       'quit' to quit the shell\n"
15336 " \n"
15337 msgstr ""
15338
15339 # type: verbatim
15340 #: ../fish/guestfish.pod:54
15341 #, no-wrap
15342 msgid ""
15343 " ><fs> add-ro disk.img\n"
15344 " ><fs> run\n"
15345 " ><fs> list-filesystems\n"
15346 " /dev/sda1: ext4\n"
15347 " /dev/vg_guest/lv_root: ext4\n"
15348 " /dev/vg_guest/lv_swap: swap\n"
15349 " ><fs> mount /dev/vg_guest/lv_root /\n"
15350 " ><fs> cat /etc/fstab\n"
15351 " # /etc/fstab\n"
15352 " # Created by anaconda\n"
15353 " [...]\n"
15354 " ><fs> exit\n"
15355 "\n"
15356 msgstr ""
15357
15358 # type: =head2
15359 #: ../fish/guestfish.pod:67
15360 msgid "From shell scripts"
15361 msgstr ""
15362
15363 # type: textblock
15364 #: ../fish/guestfish.pod:69
15365 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15366 msgstr ""
15367
15368 # type: verbatim
15369 #: ../fish/guestfish.pod:71
15370 #, no-wrap
15371 msgid ""
15372 " guestfish <<_EOF_\n"
15373 " add disk.img\n"
15374 " run\n"
15375 " mount /dev/vg_guest/lv_root /\n"
15376 " write /etc/motd \"Welcome, new users\"\n"
15377 " _EOF_\n"
15378 "\n"
15379 msgstr ""
15380
15381 # type: textblock
15382 #: ../fish/guestfish.pod:78
15383 msgid "List the LVM logical volumes in a disk image:"
15384 msgstr ""
15385
15386 # type: verbatim
15387 #: ../fish/guestfish.pod:80
15388 #, no-wrap
15389 msgid ""
15390 " guestfish -a disk.img --ro <<_EOF_\n"
15391 " run\n"
15392 " lvs\n"
15393 " _EOF_\n"
15394 "\n"
15395 msgstr ""
15396
15397 # type: textblock
15398 #: ../fish/guestfish.pod:85
15399 msgid "List all the filesystems in a disk image:"
15400 msgstr ""
15401
15402 # type: verbatim
15403 #: ../fish/guestfish.pod:87
15404 #, no-wrap
15405 msgid ""
15406 " guestfish -a disk.img --ro <<_EOF_\n"
15407 " run\n"
15408 " list-filesystems\n"
15409 " _EOF_\n"
15410 "\n"
15411 msgstr ""
15412
15413 # type: =head2
15414 #: ../fish/guestfish.pod:92
15415 msgid "On one command line"
15416 msgstr ""
15417
15418 # type: textblock
15419 #: ../fish/guestfish.pod:94
15420 msgid "Update C</etc/resolv.conf> in a guest:"
15421 msgstr ""
15422
15423 # type: verbatim
15424 #: ../fish/guestfish.pod:96
15425 #, no-wrap
15426 msgid ""
15427 " guestfish \\\n"
15428 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15429 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15430 "\n"
15431 msgstr ""
15432
15433 # type: textblock
15434 #: ../fish/guestfish.pod:100
15435 msgid "Edit C</boot/grub/grub.conf> interactively:"
15436 msgstr ""
15437
15438 # type: verbatim
15439 #: ../fish/guestfish.pod:102
15440 #, no-wrap
15441 msgid ""
15442 " guestfish --add disk.img \\\n"
15443 "   --mount /dev/vg_guest/lv_root \\\n"
15444 "   --mount /dev/sda1:/boot \\\n"
15445 "   edit /boot/grub/grub.conf\n"
15446 "\n"
15447 msgstr ""
15448
15449 # type: =head2
15450 #: ../fish/guestfish.pod:107
15451 msgid "Mount disks automatically"
15452 msgstr ""
15453
15454 # type: textblock
15455 #: ../fish/guestfish.pod:109
15456 msgid ""
15457 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
15458 msgstr ""
15459
15460 # type: verbatim
15461 #: ../fish/guestfish.pod:112
15462 #, no-wrap
15463 msgid ""
15464 " guestfish --ro -a disk.img -i cat /etc/group\n"
15465 "\n"
15466 msgstr ""
15467
15468 # type: verbatim
15469 #: ../fish/guestfish.pod:114
15470 #, no-wrap
15471 msgid ""
15472 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15473 "\n"
15474 msgstr ""
15475
15476 # type: textblock
15477 #: ../fish/guestfish.pod:116
15478 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15479 msgstr ""
15480
15481 # type: verbatim
15482 #: ../fish/guestfish.pod:118
15483 #, no-wrap
15484 msgid ""
15485 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15486 "\n"
15487 msgstr ""
15488
15489 # type: =head2
15490 #: ../fish/guestfish.pod:120
15491 msgid "As a script interpreter"
15492 msgstr ""
15493
15494 # type: textblock
15495 #: ../fish/guestfish.pod:122
15496 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15497 msgstr ""
15498
15499 # type: verbatim
15500 #: ../fish/guestfish.pod:124
15501 #, no-wrap
15502 msgid ""
15503 " #!/usr/bin/guestfish -f\n"
15504 " sparse test1.img 100M\n"
15505 " run\n"
15506 " part-disk /dev/sda mbr\n"
15507 " mkfs ext2 /dev/sda1\n"
15508 "\n"
15509 msgstr ""
15510
15511 # type: =head2
15512 #: ../fish/guestfish.pod:130
15513 msgid "Start with a prepared disk"
15514 msgstr ""
15515
15516 # type: textblock
15517 #: ../fish/guestfish.pod:132
15518 msgid ""
15519 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15520 "single ext2-formatted partition:"
15521 msgstr ""
15522
15523 # type: verbatim
15524 #: ../fish/guestfish.pod:135
15525 #, no-wrap
15526 msgid ""
15527 " guestfish -N fs\n"
15528 "\n"
15529 msgstr ""
15530
15531 # type: textblock
15532 #: ../fish/guestfish.pod:137
15533 msgid "To list what is available do:"
15534 msgstr ""
15535
15536 # type: verbatim
15537 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15538 #, no-wrap
15539 msgid ""
15540 " guestfish -N help | less\n"
15541 "\n"
15542 msgstr ""
15543
15544 # type: =head2
15545 #: ../fish/guestfish.pod:141
15546 msgid "Remote control"
15547 msgstr ""
15548
15549 # type: verbatim
15550 #: ../fish/guestfish.pod:143
15551 #, no-wrap
15552 msgid ""
15553 " eval `guestfish --listen`\n"
15554 " guestfish --remote add-ro disk.img\n"
15555 " guestfish --remote run\n"
15556 " guestfish --remote lvs\n"
15557 "\n"
15558 msgstr ""
15559
15560 # type: =head1
15561 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
15562 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
15563 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
15564 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
15565 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79
15566 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
15567 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
15568 msgid "OPTIONS"
15569 msgstr ""
15570
15571 # type: =item
15572 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:124
15573 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
15574 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
15575 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
15576 #: ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106
15577 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
15578 #: ../tools/virt-list-partitions.pl:59
15579 msgid "B<--help>"
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../fish/guestfish.pod:154
15584 msgid "Displays general help on options."
15585 msgstr ""
15586
15587 # type: =item
15588 #: ../fish/guestfish.pod:156
15589 msgid "B<-h> | B<--cmd-help>"
15590 msgstr ""
15591
15592 # type: textblock
15593 #: ../fish/guestfish.pod:158
15594 msgid "Lists all available guestfish commands."
15595 msgstr ""
15596
15597 # type: =item
15598 #: ../fish/guestfish.pod:160
15599 msgid "B<-h cmd> | B<--cmd-help cmd>"
15600 msgstr ""
15601
15602 # type: textblock
15603 #: ../fish/guestfish.pod:162
15604 msgid "Displays detailed help on a single command C<cmd>."
15605 msgstr ""
15606
15607 # type: =item
15608 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
15609 msgid "B<-a image> | B<--add image>"
15610 msgstr ""
15611
15612 # type: textblock
15613 #: ../fish/guestfish.pod:166
15614 msgid "Add a block device or virtual machine image to the shell."
15615 msgstr ""
15616
15617 # type: textblock
15618 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
15619 msgid ""
15620 "The format of the disk image is auto-detected.  To override this and force a "
15621 "particular format use the I<--format=..> option."
15622 msgstr ""
15623
15624 # type: =item
15625 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
15626 msgid "B<-c URI> | B<--connect URI>"
15627 msgstr ""
15628
15629 # type: textblock
15630 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
15631 msgid ""
15632 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15633 "URI to use.  The default is to use the default libvirt connection."
15634 msgstr ""
15635
15636 # type: =item
15637 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
15638 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15639 msgstr ""
15640
15641 # type: textblock
15642 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
15643 msgid ""
15644 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15645 "used, then any libvirt domain can be used.  However in write mode, only "
15646 "libvirt domains which are shut down can be named here."
15647 msgstr ""
15648
15649 # type: =item
15650 #: ../fish/guestfish.pod:183
15651 msgid "B<-D> | B<--no-dest-paths>"
15652 msgstr ""
15653
15654 # type: textblock
15655 #: ../fish/guestfish.pod:185
15656 msgid ""
15657 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15658 "to hit the tab key to complete paths on the guest filesystem, but this "
15659 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15660 "allow this feature to be disabled."
15661 msgstr ""
15662
15663 # type: =item
15664 #: ../fish/guestfish.pod:190
15665 msgid "B<--echo-keys>"
15666 msgstr ""
15667
15668 # type: textblock
15669 #: ../fish/guestfish.pod:192
15670 msgid ""
15671 "When prompting for keys and passphrases, guestfish normally turns echoing "
15672 "off so you cannot see what you are typing.  If you are not worried about "
15673 "Tempest attacks and there is no one else in the room you can specify this "
15674 "flag to see what you are typing."
15675 msgstr ""
15676
15677 # type: =item
15678 #: ../fish/guestfish.pod:197
15679 msgid "B<-f file> | B<--file file>"
15680 msgstr ""
15681
15682 # type: textblock
15683 #: ../fish/guestfish.pod:199
15684 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15685 msgstr ""
15686
15687 # type: verbatim
15688 #: ../fish/guestfish.pod:202
15689 #, no-wrap
15690 msgid ""
15691 " #!/usr/bin/guestfish -f\n"
15692 "\n"
15693 msgstr ""
15694
15695 # type: =item
15696 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
15697 msgid "B<--format=raw|qcow2|..> | B<--format>"
15698 msgstr ""
15699
15700 # type: textblock
15701 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
15702 msgid ""
15703 "The default for the I<-a> option is to auto-detect the format of the disk "
15704 "image.  Using this forces the disk format for I<-a> options which follow on "
15705 "the command line.  Using I<--format> with no argument switches back to auto-"
15706 "detection for subsequent I<-a> options."
15707 msgstr ""
15708
15709 # type: textblock
15710 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
15711 #: ../inspector/virt-inspector.pl:549
15712 msgid "For example:"
15713 msgstr ""
15714
15715 # type: verbatim
15716 #: ../fish/guestfish.pod:213
15717 #, no-wrap
15718 msgid ""
15719 " guestfish --format=raw -a disk.img\n"
15720 "\n"
15721 msgstr ""
15722
15723 # type: textblock
15724 #: ../fish/guestfish.pod:215
15725 msgid "forces raw format (no auto-detection) for C<disk.img>."
15726 msgstr ""
15727
15728 # type: verbatim
15729 #: ../fish/guestfish.pod:217
15730 #, no-wrap
15731 msgid ""
15732 " guestfish --format=raw -a disk.img --format -a another.img\n"
15733 "\n"
15734 msgstr ""
15735
15736 # type: textblock
15737 #: ../fish/guestfish.pod:219
15738 msgid ""
15739 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
15740 "detection for C<another.img>."
15741 msgstr ""
15742
15743 # type: textblock
15744 #: ../fish/guestfish.pod:222
15745 msgid ""
15746 "If you have untrusted raw-format guest disk images, you should use this "
15747 "option to specify the disk format.  This avoids a possible security problem "
15748 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15749 msgstr ""
15750
15751 # type: =item
15752 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
15753 msgid "B<-i> | B<--inspector>"
15754 msgstr ""
15755
15756 # type: textblock
15757 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
15758 msgid ""
15759 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15760 "system and mount filesystems as they would be mounted on the real virtual "
15761 "machine."
15762 msgstr ""
15763
15764 # type: textblock
15765 #: ../fish/guestfish.pod:233
15766 msgid "Typical usage is either:"
15767 msgstr ""
15768
15769 # type: verbatim
15770 #: ../fish/guestfish.pod:235
15771 #, no-wrap
15772 msgid ""
15773 " guestfish -d myguest -i\n"
15774 "\n"
15775 msgstr ""
15776
15777 # type: textblock
15778 #: ../fish/guestfish.pod:237
15779 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15780 msgstr ""
15781
15782 # type: verbatim
15783 #: ../fish/guestfish.pod:239
15784 #, no-wrap
15785 msgid ""
15786 " guestfish --ro -d myguest -i\n"
15787 "\n"
15788 msgstr ""
15789
15790 # type: textblock
15791 #: ../fish/guestfish.pod:241
15792 msgid "(for active domains, readonly), or specify the block device directly:"
15793 msgstr ""
15794
15795 # type: verbatim
15796 #: ../fish/guestfish.pod:243
15797 #, no-wrap
15798 msgid ""
15799 " guestfish -a /dev/Guests/MyGuest -i\n"
15800 "\n"
15801 msgstr ""
15802
15803 # type: textblock
15804 #: ../fish/guestfish.pod:245
15805 msgid ""
15806 "Note that the command line syntax changed slightly over older versions of "
15807 "guestfish.  You can still use the old syntax:"
15808 msgstr ""
15809
15810 # type: verbatim
15811 #: ../fish/guestfish.pod:248
15812 #, no-wrap
15813 msgid ""
15814 " guestfish [--ro] -i disk.img\n"
15815 "\n"
15816 msgstr ""
15817
15818 # type: verbatim
15819 #: ../fish/guestfish.pod:250
15820 #, no-wrap
15821 msgid ""
15822 " guestfish [--ro] -i libvirt-domain\n"
15823 "\n"
15824 msgstr ""
15825
15826 # type: =item
15827 #: ../fish/guestfish.pod:252
15828 msgid "B<--keys-from-stdin>"
15829 msgstr ""
15830
15831 # type: textblock
15832 #: ../fish/guestfish.pod:254
15833 msgid ""
15834 "Read key or passphrase parameters from stdin.  The default is to try to read "
15835 "passphrases from the user by opening C</dev/tty>."
15836 msgstr ""
15837
15838 # type: =item
15839 #: ../fish/guestfish.pod:257
15840 msgid "B<--listen>"
15841 msgstr ""
15842
15843 # type: textblock
15844 #: ../fish/guestfish.pod:259
15845 msgid ""
15846 "Fork into the background and listen for remote commands.  See section L</"
15847 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15848 msgstr ""
15849
15850 # type: =item
15851 #: ../fish/guestfish.pod:262
15852 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15853 msgstr ""
15854
15855 # type: textblock
15856 #: ../fish/guestfish.pod:264
15857 msgid "Mount the named partition or logical volume on the given mountpoint."
15858 msgstr ""
15859
15860 # type: textblock
15861 #: ../fish/guestfish.pod:266
15862 msgid "If the mountpoint is omitted, it defaults to C</>."
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../fish/guestfish.pod:268
15867 msgid "You have to mount something on C</> before most commands will work."
15868 msgstr ""
15869
15870 # type: textblock
15871 #: ../fish/guestfish.pod:270
15872 msgid ""
15873 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15874 "launched."
15875 msgstr ""
15876
15877 # type: textblock
15878 #: ../fish/guestfish.pod:273
15879 msgid ""
15880 "If you don't know what filesystems a disk image contains, you can either run "
15881 "guestfish without this option, then list the partitions and LVs available "
15882 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
15883 "list-filesystems(1)> program."
15884 msgstr ""
15885
15886 # type: =item
15887 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
15888 msgid "B<-n> | B<--no-sync>"
15889 msgstr ""
15890
15891 # type: textblock
15892 #: ../fish/guestfish.pod:280
15893 msgid ""
15894 "Disable autosync.  This is enabled by default.  See the discussion of "
15895 "autosync in the L<guestfs(3)> manpage."
15896 msgstr ""
15897
15898 # type: =item
15899 #: ../fish/guestfish.pod:283
15900 msgid "B<-N type> | B<--new type> | B<-N help>"
15901 msgstr ""
15902
15903 # type: textblock
15904 #: ../fish/guestfish.pod:285
15905 msgid ""
15906 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15907 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15908 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15909 "IMAGES> below."
15910 msgstr ""
15911
15912 # type: =item
15913 #: ../fish/guestfish.pod:290
15914 msgid "B<--progress-bars>"
15915 msgstr ""
15916
15917 # type: textblock
15918 #: ../fish/guestfish.pod:292
15919 msgid "Enable progress bars, even when guestfish is used non-interactively."
15920 msgstr ""
15921
15922 # type: textblock
15923 #: ../fish/guestfish.pod:294
15924 msgid ""
15925 "Progress bars are enabled by default when guestfish is used as an "
15926 "interactive shell."
15927 msgstr ""
15928
15929 # type: =item
15930 #: ../fish/guestfish.pod:297
15931 msgid "B<--no-progress-bars>"
15932 msgstr ""
15933
15934 # type: textblock
15935 #: ../fish/guestfish.pod:299
15936 msgid "Disable progress bars."
15937 msgstr ""
15938
15939 # type: =item
15940 #: ../fish/guestfish.pod:301
15941 msgid "B<--remote[=pid]>"
15942 msgstr ""
15943
15944 # type: textblock
15945 #: ../fish/guestfish.pod:303
15946 msgid ""
15947 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15948 "CONTROL GUESTFISH OVER A SOCKET> below."
15949 msgstr ""
15950
15951 # type: =item
15952 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
15953 msgid "B<-r> | B<--ro>"
15954 msgstr ""
15955
15956 # type: textblock
15957 #: ../fish/guestfish.pod:308
15958 msgid ""
15959 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15960 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15961 msgstr ""
15962
15963 # type: textblock
15964 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
15965 msgid ""
15966 "The option must always be used if the disk image or virtual machine might be "
15967 "running, and is generally recommended in cases where you don't need write "
15968 "access to the disk."
15969 msgstr ""
15970
15971 # type: textblock
15972 #: ../fish/guestfish.pod:315
15973 msgid ""
15974 "Note that prepared disk images created with I<-N> are not affected by the "
15975 "I<--ro> option."
15976 msgstr ""
15977
15978 # type: =item
15979 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194
15980 #: ../tools/virt-rescue.pl:195
15981 msgid "B<--selinux>"
15982 msgstr ""
15983
15984 # type: textblock
15985 #: ../fish/guestfish.pod:320
15986 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15987 msgstr ""
15988
15989 # type: =item
15990 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
15991 msgid "B<-v> | B<--verbose>"
15992 msgstr ""
15993
15994 # type: textblock
15995 #: ../fish/guestfish.pod:324
15996 msgid ""
15997 "Enable very verbose messages.  This is particularly useful if you find a bug."
15998 msgstr ""
15999
16000 # type: =item
16001 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
16002 msgid "B<-V> | B<--version>"
16003 msgstr ""
16004
16005 # type: textblock
16006 #: ../fish/guestfish.pod:329
16007 msgid "Display the guestfish / libguestfs version number and exit."
16008 msgstr ""
16009
16010 # type: =item
16011 #: ../fish/guestfish.pod:331
16012 msgid "B<-x>"
16013 msgstr ""
16014
16015 # type: textblock
16016 #: ../fish/guestfish.pod:333
16017 msgid "Echo each command before executing it."
16018 msgstr ""
16019
16020 # type: =head1
16021 #: ../fish/guestfish.pod:337
16022 msgid "COMMANDS ON COMMAND LINE"
16023 msgstr ""
16024
16025 # type: textblock
16026 #: ../fish/guestfish.pod:339
16027 msgid ""
16028 "Any additional (non-option) arguments are treated as commands to execute."
16029 msgstr ""
16030
16031 # type: textblock
16032 #: ../fish/guestfish.pod:342
16033 msgid ""
16034 "Commands to execute should be separated by a colon (C<:>), where the colon "
16035 "is a separate parameter.  Thus:"
16036 msgstr ""
16037
16038 # type: verbatim
16039 #: ../fish/guestfish.pod:345
16040 #, no-wrap
16041 msgid ""
16042 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16043 "\n"
16044 msgstr ""
16045
16046 # type: textblock
16047 #: ../fish/guestfish.pod:347
16048 msgid ""
16049 "If there are no additional arguments, then we enter a shell, either an "
16050 "interactive shell with a prompt (if the input is a terminal) or a non-"
16051 "interactive shell."
16052 msgstr ""
16053
16054 # type: textblock
16055 #: ../fish/guestfish.pod:351
16056 msgid ""
16057 "In either command line mode or non-interactive shell, the first command that "
16058 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16059 "prompt) if a command fails, you can continue to enter commands."
16060 msgstr ""
16061
16062 # type: =head1
16063 #: ../fish/guestfish.pod:356
16064 msgid "USING launch (OR run)"
16065 msgstr ""
16066
16067 # type: textblock
16068 #: ../fish/guestfish.pod:358
16069 msgid ""
16070 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16071 "then launch it, then mount any disks you need, and finally issue actions/"
16072 "commands.  So the general order of the day is:"
16073 msgstr ""
16074
16075 # type: textblock
16076 #: ../fish/guestfish.pod:366
16077 msgid "add or -a/--add"
16078 msgstr ""
16079
16080 # type: textblock
16081 #: ../fish/guestfish.pod:370
16082 msgid "launch (aka run)"
16083 msgstr ""
16084
16085 # type: textblock
16086 #: ../fish/guestfish.pod:374
16087 msgid "mount or -m/--mount"
16088 msgstr ""
16089
16090 # type: textblock
16091 #: ../fish/guestfish.pod:378
16092 msgid "any other commands"
16093 msgstr ""
16094
16095 # type: textblock
16096 #: ../fish/guestfish.pod:382
16097 msgid ""
16098 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16099 "guest before mounting or performing any other commands."
16100 msgstr ""
16101
16102 # type: textblock
16103 #: ../fish/guestfish.pod:385
16104 msgid ""
16105 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16106 "I<--new> options were given then C<run> is done automatically, simply "
16107 "because guestfish can't perform the action you asked for without doing this."
16108 msgstr ""
16109
16110 # type: =head1
16111 #: ../fish/guestfish.pod:390
16112 msgid "QUOTING"
16113 msgstr ""
16114
16115 # type: textblock
16116 #: ../fish/guestfish.pod:392
16117 msgid ""
16118 "You can quote ordinary parameters using either single or double quotes.  For "
16119 "example:"
16120 msgstr ""
16121
16122 # type: verbatim
16123 #: ../fish/guestfish.pod:395
16124 #, no-wrap
16125 msgid ""
16126 " add \"file with a space.img\"\n"
16127 "\n"
16128 msgstr ""
16129
16130 # type: verbatim
16131 #: ../fish/guestfish.pod:397
16132 #, no-wrap
16133 msgid ""
16134 " rm '/file name'\n"
16135 "\n"
16136 msgstr ""
16137
16138 # type: verbatim
16139 #: ../fish/guestfish.pod:399
16140 #, no-wrap
16141 msgid ""
16142 " rm '/\"'\n"
16143 "\n"
16144 msgstr ""
16145
16146 # type: textblock
16147 #: ../fish/guestfish.pod:401
16148 msgid ""
16149 "A few commands require a list of strings to be passed.  For these, use a "
16150 "whitespace-separated list, enclosed in quotes.  Strings containing "
16151 "whitespace to be passed through must be enclosed in single quotes.  A "
16152 "literal single quote must be escaped with a backslash."
16153 msgstr ""
16154
16155 # type: verbatim
16156 #: ../fish/guestfish.pod:406
16157 #, no-wrap
16158 msgid ""
16159 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16160 " command \"/bin/echo 'foo      bar'\"\n"
16161 " command \"/bin/echo \\'foo\\'\"\n"
16162 "\n"
16163 msgstr ""
16164
16165 # type: =head1
16166 #: ../fish/guestfish.pod:410
16167 msgid "OPTIONAL ARGUMENTS"
16168 msgstr ""
16169
16170 # type: textblock
16171 #: ../fish/guestfish.pod:412
16172 msgid ""
16173 "Some commands take optional arguments.  These arguments appear in this "
16174 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16175 msgstr ""
16176
16177 # type: verbatim
16178 #: ../fish/guestfish.pod:416
16179 #, no-wrap
16180 msgid ""
16181 " add-drive-opts filename\n"
16182 "\n"
16183 msgstr ""
16184
16185 # type: verbatim
16186 #: ../fish/guestfish.pod:418
16187 #, no-wrap
16188 msgid ""
16189 " add-drive-opts filename readonly:true\n"
16190 "\n"
16191 msgstr ""
16192
16193 # type: verbatim
16194 #: ../fish/guestfish.pod:420
16195 #, no-wrap
16196 msgid ""
16197 " add-drive-opts filename format:qcow2 readonly:false\n"
16198 "\n"
16199 msgstr ""
16200
16201 # type: textblock
16202 #: ../fish/guestfish.pod:422
16203 msgid ""
16204 "Each optional argument can appear at most once.  All optional arguments must "
16205 "appear after the required ones."
16206 msgstr ""
16207
16208 # type: =head1
16209 #: ../fish/guestfish.pod:425
16210 msgid "NUMBERS"
16211 msgstr ""
16212
16213 # type: textblock
16214 #: ../fish/guestfish.pod:427
16215 msgid ""
16216 "This section applies to all commands which can take integers as parameters."
16217 msgstr ""
16218
16219 # type: =head2
16220 #: ../fish/guestfish.pod:430
16221 msgid "SIZE SUFFIX"
16222 msgstr ""
16223
16224 # type: textblock
16225 #: ../fish/guestfish.pod:432
16226 msgid ""
16227 "When the command takes a parameter measured in bytes, you can use one of the "
16228 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16229 msgstr ""
16230
16231 # type: =item
16232 #: ../fish/guestfish.pod:438
16233 msgid "B<k> or B<K> or B<KiB>"
16234 msgstr ""
16235
16236 # type: textblock
16237 #: ../fish/guestfish.pod:440
16238 msgid "The size in kilobytes (multiplied by 1024)."
16239 msgstr ""
16240
16241 # type: =item
16242 #: ../fish/guestfish.pod:442
16243 msgid "B<KB>"
16244 msgstr ""
16245
16246 # type: textblock
16247 #: ../fish/guestfish.pod:444
16248 msgid "The size in SI 1000 byte units."
16249 msgstr ""
16250
16251 # type: =item
16252 #: ../fish/guestfish.pod:446
16253 msgid "B<M> or B<MiB>"
16254 msgstr ""
16255
16256 # type: textblock
16257 #: ../fish/guestfish.pod:448
16258 msgid "The size in megabytes (multiplied by 1048576)."
16259 msgstr ""
16260
16261 # type: =item
16262 #: ../fish/guestfish.pod:450
16263 msgid "B<MB>"
16264 msgstr ""
16265
16266 # type: textblock
16267 #: ../fish/guestfish.pod:452
16268 msgid "The size in SI 1000000 byte units."
16269 msgstr ""
16270
16271 # type: =item
16272 #: ../fish/guestfish.pod:454
16273 msgid "B<G> or B<GiB>"
16274 msgstr ""
16275
16276 # type: textblock
16277 #: ../fish/guestfish.pod:456
16278 msgid "The size in gigabytes (multiplied by 2**30)."
16279 msgstr ""
16280
16281 # type: =item
16282 #: ../fish/guestfish.pod:458
16283 msgid "B<GB>"
16284 msgstr ""
16285
16286 # type: textblock
16287 #: ../fish/guestfish.pod:460
16288 msgid "The size in SI 10**9 byte units."
16289 msgstr ""
16290
16291 # type: =item
16292 #: ../fish/guestfish.pod:462
16293 msgid "B<T> or B<TiB>"
16294 msgstr ""
16295
16296 # type: textblock
16297 #: ../fish/guestfish.pod:464
16298 msgid "The size in terabytes (multiplied by 2**40)."
16299 msgstr ""
16300
16301 # type: =item
16302 #: ../fish/guestfish.pod:466
16303 msgid "B<TB>"
16304 msgstr ""
16305
16306 # type: textblock
16307 #: ../fish/guestfish.pod:468
16308 msgid "The size in SI 10**12 byte units."
16309 msgstr ""
16310
16311 # type: =item
16312 #: ../fish/guestfish.pod:470
16313 msgid "B<P> or B<PiB>"
16314 msgstr ""
16315
16316 # type: textblock
16317 #: ../fish/guestfish.pod:472
16318 msgid "The size in petabytes (multiplied by 2**50)."
16319 msgstr ""
16320
16321 # type: =item
16322 #: ../fish/guestfish.pod:474
16323 msgid "B<PB>"
16324 msgstr ""
16325
16326 # type: textblock
16327 #: ../fish/guestfish.pod:476
16328 msgid "The size in SI 10**15 byte units."
16329 msgstr ""
16330
16331 # type: =item
16332 #: ../fish/guestfish.pod:478
16333 msgid "B<E> or B<EiB>"
16334 msgstr ""
16335
16336 # type: textblock
16337 #: ../fish/guestfish.pod:480
16338 msgid "The size in exabytes (multiplied by 2**60)."
16339 msgstr ""
16340
16341 # type: =item
16342 #: ../fish/guestfish.pod:482
16343 msgid "B<EB>"
16344 msgstr ""
16345
16346 # type: textblock
16347 #: ../fish/guestfish.pod:484
16348 msgid "The size in SI 10**18 byte units."
16349 msgstr ""
16350
16351 # type: =item
16352 #: ../fish/guestfish.pod:486
16353 msgid "B<Z> or B<ZiB>"
16354 msgstr ""
16355
16356 # type: textblock
16357 #: ../fish/guestfish.pod:488
16358 msgid "The size in zettabytes (multiplied by 2**70)."
16359 msgstr ""
16360
16361 # type: =item
16362 #: ../fish/guestfish.pod:490
16363 msgid "B<ZB>"
16364 msgstr ""
16365
16366 # type: textblock
16367 #: ../fish/guestfish.pod:492
16368 msgid "The size in SI 10**21 byte units."
16369 msgstr ""
16370
16371 # type: =item
16372 #: ../fish/guestfish.pod:494
16373 msgid "B<Y> or B<YiB>"
16374 msgstr ""
16375
16376 # type: textblock
16377 #: ../fish/guestfish.pod:496
16378 msgid "The size in yottabytes (multiplied by 2**80)."
16379 msgstr ""
16380
16381 # type: =item
16382 #: ../fish/guestfish.pod:498
16383 msgid "B<YB>"
16384 msgstr ""
16385
16386 # type: textblock
16387 #: ../fish/guestfish.pod:500
16388 msgid "The size in SI 10**24 byte units."
16389 msgstr ""
16390
16391 # type: verbatim
16392 #: ../fish/guestfish.pod:506
16393 #, no-wrap
16394 msgid ""
16395 " truncate-size /file 1G\n"
16396 "\n"
16397 msgstr ""
16398
16399 # type: textblock
16400 #: ../fish/guestfish.pod:508
16401 msgid "would truncate the file to 1 gigabyte."
16402 msgstr ""
16403
16404 # type: textblock
16405 #: ../fish/guestfish.pod:510
16406 msgid ""
16407 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
16408 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
16409 "suffix will probably not do what you expect."
16410 msgstr ""
16411
16412 # type: =head2
16413 #: ../fish/guestfish.pod:514
16414 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16415 msgstr ""
16416
16417 # type: textblock
16418 #: ../fish/guestfish.pod:516
16419 msgid ""
16420 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16421 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16422 msgstr ""
16423
16424 # type: verbatim
16425 #: ../fish/guestfish.pod:519
16426 #, no-wrap
16427 msgid ""
16428 " 1234      decimal number 1234\n"
16429 " 02322     octal number, equivalent to decimal 1234\n"
16430 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16431 "\n"
16432 msgstr ""
16433
16434 # type: textblock
16435 #: ../fish/guestfish.pod:523
16436 msgid ""
16437 "When using the C<chmod> command, you almost always want to specify an octal "
16438 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16439 "L<chmod(1)> program):"
16440 msgstr ""
16441
16442 # type: verbatim
16443 #: ../fish/guestfish.pod:527
16444 #, no-wrap
16445 msgid ""
16446 " chmod 0777 /public  # OK\n"
16447 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16448 "\n"
16449 msgstr ""
16450
16451 # type: textblock
16452 #: ../fish/guestfish.pod:530
16453 msgid ""
16454 "Commands that return numbers usually print them in decimal, but some "
16455 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16456 "octal, preceeded by C<0>)."
16457 msgstr ""
16458
16459 # type: =head1
16460 #: ../fish/guestfish.pod:534
16461 msgid "WILDCARDS AND GLOBBING"
16462 msgstr ""
16463
16464 # type: textblock
16465 #: ../fish/guestfish.pod:536
16466 msgid ""
16467 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16468 "(globbing) by default.  So for example the following will not do what you "
16469 "expect:"
16470 msgstr ""
16471
16472 # type: verbatim
16473 #: ../fish/guestfish.pod:540
16474 #, no-wrap
16475 msgid ""
16476 " rm-rf /home/*\n"
16477 "\n"
16478 msgstr ""
16479
16480 # type: textblock
16481 #: ../fish/guestfish.pod:542
16482 msgid ""
16483 "Assuming you don't have a directory called literally C</home/*> then the "
16484 "above command will return an error."
16485 msgstr ""
16486
16487 # type: textblock
16488 #: ../fish/guestfish.pod:545
16489 msgid "To perform wildcard expansion, use the C<glob> command."
16490 msgstr ""
16491
16492 # type: verbatim
16493 #: ../fish/guestfish.pod:547
16494 #, no-wrap
16495 msgid ""
16496 " glob rm-rf /home/*\n"
16497 "\n"
16498 msgstr ""
16499
16500 # type: textblock
16501 #: ../fish/guestfish.pod:549
16502 msgid ""
16503 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16504 "many times), equivalent to:"
16505 msgstr ""
16506
16507 # type: verbatim
16508 #: ../fish/guestfish.pod:552
16509 #, no-wrap
16510 msgid ""
16511 " rm-rf /home/jim\n"
16512 " rm-rf /home/joe\n"
16513 " rm-rf /home/mary\n"
16514 "\n"
16515 msgstr ""
16516
16517 # type: textblock
16518 #: ../fish/guestfish.pod:556
16519 msgid "C<glob> only works on simple guest paths and not on device names."
16520 msgstr ""
16521
16522 # type: textblock
16523 #: ../fish/guestfish.pod:558
16524 msgid ""
16525 "If you have several parameters, each containing a wildcard, then glob will "
16526 "perform a Cartesian product."
16527 msgstr ""
16528
16529 # type: =head1
16530 #: ../fish/guestfish.pod:561
16531 msgid "COMMENTS"
16532 msgstr ""
16533
16534 # type: textblock
16535 #: ../fish/guestfish.pod:563
16536 msgid ""
16537 "Any line which starts with a I<#> character is treated as a comment and "
16538 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16539 "a command.  For example:"
16540 msgstr ""
16541
16542 # type: verbatim
16543 #: ../fish/guestfish.pod:567
16544 #, no-wrap
16545 msgid ""
16546 " # this is a comment\n"
16547 "         # this is a comment\n"
16548 " foo # NOT a comment\n"
16549 "\n"
16550 msgstr ""
16551
16552 # type: textblock
16553 #: ../fish/guestfish.pod:571
16554 msgid "Blank lines are also ignored."
16555 msgstr ""
16556
16557 # type: =head1
16558 #: ../fish/guestfish.pod:573
16559 msgid "RUNNING COMMANDS LOCALLY"
16560 msgstr ""
16561
16562 # type: textblock
16563 #: ../fish/guestfish.pod:575
16564 msgid ""
16565 "Any line which starts with a I<!> character is treated as a command sent to "
16566 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16567 msgstr ""
16568
16569 # type: verbatim
16570 #: ../fish/guestfish.pod:579
16571 #, no-wrap
16572 msgid ""
16573 " !mkdir local\n"
16574 " tgz-out /remote local/remote-data.tar.gz\n"
16575 "\n"
16576 msgstr ""
16577
16578 # type: textblock
16579 #: ../fish/guestfish.pod:582
16580 msgid ""
16581 "will create a directory C<local> on the host, and then export the contents "
16582 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16583 "(See C<tgz-out>)."
16584 msgstr ""
16585
16586 # type: textblock
16587 #: ../fish/guestfish.pod:586
16588 msgid ""
16589 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16590 "effect, due to the way that subprocesses work in Unix."
16591 msgstr ""
16592
16593 # type: =head1
16594 #: ../fish/guestfish.pod:589
16595 msgid "PIPES"
16596 msgstr ""
16597
16598 # type: textblock
16599 #: ../fish/guestfish.pod:591
16600 msgid ""
16601 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16602 "command (a guestfish command) to the second command (any host command).  For "
16603 "example:"
16604 msgstr ""
16605
16606 # type: verbatim
16607 #: ../fish/guestfish.pod:595
16608 #, no-wrap
16609 msgid ""
16610 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16611 "\n"
16612 msgstr ""
16613
16614 # type: textblock
16615 #: ../fish/guestfish.pod:597
16616 msgid ""
16617 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16618 "program).  The above command would list all accounts in the guest filesystem "
16619 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16620 msgstr ""
16621
16622 # type: verbatim
16623 #: ../fish/guestfish.pod:602
16624 #, no-wrap
16625 msgid ""
16626 " hexdump /bin/ls | head\n"
16627 " list-devices | tail -1\n"
16628 " tgz-out / - | tar ztf -\n"
16629 "\n"
16630 msgstr ""
16631
16632 # type: textblock
16633 #: ../fish/guestfish.pod:606
16634 msgid ""
16635 "The space before the pipe symbol is required, any space after the pipe "
16636 "symbol is optional.  Everything after the pipe symbol is just passed "
16637 "straight to the host shell, so it can contain redirections, globs and "
16638 "anything else that makes sense on the host side."
16639 msgstr ""
16640
16641 # type: textblock
16642 #: ../fish/guestfish.pod:611
16643 msgid ""
16644 "To use a literal argument which begins with a pipe symbol, you have to quote "
16645 "it, eg:"
16646 msgstr ""
16647
16648 # type: verbatim
16649 #: ../fish/guestfish.pod:614
16650 #, no-wrap
16651 msgid ""
16652 " echo \"|\"\n"
16653 "\n"
16654 msgstr ""
16655
16656 # type: =head1
16657 #: ../fish/guestfish.pod:616
16658 msgid "HOME DIRECTORIES"
16659 msgstr ""
16660
16661 # type: textblock
16662 #: ../fish/guestfish.pod:618
16663 msgid ""
16664 "If a parameter starts with the character C<~> then the tilde may be expanded "
16665 "as a home directory path (either C<~> for the current user's home directory, "
16666 "or C<~user> for another user)."
16667 msgstr ""
16668
16669 # type: textblock
16670 #: ../fish/guestfish.pod:622
16671 msgid ""
16672 "Note that home directory expansion happens for users known I<on the host>, "
16673 "not in the guest filesystem."
16674 msgstr ""
16675
16676 # type: textblock
16677 #: ../fish/guestfish.pod:625
16678 msgid ""
16679 "To use a literal argument which begins with a tilde, you have to quote it, "
16680 "eg:"
16681 msgstr ""
16682
16683 # type: verbatim
16684 #: ../fish/guestfish.pod:628
16685 #, no-wrap
16686 msgid ""
16687 " echo \"~\"\n"
16688 "\n"
16689 msgstr ""
16690
16691 # type: textblock
16692 #: ../fish/guestfish.pod:632
16693 msgid ""
16694 "Libguestfs has some support for Linux guests encrypted according to the "
16695 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16696 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
16697 "LUKS is supported."
16698 msgstr ""
16699
16700 # type: textblock
16701 #: ../fish/guestfish.pod:637
16702 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16703 msgstr ""
16704
16705 # type: verbatim
16706 #: ../fish/guestfish.pod:639
16707 #, no-wrap
16708 msgid ""
16709 " ><fs> vfs-type /dev/sda2\n"
16710 " crypto_LUKS\n"
16711 "\n"
16712 msgstr ""
16713
16714 # type: textblock
16715 #: ../fish/guestfish.pod:642
16716 msgid ""
16717 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16718 "device called C</dev/mapper/luksdev>."
16719 msgstr ""
16720
16721 # type: verbatim
16722 #: ../fish/guestfish.pod:645
16723 #, no-wrap
16724 msgid ""
16725 " ><fs> luks-open /dev/sda2 luksdev\n"
16726 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16727 "\n"
16728 msgstr ""
16729
16730 # type: textblock
16731 #: ../fish/guestfish.pod:648
16732 msgid ""
16733 "Finally you have to tell LVM to scan for volume groups on the newly created "
16734 "mapper device:"
16735 msgstr ""
16736
16737 # type: verbatim
16738 #: ../fish/guestfish.pod:651
16739 #, no-wrap
16740 msgid ""
16741 " vgscan\n"
16742 " vg-activate-all true\n"
16743 "\n"
16744 msgstr ""
16745
16746 # type: textblock
16747 #: ../fish/guestfish.pod:654
16748 msgid "The logical volume(s) can now be mounted in the usual way."
16749 msgstr ""
16750
16751 # type: textblock
16752 #: ../fish/guestfish.pod:656
16753 msgid ""
16754 "Before closing a LUKS device you must unmount any logical volumes on it and "
16755 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16756 "one.  Then you can close the mapper device:"
16757 msgstr ""
16758
16759 # type: verbatim
16760 #: ../fish/guestfish.pod:660
16761 #, no-wrap
16762 msgid ""
16763 " vg-activate false /dev/VG\n"
16764 " luks-close /dev/mapper/luksdev\n"
16765 "\n"
16766 msgstr ""
16767
16768 # type: =head1
16769 #: ../fish/guestfish.pod:663
16770 msgid "WINDOWS PATHS"
16771 msgstr ""
16772
16773 # type: textblock
16774 #: ../fish/guestfish.pod:665
16775 msgid ""
16776 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16777 "(with some limitations).  The following commands are equivalent:"
16778 msgstr ""
16779
16780 # type: verbatim
16781 #: ../fish/guestfish.pod:668
16782 #, no-wrap
16783 msgid ""
16784 " file /WINDOWS/system32/config/system.LOG\n"
16785 "\n"
16786 msgstr ""
16787
16788 # type: verbatim
16789 #: ../fish/guestfish.pod:670
16790 #, no-wrap
16791 msgid ""
16792 " file win:/windows/system32/config/system.log\n"
16793 "\n"
16794 msgstr ""
16795
16796 # type: verbatim
16797 #: ../fish/guestfish.pod:672
16798 #, no-wrap
16799 msgid ""
16800 " file win:\\windows\\system32\\config\\system.log\n"
16801 "\n"
16802 msgstr ""
16803
16804 # type: verbatim
16805 #: ../fish/guestfish.pod:674
16806 #, no-wrap
16807 msgid ""
16808 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16809 "\n"
16810 msgstr ""
16811
16812 # type: textblock
16813 #: ../fish/guestfish.pod:676
16814 msgid ""
16815 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16816 "handles case insensitivity like Windows would.  This only works in argument "
16817 "positions that expect a path."
16818 msgstr ""
16819
16820 # type: =head1
16821 #: ../fish/guestfish.pod:680
16822 msgid "UPLOADING AND DOWNLOADING FILES"
16823 msgstr ""
16824
16825 # type: textblock
16826 #: ../fish/guestfish.pod:682
16827 msgid ""
16828 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16829 "others which upload from or download to a local file, you can use the "
16830 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16831 msgstr ""
16832
16833 # type: verbatim
16834 #: ../fish/guestfish.pod:686
16835 #, no-wrap
16836 msgid ""
16837 " upload - /foo\n"
16838 "\n"
16839 msgstr ""
16840
16841 # type: textblock
16842 #: ../fish/guestfish.pod:688
16843 msgid ""
16844 "reads stdin and creates from that a file C</foo> in the disk image, and:"
16845 msgstr ""
16846
16847 # type: verbatim
16848 #: ../fish/guestfish.pod:691
16849 #, no-wrap
16850 msgid ""
16851 " tar-out /etc - | tar tf -\n"
16852 "\n"
16853 msgstr ""
16854
16855 # type: textblock
16856 #: ../fish/guestfish.pod:693
16857 msgid ""
16858 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16859 "command (see L</PIPES>)."
16860 msgstr ""
16861
16862 # type: textblock
16863 #: ../fish/guestfish.pod:696
16864 msgid ""
16865 "When using C<-> to read from stdin, the input is read up to the end of "
16866 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16867 "some arbitrary end marker:"
16868 msgstr ""
16869
16870 # type: verbatim
16871 #: ../fish/guestfish.pod:700
16872 #, no-wrap
16873 msgid ""
16874 " upload -<<END /foo\n"
16875 " input line 1\n"
16876 " input line 2\n"
16877 " input line 3\n"
16878 " END\n"
16879 "\n"
16880 msgstr ""
16881
16882 # type: textblock
16883 #: ../fish/guestfish.pod:706
16884 msgid ""
16885 "Any string of characters can be used instead of C<END>.  The end marker must "
16886 "appear on a line of its own, without any preceeding or following characters "
16887 "(not even spaces)."
16888 msgstr ""
16889
16890 # type: textblock
16891 #: ../fish/guestfish.pod:710
16892 msgid ""
16893 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16894 "upload local files (so-called \"FileIn\" parameters in the generator)."
16895 msgstr ""
16896
16897 # type: =head1
16898 #: ../fish/guestfish.pod:713
16899 msgid "EXIT ON ERROR BEHAVIOUR"
16900 msgstr ""
16901
16902 # type: textblock
16903 #: ../fish/guestfish.pod:715
16904 msgid ""
16905 "By default, guestfish will ignore any errors when in interactive mode (ie. "
16906 "taking commands from a human over a tty), and will exit on the first error "
16907 "in non-interactive mode (scripts, commands given on the command line)."
16908 msgstr ""
16909
16910 # type: textblock
16911 #: ../fish/guestfish.pod:720
16912 msgid ""
16913 "If you prefix a command with a I<-> character, then that command will not "
16914 "cause guestfish to exit, even if that (one) command returns an error."
16915 msgstr ""
16916
16917 # type: =head1
16918 #: ../fish/guestfish.pod:724
16919 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16920 msgstr ""
16921
16922 # type: textblock
16923 #: ../fish/guestfish.pod:726
16924 msgid ""
16925 "Guestfish can be remote-controlled over a socket.  This is useful "
16926 "particularly in shell scripts where you want to make several different "
16927 "changes to a filesystem, but you don't want the overhead of starting up a "
16928 "guestfish process each time."
16929 msgstr ""
16930
16931 # type: textblock
16932 #: ../fish/guestfish.pod:731
16933 msgid "Start a guestfish server process using:"
16934 msgstr ""
16935
16936 # type: verbatim
16937 #: ../fish/guestfish.pod:733
16938 #, no-wrap
16939 msgid ""
16940 " eval `guestfish --listen`\n"
16941 "\n"
16942 msgstr ""
16943
16944 # type: textblock
16945 #: ../fish/guestfish.pod:735
16946 msgid "and then send it commands by doing:"
16947 msgstr ""
16948
16949 # type: verbatim
16950 #: ../fish/guestfish.pod:737
16951 #, no-wrap
16952 msgid ""
16953 " guestfish --remote cmd [...]\n"
16954 "\n"
16955 msgstr ""
16956
16957 # type: textblock
16958 #: ../fish/guestfish.pod:739
16959 msgid "To cause the server to exit, send it the exit command:"
16960 msgstr ""
16961
16962 # type: verbatim
16963 #: ../fish/guestfish.pod:741
16964 #, no-wrap
16965 msgid ""
16966 " guestfish --remote exit\n"
16967 "\n"
16968 msgstr ""
16969
16970 # type: textblock
16971 #: ../fish/guestfish.pod:743
16972 msgid ""
16973 "Note that the server will normally exit if there is an error in a command.  "
16974 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16975 "BEHAVIOUR>."
16976 msgstr ""
16977
16978 # type: =head2
16979 #: ../fish/guestfish.pod:747
16980 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16981 msgstr ""
16982
16983 # type: textblock
16984 #: ../fish/guestfish.pod:749
16985 msgid ""
16986 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16987 "is how the I<--remote> option knows where to send the commands.  You can "
16988 "have several guestfish listener processes running using:"
16989 msgstr ""
16990
16991 # type: verbatim
16992 #: ../fish/guestfish.pod:753
16993 #, no-wrap
16994 msgid ""
16995 " eval `guestfish --listen`\n"
16996 " pid1=$GUESTFISH_PID\n"
16997 " eval `guestfish --listen`\n"
16998 " pid2=$GUESTFISH_PID\n"
16999 " ...\n"
17000 " guestfish --remote=$pid1 cmd\n"
17001 " guestfish --remote=$pid2 cmd\n"
17002 "\n"
17003 msgstr ""
17004
17005 # type: =head2
17006 #: ../fish/guestfish.pod:761
17007 msgid "REMOTE CONTROL DETAILS"
17008 msgstr ""
17009
17010 # type: textblock
17011 #: ../fish/guestfish.pod:763
17012 msgid ""
17013 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
17014 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
17015 "and C<$PID> is the process ID of the server."
17016 msgstr ""
17017
17018 # type: textblock
17019 #: ../fish/guestfish.pod:767
17020 msgid "Guestfish client and server versions must match exactly."
17021 msgstr ""
17022
17023 # type: =head1
17024 #: ../fish/guestfish.pod:769
17025 msgid "PREPARED DISK IMAGES"
17026 msgstr ""
17027
17028 # type: textblock
17029 #: ../fish/guestfish.pod:771
17030 msgid ""
17031 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17032 "preformatted disk images that guestfish can make for you to save typing.  "
17033 "This is particularly useful for testing purposes.  This option is used "
17034 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17035 "can be mixed with I<-a>)."
17036 msgstr ""
17037
17038 # type: textblock
17039 #: ../fish/guestfish.pod:777
17040 msgid ""
17041 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17042 "the second and so on.  Existing files in the current directory are "
17043 "I<overwritten>."
17044 msgstr ""
17045
17046 # type: textblock
17047 #: ../fish/guestfish.pod:781
17048 msgid ""
17049 "The type briefly describes how the disk should be sized, partitioned, how "
17050 "filesystem(s) should be created, and how content should be added.  "
17051 "Optionally the type can be followed by extra parameters, separated by C<:> "
17052 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
17053 "allocated disk, containing a single partition, with the partition formatted "
17054 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
17055 "disk instead."
17056 msgstr ""
17057
17058 # type: textblock
17059 #: ../fish/guestfish.pod:789
17060 msgid "To list the available types and any extra parameters they take, run:"
17061 msgstr ""
17062
17063 # type: textblock
17064 #: ../fish/guestfish.pod:793
17065 msgid ""
17066 "Note that the prepared filesystem is not mounted.  You would usually have to "
17067 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17068 msgstr ""
17069
17070 # type: textblock
17071 #: ../fish/guestfish.pod:797
17072 msgid ""
17073 "If any I<-N> or I<--new> options are given, the guest is automatically "
17074 "launched."
17075 msgstr ""
17076
17077 # type: textblock
17078 #: ../fish/guestfish.pod:802
17079 msgid "Create a 100MB disk with an ext4-formatted partition:"
17080 msgstr ""
17081
17082 # type: verbatim
17083 #: ../fish/guestfish.pod:804
17084 #, no-wrap
17085 msgid ""
17086 " guestfish -N fs:ext4\n"
17087 "\n"
17088 msgstr ""
17089
17090 # type: textblock
17091 #: ../fish/guestfish.pod:806
17092 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17093 msgstr ""
17094
17095 # type: verbatim
17096 #: ../fish/guestfish.pod:808
17097 #, no-wrap
17098 msgid ""
17099 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17100 "\n"
17101 msgstr ""
17102
17103 # type: textblock
17104 #: ../fish/guestfish.pod:810
17105 msgid "Create a blank 200MB disk:"
17106 msgstr ""
17107
17108 # type: verbatim
17109 #: ../fish/guestfish.pod:812
17110 #, no-wrap
17111 msgid ""
17112 " guestfish -N disk:200M\n"
17113 "\n"
17114 msgstr ""
17115
17116 # type: =head1
17117 #: ../fish/guestfish.pod:814
17118 msgid "PROGRESS BARS"
17119 msgstr ""
17120
17121 # type: textblock
17122 #: ../fish/guestfish.pod:816
17123 msgid ""
17124 "Some (not all) long-running commands send progress notification messages as "
17125 "they are running.  Guestfish turns these messages into progress bars."
17126 msgstr ""
17127
17128 # type: textblock
17129 #: ../fish/guestfish.pod:820
17130 msgid ""
17131 "When a command that supports progress bars takes longer than two seconds to "
17132 "run, and if progress bars are enabled, then you will see one appearing below "
17133 "the command:"
17134 msgstr ""
17135
17136 # type: verbatim
17137 #: ../fish/guestfish.pod:824
17138 #, no-wrap
17139 msgid ""
17140 " ><fs> copy-size /large-file /another-file 2048M\n"
17141 " / 10% [#####-----------------------------------------] 00:30\n"
17142 "\n"
17143 msgstr ""
17144
17145 # type: textblock
17146 #: ../fish/guestfish.pod:827
17147 msgid ""
17148 "The spinner on the left hand side moves round once for every progress "
17149 "notification received from the backend.  This is a (reasonably) golden "
17150 "assurance that the command is \"doing something\" even if the progress bar "
17151 "is not moving, because the command is able to send the progress "
17152 "notifications.  When the bar reaches 100% and the command finishes, the "
17153 "spinner disappears."
17154 msgstr ""
17155
17156 # type: textblock
17157 #: ../fish/guestfish.pod:834
17158 msgid ""
17159 "Progress bars are enabled by default when guestfish is used interactively.  "
17160 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17161 "and you can disable them completely using I<--no-progress-bars>."
17162 msgstr ""
17163
17164 # type: =head1
17165 #: ../fish/guestfish.pod:839
17166 msgid "GUESTFISH COMMANDS"
17167 msgstr ""
17168
17169 # type: textblock
17170 #: ../fish/guestfish.pod:841
17171 msgid ""
17172 "The commands in this section are guestfish convenience commands, in other "
17173 "words, they are not part of the L<guestfs(3)> API."
17174 msgstr ""
17175
17176 # type: =head2
17177 #: ../fish/guestfish.pod:844
17178 msgid "help"
17179 msgstr ""
17180
17181 # type: verbatim
17182 #: ../fish/guestfish.pod:846
17183 #, no-wrap
17184 msgid ""
17185 " help\n"
17186 " help cmd\n"
17187 "\n"
17188 msgstr ""
17189
17190 # type: textblock
17191 #: ../fish/guestfish.pod:849
17192 msgid ""
17193 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
17194 "this displays detailed help for a command."
17195 msgstr ""
17196
17197 # type: =head2
17198 #: ../fish/guestfish.pod:852
17199 msgid "quit | exit"
17200 msgstr ""
17201
17202 # type: textblock
17203 #: ../fish/guestfish.pod:854
17204 msgid "This exits guestfish.  You can also use C<^D> key."
17205 msgstr ""
17206
17207 # type: textblock
17208 #: ../fish/guestfish.pod:856
17209 msgid "@FISH_COMMANDS@"
17210 msgstr ""
17211
17212 # type: =head1
17213 #: ../fish/guestfish.pod:858
17214 msgid "COMMANDS"
17215 msgstr ""
17216
17217 # type: =head1
17218 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
17219 msgid "EXIT CODE"
17220 msgstr ""
17221
17222 # type: textblock
17223 #: ../fish/guestfish.pod:864
17224 msgid ""
17225 "guestfish returns 0 if the commands completed without error, or 1 if there "
17226 "was an error."
17227 msgstr ""
17228
17229 # type: =item
17230 #: ../fish/guestfish.pod:871
17231 msgid "EDITOR"
17232 msgstr ""
17233
17234 # type: textblock
17235 #: ../fish/guestfish.pod:873
17236 msgid ""
17237 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17238 "C<vi>."
17239 msgstr ""
17240
17241 # type: =item
17242 #: ../fish/guestfish.pod:876
17243 msgid "GUESTFISH_PID"
17244 msgstr ""
17245
17246 # type: textblock
17247 #: ../fish/guestfish.pod:878
17248 msgid ""
17249 "Used with the I<--remote> option to specify the remote guestfish process to "
17250 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17251 msgstr ""
17252
17253 # type: =item
17254 #: ../fish/guestfish.pod:882
17255 msgid "HEXEDITOR"
17256 msgstr ""
17257
17258 # type: textblock
17259 #: ../fish/guestfish.pod:884
17260 msgid ""
17261 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17262 "not specified, the external L<hexedit(1)> program is used."
17263 msgstr ""
17264
17265 # type: =item
17266 #: ../fish/guestfish.pod:888
17267 msgid "HOME"
17268 msgstr ""
17269
17270 # type: textblock
17271 #: ../fish/guestfish.pod:890
17272 msgid ""
17273 "If compiled with GNU readline support, various files in the home directory "
17274 "can be used.  See L</FILES>."
17275 msgstr ""
17276
17277 # type: textblock
17278 #: ../fish/guestfish.pod:899
17279 msgid ""
17280 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17281 "effect as using the B<-v> option."
17282 msgstr ""
17283
17284 # type: textblock
17285 #: ../fish/guestfish.pod:911
17286 msgid ""
17287 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17288 "the discussion of paths in L<guestfs(3)>."
17289 msgstr ""
17290
17291 # type: textblock
17292 #: ../fish/guestfish.pod:922
17293 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17294 msgstr ""
17295
17296 # type: =item
17297 #: ../fish/guestfish.pod:924
17298 msgid "PAGER"
17299 msgstr ""
17300
17301 # type: textblock
17302 #: ../fish/guestfish.pod:926
17303 msgid ""
17304 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17305 "C<more>."
17306 msgstr ""
17307
17308 # type: =head1
17309 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
17310 msgid "FILES"
17311 msgstr ""
17312
17313 # type: =item
17314 #: ../fish/guestfish.pod:945
17315 msgid "$HOME/.guestfish"
17316 msgstr ""
17317
17318 # type: textblock
17319 #: ../fish/guestfish.pod:947
17320 msgid ""
17321 "If compiled with GNU readline support, then the command history is saved in "
17322 "this file."
17323 msgstr ""
17324
17325 # type: =item
17326 #: ../fish/guestfish.pod:950
17327 msgid "$HOME/.inputrc"
17328 msgstr ""
17329
17330 # type: =item
17331 #: ../fish/guestfish.pod:952
17332 msgid "/etc/inputrc"
17333 msgstr ""
17334
17335 # type: textblock
17336 #: ../fish/guestfish.pod:954
17337 msgid ""
17338 "If compiled with GNU readline support, then these files can be used to "
17339 "configure readline.  For further information, please see L<readline(3)/"
17340 "INITIALIZATION FILE>."
17341 msgstr ""
17342
17343 # type: textblock
17344 #: ../fish/guestfish.pod:958
17345 msgid "To write rules which only apply to guestfish, use:"
17346 msgstr ""
17347
17348 # type: verbatim
17349 #: ../fish/guestfish.pod:960
17350 #, no-wrap
17351 msgid ""
17352 " $if guestfish\n"
17353 " ...\n"
17354 " $endif\n"
17355 "\n"
17356 msgstr ""
17357
17358 # type: textblock
17359 #: ../fish/guestfish.pod:964
17360 msgid ""
17361 "Variables that you can set in inputrc that change the behaviour of guestfish "
17362 "in useful ways include:"
17363 msgstr ""
17364
17365 # type: =item
17366 #: ../fish/guestfish.pod:969
17367 msgid "completion-ignore-case (default: on)"
17368 msgstr ""
17369
17370 # type: textblock
17371 #: ../fish/guestfish.pod:971
17372 msgid ""
17373 "By default, guestfish will ignore case when tab-completing paths on the "
17374 "disk.  Use:"
17375 msgstr ""
17376
17377 # type: verbatim
17378 #: ../fish/guestfish.pod:974
17379 #, no-wrap
17380 msgid ""
17381 " set completion-ignore-case off\n"
17382 "\n"
17383 msgstr ""
17384
17385 # type: textblock
17386 #: ../fish/guestfish.pod:976
17387 msgid "to make guestfish case sensitive."
17388 msgstr ""
17389
17390 # type: =item
17391 #: ../fish/guestfish.pod:980
17392 msgid "test1.img"
17393 msgstr ""
17394
17395 # type: =item
17396 #: ../fish/guestfish.pod:982
17397 msgid "test2.img (etc)"
17398 msgstr ""
17399
17400 # type: textblock
17401 #: ../fish/guestfish.pod:984
17402 msgid ""
17403 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17404 "will be created in the file C<test1.img> in the current directory.  The "
17405 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17406 "the same name will be overwritten."
17407 msgstr ""
17408
17409 # type: textblock
17410 #: ../fish/guestfish.pod:993
17411 msgid ""
17412 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17413 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17414 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17415 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17416 msgstr ""
17417
17418 # type: textblock
17419 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124
17420 #: ../fuse/guestmount.pod:234 ../inspector/virt-inspector.pl:598
17421 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
17422 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
17423 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
17424 #: ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300
17425 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
17426 #: ../tools/virt-list-partitions.pl:273
17427 msgid ""
17428 "This program is free software; you can redistribute it and/or modify it "
17429 "under the terms of the GNU General Public License as published by the Free "
17430 "Software Foundation; either version 2 of the License, or (at your option) "
17431 "any later version."
17432 msgstr ""
17433
17434 # type: textblock
17435 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129
17436 #: ../fuse/guestmount.pod:239 ../inspector/virt-inspector.pl:603
17437 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
17438 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
17439 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
17440 #: ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305
17441 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
17442 #: ../tools/virt-list-partitions.pl:278
17443 msgid ""
17444 "This program is distributed in the hope that it will be useful, but WITHOUT "
17445 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17446 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17447 "more details."
17448 msgstr ""
17449
17450 # type: textblock
17451 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134
17452 #: ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:608
17453 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
17454 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
17455 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
17456 #: ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310
17457 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
17458 #: ../tools/virt-list-partitions.pl:283
17459 msgid ""
17460 "You should have received a copy of the GNU General Public License along with "
17461 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17462 "Ave, Cambridge, MA 02139, USA."
17463 msgstr ""
17464
17465 # type: =head2
17466 #: ../fish/guestfish-actions.pod:1
17467 msgid "add-cdrom"
17468 msgstr ""
17469
17470 # type: verbatim
17471 #: ../fish/guestfish-actions.pod:3
17472 #, no-wrap
17473 msgid ""
17474 " add-cdrom filename\n"
17475 "\n"
17476 msgstr ""
17477
17478 # type: textblock
17479 #: ../fish/guestfish-actions.pod:15
17480 msgid ""
17481 "This call checks for the existence of C<filename>.  This stops you from "
17482 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17483 "and C<http:> URLs.  To specify those, use the general L</config> call "
17484 "instead."
17485 msgstr ""
17486
17487 # type: textblock
17488 #: ../fish/guestfish-actions.pod:22
17489 msgid ""
17490 "If you just want to add an ISO file (often you use this as an efficient way "
17491 "to transfer large files into the guest), then you should probably use L</add-"
17492 "drive-ro> instead."
17493 msgstr ""
17494
17495 # type: =head2
17496 #: ../fish/guestfish-actions.pod:35
17497 msgid "add-drive"
17498 msgstr ""
17499
17500 # type: verbatim
17501 #: ../fish/guestfish-actions.pod:37
17502 #, no-wrap
17503 msgid ""
17504 " add-drive filename\n"
17505 "\n"
17506 msgstr ""
17507
17508 # type: textblock
17509 #: ../fish/guestfish-actions.pod:39
17510 msgid ""
17511 "This function is the equivalent of calling L</add-drive-opts> with no "
17512 "optional parameters, so the disk is added writable, with the format being "
17513 "detected automatically."
17514 msgstr ""
17515
17516 # type: textblock
17517 #: ../fish/guestfish-actions.pod:43
17518 msgid ""
17519 "Automatic detection of the format opens you up to a potential security hole "
17520 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17521 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17522 "you should think about replacing calls to this function with calls to L</add-"
17523 "drive-opts>, and specifying the format."
17524 msgstr ""
17525
17526 # type: =head2
17527 #: ../fish/guestfish-actions.pod:50
17528 msgid "add-drive-opts"
17529 msgstr ""
17530
17531 # type: =head2
17532 #: ../fish/guestfish-actions.pod:52
17533 msgid "add"
17534 msgstr ""
17535
17536 # type: verbatim
17537 #: ../fish/guestfish-actions.pod:54
17538 #, no-wrap
17539 msgid ""
17540 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17541 "\n"
17542 msgstr ""
17543
17544 # type: textblock
17545 #: ../fish/guestfish-actions.pod:81
17546 msgid ""
17547 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
17548 "add-drive-ro>) then the format is automatically detected.  Possible formats "
17549 "include C<raw> and C<qcow2>."
17550 msgstr ""
17551
17552 # type: textblock
17553 #: ../fish/guestfish-actions.pod:92
17554 msgid ""
17555 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
17556 "add-drive-with-if> call (q.v.)"
17557 msgstr ""
17558
17559 # type: textblock
17560 #: ../fish/guestfish-actions.pod:97
17561 msgid ""
17562 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
17563 msgstr ""
17564
17565 # type: =head2
17566 #: ../fish/guestfish-actions.pod:99
17567 msgid "add-drive-ro"
17568 msgstr ""
17569
17570 # type: =head2
17571 #: ../fish/guestfish-actions.pod:101
17572 msgid "add-ro"
17573 msgstr ""
17574
17575 # type: verbatim
17576 #: ../fish/guestfish-actions.pod:103
17577 #, no-wrap
17578 msgid ""
17579 " add-drive-ro filename\n"
17580 "\n"
17581 msgstr ""
17582
17583 # type: textblock
17584 #: ../fish/guestfish-actions.pod:105
17585 msgid ""
17586 "This function is the equivalent of calling L</add-drive-opts> with the "
17587 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17588 "is added read-only, with the format being detected automatically."
17589 msgstr ""
17590
17591 # type: =head2
17592 #: ../fish/guestfish-actions.pod:110
17593 msgid "add-drive-ro-with-if"
17594 msgstr ""
17595
17596 # type: verbatim
17597 #: ../fish/guestfish-actions.pod:112
17598 #, no-wrap
17599 msgid ""
17600 " add-drive-ro-with-if filename iface\n"
17601 "\n"
17602 msgstr ""
17603
17604 # type: textblock
17605 #: ../fish/guestfish-actions.pod:114
17606 msgid ""
17607 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17608 "interface emulation to use at run time."
17609 msgstr ""
17610
17611 # type: =head2
17612 #: ../fish/guestfish-actions.pod:124
17613 msgid "add-drive-with-if"
17614 msgstr ""
17615
17616 # type: verbatim
17617 #: ../fish/guestfish-actions.pod:126
17618 #, no-wrap
17619 msgid ""
17620 " add-drive-with-if filename iface\n"
17621 "\n"
17622 msgstr ""
17623
17624 # type: textblock
17625 #: ../fish/guestfish-actions.pod:128
17626 msgid ""
17627 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17628 "interface emulation to use at run time."
17629 msgstr ""
17630
17631 # type: =head2
17632 #: ../fish/guestfish-actions.pod:138
17633 msgid "aug-clear"
17634 msgstr ""
17635
17636 # type: verbatim
17637 #: ../fish/guestfish-actions.pod:140
17638 #, no-wrap
17639 msgid ""
17640 " aug-clear augpath\n"
17641 "\n"
17642 msgstr ""
17643
17644 # type: =head2
17645 #: ../fish/guestfish-actions.pod:145
17646 msgid "aug-close"
17647 msgstr ""
17648
17649 # type: verbatim
17650 #: ../fish/guestfish-actions.pod:147
17651 #, no-wrap
17652 msgid ""
17653 " aug-close\n"
17654 "\n"
17655 msgstr ""
17656
17657 # type: textblock
17658 #: ../fish/guestfish-actions.pod:149
17659 msgid ""
17660 "Close the current Augeas handle and free up any resources used by it.  After "
17661 "calling this, you have to call L</aug-init> again before you can use any "
17662 "other Augeas functions."
17663 msgstr ""
17664
17665 # type: =head2
17666 #: ../fish/guestfish-actions.pod:154
17667 msgid "aug-defnode"
17668 msgstr ""
17669
17670 # type: verbatim
17671 #: ../fish/guestfish-actions.pod:156
17672 #, no-wrap
17673 msgid ""
17674 " aug-defnode name expr val\n"
17675 "\n"
17676 msgstr ""
17677
17678 # type: textblock
17679 #: ../fish/guestfish-actions.pod:161
17680 msgid ""
17681 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17682 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17683 "containing that single node."
17684 msgstr ""
17685
17686 # type: =head2
17687 #: ../fish/guestfish-actions.pod:169
17688 msgid "aug-defvar"
17689 msgstr ""
17690
17691 # type: verbatim
17692 #: ../fish/guestfish-actions.pod:171
17693 #, no-wrap
17694 msgid ""
17695 " aug-defvar name expr\n"
17696 "\n"
17697 msgstr ""
17698
17699 # type: =head2
17700 #: ../fish/guestfish-actions.pod:180
17701 msgid "aug-get"
17702 msgstr ""
17703
17704 # type: verbatim
17705 #: ../fish/guestfish-actions.pod:182
17706 #, no-wrap
17707 msgid ""
17708 " aug-get augpath\n"
17709 "\n"
17710 msgstr ""
17711
17712 # type: =head2
17713 #: ../fish/guestfish-actions.pod:187
17714 msgid "aug-init"
17715 msgstr ""
17716
17717 # type: verbatim
17718 #: ../fish/guestfish-actions.pod:189
17719 #, no-wrap
17720 msgid ""
17721 " aug-init root flags\n"
17722 "\n"
17723 msgstr ""
17724
17725 # type: textblock
17726 #: ../fish/guestfish-actions.pod:195
17727 msgid "You must call this before using any other L</aug-*> commands."
17728 msgstr ""
17729
17730 # type: textblock
17731 #: ../fish/guestfish-actions.pod:230
17732 msgid "Do not load the tree in L</aug-init>."
17733 msgstr ""
17734
17735 # type: textblock
17736 #: ../fish/guestfish-actions.pod:234
17737 msgid "To close the handle, you can call L</aug-close>."
17738 msgstr ""
17739
17740 # type: =head2
17741 #: ../fish/guestfish-actions.pod:238
17742 msgid "aug-insert"
17743 msgstr ""
17744
17745 # type: verbatim
17746 #: ../fish/guestfish-actions.pod:240
17747 #, no-wrap
17748 msgid ""
17749 " aug-insert augpath label true|false\n"
17750 "\n"
17751 msgstr ""
17752
17753 # type: =head2
17754 #: ../fish/guestfish-actions.pod:250
17755 msgid "aug-load"
17756 msgstr ""
17757
17758 # type: verbatim
17759 #: ../fish/guestfish-actions.pod:252
17760 #, no-wrap
17761 msgid ""
17762 " aug-load\n"
17763 "\n"
17764 msgstr ""
17765
17766 # type: =head2
17767 #: ../fish/guestfish-actions.pod:259
17768 msgid "aug-ls"
17769 msgstr ""
17770
17771 # type: verbatim
17772 #: ../fish/guestfish-actions.pod:261
17773 #, no-wrap
17774 msgid ""
17775 " aug-ls augpath\n"
17776 "\n"
17777 msgstr ""
17778
17779 # type: textblock
17780 #: ../fish/guestfish-actions.pod:263
17781 msgid ""
17782 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17783 "resulting nodes into alphabetical order."
17784 msgstr ""
17785
17786 # type: =head2
17787 #: ../fish/guestfish-actions.pod:266
17788 msgid "aug-match"
17789 msgstr ""
17790
17791 # type: verbatim
17792 #: ../fish/guestfish-actions.pod:268
17793 #, no-wrap
17794 msgid ""
17795 " aug-match augpath\n"
17796 "\n"
17797 msgstr ""
17798
17799 # type: =head2
17800 #: ../fish/guestfish-actions.pod:274
17801 msgid "aug-mv"
17802 msgstr ""
17803
17804 # type: verbatim
17805 #: ../fish/guestfish-actions.pod:276
17806 #, no-wrap
17807 msgid ""
17808 " aug-mv src dest\n"
17809 "\n"
17810 msgstr ""
17811
17812 # type: =head2
17813 #: ../fish/guestfish-actions.pod:281
17814 msgid "aug-rm"
17815 msgstr ""
17816
17817 # type: verbatim
17818 #: ../fish/guestfish-actions.pod:283
17819 #, no-wrap
17820 msgid ""
17821 " aug-rm augpath\n"
17822 "\n"
17823 msgstr ""
17824
17825 # type: =head2
17826 #: ../fish/guestfish-actions.pod:289
17827 msgid "aug-save"
17828 msgstr ""
17829
17830 # type: verbatim
17831 #: ../fish/guestfish-actions.pod:291
17832 #, no-wrap
17833 msgid ""
17834 " aug-save\n"
17835 "\n"
17836 msgstr ""
17837
17838 # type: textblock
17839 #: ../fish/guestfish-actions.pod:295
17840 msgid ""
17841 "The flags which were passed to L</aug-init> affect exactly how files are "
17842 "saved."
17843 msgstr ""
17844
17845 # type: =head2
17846 #: ../fish/guestfish-actions.pod:298
17847 msgid "aug-set"
17848 msgstr ""
17849
17850 # type: verbatim
17851 #: ../fish/guestfish-actions.pod:300
17852 #, no-wrap
17853 msgid ""
17854 " aug-set augpath val\n"
17855 "\n"
17856 msgstr ""
17857
17858 # type: textblock
17859 #: ../fish/guestfish-actions.pod:304
17860 msgid ""
17861 "In the Augeas API, it is possible to clear a node by setting the value to "
17862 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17863 "this call.  Instead you must use the L</aug-clear> call."
17864 msgstr ""
17865
17866 # type: =head2
17867 #: ../fish/guestfish-actions.pod:309
17868 msgid "available"
17869 msgstr ""
17870
17871 # type: verbatim
17872 #: ../fish/guestfish-actions.pod:311
17873 #, no-wrap
17874 msgid ""
17875 " available 'groups ...'\n"
17876 "\n"
17877 msgstr ""
17878
17879 # type: textblock
17880 #: ../fish/guestfish-actions.pod:317
17881 msgid ""
17882 "The libguestfs groups, and the functions that those groups correspond to, "
17883 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17884 "runtime by calling L</available-all-groups>."
17885 msgstr ""
17886
17887 # type: textblock
17888 #: ../fish/guestfish-actions.pod:341
17889 msgid "You must call L</launch> before calling this function."
17890 msgstr ""
17891
17892 # type: textblock
17893 #: ../fish/guestfish-actions.pod:363
17894 msgid ""
17895 "This call was added in version C<1.0.80>.  In previous versions of "
17896 "libguestfs all you could do would be to speculatively execute a command to "
17897 "find out if the daemon implemented it.  See also L</version>."
17898 msgstr ""
17899
17900 # type: =head2
17901 #: ../fish/guestfish-actions.pod:370
17902 msgid "available-all-groups"
17903 msgstr ""
17904
17905 # type: verbatim
17906 #: ../fish/guestfish-actions.pod:372
17907 #, no-wrap
17908 msgid ""
17909 " available-all-groups\n"
17910 "\n"
17911 msgstr ""
17912
17913 # type: textblock
17914 #: ../fish/guestfish-actions.pod:374
17915 msgid ""
17916 "This command returns a list of all optional groups that this daemon knows "
17917 "about.  Note this returns both supported and unsupported groups.  To find "
17918 "out which ones the daemon can actually support you have to call L</"
17919 "available> on each member of the returned list."
17920 msgstr ""
17921
17922 # type: textblock
17923 #: ../fish/guestfish-actions.pod:380
17924 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17925 msgstr ""
17926
17927 # type: =head2
17928 #: ../fish/guestfish-actions.pod:382
17929 msgid "base64-in"
17930 msgstr ""
17931
17932 # type: verbatim
17933 #: ../fish/guestfish-actions.pod:384
17934 #, no-wrap
17935 msgid ""
17936 " base64-in (base64file|-) filename\n"
17937 "\n"
17938 msgstr ""
17939
17940 # type: textblock
17941 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398
17942 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769
17943 #: ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835
17944 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3928
17945 #: ../fish/guestfish-actions.pod:3940 ../fish/guestfish-actions.pod:3951
17946 #: ../fish/guestfish-actions.pod:3962 ../fish/guestfish-actions.pod:4014
17947 #: ../fish/guestfish-actions.pod:4023 ../fish/guestfish-actions.pod:4077
17948 #: ../fish/guestfish-actions.pod:4100
17949 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17950 msgstr ""
17951
17952 # type: =head2
17953 #: ../fish/guestfish-actions.pod:391
17954 msgid "base64-out"
17955 msgstr ""
17956
17957 # type: verbatim
17958 #: ../fish/guestfish-actions.pod:393
17959 #, no-wrap
17960 msgid ""
17961 " base64-out filename (base64file|-)\n"
17962 "\n"
17963 msgstr ""
17964
17965 # type: =head2
17966 #: ../fish/guestfish-actions.pod:400
17967 msgid "blockdev-flushbufs"
17968 msgstr ""
17969
17970 # type: verbatim
17971 #: ../fish/guestfish-actions.pod:402
17972 #, no-wrap
17973 msgid ""
17974 " blockdev-flushbufs device\n"
17975 "\n"
17976 msgstr ""
17977
17978 # type: =head2
17979 #: ../fish/guestfish-actions.pod:409
17980 msgid "blockdev-getbsz"
17981 msgstr ""
17982
17983 # type: verbatim
17984 #: ../fish/guestfish-actions.pod:411
17985 #, no-wrap
17986 msgid ""
17987 " blockdev-getbsz device\n"
17988 "\n"
17989 msgstr ""
17990
17991 # type: =head2
17992 #: ../fish/guestfish-actions.pod:420
17993 msgid "blockdev-getro"
17994 msgstr ""
17995
17996 # type: verbatim
17997 #: ../fish/guestfish-actions.pod:422
17998 #, no-wrap
17999 msgid ""
18000 " blockdev-getro device\n"
18001 "\n"
18002 msgstr ""
18003
18004 # type: =head2
18005 #: ../fish/guestfish-actions.pod:429
18006 msgid "blockdev-getsize64"
18007 msgstr ""
18008
18009 # type: verbatim
18010 #: ../fish/guestfish-actions.pod:431
18011 #, no-wrap
18012 msgid ""
18013 " blockdev-getsize64 device\n"
18014 "\n"
18015 msgstr ""
18016
18017 # type: textblock
18018 #: ../fish/guestfish-actions.pod:435
18019 msgid "See also L</blockdev-getsz>."
18020 msgstr ""
18021
18022 # type: =head2
18023 #: ../fish/guestfish-actions.pod:439
18024 msgid "blockdev-getss"
18025 msgstr ""
18026
18027 # type: verbatim
18028 #: ../fish/guestfish-actions.pod:441
18029 #, no-wrap
18030 msgid ""
18031 " blockdev-getss device\n"
18032 "\n"
18033 msgstr ""
18034
18035 # type: textblock
18036 #: ../fish/guestfish-actions.pod:446
18037 msgid ""
18038 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18039 msgstr ""
18040
18041 # type: =head2
18042 #: ../fish/guestfish-actions.pod:451
18043 msgid "blockdev-getsz"
18044 msgstr ""
18045
18046 # type: verbatim
18047 #: ../fish/guestfish-actions.pod:453
18048 #, no-wrap
18049 msgid ""
18050 " blockdev-getsz device\n"
18051 "\n"
18052 msgstr ""
18053
18054 # type: textblock
18055 #: ../fish/guestfish-actions.pod:458
18056 msgid ""
18057 "See also L</blockdev-getss> for the real sector size of the device, and L</"
18058 "blockdev-getsize64> for the more useful I<size in bytes>."
18059 msgstr ""
18060
18061 # type: =head2
18062 #: ../fish/guestfish-actions.pod:464
18063 msgid "blockdev-rereadpt"
18064 msgstr ""
18065
18066 # type: verbatim
18067 #: ../fish/guestfish-actions.pod:466
18068 #, no-wrap
18069 msgid ""
18070 " blockdev-rereadpt device\n"
18071 "\n"
18072 msgstr ""
18073
18074 # type: =head2
18075 #: ../fish/guestfish-actions.pod:472
18076 msgid "blockdev-setbsz"
18077 msgstr ""
18078
18079 # type: verbatim
18080 #: ../fish/guestfish-actions.pod:474
18081 #, no-wrap
18082 msgid ""
18083 " blockdev-setbsz device blocksize\n"
18084 "\n"
18085 msgstr ""
18086
18087 # type: =head2
18088 #: ../fish/guestfish-actions.pod:483
18089 msgid "blockdev-setro"
18090 msgstr ""
18091
18092 # type: verbatim
18093 #: ../fish/guestfish-actions.pod:485
18094 #, no-wrap
18095 msgid ""
18096 " blockdev-setro device\n"
18097 "\n"
18098 msgstr ""
18099
18100 # type: =head2
18101 #: ../fish/guestfish-actions.pod:491
18102 msgid "blockdev-setrw"
18103 msgstr ""
18104
18105 # type: verbatim
18106 #: ../fish/guestfish-actions.pod:493
18107 #, no-wrap
18108 msgid ""
18109 " blockdev-setrw device\n"
18110 "\n"
18111 msgstr ""
18112
18113 # type: =head2
18114 #: ../fish/guestfish-actions.pod:499
18115 msgid "case-sensitive-path"
18116 msgstr ""
18117
18118 # type: verbatim
18119 #: ../fish/guestfish-actions.pod:501
18120 #, no-wrap
18121 msgid ""
18122 " case-sensitive-path path\n"
18123 "\n"
18124 msgstr ""
18125
18126 # type: textblock
18127 #: ../fish/guestfish-actions.pod:525
18128 msgid ""
18129 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
18130 "WINDOWS/system32\"> (the exact return value would depend on details of how "
18131 "the directories were originally created under Windows)."
18132 msgstr ""
18133
18134 # type: textblock
18135 #: ../fish/guestfish-actions.pod:533
18136 msgid "See also L</realpath>."
18137 msgstr ""
18138
18139 # type: =head2
18140 #: ../fish/guestfish-actions.pod:535
18141 msgid "cat"
18142 msgstr ""
18143
18144 # type: verbatim
18145 #: ../fish/guestfish-actions.pod:537
18146 #, no-wrap
18147 msgid ""
18148 " cat path\n"
18149 "\n"
18150 msgstr ""
18151
18152 # type: textblock
18153 #: ../fish/guestfish-actions.pod:541
18154 msgid ""
18155 "Note that this function cannot correctly handle binary files (specifically, "
18156 "files containing C<\\0> character which is treated as end of string).  For "
18157 "those you need to use the L</read-file> or L</download> functions which have "
18158 "a more complex interface."
18159 msgstr ""
18160
18161 # type: =head2
18162 #: ../fish/guestfish-actions.pod:549
18163 msgid "checksum"
18164 msgstr ""
18165
18166 # type: verbatim
18167 #: ../fish/guestfish-actions.pod:551
18168 #, no-wrap
18169 msgid ""
18170 " checksum csumtype path\n"
18171 "\n"
18172 msgstr ""
18173
18174 # type: textblock
18175 #: ../fish/guestfish-actions.pod:594
18176 msgid "To get the checksum for a device, use L</checksum-device>."
18177 msgstr ""
18178
18179 # type: textblock
18180 #: ../fish/guestfish-actions.pod:596
18181 msgid "To get the checksums for many files, use L</checksums-out>."
18182 msgstr ""
18183
18184 # type: =head2
18185 #: ../fish/guestfish-actions.pod:598
18186 msgid "checksum-device"
18187 msgstr ""
18188
18189 # type: verbatim
18190 #: ../fish/guestfish-actions.pod:600
18191 #, no-wrap
18192 msgid ""
18193 " checksum-device csumtype device\n"
18194 "\n"
18195 msgstr ""
18196
18197 # type: textblock
18198 #: ../fish/guestfish-actions.pod:602
18199 msgid ""
18200 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18201 "device named C<device>.  For the types of checksums supported see the L</"
18202 "checksum> command."
18203 msgstr ""
18204
18205 # type: =head2
18206 #: ../fish/guestfish-actions.pod:606
18207 msgid "checksums-out"
18208 msgstr ""
18209
18210 # type: verbatim
18211 #: ../fish/guestfish-actions.pod:608
18212 #, no-wrap
18213 msgid ""
18214 " checksums-out csumtype directory (sumsfile|-)\n"
18215 "\n"
18216 msgstr ""
18217
18218 # type: =head2
18219 #: ../fish/guestfish-actions.pod:624
18220 msgid "chmod"
18221 msgstr ""
18222
18223 # type: verbatim
18224 #: ../fish/guestfish-actions.pod:626
18225 #, no-wrap
18226 msgid ""
18227 " chmod mode path\n"
18228 "\n"
18229 msgstr ""
18230
18231 # type: =head2
18232 #: ../fish/guestfish-actions.pod:637
18233 msgid "chown"
18234 msgstr ""
18235
18236 # type: verbatim
18237 #: ../fish/guestfish-actions.pod:639
18238 #, no-wrap
18239 msgid ""
18240 " chown owner group path\n"
18241 "\n"
18242 msgstr ""
18243
18244 # type: =head2
18245 #: ../fish/guestfish-actions.pod:647
18246 msgid "command"
18247 msgstr ""
18248
18249 # type: verbatim
18250 #: ../fish/guestfish-actions.pod:649
18251 #, no-wrap
18252 msgid ""
18253 " command 'arguments ...'\n"
18254 "\n"
18255 msgstr ""
18256
18257 # type: textblock
18258 #: ../fish/guestfish-actions.pod:656
18259 msgid ""
18260 "The single parameter is an argv-style list of arguments.  The first element "
18261 "is the name of the program to run.  Subsequent elements are parameters.  The "
18262 "list must be non-empty (ie. must contain a program name).  Note that the "
18263 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18264 msgstr ""
18265
18266 # type: =head2
18267 #: ../fish/guestfish-actions.pod:684
18268 msgid "command-lines"
18269 msgstr ""
18270
18271 # type: verbatim
18272 #: ../fish/guestfish-actions.pod:686
18273 #, no-wrap
18274 msgid ""
18275 " command-lines 'arguments ...'\n"
18276 "\n"
18277 msgstr ""
18278
18279 # type: textblock
18280 #: ../fish/guestfish-actions.pod:688
18281 msgid ""
18282 "This is the same as L</command>, but splits the result into a list of lines."
18283 msgstr ""
18284
18285 # type: textblock
18286 #: ../fish/guestfish-actions.pod:691
18287 msgid "See also: L</sh-lines>"
18288 msgstr ""
18289
18290 # type: =head2
18291 #: ../fish/guestfish-actions.pod:696
18292 msgid "config"
18293 msgstr ""
18294
18295 # type: verbatim
18296 #: ../fish/guestfish-actions.pod:698
18297 #, no-wrap
18298 msgid ""
18299 " config qemuparam qemuvalue\n"
18300 "\n"
18301 msgstr ""
18302
18303 # type: =head2
18304 #: ../fish/guestfish-actions.pod:709
18305 msgid "copy-size"
18306 msgstr ""
18307
18308 # type: verbatim
18309 #: ../fish/guestfish-actions.pod:711
18310 #, no-wrap
18311 msgid ""
18312 " copy-size src dest size\n"
18313 "\n"
18314 msgstr ""
18315
18316 # type: =head2
18317 #: ../fish/guestfish-actions.pod:719
18318 msgid "cp"
18319 msgstr ""
18320
18321 # type: verbatim
18322 #: ../fish/guestfish-actions.pod:721
18323 #, no-wrap
18324 msgid ""
18325 " cp src dest\n"
18326 "\n"
18327 msgstr ""
18328
18329 # type: =head2
18330 #: ../fish/guestfish-actions.pod:726
18331 msgid "cp-a"
18332 msgstr ""
18333
18334 # type: verbatim
18335 #: ../fish/guestfish-actions.pod:728
18336 #, no-wrap
18337 msgid ""
18338 " cp-a src dest\n"
18339 "\n"
18340 msgstr ""
18341
18342 # type: =head2
18343 #: ../fish/guestfish-actions.pod:733
18344 msgid "dd"
18345 msgstr ""
18346
18347 # type: verbatim
18348 #: ../fish/guestfish-actions.pod:735
18349 #, no-wrap
18350 msgid ""
18351 " dd src dest\n"
18352 "\n"
18353 msgstr ""
18354
18355 # type: textblock
18356 #: ../fish/guestfish-actions.pod:742
18357 msgid ""
18358 "If the destination is a device, it must be as large or larger than the "
18359 "source file or device, otherwise the copy will fail.  This command cannot do "
18360 "partial copies (see L</copy-size>)."
18361 msgstr ""
18362
18363 # type: =head2
18364 #: ../fish/guestfish-actions.pod:746
18365 msgid "debug"
18366 msgstr ""
18367
18368 # type: verbatim
18369 #: ../fish/guestfish-actions.pod:748
18370 #, no-wrap
18371 msgid ""
18372 " debug subcmd 'extraargs ...'\n"
18373 "\n"
18374 msgstr ""
18375
18376 # type: textblock
18377 #: ../fish/guestfish-actions.pod:750
18378 msgid ""
18379 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18380 "daemon) that runs inside the qemu subprocess."
18381 msgstr ""
18382
18383 # type: =head2
18384 #: ../fish/guestfish-actions.pod:758
18385 msgid "debug-upload"
18386 msgstr ""
18387
18388 # type: verbatim
18389 #: ../fish/guestfish-actions.pod:760
18390 #, no-wrap
18391 msgid ""
18392 " debug-upload (filename|-) tmpname mode\n"
18393 "\n"
18394 msgstr ""
18395
18396 # type: textblock
18397 #: ../fish/guestfish-actions.pod:762
18398 msgid ""
18399 "The L</debug-upload> command uploads a file to the libguestfs appliance."
18400 msgstr ""
18401
18402 # type: =head2
18403 #: ../fish/guestfish-actions.pod:771
18404 msgid "df"
18405 msgstr ""
18406
18407 # type: verbatim
18408 #: ../fish/guestfish-actions.pod:773
18409 #, no-wrap
18410 msgid ""
18411 " df\n"
18412 "\n"
18413 msgstr ""
18414
18415 # type: =head2
18416 #: ../fish/guestfish-actions.pod:781
18417 msgid "df-h"
18418 msgstr ""
18419
18420 # type: verbatim
18421 #: ../fish/guestfish-actions.pod:783
18422 #, no-wrap
18423 msgid ""
18424 " df-h\n"
18425 "\n"
18426 msgstr ""
18427
18428 # type: =head2
18429 #: ../fish/guestfish-actions.pod:792
18430 msgid "dmesg"
18431 msgstr ""
18432
18433 # type: verbatim
18434 #: ../fish/guestfish-actions.pod:794
18435 #, no-wrap
18436 msgid ""
18437 " dmesg\n"
18438 "\n"
18439 msgstr ""
18440
18441 # type: textblock
18442 #: ../fish/guestfish-actions.pod:800
18443 msgid ""
18444 "Another way to get the same information is to enable verbose messages with "
18445 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18446 "before running the program."
18447 msgstr ""
18448
18449 # type: =head2
18450 #: ../fish/guestfish-actions.pod:805
18451 msgid "download"
18452 msgstr ""
18453
18454 # type: verbatim
18455 #: ../fish/guestfish-actions.pod:807
18456 #, no-wrap
18457 msgid ""
18458 " download remotefilename (filename|-)\n"
18459 "\n"
18460 msgstr ""
18461
18462 # type: textblock
18463 #: ../fish/guestfish-actions.pod:814
18464 msgid "See also L</upload>, L</cat>."
18465 msgstr ""
18466
18467 # type: =head2
18468 #: ../fish/guestfish-actions.pod:818
18469 msgid "download-offset"
18470 msgstr ""
18471
18472 # type: verbatim
18473 #: ../fish/guestfish-actions.pod:820
18474 #, no-wrap
18475 msgid ""
18476 " download-offset remotefilename (filename|-) offset size\n"
18477 "\n"
18478 msgstr ""
18479
18480 # type: textblock
18481 #: ../fish/guestfish-actions.pod:828
18482 msgid ""
18483 "Note that there is no limit on the amount of data that can be downloaded "
18484 "with this call, unlike with L</pread>, and this call always reads the full "
18485 "amount unless an error occurs."
18486 msgstr ""
18487
18488 # type: textblock
18489 #: ../fish/guestfish-actions.pod:833
18490 msgid "See also L</download>, L</pread>."
18491 msgstr ""
18492
18493 # type: =head2
18494 #: ../fish/guestfish-actions.pod:837
18495 msgid "drop-caches"
18496 msgstr ""
18497
18498 # type: verbatim
18499 #: ../fish/guestfish-actions.pod:839
18500 #, no-wrap
18501 msgid ""
18502 " drop-caches whattodrop\n"
18503 "\n"
18504 msgstr ""
18505
18506 # type: =head2
18507 #: ../fish/guestfish-actions.pod:851
18508 msgid "du"
18509 msgstr ""
18510
18511 # type: verbatim
18512 #: ../fish/guestfish-actions.pod:853
18513 #, no-wrap
18514 msgid ""
18515 " du path\n"
18516 "\n"
18517 msgstr ""
18518
18519 # type: =head2
18520 #: ../fish/guestfish-actions.pod:865
18521 msgid "e2fsck-f"
18522 msgstr ""
18523
18524 # type: verbatim
18525 #: ../fish/guestfish-actions.pod:867
18526 #, no-wrap
18527 msgid ""
18528 " e2fsck-f device\n"
18529 "\n"
18530 msgstr ""
18531
18532 # type: textblock
18533 #: ../fish/guestfish-actions.pod:873
18534 msgid ""
18535 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18536 "should use L</fsck>."
18537 msgstr ""
18538
18539 # type: =head2
18540 #: ../fish/guestfish-actions.pod:876
18541 msgid "echo-daemon"
18542 msgstr ""
18543
18544 # type: verbatim
18545 #: ../fish/guestfish-actions.pod:878
18546 #, no-wrap
18547 msgid ""
18548 " echo-daemon 'words ...'\n"
18549 "\n"
18550 msgstr ""
18551
18552 # type: textblock
18553 #: ../fish/guestfish-actions.pod:885
18554 msgid "See also L</ping-daemon>."
18555 msgstr ""
18556
18557 # type: =head2
18558 #: ../fish/guestfish-actions.pod:887
18559 msgid "egrep"
18560 msgstr ""
18561
18562 # type: verbatim
18563 #: ../fish/guestfish-actions.pod:889
18564 #, no-wrap
18565 msgid ""
18566 " egrep regex path\n"
18567 "\n"
18568 msgstr ""
18569
18570 # type: =head2
18571 #: ../fish/guestfish-actions.pod:897
18572 msgid "egrepi"
18573 msgstr ""
18574
18575 # type: verbatim
18576 #: ../fish/guestfish-actions.pod:899
18577 #, no-wrap
18578 msgid ""
18579 " egrepi regex path\n"
18580 "\n"
18581 msgstr ""
18582
18583 # type: =head2
18584 #: ../fish/guestfish-actions.pod:907
18585 msgid "equal"
18586 msgstr ""
18587
18588 # type: verbatim
18589 #: ../fish/guestfish-actions.pod:909
18590 #, no-wrap
18591 msgid ""
18592 " equal file1 file2\n"
18593 "\n"
18594 msgstr ""
18595
18596 # type: =head2
18597 #: ../fish/guestfish-actions.pod:916
18598 msgid "exists"
18599 msgstr ""
18600
18601 # type: verbatim
18602 #: ../fish/guestfish-actions.pod:918
18603 #, no-wrap
18604 msgid ""
18605 " exists path\n"
18606 "\n"
18607 msgstr ""
18608
18609 # type: textblock
18610 #: ../fish/guestfish-actions.pod:923
18611 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18612 msgstr ""
18613
18614 # type: =head2
18615 #: ../fish/guestfish-actions.pod:925
18616 msgid "fallocate"
18617 msgstr ""
18618
18619 # type: verbatim
18620 #: ../fish/guestfish-actions.pod:927
18621 #, no-wrap
18622 msgid ""
18623 " fallocate path len\n"
18624 "\n"
18625 msgstr ""
18626
18627 # type: =head2
18628 #: ../fish/guestfish-actions.pod:944
18629 msgid "fallocate64"
18630 msgstr ""
18631
18632 # type: verbatim
18633 #: ../fish/guestfish-actions.pod:946
18634 #, no-wrap
18635 msgid ""
18636 " fallocate64 path len\n"
18637 "\n"
18638 msgstr ""
18639
18640 # type: textblock
18641 #: ../fish/guestfish-actions.pod:952
18642 msgid ""
18643 "Note that this call allocates disk blocks for the file.  To create a sparse "
18644 "file use L</truncate-size> instead."
18645 msgstr ""
18646
18647 # type: textblock
18648 #: ../fish/guestfish-actions.pod:955
18649 msgid ""
18650 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18651 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18652 "maximum size of files created through that call to 1GB."
18653 msgstr ""
18654
18655 # type: =head2
18656 #: ../fish/guestfish-actions.pod:964
18657 msgid "fgrep"
18658 msgstr ""
18659
18660 # type: verbatim
18661 #: ../fish/guestfish-actions.pod:966
18662 #, no-wrap
18663 msgid ""
18664 " fgrep pattern path\n"
18665 "\n"
18666 msgstr ""
18667
18668 # type: =head2
18669 #: ../fish/guestfish-actions.pod:974
18670 msgid "fgrepi"
18671 msgstr ""
18672
18673 # type: verbatim
18674 #: ../fish/guestfish-actions.pod:976
18675 #, no-wrap
18676 msgid ""
18677 " fgrepi pattern path\n"
18678 "\n"
18679 msgstr ""
18680
18681 # type: =head2
18682 #: ../fish/guestfish-actions.pod:984
18683 msgid "file"
18684 msgstr ""
18685
18686 # type: verbatim
18687 #: ../fish/guestfish-actions.pod:986
18688 #, no-wrap
18689 msgid ""
18690 " file path\n"
18691 "\n"
18692 msgstr ""
18693
18694 # type: textblock
18695 #: ../fish/guestfish-actions.pod:998
18696 msgid ""
18697 "This command can also be used on C</dev/> devices (and partitions, LV "
18698 "names).  You can for example use this to determine if a device contains a "
18699 "filesystem, although it's usually better to use L</vfs-type>."
18700 msgstr ""
18701
18702 # type: =head2
18703 #: ../fish/guestfish-actions.pod:1008
18704 msgid "file-architecture"
18705 msgstr ""
18706
18707 # type: verbatim
18708 #: ../fish/guestfish-actions.pod:1010
18709 #, no-wrap
18710 msgid ""
18711 " file-architecture filename\n"
18712 "\n"
18713 msgstr ""
18714
18715 # type: =head2
18716 #: ../fish/guestfish-actions.pod:1113
18717 msgid "filesize"
18718 msgstr ""
18719
18720 # type: verbatim
18721 #: ../fish/guestfish-actions.pod:1115
18722 #, no-wrap
18723 msgid ""
18724 " filesize file\n"
18725 "\n"
18726 msgstr ""
18727
18728 # type: textblock
18729 #: ../fish/guestfish-actions.pod:1119
18730 msgid ""
18731 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
18732 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
18733 msgstr ""
18734
18735 # type: =head2
18736 #: ../fish/guestfish-actions.pod:1123
18737 msgid "fill"
18738 msgstr ""
18739
18740 # type: verbatim
18741 #: ../fish/guestfish-actions.pod:1125
18742 #, no-wrap
18743 msgid ""
18744 " fill c len path\n"
18745 "\n"
18746 msgstr ""
18747
18748 # type: textblock
18749 #: ../fish/guestfish-actions.pod:1131
18750 msgid ""
18751 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18752 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18753 "L</fill-pattern>."
18754 msgstr ""
18755
18756 # type: =head2
18757 #: ../fish/guestfish-actions.pod:1136
18758 msgid "fill-pattern"
18759 msgstr ""
18760
18761 # type: verbatim
18762 #: ../fish/guestfish-actions.pod:1138
18763 #, no-wrap
18764 msgid ""
18765 " fill-pattern pattern len path\n"
18766 "\n"
18767 msgstr ""
18768
18769 # type: textblock
18770 #: ../fish/guestfish-actions.pod:1140
18771 msgid ""
18772 "This function is like L</fill> except that it creates a new file of length "
18773 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18774 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18775 "bytes."
18776 msgstr ""
18777
18778 # type: =head2
18779 #: ../fish/guestfish-actions.pod:1145
18780 msgid "find"
18781 msgstr ""
18782
18783 # type: verbatim
18784 #: ../fish/guestfish-actions.pod:1147
18785 #, no-wrap
18786 msgid ""
18787 " find directory\n"
18788 "\n"
18789 msgstr ""
18790
18791 # type: textblock
18792 #: ../fish/guestfish-actions.pod:1161
18793 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18794 msgstr ""
18795
18796 # type: textblock
18797 #: ../fish/guestfish-actions.pod:1174
18798 msgid "See also L</find0>."
18799 msgstr ""
18800
18801 # type: =head2
18802 #: ../fish/guestfish-actions.pod:1179
18803 msgid "find0"
18804 msgstr ""
18805
18806 # type: verbatim
18807 #: ../fish/guestfish-actions.pod:1181
18808 #, no-wrap
18809 msgid ""
18810 " find0 directory (files|-)\n"
18811 "\n"
18812 msgstr ""
18813
18814 # type: textblock
18815 #: ../fish/guestfish-actions.pod:1187
18816 msgid ""
18817 "This command works the same way as L</find> with the following exceptions:"
18818 msgstr ""
18819
18820 # type: =head2
18821 #: ../fish/guestfish-actions.pod:1214
18822 msgid "findfs-label"
18823 msgstr ""
18824
18825 # type: verbatim
18826 #: ../fish/guestfish-actions.pod:1216
18827 #, no-wrap
18828 msgid ""
18829 " findfs-label label\n"
18830 "\n"
18831 msgstr ""
18832
18833 # type: textblock
18834 #: ../fish/guestfish-actions.pod:1222
18835 msgid "To find the label of a filesystem, use L</vfs-label>."
18836 msgstr ""
18837
18838 # type: =head2
18839 #: ../fish/guestfish-actions.pod:1224
18840 msgid "findfs-uuid"
18841 msgstr ""
18842
18843 # type: verbatim
18844 #: ../fish/guestfish-actions.pod:1226
18845 #, no-wrap
18846 msgid ""
18847 " findfs-uuid uuid\n"
18848 "\n"
18849 msgstr ""
18850
18851 # type: textblock
18852 #: ../fish/guestfish-actions.pod:1232
18853 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18854 msgstr ""
18855
18856 # type: =head2
18857 #: ../fish/guestfish-actions.pod:1234
18858 msgid "fsck"
18859 msgstr ""
18860
18861 # type: verbatim
18862 #: ../fish/guestfish-actions.pod:1236
18863 #, no-wrap
18864 msgid ""
18865 " fsck fstype device\n"
18866 "\n"
18867 msgstr ""
18868
18869 # type: =head2
18870 #: ../fish/guestfish-actions.pod:1266
18871 msgid "get-append"
18872 msgstr ""
18873
18874 # type: verbatim
18875 #: ../fish/guestfish-actions.pod:1268
18876 #, no-wrap
18877 msgid ""
18878 " get-append\n"
18879 "\n"
18880 msgstr ""
18881
18882 # type: =head2
18883 #: ../fish/guestfish-actions.pod:1275
18884 msgid "get-autosync"
18885 msgstr ""
18886
18887 # type: verbatim
18888 #: ../fish/guestfish-actions.pod:1277
18889 #, no-wrap
18890 msgid ""
18891 " get-autosync\n"
18892 "\n"
18893 msgstr ""
18894
18895 # type: =head2
18896 #: ../fish/guestfish-actions.pod:1281
18897 msgid "get-direct"
18898 msgstr ""
18899
18900 # type: verbatim
18901 #: ../fish/guestfish-actions.pod:1283
18902 #, no-wrap
18903 msgid ""
18904 " get-direct\n"
18905 "\n"
18906 msgstr ""
18907
18908 # type: =head2
18909 #: ../fish/guestfish-actions.pod:1287
18910 msgid "get-e2label"
18911 msgstr ""
18912
18913 # type: verbatim
18914 #: ../fish/guestfish-actions.pod:1289
18915 #, no-wrap
18916 msgid ""
18917 " get-e2label device\n"
18918 "\n"
18919 msgstr ""
18920
18921 # type: =head2
18922 #: ../fish/guestfish-actions.pod:1301
18923 msgid "get-e2uuid"
18924 msgstr ""
18925
18926 # type: verbatim
18927 #: ../fish/guestfish-actions.pod:1303
18928 #, no-wrap
18929 msgid ""
18930 " get-e2uuid device\n"
18931 "\n"
18932 msgstr ""
18933
18934 # type: =head2
18935 #: ../fish/guestfish-actions.pod:1315
18936 msgid "get-memsize"
18937 msgstr ""
18938
18939 # type: verbatim
18940 #: ../fish/guestfish-actions.pod:1317
18941 #, no-wrap
18942 msgid ""
18943 " get-memsize\n"
18944 "\n"
18945 msgstr ""
18946
18947 # type: textblock
18948 #: ../fish/guestfish-actions.pod:1322
18949 msgid ""
18950 "If L</set-memsize> was not called on this handle, and if "
18951 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18952 "value for memsize."
18953 msgstr ""
18954
18955 # type: =head2
18956 #: ../fish/guestfish-actions.pod:1329
18957 msgid "get-network"
18958 msgstr ""
18959
18960 # type: verbatim
18961 #: ../fish/guestfish-actions.pod:1331
18962 #, no-wrap
18963 msgid ""
18964 " get-network\n"
18965 "\n"
18966 msgstr ""
18967
18968 # type: =head2
18969 #: ../fish/guestfish-actions.pod:1335
18970 msgid "get-path"
18971 msgstr ""
18972
18973 # type: verbatim
18974 #: ../fish/guestfish-actions.pod:1337
18975 #, no-wrap
18976 msgid ""
18977 " get-path\n"
18978 "\n"
18979 msgstr ""
18980
18981 # type: =head2
18982 #: ../fish/guestfish-actions.pod:1344
18983 msgid "get-pid"
18984 msgstr ""
18985
18986 # type: =head2
18987 #: ../fish/guestfish-actions.pod:1346
18988 msgid "pid"
18989 msgstr ""
18990
18991 # type: verbatim
18992 #: ../fish/guestfish-actions.pod:1348
18993 #, no-wrap
18994 msgid ""
18995 " get-pid\n"
18996 "\n"
18997 msgstr ""
18998
18999 # type: =head2
19000 #: ../fish/guestfish-actions.pod:1355
19001 msgid "get-qemu"
19002 msgstr ""
19003
19004 # type: verbatim
19005 #: ../fish/guestfish-actions.pod:1357
19006 #, no-wrap
19007 msgid ""
19008 " get-qemu\n"
19009 "\n"
19010 msgstr ""
19011
19012 # type: =head2
19013 #: ../fish/guestfish-actions.pod:1364
19014 msgid "get-recovery-proc"
19015 msgstr ""
19016
19017 # type: verbatim
19018 #: ../fish/guestfish-actions.pod:1366
19019 #, no-wrap
19020 msgid ""
19021 " get-recovery-proc\n"
19022 "\n"
19023 msgstr ""
19024
19025 # type: =head2
19026 #: ../fish/guestfish-actions.pod:1370
19027 msgid "get-selinux"
19028 msgstr ""
19029
19030 # type: verbatim
19031 #: ../fish/guestfish-actions.pod:1372
19032 #, no-wrap
19033 msgid ""
19034 " get-selinux\n"
19035 "\n"
19036 msgstr ""
19037
19038 # type: textblock
19039 #: ../fish/guestfish-actions.pod:1374
19040 msgid ""
19041 "This returns the current setting of the selinux flag which is passed to the "
19042 "appliance at boot time.  See L</set-selinux>."
19043 msgstr ""
19044
19045 # type: =head2
19046 #: ../fish/guestfish-actions.pod:1380
19047 msgid "get-state"
19048 msgstr ""
19049
19050 # type: verbatim
19051 #: ../fish/guestfish-actions.pod:1382
19052 #, no-wrap
19053 msgid ""
19054 " get-state\n"
19055 "\n"
19056 msgstr ""
19057
19058 # type: =head2
19059 #: ../fish/guestfish-actions.pod:1389
19060 msgid "get-trace"
19061 msgstr ""
19062
19063 # type: verbatim
19064 #: ../fish/guestfish-actions.pod:1391
19065 #, no-wrap
19066 msgid ""
19067 " get-trace\n"
19068 "\n"
19069 msgstr ""
19070
19071 # type: =head2
19072 #: ../fish/guestfish-actions.pod:1395
19073 msgid "get-umask"
19074 msgstr ""
19075
19076 # type: verbatim
19077 #: ../fish/guestfish-actions.pod:1397
19078 #, no-wrap
19079 msgid ""
19080 " get-umask\n"
19081 "\n"
19082 msgstr ""
19083
19084 # type: textblock
19085 #: ../fish/guestfish-actions.pod:1399
19086 msgid ""
19087 "Return the current umask.  By default the umask is C<022> unless it has been "
19088 "set by calling L</umask>."
19089 msgstr ""
19090
19091 # type: =head2
19092 #: ../fish/guestfish-actions.pod:1402
19093 msgid "get-verbose"
19094 msgstr ""
19095
19096 # type: verbatim
19097 #: ../fish/guestfish-actions.pod:1404
19098 #, no-wrap
19099 msgid ""
19100 " get-verbose\n"
19101 "\n"
19102 msgstr ""
19103
19104 # type: =head2
19105 #: ../fish/guestfish-actions.pod:1408
19106 msgid "getcon"
19107 msgstr ""
19108
19109 # type: verbatim
19110 #: ../fish/guestfish-actions.pod:1410
19111 #, no-wrap
19112 msgid ""
19113 " getcon\n"
19114 "\n"
19115 msgstr ""
19116
19117 # type: textblock
19118 #: ../fish/guestfish-actions.pod:1414
19119 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19120 msgstr ""
19121
19122 # type: =head2
19123 #: ../fish/guestfish-actions.pod:1417
19124 msgid "getxattrs"
19125 msgstr ""
19126
19127 # type: verbatim
19128 #: ../fish/guestfish-actions.pod:1419
19129 #, no-wrap
19130 msgid ""
19131 " getxattrs path\n"
19132 "\n"
19133 msgstr ""
19134
19135 # type: textblock
19136 #: ../fish/guestfish-actions.pod:1427
19137 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19138 msgstr ""
19139
19140 # type: =head2
19141 #: ../fish/guestfish-actions.pod:1429
19142 msgid "glob-expand"
19143 msgstr ""
19144
19145 # type: verbatim
19146 #: ../fish/guestfish-actions.pod:1431
19147 #, no-wrap
19148 msgid ""
19149 " glob-expand pattern\n"
19150 "\n"
19151 msgstr ""
19152
19153 # type: =head2
19154 #: ../fish/guestfish-actions.pod:1444
19155 msgid "grep"
19156 msgstr ""
19157
19158 # type: verbatim
19159 #: ../fish/guestfish-actions.pod:1446
19160 #, no-wrap
19161 msgid ""
19162 " grep regex path\n"
19163 "\n"
19164 msgstr ""
19165
19166 # type: =head2
19167 #: ../fish/guestfish-actions.pod:1454
19168 msgid "grepi"
19169 msgstr ""
19170
19171 # type: verbatim
19172 #: ../fish/guestfish-actions.pod:1456
19173 #, no-wrap
19174 msgid ""
19175 " grepi regex path\n"
19176 "\n"
19177 msgstr ""
19178
19179 # type: =head2
19180 #: ../fish/guestfish-actions.pod:1464
19181 msgid "grub-install"
19182 msgstr ""
19183
19184 # type: verbatim
19185 #: ../fish/guestfish-actions.pod:1466
19186 #, no-wrap
19187 msgid ""
19188 " grub-install root device\n"
19189 "\n"
19190 msgstr ""
19191
19192 # type: =head2
19193 #: ../fish/guestfish-actions.pod:1482
19194 msgid "head"
19195 msgstr ""
19196
19197 # type: verbatim
19198 #: ../fish/guestfish-actions.pod:1484
19199 #, no-wrap
19200 msgid ""
19201 " head path\n"
19202 "\n"
19203 msgstr ""
19204
19205 # type: =head2
19206 #: ../fish/guestfish-actions.pod:1492
19207 msgid "head-n"
19208 msgstr ""
19209
19210 # type: verbatim
19211 #: ../fish/guestfish-actions.pod:1494
19212 #, no-wrap
19213 msgid ""
19214 " head-n nrlines path\n"
19215 "\n"
19216 msgstr ""
19217
19218 # type: =head2
19219 #: ../fish/guestfish-actions.pod:1507
19220 msgid "hexdump"
19221 msgstr ""
19222
19223 # type: verbatim
19224 #: ../fish/guestfish-actions.pod:1509
19225 #, no-wrap
19226 msgid ""
19227 " hexdump path\n"
19228 "\n"
19229 msgstr ""
19230
19231 # type: =head2
19232 #: ../fish/guestfish-actions.pod:1517
19233 msgid "initrd-cat"
19234 msgstr ""
19235
19236 # type: verbatim
19237 #: ../fish/guestfish-actions.pod:1519
19238 #, no-wrap
19239 msgid ""
19240 " initrd-cat initrdpath filename\n"
19241 "\n"
19242 msgstr ""
19243
19244 # type: textblock
19245 #: ../fish/guestfish-actions.pod:1531
19246 msgid "See also L</initrd-list>."
19247 msgstr ""
19248
19249 # type: =head2
19250 #: ../fish/guestfish-actions.pod:1536
19251 msgid "initrd-list"
19252 msgstr ""
19253
19254 # type: verbatim
19255 #: ../fish/guestfish-actions.pod:1538
19256 #, no-wrap
19257 msgid ""
19258 " initrd-list path\n"
19259 "\n"
19260 msgstr ""
19261
19262 # type: =head2
19263 #: ../fish/guestfish-actions.pod:1550
19264 msgid "inotify-add-watch"
19265 msgstr ""
19266
19267 # type: verbatim
19268 #: ../fish/guestfish-actions.pod:1552
19269 #, no-wrap
19270 msgid ""
19271 " inotify-add-watch path mask\n"
19272 "\n"
19273 msgstr ""
19274
19275 # type: =head2
19276 #: ../fish/guestfish-actions.pod:1564
19277 msgid "inotify-close"
19278 msgstr ""
19279
19280 # type: verbatim
19281 #: ../fish/guestfish-actions.pod:1566
19282 #, no-wrap
19283 msgid ""
19284 " inotify-close\n"
19285 "\n"
19286 msgstr ""
19287
19288 # type: =head2
19289 #: ../fish/guestfish-actions.pod:1572
19290 msgid "inotify-files"
19291 msgstr ""
19292
19293 # type: verbatim
19294 #: ../fish/guestfish-actions.pod:1574
19295 #, no-wrap
19296 msgid ""
19297 " inotify-files\n"
19298 "\n"
19299 msgstr ""
19300
19301 # type: textblock
19302 #: ../fish/guestfish-actions.pod:1576
19303 msgid ""
19304 "This function is a helpful wrapper around L</inotify-read> which just "
19305 "returns a list of pathnames of objects that were touched.  The returned "
19306 "pathnames are sorted and deduplicated."
19307 msgstr ""
19308
19309 # type: =head2
19310 #: ../fish/guestfish-actions.pod:1580
19311 msgid "inotify-init"
19312 msgstr ""
19313
19314 # type: verbatim
19315 #: ../fish/guestfish-actions.pod:1582
19316 #, no-wrap
19317 msgid ""
19318 " inotify-init maxevents\n"
19319 "\n"
19320 msgstr ""
19321
19322 # type: textblock
19323 #: ../fish/guestfish-actions.pod:1588
19324 msgid ""
19325 "C<maxevents> is the maximum number of events which will be queued up between "
19326 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19327 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19328 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19329 "but records the fact that it threw them away by setting a flag "
19330 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19331 msgstr ""
19332
19333 # type: textblock
19334 #: ../fish/guestfish-actions.pod:1598
19335 msgid ""
19336 "Before any events are generated, you have to add some watches to the "
19337 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19338 "L</inotify-watch-all>."
19339 msgstr ""
19340
19341 # type: textblock
19342 #: ../fish/guestfish-actions.pod:1604
19343 msgid ""
19344 "Queued up events should be read periodically by calling L</inotify-read> (or "
19345 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19346 "If you don't read the events out often enough then you risk the internal "
19347 "queue overflowing."
19348 msgstr ""
19349
19350 # type: textblock
19351 #: ../fish/guestfish-actions.pod:1611
19352 msgid ""
19353 "The handle should be closed after use by calling L</inotify-close>.  This "
19354 "also removes any watches automatically."
19355 msgstr ""
19356
19357 # type: =head2
19358 #: ../fish/guestfish-actions.pod:1620
19359 msgid "inotify-read"
19360 msgstr ""
19361
19362 # type: verbatim
19363 #: ../fish/guestfish-actions.pod:1622
19364 #, no-wrap
19365 msgid ""
19366 " inotify-read\n"
19367 "\n"
19368 msgstr ""
19369
19370 # type: =head2
19371 #: ../fish/guestfish-actions.pod:1635
19372 msgid "inotify-rm-watch"
19373 msgstr ""
19374
19375 # type: verbatim
19376 #: ../fish/guestfish-actions.pod:1637
19377 #, no-wrap
19378 msgid ""
19379 " inotify-rm-watch wd\n"
19380 "\n"
19381 msgstr ""
19382
19383 # type: textblock
19384 #: ../fish/guestfish-actions.pod:1639
19385 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19386 msgstr ""
19387
19388 # type: =head2
19389 #: ../fish/guestfish-actions.pod:1642
19390 msgid "inspect-get-arch"
19391 msgstr ""
19392
19393 # type: verbatim
19394 #: ../fish/guestfish-actions.pod:1644
19395 #, no-wrap
19396 msgid ""
19397 " inspect-get-arch root\n"
19398 "\n"
19399 msgstr ""
19400
19401 # type: textblock
19402 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662
19403 #: ../fish/guestfish-actions.pod:1724 ../fish/guestfish-actions.pod:1742
19404 #: ../fish/guestfish-actions.pod:1763 ../fish/guestfish-actions.pod:1778
19405 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1818
19406 #: ../fish/guestfish-actions.pod:1849
19407 msgid ""
19408 "This function should only be called with a root device string as returned by "
19409 "L</inspect-os>."
19410 msgstr ""
19411
19412 # type: textblock
19413 #: ../fish/guestfish-actions.pod:1649
19414 msgid ""
19415 "This returns the architecture of the inspected operating system.  The "
19416 "possible return values are listed under L</file-architecture>."
19417 msgstr ""
19418
19419 # type: =head2
19420 #: ../fish/guestfish-actions.pod:1658
19421 msgid "inspect-get-distro"
19422 msgstr ""
19423
19424 # type: verbatim
19425 #: ../fish/guestfish-actions.pod:1660
19426 #, no-wrap
19427 msgid ""
19428 " inspect-get-distro root\n"
19429 "\n"
19430 msgstr ""
19431
19432 # type: =head2
19433 #: ../fish/guestfish-actions.pod:1720
19434 msgid "inspect-get-filesystems"
19435 msgstr ""
19436
19437 # type: verbatim
19438 #: ../fish/guestfish-actions.pod:1722
19439 #, no-wrap
19440 msgid ""
19441 " inspect-get-filesystems root\n"
19442 "\n"
19443 msgstr ""
19444
19445 # type: textblock
19446 #: ../fish/guestfish-actions.pod:1735
19447 msgid ""
19448 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19449 "get-mountpoints>."
19450 msgstr ""
19451
19452 # type: =head2
19453 #: ../fish/guestfish-actions.pod:1738
19454 msgid "inspect-get-major-version"
19455 msgstr ""
19456
19457 # type: verbatim
19458 #: ../fish/guestfish-actions.pod:1740
19459 #, no-wrap
19460 msgid ""
19461 " inspect-get-major-version root\n"
19462 "\n"
19463 msgstr ""
19464
19465 # type: =head2
19466 #: ../fish/guestfish-actions.pod:1759
19467 msgid "inspect-get-minor-version"
19468 msgstr ""
19469
19470 # type: verbatim
19471 #: ../fish/guestfish-actions.pod:1761
19472 #, no-wrap
19473 msgid ""
19474 " inspect-get-minor-version root\n"
19475 "\n"
19476 msgstr ""
19477
19478 # type: textblock
19479 #: ../fish/guestfish-actions.pod:1771
19480 msgid ""
19481 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19482 "get-major-version>."
19483 msgstr ""
19484
19485 # type: =head2
19486 #: ../fish/guestfish-actions.pod:1774
19487 msgid "inspect-get-mountpoints"
19488 msgstr ""
19489
19490 # type: verbatim
19491 #: ../fish/guestfish-actions.pod:1776
19492 #, no-wrap
19493 msgid ""
19494 " inspect-get-mountpoints root\n"
19495 "\n"
19496 msgstr ""
19497
19498 # type: textblock
19499 #: ../fish/guestfish-actions.pod:1794
19500 msgid ""
19501 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19502 "get-filesystems>."
19503 msgstr ""
19504
19505 # type: =head2
19506 #: ../fish/guestfish-actions.pod:1797
19507 msgid "inspect-get-product-name"
19508 msgstr ""
19509
19510 # type: verbatim
19511 #: ../fish/guestfish-actions.pod:1799
19512 #, no-wrap
19513 msgid ""
19514 " inspect-get-product-name root\n"
19515 "\n"
19516 msgstr ""
19517
19518 # type: =head2
19519 #: ../fish/guestfish-actions.pod:1814
19520 msgid "inspect-get-type"
19521 msgstr ""
19522
19523 # type: verbatim
19524 #: ../fish/guestfish-actions.pod:1816
19525 #, no-wrap
19526 msgid ""
19527 " inspect-get-type root\n"
19528 "\n"
19529 msgstr ""
19530
19531 # type: =head2
19532 #: ../fish/guestfish-actions.pod:1845
19533 msgid "inspect-get-windows-systemroot"
19534 msgstr ""
19535
19536 # type: verbatim
19537 #: ../fish/guestfish-actions.pod:1847
19538 #, no-wrap
19539 msgid ""
19540 " inspect-get-windows-systemroot root\n"
19541 "\n"
19542 msgstr ""
19543
19544 # type: =head2
19545 #: ../fish/guestfish-actions.pod:1861
19546 msgid "inspect-os"
19547 msgstr ""
19548
19549 # type: verbatim
19550 #: ../fish/guestfish-actions.pod:1863
19551 #, no-wrap
19552 msgid ""
19553 " inspect-os\n"
19554 "\n"
19555 msgstr ""
19556
19557 # type: textblock
19558 #: ../fish/guestfish-actions.pod:1878
19559 msgid ""
19560 "You can pass the root string(s) returned to other L</inspect-get-*> "
19561 "functions in order to query further information about each operating system, "
19562 "such as the name and version."
19563 msgstr ""
19564
19565 # type: textblock
19566 #: ../fish/guestfish-actions.pod:1883
19567 msgid ""
19568 "This function uses other libguestfs features such as L</mount-ro> and L</"
19569 "umount-all> in order to mount and unmount filesystems and look at the "
19570 "contents.  This should be called with no disks currently mounted.  The "
19571 "function may also use Augeas, so any existing Augeas handle will be closed."
19572 msgstr ""
19573
19574 # type: textblock
19575 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:2051
19576 #: ../fish/guestfish-actions.pod:2097
19577 msgid "See also L</list-filesystems>."
19578 msgstr ""
19579
19580 # type: =head2
19581 #: ../fish/guestfish-actions.pod:1897
19582 msgid "is-blockdev"
19583 msgstr ""
19584
19585 # type: verbatim
19586 #: ../fish/guestfish-actions.pod:1899
19587 #, no-wrap
19588 msgid ""
19589 " is-blockdev path\n"
19590 "\n"
19591 msgstr ""
19592
19593 # type: textblock
19594 #: ../fish/guestfish-actions.pod:1904 ../fish/guestfish-actions.pod:1922
19595 #: ../fish/guestfish-actions.pod:1941 ../fish/guestfish-actions.pod:1950
19596 #: ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:1994
19597 #: ../fish/guestfish-actions.pod:2003
19598 msgid "See also L</stat>."
19599 msgstr ""
19600
19601 # type: =head2
19602 #: ../fish/guestfish-actions.pod:1906
19603 msgid "is-busy"
19604 msgstr ""
19605
19606 # type: verbatim
19607 #: ../fish/guestfish-actions.pod:1908
19608 #, no-wrap
19609 msgid ""
19610 " is-busy\n"
19611 "\n"
19612 msgstr ""
19613
19614 # type: =head2
19615 #: ../fish/guestfish-actions.pod:1915
19616 msgid "is-chardev"
19617 msgstr ""
19618
19619 # type: verbatim
19620 #: ../fish/guestfish-actions.pod:1917
19621 #, no-wrap
19622 msgid ""
19623 " is-chardev path\n"
19624 "\n"
19625 msgstr ""
19626
19627 # type: =head2
19628 #: ../fish/guestfish-actions.pod:1924
19629 msgid "is-config"
19630 msgstr ""
19631
19632 # type: verbatim
19633 #: ../fish/guestfish-actions.pod:1926
19634 #, no-wrap
19635 msgid ""
19636 " is-config\n"
19637 "\n"
19638 msgstr ""
19639
19640 # type: =head2
19641 #: ../fish/guestfish-actions.pod:1933
19642 msgid "is-dir"
19643 msgstr ""
19644
19645 # type: verbatim
19646 #: ../fish/guestfish-actions.pod:1935
19647 #, no-wrap
19648 msgid ""
19649 " is-dir path\n"
19650 "\n"
19651 msgstr ""
19652
19653 # type: =head2
19654 #: ../fish/guestfish-actions.pod:1943
19655 msgid "is-fifo"
19656 msgstr ""
19657
19658 # type: verbatim
19659 #: ../fish/guestfish-actions.pod:1945
19660 #, no-wrap
19661 msgid ""
19662 " is-fifo path\n"
19663 "\n"
19664 msgstr ""
19665
19666 # type: =head2
19667 #: ../fish/guestfish-actions.pod:1952
19668 msgid "is-file"
19669 msgstr ""
19670
19671 # type: verbatim
19672 #: ../fish/guestfish-actions.pod:1954
19673 #, no-wrap
19674 msgid ""
19675 " is-file path\n"
19676 "\n"
19677 msgstr ""
19678
19679 # type: =head2
19680 #: ../fish/guestfish-actions.pod:1962
19681 msgid "is-launching"
19682 msgstr ""
19683
19684 # type: verbatim
19685 #: ../fish/guestfish-actions.pod:1964
19686 #, no-wrap
19687 msgid ""
19688 " is-launching\n"
19689 "\n"
19690 msgstr ""
19691
19692 # type: =head2
19693 #: ../fish/guestfish-actions.pod:1971
19694 msgid "is-lv"
19695 msgstr ""
19696
19697 # type: verbatim
19698 #: ../fish/guestfish-actions.pod:1973
19699 #, no-wrap
19700 msgid ""
19701 " is-lv device\n"
19702 "\n"
19703 msgstr ""
19704
19705 # type: =head2
19706 #: ../fish/guestfish-actions.pod:1978
19707 msgid "is-ready"
19708 msgstr ""
19709
19710 # type: verbatim
19711 #: ../fish/guestfish-actions.pod:1980
19712 #, no-wrap
19713 msgid ""
19714 " is-ready\n"
19715 "\n"
19716 msgstr ""
19717
19718 # type: =head2
19719 #: ../fish/guestfish-actions.pod:1987
19720 msgid "is-socket"
19721 msgstr ""
19722
19723 # type: verbatim
19724 #: ../fish/guestfish-actions.pod:1989
19725 #, no-wrap
19726 msgid ""
19727 " is-socket path\n"
19728 "\n"
19729 msgstr ""
19730
19731 # type: =head2
19732 #: ../fish/guestfish-actions.pod:1996
19733 msgid "is-symlink"
19734 msgstr ""
19735
19736 # type: verbatim
19737 #: ../fish/guestfish-actions.pod:1998
19738 #, no-wrap
19739 msgid ""
19740 " is-symlink path\n"
19741 "\n"
19742 msgstr ""
19743
19744 # type: =head2
19745 #: ../fish/guestfish-actions.pod:2005
19746 msgid "kill-subprocess"
19747 msgstr ""
19748
19749 # type: verbatim
19750 #: ../fish/guestfish-actions.pod:2007
19751 #, no-wrap
19752 msgid ""
19753 " kill-subprocess\n"
19754 "\n"
19755 msgstr ""
19756
19757 # type: =head2
19758 #: ../fish/guestfish-actions.pod:2011
19759 msgid "launch"
19760 msgstr ""
19761
19762 # type: =head2
19763 #: ../fish/guestfish-actions.pod:2013
19764 msgid "run"
19765 msgstr ""
19766
19767 # type: verbatim
19768 #: ../fish/guestfish-actions.pod:2015
19769 #, no-wrap
19770 msgid ""
19771 " launch\n"
19772 "\n"
19773 msgstr ""
19774
19775 # type: =head2
19776 #: ../fish/guestfish-actions.pod:2023
19777 msgid "lchown"
19778 msgstr ""
19779
19780 # type: verbatim
19781 #: ../fish/guestfish-actions.pod:2025
19782 #, no-wrap
19783 msgid ""
19784 " lchown owner group path\n"
19785 "\n"
19786 msgstr ""
19787
19788 # type: textblock
19789 #: ../fish/guestfish-actions.pod:2027
19790 msgid ""
19791 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
19792 "chown> but if C<path> is a symlink then the link itself is changed, not the "
19793 "target."
19794 msgstr ""
19795
19796 # type: =head2
19797 #: ../fish/guestfish-actions.pod:2035
19798 msgid "lgetxattrs"
19799 msgstr ""
19800
19801 # type: verbatim
19802 #: ../fish/guestfish-actions.pod:2037
19803 #, no-wrap
19804 msgid ""
19805 " lgetxattrs path\n"
19806 "\n"
19807 msgstr ""
19808
19809 # type: textblock
19810 #: ../fish/guestfish-actions.pod:2039
19811 msgid ""
19812 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19813 "it returns the extended attributes of the link itself."
19814 msgstr ""
19815
19816 # type: =head2
19817 #: ../fish/guestfish-actions.pod:2043
19818 msgid "list-devices"
19819 msgstr ""
19820
19821 # type: verbatim
19822 #: ../fish/guestfish-actions.pod:2045
19823 #, no-wrap
19824 msgid ""
19825 " list-devices\n"
19826 "\n"
19827 msgstr ""
19828
19829 # type: =head2
19830 #: ../fish/guestfish-actions.pod:2053
19831 msgid "list-filesystems"
19832 msgstr ""
19833
19834 # type: verbatim
19835 #: ../fish/guestfish-actions.pod:2055
19836 #, no-wrap
19837 msgid ""
19838 " list-filesystems\n"
19839 "\n"
19840 msgstr ""
19841
19842 # type: textblock
19843 #: ../fish/guestfish-actions.pod:2074
19844 msgid ""
19845 "This command runs other libguestfs commands, which might include L</mount> "
19846 "and L</umount>, and therefore you should use this soon after launch and only "
19847 "when nothing is mounted."
19848 msgstr ""
19849
19850 # type: textblock
19851 #: ../fish/guestfish-actions.pod:2078
19852 msgid ""
19853 "Not all of the filesystems returned will be mountable.  In particular, swap "
19854 "partitions are returned in the list.  Also this command does not check that "
19855 "each filesystem found is valid and mountable, and some filesystems might be "
19856 "mountable but require special options.  Filesystems may not all belong to a "
19857 "single logical operating system (use L</inspect-os> to look for OSes)."
19858 msgstr ""
19859
19860 # type: =head2
19861 #: ../fish/guestfish-actions.pod:2086
19862 msgid "list-partitions"
19863 msgstr ""
19864
19865 # type: verbatim
19866 #: ../fish/guestfish-actions.pod:2088
19867 #, no-wrap
19868 msgid ""
19869 " list-partitions\n"
19870 "\n"
19871 msgstr ""
19872
19873 # type: textblock
19874 #: ../fish/guestfish-actions.pod:2094
19875 msgid ""
19876 "This does not return logical volumes.  For that you will need to call L</"
19877 "lvs>."
19878 msgstr ""
19879
19880 # type: =head2
19881 #: ../fish/guestfish-actions.pod:2099
19882 msgid "ll"
19883 msgstr ""
19884
19885 # type: verbatim
19886 #: ../fish/guestfish-actions.pod:2101
19887 #, no-wrap
19888 msgid ""
19889 " ll directory\n"
19890 "\n"
19891 msgstr ""
19892
19893 # type: =head2
19894 #: ../fish/guestfish-actions.pod:2109
19895 msgid "ln"
19896 msgstr ""
19897
19898 # type: verbatim
19899 #: ../fish/guestfish-actions.pod:2111
19900 #, no-wrap
19901 msgid ""
19902 " ln target linkname\n"
19903 "\n"
19904 msgstr ""
19905
19906 # type: =head2
19907 #: ../fish/guestfish-actions.pod:2115
19908 msgid "ln-f"
19909 msgstr ""
19910
19911 # type: verbatim
19912 #: ../fish/guestfish-actions.pod:2117
19913 #, no-wrap
19914 msgid ""
19915 " ln-f target linkname\n"
19916 "\n"
19917 msgstr ""
19918
19919 # type: =head2
19920 #: ../fish/guestfish-actions.pod:2122
19921 msgid "ln-s"
19922 msgstr ""
19923
19924 # type: verbatim
19925 #: ../fish/guestfish-actions.pod:2124
19926 #, no-wrap
19927 msgid ""
19928 " ln-s target linkname\n"
19929 "\n"
19930 msgstr ""
19931
19932 # type: =head2
19933 #: ../fish/guestfish-actions.pod:2128
19934 msgid "ln-sf"
19935 msgstr ""
19936
19937 # type: verbatim
19938 #: ../fish/guestfish-actions.pod:2130
19939 #, no-wrap
19940 msgid ""
19941 " ln-sf target linkname\n"
19942 "\n"
19943 msgstr ""
19944
19945 # type: =head2
19946 #: ../fish/guestfish-actions.pod:2135
19947 msgid "lremovexattr"
19948 msgstr ""
19949
19950 # type: verbatim
19951 #: ../fish/guestfish-actions.pod:2137
19952 #, no-wrap
19953 msgid ""
19954 " lremovexattr xattr path\n"
19955 "\n"
19956 msgstr ""
19957
19958 # type: textblock
19959 #: ../fish/guestfish-actions.pod:2139
19960 msgid ""
19961 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19962 "it removes an extended attribute of the link itself."
19963 msgstr ""
19964
19965 # type: =head2
19966 #: ../fish/guestfish-actions.pod:2143
19967 msgid "ls"
19968 msgstr ""
19969
19970 # type: verbatim
19971 #: ../fish/guestfish-actions.pod:2145
19972 #, no-wrap
19973 msgid ""
19974 " ls directory\n"
19975 "\n"
19976 msgstr ""
19977
19978 # type: textblock
19979 #: ../fish/guestfish-actions.pod:2151
19980 msgid ""
19981 "This command is mostly useful for interactive sessions.  Programs should "
19982 "probably use L</readdir> instead."
19983 msgstr ""
19984
19985 # type: =head2
19986 #: ../fish/guestfish-actions.pod:2154
19987 msgid "lsetxattr"
19988 msgstr ""
19989
19990 # type: verbatim
19991 #: ../fish/guestfish-actions.pod:2156
19992 #, no-wrap
19993 msgid ""
19994 " lsetxattr xattr val vallen path\n"
19995 "\n"
19996 msgstr ""
19997
19998 # type: textblock
19999 #: ../fish/guestfish-actions.pod:2158
20000 msgid ""
20001 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20002 "sets an extended attribute of the link itself."
20003 msgstr ""
20004
20005 # type: =head2
20006 #: ../fish/guestfish-actions.pod:2162
20007 msgid "lstat"
20008 msgstr ""
20009
20010 # type: verbatim
20011 #: ../fish/guestfish-actions.pod:2164
20012 #, no-wrap
20013 msgid ""
20014 " lstat path\n"
20015 "\n"
20016 msgstr ""
20017
20018 # type: textblock
20019 #: ../fish/guestfish-actions.pod:2168
20020 msgid ""
20021 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20022 "the link is stat-ed, not the file it refers to."
20023 msgstr ""
20024
20025 # type: =head2
20026 #: ../fish/guestfish-actions.pod:2174
20027 msgid "lstatlist"
20028 msgstr ""
20029
20030 # type: verbatim
20031 #: ../fish/guestfish-actions.pod:2176
20032 #, no-wrap
20033 msgid ""
20034 " lstatlist path 'names ...'\n"
20035 "\n"
20036 msgstr ""
20037
20038 # type: textblock
20039 #: ../fish/guestfish-actions.pod:2178
20040 msgid ""
20041 "This call allows you to perform the L</lstat> operation on multiple files, "
20042 "where all files are in the directory C<path>.  C<names> is the list of files "
20043 "from this directory."
20044 msgstr ""
20045
20046 # type: textblock
20047 #: ../fish/guestfish-actions.pod:2187
20048 msgid ""
20049 "This call is intended for programs that want to efficiently list a directory "
20050 "contents without making many round-trips.  See also L</lxattrlist> for a "
20051 "similarly efficient call for getting extended attributes.  Very long "
20052 "directory listings might cause the protocol message size to be exceeded, "
20053 "causing this call to fail.  The caller must split up such requests into "
20054 "smaller groups of names."
20055 msgstr ""
20056
20057 # type: =head2
20058 #: ../fish/guestfish-actions.pod:2195
20059 msgid "luks-add-key"
20060 msgstr ""
20061
20062 # type: verbatim
20063 #: ../fish/guestfish-actions.pod:2197
20064 #, no-wrap
20065 msgid ""
20066 " luks-add-key device keyslot\n"
20067 "\n"
20068 msgstr ""
20069
20070 # type: textblock
20071 #: ../fish/guestfish-actions.pod:2204
20072 msgid ""
20073 "Note that if C<keyslot> already contains a key, then this command will "
20074 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20075 msgstr ""
20076
20077 # type: textblock
20078 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2230
20079 #: ../fish/guestfish-actions.pod:2243 ../fish/guestfish-actions.pod:2257
20080 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
20081 msgid ""
20082 "This command has one or more key or passphrase parameters.  Guestfish will "
20083 "prompt for these separately."
20084 msgstr ""
20085
20086 # type: =head2
20087 #: ../fish/guestfish-actions.pod:2211
20088 msgid "luks-close"
20089 msgstr ""
20090
20091 # type: verbatim
20092 #: ../fish/guestfish-actions.pod:2213
20093 #, no-wrap
20094 msgid ""
20095 " luks-close device\n"
20096 "\n"
20097 msgstr ""
20098
20099 # type: textblock
20100 #: ../fish/guestfish-actions.pod:2215
20101 msgid ""
20102 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
20103 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
20104 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
20105 "block device."
20106 msgstr ""
20107
20108 # type: =head2
20109 #: ../fish/guestfish-actions.pod:2221
20110 msgid "luks-format"
20111 msgstr ""
20112
20113 # type: verbatim
20114 #: ../fish/guestfish-actions.pod:2223
20115 #, no-wrap
20116 msgid ""
20117 " luks-format device keyslot\n"
20118 "\n"
20119 msgstr ""
20120
20121 # type: =head2
20122 #: ../fish/guestfish-actions.pod:2236
20123 msgid "luks-format-cipher"
20124 msgstr ""
20125
20126 # type: verbatim
20127 #: ../fish/guestfish-actions.pod:2238
20128 #, no-wrap
20129 msgid ""
20130 " luks-format-cipher device keyslot cipher\n"
20131 "\n"
20132 msgstr ""
20133
20134 # type: textblock
20135 #: ../fish/guestfish-actions.pod:2240
20136 msgid ""
20137 "This command is the same as L</luks-format> but it also allows you to set "
20138 "the C<cipher> used."
20139 msgstr ""
20140
20141 # type: =head2
20142 #: ../fish/guestfish-actions.pod:2249
20143 msgid "luks-kill-slot"
20144 msgstr ""
20145
20146 # type: verbatim
20147 #: ../fish/guestfish-actions.pod:2251
20148 #, no-wrap
20149 msgid ""
20150 " luks-kill-slot device keyslot\n"
20151 "\n"
20152 msgstr ""
20153
20154 # type: =head2
20155 #: ../fish/guestfish-actions.pod:2260
20156 msgid "luks-open"
20157 msgstr ""
20158
20159 # type: verbatim
20160 #: ../fish/guestfish-actions.pod:2262
20161 #, no-wrap
20162 msgid ""
20163 " luks-open device mapname\n"
20164 "\n"
20165 msgstr ""
20166
20167 # type: textblock
20168 #: ../fish/guestfish-actions.pod:2276
20169 msgid ""
20170 "If this block device contains LVM volume groups, then calling L</vgscan> "
20171 "followed by L</vg-activate-all> will make them visible."
20172 msgstr ""
20173
20174 # type: =head2
20175 #: ../fish/guestfish-actions.pod:2283
20176 msgid "luks-open-ro"
20177 msgstr ""
20178
20179 # type: verbatim
20180 #: ../fish/guestfish-actions.pod:2285
20181 #, no-wrap
20182 msgid ""
20183 " luks-open-ro device mapname\n"
20184 "\n"
20185 msgstr ""
20186
20187 # type: textblock
20188 #: ../fish/guestfish-actions.pod:2287
20189 msgid ""
20190 "This is the same as L</luks-open> except that a read-only mapping is created."
20191 msgstr ""
20192
20193 # type: =head2
20194 #: ../fish/guestfish-actions.pod:2293
20195 msgid "lvcreate"
20196 msgstr ""
20197
20198 # type: verbatim
20199 #: ../fish/guestfish-actions.pod:2295
20200 #, no-wrap
20201 msgid ""
20202 " lvcreate logvol volgroup mbytes\n"
20203 "\n"
20204 msgstr ""
20205
20206 # type: =head2
20207 #: ../fish/guestfish-actions.pod:2300
20208 msgid "lvm-canonical-lv-name"
20209 msgstr ""
20210
20211 # type: verbatim
20212 #: ../fish/guestfish-actions.pod:2302
20213 #, no-wrap
20214 msgid ""
20215 " lvm-canonical-lv-name lvname\n"
20216 "\n"
20217 msgstr ""
20218
20219 # type: textblock
20220 #: ../fish/guestfish-actions.pod:2311
20221 msgid "See also L</is-lv>."
20222 msgstr ""
20223
20224 # type: =head2
20225 #: ../fish/guestfish-actions.pod:2313
20226 msgid "lvm-clear-filter"
20227 msgstr ""
20228
20229 # type: verbatim
20230 #: ../fish/guestfish-actions.pod:2315
20231 #, no-wrap
20232 msgid ""
20233 " lvm-clear-filter\n"
20234 "\n"
20235 msgstr ""
20236
20237 # type: textblock
20238 #: ../fish/guestfish-actions.pod:2317
20239 msgid ""
20240 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20241 "block device."
20242 msgstr ""
20243
20244 # type: =head2
20245 #: ../fish/guestfish-actions.pod:2323
20246 msgid "lvm-remove-all"
20247 msgstr ""
20248
20249 # type: verbatim
20250 #: ../fish/guestfish-actions.pod:2325
20251 #, no-wrap
20252 msgid ""
20253 " lvm-remove-all\n"
20254 "\n"
20255 msgstr ""
20256
20257 # type: =head2
20258 #: ../fish/guestfish-actions.pod:2333
20259 msgid "lvm-set-filter"
20260 msgstr ""
20261
20262 # type: verbatim
20263 #: ../fish/guestfish-actions.pod:2335
20264 #, no-wrap
20265 msgid ""
20266 " lvm-set-filter 'devices ...'\n"
20267 "\n"
20268 msgstr ""
20269
20270 # type: =head2
20271 #: ../fish/guestfish-actions.pod:2360
20272 msgid "lvremove"
20273 msgstr ""
20274
20275 # type: verbatim
20276 #: ../fish/guestfish-actions.pod:2362
20277 #, no-wrap
20278 msgid ""
20279 " lvremove device\n"
20280 "\n"
20281 msgstr ""
20282
20283 # type: =head2
20284 #: ../fish/guestfish-actions.pod:2370
20285 msgid "lvrename"
20286 msgstr ""
20287
20288 # type: verbatim
20289 #: ../fish/guestfish-actions.pod:2372
20290 #, no-wrap
20291 msgid ""
20292 " lvrename logvol newlogvol\n"
20293 "\n"
20294 msgstr ""
20295
20296 # type: =head2
20297 #: ../fish/guestfish-actions.pod:2376
20298 msgid "lvresize"
20299 msgstr ""
20300
20301 # type: verbatim
20302 #: ../fish/guestfish-actions.pod:2378
20303 #, no-wrap
20304 msgid ""
20305 " lvresize device mbytes\n"
20306 "\n"
20307 msgstr ""
20308
20309 # type: =head2
20310 #: ../fish/guestfish-actions.pod:2384
20311 msgid "lvresize-free"
20312 msgstr ""
20313
20314 # type: verbatim
20315 #: ../fish/guestfish-actions.pod:2386
20316 #, no-wrap
20317 msgid ""
20318 " lvresize-free lv percent\n"
20319 "\n"
20320 msgstr ""
20321
20322 # type: =head2
20323 #: ../fish/guestfish-actions.pod:2394
20324 msgid "lvs"
20325 msgstr ""
20326
20327 # type: verbatim
20328 #: ../fish/guestfish-actions.pod:2396
20329 #, no-wrap
20330 msgid ""
20331 " lvs\n"
20332 "\n"
20333 msgstr ""
20334
20335 # type: textblock
20336 #: ../fish/guestfish-actions.pod:2404
20337 msgid "See also L</lvs-full>, L</list-filesystems>."
20338 msgstr ""
20339
20340 # type: =head2
20341 #: ../fish/guestfish-actions.pod:2406
20342 msgid "lvs-full"
20343 msgstr ""
20344
20345 # type: verbatim
20346 #: ../fish/guestfish-actions.pod:2408
20347 #, no-wrap
20348 msgid ""
20349 " lvs-full\n"
20350 "\n"
20351 msgstr ""
20352
20353 # type: =head2
20354 #: ../fish/guestfish-actions.pod:2413
20355 msgid "lvuuid"
20356 msgstr ""
20357
20358 # type: verbatim
20359 #: ../fish/guestfish-actions.pod:2415
20360 #, no-wrap
20361 msgid ""
20362 " lvuuid device\n"
20363 "\n"
20364 msgstr ""
20365
20366 # type: =head2
20367 #: ../fish/guestfish-actions.pod:2419
20368 msgid "lxattrlist"
20369 msgstr ""
20370
20371 # type: verbatim
20372 #: ../fish/guestfish-actions.pod:2421
20373 #, no-wrap
20374 msgid ""
20375 " lxattrlist path 'names ...'\n"
20376 "\n"
20377 msgstr ""
20378
20379 # type: textblock
20380 #: ../fish/guestfish-actions.pod:2437
20381 msgid ""
20382 "This call is intended for programs that want to efficiently list a directory "
20383 "contents without making many round-trips.  See also L</lstatlist> for a "
20384 "similarly efficient call for getting standard stats.  Very long directory "
20385 "listings might cause the protocol message size to be exceeded, causing this "
20386 "call to fail.  The caller must split up such requests into smaller groups of "
20387 "names."
20388 msgstr ""
20389
20390 # type: =head2
20391 #: ../fish/guestfish-actions.pod:2445
20392 msgid "mkdir"
20393 msgstr ""
20394
20395 # type: verbatim
20396 #: ../fish/guestfish-actions.pod:2447
20397 #, no-wrap
20398 msgid ""
20399 " mkdir path\n"
20400 "\n"
20401 msgstr ""
20402
20403 # type: =head2
20404 #: ../fish/guestfish-actions.pod:2451
20405 msgid "mkdir-mode"
20406 msgstr ""
20407
20408 # type: verbatim
20409 #: ../fish/guestfish-actions.pod:2453
20410 #, no-wrap
20411 msgid ""
20412 " mkdir-mode path mode\n"
20413 "\n"
20414 msgstr ""
20415
20416 # type: textblock
20417 #: ../fish/guestfish-actions.pod:2462
20418 msgid "See also L</mkdir>, L</umask>"
20419 msgstr ""
20420
20421 # type: =head2
20422 #: ../fish/guestfish-actions.pod:2464
20423 msgid "mkdir-p"
20424 msgstr ""
20425
20426 # type: verbatim
20427 #: ../fish/guestfish-actions.pod:2466
20428 #, no-wrap
20429 msgid ""
20430 " mkdir-p path\n"
20431 "\n"
20432 msgstr ""
20433
20434 # type: =head2
20435 #: ../fish/guestfish-actions.pod:2471
20436 msgid "mkdtemp"
20437 msgstr ""
20438
20439 # type: verbatim
20440 #: ../fish/guestfish-actions.pod:2473
20441 #, no-wrap
20442 msgid ""
20443 " mkdtemp template\n"
20444 "\n"
20445 msgstr ""
20446
20447 # type: =head2
20448 #: ../fish/guestfish-actions.pod:2494
20449 msgid "mke2fs-J"
20450 msgstr ""
20451
20452 # type: verbatim
20453 #: ../fish/guestfish-actions.pod:2496
20454 #, no-wrap
20455 msgid ""
20456 " mke2fs-J fstype blocksize device journal\n"
20457 "\n"
20458 msgstr ""
20459
20460 # type: textblock
20461 #: ../fish/guestfish-actions.pod:2504
20462 msgid "See also L</mke2journal>."
20463 msgstr ""
20464
20465 # type: =head2
20466 #: ../fish/guestfish-actions.pod:2506
20467 msgid "mke2fs-JL"
20468 msgstr ""
20469
20470 # type: verbatim
20471 #: ../fish/guestfish-actions.pod:2508
20472 #, no-wrap
20473 msgid ""
20474 " mke2fs-JL fstype blocksize device label\n"
20475 "\n"
20476 msgstr ""
20477
20478 # type: textblock
20479 #: ../fish/guestfish-actions.pod:2513
20480 msgid "See also L</mke2journal-L>."
20481 msgstr ""
20482
20483 # type: =head2
20484 #: ../fish/guestfish-actions.pod:2515
20485 msgid "mke2fs-JU"
20486 msgstr ""
20487
20488 # type: verbatim
20489 #: ../fish/guestfish-actions.pod:2517
20490 #, no-wrap
20491 msgid ""
20492 " mke2fs-JU fstype blocksize device uuid\n"
20493 "\n"
20494 msgstr ""
20495
20496 # type: textblock
20497 #: ../fish/guestfish-actions.pod:2522
20498 msgid "See also L</mke2journal-U>."
20499 msgstr ""
20500
20501 # type: =head2
20502 #: ../fish/guestfish-actions.pod:2524
20503 msgid "mke2journal"
20504 msgstr ""
20505
20506 # type: verbatim
20507 #: ../fish/guestfish-actions.pod:2526
20508 #, no-wrap
20509 msgid ""
20510 " mke2journal blocksize device\n"
20511 "\n"
20512 msgstr ""
20513
20514 # type: =head2
20515 #: ../fish/guestfish-actions.pod:2533
20516 msgid "mke2journal-L"
20517 msgstr ""
20518
20519 # type: verbatim
20520 #: ../fish/guestfish-actions.pod:2535
20521 #, no-wrap
20522 msgid ""
20523 " mke2journal-L blocksize label device\n"
20524 "\n"
20525 msgstr ""
20526
20527 # type: =head2
20528 #: ../fish/guestfish-actions.pod:2539
20529 msgid "mke2journal-U"
20530 msgstr ""
20531
20532 # type: verbatim
20533 #: ../fish/guestfish-actions.pod:2541
20534 #, no-wrap
20535 msgid ""
20536 " mke2journal-U blocksize uuid device\n"
20537 "\n"
20538 msgstr ""
20539
20540 # type: =head2
20541 #: ../fish/guestfish-actions.pod:2545
20542 msgid "mkfifo"
20543 msgstr ""
20544
20545 # type: verbatim
20546 #: ../fish/guestfish-actions.pod:2547
20547 #, no-wrap
20548 msgid ""
20549 " mkfifo mode path\n"
20550 "\n"
20551 msgstr ""
20552
20553 # type: textblock
20554 #: ../fish/guestfish-actions.pod:2549
20555 msgid ""
20556 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20557 "is just a convenient wrapper around L</mknod>."
20558 msgstr ""
20559
20560 # type: =head2
20561 #: ../fish/guestfish-actions.pod:2555
20562 msgid "mkfs"
20563 msgstr ""
20564
20565 # type: verbatim
20566 #: ../fish/guestfish-actions.pod:2557
20567 #, no-wrap
20568 msgid ""
20569 " mkfs fstype device\n"
20570 "\n"
20571 msgstr ""
20572
20573 # type: =head2
20574 #: ../fish/guestfish-actions.pod:2563
20575 msgid "mkfs-b"
20576 msgstr ""
20577
20578 # type: verbatim
20579 #: ../fish/guestfish-actions.pod:2565
20580 #, no-wrap
20581 msgid ""
20582 " mkfs-b fstype blocksize device\n"
20583 "\n"
20584 msgstr ""
20585
20586 # type: textblock
20587 #: ../fish/guestfish-actions.pod:2567
20588 msgid ""
20589 "This call is similar to L</mkfs>, but it allows you to control the block "
20590 "size of the resulting filesystem.  Supported block sizes depend on the "
20591 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20592 msgstr ""
20593
20594 # type: =head2
20595 #: ../fish/guestfish-actions.pod:2575
20596 msgid "mkmountpoint"
20597 msgstr ""
20598
20599 # type: verbatim
20600 #: ../fish/guestfish-actions.pod:2577
20601 #, no-wrap
20602 msgid ""
20603 " mkmountpoint exemptpath\n"
20604 "\n"
20605 msgstr ""
20606
20607 # type: textblock
20608 #: ../fish/guestfish-actions.pod:2579
20609 msgid ""
20610 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20611 "to create extra mountpoints before mounting the first filesystem."
20612 msgstr ""
20613
20614 # type: textblock
20615 #: ../fish/guestfish-actions.pod:2603
20616 msgid ""
20617 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
20618 "unexpected errors if you try to mix these calls.  It is safest to manually "
20619 "unmount filesystems and remove mountpoints after use."
20620 msgstr ""
20621
20622 # type: textblock
20623 #: ../fish/guestfish-actions.pod:2607
20624 msgid ""
20625 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
20626 "for this to work for manual mountpoints, you must ensure that the innermost "
20627 "mountpoints have the longest pathnames, as in the example code above."
20628 msgstr ""
20629
20630 # type: textblock
20631 #: ../fish/guestfish-actions.pod:2614
20632 msgid ""
20633 "Autosync [see L</set-autosync>, this is set by default on handles] means "
20634 "that L</umount-all> is called when the handle is closed which can also "
20635 "trigger these issues."
20636 msgstr ""
20637
20638 # type: =head2
20639 #: ../fish/guestfish-actions.pod:2618
20640 msgid "mknod"
20641 msgstr ""
20642
20643 # type: verbatim
20644 #: ../fish/guestfish-actions.pod:2620
20645 #, no-wrap
20646 msgid ""
20647 " mknod mode devmajor devminor path\n"
20648 "\n"
20649 msgstr ""
20650
20651 # type: textblock
20652 #: ../fish/guestfish-actions.pod:2630
20653 msgid ""
20654 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20655 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20656 "regular file).  These constants are available in the standard Linux header "
20657 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20658 "wrappers around this command which bitwise OR in the appropriate constant "
20659 "for you."
20660 msgstr ""
20661
20662 # type: =head2
20663 #: ../fish/guestfish-actions.pod:2640
20664 msgid "mknod-b"
20665 msgstr ""
20666
20667 # type: verbatim
20668 #: ../fish/guestfish-actions.pod:2642
20669 #, no-wrap
20670 msgid ""
20671 " mknod-b mode devmajor devminor path\n"
20672 "\n"
20673 msgstr ""
20674
20675 # type: textblock
20676 #: ../fish/guestfish-actions.pod:2644
20677 msgid ""
20678 "This call creates a block device node called C<path> with mode C<mode> and "
20679 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20680 "wrapper around L</mknod>."
20681 msgstr ""
20682
20683 # type: =head2
20684 #: ../fish/guestfish-actions.pod:2650
20685 msgid "mknod-c"
20686 msgstr ""
20687
20688 # type: verbatim
20689 #: ../fish/guestfish-actions.pod:2652
20690 #, no-wrap
20691 msgid ""
20692 " mknod-c mode devmajor devminor path\n"
20693 "\n"
20694 msgstr ""
20695
20696 # type: textblock
20697 #: ../fish/guestfish-actions.pod:2654
20698 msgid ""
20699 "This call creates a char device node called C<path> with mode C<mode> and "
20700 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20701 "wrapper around L</mknod>."
20702 msgstr ""
20703
20704 # type: =head2
20705 #: ../fish/guestfish-actions.pod:2660
20706 msgid "mkswap"
20707 msgstr ""
20708
20709 # type: verbatim
20710 #: ../fish/guestfish-actions.pod:2662
20711 #, no-wrap
20712 msgid ""
20713 " mkswap device\n"
20714 "\n"
20715 msgstr ""
20716
20717 # type: =head2
20718 #: ../fish/guestfish-actions.pod:2666
20719 msgid "mkswap-L"
20720 msgstr ""
20721
20722 # type: verbatim
20723 #: ../fish/guestfish-actions.pod:2668
20724 #, no-wrap
20725 msgid ""
20726 " mkswap-L label device\n"
20727 "\n"
20728 msgstr ""
20729
20730 # type: =head2
20731 #: ../fish/guestfish-actions.pod:2676
20732 msgid "mkswap-U"
20733 msgstr ""
20734
20735 # type: verbatim
20736 #: ../fish/guestfish-actions.pod:2678
20737 #, no-wrap
20738 msgid ""
20739 " mkswap-U uuid device\n"
20740 "\n"
20741 msgstr ""
20742
20743 # type: =head2
20744 #: ../fish/guestfish-actions.pod:2682
20745 msgid "mkswap-file"
20746 msgstr ""
20747
20748 # type: verbatim
20749 #: ../fish/guestfish-actions.pod:2684
20750 #, no-wrap
20751 msgid ""
20752 " mkswap-file path\n"
20753 "\n"
20754 msgstr ""
20755
20756 # type: textblock
20757 #: ../fish/guestfish-actions.pod:2688
20758 msgid ""
20759 "This command just writes a swap file signature to an existing file.  To "
20760 "create the file itself, use something like L</fallocate>."
20761 msgstr ""
20762
20763 # type: =head2
20764 #: ../fish/guestfish-actions.pod:2691
20765 msgid "modprobe"
20766 msgstr ""
20767
20768 # type: verbatim
20769 #: ../fish/guestfish-actions.pod:2693
20770 #, no-wrap
20771 msgid ""
20772 " modprobe modulename\n"
20773 "\n"
20774 msgstr ""
20775
20776 # type: =head2
20777 #: ../fish/guestfish-actions.pod:2700
20778 msgid "mount"
20779 msgstr ""
20780
20781 # type: verbatim
20782 #: ../fish/guestfish-actions.pod:2702
20783 #, no-wrap
20784 msgid ""
20785 " mount device mountpoint\n"
20786 "\n"
20787 msgstr ""
20788
20789 # type: textblock
20790 #: ../fish/guestfish-actions.pod:2718
20791 msgid ""
20792 "B<Important note:> When you use this call, the filesystem options C<sync> "
20793 "and C<noatime> are set implicitly.  This was originally done because we "
20794 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20795 "very large negative performance impact and negligible effect on "
20796 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20797 "code that needs performance, and instead use L</mount-options> (use an empty "
20798 "string for the first parameter if you don't want any options)."
20799 msgstr ""
20800
20801 # type: =head2
20802 #: ../fish/guestfish-actions.pod:2728
20803 msgid "mount-loop"
20804 msgstr ""
20805
20806 # type: verbatim
20807 #: ../fish/guestfish-actions.pod:2730
20808 #, no-wrap
20809 msgid ""
20810 " mount-loop file mountpoint\n"
20811 "\n"
20812 msgstr ""
20813
20814 # type: =head2
20815 #: ../fish/guestfish-actions.pod:2736
20816 msgid "mount-options"
20817 msgstr ""
20818
20819 # type: verbatim
20820 #: ../fish/guestfish-actions.pod:2738
20821 #, no-wrap
20822 msgid ""
20823 " mount-options options device mountpoint\n"
20824 "\n"
20825 msgstr ""
20826
20827 # type: textblock
20828 #: ../fish/guestfish-actions.pod:2740
20829 msgid ""
20830 "This is the same as the L</mount> command, but it allows you to set the "
20831 "mount options as for the L<mount(8)> I<-o> flag."
20832 msgstr ""
20833
20834 # type: =head2
20835 #: ../fish/guestfish-actions.pod:2748
20836 msgid "mount-ro"
20837 msgstr ""
20838
20839 # type: verbatim
20840 #: ../fish/guestfish-actions.pod:2750
20841 #, no-wrap
20842 msgid ""
20843 " mount-ro device mountpoint\n"
20844 "\n"
20845 msgstr ""
20846
20847 # type: textblock
20848 #: ../fish/guestfish-actions.pod:2752
20849 msgid ""
20850 "This is the same as the L</mount> command, but it mounts the filesystem with "
20851 "the read-only (I<-o ro>) flag."
20852 msgstr ""
20853
20854 # type: =head2
20855 #: ../fish/guestfish-actions.pod:2755
20856 msgid "mount-vfs"
20857 msgstr ""
20858
20859 # type: verbatim
20860 #: ../fish/guestfish-actions.pod:2757
20861 #, no-wrap
20862 msgid ""
20863 " mount-vfs options vfstype device mountpoint\n"
20864 "\n"
20865 msgstr ""
20866
20867 # type: textblock
20868 #: ../fish/guestfish-actions.pod:2759
20869 msgid ""
20870 "This is the same as the L</mount> command, but it allows you to set both the "
20871 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20872 msgstr ""
20873
20874 # type: =head2
20875 #: ../fish/guestfish-actions.pod:2763
20876 msgid "mountpoints"
20877 msgstr ""
20878
20879 # type: verbatim
20880 #: ../fish/guestfish-actions.pod:2765
20881 #, no-wrap
20882 msgid ""
20883 " mountpoints\n"
20884 "\n"
20885 msgstr ""
20886
20887 # type: textblock
20888 #: ../fish/guestfish-actions.pod:2767
20889 msgid ""
20890 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20891 "This one returns a hash table (map) of device name to directory where the "
20892 "device is mounted."
20893 msgstr ""
20894
20895 # type: =head2
20896 #: ../fish/guestfish-actions.pod:2771
20897 msgid "mounts"
20898 msgstr ""
20899
20900 # type: verbatim
20901 #: ../fish/guestfish-actions.pod:2773
20902 #, no-wrap
20903 msgid ""
20904 " mounts\n"
20905 "\n"
20906 msgstr ""
20907
20908 # type: textblock
20909 #: ../fish/guestfish-actions.pod:2780
20910 msgid "See also: L</mountpoints>"
20911 msgstr ""
20912
20913 # type: =head2
20914 #: ../fish/guestfish-actions.pod:2782
20915 msgid "mv"
20916 msgstr ""
20917
20918 # type: verbatim
20919 #: ../fish/guestfish-actions.pod:2784
20920 #, no-wrap
20921 msgid ""
20922 " mv src dest\n"
20923 "\n"
20924 msgstr ""
20925
20926 # type: =head2
20927 #: ../fish/guestfish-actions.pod:2789
20928 msgid "ntfs-3g-probe"
20929 msgstr ""
20930
20931 # type: verbatim
20932 #: ../fish/guestfish-actions.pod:2791
20933 #, no-wrap
20934 msgid ""
20935 " ntfs-3g-probe true|false device\n"
20936 "\n"
20937 msgstr ""
20938
20939 # type: =head2
20940 #: ../fish/guestfish-actions.pod:2805
20941 msgid "ntfsresize"
20942 msgstr ""
20943
20944 # type: verbatim
20945 #: ../fish/guestfish-actions.pod:2807
20946 #, no-wrap
20947 msgid ""
20948 " ntfsresize device\n"
20949 "\n"
20950 msgstr ""
20951
20952 # type: =head2
20953 #: ../fish/guestfish-actions.pod:2813
20954 msgid "ntfsresize-size"
20955 msgstr ""
20956
20957 # type: verbatim
20958 #: ../fish/guestfish-actions.pod:2815
20959 #, no-wrap
20960 msgid ""
20961 " ntfsresize-size device size\n"
20962 "\n"
20963 msgstr ""
20964
20965 # type: textblock
20966 #: ../fish/guestfish-actions.pod:2817
20967 msgid ""
20968 "This command is the same as L</ntfsresize> except that it allows you to "
20969 "specify the new size (in bytes) explicitly."
20970 msgstr ""
20971
20972 # type: =head2
20973 #: ../fish/guestfish-actions.pod:2820
20974 msgid "part-add"
20975 msgstr ""
20976
20977 # type: verbatim
20978 #: ../fish/guestfish-actions.pod:2822
20979 #, no-wrap
20980 msgid ""
20981 " part-add device prlogex startsect endsect\n"
20982 "\n"
20983 msgstr ""
20984
20985 # type: textblock
20986 #: ../fish/guestfish-actions.pod:2824
20987 msgid ""
20988 "This command adds a partition to C<device>.  If there is no partition table "
20989 "on the device, call L</part-init> first."
20990 msgstr ""
20991
20992 # type: textblock
20993 #: ../fish/guestfish-actions.pod:2836
20994 msgid ""
20995 "Creating a partition which covers the whole disk is not so easy.  Use L</"
20996 "part-disk> to do that."
20997 msgstr ""
20998
20999 # type: =head2
21000 #: ../fish/guestfish-actions.pod:2839
21001 msgid "part-del"
21002 msgstr ""
21003
21004 # type: verbatim
21005 #: ../fish/guestfish-actions.pod:2841
21006 #, no-wrap
21007 msgid ""
21008 " part-del device partnum\n"
21009 "\n"
21010 msgstr ""
21011
21012 # type: =head2
21013 #: ../fish/guestfish-actions.pod:2849
21014 msgid "part-disk"
21015 msgstr ""
21016
21017 # type: verbatim
21018 #: ../fish/guestfish-actions.pod:2851
21019 #, no-wrap
21020 msgid ""
21021 " part-disk device parttype\n"
21022 "\n"
21023 msgstr ""
21024
21025 # type: textblock
21026 #: ../fish/guestfish-actions.pod:2853
21027 msgid ""
21028 "This command is simply a combination of L</part-init> followed by L</part-"
21029 "add> to create a single primary partition covering the whole disk."
21030 msgstr ""
21031
21032 # type: textblock
21033 #: ../fish/guestfish-actions.pod:2857
21034 msgid ""
21035 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21036 "possible values are described in L</part-init>."
21037 msgstr ""
21038
21039 # type: =head2
21040 #: ../fish/guestfish-actions.pod:2863
21041 msgid "part-get-bootable"
21042 msgstr ""
21043
21044 # type: verbatim
21045 #: ../fish/guestfish-actions.pod:2865
21046 #, no-wrap
21047 msgid ""
21048 " part-get-bootable device partnum\n"
21049 "\n"
21050 msgstr ""
21051
21052 # type: textblock
21053 #: ../fish/guestfish-actions.pod:2870
21054 msgid "See also L</part-set-bootable>."
21055 msgstr ""
21056
21057 # type: =head2
21058 #: ../fish/guestfish-actions.pod:2872
21059 msgid "part-get-mbr-id"
21060 msgstr ""
21061
21062 # type: verbatim
21063 #: ../fish/guestfish-actions.pod:2874
21064 #, no-wrap
21065 msgid ""
21066 " part-get-mbr-id device partnum\n"
21067 "\n"
21068 msgstr ""
21069
21070 # type: textblock
21071 #: ../fish/guestfish-actions.pod:2879 ../fish/guestfish-actions.pod:3017
21072 msgid ""
21073 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21074 "undefined results for other partition table types (see L</part-get-"
21075 "parttype>)."
21076 msgstr ""
21077
21078 # type: =head2
21079 #: ../fish/guestfish-actions.pod:2883
21080 msgid "part-get-parttype"
21081 msgstr ""
21082
21083 # type: verbatim
21084 #: ../fish/guestfish-actions.pod:2885
21085 #, no-wrap
21086 msgid ""
21087 " part-get-parttype device\n"
21088 "\n"
21089 msgstr ""
21090
21091 # type: textblock
21092 #: ../fish/guestfish-actions.pod:2890
21093 msgid ""
21094 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21095 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21096 "possible, although unusual.  See L</part-init> for a full list."
21097 msgstr ""
21098
21099 # type: =head2
21100 #: ../fish/guestfish-actions.pod:2895
21101 msgid "part-init"
21102 msgstr ""
21103
21104 # type: verbatim
21105 #: ../fish/guestfish-actions.pod:2897
21106 #, no-wrap
21107 msgid ""
21108 " part-init device parttype\n"
21109 "\n"
21110 msgstr ""
21111
21112 # type: textblock
21113 #: ../fish/guestfish-actions.pod:2903
21114 msgid ""
21115 "Initially there are no partitions.  Following this, you should call L</part-"
21116 "add> for each partition required."
21117 msgstr ""
21118
21119 # type: =head2
21120 #: ../fish/guestfish-actions.pod:2966
21121 msgid "part-list"
21122 msgstr ""
21123
21124 # type: verbatim
21125 #: ../fish/guestfish-actions.pod:2968
21126 #, no-wrap
21127 msgid ""
21128 " part-list device\n"
21129 "\n"
21130 msgstr ""
21131
21132 # type: textblock
21133 #: ../fish/guestfish-actions.pod:2983
21134 msgid ""
21135 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21136 "the device's sector size, see L</blockdev-getss>."
21137 msgstr ""
21138
21139 # type: =head2
21140 #: ../fish/guestfish-actions.pod:2996
21141 msgid "part-set-bootable"
21142 msgstr ""
21143
21144 # type: verbatim
21145 #: ../fish/guestfish-actions.pod:2998
21146 #, no-wrap
21147 msgid ""
21148 " part-set-bootable device partnum true|false\n"
21149 "\n"
21150 msgstr ""
21151
21152 # type: =head2
21153 #: ../fish/guestfish-actions.pod:3007
21154 msgid "part-set-mbr-id"
21155 msgstr ""
21156
21157 # type: verbatim
21158 #: ../fish/guestfish-actions.pod:3009
21159 #, no-wrap
21160 msgid ""
21161 " part-set-mbr-id device partnum idbyte\n"
21162 "\n"
21163 msgstr ""
21164
21165 # type: =head2
21166 #: ../fish/guestfish-actions.pod:3021
21167 msgid "part-set-name"
21168 msgstr ""
21169
21170 # type: verbatim
21171 #: ../fish/guestfish-actions.pod:3023
21172 #, no-wrap
21173 msgid ""
21174 " part-set-name device partnum name\n"
21175 "\n"
21176 msgstr ""
21177
21178 # type: =head2
21179 #: ../fish/guestfish-actions.pod:3031
21180 msgid "part-to-dev"
21181 msgstr ""
21182
21183 # type: verbatim
21184 #: ../fish/guestfish-actions.pod:3033
21185 #, no-wrap
21186 msgid ""
21187 " part-to-dev partition\n"
21188 "\n"
21189 msgstr ""
21190
21191 # type: textblock
21192 #: ../fish/guestfish-actions.pod:3039
21193 msgid ""
21194 "The named partition must exist, for example as a string returned from L</"
21195 "list-partitions>."
21196 msgstr ""
21197
21198 # type: =head2
21199 #: ../fish/guestfish-actions.pod:3042
21200 msgid "ping-daemon"
21201 msgstr ""
21202
21203 # type: verbatim
21204 #: ../fish/guestfish-actions.pod:3044
21205 #, no-wrap
21206 msgid ""
21207 " ping-daemon\n"
21208 "\n"
21209 msgstr ""
21210
21211 # type: =head2
21212 #: ../fish/guestfish-actions.pod:3051
21213 msgid "pread"
21214 msgstr ""
21215
21216 # type: verbatim
21217 #: ../fish/guestfish-actions.pod:3053
21218 #, no-wrap
21219 msgid ""
21220 " pread path count offset\n"
21221 "\n"
21222 msgstr ""
21223
21224 # type: textblock
21225 #: ../fish/guestfish-actions.pod:3061
21226 msgid "See also L</pwrite>, L</pread-device>."
21227 msgstr ""
21228
21229 # type: =head2
21230 #: ../fish/guestfish-actions.pod:3066
21231 msgid "pread-device"
21232 msgstr ""
21233
21234 # type: verbatim
21235 #: ../fish/guestfish-actions.pod:3068
21236 #, no-wrap
21237 msgid ""
21238 " pread-device device count offset\n"
21239 "\n"
21240 msgstr ""
21241
21242 # type: textblock
21243 #: ../fish/guestfish-actions.pod:3076
21244 msgid "See also L</pread>."
21245 msgstr ""
21246
21247 # type: =head2
21248 #: ../fish/guestfish-actions.pod:3081
21249 msgid "pvcreate"
21250 msgstr ""
21251
21252 # type: verbatim
21253 #: ../fish/guestfish-actions.pod:3083
21254 #, no-wrap
21255 msgid ""
21256 " pvcreate device\n"
21257 "\n"
21258 msgstr ""
21259
21260 # type: =head2
21261 #: ../fish/guestfish-actions.pod:3089
21262 msgid "pvremove"
21263 msgstr ""
21264
21265 # type: verbatim
21266 #: ../fish/guestfish-actions.pod:3091
21267 #, no-wrap
21268 msgid ""
21269 " pvremove device\n"
21270 "\n"
21271 msgstr ""
21272
21273 # type: =head2
21274 #: ../fish/guestfish-actions.pod:3100
21275 msgid "pvresize"
21276 msgstr ""
21277
21278 # type: verbatim
21279 #: ../fish/guestfish-actions.pod:3102
21280 #, no-wrap
21281 msgid ""
21282 " pvresize device\n"
21283 "\n"
21284 msgstr ""
21285
21286 # type: =head2
21287 #: ../fish/guestfish-actions.pod:3107
21288 msgid "pvresize-size"
21289 msgstr ""
21290
21291 # type: verbatim
21292 #: ../fish/guestfish-actions.pod:3109
21293 #, no-wrap
21294 msgid ""
21295 " pvresize-size device size\n"
21296 "\n"
21297 msgstr ""
21298
21299 # type: textblock
21300 #: ../fish/guestfish-actions.pod:3111
21301 msgid ""
21302 "This command is the same as L</pvresize> except that it allows you to "
21303 "specify the new size (in bytes) explicitly."
21304 msgstr ""
21305
21306 # type: =head2
21307 #: ../fish/guestfish-actions.pod:3114
21308 msgid "pvs"
21309 msgstr ""
21310
21311 # type: verbatim
21312 #: ../fish/guestfish-actions.pod:3116
21313 #, no-wrap
21314 msgid ""
21315 " pvs\n"
21316 "\n"
21317 msgstr ""
21318
21319 # type: textblock
21320 #: ../fish/guestfish-actions.pod:3124
21321 msgid "See also L</pvs-full>."
21322 msgstr ""
21323
21324 # type: =head2
21325 #: ../fish/guestfish-actions.pod:3126
21326 msgid "pvs-full"
21327 msgstr ""
21328
21329 # type: verbatim
21330 #: ../fish/guestfish-actions.pod:3128
21331 #, no-wrap
21332 msgid ""
21333 " pvs-full\n"
21334 "\n"
21335 msgstr ""
21336
21337 # type: =head2
21338 #: ../fish/guestfish-actions.pod:3133
21339 msgid "pvuuid"
21340 msgstr ""
21341
21342 # type: verbatim
21343 #: ../fish/guestfish-actions.pod:3135
21344 #, no-wrap
21345 msgid ""
21346 " pvuuid device\n"
21347 "\n"
21348 msgstr ""
21349
21350 # type: =head2
21351 #: ../fish/guestfish-actions.pod:3139
21352 msgid "pwrite"
21353 msgstr ""
21354
21355 # type: verbatim
21356 #: ../fish/guestfish-actions.pod:3141
21357 #, no-wrap
21358 msgid ""
21359 " pwrite path content offset\n"
21360 "\n"
21361 msgstr ""
21362
21363 # type: textblock
21364 #: ../fish/guestfish-actions.pod:3152
21365 msgid "See also L</pread>, L</pwrite-device>."
21366 msgstr ""
21367
21368 # type: =head2
21369 #: ../fish/guestfish-actions.pod:3157
21370 msgid "pwrite-device"
21371 msgstr ""
21372
21373 # type: verbatim
21374 #: ../fish/guestfish-actions.pod:3159
21375 #, no-wrap
21376 msgid ""
21377 " pwrite-device device content offset\n"
21378 "\n"
21379 msgstr ""
21380
21381 # type: textblock
21382 #: ../fish/guestfish-actions.pod:3169
21383 msgid "See also L</pwrite>."
21384 msgstr ""
21385
21386 # type: =head2
21387 #: ../fish/guestfish-actions.pod:3174
21388 msgid "read-file"
21389 msgstr ""
21390
21391 # type: verbatim
21392 #: ../fish/guestfish-actions.pod:3176
21393 #, no-wrap
21394 msgid ""
21395 " read-file path\n"
21396 "\n"
21397 msgstr ""
21398
21399 # type: textblock
21400 #: ../fish/guestfish-actions.pod:3181
21401 msgid ""
21402 "Unlike L</cat>, this function can correctly handle files that contain "
21403 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21404 "is limited in the total size of file that can be handled."
21405 msgstr ""
21406
21407 # type: =head2
21408 #: ../fish/guestfish-actions.pod:3189
21409 msgid "read-lines"
21410 msgstr ""
21411
21412 # type: verbatim
21413 #: ../fish/guestfish-actions.pod:3191
21414 #, no-wrap
21415 msgid ""
21416 " read-lines path\n"
21417 "\n"
21418 msgstr ""
21419
21420 # type: textblock
21421 #: ../fish/guestfish-actions.pod:3198
21422 msgid ""
21423 "Note that this function cannot correctly handle binary files (specifically, "
21424 "files containing C<\\0> character which is treated as end of line).  For "
21425 "those you need to use the L</read-file> function which has a more complex "
21426 "interface."
21427 msgstr ""
21428
21429 # type: =head2
21430 #: ../fish/guestfish-actions.pod:3203
21431 msgid "readdir"
21432 msgstr ""
21433
21434 # type: verbatim
21435 #: ../fish/guestfish-actions.pod:3205
21436 #, no-wrap
21437 msgid ""
21438 " readdir dir\n"
21439 "\n"
21440 msgstr ""
21441
21442 # type: textblock
21443 #: ../fish/guestfish-actions.pod:3257
21444 msgid ""
21445 "This function is primarily intended for use by programs.  To get a simple "
21446 "list of names, use L</ls>.  To get a printable directory for human "
21447 "consumption, use L</ll>."
21448 msgstr ""
21449
21450 # type: =head2
21451 #: ../fish/guestfish-actions.pod:3261
21452 msgid "readlink"
21453 msgstr ""
21454
21455 # type: verbatim
21456 #: ../fish/guestfish-actions.pod:3263
21457 #, no-wrap
21458 msgid ""
21459 " readlink path\n"
21460 "\n"
21461 msgstr ""
21462
21463 # type: =head2
21464 #: ../fish/guestfish-actions.pod:3267
21465 msgid "readlinklist"
21466 msgstr ""
21467
21468 # type: verbatim
21469 #: ../fish/guestfish-actions.pod:3269
21470 #, no-wrap
21471 msgid ""
21472 " readlinklist path 'names ...'\n"
21473 "\n"
21474 msgstr ""
21475
21476 # type: =head2
21477 #: ../fish/guestfish-actions.pod:3293
21478 msgid "realpath"
21479 msgstr ""
21480
21481 # type: verbatim
21482 #: ../fish/guestfish-actions.pod:3295
21483 #, no-wrap
21484 msgid ""
21485 " realpath path\n"
21486 "\n"
21487 msgstr ""
21488
21489 # type: =head2
21490 #: ../fish/guestfish-actions.pod:3300
21491 msgid "removexattr"
21492 msgstr ""
21493
21494 # type: verbatim
21495 #: ../fish/guestfish-actions.pod:3302
21496 #, no-wrap
21497 msgid ""
21498 " removexattr xattr path\n"
21499 "\n"
21500 msgstr ""
21501
21502 # type: textblock
21503 #: ../fish/guestfish-actions.pod:3307
21504 msgid "See also: L</lremovexattr>, L<attr(5)>."
21505 msgstr ""
21506
21507 # type: =head2
21508 #: ../fish/guestfish-actions.pod:3309
21509 msgid "resize2fs"
21510 msgstr ""
21511
21512 # type: verbatim
21513 #: ../fish/guestfish-actions.pod:3311
21514 #, no-wrap
21515 msgid ""
21516 " resize2fs device\n"
21517 "\n"
21518 msgstr ""
21519
21520 # type: textblock
21521 #: ../fish/guestfish-actions.pod:3316
21522 msgid ""
21523 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21524 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21525 "gives an error about this and sometimes not.  In any case, it is always safe "
21526 "to call L</e2fsck-f> before calling this function."
21527 msgstr ""
21528
21529 # type: =head2
21530 #: ../fish/guestfish-actions.pod:3322
21531 msgid "resize2fs-size"
21532 msgstr ""
21533
21534 # type: verbatim
21535 #: ../fish/guestfish-actions.pod:3324
21536 #, no-wrap
21537 msgid ""
21538 " resize2fs-size device size\n"
21539 "\n"
21540 msgstr ""
21541
21542 # type: textblock
21543 #: ../fish/guestfish-actions.pod:3326
21544 msgid ""
21545 "This command is the same as L</resize2fs> except that it allows you to "
21546 "specify the new size (in bytes) explicitly."
21547 msgstr ""
21548
21549 # type: =head2
21550 #: ../fish/guestfish-actions.pod:3329
21551 msgid "rm"
21552 msgstr ""
21553
21554 # type: verbatim
21555 #: ../fish/guestfish-actions.pod:3331
21556 #, no-wrap
21557 msgid ""
21558 " rm path\n"
21559 "\n"
21560 msgstr ""
21561
21562 # type: =head2
21563 #: ../fish/guestfish-actions.pod:3335
21564 msgid "rm-rf"
21565 msgstr ""
21566
21567 # type: verbatim
21568 #: ../fish/guestfish-actions.pod:3337
21569 #, no-wrap
21570 msgid ""
21571 " rm-rf path\n"
21572 "\n"
21573 msgstr ""
21574
21575 # type: =head2
21576 #: ../fish/guestfish-actions.pod:3343
21577 msgid "rmdir"
21578 msgstr ""
21579
21580 # type: verbatim
21581 #: ../fish/guestfish-actions.pod:3345
21582 #, no-wrap
21583 msgid ""
21584 " rmdir path\n"
21585 "\n"
21586 msgstr ""
21587
21588 # type: =head2
21589 #: ../fish/guestfish-actions.pod:3349
21590 msgid "rmmountpoint"
21591 msgstr ""
21592
21593 # type: verbatim
21594 #: ../fish/guestfish-actions.pod:3351
21595 #, no-wrap
21596 msgid ""
21597 " rmmountpoint exemptpath\n"
21598 "\n"
21599 msgstr ""
21600
21601 # type: textblock
21602 #: ../fish/guestfish-actions.pod:3353
21603 msgid ""
21604 "This calls removes a mountpoint that was previously created with L</"
21605 "mkmountpoint>.  See L</mkmountpoint> for full details."
21606 msgstr ""
21607
21608 # type: =head2
21609 #: ../fish/guestfish-actions.pod:3357
21610 msgid "scrub-device"
21611 msgstr ""
21612
21613 # type: verbatim
21614 #: ../fish/guestfish-actions.pod:3359
21615 #, no-wrap
21616 msgid ""
21617 " scrub-device device\n"
21618 "\n"
21619 msgstr ""
21620
21621 # type: =head2
21622 #: ../fish/guestfish-actions.pod:3370
21623 msgid "scrub-file"
21624 msgstr ""
21625
21626 # type: verbatim
21627 #: ../fish/guestfish-actions.pod:3372
21628 #, no-wrap
21629 msgid ""
21630 " scrub-file file\n"
21631 "\n"
21632 msgstr ""
21633
21634 # type: =head2
21635 #: ../fish/guestfish-actions.pod:3382
21636 msgid "scrub-freespace"
21637 msgstr ""
21638
21639 # type: verbatim
21640 #: ../fish/guestfish-actions.pod:3384
21641 #, no-wrap
21642 msgid ""
21643 " scrub-freespace dir\n"
21644 "\n"
21645 msgstr ""
21646
21647 # type: textblock
21648 #: ../fish/guestfish-actions.pod:3386
21649 msgid ""
21650 "This command creates the directory C<dir> and then fills it with files until "
21651 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21652 "deletes them.  The intention is to scrub any free space on the partition "
21653 "containing C<dir>."
21654 msgstr ""
21655
21656 # type: =head2
21657 #: ../fish/guestfish-actions.pod:3395
21658 msgid "set-append"
21659 msgstr ""
21660
21661 # type: =head2
21662 #: ../fish/guestfish-actions.pod:3397
21663 msgid "append"
21664 msgstr ""
21665
21666 # type: verbatim
21667 #: ../fish/guestfish-actions.pod:3399
21668 #, no-wrap
21669 msgid ""
21670 " set-append append\n"
21671 "\n"
21672 msgstr ""
21673
21674 # type: =head2
21675 #: ../fish/guestfish-actions.pod:3410
21676 msgid "set-autosync"
21677 msgstr ""
21678
21679 # type: =head2
21680 #: ../fish/guestfish-actions.pod:3412
21681 msgid "autosync"
21682 msgstr ""
21683
21684 # type: verbatim
21685 #: ../fish/guestfish-actions.pod:3414
21686 #, no-wrap
21687 msgid ""
21688 " set-autosync true|false\n"
21689 "\n"
21690 msgstr ""
21691
21692 # type: textblock
21693 #: ../fish/guestfish-actions.pod:3416
21694 msgid ""
21695 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21696 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21697 "closed (also if the program exits without closing handles)."
21698 msgstr ""
21699
21700 # type: =head2
21701 #: ../fish/guestfish-actions.pod:3424
21702 msgid "set-direct"
21703 msgstr ""
21704
21705 # type: =head2
21706 #: ../fish/guestfish-actions.pod:3426
21707 msgid "direct"
21708 msgstr ""
21709
21710 # type: verbatim
21711 #: ../fish/guestfish-actions.pod:3428
21712 #, no-wrap
21713 msgid ""
21714 " set-direct true|false\n"
21715 "\n"
21716 msgstr ""
21717
21718 # type: textblock
21719 #: ../fish/guestfish-actions.pod:3434
21720 msgid ""
21721 "One consequence of this is that log messages aren't caught by the library "
21722 "and handled by L</set-log-message-callback>, but go straight to stdout."
21723 msgstr ""
21724
21725 # type: =head2
21726 #: ../fish/guestfish-actions.pod:3443
21727 msgid "set-e2label"
21728 msgstr ""
21729
21730 # type: verbatim
21731 #: ../fish/guestfish-actions.pod:3445
21732 #, no-wrap
21733 msgid ""
21734 " set-e2label device label\n"
21735 "\n"
21736 msgstr ""
21737
21738 # type: textblock
21739 #: ../fish/guestfish-actions.pod:3451
21740 msgid ""
21741 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21742 "label on a filesystem."
21743 msgstr ""
21744
21745 # type: =head2
21746 #: ../fish/guestfish-actions.pod:3454
21747 msgid "set-e2uuid"
21748 msgstr ""
21749
21750 # type: verbatim
21751 #: ../fish/guestfish-actions.pod:3456
21752 #, no-wrap
21753 msgid ""
21754 " set-e2uuid device uuid\n"
21755 "\n"
21756 msgstr ""
21757
21758 # type: textblock
21759 #: ../fish/guestfish-actions.pod:3463
21760 msgid ""
21761 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21762 "UUID of a filesystem."
21763 msgstr ""
21764
21765 # type: =head2
21766 #: ../fish/guestfish-actions.pod:3466
21767 msgid "set-memsize"
21768 msgstr ""
21769
21770 # type: =head2
21771 #: ../fish/guestfish-actions.pod:3468
21772 msgid "memsize"
21773 msgstr ""
21774
21775 # type: verbatim
21776 #: ../fish/guestfish-actions.pod:3470
21777 #, no-wrap
21778 msgid ""
21779 " set-memsize memsize\n"
21780 "\n"
21781 msgstr ""
21782
21783 # type: textblock
21784 #: ../fish/guestfish-actions.pod:3472
21785 msgid ""
21786 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21787 "This only has any effect if called before L</launch>."
21788 msgstr ""
21789
21790 # type: =head2
21791 #: ../fish/guestfish-actions.pod:3483
21792 msgid "set-network"
21793 msgstr ""
21794
21795 # type: =head2
21796 #: ../fish/guestfish-actions.pod:3485
21797 msgid "network"
21798 msgstr ""
21799
21800 # type: verbatim
21801 #: ../fish/guestfish-actions.pod:3487
21802 #, no-wrap
21803 msgid ""
21804 " set-network true|false\n"
21805 "\n"
21806 msgstr ""
21807
21808 # type: textblock
21809 #: ../fish/guestfish-actions.pod:3495
21810 msgid ""
21811 "You must call this before calling L</launch>, otherwise it has no effect."
21812 msgstr ""
21813
21814 # type: =head2
21815 #: ../fish/guestfish-actions.pod:3498
21816 msgid "set-path"
21817 msgstr ""
21818
21819 # type: =head2
21820 #: ../fish/guestfish-actions.pod:3500
21821 msgid "path"
21822 msgstr ""
21823
21824 # type: verbatim
21825 #: ../fish/guestfish-actions.pod:3502
21826 #, no-wrap
21827 msgid ""
21828 " set-path searchpath\n"
21829 "\n"
21830 msgstr ""
21831
21832 # type: =head2
21833 #: ../fish/guestfish-actions.pod:3511
21834 msgid "set-qemu"
21835 msgstr ""
21836
21837 # type: =head2
21838 #: ../fish/guestfish-actions.pod:3513
21839 msgid "qemu"
21840 msgstr ""
21841
21842 # type: verbatim
21843 #: ../fish/guestfish-actions.pod:3515
21844 #, no-wrap
21845 msgid ""
21846 " set-qemu qemu\n"
21847 "\n"
21848 msgstr ""
21849
21850 # type: =head2
21851 #: ../fish/guestfish-actions.pod:3535
21852 msgid "set-recovery-proc"
21853 msgstr ""
21854
21855 # type: =head2
21856 #: ../fish/guestfish-actions.pod:3537
21857 msgid "recovery-proc"
21858 msgstr ""
21859
21860 # type: verbatim
21861 #: ../fish/guestfish-actions.pod:3539
21862 #, no-wrap
21863 msgid ""
21864 " set-recovery-proc true|false\n"
21865 "\n"
21866 msgstr ""
21867
21868 # type: textblock
21869 #: ../fish/guestfish-actions.pod:3541
21870 msgid ""
21871 "If this is called with the parameter C<false> then L</launch> does not "
21872 "create a recovery process.  The purpose of the recovery process is to stop "
21873 "runaway qemu processes in the case where the main program aborts abruptly."
21874 msgstr ""
21875
21876 # type: textblock
21877 #: ../fish/guestfish-actions.pod:3546
21878 msgid ""
21879 "This only has any effect if called before L</launch>, and the default is "
21880 "true."
21881 msgstr ""
21882
21883 # type: =head2
21884 #: ../fish/guestfish-actions.pod:3555
21885 msgid "set-selinux"
21886 msgstr ""
21887
21888 # type: =head2
21889 #: ../fish/guestfish-actions.pod:3557
21890 msgid "selinux"
21891 msgstr ""
21892
21893 # type: verbatim
21894 #: ../fish/guestfish-actions.pod:3559
21895 #, no-wrap
21896 msgid ""
21897 " set-selinux true|false\n"
21898 "\n"
21899 msgstr ""
21900
21901 # type: =head2
21902 #: ../fish/guestfish-actions.pod:3570
21903 msgid "set-trace"
21904 msgstr ""
21905
21906 # type: =head2
21907 #: ../fish/guestfish-actions.pod:3572
21908 msgid "trace"
21909 msgstr ""
21910
21911 # type: verbatim
21912 #: ../fish/guestfish-actions.pod:3574
21913 #, no-wrap
21914 msgid ""
21915 " set-trace true|false\n"
21916 "\n"
21917 msgstr ""
21918
21919 # type: =head2
21920 #: ../fish/guestfish-actions.pod:3590
21921 msgid "set-verbose"
21922 msgstr ""
21923
21924 # type: =head2
21925 #: ../fish/guestfish-actions.pod:3592
21926 msgid "verbose"
21927 msgstr ""
21928
21929 # type: verbatim
21930 #: ../fish/guestfish-actions.pod:3594
21931 #, no-wrap
21932 msgid ""
21933 " set-verbose true|false\n"
21934 "\n"
21935 msgstr ""
21936
21937 # type: =head2
21938 #: ../fish/guestfish-actions.pod:3601
21939 msgid "setcon"
21940 msgstr ""
21941
21942 # type: verbatim
21943 #: ../fish/guestfish-actions.pod:3603
21944 #, no-wrap
21945 msgid ""
21946 " setcon context\n"
21947 "\n"
21948 msgstr ""
21949
21950 # type: =head2
21951 #: ../fish/guestfish-actions.pod:3610
21952 msgid "setxattr"
21953 msgstr ""
21954
21955 # type: verbatim
21956 #: ../fish/guestfish-actions.pod:3612
21957 #, no-wrap
21958 msgid ""
21959 " setxattr xattr val vallen path\n"
21960 "\n"
21961 msgstr ""
21962
21963 # type: textblock
21964 #: ../fish/guestfish-actions.pod:3618
21965 msgid "See also: L</lsetxattr>, L<attr(5)>."
21966 msgstr ""
21967
21968 # type: =head2
21969 #: ../fish/guestfish-actions.pod:3620
21970 msgid "sfdisk"
21971 msgstr ""
21972
21973 # type: verbatim
21974 #: ../fish/guestfish-actions.pod:3622
21975 #, no-wrap
21976 msgid ""
21977 " sfdisk device cyls heads sectors 'lines ...'\n"
21978 "\n"
21979 msgstr ""
21980
21981 # type: textblock
21982 #: ../fish/guestfish-actions.pod:3644
21983 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
21984 msgstr ""
21985
21986 # type: =head2
21987 #: ../fish/guestfish-actions.pod:3650
21988 msgid "sfdiskM"
21989 msgstr ""
21990
21991 # type: verbatim
21992 #: ../fish/guestfish-actions.pod:3652
21993 #, no-wrap
21994 msgid ""
21995 " sfdiskM device 'lines ...'\n"
21996 "\n"
21997 msgstr ""
21998
21999 # type: textblock
22000 #: ../fish/guestfish-actions.pod:3654
22001 msgid ""
22002 "This is a simplified interface to the L</sfdisk> command, where partition "
22003 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22004 "you don't need to specify the cyls, heads and sectors parameters which were "
22005 "rarely if ever used anyway."
22006 msgstr ""
22007
22008 # type: textblock
22009 #: ../fish/guestfish-actions.pod:3660
22010 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22011 msgstr ""
22012
22013 # type: =head2
22014 #: ../fish/guestfish-actions.pod:3666
22015 msgid "sfdisk-N"
22016 msgstr ""
22017
22018 # type: verbatim
22019 #: ../fish/guestfish-actions.pod:3668
22020 #, no-wrap
22021 msgid ""
22022 " sfdisk-N device partnum cyls heads sectors line\n"
22023 "\n"
22024 msgstr ""
22025
22026 # type: textblock
22027 #: ../fish/guestfish-actions.pod:3673
22028 msgid ""
22029 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
22030 "cyls/heads/sectors parameters."
22031 msgstr ""
22032
22033 # type: textblock
22034 #: ../fish/guestfish-actions.pod:3676
22035 msgid "See also: L</part-add>"
22036 msgstr ""
22037
22038 # type: =head2
22039 #: ../fish/guestfish-actions.pod:3681
22040 msgid "sfdisk-disk-geometry"
22041 msgstr ""
22042
22043 # type: verbatim
22044 #: ../fish/guestfish-actions.pod:3683
22045 #, no-wrap
22046 msgid ""
22047 " sfdisk-disk-geometry device\n"
22048 "\n"
22049 msgstr ""
22050
22051 # type: textblock
22052 #: ../fish/guestfish-actions.pod:3685
22053 msgid ""
22054 "This displays the disk geometry of C<device> read from the partition table.  "
22055 "Especially in the case where the underlying block device has been resized, "
22056 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
22057 "kernel-geometry>)."
22058 msgstr ""
22059
22060 # type: =head2
22061 #: ../fish/guestfish-actions.pod:3693
22062 msgid "sfdisk-kernel-geometry"
22063 msgstr ""
22064
22065 # type: verbatim
22066 #: ../fish/guestfish-actions.pod:3695
22067 #, no-wrap
22068 msgid ""
22069 " sfdisk-kernel-geometry device\n"
22070 "\n"
22071 msgstr ""
22072
22073 # type: =head2
22074 #: ../fish/guestfish-actions.pod:3702
22075 msgid "sfdisk-l"
22076 msgstr ""
22077
22078 # type: verbatim
22079 #: ../fish/guestfish-actions.pod:3704
22080 #, no-wrap
22081 msgid ""
22082 " sfdisk-l device\n"
22083 "\n"
22084 msgstr ""
22085
22086 # type: textblock
22087 #: ../fish/guestfish-actions.pod:3710
22088 msgid "See also: L</part-list>"
22089 msgstr ""
22090
22091 # type: =head2
22092 #: ../fish/guestfish-actions.pod:3712
22093 msgid "sh"
22094 msgstr ""
22095
22096 # type: verbatim
22097 #: ../fish/guestfish-actions.pod:3714
22098 #, no-wrap
22099 msgid ""
22100 " sh command\n"
22101 "\n"
22102 msgstr ""
22103
22104 # type: textblock
22105 #: ../fish/guestfish-actions.pod:3719
22106 msgid "This is like L</command>, but passes the command to:"
22107 msgstr ""
22108
22109 # type: textblock
22110 #: ../fish/guestfish-actions.pod:3727
22111 msgid "All the provisos about L</command> apply to this call."
22112 msgstr ""
22113
22114 # type: =head2
22115 #: ../fish/guestfish-actions.pod:3729
22116 msgid "sh-lines"
22117 msgstr ""
22118
22119 # type: verbatim
22120 #: ../fish/guestfish-actions.pod:3731
22121 #, no-wrap
22122 msgid ""
22123 " sh-lines command\n"
22124 "\n"
22125 msgstr ""
22126
22127 # type: textblock
22128 #: ../fish/guestfish-actions.pod:3733
22129 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22130 msgstr ""
22131
22132 # type: textblock
22133 #: ../fish/guestfish-actions.pod:3736
22134 msgid "See also: L</command-lines>"
22135 msgstr ""
22136
22137 # type: =head2
22138 #: ../fish/guestfish-actions.pod:3738
22139 msgid "sleep"
22140 msgstr ""
22141
22142 # type: verbatim
22143 #: ../fish/guestfish-actions.pod:3740
22144 #, no-wrap
22145 msgid ""
22146 " sleep secs\n"
22147 "\n"
22148 msgstr ""
22149
22150 # type: =head2
22151 #: ../fish/guestfish-actions.pod:3744
22152 msgid "stat"
22153 msgstr ""
22154
22155 # type: verbatim
22156 #: ../fish/guestfish-actions.pod:3746
22157 #, no-wrap
22158 msgid ""
22159 " stat path\n"
22160 "\n"
22161 msgstr ""
22162
22163 # type: =head2
22164 #: ../fish/guestfish-actions.pod:3752
22165 msgid "statvfs"
22166 msgstr ""
22167
22168 # type: verbatim
22169 #: ../fish/guestfish-actions.pod:3754
22170 #, no-wrap
22171 msgid ""
22172 " statvfs path\n"
22173 "\n"
22174 msgstr ""
22175
22176 # type: =head2
22177 #: ../fish/guestfish-actions.pod:3762
22178 msgid "strings"
22179 msgstr ""
22180
22181 # type: verbatim
22182 #: ../fish/guestfish-actions.pod:3764
22183 #, no-wrap
22184 msgid ""
22185 " strings path\n"
22186 "\n"
22187 msgstr ""
22188
22189 # type: =head2
22190 #: ../fish/guestfish-actions.pod:3772
22191 msgid "strings-e"
22192 msgstr ""
22193
22194 # type: verbatim
22195 #: ../fish/guestfish-actions.pod:3774
22196 #, no-wrap
22197 msgid ""
22198 " strings-e encoding path\n"
22199 "\n"
22200 msgstr ""
22201
22202 # type: textblock
22203 #: ../fish/guestfish-actions.pod:3776
22204 msgid ""
22205 "This is like the L</strings> command, but allows you to specify the encoding "
22206 "of strings that are looked for in the source file C<path>."
22207 msgstr ""
22208
22209 # type: textblock
22210 #: ../fish/guestfish-actions.pod:3786
22211 msgid ""
22212 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22213 "ISO-8859-X (this is what L</strings> uses)."
22214 msgstr ""
22215
22216 # type: =head2
22217 #: ../fish/guestfish-actions.pod:3818
22218 msgid "swapoff-device"
22219 msgstr ""
22220
22221 # type: verbatim
22222 #: ../fish/guestfish-actions.pod:3820
22223 #, no-wrap
22224 msgid ""
22225 " swapoff-device device\n"
22226 "\n"
22227 msgstr ""
22228
22229 # type: textblock
22230 #: ../fish/guestfish-actions.pod:3822
22231 msgid ""
22232 "This command disables the libguestfs appliance swap device or partition "
22233 "named C<device>.  See L</swapon-device>."
22234 msgstr ""
22235
22236 # type: =head2
22237 #: ../fish/guestfish-actions.pod:3826
22238 msgid "swapoff-file"
22239 msgstr ""
22240
22241 # type: verbatim
22242 #: ../fish/guestfish-actions.pod:3828
22243 #, no-wrap
22244 msgid ""
22245 " swapoff-file file\n"
22246 "\n"
22247 msgstr ""
22248
22249 # type: =head2
22250 #: ../fish/guestfish-actions.pod:3832
22251 msgid "swapoff-label"
22252 msgstr ""
22253
22254 # type: verbatim
22255 #: ../fish/guestfish-actions.pod:3834
22256 #, no-wrap
22257 msgid ""
22258 " swapoff-label label\n"
22259 "\n"
22260 msgstr ""
22261
22262 # type: =head2
22263 #: ../fish/guestfish-actions.pod:3839
22264 msgid "swapoff-uuid"
22265 msgstr ""
22266
22267 # type: verbatim
22268 #: ../fish/guestfish-actions.pod:3841
22269 #, no-wrap
22270 msgid ""
22271 " swapoff-uuid uuid\n"
22272 "\n"
22273 msgstr ""
22274
22275 # type: =head2
22276 #: ../fish/guestfish-actions.pod:3846
22277 msgid "swapon-device"
22278 msgstr ""
22279
22280 # type: verbatim
22281 #: ../fish/guestfish-actions.pod:3848
22282 #, no-wrap
22283 msgid ""
22284 " swapon-device device\n"
22285 "\n"
22286 msgstr ""
22287
22288 # type: textblock
22289 #: ../fish/guestfish-actions.pod:3850
22290 msgid ""
22291 "This command enables the libguestfs appliance to use the swap device or "
22292 "partition named C<device>.  The increased memory is made available for all "
22293 "commands, for example those run using L</command> or L</sh>."
22294 msgstr ""
22295
22296 # type: =head2
22297 #: ../fish/guestfish-actions.pod:3862
22298 msgid "swapon-file"
22299 msgstr ""
22300
22301 # type: verbatim
22302 #: ../fish/guestfish-actions.pod:3864
22303 #, no-wrap
22304 msgid ""
22305 " swapon-file file\n"
22306 "\n"
22307 msgstr ""
22308
22309 # type: textblock
22310 #: ../fish/guestfish-actions.pod:3866
22311 msgid ""
22312 "This command enables swap to a file.  See L</swapon-device> for other notes."
22313 msgstr ""
22314
22315 # type: =head2
22316 #: ../fish/guestfish-actions.pod:3869
22317 msgid "swapon-label"
22318 msgstr ""
22319
22320 # type: verbatim
22321 #: ../fish/guestfish-actions.pod:3871
22322 #, no-wrap
22323 msgid ""
22324 " swapon-label label\n"
22325 "\n"
22326 msgstr ""
22327
22328 # type: textblock
22329 #: ../fish/guestfish-actions.pod:3873
22330 msgid ""
22331 "This command enables swap to a labeled swap partition.  See L</swapon-"
22332 "device> for other notes."
22333 msgstr ""
22334
22335 # type: =head2
22336 #: ../fish/guestfish-actions.pod:3876
22337 msgid "swapon-uuid"
22338 msgstr ""
22339
22340 # type: verbatim
22341 #: ../fish/guestfish-actions.pod:3878
22342 #, no-wrap
22343 msgid ""
22344 " swapon-uuid uuid\n"
22345 "\n"
22346 msgstr ""
22347
22348 # type: textblock
22349 #: ../fish/guestfish-actions.pod:3880
22350 msgid ""
22351 "This command enables swap to a swap partition with the given UUID.  See L</"
22352 "swapon-device> for other notes."
22353 msgstr ""
22354
22355 # type: =head2
22356 #: ../fish/guestfish-actions.pod:3883
22357 msgid "sync"
22358 msgstr ""
22359
22360 # type: verbatim
22361 #: ../fish/guestfish-actions.pod:3885
22362 #, no-wrap
22363 msgid ""
22364 " sync\n"
22365 "\n"
22366 msgstr ""
22367
22368 # type: =head2
22369 #: ../fish/guestfish-actions.pod:3893
22370 msgid "tail"
22371 msgstr ""
22372
22373 # type: verbatim
22374 #: ../fish/guestfish-actions.pod:3895
22375 #, no-wrap
22376 msgid ""
22377 " tail path\n"
22378 "\n"
22379 msgstr ""
22380
22381 # type: =head2
22382 #: ../fish/guestfish-actions.pod:3903
22383 msgid "tail-n"
22384 msgstr ""
22385
22386 # type: verbatim
22387 #: ../fish/guestfish-actions.pod:3905
22388 #, no-wrap
22389 msgid ""
22390 " tail-n nrlines path\n"
22391 "\n"
22392 msgstr ""
22393
22394 # type: =head2
22395 #: ../fish/guestfish-actions.pod:3918
22396 msgid "tar-in"
22397 msgstr ""
22398
22399 # type: verbatim
22400 #: ../fish/guestfish-actions.pod:3920
22401 #, no-wrap
22402 msgid ""
22403 " tar-in (tarfile|-) directory\n"
22404 "\n"
22405 msgstr ""
22406
22407 # type: textblock
22408 #: ../fish/guestfish-actions.pod:3925
22409 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22410 msgstr ""
22411
22412 # type: =head2
22413 #: ../fish/guestfish-actions.pod:3930
22414 msgid "tar-out"
22415 msgstr ""
22416
22417 # type: verbatim
22418 #: ../fish/guestfish-actions.pod:3932
22419 #, no-wrap
22420 msgid ""
22421 " tar-out directory (tarfile|-)\n"
22422 "\n"
22423 msgstr ""
22424
22425 # type: textblock
22426 #: ../fish/guestfish-actions.pod:3937
22427 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22428 msgstr ""
22429
22430 # type: =head2
22431 #: ../fish/guestfish-actions.pod:3942
22432 msgid "tgz-in"
22433 msgstr ""
22434
22435 # type: verbatim
22436 #: ../fish/guestfish-actions.pod:3944
22437 #, no-wrap
22438 msgid ""
22439 " tgz-in (tarball|-) directory\n"
22440 "\n"
22441 msgstr ""
22442
22443 # type: textblock
22444 #: ../fish/guestfish-actions.pod:3949
22445 msgid "To upload an uncompressed tarball, use L</tar-in>."
22446 msgstr ""
22447
22448 # type: =head2
22449 #: ../fish/guestfish-actions.pod:3953
22450 msgid "tgz-out"
22451 msgstr ""
22452
22453 # type: verbatim
22454 #: ../fish/guestfish-actions.pod:3955
22455 #, no-wrap
22456 msgid ""
22457 " tgz-out directory (tarball|-)\n"
22458 "\n"
22459 msgstr ""
22460
22461 # type: textblock
22462 #: ../fish/guestfish-actions.pod:3960
22463 msgid "To download an uncompressed tarball, use L</tar-out>."
22464 msgstr ""
22465
22466 # type: =head2
22467 #: ../fish/guestfish-actions.pod:3964
22468 msgid "touch"
22469 msgstr ""
22470
22471 # type: verbatim
22472 #: ../fish/guestfish-actions.pod:3966
22473 #, no-wrap
22474 msgid ""
22475 " touch path\n"
22476 "\n"
22477 msgstr ""
22478
22479 # type: =head2
22480 #: ../fish/guestfish-actions.pod:3975
22481 msgid "truncate"
22482 msgstr ""
22483
22484 # type: verbatim
22485 #: ../fish/guestfish-actions.pod:3977
22486 #, no-wrap
22487 msgid ""
22488 " truncate path\n"
22489 "\n"
22490 msgstr ""
22491
22492 # type: =head2
22493 #: ../fish/guestfish-actions.pod:3982
22494 msgid "truncate-size"
22495 msgstr ""
22496
22497 # type: verbatim
22498 #: ../fish/guestfish-actions.pod:3984
22499 #, no-wrap
22500 msgid ""
22501 " truncate-size path size\n"
22502 "\n"
22503 msgstr ""
22504
22505 # type: textblock
22506 #: ../fish/guestfish-actions.pod:3989
22507 msgid ""
22508 "If the current file size is less than C<size> then the file is extended to "
22509 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22510 "blocks are not allocated for the file until you write to it).  To create a "
22511 "non-sparse file of zeroes, use L</fallocate64> instead."
22512 msgstr ""
22513
22514 # type: =head2
22515 #: ../fish/guestfish-actions.pod:3995
22516 msgid "tune2fs-l"
22517 msgstr ""
22518
22519 # type: verbatim
22520 #: ../fish/guestfish-actions.pod:3997
22521 #, no-wrap
22522 msgid ""
22523 " tune2fs-l device\n"
22524 "\n"
22525 msgstr ""
22526
22527 # type: =head2
22528 #: ../fish/guestfish-actions.pod:4007
22529 msgid "txz-in"
22530 msgstr ""
22531
22532 # type: verbatim
22533 #: ../fish/guestfish-actions.pod:4009
22534 #, no-wrap
22535 msgid ""
22536 " txz-in (tarball|-) directory\n"
22537 "\n"
22538 msgstr ""
22539
22540 # type: =head2
22541 #: ../fish/guestfish-actions.pod:4016
22542 msgid "txz-out"
22543 msgstr ""
22544
22545 # type: verbatim
22546 #: ../fish/guestfish-actions.pod:4018
22547 #, no-wrap
22548 msgid ""
22549 " txz-out directory (tarball|-)\n"
22550 "\n"
22551 msgstr ""
22552
22553 # type: =head2
22554 #: ../fish/guestfish-actions.pod:4025
22555 msgid "umask"
22556 msgstr ""
22557
22558 # type: verbatim
22559 #: ../fish/guestfish-actions.pod:4027
22560 #, no-wrap
22561 msgid ""
22562 " umask mask\n"
22563 "\n"
22564 msgstr ""
22565
22566 # type: textblock
22567 #: ../fish/guestfish-actions.pod:4041
22568 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22569 msgstr ""
22570
22571 # type: =head2
22572 #: ../fish/guestfish-actions.pod:4046
22573 msgid "umount"
22574 msgstr ""
22575
22576 # type: =head2
22577 #: ../fish/guestfish-actions.pod:4048
22578 msgid "unmount"
22579 msgstr ""
22580
22581 # type: verbatim
22582 #: ../fish/guestfish-actions.pod:4050
22583 #, no-wrap
22584 msgid ""
22585 " umount pathordevice\n"
22586 "\n"
22587 msgstr ""
22588
22589 # type: =head2
22590 #: ../fish/guestfish-actions.pod:4056
22591 msgid "umount-all"
22592 msgstr ""
22593
22594 # type: =head2
22595 #: ../fish/guestfish-actions.pod:4058
22596 msgid "unmount-all"
22597 msgstr ""
22598
22599 # type: verbatim
22600 #: ../fish/guestfish-actions.pod:4060
22601 #, no-wrap
22602 msgid ""
22603 " umount-all\n"
22604 "\n"
22605 msgstr ""
22606
22607 # type: =head2
22608 #: ../fish/guestfish-actions.pod:4066
22609 msgid "upload"
22610 msgstr ""
22611
22612 # type: verbatim
22613 #: ../fish/guestfish-actions.pod:4068
22614 #, no-wrap
22615 msgid ""
22616 " upload (filename|-) remotefilename\n"
22617 "\n"
22618 msgstr ""
22619
22620 # type: textblock
22621 #: ../fish/guestfish-actions.pod:4075
22622 msgid "See also L</download>."
22623 msgstr ""
22624
22625 # type: =head2
22626 #: ../fish/guestfish-actions.pod:4079
22627 msgid "upload-offset"
22628 msgstr ""
22629
22630 # type: verbatim
22631 #: ../fish/guestfish-actions.pod:4081
22632 #, no-wrap
22633 msgid ""
22634 " upload-offset (filename|-) remotefilename offset\n"
22635 "\n"
22636 msgstr ""
22637
22638 # type: textblock
22639 #: ../fish/guestfish-actions.pod:4093
22640 msgid ""
22641 "Note that there is no limit on the amount of data that can be uploaded with "
22642 "this call, unlike with L</pwrite>, and this call always writes the full "
22643 "amount unless an error occurs."
22644 msgstr ""
22645
22646 # type: textblock
22647 #: ../fish/guestfish-actions.pod:4098
22648 msgid "See also L</upload>, L</pwrite>."
22649 msgstr ""
22650
22651 # type: =head2
22652 #: ../fish/guestfish-actions.pod:4102
22653 msgid "utimens"
22654 msgstr ""
22655
22656 # type: verbatim
22657 #: ../fish/guestfish-actions.pod:4104
22658 #, no-wrap
22659 msgid ""
22660 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22661 "\n"
22662 msgstr ""
22663
22664 # type: =head2
22665 #: ../fish/guestfish-actions.pod:4123
22666 msgid "version"
22667 msgstr ""
22668
22669 # type: verbatim
22670 #: ../fish/guestfish-actions.pod:4125
22671 #, no-wrap
22672 msgid ""
22673 " version\n"
22674 "\n"
22675 msgstr ""
22676
22677 # type: textblock
22678 #: ../fish/guestfish-actions.pod:4152
22679 msgid ""
22680 "I<Note:> Don't use this call to test for availability of features.  In "
22681 "enterprise distributions we backport features from later versions into "
22682 "earlier versions, making this an unreliable way to test for features.  Use "
22683 "L</available> instead."
22684 msgstr ""
22685
22686 # type: =head2
22687 #: ../fish/guestfish-actions.pod:4158
22688 msgid "vfs-label"
22689 msgstr ""
22690
22691 # type: verbatim
22692 #: ../fish/guestfish-actions.pod:4160
22693 #, no-wrap
22694 msgid ""
22695 " vfs-label device\n"
22696 "\n"
22697 msgstr ""
22698
22699 # type: textblock
22700 #: ../fish/guestfish-actions.pod:4167
22701 msgid "To find a filesystem from the label, use L</findfs-label>."
22702 msgstr ""
22703
22704 # type: =head2
22705 #: ../fish/guestfish-actions.pod:4169
22706 msgid "vfs-type"
22707 msgstr ""
22708
22709 # type: verbatim
22710 #: ../fish/guestfish-actions.pod:4171
22711 #, no-wrap
22712 msgid ""
22713 " vfs-type device\n"
22714 "\n"
22715 msgstr ""
22716
22717 # type: =head2
22718 #: ../fish/guestfish-actions.pod:4181
22719 msgid "vfs-uuid"
22720 msgstr ""
22721
22722 # type: verbatim
22723 #: ../fish/guestfish-actions.pod:4183
22724 #, no-wrap
22725 msgid ""
22726 " vfs-uuid device\n"
22727 "\n"
22728 msgstr ""
22729
22730 # type: textblock
22731 #: ../fish/guestfish-actions.pod:4190
22732 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22733 msgstr ""
22734
22735 # type: =head2
22736 #: ../fish/guestfish-actions.pod:4192
22737 msgid "vg-activate"
22738 msgstr ""
22739
22740 # type: verbatim
22741 #: ../fish/guestfish-actions.pod:4194
22742 #, no-wrap
22743 msgid ""
22744 " vg-activate true|false 'volgroups ...'\n"
22745 "\n"
22746 msgstr ""
22747
22748 # type: =head2
22749 #: ../fish/guestfish-actions.pod:4207
22750 msgid "vg-activate-all"
22751 msgstr ""
22752
22753 # type: verbatim
22754 #: ../fish/guestfish-actions.pod:4209
22755 #, no-wrap
22756 msgid ""
22757 " vg-activate-all true|false\n"
22758 "\n"
22759 msgstr ""
22760
22761 # type: =head2
22762 #: ../fish/guestfish-actions.pod:4219
22763 msgid "vgcreate"
22764 msgstr ""
22765
22766 # type: verbatim
22767 #: ../fish/guestfish-actions.pod:4221
22768 #, no-wrap
22769 msgid ""
22770 " vgcreate volgroup 'physvols ...'\n"
22771 "\n"
22772 msgstr ""
22773
22774 # type: =head2
22775 #: ../fish/guestfish-actions.pod:4226
22776 msgid "vglvuuids"
22777 msgstr ""
22778
22779 # type: verbatim
22780 #: ../fish/guestfish-actions.pod:4228
22781 #, no-wrap
22782 msgid ""
22783 " vglvuuids vgname\n"
22784 "\n"
22785 msgstr ""
22786
22787 # type: textblock
22788 #: ../fish/guestfish-actions.pod:4233
22789 msgid ""
22790 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22791 "logical volumes and volume groups."
22792 msgstr ""
22793
22794 # type: textblock
22795 #: ../fish/guestfish-actions.pod:4236
22796 msgid "See also L</vgpvuuids>."
22797 msgstr ""
22798
22799 # type: =head2
22800 #: ../fish/guestfish-actions.pod:4238
22801 msgid "vgpvuuids"
22802 msgstr ""
22803
22804 # type: verbatim
22805 #: ../fish/guestfish-actions.pod:4240
22806 #, no-wrap
22807 msgid ""
22808 " vgpvuuids vgname\n"
22809 "\n"
22810 msgstr ""
22811
22812 # type: textblock
22813 #: ../fish/guestfish-actions.pod:4245
22814 msgid ""
22815 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22816 "physical volumes and volume groups."
22817 msgstr ""
22818
22819 # type: textblock
22820 #: ../fish/guestfish-actions.pod:4248
22821 msgid "See also L</vglvuuids>."
22822 msgstr ""
22823
22824 # type: =head2
22825 #: ../fish/guestfish-actions.pod:4250
22826 msgid "vgremove"
22827 msgstr ""
22828
22829 # type: verbatim
22830 #: ../fish/guestfish-actions.pod:4252
22831 #, no-wrap
22832 msgid ""
22833 " vgremove vgname\n"
22834 "\n"
22835 msgstr ""
22836
22837 # type: =head2
22838 #: ../fish/guestfish-actions.pod:4259
22839 msgid "vgrename"
22840 msgstr ""
22841
22842 # type: verbatim
22843 #: ../fish/guestfish-actions.pod:4261
22844 #, no-wrap
22845 msgid ""
22846 " vgrename volgroup newvolgroup\n"
22847 "\n"
22848 msgstr ""
22849
22850 # type: =head2
22851 #: ../fish/guestfish-actions.pod:4265
22852 msgid "vgs"
22853 msgstr ""
22854
22855 # type: verbatim
22856 #: ../fish/guestfish-actions.pod:4267
22857 #, no-wrap
22858 msgid ""
22859 " vgs\n"
22860 "\n"
22861 msgstr ""
22862
22863 # type: textblock
22864 #: ../fish/guestfish-actions.pod:4275
22865 msgid "See also L</vgs-full>."
22866 msgstr ""
22867
22868 # type: =head2
22869 #: ../fish/guestfish-actions.pod:4277
22870 msgid "vgs-full"
22871 msgstr ""
22872
22873 # type: verbatim
22874 #: ../fish/guestfish-actions.pod:4279
22875 #, no-wrap
22876 msgid ""
22877 " vgs-full\n"
22878 "\n"
22879 msgstr ""
22880
22881 # type: =head2
22882 #: ../fish/guestfish-actions.pod:4284
22883 msgid "vgscan"
22884 msgstr ""
22885
22886 # type: verbatim
22887 #: ../fish/guestfish-actions.pod:4286
22888 #, no-wrap
22889 msgid ""
22890 " vgscan\n"
22891 "\n"
22892 msgstr ""
22893
22894 # type: =head2
22895 #: ../fish/guestfish-actions.pod:4291
22896 msgid "vguuid"
22897 msgstr ""
22898
22899 # type: verbatim
22900 #: ../fish/guestfish-actions.pod:4293
22901 #, no-wrap
22902 msgid ""
22903 " vguuid vgname\n"
22904 "\n"
22905 msgstr ""
22906
22907 # type: =head2
22908 #: ../fish/guestfish-actions.pod:4297
22909 msgid "wc-c"
22910 msgstr ""
22911
22912 # type: verbatim
22913 #: ../fish/guestfish-actions.pod:4299
22914 #, no-wrap
22915 msgid ""
22916 " wc-c path\n"
22917 "\n"
22918 msgstr ""
22919
22920 # type: =head2
22921 #: ../fish/guestfish-actions.pod:4304
22922 msgid "wc-l"
22923 msgstr ""
22924
22925 # type: verbatim
22926 #: ../fish/guestfish-actions.pod:4306
22927 #, no-wrap
22928 msgid ""
22929 " wc-l path\n"
22930 "\n"
22931 msgstr ""
22932
22933 # type: =head2
22934 #: ../fish/guestfish-actions.pod:4311
22935 msgid "wc-w"
22936 msgstr ""
22937
22938 # type: verbatim
22939 #: ../fish/guestfish-actions.pod:4313
22940 #, no-wrap
22941 msgid ""
22942 " wc-w path\n"
22943 "\n"
22944 msgstr ""
22945
22946 # type: =head2
22947 #: ../fish/guestfish-actions.pod:4318
22948 msgid "write"
22949 msgstr ""
22950
22951 # type: verbatim
22952 #: ../fish/guestfish-actions.pod:4320
22953 #, no-wrap
22954 msgid ""
22955 " write path content\n"
22956 "\n"
22957 msgstr ""
22958
22959 # type: =head2
22960 #: ../fish/guestfish-actions.pod:4328
22961 msgid "write-file"
22962 msgstr ""
22963
22964 # type: verbatim
22965 #: ../fish/guestfish-actions.pod:4330
22966 #, no-wrap
22967 msgid ""
22968 " write-file path content size\n"
22969 "\n"
22970 msgstr ""
22971
22972 # type: =head2
22973 #: ../fish/guestfish-actions.pod:4353
22974 msgid "zegrep"
22975 msgstr ""
22976
22977 # type: verbatim
22978 #: ../fish/guestfish-actions.pod:4355
22979 #, no-wrap
22980 msgid ""
22981 " zegrep regex path\n"
22982 "\n"
22983 msgstr ""
22984
22985 # type: =head2
22986 #: ../fish/guestfish-actions.pod:4363
22987 msgid "zegrepi"
22988 msgstr ""
22989
22990 # type: verbatim
22991 #: ../fish/guestfish-actions.pod:4365
22992 #, no-wrap
22993 msgid ""
22994 " zegrepi regex path\n"
22995 "\n"
22996 msgstr ""
22997
22998 # type: =head2
22999 #: ../fish/guestfish-actions.pod:4373
23000 msgid "zero"
23001 msgstr ""
23002
23003 # type: verbatim
23004 #: ../fish/guestfish-actions.pod:4375
23005 #, no-wrap
23006 msgid ""
23007 " zero device\n"
23008 "\n"
23009 msgstr ""
23010
23011 # type: textblock
23012 #: ../fish/guestfish-actions.pod:4383
23013 msgid "See also: L</zero-device>, L</scrub-device>."
23014 msgstr ""
23015
23016 # type: =head2
23017 #: ../fish/guestfish-actions.pod:4385
23018 msgid "zero-device"
23019 msgstr ""
23020
23021 # type: verbatim
23022 #: ../fish/guestfish-actions.pod:4387
23023 #, no-wrap
23024 msgid ""
23025 " zero-device device\n"
23026 "\n"
23027 msgstr ""
23028
23029 # type: textblock
23030 #: ../fish/guestfish-actions.pod:4389
23031 msgid ""
23032 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23033 "which just zeroes the first few blocks of a device."
23034 msgstr ""
23035
23036 # type: =head2
23037 #: ../fish/guestfish-actions.pod:4396
23038 msgid "zerofree"
23039 msgstr ""
23040
23041 # type: verbatim
23042 #: ../fish/guestfish-actions.pod:4398
23043 #, no-wrap
23044 msgid ""
23045 " zerofree device\n"
23046 "\n"
23047 msgstr ""
23048
23049 # type: =head2
23050 #: ../fish/guestfish-actions.pod:4411
23051 msgid "zfgrep"
23052 msgstr ""
23053
23054 # type: verbatim
23055 #: ../fish/guestfish-actions.pod:4413
23056 #, no-wrap
23057 msgid ""
23058 " zfgrep pattern path\n"
23059 "\n"
23060 msgstr ""
23061
23062 # type: =head2
23063 #: ../fish/guestfish-actions.pod:4421
23064 msgid "zfgrepi"
23065 msgstr ""
23066
23067 # type: verbatim
23068 #: ../fish/guestfish-actions.pod:4423
23069 #, no-wrap
23070 msgid ""
23071 " zfgrepi pattern path\n"
23072 "\n"
23073 msgstr ""
23074
23075 # type: =head2
23076 #: ../fish/guestfish-actions.pod:4431
23077 msgid "zfile"
23078 msgstr ""
23079
23080 # type: verbatim
23081 #: ../fish/guestfish-actions.pod:4433
23082 #, no-wrap
23083 msgid ""
23084 " zfile meth path\n"
23085 "\n"
23086 msgstr ""
23087
23088 # type: textblock
23089 #: ../fish/guestfish-actions.pod:4440
23090 msgid ""
23091 "Since 1.0.63, use L</file> instead which can now process compressed files."
23092 msgstr ""
23093
23094 # type: =head2
23095 #: ../fish/guestfish-actions.pod:4450
23096 msgid "zgrep"
23097 msgstr ""
23098
23099 # type: verbatim
23100 #: ../fish/guestfish-actions.pod:4452
23101 #, no-wrap
23102 msgid ""
23103 " zgrep regex path\n"
23104 "\n"
23105 msgstr ""
23106
23107 # type: =head2
23108 #: ../fish/guestfish-actions.pod:4460
23109 msgid "zgrepi"
23110 msgstr ""
23111
23112 # type: verbatim
23113 #: ../fish/guestfish-actions.pod:4462
23114 #, no-wrap
23115 msgid ""
23116 " zgrepi regex path\n"
23117 "\n"
23118 msgstr ""
23119
23120 # type: =head2
23121 #: ../fish/guestfish-commands.pod:1
23122 msgid "alloc"
23123 msgstr ""
23124
23125 # type: =head2
23126 #: ../fish/guestfish-commands.pod:3
23127 msgid "allocate"
23128 msgstr ""
23129
23130 # type: verbatim
23131 #: ../fish/guestfish-commands.pod:5
23132 #, no-wrap
23133 msgid ""
23134 " alloc filename size\n"
23135 "\n"
23136 msgstr ""
23137
23138 # type: textblock
23139 #: ../fish/guestfish-commands.pod:7
23140 msgid ""
23141 "This creates an empty (zeroed) file of the given size, and then adds so it "
23142 "can be further examined."
23143 msgstr ""
23144
23145 # type: textblock
23146 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23147 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23148 msgstr ""
23149
23150 # type: textblock
23151 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23152 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23153 msgstr ""
23154
23155 # type: textblock
23156 #: ../fish/guestfish-commands.pod:14
23157 msgid ""
23158 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23159 "image, see L</PREPARED DISK IMAGES>."
23160 msgstr ""
23161
23162 # type: =head2
23163 #: ../fish/guestfish-commands.pod:17
23164 msgid "copy-in"
23165 msgstr ""
23166
23167 # type: verbatim
23168 #: ../fish/guestfish-commands.pod:19
23169 #, no-wrap
23170 msgid ""
23171 " copy-in local [local ...] /remotedir\n"
23172 "\n"
23173 msgstr ""
23174
23175 # type: textblock
23176 #: ../fish/guestfish-commands.pod:21
23177 msgid ""
23178 "C<copy-in> copies local files or directories recursively into the disk "
23179 "image, placing them in the directory called C</remotedir> (which must "
23180 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23181 "other commands as necessary."
23182 msgstr ""
23183
23184 # type: textblock
23185 #: ../fish/guestfish-commands.pod:26
23186 msgid ""
23187 "Multiple local files and directories can be specified, but the last "
23188 "parameter must always be a remote directory.  Wildcards cannot be used."
23189 msgstr ""
23190
23191 # type: =head2
23192 #: ../fish/guestfish-commands.pod:30
23193 msgid "copy-out"
23194 msgstr ""
23195
23196 # type: verbatim
23197 #: ../fish/guestfish-commands.pod:32
23198 #, no-wrap
23199 msgid ""
23200 " copy-out remote [remote ...] localdir\n"
23201 "\n"
23202 msgstr ""
23203
23204 # type: textblock
23205 #: ../fish/guestfish-commands.pod:34
23206 msgid ""
23207 "C<copy-out> copies remote files or directories recursively out of the disk "
23208 "image, placing them on the host disk in a local directory called C<localdir> "
23209 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
23210 "download>, L</tar-out> and other commands as necessary."
23211 msgstr ""
23212
23213 # type: textblock
23214 #: ../fish/guestfish-commands.pod:40
23215 msgid ""
23216 "Multiple remote files and directories can be specified, but the last "
23217 "parameter must always be a local directory.  To download to the current "
23218 "directory, use C<.> as in:"
23219 msgstr ""
23220
23221 # type: verbatim
23222 #: ../fish/guestfish-commands.pod:44
23223 #, no-wrap
23224 msgid ""
23225 " copy-out /home .\n"
23226 "\n"
23227 msgstr ""
23228
23229 # type: textblock
23230 #: ../fish/guestfish-commands.pod:46
23231 msgid ""
23232 "Wildcards cannot be used in the ordinary command, but you can use them with "
23233 "the help of L</glob> like this:"
23234 msgstr ""
23235
23236 # type: verbatim
23237 #: ../fish/guestfish-commands.pod:49
23238 #, no-wrap
23239 msgid ""
23240 " glob copy-out /home/* .\n"
23241 "\n"
23242 msgstr ""
23243
23244 # type: =head2
23245 #: ../fish/guestfish-commands.pod:51
23246 msgid "echo"
23247 msgstr ""
23248
23249 # type: verbatim
23250 #: ../fish/guestfish-commands.pod:53
23251 #, no-wrap
23252 msgid ""
23253 " echo [params ...]\n"
23254 "\n"
23255 msgstr ""
23256
23257 # type: textblock
23258 #: ../fish/guestfish-commands.pod:55
23259 msgid "This echos the parameters to the terminal."
23260 msgstr ""
23261
23262 # type: =head2
23263 #: ../fish/guestfish-commands.pod:57
23264 msgid "edit"
23265 msgstr ""
23266
23267 # type: =head2
23268 #: ../fish/guestfish-commands.pod:59
23269 msgid "vi"
23270 msgstr ""
23271
23272 # type: =head2
23273 #: ../fish/guestfish-commands.pod:61
23274 msgid "emacs"
23275 msgstr ""
23276
23277 # type: verbatim
23278 #: ../fish/guestfish-commands.pod:63
23279 #, no-wrap
23280 msgid ""
23281 " edit filename\n"
23282 "\n"
23283 msgstr ""
23284
23285 # type: textblock
23286 #: ../fish/guestfish-commands.pod:65
23287 msgid ""
23288 "This is used to edit a file.  It downloads the file, edits it locally using "
23289 "your editor, then uploads the result."
23290 msgstr ""
23291
23292 # type: textblock
23293 #: ../fish/guestfish-commands.pod:68
23294 msgid ""
23295 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23296 "or C<emacs> you will get those corresponding editors."
23297 msgstr ""
23298
23299 # type: =head2
23300 #: ../fish/guestfish-commands.pod:72
23301 msgid "glob"
23302 msgstr ""
23303
23304 # type: verbatim
23305 #: ../fish/guestfish-commands.pod:74
23306 #, no-wrap
23307 msgid ""
23308 " glob command args...\n"
23309 "\n"
23310 msgstr ""
23311
23312 # type: textblock
23313 #: ../fish/guestfish-commands.pod:76
23314 msgid ""
23315 "Expand wildcards in any paths in the args list, and run C<command> "
23316 "repeatedly on each matching path."
23317 msgstr ""
23318
23319 # type: textblock
23320 #: ../fish/guestfish-commands.pod:79
23321 msgid "See L</WILDCARDS AND GLOBBING>."
23322 msgstr ""
23323
23324 # type: =head2
23325 #: ../fish/guestfish-commands.pod:81
23326 msgid "hexedit"
23327 msgstr ""
23328
23329 # type: verbatim
23330 #: ../fish/guestfish-commands.pod:83
23331 #, no-wrap
23332 msgid ""
23333 " hexedit <filename|device>\n"
23334 " hexedit <filename|device> <max>\n"
23335 " hexedit <filename|device> <start> <max>\n"
23336 "\n"
23337 msgstr ""
23338
23339 # type: textblock
23340 #: ../fish/guestfish-commands.pod:87
23341 msgid ""
23342 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23343 "device."
23344 msgstr ""
23345
23346 # type: textblock
23347 #: ../fish/guestfish-commands.pod:90
23348 msgid ""
23349 "This command works by downloading potentially the whole file or device, "
23350 "editing it locally, then uploading it.  If the file or device is large, you "
23351 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23352 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23353 "usual modifiers allowed such as C<1M> (1 megabyte)."
23354 msgstr ""
23355
23356 # type: textblock
23357 #: ../fish/guestfish-commands.pod:97
23358 msgid "For example to edit the first few sectors of a disk you might do:"
23359 msgstr ""
23360
23361 # type: verbatim
23362 #: ../fish/guestfish-commands.pod:100
23363 #, no-wrap
23364 msgid ""
23365 " hexedit /dev/sda 1M\n"
23366 "\n"
23367 msgstr ""
23368
23369 # type: textblock
23370 #: ../fish/guestfish-commands.pod:102
23371 msgid ""
23372 "which would allow you to edit anywhere within the first megabyte of the disk."
23373 msgstr ""
23374
23375 # type: textblock
23376 #: ../fish/guestfish-commands.pod:105
23377 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23378 msgstr ""
23379
23380 # type: verbatim
23381 #: ../fish/guestfish-commands.pod:107
23382 #, no-wrap
23383 msgid ""
23384 " hexedit /dev/sda1 0x400 0x400\n"
23385 "\n"
23386 msgstr ""
23387
23388 # type: textblock
23389 #: ../fish/guestfish-commands.pod:109
23390 msgid "(assuming the superblock is in the standard location)."
23391 msgstr ""
23392
23393 # type: textblock
23394 #: ../fish/guestfish-commands.pod:111
23395 msgid ""
23396 "This command requires the external L<hexedit(1)> program.  You can specify "
23397 "another program to use by setting the C<HEXEDITOR> environment variable."
23398 msgstr ""
23399
23400 # type: textblock
23401 #: ../fish/guestfish-commands.pod:115
23402 msgid "See also L</hexdump>."
23403 msgstr ""
23404
23405 # type: =head2
23406 #: ../fish/guestfish-commands.pod:117
23407 msgid "lcd"
23408 msgstr ""
23409
23410 # type: verbatim
23411 #: ../fish/guestfish-commands.pod:119
23412 #, no-wrap
23413 msgid ""
23414 " lcd directory\n"
23415 "\n"
23416 msgstr ""
23417
23418 # type: textblock
23419 #: ../fish/guestfish-commands.pod:121
23420 msgid ""
23421 "Change the local directory, ie. the current directory of guestfish itself."
23422 msgstr ""
23423
23424 # type: textblock
23425 #: ../fish/guestfish-commands.pod:124
23426 msgid "Note that C<!cd> won't do what you might expect."
23427 msgstr ""
23428
23429 # type: =head2
23430 #: ../fish/guestfish-commands.pod:126
23431 msgid "man"
23432 msgstr ""
23433
23434 # type: =head2
23435 #: ../fish/guestfish-commands.pod:128
23436 msgid "manual"
23437 msgstr ""
23438
23439 # type: verbatim
23440 #: ../fish/guestfish-commands.pod:130
23441 #, no-wrap
23442 msgid ""
23443 "  man\n"
23444 "\n"
23445 msgstr ""
23446
23447 # type: textblock
23448 #: ../fish/guestfish-commands.pod:132
23449 msgid "Opens the manual page for guestfish."
23450 msgstr ""
23451
23452 # type: =head2
23453 #: ../fish/guestfish-commands.pod:134
23454 msgid "more"
23455 msgstr ""
23456
23457 # type: =head2
23458 #: ../fish/guestfish-commands.pod:136
23459 msgid "less"
23460 msgstr ""
23461
23462 # type: verbatim
23463 #: ../fish/guestfish-commands.pod:138
23464 #, no-wrap
23465 msgid ""
23466 " more filename\n"
23467 "\n"
23468 msgstr ""
23469
23470 # type: verbatim
23471 #: ../fish/guestfish-commands.pod:140
23472 #, no-wrap
23473 msgid ""
23474 " less filename\n"
23475 "\n"
23476 msgstr ""
23477
23478 # type: textblock
23479 #: ../fish/guestfish-commands.pod:142
23480 msgid "This is used to view a file."
23481 msgstr ""
23482
23483 # type: textblock
23484 #: ../fish/guestfish-commands.pod:144
23485 msgid ""
23486 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23487 "C<less> you will get the C<less> command specifically."
23488 msgstr ""
23489
23490 # type: =head2
23491 #: ../fish/guestfish-commands.pod:147
23492 msgid "reopen"
23493 msgstr ""
23494
23495 # type: verbatim
23496 #: ../fish/guestfish-commands.pod:149
23497 #, no-wrap
23498 msgid ""
23499 "  reopen\n"
23500 "\n"
23501 msgstr ""
23502
23503 # type: textblock
23504 #: ../fish/guestfish-commands.pod:151
23505 msgid ""
23506 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23507 "normally, because the handle is closed properly when guestfish exits.  "
23508 "However this is occasionally useful for testing."
23509 msgstr ""
23510
23511 # type: =head2
23512 #: ../fish/guestfish-commands.pod:155
23513 msgid "sparse"
23514 msgstr ""
23515
23516 # type: verbatim
23517 #: ../fish/guestfish-commands.pod:157
23518 #, no-wrap
23519 msgid ""
23520 " sparse filename size\n"
23521 "\n"
23522 msgstr ""
23523
23524 # type: textblock
23525 #: ../fish/guestfish-commands.pod:159
23526 msgid ""
23527 "This creates an empty sparse file of the given size, and then adds so it can "
23528 "be further examined."
23529 msgstr ""
23530
23531 # type: textblock
23532 #: ../fish/guestfish-commands.pod:162
23533 msgid ""
23534 "In all respects it works the same as the L</alloc> command, except that the "
23535 "image file is allocated sparsely, which means that disk blocks are not "
23536 "assigned to the file until they are needed.  Sparse disk files only use "
23537 "space when written to, but they are slower and there is a danger you could "
23538 "run out of real disk space during a write operation."
23539 msgstr ""
23540
23541 # type: =head2
23542 #: ../fish/guestfish-commands.pod:172
23543 msgid "supported"
23544 msgstr ""
23545
23546 # type: verbatim
23547 #: ../fish/guestfish-commands.pod:174
23548 #, no-wrap
23549 msgid ""
23550 " supported\n"
23551 "\n"
23552 msgstr ""
23553
23554 # type: textblock
23555 #: ../fish/guestfish-commands.pod:176
23556 msgid ""
23557 "This command returns a list of the optional groups known to the daemon, and "
23558 "indicates which ones are supported by this build of the libguestfs appliance."
23559 msgstr ""
23560
23561 # type: textblock
23562 #: ../fish/guestfish-commands.pod:180
23563 msgid "See also L<guestfs(3)/AVAILABILITY>."
23564 msgstr ""
23565
23566 # type: =head2
23567 #: ../fish/guestfish-commands.pod:182
23568 msgid "time"
23569 msgstr ""
23570
23571 # type: verbatim
23572 #: ../fish/guestfish-commands.pod:184
23573 #, no-wrap
23574 msgid ""
23575 " time command args...\n"
23576 "\n"
23577 msgstr ""
23578
23579 # type: textblock
23580 #: ../fish/guestfish-commands.pod:186
23581 msgid ""
23582 "Run the command as usual, but print the elapsed time afterwards.  This can "
23583 "be useful for benchmarking operations."
23584 msgstr ""
23585
23586 # type: textblock
23587 #: ../test-tool/libguestfs-test-tool.pod:5
23588 msgid "libguestfs-test-tool - End user tests for libguestfs"
23589 msgstr ""
23590
23591 # type: verbatim
23592 #: ../test-tool/libguestfs-test-tool.pod:9
23593 #, no-wrap
23594 msgid ""
23595 " libguestfs-test-tool [--options]\n"
23596 "\n"
23597 msgstr ""
23598
23599 # type: textblock
23600 #: ../test-tool/libguestfs-test-tool.pod:13
23601 msgid ""
23602 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23603 "and developers, to allow them to check basic libguestfs functionality is "
23604 "working.  This is needed because libguestfs occasionally breaks for reasons "
23605 "beyond our control: usually because of changes in the underlying qemu or "
23606 "kernel packages, or the host environment."
23607 msgstr ""
23608
23609 # type: textblock
23610 #: ../test-tool/libguestfs-test-tool.pod:20
23611 msgid "If you suspect a problem in libguestfs, then just run:"
23612 msgstr ""
23613
23614 # type: verbatim
23615 #: ../test-tool/libguestfs-test-tool.pod:22
23616 #, no-wrap
23617 msgid ""
23618 " libguestfs-test-tool\n"
23619 "\n"
23620 msgstr ""
23621
23622 # type: textblock
23623 #: ../test-tool/libguestfs-test-tool.pod:24
23624 msgid "It will print lots of diagnostic messages."
23625 msgstr ""
23626
23627 # type: textblock
23628 #: ../test-tool/libguestfs-test-tool.pod:26
23629 msgid "If it runs to completion successfully, you will see this near the end:"
23630 msgstr ""
23631
23632 # type: verbatim
23633 #: ../test-tool/libguestfs-test-tool.pod:28
23634 #, no-wrap
23635 msgid ""
23636 " ===== TEST FINISHED OK =====\n"
23637 "\n"
23638 msgstr ""
23639
23640 # type: textblock
23641 #: ../test-tool/libguestfs-test-tool.pod:30
23642 msgid "and the test tool will exit with code 0."
23643 msgstr ""
23644
23645 # type: textblock
23646 #: ../test-tool/libguestfs-test-tool.pod:32
23647 msgid ""
23648 "If it fails (and/or exits with non-zero error code), please paste the "
23649 "B<complete, unedited> output of the test tool into a bug report.  More "
23650 "information about reporting bugs can be found on the L<http://libguestfs.org/"
23651 "> website."
23652 msgstr ""
23653
23654 # type: =item
23655 #: ../test-tool/libguestfs-test-tool.pod:41
23656 msgid "I<--help>"
23657 msgstr ""
23658
23659 # type: textblock
23660 #: ../test-tool/libguestfs-test-tool.pod:43
23661 msgid "Display short usage information and exit."
23662 msgstr ""
23663
23664 # type: =item
23665 #: ../test-tool/libguestfs-test-tool.pod:45
23666 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23667 msgstr ""
23668
23669 # type: textblock
23670 #: ../test-tool/libguestfs-test-tool.pod:47
23671 msgid ""
23672 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23673 "normally look in the C<$libexec> directory that was configured when the tool "
23674 "was built."
23675 msgstr ""
23676
23677 # type: =item
23678 #: ../test-tool/libguestfs-test-tool.pod:51
23679 msgid "I<--qemu qemu_binary>"
23680 msgstr ""
23681
23682 # type: textblock
23683 #: ../test-tool/libguestfs-test-tool.pod:53
23684 msgid ""
23685 "If you have downloaded another qemu binary, point this option at the full "
23686 "path of the binary to try it."
23687 msgstr ""
23688
23689 # type: =item
23690 #: ../test-tool/libguestfs-test-tool.pod:56
23691 msgid "I<--qemudir qemu_source_dir>"
23692 msgstr ""
23693
23694 # type: textblock
23695 #: ../test-tool/libguestfs-test-tool.pod:58
23696 msgid ""
23697 "If you have compiled qemu from source, point this option at the source "
23698 "directory to try it."
23699 msgstr ""
23700
23701 # type: =item
23702 #: ../test-tool/libguestfs-test-tool.pod:61
23703 msgid "I<--timeout N>"
23704 msgstr ""
23705
23706 # type: textblock
23707 #: ../test-tool/libguestfs-test-tool.pod:63
23708 msgid ""
23709 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23710 "does not usually need to be adjusted unless your machine is very slow."
23711 msgstr ""
23712
23713 # type: =head1
23714 #: ../test-tool/libguestfs-test-tool.pod:69
23715 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23716 msgstr ""
23717
23718 # type: textblock
23719 #: ../test-tool/libguestfs-test-tool.pod:71
23720 msgid ""
23721 "If you have compiled another version of qemu from source and would like to "
23722 "try that, then you can use the I<--qemudir> option to point to the qemu "
23723 "source directory."
23724 msgstr ""
23725
23726 # type: textblock
23727 #: ../test-tool/libguestfs-test-tool.pod:75
23728 msgid ""
23729 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23730 "option to point to the binary."
23731 msgstr ""
23732
23733 # type: textblock
23734 #: ../test-tool/libguestfs-test-tool.pod:78
23735 msgid ""
23736 "When using an alternate qemu with libguestfs, usually you would need to "
23737 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
23738 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
23739 "use either of the I<--qemudir> or I<--qemu> options."
23740 msgstr ""
23741
23742 # type: textblock
23743 #: ../test-tool/libguestfs-test-tool.pod:85
23744 msgid ""
23745 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23746 "I<1> if there was an error."
23747 msgstr ""
23748
23749 # type: =item
23750 #: ../test-tool/libguestfs-test-tool.pod:92
23751 msgid "/usr/libexec/libguestfs-test-tool-helper"
23752 msgstr ""
23753
23754 # type: textblock
23755 #: ../test-tool/libguestfs-test-tool.pod:94
23756 msgid ""
23757 "This helper program is run inside the appliance and provides additional "
23758 "tests."
23759 msgstr ""
23760
23761 # type: =item
23762 #: ../test-tool/libguestfs-test-tool.pod:97
23763 msgid "/usr/bin/mkisofs"
23764 msgstr ""
23765
23766 # type: textblock
23767 #: ../test-tool/libguestfs-test-tool.pod:99
23768 msgid ""
23769 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23770 "which is used as part of the tests."
23771 msgstr ""
23772
23773 # type: textblock
23774 #: ../test-tool/libguestfs-test-tool.pod:106
23775 msgid ""
23776 "For the full list of environment variables which may affect libguestfs, "
23777 "please see the L<guestfs(3)> manual page."
23778 msgstr ""
23779
23780 # type: textblock
23781 #: ../test-tool/libguestfs-test-tool.pod:111
23782 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23783 msgstr ""
23784
23785 # type: textblock
23786 #: ../test-tool/libguestfs-test-tool.pod:121
23787 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23788 msgstr ""
23789
23790 # type: textblock
23791 #: ../fuse/guestmount.pod:5
23792 msgid ""
23793 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23794 msgstr ""
23795
23796 # type: verbatim
23797 #: ../fuse/guestmount.pod:9
23798 #, no-wrap
23799 msgid ""
23800 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23801 "\n"
23802 msgstr ""
23803
23804 # type: verbatim
23805 #: ../fuse/guestmount.pod:11
23806 #, no-wrap
23807 msgid ""
23808 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23809 "\n"
23810 msgstr ""
23811
23812 # type: verbatim
23813 #: ../fuse/guestmount.pod:13
23814 #, no-wrap
23815 msgid ""
23816 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23817 "\n"
23818 msgstr ""
23819
23820 # type: textblock
23821 #: ../fuse/guestmount.pod:17
23822 msgid ""
23823 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23824 "machines.  If you do this, you risk disk corruption in the VM."
23825 msgstr ""
23826
23827 # type: textblock
23828 #: ../fuse/guestmount.pod:22
23829 msgid ""
23830 "The guestmount program can be used to mount virtual machine filesystems and "
23831 "other disk images on the host.  It uses libguestfs for access to the guest "
23832 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23833 "a mountable device."
23834 msgstr ""
23835
23836 # type: textblock
23837 #: ../fuse/guestmount.pod:27
23838 msgid ""
23839 "Along with other options, you have to give at least one device (I<-a> "
23840 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23841 "option) or use the I<-i> inspection option.  How this works is better "
23842 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
23843 "below."
23844 msgstr ""
23845
23846 # type: textblock
23847 #: ../fuse/guestmount.pod:33
23848 msgid ""
23849 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23850 "by you, and the filesystem will not be visible to any other users unless you "
23851 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23852 "the filesystem, use the C<fusermount -u> command."
23853 msgstr ""
23854
23855 # type: textblock
23856 #: ../fuse/guestmount.pod:41
23857 msgid ""
23858 "For a typical Windows guest which has its main filesystem on the first "
23859 "partition:"
23860 msgstr ""
23861
23862 # type: verbatim
23863 #: ../fuse/guestmount.pod:44
23864 #, no-wrap
23865 msgid ""
23866 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23867 "\n"
23868 msgstr ""
23869
23870 # type: textblock
23871 #: ../fuse/guestmount.pod:46
23872 msgid ""
23873 "For a typical Linux guest which has a /boot filesystem on the first "
23874 "partition, and the root filesystem on a logical volume:"
23875 msgstr ""
23876
23877 # type: verbatim
23878 #: ../fuse/guestmount.pod:49
23879 #, no-wrap
23880 msgid ""
23881 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23882 "\n"
23883 msgstr ""
23884
23885 # type: textblock
23886 #: ../fuse/guestmount.pod:51
23887 msgid "To get libguestfs to detect guest mountpoints for you:"
23888 msgstr ""
23889
23890 # type: verbatim
23891 #: ../fuse/guestmount.pod:53
23892 #, no-wrap
23893 msgid ""
23894 " guestmount -a guest.img -i --ro /mnt\n"
23895 "\n"
23896 msgstr ""
23897
23898 # type: textblock
23899 #: ../fuse/guestmount.pod:55
23900 msgid "For a libvirt guest called \"Guest\" you could do:"
23901 msgstr ""
23902
23903 # type: verbatim
23904 #: ../fuse/guestmount.pod:57
23905 #, no-wrap
23906 msgid ""
23907 " guestmount -d Guest -i --ro /mnt\n"
23908 "\n"
23909 msgstr ""
23910
23911 # type: textblock
23912 #: ../fuse/guestmount.pod:59
23913 msgid ""
23914 "If you don't know what filesystems are contained in a guest or disk image, "
23915 "use L<virt-list-filesystems(1)> first:"
23916 msgstr ""
23917
23918 # type: verbatim
23919 #: ../fuse/guestmount.pod:62
23920 #, no-wrap
23921 msgid ""
23922 " virt-list-filesystems MyGuest\n"
23923 "\n"
23924 msgstr ""
23925
23926 # type: textblock
23927 #: ../fuse/guestmount.pod:64
23928 msgid ""
23929 "If you want to trace the libguestfs calls but without excessive debugging "
23930 "information, we recommend:"
23931 msgstr ""
23932
23933 # type: verbatim
23934 #: ../fuse/guestmount.pod:67
23935 #, no-wrap
23936 msgid ""
23937 " guestmount [...] --trace /mnt\n"
23938 "\n"
23939 msgstr ""
23940
23941 # type: textblock
23942 #: ../fuse/guestmount.pod:69
23943 msgid "If you want to debug the program, we recommend:"
23944 msgstr ""
23945
23946 # type: verbatim
23947 #: ../fuse/guestmount.pod:71
23948 #, no-wrap
23949 msgid ""
23950 " guestmount [...] --trace --verbose /mnt\n"
23951 "\n"
23952 msgstr ""
23953
23954 # type: textblock
23955 #: ../fuse/guestmount.pod:79
23956 msgid "Add a block device or virtual machine image."
23957 msgstr ""
23958
23959 # type: =item
23960 #: ../fuse/guestmount.pod:96
23961 msgid "B<--dir-cache-timeout N>"
23962 msgstr ""
23963
23964 # type: textblock
23965 #: ../fuse/guestmount.pod:98
23966 msgid ""
23967 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23968 "seconds.  The readdir cache [actually, there are several semi-independent "
23969 "caches] is populated after a readdir(2) call with the stat and extended "
23970 "attributes of the files in the directory, in anticipation that they will be "
23971 "requested soon after."
23972 msgstr ""
23973
23974 # type: textblock
23975 #: ../fuse/guestmount.pod:104
23976 msgid ""
23977 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23978 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23979 "requests, only cache existing ones."
23980 msgstr ""
23981
23982 # type: textblock
23983 #: ../fuse/guestmount.pod:115
23984 msgid ""
23985 "If you have untrusted raw-format guest disk images, you should use this "
23986 "option to specify the disk format.  This avoids a possible security problem "
23987 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
23988 "guestfs_add_drive_opts>."
23989 msgstr ""
23990
23991 # type: =item
23992 #: ../fuse/guestmount.pod:120
23993 msgid "B<--fuse-help>"
23994 msgstr ""
23995
23996 # type: textblock
23997 #: ../fuse/guestmount.pod:122
23998 msgid "Display help on special FUSE options (see I<-o> below)."
23999 msgstr ""
24000
24001 # type: textblock
24002 #: ../fuse/guestmount.pod:126
24003 msgid "Display brief help and exit."
24004 msgstr ""
24005
24006 # type: =item
24007 #: ../fuse/guestmount.pod:134
24008 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24009 msgstr ""
24010
24011 # type: textblock
24012 #: ../fuse/guestmount.pod:136
24013 msgid ""
24014 "Mount the named partition or logical volume on the given mountpoint B<in the "
24015 "guest> (this has nothing to do with mountpoints in the host)."
24016 msgstr ""
24017
24018 # type: textblock
24019 #: ../fuse/guestmount.pod:139
24020 msgid ""
24021 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24022 "something on C</>."
24023 msgstr ""
24024
24025 # type: textblock
24026 #: ../fuse/guestmount.pod:144
24027 msgid ""
24028 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
24029 "unmounted.  If you specify this option, then we don't attempt to sync the "
24030 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
24031 msgstr ""
24032
24033 # type: =item
24034 #: ../fuse/guestmount.pod:149
24035 msgid "B<-o option> | B<--option option>"
24036 msgstr ""
24037
24038 # type: textblock
24039 #: ../fuse/guestmount.pod:151
24040 msgid "Pass extra options to FUSE."
24041 msgstr ""
24042
24043 # type: textblock
24044 #: ../fuse/guestmount.pod:153
24045 msgid ""
24046 "To get a list of all the extra options supported by FUSE, use the command "
24047 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24048 "of them are a good idea."
24049 msgstr ""
24050
24051 # type: verbatim
24052 #: ../fuse/guestmount.pod:157
24053 #, no-wrap
24054 msgid ""
24055 " guestmount --fuse-help\n"
24056 "\n"
24057 msgstr ""
24058
24059 # type: textblock
24060 #: ../fuse/guestmount.pod:159
24061 msgid "Some potentially useful FUSE options:"
24062 msgstr ""
24063
24064 # type: =item
24065 #: ../fuse/guestmount.pod:163
24066 msgid "B<-o allow_other>"
24067 msgstr ""
24068
24069 # type: textblock
24070 #: ../fuse/guestmount.pod:165
24071 msgid "Allow other users to see the filesystem."
24072 msgstr ""
24073
24074 # type: =item
24075 #: ../fuse/guestmount.pod:167
24076 msgid "B<-o attr_timeout=N>"
24077 msgstr ""
24078
24079 # type: textblock
24080 #: ../fuse/guestmount.pod:169
24081 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24082 msgstr ""
24083
24084 # type: =item
24085 #: ../fuse/guestmount.pod:171
24086 msgid "B<-o kernel_cache>"
24087 msgstr ""
24088
24089 # type: textblock
24090 #: ../fuse/guestmount.pod:173
24091 msgid ""
24092 "Allow the kernel to cache files (reduces the number of reads that have to go "
24093 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24094 "afford the extra memory usage."
24095 msgstr ""
24096
24097 # type: =item
24098 #: ../fuse/guestmount.pod:177
24099 msgid "B<-o uid=N> B<-o gid=N>"
24100 msgstr ""
24101
24102 # type: textblock
24103 #: ../fuse/guestmount.pod:179
24104 msgid ""
24105 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24106 "the chosen values."
24107 msgstr ""
24108
24109 # type: textblock
24110 #: ../fuse/guestmount.pod:186
24111 msgid ""
24112 "Add devices and mount everything read-only.  Also disallow writes and make "
24113 "the disk appear read-only to FUSE."
24114 msgstr ""
24115
24116 # type: textblock
24117 #: ../fuse/guestmount.pod:189
24118 msgid ""
24119 "This is highly recommended if you are not going to edit the guest disk.  If "
24120 "the guest is running and this option is I<not> supplied, then there is a "
24121 "strong risk of disk corruption in the guest.  We try to prevent this from "
24122 "happening, but it is not always possible."
24123 msgstr ""
24124
24125 # type: textblock
24126 #: ../fuse/guestmount.pod:196
24127 msgid "Enable SELinux support for the guest."
24128 msgstr ""
24129
24130 # type: textblock
24131 #: ../fuse/guestmount.pod:200
24132 msgid "Enable verbose messages from underlying libguestfs."
24133 msgstr ""
24134
24135 # type: textblock
24136 #: ../fuse/guestmount.pod:204
24137 msgid "Display the program version and exit."
24138 msgstr ""
24139
24140 # type: =item
24141 #: ../fuse/guestmount.pod:206
24142 msgid "B<-x> | B<--trace>"
24143 msgstr ""
24144
24145 # type: textblock
24146 #: ../fuse/guestmount.pod:208
24147 msgid "Trace libguestfs calls."
24148 msgstr ""
24149
24150 # type: textblock
24151 #: ../fuse/guestmount.pod:210
24152 msgid "This also stops the daemon from forking into the background."
24153 msgstr ""
24154
24155 # type: textblock
24156 #: ../fuse/guestmount.pod:216
24157 msgid ""
24158 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24159 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
24160 "net/>."
24161 msgstr ""
24162
24163 # type: textblock
24164 #: ../inspector/virt-inspector.pl:35
24165 msgid ""
24166 "virt-inspector - Display operating system version and other information "
24167 "about a virtual machine"
24168 msgstr ""
24169
24170 # type: verbatim
24171 #: ../inspector/virt-inspector.pl:39
24172 #, no-wrap
24173 msgid ""
24174 " virt-inspector [--connect URI] domname\n"
24175 "\n"
24176 msgstr ""
24177
24178 # type: verbatim
24179 #: ../inspector/virt-inspector.pl:41
24180 #, no-wrap
24181 msgid ""
24182 " virt-inspector guest.img [guest.img ...]\n"
24183 "\n"
24184 msgstr ""
24185
24186 # type: textblock
24187 #: ../inspector/virt-inspector.pl:45
24188 msgid ""
24189 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24190 "determine the version of the operating system and other information about "
24191 "the virtual machine."
24192 msgstr ""
24193
24194 # type: textblock
24195 #: ../inspector/virt-inspector.pl:49
24196 msgid "Virt-inspector produces XML output for feeding into other programs."
24197 msgstr ""
24198
24199 # type: textblock
24200 #: ../inspector/virt-inspector.pl:51
24201 msgid ""
24202 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24203 "libvirt domain (see: C<virsh list --all>)."
24204 msgstr ""
24205
24206 # type: textblock
24207 #: ../inspector/virt-inspector.pl:54
24208 msgid ""
24209 "You can also run virt-inspector directly on disk images from a single "
24210 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24211 "has several block devices, in which case you should list them one after "
24212 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24213 "to the guest's C</dev/sdb> and so on."
24214 msgstr ""
24215
24216 # type: textblock
24217 #: ../inspector/virt-inspector.pl:60
24218 msgid ""
24219 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24220 "inspect several virtual machines, you have to run virt-inspector several "
24221 "times (for example, from a shell script for-loop)."
24222 msgstr ""
24223
24224 # type: textblock
24225 #: ../inspector/virt-inspector.pl:65
24226 msgid ""
24227 "Because virt-inspector needs direct access to guest images, it won't "
24228 "normally work over remote libvirt connections."
24229 msgstr ""
24230
24231 # type: textblock
24232 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
24233 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
24234 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89
24235 #: ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113
24236 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
24237 msgid "Display brief help."
24238 msgstr ""
24239
24240 # type: =item
24241 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
24242 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
24243 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
24244 #: ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114
24245 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
24246 #: ../tools/virt-list-partitions.pl:67
24247 msgid "B<--version>"
24248 msgstr ""
24249
24250 # type: textblock
24251 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
24252 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
24253 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
24254 #: ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116
24255 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
24256 #: ../tools/virt-list-partitions.pl:69
24257 msgid "Display version number and exit."
24258 msgstr ""
24259
24260 # type: =item
24261 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
24262 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
24263 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103
24264 #: ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135
24265 #: ../tools/virt-list-partitions.pl:75
24266 msgid "B<--connect URI> | B<-c URI>"
24267 msgstr ""
24268
24269 # type: textblock
24270 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
24271 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
24272 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105
24273 #: ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137
24274 #: ../tools/virt-list-partitions.pl:77
24275 msgid ""
24276 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24277 "to the default libvirt hypervisor."
24278 msgstr ""
24279
24280 # type: textblock
24281 #: ../inspector/virt-inspector.pl:97
24282 msgid ""
24283 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24284 "you specify guest block devices directly, then libvirt is not used at all."
24285 msgstr ""
24286
24287 # type: =item
24288 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
24289 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
24290 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
24291 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115
24292 #: ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147
24293 #: ../tools/virt-list-partitions.pl:87
24294 msgid "B<--format> raw"
24295 msgstr ""
24296
24297 # type: textblock
24298 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
24299 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
24300 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
24301 #: ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136
24302 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
24303 msgid ""
24304 "Specify the format of disk images given on the command line.  If this is "
24305 "omitted then the format is autodetected from the content of the disk image."
24306 msgstr ""
24307
24308 # type: textblock
24309 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
24310 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
24311 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
24312 #: ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140
24313 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
24314 msgid ""
24315 "If disk images are requested from libvirt, then this program asks libvirt "
24316 "for this information.  In this case, the value of the format parameter is "
24317 "ignored."
24318 msgstr ""
24319
24320 # type: textblock
24321 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
24322 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
24323 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
24324 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
24325 #: ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144
24326 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
24327 msgid ""
24328 "If working with untrusted raw-format guest disk images, you should ensure "
24329 "the format is always specified."
24330 msgstr ""
24331
24332 # type: =head1
24333 #: ../inspector/virt-inspector.pl:149
24334 msgid "XML FORMAT"
24335 msgstr ""
24336
24337 # type: textblock
24338 #: ../inspector/virt-inspector.pl:151
24339 msgid ""
24340 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
24341 "supplied with libguestfs.  This section is just an overview."
24342 msgstr ""
24343
24344 # type: textblock
24345 #: ../inspector/virt-inspector.pl:154
24346 msgid ""
24347 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
24348 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
24349 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
24350 "which is vanishingly rare in real world VMs."
24351 msgstr ""
24352
24353 # type: =head2
24354 #: ../inspector/virt-inspector.pl:159
24355 msgid "E<lt>operatingsystemE<gt>"
24356 msgstr ""
24357
24358 # type: textblock
24359 #: ../inspector/virt-inspector.pl:161
24360 msgid ""
24361 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
24362 "describe the operating system, its architecture, the descriptive \"product "
24363 "name\" string, the type of OS and so on, as in this example:"
24364 msgstr ""
24365
24366 # type: verbatim
24367 #: ../inspector/virt-inspector.pl:165
24368 #, no-wrap
24369 msgid ""
24370 " <operatingsystems>\n"
24371 "   <operatingsystem>\n"
24372 "     <root>/dev/sda2</root>\n"
24373 "     <name>windows</name>\n"
24374 "     <arch>i386</arch>\n"
24375 "     <distro>windows</distro>\n"
24376 "     <product_name>Windows 7 Enterprise</product_name>\n"
24377 "     <major_version>6</major_version>\n"
24378 "     <minor_version>1</minor_version>\n"
24379 "     <windows_systemroot>/Windows</windows_systemroot>\n"
24380 "\n"
24381 msgstr ""
24382
24383 # type: textblock
24384 #: ../inspector/virt-inspector.pl:176
24385 msgid ""
24386 "These fields are derived from the libguestfs inspection API, and you can "
24387 "find more details in L<guestfs(3)/INSPECTION>."
24388 msgstr ""
24389
24390 # type: textblock
24391 #: ../inspector/virt-inspector.pl:179
24392 msgid ""
24393 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
24394 "of view of libguestfs (block devices may have completely different names "
24395 "inside the VM itself)."
24396 msgstr ""
24397
24398 # type: =head2
24399 #: ../inspector/virt-inspector.pl:240
24400 msgid "E<lt>mountpointsE<gt>"
24401 msgstr ""
24402
24403 # type: textblock
24404 #: ../inspector/virt-inspector.pl:242
24405 msgid ""
24406 "Un*x-like guests typically have multiple filesystems which are mounted at "
24407 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
24408 "element which looks like this:"
24409 msgstr ""
24410
24411 # type: verbatim
24412 #: ../inspector/virt-inspector.pl:246
24413 #, no-wrap
24414 msgid ""
24415 " <operatingsystems>\n"
24416 "   <operatingsystem>\n"
24417 "     ...\n"
24418 "     <mountpoints>\n"
24419 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
24420 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
24421 "     </mountpoints>\n"
24422 "\n"
24423 msgstr ""
24424
24425 # type: textblock
24426 #: ../inspector/virt-inspector.pl:254
24427 msgid ""
24428 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
24429 "and may have completely different names inside the guest.  Only mountable "
24430 "filesystems appear in this list, not things like swap devices."
24431 msgstr ""
24432
24433 # type: =head2
24434 #: ../inspector/virt-inspector.pl:276
24435 msgid "E<lt>filesystemsE<gt>"
24436 msgstr ""
24437
24438 # type: textblock
24439 #: ../inspector/virt-inspector.pl:278
24440 msgid ""
24441 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
24442 "filesystems belonging to the guest, including swap and empty partitions.  "
24443 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
24444 "this OS or shared by this OS and other OSes)."
24445 msgstr ""
24446
24447 # type: textblock
24448 #: ../inspector/virt-inspector.pl:283
24449 msgid "You might see something like this:"
24450 msgstr ""
24451
24452 # type: verbatim
24453 #: ../inspector/virt-inspector.pl:285
24454 #, no-wrap
24455 msgid ""
24456 " <operatingsystems>\n"
24457 "   <operatingsystem>\n"
24458 "     ...\n"
24459 "     <filesystems>\n"
24460 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24461 "         <type>ext4</type>\n"
24462 "         <label>Fedora-13-x86_64</label>\n"
24463 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24464 "       </filesystem>\n"
24465 "\n"
24466 msgstr ""
24467
24468 # type: textblock
24469 #: ../inspector/virt-inspector.pl:295
24470 msgid ""
24471 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24472 "the label, and the UUID."
24473 msgstr ""
24474
24475 # type: =head2
24476 #: ../inspector/virt-inspector.pl:337
24477 msgid "E<lt>applicationsE<gt>"
24478 msgstr ""
24479
24480 # type: textblock
24481 #: ../inspector/virt-inspector.pl:339
24482 msgid ""
24483 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24484 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24485 "machine.  At the moment we are only able to list RPMs and Debian packages "
24486 "installed, but in future we will support other Linux distros and Windows."
24487 msgstr ""
24488
24489 # type: textblock
24490 #: ../inspector/virt-inspector.pl:345
24491 msgid ""
24492 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
24493 "Typical values would be C<rpm> and C<deb>."
24494 msgstr ""
24495
24496 # type: textblock
24497 #: ../inspector/virt-inspector.pl:348
24498 msgid ""
24499 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
24500 "Typical values include C<yum>, C<up2date> and C<apt>"
24501 msgstr ""
24502
24503 # type: textblock
24504 #: ../inspector/virt-inspector.pl:351
24505 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24506 msgstr ""
24507
24508 # type: verbatim
24509 #: ../inspector/virt-inspector.pl:354
24510 #, no-wrap
24511 msgid ""
24512 " <operatingsystems>\n"
24513 "   <operatingsystem>\n"
24514 "     ...\n"
24515 "     <applications>\n"
24516 "       <application>\n"
24517 "         <name>coreutils</name>\n"
24518 "         <version>8.5</version>\n"
24519 "         <release>1</release>\n"
24520 "       </application>\n"
24521 "\n"
24522 msgstr ""
24523
24524 # type: textblock
24525 #: ../inspector/virt-inspector.pl:364
24526 msgid ""
24527 "(The version and release fields may not be available for some package types)."
24528 msgstr ""
24529
24530 # type: =head1
24531 #: ../inspector/virt-inspector.pl:544
24532 msgid "USING XPATH"
24533 msgstr ""
24534
24535 # type: textblock
24536 #: ../inspector/virt-inspector.pl:546
24537 msgid ""
24538 "You can use the XPath query language, and/or the xpath tool, in order to "
24539 "select parts of the XML."
24540 msgstr ""
24541
24542 # type: verbatim
24543 #: ../inspector/virt-inspector.pl:551
24544 #, no-wrap
24545 msgid ""
24546 " $ virt-inspector Guest | xpath //filesystems\n"
24547 " Found 1 nodes:\n"
24548 " -- NODE --\n"
24549 " <filesystems>\n"
24550 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24551 "        <type>ext4</type>\n"
24552 " [etc]\n"
24553 "\n"
24554 msgstr ""
24555
24556 # type: verbatim
24557 #: ../inspector/virt-inspector.pl:559
24558 #, no-wrap
24559 msgid ""
24560 " $ virt-inspector Guest | \\\n"
24561 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24562 " Query didn't return a nodeset. Value: ext4\n"
24563 "\n"
24564 msgstr ""
24565
24566 # type: =head2
24567 #: ../inspector/virt-inspector.pl:563 ../tools/virt-edit.pl:343
24568 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
24569 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
24570 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
24571 #: ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274
24572 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
24573 #: ../tools/virt-list-partitions.pl:247
24574 msgid "SHELL QUOTING"
24575 msgstr ""
24576
24577 # type: textblock
24578 #: ../inspector/virt-inspector.pl:565 ../tools/virt-edit.pl:345
24579 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
24580 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
24581 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180
24582 #: ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262
24583 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
24584 msgid ""
24585 "Libvirt guest names can contain arbitrary characters, some of which have "
24586 "meaning to the shell such as C<#> and space.  You may need to quote or "
24587 "escape these characters on the command line.  See the shell manual page L<sh"
24588 "(1)> for details."
24589 msgstr ""
24590
24591 # type: textblock
24592 #: ../inspector/virt-inspector.pl:572
24593 msgid ""
24594 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24595 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
24596 msgstr ""
24597
24598 # type: textblock
24599 #: ../inspector/virt-inspector.pl:586 ../tools/virt-edit.pl:364
24600 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
24601 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
24602 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197
24603 #: ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279
24604 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
24605 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24606 msgstr ""
24607
24608 # type: textblock
24609 #: ../inspector/virt-inspector.pl:590
24610 msgid "Matthew Booth L<mbooth@redhat.com>"
24611 msgstr ""
24612
24613 # type: textblock
24614 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516
24615 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
24616 msgid "Copyright (C) 2010 Red Hat Inc."
24617 msgstr ""
24618
24619 # type: textblock
24620 #: ../tools/virt-edit.pl:34
24621 msgid "virt-edit - Edit a file in a virtual machine"
24622 msgstr ""
24623
24624 # type: verbatim
24625 #: ../tools/virt-edit.pl:38
24626 #, no-wrap
24627 msgid ""
24628 " virt-edit [--options] domname file\n"
24629 "\n"
24630 msgstr ""
24631
24632 # type: verbatim
24633 #: ../tools/virt-edit.pl:40
24634 #, no-wrap
24635 msgid ""
24636 " virt-edit [--options] disk.img [disk.img ...] file\n"
24637 "\n"
24638 msgstr ""
24639
24640 # type: verbatim
24641 #: ../tools/virt-edit.pl:42
24642 #, no-wrap
24643 msgid ""
24644 " virt-edit [domname|disk.img] file -e 'expr'\n"
24645 "\n"
24646 msgstr ""
24647
24648 # type: textblock
24649 #: ../tools/virt-edit.pl:46
24650 msgid ""
24651 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24652 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24653 "doing this, but doesn't catch all cases."
24654 msgstr ""
24655
24656 # type: textblock
24657 #: ../tools/virt-edit.pl:52
24658 msgid ""
24659 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24660 "the named virtual machine (or disk image)."
24661 msgstr ""
24662
24663 # type: textblock
24664 #: ../tools/virt-edit.pl:55
24665 msgid ""
24666 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24667 "you should look at the L<guestfish(1)> tool."
24668 msgstr ""
24669
24670 # type: textblock
24671 #: ../tools/virt-edit.pl:60
24672 msgid "Edit the named files interactively:"
24673 msgstr ""
24674
24675 # type: verbatim
24676 #: ../tools/virt-edit.pl:62
24677 #, no-wrap
24678 msgid ""
24679 " virt-edit mydomain /boot/grub/grub.conf\n"
24680 "\n"
24681 msgstr ""
24682
24683 # type: verbatim
24684 #: ../tools/virt-edit.pl:64
24685 #, no-wrap
24686 msgid ""
24687 " virt-edit mydomain /etc/passwd\n"
24688 "\n"
24689 msgstr ""
24690
24691 # type: textblock
24692 #: ../tools/virt-edit.pl:66
24693 msgid ""
24694 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
24695 "below).  To change the init default level to 5:"
24696 msgstr ""
24697
24698 # type: verbatim
24699 #: ../tools/virt-edit.pl:70
24700 #, no-wrap
24701 msgid ""
24702 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
24703 "\n"
24704 msgstr ""
24705
24706 # type: =item
24707 #: ../tools/virt-edit.pl:96
24708 msgid "B<--backup extension> | B<-b extension>"
24709 msgstr ""
24710
24711 # type: textblock
24712 #: ../tools/virt-edit.pl:98
24713 msgid ""
24714 "Create a backup of the original file I<in the guest disk image>.  The backup "
24715 "has the original filename with C<extension> added."
24716 msgstr ""
24717
24718 # type: textblock
24719 #: ../tools/virt-edit.pl:101
24720 msgid ""
24721 "Usually the first character of C<extension> would be a dot C<.> so you would "
24722 "write:"
24723 msgstr ""
24724
24725 # type: verbatim
24726 #: ../tools/virt-edit.pl:104
24727 #, no-wrap
24728 msgid ""
24729 " virt-edit -b .orig [etc]\n"
24730 "\n"
24731 msgstr ""
24732
24733 # type: textblock
24734 #: ../tools/virt-edit.pl:106
24735 msgid "By default, no backup file is made."
24736 msgstr ""
24737
24738 # type: textblock
24739 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
24740 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
24741 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108
24742 #: ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140
24743 #: ../tools/virt-list-partitions.pl:80
24744 msgid ""
24745 "If you specify guest block devices directly, then libvirt is not used at all."
24746 msgstr ""
24747
24748 # type: =item
24749 #: ../tools/virt-edit.pl:141
24750 msgid "B<--expr EXPR> | B<-e EXPR>"
24751 msgstr ""
24752
24753 # type: textblock
24754 #: ../tools/virt-edit.pl:143
24755 msgid ""
24756 "Instead of launching the external editor, non-interactively apply the Perl "
24757 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
24758 "EDITING> below."
24759 msgstr ""
24760
24761 # type: textblock
24762 #: ../tools/virt-edit.pl:147
24763 msgid ""
24764 "Be careful to properly quote the expression to prevent it from being altered "
24765 "by the shell."
24766 msgstr ""
24767
24768 # type: =head1
24769 #: ../tools/virt-edit.pl:268
24770 msgid "NON-INTERACTIVE EDITING"
24771 msgstr ""
24772
24773 # type: textblock
24774 #: ../tools/virt-edit.pl:270
24775 msgid ""
24776 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24777 "administrator can interactively edit the file."
24778 msgstr ""
24779
24780 # type: textblock
24781 #: ../tools/virt-edit.pl:273
24782 msgid ""
24783 "There are two ways also to use C<virt-edit> from scripts in order to make "
24784 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24785 "like this, it's less error-prone to write scripts directly using the "
24786 "libguestfs API and Augeas for configuration file editing.)"
24787 msgstr ""
24788
24789 # type: textblock
24790 #: ../tools/virt-edit.pl:279
24791 msgid ""
24792 "The first method is to temporarily set C<$EDITOR> to any script or program "
24793 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24794 "update C<tmpfile> in place however it likes."
24795 msgstr ""
24796
24797 # type: textblock
24798 #: ../tools/virt-edit.pl:283
24799 msgid ""
24800 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24801 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24802 "instances of C<foo> with C<bar> in a file:"
24803 msgstr ""
24804
24805 # type: verbatim
24806 #: ../tools/virt-edit.pl:287
24807 #, no-wrap
24808 msgid ""
24809 " virt-edit domname filename -e 's/foo/bar/'\n"
24810 "\n"
24811 msgstr ""
24812
24813 # type: textblock
24814 #: ../tools/virt-edit.pl:289
24815 msgid ""
24816 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24817 "For example to delete root's password you could do:"
24818 msgstr ""
24819
24820 # type: verbatim
24821 #: ../tools/virt-edit.pl:292
24822 #, no-wrap
24823 msgid ""
24824 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24825 "\n"
24826 msgstr ""
24827
24828 # type: textblock
24829 #: ../tools/virt-edit.pl:294
24830 msgid ""
24831 "What really happens is that the snippet is evaluated as a Perl expression "
24832 "for each line of the file.  The line, including the final C<\\n>, is passed "
24833 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24834 msgstr ""
24835
24836 # type: textblock
24837 #: ../tools/virt-edit.pl:299
24838 msgid ""
24839 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24840 "C<apache> user account from the password file you can do:"
24841 msgstr ""
24842
24843 # type: verbatim
24844 #: ../tools/virt-edit.pl:302
24845 #, no-wrap
24846 msgid ""
24847 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24848 "\n"
24849 msgstr ""
24850
24851 # type: textblock
24852 #: ../tools/virt-edit.pl:304
24853 msgid ""
24854 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24855 "the end of the file is rather difficult this way since there is no concept "
24856 "of \"last line of the file\" - your expression just doesn't get called "
24857 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24858 "want to do this."
24859 msgstr ""
24860
24861 # type: textblock
24862 #: ../tools/virt-edit.pl:310
24863 msgid ""
24864 "The variable C<$lineno> contains the current line number.  As is "
24865 "traditional, the first line in the file is number C<1>."
24866 msgstr ""
24867
24868 # type: textblock
24869 #: ../tools/virt-edit.pl:313
24870 msgid ""
24871 "The return value from the expression is ignored, but the expression may call "
24872 "C<die> in order to abort the whole program, leaving the original file "
24873 "untouched."
24874 msgstr ""
24875
24876 # type: textblock
24877 #: ../tools/virt-edit.pl:317
24878 msgid ""
24879 "Remember when matching the end of a line that C<$_> may contain the final C<"
24880 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24881 "newline then neither of these.  Thus to match or substitute some text at the "
24882 "end of a line, use this regular expression:"
24883 msgstr ""
24884
24885 # type: verbatim
24886 #: ../tools/virt-edit.pl:322
24887 #, no-wrap
24888 msgid ""
24889 " /some text(\\r?\\n)?$/\n"
24890 "\n"
24891 msgstr ""
24892
24893 # type: textblock
24894 #: ../tools/virt-edit.pl:324
24895 msgid ""
24896 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
24897 "$_> itself (since that would remove all newlines from the file):"
24898 msgstr ""
24899
24900 # type: verbatim
24901 #: ../tools/virt-edit.pl:328
24902 #, no-wrap
24903 msgid ""
24904 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24905 "\n"
24906 msgstr ""
24907
24908 # type: =item
24909 #: ../tools/virt-edit.pl:334
24910 msgid "C<EDITOR>"
24911 msgstr ""
24912
24913 # type: textblock
24914 #: ../tools/virt-edit.pl:336
24915 msgid ""
24916 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
24917 "\"emacs -nw\">"
24918 msgstr ""
24919
24920 # type: textblock
24921 #: ../tools/virt-edit.pl:339
24922 msgid "If not set, C<vi> is used."
24923 msgstr ""
24924
24925 # type: textblock
24926 #: ../tools/virt-edit.pl:352
24927 msgid ""
24928 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
24929 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
24930 "L<perlre(1)>."
24931 msgstr ""
24932
24933 # type: =head1
24934 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
24935 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
24936 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
24937 #: ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292
24938 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
24939 #: ../tools/virt-list-partitions.pl:265
24940 msgid "AUTHOR"
24941 msgstr ""
24942
24943 # type: textblock
24944 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
24945 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
24946 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24947 msgstr ""
24948
24949 # type: textblock
24950 #: ../tools/virt-win-reg.pl:37
24951 msgid ""
24952 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
24953 msgstr ""
24954
24955 # type: verbatim
24956 #: ../tools/virt-win-reg.pl:41
24957 #, no-wrap
24958 msgid ""
24959 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24960 "\n"
24961 msgstr ""
24962
24963 # type: verbatim
24964 #: ../tools/virt-win-reg.pl:43
24965 #, no-wrap
24966 msgid ""
24967 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
24968 "\n"
24969 msgstr ""
24970
24971 # type: verbatim
24972 #: ../tools/virt-win-reg.pl:45
24973 #, no-wrap
24974 msgid ""
24975 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
24976 "\n"
24977 msgstr ""
24978
24979 # type: verbatim
24980 #: ../tools/virt-win-reg.pl:47
24981 #, no-wrap
24982 msgid ""
24983 " virt-win-reg --merge domname [input.reg ...]\n"
24984 "\n"
24985 msgstr ""
24986
24987 # type: verbatim
24988 #: ../tools/virt-win-reg.pl:49
24989 #, no-wrap
24990 msgid ""
24991 " virt-win-reg [--options] disk.img ... # instead of domname\n"
24992 "\n"
24993 msgstr ""
24994
24995 # type: textblock
24996 #: ../tools/virt-win-reg.pl:53
24997 msgid ""
24998 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
24999 "virtual machines.  If you do this, you I<will> get irreversible disk "
25000 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25001 "but doesn't catch all cases."
25002 msgstr ""
25003
25004 # type: textblock
25005 #: ../tools/virt-win-reg.pl:58
25006 msgid ""
25007 "Modifying the Windows Registry is an inherently risky operation.  The format "
25008 "is deliberately obscure and undocumented, and Registry changes can leave the "
25009 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25010 "you have a reliable backup first."
25011 msgstr ""
25012
25013 # type: textblock
25014 #: ../tools/virt-win-reg.pl:65
25015 msgid ""
25016 "This program can export and merge Windows Registry entries from a Windows "
25017 "guest."
25018 msgstr ""
25019
25020 # type: textblock
25021 #: ../tools/virt-win-reg.pl:68
25022 msgid ""
25023 "The first parameter is the libvirt guest name or the raw disk image of a "
25024 "Windows guest."
25025 msgstr ""
25026
25027 # type: textblock
25028 #: ../tools/virt-win-reg.pl:71
25029 msgid ""
25030 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
25031 "exported (recursively).  For example:"
25032 msgstr ""
25033
25034 # type: verbatim
25035 #: ../tools/virt-win-reg.pl:74
25036 #, no-wrap
25037 msgid ""
25038 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25039 "\n"
25040 msgstr ""
25041
25042 # type: textblock
25043 #: ../tools/virt-win-reg.pl:76
25044 msgid ""
25045 "You can also display single values from within registry keys, for example:"
25046 msgstr ""
25047
25048 # type: verbatim
25049 #: ../tools/virt-win-reg.pl:79
25050 #, no-wrap
25051 msgid ""
25052 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25053 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25054 " Windows 7 Enterprise\n"
25055 "\n"
25056 msgstr ""
25057
25058 # type: textblock
25059 #: ../tools/virt-win-reg.pl:83
25060 msgid ""
25061 "With C<--merge>, you can merge a textual regedit file into the Windows "
25062 "Registry:"
25063 msgstr ""
25064
25065 # type: verbatim
25066 #: ../tools/virt-win-reg.pl:86
25067 #, no-wrap
25068 msgid ""
25069 " $ virt-win-reg --merge Windows7 changes.reg\n"
25070 "\n"
25071 msgstr ""
25072
25073 # type: =head2
25074 #: ../tools/virt-win-reg.pl:88
25075 msgid "SUPPORTED SYSTEMS"
25076 msgstr ""
25077
25078 # type: textblock
25079 #: ../tools/virt-win-reg.pl:90
25080 msgid ""
25081 "The program currently supports Windows NT-derived guests starting with "
25082 "Windows XP through to at least Windows 7."
25083 msgstr ""
25084
25085 # type: textblock
25086 #: ../tools/virt-win-reg.pl:93
25087 msgid ""
25088 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
25089 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
25090 "and C<HKEY_USERS\\.DEFAULT>."
25091 msgstr ""
25092
25093 # type: textblock
25094 #: ../tools/virt-win-reg.pl:97
25095 msgid ""
25096 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25097 "C<HKEY_USERS>."
25098 msgstr ""
25099
25100 # type: textblock
25101 #: ../tools/virt-win-reg.pl:100
25102 msgid ""
25103 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25104 "time."
25105 msgstr ""
25106
25107 # type: =head2
25108 #: ../tools/virt-win-reg.pl:103
25109 msgid "NOTE"
25110 msgstr ""
25111
25112 # type: textblock
25113 #: ../tools/virt-win-reg.pl:105
25114 msgid ""
25115 "This program is only meant for simple access to the registry.  If you want "
25116 "to do complicated things with the registry, we suggest you download the "
25117 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25118 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25119 "L<hivexregedit(1)>."
25120 msgstr ""
25121
25122 # type: =head2
25123 #: ../tools/virt-win-reg.pl:111
25124 msgid "ENCODING"
25125 msgstr ""
25126
25127 # type: textblock
25128 #: ../tools/virt-win-reg.pl:113
25129 msgid ""
25130 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25131 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
25132 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
25133 "Windows-style line endings, you may need to reencode the whole file before "
25134 "or after processing."
25135 msgstr ""
25136
25137 # type: textblock
25138 #: ../tools/virt-win-reg.pl:119
25139 msgid ""
25140 "To reencode a file from Windows format to Linux (before processing it with "
25141 "the C<--merge> option), you would do something like this:"
25142 msgstr ""
25143
25144 # type: verbatim
25145 #: ../tools/virt-win-reg.pl:122
25146 #, no-wrap
25147 msgid ""
25148 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25149 "\n"
25150 msgstr ""
25151
25152 # type: textblock
25153 #: ../tools/virt-win-reg.pl:124
25154 msgid ""
25155 "To go in the opposite direction, after exporting and before sending the file "
25156 "to a Windows user, do something like this:"
25157 msgstr ""
25158
25159 # type: verbatim
25160 #: ../tools/virt-win-reg.pl:127
25161 #, no-wrap
25162 msgid ""
25163 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25164 "\n"
25165 msgstr ""
25166
25167 # type: textblock
25168 #: ../tools/virt-win-reg.pl:129
25169 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25170 msgstr ""
25171
25172 # type: textblock
25173 #: ../tools/virt-win-reg.pl:131
25174 msgid ""
25175 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25176 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
25177 "style (CRLF) line endings, like this:"
25178 msgstr ""
25179
25180 # type: verbatim
25181 #: ../tools/virt-win-reg.pl:135
25182 #, no-wrap
25183 msgid ""
25184 " $ file software.reg\n"
25185 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25186 " with CRLF line terminators\n"
25187 "\n"
25188 msgstr ""
25189
25190 # type: textblock
25191 #: ../tools/virt-win-reg.pl:139
25192 msgid "This file would need conversion before you could C<--merge> it."
25193 msgstr ""
25194
25195 # type: textblock
25196 #: ../tools/virt-win-reg.pl:143
25197 msgid ""
25198 "Be careful when passing parameters containing C<\\> (backslash) in the "
25199 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25200 "(but not both) to protect them from the shell."
25201 msgstr ""
25202
25203 # type: textblock
25204 #: ../tools/virt-win-reg.pl:147
25205 msgid "Paths and value names are case-insensitive."
25206 msgstr ""
25207
25208 # type: =head2
25209 #: ../tools/virt-win-reg.pl:149
25210 msgid "CurrentControlSet etc."
25211 msgstr ""
25212
25213 # type: textblock
25214 #: ../tools/virt-win-reg.pl:151
25215 msgid ""
25216 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25217 "Registry at the level of the hive file, and therefore you cannot modify "
25218 "these."
25219 msgstr ""
25220
25221 # type: textblock
25222 #: ../tools/virt-win-reg.pl:155
25223 msgid ""
25224 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25225 "circumstances it might refer to another control set.  The way to find out is "
25226 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25227 msgstr ""
25228
25229 # type: verbatim
25230 #: ../tools/virt-win-reg.pl:159
25231 #, no-wrap
25232 msgid ""
25233 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25234 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25235 " \"Current\"=dword:00000001\n"
25236 " \"Default\"=dword:00000001\n"
25237 " \"Failed\"=dword:00000000\n"
25238 " \"LastKnownGood\"=dword:00000002\n"
25239 "\n"
25240 msgstr ""
25241
25242 # type: textblock
25243 #: ../tools/virt-win-reg.pl:166
25244 msgid "\"Default\" is the one which Windows will choose when it boots."
25245 msgstr ""
25246
25247 # type: textblock
25248 #: ../tools/virt-win-reg.pl:168
25249 msgid ""
25250 "Similarly, other C<Current...> keys in the path may need to be replaced."
25251 msgstr ""
25252
25253 # type: =item
25254 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
25255 msgid "B<--debug>"
25256 msgstr ""
25257
25258 # type: textblock
25259 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
25260 msgid "Enable debugging messages."
25261 msgstr ""
25262
25263 # type: =item
25264 #: ../tools/virt-win-reg.pl:232
25265 msgid "B<--merge>"
25266 msgstr ""
25267
25268 # type: textblock
25269 #: ../tools/virt-win-reg.pl:234
25270 msgid ""
25271 "In merge mode, this merges a textual regedit file into the Windows Registry "
25272 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25273 "displays or exports Registry entries instead."
25274 msgstr ""
25275
25276 # type: textblock
25277 #: ../tools/virt-win-reg.pl:238
25278 msgid ""
25279 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25280 "result in disk corruption.  However exporting (without this flag)  is always "
25281 "safe."
25282 msgstr ""
25283
25284 # type: =item
25285 #: ../tools/virt-win-reg.pl:246
25286 msgid "B<--encoding> UTF-16LE|ASCII"
25287 msgstr ""
25288
25289 # type: textblock
25290 #: ../tools/virt-win-reg.pl:248
25291 msgid ""
25292 "When merging (only), you may need to specify the encoding for strings to be "
25293 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
25294 "(3)/ENCODING STRINGS>."
25295 msgstr ""
25296
25297 # type: textblock
25298 #: ../tools/virt-win-reg.pl:252
25299 msgid ""
25300 "The default is to use UTF-16LE, which should work with recent versions of "
25301 "Windows."
25302 msgstr ""
25303
25304 # type: textblock
25305 #: ../tools/virt-win-reg.pl:486
25306 msgid ""
25307 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
25308 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
25309 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25310 msgstr ""
25311
25312 # type: textblock
25313 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25314 msgid ""
25315 "When reporting bugs, please enable debugging and capture the I<complete> "
25316 "output:"
25317 msgstr ""
25318
25319 # type: verbatim
25320 #: ../tools/virt-win-reg.pl:504
25321 #, no-wrap
25322 msgid ""
25323 " export LIBGUESTFS_DEBUG=1\n"
25324 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25325 "\n"
25326 msgstr ""
25327
25328 # type: textblock
25329 #: ../tools/virt-win-reg.pl:507
25330 msgid ""
25331 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
25332 "redhat.com/>"
25333 msgstr ""
25334
25335 # type: textblock
25336 #: ../tools/virt-df.pl:36
25337 msgid "virt-df - Display free space on virtual filesystems"
25338 msgstr ""
25339
25340 # type: verbatim
25341 #: ../tools/virt-df.pl:40
25342 #, no-wrap
25343 msgid ""
25344 " virt-df [--options]\n"
25345 "\n"
25346 msgstr ""
25347
25348 # type: verbatim
25349 #: ../tools/virt-df.pl:42
25350 #, no-wrap
25351 msgid ""
25352 " virt-df [--options] domname\n"
25353 "\n"
25354 msgstr ""
25355
25356 # type: verbatim
25357 #: ../tools/virt-df.pl:44
25358 #, no-wrap
25359 msgid ""
25360 " virt-df [--options] disk.img [disk.img ...]\n"
25361 "\n"
25362 msgstr ""
25363
25364 # type: textblock
25365 #: ../tools/virt-df.pl:48
25366 msgid ""
25367 "C<virt-df> is a command line tool to display free space on virtual machine "
25368 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25369 "space allocated to a virtual machine, but can look inside the virtual "
25370 "machine to see how much space is really being used."
25371 msgstr ""
25372
25373 # type: textblock
25374 #: ../tools/virt-df.pl:53
25375 msgid ""
25376 "It is like the L<df(1)> command, but for virtual machines, except that it "
25377 "also works for Windows virtual machines."
25378 msgstr ""
25379
25380 # type: textblock
25381 #: ../tools/virt-df.pl:56
25382 msgid ""
25383 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25384 "of all active and inactive guests, and performs a C<df>-type operation on "
25385 "each one in turn, printing out the results."
25386 msgstr ""
25387
25388 # type: textblock
25389 #: ../tools/virt-df.pl:60
25390 msgid ""
25391 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25392 "either the single named libvirt domain, or on the disk image(s) listed on "
25393 "the command line (which must all belong to a single VM).  In this mode (with "
25394 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25395 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25396 msgstr ""
25397
25398 # type: textblock
25399 #: ../tools/virt-df.pl:67
25400 msgid ""
25401 "Use the C<--csv> option to get a format which can be easily parsed by other "
25402 "programs.  Other options are mostly similar to standard C<df> options.  See "
25403 "below for the complete list."
25404 msgstr ""
25405
25406 # type: =item
25407 #: ../tools/virt-df.pl:107
25408 msgid "B<--csv>"
25409 msgstr ""
25410
25411 # type: textblock
25412 #: ../tools/virt-df.pl:109
25413 msgid ""
25414 "Write out the results in CSV format (comma-separated values).  This format "
25415 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25416 "ABOUT CSV FORMAT> below."
25417 msgstr ""
25418
25419 # type: =item
25420 #: ../tools/virt-df.pl:134
25421 msgid "B<--human-readable> | B<-h>"
25422 msgstr ""
25423
25424 # type: textblock
25425 #: ../tools/virt-df.pl:136
25426 msgid "Print sizes in human-readable format."
25427 msgstr ""
25428
25429 # type: textblock
25430 #: ../tools/virt-df.pl:138
25431 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25432 msgstr ""
25433
25434 # type: =item
25435 #: ../tools/virt-df.pl:144
25436 msgid "B<--inodes> | B<-i>"
25437 msgstr ""
25438
25439 # type: textblock
25440 #: ../tools/virt-df.pl:146
25441 msgid "Print inodes instead of blocks."
25442 msgstr ""
25443
25444 # type: =item
25445 #: ../tools/virt-df.pl:152
25446 msgid "B<--one-per-guest>"
25447 msgstr ""
25448
25449 # type: textblock
25450 #: ../tools/virt-df.pl:154
25451 msgid ""
25452 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25453 "disks from several guests to a single libguestfs appliance."
25454 msgstr ""
25455
25456 # type: textblock
25457 #: ../tools/virt-df.pl:157
25458 msgid "You might use this option in the following circumstances:"
25459 msgstr ""
25460
25461 # type: textblock
25462 #: ../tools/virt-df.pl:163
25463 msgid ""
25464 "If you think an untrusted guest might actively try to exploit the libguestfs "
25465 "appliance kernel, then this prevents one guest from interfering with the "
25466 "stats printed for another guest."
25467 msgstr ""
25468
25469 # type: textblock
25470 #: ../tools/virt-df.pl:169
25471 msgid ""
25472 "If the kernel has a bug which stops it from accessing a filesystem in one "
25473 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25474 "and report stats for further guests."
25475 msgstr ""
25476
25477 # type: =item
25478 #: ../tools/virt-df.pl:180
25479 msgid "B<--uuid>"
25480 msgstr ""
25481
25482 # type: textblock
25483 #: ../tools/virt-df.pl:182
25484 msgid ""
25485 "Print UUIDs instead of names.  This is useful for following a guest even "
25486 "when the guest is migrated or renamed, or when two guests happen to have the "
25487 "same name."
25488 msgstr ""
25489
25490 # type: textblock
25491 #: ../tools/virt-df.pl:186
25492 msgid ""
25493 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25494 "images, we still print the disk image name even when this option is "
25495 "specified."
25496 msgstr ""
25497
25498 # type: =head1
25499 #: ../tools/virt-df.pl:609
25500 msgid "NOTE ABOUT CSV FORMAT"
25501 msgstr ""
25502
25503 # type: textblock
25504 #: ../tools/virt-df.pl:611
25505 msgid ""
25506 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25507 "should be easy to parse, but it is definitely not easy to parse."
25508 msgstr ""
25509
25510 # type: textblock
25511 #: ../tools/virt-df.pl:614
25512 msgid ""
25513 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25514 "reliably.  This example has two columns:"
25515 msgstr ""
25516
25517 # type: verbatim
25518 #: ../tools/virt-df.pl:617
25519 #, no-wrap
25520 msgid ""
25521 " \"foo,bar\",baz\n"
25522 "\n"
25523 msgstr ""
25524
25525 # type: textblock
25526 #: ../tools/virt-df.pl:619
25527 msgid ""
25528 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25529 "reliably.  This example has one row:"
25530 msgstr ""
25531
25532 # type: verbatim
25533 #: ../tools/virt-df.pl:622
25534 #, no-wrap
25535 msgid ""
25536 " \"foo\n"
25537 " bar\",baz\n"
25538 "\n"
25539 msgstr ""
25540
25541 # type: textblock
25542 #: ../tools/virt-df.pl:625
25543 msgid ""
25544 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25545 "packaged in major Linux distributions)."
25546 msgstr ""
25547
25548 # type: textblock
25549 #: ../tools/virt-df.pl:628
25550 msgid ""
25551 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25552 "or Python's built-in csv library)."
25553 msgstr ""
25554
25555 # type: textblock
25556 #: ../tools/virt-df.pl:631
25557 msgid "Most spreadsheets and databases can import CSV directly."
25558 msgstr ""
25559
25560 # type: textblock
25561 #: ../tools/virt-df.pl:642
25562 msgid ""
25563 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25564 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25565 msgstr ""
25566
25567 # type: textblock
25568 #: ../tools/virt-ls.pl:34
25569 msgid "virt-ls - List files in a virtual machine"
25570 msgstr ""
25571
25572 # type: verbatim
25573 #: ../tools/virt-ls.pl:38
25574 #, no-wrap
25575 msgid ""
25576 " virt-ls [--options] domname directory\n"
25577 "\n"
25578 msgstr ""
25579
25580 # type: verbatim
25581 #: ../tools/virt-ls.pl:40
25582 #, no-wrap
25583 msgid ""
25584 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25585 "\n"
25586 msgstr ""
25587
25588 # type: textblock
25589 #: ../tools/virt-ls.pl:44
25590 msgid ""
25591 "C<virt-ls> is a command line tool to list the names of files in a directory "
25592 "inside a virtual machine or disk image."
25593 msgstr ""
25594
25595 # type: textblock
25596 #: ../tools/virt-ls.pl:47
25597 msgid ""
25598 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25599 "For more complex cases you should look at the L<guestfish(1)> tool."
25600 msgstr ""
25601
25602 # type: textblock
25603 #: ../tools/virt-ls.pl:51
25604 msgid ""
25605 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
25606 "simple listing is like the ordinary L<ls(1)> command:"
25607 msgstr ""
25608
25609 # type: verbatim
25610 #: ../tools/virt-ls.pl:54
25611 #, no-wrap
25612 msgid ""
25613 " $ virt-ls myguest /\n"
25614 " bin\n"
25615 " boot\n"
25616 " [etc.]\n"
25617 "\n"
25618 msgstr ""
25619
25620 # type: textblock
25621 #: ../tools/virt-ls.pl:59
25622 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
25623 msgstr ""
25624
25625 # type: verbatim
25626 #: ../tools/virt-ls.pl:61
25627 #, no-wrap
25628 msgid ""
25629 " $ virt-ls -l myguest /\n"
25630 " total 204\n"
25631 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25632 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25633 " [etc.]\n"
25634 "\n"
25635 msgstr ""
25636
25637 # type: textblock
25638 #: ../tools/virt-ls.pl:67
25639 msgid ""
25640 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25641 "and directories recursively:"
25642 msgstr ""
25643
25644 # type: verbatim
25645 #: ../tools/virt-ls.pl:70
25646 #, no-wrap
25647 msgid ""
25648 " $ virt-ls -R myguest /tmp\n"
25649 " foo\n"
25650 " foo/bar\n"
25651 " [etc.]\n"
25652 "\n"
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../tools/virt-ls.pl:75
25657 msgid ""
25658 "You I<cannot> combine these options.  To do more complicated things, use "
25659 "L<guestfish(1)>."
25660 msgstr ""
25661
25662 # type: =item
25663 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
25664 #: ../tools/virt-list-partitions.pl:112
25665 msgid "B<-l> | B<--long>"
25666 msgstr ""
25667
25668 # type: =item
25669 #: ../tools/virt-ls.pl:133
25670 msgid "B<-R> | B<--recursive>"
25671 msgstr ""
25672
25673 # type: textblock
25674 #: ../tools/virt-ls.pl:135
25675 msgid ""
25676 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25677 "simple, flat list of the files in the named directory."
25678 msgstr ""
25679
25680 # type: textblock
25681 #: ../tools/virt-ls.pl:138
25682 msgid ""
25683 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
25684 "like the plain C<ls -l> command)."
25685 msgstr ""
25686
25687 # type: textblock
25688 #: ../tools/virt-ls.pl:141
25689 msgid ""
25690 "C<virt-ls -R> produces a recursive list of files starting at the named "
25691 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
25692 "details."
25693 msgstr ""
25694
25695 # type: textblock
25696 #: ../tools/virt-ls.pl:145
25697 msgid "You cannot combine these options."
25698 msgstr ""
25699
25700 # type: textblock
25701 #: ../tools/virt-ls.pl:234
25702 msgid ""
25703 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
25704 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25705 "org/>."
25706 msgstr ""
25707
25708 # type: textblock
25709 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
25710 #: ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
25711 msgid "Copyright (C) 2009 Red Hat Inc."
25712 msgstr ""
25713
25714 # type: textblock
25715 #: ../tools/virt-resize.pl:42
25716 msgid "virt-resize - Resize a virtual machine disk"
25717 msgstr ""
25718
25719 # type: verbatim
25720 #: ../tools/virt-resize.pl:46
25721 #, no-wrap
25722 msgid ""
25723 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25724 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25725 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25726 "\n"
25727 msgstr ""
25728
25729 # type: textblock
25730 #: ../tools/virt-resize.pl:52
25731 msgid ""
25732 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25733 "larger or smaller overall, and resizing or deleting any partitions contained "
25734 "within."
25735 msgstr ""
25736
25737 # type: textblock
25738 #: ../tools/virt-resize.pl:56
25739 msgid ""
25740 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25741 "not> be used on live virtual machines - for consistent results, shut the "
25742 "virtual machine down before resizing it."
25743 msgstr ""
25744
25745 # type: textblock
25746 #: ../tools/virt-resize.pl:60
25747 msgid ""
25748 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
25749 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
25750 "read those manual pages first."
25751 msgstr ""
25752
25753 # type: textblock
25754 #: ../tools/virt-resize.pl:68
25755 msgid ""
25756 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25757 "fill the extra 5GB of space."
25758 msgstr ""
25759
25760 # type: verbatim
25761 #: ../tools/virt-resize.pl:71
25762 #, no-wrap
25763 msgid ""
25764 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
25765 " virt-list-partitions -lht olddisk\n"
25766 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25767 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25768 "\n"
25769 msgstr ""
25770
25771 # type: textblock
25772 #: ../tools/virt-resize.pl:76
25773 msgid ""
25774 "As above, but make the /boot partition 200MB bigger, while giving the "
25775 "remaining space to /dev/sda2:"
25776 msgstr ""
25777
25778 # type: verbatim
25779 #: ../tools/virt-resize.pl:79
25780 #, no-wrap
25781 msgid ""
25782 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25783 "\n"
25784 msgstr ""
25785
25786 # type: textblock
25787 #: ../tools/virt-resize.pl:81
25788 msgid "As above, but the output format will be uncompressed qcow2:"
25789 msgstr ""
25790
25791 # type: verbatim
25792 #: ../tools/virt-resize.pl:83
25793 #, no-wrap
25794 msgid ""
25795 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25796 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25797 "\n"
25798 msgstr ""
25799
25800 # type: =head1
25801 #: ../tools/virt-resize.pl:86
25802 msgid "DETAILED USAGE"
25803 msgstr ""
25804
25805 # type: =head2
25806 #: ../tools/virt-resize.pl:88
25807 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25808 msgstr ""
25809
25810 # type: =item
25811 #: ../tools/virt-resize.pl:92
25812 msgid "1. Shut down the virtual machine"
25813 msgstr ""
25814
25815 # type: =item
25816 #: ../tools/virt-resize.pl:94
25817 msgid "2. Locate input disk image"
25818 msgstr ""
25819
25820 # type: textblock
25821 #: ../tools/virt-resize.pl:96
25822 msgid ""
25823 "Locate the input disk image (ie. the file or device on the host containing "
25824 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25825 "dumpxml> like this to find the disk image name:"
25826 msgstr ""
25827
25828 # type: verbatim
25829 #: ../tools/virt-resize.pl:100
25830 #, no-wrap
25831 msgid ""
25832 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25833 " Found 1 nodes:\n"
25834 " -- NODE --\n"
25835 " <source dev=\"/dev/vg/lv_guest\" />\n"
25836 "\n"
25837 msgstr ""
25838
25839 # type: =item
25840 #: ../tools/virt-resize.pl:105
25841 msgid "3. Look at current sizing"
25842 msgstr ""
25843
25844 # type: textblock
25845 #: ../tools/virt-resize.pl:107
25846 msgid ""
25847 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25848 msgstr ""
25849
25850 # type: verbatim
25851 #: ../tools/virt-resize.pl:110
25852 #, no-wrap
25853 msgid ""
25854 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25855 " /dev/sda1 ext3 101.9M\n"
25856 " /dev/sda2 pv 7.9G\n"
25857 " /dev/sda device 8.0G\n"
25858 "\n"
25859 msgstr ""
25860
25861 # type: textblock
25862 #: ../tools/virt-resize.pl:115
25863 msgid ""
25864 "(This example is a virtual machine with an 8 GB disk which we would like to "
25865 "expand up to 10 GB)."
25866 msgstr ""
25867
25868 # type: =item
25869 #: ../tools/virt-resize.pl:118
25870 msgid "4. Create output disk"
25871 msgstr ""
25872
25873 # type: textblock
25874 #: ../tools/virt-resize.pl:120
25875 msgid ""
25876 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25877 "to store the resized output disk."
25878 msgstr ""
25879
25880 # type: textblock
25881 #: ../tools/virt-resize.pl:123
25882 msgid ""
25883 "To store the resized disk image in a file, create a file of a suitable size:"
25884 msgstr ""
25885
25886 # type: verbatim
25887 #: ../tools/virt-resize.pl:126
25888 #, no-wrap
25889 msgid ""
25890 " # rm -f outdisk\n"
25891 " # truncate -s 10G outdisk\n"
25892 "\n"
25893 msgstr ""
25894
25895 # type: textblock
25896 #: ../tools/virt-resize.pl:129
25897 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25898 msgstr ""
25899
25900 # type: verbatim
25901 #: ../tools/virt-resize.pl:131
25902 #, no-wrap
25903 msgid ""
25904 " # lvcreate -L 10G -n lv_name vg_name\n"
25905 "\n"
25906 msgstr ""
25907
25908 # type: textblock
25909 #: ../tools/virt-resize.pl:133
25910 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25911 msgstr ""
25912
25913 # type: verbatim
25914 #: ../tools/virt-resize.pl:135
25915 #, no-wrap
25916 msgid ""
25917 " # virsh pool-list\n"
25918 " # virsh vol-create-as poolname newvol 10G\n"
25919 "\n"
25920 msgstr ""
25921
25922 # type: =item
25923 #: ../tools/virt-resize.pl:138
25924 msgid "5. Resize"
25925 msgstr ""
25926
25927 # type: textblock
25928 #: ../tools/virt-resize.pl:140
25929 msgid ""
25930 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25931 "file) and the output disk.  The output disk is the one created in the "
25932 "previous step."
25933 msgstr ""
25934
25935 # type: verbatim
25936 #: ../tools/virt-resize.pl:144
25937 #, no-wrap
25938 msgid ""
25939 " # virt-resize indisk outdisk\n"
25940 "\n"
25941 msgstr ""
25942
25943 # type: textblock
25944 #: ../tools/virt-resize.pl:146
25945 msgid ""
25946 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25947 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25948 "larger, then an extra, empty partition is created at the end of the disk "
25949 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25950 "error."
25951 msgstr ""
25952
25953 # type: textblock
25954 #: ../tools/virt-resize.pl:152
25955 msgid ""
25956 "More realistically you'd want to expand existing partitions in the disk "
25957 "image by passing extra options (for the full list see the L</OPTIONS> "
25958 "section below)."
25959 msgstr ""
25960
25961 # type: textblock
25962 #: ../tools/virt-resize.pl:156
25963 msgid ""
25964 "L</--expand> is the most useful option.  It expands the named partition "
25965 "within the disk to fill any extra space:"
25966 msgstr ""
25967
25968 # type: verbatim
25969 #: ../tools/virt-resize.pl:159
25970 #, no-wrap
25971 msgid ""
25972 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25973 "\n"
25974 msgstr ""
25975
25976 # type: textblock
25977 #: ../tools/virt-resize.pl:161
25978 msgid ""
25979 "(In this case, an extra partition is I<not> created at the end of the disk, "
25980 "because there will be no unused space)."
25981 msgstr ""
25982
25983 # type: textblock
25984 #: ../tools/virt-resize.pl:164
25985 msgid ""
25986 "L</--resize> is the other commonly used option.  The following would "
25987 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25988 "rest of the available space:"
25989 msgstr ""
25990
25991 # type: verbatim
25992 #: ../tools/virt-resize.pl:168
25993 #, no-wrap
25994 msgid ""
25995 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25996 "     indisk outdisk\n"
25997 "\n"
25998 msgstr ""
25999
26000 # type: textblock
26001 #: ../tools/virt-resize.pl:171
26002 msgid ""
26003 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26004 "if virt-resize knows how, it will resize the contents, the equivalent of "
26005 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
26006 ">.  However virt-resize does not know how to resize some filesystems, so you "
26007 "would have to online resize them after booting the guest.  And virt-resize "
26008 "also does not resize anything inside an LVM PV, it just resizes the PV "
26009 "itself and leaves the user to resize any LVs inside that PV as desired."
26010 msgstr ""
26011
26012 # type: textblock
26013 #: ../tools/virt-resize.pl:180
26014 msgid "Other options are covered below."
26015 msgstr ""
26016
26017 # type: =item
26018 #: ../tools/virt-resize.pl:182
26019 msgid "6. Test"
26020 msgstr ""
26021
26022 # type: textblock
26023 #: ../tools/virt-resize.pl:184
26024 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26025 msgstr ""
26026
26027 # type: textblock
26028 #: ../tools/virt-resize.pl:186
26029 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26030 msgstr ""
26031
26032 # type: verbatim
26033 #: ../tools/virt-resize.pl:188
26034 #, no-wrap
26035 msgid ""
26036 " # virsh edit guestname\n"
26037 "\n"
26038 msgstr ""
26039
26040 # type: textblock
26041 #: ../tools/virt-resize.pl:190
26042 msgid ""
26043 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
26044 "html#elementsDisks>"
26045 msgstr ""
26046
26047 # type: textblock
26048 #: ../tools/virt-resize.pl:193
26049 msgid "Then start up the domain with the new, resized disk:"
26050 msgstr ""
26051
26052 # type: verbatim
26053 #: ../tools/virt-resize.pl:195
26054 #, no-wrap
26055 msgid ""
26056 " # virsh start guestname\n"
26057 "\n"
26058 msgstr ""
26059
26060 # type: textblock
26061 #: ../tools/virt-resize.pl:197
26062 msgid ""
26063 "and check that it still works.  See also the L</NOTES> section below for "
26064 "additional information."
26065 msgstr ""
26066
26067 # type: =item
26068 #: ../tools/virt-resize.pl:200
26069 msgid "7. Resize LVs etc inside the guest"
26070 msgstr ""
26071
26072 # type: textblock
26073 #: ../tools/virt-resize.pl:202
26074 msgid "(This can also be done offline using L<guestfish(1)>)"
26075 msgstr ""
26076
26077 # type: textblock
26078 #: ../tools/virt-resize.pl:204
26079 msgid ""
26080 "Once the guest has booted you should see the new space available, at least "
26081 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26082 "may need to resize LVs inside PVs, and also resize filesystem types that "
26083 "virt-resize does not know how to expand."
26084 msgstr ""
26085
26086 # type: =head2
26087 #: ../tools/virt-resize.pl:211
26088 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26089 msgstr ""
26090
26091 # type: textblock
26092 #: ../tools/virt-resize.pl:213
26093 msgid ""
26094 "Shrinking is somewhat more complex than expanding, and only an overview is "
26095 "given here."
26096 msgstr ""
26097
26098 # type: textblock
26099 #: ../tools/virt-resize.pl:216
26100 msgid ""
26101 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26102 "filesystems).  The user has to shrink content before passing the disk image "
26103 "to virt-resize, and virt-resize will check that the content has been shrunk "
26104 "properly."
26105 msgstr ""
26106
26107 # type: textblock
26108 #: ../tools/virt-resize.pl:221
26109 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26110 msgstr ""
26111
26112 # type: textblock
26113 #: ../tools/virt-resize.pl:223
26114 msgid ""
26115 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26116 "steps 3 and 4 above to allocate a new disk image."
26117 msgstr ""
26118
26119 # type: textblock
26120 #: ../tools/virt-resize.pl:226
26121 msgid ""
26122 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26123 msgstr ""
26124
26125 # type: =head2
26126 #: ../tools/virt-resize.pl:229
26127 msgid "IGNORING OR DELETING PARTITIONS"
26128 msgstr ""
26129
26130 # type: textblock
26131 #: ../tools/virt-resize.pl:231
26132 msgid ""
26133 "virt-resize also gives a convenient way to ignore or delete partitions when "
26134 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26135 "up the copy where you don't care about the existing contents of a "
26136 "partition.  Deleting a partition removes it completely, but note that it "
26137 "also renumbers any partitions after the one which is deleted, which can "
26138 "leave some guests unbootable."
26139 msgstr ""
26140
26141 # type: =head2
26142 #: ../tools/virt-resize.pl:238
26143 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26144 msgstr ""
26145
26146 # type: textblock
26147 #: ../tools/virt-resize.pl:240
26148 msgid ""
26149 "If the input disk is in qcow2 format, then you may prefer that the output is "
26150 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26151 "the fly.  The output format is simply determined by the format of the empty "
26152 "output container that you provide.  Thus to create qcow2 output, use:"
26153 msgstr ""
26154
26155 # type: verbatim
26156 #: ../tools/virt-resize.pl:246
26157 #, no-wrap
26158 msgid ""
26159 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26160 "\n"
26161 msgstr ""
26162
26163 # type: textblock
26164 #: ../tools/virt-resize.pl:248
26165 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26166 msgstr ""
26167
26168 # type: textblock
26169 #: ../tools/virt-resize.pl:250
26170 msgid "Similarly, to get non-sparse raw output use:"
26171 msgstr ""
26172
26173 # type: verbatim
26174 #: ../tools/virt-resize.pl:252
26175 #, no-wrap
26176 msgid ""
26177 " fallocate -l size outdisk\n"
26178 "\n"
26179 msgstr ""
26180
26181 # type: textblock
26182 #: ../tools/virt-resize.pl:254
26183 msgid ""
26184 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
26185 "dev/zero of=outdisk bs=1M count=..>)"
26186 msgstr ""
26187
26188 # type: textblock
26189 #: ../tools/virt-resize.pl:267
26190 msgid "Display help."
26191 msgstr ""
26192
26193 # type: =item
26194 #: ../tools/virt-resize.pl:281
26195 msgid "B<--resize part=size>"
26196 msgstr ""
26197
26198 # type: textblock
26199 #: ../tools/virt-resize.pl:283
26200 msgid ""
26201 "Resize the named partition (expanding or shrinking it) so that it has the "
26202 "given size."
26203 msgstr ""
26204
26205 # type: textblock
26206 #: ../tools/virt-resize.pl:286
26207 msgid ""
26208 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26209 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26210 "Exabytes; or as a percentage of the current size; or as a relative number or "
26211 "percentage.  For example:"
26212 msgstr ""
26213
26214 # type: verbatim
26215 #: ../tools/virt-resize.pl:291
26216 #, no-wrap
26217 msgid ""
26218 " --resize /dev/sda2=10G\n"
26219 "\n"
26220 msgstr ""
26221
26222 # type: verbatim
26223 #: ../tools/virt-resize.pl:293
26224 #, no-wrap
26225 msgid ""
26226 " --resize /dev/sda4=90%\n"
26227 "\n"
26228 msgstr ""
26229
26230 # type: verbatim
26231 #: ../tools/virt-resize.pl:295
26232 #, no-wrap
26233 msgid ""
26234 " --resize /dev/sda2=+1G\n"
26235 "\n"
26236 msgstr ""
26237
26238 # type: verbatim
26239 #: ../tools/virt-resize.pl:297
26240 #, no-wrap
26241 msgid ""
26242 " --resize /dev/sda2=-200M\n"
26243 "\n"
26244 msgstr ""
26245
26246 # type: verbatim
26247 #: ../tools/virt-resize.pl:299
26248 #, no-wrap
26249 msgid ""
26250 " --resize /dev/sda1=+128K\n"
26251 "\n"
26252 msgstr ""
26253
26254 # type: verbatim
26255 #: ../tools/virt-resize.pl:301
26256 #, no-wrap
26257 msgid ""
26258 " --resize /dev/sda1=+10%\n"
26259 "\n"
26260 msgstr ""
26261
26262 # type: verbatim
26263 #: ../tools/virt-resize.pl:303
26264 #, no-wrap
26265 msgid ""
26266 " --resize /dev/sda1=-10%\n"
26267 "\n"
26268 msgstr ""
26269
26270 # type: textblock
26271 #: ../tools/virt-resize.pl:305
26272 msgid ""
26273 "You can increase the size of any partition.  Virt-resize will expand the "
26274 "direct content of the partition if it knows how (see C<--expand> below)."
26275 msgstr ""
26276
26277 # type: textblock
26278 #: ../tools/virt-resize.pl:309
26279 msgid ""
26280 "You can only I<decrease> the size of partitions that contain filesystems or "
26281 "PVs which have already been shrunk.  Virt-resize will check this has been "
26282 "done before proceeding, or else will print an error (see also C<--resize-"
26283 "force>)."
26284 msgstr ""
26285
26286 # type: textblock
26287 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
26288 #: ../tools/virt-resize.pl:423
26289 msgid "You can give this option multiple times."
26290 msgstr ""
26291
26292 # type: =item
26293 #: ../tools/virt-resize.pl:320
26294 msgid "B<--resize-force part=size>"
26295 msgstr ""
26296
26297 # type: textblock
26298 #: ../tools/virt-resize.pl:322
26299 msgid ""
26300 "This is the same as C<--resize> except that it will let you decrease the "
26301 "size of any partition.  Generally this means you will lose any data which "
26302 "was at the end of the partition you shrink, but you may not care about that "
26303 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26304 "as a swap partition)."
26305 msgstr ""
26306
26307 # type: textblock
26308 #: ../tools/virt-resize.pl:328
26309 msgid "See also the C<--ignore> option."
26310 msgstr ""
26311
26312 # type: =item
26313 #: ../tools/virt-resize.pl:334
26314 msgid "B<--expand part>"
26315 msgstr ""
26316
26317 # type: textblock
26318 #: ../tools/virt-resize.pl:336
26319 msgid ""
26320 "Expand the named partition so it uses up all extra space (space left over "
26321 "after any other resize changes that you request have been done)."
26322 msgstr ""
26323
26324 # type: textblock
26325 #: ../tools/virt-resize.pl:339
26326 msgid ""
26327 "If virt-resize knows how, it will expand the direct content of the "
26328 "partition.  For example, if the partition is an LVM PV, it will expand the "
26329 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26330 "content it doesn't know about alone."
26331 msgstr ""
26332
26333 # type: textblock
26334 #: ../tools/virt-resize.pl:344
26335 msgid "Currently virt-resize can resize:"
26336 msgstr ""
26337
26338 # type: textblock
26339 #: ../tools/virt-resize.pl:350
26340 msgid ""
26341 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26342 "partition."
26343 msgstr ""
26344
26345 # type: textblock
26346 #: ../tools/virt-resize.pl:355
26347 msgid ""
26348 "NTFS filesystems contained directly in a partition, if libguestfs was "
26349 "compiled with support for NTFS."
26350 msgstr ""
26351
26352 # type: textblock
26353 #: ../tools/virt-resize.pl:358
26354 msgid ""
26355 "The filesystem must have been shut down consistently last time it was used.  "
26356 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26357 "consistency check, so at the first boot after resizing Windows will check "
26358 "the disk."
26359 msgstr ""
26360
26361 # type: textblock
26362 #: ../tools/virt-resize.pl:365
26363 msgid ""
26364 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26365 "inside the PV.  The user will have to resize LVs as desired."
26366 msgstr ""
26367
26368 # type: textblock
26369 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26370 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26371 msgstr ""
26372
26373 # type: =item
26374 #: ../tools/virt-resize.pl:377
26375 msgid "B<--shrink part>"
26376 msgstr ""
26377
26378 # type: textblock
26379 #: ../tools/virt-resize.pl:379
26380 msgid ""
26381 "Shrink the named partition until the overall disk image fits in the "
26382 "destination.  The named partition B<must> contain a filesystem or PV which "
26383 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26384 "online tools).  Virt-resize will check this and give an error if it has not "
26385 "been done."
26386 msgstr ""
26387
26388 # type: textblock
26389 #: ../tools/virt-resize.pl:385
26390 msgid ""
26391 "The amount by which the overall disk must be shrunk (after carrying out all "
26392 "other operations requested by the user) is called the \"deficit\".  For "
26393 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26394 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26395 "would give an error unless the user specified a partition to shrink and that "
26396 "partition had more than a gigabyte of free space."
26397 msgstr ""
26398
26399 # type: =item
26400 #: ../tools/virt-resize.pl:399
26401 msgid "B<--ignore part>"
26402 msgstr ""
26403
26404 # type: textblock
26405 #: ../tools/virt-resize.pl:401
26406 msgid ""
26407 "Ignore the named partition.  Effectively this means the partition is "
26408 "allocated on the destination disk, but the content is not copied across from "
26409 "the source disk.  The content of the partition will be blank (all zero "
26410 "bytes)."
26411 msgstr ""
26412
26413 # type: =item
26414 #: ../tools/virt-resize.pl:412
26415 msgid "B<--delete part>"
26416 msgstr ""
26417
26418 # type: textblock
26419 #: ../tools/virt-resize.pl:414
26420 msgid ""
26421 "Delete the named partition.  It would be more accurate to describe this as "
26422 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26423 "the original disk image is left intact."
26424 msgstr ""
26425
26426 # type: textblock
26427 #: ../tools/virt-resize.pl:418
26428 msgid ""
26429 "Note that when you delete a partition, then anything contained in the "
26430 "partition is also deleted.  Furthermore, this causes any partitions that "
26431 "come after to be I<renumbered>, which can easily make your guest unbootable."
26432 msgstr ""
26433
26434 # type: =item
26435 #: ../tools/virt-resize.pl:429
26436 msgid "B<--LV-expand logvol>"
26437 msgstr ""
26438
26439 # type: textblock
26440 #: ../tools/virt-resize.pl:431
26441 msgid ""
26442 "This takes the logical volume and, as a final step, expands it to fill all "
26443 "the space available in its volume group.  A typical usage, assuming a Linux "
26444 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
26445 "lv_root> would be:"
26446 msgstr ""
26447
26448 # type: verbatim
26449 #: ../tools/virt-resize.pl:436
26450 #, no-wrap
26451 msgid ""
26452 " virt-resize indisk outdisk \\\n"
26453 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26454 "\n"
26455 msgstr ""
26456
26457 # type: textblock
26458 #: ../tools/virt-resize.pl:439
26459 msgid ""
26460 "This would first expand the partition (and PV), and then expand the root "
26461 "device to fill the extra space in the PV."
26462 msgstr ""
26463
26464 # type: textblock
26465 #: ../tools/virt-resize.pl:442
26466 msgid ""
26467 "The contents of the LV are also resized if virt-resize knows how to do "
26468 "that.  You can stop virt-resize from trying to expand the content by using "
26469 "the option C<--no-expand-content>."
26470 msgstr ""
26471
26472 # type: textblock
26473 #: ../tools/virt-resize.pl:446
26474 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26475 msgstr ""
26476
26477 # type: textblock
26478 #: ../tools/virt-resize.pl:449
26479 msgid ""
26480 "You can give this option multiple times, I<but> it doesn't make sense to do "
26481 "this unless the logical volumes you specify are all in different volume "
26482 "groups."
26483 msgstr ""
26484
26485 # type: =item
26486 #: ../tools/virt-resize.pl:457
26487 msgid "B<--no-copy-boot-loader>"
26488 msgstr ""
26489
26490 # type: textblock
26491 #: ../tools/virt-resize.pl:459
26492 msgid ""
26493 "By default, virt-resize copies over some sectors at the start of the disk "
26494 "(up to the beginning of the first partition).  Commonly these sectors "
26495 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26496 "in order for the guest to boot correctly."
26497 msgstr ""
26498
26499 # type: textblock
26500 #: ../tools/virt-resize.pl:464
26501 msgid ""
26502 "If you specify this flag, then this initial copy is not done.  You may need "
26503 "to reinstall the boot loader in this case."
26504 msgstr ""
26505
26506 # type: =item
26507 #: ../tools/virt-resize.pl:472
26508 msgid "B<--no-extra-partition>"
26509 msgstr ""
26510
26511 # type: textblock
26512 #: ../tools/virt-resize.pl:474
26513 msgid ""
26514 "By default, virt-resize creates an extra partition if there is any extra, "
26515 "unused space after all resizing has happened.  Use this option to prevent "
26516 "the extra partition from being created.  If you do this then the extra space "
26517 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26518 "tool in the guest."
26519 msgstr ""
26520
26521 # type: textblock
26522 #: ../tools/virt-resize.pl:480
26523 msgid ""
26524 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26525 "will be created."
26526 msgstr ""
26527
26528 # type: =item
26529 #: ../tools/virt-resize.pl:487
26530 msgid "B<--no-expand-content>"
26531 msgstr ""
26532
26533 # type: textblock
26534 #: ../tools/virt-resize.pl:489
26535 msgid ""
26536 "By default, virt-resize will try to expand the direct contents of "
26537 "partitions, if it knows how (see C<--expand> option above)."
26538 msgstr ""
26539
26540 # type: textblock
26541 #: ../tools/virt-resize.pl:492
26542 msgid ""
26543 "If you give the C<--no-expand-content> option then virt-resize will not "
26544 "attempt this."
26545 msgstr ""
26546
26547 # type: =item
26548 #: ../tools/virt-resize.pl:499
26549 msgid "B<-d> | B<--debug>"
26550 msgstr ""
26551
26552 # type: =item
26553 #: ../tools/virt-resize.pl:507
26554 msgid "B<-n> | B<--dryrun>"
26555 msgstr ""
26556
26557 # type: textblock
26558 #: ../tools/virt-resize.pl:509
26559 msgid "Print a summary of what would be done, but don't do anything."
26560 msgstr ""
26561
26562 # type: =item
26563 #: ../tools/virt-resize.pl:515
26564 msgid "B<-q> | B<--quiet>"
26565 msgstr ""
26566
26567 # type: textblock
26568 #: ../tools/virt-resize.pl:517
26569 msgid "Don't print the summary."
26570 msgstr ""
26571
26572 # type: textblock
26573 #: ../tools/virt-resize.pl:525
26574 msgid ""
26575 "Specify the format of the input disk image.  If this flag is not given then "
26576 "it is auto-detected from the image itself."
26577 msgstr ""
26578
26579 # type: textblock
26580 #: ../tools/virt-resize.pl:531
26581 msgid ""
26582 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26583 "AND NON-SPARSE RAW FORMATS>."
26584 msgstr ""
26585
26586 # type: =item
26587 #: ../tools/virt-resize.pl:538
26588 msgid "B<--output-format> raw"
26589 msgstr ""
26590
26591 # type: textblock
26592 #: ../tools/virt-resize.pl:540
26593 msgid ""
26594 "Specify the format of the output disk image.  If this flag is not given then "
26595 "it is auto-detected from the image itself."
26596 msgstr ""
26597
26598 # type: textblock
26599 #: ../tools/virt-resize.pl:546
26600 msgid ""
26601 "Note that you still need to create the output disk with the right format.  "
26602 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
26603 msgstr ""
26604
26605 # type: =head1
26606 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
26607 msgid "NOTES"
26608 msgstr ""
26609
26610 # type: =head2
26611 #: ../tools/virt-resize.pl:1424
26612 msgid "\"Partition 1 does not end on cylinder boundary.\""
26613 msgstr ""
26614
26615 # type: textblock
26616 #: ../tools/virt-resize.pl:1426
26617 msgid ""
26618 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
26619 "means the partitions will not be aligned to the ancient CHS geometry.  "
26620 "However CHS geometry is meaningless for disks manufactured since the early "
26621 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
26622 "cylinders is not required by any modern operating system."
26623 msgstr ""
26624
26625 # type: =head2
26626 #: ../tools/virt-resize.pl:1433
26627 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26628 msgstr ""
26629
26630 # type: textblock
26631 #: ../tools/virt-resize.pl:1435
26632 msgid ""
26633 "In Windows Vista and later versions, Microsoft switched to using a separate "
26634 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26635 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26636 "the boot partition.  Doing so seems to break the guest completely.  However "
26637 "expanding the second partition (ie. C: drive) should work."
26638 msgstr ""
26639
26640 # type: textblock
26641 #: ../tools/virt-resize.pl:1442
26642 msgid ""
26643 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26644 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26645 "it find errors) is nothing to worry about."
26646 msgstr ""
26647
26648 # type: =head2
26649 #: ../tools/virt-resize.pl:1446
26650 msgid "GUEST BOOT STUCK AT \"GRUB\""
26651 msgstr ""
26652
26653 # type: textblock
26654 #: ../tools/virt-resize.pl:1448
26655 msgid ""
26656 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26657 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26658 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26659 "although we think is to do with partition alignment."
26660 msgstr ""
26661
26662 # type: verbatim
26663 #: ../tools/virt-resize.pl:1453
26664 #, no-wrap
26665 msgid ""
26666 " guestfish -i -a newdisk\n"
26667 " ><fs> cat /boot/grub/device.map\n"
26668 " # check the contents of this file are sensible or\n"
26669 " # edit the file if necessary\n"
26670 " ><fs> grub-install / /dev/vda\n"
26671 " ><fs> exit\n"
26672 "\n"
26673 msgstr ""
26674
26675 # type: textblock
26676 #: ../tools/virt-resize.pl:1460
26677 msgid ""
26678 "For more flexible guest reconfiguration, including if you need to specify "
26679 "other parameters to grub-install, use L<virt-rescue(1)>."
26680 msgstr ""
26681
26682 # type: =head1
26683 #: ../tools/virt-resize.pl:1463
26684 msgid "ALTERNATIVE TOOLS"
26685 msgstr ""
26686
26687 # type: textblock
26688 #: ../tools/virt-resize.pl:1465
26689 msgid ""
26690 "There are several proprietary tools for resizing partitions.  We won't "
26691 "mention any here."
26692 msgstr ""
26693
26694 # type: textblock
26695 #: ../tools/virt-resize.pl:1468
26696 msgid ""
26697 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26698 "operations on disk images.  They can resize and move partitions, but I don't "
26699 "think they can do anything with the contents, and they certainly don't "
26700 "understand LVM."
26701 msgstr ""
26702
26703 # type: textblock
26704 #: ../tools/virt-resize.pl:1473
26705 msgid ""
26706 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26707 "but at a much lower level.  You will probably end up hand-calculating sector "
26708 "offsets, which is something that virt-resize was designed to avoid.  If you "
26709 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26710 "C<--debug> flag."
26711 msgstr ""
26712
26713 # type: textblock
26714 #: ../tools/virt-resize.pl:1488
26715 msgid ""
26716 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
26717 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
26718 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
26719 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
26720 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26721 msgstr ""
26722
26723 # type: textblock
26724 #: ../tools/virt-list-filesystems.pl:32
26725 msgid ""
26726 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
26727 msgstr ""
26728
26729 # type: verbatim
26730 #: ../tools/virt-list-filesystems.pl:36
26731 #, no-wrap
26732 msgid ""
26733 " virt-list-filesystems [--options] domname\n"
26734 "\n"
26735 msgstr ""
26736
26737 # type: verbatim
26738 #: ../tools/virt-list-filesystems.pl:38
26739 #, no-wrap
26740 msgid ""
26741 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
26742 "\n"
26743 msgstr ""
26744
26745 # type: textblock
26746 #: ../tools/virt-list-filesystems.pl:42
26747 msgid ""
26748 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
26749 "are contained in a virtual machine or disk image."
26750 msgstr ""
26751
26752 # type: textblock
26753 #: ../tools/virt-list-filesystems.pl:46
26754 msgid ""
26755 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
26756 "functionality.  For more complex cases you should look at the L<guestfish(1)"
26757 "> tool."
26758 msgstr ""
26759
26760 # type: textblock
26761 #: ../tools/virt-list-filesystems.pl:105
26762 msgid ""
26763 "With this option, C<virt-list-filesystems> displays the type of each "
26764 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
26765 msgstr ""
26766
26767 # type: =item
26768 #: ../tools/virt-list-filesystems.pl:112
26769 msgid "B<-a> | B<--all>"
26770 msgstr ""
26771
26772 # type: textblock
26773 #: ../tools/virt-list-filesystems.pl:114
26774 msgid ""
26775 "Normally we only show mountable filesystems.  If this option is given then "
26776 "swap devices are shown too."
26777 msgstr ""
26778
26779 # type: textblock
26780 #: ../tools/virt-list-filesystems.pl:188
26781 msgid ""
26782 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
26783 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
26784 ">, L<http://libguestfs.org/>."
26785 msgstr ""
26786
26787 # type: textblock
26788 #: ../tools/virt-cat.pl:33
26789 msgid "virt-cat - Display a file in a virtual machine"
26790 msgstr ""
26791
26792 # type: verbatim
26793 #: ../tools/virt-cat.pl:37
26794 #, no-wrap
26795 msgid ""
26796 " virt-cat [--options] domname file\n"
26797 "\n"
26798 msgstr ""
26799
26800 # type: verbatim
26801 #: ../tools/virt-cat.pl:39
26802 #, no-wrap
26803 msgid ""
26804 " virt-cat [--options] disk.img [disk.img ...] file\n"
26805 "\n"
26806 msgstr ""
26807
26808 # type: textblock
26809 #: ../tools/virt-cat.pl:43
26810 msgid ""
26811 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26812 "C<file> exists in the named virtual machine (or disk image)."
26813 msgstr ""
26814
26815 # type: textblock
26816 #: ../tools/virt-cat.pl:46
26817 msgid ""
26818 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26819 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26820 "tool."
26821 msgstr ""
26822
26823 # type: textblock
26824 #: ../tools/virt-cat.pl:52
26825 msgid ""
26826 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26827 msgstr ""
26828
26829 # type: verbatim
26830 #: ../tools/virt-cat.pl:55
26831 #, no-wrap
26832 msgid ""
26833 " virt-cat mydomain /etc/fstab\n"
26834 "\n"
26835 msgstr ""
26836
26837 # type: textblock
26838 #: ../tools/virt-cat.pl:57
26839 msgid "List syslog messages from a VM:"
26840 msgstr ""
26841
26842 # type: verbatim
26843 #: ../tools/virt-cat.pl:59
26844 #, no-wrap
26845 msgid ""
26846 " virt-cat mydomain /var/log/messages | tail\n"
26847 "\n"
26848 msgstr ""
26849
26850 # type: textblock
26851 #: ../tools/virt-cat.pl:61
26852 msgid "Find out what DHCP IP address a VM acquired:"
26853 msgstr ""
26854
26855 # type: verbatim
26856 #: ../tools/virt-cat.pl:63
26857 #, no-wrap
26858 msgid ""
26859 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26860 "\n"
26861 msgstr ""
26862
26863 # type: textblock
26864 #: ../tools/virt-cat.pl:65
26865 msgid "Find out what packages were recently installed:"
26866 msgstr ""
26867
26868 # type: verbatim
26869 #: ../tools/virt-cat.pl:67
26870 #, no-wrap
26871 msgid ""
26872 " virt-cat mydomain /var/log/yum.log | tail\n"
26873 "\n"
26874 msgstr ""
26875
26876 # type: textblock
26877 #: ../tools/virt-cat.pl:69
26878 msgid "Find out who is logged on inside a virtual machine:"
26879 msgstr ""
26880
26881 # type: verbatim
26882 #: ../tools/virt-cat.pl:71
26883 #, no-wrap
26884 msgid ""
26885 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26886 " who /tmp/utmp\n"
26887 "\n"
26888 msgstr ""
26889
26890 # type: textblock
26891 #: ../tools/virt-cat.pl:74
26892 msgid "or who was logged on:"
26893 msgstr ""
26894
26895 # type: verbatim
26896 #: ../tools/virt-cat.pl:76
26897 #, no-wrap
26898 msgid ""
26899 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26900 " last -f /tmp/wtmp\n"
26901 "\n"
26902 msgstr ""
26903
26904 # type: textblock
26905 #: ../tools/virt-cat.pl:187
26906 msgid ""
26907 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26908 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26909 msgstr ""
26910
26911 # type: textblock
26912 #: ../tools/virt-tar.pl:33
26913 msgid "virt-tar - Extract or upload files to a virtual machine"
26914 msgstr ""
26915
26916 # type: verbatim
26917 #: ../tools/virt-tar.pl:37
26918 #, no-wrap
26919 msgid ""
26920 " virt-tar [--options] -x domname directory tarball\n"
26921 "\n"
26922 msgstr ""
26923
26924 # type: verbatim
26925 #: ../tools/virt-tar.pl:39
26926 #, no-wrap
26927 msgid ""
26928 " virt-tar [--options] -u domname tarball directory\n"
26929 "\n"
26930 msgstr ""
26931
26932 # type: verbatim
26933 #: ../tools/virt-tar.pl:41
26934 #, no-wrap
26935 msgid ""
26936 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26937 "\n"
26938 msgstr ""
26939
26940 # type: verbatim
26941 #: ../tools/virt-tar.pl:43
26942 #, no-wrap
26943 msgid ""
26944 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26945 "\n"
26946 msgstr ""
26947
26948 # type: textblock
26949 #: ../tools/virt-tar.pl:47
26950 msgid "Download C</home> from the VM into a local tarball:"
26951 msgstr ""
26952
26953 # type: verbatim
26954 #: ../tools/virt-tar.pl:49
26955 #, no-wrap
26956 msgid ""
26957 " virt-tar -x domname /home home.tar\n"
26958 "\n"
26959 msgstr ""
26960
26961 # type: verbatim
26962 #: ../tools/virt-tar.pl:51
26963 #, no-wrap
26964 msgid ""
26965 " virt-tar -zx domname /home home.tar.gz\n"
26966 "\n"
26967 msgstr ""
26968
26969 # type: textblock
26970 #: ../tools/virt-tar.pl:53
26971 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
26972 msgstr ""
26973
26974 # type: verbatim
26975 #: ../tools/virt-tar.pl:55
26976 #, no-wrap
26977 msgid ""
26978 " virt-tar -u domname uploadstuff.tar /tmp\n"
26979 "\n"
26980 msgstr ""
26981
26982 # type: verbatim
26983 #: ../tools/virt-tar.pl:57
26984 #, no-wrap
26985 msgid ""
26986 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
26987 "\n"
26988 msgstr ""
26989
26990 # type: textblock
26991 #: ../tools/virt-tar.pl:61
26992 msgid ""
26993 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
26994 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
26995 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
26996 msgstr ""
26997
26998 # type: textblock
26999 #: ../tools/virt-tar.pl:66
27000 msgid ""
27001 "You can use C<-x> (extract) on live virtual machines, but you might get "
27002 "inconsistent results or errors if there is filesystem activity inside the "
27003 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27004 "work, but the only way to guarantee consistent results is if the virtual "
27005 "machine is shut down."
27006 msgstr ""
27007
27008 # type: textblock
27009 #: ../tools/virt-tar.pl:74
27010 msgid ""
27011 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27012 "parts of a guest filesystem.  There are many possibilities: making backups, "
27013 "uploading data files, snooping on guest activity, fixing or customizing "
27014 "guests, etc."
27015 msgstr ""
27016
27017 # type: textblock
27018 #: ../tools/virt-tar.pl:79
27019 msgid ""
27020 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27021 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27022 "should look at the L<guestfish(1)> tool."
27023 msgstr ""
27024
27025 # type: textblock
27026 #: ../tools/virt-tar.pl:83
27027 msgid ""
27028 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27029 "its contents (recursively) from the virtual machine into a local tarball.  "
27030 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27031 "virtual machine.  You cannot use these two options together."
27032 msgstr ""
27033
27034 # type: textblock
27035 #: ../tools/virt-tar.pl:89
27036 msgid ""
27037 "In addition, you may need to use the C<-z> (gZip) option to enable "
27038 "compression.  When uploading, you have to specify C<-z> if the upload file "
27039 "is compressed because virt-tar won't detect this on its own."
27040 msgstr ""
27041
27042 # type: textblock
27043 #: ../tools/virt-tar.pl:93
27044 msgid ""
27045 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27046 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27047 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27048 "the L<libguestfs(3)> API)."
27049 msgstr ""
27050
27051 # type: =item
27052 #: ../tools/virt-tar.pl:151
27053 msgid "B<-x> | B<--extract> | B<--download>"
27054 msgstr ""
27055
27056 # type: =item
27057 #: ../tools/virt-tar.pl:153
27058 msgid "B<-u> | B<--upload>"
27059 msgstr ""
27060
27061 # type: textblock
27062 #: ../tools/virt-tar.pl:155
27063 msgid ""
27064 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27065 "local tarball."
27066 msgstr ""
27067
27068 # type: textblock
27069 #: ../tools/virt-tar.pl:158
27070 msgid ""
27071 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27072 "Please read the L</WARNING> section above before using this option."
27073 msgstr ""
27074
27075 # type: textblock
27076 #: ../tools/virt-tar.pl:162
27077 msgid "You must specify exactly one of these options."
27078 msgstr ""
27079
27080 # type: =item
27081 #: ../tools/virt-tar.pl:168
27082 msgid "B<-z> | B<--gzip>"
27083 msgstr ""
27084
27085 # type: textblock
27086 #: ../tools/virt-tar.pl:170
27087 msgid "Specify that the input or output tarball is gzip-compressed."
27088 msgstr ""
27089
27090 # type: textblock
27091 #: ../tools/virt-tar.pl:283
27092 msgid ""
27093 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
27094 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
27095 "org/>."
27096 msgstr ""
27097
27098 # type: textblock
27099 #: ../tools/virt-rescue.pl:33
27100 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27101 msgstr ""
27102
27103 # type: verbatim
27104 #: ../tools/virt-rescue.pl:37
27105 #, no-wrap
27106 msgid ""
27107 " virt-rescue [--options] domname\n"
27108 "\n"
27109 msgstr ""
27110
27111 # type: verbatim
27112 #: ../tools/virt-rescue.pl:39
27113 #, no-wrap
27114 msgid ""
27115 " virt-rescue [--options] disk.img [disk.img ...]\n"
27116 "\n"
27117 msgstr ""
27118
27119 # type: textblock
27120 #: ../tools/virt-rescue.pl:43
27121 msgid ""
27122 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27123 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27124 "you from doing this, but doesn't catch all cases."
27125 msgstr ""
27126
27127 # type: textblock
27128 #: ../tools/virt-rescue.pl:47
27129 msgid ""
27130 "However if you use the I<--ro> (read only) option, then you can attach a "
27131 "shell to a live virtual machine.  The results might be strange or "
27132 "inconsistent at times but you won't get disk corruption."
27133 msgstr ""
27134
27135 # type: textblock
27136 #: ../tools/virt-rescue.pl:53
27137 msgid ""
27138 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27139 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27140 "recovery tools which you can use to examine or rescue a virtual machine or "
27141 "disk image."
27142 msgstr ""
27143
27144 # type: textblock
27145 #: ../tools/virt-rescue.pl:58
27146 msgid ""
27147 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27148 "on disk image(s):"
27149 msgstr ""
27150
27151 # type: verbatim
27152 #: ../tools/virt-rescue.pl:61
27153 #, no-wrap
27154 msgid ""
27155 " virt-rescue GuestName\n"
27156 "\n"
27157 msgstr ""
27158
27159 # type: verbatim
27160 #: ../tools/virt-rescue.pl:63
27161 #, no-wrap
27162 msgid ""
27163 " virt-rescue --ro /path/to/disk.img\n"
27164 "\n"
27165 msgstr ""
27166
27167 # type: verbatim
27168 #: ../tools/virt-rescue.pl:65
27169 #, no-wrap
27170 msgid ""
27171 " virt-rescue /dev/sdc\n"
27172 "\n"
27173 msgstr ""
27174
27175 # type: textblock
27176 #: ../tools/virt-rescue.pl:67
27177 msgid "For live VMs you I<must> use the --ro option."
27178 msgstr ""
27179
27180 # type: textblock
27181 #: ../tools/virt-rescue.pl:69
27182 msgid ""
27183 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27184 "in an interactive bash shell where you can use many ordinary Linux "
27185 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27186 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27187 "is an empty directory called C</sysroot> where you can mount filesystems."
27188 msgstr ""
27189
27190 # type: textblock
27191 #: ../tools/virt-rescue.pl:76
27192 msgid ""
27193 "In the example below, we list logical volumes, then choose one to mount "
27194 "under C</sysroot>:"
27195 msgstr ""
27196
27197 # type: verbatim
27198 #: ../tools/virt-rescue.pl:79
27199 #, no-wrap
27200 msgid ""
27201 " ><rescue> lvs\n"
27202 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27203 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27204 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27205 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27206 " ><rescue> ls /sysroot\n"
27207 "\n"
27208 msgstr ""
27209
27210 # type: textblock
27211 #: ../tools/virt-rescue.pl:86
27212 msgid ""
27213 "If you don't know what filesystems are available on the virtual machine then "
27214 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27215 msgstr ""
27216
27217 # type: textblock
27218 #: ../tools/virt-rescue.pl:92
27219 msgid ""
27220 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27221 "virtual machine.  For example you can use it on a blank file if you want to "
27222 "partition that file (although we would recommend using L<guestfish(1)> "
27223 "instead as it is more suitable for this purpose).  You can even use virt-"
27224 "rescue on things like SD cards."
27225 msgstr ""
27226
27227 # type: textblock
27228 #: ../tools/virt-rescue.pl:98
27229 msgid ""
27230 "This tool is just designed for quick interactive hacking on a virtual "
27231 "machine.  For more structured access to a virtual machine disk image, you "
27232 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27233 "make scripted changes to guests, use L<guestfish(1)>."
27234 msgstr ""
27235
27236 # type: =item
27237 #: ../tools/virt-rescue.pl:127
27238 msgid "B<--append kernelopts>"
27239 msgstr ""
27240
27241 # type: textblock
27242 #: ../tools/virt-rescue.pl:129
27243 msgid "Pass additional options to the rescue kernel."
27244 msgstr ""
27245
27246 # type: =item
27247 #: ../tools/virt-rescue.pl:164
27248 msgid "B<--memsize MB> | B<-m MB>"
27249 msgstr ""
27250
27251 # type: textblock
27252 #: ../tools/virt-rescue.pl:166
27253 msgid ""
27254 "Change the amount of memory allocated to the rescue system.  The default is "
27255 "set by libguestfs and is small but adequate for running system tools.  The "
27256 "occasional program might need more memory.  The parameter is specified in "
27257 "megabytes."
27258 msgstr ""
27259
27260 # type: =item
27261 #: ../tools/virt-rescue.pl:175
27262 msgid "B<--network MB>"
27263 msgstr ""
27264
27265 # type: textblock
27266 #: ../tools/virt-rescue.pl:177
27267 msgid "Enable QEMU user networking in the guest."
27268 msgstr ""
27269
27270 # type: =item
27271 #: ../tools/virt-rescue.pl:183
27272 msgid "B<--ro> | B<-r>"
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-rescue.pl:185
27277 msgid "Open the image read-only."
27278 msgstr ""
27279
27280 # type: textblock
27281 #: ../tools/virt-rescue.pl:197
27282 msgid ""
27283 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
27284 "SELINUX> before using this option."
27285 msgstr ""
27286
27287 # type: textblock
27288 #: ../tools/virt-rescue.pl:257
27289 msgid ""
27290 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
27291 "ENVIRONMENT VARIABLES> for the complete list."
27292 msgstr ""
27293
27294 # type: textblock
27295 #: ../tools/virt-rescue.pl:269
27296 msgid ""
27297 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27298 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27299 msgstr ""
27300
27301 # type: textblock
27302 #: ../tools/virt-make-fs.pl:37
27303 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27304 msgstr ""
27305
27306 # type: verbatim
27307 #: ../tools/virt-make-fs.pl:41
27308 #, no-wrap
27309 msgid ""
27310 " virt-make-fs [--options] input.tar output.img\n"
27311 "\n"
27312 msgstr ""
27313
27314 # type: verbatim
27315 #: ../tools/virt-make-fs.pl:43
27316 #, no-wrap
27317 msgid ""
27318 " virt-make-fs [--options] input.tar.gz output.img\n"
27319 "\n"
27320 msgstr ""
27321
27322 # type: verbatim
27323 #: ../tools/virt-make-fs.pl:45
27324 #, no-wrap
27325 msgid ""
27326 " virt-make-fs [--options] directory output.img\n"
27327 "\n"
27328 msgstr ""
27329
27330 # type: textblock
27331 #: ../tools/virt-make-fs.pl:49
27332 msgid ""
27333 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27334 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
27335 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
27336 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
27337 "you want to attach these filesystems to existing virtual machines (eg. to "
27338 "import large amounts of read-only data to a VM)."
27339 msgstr ""
27340
27341 # type: textblock
27342 #: ../tools/virt-make-fs.pl:57
27343 msgid "Basic usage is:"
27344 msgstr ""
27345
27346 # type: verbatim
27347 #: ../tools/virt-make-fs.pl:59
27348 #, no-wrap
27349 msgid ""
27350 " virt-make-fs input output\n"
27351 "\n"
27352 msgstr ""
27353
27354 # type: textblock
27355 #: ../tools/virt-make-fs.pl:61
27356 msgid ""
27357 "where C<input> is either a directory containing files that you want to add, "
27358 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27359 "C<output> is a disk image.  The input type is detected automatically.  The "
27360 "output disk image defaults to a raw ext2 image unless you specify extra "
27361 "flags (see L</OPTIONS> below)."
27362 msgstr ""
27363
27364 # type: =head2
27365 #: ../tools/virt-make-fs.pl:67
27366 msgid "EXTRA SPACE"
27367 msgstr ""
27368
27369 # type: textblock
27370 #: ../tools/virt-make-fs.pl:69
27371 msgid ""
27372 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27373 "the files that it contains, but might have extra space.  Depending on how "
27374 "you are going to use the output, you might think this extra space is wasted "
27375 "and want to minimize it, or you might want to leave space so that more files "
27376 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27377 "but you can use the C<--size> flag to leave space in the filesystem if you "
27378 "want it."
27379 msgstr ""
27380
27381 # type: textblock
27382 #: ../tools/virt-make-fs.pl:77
27383 msgid ""
27384 "An alternative way to leave extra space but not make the output image any "
27385 "bigger is to use an alternative disk image format (instead of the default "
27386 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27387 "image format (check your hypervisor supports this before using it).  This "
27388 "allows you to choose a large C<--size> but the extra space won't actually be "
27389 "allocated in the image until you try to store something in it."
27390 msgstr ""
27391
27392 # type: textblock
27393 #: ../tools/virt-make-fs.pl:85
27394 msgid ""
27395 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27396 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
27397 "resize to build another image from scratch."
27398 msgstr ""
27399
27400 # type: =head3
27401 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
27402 #: ../tools/virt-make-fs.pl:142
27403 msgid "EXAMPLE"
27404 msgstr ""
27405
27406 # type: verbatim
27407 #: ../tools/virt-make-fs.pl:91
27408 #, no-wrap
27409 msgid ""
27410 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27411 "\n"
27412 msgstr ""
27413
27414 # type: =head2
27415 #: ../tools/virt-make-fs.pl:93
27416 msgid "FILESYSTEM TYPE"
27417 msgstr ""
27418
27419 # type: textblock
27420 #: ../tools/virt-make-fs.pl:95
27421 msgid ""
27422 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27423 "libguestfs supports can be used (but I<not> read-only formats like "
27424 "ISO9660).  Here are some of the more common choices:"
27425 msgstr ""
27426
27427 # type: =item
27428 #: ../tools/virt-make-fs.pl:101
27429 msgid "I<ext3>"
27430 msgstr ""
27431
27432 # type: textblock
27433 #: ../tools/virt-make-fs.pl:103
27434 msgid ""
27435 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27436 "you are not going to use the filesystem in a way that requires the journal, "
27437 "then this is just wasted overhead."
27438 msgstr ""
27439
27440 # type: =item
27441 #: ../tools/virt-make-fs.pl:107
27442 msgid "I<ntfs> or I<vfat>"
27443 msgstr ""
27444
27445 # type: textblock
27446 #: ../tools/virt-make-fs.pl:109
27447 msgid "Useful if exporting data to a Windows guest."
27448 msgstr ""
27449
27450 # type: textblock
27451 #: ../tools/virt-make-fs.pl:111
27452 msgid ""
27453 "I<Note for vfat>: The tar archive or local directory must only contain files "
27454 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27455 "program running within libguestfs is unable to change the ownership of non-"
27456 "root files, since vfat itself does not support this."
27457 msgstr ""
27458
27459 # type: =item
27460 #: ../tools/virt-make-fs.pl:116
27461 msgid "I<minix>"
27462 msgstr ""
27463
27464 # type: textblock
27465 #: ../tools/virt-make-fs.pl:118
27466 msgid ""
27467 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27468 "total filesystem size."
27469 msgstr ""
27470
27471 # type: verbatim
27472 #: ../tools/virt-make-fs.pl:125
27473 #, no-wrap
27474 msgid ""
27475 " virt-make-fs --type=minix input minixfs.img\n"
27476 "\n"
27477 msgstr ""
27478
27479 # type: =head2
27480 #: ../tools/virt-make-fs.pl:127
27481 msgid "TO PARTITION OR NOT TO PARTITION"
27482 msgstr ""
27483
27484 # type: textblock
27485 #: ../tools/virt-make-fs.pl:129
27486 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27487 msgstr ""
27488
27489 # type: textblock
27490 #: ../tools/virt-make-fs.pl:131
27491 msgid ""
27492 "Adding a partition can make the disk image more compatible with certain "
27493 "virtualized operating systems which don't expect to see a filesystem "
27494 "directly located on a block device (Linux doesn't care and will happily "
27495 "handle both types)."
27496 msgstr ""
27497
27498 # type: textblock
27499 #: ../tools/virt-make-fs.pl:136
27500 msgid ""
27501 "On the other hand, if you have a partition table then the output image is no "
27502 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27503 "directly on a partitioned disk image.  (However libguestfs tools such as "
27504 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27505 msgstr ""
27506
27507 # type: textblock
27508 #: ../tools/virt-make-fs.pl:144
27509 msgid "Add an MBR partition:"
27510 msgstr ""
27511
27512 # type: verbatim
27513 #: ../tools/virt-make-fs.pl:146
27514 #, no-wrap
27515 msgid ""
27516 " virt-make-fs --partition -- input disk.img\n"
27517 "\n"
27518 msgstr ""
27519
27520 # type: textblock
27521 #: ../tools/virt-make-fs.pl:148
27522 msgid ""
27523 "If the output disk image could be terabyte-sized or larger, it's better to "
27524 "use an EFI/GPT-compatible partition table:"
27525 msgstr ""
27526
27527 # type: verbatim
27528 #: ../tools/virt-make-fs.pl:151
27529 #, no-wrap
27530 msgid ""
27531 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27532 "\n"
27533 msgstr ""
27534
27535 # type: textblock
27536 #: ../tools/virt-make-fs.pl:179
27537 msgid "Enable debugging information."
27538 msgstr ""
27539
27540 # type: =item
27541 #: ../tools/virt-make-fs.pl:185
27542 msgid "B<--size=E<lt>NE<gt>>"
27543 msgstr ""
27544
27545 # type: =item
27546 #: ../tools/virt-make-fs.pl:187
27547 msgid "B<--size=+E<lt>NE<gt>>"
27548 msgstr ""
27549
27550 # type: =item
27551 #: ../tools/virt-make-fs.pl:189
27552 msgid "B<-s E<lt>NE<gt>>"
27553 msgstr ""
27554
27555 # type: =item
27556 #: ../tools/virt-make-fs.pl:191
27557 msgid "B<-s +E<lt>NE<gt>>"
27558 msgstr ""
27559
27560 # type: textblock
27561 #: ../tools/virt-make-fs.pl:193
27562 msgid ""
27563 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27564 msgstr ""
27565
27566 # type: textblock
27567 #: ../tools/virt-make-fs.pl:196
27568 msgid ""
27569 "If this option is I<not> given, then the output image will be just large "
27570 "enough to contain all the files, with not much wasted space."
27571 msgstr ""
27572
27573 # type: textblock
27574 #: ../tools/virt-make-fs.pl:199
27575 msgid ""
27576 "To choose a fixed size output disk, specify an absolute number followed by b/"
27577 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27578 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27579 "files, else you will get an error."
27580 msgstr ""
27581
27582 # type: textblock
27583 #: ../tools/virt-make-fs.pl:204
27584 msgid ""
27585 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
27586 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27587 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27588 "the input files, and (approximately) an extra 200 MB free space."
27589 msgstr ""
27590
27591 # type: textblock
27592 #: ../tools/virt-make-fs.pl:210
27593 msgid ""
27594 "Note that virt-make-fs estimates free space, and therefore will not produce "
27595 "filesystems containing precisely the free space requested.  (It is much more "
27596 "expensive and time-consuming to produce a filesystem which has precisely the "
27597 "desired free space)."
27598 msgstr ""
27599
27600 # type: =item
27601 #: ../tools/virt-make-fs.pl:219
27602 msgid "B<--format=E<lt>fmtE<gt>>"
27603 msgstr ""
27604
27605 # type: =item
27606 #: ../tools/virt-make-fs.pl:221
27607 msgid "B<-F E<lt>fmtE<gt>>"
27608 msgstr ""
27609
27610 # type: textblock
27611 #: ../tools/virt-make-fs.pl:223
27612 msgid "Choose the output disk image format."
27613 msgstr ""
27614
27615 # type: textblock
27616 #: ../tools/virt-make-fs.pl:225
27617 msgid "The default is C<raw> (raw disk image)."
27618 msgstr ""
27619
27620 # type: textblock
27621 #: ../tools/virt-make-fs.pl:227
27622 msgid ""
27623 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27624 "that would really make sense here is C<qcow2>."
27625 msgstr ""
27626
27627 # type: =item
27628 #: ../tools/virt-make-fs.pl:234
27629 msgid "B<--type=E<lt>fsE<gt>>"
27630 msgstr ""
27631
27632 # type: =item
27633 #: ../tools/virt-make-fs.pl:236
27634 msgid "B<-t E<lt>fsE<gt>>"
27635 msgstr ""
27636
27637 # type: textblock
27638 #: ../tools/virt-make-fs.pl:238
27639 msgid "Choose the output filesystem type."
27640 msgstr ""
27641
27642 # type: textblock
27643 #: ../tools/virt-make-fs.pl:240
27644 msgid "The default is C<ext2>."
27645 msgstr ""
27646
27647 # type: textblock
27648 #: ../tools/virt-make-fs.pl:242
27649 msgid ""
27650 "Any filesystem which is supported read-write by libguestfs can be used here."
27651 msgstr ""
27652
27653 # type: =item
27654 #: ../tools/virt-make-fs.pl:249
27655 msgid "B<--partition>"
27656 msgstr ""
27657
27658 # type: =item
27659 #: ../tools/virt-make-fs.pl:251
27660 msgid "B<--partition=E<lt>parttypeE<gt>>"
27661 msgstr ""
27662
27663 # type: textblock
27664 #: ../tools/virt-make-fs.pl:253
27665 msgid ""
27666 "If specified, this flag adds an MBR partition table to the output disk image."
27667 msgstr ""
27668
27669 # type: textblock
27670 #: ../tools/virt-make-fs.pl:256
27671 msgid ""
27672 "You can change the partition table type, eg. C<--partition=gpt> for large "
27673 "disks."
27674 msgstr ""
27675
27676 # type: textblock
27677 #: ../tools/virt-make-fs.pl:259
27678 msgid ""
27679 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27680 "might consider the next parameter to be the partition type.  For example:"
27681 msgstr ""
27682
27683 # type: verbatim
27684 #: ../tools/virt-make-fs.pl:263
27685 #, no-wrap
27686 msgid ""
27687 " virt-make-fs --partition input.tar ...\n"
27688 "\n"
27689 msgstr ""
27690
27691 # type: textblock
27692 #: ../tools/virt-make-fs.pl:265
27693 msgid ""
27694 "would cause virt-make-fs to think you wanted to use a partition type of "
27695 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27696 "dash) between options and the input file argument:"
27697 msgstr ""
27698
27699 # type: verbatim
27700 #: ../tools/virt-make-fs.pl:269
27701 #, no-wrap
27702 msgid ""
27703 " virt-make-fs --partition -- input.tar ...\n"
27704 "\n"
27705 msgstr ""
27706
27707 # type: textblock
27708 #: ../tools/virt-make-fs.pl:536
27709 msgid ""
27710 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27711 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
27712 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27713 msgstr ""
27714
27715 # type: verbatim
27716 #: ../tools/virt-make-fs.pl:553
27717 #, no-wrap
27718 msgid ""
27719 " export LIBGUESTFS_DEBUG=1\n"
27720 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
27721 "\n"
27722 msgstr ""
27723
27724 # type: textblock
27725 #: ../tools/virt-make-fs.pl:556
27726 msgid ""
27727 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
27728 "redhat.com/>"
27729 msgstr ""
27730
27731 # type: textblock
27732 #: ../tools/virt-list-partitions.pl:32
27733 msgid ""
27734 "virt-list-partitions - List partitions in a virtual machine or disk image"
27735 msgstr ""
27736
27737 # type: verbatim
27738 #: ../tools/virt-list-partitions.pl:36
27739 #, no-wrap
27740 msgid ""
27741 " virt-list-partitions [--options] domname\n"
27742 "\n"
27743 msgstr ""
27744
27745 # type: verbatim
27746 #: ../tools/virt-list-partitions.pl:38
27747 #, no-wrap
27748 msgid ""
27749 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
27750 "\n"
27751 msgstr ""
27752
27753 # type: textblock
27754 #: ../tools/virt-list-partitions.pl:42
27755 msgid ""
27756 "C<virt-list-partitions> is a command line tool to list the partitions that "
27757 "are contained in a virtual machine or disk image.  It is mainly useful as a "
27758 "first step to using L<virt-resize(1)>."
27759 msgstr ""
27760
27761 # type: textblock
27762 #: ../tools/virt-list-partitions.pl:47
27763 msgid ""
27764 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
27765 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27766 "> tool."
27767 msgstr ""
27768
27769 # type: =item
27770 #: ../tools/virt-list-partitions.pl:104
27771 msgid "B<-h> | B<--human-readable>"
27772 msgstr ""
27773
27774 # type: textblock
27775 #: ../tools/virt-list-partitions.pl:106
27776 msgid "Show sizes in human-readable form (eg. \"1G\")."
27777 msgstr ""
27778
27779 # type: textblock
27780 #: ../tools/virt-list-partitions.pl:114
27781 msgid ""
27782 "With this option, C<virt-list-partitions> displays the type and size of each "
27783 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
27784 msgstr ""
27785
27786 # type: =item
27787 #: ../tools/virt-list-partitions.pl:121
27788 msgid "B<-t> | B<--total>"
27789 msgstr ""
27790
27791 # type: textblock
27792 #: ../tools/virt-list-partitions.pl:123
27793 msgid ""
27794 "Display the total size of each block device (as a separate row or rows)."
27795 msgstr ""
27796
27797 # type: textblock
27798 #: ../tools/virt-list-partitions.pl:256
27799 msgid ""
27800 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
27801 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
27802 "libguestfs.org/>."
27803 msgstr ""