Version 1.7.0.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2010-11-02 16:23+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../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:2545 ../src/guestfs-actions.pod:2557
3898 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2682
3899 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2703
3900 #: ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2726
3901 #: ../src/guestfs-actions.pod:2756 ../src/guestfs-actions.pod:2820
3902 #: ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2851
3903 #: ../src/guestfs-actions.pod:2871 ../src/guestfs-actions.pod:2891
3904 #: ../src/guestfs-actions.pod:2920 ../src/guestfs-actions.pod:2936
3905 #: ../src/guestfs-actions.pod:2952 ../src/guestfs-actions.pod:2981
3906 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3023
3907 #: ../src/guestfs-actions.pod:3036 ../src/guestfs-actions.pod:3046
3908 #: ../src/guestfs-actions.pod:3058 ../src/guestfs-actions.pod:3072
3909 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3169
3910 #: ../src/guestfs-actions.pod:3179 ../src/guestfs-actions.pod:3224
3911 #: ../src/guestfs-actions.pod:3239 ../src/guestfs-actions.pod:3254
3912 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3278
3913 #: ../src/guestfs-actions.pod:3289 ../src/guestfs-actions.pod:3303
3914 #: ../src/guestfs-actions.pod:3315 ../src/guestfs-actions.pod:3332
3915 #: ../src/guestfs-actions.pod:3378 ../src/guestfs-actions.pod:3406
3916 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3438
3917 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3461
3918 #: ../src/guestfs-actions.pod:3471 ../src/guestfs-actions.pod:3483
3919 #: ../src/guestfs-actions.pod:3495 ../src/guestfs-actions.pod:3527
3920 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3556
3921 #: ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:3581
3922 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3652
3923 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3688
3924 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:3717
3925 #: ../src/guestfs-actions.pod:3839 ../src/guestfs-actions.pod:3891
3926 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3925
3927 #: ../src/guestfs-actions.pod:3951 ../src/guestfs-actions.pod:4008
3928 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4032
3929 #: ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4298
3930 #: ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4325
3931 #: ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4345
3932 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4365
3933 #: ../src/guestfs-actions.pod:4378 ../src/guestfs-actions.pod:4396
3934 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4428
3935 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:4463
3936 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4494
3937 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4528
3938 #: ../src/guestfs-actions.pod:4542 ../src/guestfs-actions.pod:4567
3939 #: ../src/guestfs-actions.pod:4588 ../src/guestfs-actions.pod:4604
3940 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:4637
3941 #: ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4665
3942 #: ../src/guestfs-actions.pod:4699 ../src/guestfs-actions.pod:4719
3943 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:4832
3944 #: ../src/guestfs-actions.pod:4938 ../src/guestfs-actions.pod:4947
3945 #: ../src/guestfs-actions.pod:4957 ../src/guestfs-actions.pod:4967
3946 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:4996
3947 #: ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:5016
3948 #: ../src/guestfs-actions.pod:5028 ../src/guestfs-actions.pod:5078
3949 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5105
3950 #: ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5132
3951 #: ../src/guestfs-actions.pod:5142 ../src/guestfs-actions.pod:5159
3952 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5200
3953 #: ../src/guestfs-actions.pod:5235 ../src/guestfs-actions.pod:5245
3954 #: ../src/guestfs-actions.pod:5260 ../src/guestfs-actions.pod:5286
3955 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5418
3956 #: ../src/guestfs-actions.pod:5433 ../src/guestfs-actions.pod:5444
3957 #: ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5500
3958 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5564
3959 #: ../src/guestfs-actions.pod:5606 ../src/guestfs-actions.pod:5629
3960 #: ../src/guestfs-actions.pod:5686 ../src/guestfs-actions.pod:5702
3961 #: ../src/guestfs-actions.pod:5728
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:5637 ../src/guestfs-actions.pod:5782
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:4353 ../fish/guestfish-actions.pod:4450
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:2233 ../src/guestfs-actions.pod:2251
4362 #: ../src/guestfs-actions.pod:3641 ../src/guestfs-actions.pod:3748
4363 #: ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:4125
4364 #: ../src/guestfs-actions.pod:5224 ../src/guestfs-actions.pod:5574
4365 #: ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5594
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:2185 ../src/guestfs-actions.pod:2301
4402 #: ../src/guestfs-actions.pod:2336 ../src/guestfs-actions.pod:2356
4403 #: ../src/guestfs-actions.pod:2671 ../src/guestfs-actions.pod:2968
4404 #: ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3205
4405 #: ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3939
4406 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4241
4407 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:4760
4408 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:4787
4409 #: ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:5367
4410 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5398
4411 #: ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:5776
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:2207 ../src/guestfs-actions.pod:2395
4614 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2656
4615 #: ../src/guestfs-actions.pod:2740 ../src/guestfs-actions.pod:3086
4616 #: ../src/guestfs-actions.pod:3608 ../src/guestfs-actions.pod:4057
4617 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4272
4618 #: ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:4870
4619 #: ../src/guestfs-actions.pod:4922 ../src/guestfs-actions.pod:5038
4620 #: ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:5459
4621 #: ../src/guestfs-actions.pod:5476 ../src/guestfs-actions.pod:5514
4622 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5666
4623 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:5755
4624 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:5811
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:2409 ../src/guestfs-actions.pod:2420
5009 #: ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:2443
5010 #: ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2468
5011 #: ../src/guestfs-actions.pod:2481 ../src/guestfs-actions.pod:2492
5012 #: ../src/guestfs-actions.pod:2502 ../src/guestfs-actions.pod:2513
5013 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:2537
5014 #: ../src/guestfs-actions.pod:3733
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:4156
5263 #: ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3197
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:3973 ../src/guestfs-actions.pod:3996
5285 #: ../src/guestfs-actions.pod:4104 ../src/guestfs-actions.pod:4127
5286 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:4874
5287 #: ../src/guestfs-actions.pod:4926 ../src/guestfs-actions.pod:5042
5288 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5608
5289 #: ../src/guestfs-actions.pod:5631 ../src/guestfs-actions.pod:5654
5290 #: ../src/guestfs-actions.pod:5670 ../src/guestfs-actions.pod:5743
5291 #: ../src/guestfs-actions.pod:5759 ../src/guestfs-actions.pod:5799
5292 #: ../src/guestfs-actions.pod:5815 ../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:3067
5300 #: ../fish/guestfish-actions.pod:3082 ../fish/guestfish-actions.pod:3158
5301 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3190
5302 #: ../fish/guestfish-actions.pod:3773 ../fish/guestfish-actions.pod:3819
5303 #: ../fish/guestfish-actions.pod:3904 ../fish/guestfish-actions.pod:3919
5304 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4347
5305 #: ../fish/guestfish-actions.pod:4364 ../fish/guestfish-actions.pod:4374
5306 #: ../fish/guestfish-actions.pod:4422 ../fish/guestfish-actions.pod:4432
5307 #: ../fish/guestfish-actions.pod:4461 ../fish/guestfish-actions.pod:4471
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:3301
5516 #: ../src/guestfs-actions.pod:3404 ../src/guestfs-actions.pod:3420
5517 #: ../src/guestfs-actions.pod:3436 ../fish/guestfish-actions.pod:635
5518 #: ../fish/guestfish-actions.pod:2557 ../fish/guestfish-actions.pod:2642
5519 #: ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2662
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:2570
5546 #: ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2035
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:5688
5708 #: ../src/guestfs-actions.pod:5704
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:5256
5950 #: ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4077
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:4509 ../src/guestfs-actions.pod:4601
7032 #: ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377
7033 #: ../fish/guestfish-actions.pod:3484 ../fish/guestfish-actions.pod:3571
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:2418
7198 #: ../src/guestfs-actions.pod:2441 ../src/guestfs-actions.pod:2490
7199 #: ../src/guestfs-actions.pod:2511 ../fish/guestfish-actions.pod:1387
7200 #: ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1935
7201 #: ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:1989
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:2585
7319 #: ../src/guestfs-actions.pod:3140
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:5057
7497 #: ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3917
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:3969
7569 #: ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4144
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:2193 ../src/guestfs-actions.pod:2216
7831 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:2258
7832 #: ../src/guestfs-actions.pod:2288 ../src/guestfs-actions.pod:2309
7833 #: ../src/guestfs-actions.pod:2344
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:2183
7855 #: ../src/guestfs-actions.pod:2231 ../src/guestfs-actions.pod:2299
7856 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2354
7857 #: ../src/guestfs-actions.pod:2391 ../fish/guestfish-actions.pod:1656
7858 #: ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:1761
7859 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1847
7860 #: ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:1897
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 "\"meego\""
7932 msgstr ""
7933
7934 # type: textblock
7935 #: ../src/guestfs-actions.pod:2151 ../fish/guestfish-actions.pod:1690
7936 msgid "MeeGo."
7937 msgstr ""
7938
7939 # type: =item
7940 #: ../src/guestfs-actions.pod:2153 ../fish/guestfish-actions.pod:1692
7941 msgid "\"pardus\""
7942 msgstr ""
7943
7944 # type: textblock
7945 #: ../src/guestfs-actions.pod:2155 ../fish/guestfish-actions.pod:1694
7946 msgid "Pardus."
7947 msgstr ""
7948
7949 # type: =item
7950 #: ../src/guestfs-actions.pod:2157 ../fish/guestfish-actions.pod:1696
7951 msgid "\"redhat-based\""
7952 msgstr ""
7953
7954 # type: textblock
7955 #: ../src/guestfs-actions.pod:2159 ../fish/guestfish-actions.pod:1698
7956 msgid "Some Red Hat-derived distro."
7957 msgstr ""
7958
7959 # type: =item
7960 #: ../src/guestfs-actions.pod:2161 ../fish/guestfish-actions.pod:1700
7961 msgid "\"rhel\""
7962 msgstr ""
7963
7964 # type: textblock
7965 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1702
7966 msgid "Red Hat Enterprise Linux and some derivatives."
7967 msgstr ""
7968
7969 # type: =item
7970 #: ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:2321
7971 #: ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1834
7972 msgid "\"windows\""
7973 msgstr ""
7974
7975 # type: textblock
7976 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1706
7977 msgid ""
7978 "Windows does not have distributions.  This string is returned if the OS type "
7979 "is Windows."
7980 msgstr ""
7981
7982 # type: =item
7983 #: ../src/guestfs-actions.pod:2170 ../fish/guestfish-actions.pod:1709
7984 msgid "\"ubuntu\""
7985 msgstr ""
7986
7987 # type: textblock
7988 #: ../src/guestfs-actions.pod:2172 ../fish/guestfish-actions.pod:1711
7989 msgid "Ubuntu."
7990 msgstr ""
7991
7992 # type: =item
7993 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:2325
7994 #: ../fish/guestfish-actions.pod:1713 ../fish/guestfish-actions.pod:1838
7995 msgid "\"unknown\""
7996 msgstr ""
7997
7998 # type: textblock
7999 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1715
8000 msgid "The distro could not be determined."
8001 msgstr ""
8002
8003 # type: textblock
8004 #: ../src/guestfs-actions.pod:2180 ../src/guestfs-actions.pod:2331
8005 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1844
8006 msgid ""
8007 "Future versions of libguestfs may return other strings here.  The caller "
8008 "should be prepared to handle any string."
8009 msgstr ""
8010
8011 # type: =head2
8012 #: ../src/guestfs-actions.pod:2188
8013 msgid "guestfs_inspect_get_filesystems"
8014 msgstr ""
8015
8016 # type: verbatim
8017 #: ../src/guestfs-actions.pod:2190
8018 #, no-wrap
8019 msgid ""
8020 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8021 "\t\tconst char *root);\n"
8022 "\n"
8023 msgstr ""
8024
8025 # type: textblock
8026 #: ../src/guestfs-actions.pod:2196 ../fish/guestfish-actions.pod:1731
8027 msgid ""
8028 "This returns a list of all the filesystems that we think are associated with "
8029 "this operating system.  This includes the root filesystem, other ordinary "
8030 "filesystems, and non-mounted devices like swap partitions."
8031 msgstr ""
8032
8033 # type: textblock
8034 #: ../src/guestfs-actions.pod:2201 ../fish/guestfish-actions.pod:1736
8035 msgid ""
8036 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8037 "to be shared between operating systems."
8038 msgstr ""
8039
8040 # type: textblock
8041 #: ../src/guestfs-actions.pod:2204
8042 msgid ""
8043 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8044 "C<guestfs_inspect_get_mountpoints>."
8045 msgstr ""
8046
8047 # type: =head2
8048 #: ../src/guestfs-actions.pod:2211
8049 msgid "guestfs_inspect_get_major_version"
8050 msgstr ""
8051
8052 # type: verbatim
8053 #: ../src/guestfs-actions.pod:2213
8054 #, no-wrap
8055 msgid ""
8056 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
8057 "\t\tconst char *root);\n"
8058 "\n"
8059 msgstr ""
8060
8061 # type: textblock
8062 #: ../src/guestfs-actions.pod:2219 ../fish/guestfish-actions.pod:1749
8063 msgid ""
8064 "This returns the major version number of the inspected operating system."
8065 msgstr ""
8066
8067 # type: textblock
8068 #: ../src/guestfs-actions.pod:2222 ../fish/guestfish-actions.pod:1752
8069 msgid ""
8070 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8071 "popular public names used by the operating system.  Notably the operating "
8072 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8073 "1).  You can find out the real versions corresponding to releases of Windows "
8074 "by consulting Wikipedia or MSDN."
8075 msgstr ""
8076
8077 # type: textblock
8078 #: ../src/guestfs-actions.pod:2229 ../src/guestfs-actions.pod:2246
8079 #: ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1773
8080 msgid "If the version could not be determined, then C<0> is returned."
8081 msgstr ""
8082
8083 # type: =head2
8084 #: ../src/guestfs-actions.pod:2235
8085 msgid "guestfs_inspect_get_minor_version"
8086 msgstr ""
8087
8088 # type: verbatim
8089 #: ../src/guestfs-actions.pod:2237
8090 #, no-wrap
8091 msgid ""
8092 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8093 "\t\tconst char *root);\n"
8094 "\n"
8095 msgstr ""
8096
8097 # type: textblock
8098 #: ../src/guestfs-actions.pod:2243 ../fish/guestfish-actions.pod:1770
8099 msgid ""
8100 "This returns the minor version number of the inspected operating system."
8101 msgstr ""
8102
8103 # type: textblock
8104 #: ../src/guestfs-actions.pod:2248
8105 msgid ""
8106 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8107 "C<guestfs_inspect_get_major_version>."
8108 msgstr ""
8109
8110 # type: =head2
8111 #: ../src/guestfs-actions.pod:2253
8112 msgid "guestfs_inspect_get_mountpoints"
8113 msgstr ""
8114
8115 # type: verbatim
8116 #: ../src/guestfs-actions.pod:2255
8117 #, no-wrap
8118 msgid ""
8119 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8120 "\t\tconst char *root);\n"
8121 "\n"
8122 msgstr ""
8123
8124 # type: textblock
8125 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1785
8126 msgid ""
8127 "This returns a hash of where we think the filesystems associated with this "
8128 "operating system should be mounted.  Callers should note that this is at "
8129 "best an educated guess made by reading configuration files such as C</etc/"
8130 "fstab>."
8131 msgstr ""
8132
8133 # type: textblock
8134 #: ../src/guestfs-actions.pod:2266 ../fish/guestfish-actions.pod:1790
8135 msgid ""
8136 "Each element in the returned hashtable has a key which is the path of the "
8137 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8138 "mounted there (eg. C</dev/sda1>)."
8139 msgstr ""
8140
8141 # type: textblock
8142 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1795
8143 msgid ""
8144 "Non-mounted devices such as swap devices are I<not> returned in this list."
8145 msgstr ""
8146
8147 # type: textblock
8148 #: ../src/guestfs-actions.pod:2274
8149 msgid ""
8150 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8151 "C<guestfs_inspect_get_filesystems>."
8152 msgstr ""
8153
8154 # type: textblock
8155 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2637
8156 #: ../src/guestfs-actions.pod:3591 ../src/guestfs-actions.pod:5174
8157 msgid ""
8158 "This function returns a NULL-terminated array of strings, or NULL if there "
8159 "was an error.  The array of strings will always have length C<2n+1>, where "
8160 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8161 "caller must free the strings and the array after use>."
8162 msgstr ""
8163
8164 # type: =head2
8165 #: ../src/guestfs-actions.pod:2283
8166 msgid "guestfs_inspect_get_product_name"
8167 msgstr ""
8168
8169 # type: verbatim
8170 #: ../src/guestfs-actions.pod:2285
8171 #, no-wrap
8172 msgid ""
8173 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
8174 "\t\tconst char *root);\n"
8175 "\n"
8176 msgstr ""
8177
8178 # type: textblock
8179 #: ../src/guestfs-actions.pod:2291 ../fish/guestfish-actions.pod:1808
8180 msgid ""
8181 "This returns the product name of the inspected operating system.  The "
8182 "product name is generally some freeform string which can be displayed to the "
8183 "user, but should not be parsed by programs."
8184 msgstr ""
8185
8186 # type: textblock
8187 #: ../src/guestfs-actions.pod:2296 ../fish/guestfish-actions.pod:1813
8188 msgid ""
8189 "If the product name could not be determined, then the string C<unknown> is "
8190 "returned."
8191 msgstr ""
8192
8193 # type: =head2
8194 #: ../src/guestfs-actions.pod:2304
8195 msgid "guestfs_inspect_get_type"
8196 msgstr ""
8197
8198 # type: verbatim
8199 #: ../src/guestfs-actions.pod:2306
8200 #, no-wrap
8201 msgid ""
8202 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
8203 "\t\tconst char *root);\n"
8204 "\n"
8205 msgstr ""
8206
8207 # type: textblock
8208 #: ../src/guestfs-actions.pod:2312 ../fish/guestfish-actions.pod:1825
8209 msgid ""
8210 "This returns the type of the inspected operating system.  Currently defined "
8211 "types are:"
8212 msgstr ""
8213
8214 # type: =item
8215 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1830
8216 msgid "\"linux\""
8217 msgstr ""
8218
8219 # type: textblock
8220 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1832
8221 msgid "Any Linux-based operating system."
8222 msgstr ""
8223
8224 # type: textblock
8225 #: ../src/guestfs-actions.pod:2323 ../fish/guestfish-actions.pod:1836
8226 msgid "Any Microsoft Windows operating system."
8227 msgstr ""
8228
8229 # type: textblock
8230 #: ../src/guestfs-actions.pod:2327 ../fish/guestfish-actions.pod:1840
8231 msgid "The operating system type could not be determined."
8232 msgstr ""
8233
8234 # type: =head2
8235 #: ../src/guestfs-actions.pod:2339
8236 msgid "guestfs_inspect_get_windows_systemroot"
8237 msgstr ""
8238
8239 # type: verbatim
8240 #: ../src/guestfs-actions.pod:2341
8241 #, no-wrap
8242 msgid ""
8243 " char *guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8244 "\t\tconst char *root);\n"
8245 "\n"
8246 msgstr ""
8247
8248 # type: textblock
8249 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1856
8250 msgid ""
8251 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8252 "is a directory path such as C</WINDOWS>."
8253 msgstr ""
8254
8255 # type: textblock
8256 #: ../src/guestfs-actions.pod:2350 ../fish/guestfish-actions.pod:1859
8257 msgid ""
8258 "This call assumes that the guest is Windows and that the systemroot could be "
8259 "determined by inspection.  If this is not the case then an error is returned."
8260 msgstr ""
8261
8262 # type: =head2
8263 #: ../src/guestfs-actions.pod:2359
8264 msgid "guestfs_inspect_os"
8265 msgstr ""
8266
8267 # type: verbatim
8268 #: ../src/guestfs-actions.pod:2361
8269 #, no-wrap
8270 msgid ""
8271 " char **guestfs_inspect_os (guestfs_h *g);\n"
8272 "\n"
8273 msgstr ""
8274
8275 # type: textblock
8276 #: ../src/guestfs-actions.pod:2363 ../fish/guestfish-actions.pod:1869
8277 msgid ""
8278 "This function uses other libguestfs functions and certain heuristics to "
8279 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8280 "for operating systems."
8281 msgstr ""
8282
8283 # type: textblock
8284 #: ../src/guestfs-actions.pod:2367 ../fish/guestfish-actions.pod:1873
8285 msgid "The list returned is empty if no operating systems were found."
8286 msgstr ""
8287
8288 # type: textblock
8289 #: ../src/guestfs-actions.pod:2369 ../fish/guestfish-actions.pod:1875
8290 msgid ""
8291 "If one operating system was found, then this returns a list with a single "
8292 "element, which is the name of the root filesystem of this operating system.  "
8293 "It is also possible for this function to return a list containing more than "
8294 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8295 "element being the root filesystem of one of the operating systems."
8296 msgstr ""
8297
8298 # type: textblock
8299 #: ../src/guestfs-actions.pod:2376
8300 msgid ""
8301 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8302 "functions in order to query further information about each operating system, "
8303 "such as the name and version."
8304 msgstr ""
8305
8306 # type: textblock
8307 #: ../src/guestfs-actions.pod:2381
8308 msgid ""
8309 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8310 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8311 "the contents.  This should be called with no disks currently mounted.  The "
8312 "function may also use Augeas, so any existing Augeas handle will be closed."
8313 msgstr ""
8314
8315 # type: textblock
8316 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1893
8317 msgid ""
8318 "This function cannot decrypt encrypted disks.  The caller must do that first "
8319 "(supplying the necessary keys) if the disk is encrypted."
8320 msgstr ""
8321
8322 # type: textblock
8323 #: ../src/guestfs-actions.pod:2393 ../src/guestfs-actions.pod:2598
8324 #: ../src/guestfs-actions.pod:2654
8325 msgid "See also C<guestfs_list_filesystems>."
8326 msgstr ""
8327
8328 # type: =head2
8329 #: ../src/guestfs-actions.pod:2399
8330 msgid "guestfs_is_blockdev"
8331 msgstr ""
8332
8333 # type: verbatim
8334 #: ../src/guestfs-actions.pod:2401
8335 #, no-wrap
8336 msgid ""
8337 " int guestfs_is_blockdev (guestfs_h *g,\n"
8338 "\t\tconst char *path);\n"
8339 "\n"
8340 msgstr ""
8341
8342 # type: textblock
8343 #: ../src/guestfs-actions.pod:2404 ../fish/guestfish-actions.pod:1905
8344 msgid ""
8345 "This returns C<true> if and only if there is a block device with the given "
8346 "C<path> name."
8347 msgstr ""
8348
8349 # type: textblock
8350 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:2430
8351 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2466
8352 #: ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:2523
8353 #: ../src/guestfs-actions.pod:2535
8354 msgid "See also C<guestfs_stat>."
8355 msgstr ""
8356
8357 # type: =head2
8358 #: ../src/guestfs-actions.pod:2411
8359 msgid "guestfs_is_busy"
8360 msgstr ""
8361
8362 # type: verbatim
8363 #: ../src/guestfs-actions.pod:2413
8364 #, no-wrap
8365 msgid ""
8366 " int guestfs_is_busy (guestfs_h *g);\n"
8367 "\n"
8368 msgstr ""
8369
8370 # type: textblock
8371 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1914
8372 msgid ""
8373 "This returns true iff this handle is busy processing a command (in the "
8374 "C<BUSY> state)."
8375 msgstr ""
8376
8377 # type: =head2
8378 #: ../src/guestfs-actions.pod:2422
8379 msgid "guestfs_is_chardev"
8380 msgstr ""
8381
8382 # type: verbatim
8383 #: ../src/guestfs-actions.pod:2424
8384 #, no-wrap
8385 msgid ""
8386 " int guestfs_is_chardev (guestfs_h *g,\n"
8387 "\t\tconst char *path);\n"
8388 "\n"
8389 msgstr ""
8390
8391 # type: textblock
8392 #: ../src/guestfs-actions.pod:2427 ../fish/guestfish-actions.pod:1923
8393 msgid ""
8394 "This returns C<true> if and only if there is a character device with the "
8395 "given C<path> name."
8396 msgstr ""
8397
8398 # type: =head2
8399 #: ../src/guestfs-actions.pod:2434
8400 msgid "guestfs_is_config"
8401 msgstr ""
8402
8403 # type: verbatim
8404 #: ../src/guestfs-actions.pod:2436
8405 #, no-wrap
8406 msgid ""
8407 " int guestfs_is_config (guestfs_h *g);\n"
8408 "\n"
8409 msgstr ""
8410
8411 # type: textblock
8412 #: ../src/guestfs-actions.pod:2438 ../fish/guestfish-actions.pod:1932
8413 msgid ""
8414 "This returns true iff this handle is being configured (in the C<CONFIG> "
8415 "state)."
8416 msgstr ""
8417
8418 # type: =head2
8419 #: ../src/guestfs-actions.pod:2445
8420 msgid "guestfs_is_dir"
8421 msgstr ""
8422
8423 # type: verbatim
8424 #: ../src/guestfs-actions.pod:2447
8425 #, no-wrap
8426 msgid ""
8427 " int guestfs_is_dir (guestfs_h *g,\n"
8428 "\t\tconst char *path);\n"
8429 "\n"
8430 msgstr ""
8431
8432 # type: textblock
8433 #: ../src/guestfs-actions.pod:2450 ../fish/guestfish-actions.pod:1941
8434 msgid ""
8435 "This returns C<true> if and only if there is a directory with the given "
8436 "C<path> name.  Note that it returns false for other objects like files."
8437 msgstr ""
8438
8439 # type: =head2
8440 #: ../src/guestfs-actions.pod:2458
8441 msgid "guestfs_is_fifo"
8442 msgstr ""
8443
8444 # type: verbatim
8445 #: ../src/guestfs-actions.pod:2460
8446 #, no-wrap
8447 msgid ""
8448 " int guestfs_is_fifo (guestfs_h *g,\n"
8449 "\t\tconst char *path);\n"
8450 "\n"
8451 msgstr ""
8452
8453 # type: textblock
8454 #: ../src/guestfs-actions.pod:2463 ../fish/guestfish-actions.pod:1951
8455 msgid ""
8456 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8457 "given C<path> name."
8458 msgstr ""
8459
8460 # type: =head2
8461 #: ../src/guestfs-actions.pod:2470
8462 msgid "guestfs_is_file"
8463 msgstr ""
8464
8465 # type: verbatim
8466 #: ../src/guestfs-actions.pod:2472
8467 #, no-wrap
8468 msgid ""
8469 " int guestfs_is_file (guestfs_h *g,\n"
8470 "\t\tconst char *path);\n"
8471 "\n"
8472 msgstr ""
8473
8474 # type: textblock
8475 #: ../src/guestfs-actions.pod:2475 ../fish/guestfish-actions.pod:1960
8476 msgid ""
8477 "This returns C<true> if and only if there is a regular file with the given "
8478 "C<path> name.  Note that it returns false for other objects like directories."
8479 msgstr ""
8480
8481 # type: =head2
8482 #: ../src/guestfs-actions.pod:2483
8483 msgid "guestfs_is_launching"
8484 msgstr ""
8485
8486 # type: verbatim
8487 #: ../src/guestfs-actions.pod:2485
8488 #, no-wrap
8489 msgid ""
8490 " int guestfs_is_launching (guestfs_h *g);\n"
8491 "\n"
8492 msgstr ""
8493
8494 # type: textblock
8495 #: ../src/guestfs-actions.pod:2487 ../fish/guestfish-actions.pod:1970
8496 msgid ""
8497 "This returns true iff this handle is launching the subprocess (in the "
8498 "C<LAUNCHING> state)."
8499 msgstr ""
8500
8501 # type: =head2
8502 #: ../src/guestfs-actions.pod:2494
8503 msgid "guestfs_is_lv"
8504 msgstr ""
8505
8506 # type: verbatim
8507 #: ../src/guestfs-actions.pod:2496
8508 #, no-wrap
8509 msgid ""
8510 " int guestfs_is_lv (guestfs_h *g,\n"
8511 "\t\tconst char *device);\n"
8512 "\n"
8513 msgstr ""
8514
8515 # type: textblock
8516 #: ../src/guestfs-actions.pod:2499 ../fish/guestfish-actions.pod:1979
8517 msgid ""
8518 "This command tests whether C<device> is a logical volume, and returns true "
8519 "iff this is the case."
8520 msgstr ""
8521
8522 # type: =head2
8523 #: ../src/guestfs-actions.pod:2504
8524 msgid "guestfs_is_ready"
8525 msgstr ""
8526
8527 # type: verbatim
8528 #: ../src/guestfs-actions.pod:2506
8529 #, no-wrap
8530 msgid ""
8531 " int guestfs_is_ready (guestfs_h *g);\n"
8532 "\n"
8533 msgstr ""
8534
8535 # type: textblock
8536 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1986
8537 msgid ""
8538 "This returns true iff this handle is ready to accept commands (in the "
8539 "C<READY> state)."
8540 msgstr ""
8541
8542 # type: =head2
8543 #: ../src/guestfs-actions.pod:2515
8544 msgid "guestfs_is_socket"
8545 msgstr ""
8546
8547 # type: verbatim
8548 #: ../src/guestfs-actions.pod:2517
8549 #, no-wrap
8550 msgid ""
8551 " int guestfs_is_socket (guestfs_h *g,\n"
8552 "\t\tconst char *path);\n"
8553 "\n"
8554 msgstr ""
8555
8556 # type: textblock
8557 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1995
8558 msgid ""
8559 "This returns C<true> if and only if there is a Unix domain socket with the "
8560 "given C<path> name."
8561 msgstr ""
8562
8563 # type: =head2
8564 #: ../src/guestfs-actions.pod:2527
8565 msgid "guestfs_is_symlink"
8566 msgstr ""
8567
8568 # type: verbatim
8569 #: ../src/guestfs-actions.pod:2529
8570 #, no-wrap
8571 msgid ""
8572 " int guestfs_is_symlink (guestfs_h *g,\n"
8573 "\t\tconst char *path);\n"
8574 "\n"
8575 msgstr ""
8576
8577 # type: textblock
8578 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:2004
8579 msgid ""
8580 "This returns C<true> if and only if there is a symbolic link with the given "
8581 "C<path> name."
8582 msgstr ""
8583
8584 # type: =head2
8585 #: ../src/guestfs-actions.pod:2539
8586 msgid "guestfs_kill_subprocess"
8587 msgstr ""
8588
8589 # type: verbatim
8590 #: ../src/guestfs-actions.pod:2541
8591 #, no-wrap
8592 msgid ""
8593 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8594 "\n"
8595 msgstr ""
8596
8597 # type: textblock
8598 #: ../src/guestfs-actions.pod:2543 ../fish/guestfish-actions.pod:2013
8599 msgid "This kills the qemu subprocess.  You should never need to call this."
8600 msgstr ""
8601
8602 # type: =head2
8603 #: ../src/guestfs-actions.pod:2547
8604 msgid "guestfs_launch"
8605 msgstr ""
8606
8607 # type: verbatim
8608 #: ../src/guestfs-actions.pod:2549
8609 #, no-wrap
8610 msgid ""
8611 " int guestfs_launch (guestfs_h *g);\n"
8612 "\n"
8613 msgstr ""
8614
8615 # type: textblock
8616 #: ../src/guestfs-actions.pod:2551 ../fish/guestfish-actions.pod:2021
8617 msgid ""
8618 "Internally libguestfs is implemented by running a virtual machine using "
8619 "L<qemu(1)>."
8620 msgstr ""
8621
8622 # type: textblock
8623 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:2024
8624 msgid ""
8625 "You should call this after configuring the handle (eg. adding drives) but "
8626 "before performing any actions."
8627 msgstr ""
8628
8629 # type: =head2
8630 #: ../src/guestfs-actions.pod:2559
8631 msgid "guestfs_lchown"
8632 msgstr ""
8633
8634 # type: verbatim
8635 #: ../src/guestfs-actions.pod:2561
8636 #, no-wrap
8637 msgid ""
8638 " int guestfs_lchown (guestfs_h *g,\n"
8639 "\t\tint owner,\n"
8640 "\t\tint group,\n"
8641 "\t\tconst char *path);\n"
8642 "\n"
8643 msgstr ""
8644
8645 # type: textblock
8646 #: ../src/guestfs-actions.pod:2566
8647 msgid ""
8648 "Change the file owner to C<owner> and group to C<group>.  This is like "
8649 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8650 "changed, not the target."
8651 msgstr ""
8652
8653 # type: =head2
8654 #: ../src/guestfs-actions.pod:2576
8655 msgid "guestfs_lgetxattrs"
8656 msgstr ""
8657
8658 # type: verbatim
8659 #: ../src/guestfs-actions.pod:2578
8660 #, no-wrap
8661 msgid ""
8662 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8663 "\t\tconst char *path);\n"
8664 "\n"
8665 msgstr ""
8666
8667 # type: textblock
8668 #: ../src/guestfs-actions.pod:2581
8669 msgid ""
8670 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8671 "then it returns the extended attributes of the link itself."
8672 msgstr ""
8673
8674 # type: =head2
8675 #: ../src/guestfs-actions.pod:2590
8676 msgid "guestfs_list_devices"
8677 msgstr ""
8678
8679 # type: verbatim
8680 #: ../src/guestfs-actions.pod:2592
8681 #, no-wrap
8682 msgid ""
8683 " char **guestfs_list_devices (guestfs_h *g);\n"
8684 "\n"
8685 msgstr ""
8686
8687 # type: textblock
8688 #: ../src/guestfs-actions.pod:2594 ../fish/guestfish-actions.pod:2051
8689 msgid "List all the block devices."
8690 msgstr ""
8691
8692 # type: textblock
8693 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:2053
8694 msgid "The full block device names are returned, eg. C</dev/sda>."
8695 msgstr ""
8696
8697 # type: =head2
8698 #: ../src/guestfs-actions.pod:2604
8699 msgid "guestfs_list_filesystems"
8700 msgstr ""
8701
8702 # type: verbatim
8703 #: ../src/guestfs-actions.pod:2606
8704 #, no-wrap
8705 msgid ""
8706 " char **guestfs_list_filesystems (guestfs_h *g);\n"
8707 "\n"
8708 msgstr ""
8709
8710 # type: textblock
8711 #: ../src/guestfs-actions.pod:2608 ../fish/guestfish-actions.pod:2061
8712 msgid ""
8713 "This inspection command looks for filesystems on partitions, block devices "
8714 "and logical volumes, returning a list of devices containing filesystems and "
8715 "their type."
8716 msgstr ""
8717
8718 # type: textblock
8719 #: ../src/guestfs-actions.pod:2612 ../fish/guestfish-actions.pod:2065
8720 msgid ""
8721 "The return value is a hash, where the keys are the devices containing "
8722 "filesystems, and the values are the filesystem types.  For example:"
8723 msgstr ""
8724
8725 # type: verbatim
8726 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:2069
8727 #, no-wrap
8728 msgid ""
8729 " \"/dev/sda1\" => \"ntfs\"\n"
8730 " \"/dev/sda2\" => \"ext2\"\n"
8731 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8732 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8733 "\n"
8734 msgstr ""
8735
8736 # type: textblock
8737 #: ../src/guestfs-actions.pod:2621 ../fish/guestfish-actions.pod:2074
8738 msgid ""
8739 "The value can have the special value \"unknown\", meaning the content of the "
8740 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8741 msgstr ""
8742
8743 # type: textblock
8744 #: ../src/guestfs-actions.pod:2625
8745 msgid ""
8746 "This command runs other libguestfs commands, which might include "
8747 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8748 "soon after launch and only when nothing is mounted."
8749 msgstr ""
8750
8751 # type: textblock
8752 #: ../src/guestfs-actions.pod:2629
8753 msgid ""
8754 "Not all of the filesystems returned will be mountable.  In particular, swap "
8755 "partitions are returned in the list.  Also this command does not check that "
8756 "each filesystem found is valid and mountable, and some filesystems might be "
8757 "mountable but require special options.  Filesystems may not all belong to a "
8758 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
8759 msgstr ""
8760
8761 # type: =head2
8762 #: ../src/guestfs-actions.pod:2643
8763 msgid "guestfs_list_partitions"
8764 msgstr ""
8765
8766 # type: verbatim
8767 #: ../src/guestfs-actions.pod:2645
8768 #, no-wrap
8769 msgid ""
8770 " char **guestfs_list_partitions (guestfs_h *g);\n"
8771 "\n"
8772 msgstr ""
8773
8774 # type: textblock
8775 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:2094
8776 msgid "List all the partitions detected on all block devices."
8777 msgstr ""
8778
8779 # type: textblock
8780 #: ../src/guestfs-actions.pod:2649 ../fish/guestfish-actions.pod:2096
8781 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8782 msgstr ""
8783
8784 # type: textblock
8785 #: ../src/guestfs-actions.pod:2651
8786 msgid ""
8787 "This does not return logical volumes.  For that you will need to call "
8788 "C<guestfs_lvs>."
8789 msgstr ""
8790
8791 # type: =head2
8792 #: ../src/guestfs-actions.pod:2660
8793 msgid "guestfs_ll"
8794 msgstr ""
8795
8796 # type: verbatim
8797 #: ../src/guestfs-actions.pod:2662
8798 #, no-wrap
8799 msgid ""
8800 " char *guestfs_ll (guestfs_h *g,\n"
8801 "\t\tconst char *directory);\n"
8802 "\n"
8803 msgstr ""
8804
8805 # type: textblock
8806 #: ../src/guestfs-actions.pod:2665 ../fish/guestfish-actions.pod:2107
8807 msgid ""
8808 "List the files in C<directory> (relative to the root directory, there is no "
8809 "cwd) in the format of 'ls -la'."
8810 msgstr ""
8811
8812 # type: textblock
8813 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:2110
8814 msgid ""
8815 "This command is mostly useful for interactive sessions.  It is I<not> "
8816 "intended that you try to parse the output string."
8817 msgstr ""
8818
8819 # type: =head2
8820 #: ../src/guestfs-actions.pod:2674
8821 msgid "guestfs_ln"
8822 msgstr ""
8823
8824 # type: verbatim
8825 #: ../src/guestfs-actions.pod:2676
8826 #, no-wrap
8827 msgid ""
8828 " int guestfs_ln (guestfs_h *g,\n"
8829 "\t\tconst char *target,\n"
8830 "\t\tconst char *linkname);\n"
8831 "\n"
8832 msgstr ""
8833
8834 # type: textblock
8835 #: ../src/guestfs-actions.pod:2680 ../fish/guestfish-actions.pod:2117
8836 msgid "This command creates a hard link using the C<ln> command."
8837 msgstr ""
8838
8839 # type: =head2
8840 #: ../src/guestfs-actions.pod:2684
8841 msgid "guestfs_ln_f"
8842 msgstr ""
8843
8844 # type: verbatim
8845 #: ../src/guestfs-actions.pod:2686
8846 #, no-wrap
8847 msgid ""
8848 " int guestfs_ln_f (guestfs_h *g,\n"
8849 "\t\tconst char *target,\n"
8850 "\t\tconst char *linkname);\n"
8851 "\n"
8852 msgstr ""
8853
8854 # type: textblock
8855 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:2123
8856 msgid ""
8857 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8858 "option removes the link (C<linkname>) if it exists already."
8859 msgstr ""
8860
8861 # type: =head2
8862 #: ../src/guestfs-actions.pod:2695
8863 msgid "guestfs_ln_s"
8864 msgstr ""
8865
8866 # type: verbatim
8867 #: ../src/guestfs-actions.pod:2697
8868 #, no-wrap
8869 msgid ""
8870 " int guestfs_ln_s (guestfs_h *g,\n"
8871 "\t\tconst char *target,\n"
8872 "\t\tconst char *linkname);\n"
8873 "\n"
8874 msgstr ""
8875
8876 # type: textblock
8877 #: ../src/guestfs-actions.pod:2701 ../fish/guestfish-actions.pod:2130
8878 msgid "This command creates a symbolic link using the C<ln -s> command."
8879 msgstr ""
8880
8881 # type: =head2
8882 #: ../src/guestfs-actions.pod:2705
8883 msgid "guestfs_ln_sf"
8884 msgstr ""
8885
8886 # type: verbatim
8887 #: ../src/guestfs-actions.pod:2707
8888 #, no-wrap
8889 msgid ""
8890 " int guestfs_ln_sf (guestfs_h *g,\n"
8891 "\t\tconst char *target,\n"
8892 "\t\tconst char *linkname);\n"
8893 "\n"
8894 msgstr ""
8895
8896 # type: textblock
8897 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:2136
8898 msgid ""
8899 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8900 "option removes the link (C<linkname>) if it exists already."
8901 msgstr ""
8902
8903 # type: =head2
8904 #: ../src/guestfs-actions.pod:2716
8905 msgid "guestfs_lremovexattr"
8906 msgstr ""
8907
8908 # type: verbatim
8909 #: ../src/guestfs-actions.pod:2718
8910 #, no-wrap
8911 msgid ""
8912 " int guestfs_lremovexattr (guestfs_h *g,\n"
8913 "\t\tconst char *xattr,\n"
8914 "\t\tconst char *path);\n"
8915 "\n"
8916 msgstr ""
8917
8918 # type: textblock
8919 #: ../src/guestfs-actions.pod:2722
8920 msgid ""
8921 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8922 "link, then it removes an extended attribute of the link itself."
8923 msgstr ""
8924
8925 # type: =head2
8926 #: ../src/guestfs-actions.pod:2728
8927 msgid "guestfs_ls"
8928 msgstr ""
8929
8930 # type: verbatim
8931 #: ../src/guestfs-actions.pod:2730
8932 #, no-wrap
8933 msgid ""
8934 " char **guestfs_ls (guestfs_h *g,\n"
8935 "\t\tconst char *directory);\n"
8936 "\n"
8937 msgstr ""
8938
8939 # type: textblock
8940 #: ../src/guestfs-actions.pod:2733 ../fish/guestfish-actions.pod:2151
8941 msgid ""
8942 "List the files in C<directory> (relative to the root directory, there is no "
8943 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
8944 msgstr ""
8945
8946 # type: textblock
8947 #: ../src/guestfs-actions.pod:2737
8948 msgid ""
8949 "This command is mostly useful for interactive sessions.  Programs should "
8950 "probably use C<guestfs_readdir> instead."
8951 msgstr ""
8952
8953 # type: =head2
8954 #: ../src/guestfs-actions.pod:2744
8955 msgid "guestfs_lsetxattr"
8956 msgstr ""
8957
8958 # type: verbatim
8959 #: ../src/guestfs-actions.pod:2746
8960 #, no-wrap
8961 msgid ""
8962 " int guestfs_lsetxattr (guestfs_h *g,\n"
8963 "\t\tconst char *xattr,\n"
8964 "\t\tconst char *val,\n"
8965 "\t\tint vallen,\n"
8966 "\t\tconst char *path);\n"
8967 "\n"
8968 msgstr ""
8969
8970 # type: textblock
8971 #: ../src/guestfs-actions.pod:2752
8972 msgid ""
8973 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8974 "then it sets an extended attribute of the link itself."
8975 msgstr ""
8976
8977 # type: =head2
8978 #: ../src/guestfs-actions.pod:2758
8979 msgid "guestfs_lstat"
8980 msgstr ""
8981
8982 # type: verbatim
8983 #: ../src/guestfs-actions.pod:2760
8984 #, no-wrap
8985 msgid ""
8986 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8987 "\t\tconst char *path);\n"
8988 "\n"
8989 msgstr ""
8990
8991 # type: textblock
8992 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:4839
8993 #: ../fish/guestfish-actions.pod:2170 ../fish/guestfish-actions.pod:3752
8994 msgid "Returns file information for the given C<path>."
8995 msgstr ""
8996
8997 # type: textblock
8998 #: ../src/guestfs-actions.pod:2765
8999 msgid ""
9000 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9001 "link, then the link is stat-ed, not the file it refers to."
9002 msgstr ""
9003
9004 # type: textblock
9005 #: ../src/guestfs-actions.pod:2769 ../fish/guestfish-actions.pod:2176
9006 msgid "This is the same as the C<lstat(2)> system call."
9007 msgstr ""
9008
9009 # type: textblock
9010 #: ../src/guestfs-actions.pod:2771 ../src/guestfs-actions.pod:4843
9011 msgid ""
9012 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9013 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9014 msgstr ""
9015
9016 # type: =head2
9017 #: ../src/guestfs-actions.pod:2775
9018 msgid "guestfs_lstatlist"
9019 msgstr ""
9020
9021 # type: verbatim
9022 #: ../src/guestfs-actions.pod:2777
9023 #, no-wrap
9024 msgid ""
9025 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
9026 "\t\tconst char *path,\n"
9027 "\t\tchar *const *names);\n"
9028 "\n"
9029 msgstr ""
9030
9031 # type: textblock
9032 #: ../src/guestfs-actions.pod:2781
9033 msgid ""
9034 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9035 "files, where all files are in the directory C<path>.  C<names> is the list "
9036 "of files from this directory."
9037 msgstr ""
9038
9039 # type: textblock
9040 #: ../src/guestfs-actions.pod:2785 ../fish/guestfish-actions.pod:2186
9041 msgid ""
9042 "On return you get a list of stat structs, with a one-to-one correspondence "
9043 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9044 "then the C<ino> field of that structure is set to C<-1>."
9045 msgstr ""
9046
9047 # type: textblock
9048 #: ../src/guestfs-actions.pod:2790
9049 msgid ""
9050 "This call is intended for programs that want to efficiently list a directory "
9051 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9052 "for a similarly efficient call for getting extended attributes.  Very long "
9053 "directory listings might cause the protocol message size to be exceeded, "
9054 "causing this call to fail.  The caller must split up such requests into "
9055 "smaller groups of names."
9056 msgstr ""
9057
9058 # type: textblock
9059 #: ../src/guestfs-actions.pod:2798
9060 msgid ""
9061 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
9062 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9063 "C<guestfs_free_stat_list> after use>."
9064 msgstr ""
9065
9066 # type: =head2
9067 #: ../src/guestfs-actions.pod:2803
9068 msgid "guestfs_luks_add_key"
9069 msgstr ""
9070
9071 # type: verbatim
9072 #: ../src/guestfs-actions.pod:2805
9073 #, no-wrap
9074 msgid ""
9075 " int guestfs_luks_add_key (guestfs_h *g,\n"
9076 "\t\tconst char *device,\n"
9077 "\t\tconst char *key,\n"
9078 "\t\tconst char *newkey,\n"
9079 "\t\tint keyslot);\n"
9080 "\n"
9081 msgstr ""
9082
9083 # type: textblock
9084 #: ../src/guestfs-actions.pod:2811 ../fish/guestfish-actions.pod:2203
9085 msgid ""
9086 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9087 "existing key, and is used to access the device.  C<newkey> is the new key to "
9088 "add.  C<keyslot> is the key slot that will be replaced."
9089 msgstr ""
9090
9091 # type: textblock
9092 #: ../src/guestfs-actions.pod:2816
9093 msgid ""
9094 "Note that if C<keyslot> already contains a key, then this command will "
9095 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9096 msgstr ""
9097
9098 # type: textblock
9099 #: ../src/guestfs-actions.pod:2822 ../src/guestfs-actions.pod:2856
9100 #: ../src/guestfs-actions.pod:2876 ../src/guestfs-actions.pod:2893
9101 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:2938
9102 msgid ""
9103 "This function takes a key or passphrase parameter which could contain "
9104 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9105 "information."
9106 msgstr ""
9107
9108 # type: =head2
9109 #: ../src/guestfs-actions.pod:2826
9110 msgid "guestfs_luks_close"
9111 msgstr ""
9112
9113 # type: verbatim
9114 #: ../src/guestfs-actions.pod:2828
9115 #, no-wrap
9116 msgid ""
9117 " int guestfs_luks_close (guestfs_h *g,\n"
9118 "\t\tconst char *device);\n"
9119 "\n"
9120 msgstr ""
9121
9122 # type: textblock
9123 #: ../src/guestfs-actions.pod:2831
9124 msgid ""
9125 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9126 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9127 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9128 "underlying block device."
9129 msgstr ""
9130
9131 # type: =head2
9132 #: ../src/guestfs-actions.pod:2839
9133 msgid "guestfs_luks_format"
9134 msgstr ""
9135
9136 # type: verbatim
9137 #: ../src/guestfs-actions.pod:2841
9138 #, no-wrap
9139 msgid ""
9140 " int guestfs_luks_format (guestfs_h *g,\n"
9141 "\t\tconst char *device,\n"
9142 "\t\tconst char *key,\n"
9143 "\t\tint keyslot);\n"
9144 "\n"
9145 msgstr ""
9146
9147 # type: textblock
9148 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:2229
9149 msgid ""
9150 "This command erases existing data on C<device> and formats the device as a "
9151 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9152 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9153 msgstr ""
9154
9155 # type: textblock
9156 #: ../src/guestfs-actions.pod:2853 ../src/guestfs-actions.pod:2873
9157 #: ../src/guestfs-actions.pod:2992 ../src/guestfs-actions.pod:3719
9158 #: ../src/guestfs-actions.pod:4380 ../src/guestfs-actions.pod:4701
9159 #: ../src/guestfs-actions.pod:4721 ../src/guestfs-actions.pod:4744
9160 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:2237
9161 #: ../fish/guestfish-actions.pod:2250 ../fish/guestfish-actions.pod:2334
9162 #: ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3371
9163 #: ../fish/guestfish-actions.pod:3651 ../fish/guestfish-actions.pod:3667
9164 #: ../fish/guestfish-actions.pod:3682 ../fish/guestfish-actions.pod:4397
9165 msgid ""
9166 "B<This command is dangerous.  Without careful use you can easily destroy all "
9167 "your data>."
9168 msgstr ""
9169
9170 # type: =head2
9171 #: ../src/guestfs-actions.pod:2860
9172 msgid "guestfs_luks_format_cipher"
9173 msgstr ""
9174
9175 # type: verbatim
9176 #: ../src/guestfs-actions.pod:2862
9177 #, no-wrap
9178 msgid ""
9179 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
9180 "\t\tconst char *device,\n"
9181 "\t\tconst char *key,\n"
9182 "\t\tint keyslot,\n"
9183 "\t\tconst char *cipher);\n"
9184 "\n"
9185 msgstr ""
9186
9187 # type: textblock
9188 #: ../src/guestfs-actions.pod:2868
9189 msgid ""
9190 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9191 "set the C<cipher> used."
9192 msgstr ""
9193
9194 # type: =head2
9195 #: ../src/guestfs-actions.pod:2880
9196 msgid "guestfs_luks_kill_slot"
9197 msgstr ""
9198
9199 # type: verbatim
9200 #: ../src/guestfs-actions.pod:2882
9201 #, no-wrap
9202 msgid ""
9203 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
9204 "\t\tconst char *device,\n"
9205 "\t\tconst char *key,\n"
9206 "\t\tint keyslot);\n"
9207 "\n"
9208 msgstr ""
9209
9210 # type: textblock
9211 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:2257
9212 msgid ""
9213 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9214 "device C<device>.  C<key> must be one of the I<other> keys."
9215 msgstr ""
9216
9217 # type: =head2
9218 #: ../src/guestfs-actions.pod:2897
9219 msgid "guestfs_luks_open"
9220 msgstr ""
9221
9222 # type: verbatim
9223 #: ../src/guestfs-actions.pod:2899
9224 #, no-wrap
9225 msgid ""
9226 " int guestfs_luks_open (guestfs_h *g,\n"
9227 "\t\tconst char *device,\n"
9228 "\t\tconst char *key,\n"
9229 "\t\tconst char *mapname);\n"
9230 "\n"
9231 msgstr ""
9232
9233 # type: textblock
9234 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2268
9235 msgid ""
9236 "This command opens a block device which has been encrypted according to the "
9237 "Linux Unified Key Setup (LUKS) standard."
9238 msgstr ""
9239
9240 # type: textblock
9241 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2271
9242 msgid "C<device> is the encrypted block device or partition."
9243 msgstr ""
9244
9245 # type: textblock
9246 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2273
9247 msgid ""
9248 "The caller must supply one of the keys associated with the LUKS block "
9249 "device, in the C<key> parameter."
9250 msgstr ""
9251
9252 # type: textblock
9253 #: ../src/guestfs-actions.pod:2912 ../fish/guestfish-actions.pod:2276
9254 msgid ""
9255 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9256 "writes to this block device are decrypted from and encrypted to the "
9257 "underlying C<device> respectively."
9258 msgstr ""
9259
9260 # type: textblock
9261 #: ../src/guestfs-actions.pod:2916
9262 msgid ""
9263 "If this block device contains LVM volume groups, then calling "
9264 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9265 "visible."
9266 msgstr ""
9267
9268 # type: =head2
9269 #: ../src/guestfs-actions.pod:2926
9270 msgid "guestfs_luks_open_ro"
9271 msgstr ""
9272
9273 # type: verbatim
9274 #: ../src/guestfs-actions.pod:2928
9275 #, no-wrap
9276 msgid ""
9277 " int guestfs_luks_open_ro (guestfs_h *g,\n"
9278 "\t\tconst char *device,\n"
9279 "\t\tconst char *key,\n"
9280 "\t\tconst char *mapname);\n"
9281 "\n"
9282 msgstr ""
9283
9284 # type: textblock
9285 #: ../src/guestfs-actions.pod:2933
9286 msgid ""
9287 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9288 "created."
9289 msgstr ""
9290
9291 # type: =head2
9292 #: ../src/guestfs-actions.pod:2942
9293 msgid "guestfs_lvcreate"
9294 msgstr ""
9295
9296 # type: verbatim
9297 #: ../src/guestfs-actions.pod:2944
9298 #, no-wrap
9299 msgid ""
9300 " int guestfs_lvcreate (guestfs_h *g,\n"
9301 "\t\tconst char *logvol,\n"
9302 "\t\tconst char *volgroup,\n"
9303 "\t\tint mbytes);\n"
9304 "\n"
9305 msgstr ""
9306
9307 # type: textblock
9308 #: ../src/guestfs-actions.pod:2949 ../fish/guestfish-actions.pod:2301
9309 msgid ""
9310 "This creates an LVM logical volume called C<logvol> on the volume group "
9311 "C<volgroup>, with C<size> megabytes."
9312 msgstr ""
9313
9314 # type: =head2
9315 #: ../src/guestfs-actions.pod:2954
9316 msgid "guestfs_lvm_canonical_lv_name"
9317 msgstr ""
9318
9319 # type: verbatim
9320 #: ../src/guestfs-actions.pod:2956
9321 #, no-wrap
9322 msgid ""
9323 " char *guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9324 "\t\tconst char *lvname);\n"
9325 "\n"
9326 msgstr ""
9327
9328 # type: textblock
9329 #: ../src/guestfs-actions.pod:2959 ../fish/guestfish-actions.pod:2308
9330 msgid ""
9331 "This converts alternative naming schemes for LVs that you might find to the "
9332 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
9333 "LV>."
9334 msgstr ""
9335
9336 # type: textblock
9337 #: ../src/guestfs-actions.pod:2963 ../fish/guestfish-actions.pod:2312
9338 msgid ""
9339 "This command returns an error if the C<lvname> parameter does not refer to a "
9340 "logical volume."
9341 msgstr ""
9342
9343 # type: textblock
9344 #: ../src/guestfs-actions.pod:2966
9345 msgid "See also C<guestfs_is_lv>."
9346 msgstr ""
9347
9348 # type: =head2
9349 #: ../src/guestfs-actions.pod:2971
9350 msgid "guestfs_lvm_clear_filter"
9351 msgstr ""
9352
9353 # type: verbatim
9354 #: ../src/guestfs-actions.pod:2973
9355 #, no-wrap
9356 msgid ""
9357 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
9358 "\n"
9359 msgstr ""
9360
9361 # type: textblock
9362 #: ../src/guestfs-actions.pod:2975
9363 msgid ""
9364 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9365 "see every block device."
9366 msgstr ""
9367
9368 # type: textblock
9369 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3014
9370 #: ../fish/guestfish-actions.pod:2324 ../fish/guestfish-actions.pod:2355
9371 msgid ""
9372 "This command also clears the LVM cache and performs a volume group scan."
9373 msgstr ""
9374
9375 # type: =head2
9376 #: ../src/guestfs-actions.pod:2983
9377 msgid "guestfs_lvm_remove_all"
9378 msgstr ""
9379
9380 # type: verbatim
9381 #: ../src/guestfs-actions.pod:2985
9382 #, no-wrap
9383 msgid ""
9384 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
9385 "\n"
9386 msgstr ""
9387
9388 # type: textblock
9389 #: ../src/guestfs-actions.pod:2987 ../fish/guestfish-actions.pod:2331
9390 msgid ""
9391 "This command removes all LVM logical volumes, volume groups and physical "
9392 "volumes."
9393 msgstr ""
9394
9395 # type: =head2
9396 #: ../src/guestfs-actions.pod:2995
9397 msgid "guestfs_lvm_set_filter"
9398 msgstr ""
9399
9400 # type: verbatim
9401 #: ../src/guestfs-actions.pod:2997
9402 #, no-wrap
9403 msgid ""
9404 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
9405 "\t\tchar *const *devices);\n"
9406 "\n"
9407 msgstr ""
9408
9409 # type: textblock
9410 #: ../src/guestfs-actions.pod:3000 ../fish/guestfish-actions.pod:2341
9411 msgid ""
9412 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9413 "block devices in the list C<devices>, and will ignore all other attached "
9414 "block devices."
9415 msgstr ""
9416
9417 # type: textblock
9418 #: ../src/guestfs-actions.pod:3004 ../fish/guestfish-actions.pod:2345
9419 msgid ""
9420 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9421 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9422 "there are two types of duplication possible: either cloned PVs/VGs which "
9423 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9424 "same name.  In normal operation you cannot create this situation, but you "
9425 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9426 "inside the LVM metadata."
9427 msgstr ""
9428
9429 # type: textblock
9430 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2358
9431 msgid "You can filter whole block devices or individual partitions."
9432 msgstr ""
9433
9434 # type: textblock
9435 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:2360
9436 msgid ""
9437 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9438 "filesystem), even if you are not filtering out that VG."
9439 msgstr ""
9440
9441 # type: =head2
9442 #: ../src/guestfs-actions.pod:3025
9443 msgid "guestfs_lvremove"
9444 msgstr ""
9445
9446 # type: verbatim
9447 #: ../src/guestfs-actions.pod:3027
9448 #, no-wrap
9449 msgid ""
9450 " int guestfs_lvremove (guestfs_h *g,\n"
9451 "\t\tconst char *device);\n"
9452 "\n"
9453 msgstr ""
9454
9455 # type: textblock
9456 #: ../src/guestfs-actions.pod:3030 ../fish/guestfish-actions.pod:2368
9457 msgid ""
9458 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9459 "LV, such as C</dev/VG/LV>."
9460 msgstr ""
9461
9462 # type: textblock
9463 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2371
9464 msgid ""
9465 "You can also remove all LVs in a volume group by specifying the VG name, C</"
9466 "dev/VG>."
9467 msgstr ""
9468
9469 # type: =head2
9470 #: ../src/guestfs-actions.pod:3038
9471 msgid "guestfs_lvrename"
9472 msgstr ""
9473
9474 # type: verbatim
9475 #: ../src/guestfs-actions.pod:3040
9476 #, no-wrap
9477 msgid ""
9478 " int guestfs_lvrename (guestfs_h *g,\n"
9479 "\t\tconst char *logvol,\n"
9480 "\t\tconst char *newlogvol);\n"
9481 "\n"
9482 msgstr ""
9483
9484 # type: textblock
9485 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2378
9486 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9487 msgstr ""
9488
9489 # type: =head2
9490 #: ../src/guestfs-actions.pod:3048
9491 msgid "guestfs_lvresize"
9492 msgstr ""
9493
9494 # type: verbatim
9495 #: ../src/guestfs-actions.pod:3050
9496 #, no-wrap
9497 msgid ""
9498 " int guestfs_lvresize (guestfs_h *g,\n"
9499 "\t\tconst char *device,\n"
9500 "\t\tint mbytes);\n"
9501 "\n"
9502 msgstr ""
9503
9504 # type: textblock
9505 #: ../src/guestfs-actions.pod:3054 ../fish/guestfish-actions.pod:2384
9506 msgid ""
9507 "This resizes (expands or shrinks) an existing LVM logical volume to "
9508 "C<mbytes>.  When reducing, data in the reduced part is lost."
9509 msgstr ""
9510
9511 # type: =head2
9512 #: ../src/guestfs-actions.pod:3060
9513 msgid "guestfs_lvresize_free"
9514 msgstr ""
9515
9516 # type: verbatim
9517 #: ../src/guestfs-actions.pod:3062
9518 #, no-wrap
9519 msgid ""
9520 " int guestfs_lvresize_free (guestfs_h *g,\n"
9521 "\t\tconst char *lv,\n"
9522 "\t\tint percent);\n"
9523 "\n"
9524 msgstr ""
9525
9526 # type: textblock
9527 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2392
9528 msgid ""
9529 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9530 "remaining free space in the volume group.  Commonly you would call this with "
9531 "pc = 100 which expands the logical volume as much as possible, using all "
9532 "remaining free space in the volume group."
9533 msgstr ""
9534
9535 # type: =head2
9536 #: ../src/guestfs-actions.pod:3074
9537 msgid "guestfs_lvs"
9538 msgstr ""
9539
9540 # type: verbatim
9541 #: ../src/guestfs-actions.pod:3076
9542 #, no-wrap
9543 msgid ""
9544 " char **guestfs_lvs (guestfs_h *g);\n"
9545 "\n"
9546 msgstr ""
9547
9548 # type: textblock
9549 #: ../src/guestfs-actions.pod:3078 ../fish/guestfish-actions.pod:2402
9550 msgid ""
9551 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9552 "(8)> command."
9553 msgstr ""
9554
9555 # type: textblock
9556 #: ../src/guestfs-actions.pod:3081 ../fish/guestfish-actions.pod:2405
9557 msgid ""
9558 "This returns a list of the logical volume device names (eg. C</dev/"
9559 "VolGroup00/LogVol00>)."
9560 msgstr ""
9561
9562 # type: textblock
9563 #: ../src/guestfs-actions.pod:3084
9564 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9565 msgstr ""
9566
9567 # type: =head2
9568 #: ../src/guestfs-actions.pod:3090
9569 msgid "guestfs_lvs_full"
9570 msgstr ""
9571
9572 # type: verbatim
9573 #: ../src/guestfs-actions.pod:3092
9574 #, no-wrap
9575 msgid ""
9576 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
9577 "\n"
9578 msgstr ""
9579
9580 # type: textblock
9581 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:2414
9582 msgid ""
9583 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9584 "(8)> command.  The \"full\" version includes all fields."
9585 msgstr ""
9586
9587 # type: textblock
9588 #: ../src/guestfs-actions.pod:3097
9589 msgid ""
9590 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
9591 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9592 "C<guestfs_free_lvm_lv_list> after use>."
9593 msgstr ""
9594
9595 # type: =head2
9596 #: ../src/guestfs-actions.pod:3102
9597 msgid "guestfs_lvuuid"
9598 msgstr ""
9599
9600 # type: verbatim
9601 #: ../src/guestfs-actions.pod:3104
9602 #, no-wrap
9603 msgid ""
9604 " char *guestfs_lvuuid (guestfs_h *g,\n"
9605 "\t\tconst char *device);\n"
9606 "\n"
9607 msgstr ""
9608
9609 # type: textblock
9610 #: ../src/guestfs-actions.pod:3107 ../fish/guestfish-actions.pod:2421
9611 msgid "This command returns the UUID of the LVM LV C<device>."
9612 msgstr ""
9613
9614 # type: =head2
9615 #: ../src/guestfs-actions.pod:3112
9616 msgid "guestfs_lxattrlist"
9617 msgstr ""
9618
9619 # type: verbatim
9620 #: ../src/guestfs-actions.pod:3114
9621 #, no-wrap
9622 msgid ""
9623 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
9624 "\t\tconst char *path,\n"
9625 "\t\tchar *const *names);\n"
9626 "\n"
9627 msgstr ""
9628
9629 # type: textblock
9630 #: ../src/guestfs-actions.pod:3118 ../fish/guestfish-actions.pod:2427
9631 msgid ""
9632 "This call allows you to get the extended attributes of multiple files, where "
9633 "all files are in the directory C<path>.  C<names> is the list of files from "
9634 "this directory."
9635 msgstr ""
9636
9637 # type: textblock
9638 #: ../src/guestfs-actions.pod:3122 ../fish/guestfish-actions.pod:2431
9639 msgid ""
9640 "On return you get a flat list of xattr structs which must be interpreted "
9641 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9642 "C<attrval> in this struct is zero-length to indicate there was an error "
9643 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9644 "number (the number of following attributes for this file, which could be C<"
9645 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
9646 "for the first named file.  This repeats for the second and subsequent files."
9647 msgstr ""
9648
9649 # type: textblock
9650 #: ../src/guestfs-actions.pod:3132
9651 msgid ""
9652 "This call is intended for programs that want to efficiently list a directory "
9653 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9654 "a similarly efficient call for getting standard stats.  Very long directory "
9655 "listings might cause the protocol message size to be exceeded, causing this "
9656 "call to fail.  The caller must split up such requests into smaller groups of "
9657 "names."
9658 msgstr ""
9659
9660 # type: =head2
9661 #: ../src/guestfs-actions.pod:3145
9662 msgid "guestfs_mkdir"
9663 msgstr ""
9664
9665 # type: verbatim
9666 #: ../src/guestfs-actions.pod:3147
9667 #, no-wrap
9668 msgid ""
9669 " int guestfs_mkdir (guestfs_h *g,\n"
9670 "\t\tconst char *path);\n"
9671 "\n"
9672 msgstr ""
9673
9674 # type: textblock
9675 #: ../src/guestfs-actions.pod:3150 ../fish/guestfish-actions.pod:2453
9676 msgid "Create a directory named C<path>."
9677 msgstr ""
9678
9679 # type: =head2
9680 #: ../src/guestfs-actions.pod:3154
9681 msgid "guestfs_mkdir_mode"
9682 msgstr ""
9683
9684 # type: verbatim
9685 #: ../src/guestfs-actions.pod:3156
9686 #, no-wrap
9687 msgid ""
9688 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9689 "\t\tconst char *path,\n"
9690 "\t\tint mode);\n"
9691 "\n"
9692 msgstr ""
9693
9694 # type: textblock
9695 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2459
9696 msgid ""
9697 "This command creates a directory, setting the initial permissions of the "
9698 "directory to C<mode>."
9699 msgstr ""
9700
9701 # type: textblock
9702 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2462
9703 msgid ""
9704 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9705 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9706 "other ways."
9707 msgstr ""
9708
9709 # type: textblock
9710 #: ../src/guestfs-actions.pod:3167
9711 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9712 msgstr ""
9713
9714 # type: =head2
9715 #: ../src/guestfs-actions.pod:3171
9716 msgid "guestfs_mkdir_p"
9717 msgstr ""
9718
9719 # type: verbatim
9720 #: ../src/guestfs-actions.pod:3173
9721 #, no-wrap
9722 msgid ""
9723 " int guestfs_mkdir_p (guestfs_h *g,\n"
9724 "\t\tconst char *path);\n"
9725 "\n"
9726 msgstr ""
9727
9728 # type: textblock
9729 #: ../src/guestfs-actions.pod:3176 ../fish/guestfish-actions.pod:2472
9730 msgid ""
9731 "Create a directory named C<path>, creating any parent directories as "
9732 "necessary.  This is like the C<mkdir -p> shell command."
9733 msgstr ""
9734
9735 # type: =head2
9736 #: ../src/guestfs-actions.pod:3181
9737 msgid "guestfs_mkdtemp"
9738 msgstr ""
9739
9740 # type: verbatim
9741 #: ../src/guestfs-actions.pod:3183
9742 #, no-wrap
9743 msgid ""
9744 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9745 "\t\tconst char *template);\n"
9746 "\n"
9747 msgstr ""
9748
9749 # type: textblock
9750 #: ../src/guestfs-actions.pod:3186 ../fish/guestfish-actions.pod:2479
9751 msgid ""
9752 "This command creates a temporary directory.  The C<template> parameter "
9753 "should be a full pathname for the temporary directory name with the final "
9754 "six characters being \"XXXXXX\"."
9755 msgstr ""
9756
9757 # type: textblock
9758 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2484
9759 msgid ""
9760 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9761 "being suitable for Windows filesystems."
9762 msgstr ""
9763
9764 # type: textblock
9765 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2487
9766 msgid "The name of the temporary directory that was created is returned."
9767 msgstr ""
9768
9769 # type: textblock
9770 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2490
9771 msgid "The temporary directory is created with mode 0700 and is owned by root."
9772 msgstr ""
9773
9774 # type: textblock
9775 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2493
9776 msgid ""
9777 "The caller is responsible for deleting the temporary directory and its "
9778 "contents after use."
9779 msgstr ""
9780
9781 # type: textblock
9782 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2496
9783 msgid "See also: L<mkdtemp(3)>"
9784 msgstr ""
9785
9786 # type: =head2
9787 #: ../src/guestfs-actions.pod:3208
9788 msgid "guestfs_mke2fs_J"
9789 msgstr ""
9790
9791 # type: verbatim
9792 #: ../src/guestfs-actions.pod:3210
9793 #, no-wrap
9794 msgid ""
9795 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9796 "\t\tconst char *fstype,\n"
9797 "\t\tint blocksize,\n"
9798 "\t\tconst char *device,\n"
9799 "\t\tconst char *journal);\n"
9800 "\n"
9801 msgstr ""
9802
9803 # type: textblock
9804 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2502
9805 msgid ""
9806 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9807 "C<journal>.  It is equivalent to the command:"
9808 msgstr ""
9809
9810 # type: verbatim
9811 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2506
9812 #, no-wrap
9813 msgid ""
9814 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9815 "\n"
9816 msgstr ""
9817
9818 # type: textblock
9819 #: ../src/guestfs-actions.pod:3222
9820 msgid "See also C<guestfs_mke2journal>."
9821 msgstr ""
9822
9823 # type: =head2
9824 #: ../src/guestfs-actions.pod:3226
9825 msgid "guestfs_mke2fs_JL"
9826 msgstr ""
9827
9828 # type: verbatim
9829 #: ../src/guestfs-actions.pod:3228
9830 #, no-wrap
9831 msgid ""
9832 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9833 "\t\tconst char *fstype,\n"
9834 "\t\tint blocksize,\n"
9835 "\t\tconst char *device,\n"
9836 "\t\tconst char *label);\n"
9837 "\n"
9838 msgstr ""
9839
9840 # type: textblock
9841 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2514
9842 msgid ""
9843 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9844 "the journal labeled C<label>."
9845 msgstr ""
9846
9847 # type: textblock
9848 #: ../src/guestfs-actions.pod:3237
9849 msgid "See also C<guestfs_mke2journal_L>."
9850 msgstr ""
9851
9852 # type: =head2
9853 #: ../src/guestfs-actions.pod:3241
9854 msgid "guestfs_mke2fs_JU"
9855 msgstr ""
9856
9857 # type: verbatim
9858 #: ../src/guestfs-actions.pod:3243
9859 #, no-wrap
9860 msgid ""
9861 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9862 "\t\tconst char *fstype,\n"
9863 "\t\tint blocksize,\n"
9864 "\t\tconst char *device,\n"
9865 "\t\tconst char *uuid);\n"
9866 "\n"
9867 msgstr ""
9868
9869 # type: textblock
9870 #: ../src/guestfs-actions.pod:3249 ../fish/guestfish-actions.pod:2523
9871 msgid ""
9872 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9873 "the journal with UUID C<uuid>."
9874 msgstr ""
9875
9876 # type: textblock
9877 #: ../src/guestfs-actions.pod:3252
9878 msgid "See also C<guestfs_mke2journal_U>."
9879 msgstr ""
9880
9881 # type: =head2
9882 #: ../src/guestfs-actions.pod:3256
9883 msgid "guestfs_mke2journal"
9884 msgstr ""
9885
9886 # type: verbatim
9887 #: ../src/guestfs-actions.pod:3258
9888 #, no-wrap
9889 msgid ""
9890 " int guestfs_mke2journal (guestfs_h *g,\n"
9891 "\t\tint blocksize,\n"
9892 "\t\tconst char *device);\n"
9893 "\n"
9894 msgstr ""
9895
9896 # type: textblock
9897 #: ../src/guestfs-actions.pod:3262 ../fish/guestfish-actions.pod:2532
9898 msgid ""
9899 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9900 "command:"
9901 msgstr ""
9902
9903 # type: verbatim
9904 #: ../src/guestfs-actions.pod:3265 ../fish/guestfish-actions.pod:2535
9905 #, no-wrap
9906 msgid ""
9907 " mke2fs -O journal_dev -b blocksize device\n"
9908 "\n"
9909 msgstr ""
9910
9911 # type: =head2
9912 #: ../src/guestfs-actions.pod:3269
9913 msgid "guestfs_mke2journal_L"
9914 msgstr ""
9915
9916 # type: verbatim
9917 #: ../src/guestfs-actions.pod:3271
9918 #, no-wrap
9919 msgid ""
9920 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9921 "\t\tint blocksize,\n"
9922 "\t\tconst char *label,\n"
9923 "\t\tconst char *device);\n"
9924 "\n"
9925 msgstr ""
9926
9927 # type: textblock
9928 #: ../src/guestfs-actions.pod:3276 ../fish/guestfish-actions.pod:2541
9929 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9930 msgstr ""
9931
9932 # type: =head2
9933 #: ../src/guestfs-actions.pod:3280
9934 msgid "guestfs_mke2journal_U"
9935 msgstr ""
9936
9937 # type: verbatim
9938 #: ../src/guestfs-actions.pod:3282
9939 #, no-wrap
9940 msgid ""
9941 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9942 "\t\tint blocksize,\n"
9943 "\t\tconst char *uuid,\n"
9944 "\t\tconst char *device);\n"
9945 "\n"
9946 msgstr ""
9947
9948 # type: textblock
9949 #: ../src/guestfs-actions.pod:3287 ../fish/guestfish-actions.pod:2547
9950 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9951 msgstr ""
9952
9953 # type: =head2
9954 #: ../src/guestfs-actions.pod:3291
9955 msgid "guestfs_mkfifo"
9956 msgstr ""
9957
9958 # type: verbatim
9959 #: ../src/guestfs-actions.pod:3293
9960 #, no-wrap
9961 msgid ""
9962 " int guestfs_mkfifo (guestfs_h *g,\n"
9963 "\t\tint mode,\n"
9964 "\t\tconst char *path);\n"
9965 "\n"
9966 msgstr ""
9967
9968 # type: textblock
9969 #: ../src/guestfs-actions.pod:3297
9970 msgid ""
9971 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9972 "is just a convenient wrapper around C<guestfs_mknod>."
9973 msgstr ""
9974
9975 # type: =head2
9976 #: ../src/guestfs-actions.pod:3305
9977 msgid "guestfs_mkfs"
9978 msgstr ""
9979
9980 # type: verbatim
9981 #: ../src/guestfs-actions.pod:3307
9982 #, no-wrap
9983 msgid ""
9984 " int guestfs_mkfs (guestfs_h *g,\n"
9985 "\t\tconst char *fstype,\n"
9986 "\t\tconst char *device);\n"
9987 "\n"
9988 msgstr ""
9989
9990 # type: textblock
9991 #: ../src/guestfs-actions.pod:3311 ../fish/guestfish-actions.pod:2563
9992 msgid ""
9993 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9994 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9995 msgstr ""
9996
9997 # type: =head2
9998 #: ../src/guestfs-actions.pod:3317
9999 msgid "guestfs_mkfs_b"
10000 msgstr ""
10001
10002 # type: verbatim
10003 #: ../src/guestfs-actions.pod:3319
10004 #, no-wrap
10005 msgid ""
10006 " int guestfs_mkfs_b (guestfs_h *g,\n"
10007 "\t\tconst char *fstype,\n"
10008 "\t\tint blocksize,\n"
10009 "\t\tconst char *device);\n"
10010 "\n"
10011 msgstr ""
10012
10013 # type: textblock
10014 #: ../src/guestfs-actions.pod:3324
10015 msgid ""
10016 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10017 "block size of the resulting filesystem.  Supported block sizes depend on the "
10018 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10019 msgstr ""
10020
10021 # type: textblock
10022 #: ../src/guestfs-actions.pod:3329 ../fish/guestfish-actions.pod:2576
10023 msgid ""
10024 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10025 "cluster size."
10026 msgstr ""
10027
10028 # type: =head2
10029 #: ../src/guestfs-actions.pod:3334
10030 msgid "guestfs_mkmountpoint"
10031 msgstr ""
10032
10033 # type: verbatim
10034 #: ../src/guestfs-actions.pod:3336
10035 #, no-wrap
10036 msgid ""
10037 " int guestfs_mkmountpoint (guestfs_h *g,\n"
10038 "\t\tconst char *exemptpath);\n"
10039 "\n"
10040 msgstr ""
10041
10042 # type: textblock
10043 #: ../src/guestfs-actions.pod:3339
10044 msgid ""
10045 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10046 "that can be used to create extra mountpoints before mounting the first "
10047 "filesystem."
10048 msgstr ""
10049
10050 # type: textblock
10051 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2587
10052 msgid ""
10053 "These calls are I<only> necessary in some very limited circumstances, mainly "
10054 "the case where you want to mount a mix of unrelated and/or read-only "
10055 "filesystems together."
10056 msgstr ""
10057
10058 # type: textblock
10059 #: ../src/guestfs-actions.pod:3347 ../fish/guestfish-actions.pod:2591
10060 msgid ""
10061 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10062 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10063 "inside that.  You can unpack this as follows in guestfish:"
10064 msgstr ""
10065
10066 # type: verbatim
10067 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2596
10068 #, no-wrap
10069 msgid ""
10070 " add-ro Fedora-11-i686-Live.iso\n"
10071 " run\n"
10072 " mkmountpoint /cd\n"
10073 " mkmountpoint /sqsh\n"
10074 " mkmountpoint /ext3fs\n"
10075 " mount /dev/sda /cd\n"
10076 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10077 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10078 "\n"
10079 msgstr ""
10080
10081 # type: textblock
10082 #: ../src/guestfs-actions.pod:3361 ../fish/guestfish-actions.pod:2605
10083 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10084 msgstr ""
10085
10086 # type: textblock
10087 #: ../src/guestfs-actions.pod:3363
10088 msgid ""
10089 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10090 "may get unexpected errors if you try to mix these calls.  It is safest to "
10091 "manually unmount filesystems and remove mountpoints after use."
10092 msgstr ""
10093
10094 # type: textblock
10095 #: ../src/guestfs-actions.pod:3367
10096 msgid ""
10097 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10098 "first, so for this to work for manual mountpoints, you must ensure that the "
10099 "innermost mountpoints have the longest pathnames, as in the example code "
10100 "above."
10101 msgstr ""
10102
10103 # type: textblock
10104 #: ../src/guestfs-actions.pod:3372 ../fish/guestfish-actions.pod:2616
10105 msgid ""
10106 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10107 msgstr ""
10108
10109 # type: textblock
10110 #: ../src/guestfs-actions.pod:3374
10111 msgid ""
10112 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10113 "means that C<guestfs_umount_all> is called when the handle is closed which "
10114 "can also trigger these issues."
10115 msgstr ""
10116
10117 # type: =head2
10118 #: ../src/guestfs-actions.pod:3380
10119 msgid "guestfs_mknod"
10120 msgstr ""
10121
10122 # type: verbatim
10123 #: ../src/guestfs-actions.pod:3382
10124 #, no-wrap
10125 msgid ""
10126 " int guestfs_mknod (guestfs_h *g,\n"
10127 "\t\tint mode,\n"
10128 "\t\tint devmajor,\n"
10129 "\t\tint devminor,\n"
10130 "\t\tconst char *path);\n"
10131 "\n"
10132 msgstr ""
10133
10134 # type: textblock
10135 #: ../src/guestfs-actions.pod:3388 ../fish/guestfish-actions.pod:2626
10136 msgid ""
10137 "This call creates block or character special devices, or named pipes (FIFOs)."
10138 msgstr ""
10139
10140 # type: textblock
10141 #: ../src/guestfs-actions.pod:3391 ../fish/guestfish-actions.pod:2629
10142 msgid ""
10143 "The C<mode> parameter should be the mode, using the standard constants.  "
10144 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10145 "used when creating block and character special devices."
10146 msgstr ""
10147
10148 # type: textblock
10149 #: ../src/guestfs-actions.pod:3396
10150 msgid ""
10151 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10152 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10153 "regular file).  These constants are available in the standard Linux header "
10154 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10155 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10156 "the appropriate constant for you."
10157 msgstr ""
10158
10159 # type: =head2
10160 #: ../src/guestfs-actions.pod:3408
10161 msgid "guestfs_mknod_b"
10162 msgstr ""
10163
10164 # type: verbatim
10165 #: ../src/guestfs-actions.pod:3410
10166 #, no-wrap
10167 msgid ""
10168 " int guestfs_mknod_b (guestfs_h *g,\n"
10169 "\t\tint mode,\n"
10170 "\t\tint devmajor,\n"
10171 "\t\tint devminor,\n"
10172 "\t\tconst char *path);\n"
10173 "\n"
10174 msgstr ""
10175
10176 # type: textblock
10177 #: ../src/guestfs-actions.pod:3416
10178 msgid ""
10179 "This call creates a block device node called C<path> with mode C<mode> and "
10180 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10181 "wrapper around C<guestfs_mknod>."
10182 msgstr ""
10183
10184 # type: =head2
10185 #: ../src/guestfs-actions.pod:3424
10186 msgid "guestfs_mknod_c"
10187 msgstr ""
10188
10189 # type: verbatim
10190 #: ../src/guestfs-actions.pod:3426
10191 #, no-wrap
10192 msgid ""
10193 " int guestfs_mknod_c (guestfs_h *g,\n"
10194 "\t\tint mode,\n"
10195 "\t\tint devmajor,\n"
10196 "\t\tint devminor,\n"
10197 "\t\tconst char *path);\n"
10198 "\n"
10199 msgstr ""
10200
10201 # type: textblock
10202 #: ../src/guestfs-actions.pod:3432
10203 msgid ""
10204 "This call creates a char device node called C<path> with mode C<mode> and "
10205 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10206 "wrapper around C<guestfs_mknod>."
10207 msgstr ""
10208
10209 # type: =head2
10210 #: ../src/guestfs-actions.pod:3440
10211 msgid "guestfs_mkswap"
10212 msgstr ""
10213
10214 # type: verbatim
10215 #: ../src/guestfs-actions.pod:3442
10216 #, no-wrap
10217 msgid ""
10218 " int guestfs_mkswap (guestfs_h *g,\n"
10219 "\t\tconst char *device);\n"
10220 "\n"
10221 msgstr ""
10222
10223 # type: textblock
10224 #: ../src/guestfs-actions.pod:3445 ../fish/guestfish-actions.pod:2668
10225 msgid "Create a swap partition on C<device>."
10226 msgstr ""
10227
10228 # type: =head2
10229 #: ../src/guestfs-actions.pod:3449
10230 msgid "guestfs_mkswap_L"
10231 msgstr ""
10232
10233 # type: verbatim
10234 #: ../src/guestfs-actions.pod:3451
10235 #, no-wrap
10236 msgid ""
10237 " int guestfs_mkswap_L (guestfs_h *g,\n"
10238 "\t\tconst char *label,\n"
10239 "\t\tconst char *device);\n"
10240 "\n"
10241 msgstr ""
10242
10243 # type: textblock
10244 #: ../src/guestfs-actions.pod:3455 ../fish/guestfish-actions.pod:2674
10245 msgid "Create a swap partition on C<device> with label C<label>."
10246 msgstr ""
10247
10248 # type: textblock
10249 #: ../src/guestfs-actions.pod:3457 ../fish/guestfish-actions.pod:2676
10250 msgid ""
10251 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
10252 "sda>), just to a partition.  This appears to be a limitation of the kernel "
10253 "or swap tools."
10254 msgstr ""
10255
10256 # type: =head2
10257 #: ../src/guestfs-actions.pod:3463
10258 msgid "guestfs_mkswap_U"
10259 msgstr ""
10260
10261 # type: verbatim
10262 #: ../src/guestfs-actions.pod:3465
10263 #, no-wrap
10264 msgid ""
10265 " int guestfs_mkswap_U (guestfs_h *g,\n"
10266 "\t\tconst char *uuid,\n"
10267 "\t\tconst char *device);\n"
10268 "\n"
10269 msgstr ""
10270
10271 # type: textblock
10272 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2684
10273 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10274 msgstr ""
10275
10276 # type: =head2
10277 #: ../src/guestfs-actions.pod:3473
10278 msgid "guestfs_mkswap_file"
10279 msgstr ""
10280
10281 # type: verbatim
10282 #: ../src/guestfs-actions.pod:3475
10283 #, no-wrap
10284 msgid ""
10285 " int guestfs_mkswap_file (guestfs_h *g,\n"
10286 "\t\tconst char *path);\n"
10287 "\n"
10288 msgstr ""
10289
10290 # type: textblock
10291 #: ../src/guestfs-actions.pod:3478 ../fish/guestfish-actions.pod:2690
10292 msgid "Create a swap file."
10293 msgstr ""
10294
10295 # type: textblock
10296 #: ../src/guestfs-actions.pod:3480
10297 msgid ""
10298 "This command just writes a swap file signature to an existing file.  To "
10299 "create the file itself, use something like C<guestfs_fallocate>."
10300 msgstr ""
10301
10302 # type: =head2
10303 #: ../src/guestfs-actions.pod:3485
10304 msgid "guestfs_modprobe"
10305 msgstr ""
10306
10307 # type: verbatim
10308 #: ../src/guestfs-actions.pod:3487
10309 #, no-wrap
10310 msgid ""
10311 " int guestfs_modprobe (guestfs_h *g,\n"
10312 "\t\tconst char *modulename);\n"
10313 "\n"
10314 msgstr ""
10315
10316 # type: textblock
10317 #: ../src/guestfs-actions.pod:3490 ../fish/guestfish-actions.pod:2699
10318 msgid "This loads a kernel module in the appliance."
10319 msgstr ""
10320
10321 # type: textblock
10322 #: ../src/guestfs-actions.pod:3492 ../fish/guestfish-actions.pod:2701
10323 msgid ""
10324 "The kernel module must have been whitelisted when libguestfs was built (see "
10325 "C<appliance/kmod.whitelist.in> in the source)."
10326 msgstr ""
10327
10328 # type: =head2
10329 #: ../src/guestfs-actions.pod:3497
10330 msgid "guestfs_mount"
10331 msgstr ""
10332
10333 # type: verbatim
10334 #: ../src/guestfs-actions.pod:3499
10335 #, no-wrap
10336 msgid ""
10337 " int guestfs_mount (guestfs_h *g,\n"
10338 "\t\tconst char *device,\n"
10339 "\t\tconst char *mountpoint);\n"
10340 "\n"
10341 msgstr ""
10342
10343 # type: textblock
10344 #: ../src/guestfs-actions.pod:3503 ../fish/guestfish-actions.pod:2708
10345 msgid ""
10346 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10347 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10348 "those block devices contain partitions, they will have the usual names (eg. "
10349 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10350 msgstr ""
10351
10352 # type: textblock
10353 #: ../src/guestfs-actions.pod:3509 ../fish/guestfish-actions.pod:2714
10354 msgid ""
10355 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10356 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10357 "mounted on directories which already exist."
10358 msgstr ""
10359
10360 # type: textblock
10361 #: ../src/guestfs-actions.pod:3514 ../fish/guestfish-actions.pod:2719
10362 msgid ""
10363 "The mounted filesystem is writable, if we have sufficient permissions on the "
10364 "underlying device."
10365 msgstr ""
10366
10367 # type: textblock
10368 #: ../src/guestfs-actions.pod:3517
10369 msgid ""
10370 "B<Important note:> When you use this call, the filesystem options C<sync> "
10371 "and C<noatime> are set implicitly.  This was originally done because we "
10372 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10373 "very large negative performance impact and negligible effect on "
10374 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10375 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10376 "(use an empty string for the first parameter if you don't want any options)."
10377 msgstr ""
10378
10379 # type: =head2
10380 #: ../src/guestfs-actions.pod:3529
10381 msgid "guestfs_mount_loop"
10382 msgstr ""
10383
10384 # type: verbatim
10385 #: ../src/guestfs-actions.pod:3531
10386 #, no-wrap
10387 msgid ""
10388 " int guestfs_mount_loop (guestfs_h *g,\n"
10389 "\t\tconst char *file,\n"
10390 "\t\tconst char *mountpoint);\n"
10391 "\n"
10392 msgstr ""
10393
10394 # type: textblock
10395 #: ../src/guestfs-actions.pod:3535 ../fish/guestfish-actions.pod:2736
10396 msgid ""
10397 "This command lets you mount C<file> (a filesystem image in a file) on a "
10398 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10399 "mountpoint>."
10400 msgstr ""
10401
10402 # type: =head2
10403 #: ../src/guestfs-actions.pod:3541
10404 msgid "guestfs_mount_options"
10405 msgstr ""
10406
10407 # type: verbatim
10408 #: ../src/guestfs-actions.pod:3543
10409 #, no-wrap
10410 msgid ""
10411 " int guestfs_mount_options (guestfs_h *g,\n"
10412 "\t\tconst char *options,\n"
10413 "\t\tconst char *device,\n"
10414 "\t\tconst char *mountpoint);\n"
10415 "\n"
10416 msgstr ""
10417
10418 # type: textblock
10419 #: ../src/guestfs-actions.pod:3548
10420 msgid ""
10421 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10422 "the mount options as for the L<mount(8)> I<-o> flag."
10423 msgstr ""
10424
10425 # type: textblock
10426 #: ../src/guestfs-actions.pod:3552 ../fish/guestfish-actions.pod:2748
10427 msgid ""
10428 "If the C<options> parameter is an empty string, then no options are passed "
10429 "(all options default to whatever the filesystem uses)."
10430 msgstr ""
10431
10432 # type: =head2
10433 #: ../src/guestfs-actions.pod:3558
10434 msgid "guestfs_mount_ro"
10435 msgstr ""
10436
10437 # type: verbatim
10438 #: ../src/guestfs-actions.pod:3560
10439 #, no-wrap
10440 msgid ""
10441 " int guestfs_mount_ro (guestfs_h *g,\n"
10442 "\t\tconst char *device,\n"
10443 "\t\tconst char *mountpoint);\n"
10444 "\n"
10445 msgstr ""
10446
10447 # type: textblock
10448 #: ../src/guestfs-actions.pod:3564
10449 msgid ""
10450 "This is the same as the C<guestfs_mount> command, but it mounts the "
10451 "filesystem with the read-only (I<-o ro>) flag."
10452 msgstr ""
10453
10454 # type: =head2
10455 #: ../src/guestfs-actions.pod:3569
10456 msgid "guestfs_mount_vfs"
10457 msgstr ""
10458
10459 # type: verbatim
10460 #: ../src/guestfs-actions.pod:3571
10461 #, no-wrap
10462 msgid ""
10463 " int guestfs_mount_vfs (guestfs_h *g,\n"
10464 "\t\tconst char *options,\n"
10465 "\t\tconst char *vfstype,\n"
10466 "\t\tconst char *device,\n"
10467 "\t\tconst char *mountpoint);\n"
10468 "\n"
10469 msgstr ""
10470
10471 # type: textblock
10472 #: ../src/guestfs-actions.pod:3577
10473 msgid ""
10474 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10475 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
10476 "t> flags."
10477 msgstr ""
10478
10479 # type: =head2
10480 #: ../src/guestfs-actions.pod:3583
10481 msgid "guestfs_mountpoints"
10482 msgstr ""
10483
10484 # type: verbatim
10485 #: ../src/guestfs-actions.pod:3585
10486 #, no-wrap
10487 msgid ""
10488 " char **guestfs_mountpoints (guestfs_h *g);\n"
10489 "\n"
10490 msgstr ""
10491
10492 # type: textblock
10493 #: ../src/guestfs-actions.pod:3587
10494 msgid ""
10495 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10496 "devices.  This one returns a hash table (map) of device name to directory "
10497 "where the device is mounted."
10498 msgstr ""
10499
10500 # type: =head2
10501 #: ../src/guestfs-actions.pod:3597
10502 msgid "guestfs_mounts"
10503 msgstr ""
10504
10505 # type: verbatim
10506 #: ../src/guestfs-actions.pod:3599
10507 #, no-wrap
10508 msgid ""
10509 " char **guestfs_mounts (guestfs_h *g);\n"
10510 "\n"
10511 msgstr ""
10512
10513 # type: textblock
10514 #: ../src/guestfs-actions.pod:3601 ../fish/guestfish-actions.pod:2779
10515 msgid ""
10516 "This returns the list of currently mounted filesystems.  It returns the list "
10517 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10518 msgstr ""
10519
10520 # type: textblock
10521 #: ../src/guestfs-actions.pod:3604 ../fish/guestfish-actions.pod:2782
10522 msgid "Some internal mounts are not shown."
10523 msgstr ""
10524
10525 # type: textblock
10526 #: ../src/guestfs-actions.pod:3606
10527 msgid "See also: C<guestfs_mountpoints>"
10528 msgstr ""
10529
10530 # type: =head2
10531 #: ../src/guestfs-actions.pod:3612
10532 msgid "guestfs_mv"
10533 msgstr ""
10534
10535 # type: verbatim
10536 #: ../src/guestfs-actions.pod:3614
10537 #, no-wrap
10538 msgid ""
10539 " int guestfs_mv (guestfs_h *g,\n"
10540 "\t\tconst char *src,\n"
10541 "\t\tconst char *dest);\n"
10542 "\n"
10543 msgstr ""
10544
10545 # type: textblock
10546 #: ../src/guestfs-actions.pod:3618 ../fish/guestfish-actions.pod:2790
10547 msgid ""
10548 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10549 "destination filename or destination directory."
10550 msgstr ""
10551
10552 # type: =head2
10553 #: ../src/guestfs-actions.pod:3623
10554 msgid "guestfs_ntfs_3g_probe"
10555 msgstr ""
10556
10557 # type: verbatim
10558 #: ../src/guestfs-actions.pod:3625
10559 #, no-wrap
10560 msgid ""
10561 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10562 "\t\tint rw,\n"
10563 "\t\tconst char *device);\n"
10564 "\n"
10565 msgstr ""
10566
10567 # type: textblock
10568 #: ../src/guestfs-actions.pod:3629 ../fish/guestfish-actions.pod:2797
10569 msgid ""
10570 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10571 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
10572 "write, and some cannot be mounted at all)."
10573 msgstr ""
10574
10575 # type: textblock
10576 #: ../src/guestfs-actions.pod:3633 ../fish/guestfish-actions.pod:2801
10577 msgid ""
10578 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10579 "can be mounted read-write.  Set it to false if you want to test if the "
10580 "volume can be mounted read-only."
10581 msgstr ""
10582
10583 # type: textblock
10584 #: ../src/guestfs-actions.pod:3637 ../fish/guestfish-actions.pod:2805
10585 msgid ""
10586 "The return value is an integer which C<0> if the operation would succeed, or "
10587 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10588 msgstr ""
10589
10590 # type: =head2
10591 #: ../src/guestfs-actions.pod:3643
10592 msgid "guestfs_ntfsresize"
10593 msgstr ""
10594
10595 # type: verbatim
10596 #: ../src/guestfs-actions.pod:3645
10597 #, no-wrap
10598 msgid ""
10599 " int guestfs_ntfsresize (guestfs_h *g,\n"
10600 "\t\tconst char *device);\n"
10601 "\n"
10602 msgstr ""
10603
10604 # type: textblock
10605 #: ../src/guestfs-actions.pod:3648 ../fish/guestfish-actions.pod:2813
10606 msgid ""
10607 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10608 "size of the underlying device.  See also L<ntfsresize(8)>."
10609 msgstr ""
10610
10611 # type: =head2
10612 #: ../src/guestfs-actions.pod:3654
10613 msgid "guestfs_ntfsresize_size"
10614 msgstr ""
10615
10616 # type: verbatim
10617 #: ../src/guestfs-actions.pod:3656
10618 #, no-wrap
10619 msgid ""
10620 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
10621 "\t\tconst char *device,\n"
10622 "\t\tint64_t size);\n"
10623 "\n"
10624 msgstr ""
10625
10626 # type: textblock
10627 #: ../src/guestfs-actions.pod:3660
10628 msgid ""
10629 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10630 "to specify the new size (in bytes) explicitly."
10631 msgstr ""
10632
10633 # type: =head2
10634 #: ../src/guestfs-actions.pod:3665
10635 msgid "guestfs_part_add"
10636 msgstr ""
10637
10638 # type: verbatim
10639 #: ../src/guestfs-actions.pod:3667
10640 #, no-wrap
10641 msgid ""
10642 " int guestfs_part_add (guestfs_h *g,\n"
10643 "\t\tconst char *device,\n"
10644 "\t\tconst char *prlogex,\n"
10645 "\t\tint64_t startsect,\n"
10646 "\t\tint64_t endsect);\n"
10647 "\n"
10648 msgstr ""
10649
10650 # type: textblock
10651 #: ../src/guestfs-actions.pod:3673
10652 msgid ""
10653 "This command adds a partition to C<device>.  If there is no partition table "
10654 "on the device, call C<guestfs_part_init> first."
10655 msgstr ""
10656
10657 # type: textblock
10658 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2831
10659 msgid ""
10660 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10661 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10662 "C<logical>) and C<e> (or C<extended>) partition types."
10663 msgstr ""
10664
10665 # type: textblock
10666 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2836
10667 msgid ""
10668 "C<startsect> and C<endsect> are the start and end of the partition in "
10669 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10670 "from the end of the disk (C<-1> is the last sector)."
10671 msgstr ""
10672
10673 # type: textblock
10674 #: ../src/guestfs-actions.pod:3685
10675 msgid ""
10676 "Creating a partition which covers the whole disk is not so easy.  Use "
10677 "C<guestfs_part_disk> to do that."
10678 msgstr ""
10679
10680 # type: =head2
10681 #: ../src/guestfs-actions.pod:3690
10682 msgid "guestfs_part_del"
10683 msgstr ""
10684
10685 # type: verbatim
10686 #: ../src/guestfs-actions.pod:3692
10687 #, no-wrap
10688 msgid ""
10689 " int guestfs_part_del (guestfs_h *g,\n"
10690 "\t\tconst char *device,\n"
10691 "\t\tint partnum);\n"
10692 "\n"
10693 msgstr ""
10694
10695 # type: textblock
10696 #: ../src/guestfs-actions.pod:3696 ../fish/guestfish-actions.pod:2847
10697 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10698 msgstr ""
10699
10700 # type: textblock
10701 #: ../src/guestfs-actions.pod:3698 ../fish/guestfish-actions.pod:2849
10702 msgid ""
10703 "Note that in the case of MBR partitioning, deleting an extended partition "
10704 "also deletes any logical partitions it contains."
10705 msgstr ""
10706
10707 # type: =head2
10708 #: ../src/guestfs-actions.pod:3704
10709 msgid "guestfs_part_disk"
10710 msgstr ""
10711
10712 # type: verbatim
10713 #: ../src/guestfs-actions.pod:3706
10714 #, no-wrap
10715 msgid ""
10716 " int guestfs_part_disk (guestfs_h *g,\n"
10717 "\t\tconst char *device,\n"
10718 "\t\tconst char *parttype);\n"
10719 "\n"
10720 msgstr ""
10721
10722 # type: textblock
10723 #: ../src/guestfs-actions.pod:3710
10724 msgid ""
10725 "This command is simply a combination of C<guestfs_part_init> followed by "
10726 "C<guestfs_part_add> to create a single primary partition covering the whole "
10727 "disk."
10728 msgstr ""
10729
10730 # type: textblock
10731 #: ../src/guestfs-actions.pod:3714
10732 msgid ""
10733 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10734 "possible values are described in C<guestfs_part_init>."
10735 msgstr ""
10736
10737 # type: =head2
10738 #: ../src/guestfs-actions.pod:3722
10739 msgid "guestfs_part_get_bootable"
10740 msgstr ""
10741
10742 # type: verbatim
10743 #: ../src/guestfs-actions.pod:3724
10744 #, no-wrap
10745 msgid ""
10746 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10747 "\t\tconst char *device,\n"
10748 "\t\tint partnum);\n"
10749 "\n"
10750 msgstr ""
10751
10752 # type: textblock
10753 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2871
10754 msgid ""
10755 "This command returns true if the partition C<partnum> on C<device> has the "
10756 "bootable flag set."
10757 msgstr ""
10758
10759 # type: textblock
10760 #: ../src/guestfs-actions.pod:3731
10761 msgid "See also C<guestfs_part_set_bootable>."
10762 msgstr ""
10763
10764 # type: =head2
10765 #: ../src/guestfs-actions.pod:3735
10766 msgid "guestfs_part_get_mbr_id"
10767 msgstr ""
10768
10769 # type: verbatim
10770 #: ../src/guestfs-actions.pod:3737
10771 #, no-wrap
10772 msgid ""
10773 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10774 "\t\tconst char *device,\n"
10775 "\t\tint partnum);\n"
10776 "\n"
10777 msgstr ""
10778
10779 # type: textblock
10780 #: ../src/guestfs-actions.pod:3741 ../fish/guestfish-actions.pod:2880
10781 msgid ""
10782 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10783 "partition C<partnum>."
10784 msgstr ""
10785
10786 # type: textblock
10787 #: ../src/guestfs-actions.pod:3744 ../src/guestfs-actions.pod:3906
10788 msgid ""
10789 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10790 "undefined results for other partition table types (see "
10791 "C<guestfs_part_get_parttype>)."
10792 msgstr ""
10793
10794 # type: =head2
10795 #: ../src/guestfs-actions.pod:3750
10796 msgid "guestfs_part_get_parttype"
10797 msgstr ""
10798
10799 # type: verbatim
10800 #: ../src/guestfs-actions.pod:3752
10801 #, no-wrap
10802 msgid ""
10803 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10804 "\t\tconst char *device);\n"
10805 "\n"
10806 msgstr ""
10807
10808 # type: textblock
10809 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2891
10810 msgid ""
10811 "This command examines the partition table on C<device> and returns the "
10812 "partition table type (format) being used."
10813 msgstr ""
10814
10815 # type: textblock
10816 #: ../src/guestfs-actions.pod:3758
10817 msgid ""
10818 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10819 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10820 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10821 msgstr ""
10822
10823 # type: =head2
10824 #: ../src/guestfs-actions.pod:3766
10825 msgid "guestfs_part_init"
10826 msgstr ""
10827
10828 # type: verbatim
10829 #: ../src/guestfs-actions.pod:3768
10830 #, no-wrap
10831 msgid ""
10832 " int guestfs_part_init (guestfs_h *g,\n"
10833 "\t\tconst char *device,\n"
10834 "\t\tconst char *parttype);\n"
10835 "\n"
10836 msgstr ""
10837
10838 # type: textblock
10839 #: ../src/guestfs-actions.pod:3772 ../fish/guestfish-actions.pod:2903
10840 msgid ""
10841 "This creates an empty partition table on C<device> of one of the partition "
10842 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10843 "(for large disks)."
10844 msgstr ""
10845
10846 # type: textblock
10847 #: ../src/guestfs-actions.pod:3776
10848 msgid ""
10849 "Initially there are no partitions.  Following this, you should call "
10850 "C<guestfs_part_add> for each partition required."
10851 msgstr ""
10852
10853 # type: textblock
10854 #: ../src/guestfs-actions.pod:3779 ../fish/guestfish-actions.pod:2910
10855 msgid "Possible values for C<parttype> are:"
10856 msgstr ""
10857
10858 # type: =item
10859 #: ../src/guestfs-actions.pod:3783 ../fish/guestfish-actions.pod:2914
10860 msgid "B<efi> | B<gpt>"
10861 msgstr ""
10862
10863 # type: textblock
10864 #: ../src/guestfs-actions.pod:3785 ../fish/guestfish-actions.pod:2916
10865 msgid "Intel EFI / GPT partition table."
10866 msgstr ""
10867
10868 # type: textblock
10869 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2918
10870 msgid ""
10871 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10872 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10873 "the C<mbr> format."
10874 msgstr ""
10875
10876 # type: =item
10877 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2922
10878 msgid "B<mbr> | B<msdos>"
10879 msgstr ""
10880
10881 # type: textblock
10882 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2924
10883 msgid ""
10884 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10885 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10886 "TB.  For large disks we recommend using C<gpt>."
10887 msgstr ""
10888
10889 # type: textblock
10890 #: ../src/guestfs-actions.pod:3800 ../fish/guestfish-actions.pod:2931
10891 msgid ""
10892 "Other partition table types that may work but are not supported include:"
10893 msgstr ""
10894
10895 # type: =item
10896 #: ../src/guestfs-actions.pod:3805 ../fish/guestfish-actions.pod:2936
10897 msgid "B<aix>"
10898 msgstr ""
10899
10900 # type: textblock
10901 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2938
10902 msgid "AIX disk labels."
10903 msgstr ""
10904
10905 # type: =item
10906 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2940
10907 msgid "B<amiga> | B<rdb>"
10908 msgstr ""
10909
10910 # type: textblock
10911 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2942
10912 msgid "Amiga \"Rigid Disk Block\" format."
10913 msgstr ""
10914
10915 # type: =item
10916 #: ../src/guestfs-actions.pod:3813 ../fish/guestfish-actions.pod:2944
10917 msgid "B<bsd>"
10918 msgstr ""
10919
10920 # type: textblock
10921 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2946
10922 msgid "BSD disk labels."
10923 msgstr ""
10924
10925 # type: =item
10926 #: ../src/guestfs-actions.pod:3817 ../fish/guestfish-actions.pod:2948
10927 msgid "B<dasd>"
10928 msgstr ""
10929
10930 # type: textblock
10931 #: ../src/guestfs-actions.pod:3819 ../fish/guestfish-actions.pod:2950
10932 msgid "DASD, used on IBM mainframes."
10933 msgstr ""
10934
10935 # type: =item
10936 #: ../src/guestfs-actions.pod:3821 ../fish/guestfish-actions.pod:2952
10937 msgid "B<dvh>"
10938 msgstr ""
10939
10940 # type: textblock
10941 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2954
10942 msgid "MIPS/SGI volumes."
10943 msgstr ""
10944
10945 # type: =item
10946 #: ../src/guestfs-actions.pod:3825 ../fish/guestfish-actions.pod:2956
10947 msgid "B<mac>"
10948 msgstr ""
10949
10950 # type: textblock
10951 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2958
10952 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10953 msgstr ""
10954
10955 # type: =item
10956 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2960
10957 msgid "B<pc98>"
10958 msgstr ""
10959
10960 # type: textblock
10961 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2962
10962 msgid "NEC PC-98 format, common in Japan apparently."
10963 msgstr ""
10964
10965 # type: =item
10966 #: ../src/guestfs-actions.pod:3833 ../fish/guestfish-actions.pod:2964
10967 msgid "B<sun>"
10968 msgstr ""
10969
10970 # type: textblock
10971 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2966
10972 msgid "Sun disk labels."
10973 msgstr ""
10974
10975 # type: =head2
10976 #: ../src/guestfs-actions.pod:3841
10977 msgid "guestfs_part_list"
10978 msgstr ""
10979
10980 # type: verbatim
10981 #: ../src/guestfs-actions.pod:3843
10982 #, no-wrap
10983 msgid ""
10984 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10985 "\t\tconst char *device);\n"
10986 "\n"
10987 msgstr ""
10988
10989 # type: textblock
10990 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2974
10991 msgid ""
10992 "This command parses the partition table on C<device> and returns the list of "
10993 "partitions found."
10994 msgstr ""
10995
10996 # type: textblock
10997 #: ../src/guestfs-actions.pod:3849 ../fish/guestfish-actions.pod:2977
10998 msgid "The fields in the returned structure are:"
10999 msgstr ""
11000
11001 # type: =item
11002 #: ../src/guestfs-actions.pod:3853 ../fish/guestfish-actions.pod:2981
11003 msgid "B<part_num>"
11004 msgstr ""
11005
11006 # type: textblock
11007 #: ../src/guestfs-actions.pod:3855 ../fish/guestfish-actions.pod:2983
11008 msgid "Partition number, counting from 1."
11009 msgstr ""
11010
11011 # type: =item
11012 #: ../src/guestfs-actions.pod:3857 ../fish/guestfish-actions.pod:2985
11013 msgid "B<part_start>"
11014 msgstr ""
11015
11016 # type: textblock
11017 #: ../src/guestfs-actions.pod:3859
11018 msgid ""
11019 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11020 "the device's sector size, see C<guestfs_blockdev_getss>."
11021 msgstr ""
11022
11023 # type: =item
11024 #: ../src/guestfs-actions.pod:3862 ../fish/guestfish-actions.pod:2990
11025 msgid "B<part_end>"
11026 msgstr ""
11027
11028 # type: textblock
11029 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2992
11030 msgid "End of the partition in bytes."
11031 msgstr ""
11032
11033 # type: =item
11034 #: ../src/guestfs-actions.pod:3866 ../fish/guestfish-actions.pod:2994
11035 msgid "B<part_size>"
11036 msgstr ""
11037
11038 # type: textblock
11039 #: ../src/guestfs-actions.pod:3868 ../fish/guestfish-actions.pod:2996
11040 msgid "Size of the partition in bytes."
11041 msgstr ""
11042
11043 # type: textblock
11044 #: ../src/guestfs-actions.pod:3872
11045 msgid ""
11046 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
11047 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11048 "C<guestfs_free_partition_list> after use>."
11049 msgstr ""
11050
11051 # type: =head2
11052 #: ../src/guestfs-actions.pod:3877
11053 msgid "guestfs_part_set_bootable"
11054 msgstr ""
11055
11056 # type: verbatim
11057 #: ../src/guestfs-actions.pod:3879
11058 #, no-wrap
11059 msgid ""
11060 " int guestfs_part_set_bootable (guestfs_h *g,\n"
11061 "\t\tconst char *device,\n"
11062 "\t\tint partnum,\n"
11063 "\t\tint bootable);\n"
11064 "\n"
11065 msgstr ""
11066
11067 # type: textblock
11068 #: ../src/guestfs-actions.pod:3884 ../fish/guestfish-actions.pod:3004
11069 msgid ""
11070 "This sets the bootable flag on partition numbered C<partnum> on device "
11071 "C<device>.  Note that partitions are numbered from 1."
11072 msgstr ""
11073
11074 # type: textblock
11075 #: ../src/guestfs-actions.pod:3887 ../fish/guestfish-actions.pod:3007
11076 msgid ""
11077 "The bootable flag is used by some operating systems (notably Windows) to "
11078 "determine which partition to boot from.  It is by no means universally "
11079 "recognized."
11080 msgstr ""
11081
11082 # type: =head2
11083 #: ../src/guestfs-actions.pod:3893
11084 msgid "guestfs_part_set_mbr_id"
11085 msgstr ""
11086
11087 # type: verbatim
11088 #: ../src/guestfs-actions.pod:3895
11089 #, no-wrap
11090 msgid ""
11091 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
11092 "\t\tconst char *device,\n"
11093 "\t\tint partnum,\n"
11094 "\t\tint idbyte);\n"
11095 "\n"
11096 msgstr ""
11097
11098 # type: textblock
11099 #: ../src/guestfs-actions.pod:3900 ../fish/guestfish-actions.pod:3015
11100 msgid ""
11101 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11102 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11103 "documentation are in fact hexadecimal numbers, but usually documented "
11104 "without any leading \"0x\" which might be confusing."
11105 msgstr ""
11106
11107 # type: =head2
11108 #: ../src/guestfs-actions.pod:3912
11109 msgid "guestfs_part_set_name"
11110 msgstr ""
11111
11112 # type: verbatim
11113 #: ../src/guestfs-actions.pod:3914
11114 #, no-wrap
11115 msgid ""
11116 " int guestfs_part_set_name (guestfs_h *g,\n"
11117 "\t\tconst char *device,\n"
11118 "\t\tint partnum,\n"
11119 "\t\tconst char *name);\n"
11120 "\n"
11121 msgstr ""
11122
11123 # type: textblock
11124 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:3029
11125 msgid ""
11126 "This sets the partition name on partition numbered C<partnum> on device "
11127 "C<device>.  Note that partitions are numbered from 1."
11128 msgstr ""
11129
11130 # type: textblock
11131 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:3032
11132 msgid ""
11133 "The partition name can only be set on certain types of partition table.  "
11134 "This works on C<gpt> but not on C<mbr> partitions."
11135 msgstr ""
11136
11137 # type: =head2
11138 #: ../src/guestfs-actions.pod:3927
11139 msgid "guestfs_part_to_dev"
11140 msgstr ""
11141
11142 # type: verbatim
11143 #: ../src/guestfs-actions.pod:3929
11144 #, no-wrap
11145 msgid ""
11146 " char *guestfs_part_to_dev (guestfs_h *g,\n"
11147 "\t\tconst char *partition);\n"
11148 "\n"
11149 msgstr ""
11150
11151 # type: textblock
11152 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:3039
11153 msgid ""
11154 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11155 "partition number, returning the device name (eg. \"/dev/sdb\")."
11156 msgstr ""
11157
11158 # type: textblock
11159 #: ../src/guestfs-actions.pod:3936
11160 msgid ""
11161 "The named partition must exist, for example as a string returned from "
11162 "C<guestfs_list_partitions>."
11163 msgstr ""
11164
11165 # type: =head2
11166 #: ../src/guestfs-actions.pod:3942
11167 msgid "guestfs_ping_daemon"
11168 msgstr ""
11169
11170 # type: verbatim
11171 #: ../src/guestfs-actions.pod:3944
11172 #, no-wrap
11173 msgid ""
11174 " int guestfs_ping_daemon (guestfs_h *g);\n"
11175 "\n"
11176 msgstr ""
11177
11178 # type: textblock
11179 #: ../src/guestfs-actions.pod:3946 ../fish/guestfish-actions.pod:3050
11180 msgid ""
11181 "This is a test probe into the guestfs daemon running inside the qemu "
11182 "subprocess.  Calling this function checks that the daemon responds to the "
11183 "ping message, without affecting the daemon or attached block device(s) in "
11184 "any other way."
11185 msgstr ""
11186
11187 # type: =head2
11188 #: ../src/guestfs-actions.pod:3953
11189 msgid "guestfs_pread"
11190 msgstr ""
11191
11192 # type: verbatim
11193 #: ../src/guestfs-actions.pod:3955
11194 #, no-wrap
11195 msgid ""
11196 " char *guestfs_pread (guestfs_h *g,\n"
11197 "\t\tconst char *path,\n"
11198 "\t\tint count,\n"
11199 "\t\tint64_t offset,\n"
11200 "\t\tsize_t *size_r);\n"
11201 "\n"
11202 msgstr ""
11203
11204 # type: textblock
11205 #: ../src/guestfs-actions.pod:3961 ../fish/guestfish-actions.pod:3059
11206 msgid ""
11207 "This command lets you read part of a file.  It reads C<count> bytes of the "
11208 "file, starting at C<offset>, from file C<path>."
11209 msgstr ""
11210
11211 # type: textblock
11212 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:3987
11213 #: ../fish/guestfish-actions.pod:3062 ../fish/guestfish-actions.pod:3077
11214 msgid ""
11215 "This may read fewer bytes than requested.  For further details see the "
11216 "L<pread(2)> system call."
11217 msgstr ""
11218
11219 # type: textblock
11220 #: ../src/guestfs-actions.pod:3967
11221 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11222 msgstr ""
11223
11224 # type: =head2
11225 #: ../src/guestfs-actions.pod:3976
11226 msgid "guestfs_pread_device"
11227 msgstr ""
11228
11229 # type: verbatim
11230 #: ../src/guestfs-actions.pod:3978
11231 #, no-wrap
11232 msgid ""
11233 " char *guestfs_pread_device (guestfs_h *g,\n"
11234 "\t\tconst char *device,\n"
11235 "\t\tint count,\n"
11236 "\t\tint64_t offset,\n"
11237 "\t\tsize_t *size_r);\n"
11238 "\n"
11239 msgstr ""
11240
11241 # type: textblock
11242 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:3074
11243 msgid ""
11244 "This command lets you read part of a file.  It reads C<count> bytes of "
11245 "C<device>, starting at C<offset>."
11246 msgstr ""
11247
11248 # type: textblock
11249 #: ../src/guestfs-actions.pod:3990
11250 msgid "See also C<guestfs_pread>."
11251 msgstr ""
11252
11253 # type: =head2
11254 #: ../src/guestfs-actions.pod:3999
11255 msgid "guestfs_pvcreate"
11256 msgstr ""
11257
11258 # type: verbatim
11259 #: ../src/guestfs-actions.pod:4001
11260 #, no-wrap
11261 msgid ""
11262 " int guestfs_pvcreate (guestfs_h *g,\n"
11263 "\t\tconst char *device);\n"
11264 "\n"
11265 msgstr ""
11266
11267 # type: textblock
11268 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:3089
11269 msgid ""
11270 "This creates an LVM physical volume on the named C<device>, where C<device> "
11271 "should usually be a partition name such as C</dev/sda1>."
11272 msgstr ""
11273
11274 # type: =head2
11275 #: ../src/guestfs-actions.pod:4010
11276 msgid "guestfs_pvremove"
11277 msgstr ""
11278
11279 # type: verbatim
11280 #: ../src/guestfs-actions.pod:4012
11281 #, no-wrap
11282 msgid ""
11283 " int guestfs_pvremove (guestfs_h *g,\n"
11284 "\t\tconst char *device);\n"
11285 "\n"
11286 msgstr ""
11287
11288 # type: textblock
11289 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:3097
11290 msgid ""
11291 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11292 "it."
11293 msgstr ""
11294
11295 # type: textblock
11296 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:3100
11297 msgid ""
11298 "The implementation uses the C<pvremove> command which refuses to wipe "
11299 "physical volumes that contain any volume groups, so you have to remove those "
11300 "first."
11301 msgstr ""
11302
11303 # type: =head2
11304 #: ../src/guestfs-actions.pod:4024
11305 msgid "guestfs_pvresize"
11306 msgstr ""
11307
11308 # type: verbatim
11309 #: ../src/guestfs-actions.pod:4026
11310 #, no-wrap
11311 msgid ""
11312 " int guestfs_pvresize (guestfs_h *g,\n"
11313 "\t\tconst char *device);\n"
11314 "\n"
11315 msgstr ""
11316
11317 # type: textblock
11318 #: ../src/guestfs-actions.pod:4029 ../fish/guestfish-actions.pod:3108
11319 msgid ""
11320 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11321 "the new size of the underlying device."
11322 msgstr ""
11323
11324 # type: =head2
11325 #: ../src/guestfs-actions.pod:4034
11326 msgid "guestfs_pvresize_size"
11327 msgstr ""
11328
11329 # type: verbatim
11330 #: ../src/guestfs-actions.pod:4036
11331 #, no-wrap
11332 msgid ""
11333 " int guestfs_pvresize_size (guestfs_h *g,\n"
11334 "\t\tconst char *device,\n"
11335 "\t\tint64_t size);\n"
11336 "\n"
11337 msgstr ""
11338
11339 # type: textblock
11340 #: ../src/guestfs-actions.pod:4040
11341 msgid ""
11342 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11343 "specify the new size (in bytes) explicitly."
11344 msgstr ""
11345
11346 # type: =head2
11347 #: ../src/guestfs-actions.pod:4045
11348 msgid "guestfs_pvs"
11349 msgstr ""
11350
11351 # type: verbatim
11352 #: ../src/guestfs-actions.pod:4047
11353 #, no-wrap
11354 msgid ""
11355 " char **guestfs_pvs (guestfs_h *g);\n"
11356 "\n"
11357 msgstr ""
11358
11359 # type: textblock
11360 #: ../src/guestfs-actions.pod:4049 ../fish/guestfish-actions.pod:3122
11361 msgid ""
11362 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11363 "(8)> command."
11364 msgstr ""
11365
11366 # type: textblock
11367 #: ../src/guestfs-actions.pod:4052 ../fish/guestfish-actions.pod:3125
11368 msgid ""
11369 "This returns a list of just the device names that contain PVs (eg. C</dev/"
11370 "sda2>)."
11371 msgstr ""
11372
11373 # type: textblock
11374 #: ../src/guestfs-actions.pod:4055
11375 msgid "See also C<guestfs_pvs_full>."
11376 msgstr ""
11377
11378 # type: =head2
11379 #: ../src/guestfs-actions.pod:4061
11380 msgid "guestfs_pvs_full"
11381 msgstr ""
11382
11383 # type: verbatim
11384 #: ../src/guestfs-actions.pod:4063
11385 #, no-wrap
11386 msgid ""
11387 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
11388 "\n"
11389 msgstr ""
11390
11391 # type: textblock
11392 #: ../src/guestfs-actions.pod:4065 ../fish/guestfish-actions.pod:3134
11393 msgid ""
11394 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11395 "(8)> command.  The \"full\" version includes all fields."
11396 msgstr ""
11397
11398 # type: textblock
11399 #: ../src/guestfs-actions.pod:4068
11400 msgid ""
11401 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
11402 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11403 "C<guestfs_free_lvm_pv_list> after use>."
11404 msgstr ""
11405
11406 # type: =head2
11407 #: ../src/guestfs-actions.pod:4073
11408 msgid "guestfs_pvuuid"
11409 msgstr ""
11410
11411 # type: verbatim
11412 #: ../src/guestfs-actions.pod:4075
11413 #, no-wrap
11414 msgid ""
11415 " char *guestfs_pvuuid (guestfs_h *g,\n"
11416 "\t\tconst char *device);\n"
11417 "\n"
11418 msgstr ""
11419
11420 # type: textblock
11421 #: ../src/guestfs-actions.pod:4078 ../fish/guestfish-actions.pod:3141
11422 msgid "This command returns the UUID of the LVM PV C<device>."
11423 msgstr ""
11424
11425 # type: =head2
11426 #: ../src/guestfs-actions.pod:4083
11427 msgid "guestfs_pwrite"
11428 msgstr ""
11429
11430 # type: verbatim
11431 #: ../src/guestfs-actions.pod:4085
11432 #, no-wrap
11433 msgid ""
11434 " int guestfs_pwrite (guestfs_h *g,\n"
11435 "\t\tconst char *path,\n"
11436 "\t\tconst char *content,\n"
11437 "\t\tsize_t content_size,\n"
11438 "\t\tint64_t offset);\n"
11439 "\n"
11440 msgstr ""
11441
11442 # type: textblock
11443 #: ../src/guestfs-actions.pod:4091 ../fish/guestfish-actions.pod:3147
11444 msgid ""
11445 "This command writes to part of a file.  It writes the data buffer C<content> "
11446 "to the file C<path> starting at offset C<offset>."
11447 msgstr ""
11448
11449 # type: textblock
11450 #: ../src/guestfs-actions.pod:4094 ../fish/guestfish-actions.pod:3150
11451 msgid ""
11452 "This command implements the L<pwrite(2)> system call, and like that system "
11453 "call it may not write the full data requested.  The return value is the "
11454 "number of bytes that were actually written to the file.  This could even be "
11455 "0, although short writes are unlikely for regular files in ordinary "
11456 "circumstances."
11457 msgstr ""
11458
11459 # type: textblock
11460 #: ../src/guestfs-actions.pod:4100
11461 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11462 msgstr ""
11463
11464 # type: =head2
11465 #: ../src/guestfs-actions.pod:4107
11466 msgid "guestfs_pwrite_device"
11467 msgstr ""
11468
11469 # type: verbatim
11470 #: ../src/guestfs-actions.pod:4109
11471 #, no-wrap
11472 msgid ""
11473 " int guestfs_pwrite_device (guestfs_h *g,\n"
11474 "\t\tconst char *device,\n"
11475 "\t\tconst char *content,\n"
11476 "\t\tsize_t content_size,\n"
11477 "\t\tint64_t offset);\n"
11478 "\n"
11479 msgstr ""
11480
11481 # type: textblock
11482 #: ../src/guestfs-actions.pod:4115 ../fish/guestfish-actions.pod:3165
11483 msgid ""
11484 "This command writes to part of a device.  It writes the data buffer "
11485 "C<content> to C<device> starting at offset C<offset>."
11486 msgstr ""
11487
11488 # type: textblock
11489 #: ../src/guestfs-actions.pod:4118 ../fish/guestfish-actions.pod:3168
11490 msgid ""
11491 "This command implements the L<pwrite(2)> system call, and like that system "
11492 "call it may not write the full data requested (although short writes to disk "
11493 "devices and partitions are probably impossible with standard Linux kernels)."
11494 msgstr ""
11495
11496 # type: textblock
11497 #: ../src/guestfs-actions.pod:4123
11498 msgid "See also C<guestfs_pwrite>."
11499 msgstr ""
11500
11501 # type: =head2
11502 #: ../src/guestfs-actions.pod:4130
11503 msgid "guestfs_read_file"
11504 msgstr ""
11505
11506 # type: verbatim
11507 #: ../src/guestfs-actions.pod:4132
11508 #, no-wrap
11509 msgid ""
11510 " char *guestfs_read_file (guestfs_h *g,\n"
11511 "\t\tconst char *path,\n"
11512 "\t\tsize_t *size_r);\n"
11513 "\n"
11514 msgstr ""
11515
11516 # type: textblock
11517 #: ../src/guestfs-actions.pod:4136 ../fish/guestfish-actions.pod:3182
11518 msgid "This calls returns the contents of the file C<path> as a buffer."
11519 msgstr ""
11520
11521 # type: textblock
11522 #: ../src/guestfs-actions.pod:4139
11523 msgid ""
11524 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11525 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11526 "function is limited in the total size of file that can be handled."
11527 msgstr ""
11528
11529 # type: =head2
11530 #: ../src/guestfs-actions.pod:4151
11531 msgid "guestfs_read_lines"
11532 msgstr ""
11533
11534 # type: verbatim
11535 #: ../src/guestfs-actions.pod:4153
11536 #, no-wrap
11537 msgid ""
11538 " char **guestfs_read_lines (guestfs_h *g,\n"
11539 "\t\tconst char *path);\n"
11540 "\n"
11541 msgstr ""
11542
11543 # type: textblock
11544 #: ../src/guestfs-actions.pod:4158 ../fish/guestfish-actions.pod:3199
11545 msgid ""
11546 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11547 "C<CRLF> character sequences are I<not> returned."
11548 msgstr ""
11549
11550 # type: textblock
11551 #: ../src/guestfs-actions.pod:4161
11552 msgid ""
11553 "Note that this function cannot correctly handle binary files (specifically, "
11554 "files containing C<\\0> character which is treated as end of line).  For "
11555 "those you need to use the C<guestfs_read_file> function which has a more "
11556 "complex interface."
11557 msgstr ""
11558
11559 # type: =head2
11560 #: ../src/guestfs-actions.pod:4170
11561 msgid "guestfs_readdir"
11562 msgstr ""
11563
11564 # type: verbatim
11565 #: ../src/guestfs-actions.pod:4172
11566 #, no-wrap
11567 msgid ""
11568 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
11569 "\t\tconst char *dir);\n"
11570 "\n"
11571 msgstr ""
11572
11573 # type: textblock
11574 #: ../src/guestfs-actions.pod:4175 ../fish/guestfish-actions.pod:3211
11575 msgid "This returns the list of directory entries in directory C<dir>."
11576 msgstr ""
11577
11578 # type: textblock
11579 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:3213
11580 msgid ""
11581 "All entries in the directory are returned, including C<.> and C<..>.  The "
11582 "entries are I<not> sorted, but returned in the same order as the underlying "
11583 "filesystem."
11584 msgstr ""
11585
11586 # type: textblock
11587 #: ../src/guestfs-actions.pod:4181 ../fish/guestfish-actions.pod:3217
11588 msgid ""
11589 "Also this call returns basic file type information about each file.  The "
11590 "C<ftyp> field will contain one of the following characters:"
11591 msgstr ""
11592
11593 # type: =item
11594 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:3222
11595 msgid "'b'"
11596 msgstr ""
11597
11598 # type: textblock
11599 #: ../src/guestfs-actions.pod:4188 ../fish/guestfish-actions.pod:3224
11600 msgid "Block special"
11601 msgstr ""
11602
11603 # type: =item
11604 #: ../src/guestfs-actions.pod:4190 ../fish/guestfish-actions.pod:3226
11605 msgid "'c'"
11606 msgstr ""
11607
11608 # type: textblock
11609 #: ../src/guestfs-actions.pod:4192 ../fish/guestfish-actions.pod:3228
11610 msgid "Char special"
11611 msgstr ""
11612
11613 # type: =item
11614 #: ../src/guestfs-actions.pod:4194 ../fish/guestfish-actions.pod:3230
11615 msgid "'d'"
11616 msgstr ""
11617
11618 # type: textblock
11619 #: ../src/guestfs-actions.pod:4196 ../fish/guestfish-actions.pod:3232
11620 msgid "Directory"
11621 msgstr ""
11622
11623 # type: =item
11624 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:3234
11625 msgid "'f'"
11626 msgstr ""
11627
11628 # type: textblock
11629 #: ../src/guestfs-actions.pod:4200 ../fish/guestfish-actions.pod:3236
11630 msgid "FIFO (named pipe)"
11631 msgstr ""
11632
11633 # type: =item
11634 #: ../src/guestfs-actions.pod:4202 ../fish/guestfish-actions.pod:3238
11635 msgid "'l'"
11636 msgstr ""
11637
11638 # type: textblock
11639 #: ../src/guestfs-actions.pod:4204 ../fish/guestfish-actions.pod:3240
11640 msgid "Symbolic link"
11641 msgstr ""
11642
11643 # type: =item
11644 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:3242
11645 msgid "'r'"
11646 msgstr ""
11647
11648 # type: textblock
11649 #: ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:3244
11650 msgid "Regular file"
11651 msgstr ""
11652
11653 # type: =item
11654 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:3246
11655 msgid "'s'"
11656 msgstr ""
11657
11658 # type: textblock
11659 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:3248
11660 msgid "Socket"
11661 msgstr ""
11662
11663 # type: =item
11664 #: ../src/guestfs-actions.pod:4214 ../fish/guestfish-actions.pod:3250
11665 msgid "'u'"
11666 msgstr ""
11667
11668 # type: textblock
11669 #: ../src/guestfs-actions.pod:4216 ../fish/guestfish-actions.pod:3252
11670 msgid "Unknown file type"
11671 msgstr ""
11672
11673 # type: =item
11674 #: ../src/guestfs-actions.pod:4218 ../fish/guestfish-actions.pod:3254
11675 msgid "'?'"
11676 msgstr ""
11677
11678 # type: textblock
11679 #: ../src/guestfs-actions.pod:4220 ../fish/guestfish-actions.pod:3256
11680 msgid ""
11681 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4225
11686 msgid ""
11687 "This function is primarily intended for use by programs.  To get a simple "
11688 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11689 "consumption, use C<guestfs_ll>."
11690 msgstr ""
11691
11692 # type: textblock
11693 #: ../src/guestfs-actions.pod:4229
11694 msgid ""
11695 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
11696 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11697 "C<guestfs_free_dirent_list> after use>."
11698 msgstr ""
11699
11700 # type: =head2
11701 #: ../src/guestfs-actions.pod:4234
11702 msgid "guestfs_readlink"
11703 msgstr ""
11704
11705 # type: verbatim
11706 #: ../src/guestfs-actions.pod:4236
11707 #, no-wrap
11708 msgid ""
11709 " char *guestfs_readlink (guestfs_h *g,\n"
11710 "\t\tconst char *path);\n"
11711 "\n"
11712 msgstr ""
11713
11714 # type: textblock
11715 #: ../src/guestfs-actions.pod:4239 ../fish/guestfish-actions.pod:3269
11716 msgid "This command reads the target of a symbolic link."
11717 msgstr ""
11718
11719 # type: =head2
11720 #: ../src/guestfs-actions.pod:4244
11721 msgid "guestfs_readlinklist"
11722 msgstr ""
11723
11724 # type: verbatim
11725 #: ../src/guestfs-actions.pod:4246
11726 #, no-wrap
11727 msgid ""
11728 " char **guestfs_readlinklist (guestfs_h *g,\n"
11729 "\t\tconst char *path,\n"
11730 "\t\tchar *const *names);\n"
11731 "\n"
11732 msgstr ""
11733
11734 # type: textblock
11735 #: ../src/guestfs-actions.pod:4250 ../fish/guestfish-actions.pod:3275
11736 msgid ""
11737 "This call allows you to do a C<readlink> operation on multiple files, where "
11738 "all files are in the directory C<path>.  C<names> is the list of files from "
11739 "this directory."
11740 msgstr ""
11741
11742 # type: textblock
11743 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:3279
11744 msgid ""
11745 "On return you get a list of strings, with a one-to-one correspondence to the "
11746 "C<names> list.  Each string is the value of the symbolic link."
11747 msgstr ""
11748
11749 # type: textblock
11750 #: ../src/guestfs-actions.pod:4258 ../fish/guestfish-actions.pod:3283
11751 msgid ""
11752 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11753 "result string is the empty string C<\"\">.  However the whole operation is "
11754 "completed even if there were C<readlink(2)> errors, and so you can call this "
11755 "function with names where you don't know if they are symbolic links already "
11756 "(albeit slightly less efficient)."
11757 msgstr ""
11758
11759 # type: textblock
11760 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:3290
11761 msgid ""
11762 "This call is intended for programs that want to efficiently list a directory "
11763 "contents without making many round-trips.  Very long directory listings "
11764 "might cause the protocol message size to be exceeded, causing this call to "
11765 "fail.  The caller must split up such requests into smaller groups of names."
11766 msgstr ""
11767
11768 # type: =head2
11769 #: ../src/guestfs-actions.pod:4276
11770 msgid "guestfs_realpath"
11771 msgstr ""
11772
11773 # type: verbatim
11774 #: ../src/guestfs-actions.pod:4278
11775 #, no-wrap
11776 msgid ""
11777 " char *guestfs_realpath (guestfs_h *g,\n"
11778 "\t\tconst char *path);\n"
11779 "\n"
11780 msgstr ""
11781
11782 # type: textblock
11783 #: ../src/guestfs-actions.pod:4281 ../fish/guestfish-actions.pod:3301
11784 msgid ""
11785 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11786 "has no C<.>, C<..> or symbolic link path elements."
11787 msgstr ""
11788
11789 # type: =head2
11790 #: ../src/guestfs-actions.pod:4287
11791 msgid "guestfs_removexattr"
11792 msgstr ""
11793
11794 # type: verbatim
11795 #: ../src/guestfs-actions.pod:4289
11796 #, no-wrap
11797 msgid ""
11798 " int guestfs_removexattr (guestfs_h *g,\n"
11799 "\t\tconst char *xattr,\n"
11800 "\t\tconst char *path);\n"
11801 "\n"
11802 msgstr ""
11803
11804 # type: textblock
11805 #: ../src/guestfs-actions.pod:4293 ../fish/guestfish-actions.pod:3308
11806 msgid ""
11807 "This call removes the extended attribute named C<xattr> of the file C<path>."
11808 msgstr ""
11809
11810 # type: textblock
11811 #: ../src/guestfs-actions.pod:4296
11812 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11813 msgstr ""
11814
11815 # type: =head2
11816 #: ../src/guestfs-actions.pod:4300
11817 msgid "guestfs_resize2fs"
11818 msgstr ""
11819
11820 # type: verbatim
11821 #: ../src/guestfs-actions.pod:4302
11822 #, no-wrap
11823 msgid ""
11824 " int guestfs_resize2fs (guestfs_h *g,\n"
11825 "\t\tconst char *device);\n"
11826 "\n"
11827 msgstr ""
11828
11829 # type: textblock
11830 #: ../src/guestfs-actions.pod:4305 ../fish/guestfish-actions.pod:3317
11831 msgid ""
11832 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11833 "underlying device."
11834 msgstr ""
11835
11836 # type: textblock
11837 #: ../src/guestfs-actions.pod:4308
11838 msgid ""
11839 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11840 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11841 "sometimes gives an error about this and sometimes not.  In any case, it is "
11842 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11843 msgstr ""
11844
11845 # type: =head2
11846 #: ../src/guestfs-actions.pod:4316
11847 msgid "guestfs_resize2fs_size"
11848 msgstr ""
11849
11850 # type: verbatim
11851 #: ../src/guestfs-actions.pod:4318
11852 #, no-wrap
11853 msgid ""
11854 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11855 "\t\tconst char *device,\n"
11856 "\t\tint64_t size);\n"
11857 "\n"
11858 msgstr ""
11859
11860 # type: textblock
11861 #: ../src/guestfs-actions.pod:4322
11862 msgid ""
11863 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11864 "to specify the new size (in bytes) explicitly."
11865 msgstr ""
11866
11867 # type: =head2
11868 #: ../src/guestfs-actions.pod:4327
11869 msgid "guestfs_rm"
11870 msgstr ""
11871
11872 # type: verbatim
11873 #: ../src/guestfs-actions.pod:4329
11874 #, no-wrap
11875 msgid ""
11876 " int guestfs_rm (guestfs_h *g,\n"
11877 "\t\tconst char *path);\n"
11878 "\n"
11879 msgstr ""
11880
11881 # type: textblock
11882 #: ../src/guestfs-actions.pod:4332 ../fish/guestfish-actions.pod:3337
11883 msgid "Remove the single file C<path>."
11884 msgstr ""
11885
11886 # type: =head2
11887 #: ../src/guestfs-actions.pod:4336
11888 msgid "guestfs_rm_rf"
11889 msgstr ""
11890
11891 # type: verbatim
11892 #: ../src/guestfs-actions.pod:4338
11893 #, no-wrap
11894 msgid ""
11895 " int guestfs_rm_rf (guestfs_h *g,\n"
11896 "\t\tconst char *path);\n"
11897 "\n"
11898 msgstr ""
11899
11900 # type: textblock
11901 #: ../src/guestfs-actions.pod:4341 ../fish/guestfish-actions.pod:3343
11902 msgid ""
11903 "Remove the file or directory C<path>, recursively removing the contents if "
11904 "its a directory.  This is like the C<rm -rf> shell command."
11905 msgstr ""
11906
11907 # type: =head2
11908 #: ../src/guestfs-actions.pod:4347
11909 msgid "guestfs_rmdir"
11910 msgstr ""
11911
11912 # type: verbatim
11913 #: ../src/guestfs-actions.pod:4349
11914 #, no-wrap
11915 msgid ""
11916 " int guestfs_rmdir (guestfs_h *g,\n"
11917 "\t\tconst char *path);\n"
11918 "\n"
11919 msgstr ""
11920
11921 # type: textblock
11922 #: ../src/guestfs-actions.pod:4352 ../fish/guestfish-actions.pod:3351
11923 msgid "Remove the single directory C<path>."
11924 msgstr ""
11925
11926 # type: =head2
11927 #: ../src/guestfs-actions.pod:4356
11928 msgid "guestfs_rmmountpoint"
11929 msgstr ""
11930
11931 # type: verbatim
11932 #: ../src/guestfs-actions.pod:4358
11933 #, no-wrap
11934 msgid ""
11935 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11936 "\t\tconst char *exemptpath);\n"
11937 "\n"
11938 msgstr ""
11939
11940 # type: textblock
11941 #: ../src/guestfs-actions.pod:4361
11942 msgid ""
11943 "This calls removes a mountpoint that was previously created with "
11944 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11945 msgstr ""
11946
11947 # type: =head2
11948 #: ../src/guestfs-actions.pod:4367
11949 msgid "guestfs_scrub_device"
11950 msgstr ""
11951
11952 # type: verbatim
11953 #: ../src/guestfs-actions.pod:4369
11954 #, no-wrap
11955 msgid ""
11956 " int guestfs_scrub_device (guestfs_h *g,\n"
11957 "\t\tconst char *device);\n"
11958 "\n"
11959 msgstr ""
11960
11961 # type: textblock
11962 #: ../src/guestfs-actions.pod:4372 ../fish/guestfish-actions.pod:3365
11963 msgid ""
11964 "This command writes patterns over C<device> to make data retrieval more "
11965 "difficult."
11966 msgstr ""
11967
11968 # type: textblock
11969 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4393
11970 #: ../src/guestfs-actions.pod:4409 ../fish/guestfish-actions.pod:3368
11971 #: ../fish/guestfish-actions.pod:3383 ../fish/guestfish-actions.pod:3396
11972 msgid ""
11973 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11974 "more details."
11975 msgstr ""
11976
11977 # type: =head2
11978 #: ../src/guestfs-actions.pod:4383
11979 msgid "guestfs_scrub_file"
11980 msgstr ""
11981
11982 # type: verbatim
11983 #: ../src/guestfs-actions.pod:4385
11984 #, no-wrap
11985 msgid ""
11986 " int guestfs_scrub_file (guestfs_h *g,\n"
11987 "\t\tconst char *file);\n"
11988 "\n"
11989 msgstr ""
11990
11991 # type: textblock
11992 #: ../src/guestfs-actions.pod:4388 ../fish/guestfish-actions.pod:3378
11993 msgid ""
11994 "This command writes patterns over a file to make data retrieval more "
11995 "difficult."
11996 msgstr ""
11997
11998 # type: textblock
11999 #: ../src/guestfs-actions.pod:4391 ../fish/guestfish-actions.pod:3381
12000 msgid "The file is I<removed> after scrubbing."
12001 msgstr ""
12002
12003 # type: =head2
12004 #: ../src/guestfs-actions.pod:4398
12005 msgid "guestfs_scrub_freespace"
12006 msgstr ""
12007
12008 # type: verbatim
12009 #: ../src/guestfs-actions.pod:4400
12010 #, no-wrap
12011 msgid ""
12012 " int guestfs_scrub_freespace (guestfs_h *g,\n"
12013 "\t\tconst char *dir);\n"
12014 "\n"
12015 msgstr ""
12016
12017 # type: textblock
12018 #: ../src/guestfs-actions.pod:4403
12019 msgid ""
12020 "This command creates the directory C<dir> and then fills it with files until "
12021 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12022 "and deletes them.  The intention is to scrub any free space on the partition "
12023 "containing C<dir>."
12024 msgstr ""
12025
12026 # type: =head2
12027 #: ../src/guestfs-actions.pod:4414
12028 msgid "guestfs_set_append"
12029 msgstr ""
12030
12031 # type: verbatim
12032 #: ../src/guestfs-actions.pod:4416
12033 #, no-wrap
12034 msgid ""
12035 " int guestfs_set_append (guestfs_h *g,\n"
12036 "\t\tconst char *append);\n"
12037 "\n"
12038 msgstr ""
12039
12040 # type: textblock
12041 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:3405
12042 msgid ""
12043 "This function is used to add additional options to the guest kernel command "
12044 "line."
12045 msgstr ""
12046
12047 # type: textblock
12048 #: ../src/guestfs-actions.pod:4422 ../fish/guestfish-actions.pod:3408
12049 msgid ""
12050 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12051 "environment variable."
12052 msgstr ""
12053
12054 # type: textblock
12055 #: ../src/guestfs-actions.pod:4425 ../fish/guestfish-actions.pod:3411
12056 msgid ""
12057 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12058 "(libguestfs always adds a few of its own)."
12059 msgstr ""
12060
12061 # type: =head2
12062 #: ../src/guestfs-actions.pod:4430
12063 msgid "guestfs_set_autosync"
12064 msgstr ""
12065
12066 # type: verbatim
12067 #: ../src/guestfs-actions.pod:4432
12068 #, no-wrap
12069 msgid ""
12070 " int guestfs_set_autosync (guestfs_h *g,\n"
12071 "\t\tint autosync);\n"
12072 "\n"
12073 msgstr ""
12074
12075 # type: textblock
12076 #: ../src/guestfs-actions.pod:4435
12077 msgid ""
12078 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12079 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12080 "the handle is closed (also if the program exits without closing handles)."
12081 msgstr ""
12082
12083 # type: textblock
12084 #: ../src/guestfs-actions.pod:4440 ../fish/guestfish-actions.pod:3425
12085 msgid ""
12086 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12087 "disabled by default)."
12088 msgstr ""
12089
12090 # type: =head2
12091 #: ../src/guestfs-actions.pod:4445
12092 msgid "guestfs_set_direct"
12093 msgstr ""
12094
12095 # type: verbatim
12096 #: ../src/guestfs-actions.pod:4447
12097 #, no-wrap
12098 msgid ""
12099 " int guestfs_set_direct (guestfs_h *g,\n"
12100 "\t\tint direct);\n"
12101 "\n"
12102 msgstr ""
12103
12104 # type: textblock
12105 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:3434
12106 msgid ""
12107 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12108 "passed directly through to the appliance once it is launched."
12109 msgstr ""
12110
12111 # type: textblock
12112 #: ../src/guestfs-actions.pod:4454
12113 msgid ""
12114 "One consequence of this is that log messages aren't caught by the library "
12115 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12116 "stdout."
12117 msgstr ""
12118
12119 # type: textblock
12120 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:3442
12121 msgid "You probably don't want to use this unless you know what you are doing."
12122 msgstr ""
12123
12124 # type: textblock
12125 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:3445
12126 msgid "The default is disabled."
12127 msgstr ""
12128
12129 # type: =head2
12130 #: ../src/guestfs-actions.pod:4465
12131 msgid "guestfs_set_e2label"
12132 msgstr ""
12133
12134 # type: verbatim
12135 #: ../src/guestfs-actions.pod:4467
12136 #, no-wrap
12137 msgid ""
12138 " int guestfs_set_e2label (guestfs_h *g,\n"
12139 "\t\tconst char *device,\n"
12140 "\t\tconst char *label);\n"
12141 "\n"
12142 msgstr ""
12143
12144 # type: textblock
12145 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3451
12146 msgid ""
12147 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12148 "C<label>.  Filesystem labels are limited to 16 characters."
12149 msgstr ""
12150
12151 # type: textblock
12152 #: ../src/guestfs-actions.pod:4475
12153 msgid ""
12154 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12155 "the existing label on a filesystem."
12156 msgstr ""
12157
12158 # type: =head2
12159 #: ../src/guestfs-actions.pod:4480
12160 msgid "guestfs_set_e2uuid"
12161 msgstr ""
12162
12163 # type: verbatim
12164 #: ../src/guestfs-actions.pod:4482
12165 #, no-wrap
12166 msgid ""
12167 " int guestfs_set_e2uuid (guestfs_h *g,\n"
12168 "\t\tconst char *device,\n"
12169 "\t\tconst char *uuid);\n"
12170 "\n"
12171 msgstr ""
12172
12173 # type: textblock
12174 #: ../src/guestfs-actions.pod:4486 ../fish/guestfish-actions.pod:3462
12175 msgid ""
12176 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12177 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12178 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12179 msgstr ""
12180
12181 # type: textblock
12182 #: ../src/guestfs-actions.pod:4491
12183 msgid ""
12184 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12185 "the existing UUID of a filesystem."
12186 msgstr ""
12187
12188 # type: =head2
12189 #: ../src/guestfs-actions.pod:4496
12190 msgid "guestfs_set_memsize"
12191 msgstr ""
12192
12193 # type: verbatim
12194 #: ../src/guestfs-actions.pod:4498
12195 #, no-wrap
12196 msgid ""
12197 " int guestfs_set_memsize (guestfs_h *g,\n"
12198 "\t\tint memsize);\n"
12199 "\n"
12200 msgstr ""
12201
12202 # type: textblock
12203 #: ../src/guestfs-actions.pod:4501
12204 msgid ""
12205 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12206 "This only has any effect if called before C<guestfs_launch>."
12207 msgstr ""
12208
12209 # type: textblock
12210 #: ../src/guestfs-actions.pod:4505 ../fish/guestfish-actions.pod:3480
12211 msgid ""
12212 "You can also change this by setting the environment variable "
12213 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12214 msgstr ""
12215
12216 # type: =head2
12217 #: ../src/guestfs-actions.pod:4514
12218 msgid "guestfs_set_network"
12219 msgstr ""
12220
12221 # type: verbatim
12222 #: ../src/guestfs-actions.pod:4516
12223 #, no-wrap
12224 msgid ""
12225 " int guestfs_set_network (guestfs_h *g,\n"
12226 "\t\tint network);\n"
12227 "\n"
12228 msgstr ""
12229
12230 # type: textblock
12231 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3493
12232 msgid ""
12233 "If C<network> is true, then the network is enabled in the libguestfs "
12234 "appliance.  The default is false."
12235 msgstr ""
12236
12237 # type: textblock
12238 #: ../src/guestfs-actions.pod:4522 ../fish/guestfish-actions.pod:3496
12239 msgid ""
12240 "This affects whether commands are able to access the network (see L<guestfs"
12241 "(3)/RUNNING COMMANDS>)."
12242 msgstr ""
12243
12244 # type: textblock
12245 #: ../src/guestfs-actions.pod:4525
12246 msgid ""
12247 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12248 "effect."
12249 msgstr ""
12250
12251 # type: =head2
12252 #: ../src/guestfs-actions.pod:4530
12253 msgid "guestfs_set_path"
12254 msgstr ""
12255
12256 # type: verbatim
12257 #: ../src/guestfs-actions.pod:4532
12258 #, no-wrap
12259 msgid ""
12260 " int guestfs_set_path (guestfs_h *g,\n"
12261 "\t\tconst char *searchpath);\n"
12262 "\n"
12263 msgstr ""
12264
12265 # type: textblock
12266 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3508
12267 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12268 msgstr ""
12269
12270 # type: textblock
12271 #: ../src/guestfs-actions.pod:4537 ../fish/guestfish-actions.pod:3510
12272 msgid ""
12273 "The default is C<$libdir/guestfs> unless overridden by setting "
12274 "C<LIBGUESTFS_PATH> environment variable."
12275 msgstr ""
12276
12277 # type: textblock
12278 #: ../src/guestfs-actions.pod:4540 ../fish/guestfish-actions.pod:3513
12279 msgid "Setting C<path> to C<NULL> restores the default path."
12280 msgstr ""
12281
12282 # type: =head2
12283 #: ../src/guestfs-actions.pod:4544
12284 msgid "guestfs_set_qemu"
12285 msgstr ""
12286
12287 # type: verbatim
12288 #: ../src/guestfs-actions.pod:4546
12289 #, no-wrap
12290 msgid ""
12291 " int guestfs_set_qemu (guestfs_h *g,\n"
12292 "\t\tconst char *qemu);\n"
12293 "\n"
12294 msgstr ""
12295
12296 # type: textblock
12297 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3521
12298 msgid "Set the qemu binary that we will use."
12299 msgstr ""
12300
12301 # type: textblock
12302 #: ../src/guestfs-actions.pod:4551 ../fish/guestfish-actions.pod:3523
12303 msgid ""
12304 "The default is chosen when the library was compiled by the configure script."
12305 msgstr ""
12306
12307 # type: textblock
12308 #: ../src/guestfs-actions.pod:4554 ../fish/guestfish-actions.pod:3526
12309 msgid ""
12310 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12311 "variable."
12312 msgstr ""
12313
12314 # type: textblock
12315 #: ../src/guestfs-actions.pod:4557 ../fish/guestfish-actions.pod:3529
12316 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12317 msgstr ""
12318
12319 # type: textblock
12320 #: ../src/guestfs-actions.pod:4559 ../fish/guestfish-actions.pod:3531
12321 msgid ""
12322 "Note that you should call this function as early as possible after creating "
12323 "the handle.  This is because some pre-launch operations depend on testing "
12324 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12325 "don't retest features, and so you might see inconsistent results.  Using the "
12326 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12327 "the qemu binary at the same time as the handle is created."
12328 msgstr ""
12329
12330 # type: =head2
12331 #: ../src/guestfs-actions.pod:4569
12332 msgid "guestfs_set_recovery_proc"
12333 msgstr ""
12334
12335 # type: verbatim
12336 #: ../src/guestfs-actions.pod:4571
12337 #, no-wrap
12338 msgid ""
12339 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
12340 "\t\tint recoveryproc);\n"
12341 "\n"
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4574
12346 msgid ""
12347 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12348 "not create a recovery process.  The purpose of the recovery process is to "
12349 "stop runaway qemu processes in the case where the main program aborts "
12350 "abruptly."
12351 msgstr ""
12352
12353 # type: textblock
12354 #: ../src/guestfs-actions.pod:4579
12355 msgid ""
12356 "This only has any effect if called before C<guestfs_launch>, and the default "
12357 "is true."
12358 msgstr ""
12359
12360 # type: textblock
12361 #: ../src/guestfs-actions.pod:4582 ../fish/guestfish-actions.pod:3553
12362 msgid ""
12363 "About the only time when you would want to disable this is if the main "
12364 "process will fork itself into the background (\"daemonize\" itself).  In "
12365 "this case the recovery process thinks that the main program has disappeared "
12366 "and so kills qemu, which is not very helpful."
12367 msgstr ""
12368
12369 # type: =head2
12370 #: ../src/guestfs-actions.pod:4590
12371 msgid "guestfs_set_selinux"
12372 msgstr ""
12373
12374 # type: verbatim
12375 #: ../src/guestfs-actions.pod:4592
12376 #, no-wrap
12377 msgid ""
12378 " int guestfs_set_selinux (guestfs_h *g,\n"
12379 "\t\tint selinux);\n"
12380 "\n"
12381 msgstr ""
12382
12383 # type: textblock
12384 #: ../src/guestfs-actions.pod:4595 ../fish/guestfish-actions.pod:3565
12385 msgid ""
12386 "This sets the selinux flag that is passed to the appliance at boot time.  "
12387 "The default is C<selinux=0> (disabled)."
12388 msgstr ""
12389
12390 # type: textblock
12391 #: ../src/guestfs-actions.pod:4598 ../fish/guestfish-actions.pod:3568
12392 msgid ""
12393 "Note that if SELinux is enabled, it is always in Permissive mode "
12394 "(C<enforcing=0>)."
12395 msgstr ""
12396
12397 # type: =head2
12398 #: ../src/guestfs-actions.pod:4606
12399 msgid "guestfs_set_trace"
12400 msgstr ""
12401
12402 # type: verbatim
12403 #: ../src/guestfs-actions.pod:4608
12404 #, no-wrap
12405 msgid ""
12406 " int guestfs_set_trace (guestfs_h *g,\n"
12407 "\t\tint trace);\n"
12408 "\n"
12409 msgstr ""
12410
12411 # type: textblock
12412 #: ../src/guestfs-actions.pod:4611 ../fish/guestfish-actions.pod:3580
12413 msgid ""
12414 "If the command trace flag is set to 1, then commands are printed on stderr "
12415 "before they are executed in a format which is very similar to the one used "
12416 "by guestfish.  In other words, you can run a program with this enabled, and "
12417 "you will get out a script which you can feed to guestfish to perform the "
12418 "same set of actions."
12419 msgstr ""
12420
12421 # type: textblock
12422 #: ../src/guestfs-actions.pod:4618 ../fish/guestfish-actions.pod:3587
12423 msgid ""
12424 "If you want to trace C API calls into libguestfs (and other libraries) then "
12425 "possibly a better way is to use the external ltrace(1) command."
12426 msgstr ""
12427
12428 # type: textblock
12429 #: ../src/guestfs-actions.pod:4622 ../fish/guestfish-actions.pod:3591
12430 msgid ""
12431 "Command traces are disabled unless the environment variable "
12432 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12433 msgstr ""
12434
12435 # type: =head2
12436 #: ../src/guestfs-actions.pod:4627
12437 msgid "guestfs_set_verbose"
12438 msgstr ""
12439
12440 # type: verbatim
12441 #: ../src/guestfs-actions.pod:4629
12442 #, no-wrap
12443 msgid ""
12444 " int guestfs_set_verbose (guestfs_h *g,\n"
12445 "\t\tint verbose);\n"
12446 "\n"
12447 msgstr ""
12448
12449 # type: textblock
12450 #: ../src/guestfs-actions.pod:4632 ../fish/guestfish-actions.pod:3600
12451 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12452 msgstr ""
12453
12454 # type: textblock
12455 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3602
12456 msgid ""
12457 "Verbose messages are disabled unless the environment variable "
12458 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12459 msgstr ""
12460
12461 # type: =head2
12462 #: ../src/guestfs-actions.pod:4639
12463 msgid "guestfs_setcon"
12464 msgstr ""
12465
12466 # type: verbatim
12467 #: ../src/guestfs-actions.pod:4641
12468 #, no-wrap
12469 msgid ""
12470 " int guestfs_setcon (guestfs_h *g,\n"
12471 "\t\tconst char *context);\n"
12472 "\n"
12473 msgstr ""
12474
12475 # type: textblock
12476 #: ../src/guestfs-actions.pod:4644 ../fish/guestfish-actions.pod:3609
12477 msgid ""
12478 "This sets the SELinux security context of the daemon to the string "
12479 "C<context>."
12480 msgstr ""
12481
12482 # type: textblock
12483 #: ../src/guestfs-actions.pod:4647 ../fish/guestfish-actions.pod:3612
12484 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12485 msgstr ""
12486
12487 # type: =head2
12488 #: ../src/guestfs-actions.pod:4651
12489 msgid "guestfs_setxattr"
12490 msgstr ""
12491
12492 # type: verbatim
12493 #: ../src/guestfs-actions.pod:4653
12494 #, no-wrap
12495 msgid ""
12496 " int guestfs_setxattr (guestfs_h *g,\n"
12497 "\t\tconst char *xattr,\n"
12498 "\t\tconst char *val,\n"
12499 "\t\tint vallen,\n"
12500 "\t\tconst char *path);\n"
12501 "\n"
12502 msgstr ""
12503
12504 # type: textblock
12505 #: ../src/guestfs-actions.pod:4659 ../fish/guestfish-actions.pod:3618
12506 msgid ""
12507 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12508 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12509 msgstr ""
12510
12511 # type: textblock
12512 #: ../src/guestfs-actions.pod:4663
12513 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12514 msgstr ""
12515
12516 # type: =head2
12517 #: ../src/guestfs-actions.pod:4667
12518 msgid "guestfs_sfdisk"
12519 msgstr ""
12520
12521 # type: verbatim
12522 #: ../src/guestfs-actions.pod:4669
12523 #, no-wrap
12524 msgid ""
12525 " int guestfs_sfdisk (guestfs_h *g,\n"
12526 "\t\tconst char *device,\n"
12527 "\t\tint cyls,\n"
12528 "\t\tint heads,\n"
12529 "\t\tint sectors,\n"
12530 "\t\tchar *const *lines);\n"
12531 "\n"
12532 msgstr ""
12533
12534 # type: textblock
12535 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3628
12536 msgid ""
12537 "This is a direct interface to the L<sfdisk(8)> program for creating "
12538 "partitions on block devices."
12539 msgstr ""
12540
12541 # type: textblock
12542 #: ../src/guestfs-actions.pod:4679 ../fish/guestfish-actions.pod:3631
12543 msgid "C<device> should be a block device, for example C</dev/sda>."
12544 msgstr ""
12545
12546 # type: textblock
12547 #: ../src/guestfs-actions.pod:4681 ../fish/guestfish-actions.pod:3633
12548 msgid ""
12549 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12550 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
12551 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12552 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12553 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12554 "the kernel) cannot work out the right geometry and you will need to tell it."
12555 msgstr ""
12556
12557 # type: textblock
12558 #: ../src/guestfs-actions.pod:4689 ../fish/guestfish-actions.pod:3641
12559 msgid ""
12560 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12561 "refer to the L<sfdisk(8)> manpage."
12562 msgstr ""
12563
12564 # type: textblock
12565 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3644
12566 msgid ""
12567 "To create a single partition occupying the whole disk, you would pass "
12568 "C<lines> as a single element list, when the single element being the string "
12569 "C<,> (comma)."
12570 msgstr ""
12571
12572 # type: textblock
12573 #: ../src/guestfs-actions.pod:4696
12574 msgid ""
12575 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12576 msgstr ""
12577
12578 # type: =head2
12579 #: ../src/guestfs-actions.pod:4704
12580 msgid "guestfs_sfdiskM"
12581 msgstr ""
12582
12583 # type: verbatim
12584 #: ../src/guestfs-actions.pod:4706
12585 #, no-wrap
12586 msgid ""
12587 " int guestfs_sfdiskM (guestfs_h *g,\n"
12588 "\t\tconst char *device,\n"
12589 "\t\tchar *const *lines);\n"
12590 "\n"
12591 msgstr ""
12592
12593 # type: textblock
12594 #: ../src/guestfs-actions.pod:4710
12595 msgid ""
12596 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12597 "partition sizes are specified in megabytes only (rounded to the nearest "
12598 "cylinder) and you don't need to specify the cyls, heads and sectors "
12599 "parameters which were rarely if ever used anyway."
12600 msgstr ""
12601
12602 # type: textblock
12603 #: ../src/guestfs-actions.pod:4716
12604 msgid ""
12605 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12606 "C<guestfs_part_disk>"
12607 msgstr ""
12608
12609 # type: =head2
12610 #: ../src/guestfs-actions.pod:4724
12611 msgid "guestfs_sfdisk_N"
12612 msgstr ""
12613
12614 # type: verbatim
12615 #: ../src/guestfs-actions.pod:4726
12616 #, no-wrap
12617 msgid ""
12618 " int guestfs_sfdisk_N (guestfs_h *g,\n"
12619 "\t\tconst char *device,\n"
12620 "\t\tint partnum,\n"
12621 "\t\tint cyls,\n"
12622 "\t\tint heads,\n"
12623 "\t\tint sectors,\n"
12624 "\t\tconst char *line);\n"
12625 "\n"
12626 msgstr ""
12627
12628 # type: textblock
12629 #: ../src/guestfs-actions.pod:4734 ../fish/guestfish-actions.pod:3674
12630 msgid ""
12631 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12632 "(note: C<n> counts from 1)."
12633 msgstr ""
12634
12635 # type: textblock
12636 #: ../src/guestfs-actions.pod:4737
12637 msgid ""
12638 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12639 "for the cyls/heads/sectors parameters."
12640 msgstr ""
12641
12642 # type: textblock
12643 #: ../src/guestfs-actions.pod:4740
12644 msgid "See also: C<guestfs_part_add>"
12645 msgstr ""
12646
12647 # type: =head2
12648 #: ../src/guestfs-actions.pod:4747
12649 msgid "guestfs_sfdisk_disk_geometry"
12650 msgstr ""
12651
12652 # type: verbatim
12653 #: ../src/guestfs-actions.pod:4749
12654 #, no-wrap
12655 msgid ""
12656 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12657 "\t\tconst char *device);\n"
12658 "\n"
12659 msgstr ""
12660
12661 # type: textblock
12662 #: ../src/guestfs-actions.pod:4752
12663 msgid ""
12664 "This displays the disk geometry of C<device> read from the partition table.  "
12665 "Especially in the case where the underlying block device has been resized, "
12666 "this can be different from the kernel's idea of the geometry (see "
12667 "C<guestfs_sfdisk_kernel_geometry>)."
12668 msgstr ""
12669
12670 # type: textblock
12671 #: ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4770
12672 #: ../fish/guestfish-actions.pod:3694 ../fish/guestfish-actions.pod:3703
12673 msgid "The result is in human-readable format, and not designed to be parsed."
12674 msgstr ""
12675
12676 # type: =head2
12677 #: ../src/guestfs-actions.pod:4763
12678 msgid "guestfs_sfdisk_kernel_geometry"
12679 msgstr ""
12680
12681 # type: verbatim
12682 #: ../src/guestfs-actions.pod:4765
12683 #, no-wrap
12684 msgid ""
12685 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12686 "\t\tconst char *device);\n"
12687 "\n"
12688 msgstr ""
12689
12690 # type: textblock
12691 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3701
12692 msgid "This displays the kernel's idea of the geometry of C<device>."
12693 msgstr ""
12694
12695 # type: =head2
12696 #: ../src/guestfs-actions.pod:4776
12697 msgid "guestfs_sfdisk_l"
12698 msgstr ""
12699
12700 # type: verbatim
12701 #: ../src/guestfs-actions.pod:4778
12702 #, no-wrap
12703 msgid ""
12704 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
12705 "\t\tconst char *device);\n"
12706 "\n"
12707 msgstr ""
12708
12709 # type: textblock
12710 #: ../src/guestfs-actions.pod:4781 ../fish/guestfish-actions.pod:3710
12711 msgid ""
12712 "This displays the partition table on C<device>, in the human-readable output "
12713 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12714 msgstr ""
12715
12716 # type: textblock
12717 #: ../src/guestfs-actions.pod:4785
12718 msgid "See also: C<guestfs_part_list>"
12719 msgstr ""
12720
12721 # type: =head2
12722 #: ../src/guestfs-actions.pod:4790
12723 msgid "guestfs_sh"
12724 msgstr ""
12725
12726 # type: verbatim
12727 #: ../src/guestfs-actions.pod:4792
12728 #, no-wrap
12729 msgid ""
12730 " char *guestfs_sh (guestfs_h *g,\n"
12731 "\t\tconst char *command);\n"
12732 "\n"
12733 msgstr ""
12734
12735 # type: textblock
12736 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3720
12737 msgid ""
12738 "This call runs a command from the guest filesystem via the guest's C</bin/"
12739 "sh>."
12740 msgstr ""
12741
12742 # type: textblock
12743 #: ../src/guestfs-actions.pod:4798
12744 msgid "This is like C<guestfs_command>, but passes the command to:"
12745 msgstr ""
12746
12747 # type: verbatim
12748 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3725
12749 #, no-wrap
12750 msgid ""
12751 " /bin/sh -c \"command\"\n"
12752 "\n"
12753 msgstr ""
12754
12755 # type: textblock
12756 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3727
12757 msgid ""
12758 "Depending on the guest's shell, this usually results in wildcards being "
12759 "expanded, shell expressions being interpolated and so on."
12760 msgstr ""
12761
12762 # type: textblock
12763 #: ../src/guestfs-actions.pod:4806
12764 msgid "All the provisos about C<guestfs_command> apply to this call."
12765 msgstr ""
12766
12767 # type: =head2
12768 #: ../src/guestfs-actions.pod:4811
12769 msgid "guestfs_sh_lines"
12770 msgstr ""
12771
12772 # type: verbatim
12773 #: ../src/guestfs-actions.pod:4813
12774 #, no-wrap
12775 msgid ""
12776 " char **guestfs_sh_lines (guestfs_h *g,\n"
12777 "\t\tconst char *command);\n"
12778 "\n"
12779 msgstr ""
12780
12781 # type: textblock
12782 #: ../src/guestfs-actions.pod:4816
12783 msgid ""
12784 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12785 "lines."
12786 msgstr ""
12787
12788 # type: textblock
12789 #: ../src/guestfs-actions.pod:4819
12790 msgid "See also: C<guestfs_command_lines>"
12791 msgstr ""
12792
12793 # type: =head2
12794 #: ../src/guestfs-actions.pod:4825
12795 msgid "guestfs_sleep"
12796 msgstr ""
12797
12798 # type: verbatim
12799 #: ../src/guestfs-actions.pod:4827
12800 #, no-wrap
12801 msgid ""
12802 " int guestfs_sleep (guestfs_h *g,\n"
12803 "\t\tint secs);\n"
12804 "\n"
12805 msgstr ""
12806
12807 # type: textblock
12808 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3746
12809 msgid "Sleep for C<secs> seconds."
12810 msgstr ""
12811
12812 # type: =head2
12813 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-structs.pod:109
12814 msgid "guestfs_stat"
12815 msgstr ""
12816
12817 # type: verbatim
12818 #: ../src/guestfs-actions.pod:4836
12819 #, no-wrap
12820 msgid ""
12821 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12822 "\t\tconst char *path);\n"
12823 "\n"
12824 msgstr ""
12825
12826 # type: textblock
12827 #: ../src/guestfs-actions.pod:4841 ../fish/guestfish-actions.pod:3754
12828 msgid "This is the same as the C<stat(2)> system call."
12829 msgstr ""
12830
12831 # type: =head2
12832 #: ../src/guestfs-actions.pod:4847 ../src/guestfs-structs.pod:135
12833 msgid "guestfs_statvfs"
12834 msgstr ""
12835
12836 # type: verbatim
12837 #: ../src/guestfs-actions.pod:4849
12838 #, no-wrap
12839 msgid ""
12840 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12841 "\t\tconst char *path);\n"
12842 "\n"
12843 msgstr ""
12844
12845 # type: textblock
12846 #: ../src/guestfs-actions.pod:4852 ../fish/guestfish-actions.pod:3760
12847 msgid ""
12848 "Returns file system statistics for any mounted file system.  C<path> should "
12849 "be a file or directory in the mounted file system (typically it is the mount "
12850 "point itself, but it doesn't need to be)."
12851 msgstr ""
12852
12853 # type: textblock
12854 #: ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:3764
12855 msgid "This is the same as the C<statvfs(2)> system call."
12856 msgstr ""
12857
12858 # type: textblock
12859 #: ../src/guestfs-actions.pod:4858
12860 msgid ""
12861 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12862 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12863 msgstr ""
12864
12865 # type: =head2
12866 #: ../src/guestfs-actions.pod:4862
12867 msgid "guestfs_strings"
12868 msgstr ""
12869
12870 # type: verbatim
12871 #: ../src/guestfs-actions.pod:4864
12872 #, no-wrap
12873 msgid ""
12874 " char **guestfs_strings (guestfs_h *g,\n"
12875 "\t\tconst char *path);\n"
12876 "\n"
12877 msgstr ""
12878
12879 # type: textblock
12880 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3770
12881 msgid ""
12882 "This runs the L<strings(1)> command on a file and returns the list of "
12883 "printable strings found."
12884 msgstr ""
12885
12886 # type: =head2
12887 #: ../src/guestfs-actions.pod:4877
12888 msgid "guestfs_strings_e"
12889 msgstr ""
12890
12891 # type: verbatim
12892 #: ../src/guestfs-actions.pod:4879
12893 #, no-wrap
12894 msgid ""
12895 " char **guestfs_strings_e (guestfs_h *g,\n"
12896 "\t\tconst char *encoding,\n"
12897 "\t\tconst char *path);\n"
12898 "\n"
12899 msgstr ""
12900
12901 # type: textblock
12902 #: ../src/guestfs-actions.pod:4883
12903 msgid ""
12904 "This is like the C<guestfs_strings> command, but allows you to specify the "
12905 "encoding of strings that are looked for in the source file C<path>."
12906 msgstr ""
12907
12908 # type: textblock
12909 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3784
12910 msgid "Allowed encodings are:"
12911 msgstr ""
12912
12913 # type: =item
12914 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3788
12915 msgid "s"
12916 msgstr ""
12917
12918 # type: textblock
12919 #: ../src/guestfs-actions.pod:4893
12920 msgid ""
12921 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12922 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12923 msgstr ""
12924
12925 # type: =item
12926 #: ../src/guestfs-actions.pod:4896 ../fish/guestfish-actions.pod:3793
12927 msgid "S"
12928 msgstr ""
12929
12930 # type: textblock
12931 #: ../src/guestfs-actions.pod:4898 ../fish/guestfish-actions.pod:3795
12932 msgid "Single 8-bit-byte characters."
12933 msgstr ""
12934
12935 # type: =item
12936 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3797
12937 msgid "b"
12938 msgstr ""
12939
12940 # type: textblock
12941 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3799
12942 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12943 msgstr ""
12944
12945 # type: =item
12946 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3802
12947 msgid "l (lower case letter L)"
12948 msgstr ""
12949
12950 # type: textblock
12951 #: ../src/guestfs-actions.pod:4907 ../fish/guestfish-actions.pod:3804
12952 msgid ""
12953 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12954 "examining binaries in Windows guests."
12955 msgstr ""
12956
12957 # type: =item
12958 #: ../src/guestfs-actions.pod:4910 ../fish/guestfish-actions.pod:3807
12959 msgid "B"
12960 msgstr ""
12961
12962 # type: textblock
12963 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3809
12964 msgid "32-bit big endian such as UCS-4BE."
12965 msgstr ""
12966
12967 # type: =item
12968 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3811
12969 msgid "L"
12970 msgstr ""
12971
12972 # type: textblock
12973 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3813
12974 msgid "32-bit little endian such as UCS-4LE."
12975 msgstr ""
12976
12977 # type: textblock
12978 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3817
12979 msgid "The returned strings are transcoded to UTF-8."
12980 msgstr ""
12981
12982 # type: =head2
12983 #: ../src/guestfs-actions.pod:4929
12984 msgid "guestfs_swapoff_device"
12985 msgstr ""
12986
12987 # type: verbatim
12988 #: ../src/guestfs-actions.pod:4931
12989 #, no-wrap
12990 msgid ""
12991 " int guestfs_swapoff_device (guestfs_h *g,\n"
12992 "\t\tconst char *device);\n"
12993 "\n"
12994 msgstr ""
12995
12996 # type: textblock
12997 #: ../src/guestfs-actions.pod:4934
12998 msgid ""
12999 "This command disables the libguestfs appliance swap device or partition "
13000 "named C<device>.  See C<guestfs_swapon_device>."
13001 msgstr ""
13002
13003 # type: =head2
13004 #: ../src/guestfs-actions.pod:4940
13005 msgid "guestfs_swapoff_file"
13006 msgstr ""
13007
13008 # type: verbatim
13009 #: ../src/guestfs-actions.pod:4942
13010 #, no-wrap
13011 msgid ""
13012 " int guestfs_swapoff_file (guestfs_h *g,\n"
13013 "\t\tconst char *file);\n"
13014 "\n"
13015 msgstr ""
13016
13017 # type: textblock
13018 #: ../src/guestfs-actions.pod:4945 ../fish/guestfish-actions.pod:3834
13019 msgid "This command disables the libguestfs appliance swap on file."
13020 msgstr ""
13021
13022 # type: =head2
13023 #: ../src/guestfs-actions.pod:4949
13024 msgid "guestfs_swapoff_label"
13025 msgstr ""
13026
13027 # type: verbatim
13028 #: ../src/guestfs-actions.pod:4951
13029 #, no-wrap
13030 msgid ""
13031 " int guestfs_swapoff_label (guestfs_h *g,\n"
13032 "\t\tconst char *label);\n"
13033 "\n"
13034 msgstr ""
13035
13036 # type: textblock
13037 #: ../src/guestfs-actions.pod:4954 ../fish/guestfish-actions.pod:3840
13038 msgid ""
13039 "This command disables the libguestfs appliance swap on labeled swap "
13040 "partition."
13041 msgstr ""
13042
13043 # type: =head2
13044 #: ../src/guestfs-actions.pod:4959
13045 msgid "guestfs_swapoff_uuid"
13046 msgstr ""
13047
13048 # type: verbatim
13049 #: ../src/guestfs-actions.pod:4961
13050 #, no-wrap
13051 msgid ""
13052 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
13053 "\t\tconst char *uuid);\n"
13054 "\n"
13055 msgstr ""
13056
13057 # type: textblock
13058 #: ../src/guestfs-actions.pod:4964 ../fish/guestfish-actions.pod:3847
13059 msgid ""
13060 "This command disables the libguestfs appliance swap partition with the given "
13061 "UUID."
13062 msgstr ""
13063
13064 # type: =head2
13065 #: ../src/guestfs-actions.pod:4969
13066 msgid "guestfs_swapon_device"
13067 msgstr ""
13068
13069 # type: verbatim
13070 #: ../src/guestfs-actions.pod:4971
13071 #, no-wrap
13072 msgid ""
13073 " int guestfs_swapon_device (guestfs_h *g,\n"
13074 "\t\tconst char *device);\n"
13075 "\n"
13076 msgstr ""
13077
13078 # type: textblock
13079 #: ../src/guestfs-actions.pod:4974
13080 msgid ""
13081 "This command enables the libguestfs appliance to use the swap device or "
13082 "partition named C<device>.  The increased memory is made available for all "
13083 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13084 msgstr ""
13085
13086 # type: textblock
13087 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3859
13088 msgid ""
13089 "Note that you should not swap to existing guest swap partitions unless you "
13090 "know what you are doing.  They may contain hibernation information, or other "
13091 "information that the guest doesn't want you to trash.  You also risk leaking "
13092 "information about the host to the guest this way.  Instead, attach a new "
13093 "host device to the guest and swap on that."
13094 msgstr ""
13095
13096 # type: =head2
13097 #: ../src/guestfs-actions.pod:4988
13098 msgid "guestfs_swapon_file"
13099 msgstr ""
13100
13101 # type: verbatim
13102 #: ../src/guestfs-actions.pod:4990
13103 #, no-wrap
13104 msgid ""
13105 " int guestfs_swapon_file (guestfs_h *g,\n"
13106 "\t\tconst char *file);\n"
13107 "\n"
13108 msgstr ""
13109
13110 # type: textblock
13111 #: ../src/guestfs-actions.pod:4993
13112 msgid ""
13113 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13114 "notes."
13115 msgstr ""
13116
13117 # type: =head2
13118 #: ../src/guestfs-actions.pod:4998
13119 msgid "guestfs_swapon_label"
13120 msgstr ""
13121
13122 # type: verbatim
13123 #: ../src/guestfs-actions.pod:5000
13124 #, no-wrap
13125 msgid ""
13126 " int guestfs_swapon_label (guestfs_h *g,\n"
13127 "\t\tconst char *label);\n"
13128 "\n"
13129 msgstr ""
13130
13131 # type: textblock
13132 #: ../src/guestfs-actions.pod:5003
13133 msgid ""
13134 "This command enables swap to a labeled swap partition.  See "
13135 "C<guestfs_swapon_device> for other notes."
13136 msgstr ""
13137
13138 # type: =head2
13139 #: ../src/guestfs-actions.pod:5008
13140 msgid "guestfs_swapon_uuid"
13141 msgstr ""
13142
13143 # type: verbatim
13144 #: ../src/guestfs-actions.pod:5010
13145 #, no-wrap
13146 msgid ""
13147 " int guestfs_swapon_uuid (guestfs_h *g,\n"
13148 "\t\tconst char *uuid);\n"
13149 "\n"
13150 msgstr ""
13151
13152 # type: textblock
13153 #: ../src/guestfs-actions.pod:5013
13154 msgid ""
13155 "This command enables swap to a swap partition with the given UUID.  See "
13156 "C<guestfs_swapon_device> for other notes."
13157 msgstr ""
13158
13159 # type: =head2
13160 #: ../src/guestfs-actions.pod:5018
13161 msgid "guestfs_sync"
13162 msgstr ""
13163
13164 # type: verbatim
13165 #: ../src/guestfs-actions.pod:5020
13166 #, no-wrap
13167 msgid ""
13168 " int guestfs_sync (guestfs_h *g);\n"
13169 "\n"
13170 msgstr ""
13171
13172 # type: textblock
13173 #: ../src/guestfs-actions.pod:5022 ../fish/guestfish-actions.pod:3891
13174 msgid ""
13175 "This syncs the disk, so that any writes are flushed through to the "
13176 "underlying disk image."
13177 msgstr ""
13178
13179 # type: textblock
13180 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3894
13181 msgid ""
13182 "You should always call this if you have modified a disk image, before "
13183 "closing the handle."
13184 msgstr ""
13185
13186 # type: =head2
13187 #: ../src/guestfs-actions.pod:5030
13188 msgid "guestfs_tail"
13189 msgstr ""
13190
13191 # type: verbatim
13192 #: ../src/guestfs-actions.pod:5032
13193 #, no-wrap
13194 msgid ""
13195 " char **guestfs_tail (guestfs_h *g,\n"
13196 "\t\tconst char *path);\n"
13197 "\n"
13198 msgstr ""
13199
13200 # type: textblock
13201 #: ../src/guestfs-actions.pod:5035 ../fish/guestfish-actions.pod:3901
13202 msgid ""
13203 "This command returns up to the last 10 lines of a file as a list of strings."
13204 msgstr ""
13205
13206 # type: =head2
13207 #: ../src/guestfs-actions.pod:5045
13208 msgid "guestfs_tail_n"
13209 msgstr ""
13210
13211 # type: verbatim
13212 #: ../src/guestfs-actions.pod:5047
13213 #, no-wrap
13214 msgid ""
13215 " char **guestfs_tail_n (guestfs_h *g,\n"
13216 "\t\tint nrlines,\n"
13217 "\t\tconst char *path);\n"
13218 "\n"
13219 msgstr ""
13220
13221 # type: textblock
13222 #: ../src/guestfs-actions.pod:5051 ../fish/guestfish-actions.pod:3911
13223 msgid ""
13224 "If the parameter C<nrlines> is a positive number, this returns the last "
13225 "C<nrlines> lines of the file C<path>."
13226 msgstr ""
13227
13228 # type: textblock
13229 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3914
13230 msgid ""
13231 "If the parameter C<nrlines> is a negative number, this returns lines from "
13232 "the file C<path>, starting with the C<-nrlines>th line."
13233 msgstr ""
13234
13235 # type: =head2
13236 #: ../src/guestfs-actions.pod:5066
13237 msgid "guestfs_tar_in"
13238 msgstr ""
13239
13240 # type: verbatim
13241 #: ../src/guestfs-actions.pod:5068
13242 #, no-wrap
13243 msgid ""
13244 " int guestfs_tar_in (guestfs_h *g,\n"
13245 "\t\tconst char *tarfile,\n"
13246 "\t\tconst char *directory);\n"
13247 "\n"
13248 msgstr ""
13249
13250 # type: textblock
13251 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3926
13252 msgid ""
13253 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13254 "tar file) into C<directory>."
13255 msgstr ""
13256
13257 # type: textblock
13258 #: ../src/guestfs-actions.pod:5075
13259 msgid ""
13260 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13261 msgstr ""
13262
13263 # type: =head2
13264 #: ../src/guestfs-actions.pod:5080
13265 msgid "guestfs_tar_out"
13266 msgstr ""
13267
13268 # type: verbatim
13269 #: ../src/guestfs-actions.pod:5082
13270 #, no-wrap
13271 msgid ""
13272 " int guestfs_tar_out (guestfs_h *g,\n"
13273 "\t\tconst char *directory,\n"
13274 "\t\tconst char *tarfile);\n"
13275 "\n"
13276 msgstr ""
13277
13278 # type: textblock
13279 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3938
13280 msgid ""
13281 "This command packs the contents of C<directory> and downloads it to local "
13282 "file C<tarfile>."
13283 msgstr ""
13284
13285 # type: textblock
13286 #: ../src/guestfs-actions.pod:5089
13287 msgid ""
13288 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13289 "C<guestfs_txz_out>."
13290 msgstr ""
13291
13292 # type: =head2
13293 #: ../src/guestfs-actions.pod:5094
13294 msgid "guestfs_tgz_in"
13295 msgstr ""
13296
13297 # type: verbatim
13298 #: ../src/guestfs-actions.pod:5096
13299 #, no-wrap
13300 msgid ""
13301 " int guestfs_tgz_in (guestfs_h *g,\n"
13302 "\t\tconst char *tarball,\n"
13303 "\t\tconst char *directory);\n"
13304 "\n"
13305 msgstr ""
13306
13307 # type: textblock
13308 #: ../src/guestfs-actions.pod:5100 ../fish/guestfish-actions.pod:3950
13309 msgid ""
13310 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13311 "tar file) into C<directory>."
13312 msgstr ""
13313
13314 # type: textblock
13315 #: ../src/guestfs-actions.pod:5103
13316 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13317 msgstr ""
13318
13319 # type: =head2
13320 #: ../src/guestfs-actions.pod:5107
13321 msgid "guestfs_tgz_out"
13322 msgstr ""
13323
13324 # type: verbatim
13325 #: ../src/guestfs-actions.pod:5109
13326 #, no-wrap
13327 msgid ""
13328 " int guestfs_tgz_out (guestfs_h *g,\n"
13329 "\t\tconst char *directory,\n"
13330 "\t\tconst char *tarball);\n"
13331 "\n"
13332 msgstr ""
13333
13334 # type: textblock
13335 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3961
13336 msgid ""
13337 "This command packs the contents of C<directory> and downloads it to local "
13338 "file C<tarball>."
13339 msgstr ""
13340
13341 # type: textblock
13342 #: ../src/guestfs-actions.pod:5116
13343 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13344 msgstr ""
13345
13346 # type: =head2
13347 #: ../src/guestfs-actions.pod:5120
13348 msgid "guestfs_touch"
13349 msgstr ""
13350
13351 # type: verbatim
13352 #: ../src/guestfs-actions.pod:5122
13353 #, no-wrap
13354 msgid ""
13355 " int guestfs_touch (guestfs_h *g,\n"
13356 "\t\tconst char *path);\n"
13357 "\n"
13358 msgstr ""
13359
13360 # type: textblock
13361 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3972
13362 msgid ""
13363 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13364 "timestamps on a file, or, if the file does not exist, to create a new zero-"
13365 "length file."
13366 msgstr ""
13367
13368 # type: textblock
13369 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3976
13370 msgid ""
13371 "This command only works on regular files, and will fail on other file types "
13372 "such as directories, symbolic links, block special etc."
13373 msgstr ""
13374
13375 # type: =head2
13376 #: ../src/guestfs-actions.pod:5134
13377 msgid "guestfs_truncate"
13378 msgstr ""
13379
13380 # type: verbatim
13381 #: ../src/guestfs-actions.pod:5136
13382 #, no-wrap
13383 msgid ""
13384 " int guestfs_truncate (guestfs_h *g,\n"
13385 "\t\tconst char *path);\n"
13386 "\n"
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3983
13391 msgid ""
13392 "This command truncates C<path> to a zero-length file.  The file must exist "
13393 "already."
13394 msgstr ""
13395
13396 # type: =head2
13397 #: ../src/guestfs-actions.pod:5144
13398 msgid "guestfs_truncate_size"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #: ../src/guestfs-actions.pod:5146
13403 #, no-wrap
13404 msgid ""
13405 " int guestfs_truncate_size (guestfs_h *g,\n"
13406 "\t\tconst char *path,\n"
13407 "\t\tint64_t size);\n"
13408 "\n"
13409 msgstr ""
13410
13411 # type: textblock
13412 #: ../src/guestfs-actions.pod:5150 ../fish/guestfish-actions.pod:3990
13413 msgid ""
13414 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13415 "already."
13416 msgstr ""
13417
13418 # type: textblock
13419 #: ../src/guestfs-actions.pod:5153
13420 msgid ""
13421 "If the current file size is less than C<size> then the file is extended to "
13422 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13423 "blocks are not allocated for the file until you write to it).  To create a "
13424 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13425 msgstr ""
13426
13427 # type: =head2
13428 #: ../src/guestfs-actions.pod:5161
13429 msgid "guestfs_tune2fs_l"
13430 msgstr ""
13431
13432 # type: verbatim
13433 #: ../src/guestfs-actions.pod:5163
13434 #, no-wrap
13435 msgid ""
13436 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
13437 "\t\tconst char *device);\n"
13438 "\n"
13439 msgstr ""
13440
13441 # type: textblock
13442 #: ../src/guestfs-actions.pod:5166 ../fish/guestfish-actions.pod:4003
13443 msgid ""
13444 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13445 "C<device>."
13446 msgstr ""
13447
13448 # type: textblock
13449 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:4006
13450 msgid ""
13451 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13452 "for more details.  The list of fields returned isn't clearly defined, and "
13453 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13454 "and the filesystem itself."
13455 msgstr ""
13456
13457 # type: =head2
13458 #: ../src/guestfs-actions.pod:5180
13459 msgid "guestfs_txz_in"
13460 msgstr ""
13461
13462 # type: verbatim
13463 #: ../src/guestfs-actions.pod:5182
13464 #, no-wrap
13465 msgid ""
13466 " int guestfs_txz_in (guestfs_h *g,\n"
13467 "\t\tconst char *tarball,\n"
13468 "\t\tconst char *directory);\n"
13469 "\n"
13470 msgstr ""
13471
13472 # type: textblock
13473 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:4015
13474 msgid ""
13475 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13476 "tar file) into C<directory>."
13477 msgstr ""
13478
13479 # type: =head2
13480 #: ../src/guestfs-actions.pod:5191
13481 msgid "guestfs_txz_out"
13482 msgstr ""
13483
13484 # type: verbatim
13485 #: ../src/guestfs-actions.pod:5193
13486 #, no-wrap
13487 msgid ""
13488 " int guestfs_txz_out (guestfs_h *g,\n"
13489 "\t\tconst char *directory,\n"
13490 "\t\tconst char *tarball);\n"
13491 "\n"
13492 msgstr ""
13493
13494 # type: textblock
13495 #: ../src/guestfs-actions.pod:5197 ../fish/guestfish-actions.pod:4024
13496 msgid ""
13497 "This command packs the contents of C<directory> and downloads it to local "
13498 "file C<tarball> (as an xz compressed tar archive)."
13499 msgstr ""
13500
13501 # type: =head2
13502 #: ../src/guestfs-actions.pod:5202
13503 msgid "guestfs_umask"
13504 msgstr ""
13505
13506 # type: verbatim
13507 #: ../src/guestfs-actions.pod:5204
13508 #, no-wrap
13509 msgid ""
13510 " int guestfs_umask (guestfs_h *g,\n"
13511 "\t\tint mask);\n"
13512 "\n"
13513 msgstr ""
13514
13515 # type: textblock
13516 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:4033
13517 msgid ""
13518 "This function sets the mask used for creating new files and device nodes to "
13519 "C<mask & 0777>."
13520 msgstr ""
13521
13522 # type: textblock
13523 #: ../src/guestfs-actions.pod:5210 ../fish/guestfish-actions.pod:4036
13524 msgid ""
13525 "Typical umask values would be C<022> which creates new files with "
13526 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13527 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13528 msgstr ""
13529
13530 # type: textblock
13531 #: ../src/guestfs-actions.pod:5215 ../fish/guestfish-actions.pod:4041
13532 msgid ""
13533 "The default umask is C<022>.  This is important because it means that "
13534 "directories and device nodes will be created with C<0644> or C<0755> mode "
13535 "even if you specify C<0777>."
13536 msgstr ""
13537
13538 # type: textblock
13539 #: ../src/guestfs-actions.pod:5219
13540 msgid ""
13541 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13542 "C<guestfs_mkdir>."
13543 msgstr ""
13544
13545 # type: textblock
13546 #: ../src/guestfs-actions.pod:5222 ../fish/guestfish-actions.pod:4048
13547 msgid "This call returns the previous umask."
13548 msgstr ""
13549
13550 # type: =head2
13551 #: ../src/guestfs-actions.pod:5226
13552 msgid "guestfs_umount"
13553 msgstr ""
13554
13555 # type: verbatim
13556 #: ../src/guestfs-actions.pod:5228
13557 #, no-wrap
13558 msgid ""
13559 " int guestfs_umount (guestfs_h *g,\n"
13560 "\t\tconst char *pathordevice);\n"
13561 "\n"
13562 msgstr ""
13563
13564 # type: textblock
13565 #: ../src/guestfs-actions.pod:5231 ../fish/guestfish-actions.pod:4056
13566 msgid ""
13567 "This unmounts the given filesystem.  The filesystem may be specified either "
13568 "by its mountpoint (path) or the device which contains the filesystem."
13569 msgstr ""
13570
13571 # type: =head2
13572 #: ../src/guestfs-actions.pod:5237
13573 msgid "guestfs_umount_all"
13574 msgstr ""
13575
13576 # type: verbatim
13577 #: ../src/guestfs-actions.pod:5239
13578 #, no-wrap
13579 msgid ""
13580 " int guestfs_umount_all (guestfs_h *g);\n"
13581 "\n"
13582 msgstr ""
13583
13584 # type: textblock
13585 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:4066
13586 msgid "This unmounts all mounted filesystems."
13587 msgstr ""
13588
13589 # type: textblock
13590 #: ../src/guestfs-actions.pod:5243 ../fish/guestfish-actions.pod:4068
13591 msgid "Some internal mounts are not unmounted by this call."
13592 msgstr ""
13593
13594 # type: =head2
13595 #: ../src/guestfs-actions.pod:5247
13596 msgid "guestfs_upload"
13597 msgstr ""
13598
13599 # type: verbatim
13600 #: ../src/guestfs-actions.pod:5249
13601 #, no-wrap
13602 msgid ""
13603 " int guestfs_upload (guestfs_h *g,\n"
13604 "\t\tconst char *filename,\n"
13605 "\t\tconst char *remotefilename);\n"
13606 "\n"
13607 msgstr ""
13608
13609 # type: textblock
13610 #: ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5269
13611 #: ../fish/guestfish-actions.pod:4074 ../fish/guestfish-actions.pod:4087
13612 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13613 msgstr ""
13614
13615 # type: textblock
13616 #: ../src/guestfs-actions.pod:5258
13617 msgid "See also C<guestfs_download>."
13618 msgstr ""
13619
13620 # type: =head2
13621 #: ../src/guestfs-actions.pod:5262
13622 msgid "guestfs_upload_offset"
13623 msgstr ""
13624
13625 # type: verbatim
13626 #: ../src/guestfs-actions.pod:5264
13627 #, no-wrap
13628 msgid ""
13629 " int guestfs_upload_offset (guestfs_h *g,\n"
13630 "\t\tconst char *filename,\n"
13631 "\t\tconst char *remotefilename,\n"
13632 "\t\tint64_t offset);\n"
13633 "\n"
13634 msgstr ""
13635
13636 # type: textblock
13637 #: ../src/guestfs-actions.pod:5272 ../fish/guestfish-actions.pod:4090
13638 msgid ""
13639 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13640 "The intention is to overwrite parts of existing files or devices, although "
13641 "if a non-existant file is specified then it is created with a \"hole\" "
13642 "before C<offset>.  The size of the data written is implicit in the size of "
13643 "the source C<filename>."
13644 msgstr ""
13645
13646 # type: textblock
13647 #: ../src/guestfs-actions.pod:5279
13648 msgid ""
13649 "Note that there is no limit on the amount of data that can be uploaded with "
13650 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13651 "full amount unless an error occurs."
13652 msgstr ""
13653
13654 # type: textblock
13655 #: ../src/guestfs-actions.pod:5284
13656 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13657 msgstr ""
13658
13659 # type: =head2
13660 #: ../src/guestfs-actions.pod:5288
13661 msgid "guestfs_utimens"
13662 msgstr ""
13663
13664 # type: verbatim
13665 #: ../src/guestfs-actions.pod:5290
13666 #, no-wrap
13667 msgid ""
13668 " int guestfs_utimens (guestfs_h *g,\n"
13669 "\t\tconst char *path,\n"
13670 "\t\tint64_t atsecs,\n"
13671 "\t\tint64_t atnsecs,\n"
13672 "\t\tint64_t mtsecs,\n"
13673 "\t\tint64_t mtnsecs);\n"
13674 "\n"
13675 msgstr ""
13676
13677 # type: textblock
13678 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:4110
13679 msgid "This command sets the timestamps of a file with nanosecond precision."
13680 msgstr ""
13681
13682 # type: textblock
13683 #: ../src/guestfs-actions.pod:5300 ../fish/guestfish-actions.pod:4113
13684 msgid ""
13685 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13686 "from the epoch."
13687 msgstr ""
13688
13689 # type: textblock
13690 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:4116
13691 msgid ""
13692 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13693 "nanoseconds from the epoch."
13694 msgstr ""
13695
13696 # type: textblock
13697 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:4119
13698 msgid ""
13699 "If the C<*nsecs> field contains the special value C<-1> then the "
13700 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13701 "ignored in this case)."
13702 msgstr ""
13703
13704 # type: textblock
13705 #: ../src/guestfs-actions.pod:5310 ../fish/guestfish-actions.pod:4123
13706 msgid ""
13707 "If the C<*nsecs> field contains the special value C<-2> then the "
13708 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13709 "in this case)."
13710 msgstr ""
13711
13712 # type: =head2
13713 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-structs.pod:175
13714 msgid "guestfs_version"
13715 msgstr ""
13716
13717 # type: verbatim
13718 #: ../src/guestfs-actions.pod:5318
13719 #, no-wrap
13720 msgid ""
13721 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
13722 "\n"
13723 msgstr ""
13724
13725 # type: textblock
13726 #: ../src/guestfs-actions.pod:5320 ../fish/guestfish-actions.pod:4131
13727 msgid ""
13728 "Return the libguestfs version number that the program is linked against."
13729 msgstr ""
13730
13731 # type: textblock
13732 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:4134
13733 msgid ""
13734 "Note that because of dynamic linking this is not necessarily the version of "
13735 "libguestfs that you compiled against.  You can compile the program, and then "
13736 "at runtime dynamically link against a completely different C<libguestfs.so> "
13737 "library."
13738 msgstr ""
13739
13740 # type: textblock
13741 #: ../src/guestfs-actions.pod:5328 ../fish/guestfish-actions.pod:4139
13742 msgid ""
13743 "This call was added in version C<1.0.58>.  In previous versions of "
13744 "libguestfs there was no way to get the version number.  From C code you can "
13745 "use dynamic linker functions to find out if this symbol exists (if it "
13746 "doesn't, then it's an earlier version)."
13747 msgstr ""
13748
13749 # type: textblock
13750 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:4145
13751 msgid ""
13752 "The call returns a structure with four elements.  The first three (C<major>, "
13753 "C<minor> and C<release>) are numbers and correspond to the usual version "
13754 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13755 "but may be used for distro-specific information."
13756 msgstr ""
13757
13758 # type: textblock
13759 #: ../src/guestfs-actions.pod:5340 ../fish/guestfish-actions.pod:4151
13760 msgid ""
13761 "To construct the original version string: C<$major.$minor.$release$extra>"
13762 msgstr ""
13763
13764 # type: textblock
13765 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:4154
13766 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13767 msgstr ""
13768
13769 # type: textblock
13770 #: ../src/guestfs-actions.pod:5345
13771 msgid ""
13772 "I<Note:> Don't use this call to test for availability of features.  In "
13773 "enterprise distributions we backport features from later versions into "
13774 "earlier versions, making this an unreliable way to test for features.  Use "
13775 "C<guestfs_available> instead."
13776 msgstr ""
13777
13778 # type: textblock
13779 #: ../src/guestfs-actions.pod:5351
13780 msgid ""
13781 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13782 "error.  I<The caller must call C<guestfs_free_version> after use>."
13783 msgstr ""
13784
13785 # type: =head2
13786 #: ../src/guestfs-actions.pod:5355
13787 msgid "guestfs_vfs_label"
13788 msgstr ""
13789
13790 # type: verbatim
13791 #: ../src/guestfs-actions.pod:5357
13792 #, no-wrap
13793 msgid ""
13794 " char *guestfs_vfs_label (guestfs_h *g,\n"
13795 "\t\tconst char *device);\n"
13796 "\n"
13797 msgstr ""
13798
13799 # type: textblock
13800 #: ../src/guestfs-actions.pod:5360 ../fish/guestfish-actions.pod:4166
13801 msgid "This returns the filesystem label of the filesystem on C<device>."
13802 msgstr ""
13803
13804 # type: textblock
13805 #: ../src/guestfs-actions.pod:5363 ../fish/guestfish-actions.pod:4169
13806 msgid "If the filesystem is unlabeled, this returns the empty string."
13807 msgstr ""
13808
13809 # type: textblock
13810 #: ../src/guestfs-actions.pod:5365
13811 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13812 msgstr ""
13813
13814 # type: =head2
13815 #: ../src/guestfs-actions.pod:5370
13816 msgid "guestfs_vfs_type"
13817 msgstr ""
13818
13819 # type: verbatim
13820 #: ../src/guestfs-actions.pod:5372
13821 #, no-wrap
13822 msgid ""
13823 " char *guestfs_vfs_type (guestfs_h *g,\n"
13824 "\t\tconst char *device);\n"
13825 "\n"
13826 msgstr ""
13827
13828 # type: textblock
13829 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:4177
13830 msgid ""
13831 "This command gets the filesystem type corresponding to the filesystem on "
13832 "C<device>."
13833 msgstr ""
13834
13835 # type: textblock
13836 #: ../src/guestfs-actions.pod:5378 ../fish/guestfish-actions.pod:4180
13837 msgid ""
13838 "For most filesystems, the result is the name of the Linux VFS module which "
13839 "would be used to mount this filesystem if you mounted it without specifying "
13840 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13841 msgstr ""
13842
13843 # type: =head2
13844 #: ../src/guestfs-actions.pod:5386
13845 msgid "guestfs_vfs_uuid"
13846 msgstr ""
13847
13848 # type: verbatim
13849 #: ../src/guestfs-actions.pod:5388
13850 #, no-wrap
13851 msgid ""
13852 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13853 "\t\tconst char *device);\n"
13854 "\n"
13855 msgstr ""
13856
13857 # type: textblock
13858 #: ../src/guestfs-actions.pod:5391 ../fish/guestfish-actions.pod:4189
13859 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13860 msgstr ""
13861
13862 # type: textblock
13863 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:4192
13864 msgid "If the filesystem does not have a UUID, this returns the empty string."
13865 msgstr ""
13866
13867 # type: textblock
13868 #: ../src/guestfs-actions.pod:5396
13869 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13870 msgstr ""
13871
13872 # type: =head2
13873 #: ../src/guestfs-actions.pod:5401
13874 msgid "guestfs_vg_activate"
13875 msgstr ""
13876
13877 # type: verbatim
13878 #: ../src/guestfs-actions.pod:5403
13879 #, no-wrap
13880 msgid ""
13881 " int guestfs_vg_activate (guestfs_h *g,\n"
13882 "\t\tint activate,\n"
13883 "\t\tchar *const *volgroups);\n"
13884 "\n"
13885 msgstr ""
13886
13887 # type: textblock
13888 #: ../src/guestfs-actions.pod:5407 ../fish/guestfish-actions.pod:4200
13889 msgid ""
13890 "This command activates or (if C<activate> is false) deactivates all logical "
13891 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13892 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13893 "deactivated, then those devices disappear."
13894 msgstr ""
13895
13896 # type: textblock
13897 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:4206
13898 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13899 msgstr ""
13900
13901 # type: textblock
13902 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:4208
13903 msgid ""
13904 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13905 "activated or deactivated."
13906 msgstr ""
13907
13908 # type: =head2
13909 #: ../src/guestfs-actions.pod:5420
13910 msgid "guestfs_vg_activate_all"
13911 msgstr ""
13912
13913 # type: verbatim
13914 #: ../src/guestfs-actions.pod:5422
13915 #, no-wrap
13916 msgid ""
13917 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13918 "\t\tint activate);\n"
13919 "\n"
13920 msgstr ""
13921
13922 # type: textblock
13923 #: ../src/guestfs-actions.pod:5425 ../fish/guestfish-actions.pod:4215
13924 msgid ""
13925 "This command activates or (if C<activate> is false) deactivates all logical "
13926 "volumes in all volume groups.  If activated, then they are made known to the "
13927 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13928 "those devices disappear."
13929 msgstr ""
13930
13931 # type: textblock
13932 #: ../src/guestfs-actions.pod:5431 ../fish/guestfish-actions.pod:4221
13933 msgid "This command is the same as running C<vgchange -a y|n>"
13934 msgstr ""
13935
13936 # type: =head2
13937 #: ../src/guestfs-actions.pod:5435
13938 msgid "guestfs_vgcreate"
13939 msgstr ""
13940
13941 # type: verbatim
13942 #: ../src/guestfs-actions.pod:5437
13943 #, no-wrap
13944 msgid ""
13945 " int guestfs_vgcreate (guestfs_h *g,\n"
13946 "\t\tconst char *volgroup,\n"
13947 "\t\tchar *const *physvols);\n"
13948 "\n"
13949 msgstr ""
13950
13951 # type: textblock
13952 #: ../src/guestfs-actions.pod:5441 ../fish/guestfish-actions.pod:4227
13953 msgid ""
13954 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13955 "of physical volumes C<physvols>."
13956 msgstr ""
13957
13958 # type: =head2
13959 #: ../src/guestfs-actions.pod:5446
13960 msgid "guestfs_vglvuuids"
13961 msgstr ""
13962
13963 # type: verbatim
13964 #: ../src/guestfs-actions.pod:5448
13965 #, no-wrap
13966 msgid ""
13967 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13968 "\t\tconst char *vgname);\n"
13969 "\n"
13970 msgstr ""
13971
13972 # type: textblock
13973 #: ../src/guestfs-actions.pod:5451 ../fish/guestfish-actions.pod:4234
13974 msgid ""
13975 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13976 "volumes created in this volume group."
13977 msgstr ""
13978
13979 # type: textblock
13980 #: ../src/guestfs-actions.pod:5454
13981 msgid ""
13982 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13983 "associate logical volumes and volume groups."
13984 msgstr ""
13985
13986 # type: textblock
13987 #: ../src/guestfs-actions.pod:5457
13988 msgid "See also C<guestfs_vgpvuuids>."
13989 msgstr ""
13990
13991 # type: =head2
13992 #: ../src/guestfs-actions.pod:5463
13993 msgid "guestfs_vgpvuuids"
13994 msgstr ""
13995
13996 # type: verbatim
13997 #: ../src/guestfs-actions.pod:5465
13998 #, no-wrap
13999 msgid ""
14000 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
14001 "\t\tconst char *vgname);\n"
14002 "\n"
14003 msgstr ""
14004
14005 # type: textblock
14006 #: ../src/guestfs-actions.pod:5468 ../fish/guestfish-actions.pod:4246
14007 msgid ""
14008 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14009 "volumes that this volume group resides on."
14010 msgstr ""
14011
14012 # type: textblock
14013 #: ../src/guestfs-actions.pod:5471
14014 msgid ""
14015 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14016 "associate physical volumes and volume groups."
14017 msgstr ""
14018
14019 # type: textblock
14020 #: ../src/guestfs-actions.pod:5474
14021 msgid "See also C<guestfs_vglvuuids>."
14022 msgstr ""
14023
14024 # type: =head2
14025 #: ../src/guestfs-actions.pod:5480
14026 msgid "guestfs_vgremove"
14027 msgstr ""
14028
14029 # type: verbatim
14030 #: ../src/guestfs-actions.pod:5482
14031 #, no-wrap
14032 msgid ""
14033 " int guestfs_vgremove (guestfs_h *g,\n"
14034 "\t\tconst char *vgname);\n"
14035 "\n"
14036 msgstr ""
14037
14038 # type: textblock
14039 #: ../src/guestfs-actions.pod:5485 ../fish/guestfish-actions.pod:4258
14040 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14041 msgstr ""
14042
14043 # type: textblock
14044 #: ../src/guestfs-actions.pod:5487 ../fish/guestfish-actions.pod:4260
14045 msgid ""
14046 "This also forcibly removes all logical volumes in the volume group (if any)."
14047 msgstr ""
14048
14049 # type: =head2
14050 #: ../src/guestfs-actions.pod:5492
14051 msgid "guestfs_vgrename"
14052 msgstr ""
14053
14054 # type: verbatim
14055 #: ../src/guestfs-actions.pod:5494
14056 #, no-wrap
14057 msgid ""
14058 " int guestfs_vgrename (guestfs_h *g,\n"
14059 "\t\tconst char *volgroup,\n"
14060 "\t\tconst char *newvolgroup);\n"
14061 "\n"
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5498 ../fish/guestfish-actions.pod:4267
14066 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14067 msgstr ""
14068
14069 # type: =head2
14070 #: ../src/guestfs-actions.pod:5502
14071 msgid "guestfs_vgs"
14072 msgstr ""
14073
14074 # type: verbatim
14075 #: ../src/guestfs-actions.pod:5504
14076 #, no-wrap
14077 msgid ""
14078 " char **guestfs_vgs (guestfs_h *g);\n"
14079 "\n"
14080 msgstr ""
14081
14082 # type: textblock
14083 #: ../src/guestfs-actions.pod:5506 ../fish/guestfish-actions.pod:4273
14084 msgid ""
14085 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14086 "> command."
14087 msgstr ""
14088
14089 # type: textblock
14090 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:4276
14091 msgid ""
14092 "This returns a list of just the volume group names that were detected (eg. "
14093 "C<VolGroup00>)."
14094 msgstr ""
14095
14096 # type: textblock
14097 #: ../src/guestfs-actions.pod:5512
14098 msgid "See also C<guestfs_vgs_full>."
14099 msgstr ""
14100
14101 # type: =head2
14102 #: ../src/guestfs-actions.pod:5518
14103 msgid "guestfs_vgs_full"
14104 msgstr ""
14105
14106 # type: verbatim
14107 #: ../src/guestfs-actions.pod:5520
14108 #, no-wrap
14109 msgid ""
14110 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
14111 "\n"
14112 msgstr ""
14113
14114 # type: textblock
14115 #: ../src/guestfs-actions.pod:5522 ../fish/guestfish-actions.pod:4285
14116 msgid ""
14117 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14118 "> command.  The \"full\" version includes all fields."
14119 msgstr ""
14120
14121 # type: textblock
14122 #: ../src/guestfs-actions.pod:5525
14123 msgid ""
14124 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
14125 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
14126 "C<guestfs_free_lvm_vg_list> after use>."
14127 msgstr ""
14128
14129 # type: =head2
14130 #: ../src/guestfs-actions.pod:5530
14131 msgid "guestfs_vgscan"
14132 msgstr ""
14133
14134 # type: verbatim
14135 #: ../src/guestfs-actions.pod:5532
14136 #, no-wrap
14137 msgid ""
14138 " int guestfs_vgscan (guestfs_h *g);\n"
14139 "\n"
14140 msgstr ""
14141
14142 # type: textblock
14143 #: ../src/guestfs-actions.pod:5534 ../fish/guestfish-actions.pod:4292
14144 msgid ""
14145 "This rescans all block devices and rebuilds the list of LVM physical "
14146 "volumes, volume groups and logical volumes."
14147 msgstr ""
14148
14149 # type: =head2
14150 #: ../src/guestfs-actions.pod:5539
14151 msgid "guestfs_vguuid"
14152 msgstr ""
14153
14154 # type: verbatim
14155 #: ../src/guestfs-actions.pod:5541
14156 #, no-wrap
14157 msgid ""
14158 " char *guestfs_vguuid (guestfs_h *g,\n"
14159 "\t\tconst char *vgname);\n"
14160 "\n"
14161 msgstr ""
14162
14163 # type: textblock
14164 #: ../src/guestfs-actions.pod:5544 ../fish/guestfish-actions.pod:4299
14165 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14166 msgstr ""
14167
14168 # type: =head2
14169 #: ../src/guestfs-actions.pod:5549
14170 msgid "guestfs_wait_ready"
14171 msgstr ""
14172
14173 # type: verbatim
14174 #: ../src/guestfs-actions.pod:5551
14175 #, no-wrap
14176 msgid ""
14177 " int guestfs_wait_ready (guestfs_h *g);\n"
14178 "\n"
14179 msgstr ""
14180
14181 # type: textblock
14182 #: ../src/guestfs-actions.pod:5553
14183 msgid "This function is a no op."
14184 msgstr ""
14185
14186 # type: textblock
14187 #: ../src/guestfs-actions.pod:5555
14188 msgid ""
14189 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14190 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14191 "is no longer necessary because C<guestfs_launch> now does the waiting."
14192 msgstr ""
14193
14194 # type: textblock
14195 #: ../src/guestfs-actions.pod:5560
14196 msgid ""
14197 "If you see any calls to this function in code then you can just remove them, "
14198 "unless you want to retain compatibility with older versions of the API."
14199 msgstr ""
14200
14201 # type: =head2
14202 #: ../src/guestfs-actions.pod:5566
14203 msgid "guestfs_wc_c"
14204 msgstr ""
14205
14206 # type: verbatim
14207 #: ../src/guestfs-actions.pod:5568
14208 #, no-wrap
14209 msgid ""
14210 " int guestfs_wc_c (guestfs_h *g,\n"
14211 "\t\tconst char *path);\n"
14212 "\n"
14213 msgstr ""
14214
14215 # type: textblock
14216 #: ../src/guestfs-actions.pod:5571 ../fish/guestfish-actions.pod:4305
14217 msgid ""
14218 "This command counts the characters in a file, using the C<wc -c> external "
14219 "command."
14220 msgstr ""
14221
14222 # type: =head2
14223 #: ../src/guestfs-actions.pod:5576
14224 msgid "guestfs_wc_l"
14225 msgstr ""
14226
14227 # type: verbatim
14228 #: ../src/guestfs-actions.pod:5578
14229 #, no-wrap
14230 msgid ""
14231 " int guestfs_wc_l (guestfs_h *g,\n"
14232 "\t\tconst char *path);\n"
14233 "\n"
14234 msgstr ""
14235
14236 # type: textblock
14237 #: ../src/guestfs-actions.pod:5581 ../fish/guestfish-actions.pod:4312
14238 msgid ""
14239 "This command counts the lines in a file, using the C<wc -l> external command."
14240 msgstr ""
14241
14242 # type: =head2
14243 #: ../src/guestfs-actions.pod:5586
14244 msgid "guestfs_wc_w"
14245 msgstr ""
14246
14247 # type: verbatim
14248 #: ../src/guestfs-actions.pod:5588
14249 #, no-wrap
14250 msgid ""
14251 " int guestfs_wc_w (guestfs_h *g,\n"
14252 "\t\tconst char *path);\n"
14253 "\n"
14254 msgstr ""
14255
14256 # type: textblock
14257 #: ../src/guestfs-actions.pod:5591 ../fish/guestfish-actions.pod:4319
14258 msgid ""
14259 "This command counts the words in a file, using the C<wc -w> external command."
14260 msgstr ""
14261
14262 # type: =head2
14263 #: ../src/guestfs-actions.pod:5596
14264 msgid "guestfs_write"
14265 msgstr ""
14266
14267 # type: verbatim
14268 #: ../src/guestfs-actions.pod:5598
14269 #, no-wrap
14270 msgid ""
14271 " int guestfs_write (guestfs_h *g,\n"
14272 "\t\tconst char *path,\n"
14273 "\t\tconst char *content,\n"
14274 "\t\tsize_t content_size);\n"
14275 "\n"
14276 msgstr ""
14277
14278 # type: textblock
14279 #: ../src/guestfs-actions.pod:5603 ../fish/guestfish-actions.pod:4326
14280 msgid ""
14281 "This call creates a file called C<path>.  The content of the file is the "
14282 "string C<content> (which can contain any 8 bit data)."
14283 msgstr ""
14284
14285 # type: =head2
14286 #: ../src/guestfs-actions.pod:5611
14287 msgid "guestfs_write_file"
14288 msgstr ""
14289
14290 # type: verbatim
14291 #: ../src/guestfs-actions.pod:5613
14292 #, no-wrap
14293 msgid ""
14294 " int guestfs_write_file (guestfs_h *g,\n"
14295 "\t\tconst char *path,\n"
14296 "\t\tconst char *content,\n"
14297 "\t\tint size);\n"
14298 "\n"
14299 msgstr ""
14300
14301 # type: textblock
14302 #: ../src/guestfs-actions.pod:5618 ../fish/guestfish-actions.pod:4336
14303 msgid ""
14304 "This call creates a file called C<path>.  The contents of the file is the "
14305 "string C<content> (which can contain any 8 bit data), with length C<size>."
14306 msgstr ""
14307
14308 # type: textblock
14309 #: ../src/guestfs-actions.pod:5622 ../fish/guestfish-actions.pod:4340
14310 msgid ""
14311 "As a special case, if C<size> is C<0> then the length is calculated using "
14312 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14313 msgstr ""
14314
14315 # type: textblock
14316 #: ../src/guestfs-actions.pod:5626 ../fish/guestfish-actions.pod:4344
14317 msgid ""
14318 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14319 "I<not> work, even if the length is specified."
14320 msgstr ""
14321
14322 # type: textblock
14323 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:4350
14324 msgid ""
14325 "This function is deprecated.  In new code, use the C<write> call instead."
14326 msgstr ""
14327
14328 # type: =head2
14329 #: ../src/guestfs-actions.pod:5641
14330 msgid "guestfs_zegrep"
14331 msgstr ""
14332
14333 # type: verbatim
14334 #: ../src/guestfs-actions.pod:5643
14335 #, no-wrap
14336 msgid ""
14337 " char **guestfs_zegrep (guestfs_h *g,\n"
14338 "\t\tconst char *regex,\n"
14339 "\t\tconst char *path);\n"
14340 "\n"
14341 msgstr ""
14342
14343 # type: textblock
14344 #: ../src/guestfs-actions.pod:5647 ../fish/guestfish-actions.pod:4361
14345 msgid ""
14346 "This calls the external C<zegrep> program and returns the matching lines."
14347 msgstr ""
14348
14349 # type: =head2
14350 #: ../src/guestfs-actions.pod:5657
14351 msgid "guestfs_zegrepi"
14352 msgstr ""
14353
14354 # type: verbatim
14355 #: ../src/guestfs-actions.pod:5659
14356 #, no-wrap
14357 msgid ""
14358 " char **guestfs_zegrepi (guestfs_h *g,\n"
14359 "\t\tconst char *regex,\n"
14360 "\t\tconst char *path);\n"
14361 "\n"
14362 msgstr ""
14363
14364 # type: textblock
14365 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:4371
14366 msgid ""
14367 "This calls the external C<zegrep -i> program and returns the matching lines."
14368 msgstr ""
14369
14370 # type: =head2
14371 #: ../src/guestfs-actions.pod:5673
14372 msgid "guestfs_zero"
14373 msgstr ""
14374
14375 # type: verbatim
14376 #: ../src/guestfs-actions.pod:5675
14377 #, no-wrap
14378 msgid ""
14379 " int guestfs_zero (guestfs_h *g,\n"
14380 "\t\tconst char *device);\n"
14381 "\n"
14382 msgstr ""
14383
14384 # type: textblock
14385 #: ../src/guestfs-actions.pod:5678 ../fish/guestfish-actions.pod:4381
14386 msgid "This command writes zeroes over the first few blocks of C<device>."
14387 msgstr ""
14388
14389 # type: textblock
14390 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:4383
14391 msgid ""
14392 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14393 "securely wipe the device).  It should be sufficient to remove any partition "
14394 "tables, filesystem superblocks and so on."
14395 msgstr ""
14396
14397 # type: textblock
14398 #: ../src/guestfs-actions.pod:5684
14399 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14400 msgstr ""
14401
14402 # type: =head2
14403 #: ../src/guestfs-actions.pod:5693
14404 msgid "guestfs_zero_device"
14405 msgstr ""
14406
14407 # type: verbatim
14408 #: ../src/guestfs-actions.pod:5695
14409 #, no-wrap
14410 msgid ""
14411 " int guestfs_zero_device (guestfs_h *g,\n"
14412 "\t\tconst char *device);\n"
14413 "\n"
14414 msgstr ""
14415
14416 # type: textblock
14417 #: ../src/guestfs-actions.pod:5698
14418 msgid ""
14419 "This command writes zeroes over the entire C<device>.  Compare with "
14420 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14421 msgstr ""
14422
14423 # type: =head2
14424 #: ../src/guestfs-actions.pod:5712
14425 msgid "guestfs_zerofree"
14426 msgstr ""
14427
14428 # type: verbatim
14429 #: ../src/guestfs-actions.pod:5714
14430 #, no-wrap
14431 msgid ""
14432 " int guestfs_zerofree (guestfs_h *g,\n"
14433 "\t\tconst char *device);\n"
14434 "\n"
14435 msgstr ""
14436
14437 # type: textblock
14438 #: ../src/guestfs-actions.pod:5717 ../fish/guestfish-actions.pod:4404
14439 msgid ""
14440 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14441 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14442 "possible to compress the filesystem more effectively."
14443 msgstr ""
14444
14445 # type: textblock
14446 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:4409
14447 msgid "You should B<not> run this program if the filesystem is mounted."
14448 msgstr ""
14449
14450 # type: textblock
14451 #: ../src/guestfs-actions.pod:5725 ../fish/guestfish-actions.pod:4412
14452 msgid ""
14453 "It is possible that using this program can damage the filesystem or data on "
14454 "the filesystem."
14455 msgstr ""
14456
14457 # type: =head2
14458 #: ../src/guestfs-actions.pod:5730
14459 msgid "guestfs_zfgrep"
14460 msgstr ""
14461
14462 # type: verbatim
14463 #: ../src/guestfs-actions.pod:5732
14464 #, no-wrap
14465 msgid ""
14466 " char **guestfs_zfgrep (guestfs_h *g,\n"
14467 "\t\tconst char *pattern,\n"
14468 "\t\tconst char *path);\n"
14469 "\n"
14470 msgstr ""
14471
14472 # type: textblock
14473 #: ../src/guestfs-actions.pod:5736 ../fish/guestfish-actions.pod:4419
14474 msgid ""
14475 "This calls the external C<zfgrep> program and returns the matching lines."
14476 msgstr ""
14477
14478 # type: =head2
14479 #: ../src/guestfs-actions.pod:5746
14480 msgid "guestfs_zfgrepi"
14481 msgstr ""
14482
14483 # type: verbatim
14484 #: ../src/guestfs-actions.pod:5748
14485 #, no-wrap
14486 msgid ""
14487 " char **guestfs_zfgrepi (guestfs_h *g,\n"
14488 "\t\tconst char *pattern,\n"
14489 "\t\tconst char *path);\n"
14490 "\n"
14491 msgstr ""
14492
14493 # type: textblock
14494 #: ../src/guestfs-actions.pod:5752 ../fish/guestfish-actions.pod:4429
14495 msgid ""
14496 "This calls the external C<zfgrep -i> program and returns the matching lines."
14497 msgstr ""
14498
14499 # type: =head2
14500 #: ../src/guestfs-actions.pod:5762
14501 msgid "guestfs_zfile"
14502 msgstr ""
14503
14504 # type: verbatim
14505 #: ../src/guestfs-actions.pod:5764
14506 #, no-wrap
14507 msgid ""
14508 " char *guestfs_zfile (guestfs_h *g,\n"
14509 "\t\tconst char *meth,\n"
14510 "\t\tconst char *path);\n"
14511 "\n"
14512 msgstr ""
14513
14514 # type: textblock
14515 #: ../src/guestfs-actions.pod:5768 ../fish/guestfish-actions.pod:4439
14516 msgid ""
14517 "This command runs C<file> after first decompressing C<path> using C<method>."
14518 msgstr ""
14519
14520 # type: textblock
14521 #: ../src/guestfs-actions.pod:5771 ../fish/guestfish-actions.pod:4442
14522 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14523 msgstr ""
14524
14525 # type: textblock
14526 #: ../src/guestfs-actions.pod:5773
14527 msgid ""
14528 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14529 "files."
14530 msgstr ""
14531
14532 # type: textblock
14533 #: ../src/guestfs-actions.pod:5779 ../fish/guestfish-actions.pod:4447
14534 msgid ""
14535 "This function is deprecated.  In new code, use the C<file> call instead."
14536 msgstr ""
14537
14538 # type: =head2
14539 #: ../src/guestfs-actions.pod:5786
14540 msgid "guestfs_zgrep"
14541 msgstr ""
14542
14543 # type: verbatim
14544 #: ../src/guestfs-actions.pod:5788
14545 #, no-wrap
14546 msgid ""
14547 " char **guestfs_zgrep (guestfs_h *g,\n"
14548 "\t\tconst char *regex,\n"
14549 "\t\tconst char *path);\n"
14550 "\n"
14551 msgstr ""
14552
14553 # type: textblock
14554 #: ../src/guestfs-actions.pod:5792 ../fish/guestfish-actions.pod:4458
14555 msgid ""
14556 "This calls the external C<zgrep> program and returns the matching lines."
14557 msgstr ""
14558
14559 # type: =head2
14560 #: ../src/guestfs-actions.pod:5802
14561 msgid "guestfs_zgrepi"
14562 msgstr ""
14563
14564 # type: verbatim
14565 #: ../src/guestfs-actions.pod:5804
14566 #, no-wrap
14567 msgid ""
14568 " char **guestfs_zgrepi (guestfs_h *g,\n"
14569 "\t\tconst char *regex,\n"
14570 "\t\tconst char *path);\n"
14571 "\n"
14572 msgstr ""
14573
14574 # type: textblock
14575 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:4468
14576 msgid ""
14577 "This calls the external C<zgrep -i> program and returns the matching lines."
14578 msgstr ""
14579
14580 # type: =item
14581 #: ../src/guestfs-availability.pod:3
14582 msgid "B<augeas>"
14583 msgstr ""
14584
14585 # type: textblock
14586 #: ../src/guestfs-availability.pod:5
14587 msgid ""
14588 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
14589 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
14590 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
14591 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
14592 "L</guestfs_aug_save> L</guestfs_aug_set>"
14593 msgstr ""
14594
14595 # type: =item
14596 #: ../src/guestfs-availability.pod:21
14597 msgid "B<inotify>"
14598 msgstr ""
14599
14600 # type: textblock
14601 #: ../src/guestfs-availability.pod:23
14602 msgid ""
14603 "The following functions: L</guestfs_inotify_add_watch> L</"
14604 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
14605 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14606 msgstr ""
14607
14608 # type: =item
14609 #: ../src/guestfs-availability.pod:31
14610 msgid "B<linuxfsuuid>"
14611 msgstr ""
14612
14613 # type: textblock
14614 #: ../src/guestfs-availability.pod:33
14615 msgid ""
14616 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
14617 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14618 msgstr ""
14619
14620 # type: =item
14621 #: ../src/guestfs-availability.pod:40
14622 msgid "B<linuxmodules>"
14623 msgstr ""
14624
14625 # type: textblock
14626 #: ../src/guestfs-availability.pod:42
14627 msgid "The following functions: L</guestfs_modprobe>"
14628 msgstr ""
14629
14630 # type: =item
14631 #: ../src/guestfs-availability.pod:45
14632 msgid "B<linuxxattrs>"
14633 msgstr ""
14634
14635 # type: textblock
14636 #: ../src/guestfs-availability.pod:47
14637 msgid ""
14638 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
14639 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
14640 "guestfs_removexattr> L</guestfs_setxattr>"
14641 msgstr ""
14642
14643 # type: =item
14644 #: ../src/guestfs-availability.pod:56
14645 msgid "B<luks>"
14646 msgstr ""
14647
14648 # type: textblock
14649 #: ../src/guestfs-availability.pod:58
14650 msgid ""
14651 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
14652 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
14653 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14654 msgstr ""
14655
14656 # type: =item
14657 #: ../src/guestfs-availability.pod:67
14658 msgid "B<lvm2>"
14659 msgstr ""
14660
14661 # type: textblock
14662 #: ../src/guestfs-availability.pod:69
14663 msgid ""
14664 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
14665 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
14666 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
14667 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
14668 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
14669 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
14670 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
14671 msgstr ""
14672
14673 # type: =item
14674 #: ../src/guestfs-availability.pod:92
14675 msgid "B<mknod>"
14676 msgstr ""
14677
14678 # type: textblock
14679 #: ../src/guestfs-availability.pod:94
14680 msgid ""
14681 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
14682 "guestfs_mknod_b> L</guestfs_mknod_c>"
14683 msgstr ""
14684
14685 # type: =item
14686 #: ../src/guestfs-availability.pod:100
14687 msgid "B<ntfs3g>"
14688 msgstr ""
14689
14690 # type: textblock
14691 #: ../src/guestfs-availability.pod:102
14692 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14693 msgstr ""
14694
14695 # type: =item
14696 #: ../src/guestfs-availability.pod:105
14697 msgid "B<ntfsprogs>"
14698 msgstr ""
14699
14700 # type: textblock
14701 #: ../src/guestfs-availability.pod:107
14702 msgid ""
14703 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14704 msgstr ""
14705
14706 # type: =item
14707 #: ../src/guestfs-availability.pod:111
14708 msgid "B<realpath>"
14709 msgstr ""
14710
14711 # type: textblock
14712 #: ../src/guestfs-availability.pod:113
14713 msgid "The following functions: L</guestfs_realpath>"
14714 msgstr ""
14715
14716 # type: =item
14717 #: ../src/guestfs-availability.pod:116
14718 msgid "B<scrub>"
14719 msgstr ""
14720
14721 # type: textblock
14722 #: ../src/guestfs-availability.pod:118
14723 msgid ""
14724 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
14725 "guestfs_scrub_freespace>"
14726 msgstr ""
14727
14728 # type: =item
14729 #: ../src/guestfs-availability.pod:123
14730 msgid "B<selinux>"
14731 msgstr ""
14732
14733 # type: textblock
14734 #: ../src/guestfs-availability.pod:125
14735 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14736 msgstr ""
14737
14738 # type: =item
14739 #: ../src/guestfs-availability.pod:129
14740 msgid "B<xz>"
14741 msgstr ""
14742
14743 # type: textblock
14744 #: ../src/guestfs-availability.pod:131
14745 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14746 msgstr ""
14747
14748 # type: =item
14749 #: ../src/guestfs-availability.pod:135
14750 msgid "B<zerofree>"
14751 msgstr ""
14752
14753 # type: textblock
14754 #: ../src/guestfs-availability.pod:137
14755 msgid "The following functions: L</guestfs_zerofree>"
14756 msgstr ""
14757
14758 # type: =head2
14759 #: ../src/guestfs-structs.pod:1
14760 msgid "guestfs_int_bool"
14761 msgstr ""
14762
14763 # type: verbatim
14764 #: ../src/guestfs-structs.pod:3
14765 #, no-wrap
14766 msgid ""
14767 " struct guestfs_int_bool {\n"
14768 "   int32_t i;\n"
14769 "   int32_t b;\n"
14770 " };\n"
14771 " \n"
14772 msgstr ""
14773
14774 # type: verbatim
14775 #: ../src/guestfs-structs.pod:8
14776 #, no-wrap
14777 msgid ""
14778 " struct guestfs_int_bool_list {\n"
14779 "   uint32_t len; /* Number of elements in list. */\n"
14780 "   struct guestfs_int_bool *val; /* Elements. */\n"
14781 " };\n"
14782 " \n"
14783 msgstr ""
14784
14785 # type: verbatim
14786 #: ../src/guestfs-structs.pod:13
14787 #, no-wrap
14788 msgid ""
14789 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14790 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14791 "\n"
14792 msgstr ""
14793
14794 # type: =head2
14795 #: ../src/guestfs-structs.pod:16
14796 msgid "guestfs_lvm_pv"
14797 msgstr ""
14798
14799 # type: verbatim
14800 #: ../src/guestfs-structs.pod:18
14801 #, no-wrap
14802 msgid ""
14803 " struct guestfs_lvm_pv {\n"
14804 "   char *pv_name;\n"
14805 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14806 "   char pv_uuid[32];\n"
14807 "   char *pv_fmt;\n"
14808 "   uint64_t pv_size;\n"
14809 "   uint64_t dev_size;\n"
14810 "   uint64_t pv_free;\n"
14811 "   uint64_t pv_used;\n"
14812 "   char *pv_attr;\n"
14813 "   int64_t pv_pe_count;\n"
14814 "   int64_t pv_pe_alloc_count;\n"
14815 "   char *pv_tags;\n"
14816 "   uint64_t pe_start;\n"
14817 "   int64_t pv_mda_count;\n"
14818 "   uint64_t pv_mda_free;\n"
14819 " };\n"
14820 " \n"
14821 msgstr ""
14822
14823 # type: verbatim
14824 #: ../src/guestfs-structs.pod:36
14825 #, no-wrap
14826 msgid ""
14827 " struct guestfs_lvm_pv_list {\n"
14828 "   uint32_t len; /* Number of elements in list. */\n"
14829 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14830 " };\n"
14831 " \n"
14832 msgstr ""
14833
14834 # type: verbatim
14835 #: ../src/guestfs-structs.pod:41
14836 #, no-wrap
14837 msgid ""
14838 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14839 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14840 "\n"
14841 msgstr ""
14842
14843 # type: =head2
14844 #: ../src/guestfs-structs.pod:44
14845 msgid "guestfs_lvm_vg"
14846 msgstr ""
14847
14848 # type: verbatim
14849 #: ../src/guestfs-structs.pod:46
14850 #, no-wrap
14851 msgid ""
14852 " struct guestfs_lvm_vg {\n"
14853 "   char *vg_name;\n"
14854 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14855 "   char vg_uuid[32];\n"
14856 "   char *vg_fmt;\n"
14857 "   char *vg_attr;\n"
14858 "   uint64_t vg_size;\n"
14859 "   uint64_t vg_free;\n"
14860 "   char *vg_sysid;\n"
14861 "   uint64_t vg_extent_size;\n"
14862 "   int64_t vg_extent_count;\n"
14863 "   int64_t vg_free_count;\n"
14864 "   int64_t max_lv;\n"
14865 "   int64_t max_pv;\n"
14866 "   int64_t pv_count;\n"
14867 "   int64_t lv_count;\n"
14868 "   int64_t snap_count;\n"
14869 "   int64_t vg_seqno;\n"
14870 "   char *vg_tags;\n"
14871 "   int64_t vg_mda_count;\n"
14872 "   uint64_t vg_mda_free;\n"
14873 " };\n"
14874 " \n"
14875 msgstr ""
14876
14877 # type: verbatim
14878 #: ../src/guestfs-structs.pod:69
14879 #, no-wrap
14880 msgid ""
14881 " struct guestfs_lvm_vg_list {\n"
14882 "   uint32_t len; /* Number of elements in list. */\n"
14883 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14884 " };\n"
14885 " \n"
14886 msgstr ""
14887
14888 # type: verbatim
14889 #: ../src/guestfs-structs.pod:74
14890 #, no-wrap
14891 msgid ""
14892 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14893 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14894 "\n"
14895 msgstr ""
14896
14897 # type: =head2
14898 #: ../src/guestfs-structs.pod:77
14899 msgid "guestfs_lvm_lv"
14900 msgstr ""
14901
14902 # type: verbatim
14903 #: ../src/guestfs-structs.pod:79
14904 #, no-wrap
14905 msgid ""
14906 " struct guestfs_lvm_lv {\n"
14907 "   char *lv_name;\n"
14908 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
14909 "   char lv_uuid[32];\n"
14910 "   char *lv_attr;\n"
14911 "   int64_t lv_major;\n"
14912 "   int64_t lv_minor;\n"
14913 "   int64_t lv_kernel_major;\n"
14914 "   int64_t lv_kernel_minor;\n"
14915 "   uint64_t lv_size;\n"
14916 "   int64_t seg_count;\n"
14917 "   char *origin;\n"
14918 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14919 "   float snap_percent;\n"
14920 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14921 "   float copy_percent;\n"
14922 "   char *move_pv;\n"
14923 "   char *lv_tags;\n"
14924 "   char *mirror_log;\n"
14925 "   char *modules;\n"
14926 " };\n"
14927 " \n"
14928 msgstr ""
14929
14930 # type: verbatim
14931 #: ../src/guestfs-structs.pod:101
14932 #, no-wrap
14933 msgid ""
14934 " struct guestfs_lvm_lv_list {\n"
14935 "   uint32_t len; /* Number of elements in list. */\n"
14936 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14937 " };\n"
14938 " \n"
14939 msgstr ""
14940
14941 # type: verbatim
14942 #: ../src/guestfs-structs.pod:106
14943 #, no-wrap
14944 msgid ""
14945 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14946 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14947 "\n"
14948 msgstr ""
14949
14950 # type: verbatim
14951 #: ../src/guestfs-structs.pod:111
14952 #, no-wrap
14953 msgid ""
14954 " struct guestfs_stat {\n"
14955 "   int64_t dev;\n"
14956 "   int64_t ino;\n"
14957 "   int64_t mode;\n"
14958 "   int64_t nlink;\n"
14959 "   int64_t uid;\n"
14960 "   int64_t gid;\n"
14961 "   int64_t rdev;\n"
14962 "   int64_t size;\n"
14963 "   int64_t blksize;\n"
14964 "   int64_t blocks;\n"
14965 "   int64_t atime;\n"
14966 "   int64_t mtime;\n"
14967 "   int64_t ctime;\n"
14968 " };\n"
14969 " \n"
14970 msgstr ""
14971
14972 # type: verbatim
14973 #: ../src/guestfs-structs.pod:127
14974 #, no-wrap
14975 msgid ""
14976 " struct guestfs_stat_list {\n"
14977 "   uint32_t len; /* Number of elements in list. */\n"
14978 "   struct guestfs_stat *val; /* Elements. */\n"
14979 " };\n"
14980 " \n"
14981 msgstr ""
14982
14983 # type: verbatim
14984 #: ../src/guestfs-structs.pod:132
14985 #, no-wrap
14986 msgid ""
14987 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14988 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14989 "\n"
14990 msgstr ""
14991
14992 # type: verbatim
14993 #: ../src/guestfs-structs.pod:137
14994 #, no-wrap
14995 msgid ""
14996 " struct guestfs_statvfs {\n"
14997 "   int64_t bsize;\n"
14998 "   int64_t frsize;\n"
14999 "   int64_t blocks;\n"
15000 "   int64_t bfree;\n"
15001 "   int64_t bavail;\n"
15002 "   int64_t files;\n"
15003 "   int64_t ffree;\n"
15004 "   int64_t favail;\n"
15005 "   int64_t fsid;\n"
15006 "   int64_t flag;\n"
15007 "   int64_t namemax;\n"
15008 " };\n"
15009 " \n"
15010 msgstr ""
15011
15012 # type: verbatim
15013 #: ../src/guestfs-structs.pod:151
15014 #, no-wrap
15015 msgid ""
15016 " struct guestfs_statvfs_list {\n"
15017 "   uint32_t len; /* Number of elements in list. */\n"
15018 "   struct guestfs_statvfs *val; /* Elements. */\n"
15019 " };\n"
15020 " \n"
15021 msgstr ""
15022
15023 # type: verbatim
15024 #: ../src/guestfs-structs.pod:156
15025 #, no-wrap
15026 msgid ""
15027 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15028 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15029 "\n"
15030 msgstr ""
15031
15032 # type: =head2
15033 #: ../src/guestfs-structs.pod:159
15034 msgid "guestfs_dirent"
15035 msgstr ""
15036
15037 # type: verbatim
15038 #: ../src/guestfs-structs.pod:161
15039 #, no-wrap
15040 msgid ""
15041 " struct guestfs_dirent {\n"
15042 "   int64_t ino;\n"
15043 "   char ftyp;\n"
15044 "   char *name;\n"
15045 " };\n"
15046 " \n"
15047 msgstr ""
15048
15049 # type: verbatim
15050 #: ../src/guestfs-structs.pod:167
15051 #, no-wrap
15052 msgid ""
15053 " struct guestfs_dirent_list {\n"
15054 "   uint32_t len; /* Number of elements in list. */\n"
15055 "   struct guestfs_dirent *val; /* Elements. */\n"
15056 " };\n"
15057 " \n"
15058 msgstr ""
15059
15060 # type: verbatim
15061 #: ../src/guestfs-structs.pod:172
15062 #, no-wrap
15063 msgid ""
15064 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15065 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15066 "\n"
15067 msgstr ""
15068
15069 # type: verbatim
15070 #: ../src/guestfs-structs.pod:177
15071 #, no-wrap
15072 msgid ""
15073 " struct guestfs_version {\n"
15074 "   int64_t major;\n"
15075 "   int64_t minor;\n"
15076 "   int64_t release;\n"
15077 "   char *extra;\n"
15078 " };\n"
15079 " \n"
15080 msgstr ""
15081
15082 # type: verbatim
15083 #: ../src/guestfs-structs.pod:184
15084 #, no-wrap
15085 msgid ""
15086 " struct guestfs_version_list {\n"
15087 "   uint32_t len; /* Number of elements in list. */\n"
15088 "   struct guestfs_version *val; /* Elements. */\n"
15089 " };\n"
15090 " \n"
15091 msgstr ""
15092
15093 # type: verbatim
15094 #: ../src/guestfs-structs.pod:189
15095 #, no-wrap
15096 msgid ""
15097 " void guestfs_free_version (struct guestfs_free_version *);\n"
15098 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15099 "\n"
15100 msgstr ""
15101
15102 # type: =head2
15103 #: ../src/guestfs-structs.pod:192
15104 msgid "guestfs_xattr"
15105 msgstr ""
15106
15107 # type: verbatim
15108 #: ../src/guestfs-structs.pod:194
15109 #, no-wrap
15110 msgid ""
15111 " struct guestfs_xattr {\n"
15112 "   char *attrname;\n"
15113 "   /* The next two fields describe a byte array. */\n"
15114 "   uint32_t attrval_len;\n"
15115 "   char *attrval;\n"
15116 " };\n"
15117 " \n"
15118 msgstr ""
15119
15120 # type: verbatim
15121 #: ../src/guestfs-structs.pod:201
15122 #, no-wrap
15123 msgid ""
15124 " struct guestfs_xattr_list {\n"
15125 "   uint32_t len; /* Number of elements in list. */\n"
15126 "   struct guestfs_xattr *val; /* Elements. */\n"
15127 " };\n"
15128 " \n"
15129 msgstr ""
15130
15131 # type: verbatim
15132 #: ../src/guestfs-structs.pod:206
15133 #, no-wrap
15134 msgid ""
15135 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15136 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15137 "\n"
15138 msgstr ""
15139
15140 # type: =head2
15141 #: ../src/guestfs-structs.pod:209
15142 msgid "guestfs_inotify_event"
15143 msgstr ""
15144
15145 # type: verbatim
15146 #: ../src/guestfs-structs.pod:211
15147 #, no-wrap
15148 msgid ""
15149 " struct guestfs_inotify_event {\n"
15150 "   int64_t in_wd;\n"
15151 "   uint32_t in_mask;\n"
15152 "   uint32_t in_cookie;\n"
15153 "   char *in_name;\n"
15154 " };\n"
15155 " \n"
15156 msgstr ""
15157
15158 # type: verbatim
15159 #: ../src/guestfs-structs.pod:218
15160 #, no-wrap
15161 msgid ""
15162 " struct guestfs_inotify_event_list {\n"
15163 "   uint32_t len; /* Number of elements in list. */\n"
15164 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15165 " };\n"
15166 " \n"
15167 msgstr ""
15168
15169 # type: verbatim
15170 #: ../src/guestfs-structs.pod:223
15171 #, no-wrap
15172 msgid ""
15173 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15174 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
15175 "\n"
15176 msgstr ""
15177
15178 # type: =head2
15179 #: ../src/guestfs-structs.pod:226
15180 msgid "guestfs_partition"
15181 msgstr ""
15182
15183 # type: verbatim
15184 #: ../src/guestfs-structs.pod:228
15185 #, no-wrap
15186 msgid ""
15187 " struct guestfs_partition {\n"
15188 "   int32_t part_num;\n"
15189 "   uint64_t part_start;\n"
15190 "   uint64_t part_end;\n"
15191 "   uint64_t part_size;\n"
15192 " };\n"
15193 " \n"
15194 msgstr ""
15195
15196 # type: verbatim
15197 #: ../src/guestfs-structs.pod:235
15198 #, no-wrap
15199 msgid ""
15200 " struct guestfs_partition_list {\n"
15201 "   uint32_t len; /* Number of elements in list. */\n"
15202 "   struct guestfs_partition *val; /* Elements. */\n"
15203 " };\n"
15204 " \n"
15205 msgstr ""
15206
15207 # type: verbatim
15208 #: ../src/guestfs-structs.pod:240
15209 #, no-wrap
15210 msgid ""
15211 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15212 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15213 "\n"
15214 msgstr ""
15215
15216 # type: textblock
15217 #: ../fish/guestfish.pod:5
15218 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15219 msgstr ""
15220
15221 # type: verbatim
15222 #: ../fish/guestfish.pod:9
15223 #, no-wrap
15224 msgid ""
15225 " guestfish [--options] [commands]\n"
15226 "\n"
15227 msgstr ""
15228
15229 # type: verbatim
15230 #: ../fish/guestfish.pod:11
15231 #, no-wrap
15232 msgid ""
15233 " guestfish\n"
15234 "\n"
15235 msgstr ""
15236
15237 # type: verbatim
15238 #: ../fish/guestfish.pod:13
15239 #, no-wrap
15240 msgid ""
15241 " guestfish -a disk.img\n"
15242 "\n"
15243 msgstr ""
15244
15245 # type: verbatim
15246 #: ../fish/guestfish.pod:15
15247 #, no-wrap
15248 msgid ""
15249 " guestfish -a disk.img -m dev[:mountpoint]\n"
15250 "\n"
15251 msgstr ""
15252
15253 # type: verbatim
15254 #: ../fish/guestfish.pod:17
15255 #, no-wrap
15256 msgid ""
15257 " guestfish -d libvirt-domain\n"
15258 "\n"
15259 msgstr ""
15260
15261 # type: verbatim
15262 #: ../fish/guestfish.pod:19
15263 #, no-wrap
15264 msgid ""
15265 " guestfish -a disk.img -i\n"
15266 "\n"
15267 msgstr ""
15268
15269 # type: verbatim
15270 #: ../fish/guestfish.pod:21
15271 #, no-wrap
15272 msgid ""
15273 " guestfish -d libvirt-domain -i\n"
15274 "\n"
15275 msgstr ""
15276
15277 # type: =head1
15278 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
15279 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
15280 #: ../tools/virt-rescue.pl:41
15281 msgid "WARNING"
15282 msgstr ""
15283
15284 # type: textblock
15285 #: ../fish/guestfish.pod:25
15286 msgid ""
15287 "Using guestfish in read/write mode on live virtual machines can be "
15288 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15289 "option to use guestfish safely if the disk image or virtual machine might be "
15290 "live."
15291 msgstr ""
15292
15293 # type: textblock
15294 #: ../fish/guestfish.pod:32
15295 msgid ""
15296 "Guestfish is a shell and command-line tool for examining and modifying "
15297 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15298 "functionality of the guestfs API, see L<guestfs(3)>."
15299 msgstr ""
15300
15301 # type: textblock
15302 #: ../fish/guestfish.pod:36
15303 msgid ""
15304 "Guestfish gives you structured access to the libguestfs API, from shell "
15305 "scripts or the command line or interactively.  If you want to rescue a "
15306 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15307 "command."
15308 msgstr ""
15309
15310 # type: =head1
15311 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800
15312 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
15313 #: ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
15314 msgid "EXAMPLES"
15315 msgstr ""
15316
15317 # type: =head2
15318 #: ../fish/guestfish.pod:43
15319 msgid "As an interactive shell"
15320 msgstr ""
15321
15322 # type: verbatim
15323 #: ../fish/guestfish.pod:45
15324 #, no-wrap
15325 msgid ""
15326 " $ guestfish\n"
15327 " \n"
15328 msgstr ""
15329
15330 # type: verbatim
15331 #: ../fish/guestfish.pod:47
15332 #, no-wrap
15333 msgid ""
15334 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15335 " editing virtual machine filesystems.\n"
15336 " \n"
15337 msgstr ""
15338
15339 # type: verbatim
15340 #: ../fish/guestfish.pod:50
15341 #, no-wrap
15342 msgid ""
15343 " Type: 'help' for a list of commands\n"
15344 "       'man' to read the manual\n"
15345 "       'quit' to quit the shell\n"
15346 " \n"
15347 msgstr ""
15348
15349 # type: verbatim
15350 #: ../fish/guestfish.pod:54
15351 #, no-wrap
15352 msgid ""
15353 " ><fs> add-ro disk.img\n"
15354 " ><fs> run\n"
15355 " ><fs> list-filesystems\n"
15356 " /dev/sda1: ext4\n"
15357 " /dev/vg_guest/lv_root: ext4\n"
15358 " /dev/vg_guest/lv_swap: swap\n"
15359 " ><fs> mount /dev/vg_guest/lv_root /\n"
15360 " ><fs> cat /etc/fstab\n"
15361 " # /etc/fstab\n"
15362 " # Created by anaconda\n"
15363 " [...]\n"
15364 " ><fs> exit\n"
15365 "\n"
15366 msgstr ""
15367
15368 # type: =head2
15369 #: ../fish/guestfish.pod:67
15370 msgid "From shell scripts"
15371 msgstr ""
15372
15373 # type: textblock
15374 #: ../fish/guestfish.pod:69
15375 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15376 msgstr ""
15377
15378 # type: verbatim
15379 #: ../fish/guestfish.pod:71
15380 #, no-wrap
15381 msgid ""
15382 " guestfish <<_EOF_\n"
15383 " add disk.img\n"
15384 " run\n"
15385 " mount /dev/vg_guest/lv_root /\n"
15386 " write /etc/motd \"Welcome, new users\"\n"
15387 " _EOF_\n"
15388 "\n"
15389 msgstr ""
15390
15391 # type: textblock
15392 #: ../fish/guestfish.pod:78
15393 msgid "List the LVM logical volumes in a disk image:"
15394 msgstr ""
15395
15396 # type: verbatim
15397 #: ../fish/guestfish.pod:80
15398 #, no-wrap
15399 msgid ""
15400 " guestfish -a disk.img --ro <<_EOF_\n"
15401 " run\n"
15402 " lvs\n"
15403 " _EOF_\n"
15404 "\n"
15405 msgstr ""
15406
15407 # type: textblock
15408 #: ../fish/guestfish.pod:85
15409 msgid "List all the filesystems in a disk image:"
15410 msgstr ""
15411
15412 # type: verbatim
15413 #: ../fish/guestfish.pod:87
15414 #, no-wrap
15415 msgid ""
15416 " guestfish -a disk.img --ro <<_EOF_\n"
15417 " run\n"
15418 " list-filesystems\n"
15419 " _EOF_\n"
15420 "\n"
15421 msgstr ""
15422
15423 # type: =head2
15424 #: ../fish/guestfish.pod:92
15425 msgid "On one command line"
15426 msgstr ""
15427
15428 # type: textblock
15429 #: ../fish/guestfish.pod:94
15430 msgid "Update C</etc/resolv.conf> in a guest:"
15431 msgstr ""
15432
15433 # type: verbatim
15434 #: ../fish/guestfish.pod:96
15435 #, no-wrap
15436 msgid ""
15437 " guestfish \\\n"
15438 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15439 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15440 "\n"
15441 msgstr ""
15442
15443 # type: textblock
15444 #: ../fish/guestfish.pod:100
15445 msgid "Edit C</boot/grub/grub.conf> interactively:"
15446 msgstr ""
15447
15448 # type: verbatim
15449 #: ../fish/guestfish.pod:102
15450 #, no-wrap
15451 msgid ""
15452 " guestfish --add disk.img \\\n"
15453 "   --mount /dev/vg_guest/lv_root \\\n"
15454 "   --mount /dev/sda1:/boot \\\n"
15455 "   edit /boot/grub/grub.conf\n"
15456 "\n"
15457 msgstr ""
15458
15459 # type: =head2
15460 #: ../fish/guestfish.pod:107
15461 msgid "Mount disks automatically"
15462 msgstr ""
15463
15464 # type: textblock
15465 #: ../fish/guestfish.pod:109
15466 msgid ""
15467 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
15468 msgstr ""
15469
15470 # type: verbatim
15471 #: ../fish/guestfish.pod:112
15472 #, no-wrap
15473 msgid ""
15474 " guestfish --ro -a disk.img -i cat /etc/group\n"
15475 "\n"
15476 msgstr ""
15477
15478 # type: verbatim
15479 #: ../fish/guestfish.pod:114
15480 #, no-wrap
15481 msgid ""
15482 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15483 "\n"
15484 msgstr ""
15485
15486 # type: textblock
15487 #: ../fish/guestfish.pod:116
15488 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15489 msgstr ""
15490
15491 # type: verbatim
15492 #: ../fish/guestfish.pod:118
15493 #, no-wrap
15494 msgid ""
15495 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15496 "\n"
15497 msgstr ""
15498
15499 # type: =head2
15500 #: ../fish/guestfish.pod:120
15501 msgid "As a script interpreter"
15502 msgstr ""
15503
15504 # type: textblock
15505 #: ../fish/guestfish.pod:122
15506 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15507 msgstr ""
15508
15509 # type: verbatim
15510 #: ../fish/guestfish.pod:124
15511 #, no-wrap
15512 msgid ""
15513 " #!/usr/bin/guestfish -f\n"
15514 " sparse test1.img 100M\n"
15515 " run\n"
15516 " part-disk /dev/sda mbr\n"
15517 " mkfs ext2 /dev/sda1\n"
15518 "\n"
15519 msgstr ""
15520
15521 # type: =head2
15522 #: ../fish/guestfish.pod:130
15523 msgid "Start with a prepared disk"
15524 msgstr ""
15525
15526 # type: textblock
15527 #: ../fish/guestfish.pod:132
15528 msgid ""
15529 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15530 "single ext2-formatted partition:"
15531 msgstr ""
15532
15533 # type: verbatim
15534 #: ../fish/guestfish.pod:135
15535 #, no-wrap
15536 msgid ""
15537 " guestfish -N fs\n"
15538 "\n"
15539 msgstr ""
15540
15541 # type: textblock
15542 #: ../fish/guestfish.pod:137
15543 msgid "To list what is available do:"
15544 msgstr ""
15545
15546 # type: verbatim
15547 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15548 #, no-wrap
15549 msgid ""
15550 " guestfish -N help | less\n"
15551 "\n"
15552 msgstr ""
15553
15554 # type: =head2
15555 #: ../fish/guestfish.pod:141
15556 msgid "Remote control"
15557 msgstr ""
15558
15559 # type: verbatim
15560 #: ../fish/guestfish.pod:143
15561 #, no-wrap
15562 msgid ""
15563 " eval `guestfish --listen`\n"
15564 " guestfish --remote add-ro disk.img\n"
15565 " guestfish --remote run\n"
15566 " guestfish --remote lvs\n"
15567 "\n"
15568 msgstr ""
15569
15570 # type: =head1
15571 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
15572 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
15573 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
15574 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
15575 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79
15576 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
15577 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
15578 msgid "OPTIONS"
15579 msgstr ""
15580
15581 # type: =item
15582 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:124
15583 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
15584 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
15585 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
15586 #: ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106
15587 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
15588 #: ../tools/virt-list-partitions.pl:59
15589 msgid "B<--help>"
15590 msgstr ""
15591
15592 # type: textblock
15593 #: ../fish/guestfish.pod:154
15594 msgid "Displays general help on options."
15595 msgstr ""
15596
15597 # type: =item
15598 #: ../fish/guestfish.pod:156
15599 msgid "B<-h> | B<--cmd-help>"
15600 msgstr ""
15601
15602 # type: textblock
15603 #: ../fish/guestfish.pod:158
15604 msgid "Lists all available guestfish commands."
15605 msgstr ""
15606
15607 # type: =item
15608 #: ../fish/guestfish.pod:160
15609 msgid "B<-h cmd> | B<--cmd-help cmd>"
15610 msgstr ""
15611
15612 # type: textblock
15613 #: ../fish/guestfish.pod:162
15614 msgid "Displays detailed help on a single command C<cmd>."
15615 msgstr ""
15616
15617 # type: =item
15618 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
15619 msgid "B<-a image> | B<--add image>"
15620 msgstr ""
15621
15622 # type: textblock
15623 #: ../fish/guestfish.pod:166
15624 msgid "Add a block device or virtual machine image to the shell."
15625 msgstr ""
15626
15627 # type: textblock
15628 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
15629 msgid ""
15630 "The format of the disk image is auto-detected.  To override this and force a "
15631 "particular format use the I<--format=..> option."
15632 msgstr ""
15633
15634 # type: =item
15635 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
15636 msgid "B<-c URI> | B<--connect URI>"
15637 msgstr ""
15638
15639 # type: textblock
15640 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
15641 msgid ""
15642 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15643 "URI to use.  The default is to use the default libvirt connection."
15644 msgstr ""
15645
15646 # type: =item
15647 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
15648 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15649 msgstr ""
15650
15651 # type: textblock
15652 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
15653 msgid ""
15654 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15655 "used, then any libvirt domain can be used.  However in write mode, only "
15656 "libvirt domains which are shut down can be named here."
15657 msgstr ""
15658
15659 # type: =item
15660 #: ../fish/guestfish.pod:183
15661 msgid "B<-D> | B<--no-dest-paths>"
15662 msgstr ""
15663
15664 # type: textblock
15665 #: ../fish/guestfish.pod:185
15666 msgid ""
15667 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15668 "to hit the tab key to complete paths on the guest filesystem, but this "
15669 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15670 "allow this feature to be disabled."
15671 msgstr ""
15672
15673 # type: =item
15674 #: ../fish/guestfish.pod:190
15675 msgid "B<--echo-keys>"
15676 msgstr ""
15677
15678 # type: textblock
15679 #: ../fish/guestfish.pod:192
15680 msgid ""
15681 "When prompting for keys and passphrases, guestfish normally turns echoing "
15682 "off so you cannot see what you are typing.  If you are not worried about "
15683 "Tempest attacks and there is no one else in the room you can specify this "
15684 "flag to see what you are typing."
15685 msgstr ""
15686
15687 # type: =item
15688 #: ../fish/guestfish.pod:197
15689 msgid "B<-f file> | B<--file file>"
15690 msgstr ""
15691
15692 # type: textblock
15693 #: ../fish/guestfish.pod:199
15694 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15695 msgstr ""
15696
15697 # type: verbatim
15698 #: ../fish/guestfish.pod:202
15699 #, no-wrap
15700 msgid ""
15701 " #!/usr/bin/guestfish -f\n"
15702 "\n"
15703 msgstr ""
15704
15705 # type: =item
15706 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
15707 msgid "B<--format=raw|qcow2|..> | B<--format>"
15708 msgstr ""
15709
15710 # type: textblock
15711 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
15712 msgid ""
15713 "The default for the I<-a> option is to auto-detect the format of the disk "
15714 "image.  Using this forces the disk format for I<-a> options which follow on "
15715 "the command line.  Using I<--format> with no argument switches back to auto-"
15716 "detection for subsequent I<-a> options."
15717 msgstr ""
15718
15719 # type: textblock
15720 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
15721 #: ../inspector/virt-inspector.pl:549
15722 msgid "For example:"
15723 msgstr ""
15724
15725 # type: verbatim
15726 #: ../fish/guestfish.pod:213
15727 #, no-wrap
15728 msgid ""
15729 " guestfish --format=raw -a disk.img\n"
15730 "\n"
15731 msgstr ""
15732
15733 # type: textblock
15734 #: ../fish/guestfish.pod:215
15735 msgid "forces raw format (no auto-detection) for C<disk.img>."
15736 msgstr ""
15737
15738 # type: verbatim
15739 #: ../fish/guestfish.pod:217
15740 #, no-wrap
15741 msgid ""
15742 " guestfish --format=raw -a disk.img --format -a another.img\n"
15743 "\n"
15744 msgstr ""
15745
15746 # type: textblock
15747 #: ../fish/guestfish.pod:219
15748 msgid ""
15749 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
15750 "detection for C<another.img>."
15751 msgstr ""
15752
15753 # type: textblock
15754 #: ../fish/guestfish.pod:222
15755 msgid ""
15756 "If you have untrusted raw-format guest disk images, you should use this "
15757 "option to specify the disk format.  This avoids a possible security problem "
15758 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15759 msgstr ""
15760
15761 # type: =item
15762 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
15763 msgid "B<-i> | B<--inspector>"
15764 msgstr ""
15765
15766 # type: textblock
15767 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
15768 msgid ""
15769 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15770 "system and mount filesystems as they would be mounted on the real virtual "
15771 "machine."
15772 msgstr ""
15773
15774 # type: textblock
15775 #: ../fish/guestfish.pod:233
15776 msgid "Typical usage is either:"
15777 msgstr ""
15778
15779 # type: verbatim
15780 #: ../fish/guestfish.pod:235
15781 #, no-wrap
15782 msgid ""
15783 " guestfish -d myguest -i\n"
15784 "\n"
15785 msgstr ""
15786
15787 # type: textblock
15788 #: ../fish/guestfish.pod:237
15789 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15790 msgstr ""
15791
15792 # type: verbatim
15793 #: ../fish/guestfish.pod:239
15794 #, no-wrap
15795 msgid ""
15796 " guestfish --ro -d myguest -i\n"
15797 "\n"
15798 msgstr ""
15799
15800 # type: textblock
15801 #: ../fish/guestfish.pod:241
15802 msgid "(for active domains, readonly), or specify the block device directly:"
15803 msgstr ""
15804
15805 # type: verbatim
15806 #: ../fish/guestfish.pod:243
15807 #, no-wrap
15808 msgid ""
15809 " guestfish -a /dev/Guests/MyGuest -i\n"
15810 "\n"
15811 msgstr ""
15812
15813 # type: textblock
15814 #: ../fish/guestfish.pod:245
15815 msgid ""
15816 "Note that the command line syntax changed slightly over older versions of "
15817 "guestfish.  You can still use the old syntax:"
15818 msgstr ""
15819
15820 # type: verbatim
15821 #: ../fish/guestfish.pod:248
15822 #, no-wrap
15823 msgid ""
15824 " guestfish [--ro] -i disk.img\n"
15825 "\n"
15826 msgstr ""
15827
15828 # type: verbatim
15829 #: ../fish/guestfish.pod:250
15830 #, no-wrap
15831 msgid ""
15832 " guestfish [--ro] -i libvirt-domain\n"
15833 "\n"
15834 msgstr ""
15835
15836 # type: =item
15837 #: ../fish/guestfish.pod:252
15838 msgid "B<--keys-from-stdin>"
15839 msgstr ""
15840
15841 # type: textblock
15842 #: ../fish/guestfish.pod:254
15843 msgid ""
15844 "Read key or passphrase parameters from stdin.  The default is to try to read "
15845 "passphrases from the user by opening C</dev/tty>."
15846 msgstr ""
15847
15848 # type: =item
15849 #: ../fish/guestfish.pod:257
15850 msgid "B<--listen>"
15851 msgstr ""
15852
15853 # type: textblock
15854 #: ../fish/guestfish.pod:259
15855 msgid ""
15856 "Fork into the background and listen for remote commands.  See section L</"
15857 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15858 msgstr ""
15859
15860 # type: =item
15861 #: ../fish/guestfish.pod:262
15862 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../fish/guestfish.pod:264
15867 msgid "Mount the named partition or logical volume on the given mountpoint."
15868 msgstr ""
15869
15870 # type: textblock
15871 #: ../fish/guestfish.pod:266
15872 msgid "If the mountpoint is omitted, it defaults to C</>."
15873 msgstr ""
15874
15875 # type: textblock
15876 #: ../fish/guestfish.pod:268
15877 msgid "You have to mount something on C</> before most commands will work."
15878 msgstr ""
15879
15880 # type: textblock
15881 #: ../fish/guestfish.pod:270
15882 msgid ""
15883 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15884 "launched."
15885 msgstr ""
15886
15887 # type: textblock
15888 #: ../fish/guestfish.pod:273
15889 msgid ""
15890 "If you don't know what filesystems a disk image contains, you can either run "
15891 "guestfish without this option, then list the partitions and LVs available "
15892 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
15893 "list-filesystems(1)> program."
15894 msgstr ""
15895
15896 # type: =item
15897 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
15898 msgid "B<-n> | B<--no-sync>"
15899 msgstr ""
15900
15901 # type: textblock
15902 #: ../fish/guestfish.pod:280
15903 msgid ""
15904 "Disable autosync.  This is enabled by default.  See the discussion of "
15905 "autosync in the L<guestfs(3)> manpage."
15906 msgstr ""
15907
15908 # type: =item
15909 #: ../fish/guestfish.pod:283
15910 msgid "B<-N type> | B<--new type> | B<-N help>"
15911 msgstr ""
15912
15913 # type: textblock
15914 #: ../fish/guestfish.pod:285
15915 msgid ""
15916 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15917 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15918 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15919 "IMAGES> below."
15920 msgstr ""
15921
15922 # type: =item
15923 #: ../fish/guestfish.pod:290
15924 msgid "B<--progress-bars>"
15925 msgstr ""
15926
15927 # type: textblock
15928 #: ../fish/guestfish.pod:292
15929 msgid "Enable progress bars, even when guestfish is used non-interactively."
15930 msgstr ""
15931
15932 # type: textblock
15933 #: ../fish/guestfish.pod:294
15934 msgid ""
15935 "Progress bars are enabled by default when guestfish is used as an "
15936 "interactive shell."
15937 msgstr ""
15938
15939 # type: =item
15940 #: ../fish/guestfish.pod:297
15941 msgid "B<--no-progress-bars>"
15942 msgstr ""
15943
15944 # type: textblock
15945 #: ../fish/guestfish.pod:299
15946 msgid "Disable progress bars."
15947 msgstr ""
15948
15949 # type: =item
15950 #: ../fish/guestfish.pod:301
15951 msgid "B<--remote[=pid]>"
15952 msgstr ""
15953
15954 # type: textblock
15955 #: ../fish/guestfish.pod:303
15956 msgid ""
15957 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15958 "CONTROL GUESTFISH OVER A SOCKET> below."
15959 msgstr ""
15960
15961 # type: =item
15962 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
15963 msgid "B<-r> | B<--ro>"
15964 msgstr ""
15965
15966 # type: textblock
15967 #: ../fish/guestfish.pod:308
15968 msgid ""
15969 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15970 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15971 msgstr ""
15972
15973 # type: textblock
15974 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
15975 msgid ""
15976 "The option must always be used if the disk image or virtual machine might be "
15977 "running, and is generally recommended in cases where you don't need write "
15978 "access to the disk."
15979 msgstr ""
15980
15981 # type: textblock
15982 #: ../fish/guestfish.pod:315
15983 msgid ""
15984 "Note that prepared disk images created with I<-N> are not affected by the "
15985 "I<--ro> option."
15986 msgstr ""
15987
15988 # type: =item
15989 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194
15990 #: ../tools/virt-rescue.pl:195
15991 msgid "B<--selinux>"
15992 msgstr ""
15993
15994 # type: textblock
15995 #: ../fish/guestfish.pod:320
15996 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15997 msgstr ""
15998
15999 # type: =item
16000 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
16001 msgid "B<-v> | B<--verbose>"
16002 msgstr ""
16003
16004 # type: textblock
16005 #: ../fish/guestfish.pod:324
16006 msgid ""
16007 "Enable very verbose messages.  This is particularly useful if you find a bug."
16008 msgstr ""
16009
16010 # type: =item
16011 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
16012 msgid "B<-V> | B<--version>"
16013 msgstr ""
16014
16015 # type: textblock
16016 #: ../fish/guestfish.pod:329
16017 msgid "Display the guestfish / libguestfs version number and exit."
16018 msgstr ""
16019
16020 # type: =item
16021 #: ../fish/guestfish.pod:331
16022 msgid "B<-x>"
16023 msgstr ""
16024
16025 # type: textblock
16026 #: ../fish/guestfish.pod:333
16027 msgid "Echo each command before executing it."
16028 msgstr ""
16029
16030 # type: =head1
16031 #: ../fish/guestfish.pod:337
16032 msgid "COMMANDS ON COMMAND LINE"
16033 msgstr ""
16034
16035 # type: textblock
16036 #: ../fish/guestfish.pod:339
16037 msgid ""
16038 "Any additional (non-option) arguments are treated as commands to execute."
16039 msgstr ""
16040
16041 # type: textblock
16042 #: ../fish/guestfish.pod:342
16043 msgid ""
16044 "Commands to execute should be separated by a colon (C<:>), where the colon "
16045 "is a separate parameter.  Thus:"
16046 msgstr ""
16047
16048 # type: verbatim
16049 #: ../fish/guestfish.pod:345
16050 #, no-wrap
16051 msgid ""
16052 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16053 "\n"
16054 msgstr ""
16055
16056 # type: textblock
16057 #: ../fish/guestfish.pod:347
16058 msgid ""
16059 "If there are no additional arguments, then we enter a shell, either an "
16060 "interactive shell with a prompt (if the input is a terminal) or a non-"
16061 "interactive shell."
16062 msgstr ""
16063
16064 # type: textblock
16065 #: ../fish/guestfish.pod:351
16066 msgid ""
16067 "In either command line mode or non-interactive shell, the first command that "
16068 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16069 "prompt) if a command fails, you can continue to enter commands."
16070 msgstr ""
16071
16072 # type: =head1
16073 #: ../fish/guestfish.pod:356
16074 msgid "USING launch (OR run)"
16075 msgstr ""
16076
16077 # type: textblock
16078 #: ../fish/guestfish.pod:358
16079 msgid ""
16080 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16081 "then launch it, then mount any disks you need, and finally issue actions/"
16082 "commands.  So the general order of the day is:"
16083 msgstr ""
16084
16085 # type: textblock
16086 #: ../fish/guestfish.pod:366
16087 msgid "add or -a/--add"
16088 msgstr ""
16089
16090 # type: textblock
16091 #: ../fish/guestfish.pod:370
16092 msgid "launch (aka run)"
16093 msgstr ""
16094
16095 # type: textblock
16096 #: ../fish/guestfish.pod:374
16097 msgid "mount or -m/--mount"
16098 msgstr ""
16099
16100 # type: textblock
16101 #: ../fish/guestfish.pod:378
16102 msgid "any other commands"
16103 msgstr ""
16104
16105 # type: textblock
16106 #: ../fish/guestfish.pod:382
16107 msgid ""
16108 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16109 "guest before mounting or performing any other commands."
16110 msgstr ""
16111
16112 # type: textblock
16113 #: ../fish/guestfish.pod:385
16114 msgid ""
16115 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16116 "I<--new> options were given then C<run> is done automatically, simply "
16117 "because guestfish can't perform the action you asked for without doing this."
16118 msgstr ""
16119
16120 # type: =head1
16121 #: ../fish/guestfish.pod:390
16122 msgid "QUOTING"
16123 msgstr ""
16124
16125 # type: textblock
16126 #: ../fish/guestfish.pod:392
16127 msgid ""
16128 "You can quote ordinary parameters using either single or double quotes.  For "
16129 "example:"
16130 msgstr ""
16131
16132 # type: verbatim
16133 #: ../fish/guestfish.pod:395
16134 #, no-wrap
16135 msgid ""
16136 " add \"file with a space.img\"\n"
16137 "\n"
16138 msgstr ""
16139
16140 # type: verbatim
16141 #: ../fish/guestfish.pod:397
16142 #, no-wrap
16143 msgid ""
16144 " rm '/file name'\n"
16145 "\n"
16146 msgstr ""
16147
16148 # type: verbatim
16149 #: ../fish/guestfish.pod:399
16150 #, no-wrap
16151 msgid ""
16152 " rm '/\"'\n"
16153 "\n"
16154 msgstr ""
16155
16156 # type: textblock
16157 #: ../fish/guestfish.pod:401
16158 msgid ""
16159 "A few commands require a list of strings to be passed.  For these, use a "
16160 "whitespace-separated list, enclosed in quotes.  Strings containing "
16161 "whitespace to be passed through must be enclosed in single quotes.  A "
16162 "literal single quote must be escaped with a backslash."
16163 msgstr ""
16164
16165 # type: verbatim
16166 #: ../fish/guestfish.pod:406
16167 #, no-wrap
16168 msgid ""
16169 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16170 " command \"/bin/echo 'foo      bar'\"\n"
16171 " command \"/bin/echo \\'foo\\'\"\n"
16172 "\n"
16173 msgstr ""
16174
16175 # type: =head1
16176 #: ../fish/guestfish.pod:410
16177 msgid "OPTIONAL ARGUMENTS"
16178 msgstr ""
16179
16180 # type: textblock
16181 #: ../fish/guestfish.pod:412
16182 msgid ""
16183 "Some commands take optional arguments.  These arguments appear in this "
16184 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16185 msgstr ""
16186
16187 # type: verbatim
16188 #: ../fish/guestfish.pod:416
16189 #, no-wrap
16190 msgid ""
16191 " add-drive-opts filename\n"
16192 "\n"
16193 msgstr ""
16194
16195 # type: verbatim
16196 #: ../fish/guestfish.pod:418
16197 #, no-wrap
16198 msgid ""
16199 " add-drive-opts filename readonly:true\n"
16200 "\n"
16201 msgstr ""
16202
16203 # type: verbatim
16204 #: ../fish/guestfish.pod:420
16205 #, no-wrap
16206 msgid ""
16207 " add-drive-opts filename format:qcow2 readonly:false\n"
16208 "\n"
16209 msgstr ""
16210
16211 # type: textblock
16212 #: ../fish/guestfish.pod:422
16213 msgid ""
16214 "Each optional argument can appear at most once.  All optional arguments must "
16215 "appear after the required ones."
16216 msgstr ""
16217
16218 # type: =head1
16219 #: ../fish/guestfish.pod:425
16220 msgid "NUMBERS"
16221 msgstr ""
16222
16223 # type: textblock
16224 #: ../fish/guestfish.pod:427
16225 msgid ""
16226 "This section applies to all commands which can take integers as parameters."
16227 msgstr ""
16228
16229 # type: =head2
16230 #: ../fish/guestfish.pod:430
16231 msgid "SIZE SUFFIX"
16232 msgstr ""
16233
16234 # type: textblock
16235 #: ../fish/guestfish.pod:432
16236 msgid ""
16237 "When the command takes a parameter measured in bytes, you can use one of the "
16238 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16239 msgstr ""
16240
16241 # type: =item
16242 #: ../fish/guestfish.pod:438
16243 msgid "B<k> or B<K> or B<KiB>"
16244 msgstr ""
16245
16246 # type: textblock
16247 #: ../fish/guestfish.pod:440
16248 msgid "The size in kilobytes (multiplied by 1024)."
16249 msgstr ""
16250
16251 # type: =item
16252 #: ../fish/guestfish.pod:442
16253 msgid "B<KB>"
16254 msgstr ""
16255
16256 # type: textblock
16257 #: ../fish/guestfish.pod:444
16258 msgid "The size in SI 1000 byte units."
16259 msgstr ""
16260
16261 # type: =item
16262 #: ../fish/guestfish.pod:446
16263 msgid "B<M> or B<MiB>"
16264 msgstr ""
16265
16266 # type: textblock
16267 #: ../fish/guestfish.pod:448
16268 msgid "The size in megabytes (multiplied by 1048576)."
16269 msgstr ""
16270
16271 # type: =item
16272 #: ../fish/guestfish.pod:450
16273 msgid "B<MB>"
16274 msgstr ""
16275
16276 # type: textblock
16277 #: ../fish/guestfish.pod:452
16278 msgid "The size in SI 1000000 byte units."
16279 msgstr ""
16280
16281 # type: =item
16282 #: ../fish/guestfish.pod:454
16283 msgid "B<G> or B<GiB>"
16284 msgstr ""
16285
16286 # type: textblock
16287 #: ../fish/guestfish.pod:456
16288 msgid "The size in gigabytes (multiplied by 2**30)."
16289 msgstr ""
16290
16291 # type: =item
16292 #: ../fish/guestfish.pod:458
16293 msgid "B<GB>"
16294 msgstr ""
16295
16296 # type: textblock
16297 #: ../fish/guestfish.pod:460
16298 msgid "The size in SI 10**9 byte units."
16299 msgstr ""
16300
16301 # type: =item
16302 #: ../fish/guestfish.pod:462
16303 msgid "B<T> or B<TiB>"
16304 msgstr ""
16305
16306 # type: textblock
16307 #: ../fish/guestfish.pod:464
16308 msgid "The size in terabytes (multiplied by 2**40)."
16309 msgstr ""
16310
16311 # type: =item
16312 #: ../fish/guestfish.pod:466
16313 msgid "B<TB>"
16314 msgstr ""
16315
16316 # type: textblock
16317 #: ../fish/guestfish.pod:468
16318 msgid "The size in SI 10**12 byte units."
16319 msgstr ""
16320
16321 # type: =item
16322 #: ../fish/guestfish.pod:470
16323 msgid "B<P> or B<PiB>"
16324 msgstr ""
16325
16326 # type: textblock
16327 #: ../fish/guestfish.pod:472
16328 msgid "The size in petabytes (multiplied by 2**50)."
16329 msgstr ""
16330
16331 # type: =item
16332 #: ../fish/guestfish.pod:474
16333 msgid "B<PB>"
16334 msgstr ""
16335
16336 # type: textblock
16337 #: ../fish/guestfish.pod:476
16338 msgid "The size in SI 10**15 byte units."
16339 msgstr ""
16340
16341 # type: =item
16342 #: ../fish/guestfish.pod:478
16343 msgid "B<E> or B<EiB>"
16344 msgstr ""
16345
16346 # type: textblock
16347 #: ../fish/guestfish.pod:480
16348 msgid "The size in exabytes (multiplied by 2**60)."
16349 msgstr ""
16350
16351 # type: =item
16352 #: ../fish/guestfish.pod:482
16353 msgid "B<EB>"
16354 msgstr ""
16355
16356 # type: textblock
16357 #: ../fish/guestfish.pod:484
16358 msgid "The size in SI 10**18 byte units."
16359 msgstr ""
16360
16361 # type: =item
16362 #: ../fish/guestfish.pod:486
16363 msgid "B<Z> or B<ZiB>"
16364 msgstr ""
16365
16366 # type: textblock
16367 #: ../fish/guestfish.pod:488
16368 msgid "The size in zettabytes (multiplied by 2**70)."
16369 msgstr ""
16370
16371 # type: =item
16372 #: ../fish/guestfish.pod:490
16373 msgid "B<ZB>"
16374 msgstr ""
16375
16376 # type: textblock
16377 #: ../fish/guestfish.pod:492
16378 msgid "The size in SI 10**21 byte units."
16379 msgstr ""
16380
16381 # type: =item
16382 #: ../fish/guestfish.pod:494
16383 msgid "B<Y> or B<YiB>"
16384 msgstr ""
16385
16386 # type: textblock
16387 #: ../fish/guestfish.pod:496
16388 msgid "The size in yottabytes (multiplied by 2**80)."
16389 msgstr ""
16390
16391 # type: =item
16392 #: ../fish/guestfish.pod:498
16393 msgid "B<YB>"
16394 msgstr ""
16395
16396 # type: textblock
16397 #: ../fish/guestfish.pod:500
16398 msgid "The size in SI 10**24 byte units."
16399 msgstr ""
16400
16401 # type: verbatim
16402 #: ../fish/guestfish.pod:506
16403 #, no-wrap
16404 msgid ""
16405 " truncate-size /file 1G\n"
16406 "\n"
16407 msgstr ""
16408
16409 # type: textblock
16410 #: ../fish/guestfish.pod:508
16411 msgid "would truncate the file to 1 gigabyte."
16412 msgstr ""
16413
16414 # type: textblock
16415 #: ../fish/guestfish.pod:510
16416 msgid ""
16417 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
16418 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
16419 "suffix will probably not do what you expect."
16420 msgstr ""
16421
16422 # type: =head2
16423 #: ../fish/guestfish.pod:514
16424 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16425 msgstr ""
16426
16427 # type: textblock
16428 #: ../fish/guestfish.pod:516
16429 msgid ""
16430 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16431 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16432 msgstr ""
16433
16434 # type: verbatim
16435 #: ../fish/guestfish.pod:519
16436 #, no-wrap
16437 msgid ""
16438 " 1234      decimal number 1234\n"
16439 " 02322     octal number, equivalent to decimal 1234\n"
16440 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16441 "\n"
16442 msgstr ""
16443
16444 # type: textblock
16445 #: ../fish/guestfish.pod:523
16446 msgid ""
16447 "When using the C<chmod> command, you almost always want to specify an octal "
16448 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16449 "L<chmod(1)> program):"
16450 msgstr ""
16451
16452 # type: verbatim
16453 #: ../fish/guestfish.pod:527
16454 #, no-wrap
16455 msgid ""
16456 " chmod 0777 /public  # OK\n"
16457 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16458 "\n"
16459 msgstr ""
16460
16461 # type: textblock
16462 #: ../fish/guestfish.pod:530
16463 msgid ""
16464 "Commands that return numbers usually print them in decimal, but some "
16465 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16466 "octal, preceeded by C<0>)."
16467 msgstr ""
16468
16469 # type: =head1
16470 #: ../fish/guestfish.pod:534
16471 msgid "WILDCARDS AND GLOBBING"
16472 msgstr ""
16473
16474 # type: textblock
16475 #: ../fish/guestfish.pod:536
16476 msgid ""
16477 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16478 "(globbing) by default.  So for example the following will not do what you "
16479 "expect:"
16480 msgstr ""
16481
16482 # type: verbatim
16483 #: ../fish/guestfish.pod:540
16484 #, no-wrap
16485 msgid ""
16486 " rm-rf /home/*\n"
16487 "\n"
16488 msgstr ""
16489
16490 # type: textblock
16491 #: ../fish/guestfish.pod:542
16492 msgid ""
16493 "Assuming you don't have a directory called literally C</home/*> then the "
16494 "above command will return an error."
16495 msgstr ""
16496
16497 # type: textblock
16498 #: ../fish/guestfish.pod:545
16499 msgid "To perform wildcard expansion, use the C<glob> command."
16500 msgstr ""
16501
16502 # type: verbatim
16503 #: ../fish/guestfish.pod:547
16504 #, no-wrap
16505 msgid ""
16506 " glob rm-rf /home/*\n"
16507 "\n"
16508 msgstr ""
16509
16510 # type: textblock
16511 #: ../fish/guestfish.pod:549
16512 msgid ""
16513 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16514 "many times), equivalent to:"
16515 msgstr ""
16516
16517 # type: verbatim
16518 #: ../fish/guestfish.pod:552
16519 #, no-wrap
16520 msgid ""
16521 " rm-rf /home/jim\n"
16522 " rm-rf /home/joe\n"
16523 " rm-rf /home/mary\n"
16524 "\n"
16525 msgstr ""
16526
16527 # type: textblock
16528 #: ../fish/guestfish.pod:556
16529 msgid "C<glob> only works on simple guest paths and not on device names."
16530 msgstr ""
16531
16532 # type: textblock
16533 #: ../fish/guestfish.pod:558
16534 msgid ""
16535 "If you have several parameters, each containing a wildcard, then glob will "
16536 "perform a Cartesian product."
16537 msgstr ""
16538
16539 # type: =head1
16540 #: ../fish/guestfish.pod:561
16541 msgid "COMMENTS"
16542 msgstr ""
16543
16544 # type: textblock
16545 #: ../fish/guestfish.pod:563
16546 msgid ""
16547 "Any line which starts with a I<#> character is treated as a comment and "
16548 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16549 "a command.  For example:"
16550 msgstr ""
16551
16552 # type: verbatim
16553 #: ../fish/guestfish.pod:567
16554 #, no-wrap
16555 msgid ""
16556 " # this is a comment\n"
16557 "         # this is a comment\n"
16558 " foo # NOT a comment\n"
16559 "\n"
16560 msgstr ""
16561
16562 # type: textblock
16563 #: ../fish/guestfish.pod:571
16564 msgid "Blank lines are also ignored."
16565 msgstr ""
16566
16567 # type: =head1
16568 #: ../fish/guestfish.pod:573
16569 msgid "RUNNING COMMANDS LOCALLY"
16570 msgstr ""
16571
16572 # type: textblock
16573 #: ../fish/guestfish.pod:575
16574 msgid ""
16575 "Any line which starts with a I<!> character is treated as a command sent to "
16576 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16577 msgstr ""
16578
16579 # type: verbatim
16580 #: ../fish/guestfish.pod:579
16581 #, no-wrap
16582 msgid ""
16583 " !mkdir local\n"
16584 " tgz-out /remote local/remote-data.tar.gz\n"
16585 "\n"
16586 msgstr ""
16587
16588 # type: textblock
16589 #: ../fish/guestfish.pod:582
16590 msgid ""
16591 "will create a directory C<local> on the host, and then export the contents "
16592 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16593 "(See C<tgz-out>)."
16594 msgstr ""
16595
16596 # type: textblock
16597 #: ../fish/guestfish.pod:586
16598 msgid ""
16599 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16600 "effect, due to the way that subprocesses work in Unix."
16601 msgstr ""
16602
16603 # type: =head1
16604 #: ../fish/guestfish.pod:589
16605 msgid "PIPES"
16606 msgstr ""
16607
16608 # type: textblock
16609 #: ../fish/guestfish.pod:591
16610 msgid ""
16611 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16612 "command (a guestfish command) to the second command (any host command).  For "
16613 "example:"
16614 msgstr ""
16615
16616 # type: verbatim
16617 #: ../fish/guestfish.pod:595
16618 #, no-wrap
16619 msgid ""
16620 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16621 "\n"
16622 msgstr ""
16623
16624 # type: textblock
16625 #: ../fish/guestfish.pod:597
16626 msgid ""
16627 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16628 "program).  The above command would list all accounts in the guest filesystem "
16629 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16630 msgstr ""
16631
16632 # type: verbatim
16633 #: ../fish/guestfish.pod:602
16634 #, no-wrap
16635 msgid ""
16636 " hexdump /bin/ls | head\n"
16637 " list-devices | tail -1\n"
16638 " tgz-out / - | tar ztf -\n"
16639 "\n"
16640 msgstr ""
16641
16642 # type: textblock
16643 #: ../fish/guestfish.pod:606
16644 msgid ""
16645 "The space before the pipe symbol is required, any space after the pipe "
16646 "symbol is optional.  Everything after the pipe symbol is just passed "
16647 "straight to the host shell, so it can contain redirections, globs and "
16648 "anything else that makes sense on the host side."
16649 msgstr ""
16650
16651 # type: textblock
16652 #: ../fish/guestfish.pod:611
16653 msgid ""
16654 "To use a literal argument which begins with a pipe symbol, you have to quote "
16655 "it, eg:"
16656 msgstr ""
16657
16658 # type: verbatim
16659 #: ../fish/guestfish.pod:614
16660 #, no-wrap
16661 msgid ""
16662 " echo \"|\"\n"
16663 "\n"
16664 msgstr ""
16665
16666 # type: =head1
16667 #: ../fish/guestfish.pod:616
16668 msgid "HOME DIRECTORIES"
16669 msgstr ""
16670
16671 # type: textblock
16672 #: ../fish/guestfish.pod:618
16673 msgid ""
16674 "If a parameter starts with the character C<~> then the tilde may be expanded "
16675 "as a home directory path (either C<~> for the current user's home directory, "
16676 "or C<~user> for another user)."
16677 msgstr ""
16678
16679 # type: textblock
16680 #: ../fish/guestfish.pod:622
16681 msgid ""
16682 "Note that home directory expansion happens for users known I<on the host>, "
16683 "not in the guest filesystem."
16684 msgstr ""
16685
16686 # type: textblock
16687 #: ../fish/guestfish.pod:625
16688 msgid ""
16689 "To use a literal argument which begins with a tilde, you have to quote it, "
16690 "eg:"
16691 msgstr ""
16692
16693 # type: verbatim
16694 #: ../fish/guestfish.pod:628
16695 #, no-wrap
16696 msgid ""
16697 " echo \"~\"\n"
16698 "\n"
16699 msgstr ""
16700
16701 # type: textblock
16702 #: ../fish/guestfish.pod:632
16703 msgid ""
16704 "Libguestfs has some support for Linux guests encrypted according to the "
16705 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16706 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
16707 "LUKS is supported."
16708 msgstr ""
16709
16710 # type: textblock
16711 #: ../fish/guestfish.pod:637
16712 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16713 msgstr ""
16714
16715 # type: verbatim
16716 #: ../fish/guestfish.pod:639
16717 #, no-wrap
16718 msgid ""
16719 " ><fs> vfs-type /dev/sda2\n"
16720 " crypto_LUKS\n"
16721 "\n"
16722 msgstr ""
16723
16724 # type: textblock
16725 #: ../fish/guestfish.pod:642
16726 msgid ""
16727 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16728 "device called C</dev/mapper/luksdev>."
16729 msgstr ""
16730
16731 # type: verbatim
16732 #: ../fish/guestfish.pod:645
16733 #, no-wrap
16734 msgid ""
16735 " ><fs> luks-open /dev/sda2 luksdev\n"
16736 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16737 "\n"
16738 msgstr ""
16739
16740 # type: textblock
16741 #: ../fish/guestfish.pod:648
16742 msgid ""
16743 "Finally you have to tell LVM to scan for volume groups on the newly created "
16744 "mapper device:"
16745 msgstr ""
16746
16747 # type: verbatim
16748 #: ../fish/guestfish.pod:651
16749 #, no-wrap
16750 msgid ""
16751 " vgscan\n"
16752 " vg-activate-all true\n"
16753 "\n"
16754 msgstr ""
16755
16756 # type: textblock
16757 #: ../fish/guestfish.pod:654
16758 msgid "The logical volume(s) can now be mounted in the usual way."
16759 msgstr ""
16760
16761 # type: textblock
16762 #: ../fish/guestfish.pod:656
16763 msgid ""
16764 "Before closing a LUKS device you must unmount any logical volumes on it and "
16765 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16766 "one.  Then you can close the mapper device:"
16767 msgstr ""
16768
16769 # type: verbatim
16770 #: ../fish/guestfish.pod:660
16771 #, no-wrap
16772 msgid ""
16773 " vg-activate false /dev/VG\n"
16774 " luks-close /dev/mapper/luksdev\n"
16775 "\n"
16776 msgstr ""
16777
16778 # type: =head1
16779 #: ../fish/guestfish.pod:663
16780 msgid "WINDOWS PATHS"
16781 msgstr ""
16782
16783 # type: textblock
16784 #: ../fish/guestfish.pod:665
16785 msgid ""
16786 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16787 "(with some limitations).  The following commands are equivalent:"
16788 msgstr ""
16789
16790 # type: verbatim
16791 #: ../fish/guestfish.pod:668
16792 #, no-wrap
16793 msgid ""
16794 " file /WINDOWS/system32/config/system.LOG\n"
16795 "\n"
16796 msgstr ""
16797
16798 # type: verbatim
16799 #: ../fish/guestfish.pod:670
16800 #, no-wrap
16801 msgid ""
16802 " file win:/windows/system32/config/system.log\n"
16803 "\n"
16804 msgstr ""
16805
16806 # type: verbatim
16807 #: ../fish/guestfish.pod:672
16808 #, no-wrap
16809 msgid ""
16810 " file win:\\windows\\system32\\config\\system.log\n"
16811 "\n"
16812 msgstr ""
16813
16814 # type: verbatim
16815 #: ../fish/guestfish.pod:674
16816 #, no-wrap
16817 msgid ""
16818 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16819 "\n"
16820 msgstr ""
16821
16822 # type: textblock
16823 #: ../fish/guestfish.pod:676
16824 msgid ""
16825 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16826 "handles case insensitivity like Windows would.  This only works in argument "
16827 "positions that expect a path."
16828 msgstr ""
16829
16830 # type: =head1
16831 #: ../fish/guestfish.pod:680
16832 msgid "UPLOADING AND DOWNLOADING FILES"
16833 msgstr ""
16834
16835 # type: textblock
16836 #: ../fish/guestfish.pod:682
16837 msgid ""
16838 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16839 "others which upload from or download to a local file, you can use the "
16840 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16841 msgstr ""
16842
16843 # type: verbatim
16844 #: ../fish/guestfish.pod:686
16845 #, no-wrap
16846 msgid ""
16847 " upload - /foo\n"
16848 "\n"
16849 msgstr ""
16850
16851 # type: textblock
16852 #: ../fish/guestfish.pod:688
16853 msgid ""
16854 "reads stdin and creates from that a file C</foo> in the disk image, and:"
16855 msgstr ""
16856
16857 # type: verbatim
16858 #: ../fish/guestfish.pod:691
16859 #, no-wrap
16860 msgid ""
16861 " tar-out /etc - | tar tf -\n"
16862 "\n"
16863 msgstr ""
16864
16865 # type: textblock
16866 #: ../fish/guestfish.pod:693
16867 msgid ""
16868 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16869 "command (see L</PIPES>)."
16870 msgstr ""
16871
16872 # type: textblock
16873 #: ../fish/guestfish.pod:696
16874 msgid ""
16875 "When using C<-> to read from stdin, the input is read up to the end of "
16876 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16877 "some arbitrary end marker:"
16878 msgstr ""
16879
16880 # type: verbatim
16881 #: ../fish/guestfish.pod:700
16882 #, no-wrap
16883 msgid ""
16884 " upload -<<END /foo\n"
16885 " input line 1\n"
16886 " input line 2\n"
16887 " input line 3\n"
16888 " END\n"
16889 "\n"
16890 msgstr ""
16891
16892 # type: textblock
16893 #: ../fish/guestfish.pod:706
16894 msgid ""
16895 "Any string of characters can be used instead of C<END>.  The end marker must "
16896 "appear on a line of its own, without any preceeding or following characters "
16897 "(not even spaces)."
16898 msgstr ""
16899
16900 # type: textblock
16901 #: ../fish/guestfish.pod:710
16902 msgid ""
16903 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16904 "upload local files (so-called \"FileIn\" parameters in the generator)."
16905 msgstr ""
16906
16907 # type: =head1
16908 #: ../fish/guestfish.pod:713
16909 msgid "EXIT ON ERROR BEHAVIOUR"
16910 msgstr ""
16911
16912 # type: textblock
16913 #: ../fish/guestfish.pod:715
16914 msgid ""
16915 "By default, guestfish will ignore any errors when in interactive mode (ie. "
16916 "taking commands from a human over a tty), and will exit on the first error "
16917 "in non-interactive mode (scripts, commands given on the command line)."
16918 msgstr ""
16919
16920 # type: textblock
16921 #: ../fish/guestfish.pod:720
16922 msgid ""
16923 "If you prefix a command with a I<-> character, then that command will not "
16924 "cause guestfish to exit, even if that (one) command returns an error."
16925 msgstr ""
16926
16927 # type: =head1
16928 #: ../fish/guestfish.pod:724
16929 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16930 msgstr ""
16931
16932 # type: textblock
16933 #: ../fish/guestfish.pod:726
16934 msgid ""
16935 "Guestfish can be remote-controlled over a socket.  This is useful "
16936 "particularly in shell scripts where you want to make several different "
16937 "changes to a filesystem, but you don't want the overhead of starting up a "
16938 "guestfish process each time."
16939 msgstr ""
16940
16941 # type: textblock
16942 #: ../fish/guestfish.pod:731
16943 msgid "Start a guestfish server process using:"
16944 msgstr ""
16945
16946 # type: verbatim
16947 #: ../fish/guestfish.pod:733
16948 #, no-wrap
16949 msgid ""
16950 " eval `guestfish --listen`\n"
16951 "\n"
16952 msgstr ""
16953
16954 # type: textblock
16955 #: ../fish/guestfish.pod:735
16956 msgid "and then send it commands by doing:"
16957 msgstr ""
16958
16959 # type: verbatim
16960 #: ../fish/guestfish.pod:737
16961 #, no-wrap
16962 msgid ""
16963 " guestfish --remote cmd [...]\n"
16964 "\n"
16965 msgstr ""
16966
16967 # type: textblock
16968 #: ../fish/guestfish.pod:739
16969 msgid "To cause the server to exit, send it the exit command:"
16970 msgstr ""
16971
16972 # type: verbatim
16973 #: ../fish/guestfish.pod:741
16974 #, no-wrap
16975 msgid ""
16976 " guestfish --remote exit\n"
16977 "\n"
16978 msgstr ""
16979
16980 # type: textblock
16981 #: ../fish/guestfish.pod:743
16982 msgid ""
16983 "Note that the server will normally exit if there is an error in a command.  "
16984 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16985 "BEHAVIOUR>."
16986 msgstr ""
16987
16988 # type: =head2
16989 #: ../fish/guestfish.pod:747
16990 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16991 msgstr ""
16992
16993 # type: textblock
16994 #: ../fish/guestfish.pod:749
16995 msgid ""
16996 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16997 "is how the I<--remote> option knows where to send the commands.  You can "
16998 "have several guestfish listener processes running using:"
16999 msgstr ""
17000
17001 # type: verbatim
17002 #: ../fish/guestfish.pod:753
17003 #, no-wrap
17004 msgid ""
17005 " eval `guestfish --listen`\n"
17006 " pid1=$GUESTFISH_PID\n"
17007 " eval `guestfish --listen`\n"
17008 " pid2=$GUESTFISH_PID\n"
17009 " ...\n"
17010 " guestfish --remote=$pid1 cmd\n"
17011 " guestfish --remote=$pid2 cmd\n"
17012 "\n"
17013 msgstr ""
17014
17015 # type: =head2
17016 #: ../fish/guestfish.pod:761
17017 msgid "REMOTE CONTROL DETAILS"
17018 msgstr ""
17019
17020 # type: textblock
17021 #: ../fish/guestfish.pod:763
17022 msgid ""
17023 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
17024 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
17025 "and C<$PID> is the process ID of the server."
17026 msgstr ""
17027
17028 # type: textblock
17029 #: ../fish/guestfish.pod:767
17030 msgid "Guestfish client and server versions must match exactly."
17031 msgstr ""
17032
17033 # type: =head1
17034 #: ../fish/guestfish.pod:769
17035 msgid "PREPARED DISK IMAGES"
17036 msgstr ""
17037
17038 # type: textblock
17039 #: ../fish/guestfish.pod:771
17040 msgid ""
17041 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17042 "preformatted disk images that guestfish can make for you to save typing.  "
17043 "This is particularly useful for testing purposes.  This option is used "
17044 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17045 "can be mixed with I<-a>)."
17046 msgstr ""
17047
17048 # type: textblock
17049 #: ../fish/guestfish.pod:777
17050 msgid ""
17051 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17052 "the second and so on.  Existing files in the current directory are "
17053 "I<overwritten>."
17054 msgstr ""
17055
17056 # type: textblock
17057 #: ../fish/guestfish.pod:781
17058 msgid ""
17059 "The type briefly describes how the disk should be sized, partitioned, how "
17060 "filesystem(s) should be created, and how content should be added.  "
17061 "Optionally the type can be followed by extra parameters, separated by C<:> "
17062 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
17063 "allocated disk, containing a single partition, with the partition formatted "
17064 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
17065 "disk instead."
17066 msgstr ""
17067
17068 # type: textblock
17069 #: ../fish/guestfish.pod:789
17070 msgid "To list the available types and any extra parameters they take, run:"
17071 msgstr ""
17072
17073 # type: textblock
17074 #: ../fish/guestfish.pod:793
17075 msgid ""
17076 "Note that the prepared filesystem is not mounted.  You would usually have to "
17077 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17078 msgstr ""
17079
17080 # type: textblock
17081 #: ../fish/guestfish.pod:797
17082 msgid ""
17083 "If any I<-N> or I<--new> options are given, the guest is automatically "
17084 "launched."
17085 msgstr ""
17086
17087 # type: textblock
17088 #: ../fish/guestfish.pod:802
17089 msgid "Create a 100MB disk with an ext4-formatted partition:"
17090 msgstr ""
17091
17092 # type: verbatim
17093 #: ../fish/guestfish.pod:804
17094 #, no-wrap
17095 msgid ""
17096 " guestfish -N fs:ext4\n"
17097 "\n"
17098 msgstr ""
17099
17100 # type: textblock
17101 #: ../fish/guestfish.pod:806
17102 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17103 msgstr ""
17104
17105 # type: verbatim
17106 #: ../fish/guestfish.pod:808
17107 #, no-wrap
17108 msgid ""
17109 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17110 "\n"
17111 msgstr ""
17112
17113 # type: textblock
17114 #: ../fish/guestfish.pod:810
17115 msgid "Create a blank 200MB disk:"
17116 msgstr ""
17117
17118 # type: verbatim
17119 #: ../fish/guestfish.pod:812
17120 #, no-wrap
17121 msgid ""
17122 " guestfish -N disk:200M\n"
17123 "\n"
17124 msgstr ""
17125
17126 # type: =head1
17127 #: ../fish/guestfish.pod:814
17128 msgid "PROGRESS BARS"
17129 msgstr ""
17130
17131 # type: textblock
17132 #: ../fish/guestfish.pod:816
17133 msgid ""
17134 "Some (not all) long-running commands send progress notification messages as "
17135 "they are running.  Guestfish turns these messages into progress bars."
17136 msgstr ""
17137
17138 # type: textblock
17139 #: ../fish/guestfish.pod:820
17140 msgid ""
17141 "When a command that supports progress bars takes longer than two seconds to "
17142 "run, and if progress bars are enabled, then you will see one appearing below "
17143 "the command:"
17144 msgstr ""
17145
17146 # type: verbatim
17147 #: ../fish/guestfish.pod:824
17148 #, no-wrap
17149 msgid ""
17150 " ><fs> copy-size /large-file /another-file 2048M\n"
17151 " / 10% [#####-----------------------------------------] 00:30\n"
17152 "\n"
17153 msgstr ""
17154
17155 # type: textblock
17156 #: ../fish/guestfish.pod:827
17157 msgid ""
17158 "The spinner on the left hand side moves round once for every progress "
17159 "notification received from the backend.  This is a (reasonably) golden "
17160 "assurance that the command is \"doing something\" even if the progress bar "
17161 "is not moving, because the command is able to send the progress "
17162 "notifications.  When the bar reaches 100% and the command finishes, the "
17163 "spinner disappears."
17164 msgstr ""
17165
17166 # type: textblock
17167 #: ../fish/guestfish.pod:834
17168 msgid ""
17169 "Progress bars are enabled by default when guestfish is used interactively.  "
17170 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17171 "and you can disable them completely using I<--no-progress-bars>."
17172 msgstr ""
17173
17174 # type: =head1
17175 #: ../fish/guestfish.pod:839
17176 msgid "GUESTFISH COMMANDS"
17177 msgstr ""
17178
17179 # type: textblock
17180 #: ../fish/guestfish.pod:841
17181 msgid ""
17182 "The commands in this section are guestfish convenience commands, in other "
17183 "words, they are not part of the L<guestfs(3)> API."
17184 msgstr ""
17185
17186 # type: =head2
17187 #: ../fish/guestfish.pod:844
17188 msgid "help"
17189 msgstr ""
17190
17191 # type: verbatim
17192 #: ../fish/guestfish.pod:846
17193 #, no-wrap
17194 msgid ""
17195 " help\n"
17196 " help cmd\n"
17197 "\n"
17198 msgstr ""
17199
17200 # type: textblock
17201 #: ../fish/guestfish.pod:849
17202 msgid ""
17203 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
17204 "this displays detailed help for a command."
17205 msgstr ""
17206
17207 # type: =head2
17208 #: ../fish/guestfish.pod:852
17209 msgid "quit | exit"
17210 msgstr ""
17211
17212 # type: textblock
17213 #: ../fish/guestfish.pod:854
17214 msgid "This exits guestfish.  You can also use C<^D> key."
17215 msgstr ""
17216
17217 # type: textblock
17218 #: ../fish/guestfish.pod:856
17219 msgid "@FISH_COMMANDS@"
17220 msgstr ""
17221
17222 # type: =head1
17223 #: ../fish/guestfish.pod:858
17224 msgid "COMMANDS"
17225 msgstr ""
17226
17227 # type: =head1
17228 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
17229 msgid "EXIT CODE"
17230 msgstr ""
17231
17232 # type: textblock
17233 #: ../fish/guestfish.pod:864
17234 msgid ""
17235 "guestfish returns 0 if the commands completed without error, or 1 if there "
17236 "was an error."
17237 msgstr ""
17238
17239 # type: =item
17240 #: ../fish/guestfish.pod:871
17241 msgid "EDITOR"
17242 msgstr ""
17243
17244 # type: textblock
17245 #: ../fish/guestfish.pod:873
17246 msgid ""
17247 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17248 "C<vi>."
17249 msgstr ""
17250
17251 # type: =item
17252 #: ../fish/guestfish.pod:876
17253 msgid "GUESTFISH_PID"
17254 msgstr ""
17255
17256 # type: textblock
17257 #: ../fish/guestfish.pod:878
17258 msgid ""
17259 "Used with the I<--remote> option to specify the remote guestfish process to "
17260 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17261 msgstr ""
17262
17263 # type: =item
17264 #: ../fish/guestfish.pod:882
17265 msgid "HEXEDITOR"
17266 msgstr ""
17267
17268 # type: textblock
17269 #: ../fish/guestfish.pod:884
17270 msgid ""
17271 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17272 "not specified, the external L<hexedit(1)> program is used."
17273 msgstr ""
17274
17275 # type: =item
17276 #: ../fish/guestfish.pod:888
17277 msgid "HOME"
17278 msgstr ""
17279
17280 # type: textblock
17281 #: ../fish/guestfish.pod:890
17282 msgid ""
17283 "If compiled with GNU readline support, various files in the home directory "
17284 "can be used.  See L</FILES>."
17285 msgstr ""
17286
17287 # type: textblock
17288 #: ../fish/guestfish.pod:899
17289 msgid ""
17290 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17291 "effect as using the B<-v> option."
17292 msgstr ""
17293
17294 # type: textblock
17295 #: ../fish/guestfish.pod:911
17296 msgid ""
17297 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17298 "the discussion of paths in L<guestfs(3)>."
17299 msgstr ""
17300
17301 # type: textblock
17302 #: ../fish/guestfish.pod:922
17303 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17304 msgstr ""
17305
17306 # type: =item
17307 #: ../fish/guestfish.pod:924
17308 msgid "PAGER"
17309 msgstr ""
17310
17311 # type: textblock
17312 #: ../fish/guestfish.pod:926
17313 msgid ""
17314 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17315 "C<more>."
17316 msgstr ""
17317
17318 # type: =head1
17319 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
17320 msgid "FILES"
17321 msgstr ""
17322
17323 # type: =item
17324 #: ../fish/guestfish.pod:945
17325 msgid "$HOME/.guestfish"
17326 msgstr ""
17327
17328 # type: textblock
17329 #: ../fish/guestfish.pod:947
17330 msgid ""
17331 "If compiled with GNU readline support, then the command history is saved in "
17332 "this file."
17333 msgstr ""
17334
17335 # type: =item
17336 #: ../fish/guestfish.pod:950
17337 msgid "$HOME/.inputrc"
17338 msgstr ""
17339
17340 # type: =item
17341 #: ../fish/guestfish.pod:952
17342 msgid "/etc/inputrc"
17343 msgstr ""
17344
17345 # type: textblock
17346 #: ../fish/guestfish.pod:954
17347 msgid ""
17348 "If compiled with GNU readline support, then these files can be used to "
17349 "configure readline.  For further information, please see L<readline(3)/"
17350 "INITIALIZATION FILE>."
17351 msgstr ""
17352
17353 # type: textblock
17354 #: ../fish/guestfish.pod:958
17355 msgid "To write rules which only apply to guestfish, use:"
17356 msgstr ""
17357
17358 # type: verbatim
17359 #: ../fish/guestfish.pod:960
17360 #, no-wrap
17361 msgid ""
17362 " $if guestfish\n"
17363 " ...\n"
17364 " $endif\n"
17365 "\n"
17366 msgstr ""
17367
17368 # type: textblock
17369 #: ../fish/guestfish.pod:964
17370 msgid ""
17371 "Variables that you can set in inputrc that change the behaviour of guestfish "
17372 "in useful ways include:"
17373 msgstr ""
17374
17375 # type: =item
17376 #: ../fish/guestfish.pod:969
17377 msgid "completion-ignore-case (default: on)"
17378 msgstr ""
17379
17380 # type: textblock
17381 #: ../fish/guestfish.pod:971
17382 msgid ""
17383 "By default, guestfish will ignore case when tab-completing paths on the "
17384 "disk.  Use:"
17385 msgstr ""
17386
17387 # type: verbatim
17388 #: ../fish/guestfish.pod:974
17389 #, no-wrap
17390 msgid ""
17391 " set completion-ignore-case off\n"
17392 "\n"
17393 msgstr ""
17394
17395 # type: textblock
17396 #: ../fish/guestfish.pod:976
17397 msgid "to make guestfish case sensitive."
17398 msgstr ""
17399
17400 # type: =item
17401 #: ../fish/guestfish.pod:980
17402 msgid "test1.img"
17403 msgstr ""
17404
17405 # type: =item
17406 #: ../fish/guestfish.pod:982
17407 msgid "test2.img (etc)"
17408 msgstr ""
17409
17410 # type: textblock
17411 #: ../fish/guestfish.pod:984
17412 msgid ""
17413 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17414 "will be created in the file C<test1.img> in the current directory.  The "
17415 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17416 "the same name will be overwritten."
17417 msgstr ""
17418
17419 # type: textblock
17420 #: ../fish/guestfish.pod:993
17421 msgid ""
17422 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17423 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17424 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17425 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17426 msgstr ""
17427
17428 # type: textblock
17429 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124
17430 #: ../fuse/guestmount.pod:234 ../inspector/virt-inspector.pl:598
17431 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
17432 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
17433 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
17434 #: ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300
17435 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
17436 #: ../tools/virt-list-partitions.pl:273
17437 msgid ""
17438 "This program is free software; you can redistribute it and/or modify it "
17439 "under the terms of the GNU General Public License as published by the Free "
17440 "Software Foundation; either version 2 of the License, or (at your option) "
17441 "any later version."
17442 msgstr ""
17443
17444 # type: textblock
17445 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129
17446 #: ../fuse/guestmount.pod:239 ../inspector/virt-inspector.pl:603
17447 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
17448 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
17449 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
17450 #: ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305
17451 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
17452 #: ../tools/virt-list-partitions.pl:278
17453 msgid ""
17454 "This program is distributed in the hope that it will be useful, but WITHOUT "
17455 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17456 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17457 "more details."
17458 msgstr ""
17459
17460 # type: textblock
17461 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134
17462 #: ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:608
17463 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
17464 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
17465 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
17466 #: ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310
17467 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
17468 #: ../tools/virt-list-partitions.pl:283
17469 msgid ""
17470 "You should have received a copy of the GNU General Public License along with "
17471 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17472 "Ave, Cambridge, MA 02139, USA."
17473 msgstr ""
17474
17475 # type: =head2
17476 #: ../fish/guestfish-actions.pod:1
17477 msgid "add-cdrom"
17478 msgstr ""
17479
17480 # type: verbatim
17481 #: ../fish/guestfish-actions.pod:3
17482 #, no-wrap
17483 msgid ""
17484 " add-cdrom filename\n"
17485 "\n"
17486 msgstr ""
17487
17488 # type: textblock
17489 #: ../fish/guestfish-actions.pod:15
17490 msgid ""
17491 "This call checks for the existence of C<filename>.  This stops you from "
17492 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17493 "and C<http:> URLs.  To specify those, use the general L</config> call "
17494 "instead."
17495 msgstr ""
17496
17497 # type: textblock
17498 #: ../fish/guestfish-actions.pod:22
17499 msgid ""
17500 "If you just want to add an ISO file (often you use this as an efficient way "
17501 "to transfer large files into the guest), then you should probably use L</add-"
17502 "drive-ro> instead."
17503 msgstr ""
17504
17505 # type: =head2
17506 #: ../fish/guestfish-actions.pod:35
17507 msgid "add-drive"
17508 msgstr ""
17509
17510 # type: verbatim
17511 #: ../fish/guestfish-actions.pod:37
17512 #, no-wrap
17513 msgid ""
17514 " add-drive filename\n"
17515 "\n"
17516 msgstr ""
17517
17518 # type: textblock
17519 #: ../fish/guestfish-actions.pod:39
17520 msgid ""
17521 "This function is the equivalent of calling L</add-drive-opts> with no "
17522 "optional parameters, so the disk is added writable, with the format being "
17523 "detected automatically."
17524 msgstr ""
17525
17526 # type: textblock
17527 #: ../fish/guestfish-actions.pod:43
17528 msgid ""
17529 "Automatic detection of the format opens you up to a potential security hole "
17530 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17531 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17532 "you should think about replacing calls to this function with calls to L</add-"
17533 "drive-opts>, and specifying the format."
17534 msgstr ""
17535
17536 # type: =head2
17537 #: ../fish/guestfish-actions.pod:50
17538 msgid "add-drive-opts"
17539 msgstr ""
17540
17541 # type: =head2
17542 #: ../fish/guestfish-actions.pod:52
17543 msgid "add"
17544 msgstr ""
17545
17546 # type: verbatim
17547 #: ../fish/guestfish-actions.pod:54
17548 #, no-wrap
17549 msgid ""
17550 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17551 "\n"
17552 msgstr ""
17553
17554 # type: textblock
17555 #: ../fish/guestfish-actions.pod:81
17556 msgid ""
17557 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
17558 "add-drive-ro>) then the format is automatically detected.  Possible formats "
17559 "include C<raw> and C<qcow2>."
17560 msgstr ""
17561
17562 # type: textblock
17563 #: ../fish/guestfish-actions.pod:92
17564 msgid ""
17565 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
17566 "add-drive-with-if> call (q.v.)"
17567 msgstr ""
17568
17569 # type: textblock
17570 #: ../fish/guestfish-actions.pod:97
17571 msgid ""
17572 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
17573 msgstr ""
17574
17575 # type: =head2
17576 #: ../fish/guestfish-actions.pod:99
17577 msgid "add-drive-ro"
17578 msgstr ""
17579
17580 # type: =head2
17581 #: ../fish/guestfish-actions.pod:101
17582 msgid "add-ro"
17583 msgstr ""
17584
17585 # type: verbatim
17586 #: ../fish/guestfish-actions.pod:103
17587 #, no-wrap
17588 msgid ""
17589 " add-drive-ro filename\n"
17590 "\n"
17591 msgstr ""
17592
17593 # type: textblock
17594 #: ../fish/guestfish-actions.pod:105
17595 msgid ""
17596 "This function is the equivalent of calling L</add-drive-opts> with the "
17597 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17598 "is added read-only, with the format being detected automatically."
17599 msgstr ""
17600
17601 # type: =head2
17602 #: ../fish/guestfish-actions.pod:110
17603 msgid "add-drive-ro-with-if"
17604 msgstr ""
17605
17606 # type: verbatim
17607 #: ../fish/guestfish-actions.pod:112
17608 #, no-wrap
17609 msgid ""
17610 " add-drive-ro-with-if filename iface\n"
17611 "\n"
17612 msgstr ""
17613
17614 # type: textblock
17615 #: ../fish/guestfish-actions.pod:114
17616 msgid ""
17617 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17618 "interface emulation to use at run time."
17619 msgstr ""
17620
17621 # type: =head2
17622 #: ../fish/guestfish-actions.pod:124
17623 msgid "add-drive-with-if"
17624 msgstr ""
17625
17626 # type: verbatim
17627 #: ../fish/guestfish-actions.pod:126
17628 #, no-wrap
17629 msgid ""
17630 " add-drive-with-if filename iface\n"
17631 "\n"
17632 msgstr ""
17633
17634 # type: textblock
17635 #: ../fish/guestfish-actions.pod:128
17636 msgid ""
17637 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17638 "interface emulation to use at run time."
17639 msgstr ""
17640
17641 # type: =head2
17642 #: ../fish/guestfish-actions.pod:138
17643 msgid "aug-clear"
17644 msgstr ""
17645
17646 # type: verbatim
17647 #: ../fish/guestfish-actions.pod:140
17648 #, no-wrap
17649 msgid ""
17650 " aug-clear augpath\n"
17651 "\n"
17652 msgstr ""
17653
17654 # type: =head2
17655 #: ../fish/guestfish-actions.pod:145
17656 msgid "aug-close"
17657 msgstr ""
17658
17659 # type: verbatim
17660 #: ../fish/guestfish-actions.pod:147
17661 #, no-wrap
17662 msgid ""
17663 " aug-close\n"
17664 "\n"
17665 msgstr ""
17666
17667 # type: textblock
17668 #: ../fish/guestfish-actions.pod:149
17669 msgid ""
17670 "Close the current Augeas handle and free up any resources used by it.  After "
17671 "calling this, you have to call L</aug-init> again before you can use any "
17672 "other Augeas functions."
17673 msgstr ""
17674
17675 # type: =head2
17676 #: ../fish/guestfish-actions.pod:154
17677 msgid "aug-defnode"
17678 msgstr ""
17679
17680 # type: verbatim
17681 #: ../fish/guestfish-actions.pod:156
17682 #, no-wrap
17683 msgid ""
17684 " aug-defnode name expr val\n"
17685 "\n"
17686 msgstr ""
17687
17688 # type: textblock
17689 #: ../fish/guestfish-actions.pod:161
17690 msgid ""
17691 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17692 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17693 "containing that single node."
17694 msgstr ""
17695
17696 # type: =head2
17697 #: ../fish/guestfish-actions.pod:169
17698 msgid "aug-defvar"
17699 msgstr ""
17700
17701 # type: verbatim
17702 #: ../fish/guestfish-actions.pod:171
17703 #, no-wrap
17704 msgid ""
17705 " aug-defvar name expr\n"
17706 "\n"
17707 msgstr ""
17708
17709 # type: =head2
17710 #: ../fish/guestfish-actions.pod:180
17711 msgid "aug-get"
17712 msgstr ""
17713
17714 # type: verbatim
17715 #: ../fish/guestfish-actions.pod:182
17716 #, no-wrap
17717 msgid ""
17718 " aug-get augpath\n"
17719 "\n"
17720 msgstr ""
17721
17722 # type: =head2
17723 #: ../fish/guestfish-actions.pod:187
17724 msgid "aug-init"
17725 msgstr ""
17726
17727 # type: verbatim
17728 #: ../fish/guestfish-actions.pod:189
17729 #, no-wrap
17730 msgid ""
17731 " aug-init root flags\n"
17732 "\n"
17733 msgstr ""
17734
17735 # type: textblock
17736 #: ../fish/guestfish-actions.pod:195
17737 msgid "You must call this before using any other L</aug-*> commands."
17738 msgstr ""
17739
17740 # type: textblock
17741 #: ../fish/guestfish-actions.pod:230
17742 msgid "Do not load the tree in L</aug-init>."
17743 msgstr ""
17744
17745 # type: textblock
17746 #: ../fish/guestfish-actions.pod:234
17747 msgid "To close the handle, you can call L</aug-close>."
17748 msgstr ""
17749
17750 # type: =head2
17751 #: ../fish/guestfish-actions.pod:238
17752 msgid "aug-insert"
17753 msgstr ""
17754
17755 # type: verbatim
17756 #: ../fish/guestfish-actions.pod:240
17757 #, no-wrap
17758 msgid ""
17759 " aug-insert augpath label true|false\n"
17760 "\n"
17761 msgstr ""
17762
17763 # type: =head2
17764 #: ../fish/guestfish-actions.pod:250
17765 msgid "aug-load"
17766 msgstr ""
17767
17768 # type: verbatim
17769 #: ../fish/guestfish-actions.pod:252
17770 #, no-wrap
17771 msgid ""
17772 " aug-load\n"
17773 "\n"
17774 msgstr ""
17775
17776 # type: =head2
17777 #: ../fish/guestfish-actions.pod:259
17778 msgid "aug-ls"
17779 msgstr ""
17780
17781 # type: verbatim
17782 #: ../fish/guestfish-actions.pod:261
17783 #, no-wrap
17784 msgid ""
17785 " aug-ls augpath\n"
17786 "\n"
17787 msgstr ""
17788
17789 # type: textblock
17790 #: ../fish/guestfish-actions.pod:263
17791 msgid ""
17792 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17793 "resulting nodes into alphabetical order."
17794 msgstr ""
17795
17796 # type: =head2
17797 #: ../fish/guestfish-actions.pod:266
17798 msgid "aug-match"
17799 msgstr ""
17800
17801 # type: verbatim
17802 #: ../fish/guestfish-actions.pod:268
17803 #, no-wrap
17804 msgid ""
17805 " aug-match augpath\n"
17806 "\n"
17807 msgstr ""
17808
17809 # type: =head2
17810 #: ../fish/guestfish-actions.pod:274
17811 msgid "aug-mv"
17812 msgstr ""
17813
17814 # type: verbatim
17815 #: ../fish/guestfish-actions.pod:276
17816 #, no-wrap
17817 msgid ""
17818 " aug-mv src dest\n"
17819 "\n"
17820 msgstr ""
17821
17822 # type: =head2
17823 #: ../fish/guestfish-actions.pod:281
17824 msgid "aug-rm"
17825 msgstr ""
17826
17827 # type: verbatim
17828 #: ../fish/guestfish-actions.pod:283
17829 #, no-wrap
17830 msgid ""
17831 " aug-rm augpath\n"
17832 "\n"
17833 msgstr ""
17834
17835 # type: =head2
17836 #: ../fish/guestfish-actions.pod:289
17837 msgid "aug-save"
17838 msgstr ""
17839
17840 # type: verbatim
17841 #: ../fish/guestfish-actions.pod:291
17842 #, no-wrap
17843 msgid ""
17844 " aug-save\n"
17845 "\n"
17846 msgstr ""
17847
17848 # type: textblock
17849 #: ../fish/guestfish-actions.pod:295
17850 msgid ""
17851 "The flags which were passed to L</aug-init> affect exactly how files are "
17852 "saved."
17853 msgstr ""
17854
17855 # type: =head2
17856 #: ../fish/guestfish-actions.pod:298
17857 msgid "aug-set"
17858 msgstr ""
17859
17860 # type: verbatim
17861 #: ../fish/guestfish-actions.pod:300
17862 #, no-wrap
17863 msgid ""
17864 " aug-set augpath val\n"
17865 "\n"
17866 msgstr ""
17867
17868 # type: textblock
17869 #: ../fish/guestfish-actions.pod:304
17870 msgid ""
17871 "In the Augeas API, it is possible to clear a node by setting the value to "
17872 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17873 "this call.  Instead you must use the L</aug-clear> call."
17874 msgstr ""
17875
17876 # type: =head2
17877 #: ../fish/guestfish-actions.pod:309
17878 msgid "available"
17879 msgstr ""
17880
17881 # type: verbatim
17882 #: ../fish/guestfish-actions.pod:311
17883 #, no-wrap
17884 msgid ""
17885 " available 'groups ...'\n"
17886 "\n"
17887 msgstr ""
17888
17889 # type: textblock
17890 #: ../fish/guestfish-actions.pod:317
17891 msgid ""
17892 "The libguestfs groups, and the functions that those groups correspond to, "
17893 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17894 "runtime by calling L</available-all-groups>."
17895 msgstr ""
17896
17897 # type: textblock
17898 #: ../fish/guestfish-actions.pod:341
17899 msgid "You must call L</launch> before calling this function."
17900 msgstr ""
17901
17902 # type: textblock
17903 #: ../fish/guestfish-actions.pod:363
17904 msgid ""
17905 "This call was added in version C<1.0.80>.  In previous versions of "
17906 "libguestfs all you could do would be to speculatively execute a command to "
17907 "find out if the daemon implemented it.  See also L</version>."
17908 msgstr ""
17909
17910 # type: =head2
17911 #: ../fish/guestfish-actions.pod:370
17912 msgid "available-all-groups"
17913 msgstr ""
17914
17915 # type: verbatim
17916 #: ../fish/guestfish-actions.pod:372
17917 #, no-wrap
17918 msgid ""
17919 " available-all-groups\n"
17920 "\n"
17921 msgstr ""
17922
17923 # type: textblock
17924 #: ../fish/guestfish-actions.pod:374
17925 msgid ""
17926 "This command returns a list of all optional groups that this daemon knows "
17927 "about.  Note this returns both supported and unsupported groups.  To find "
17928 "out which ones the daemon can actually support you have to call L</"
17929 "available> on each member of the returned list."
17930 msgstr ""
17931
17932 # type: textblock
17933 #: ../fish/guestfish-actions.pod:380
17934 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17935 msgstr ""
17936
17937 # type: =head2
17938 #: ../fish/guestfish-actions.pod:382
17939 msgid "base64-in"
17940 msgstr ""
17941
17942 # type: verbatim
17943 #: ../fish/guestfish-actions.pod:384
17944 #, no-wrap
17945 msgid ""
17946 " base64-in (base64file|-) filename\n"
17947 "\n"
17948 msgstr ""
17949
17950 # type: textblock
17951 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398
17952 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769
17953 #: ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835
17954 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3932
17955 #: ../fish/guestfish-actions.pod:3944 ../fish/guestfish-actions.pod:3955
17956 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:4018
17957 #: ../fish/guestfish-actions.pod:4027 ../fish/guestfish-actions.pod:4081
17958 #: ../fish/guestfish-actions.pod:4104
17959 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17960 msgstr ""
17961
17962 # type: =head2
17963 #: ../fish/guestfish-actions.pod:391
17964 msgid "base64-out"
17965 msgstr ""
17966
17967 # type: verbatim
17968 #: ../fish/guestfish-actions.pod:393
17969 #, no-wrap
17970 msgid ""
17971 " base64-out filename (base64file|-)\n"
17972 "\n"
17973 msgstr ""
17974
17975 # type: =head2
17976 #: ../fish/guestfish-actions.pod:400
17977 msgid "blockdev-flushbufs"
17978 msgstr ""
17979
17980 # type: verbatim
17981 #: ../fish/guestfish-actions.pod:402
17982 #, no-wrap
17983 msgid ""
17984 " blockdev-flushbufs device\n"
17985 "\n"
17986 msgstr ""
17987
17988 # type: =head2
17989 #: ../fish/guestfish-actions.pod:409
17990 msgid "blockdev-getbsz"
17991 msgstr ""
17992
17993 # type: verbatim
17994 #: ../fish/guestfish-actions.pod:411
17995 #, no-wrap
17996 msgid ""
17997 " blockdev-getbsz device\n"
17998 "\n"
17999 msgstr ""
18000
18001 # type: =head2
18002 #: ../fish/guestfish-actions.pod:420
18003 msgid "blockdev-getro"
18004 msgstr ""
18005
18006 # type: verbatim
18007 #: ../fish/guestfish-actions.pod:422
18008 #, no-wrap
18009 msgid ""
18010 " blockdev-getro device\n"
18011 "\n"
18012 msgstr ""
18013
18014 # type: =head2
18015 #: ../fish/guestfish-actions.pod:429
18016 msgid "blockdev-getsize64"
18017 msgstr ""
18018
18019 # type: verbatim
18020 #: ../fish/guestfish-actions.pod:431
18021 #, no-wrap
18022 msgid ""
18023 " blockdev-getsize64 device\n"
18024 "\n"
18025 msgstr ""
18026
18027 # type: textblock
18028 #: ../fish/guestfish-actions.pod:435
18029 msgid "See also L</blockdev-getsz>."
18030 msgstr ""
18031
18032 # type: =head2
18033 #: ../fish/guestfish-actions.pod:439
18034 msgid "blockdev-getss"
18035 msgstr ""
18036
18037 # type: verbatim
18038 #: ../fish/guestfish-actions.pod:441
18039 #, no-wrap
18040 msgid ""
18041 " blockdev-getss device\n"
18042 "\n"
18043 msgstr ""
18044
18045 # type: textblock
18046 #: ../fish/guestfish-actions.pod:446
18047 msgid ""
18048 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18049 msgstr ""
18050
18051 # type: =head2
18052 #: ../fish/guestfish-actions.pod:451
18053 msgid "blockdev-getsz"
18054 msgstr ""
18055
18056 # type: verbatim
18057 #: ../fish/guestfish-actions.pod:453
18058 #, no-wrap
18059 msgid ""
18060 " blockdev-getsz device\n"
18061 "\n"
18062 msgstr ""
18063
18064 # type: textblock
18065 #: ../fish/guestfish-actions.pod:458
18066 msgid ""
18067 "See also L</blockdev-getss> for the real sector size of the device, and L</"
18068 "blockdev-getsize64> for the more useful I<size in bytes>."
18069 msgstr ""
18070
18071 # type: =head2
18072 #: ../fish/guestfish-actions.pod:464
18073 msgid "blockdev-rereadpt"
18074 msgstr ""
18075
18076 # type: verbatim
18077 #: ../fish/guestfish-actions.pod:466
18078 #, no-wrap
18079 msgid ""
18080 " blockdev-rereadpt device\n"
18081 "\n"
18082 msgstr ""
18083
18084 # type: =head2
18085 #: ../fish/guestfish-actions.pod:472
18086 msgid "blockdev-setbsz"
18087 msgstr ""
18088
18089 # type: verbatim
18090 #: ../fish/guestfish-actions.pod:474
18091 #, no-wrap
18092 msgid ""
18093 " blockdev-setbsz device blocksize\n"
18094 "\n"
18095 msgstr ""
18096
18097 # type: =head2
18098 #: ../fish/guestfish-actions.pod:483
18099 msgid "blockdev-setro"
18100 msgstr ""
18101
18102 # type: verbatim
18103 #: ../fish/guestfish-actions.pod:485
18104 #, no-wrap
18105 msgid ""
18106 " blockdev-setro device\n"
18107 "\n"
18108 msgstr ""
18109
18110 # type: =head2
18111 #: ../fish/guestfish-actions.pod:491
18112 msgid "blockdev-setrw"
18113 msgstr ""
18114
18115 # type: verbatim
18116 #: ../fish/guestfish-actions.pod:493
18117 #, no-wrap
18118 msgid ""
18119 " blockdev-setrw device\n"
18120 "\n"
18121 msgstr ""
18122
18123 # type: =head2
18124 #: ../fish/guestfish-actions.pod:499
18125 msgid "case-sensitive-path"
18126 msgstr ""
18127
18128 # type: verbatim
18129 #: ../fish/guestfish-actions.pod:501
18130 #, no-wrap
18131 msgid ""
18132 " case-sensitive-path path\n"
18133 "\n"
18134 msgstr ""
18135
18136 # type: textblock
18137 #: ../fish/guestfish-actions.pod:525
18138 msgid ""
18139 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
18140 "WINDOWS/system32\"> (the exact return value would depend on details of how "
18141 "the directories were originally created under Windows)."
18142 msgstr ""
18143
18144 # type: textblock
18145 #: ../fish/guestfish-actions.pod:533
18146 msgid "See also L</realpath>."
18147 msgstr ""
18148
18149 # type: =head2
18150 #: ../fish/guestfish-actions.pod:535
18151 msgid "cat"
18152 msgstr ""
18153
18154 # type: verbatim
18155 #: ../fish/guestfish-actions.pod:537
18156 #, no-wrap
18157 msgid ""
18158 " cat path\n"
18159 "\n"
18160 msgstr ""
18161
18162 # type: textblock
18163 #: ../fish/guestfish-actions.pod:541
18164 msgid ""
18165 "Note that this function cannot correctly handle binary files (specifically, "
18166 "files containing C<\\0> character which is treated as end of string).  For "
18167 "those you need to use the L</read-file> or L</download> functions which have "
18168 "a more complex interface."
18169 msgstr ""
18170
18171 # type: =head2
18172 #: ../fish/guestfish-actions.pod:549
18173 msgid "checksum"
18174 msgstr ""
18175
18176 # type: verbatim
18177 #: ../fish/guestfish-actions.pod:551
18178 #, no-wrap
18179 msgid ""
18180 " checksum csumtype path\n"
18181 "\n"
18182 msgstr ""
18183
18184 # type: textblock
18185 #: ../fish/guestfish-actions.pod:594
18186 msgid "To get the checksum for a device, use L</checksum-device>."
18187 msgstr ""
18188
18189 # type: textblock
18190 #: ../fish/guestfish-actions.pod:596
18191 msgid "To get the checksums for many files, use L</checksums-out>."
18192 msgstr ""
18193
18194 # type: =head2
18195 #: ../fish/guestfish-actions.pod:598
18196 msgid "checksum-device"
18197 msgstr ""
18198
18199 # type: verbatim
18200 #: ../fish/guestfish-actions.pod:600
18201 #, no-wrap
18202 msgid ""
18203 " checksum-device csumtype device\n"
18204 "\n"
18205 msgstr ""
18206
18207 # type: textblock
18208 #: ../fish/guestfish-actions.pod:602
18209 msgid ""
18210 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18211 "device named C<device>.  For the types of checksums supported see the L</"
18212 "checksum> command."
18213 msgstr ""
18214
18215 # type: =head2
18216 #: ../fish/guestfish-actions.pod:606
18217 msgid "checksums-out"
18218 msgstr ""
18219
18220 # type: verbatim
18221 #: ../fish/guestfish-actions.pod:608
18222 #, no-wrap
18223 msgid ""
18224 " checksums-out csumtype directory (sumsfile|-)\n"
18225 "\n"
18226 msgstr ""
18227
18228 # type: =head2
18229 #: ../fish/guestfish-actions.pod:624
18230 msgid "chmod"
18231 msgstr ""
18232
18233 # type: verbatim
18234 #: ../fish/guestfish-actions.pod:626
18235 #, no-wrap
18236 msgid ""
18237 " chmod mode path\n"
18238 "\n"
18239 msgstr ""
18240
18241 # type: =head2
18242 #: ../fish/guestfish-actions.pod:637
18243 msgid "chown"
18244 msgstr ""
18245
18246 # type: verbatim
18247 #: ../fish/guestfish-actions.pod:639
18248 #, no-wrap
18249 msgid ""
18250 " chown owner group path\n"
18251 "\n"
18252 msgstr ""
18253
18254 # type: =head2
18255 #: ../fish/guestfish-actions.pod:647
18256 msgid "command"
18257 msgstr ""
18258
18259 # type: verbatim
18260 #: ../fish/guestfish-actions.pod:649
18261 #, no-wrap
18262 msgid ""
18263 " command 'arguments ...'\n"
18264 "\n"
18265 msgstr ""
18266
18267 # type: textblock
18268 #: ../fish/guestfish-actions.pod:656
18269 msgid ""
18270 "The single parameter is an argv-style list of arguments.  The first element "
18271 "is the name of the program to run.  Subsequent elements are parameters.  The "
18272 "list must be non-empty (ie. must contain a program name).  Note that the "
18273 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18274 msgstr ""
18275
18276 # type: =head2
18277 #: ../fish/guestfish-actions.pod:684
18278 msgid "command-lines"
18279 msgstr ""
18280
18281 # type: verbatim
18282 #: ../fish/guestfish-actions.pod:686
18283 #, no-wrap
18284 msgid ""
18285 " command-lines 'arguments ...'\n"
18286 "\n"
18287 msgstr ""
18288
18289 # type: textblock
18290 #: ../fish/guestfish-actions.pod:688
18291 msgid ""
18292 "This is the same as L</command>, but splits the result into a list of lines."
18293 msgstr ""
18294
18295 # type: textblock
18296 #: ../fish/guestfish-actions.pod:691
18297 msgid "See also: L</sh-lines>"
18298 msgstr ""
18299
18300 # type: =head2
18301 #: ../fish/guestfish-actions.pod:696
18302 msgid "config"
18303 msgstr ""
18304
18305 # type: verbatim
18306 #: ../fish/guestfish-actions.pod:698
18307 #, no-wrap
18308 msgid ""
18309 " config qemuparam qemuvalue\n"
18310 "\n"
18311 msgstr ""
18312
18313 # type: =head2
18314 #: ../fish/guestfish-actions.pod:709
18315 msgid "copy-size"
18316 msgstr ""
18317
18318 # type: verbatim
18319 #: ../fish/guestfish-actions.pod:711
18320 #, no-wrap
18321 msgid ""
18322 " copy-size src dest size\n"
18323 "\n"
18324 msgstr ""
18325
18326 # type: =head2
18327 #: ../fish/guestfish-actions.pod:719
18328 msgid "cp"
18329 msgstr ""
18330
18331 # type: verbatim
18332 #: ../fish/guestfish-actions.pod:721
18333 #, no-wrap
18334 msgid ""
18335 " cp src dest\n"
18336 "\n"
18337 msgstr ""
18338
18339 # type: =head2
18340 #: ../fish/guestfish-actions.pod:726
18341 msgid "cp-a"
18342 msgstr ""
18343
18344 # type: verbatim
18345 #: ../fish/guestfish-actions.pod:728
18346 #, no-wrap
18347 msgid ""
18348 " cp-a src dest\n"
18349 "\n"
18350 msgstr ""
18351
18352 # type: =head2
18353 #: ../fish/guestfish-actions.pod:733
18354 msgid "dd"
18355 msgstr ""
18356
18357 # type: verbatim
18358 #: ../fish/guestfish-actions.pod:735
18359 #, no-wrap
18360 msgid ""
18361 " dd src dest\n"
18362 "\n"
18363 msgstr ""
18364
18365 # type: textblock
18366 #: ../fish/guestfish-actions.pod:742
18367 msgid ""
18368 "If the destination is a device, it must be as large or larger than the "
18369 "source file or device, otherwise the copy will fail.  This command cannot do "
18370 "partial copies (see L</copy-size>)."
18371 msgstr ""
18372
18373 # type: =head2
18374 #: ../fish/guestfish-actions.pod:746
18375 msgid "debug"
18376 msgstr ""
18377
18378 # type: verbatim
18379 #: ../fish/guestfish-actions.pod:748
18380 #, no-wrap
18381 msgid ""
18382 " debug subcmd 'extraargs ...'\n"
18383 "\n"
18384 msgstr ""
18385
18386 # type: textblock
18387 #: ../fish/guestfish-actions.pod:750
18388 msgid ""
18389 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18390 "daemon) that runs inside the qemu subprocess."
18391 msgstr ""
18392
18393 # type: =head2
18394 #: ../fish/guestfish-actions.pod:758
18395 msgid "debug-upload"
18396 msgstr ""
18397
18398 # type: verbatim
18399 #: ../fish/guestfish-actions.pod:760
18400 #, no-wrap
18401 msgid ""
18402 " debug-upload (filename|-) tmpname mode\n"
18403 "\n"
18404 msgstr ""
18405
18406 # type: textblock
18407 #: ../fish/guestfish-actions.pod:762
18408 msgid ""
18409 "The L</debug-upload> command uploads a file to the libguestfs appliance."
18410 msgstr ""
18411
18412 # type: =head2
18413 #: ../fish/guestfish-actions.pod:771
18414 msgid "df"
18415 msgstr ""
18416
18417 # type: verbatim
18418 #: ../fish/guestfish-actions.pod:773
18419 #, no-wrap
18420 msgid ""
18421 " df\n"
18422 "\n"
18423 msgstr ""
18424
18425 # type: =head2
18426 #: ../fish/guestfish-actions.pod:781
18427 msgid "df-h"
18428 msgstr ""
18429
18430 # type: verbatim
18431 #: ../fish/guestfish-actions.pod:783
18432 #, no-wrap
18433 msgid ""
18434 " df-h\n"
18435 "\n"
18436 msgstr ""
18437
18438 # type: =head2
18439 #: ../fish/guestfish-actions.pod:792
18440 msgid "dmesg"
18441 msgstr ""
18442
18443 # type: verbatim
18444 #: ../fish/guestfish-actions.pod:794
18445 #, no-wrap
18446 msgid ""
18447 " dmesg\n"
18448 "\n"
18449 msgstr ""
18450
18451 # type: textblock
18452 #: ../fish/guestfish-actions.pod:800
18453 msgid ""
18454 "Another way to get the same information is to enable verbose messages with "
18455 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18456 "before running the program."
18457 msgstr ""
18458
18459 # type: =head2
18460 #: ../fish/guestfish-actions.pod:805
18461 msgid "download"
18462 msgstr ""
18463
18464 # type: verbatim
18465 #: ../fish/guestfish-actions.pod:807
18466 #, no-wrap
18467 msgid ""
18468 " download remotefilename (filename|-)\n"
18469 "\n"
18470 msgstr ""
18471
18472 # type: textblock
18473 #: ../fish/guestfish-actions.pod:814
18474 msgid "See also L</upload>, L</cat>."
18475 msgstr ""
18476
18477 # type: =head2
18478 #: ../fish/guestfish-actions.pod:818
18479 msgid "download-offset"
18480 msgstr ""
18481
18482 # type: verbatim
18483 #: ../fish/guestfish-actions.pod:820
18484 #, no-wrap
18485 msgid ""
18486 " download-offset remotefilename (filename|-) offset size\n"
18487 "\n"
18488 msgstr ""
18489
18490 # type: textblock
18491 #: ../fish/guestfish-actions.pod:828
18492 msgid ""
18493 "Note that there is no limit on the amount of data that can be downloaded "
18494 "with this call, unlike with L</pread>, and this call always reads the full "
18495 "amount unless an error occurs."
18496 msgstr ""
18497
18498 # type: textblock
18499 #: ../fish/guestfish-actions.pod:833
18500 msgid "See also L</download>, L</pread>."
18501 msgstr ""
18502
18503 # type: =head2
18504 #: ../fish/guestfish-actions.pod:837
18505 msgid "drop-caches"
18506 msgstr ""
18507
18508 # type: verbatim
18509 #: ../fish/guestfish-actions.pod:839
18510 #, no-wrap
18511 msgid ""
18512 " drop-caches whattodrop\n"
18513 "\n"
18514 msgstr ""
18515
18516 # type: =head2
18517 #: ../fish/guestfish-actions.pod:851
18518 msgid "du"
18519 msgstr ""
18520
18521 # type: verbatim
18522 #: ../fish/guestfish-actions.pod:853
18523 #, no-wrap
18524 msgid ""
18525 " du path\n"
18526 "\n"
18527 msgstr ""
18528
18529 # type: =head2
18530 #: ../fish/guestfish-actions.pod:865
18531 msgid "e2fsck-f"
18532 msgstr ""
18533
18534 # type: verbatim
18535 #: ../fish/guestfish-actions.pod:867
18536 #, no-wrap
18537 msgid ""
18538 " e2fsck-f device\n"
18539 "\n"
18540 msgstr ""
18541
18542 # type: textblock
18543 #: ../fish/guestfish-actions.pod:873
18544 msgid ""
18545 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18546 "should use L</fsck>."
18547 msgstr ""
18548
18549 # type: =head2
18550 #: ../fish/guestfish-actions.pod:876
18551 msgid "echo-daemon"
18552 msgstr ""
18553
18554 # type: verbatim
18555 #: ../fish/guestfish-actions.pod:878
18556 #, no-wrap
18557 msgid ""
18558 " echo-daemon 'words ...'\n"
18559 "\n"
18560 msgstr ""
18561
18562 # type: textblock
18563 #: ../fish/guestfish-actions.pod:885
18564 msgid "See also L</ping-daemon>."
18565 msgstr ""
18566
18567 # type: =head2
18568 #: ../fish/guestfish-actions.pod:887
18569 msgid "egrep"
18570 msgstr ""
18571
18572 # type: verbatim
18573 #: ../fish/guestfish-actions.pod:889
18574 #, no-wrap
18575 msgid ""
18576 " egrep regex path\n"
18577 "\n"
18578 msgstr ""
18579
18580 # type: =head2
18581 #: ../fish/guestfish-actions.pod:897
18582 msgid "egrepi"
18583 msgstr ""
18584
18585 # type: verbatim
18586 #: ../fish/guestfish-actions.pod:899
18587 #, no-wrap
18588 msgid ""
18589 " egrepi regex path\n"
18590 "\n"
18591 msgstr ""
18592
18593 # type: =head2
18594 #: ../fish/guestfish-actions.pod:907
18595 msgid "equal"
18596 msgstr ""
18597
18598 # type: verbatim
18599 #: ../fish/guestfish-actions.pod:909
18600 #, no-wrap
18601 msgid ""
18602 " equal file1 file2\n"
18603 "\n"
18604 msgstr ""
18605
18606 # type: =head2
18607 #: ../fish/guestfish-actions.pod:916
18608 msgid "exists"
18609 msgstr ""
18610
18611 # type: verbatim
18612 #: ../fish/guestfish-actions.pod:918
18613 #, no-wrap
18614 msgid ""
18615 " exists path\n"
18616 "\n"
18617 msgstr ""
18618
18619 # type: textblock
18620 #: ../fish/guestfish-actions.pod:923
18621 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18622 msgstr ""
18623
18624 # type: =head2
18625 #: ../fish/guestfish-actions.pod:925
18626 msgid "fallocate"
18627 msgstr ""
18628
18629 # type: verbatim
18630 #: ../fish/guestfish-actions.pod:927
18631 #, no-wrap
18632 msgid ""
18633 " fallocate path len\n"
18634 "\n"
18635 msgstr ""
18636
18637 # type: =head2
18638 #: ../fish/guestfish-actions.pod:944
18639 msgid "fallocate64"
18640 msgstr ""
18641
18642 # type: verbatim
18643 #: ../fish/guestfish-actions.pod:946
18644 #, no-wrap
18645 msgid ""
18646 " fallocate64 path len\n"
18647 "\n"
18648 msgstr ""
18649
18650 # type: textblock
18651 #: ../fish/guestfish-actions.pod:952
18652 msgid ""
18653 "Note that this call allocates disk blocks for the file.  To create a sparse "
18654 "file use L</truncate-size> instead."
18655 msgstr ""
18656
18657 # type: textblock
18658 #: ../fish/guestfish-actions.pod:955
18659 msgid ""
18660 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18661 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18662 "maximum size of files created through that call to 1GB."
18663 msgstr ""
18664
18665 # type: =head2
18666 #: ../fish/guestfish-actions.pod:964
18667 msgid "fgrep"
18668 msgstr ""
18669
18670 # type: verbatim
18671 #: ../fish/guestfish-actions.pod:966
18672 #, no-wrap
18673 msgid ""
18674 " fgrep pattern path\n"
18675 "\n"
18676 msgstr ""
18677
18678 # type: =head2
18679 #: ../fish/guestfish-actions.pod:974
18680 msgid "fgrepi"
18681 msgstr ""
18682
18683 # type: verbatim
18684 #: ../fish/guestfish-actions.pod:976
18685 #, no-wrap
18686 msgid ""
18687 " fgrepi pattern path\n"
18688 "\n"
18689 msgstr ""
18690
18691 # type: =head2
18692 #: ../fish/guestfish-actions.pod:984
18693 msgid "file"
18694 msgstr ""
18695
18696 # type: verbatim
18697 #: ../fish/guestfish-actions.pod:986
18698 #, no-wrap
18699 msgid ""
18700 " file path\n"
18701 "\n"
18702 msgstr ""
18703
18704 # type: textblock
18705 #: ../fish/guestfish-actions.pod:998
18706 msgid ""
18707 "This command can also be used on C</dev/> devices (and partitions, LV "
18708 "names).  You can for example use this to determine if a device contains a "
18709 "filesystem, although it's usually better to use L</vfs-type>."
18710 msgstr ""
18711
18712 # type: =head2
18713 #: ../fish/guestfish-actions.pod:1008
18714 msgid "file-architecture"
18715 msgstr ""
18716
18717 # type: verbatim
18718 #: ../fish/guestfish-actions.pod:1010
18719 #, no-wrap
18720 msgid ""
18721 " file-architecture filename\n"
18722 "\n"
18723 msgstr ""
18724
18725 # type: =head2
18726 #: ../fish/guestfish-actions.pod:1113
18727 msgid "filesize"
18728 msgstr ""
18729
18730 # type: verbatim
18731 #: ../fish/guestfish-actions.pod:1115
18732 #, no-wrap
18733 msgid ""
18734 " filesize file\n"
18735 "\n"
18736 msgstr ""
18737
18738 # type: textblock
18739 #: ../fish/guestfish-actions.pod:1119
18740 msgid ""
18741 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
18742 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
18743 msgstr ""
18744
18745 # type: =head2
18746 #: ../fish/guestfish-actions.pod:1123
18747 msgid "fill"
18748 msgstr ""
18749
18750 # type: verbatim
18751 #: ../fish/guestfish-actions.pod:1125
18752 #, no-wrap
18753 msgid ""
18754 " fill c len path\n"
18755 "\n"
18756 msgstr ""
18757
18758 # type: textblock
18759 #: ../fish/guestfish-actions.pod:1131
18760 msgid ""
18761 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18762 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18763 "L</fill-pattern>."
18764 msgstr ""
18765
18766 # type: =head2
18767 #: ../fish/guestfish-actions.pod:1136
18768 msgid "fill-pattern"
18769 msgstr ""
18770
18771 # type: verbatim
18772 #: ../fish/guestfish-actions.pod:1138
18773 #, no-wrap
18774 msgid ""
18775 " fill-pattern pattern len path\n"
18776 "\n"
18777 msgstr ""
18778
18779 # type: textblock
18780 #: ../fish/guestfish-actions.pod:1140
18781 msgid ""
18782 "This function is like L</fill> except that it creates a new file of length "
18783 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18784 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18785 "bytes."
18786 msgstr ""
18787
18788 # type: =head2
18789 #: ../fish/guestfish-actions.pod:1145
18790 msgid "find"
18791 msgstr ""
18792
18793 # type: verbatim
18794 #: ../fish/guestfish-actions.pod:1147
18795 #, no-wrap
18796 msgid ""
18797 " find directory\n"
18798 "\n"
18799 msgstr ""
18800
18801 # type: textblock
18802 #: ../fish/guestfish-actions.pod:1161
18803 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18804 msgstr ""
18805
18806 # type: textblock
18807 #: ../fish/guestfish-actions.pod:1174
18808 msgid "See also L</find0>."
18809 msgstr ""
18810
18811 # type: =head2
18812 #: ../fish/guestfish-actions.pod:1179
18813 msgid "find0"
18814 msgstr ""
18815
18816 # type: verbatim
18817 #: ../fish/guestfish-actions.pod:1181
18818 #, no-wrap
18819 msgid ""
18820 " find0 directory (files|-)\n"
18821 "\n"
18822 msgstr ""
18823
18824 # type: textblock
18825 #: ../fish/guestfish-actions.pod:1187
18826 msgid ""
18827 "This command works the same way as L</find> with the following exceptions:"
18828 msgstr ""
18829
18830 # type: =head2
18831 #: ../fish/guestfish-actions.pod:1214
18832 msgid "findfs-label"
18833 msgstr ""
18834
18835 # type: verbatim
18836 #: ../fish/guestfish-actions.pod:1216
18837 #, no-wrap
18838 msgid ""
18839 " findfs-label label\n"
18840 "\n"
18841 msgstr ""
18842
18843 # type: textblock
18844 #: ../fish/guestfish-actions.pod:1222
18845 msgid "To find the label of a filesystem, use L</vfs-label>."
18846 msgstr ""
18847
18848 # type: =head2
18849 #: ../fish/guestfish-actions.pod:1224
18850 msgid "findfs-uuid"
18851 msgstr ""
18852
18853 # type: verbatim
18854 #: ../fish/guestfish-actions.pod:1226
18855 #, no-wrap
18856 msgid ""
18857 " findfs-uuid uuid\n"
18858 "\n"
18859 msgstr ""
18860
18861 # type: textblock
18862 #: ../fish/guestfish-actions.pod:1232
18863 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18864 msgstr ""
18865
18866 # type: =head2
18867 #: ../fish/guestfish-actions.pod:1234
18868 msgid "fsck"
18869 msgstr ""
18870
18871 # type: verbatim
18872 #: ../fish/guestfish-actions.pod:1236
18873 #, no-wrap
18874 msgid ""
18875 " fsck fstype device\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: =head2
18880 #: ../fish/guestfish-actions.pod:1266
18881 msgid "get-append"
18882 msgstr ""
18883
18884 # type: verbatim
18885 #: ../fish/guestfish-actions.pod:1268
18886 #, no-wrap
18887 msgid ""
18888 " get-append\n"
18889 "\n"
18890 msgstr ""
18891
18892 # type: =head2
18893 #: ../fish/guestfish-actions.pod:1275
18894 msgid "get-autosync"
18895 msgstr ""
18896
18897 # type: verbatim
18898 #: ../fish/guestfish-actions.pod:1277
18899 #, no-wrap
18900 msgid ""
18901 " get-autosync\n"
18902 "\n"
18903 msgstr ""
18904
18905 # type: =head2
18906 #: ../fish/guestfish-actions.pod:1281
18907 msgid "get-direct"
18908 msgstr ""
18909
18910 # type: verbatim
18911 #: ../fish/guestfish-actions.pod:1283
18912 #, no-wrap
18913 msgid ""
18914 " get-direct\n"
18915 "\n"
18916 msgstr ""
18917
18918 # type: =head2
18919 #: ../fish/guestfish-actions.pod:1287
18920 msgid "get-e2label"
18921 msgstr ""
18922
18923 # type: verbatim
18924 #: ../fish/guestfish-actions.pod:1289
18925 #, no-wrap
18926 msgid ""
18927 " get-e2label device\n"
18928 "\n"
18929 msgstr ""
18930
18931 # type: =head2
18932 #: ../fish/guestfish-actions.pod:1301
18933 msgid "get-e2uuid"
18934 msgstr ""
18935
18936 # type: verbatim
18937 #: ../fish/guestfish-actions.pod:1303
18938 #, no-wrap
18939 msgid ""
18940 " get-e2uuid device\n"
18941 "\n"
18942 msgstr ""
18943
18944 # type: =head2
18945 #: ../fish/guestfish-actions.pod:1315
18946 msgid "get-memsize"
18947 msgstr ""
18948
18949 # type: verbatim
18950 #: ../fish/guestfish-actions.pod:1317
18951 #, no-wrap
18952 msgid ""
18953 " get-memsize\n"
18954 "\n"
18955 msgstr ""
18956
18957 # type: textblock
18958 #: ../fish/guestfish-actions.pod:1322
18959 msgid ""
18960 "If L</set-memsize> was not called on this handle, and if "
18961 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18962 "value for memsize."
18963 msgstr ""
18964
18965 # type: =head2
18966 #: ../fish/guestfish-actions.pod:1329
18967 msgid "get-network"
18968 msgstr ""
18969
18970 # type: verbatim
18971 #: ../fish/guestfish-actions.pod:1331
18972 #, no-wrap
18973 msgid ""
18974 " get-network\n"
18975 "\n"
18976 msgstr ""
18977
18978 # type: =head2
18979 #: ../fish/guestfish-actions.pod:1335
18980 msgid "get-path"
18981 msgstr ""
18982
18983 # type: verbatim
18984 #: ../fish/guestfish-actions.pod:1337
18985 #, no-wrap
18986 msgid ""
18987 " get-path\n"
18988 "\n"
18989 msgstr ""
18990
18991 # type: =head2
18992 #: ../fish/guestfish-actions.pod:1344
18993 msgid "get-pid"
18994 msgstr ""
18995
18996 # type: =head2
18997 #: ../fish/guestfish-actions.pod:1346
18998 msgid "pid"
18999 msgstr ""
19000
19001 # type: verbatim
19002 #: ../fish/guestfish-actions.pod:1348
19003 #, no-wrap
19004 msgid ""
19005 " get-pid\n"
19006 "\n"
19007 msgstr ""
19008
19009 # type: =head2
19010 #: ../fish/guestfish-actions.pod:1355
19011 msgid "get-qemu"
19012 msgstr ""
19013
19014 # type: verbatim
19015 #: ../fish/guestfish-actions.pod:1357
19016 #, no-wrap
19017 msgid ""
19018 " get-qemu\n"
19019 "\n"
19020 msgstr ""
19021
19022 # type: =head2
19023 #: ../fish/guestfish-actions.pod:1364
19024 msgid "get-recovery-proc"
19025 msgstr ""
19026
19027 # type: verbatim
19028 #: ../fish/guestfish-actions.pod:1366
19029 #, no-wrap
19030 msgid ""
19031 " get-recovery-proc\n"
19032 "\n"
19033 msgstr ""
19034
19035 # type: =head2
19036 #: ../fish/guestfish-actions.pod:1370
19037 msgid "get-selinux"
19038 msgstr ""
19039
19040 # type: verbatim
19041 #: ../fish/guestfish-actions.pod:1372
19042 #, no-wrap
19043 msgid ""
19044 " get-selinux\n"
19045 "\n"
19046 msgstr ""
19047
19048 # type: textblock
19049 #: ../fish/guestfish-actions.pod:1374
19050 msgid ""
19051 "This returns the current setting of the selinux flag which is passed to the "
19052 "appliance at boot time.  See L</set-selinux>."
19053 msgstr ""
19054
19055 # type: =head2
19056 #: ../fish/guestfish-actions.pod:1380
19057 msgid "get-state"
19058 msgstr ""
19059
19060 # type: verbatim
19061 #: ../fish/guestfish-actions.pod:1382
19062 #, no-wrap
19063 msgid ""
19064 " get-state\n"
19065 "\n"
19066 msgstr ""
19067
19068 # type: =head2
19069 #: ../fish/guestfish-actions.pod:1389
19070 msgid "get-trace"
19071 msgstr ""
19072
19073 # type: verbatim
19074 #: ../fish/guestfish-actions.pod:1391
19075 #, no-wrap
19076 msgid ""
19077 " get-trace\n"
19078 "\n"
19079 msgstr ""
19080
19081 # type: =head2
19082 #: ../fish/guestfish-actions.pod:1395
19083 msgid "get-umask"
19084 msgstr ""
19085
19086 # type: verbatim
19087 #: ../fish/guestfish-actions.pod:1397
19088 #, no-wrap
19089 msgid ""
19090 " get-umask\n"
19091 "\n"
19092 msgstr ""
19093
19094 # type: textblock
19095 #: ../fish/guestfish-actions.pod:1399
19096 msgid ""
19097 "Return the current umask.  By default the umask is C<022> unless it has been "
19098 "set by calling L</umask>."
19099 msgstr ""
19100
19101 # type: =head2
19102 #: ../fish/guestfish-actions.pod:1402
19103 msgid "get-verbose"
19104 msgstr ""
19105
19106 # type: verbatim
19107 #: ../fish/guestfish-actions.pod:1404
19108 #, no-wrap
19109 msgid ""
19110 " get-verbose\n"
19111 "\n"
19112 msgstr ""
19113
19114 # type: =head2
19115 #: ../fish/guestfish-actions.pod:1408
19116 msgid "getcon"
19117 msgstr ""
19118
19119 # type: verbatim
19120 #: ../fish/guestfish-actions.pod:1410
19121 #, no-wrap
19122 msgid ""
19123 " getcon\n"
19124 "\n"
19125 msgstr ""
19126
19127 # type: textblock
19128 #: ../fish/guestfish-actions.pod:1414
19129 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19130 msgstr ""
19131
19132 # type: =head2
19133 #: ../fish/guestfish-actions.pod:1417
19134 msgid "getxattrs"
19135 msgstr ""
19136
19137 # type: verbatim
19138 #: ../fish/guestfish-actions.pod:1419
19139 #, no-wrap
19140 msgid ""
19141 " getxattrs path\n"
19142 "\n"
19143 msgstr ""
19144
19145 # type: textblock
19146 #: ../fish/guestfish-actions.pod:1427
19147 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19148 msgstr ""
19149
19150 # type: =head2
19151 #: ../fish/guestfish-actions.pod:1429
19152 msgid "glob-expand"
19153 msgstr ""
19154
19155 # type: verbatim
19156 #: ../fish/guestfish-actions.pod:1431
19157 #, no-wrap
19158 msgid ""
19159 " glob-expand pattern\n"
19160 "\n"
19161 msgstr ""
19162
19163 # type: =head2
19164 #: ../fish/guestfish-actions.pod:1444
19165 msgid "grep"
19166 msgstr ""
19167
19168 # type: verbatim
19169 #: ../fish/guestfish-actions.pod:1446
19170 #, no-wrap
19171 msgid ""
19172 " grep regex path\n"
19173 "\n"
19174 msgstr ""
19175
19176 # type: =head2
19177 #: ../fish/guestfish-actions.pod:1454
19178 msgid "grepi"
19179 msgstr ""
19180
19181 # type: verbatim
19182 #: ../fish/guestfish-actions.pod:1456
19183 #, no-wrap
19184 msgid ""
19185 " grepi regex path\n"
19186 "\n"
19187 msgstr ""
19188
19189 # type: =head2
19190 #: ../fish/guestfish-actions.pod:1464
19191 msgid "grub-install"
19192 msgstr ""
19193
19194 # type: verbatim
19195 #: ../fish/guestfish-actions.pod:1466
19196 #, no-wrap
19197 msgid ""
19198 " grub-install root device\n"
19199 "\n"
19200 msgstr ""
19201
19202 # type: =head2
19203 #: ../fish/guestfish-actions.pod:1482
19204 msgid "head"
19205 msgstr ""
19206
19207 # type: verbatim
19208 #: ../fish/guestfish-actions.pod:1484
19209 #, no-wrap
19210 msgid ""
19211 " head path\n"
19212 "\n"
19213 msgstr ""
19214
19215 # type: =head2
19216 #: ../fish/guestfish-actions.pod:1492
19217 msgid "head-n"
19218 msgstr ""
19219
19220 # type: verbatim
19221 #: ../fish/guestfish-actions.pod:1494
19222 #, no-wrap
19223 msgid ""
19224 " head-n nrlines path\n"
19225 "\n"
19226 msgstr ""
19227
19228 # type: =head2
19229 #: ../fish/guestfish-actions.pod:1507
19230 msgid "hexdump"
19231 msgstr ""
19232
19233 # type: verbatim
19234 #: ../fish/guestfish-actions.pod:1509
19235 #, no-wrap
19236 msgid ""
19237 " hexdump path\n"
19238 "\n"
19239 msgstr ""
19240
19241 # type: =head2
19242 #: ../fish/guestfish-actions.pod:1517
19243 msgid "initrd-cat"
19244 msgstr ""
19245
19246 # type: verbatim
19247 #: ../fish/guestfish-actions.pod:1519
19248 #, no-wrap
19249 msgid ""
19250 " initrd-cat initrdpath filename\n"
19251 "\n"
19252 msgstr ""
19253
19254 # type: textblock
19255 #: ../fish/guestfish-actions.pod:1531
19256 msgid "See also L</initrd-list>."
19257 msgstr ""
19258
19259 # type: =head2
19260 #: ../fish/guestfish-actions.pod:1536
19261 msgid "initrd-list"
19262 msgstr ""
19263
19264 # type: verbatim
19265 #: ../fish/guestfish-actions.pod:1538
19266 #, no-wrap
19267 msgid ""
19268 " initrd-list path\n"
19269 "\n"
19270 msgstr ""
19271
19272 # type: =head2
19273 #: ../fish/guestfish-actions.pod:1550
19274 msgid "inotify-add-watch"
19275 msgstr ""
19276
19277 # type: verbatim
19278 #: ../fish/guestfish-actions.pod:1552
19279 #, no-wrap
19280 msgid ""
19281 " inotify-add-watch path mask\n"
19282 "\n"
19283 msgstr ""
19284
19285 # type: =head2
19286 #: ../fish/guestfish-actions.pod:1564
19287 msgid "inotify-close"
19288 msgstr ""
19289
19290 # type: verbatim
19291 #: ../fish/guestfish-actions.pod:1566
19292 #, no-wrap
19293 msgid ""
19294 " inotify-close\n"
19295 "\n"
19296 msgstr ""
19297
19298 # type: =head2
19299 #: ../fish/guestfish-actions.pod:1572
19300 msgid "inotify-files"
19301 msgstr ""
19302
19303 # type: verbatim
19304 #: ../fish/guestfish-actions.pod:1574
19305 #, no-wrap
19306 msgid ""
19307 " inotify-files\n"
19308 "\n"
19309 msgstr ""
19310
19311 # type: textblock
19312 #: ../fish/guestfish-actions.pod:1576
19313 msgid ""
19314 "This function is a helpful wrapper around L</inotify-read> which just "
19315 "returns a list of pathnames of objects that were touched.  The returned "
19316 "pathnames are sorted and deduplicated."
19317 msgstr ""
19318
19319 # type: =head2
19320 #: ../fish/guestfish-actions.pod:1580
19321 msgid "inotify-init"
19322 msgstr ""
19323
19324 # type: verbatim
19325 #: ../fish/guestfish-actions.pod:1582
19326 #, no-wrap
19327 msgid ""
19328 " inotify-init maxevents\n"
19329 "\n"
19330 msgstr ""
19331
19332 # type: textblock
19333 #: ../fish/guestfish-actions.pod:1588
19334 msgid ""
19335 "C<maxevents> is the maximum number of events which will be queued up between "
19336 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19337 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19338 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19339 "but records the fact that it threw them away by setting a flag "
19340 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19341 msgstr ""
19342
19343 # type: textblock
19344 #: ../fish/guestfish-actions.pod:1598
19345 msgid ""
19346 "Before any events are generated, you have to add some watches to the "
19347 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19348 "L</inotify-watch-all>."
19349 msgstr ""
19350
19351 # type: textblock
19352 #: ../fish/guestfish-actions.pod:1604
19353 msgid ""
19354 "Queued up events should be read periodically by calling L</inotify-read> (or "
19355 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19356 "If you don't read the events out often enough then you risk the internal "
19357 "queue overflowing."
19358 msgstr ""
19359
19360 # type: textblock
19361 #: ../fish/guestfish-actions.pod:1611
19362 msgid ""
19363 "The handle should be closed after use by calling L</inotify-close>.  This "
19364 "also removes any watches automatically."
19365 msgstr ""
19366
19367 # type: =head2
19368 #: ../fish/guestfish-actions.pod:1620
19369 msgid "inotify-read"
19370 msgstr ""
19371
19372 # type: verbatim
19373 #: ../fish/guestfish-actions.pod:1622
19374 #, no-wrap
19375 msgid ""
19376 " inotify-read\n"
19377 "\n"
19378 msgstr ""
19379
19380 # type: =head2
19381 #: ../fish/guestfish-actions.pod:1635
19382 msgid "inotify-rm-watch"
19383 msgstr ""
19384
19385 # type: verbatim
19386 #: ../fish/guestfish-actions.pod:1637
19387 #, no-wrap
19388 msgid ""
19389 " inotify-rm-watch wd\n"
19390 "\n"
19391 msgstr ""
19392
19393 # type: textblock
19394 #: ../fish/guestfish-actions.pod:1639
19395 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19396 msgstr ""
19397
19398 # type: =head2
19399 #: ../fish/guestfish-actions.pod:1642
19400 msgid "inspect-get-arch"
19401 msgstr ""
19402
19403 # type: verbatim
19404 #: ../fish/guestfish-actions.pod:1644
19405 #, no-wrap
19406 msgid ""
19407 " inspect-get-arch root\n"
19408 "\n"
19409 msgstr ""
19410
19411 # type: textblock
19412 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662
19413 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1746
19414 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1782
19415 #: ../fish/guestfish-actions.pod:1805 ../fish/guestfish-actions.pod:1822
19416 #: ../fish/guestfish-actions.pod:1853
19417 msgid ""
19418 "This function should only be called with a root device string as returned by "
19419 "L</inspect-os>."
19420 msgstr ""
19421
19422 # type: textblock
19423 #: ../fish/guestfish-actions.pod:1649
19424 msgid ""
19425 "This returns the architecture of the inspected operating system.  The "
19426 "possible return values are listed under L</file-architecture>."
19427 msgstr ""
19428
19429 # type: =head2
19430 #: ../fish/guestfish-actions.pod:1658
19431 msgid "inspect-get-distro"
19432 msgstr ""
19433
19434 # type: verbatim
19435 #: ../fish/guestfish-actions.pod:1660
19436 #, no-wrap
19437 msgid ""
19438 " inspect-get-distro root\n"
19439 "\n"
19440 msgstr ""
19441
19442 # type: =head2
19443 #: ../fish/guestfish-actions.pod:1724
19444 msgid "inspect-get-filesystems"
19445 msgstr ""
19446
19447 # type: verbatim
19448 #: ../fish/guestfish-actions.pod:1726
19449 #, no-wrap
19450 msgid ""
19451 " inspect-get-filesystems root\n"
19452 "\n"
19453 msgstr ""
19454
19455 # type: textblock
19456 #: ../fish/guestfish-actions.pod:1739
19457 msgid ""
19458 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19459 "get-mountpoints>."
19460 msgstr ""
19461
19462 # type: =head2
19463 #: ../fish/guestfish-actions.pod:1742
19464 msgid "inspect-get-major-version"
19465 msgstr ""
19466
19467 # type: verbatim
19468 #: ../fish/guestfish-actions.pod:1744
19469 #, no-wrap
19470 msgid ""
19471 " inspect-get-major-version root\n"
19472 "\n"
19473 msgstr ""
19474
19475 # type: =head2
19476 #: ../fish/guestfish-actions.pod:1763
19477 msgid "inspect-get-minor-version"
19478 msgstr ""
19479
19480 # type: verbatim
19481 #: ../fish/guestfish-actions.pod:1765
19482 #, no-wrap
19483 msgid ""
19484 " inspect-get-minor-version root\n"
19485 "\n"
19486 msgstr ""
19487
19488 # type: textblock
19489 #: ../fish/guestfish-actions.pod:1775
19490 msgid ""
19491 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19492 "get-major-version>."
19493 msgstr ""
19494
19495 # type: =head2
19496 #: ../fish/guestfish-actions.pod:1778
19497 msgid "inspect-get-mountpoints"
19498 msgstr ""
19499
19500 # type: verbatim
19501 #: ../fish/guestfish-actions.pod:1780
19502 #, no-wrap
19503 msgid ""
19504 " inspect-get-mountpoints root\n"
19505 "\n"
19506 msgstr ""
19507
19508 # type: textblock
19509 #: ../fish/guestfish-actions.pod:1798
19510 msgid ""
19511 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19512 "get-filesystems>."
19513 msgstr ""
19514
19515 # type: =head2
19516 #: ../fish/guestfish-actions.pod:1801
19517 msgid "inspect-get-product-name"
19518 msgstr ""
19519
19520 # type: verbatim
19521 #: ../fish/guestfish-actions.pod:1803
19522 #, no-wrap
19523 msgid ""
19524 " inspect-get-product-name root\n"
19525 "\n"
19526 msgstr ""
19527
19528 # type: =head2
19529 #: ../fish/guestfish-actions.pod:1818
19530 msgid "inspect-get-type"
19531 msgstr ""
19532
19533 # type: verbatim
19534 #: ../fish/guestfish-actions.pod:1820
19535 #, no-wrap
19536 msgid ""
19537 " inspect-get-type root\n"
19538 "\n"
19539 msgstr ""
19540
19541 # type: =head2
19542 #: ../fish/guestfish-actions.pod:1849
19543 msgid "inspect-get-windows-systemroot"
19544 msgstr ""
19545
19546 # type: verbatim
19547 #: ../fish/guestfish-actions.pod:1851
19548 #, no-wrap
19549 msgid ""
19550 " inspect-get-windows-systemroot root\n"
19551 "\n"
19552 msgstr ""
19553
19554 # type: =head2
19555 #: ../fish/guestfish-actions.pod:1865
19556 msgid "inspect-os"
19557 msgstr ""
19558
19559 # type: verbatim
19560 #: ../fish/guestfish-actions.pod:1867
19561 #, no-wrap
19562 msgid ""
19563 " inspect-os\n"
19564 "\n"
19565 msgstr ""
19566
19567 # type: textblock
19568 #: ../fish/guestfish-actions.pod:1882
19569 msgid ""
19570 "You can pass the root string(s) returned to other L</inspect-get-*> "
19571 "functions in order to query further information about each operating system, "
19572 "such as the name and version."
19573 msgstr ""
19574
19575 # type: textblock
19576 #: ../fish/guestfish-actions.pod:1887
19577 msgid ""
19578 "This function uses other libguestfs features such as L</mount-ro> and L</"
19579 "umount-all> in order to mount and unmount filesystems and look at the "
19580 "contents.  This should be called with no disks currently mounted.  The "
19581 "function may also use Augeas, so any existing Augeas handle will be closed."
19582 msgstr ""
19583
19584 # type: textblock
19585 #: ../fish/guestfish-actions.pod:1899 ../fish/guestfish-actions.pod:2055
19586 #: ../fish/guestfish-actions.pod:2101
19587 msgid "See also L</list-filesystems>."
19588 msgstr ""
19589
19590 # type: =head2
19591 #: ../fish/guestfish-actions.pod:1901
19592 msgid "is-blockdev"
19593 msgstr ""
19594
19595 # type: verbatim
19596 #: ../fish/guestfish-actions.pod:1903
19597 #, no-wrap
19598 msgid ""
19599 " is-blockdev path\n"
19600 "\n"
19601 msgstr ""
19602
19603 # type: textblock
19604 #: ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1926
19605 #: ../fish/guestfish-actions.pod:1945 ../fish/guestfish-actions.pod:1954
19606 #: ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1998
19607 #: ../fish/guestfish-actions.pod:2007
19608 msgid "See also L</stat>."
19609 msgstr ""
19610
19611 # type: =head2
19612 #: ../fish/guestfish-actions.pod:1910
19613 msgid "is-busy"
19614 msgstr ""
19615
19616 # type: verbatim
19617 #: ../fish/guestfish-actions.pod:1912
19618 #, no-wrap
19619 msgid ""
19620 " is-busy\n"
19621 "\n"
19622 msgstr ""
19623
19624 # type: =head2
19625 #: ../fish/guestfish-actions.pod:1919
19626 msgid "is-chardev"
19627 msgstr ""
19628
19629 # type: verbatim
19630 #: ../fish/guestfish-actions.pod:1921
19631 #, no-wrap
19632 msgid ""
19633 " is-chardev path\n"
19634 "\n"
19635 msgstr ""
19636
19637 # type: =head2
19638 #: ../fish/guestfish-actions.pod:1928
19639 msgid "is-config"
19640 msgstr ""
19641
19642 # type: verbatim
19643 #: ../fish/guestfish-actions.pod:1930
19644 #, no-wrap
19645 msgid ""
19646 " is-config\n"
19647 "\n"
19648 msgstr ""
19649
19650 # type: =head2
19651 #: ../fish/guestfish-actions.pod:1937
19652 msgid "is-dir"
19653 msgstr ""
19654
19655 # type: verbatim
19656 #: ../fish/guestfish-actions.pod:1939
19657 #, no-wrap
19658 msgid ""
19659 " is-dir path\n"
19660 "\n"
19661 msgstr ""
19662
19663 # type: =head2
19664 #: ../fish/guestfish-actions.pod:1947
19665 msgid "is-fifo"
19666 msgstr ""
19667
19668 # type: verbatim
19669 #: ../fish/guestfish-actions.pod:1949
19670 #, no-wrap
19671 msgid ""
19672 " is-fifo path\n"
19673 "\n"
19674 msgstr ""
19675
19676 # type: =head2
19677 #: ../fish/guestfish-actions.pod:1956
19678 msgid "is-file"
19679 msgstr ""
19680
19681 # type: verbatim
19682 #: ../fish/guestfish-actions.pod:1958
19683 #, no-wrap
19684 msgid ""
19685 " is-file path\n"
19686 "\n"
19687 msgstr ""
19688
19689 # type: =head2
19690 #: ../fish/guestfish-actions.pod:1966
19691 msgid "is-launching"
19692 msgstr ""
19693
19694 # type: verbatim
19695 #: ../fish/guestfish-actions.pod:1968
19696 #, no-wrap
19697 msgid ""
19698 " is-launching\n"
19699 "\n"
19700 msgstr ""
19701
19702 # type: =head2
19703 #: ../fish/guestfish-actions.pod:1975
19704 msgid "is-lv"
19705 msgstr ""
19706
19707 # type: verbatim
19708 #: ../fish/guestfish-actions.pod:1977
19709 #, no-wrap
19710 msgid ""
19711 " is-lv device\n"
19712 "\n"
19713 msgstr ""
19714
19715 # type: =head2
19716 #: ../fish/guestfish-actions.pod:1982
19717 msgid "is-ready"
19718 msgstr ""
19719
19720 # type: verbatim
19721 #: ../fish/guestfish-actions.pod:1984
19722 #, no-wrap
19723 msgid ""
19724 " is-ready\n"
19725 "\n"
19726 msgstr ""
19727
19728 # type: =head2
19729 #: ../fish/guestfish-actions.pod:1991
19730 msgid "is-socket"
19731 msgstr ""
19732
19733 # type: verbatim
19734 #: ../fish/guestfish-actions.pod:1993
19735 #, no-wrap
19736 msgid ""
19737 " is-socket path\n"
19738 "\n"
19739 msgstr ""
19740
19741 # type: =head2
19742 #: ../fish/guestfish-actions.pod:2000
19743 msgid "is-symlink"
19744 msgstr ""
19745
19746 # type: verbatim
19747 #: ../fish/guestfish-actions.pod:2002
19748 #, no-wrap
19749 msgid ""
19750 " is-symlink path\n"
19751 "\n"
19752 msgstr ""
19753
19754 # type: =head2
19755 #: ../fish/guestfish-actions.pod:2009
19756 msgid "kill-subprocess"
19757 msgstr ""
19758
19759 # type: verbatim
19760 #: ../fish/guestfish-actions.pod:2011
19761 #, no-wrap
19762 msgid ""
19763 " kill-subprocess\n"
19764 "\n"
19765 msgstr ""
19766
19767 # type: =head2
19768 #: ../fish/guestfish-actions.pod:2015
19769 msgid "launch"
19770 msgstr ""
19771
19772 # type: =head2
19773 #: ../fish/guestfish-actions.pod:2017
19774 msgid "run"
19775 msgstr ""
19776
19777 # type: verbatim
19778 #: ../fish/guestfish-actions.pod:2019
19779 #, no-wrap
19780 msgid ""
19781 " launch\n"
19782 "\n"
19783 msgstr ""
19784
19785 # type: =head2
19786 #: ../fish/guestfish-actions.pod:2027
19787 msgid "lchown"
19788 msgstr ""
19789
19790 # type: verbatim
19791 #: ../fish/guestfish-actions.pod:2029
19792 #, no-wrap
19793 msgid ""
19794 " lchown owner group path\n"
19795 "\n"
19796 msgstr ""
19797
19798 # type: textblock
19799 #: ../fish/guestfish-actions.pod:2031
19800 msgid ""
19801 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
19802 "chown> but if C<path> is a symlink then the link itself is changed, not the "
19803 "target."
19804 msgstr ""
19805
19806 # type: =head2
19807 #: ../fish/guestfish-actions.pod:2039
19808 msgid "lgetxattrs"
19809 msgstr ""
19810
19811 # type: verbatim
19812 #: ../fish/guestfish-actions.pod:2041
19813 #, no-wrap
19814 msgid ""
19815 " lgetxattrs path\n"
19816 "\n"
19817 msgstr ""
19818
19819 # type: textblock
19820 #: ../fish/guestfish-actions.pod:2043
19821 msgid ""
19822 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19823 "it returns the extended attributes of the link itself."
19824 msgstr ""
19825
19826 # type: =head2
19827 #: ../fish/guestfish-actions.pod:2047
19828 msgid "list-devices"
19829 msgstr ""
19830
19831 # type: verbatim
19832 #: ../fish/guestfish-actions.pod:2049
19833 #, no-wrap
19834 msgid ""
19835 " list-devices\n"
19836 "\n"
19837 msgstr ""
19838
19839 # type: =head2
19840 #: ../fish/guestfish-actions.pod:2057
19841 msgid "list-filesystems"
19842 msgstr ""
19843
19844 # type: verbatim
19845 #: ../fish/guestfish-actions.pod:2059
19846 #, no-wrap
19847 msgid ""
19848 " list-filesystems\n"
19849 "\n"
19850 msgstr ""
19851
19852 # type: textblock
19853 #: ../fish/guestfish-actions.pod:2078
19854 msgid ""
19855 "This command runs other libguestfs commands, which might include L</mount> "
19856 "and L</umount>, and therefore you should use this soon after launch and only "
19857 "when nothing is mounted."
19858 msgstr ""
19859
19860 # type: textblock
19861 #: ../fish/guestfish-actions.pod:2082
19862 msgid ""
19863 "Not all of the filesystems returned will be mountable.  In particular, swap "
19864 "partitions are returned in the list.  Also this command does not check that "
19865 "each filesystem found is valid and mountable, and some filesystems might be "
19866 "mountable but require special options.  Filesystems may not all belong to a "
19867 "single logical operating system (use L</inspect-os> to look for OSes)."
19868 msgstr ""
19869
19870 # type: =head2
19871 #: ../fish/guestfish-actions.pod:2090
19872 msgid "list-partitions"
19873 msgstr ""
19874
19875 # type: verbatim
19876 #: ../fish/guestfish-actions.pod:2092
19877 #, no-wrap
19878 msgid ""
19879 " list-partitions\n"
19880 "\n"
19881 msgstr ""
19882
19883 # type: textblock
19884 #: ../fish/guestfish-actions.pod:2098
19885 msgid ""
19886 "This does not return logical volumes.  For that you will need to call L</"
19887 "lvs>."
19888 msgstr ""
19889
19890 # type: =head2
19891 #: ../fish/guestfish-actions.pod:2103
19892 msgid "ll"
19893 msgstr ""
19894
19895 # type: verbatim
19896 #: ../fish/guestfish-actions.pod:2105
19897 #, no-wrap
19898 msgid ""
19899 " ll directory\n"
19900 "\n"
19901 msgstr ""
19902
19903 # type: =head2
19904 #: ../fish/guestfish-actions.pod:2113
19905 msgid "ln"
19906 msgstr ""
19907
19908 # type: verbatim
19909 #: ../fish/guestfish-actions.pod:2115
19910 #, no-wrap
19911 msgid ""
19912 " ln target linkname\n"
19913 "\n"
19914 msgstr ""
19915
19916 # type: =head2
19917 #: ../fish/guestfish-actions.pod:2119
19918 msgid "ln-f"
19919 msgstr ""
19920
19921 # type: verbatim
19922 #: ../fish/guestfish-actions.pod:2121
19923 #, no-wrap
19924 msgid ""
19925 " ln-f target linkname\n"
19926 "\n"
19927 msgstr ""
19928
19929 # type: =head2
19930 #: ../fish/guestfish-actions.pod:2126
19931 msgid "ln-s"
19932 msgstr ""
19933
19934 # type: verbatim
19935 #: ../fish/guestfish-actions.pod:2128
19936 #, no-wrap
19937 msgid ""
19938 " ln-s target linkname\n"
19939 "\n"
19940 msgstr ""
19941
19942 # type: =head2
19943 #: ../fish/guestfish-actions.pod:2132
19944 msgid "ln-sf"
19945 msgstr ""
19946
19947 # type: verbatim
19948 #: ../fish/guestfish-actions.pod:2134
19949 #, no-wrap
19950 msgid ""
19951 " ln-sf target linkname\n"
19952 "\n"
19953 msgstr ""
19954
19955 # type: =head2
19956 #: ../fish/guestfish-actions.pod:2139
19957 msgid "lremovexattr"
19958 msgstr ""
19959
19960 # type: verbatim
19961 #: ../fish/guestfish-actions.pod:2141
19962 #, no-wrap
19963 msgid ""
19964 " lremovexattr xattr path\n"
19965 "\n"
19966 msgstr ""
19967
19968 # type: textblock
19969 #: ../fish/guestfish-actions.pod:2143
19970 msgid ""
19971 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19972 "it removes an extended attribute of the link itself."
19973 msgstr ""
19974
19975 # type: =head2
19976 #: ../fish/guestfish-actions.pod:2147
19977 msgid "ls"
19978 msgstr ""
19979
19980 # type: verbatim
19981 #: ../fish/guestfish-actions.pod:2149
19982 #, no-wrap
19983 msgid ""
19984 " ls directory\n"
19985 "\n"
19986 msgstr ""
19987
19988 # type: textblock
19989 #: ../fish/guestfish-actions.pod:2155
19990 msgid ""
19991 "This command is mostly useful for interactive sessions.  Programs should "
19992 "probably use L</readdir> instead."
19993 msgstr ""
19994
19995 # type: =head2
19996 #: ../fish/guestfish-actions.pod:2158
19997 msgid "lsetxattr"
19998 msgstr ""
19999
20000 # type: verbatim
20001 #: ../fish/guestfish-actions.pod:2160
20002 #, no-wrap
20003 msgid ""
20004 " lsetxattr xattr val vallen path\n"
20005 "\n"
20006 msgstr ""
20007
20008 # type: textblock
20009 #: ../fish/guestfish-actions.pod:2162
20010 msgid ""
20011 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20012 "sets an extended attribute of the link itself."
20013 msgstr ""
20014
20015 # type: =head2
20016 #: ../fish/guestfish-actions.pod:2166
20017 msgid "lstat"
20018 msgstr ""
20019
20020 # type: verbatim
20021 #: ../fish/guestfish-actions.pod:2168
20022 #, no-wrap
20023 msgid ""
20024 " lstat path\n"
20025 "\n"
20026 msgstr ""
20027
20028 # type: textblock
20029 #: ../fish/guestfish-actions.pod:2172
20030 msgid ""
20031 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20032 "the link is stat-ed, not the file it refers to."
20033 msgstr ""
20034
20035 # type: =head2
20036 #: ../fish/guestfish-actions.pod:2178
20037 msgid "lstatlist"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #: ../fish/guestfish-actions.pod:2180
20042 #, no-wrap
20043 msgid ""
20044 " lstatlist path 'names ...'\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: textblock
20049 #: ../fish/guestfish-actions.pod:2182
20050 msgid ""
20051 "This call allows you to perform the L</lstat> operation on multiple files, "
20052 "where all files are in the directory C<path>.  C<names> is the list of files "
20053 "from this directory."
20054 msgstr ""
20055
20056 # type: textblock
20057 #: ../fish/guestfish-actions.pod:2191
20058 msgid ""
20059 "This call is intended for programs that want to efficiently list a directory "
20060 "contents without making many round-trips.  See also L</lxattrlist> for a "
20061 "similarly efficient call for getting extended attributes.  Very long "
20062 "directory listings might cause the protocol message size to be exceeded, "
20063 "causing this call to fail.  The caller must split up such requests into "
20064 "smaller groups of names."
20065 msgstr ""
20066
20067 # type: =head2
20068 #: ../fish/guestfish-actions.pod:2199
20069 msgid "luks-add-key"
20070 msgstr ""
20071
20072 # type: verbatim
20073 #: ../fish/guestfish-actions.pod:2201
20074 #, no-wrap
20075 msgid ""
20076 " luks-add-key device keyslot\n"
20077 "\n"
20078 msgstr ""
20079
20080 # type: textblock
20081 #: ../fish/guestfish-actions.pod:2208
20082 msgid ""
20083 "Note that if C<keyslot> already contains a key, then this command will "
20084 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20085 msgstr ""
20086
20087 # type: textblock
20088 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2234
20089 #: ../fish/guestfish-actions.pod:2247 ../fish/guestfish-actions.pod:2261
20090 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2294
20091 msgid ""
20092 "This command has one or more key or passphrase parameters.  Guestfish will "
20093 "prompt for these separately."
20094 msgstr ""
20095
20096 # type: =head2
20097 #: ../fish/guestfish-actions.pod:2215
20098 msgid "luks-close"
20099 msgstr ""
20100
20101 # type: verbatim
20102 #: ../fish/guestfish-actions.pod:2217
20103 #, no-wrap
20104 msgid ""
20105 " luks-close device\n"
20106 "\n"
20107 msgstr ""
20108
20109 # type: textblock
20110 #: ../fish/guestfish-actions.pod:2219
20111 msgid ""
20112 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
20113 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
20114 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
20115 "block device."
20116 msgstr ""
20117
20118 # type: =head2
20119 #: ../fish/guestfish-actions.pod:2225
20120 msgid "luks-format"
20121 msgstr ""
20122
20123 # type: verbatim
20124 #: ../fish/guestfish-actions.pod:2227
20125 #, no-wrap
20126 msgid ""
20127 " luks-format device keyslot\n"
20128 "\n"
20129 msgstr ""
20130
20131 # type: =head2
20132 #: ../fish/guestfish-actions.pod:2240
20133 msgid "luks-format-cipher"
20134 msgstr ""
20135
20136 # type: verbatim
20137 #: ../fish/guestfish-actions.pod:2242
20138 #, no-wrap
20139 msgid ""
20140 " luks-format-cipher device keyslot cipher\n"
20141 "\n"
20142 msgstr ""
20143
20144 # type: textblock
20145 #: ../fish/guestfish-actions.pod:2244
20146 msgid ""
20147 "This command is the same as L</luks-format> but it also allows you to set "
20148 "the C<cipher> used."
20149 msgstr ""
20150
20151 # type: =head2
20152 #: ../fish/guestfish-actions.pod:2253
20153 msgid "luks-kill-slot"
20154 msgstr ""
20155
20156 # type: verbatim
20157 #: ../fish/guestfish-actions.pod:2255
20158 #, no-wrap
20159 msgid ""
20160 " luks-kill-slot device keyslot\n"
20161 "\n"
20162 msgstr ""
20163
20164 # type: =head2
20165 #: ../fish/guestfish-actions.pod:2264
20166 msgid "luks-open"
20167 msgstr ""
20168
20169 # type: verbatim
20170 #: ../fish/guestfish-actions.pod:2266
20171 #, no-wrap
20172 msgid ""
20173 " luks-open device mapname\n"
20174 "\n"
20175 msgstr ""
20176
20177 # type: textblock
20178 #: ../fish/guestfish-actions.pod:2280
20179 msgid ""
20180 "If this block device contains LVM volume groups, then calling L</vgscan> "
20181 "followed by L</vg-activate-all> will make them visible."
20182 msgstr ""
20183
20184 # type: =head2
20185 #: ../fish/guestfish-actions.pod:2287
20186 msgid "luks-open-ro"
20187 msgstr ""
20188
20189 # type: verbatim
20190 #: ../fish/guestfish-actions.pod:2289
20191 #, no-wrap
20192 msgid ""
20193 " luks-open-ro device mapname\n"
20194 "\n"
20195 msgstr ""
20196
20197 # type: textblock
20198 #: ../fish/guestfish-actions.pod:2291
20199 msgid ""
20200 "This is the same as L</luks-open> except that a read-only mapping is created."
20201 msgstr ""
20202
20203 # type: =head2
20204 #: ../fish/guestfish-actions.pod:2297
20205 msgid "lvcreate"
20206 msgstr ""
20207
20208 # type: verbatim
20209 #: ../fish/guestfish-actions.pod:2299
20210 #, no-wrap
20211 msgid ""
20212 " lvcreate logvol volgroup mbytes\n"
20213 "\n"
20214 msgstr ""
20215
20216 # type: =head2
20217 #: ../fish/guestfish-actions.pod:2304
20218 msgid "lvm-canonical-lv-name"
20219 msgstr ""
20220
20221 # type: verbatim
20222 #: ../fish/guestfish-actions.pod:2306
20223 #, no-wrap
20224 msgid ""
20225 " lvm-canonical-lv-name lvname\n"
20226 "\n"
20227 msgstr ""
20228
20229 # type: textblock
20230 #: ../fish/guestfish-actions.pod:2315
20231 msgid "See also L</is-lv>."
20232 msgstr ""
20233
20234 # type: =head2
20235 #: ../fish/guestfish-actions.pod:2317
20236 msgid "lvm-clear-filter"
20237 msgstr ""
20238
20239 # type: verbatim
20240 #: ../fish/guestfish-actions.pod:2319
20241 #, no-wrap
20242 msgid ""
20243 " lvm-clear-filter\n"
20244 "\n"
20245 msgstr ""
20246
20247 # type: textblock
20248 #: ../fish/guestfish-actions.pod:2321
20249 msgid ""
20250 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20251 "block device."
20252 msgstr ""
20253
20254 # type: =head2
20255 #: ../fish/guestfish-actions.pod:2327
20256 msgid "lvm-remove-all"
20257 msgstr ""
20258
20259 # type: verbatim
20260 #: ../fish/guestfish-actions.pod:2329
20261 #, no-wrap
20262 msgid ""
20263 " lvm-remove-all\n"
20264 "\n"
20265 msgstr ""
20266
20267 # type: =head2
20268 #: ../fish/guestfish-actions.pod:2337
20269 msgid "lvm-set-filter"
20270 msgstr ""
20271
20272 # type: verbatim
20273 #: ../fish/guestfish-actions.pod:2339
20274 #, no-wrap
20275 msgid ""
20276 " lvm-set-filter 'devices ...'\n"
20277 "\n"
20278 msgstr ""
20279
20280 # type: =head2
20281 #: ../fish/guestfish-actions.pod:2364
20282 msgid "lvremove"
20283 msgstr ""
20284
20285 # type: verbatim
20286 #: ../fish/guestfish-actions.pod:2366
20287 #, no-wrap
20288 msgid ""
20289 " lvremove device\n"
20290 "\n"
20291 msgstr ""
20292
20293 # type: =head2
20294 #: ../fish/guestfish-actions.pod:2374
20295 msgid "lvrename"
20296 msgstr ""
20297
20298 # type: verbatim
20299 #: ../fish/guestfish-actions.pod:2376
20300 #, no-wrap
20301 msgid ""
20302 " lvrename logvol newlogvol\n"
20303 "\n"
20304 msgstr ""
20305
20306 # type: =head2
20307 #: ../fish/guestfish-actions.pod:2380
20308 msgid "lvresize"
20309 msgstr ""
20310
20311 # type: verbatim
20312 #: ../fish/guestfish-actions.pod:2382
20313 #, no-wrap
20314 msgid ""
20315 " lvresize device mbytes\n"
20316 "\n"
20317 msgstr ""
20318
20319 # type: =head2
20320 #: ../fish/guestfish-actions.pod:2388
20321 msgid "lvresize-free"
20322 msgstr ""
20323
20324 # type: verbatim
20325 #: ../fish/guestfish-actions.pod:2390
20326 #, no-wrap
20327 msgid ""
20328 " lvresize-free lv percent\n"
20329 "\n"
20330 msgstr ""
20331
20332 # type: =head2
20333 #: ../fish/guestfish-actions.pod:2398
20334 msgid "lvs"
20335 msgstr ""
20336
20337 # type: verbatim
20338 #: ../fish/guestfish-actions.pod:2400
20339 #, no-wrap
20340 msgid ""
20341 " lvs\n"
20342 "\n"
20343 msgstr ""
20344
20345 # type: textblock
20346 #: ../fish/guestfish-actions.pod:2408
20347 msgid "See also L</lvs-full>, L</list-filesystems>."
20348 msgstr ""
20349
20350 # type: =head2
20351 #: ../fish/guestfish-actions.pod:2410
20352 msgid "lvs-full"
20353 msgstr ""
20354
20355 # type: verbatim
20356 #: ../fish/guestfish-actions.pod:2412
20357 #, no-wrap
20358 msgid ""
20359 " lvs-full\n"
20360 "\n"
20361 msgstr ""
20362
20363 # type: =head2
20364 #: ../fish/guestfish-actions.pod:2417
20365 msgid "lvuuid"
20366 msgstr ""
20367
20368 # type: verbatim
20369 #: ../fish/guestfish-actions.pod:2419
20370 #, no-wrap
20371 msgid ""
20372 " lvuuid device\n"
20373 "\n"
20374 msgstr ""
20375
20376 # type: =head2
20377 #: ../fish/guestfish-actions.pod:2423
20378 msgid "lxattrlist"
20379 msgstr ""
20380
20381 # type: verbatim
20382 #: ../fish/guestfish-actions.pod:2425
20383 #, no-wrap
20384 msgid ""
20385 " lxattrlist path 'names ...'\n"
20386 "\n"
20387 msgstr ""
20388
20389 # type: textblock
20390 #: ../fish/guestfish-actions.pod:2441
20391 msgid ""
20392 "This call is intended for programs that want to efficiently list a directory "
20393 "contents without making many round-trips.  See also L</lstatlist> for a "
20394 "similarly efficient call for getting standard stats.  Very long directory "
20395 "listings might cause the protocol message size to be exceeded, causing this "
20396 "call to fail.  The caller must split up such requests into smaller groups of "
20397 "names."
20398 msgstr ""
20399
20400 # type: =head2
20401 #: ../fish/guestfish-actions.pod:2449
20402 msgid "mkdir"
20403 msgstr ""
20404
20405 # type: verbatim
20406 #: ../fish/guestfish-actions.pod:2451
20407 #, no-wrap
20408 msgid ""
20409 " mkdir path\n"
20410 "\n"
20411 msgstr ""
20412
20413 # type: =head2
20414 #: ../fish/guestfish-actions.pod:2455
20415 msgid "mkdir-mode"
20416 msgstr ""
20417
20418 # type: verbatim
20419 #: ../fish/guestfish-actions.pod:2457
20420 #, no-wrap
20421 msgid ""
20422 " mkdir-mode path mode\n"
20423 "\n"
20424 msgstr ""
20425
20426 # type: textblock
20427 #: ../fish/guestfish-actions.pod:2466
20428 msgid "See also L</mkdir>, L</umask>"
20429 msgstr ""
20430
20431 # type: =head2
20432 #: ../fish/guestfish-actions.pod:2468
20433 msgid "mkdir-p"
20434 msgstr ""
20435
20436 # type: verbatim
20437 #: ../fish/guestfish-actions.pod:2470
20438 #, no-wrap
20439 msgid ""
20440 " mkdir-p path\n"
20441 "\n"
20442 msgstr ""
20443
20444 # type: =head2
20445 #: ../fish/guestfish-actions.pod:2475
20446 msgid "mkdtemp"
20447 msgstr ""
20448
20449 # type: verbatim
20450 #: ../fish/guestfish-actions.pod:2477
20451 #, no-wrap
20452 msgid ""
20453 " mkdtemp template\n"
20454 "\n"
20455 msgstr ""
20456
20457 # type: =head2
20458 #: ../fish/guestfish-actions.pod:2498
20459 msgid "mke2fs-J"
20460 msgstr ""
20461
20462 # type: verbatim
20463 #: ../fish/guestfish-actions.pod:2500
20464 #, no-wrap
20465 msgid ""
20466 " mke2fs-J fstype blocksize device journal\n"
20467 "\n"
20468 msgstr ""
20469
20470 # type: textblock
20471 #: ../fish/guestfish-actions.pod:2508
20472 msgid "See also L</mke2journal>."
20473 msgstr ""
20474
20475 # type: =head2
20476 #: ../fish/guestfish-actions.pod:2510
20477 msgid "mke2fs-JL"
20478 msgstr ""
20479
20480 # type: verbatim
20481 #: ../fish/guestfish-actions.pod:2512
20482 #, no-wrap
20483 msgid ""
20484 " mke2fs-JL fstype blocksize device label\n"
20485 "\n"
20486 msgstr ""
20487
20488 # type: textblock
20489 #: ../fish/guestfish-actions.pod:2517
20490 msgid "See also L</mke2journal-L>."
20491 msgstr ""
20492
20493 # type: =head2
20494 #: ../fish/guestfish-actions.pod:2519
20495 msgid "mke2fs-JU"
20496 msgstr ""
20497
20498 # type: verbatim
20499 #: ../fish/guestfish-actions.pod:2521
20500 #, no-wrap
20501 msgid ""
20502 " mke2fs-JU fstype blocksize device uuid\n"
20503 "\n"
20504 msgstr ""
20505
20506 # type: textblock
20507 #: ../fish/guestfish-actions.pod:2526
20508 msgid "See also L</mke2journal-U>."
20509 msgstr ""
20510
20511 # type: =head2
20512 #: ../fish/guestfish-actions.pod:2528
20513 msgid "mke2journal"
20514 msgstr ""
20515
20516 # type: verbatim
20517 #: ../fish/guestfish-actions.pod:2530
20518 #, no-wrap
20519 msgid ""
20520 " mke2journal blocksize device\n"
20521 "\n"
20522 msgstr ""
20523
20524 # type: =head2
20525 #: ../fish/guestfish-actions.pod:2537
20526 msgid "mke2journal-L"
20527 msgstr ""
20528
20529 # type: verbatim
20530 #: ../fish/guestfish-actions.pod:2539
20531 #, no-wrap
20532 msgid ""
20533 " mke2journal-L blocksize label device\n"
20534 "\n"
20535 msgstr ""
20536
20537 # type: =head2
20538 #: ../fish/guestfish-actions.pod:2543
20539 msgid "mke2journal-U"
20540 msgstr ""
20541
20542 # type: verbatim
20543 #: ../fish/guestfish-actions.pod:2545
20544 #, no-wrap
20545 msgid ""
20546 " mke2journal-U blocksize uuid device\n"
20547 "\n"
20548 msgstr ""
20549
20550 # type: =head2
20551 #: ../fish/guestfish-actions.pod:2549
20552 msgid "mkfifo"
20553 msgstr ""
20554
20555 # type: verbatim
20556 #: ../fish/guestfish-actions.pod:2551
20557 #, no-wrap
20558 msgid ""
20559 " mkfifo mode path\n"
20560 "\n"
20561 msgstr ""
20562
20563 # type: textblock
20564 #: ../fish/guestfish-actions.pod:2553
20565 msgid ""
20566 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20567 "is just a convenient wrapper around L</mknod>."
20568 msgstr ""
20569
20570 # type: =head2
20571 #: ../fish/guestfish-actions.pod:2559
20572 msgid "mkfs"
20573 msgstr ""
20574
20575 # type: verbatim
20576 #: ../fish/guestfish-actions.pod:2561
20577 #, no-wrap
20578 msgid ""
20579 " mkfs fstype device\n"
20580 "\n"
20581 msgstr ""
20582
20583 # type: =head2
20584 #: ../fish/guestfish-actions.pod:2567
20585 msgid "mkfs-b"
20586 msgstr ""
20587
20588 # type: verbatim
20589 #: ../fish/guestfish-actions.pod:2569
20590 #, no-wrap
20591 msgid ""
20592 " mkfs-b fstype blocksize device\n"
20593 "\n"
20594 msgstr ""
20595
20596 # type: textblock
20597 #: ../fish/guestfish-actions.pod:2571
20598 msgid ""
20599 "This call is similar to L</mkfs>, but it allows you to control the block "
20600 "size of the resulting filesystem.  Supported block sizes depend on the "
20601 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20602 msgstr ""
20603
20604 # type: =head2
20605 #: ../fish/guestfish-actions.pod:2579
20606 msgid "mkmountpoint"
20607 msgstr ""
20608
20609 # type: verbatim
20610 #: ../fish/guestfish-actions.pod:2581
20611 #, no-wrap
20612 msgid ""
20613 " mkmountpoint exemptpath\n"
20614 "\n"
20615 msgstr ""
20616
20617 # type: textblock
20618 #: ../fish/guestfish-actions.pod:2583
20619 msgid ""
20620 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20621 "to create extra mountpoints before mounting the first filesystem."
20622 msgstr ""
20623
20624 # type: textblock
20625 #: ../fish/guestfish-actions.pod:2607
20626 msgid ""
20627 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
20628 "unexpected errors if you try to mix these calls.  It is safest to manually "
20629 "unmount filesystems and remove mountpoints after use."
20630 msgstr ""
20631
20632 # type: textblock
20633 #: ../fish/guestfish-actions.pod:2611
20634 msgid ""
20635 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
20636 "for this to work for manual mountpoints, you must ensure that the innermost "
20637 "mountpoints have the longest pathnames, as in the example code above."
20638 msgstr ""
20639
20640 # type: textblock
20641 #: ../fish/guestfish-actions.pod:2618
20642 msgid ""
20643 "Autosync [see L</set-autosync>, this is set by default on handles] means "
20644 "that L</umount-all> is called when the handle is closed which can also "
20645 "trigger these issues."
20646 msgstr ""
20647
20648 # type: =head2
20649 #: ../fish/guestfish-actions.pod:2622
20650 msgid "mknod"
20651 msgstr ""
20652
20653 # type: verbatim
20654 #: ../fish/guestfish-actions.pod:2624
20655 #, no-wrap
20656 msgid ""
20657 " mknod mode devmajor devminor path\n"
20658 "\n"
20659 msgstr ""
20660
20661 # type: textblock
20662 #: ../fish/guestfish-actions.pod:2634
20663 msgid ""
20664 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20665 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20666 "regular file).  These constants are available in the standard Linux header "
20667 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20668 "wrappers around this command which bitwise OR in the appropriate constant "
20669 "for you."
20670 msgstr ""
20671
20672 # type: =head2
20673 #: ../fish/guestfish-actions.pod:2644
20674 msgid "mknod-b"
20675 msgstr ""
20676
20677 # type: verbatim
20678 #: ../fish/guestfish-actions.pod:2646
20679 #, no-wrap
20680 msgid ""
20681 " mknod-b mode devmajor devminor path\n"
20682 "\n"
20683 msgstr ""
20684
20685 # type: textblock
20686 #: ../fish/guestfish-actions.pod:2648
20687 msgid ""
20688 "This call creates a block device node called C<path> with mode C<mode> and "
20689 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20690 "wrapper around L</mknod>."
20691 msgstr ""
20692
20693 # type: =head2
20694 #: ../fish/guestfish-actions.pod:2654
20695 msgid "mknod-c"
20696 msgstr ""
20697
20698 # type: verbatim
20699 #: ../fish/guestfish-actions.pod:2656
20700 #, no-wrap
20701 msgid ""
20702 " mknod-c mode devmajor devminor path\n"
20703 "\n"
20704 msgstr ""
20705
20706 # type: textblock
20707 #: ../fish/guestfish-actions.pod:2658
20708 msgid ""
20709 "This call creates a char device node called C<path> with mode C<mode> and "
20710 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20711 "wrapper around L</mknod>."
20712 msgstr ""
20713
20714 # type: =head2
20715 #: ../fish/guestfish-actions.pod:2664
20716 msgid "mkswap"
20717 msgstr ""
20718
20719 # type: verbatim
20720 #: ../fish/guestfish-actions.pod:2666
20721 #, no-wrap
20722 msgid ""
20723 " mkswap device\n"
20724 "\n"
20725 msgstr ""
20726
20727 # type: =head2
20728 #: ../fish/guestfish-actions.pod:2670
20729 msgid "mkswap-L"
20730 msgstr ""
20731
20732 # type: verbatim
20733 #: ../fish/guestfish-actions.pod:2672
20734 #, no-wrap
20735 msgid ""
20736 " mkswap-L label device\n"
20737 "\n"
20738 msgstr ""
20739
20740 # type: =head2
20741 #: ../fish/guestfish-actions.pod:2680
20742 msgid "mkswap-U"
20743 msgstr ""
20744
20745 # type: verbatim
20746 #: ../fish/guestfish-actions.pod:2682
20747 #, no-wrap
20748 msgid ""
20749 " mkswap-U uuid device\n"
20750 "\n"
20751 msgstr ""
20752
20753 # type: =head2
20754 #: ../fish/guestfish-actions.pod:2686
20755 msgid "mkswap-file"
20756 msgstr ""
20757
20758 # type: verbatim
20759 #: ../fish/guestfish-actions.pod:2688
20760 #, no-wrap
20761 msgid ""
20762 " mkswap-file path\n"
20763 "\n"
20764 msgstr ""
20765
20766 # type: textblock
20767 #: ../fish/guestfish-actions.pod:2692
20768 msgid ""
20769 "This command just writes a swap file signature to an existing file.  To "
20770 "create the file itself, use something like L</fallocate>."
20771 msgstr ""
20772
20773 # type: =head2
20774 #: ../fish/guestfish-actions.pod:2695
20775 msgid "modprobe"
20776 msgstr ""
20777
20778 # type: verbatim
20779 #: ../fish/guestfish-actions.pod:2697
20780 #, no-wrap
20781 msgid ""
20782 " modprobe modulename\n"
20783 "\n"
20784 msgstr ""
20785
20786 # type: =head2
20787 #: ../fish/guestfish-actions.pod:2704
20788 msgid "mount"
20789 msgstr ""
20790
20791 # type: verbatim
20792 #: ../fish/guestfish-actions.pod:2706
20793 #, no-wrap
20794 msgid ""
20795 " mount device mountpoint\n"
20796 "\n"
20797 msgstr ""
20798
20799 # type: textblock
20800 #: ../fish/guestfish-actions.pod:2722
20801 msgid ""
20802 "B<Important note:> When you use this call, the filesystem options C<sync> "
20803 "and C<noatime> are set implicitly.  This was originally done because we "
20804 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20805 "very large negative performance impact and negligible effect on "
20806 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20807 "code that needs performance, and instead use L</mount-options> (use an empty "
20808 "string for the first parameter if you don't want any options)."
20809 msgstr ""
20810
20811 # type: =head2
20812 #: ../fish/guestfish-actions.pod:2732
20813 msgid "mount-loop"
20814 msgstr ""
20815
20816 # type: verbatim
20817 #: ../fish/guestfish-actions.pod:2734
20818 #, no-wrap
20819 msgid ""
20820 " mount-loop file mountpoint\n"
20821 "\n"
20822 msgstr ""
20823
20824 # type: =head2
20825 #: ../fish/guestfish-actions.pod:2740
20826 msgid "mount-options"
20827 msgstr ""
20828
20829 # type: verbatim
20830 #: ../fish/guestfish-actions.pod:2742
20831 #, no-wrap
20832 msgid ""
20833 " mount-options options device mountpoint\n"
20834 "\n"
20835 msgstr ""
20836
20837 # type: textblock
20838 #: ../fish/guestfish-actions.pod:2744
20839 msgid ""
20840 "This is the same as the L</mount> command, but it allows you to set the "
20841 "mount options as for the L<mount(8)> I<-o> flag."
20842 msgstr ""
20843
20844 # type: =head2
20845 #: ../fish/guestfish-actions.pod:2752
20846 msgid "mount-ro"
20847 msgstr ""
20848
20849 # type: verbatim
20850 #: ../fish/guestfish-actions.pod:2754
20851 #, no-wrap
20852 msgid ""
20853 " mount-ro device mountpoint\n"
20854 "\n"
20855 msgstr ""
20856
20857 # type: textblock
20858 #: ../fish/guestfish-actions.pod:2756
20859 msgid ""
20860 "This is the same as the L</mount> command, but it mounts the filesystem with "
20861 "the read-only (I<-o ro>) flag."
20862 msgstr ""
20863
20864 # type: =head2
20865 #: ../fish/guestfish-actions.pod:2759
20866 msgid "mount-vfs"
20867 msgstr ""
20868
20869 # type: verbatim
20870 #: ../fish/guestfish-actions.pod:2761
20871 #, no-wrap
20872 msgid ""
20873 " mount-vfs options vfstype device mountpoint\n"
20874 "\n"
20875 msgstr ""
20876
20877 # type: textblock
20878 #: ../fish/guestfish-actions.pod:2763
20879 msgid ""
20880 "This is the same as the L</mount> command, but it allows you to set both the "
20881 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20882 msgstr ""
20883
20884 # type: =head2
20885 #: ../fish/guestfish-actions.pod:2767
20886 msgid "mountpoints"
20887 msgstr ""
20888
20889 # type: verbatim
20890 #: ../fish/guestfish-actions.pod:2769
20891 #, no-wrap
20892 msgid ""
20893 " mountpoints\n"
20894 "\n"
20895 msgstr ""
20896
20897 # type: textblock
20898 #: ../fish/guestfish-actions.pod:2771
20899 msgid ""
20900 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20901 "This one returns a hash table (map) of device name to directory where the "
20902 "device is mounted."
20903 msgstr ""
20904
20905 # type: =head2
20906 #: ../fish/guestfish-actions.pod:2775
20907 msgid "mounts"
20908 msgstr ""
20909
20910 # type: verbatim
20911 #: ../fish/guestfish-actions.pod:2777
20912 #, no-wrap
20913 msgid ""
20914 " mounts\n"
20915 "\n"
20916 msgstr ""
20917
20918 # type: textblock
20919 #: ../fish/guestfish-actions.pod:2784
20920 msgid "See also: L</mountpoints>"
20921 msgstr ""
20922
20923 # type: =head2
20924 #: ../fish/guestfish-actions.pod:2786
20925 msgid "mv"
20926 msgstr ""
20927
20928 # type: verbatim
20929 #: ../fish/guestfish-actions.pod:2788
20930 #, no-wrap
20931 msgid ""
20932 " mv src dest\n"
20933 "\n"
20934 msgstr ""
20935
20936 # type: =head2
20937 #: ../fish/guestfish-actions.pod:2793
20938 msgid "ntfs-3g-probe"
20939 msgstr ""
20940
20941 # type: verbatim
20942 #: ../fish/guestfish-actions.pod:2795
20943 #, no-wrap
20944 msgid ""
20945 " ntfs-3g-probe true|false device\n"
20946 "\n"
20947 msgstr ""
20948
20949 # type: =head2
20950 #: ../fish/guestfish-actions.pod:2809
20951 msgid "ntfsresize"
20952 msgstr ""
20953
20954 # type: verbatim
20955 #: ../fish/guestfish-actions.pod:2811
20956 #, no-wrap
20957 msgid ""
20958 " ntfsresize device\n"
20959 "\n"
20960 msgstr ""
20961
20962 # type: =head2
20963 #: ../fish/guestfish-actions.pod:2817
20964 msgid "ntfsresize-size"
20965 msgstr ""
20966
20967 # type: verbatim
20968 #: ../fish/guestfish-actions.pod:2819
20969 #, no-wrap
20970 msgid ""
20971 " ntfsresize-size device size\n"
20972 "\n"
20973 msgstr ""
20974
20975 # type: textblock
20976 #: ../fish/guestfish-actions.pod:2821
20977 msgid ""
20978 "This command is the same as L</ntfsresize> except that it allows you to "
20979 "specify the new size (in bytes) explicitly."
20980 msgstr ""
20981
20982 # type: =head2
20983 #: ../fish/guestfish-actions.pod:2824
20984 msgid "part-add"
20985 msgstr ""
20986
20987 # type: verbatim
20988 #: ../fish/guestfish-actions.pod:2826
20989 #, no-wrap
20990 msgid ""
20991 " part-add device prlogex startsect endsect\n"
20992 "\n"
20993 msgstr ""
20994
20995 # type: textblock
20996 #: ../fish/guestfish-actions.pod:2828
20997 msgid ""
20998 "This command adds a partition to C<device>.  If there is no partition table "
20999 "on the device, call L</part-init> first."
21000 msgstr ""
21001
21002 # type: textblock
21003 #: ../fish/guestfish-actions.pod:2840
21004 msgid ""
21005 "Creating a partition which covers the whole disk is not so easy.  Use L</"
21006 "part-disk> to do that."
21007 msgstr ""
21008
21009 # type: =head2
21010 #: ../fish/guestfish-actions.pod:2843
21011 msgid "part-del"
21012 msgstr ""
21013
21014 # type: verbatim
21015 #: ../fish/guestfish-actions.pod:2845
21016 #, no-wrap
21017 msgid ""
21018 " part-del device partnum\n"
21019 "\n"
21020 msgstr ""
21021
21022 # type: =head2
21023 #: ../fish/guestfish-actions.pod:2853
21024 msgid "part-disk"
21025 msgstr ""
21026
21027 # type: verbatim
21028 #: ../fish/guestfish-actions.pod:2855
21029 #, no-wrap
21030 msgid ""
21031 " part-disk device parttype\n"
21032 "\n"
21033 msgstr ""
21034
21035 # type: textblock
21036 #: ../fish/guestfish-actions.pod:2857
21037 msgid ""
21038 "This command is simply a combination of L</part-init> followed by L</part-"
21039 "add> to create a single primary partition covering the whole disk."
21040 msgstr ""
21041
21042 # type: textblock
21043 #: ../fish/guestfish-actions.pod:2861
21044 msgid ""
21045 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21046 "possible values are described in L</part-init>."
21047 msgstr ""
21048
21049 # type: =head2
21050 #: ../fish/guestfish-actions.pod:2867
21051 msgid "part-get-bootable"
21052 msgstr ""
21053
21054 # type: verbatim
21055 #: ../fish/guestfish-actions.pod:2869
21056 #, no-wrap
21057 msgid ""
21058 " part-get-bootable device partnum\n"
21059 "\n"
21060 msgstr ""
21061
21062 # type: textblock
21063 #: ../fish/guestfish-actions.pod:2874
21064 msgid "See also L</part-set-bootable>."
21065 msgstr ""
21066
21067 # type: =head2
21068 #: ../fish/guestfish-actions.pod:2876
21069 msgid "part-get-mbr-id"
21070 msgstr ""
21071
21072 # type: verbatim
21073 #: ../fish/guestfish-actions.pod:2878
21074 #, no-wrap
21075 msgid ""
21076 " part-get-mbr-id device partnum\n"
21077 "\n"
21078 msgstr ""
21079
21080 # type: textblock
21081 #: ../fish/guestfish-actions.pod:2883 ../fish/guestfish-actions.pod:3021
21082 msgid ""
21083 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21084 "undefined results for other partition table types (see L</part-get-"
21085 "parttype>)."
21086 msgstr ""
21087
21088 # type: =head2
21089 #: ../fish/guestfish-actions.pod:2887
21090 msgid "part-get-parttype"
21091 msgstr ""
21092
21093 # type: verbatim
21094 #: ../fish/guestfish-actions.pod:2889
21095 #, no-wrap
21096 msgid ""
21097 " part-get-parttype device\n"
21098 "\n"
21099 msgstr ""
21100
21101 # type: textblock
21102 #: ../fish/guestfish-actions.pod:2894
21103 msgid ""
21104 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21105 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21106 "possible, although unusual.  See L</part-init> for a full list."
21107 msgstr ""
21108
21109 # type: =head2
21110 #: ../fish/guestfish-actions.pod:2899
21111 msgid "part-init"
21112 msgstr ""
21113
21114 # type: verbatim
21115 #: ../fish/guestfish-actions.pod:2901
21116 #, no-wrap
21117 msgid ""
21118 " part-init device parttype\n"
21119 "\n"
21120 msgstr ""
21121
21122 # type: textblock
21123 #: ../fish/guestfish-actions.pod:2907
21124 msgid ""
21125 "Initially there are no partitions.  Following this, you should call L</part-"
21126 "add> for each partition required."
21127 msgstr ""
21128
21129 # type: =head2
21130 #: ../fish/guestfish-actions.pod:2970
21131 msgid "part-list"
21132 msgstr ""
21133
21134 # type: verbatim
21135 #: ../fish/guestfish-actions.pod:2972
21136 #, no-wrap
21137 msgid ""
21138 " part-list device\n"
21139 "\n"
21140 msgstr ""
21141
21142 # type: textblock
21143 #: ../fish/guestfish-actions.pod:2987
21144 msgid ""
21145 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21146 "the device's sector size, see L</blockdev-getss>."
21147 msgstr ""
21148
21149 # type: =head2
21150 #: ../fish/guestfish-actions.pod:3000
21151 msgid "part-set-bootable"
21152 msgstr ""
21153
21154 # type: verbatim
21155 #: ../fish/guestfish-actions.pod:3002
21156 #, no-wrap
21157 msgid ""
21158 " part-set-bootable device partnum true|false\n"
21159 "\n"
21160 msgstr ""
21161
21162 # type: =head2
21163 #: ../fish/guestfish-actions.pod:3011
21164 msgid "part-set-mbr-id"
21165 msgstr ""
21166
21167 # type: verbatim
21168 #: ../fish/guestfish-actions.pod:3013
21169 #, no-wrap
21170 msgid ""
21171 " part-set-mbr-id device partnum idbyte\n"
21172 "\n"
21173 msgstr ""
21174
21175 # type: =head2
21176 #: ../fish/guestfish-actions.pod:3025
21177 msgid "part-set-name"
21178 msgstr ""
21179
21180 # type: verbatim
21181 #: ../fish/guestfish-actions.pod:3027
21182 #, no-wrap
21183 msgid ""
21184 " part-set-name device partnum name\n"
21185 "\n"
21186 msgstr ""
21187
21188 # type: =head2
21189 #: ../fish/guestfish-actions.pod:3035
21190 msgid "part-to-dev"
21191 msgstr ""
21192
21193 # type: verbatim
21194 #: ../fish/guestfish-actions.pod:3037
21195 #, no-wrap
21196 msgid ""
21197 " part-to-dev partition\n"
21198 "\n"
21199 msgstr ""
21200
21201 # type: textblock
21202 #: ../fish/guestfish-actions.pod:3043
21203 msgid ""
21204 "The named partition must exist, for example as a string returned from L</"
21205 "list-partitions>."
21206 msgstr ""
21207
21208 # type: =head2
21209 #: ../fish/guestfish-actions.pod:3046
21210 msgid "ping-daemon"
21211 msgstr ""
21212
21213 # type: verbatim
21214 #: ../fish/guestfish-actions.pod:3048
21215 #, no-wrap
21216 msgid ""
21217 " ping-daemon\n"
21218 "\n"
21219 msgstr ""
21220
21221 # type: =head2
21222 #: ../fish/guestfish-actions.pod:3055
21223 msgid "pread"
21224 msgstr ""
21225
21226 # type: verbatim
21227 #: ../fish/guestfish-actions.pod:3057
21228 #, no-wrap
21229 msgid ""
21230 " pread path count offset\n"
21231 "\n"
21232 msgstr ""
21233
21234 # type: textblock
21235 #: ../fish/guestfish-actions.pod:3065
21236 msgid "See also L</pwrite>, L</pread-device>."
21237 msgstr ""
21238
21239 # type: =head2
21240 #: ../fish/guestfish-actions.pod:3070
21241 msgid "pread-device"
21242 msgstr ""
21243
21244 # type: verbatim
21245 #: ../fish/guestfish-actions.pod:3072
21246 #, no-wrap
21247 msgid ""
21248 " pread-device device count offset\n"
21249 "\n"
21250 msgstr ""
21251
21252 # type: textblock
21253 #: ../fish/guestfish-actions.pod:3080
21254 msgid "See also L</pread>."
21255 msgstr ""
21256
21257 # type: =head2
21258 #: ../fish/guestfish-actions.pod:3085
21259 msgid "pvcreate"
21260 msgstr ""
21261
21262 # type: verbatim
21263 #: ../fish/guestfish-actions.pod:3087
21264 #, no-wrap
21265 msgid ""
21266 " pvcreate device\n"
21267 "\n"
21268 msgstr ""
21269
21270 # type: =head2
21271 #: ../fish/guestfish-actions.pod:3093
21272 msgid "pvremove"
21273 msgstr ""
21274
21275 # type: verbatim
21276 #: ../fish/guestfish-actions.pod:3095
21277 #, no-wrap
21278 msgid ""
21279 " pvremove device\n"
21280 "\n"
21281 msgstr ""
21282
21283 # type: =head2
21284 #: ../fish/guestfish-actions.pod:3104
21285 msgid "pvresize"
21286 msgstr ""
21287
21288 # type: verbatim
21289 #: ../fish/guestfish-actions.pod:3106
21290 #, no-wrap
21291 msgid ""
21292 " pvresize device\n"
21293 "\n"
21294 msgstr ""
21295
21296 # type: =head2
21297 #: ../fish/guestfish-actions.pod:3111
21298 msgid "pvresize-size"
21299 msgstr ""
21300
21301 # type: verbatim
21302 #: ../fish/guestfish-actions.pod:3113
21303 #, no-wrap
21304 msgid ""
21305 " pvresize-size device size\n"
21306 "\n"
21307 msgstr ""
21308
21309 # type: textblock
21310 #: ../fish/guestfish-actions.pod:3115
21311 msgid ""
21312 "This command is the same as L</pvresize> except that it allows you to "
21313 "specify the new size (in bytes) explicitly."
21314 msgstr ""
21315
21316 # type: =head2
21317 #: ../fish/guestfish-actions.pod:3118
21318 msgid "pvs"
21319 msgstr ""
21320
21321 # type: verbatim
21322 #: ../fish/guestfish-actions.pod:3120
21323 #, no-wrap
21324 msgid ""
21325 " pvs\n"
21326 "\n"
21327 msgstr ""
21328
21329 # type: textblock
21330 #: ../fish/guestfish-actions.pod:3128
21331 msgid "See also L</pvs-full>."
21332 msgstr ""
21333
21334 # type: =head2
21335 #: ../fish/guestfish-actions.pod:3130
21336 msgid "pvs-full"
21337 msgstr ""
21338
21339 # type: verbatim
21340 #: ../fish/guestfish-actions.pod:3132
21341 #, no-wrap
21342 msgid ""
21343 " pvs-full\n"
21344 "\n"
21345 msgstr ""
21346
21347 # type: =head2
21348 #: ../fish/guestfish-actions.pod:3137
21349 msgid "pvuuid"
21350 msgstr ""
21351
21352 # type: verbatim
21353 #: ../fish/guestfish-actions.pod:3139
21354 #, no-wrap
21355 msgid ""
21356 " pvuuid device\n"
21357 "\n"
21358 msgstr ""
21359
21360 # type: =head2
21361 #: ../fish/guestfish-actions.pod:3143
21362 msgid "pwrite"
21363 msgstr ""
21364
21365 # type: verbatim
21366 #: ../fish/guestfish-actions.pod:3145
21367 #, no-wrap
21368 msgid ""
21369 " pwrite path content offset\n"
21370 "\n"
21371 msgstr ""
21372
21373 # type: textblock
21374 #: ../fish/guestfish-actions.pod:3156
21375 msgid "See also L</pread>, L</pwrite-device>."
21376 msgstr ""
21377
21378 # type: =head2
21379 #: ../fish/guestfish-actions.pod:3161
21380 msgid "pwrite-device"
21381 msgstr ""
21382
21383 # type: verbatim
21384 #: ../fish/guestfish-actions.pod:3163
21385 #, no-wrap
21386 msgid ""
21387 " pwrite-device device content offset\n"
21388 "\n"
21389 msgstr ""
21390
21391 # type: textblock
21392 #: ../fish/guestfish-actions.pod:3173
21393 msgid "See also L</pwrite>."
21394 msgstr ""
21395
21396 # type: =head2
21397 #: ../fish/guestfish-actions.pod:3178
21398 msgid "read-file"
21399 msgstr ""
21400
21401 # type: verbatim
21402 #: ../fish/guestfish-actions.pod:3180
21403 #, no-wrap
21404 msgid ""
21405 " read-file path\n"
21406 "\n"
21407 msgstr ""
21408
21409 # type: textblock
21410 #: ../fish/guestfish-actions.pod:3185
21411 msgid ""
21412 "Unlike L</cat>, this function can correctly handle files that contain "
21413 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21414 "is limited in the total size of file that can be handled."
21415 msgstr ""
21416
21417 # type: =head2
21418 #: ../fish/guestfish-actions.pod:3193
21419 msgid "read-lines"
21420 msgstr ""
21421
21422 # type: verbatim
21423 #: ../fish/guestfish-actions.pod:3195
21424 #, no-wrap
21425 msgid ""
21426 " read-lines path\n"
21427 "\n"
21428 msgstr ""
21429
21430 # type: textblock
21431 #: ../fish/guestfish-actions.pod:3202
21432 msgid ""
21433 "Note that this function cannot correctly handle binary files (specifically, "
21434 "files containing C<\\0> character which is treated as end of line).  For "
21435 "those you need to use the L</read-file> function which has a more complex "
21436 "interface."
21437 msgstr ""
21438
21439 # type: =head2
21440 #: ../fish/guestfish-actions.pod:3207
21441 msgid "readdir"
21442 msgstr ""
21443
21444 # type: verbatim
21445 #: ../fish/guestfish-actions.pod:3209
21446 #, no-wrap
21447 msgid ""
21448 " readdir dir\n"
21449 "\n"
21450 msgstr ""
21451
21452 # type: textblock
21453 #: ../fish/guestfish-actions.pod:3261
21454 msgid ""
21455 "This function is primarily intended for use by programs.  To get a simple "
21456 "list of names, use L</ls>.  To get a printable directory for human "
21457 "consumption, use L</ll>."
21458 msgstr ""
21459
21460 # type: =head2
21461 #: ../fish/guestfish-actions.pod:3265
21462 msgid "readlink"
21463 msgstr ""
21464
21465 # type: verbatim
21466 #: ../fish/guestfish-actions.pod:3267
21467 #, no-wrap
21468 msgid ""
21469 " readlink path\n"
21470 "\n"
21471 msgstr ""
21472
21473 # type: =head2
21474 #: ../fish/guestfish-actions.pod:3271
21475 msgid "readlinklist"
21476 msgstr ""
21477
21478 # type: verbatim
21479 #: ../fish/guestfish-actions.pod:3273
21480 #, no-wrap
21481 msgid ""
21482 " readlinklist path 'names ...'\n"
21483 "\n"
21484 msgstr ""
21485
21486 # type: =head2
21487 #: ../fish/guestfish-actions.pod:3297
21488 msgid "realpath"
21489 msgstr ""
21490
21491 # type: verbatim
21492 #: ../fish/guestfish-actions.pod:3299
21493 #, no-wrap
21494 msgid ""
21495 " realpath path\n"
21496 "\n"
21497 msgstr ""
21498
21499 # type: =head2
21500 #: ../fish/guestfish-actions.pod:3304
21501 msgid "removexattr"
21502 msgstr ""
21503
21504 # type: verbatim
21505 #: ../fish/guestfish-actions.pod:3306
21506 #, no-wrap
21507 msgid ""
21508 " removexattr xattr path\n"
21509 "\n"
21510 msgstr ""
21511
21512 # type: textblock
21513 #: ../fish/guestfish-actions.pod:3311
21514 msgid "See also: L</lremovexattr>, L<attr(5)>."
21515 msgstr ""
21516
21517 # type: =head2
21518 #: ../fish/guestfish-actions.pod:3313
21519 msgid "resize2fs"
21520 msgstr ""
21521
21522 # type: verbatim
21523 #: ../fish/guestfish-actions.pod:3315
21524 #, no-wrap
21525 msgid ""
21526 " resize2fs device\n"
21527 "\n"
21528 msgstr ""
21529
21530 # type: textblock
21531 #: ../fish/guestfish-actions.pod:3320
21532 msgid ""
21533 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21534 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21535 "gives an error about this and sometimes not.  In any case, it is always safe "
21536 "to call L</e2fsck-f> before calling this function."
21537 msgstr ""
21538
21539 # type: =head2
21540 #: ../fish/guestfish-actions.pod:3326
21541 msgid "resize2fs-size"
21542 msgstr ""
21543
21544 # type: verbatim
21545 #: ../fish/guestfish-actions.pod:3328
21546 #, no-wrap
21547 msgid ""
21548 " resize2fs-size device size\n"
21549 "\n"
21550 msgstr ""
21551
21552 # type: textblock
21553 #: ../fish/guestfish-actions.pod:3330
21554 msgid ""
21555 "This command is the same as L</resize2fs> except that it allows you to "
21556 "specify the new size (in bytes) explicitly."
21557 msgstr ""
21558
21559 # type: =head2
21560 #: ../fish/guestfish-actions.pod:3333
21561 msgid "rm"
21562 msgstr ""
21563
21564 # type: verbatim
21565 #: ../fish/guestfish-actions.pod:3335
21566 #, no-wrap
21567 msgid ""
21568 " rm path\n"
21569 "\n"
21570 msgstr ""
21571
21572 # type: =head2
21573 #: ../fish/guestfish-actions.pod:3339
21574 msgid "rm-rf"
21575 msgstr ""
21576
21577 # type: verbatim
21578 #: ../fish/guestfish-actions.pod:3341
21579 #, no-wrap
21580 msgid ""
21581 " rm-rf path\n"
21582 "\n"
21583 msgstr ""
21584
21585 # type: =head2
21586 #: ../fish/guestfish-actions.pod:3347
21587 msgid "rmdir"
21588 msgstr ""
21589
21590 # type: verbatim
21591 #: ../fish/guestfish-actions.pod:3349
21592 #, no-wrap
21593 msgid ""
21594 " rmdir path\n"
21595 "\n"
21596 msgstr ""
21597
21598 # type: =head2
21599 #: ../fish/guestfish-actions.pod:3353
21600 msgid "rmmountpoint"
21601 msgstr ""
21602
21603 # type: verbatim
21604 #: ../fish/guestfish-actions.pod:3355
21605 #, no-wrap
21606 msgid ""
21607 " rmmountpoint exemptpath\n"
21608 "\n"
21609 msgstr ""
21610
21611 # type: textblock
21612 #: ../fish/guestfish-actions.pod:3357
21613 msgid ""
21614 "This calls removes a mountpoint that was previously created with L</"
21615 "mkmountpoint>.  See L</mkmountpoint> for full details."
21616 msgstr ""
21617
21618 # type: =head2
21619 #: ../fish/guestfish-actions.pod:3361
21620 msgid "scrub-device"
21621 msgstr ""
21622
21623 # type: verbatim
21624 #: ../fish/guestfish-actions.pod:3363
21625 #, no-wrap
21626 msgid ""
21627 " scrub-device device\n"
21628 "\n"
21629 msgstr ""
21630
21631 # type: =head2
21632 #: ../fish/guestfish-actions.pod:3374
21633 msgid "scrub-file"
21634 msgstr ""
21635
21636 # type: verbatim
21637 #: ../fish/guestfish-actions.pod:3376
21638 #, no-wrap
21639 msgid ""
21640 " scrub-file file\n"
21641 "\n"
21642 msgstr ""
21643
21644 # type: =head2
21645 #: ../fish/guestfish-actions.pod:3386
21646 msgid "scrub-freespace"
21647 msgstr ""
21648
21649 # type: verbatim
21650 #: ../fish/guestfish-actions.pod:3388
21651 #, no-wrap
21652 msgid ""
21653 " scrub-freespace dir\n"
21654 "\n"
21655 msgstr ""
21656
21657 # type: textblock
21658 #: ../fish/guestfish-actions.pod:3390
21659 msgid ""
21660 "This command creates the directory C<dir> and then fills it with files until "
21661 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21662 "deletes them.  The intention is to scrub any free space on the partition "
21663 "containing C<dir>."
21664 msgstr ""
21665
21666 # type: =head2
21667 #: ../fish/guestfish-actions.pod:3399
21668 msgid "set-append"
21669 msgstr ""
21670
21671 # type: =head2
21672 #: ../fish/guestfish-actions.pod:3401
21673 msgid "append"
21674 msgstr ""
21675
21676 # type: verbatim
21677 #: ../fish/guestfish-actions.pod:3403
21678 #, no-wrap
21679 msgid ""
21680 " set-append append\n"
21681 "\n"
21682 msgstr ""
21683
21684 # type: =head2
21685 #: ../fish/guestfish-actions.pod:3414
21686 msgid "set-autosync"
21687 msgstr ""
21688
21689 # type: =head2
21690 #: ../fish/guestfish-actions.pod:3416
21691 msgid "autosync"
21692 msgstr ""
21693
21694 # type: verbatim
21695 #: ../fish/guestfish-actions.pod:3418
21696 #, no-wrap
21697 msgid ""
21698 " set-autosync true|false\n"
21699 "\n"
21700 msgstr ""
21701
21702 # type: textblock
21703 #: ../fish/guestfish-actions.pod:3420
21704 msgid ""
21705 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21706 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21707 "closed (also if the program exits without closing handles)."
21708 msgstr ""
21709
21710 # type: =head2
21711 #: ../fish/guestfish-actions.pod:3428
21712 msgid "set-direct"
21713 msgstr ""
21714
21715 # type: =head2
21716 #: ../fish/guestfish-actions.pod:3430
21717 msgid "direct"
21718 msgstr ""
21719
21720 # type: verbatim
21721 #: ../fish/guestfish-actions.pod:3432
21722 #, no-wrap
21723 msgid ""
21724 " set-direct true|false\n"
21725 "\n"
21726 msgstr ""
21727
21728 # type: textblock
21729 #: ../fish/guestfish-actions.pod:3438
21730 msgid ""
21731 "One consequence of this is that log messages aren't caught by the library "
21732 "and handled by L</set-log-message-callback>, but go straight to stdout."
21733 msgstr ""
21734
21735 # type: =head2
21736 #: ../fish/guestfish-actions.pod:3447
21737 msgid "set-e2label"
21738 msgstr ""
21739
21740 # type: verbatim
21741 #: ../fish/guestfish-actions.pod:3449
21742 #, no-wrap
21743 msgid ""
21744 " set-e2label device label\n"
21745 "\n"
21746 msgstr ""
21747
21748 # type: textblock
21749 #: ../fish/guestfish-actions.pod:3455
21750 msgid ""
21751 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21752 "label on a filesystem."
21753 msgstr ""
21754
21755 # type: =head2
21756 #: ../fish/guestfish-actions.pod:3458
21757 msgid "set-e2uuid"
21758 msgstr ""
21759
21760 # type: verbatim
21761 #: ../fish/guestfish-actions.pod:3460
21762 #, no-wrap
21763 msgid ""
21764 " set-e2uuid device uuid\n"
21765 "\n"
21766 msgstr ""
21767
21768 # type: textblock
21769 #: ../fish/guestfish-actions.pod:3467
21770 msgid ""
21771 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21772 "UUID of a filesystem."
21773 msgstr ""
21774
21775 # type: =head2
21776 #: ../fish/guestfish-actions.pod:3470
21777 msgid "set-memsize"
21778 msgstr ""
21779
21780 # type: =head2
21781 #: ../fish/guestfish-actions.pod:3472
21782 msgid "memsize"
21783 msgstr ""
21784
21785 # type: verbatim
21786 #: ../fish/guestfish-actions.pod:3474
21787 #, no-wrap
21788 msgid ""
21789 " set-memsize memsize\n"
21790 "\n"
21791 msgstr ""
21792
21793 # type: textblock
21794 #: ../fish/guestfish-actions.pod:3476
21795 msgid ""
21796 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21797 "This only has any effect if called before L</launch>."
21798 msgstr ""
21799
21800 # type: =head2
21801 #: ../fish/guestfish-actions.pod:3487
21802 msgid "set-network"
21803 msgstr ""
21804
21805 # type: =head2
21806 #: ../fish/guestfish-actions.pod:3489
21807 msgid "network"
21808 msgstr ""
21809
21810 # type: verbatim
21811 #: ../fish/guestfish-actions.pod:3491
21812 #, no-wrap
21813 msgid ""
21814 " set-network true|false\n"
21815 "\n"
21816 msgstr ""
21817
21818 # type: textblock
21819 #: ../fish/guestfish-actions.pod:3499
21820 msgid ""
21821 "You must call this before calling L</launch>, otherwise it has no effect."
21822 msgstr ""
21823
21824 # type: =head2
21825 #: ../fish/guestfish-actions.pod:3502
21826 msgid "set-path"
21827 msgstr ""
21828
21829 # type: =head2
21830 #: ../fish/guestfish-actions.pod:3504
21831 msgid "path"
21832 msgstr ""
21833
21834 # type: verbatim
21835 #: ../fish/guestfish-actions.pod:3506
21836 #, no-wrap
21837 msgid ""
21838 " set-path searchpath\n"
21839 "\n"
21840 msgstr ""
21841
21842 # type: =head2
21843 #: ../fish/guestfish-actions.pod:3515
21844 msgid "set-qemu"
21845 msgstr ""
21846
21847 # type: =head2
21848 #: ../fish/guestfish-actions.pod:3517
21849 msgid "qemu"
21850 msgstr ""
21851
21852 # type: verbatim
21853 #: ../fish/guestfish-actions.pod:3519
21854 #, no-wrap
21855 msgid ""
21856 " set-qemu qemu\n"
21857 "\n"
21858 msgstr ""
21859
21860 # type: =head2
21861 #: ../fish/guestfish-actions.pod:3539
21862 msgid "set-recovery-proc"
21863 msgstr ""
21864
21865 # type: =head2
21866 #: ../fish/guestfish-actions.pod:3541
21867 msgid "recovery-proc"
21868 msgstr ""
21869
21870 # type: verbatim
21871 #: ../fish/guestfish-actions.pod:3543
21872 #, no-wrap
21873 msgid ""
21874 " set-recovery-proc true|false\n"
21875 "\n"
21876 msgstr ""
21877
21878 # type: textblock
21879 #: ../fish/guestfish-actions.pod:3545
21880 msgid ""
21881 "If this is called with the parameter C<false> then L</launch> does not "
21882 "create a recovery process.  The purpose of the recovery process is to stop "
21883 "runaway qemu processes in the case where the main program aborts abruptly."
21884 msgstr ""
21885
21886 # type: textblock
21887 #: ../fish/guestfish-actions.pod:3550
21888 msgid ""
21889 "This only has any effect if called before L</launch>, and the default is "
21890 "true."
21891 msgstr ""
21892
21893 # type: =head2
21894 #: ../fish/guestfish-actions.pod:3559
21895 msgid "set-selinux"
21896 msgstr ""
21897
21898 # type: =head2
21899 #: ../fish/guestfish-actions.pod:3561
21900 msgid "selinux"
21901 msgstr ""
21902
21903 # type: verbatim
21904 #: ../fish/guestfish-actions.pod:3563
21905 #, no-wrap
21906 msgid ""
21907 " set-selinux true|false\n"
21908 "\n"
21909 msgstr ""
21910
21911 # type: =head2
21912 #: ../fish/guestfish-actions.pod:3574
21913 msgid "set-trace"
21914 msgstr ""
21915
21916 # type: =head2
21917 #: ../fish/guestfish-actions.pod:3576
21918 msgid "trace"
21919 msgstr ""
21920
21921 # type: verbatim
21922 #: ../fish/guestfish-actions.pod:3578
21923 #, no-wrap
21924 msgid ""
21925 " set-trace true|false\n"
21926 "\n"
21927 msgstr ""
21928
21929 # type: =head2
21930 #: ../fish/guestfish-actions.pod:3594
21931 msgid "set-verbose"
21932 msgstr ""
21933
21934 # type: =head2
21935 #: ../fish/guestfish-actions.pod:3596
21936 msgid "verbose"
21937 msgstr ""
21938
21939 # type: verbatim
21940 #: ../fish/guestfish-actions.pod:3598
21941 #, no-wrap
21942 msgid ""
21943 " set-verbose true|false\n"
21944 "\n"
21945 msgstr ""
21946
21947 # type: =head2
21948 #: ../fish/guestfish-actions.pod:3605
21949 msgid "setcon"
21950 msgstr ""
21951
21952 # type: verbatim
21953 #: ../fish/guestfish-actions.pod:3607
21954 #, no-wrap
21955 msgid ""
21956 " setcon context\n"
21957 "\n"
21958 msgstr ""
21959
21960 # type: =head2
21961 #: ../fish/guestfish-actions.pod:3614
21962 msgid "setxattr"
21963 msgstr ""
21964
21965 # type: verbatim
21966 #: ../fish/guestfish-actions.pod:3616
21967 #, no-wrap
21968 msgid ""
21969 " setxattr xattr val vallen path\n"
21970 "\n"
21971 msgstr ""
21972
21973 # type: textblock
21974 #: ../fish/guestfish-actions.pod:3622
21975 msgid "See also: L</lsetxattr>, L<attr(5)>."
21976 msgstr ""
21977
21978 # type: =head2
21979 #: ../fish/guestfish-actions.pod:3624
21980 msgid "sfdisk"
21981 msgstr ""
21982
21983 # type: verbatim
21984 #: ../fish/guestfish-actions.pod:3626
21985 #, no-wrap
21986 msgid ""
21987 " sfdisk device cyls heads sectors 'lines ...'\n"
21988 "\n"
21989 msgstr ""
21990
21991 # type: textblock
21992 #: ../fish/guestfish-actions.pod:3648
21993 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
21994 msgstr ""
21995
21996 # type: =head2
21997 #: ../fish/guestfish-actions.pod:3654
21998 msgid "sfdiskM"
21999 msgstr ""
22000
22001 # type: verbatim
22002 #: ../fish/guestfish-actions.pod:3656
22003 #, no-wrap
22004 msgid ""
22005 " sfdiskM device 'lines ...'\n"
22006 "\n"
22007 msgstr ""
22008
22009 # type: textblock
22010 #: ../fish/guestfish-actions.pod:3658
22011 msgid ""
22012 "This is a simplified interface to the L</sfdisk> command, where partition "
22013 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22014 "you don't need to specify the cyls, heads and sectors parameters which were "
22015 "rarely if ever used anyway."
22016 msgstr ""
22017
22018 # type: textblock
22019 #: ../fish/guestfish-actions.pod:3664
22020 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22021 msgstr ""
22022
22023 # type: =head2
22024 #: ../fish/guestfish-actions.pod:3670
22025 msgid "sfdisk-N"
22026 msgstr ""
22027
22028 # type: verbatim
22029 #: ../fish/guestfish-actions.pod:3672
22030 #, no-wrap
22031 msgid ""
22032 " sfdisk-N device partnum cyls heads sectors line\n"
22033 "\n"
22034 msgstr ""
22035
22036 # type: textblock
22037 #: ../fish/guestfish-actions.pod:3677
22038 msgid ""
22039 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
22040 "cyls/heads/sectors parameters."
22041 msgstr ""
22042
22043 # type: textblock
22044 #: ../fish/guestfish-actions.pod:3680
22045 msgid "See also: L</part-add>"
22046 msgstr ""
22047
22048 # type: =head2
22049 #: ../fish/guestfish-actions.pod:3685
22050 msgid "sfdisk-disk-geometry"
22051 msgstr ""
22052
22053 # type: verbatim
22054 #: ../fish/guestfish-actions.pod:3687
22055 #, no-wrap
22056 msgid ""
22057 " sfdisk-disk-geometry device\n"
22058 "\n"
22059 msgstr ""
22060
22061 # type: textblock
22062 #: ../fish/guestfish-actions.pod:3689
22063 msgid ""
22064 "This displays the disk geometry of C<device> read from the partition table.  "
22065 "Especially in the case where the underlying block device has been resized, "
22066 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
22067 "kernel-geometry>)."
22068 msgstr ""
22069
22070 # type: =head2
22071 #: ../fish/guestfish-actions.pod:3697
22072 msgid "sfdisk-kernel-geometry"
22073 msgstr ""
22074
22075 # type: verbatim
22076 #: ../fish/guestfish-actions.pod:3699
22077 #, no-wrap
22078 msgid ""
22079 " sfdisk-kernel-geometry device\n"
22080 "\n"
22081 msgstr ""
22082
22083 # type: =head2
22084 #: ../fish/guestfish-actions.pod:3706
22085 msgid "sfdisk-l"
22086 msgstr ""
22087
22088 # type: verbatim
22089 #: ../fish/guestfish-actions.pod:3708
22090 #, no-wrap
22091 msgid ""
22092 " sfdisk-l device\n"
22093 "\n"
22094 msgstr ""
22095
22096 # type: textblock
22097 #: ../fish/guestfish-actions.pod:3714
22098 msgid "See also: L</part-list>"
22099 msgstr ""
22100
22101 # type: =head2
22102 #: ../fish/guestfish-actions.pod:3716
22103 msgid "sh"
22104 msgstr ""
22105
22106 # type: verbatim
22107 #: ../fish/guestfish-actions.pod:3718
22108 #, no-wrap
22109 msgid ""
22110 " sh command\n"
22111 "\n"
22112 msgstr ""
22113
22114 # type: textblock
22115 #: ../fish/guestfish-actions.pod:3723
22116 msgid "This is like L</command>, but passes the command to:"
22117 msgstr ""
22118
22119 # type: textblock
22120 #: ../fish/guestfish-actions.pod:3731
22121 msgid "All the provisos about L</command> apply to this call."
22122 msgstr ""
22123
22124 # type: =head2
22125 #: ../fish/guestfish-actions.pod:3733
22126 msgid "sh-lines"
22127 msgstr ""
22128
22129 # type: verbatim
22130 #: ../fish/guestfish-actions.pod:3735
22131 #, no-wrap
22132 msgid ""
22133 " sh-lines command\n"
22134 "\n"
22135 msgstr ""
22136
22137 # type: textblock
22138 #: ../fish/guestfish-actions.pod:3737
22139 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22140 msgstr ""
22141
22142 # type: textblock
22143 #: ../fish/guestfish-actions.pod:3740
22144 msgid "See also: L</command-lines>"
22145 msgstr ""
22146
22147 # type: =head2
22148 #: ../fish/guestfish-actions.pod:3742
22149 msgid "sleep"
22150 msgstr ""
22151
22152 # type: verbatim
22153 #: ../fish/guestfish-actions.pod:3744
22154 #, no-wrap
22155 msgid ""
22156 " sleep secs\n"
22157 "\n"
22158 msgstr ""
22159
22160 # type: =head2
22161 #: ../fish/guestfish-actions.pod:3748
22162 msgid "stat"
22163 msgstr ""
22164
22165 # type: verbatim
22166 #: ../fish/guestfish-actions.pod:3750
22167 #, no-wrap
22168 msgid ""
22169 " stat path\n"
22170 "\n"
22171 msgstr ""
22172
22173 # type: =head2
22174 #: ../fish/guestfish-actions.pod:3756
22175 msgid "statvfs"
22176 msgstr ""
22177
22178 # type: verbatim
22179 #: ../fish/guestfish-actions.pod:3758
22180 #, no-wrap
22181 msgid ""
22182 " statvfs path\n"
22183 "\n"
22184 msgstr ""
22185
22186 # type: =head2
22187 #: ../fish/guestfish-actions.pod:3766
22188 msgid "strings"
22189 msgstr ""
22190
22191 # type: verbatim
22192 #: ../fish/guestfish-actions.pod:3768
22193 #, no-wrap
22194 msgid ""
22195 " strings path\n"
22196 "\n"
22197 msgstr ""
22198
22199 # type: =head2
22200 #: ../fish/guestfish-actions.pod:3776
22201 msgid "strings-e"
22202 msgstr ""
22203
22204 # type: verbatim
22205 #: ../fish/guestfish-actions.pod:3778
22206 #, no-wrap
22207 msgid ""
22208 " strings-e encoding path\n"
22209 "\n"
22210 msgstr ""
22211
22212 # type: textblock
22213 #: ../fish/guestfish-actions.pod:3780
22214 msgid ""
22215 "This is like the L</strings> command, but allows you to specify the encoding "
22216 "of strings that are looked for in the source file C<path>."
22217 msgstr ""
22218
22219 # type: textblock
22220 #: ../fish/guestfish-actions.pod:3790
22221 msgid ""
22222 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22223 "ISO-8859-X (this is what L</strings> uses)."
22224 msgstr ""
22225
22226 # type: =head2
22227 #: ../fish/guestfish-actions.pod:3822
22228 msgid "swapoff-device"
22229 msgstr ""
22230
22231 # type: verbatim
22232 #: ../fish/guestfish-actions.pod:3824
22233 #, no-wrap
22234 msgid ""
22235 " swapoff-device device\n"
22236 "\n"
22237 msgstr ""
22238
22239 # type: textblock
22240 #: ../fish/guestfish-actions.pod:3826
22241 msgid ""
22242 "This command disables the libguestfs appliance swap device or partition "
22243 "named C<device>.  See L</swapon-device>."
22244 msgstr ""
22245
22246 # type: =head2
22247 #: ../fish/guestfish-actions.pod:3830
22248 msgid "swapoff-file"
22249 msgstr ""
22250
22251 # type: verbatim
22252 #: ../fish/guestfish-actions.pod:3832
22253 #, no-wrap
22254 msgid ""
22255 " swapoff-file file\n"
22256 "\n"
22257 msgstr ""
22258
22259 # type: =head2
22260 #: ../fish/guestfish-actions.pod:3836
22261 msgid "swapoff-label"
22262 msgstr ""
22263
22264 # type: verbatim
22265 #: ../fish/guestfish-actions.pod:3838
22266 #, no-wrap
22267 msgid ""
22268 " swapoff-label label\n"
22269 "\n"
22270 msgstr ""
22271
22272 # type: =head2
22273 #: ../fish/guestfish-actions.pod:3843
22274 msgid "swapoff-uuid"
22275 msgstr ""
22276
22277 # type: verbatim
22278 #: ../fish/guestfish-actions.pod:3845
22279 #, no-wrap
22280 msgid ""
22281 " swapoff-uuid uuid\n"
22282 "\n"
22283 msgstr ""
22284
22285 # type: =head2
22286 #: ../fish/guestfish-actions.pod:3850
22287 msgid "swapon-device"
22288 msgstr ""
22289
22290 # type: verbatim
22291 #: ../fish/guestfish-actions.pod:3852
22292 #, no-wrap
22293 msgid ""
22294 " swapon-device device\n"
22295 "\n"
22296 msgstr ""
22297
22298 # type: textblock
22299 #: ../fish/guestfish-actions.pod:3854
22300 msgid ""
22301 "This command enables the libguestfs appliance to use the swap device or "
22302 "partition named C<device>.  The increased memory is made available for all "
22303 "commands, for example those run using L</command> or L</sh>."
22304 msgstr ""
22305
22306 # type: =head2
22307 #: ../fish/guestfish-actions.pod:3866
22308 msgid "swapon-file"
22309 msgstr ""
22310
22311 # type: verbatim
22312 #: ../fish/guestfish-actions.pod:3868
22313 #, no-wrap
22314 msgid ""
22315 " swapon-file file\n"
22316 "\n"
22317 msgstr ""
22318
22319 # type: textblock
22320 #: ../fish/guestfish-actions.pod:3870
22321 msgid ""
22322 "This command enables swap to a file.  See L</swapon-device> for other notes."
22323 msgstr ""
22324
22325 # type: =head2
22326 #: ../fish/guestfish-actions.pod:3873
22327 msgid "swapon-label"
22328 msgstr ""
22329
22330 # type: verbatim
22331 #: ../fish/guestfish-actions.pod:3875
22332 #, no-wrap
22333 msgid ""
22334 " swapon-label label\n"
22335 "\n"
22336 msgstr ""
22337
22338 # type: textblock
22339 #: ../fish/guestfish-actions.pod:3877
22340 msgid ""
22341 "This command enables swap to a labeled swap partition.  See L</swapon-"
22342 "device> for other notes."
22343 msgstr ""
22344
22345 # type: =head2
22346 #: ../fish/guestfish-actions.pod:3880
22347 msgid "swapon-uuid"
22348 msgstr ""
22349
22350 # type: verbatim
22351 #: ../fish/guestfish-actions.pod:3882
22352 #, no-wrap
22353 msgid ""
22354 " swapon-uuid uuid\n"
22355 "\n"
22356 msgstr ""
22357
22358 # type: textblock
22359 #: ../fish/guestfish-actions.pod:3884
22360 msgid ""
22361 "This command enables swap to a swap partition with the given UUID.  See L</"
22362 "swapon-device> for other notes."
22363 msgstr ""
22364
22365 # type: =head2
22366 #: ../fish/guestfish-actions.pod:3887
22367 msgid "sync"
22368 msgstr ""
22369
22370 # type: verbatim
22371 #: ../fish/guestfish-actions.pod:3889
22372 #, no-wrap
22373 msgid ""
22374 " sync\n"
22375 "\n"
22376 msgstr ""
22377
22378 # type: =head2
22379 #: ../fish/guestfish-actions.pod:3897
22380 msgid "tail"
22381 msgstr ""
22382
22383 # type: verbatim
22384 #: ../fish/guestfish-actions.pod:3899
22385 #, no-wrap
22386 msgid ""
22387 " tail path\n"
22388 "\n"
22389 msgstr ""
22390
22391 # type: =head2
22392 #: ../fish/guestfish-actions.pod:3907
22393 msgid "tail-n"
22394 msgstr ""
22395
22396 # type: verbatim
22397 #: ../fish/guestfish-actions.pod:3909
22398 #, no-wrap
22399 msgid ""
22400 " tail-n nrlines path\n"
22401 "\n"
22402 msgstr ""
22403
22404 # type: =head2
22405 #: ../fish/guestfish-actions.pod:3922
22406 msgid "tar-in"
22407 msgstr ""
22408
22409 # type: verbatim
22410 #: ../fish/guestfish-actions.pod:3924
22411 #, no-wrap
22412 msgid ""
22413 " tar-in (tarfile|-) directory\n"
22414 "\n"
22415 msgstr ""
22416
22417 # type: textblock
22418 #: ../fish/guestfish-actions.pod:3929
22419 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22420 msgstr ""
22421
22422 # type: =head2
22423 #: ../fish/guestfish-actions.pod:3934
22424 msgid "tar-out"
22425 msgstr ""
22426
22427 # type: verbatim
22428 #: ../fish/guestfish-actions.pod:3936
22429 #, no-wrap
22430 msgid ""
22431 " tar-out directory (tarfile|-)\n"
22432 "\n"
22433 msgstr ""
22434
22435 # type: textblock
22436 #: ../fish/guestfish-actions.pod:3941
22437 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22438 msgstr ""
22439
22440 # type: =head2
22441 #: ../fish/guestfish-actions.pod:3946
22442 msgid "tgz-in"
22443 msgstr ""
22444
22445 # type: verbatim
22446 #: ../fish/guestfish-actions.pod:3948
22447 #, no-wrap
22448 msgid ""
22449 " tgz-in (tarball|-) directory\n"
22450 "\n"
22451 msgstr ""
22452
22453 # type: textblock
22454 #: ../fish/guestfish-actions.pod:3953
22455 msgid "To upload an uncompressed tarball, use L</tar-in>."
22456 msgstr ""
22457
22458 # type: =head2
22459 #: ../fish/guestfish-actions.pod:3957
22460 msgid "tgz-out"
22461 msgstr ""
22462
22463 # type: verbatim
22464 #: ../fish/guestfish-actions.pod:3959
22465 #, no-wrap
22466 msgid ""
22467 " tgz-out directory (tarball|-)\n"
22468 "\n"
22469 msgstr ""
22470
22471 # type: textblock
22472 #: ../fish/guestfish-actions.pod:3964
22473 msgid "To download an uncompressed tarball, use L</tar-out>."
22474 msgstr ""
22475
22476 # type: =head2
22477 #: ../fish/guestfish-actions.pod:3968
22478 msgid "touch"
22479 msgstr ""
22480
22481 # type: verbatim
22482 #: ../fish/guestfish-actions.pod:3970
22483 #, no-wrap
22484 msgid ""
22485 " touch path\n"
22486 "\n"
22487 msgstr ""
22488
22489 # type: =head2
22490 #: ../fish/guestfish-actions.pod:3979
22491 msgid "truncate"
22492 msgstr ""
22493
22494 # type: verbatim
22495 #: ../fish/guestfish-actions.pod:3981
22496 #, no-wrap
22497 msgid ""
22498 " truncate path\n"
22499 "\n"
22500 msgstr ""
22501
22502 # type: =head2
22503 #: ../fish/guestfish-actions.pod:3986
22504 msgid "truncate-size"
22505 msgstr ""
22506
22507 # type: verbatim
22508 #: ../fish/guestfish-actions.pod:3988
22509 #, no-wrap
22510 msgid ""
22511 " truncate-size path size\n"
22512 "\n"
22513 msgstr ""
22514
22515 # type: textblock
22516 #: ../fish/guestfish-actions.pod:3993
22517 msgid ""
22518 "If the current file size is less than C<size> then the file is extended to "
22519 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22520 "blocks are not allocated for the file until you write to it).  To create a "
22521 "non-sparse file of zeroes, use L</fallocate64> instead."
22522 msgstr ""
22523
22524 # type: =head2
22525 #: ../fish/guestfish-actions.pod:3999
22526 msgid "tune2fs-l"
22527 msgstr ""
22528
22529 # type: verbatim
22530 #: ../fish/guestfish-actions.pod:4001
22531 #, no-wrap
22532 msgid ""
22533 " tune2fs-l device\n"
22534 "\n"
22535 msgstr ""
22536
22537 # type: =head2
22538 #: ../fish/guestfish-actions.pod:4011
22539 msgid "txz-in"
22540 msgstr ""
22541
22542 # type: verbatim
22543 #: ../fish/guestfish-actions.pod:4013
22544 #, no-wrap
22545 msgid ""
22546 " txz-in (tarball|-) directory\n"
22547 "\n"
22548 msgstr ""
22549
22550 # type: =head2
22551 #: ../fish/guestfish-actions.pod:4020
22552 msgid "txz-out"
22553 msgstr ""
22554
22555 # type: verbatim
22556 #: ../fish/guestfish-actions.pod:4022
22557 #, no-wrap
22558 msgid ""
22559 " txz-out directory (tarball|-)\n"
22560 "\n"
22561 msgstr ""
22562
22563 # type: =head2
22564 #: ../fish/guestfish-actions.pod:4029
22565 msgid "umask"
22566 msgstr ""
22567
22568 # type: verbatim
22569 #: ../fish/guestfish-actions.pod:4031
22570 #, no-wrap
22571 msgid ""
22572 " umask mask\n"
22573 "\n"
22574 msgstr ""
22575
22576 # type: textblock
22577 #: ../fish/guestfish-actions.pod:4045
22578 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22579 msgstr ""
22580
22581 # type: =head2
22582 #: ../fish/guestfish-actions.pod:4050
22583 msgid "umount"
22584 msgstr ""
22585
22586 # type: =head2
22587 #: ../fish/guestfish-actions.pod:4052
22588 msgid "unmount"
22589 msgstr ""
22590
22591 # type: verbatim
22592 #: ../fish/guestfish-actions.pod:4054
22593 #, no-wrap
22594 msgid ""
22595 " umount pathordevice\n"
22596 "\n"
22597 msgstr ""
22598
22599 # type: =head2
22600 #: ../fish/guestfish-actions.pod:4060
22601 msgid "umount-all"
22602 msgstr ""
22603
22604 # type: =head2
22605 #: ../fish/guestfish-actions.pod:4062
22606 msgid "unmount-all"
22607 msgstr ""
22608
22609 # type: verbatim
22610 #: ../fish/guestfish-actions.pod:4064
22611 #, no-wrap
22612 msgid ""
22613 " umount-all\n"
22614 "\n"
22615 msgstr ""
22616
22617 # type: =head2
22618 #: ../fish/guestfish-actions.pod:4070
22619 msgid "upload"
22620 msgstr ""
22621
22622 # type: verbatim
22623 #: ../fish/guestfish-actions.pod:4072
22624 #, no-wrap
22625 msgid ""
22626 " upload (filename|-) remotefilename\n"
22627 "\n"
22628 msgstr ""
22629
22630 # type: textblock
22631 #: ../fish/guestfish-actions.pod:4079
22632 msgid "See also L</download>."
22633 msgstr ""
22634
22635 # type: =head2
22636 #: ../fish/guestfish-actions.pod:4083
22637 msgid "upload-offset"
22638 msgstr ""
22639
22640 # type: verbatim
22641 #: ../fish/guestfish-actions.pod:4085
22642 #, no-wrap
22643 msgid ""
22644 " upload-offset (filename|-) remotefilename offset\n"
22645 "\n"
22646 msgstr ""
22647
22648 # type: textblock
22649 #: ../fish/guestfish-actions.pod:4097
22650 msgid ""
22651 "Note that there is no limit on the amount of data that can be uploaded with "
22652 "this call, unlike with L</pwrite>, and this call always writes the full "
22653 "amount unless an error occurs."
22654 msgstr ""
22655
22656 # type: textblock
22657 #: ../fish/guestfish-actions.pod:4102
22658 msgid "See also L</upload>, L</pwrite>."
22659 msgstr ""
22660
22661 # type: =head2
22662 #: ../fish/guestfish-actions.pod:4106
22663 msgid "utimens"
22664 msgstr ""
22665
22666 # type: verbatim
22667 #: ../fish/guestfish-actions.pod:4108
22668 #, no-wrap
22669 msgid ""
22670 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22671 "\n"
22672 msgstr ""
22673
22674 # type: =head2
22675 #: ../fish/guestfish-actions.pod:4127
22676 msgid "version"
22677 msgstr ""
22678
22679 # type: verbatim
22680 #: ../fish/guestfish-actions.pod:4129
22681 #, no-wrap
22682 msgid ""
22683 " version\n"
22684 "\n"
22685 msgstr ""
22686
22687 # type: textblock
22688 #: ../fish/guestfish-actions.pod:4156
22689 msgid ""
22690 "I<Note:> Don't use this call to test for availability of features.  In "
22691 "enterprise distributions we backport features from later versions into "
22692 "earlier versions, making this an unreliable way to test for features.  Use "
22693 "L</available> instead."
22694 msgstr ""
22695
22696 # type: =head2
22697 #: ../fish/guestfish-actions.pod:4162
22698 msgid "vfs-label"
22699 msgstr ""
22700
22701 # type: verbatim
22702 #: ../fish/guestfish-actions.pod:4164
22703 #, no-wrap
22704 msgid ""
22705 " vfs-label device\n"
22706 "\n"
22707 msgstr ""
22708
22709 # type: textblock
22710 #: ../fish/guestfish-actions.pod:4171
22711 msgid "To find a filesystem from the label, use L</findfs-label>."
22712 msgstr ""
22713
22714 # type: =head2
22715 #: ../fish/guestfish-actions.pod:4173
22716 msgid "vfs-type"
22717 msgstr ""
22718
22719 # type: verbatim
22720 #: ../fish/guestfish-actions.pod:4175
22721 #, no-wrap
22722 msgid ""
22723 " vfs-type device\n"
22724 "\n"
22725 msgstr ""
22726
22727 # type: =head2
22728 #: ../fish/guestfish-actions.pod:4185
22729 msgid "vfs-uuid"
22730 msgstr ""
22731
22732 # type: verbatim
22733 #: ../fish/guestfish-actions.pod:4187
22734 #, no-wrap
22735 msgid ""
22736 " vfs-uuid device\n"
22737 "\n"
22738 msgstr ""
22739
22740 # type: textblock
22741 #: ../fish/guestfish-actions.pod:4194
22742 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22743 msgstr ""
22744
22745 # type: =head2
22746 #: ../fish/guestfish-actions.pod:4196
22747 msgid "vg-activate"
22748 msgstr ""
22749
22750 # type: verbatim
22751 #: ../fish/guestfish-actions.pod:4198
22752 #, no-wrap
22753 msgid ""
22754 " vg-activate true|false 'volgroups ...'\n"
22755 "\n"
22756 msgstr ""
22757
22758 # type: =head2
22759 #: ../fish/guestfish-actions.pod:4211
22760 msgid "vg-activate-all"
22761 msgstr ""
22762
22763 # type: verbatim
22764 #: ../fish/guestfish-actions.pod:4213
22765 #, no-wrap
22766 msgid ""
22767 " vg-activate-all true|false\n"
22768 "\n"
22769 msgstr ""
22770
22771 # type: =head2
22772 #: ../fish/guestfish-actions.pod:4223
22773 msgid "vgcreate"
22774 msgstr ""
22775
22776 # type: verbatim
22777 #: ../fish/guestfish-actions.pod:4225
22778 #, no-wrap
22779 msgid ""
22780 " vgcreate volgroup 'physvols ...'\n"
22781 "\n"
22782 msgstr ""
22783
22784 # type: =head2
22785 #: ../fish/guestfish-actions.pod:4230
22786 msgid "vglvuuids"
22787 msgstr ""
22788
22789 # type: verbatim
22790 #: ../fish/guestfish-actions.pod:4232
22791 #, no-wrap
22792 msgid ""
22793 " vglvuuids vgname\n"
22794 "\n"
22795 msgstr ""
22796
22797 # type: textblock
22798 #: ../fish/guestfish-actions.pod:4237
22799 msgid ""
22800 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22801 "logical volumes and volume groups."
22802 msgstr ""
22803
22804 # type: textblock
22805 #: ../fish/guestfish-actions.pod:4240
22806 msgid "See also L</vgpvuuids>."
22807 msgstr ""
22808
22809 # type: =head2
22810 #: ../fish/guestfish-actions.pod:4242
22811 msgid "vgpvuuids"
22812 msgstr ""
22813
22814 # type: verbatim
22815 #: ../fish/guestfish-actions.pod:4244
22816 #, no-wrap
22817 msgid ""
22818 " vgpvuuids vgname\n"
22819 "\n"
22820 msgstr ""
22821
22822 # type: textblock
22823 #: ../fish/guestfish-actions.pod:4249
22824 msgid ""
22825 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22826 "physical volumes and volume groups."
22827 msgstr ""
22828
22829 # type: textblock
22830 #: ../fish/guestfish-actions.pod:4252
22831 msgid "See also L</vglvuuids>."
22832 msgstr ""
22833
22834 # type: =head2
22835 #: ../fish/guestfish-actions.pod:4254
22836 msgid "vgremove"
22837 msgstr ""
22838
22839 # type: verbatim
22840 #: ../fish/guestfish-actions.pod:4256
22841 #, no-wrap
22842 msgid ""
22843 " vgremove vgname\n"
22844 "\n"
22845 msgstr ""
22846
22847 # type: =head2
22848 #: ../fish/guestfish-actions.pod:4263
22849 msgid "vgrename"
22850 msgstr ""
22851
22852 # type: verbatim
22853 #: ../fish/guestfish-actions.pod:4265
22854 #, no-wrap
22855 msgid ""
22856 " vgrename volgroup newvolgroup\n"
22857 "\n"
22858 msgstr ""
22859
22860 # type: =head2
22861 #: ../fish/guestfish-actions.pod:4269
22862 msgid "vgs"
22863 msgstr ""
22864
22865 # type: verbatim
22866 #: ../fish/guestfish-actions.pod:4271
22867 #, no-wrap
22868 msgid ""
22869 " vgs\n"
22870 "\n"
22871 msgstr ""
22872
22873 # type: textblock
22874 #: ../fish/guestfish-actions.pod:4279
22875 msgid "See also L</vgs-full>."
22876 msgstr ""
22877
22878 # type: =head2
22879 #: ../fish/guestfish-actions.pod:4281
22880 msgid "vgs-full"
22881 msgstr ""
22882
22883 # type: verbatim
22884 #: ../fish/guestfish-actions.pod:4283
22885 #, no-wrap
22886 msgid ""
22887 " vgs-full\n"
22888 "\n"
22889 msgstr ""
22890
22891 # type: =head2
22892 #: ../fish/guestfish-actions.pod:4288
22893 msgid "vgscan"
22894 msgstr ""
22895
22896 # type: verbatim
22897 #: ../fish/guestfish-actions.pod:4290
22898 #, no-wrap
22899 msgid ""
22900 " vgscan\n"
22901 "\n"
22902 msgstr ""
22903
22904 # type: =head2
22905 #: ../fish/guestfish-actions.pod:4295
22906 msgid "vguuid"
22907 msgstr ""
22908
22909 # type: verbatim
22910 #: ../fish/guestfish-actions.pod:4297
22911 #, no-wrap
22912 msgid ""
22913 " vguuid vgname\n"
22914 "\n"
22915 msgstr ""
22916
22917 # type: =head2
22918 #: ../fish/guestfish-actions.pod:4301
22919 msgid "wc-c"
22920 msgstr ""
22921
22922 # type: verbatim
22923 #: ../fish/guestfish-actions.pod:4303
22924 #, no-wrap
22925 msgid ""
22926 " wc-c path\n"
22927 "\n"
22928 msgstr ""
22929
22930 # type: =head2
22931 #: ../fish/guestfish-actions.pod:4308
22932 msgid "wc-l"
22933 msgstr ""
22934
22935 # type: verbatim
22936 #: ../fish/guestfish-actions.pod:4310
22937 #, no-wrap
22938 msgid ""
22939 " wc-l path\n"
22940 "\n"
22941 msgstr ""
22942
22943 # type: =head2
22944 #: ../fish/guestfish-actions.pod:4315
22945 msgid "wc-w"
22946 msgstr ""
22947
22948 # type: verbatim
22949 #: ../fish/guestfish-actions.pod:4317
22950 #, no-wrap
22951 msgid ""
22952 " wc-w path\n"
22953 "\n"
22954 msgstr ""
22955
22956 # type: =head2
22957 #: ../fish/guestfish-actions.pod:4322
22958 msgid "write"
22959 msgstr ""
22960
22961 # type: verbatim
22962 #: ../fish/guestfish-actions.pod:4324
22963 #, no-wrap
22964 msgid ""
22965 " write path content\n"
22966 "\n"
22967 msgstr ""
22968
22969 # type: =head2
22970 #: ../fish/guestfish-actions.pod:4332
22971 msgid "write-file"
22972 msgstr ""
22973
22974 # type: verbatim
22975 #: ../fish/guestfish-actions.pod:4334
22976 #, no-wrap
22977 msgid ""
22978 " write-file path content size\n"
22979 "\n"
22980 msgstr ""
22981
22982 # type: =head2
22983 #: ../fish/guestfish-actions.pod:4357
22984 msgid "zegrep"
22985 msgstr ""
22986
22987 # type: verbatim
22988 #: ../fish/guestfish-actions.pod:4359
22989 #, no-wrap
22990 msgid ""
22991 " zegrep regex path\n"
22992 "\n"
22993 msgstr ""
22994
22995 # type: =head2
22996 #: ../fish/guestfish-actions.pod:4367
22997 msgid "zegrepi"
22998 msgstr ""
22999
23000 # type: verbatim
23001 #: ../fish/guestfish-actions.pod:4369
23002 #, no-wrap
23003 msgid ""
23004 " zegrepi regex path\n"
23005 "\n"
23006 msgstr ""
23007
23008 # type: =head2
23009 #: ../fish/guestfish-actions.pod:4377
23010 msgid "zero"
23011 msgstr ""
23012
23013 # type: verbatim
23014 #: ../fish/guestfish-actions.pod:4379
23015 #, no-wrap
23016 msgid ""
23017 " zero device\n"
23018 "\n"
23019 msgstr ""
23020
23021 # type: textblock
23022 #: ../fish/guestfish-actions.pod:4387
23023 msgid "See also: L</zero-device>, L</scrub-device>."
23024 msgstr ""
23025
23026 # type: =head2
23027 #: ../fish/guestfish-actions.pod:4389
23028 msgid "zero-device"
23029 msgstr ""
23030
23031 # type: verbatim
23032 #: ../fish/guestfish-actions.pod:4391
23033 #, no-wrap
23034 msgid ""
23035 " zero-device device\n"
23036 "\n"
23037 msgstr ""
23038
23039 # type: textblock
23040 #: ../fish/guestfish-actions.pod:4393
23041 msgid ""
23042 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23043 "which just zeroes the first few blocks of a device."
23044 msgstr ""
23045
23046 # type: =head2
23047 #: ../fish/guestfish-actions.pod:4400
23048 msgid "zerofree"
23049 msgstr ""
23050
23051 # type: verbatim
23052 #: ../fish/guestfish-actions.pod:4402
23053 #, no-wrap
23054 msgid ""
23055 " zerofree device\n"
23056 "\n"
23057 msgstr ""
23058
23059 # type: =head2
23060 #: ../fish/guestfish-actions.pod:4415
23061 msgid "zfgrep"
23062 msgstr ""
23063
23064 # type: verbatim
23065 #: ../fish/guestfish-actions.pod:4417
23066 #, no-wrap
23067 msgid ""
23068 " zfgrep pattern path\n"
23069 "\n"
23070 msgstr ""
23071
23072 # type: =head2
23073 #: ../fish/guestfish-actions.pod:4425
23074 msgid "zfgrepi"
23075 msgstr ""
23076
23077 # type: verbatim
23078 #: ../fish/guestfish-actions.pod:4427
23079 #, no-wrap
23080 msgid ""
23081 " zfgrepi pattern path\n"
23082 "\n"
23083 msgstr ""
23084
23085 # type: =head2
23086 #: ../fish/guestfish-actions.pod:4435
23087 msgid "zfile"
23088 msgstr ""
23089
23090 # type: verbatim
23091 #: ../fish/guestfish-actions.pod:4437
23092 #, no-wrap
23093 msgid ""
23094 " zfile meth path\n"
23095 "\n"
23096 msgstr ""
23097
23098 # type: textblock
23099 #: ../fish/guestfish-actions.pod:4444
23100 msgid ""
23101 "Since 1.0.63, use L</file> instead which can now process compressed files."
23102 msgstr ""
23103
23104 # type: =head2
23105 #: ../fish/guestfish-actions.pod:4454
23106 msgid "zgrep"
23107 msgstr ""
23108
23109 # type: verbatim
23110 #: ../fish/guestfish-actions.pod:4456
23111 #, no-wrap
23112 msgid ""
23113 " zgrep regex path\n"
23114 "\n"
23115 msgstr ""
23116
23117 # type: =head2
23118 #: ../fish/guestfish-actions.pod:4464
23119 msgid "zgrepi"
23120 msgstr ""
23121
23122 # type: verbatim
23123 #: ../fish/guestfish-actions.pod:4466
23124 #, no-wrap
23125 msgid ""
23126 " zgrepi regex path\n"
23127 "\n"
23128 msgstr ""
23129
23130 # type: =head2
23131 #: ../fish/guestfish-commands.pod:1
23132 msgid "alloc"
23133 msgstr ""
23134
23135 # type: =head2
23136 #: ../fish/guestfish-commands.pod:3
23137 msgid "allocate"
23138 msgstr ""
23139
23140 # type: verbatim
23141 #: ../fish/guestfish-commands.pod:5
23142 #, no-wrap
23143 msgid ""
23144 " alloc filename size\n"
23145 "\n"
23146 msgstr ""
23147
23148 # type: textblock
23149 #: ../fish/guestfish-commands.pod:7
23150 msgid ""
23151 "This creates an empty (zeroed) file of the given size, and then adds so it "
23152 "can be further examined."
23153 msgstr ""
23154
23155 # type: textblock
23156 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23157 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23158 msgstr ""
23159
23160 # type: textblock
23161 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23162 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23163 msgstr ""
23164
23165 # type: textblock
23166 #: ../fish/guestfish-commands.pod:14
23167 msgid ""
23168 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23169 "image, see L</PREPARED DISK IMAGES>."
23170 msgstr ""
23171
23172 # type: =head2
23173 #: ../fish/guestfish-commands.pod:17
23174 msgid "copy-in"
23175 msgstr ""
23176
23177 # type: verbatim
23178 #: ../fish/guestfish-commands.pod:19
23179 #, no-wrap
23180 msgid ""
23181 " copy-in local [local ...] /remotedir\n"
23182 "\n"
23183 msgstr ""
23184
23185 # type: textblock
23186 #: ../fish/guestfish-commands.pod:21
23187 msgid ""
23188 "C<copy-in> copies local files or directories recursively into the disk "
23189 "image, placing them in the directory called C</remotedir> (which must "
23190 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23191 "other commands as necessary."
23192 msgstr ""
23193
23194 # type: textblock
23195 #: ../fish/guestfish-commands.pod:26
23196 msgid ""
23197 "Multiple local files and directories can be specified, but the last "
23198 "parameter must always be a remote directory.  Wildcards cannot be used."
23199 msgstr ""
23200
23201 # type: =head2
23202 #: ../fish/guestfish-commands.pod:30
23203 msgid "copy-out"
23204 msgstr ""
23205
23206 # type: verbatim
23207 #: ../fish/guestfish-commands.pod:32
23208 #, no-wrap
23209 msgid ""
23210 " copy-out remote [remote ...] localdir\n"
23211 "\n"
23212 msgstr ""
23213
23214 # type: textblock
23215 #: ../fish/guestfish-commands.pod:34
23216 msgid ""
23217 "C<copy-out> copies remote files or directories recursively out of the disk "
23218 "image, placing them on the host disk in a local directory called C<localdir> "
23219 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
23220 "download>, L</tar-out> and other commands as necessary."
23221 msgstr ""
23222
23223 # type: textblock
23224 #: ../fish/guestfish-commands.pod:40
23225 msgid ""
23226 "Multiple remote files and directories can be specified, but the last "
23227 "parameter must always be a local directory.  To download to the current "
23228 "directory, use C<.> as in:"
23229 msgstr ""
23230
23231 # type: verbatim
23232 #: ../fish/guestfish-commands.pod:44
23233 #, no-wrap
23234 msgid ""
23235 " copy-out /home .\n"
23236 "\n"
23237 msgstr ""
23238
23239 # type: textblock
23240 #: ../fish/guestfish-commands.pod:46
23241 msgid ""
23242 "Wildcards cannot be used in the ordinary command, but you can use them with "
23243 "the help of L</glob> like this:"
23244 msgstr ""
23245
23246 # type: verbatim
23247 #: ../fish/guestfish-commands.pod:49
23248 #, no-wrap
23249 msgid ""
23250 " glob copy-out /home/* .\n"
23251 "\n"
23252 msgstr ""
23253
23254 # type: =head2
23255 #: ../fish/guestfish-commands.pod:51
23256 msgid "echo"
23257 msgstr ""
23258
23259 # type: verbatim
23260 #: ../fish/guestfish-commands.pod:53
23261 #, no-wrap
23262 msgid ""
23263 " echo [params ...]\n"
23264 "\n"
23265 msgstr ""
23266
23267 # type: textblock
23268 #: ../fish/guestfish-commands.pod:55
23269 msgid "This echos the parameters to the terminal."
23270 msgstr ""
23271
23272 # type: =head2
23273 #: ../fish/guestfish-commands.pod:57
23274 msgid "edit"
23275 msgstr ""
23276
23277 # type: =head2
23278 #: ../fish/guestfish-commands.pod:59
23279 msgid "vi"
23280 msgstr ""
23281
23282 # type: =head2
23283 #: ../fish/guestfish-commands.pod:61
23284 msgid "emacs"
23285 msgstr ""
23286
23287 # type: verbatim
23288 #: ../fish/guestfish-commands.pod:63
23289 #, no-wrap
23290 msgid ""
23291 " edit filename\n"
23292 "\n"
23293 msgstr ""
23294
23295 # type: textblock
23296 #: ../fish/guestfish-commands.pod:65
23297 msgid ""
23298 "This is used to edit a file.  It downloads the file, edits it locally using "
23299 "your editor, then uploads the result."
23300 msgstr ""
23301
23302 # type: textblock
23303 #: ../fish/guestfish-commands.pod:68
23304 msgid ""
23305 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23306 "or C<emacs> you will get those corresponding editors."
23307 msgstr ""
23308
23309 # type: =head2
23310 #: ../fish/guestfish-commands.pod:72
23311 msgid "glob"
23312 msgstr ""
23313
23314 # type: verbatim
23315 #: ../fish/guestfish-commands.pod:74
23316 #, no-wrap
23317 msgid ""
23318 " glob command args...\n"
23319 "\n"
23320 msgstr ""
23321
23322 # type: textblock
23323 #: ../fish/guestfish-commands.pod:76
23324 msgid ""
23325 "Expand wildcards in any paths in the args list, and run C<command> "
23326 "repeatedly on each matching path."
23327 msgstr ""
23328
23329 # type: textblock
23330 #: ../fish/guestfish-commands.pod:79
23331 msgid "See L</WILDCARDS AND GLOBBING>."
23332 msgstr ""
23333
23334 # type: =head2
23335 #: ../fish/guestfish-commands.pod:81
23336 msgid "hexedit"
23337 msgstr ""
23338
23339 # type: verbatim
23340 #: ../fish/guestfish-commands.pod:83
23341 #, no-wrap
23342 msgid ""
23343 " hexedit <filename|device>\n"
23344 " hexedit <filename|device> <max>\n"
23345 " hexedit <filename|device> <start> <max>\n"
23346 "\n"
23347 msgstr ""
23348
23349 # type: textblock
23350 #: ../fish/guestfish-commands.pod:87
23351 msgid ""
23352 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23353 "device."
23354 msgstr ""
23355
23356 # type: textblock
23357 #: ../fish/guestfish-commands.pod:90
23358 msgid ""
23359 "This command works by downloading potentially the whole file or device, "
23360 "editing it locally, then uploading it.  If the file or device is large, you "
23361 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23362 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23363 "usual modifiers allowed such as C<1M> (1 megabyte)."
23364 msgstr ""
23365
23366 # type: textblock
23367 #: ../fish/guestfish-commands.pod:97
23368 msgid "For example to edit the first few sectors of a disk you might do:"
23369 msgstr ""
23370
23371 # type: verbatim
23372 #: ../fish/guestfish-commands.pod:100
23373 #, no-wrap
23374 msgid ""
23375 " hexedit /dev/sda 1M\n"
23376 "\n"
23377 msgstr ""
23378
23379 # type: textblock
23380 #: ../fish/guestfish-commands.pod:102
23381 msgid ""
23382 "which would allow you to edit anywhere within the first megabyte of the disk."
23383 msgstr ""
23384
23385 # type: textblock
23386 #: ../fish/guestfish-commands.pod:105
23387 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23388 msgstr ""
23389
23390 # type: verbatim
23391 #: ../fish/guestfish-commands.pod:107
23392 #, no-wrap
23393 msgid ""
23394 " hexedit /dev/sda1 0x400 0x400\n"
23395 "\n"
23396 msgstr ""
23397
23398 # type: textblock
23399 #: ../fish/guestfish-commands.pod:109
23400 msgid "(assuming the superblock is in the standard location)."
23401 msgstr ""
23402
23403 # type: textblock
23404 #: ../fish/guestfish-commands.pod:111
23405 msgid ""
23406 "This command requires the external L<hexedit(1)> program.  You can specify "
23407 "another program to use by setting the C<HEXEDITOR> environment variable."
23408 msgstr ""
23409
23410 # type: textblock
23411 #: ../fish/guestfish-commands.pod:115
23412 msgid "See also L</hexdump>."
23413 msgstr ""
23414
23415 # type: =head2
23416 #: ../fish/guestfish-commands.pod:117
23417 msgid "lcd"
23418 msgstr ""
23419
23420 # type: verbatim
23421 #: ../fish/guestfish-commands.pod:119
23422 #, no-wrap
23423 msgid ""
23424 " lcd directory\n"
23425 "\n"
23426 msgstr ""
23427
23428 # type: textblock
23429 #: ../fish/guestfish-commands.pod:121
23430 msgid ""
23431 "Change the local directory, ie. the current directory of guestfish itself."
23432 msgstr ""
23433
23434 # type: textblock
23435 #: ../fish/guestfish-commands.pod:124
23436 msgid "Note that C<!cd> won't do what you might expect."
23437 msgstr ""
23438
23439 # type: =head2
23440 #: ../fish/guestfish-commands.pod:126
23441 msgid "man"
23442 msgstr ""
23443
23444 # type: =head2
23445 #: ../fish/guestfish-commands.pod:128
23446 msgid "manual"
23447 msgstr ""
23448
23449 # type: verbatim
23450 #: ../fish/guestfish-commands.pod:130
23451 #, no-wrap
23452 msgid ""
23453 "  man\n"
23454 "\n"
23455 msgstr ""
23456
23457 # type: textblock
23458 #: ../fish/guestfish-commands.pod:132
23459 msgid "Opens the manual page for guestfish."
23460 msgstr ""
23461
23462 # type: =head2
23463 #: ../fish/guestfish-commands.pod:134
23464 msgid "more"
23465 msgstr ""
23466
23467 # type: =head2
23468 #: ../fish/guestfish-commands.pod:136
23469 msgid "less"
23470 msgstr ""
23471
23472 # type: verbatim
23473 #: ../fish/guestfish-commands.pod:138
23474 #, no-wrap
23475 msgid ""
23476 " more filename\n"
23477 "\n"
23478 msgstr ""
23479
23480 # type: verbatim
23481 #: ../fish/guestfish-commands.pod:140
23482 #, no-wrap
23483 msgid ""
23484 " less filename\n"
23485 "\n"
23486 msgstr ""
23487
23488 # type: textblock
23489 #: ../fish/guestfish-commands.pod:142
23490 msgid "This is used to view a file."
23491 msgstr ""
23492
23493 # type: textblock
23494 #: ../fish/guestfish-commands.pod:144
23495 msgid ""
23496 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23497 "C<less> you will get the C<less> command specifically."
23498 msgstr ""
23499
23500 # type: =head2
23501 #: ../fish/guestfish-commands.pod:147
23502 msgid "reopen"
23503 msgstr ""
23504
23505 # type: verbatim
23506 #: ../fish/guestfish-commands.pod:149
23507 #, no-wrap
23508 msgid ""
23509 "  reopen\n"
23510 "\n"
23511 msgstr ""
23512
23513 # type: textblock
23514 #: ../fish/guestfish-commands.pod:151
23515 msgid ""
23516 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23517 "normally, because the handle is closed properly when guestfish exits.  "
23518 "However this is occasionally useful for testing."
23519 msgstr ""
23520
23521 # type: =head2
23522 #: ../fish/guestfish-commands.pod:155
23523 msgid "sparse"
23524 msgstr ""
23525
23526 # type: verbatim
23527 #: ../fish/guestfish-commands.pod:157
23528 #, no-wrap
23529 msgid ""
23530 " sparse filename size\n"
23531 "\n"
23532 msgstr ""
23533
23534 # type: textblock
23535 #: ../fish/guestfish-commands.pod:159
23536 msgid ""
23537 "This creates an empty sparse file of the given size, and then adds so it can "
23538 "be further examined."
23539 msgstr ""
23540
23541 # type: textblock
23542 #: ../fish/guestfish-commands.pod:162
23543 msgid ""
23544 "In all respects it works the same as the L</alloc> command, except that the "
23545 "image file is allocated sparsely, which means that disk blocks are not "
23546 "assigned to the file until they are needed.  Sparse disk files only use "
23547 "space when written to, but they are slower and there is a danger you could "
23548 "run out of real disk space during a write operation."
23549 msgstr ""
23550
23551 # type: =head2
23552 #: ../fish/guestfish-commands.pod:172
23553 msgid "supported"
23554 msgstr ""
23555
23556 # type: verbatim
23557 #: ../fish/guestfish-commands.pod:174
23558 #, no-wrap
23559 msgid ""
23560 " supported\n"
23561 "\n"
23562 msgstr ""
23563
23564 # type: textblock
23565 #: ../fish/guestfish-commands.pod:176
23566 msgid ""
23567 "This command returns a list of the optional groups known to the daemon, and "
23568 "indicates which ones are supported by this build of the libguestfs appliance."
23569 msgstr ""
23570
23571 # type: textblock
23572 #: ../fish/guestfish-commands.pod:180
23573 msgid "See also L<guestfs(3)/AVAILABILITY>."
23574 msgstr ""
23575
23576 # type: =head2
23577 #: ../fish/guestfish-commands.pod:182
23578 msgid "time"
23579 msgstr ""
23580
23581 # type: verbatim
23582 #: ../fish/guestfish-commands.pod:184
23583 #, no-wrap
23584 msgid ""
23585 " time command args...\n"
23586 "\n"
23587 msgstr ""
23588
23589 # type: textblock
23590 #: ../fish/guestfish-commands.pod:186
23591 msgid ""
23592 "Run the command as usual, but print the elapsed time afterwards.  This can "
23593 "be useful for benchmarking operations."
23594 msgstr ""
23595
23596 # type: textblock
23597 #: ../test-tool/libguestfs-test-tool.pod:5
23598 msgid "libguestfs-test-tool - End user tests for libguestfs"
23599 msgstr ""
23600
23601 # type: verbatim
23602 #: ../test-tool/libguestfs-test-tool.pod:9
23603 #, no-wrap
23604 msgid ""
23605 " libguestfs-test-tool [--options]\n"
23606 "\n"
23607 msgstr ""
23608
23609 # type: textblock
23610 #: ../test-tool/libguestfs-test-tool.pod:13
23611 msgid ""
23612 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23613 "and developers, to allow them to check basic libguestfs functionality is "
23614 "working.  This is needed because libguestfs occasionally breaks for reasons "
23615 "beyond our control: usually because of changes in the underlying qemu or "
23616 "kernel packages, or the host environment."
23617 msgstr ""
23618
23619 # type: textblock
23620 #: ../test-tool/libguestfs-test-tool.pod:20
23621 msgid "If you suspect a problem in libguestfs, then just run:"
23622 msgstr ""
23623
23624 # type: verbatim
23625 #: ../test-tool/libguestfs-test-tool.pod:22
23626 #, no-wrap
23627 msgid ""
23628 " libguestfs-test-tool\n"
23629 "\n"
23630 msgstr ""
23631
23632 # type: textblock
23633 #: ../test-tool/libguestfs-test-tool.pod:24
23634 msgid "It will print lots of diagnostic messages."
23635 msgstr ""
23636
23637 # type: textblock
23638 #: ../test-tool/libguestfs-test-tool.pod:26
23639 msgid "If it runs to completion successfully, you will see this near the end:"
23640 msgstr ""
23641
23642 # type: verbatim
23643 #: ../test-tool/libguestfs-test-tool.pod:28
23644 #, no-wrap
23645 msgid ""
23646 " ===== TEST FINISHED OK =====\n"
23647 "\n"
23648 msgstr ""
23649
23650 # type: textblock
23651 #: ../test-tool/libguestfs-test-tool.pod:30
23652 msgid "and the test tool will exit with code 0."
23653 msgstr ""
23654
23655 # type: textblock
23656 #: ../test-tool/libguestfs-test-tool.pod:32
23657 msgid ""
23658 "If it fails (and/or exits with non-zero error code), please paste the "
23659 "B<complete, unedited> output of the test tool into a bug report.  More "
23660 "information about reporting bugs can be found on the L<http://libguestfs.org/"
23661 "> website."
23662 msgstr ""
23663
23664 # type: =item
23665 #: ../test-tool/libguestfs-test-tool.pod:41
23666 msgid "I<--help>"
23667 msgstr ""
23668
23669 # type: textblock
23670 #: ../test-tool/libguestfs-test-tool.pod:43
23671 msgid "Display short usage information and exit."
23672 msgstr ""
23673
23674 # type: =item
23675 #: ../test-tool/libguestfs-test-tool.pod:45
23676 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23677 msgstr ""
23678
23679 # type: textblock
23680 #: ../test-tool/libguestfs-test-tool.pod:47
23681 msgid ""
23682 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23683 "normally look in the C<$libexec> directory that was configured when the tool "
23684 "was built."
23685 msgstr ""
23686
23687 # type: =item
23688 #: ../test-tool/libguestfs-test-tool.pod:51
23689 msgid "I<--qemu qemu_binary>"
23690 msgstr ""
23691
23692 # type: textblock
23693 #: ../test-tool/libguestfs-test-tool.pod:53
23694 msgid ""
23695 "If you have downloaded another qemu binary, point this option at the full "
23696 "path of the binary to try it."
23697 msgstr ""
23698
23699 # type: =item
23700 #: ../test-tool/libguestfs-test-tool.pod:56
23701 msgid "I<--qemudir qemu_source_dir>"
23702 msgstr ""
23703
23704 # type: textblock
23705 #: ../test-tool/libguestfs-test-tool.pod:58
23706 msgid ""
23707 "If you have compiled qemu from source, point this option at the source "
23708 "directory to try it."
23709 msgstr ""
23710
23711 # type: =item
23712 #: ../test-tool/libguestfs-test-tool.pod:61
23713 msgid "I<--timeout N>"
23714 msgstr ""
23715
23716 # type: textblock
23717 #: ../test-tool/libguestfs-test-tool.pod:63
23718 msgid ""
23719 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23720 "does not usually need to be adjusted unless your machine is very slow."
23721 msgstr ""
23722
23723 # type: =head1
23724 #: ../test-tool/libguestfs-test-tool.pod:69
23725 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23726 msgstr ""
23727
23728 # type: textblock
23729 #: ../test-tool/libguestfs-test-tool.pod:71
23730 msgid ""
23731 "If you have compiled another version of qemu from source and would like to "
23732 "try that, then you can use the I<--qemudir> option to point to the qemu "
23733 "source directory."
23734 msgstr ""
23735
23736 # type: textblock
23737 #: ../test-tool/libguestfs-test-tool.pod:75
23738 msgid ""
23739 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23740 "option to point to the binary."
23741 msgstr ""
23742
23743 # type: textblock
23744 #: ../test-tool/libguestfs-test-tool.pod:78
23745 msgid ""
23746 "When using an alternate qemu with libguestfs, usually you would need to "
23747 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
23748 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
23749 "use either of the I<--qemudir> or I<--qemu> options."
23750 msgstr ""
23751
23752 # type: textblock
23753 #: ../test-tool/libguestfs-test-tool.pod:85
23754 msgid ""
23755 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23756 "I<1> if there was an error."
23757 msgstr ""
23758
23759 # type: =item
23760 #: ../test-tool/libguestfs-test-tool.pod:92
23761 msgid "/usr/libexec/libguestfs-test-tool-helper"
23762 msgstr ""
23763
23764 # type: textblock
23765 #: ../test-tool/libguestfs-test-tool.pod:94
23766 msgid ""
23767 "This helper program is run inside the appliance and provides additional "
23768 "tests."
23769 msgstr ""
23770
23771 # type: =item
23772 #: ../test-tool/libguestfs-test-tool.pod:97
23773 msgid "/usr/bin/mkisofs"
23774 msgstr ""
23775
23776 # type: textblock
23777 #: ../test-tool/libguestfs-test-tool.pod:99
23778 msgid ""
23779 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23780 "which is used as part of the tests."
23781 msgstr ""
23782
23783 # type: textblock
23784 #: ../test-tool/libguestfs-test-tool.pod:106
23785 msgid ""
23786 "For the full list of environment variables which may affect libguestfs, "
23787 "please see the L<guestfs(3)> manual page."
23788 msgstr ""
23789
23790 # type: textblock
23791 #: ../test-tool/libguestfs-test-tool.pod:111
23792 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23793 msgstr ""
23794
23795 # type: textblock
23796 #: ../test-tool/libguestfs-test-tool.pod:121
23797 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23798 msgstr ""
23799
23800 # type: textblock
23801 #: ../fuse/guestmount.pod:5
23802 msgid ""
23803 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23804 msgstr ""
23805
23806 # type: verbatim
23807 #: ../fuse/guestmount.pod:9
23808 #, no-wrap
23809 msgid ""
23810 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23811 "\n"
23812 msgstr ""
23813
23814 # type: verbatim
23815 #: ../fuse/guestmount.pod:11
23816 #, no-wrap
23817 msgid ""
23818 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23819 "\n"
23820 msgstr ""
23821
23822 # type: verbatim
23823 #: ../fuse/guestmount.pod:13
23824 #, no-wrap
23825 msgid ""
23826 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23827 "\n"
23828 msgstr ""
23829
23830 # type: textblock
23831 #: ../fuse/guestmount.pod:17
23832 msgid ""
23833 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23834 "machines.  If you do this, you risk disk corruption in the VM."
23835 msgstr ""
23836
23837 # type: textblock
23838 #: ../fuse/guestmount.pod:22
23839 msgid ""
23840 "The guestmount program can be used to mount virtual machine filesystems and "
23841 "other disk images on the host.  It uses libguestfs for access to the guest "
23842 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23843 "a mountable device."
23844 msgstr ""
23845
23846 # type: textblock
23847 #: ../fuse/guestmount.pod:27
23848 msgid ""
23849 "Along with other options, you have to give at least one device (I<-a> "
23850 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23851 "option) or use the I<-i> inspection option.  How this works is better "
23852 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
23853 "below."
23854 msgstr ""
23855
23856 # type: textblock
23857 #: ../fuse/guestmount.pod:33
23858 msgid ""
23859 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23860 "by you, and the filesystem will not be visible to any other users unless you "
23861 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23862 "the filesystem, use the C<fusermount -u> command."
23863 msgstr ""
23864
23865 # type: textblock
23866 #: ../fuse/guestmount.pod:41
23867 msgid ""
23868 "For a typical Windows guest which has its main filesystem on the first "
23869 "partition:"
23870 msgstr ""
23871
23872 # type: verbatim
23873 #: ../fuse/guestmount.pod:44
23874 #, no-wrap
23875 msgid ""
23876 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23877 "\n"
23878 msgstr ""
23879
23880 # type: textblock
23881 #: ../fuse/guestmount.pod:46
23882 msgid ""
23883 "For a typical Linux guest which has a /boot filesystem on the first "
23884 "partition, and the root filesystem on a logical volume:"
23885 msgstr ""
23886
23887 # type: verbatim
23888 #: ../fuse/guestmount.pod:49
23889 #, no-wrap
23890 msgid ""
23891 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23892 "\n"
23893 msgstr ""
23894
23895 # type: textblock
23896 #: ../fuse/guestmount.pod:51
23897 msgid "To get libguestfs to detect guest mountpoints for you:"
23898 msgstr ""
23899
23900 # type: verbatim
23901 #: ../fuse/guestmount.pod:53
23902 #, no-wrap
23903 msgid ""
23904 " guestmount -a guest.img -i --ro /mnt\n"
23905 "\n"
23906 msgstr ""
23907
23908 # type: textblock
23909 #: ../fuse/guestmount.pod:55
23910 msgid "For a libvirt guest called \"Guest\" you could do:"
23911 msgstr ""
23912
23913 # type: verbatim
23914 #: ../fuse/guestmount.pod:57
23915 #, no-wrap
23916 msgid ""
23917 " guestmount -d Guest -i --ro /mnt\n"
23918 "\n"
23919 msgstr ""
23920
23921 # type: textblock
23922 #: ../fuse/guestmount.pod:59
23923 msgid ""
23924 "If you don't know what filesystems are contained in a guest or disk image, "
23925 "use L<virt-list-filesystems(1)> first:"
23926 msgstr ""
23927
23928 # type: verbatim
23929 #: ../fuse/guestmount.pod:62
23930 #, no-wrap
23931 msgid ""
23932 " virt-list-filesystems MyGuest\n"
23933 "\n"
23934 msgstr ""
23935
23936 # type: textblock
23937 #: ../fuse/guestmount.pod:64
23938 msgid ""
23939 "If you want to trace the libguestfs calls but without excessive debugging "
23940 "information, we recommend:"
23941 msgstr ""
23942
23943 # type: verbatim
23944 #: ../fuse/guestmount.pod:67
23945 #, no-wrap
23946 msgid ""
23947 " guestmount [...] --trace /mnt\n"
23948 "\n"
23949 msgstr ""
23950
23951 # type: textblock
23952 #: ../fuse/guestmount.pod:69
23953 msgid "If you want to debug the program, we recommend:"
23954 msgstr ""
23955
23956 # type: verbatim
23957 #: ../fuse/guestmount.pod:71
23958 #, no-wrap
23959 msgid ""
23960 " guestmount [...] --trace --verbose /mnt\n"
23961 "\n"
23962 msgstr ""
23963
23964 # type: textblock
23965 #: ../fuse/guestmount.pod:79
23966 msgid "Add a block device or virtual machine image."
23967 msgstr ""
23968
23969 # type: =item
23970 #: ../fuse/guestmount.pod:96
23971 msgid "B<--dir-cache-timeout N>"
23972 msgstr ""
23973
23974 # type: textblock
23975 #: ../fuse/guestmount.pod:98
23976 msgid ""
23977 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23978 "seconds.  The readdir cache [actually, there are several semi-independent "
23979 "caches] is populated after a readdir(2) call with the stat and extended "
23980 "attributes of the files in the directory, in anticipation that they will be "
23981 "requested soon after."
23982 msgstr ""
23983
23984 # type: textblock
23985 #: ../fuse/guestmount.pod:104
23986 msgid ""
23987 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23988 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23989 "requests, only cache existing ones."
23990 msgstr ""
23991
23992 # type: textblock
23993 #: ../fuse/guestmount.pod:115
23994 msgid ""
23995 "If you have untrusted raw-format guest disk images, you should use this "
23996 "option to specify the disk format.  This avoids a possible security problem "
23997 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
23998 "guestfs_add_drive_opts>."
23999 msgstr ""
24000
24001 # type: =item
24002 #: ../fuse/guestmount.pod:120
24003 msgid "B<--fuse-help>"
24004 msgstr ""
24005
24006 # type: textblock
24007 #: ../fuse/guestmount.pod:122
24008 msgid "Display help on special FUSE options (see I<-o> below)."
24009 msgstr ""
24010
24011 # type: textblock
24012 #: ../fuse/guestmount.pod:126
24013 msgid "Display brief help and exit."
24014 msgstr ""
24015
24016 # type: =item
24017 #: ../fuse/guestmount.pod:134
24018 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24019 msgstr ""
24020
24021 # type: textblock
24022 #: ../fuse/guestmount.pod:136
24023 msgid ""
24024 "Mount the named partition or logical volume on the given mountpoint B<in the "
24025 "guest> (this has nothing to do with mountpoints in the host)."
24026 msgstr ""
24027
24028 # type: textblock
24029 #: ../fuse/guestmount.pod:139
24030 msgid ""
24031 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24032 "something on C</>."
24033 msgstr ""
24034
24035 # type: textblock
24036 #: ../fuse/guestmount.pod:144
24037 msgid ""
24038 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
24039 "unmounted.  If you specify this option, then we don't attempt to sync the "
24040 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
24041 msgstr ""
24042
24043 # type: =item
24044 #: ../fuse/guestmount.pod:149
24045 msgid "B<-o option> | B<--option option>"
24046 msgstr ""
24047
24048 # type: textblock
24049 #: ../fuse/guestmount.pod:151
24050 msgid "Pass extra options to FUSE."
24051 msgstr ""
24052
24053 # type: textblock
24054 #: ../fuse/guestmount.pod:153
24055 msgid ""
24056 "To get a list of all the extra options supported by FUSE, use the command "
24057 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24058 "of them are a good idea."
24059 msgstr ""
24060
24061 # type: verbatim
24062 #: ../fuse/guestmount.pod:157
24063 #, no-wrap
24064 msgid ""
24065 " guestmount --fuse-help\n"
24066 "\n"
24067 msgstr ""
24068
24069 # type: textblock
24070 #: ../fuse/guestmount.pod:159
24071 msgid "Some potentially useful FUSE options:"
24072 msgstr ""
24073
24074 # type: =item
24075 #: ../fuse/guestmount.pod:163
24076 msgid "B<-o allow_other>"
24077 msgstr ""
24078
24079 # type: textblock
24080 #: ../fuse/guestmount.pod:165
24081 msgid "Allow other users to see the filesystem."
24082 msgstr ""
24083
24084 # type: =item
24085 #: ../fuse/guestmount.pod:167
24086 msgid "B<-o attr_timeout=N>"
24087 msgstr ""
24088
24089 # type: textblock
24090 #: ../fuse/guestmount.pod:169
24091 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24092 msgstr ""
24093
24094 # type: =item
24095 #: ../fuse/guestmount.pod:171
24096 msgid "B<-o kernel_cache>"
24097 msgstr ""
24098
24099 # type: textblock
24100 #: ../fuse/guestmount.pod:173
24101 msgid ""
24102 "Allow the kernel to cache files (reduces the number of reads that have to go "
24103 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24104 "afford the extra memory usage."
24105 msgstr ""
24106
24107 # type: =item
24108 #: ../fuse/guestmount.pod:177
24109 msgid "B<-o uid=N> B<-o gid=N>"
24110 msgstr ""
24111
24112 # type: textblock
24113 #: ../fuse/guestmount.pod:179
24114 msgid ""
24115 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24116 "the chosen values."
24117 msgstr ""
24118
24119 # type: textblock
24120 #: ../fuse/guestmount.pod:186
24121 msgid ""
24122 "Add devices and mount everything read-only.  Also disallow writes and make "
24123 "the disk appear read-only to FUSE."
24124 msgstr ""
24125
24126 # type: textblock
24127 #: ../fuse/guestmount.pod:189
24128 msgid ""
24129 "This is highly recommended if you are not going to edit the guest disk.  If "
24130 "the guest is running and this option is I<not> supplied, then there is a "
24131 "strong risk of disk corruption in the guest.  We try to prevent this from "
24132 "happening, but it is not always possible."
24133 msgstr ""
24134
24135 # type: textblock
24136 #: ../fuse/guestmount.pod:196
24137 msgid "Enable SELinux support for the guest."
24138 msgstr ""
24139
24140 # type: textblock
24141 #: ../fuse/guestmount.pod:200
24142 msgid "Enable verbose messages from underlying libguestfs."
24143 msgstr ""
24144
24145 # type: textblock
24146 #: ../fuse/guestmount.pod:204
24147 msgid "Display the program version and exit."
24148 msgstr ""
24149
24150 # type: =item
24151 #: ../fuse/guestmount.pod:206
24152 msgid "B<-x> | B<--trace>"
24153 msgstr ""
24154
24155 # type: textblock
24156 #: ../fuse/guestmount.pod:208
24157 msgid "Trace libguestfs calls."
24158 msgstr ""
24159
24160 # type: textblock
24161 #: ../fuse/guestmount.pod:210
24162 msgid "This also stops the daemon from forking into the background."
24163 msgstr ""
24164
24165 # type: textblock
24166 #: ../fuse/guestmount.pod:216
24167 msgid ""
24168 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24169 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
24170 "net/>."
24171 msgstr ""
24172
24173 # type: textblock
24174 #: ../inspector/virt-inspector.pl:35
24175 msgid ""
24176 "virt-inspector - Display operating system version and other information "
24177 "about a virtual machine"
24178 msgstr ""
24179
24180 # type: verbatim
24181 #: ../inspector/virt-inspector.pl:39
24182 #, no-wrap
24183 msgid ""
24184 " virt-inspector [--connect URI] domname\n"
24185 "\n"
24186 msgstr ""
24187
24188 # type: verbatim
24189 #: ../inspector/virt-inspector.pl:41
24190 #, no-wrap
24191 msgid ""
24192 " virt-inspector guest.img [guest.img ...]\n"
24193 "\n"
24194 msgstr ""
24195
24196 # type: textblock
24197 #: ../inspector/virt-inspector.pl:45
24198 msgid ""
24199 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24200 "determine the version of the operating system and other information about "
24201 "the virtual machine."
24202 msgstr ""
24203
24204 # type: textblock
24205 #: ../inspector/virt-inspector.pl:49
24206 msgid "Virt-inspector produces XML output for feeding into other programs."
24207 msgstr ""
24208
24209 # type: textblock
24210 #: ../inspector/virt-inspector.pl:51
24211 msgid ""
24212 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24213 "libvirt domain (see: C<virsh list --all>)."
24214 msgstr ""
24215
24216 # type: textblock
24217 #: ../inspector/virt-inspector.pl:54
24218 msgid ""
24219 "You can also run virt-inspector directly on disk images from a single "
24220 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24221 "has several block devices, in which case you should list them one after "
24222 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24223 "to the guest's C</dev/sdb> and so on."
24224 msgstr ""
24225
24226 # type: textblock
24227 #: ../inspector/virt-inspector.pl:60
24228 msgid ""
24229 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24230 "inspect several virtual machines, you have to run virt-inspector several "
24231 "times (for example, from a shell script for-loop)."
24232 msgstr ""
24233
24234 # type: textblock
24235 #: ../inspector/virt-inspector.pl:65
24236 msgid ""
24237 "Because virt-inspector needs direct access to guest images, it won't "
24238 "normally work over remote libvirt connections."
24239 msgstr ""
24240
24241 # type: textblock
24242 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
24243 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
24244 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89
24245 #: ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113
24246 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
24247 msgid "Display brief help."
24248 msgstr ""
24249
24250 # type: =item
24251 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
24252 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
24253 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
24254 #: ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114
24255 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
24256 #: ../tools/virt-list-partitions.pl:67
24257 msgid "B<--version>"
24258 msgstr ""
24259
24260 # type: textblock
24261 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
24262 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
24263 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
24264 #: ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116
24265 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
24266 #: ../tools/virt-list-partitions.pl:69
24267 msgid "Display version number and exit."
24268 msgstr ""
24269
24270 # type: =item
24271 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
24272 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
24273 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103
24274 #: ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135
24275 #: ../tools/virt-list-partitions.pl:75
24276 msgid "B<--connect URI> | B<-c URI>"
24277 msgstr ""
24278
24279 # type: textblock
24280 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
24281 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
24282 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105
24283 #: ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137
24284 #: ../tools/virt-list-partitions.pl:77
24285 msgid ""
24286 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24287 "to the default libvirt hypervisor."
24288 msgstr ""
24289
24290 # type: textblock
24291 #: ../inspector/virt-inspector.pl:97
24292 msgid ""
24293 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24294 "you specify guest block devices directly, then libvirt is not used at all."
24295 msgstr ""
24296
24297 # type: =item
24298 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
24299 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
24300 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
24301 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115
24302 #: ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147
24303 #: ../tools/virt-list-partitions.pl:87
24304 msgid "B<--format> raw"
24305 msgstr ""
24306
24307 # type: textblock
24308 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
24309 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
24310 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
24311 #: ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136
24312 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
24313 msgid ""
24314 "Specify the format of disk images given on the command line.  If this is "
24315 "omitted then the format is autodetected from the content of the disk image."
24316 msgstr ""
24317
24318 # type: textblock
24319 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
24320 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
24321 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
24322 #: ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140
24323 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
24324 msgid ""
24325 "If disk images are requested from libvirt, then this program asks libvirt "
24326 "for this information.  In this case, the value of the format parameter is "
24327 "ignored."
24328 msgstr ""
24329
24330 # type: textblock
24331 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
24332 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
24333 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
24334 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
24335 #: ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144
24336 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
24337 msgid ""
24338 "If working with untrusted raw-format guest disk images, you should ensure "
24339 "the format is always specified."
24340 msgstr ""
24341
24342 # type: =head1
24343 #: ../inspector/virt-inspector.pl:149
24344 msgid "XML FORMAT"
24345 msgstr ""
24346
24347 # type: textblock
24348 #: ../inspector/virt-inspector.pl:151
24349 msgid ""
24350 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
24351 "supplied with libguestfs.  This section is just an overview."
24352 msgstr ""
24353
24354 # type: textblock
24355 #: ../inspector/virt-inspector.pl:154
24356 msgid ""
24357 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
24358 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
24359 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
24360 "which is vanishingly rare in real world VMs."
24361 msgstr ""
24362
24363 # type: =head2
24364 #: ../inspector/virt-inspector.pl:159
24365 msgid "E<lt>operatingsystemE<gt>"
24366 msgstr ""
24367
24368 # type: textblock
24369 #: ../inspector/virt-inspector.pl:161
24370 msgid ""
24371 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
24372 "describe the operating system, its architecture, the descriptive \"product "
24373 "name\" string, the type of OS and so on, as in this example:"
24374 msgstr ""
24375
24376 # type: verbatim
24377 #: ../inspector/virt-inspector.pl:165
24378 #, no-wrap
24379 msgid ""
24380 " <operatingsystems>\n"
24381 "   <operatingsystem>\n"
24382 "     <root>/dev/sda2</root>\n"
24383 "     <name>windows</name>\n"
24384 "     <arch>i386</arch>\n"
24385 "     <distro>windows</distro>\n"
24386 "     <product_name>Windows 7 Enterprise</product_name>\n"
24387 "     <major_version>6</major_version>\n"
24388 "     <minor_version>1</minor_version>\n"
24389 "     <windows_systemroot>/Windows</windows_systemroot>\n"
24390 "\n"
24391 msgstr ""
24392
24393 # type: textblock
24394 #: ../inspector/virt-inspector.pl:176
24395 msgid ""
24396 "These fields are derived from the libguestfs inspection API, and you can "
24397 "find more details in L<guestfs(3)/INSPECTION>."
24398 msgstr ""
24399
24400 # type: textblock
24401 #: ../inspector/virt-inspector.pl:179
24402 msgid ""
24403 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
24404 "of view of libguestfs (block devices may have completely different names "
24405 "inside the VM itself)."
24406 msgstr ""
24407
24408 # type: =head2
24409 #: ../inspector/virt-inspector.pl:240
24410 msgid "E<lt>mountpointsE<gt>"
24411 msgstr ""
24412
24413 # type: textblock
24414 #: ../inspector/virt-inspector.pl:242
24415 msgid ""
24416 "Un*x-like guests typically have multiple filesystems which are mounted at "
24417 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
24418 "element which looks like this:"
24419 msgstr ""
24420
24421 # type: verbatim
24422 #: ../inspector/virt-inspector.pl:246
24423 #, no-wrap
24424 msgid ""
24425 " <operatingsystems>\n"
24426 "   <operatingsystem>\n"
24427 "     ...\n"
24428 "     <mountpoints>\n"
24429 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
24430 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
24431 "     </mountpoints>\n"
24432 "\n"
24433 msgstr ""
24434
24435 # type: textblock
24436 #: ../inspector/virt-inspector.pl:254
24437 msgid ""
24438 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
24439 "and may have completely different names inside the guest.  Only mountable "
24440 "filesystems appear in this list, not things like swap devices."
24441 msgstr ""
24442
24443 # type: =head2
24444 #: ../inspector/virt-inspector.pl:276
24445 msgid "E<lt>filesystemsE<gt>"
24446 msgstr ""
24447
24448 # type: textblock
24449 #: ../inspector/virt-inspector.pl:278
24450 msgid ""
24451 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
24452 "filesystems belonging to the guest, including swap and empty partitions.  "
24453 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
24454 "this OS or shared by this OS and other OSes)."
24455 msgstr ""
24456
24457 # type: textblock
24458 #: ../inspector/virt-inspector.pl:283
24459 msgid "You might see something like this:"
24460 msgstr ""
24461
24462 # type: verbatim
24463 #: ../inspector/virt-inspector.pl:285
24464 #, no-wrap
24465 msgid ""
24466 " <operatingsystems>\n"
24467 "   <operatingsystem>\n"
24468 "     ...\n"
24469 "     <filesystems>\n"
24470 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24471 "         <type>ext4</type>\n"
24472 "         <label>Fedora-13-x86_64</label>\n"
24473 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24474 "       </filesystem>\n"
24475 "\n"
24476 msgstr ""
24477
24478 # type: textblock
24479 #: ../inspector/virt-inspector.pl:295
24480 msgid ""
24481 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24482 "the label, and the UUID."
24483 msgstr ""
24484
24485 # type: =head2
24486 #: ../inspector/virt-inspector.pl:337
24487 msgid "E<lt>applicationsE<gt>"
24488 msgstr ""
24489
24490 # type: textblock
24491 #: ../inspector/virt-inspector.pl:339
24492 msgid ""
24493 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24494 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24495 "machine.  At the moment we are only able to list RPMs and Debian packages "
24496 "installed, but in future we will support other Linux distros and Windows."
24497 msgstr ""
24498
24499 # type: textblock
24500 #: ../inspector/virt-inspector.pl:345
24501 msgid ""
24502 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
24503 "Typical values would be C<rpm> and C<deb>."
24504 msgstr ""
24505
24506 # type: textblock
24507 #: ../inspector/virt-inspector.pl:348
24508 msgid ""
24509 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
24510 "Typical values include C<yum>, C<up2date> and C<apt>"
24511 msgstr ""
24512
24513 # type: textblock
24514 #: ../inspector/virt-inspector.pl:351
24515 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24516 msgstr ""
24517
24518 # type: verbatim
24519 #: ../inspector/virt-inspector.pl:354
24520 #, no-wrap
24521 msgid ""
24522 " <operatingsystems>\n"
24523 "   <operatingsystem>\n"
24524 "     ...\n"
24525 "     <applications>\n"
24526 "       <application>\n"
24527 "         <name>coreutils</name>\n"
24528 "         <version>8.5</version>\n"
24529 "         <release>1</release>\n"
24530 "       </application>\n"
24531 "\n"
24532 msgstr ""
24533
24534 # type: textblock
24535 #: ../inspector/virt-inspector.pl:364
24536 msgid ""
24537 "(The version and release fields may not be available for some package types)."
24538 msgstr ""
24539
24540 # type: =head1
24541 #: ../inspector/virt-inspector.pl:544
24542 msgid "USING XPATH"
24543 msgstr ""
24544
24545 # type: textblock
24546 #: ../inspector/virt-inspector.pl:546
24547 msgid ""
24548 "You can use the XPath query language, and/or the xpath tool, in order to "
24549 "select parts of the XML."
24550 msgstr ""
24551
24552 # type: verbatim
24553 #: ../inspector/virt-inspector.pl:551
24554 #, no-wrap
24555 msgid ""
24556 " $ virt-inspector Guest | xpath //filesystems\n"
24557 " Found 1 nodes:\n"
24558 " -- NODE --\n"
24559 " <filesystems>\n"
24560 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24561 "        <type>ext4</type>\n"
24562 " [etc]\n"
24563 "\n"
24564 msgstr ""
24565
24566 # type: verbatim
24567 #: ../inspector/virt-inspector.pl:559
24568 #, no-wrap
24569 msgid ""
24570 " $ virt-inspector Guest | \\\n"
24571 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24572 " Query didn't return a nodeset. Value: ext4\n"
24573 "\n"
24574 msgstr ""
24575
24576 # type: =head2
24577 #: ../inspector/virt-inspector.pl:563 ../tools/virt-edit.pl:343
24578 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
24579 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
24580 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
24581 #: ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274
24582 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
24583 #: ../tools/virt-list-partitions.pl:247
24584 msgid "SHELL QUOTING"
24585 msgstr ""
24586
24587 # type: textblock
24588 #: ../inspector/virt-inspector.pl:565 ../tools/virt-edit.pl:345
24589 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
24590 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
24591 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180
24592 #: ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262
24593 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
24594 msgid ""
24595 "Libvirt guest names can contain arbitrary characters, some of which have "
24596 "meaning to the shell such as C<#> and space.  You may need to quote or "
24597 "escape these characters on the command line.  See the shell manual page L<sh"
24598 "(1)> for details."
24599 msgstr ""
24600
24601 # type: textblock
24602 #: ../inspector/virt-inspector.pl:572
24603 msgid ""
24604 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24605 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
24606 msgstr ""
24607
24608 # type: textblock
24609 #: ../inspector/virt-inspector.pl:586 ../tools/virt-edit.pl:364
24610 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
24611 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
24612 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197
24613 #: ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279
24614 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
24615 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24616 msgstr ""
24617
24618 # type: textblock
24619 #: ../inspector/virt-inspector.pl:590
24620 msgid "Matthew Booth L<mbooth@redhat.com>"
24621 msgstr ""
24622
24623 # type: textblock
24624 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516
24625 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
24626 msgid "Copyright (C) 2010 Red Hat Inc."
24627 msgstr ""
24628
24629 # type: textblock
24630 #: ../tools/virt-edit.pl:34
24631 msgid "virt-edit - Edit a file in a virtual machine"
24632 msgstr ""
24633
24634 # type: verbatim
24635 #: ../tools/virt-edit.pl:38
24636 #, no-wrap
24637 msgid ""
24638 " virt-edit [--options] domname file\n"
24639 "\n"
24640 msgstr ""
24641
24642 # type: verbatim
24643 #: ../tools/virt-edit.pl:40
24644 #, no-wrap
24645 msgid ""
24646 " virt-edit [--options] disk.img [disk.img ...] file\n"
24647 "\n"
24648 msgstr ""
24649
24650 # type: verbatim
24651 #: ../tools/virt-edit.pl:42
24652 #, no-wrap
24653 msgid ""
24654 " virt-edit [domname|disk.img] file -e 'expr'\n"
24655 "\n"
24656 msgstr ""
24657
24658 # type: textblock
24659 #: ../tools/virt-edit.pl:46
24660 msgid ""
24661 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24662 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24663 "doing this, but doesn't catch all cases."
24664 msgstr ""
24665
24666 # type: textblock
24667 #: ../tools/virt-edit.pl:52
24668 msgid ""
24669 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24670 "the named virtual machine (or disk image)."
24671 msgstr ""
24672
24673 # type: textblock
24674 #: ../tools/virt-edit.pl:55
24675 msgid ""
24676 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24677 "you should look at the L<guestfish(1)> tool."
24678 msgstr ""
24679
24680 # type: textblock
24681 #: ../tools/virt-edit.pl:60
24682 msgid "Edit the named files interactively:"
24683 msgstr ""
24684
24685 # type: verbatim
24686 #: ../tools/virt-edit.pl:62
24687 #, no-wrap
24688 msgid ""
24689 " virt-edit mydomain /boot/grub/grub.conf\n"
24690 "\n"
24691 msgstr ""
24692
24693 # type: verbatim
24694 #: ../tools/virt-edit.pl:64
24695 #, no-wrap
24696 msgid ""
24697 " virt-edit mydomain /etc/passwd\n"
24698 "\n"
24699 msgstr ""
24700
24701 # type: textblock
24702 #: ../tools/virt-edit.pl:66
24703 msgid ""
24704 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
24705 "below).  To change the init default level to 5:"
24706 msgstr ""
24707
24708 # type: verbatim
24709 #: ../tools/virt-edit.pl:70
24710 #, no-wrap
24711 msgid ""
24712 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
24713 "\n"
24714 msgstr ""
24715
24716 # type: =item
24717 #: ../tools/virt-edit.pl:96
24718 msgid "B<--backup extension> | B<-b extension>"
24719 msgstr ""
24720
24721 # type: textblock
24722 #: ../tools/virt-edit.pl:98
24723 msgid ""
24724 "Create a backup of the original file I<in the guest disk image>.  The backup "
24725 "has the original filename with C<extension> added."
24726 msgstr ""
24727
24728 # type: textblock
24729 #: ../tools/virt-edit.pl:101
24730 msgid ""
24731 "Usually the first character of C<extension> would be a dot C<.> so you would "
24732 "write:"
24733 msgstr ""
24734
24735 # type: verbatim
24736 #: ../tools/virt-edit.pl:104
24737 #, no-wrap
24738 msgid ""
24739 " virt-edit -b .orig [etc]\n"
24740 "\n"
24741 msgstr ""
24742
24743 # type: textblock
24744 #: ../tools/virt-edit.pl:106
24745 msgid "By default, no backup file is made."
24746 msgstr ""
24747
24748 # type: textblock
24749 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
24750 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
24751 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108
24752 #: ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140
24753 #: ../tools/virt-list-partitions.pl:80
24754 msgid ""
24755 "If you specify guest block devices directly, then libvirt is not used at all."
24756 msgstr ""
24757
24758 # type: =item
24759 #: ../tools/virt-edit.pl:141
24760 msgid "B<--expr EXPR> | B<-e EXPR>"
24761 msgstr ""
24762
24763 # type: textblock
24764 #: ../tools/virt-edit.pl:143
24765 msgid ""
24766 "Instead of launching the external editor, non-interactively apply the Perl "
24767 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
24768 "EDITING> below."
24769 msgstr ""
24770
24771 # type: textblock
24772 #: ../tools/virt-edit.pl:147
24773 msgid ""
24774 "Be careful to properly quote the expression to prevent it from being altered "
24775 "by the shell."
24776 msgstr ""
24777
24778 # type: =head1
24779 #: ../tools/virt-edit.pl:268
24780 msgid "NON-INTERACTIVE EDITING"
24781 msgstr ""
24782
24783 # type: textblock
24784 #: ../tools/virt-edit.pl:270
24785 msgid ""
24786 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24787 "administrator can interactively edit the file."
24788 msgstr ""
24789
24790 # type: textblock
24791 #: ../tools/virt-edit.pl:273
24792 msgid ""
24793 "There are two ways also to use C<virt-edit> from scripts in order to make "
24794 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24795 "like this, it's less error-prone to write scripts directly using the "
24796 "libguestfs API and Augeas for configuration file editing.)"
24797 msgstr ""
24798
24799 # type: textblock
24800 #: ../tools/virt-edit.pl:279
24801 msgid ""
24802 "The first method is to temporarily set C<$EDITOR> to any script or program "
24803 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24804 "update C<tmpfile> in place however it likes."
24805 msgstr ""
24806
24807 # type: textblock
24808 #: ../tools/virt-edit.pl:283
24809 msgid ""
24810 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24811 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24812 "instances of C<foo> with C<bar> in a file:"
24813 msgstr ""
24814
24815 # type: verbatim
24816 #: ../tools/virt-edit.pl:287
24817 #, no-wrap
24818 msgid ""
24819 " virt-edit domname filename -e 's/foo/bar/'\n"
24820 "\n"
24821 msgstr ""
24822
24823 # type: textblock
24824 #: ../tools/virt-edit.pl:289
24825 msgid ""
24826 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24827 "For example to delete root's password you could do:"
24828 msgstr ""
24829
24830 # type: verbatim
24831 #: ../tools/virt-edit.pl:292
24832 #, no-wrap
24833 msgid ""
24834 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24835 "\n"
24836 msgstr ""
24837
24838 # type: textblock
24839 #: ../tools/virt-edit.pl:294
24840 msgid ""
24841 "What really happens is that the snippet is evaluated as a Perl expression "
24842 "for each line of the file.  The line, including the final C<\\n>, is passed "
24843 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24844 msgstr ""
24845
24846 # type: textblock
24847 #: ../tools/virt-edit.pl:299
24848 msgid ""
24849 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24850 "C<apache> user account from the password file you can do:"
24851 msgstr ""
24852
24853 # type: verbatim
24854 #: ../tools/virt-edit.pl:302
24855 #, no-wrap
24856 msgid ""
24857 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24858 "\n"
24859 msgstr ""
24860
24861 # type: textblock
24862 #: ../tools/virt-edit.pl:304
24863 msgid ""
24864 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24865 "the end of the file is rather difficult this way since there is no concept "
24866 "of \"last line of the file\" - your expression just doesn't get called "
24867 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24868 "want to do this."
24869 msgstr ""
24870
24871 # type: textblock
24872 #: ../tools/virt-edit.pl:310
24873 msgid ""
24874 "The variable C<$lineno> contains the current line number.  As is "
24875 "traditional, the first line in the file is number C<1>."
24876 msgstr ""
24877
24878 # type: textblock
24879 #: ../tools/virt-edit.pl:313
24880 msgid ""
24881 "The return value from the expression is ignored, but the expression may call "
24882 "C<die> in order to abort the whole program, leaving the original file "
24883 "untouched."
24884 msgstr ""
24885
24886 # type: textblock
24887 #: ../tools/virt-edit.pl:317
24888 msgid ""
24889 "Remember when matching the end of a line that C<$_> may contain the final C<"
24890 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24891 "newline then neither of these.  Thus to match or substitute some text at the "
24892 "end of a line, use this regular expression:"
24893 msgstr ""
24894
24895 # type: verbatim
24896 #: ../tools/virt-edit.pl:322
24897 #, no-wrap
24898 msgid ""
24899 " /some text(\\r?\\n)?$/\n"
24900 "\n"
24901 msgstr ""
24902
24903 # type: textblock
24904 #: ../tools/virt-edit.pl:324
24905 msgid ""
24906 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
24907 "$_> itself (since that would remove all newlines from the file):"
24908 msgstr ""
24909
24910 # type: verbatim
24911 #: ../tools/virt-edit.pl:328
24912 #, no-wrap
24913 msgid ""
24914 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24915 "\n"
24916 msgstr ""
24917
24918 # type: =item
24919 #: ../tools/virt-edit.pl:334
24920 msgid "C<EDITOR>"
24921 msgstr ""
24922
24923 # type: textblock
24924 #: ../tools/virt-edit.pl:336
24925 msgid ""
24926 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
24927 "\"emacs -nw\">"
24928 msgstr ""
24929
24930 # type: textblock
24931 #: ../tools/virt-edit.pl:339
24932 msgid "If not set, C<vi> is used."
24933 msgstr ""
24934
24935 # type: textblock
24936 #: ../tools/virt-edit.pl:352
24937 msgid ""
24938 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
24939 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
24940 "L<perlre(1)>."
24941 msgstr ""
24942
24943 # type: =head1
24944 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
24945 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
24946 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
24947 #: ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292
24948 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
24949 #: ../tools/virt-list-partitions.pl:265
24950 msgid "AUTHOR"
24951 msgstr ""
24952
24953 # type: textblock
24954 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
24955 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
24956 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24957 msgstr ""
24958
24959 # type: textblock
24960 #: ../tools/virt-win-reg.pl:37
24961 msgid ""
24962 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
24963 msgstr ""
24964
24965 # type: verbatim
24966 #: ../tools/virt-win-reg.pl:41
24967 #, no-wrap
24968 msgid ""
24969 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24970 "\n"
24971 msgstr ""
24972
24973 # type: verbatim
24974 #: ../tools/virt-win-reg.pl:43
24975 #, no-wrap
24976 msgid ""
24977 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
24978 "\n"
24979 msgstr ""
24980
24981 # type: verbatim
24982 #: ../tools/virt-win-reg.pl:45
24983 #, no-wrap
24984 msgid ""
24985 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
24986 "\n"
24987 msgstr ""
24988
24989 # type: verbatim
24990 #: ../tools/virt-win-reg.pl:47
24991 #, no-wrap
24992 msgid ""
24993 " virt-win-reg --merge domname [input.reg ...]\n"
24994 "\n"
24995 msgstr ""
24996
24997 # type: verbatim
24998 #: ../tools/virt-win-reg.pl:49
24999 #, no-wrap
25000 msgid ""
25001 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25002 "\n"
25003 msgstr ""
25004
25005 # type: textblock
25006 #: ../tools/virt-win-reg.pl:53
25007 msgid ""
25008 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25009 "virtual machines.  If you do this, you I<will> get irreversible disk "
25010 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25011 "but doesn't catch all cases."
25012 msgstr ""
25013
25014 # type: textblock
25015 #: ../tools/virt-win-reg.pl:58
25016 msgid ""
25017 "Modifying the Windows Registry is an inherently risky operation.  The format "
25018 "is deliberately obscure and undocumented, and Registry changes can leave the "
25019 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25020 "you have a reliable backup first."
25021 msgstr ""
25022
25023 # type: textblock
25024 #: ../tools/virt-win-reg.pl:65
25025 msgid ""
25026 "This program can export and merge Windows Registry entries from a Windows "
25027 "guest."
25028 msgstr ""
25029
25030 # type: textblock
25031 #: ../tools/virt-win-reg.pl:68
25032 msgid ""
25033 "The first parameter is the libvirt guest name or the raw disk image of a "
25034 "Windows guest."
25035 msgstr ""
25036
25037 # type: textblock
25038 #: ../tools/virt-win-reg.pl:71
25039 msgid ""
25040 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
25041 "exported (recursively).  For example:"
25042 msgstr ""
25043
25044 # type: verbatim
25045 #: ../tools/virt-win-reg.pl:74
25046 #, no-wrap
25047 msgid ""
25048 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25049 "\n"
25050 msgstr ""
25051
25052 # type: textblock
25053 #: ../tools/virt-win-reg.pl:76
25054 msgid ""
25055 "You can also display single values from within registry keys, for example:"
25056 msgstr ""
25057
25058 # type: verbatim
25059 #: ../tools/virt-win-reg.pl:79
25060 #, no-wrap
25061 msgid ""
25062 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25063 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25064 " Windows 7 Enterprise\n"
25065 "\n"
25066 msgstr ""
25067
25068 # type: textblock
25069 #: ../tools/virt-win-reg.pl:83
25070 msgid ""
25071 "With C<--merge>, you can merge a textual regedit file into the Windows "
25072 "Registry:"
25073 msgstr ""
25074
25075 # type: verbatim
25076 #: ../tools/virt-win-reg.pl:86
25077 #, no-wrap
25078 msgid ""
25079 " $ virt-win-reg --merge Windows7 changes.reg\n"
25080 "\n"
25081 msgstr ""
25082
25083 # type: =head2
25084 #: ../tools/virt-win-reg.pl:88
25085 msgid "SUPPORTED SYSTEMS"
25086 msgstr ""
25087
25088 # type: textblock
25089 #: ../tools/virt-win-reg.pl:90
25090 msgid ""
25091 "The program currently supports Windows NT-derived guests starting with "
25092 "Windows XP through to at least Windows 7."
25093 msgstr ""
25094
25095 # type: textblock
25096 #: ../tools/virt-win-reg.pl:93
25097 msgid ""
25098 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
25099 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
25100 "and C<HKEY_USERS\\.DEFAULT>."
25101 msgstr ""
25102
25103 # type: textblock
25104 #: ../tools/virt-win-reg.pl:97
25105 msgid ""
25106 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25107 "C<HKEY_USERS>."
25108 msgstr ""
25109
25110 # type: textblock
25111 #: ../tools/virt-win-reg.pl:100
25112 msgid ""
25113 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25114 "time."
25115 msgstr ""
25116
25117 # type: =head2
25118 #: ../tools/virt-win-reg.pl:103
25119 msgid "NOTE"
25120 msgstr ""
25121
25122 # type: textblock
25123 #: ../tools/virt-win-reg.pl:105
25124 msgid ""
25125 "This program is only meant for simple access to the registry.  If you want "
25126 "to do complicated things with the registry, we suggest you download the "
25127 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25128 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25129 "L<hivexregedit(1)>."
25130 msgstr ""
25131
25132 # type: =head2
25133 #: ../tools/virt-win-reg.pl:111
25134 msgid "ENCODING"
25135 msgstr ""
25136
25137 # type: textblock
25138 #: ../tools/virt-win-reg.pl:113
25139 msgid ""
25140 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25141 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
25142 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
25143 "Windows-style line endings, you may need to reencode the whole file before "
25144 "or after processing."
25145 msgstr ""
25146
25147 # type: textblock
25148 #: ../tools/virt-win-reg.pl:119
25149 msgid ""
25150 "To reencode a file from Windows format to Linux (before processing it with "
25151 "the C<--merge> option), you would do something like this:"
25152 msgstr ""
25153
25154 # type: verbatim
25155 #: ../tools/virt-win-reg.pl:122
25156 #, no-wrap
25157 msgid ""
25158 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25159 "\n"
25160 msgstr ""
25161
25162 # type: textblock
25163 #: ../tools/virt-win-reg.pl:124
25164 msgid ""
25165 "To go in the opposite direction, after exporting and before sending the file "
25166 "to a Windows user, do something like this:"
25167 msgstr ""
25168
25169 # type: verbatim
25170 #: ../tools/virt-win-reg.pl:127
25171 #, no-wrap
25172 msgid ""
25173 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25174 "\n"
25175 msgstr ""
25176
25177 # type: textblock
25178 #: ../tools/virt-win-reg.pl:129
25179 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25180 msgstr ""
25181
25182 # type: textblock
25183 #: ../tools/virt-win-reg.pl:131
25184 msgid ""
25185 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25186 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
25187 "style (CRLF) line endings, like this:"
25188 msgstr ""
25189
25190 # type: verbatim
25191 #: ../tools/virt-win-reg.pl:135
25192 #, no-wrap
25193 msgid ""
25194 " $ file software.reg\n"
25195 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25196 " with CRLF line terminators\n"
25197 "\n"
25198 msgstr ""
25199
25200 # type: textblock
25201 #: ../tools/virt-win-reg.pl:139
25202 msgid "This file would need conversion before you could C<--merge> it."
25203 msgstr ""
25204
25205 # type: textblock
25206 #: ../tools/virt-win-reg.pl:143
25207 msgid ""
25208 "Be careful when passing parameters containing C<\\> (backslash) in the "
25209 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25210 "(but not both) to protect them from the shell."
25211 msgstr ""
25212
25213 # type: textblock
25214 #: ../tools/virt-win-reg.pl:147
25215 msgid "Paths and value names are case-insensitive."
25216 msgstr ""
25217
25218 # type: =head2
25219 #: ../tools/virt-win-reg.pl:149
25220 msgid "CurrentControlSet etc."
25221 msgstr ""
25222
25223 # type: textblock
25224 #: ../tools/virt-win-reg.pl:151
25225 msgid ""
25226 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25227 "Registry at the level of the hive file, and therefore you cannot modify "
25228 "these."
25229 msgstr ""
25230
25231 # type: textblock
25232 #: ../tools/virt-win-reg.pl:155
25233 msgid ""
25234 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25235 "circumstances it might refer to another control set.  The way to find out is "
25236 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25237 msgstr ""
25238
25239 # type: verbatim
25240 #: ../tools/virt-win-reg.pl:159
25241 #, no-wrap
25242 msgid ""
25243 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25244 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25245 " \"Current\"=dword:00000001\n"
25246 " \"Default\"=dword:00000001\n"
25247 " \"Failed\"=dword:00000000\n"
25248 " \"LastKnownGood\"=dword:00000002\n"
25249 "\n"
25250 msgstr ""
25251
25252 # type: textblock
25253 #: ../tools/virt-win-reg.pl:166
25254 msgid "\"Default\" is the one which Windows will choose when it boots."
25255 msgstr ""
25256
25257 # type: textblock
25258 #: ../tools/virt-win-reg.pl:168
25259 msgid ""
25260 "Similarly, other C<Current...> keys in the path may need to be replaced."
25261 msgstr ""
25262
25263 # type: =item
25264 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
25265 msgid "B<--debug>"
25266 msgstr ""
25267
25268 # type: textblock
25269 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
25270 msgid "Enable debugging messages."
25271 msgstr ""
25272
25273 # type: =item
25274 #: ../tools/virt-win-reg.pl:232
25275 msgid "B<--merge>"
25276 msgstr ""
25277
25278 # type: textblock
25279 #: ../tools/virt-win-reg.pl:234
25280 msgid ""
25281 "In merge mode, this merges a textual regedit file into the Windows Registry "
25282 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25283 "displays or exports Registry entries instead."
25284 msgstr ""
25285
25286 # type: textblock
25287 #: ../tools/virt-win-reg.pl:238
25288 msgid ""
25289 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25290 "result in disk corruption.  However exporting (without this flag)  is always "
25291 "safe."
25292 msgstr ""
25293
25294 # type: =item
25295 #: ../tools/virt-win-reg.pl:246
25296 msgid "B<--encoding> UTF-16LE|ASCII"
25297 msgstr ""
25298
25299 # type: textblock
25300 #: ../tools/virt-win-reg.pl:248
25301 msgid ""
25302 "When merging (only), you may need to specify the encoding for strings to be "
25303 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
25304 "(3)/ENCODING STRINGS>."
25305 msgstr ""
25306
25307 # type: textblock
25308 #: ../tools/virt-win-reg.pl:252
25309 msgid ""
25310 "The default is to use UTF-16LE, which should work with recent versions of "
25311 "Windows."
25312 msgstr ""
25313
25314 # type: textblock
25315 #: ../tools/virt-win-reg.pl:486
25316 msgid ""
25317 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
25318 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
25319 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25320 msgstr ""
25321
25322 # type: textblock
25323 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25324 msgid ""
25325 "When reporting bugs, please enable debugging and capture the I<complete> "
25326 "output:"
25327 msgstr ""
25328
25329 # type: verbatim
25330 #: ../tools/virt-win-reg.pl:504
25331 #, no-wrap
25332 msgid ""
25333 " export LIBGUESTFS_DEBUG=1\n"
25334 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25335 "\n"
25336 msgstr ""
25337
25338 # type: textblock
25339 #: ../tools/virt-win-reg.pl:507
25340 msgid ""
25341 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
25342 "redhat.com/>"
25343 msgstr ""
25344
25345 # type: textblock
25346 #: ../tools/virt-df.pl:36
25347 msgid "virt-df - Display free space on virtual filesystems"
25348 msgstr ""
25349
25350 # type: verbatim
25351 #: ../tools/virt-df.pl:40
25352 #, no-wrap
25353 msgid ""
25354 " virt-df [--options]\n"
25355 "\n"
25356 msgstr ""
25357
25358 # type: verbatim
25359 #: ../tools/virt-df.pl:42
25360 #, no-wrap
25361 msgid ""
25362 " virt-df [--options] domname\n"
25363 "\n"
25364 msgstr ""
25365
25366 # type: verbatim
25367 #: ../tools/virt-df.pl:44
25368 #, no-wrap
25369 msgid ""
25370 " virt-df [--options] disk.img [disk.img ...]\n"
25371 "\n"
25372 msgstr ""
25373
25374 # type: textblock
25375 #: ../tools/virt-df.pl:48
25376 msgid ""
25377 "C<virt-df> is a command line tool to display free space on virtual machine "
25378 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25379 "space allocated to a virtual machine, but can look inside the virtual "
25380 "machine to see how much space is really being used."
25381 msgstr ""
25382
25383 # type: textblock
25384 #: ../tools/virt-df.pl:53
25385 msgid ""
25386 "It is like the L<df(1)> command, but for virtual machines, except that it "
25387 "also works for Windows virtual machines."
25388 msgstr ""
25389
25390 # type: textblock
25391 #: ../tools/virt-df.pl:56
25392 msgid ""
25393 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25394 "of all active and inactive guests, and performs a C<df>-type operation on "
25395 "each one in turn, printing out the results."
25396 msgstr ""
25397
25398 # type: textblock
25399 #: ../tools/virt-df.pl:60
25400 msgid ""
25401 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25402 "either the single named libvirt domain, or on the disk image(s) listed on "
25403 "the command line (which must all belong to a single VM).  In this mode (with "
25404 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25405 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25406 msgstr ""
25407
25408 # type: textblock
25409 #: ../tools/virt-df.pl:67
25410 msgid ""
25411 "Use the C<--csv> option to get a format which can be easily parsed by other "
25412 "programs.  Other options are mostly similar to standard C<df> options.  See "
25413 "below for the complete list."
25414 msgstr ""
25415
25416 # type: =item
25417 #: ../tools/virt-df.pl:107
25418 msgid "B<--csv>"
25419 msgstr ""
25420
25421 # type: textblock
25422 #: ../tools/virt-df.pl:109
25423 msgid ""
25424 "Write out the results in CSV format (comma-separated values).  This format "
25425 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25426 "ABOUT CSV FORMAT> below."
25427 msgstr ""
25428
25429 # type: =item
25430 #: ../tools/virt-df.pl:134
25431 msgid "B<--human-readable> | B<-h>"
25432 msgstr ""
25433
25434 # type: textblock
25435 #: ../tools/virt-df.pl:136
25436 msgid "Print sizes in human-readable format."
25437 msgstr ""
25438
25439 # type: textblock
25440 #: ../tools/virt-df.pl:138
25441 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25442 msgstr ""
25443
25444 # type: =item
25445 #: ../tools/virt-df.pl:144
25446 msgid "B<--inodes> | B<-i>"
25447 msgstr ""
25448
25449 # type: textblock
25450 #: ../tools/virt-df.pl:146
25451 msgid "Print inodes instead of blocks."
25452 msgstr ""
25453
25454 # type: =item
25455 #: ../tools/virt-df.pl:152
25456 msgid "B<--one-per-guest>"
25457 msgstr ""
25458
25459 # type: textblock
25460 #: ../tools/virt-df.pl:154
25461 msgid ""
25462 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25463 "disks from several guests to a single libguestfs appliance."
25464 msgstr ""
25465
25466 # type: textblock
25467 #: ../tools/virt-df.pl:157
25468 msgid "You might use this option in the following circumstances:"
25469 msgstr ""
25470
25471 # type: textblock
25472 #: ../tools/virt-df.pl:163
25473 msgid ""
25474 "If you think an untrusted guest might actively try to exploit the libguestfs "
25475 "appliance kernel, then this prevents one guest from interfering with the "
25476 "stats printed for another guest."
25477 msgstr ""
25478
25479 # type: textblock
25480 #: ../tools/virt-df.pl:169
25481 msgid ""
25482 "If the kernel has a bug which stops it from accessing a filesystem in one "
25483 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25484 "and report stats for further guests."
25485 msgstr ""
25486
25487 # type: =item
25488 #: ../tools/virt-df.pl:180
25489 msgid "B<--uuid>"
25490 msgstr ""
25491
25492 # type: textblock
25493 #: ../tools/virt-df.pl:182
25494 msgid ""
25495 "Print UUIDs instead of names.  This is useful for following a guest even "
25496 "when the guest is migrated or renamed, or when two guests happen to have the "
25497 "same name."
25498 msgstr ""
25499
25500 # type: textblock
25501 #: ../tools/virt-df.pl:186
25502 msgid ""
25503 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25504 "images, we still print the disk image name even when this option is "
25505 "specified."
25506 msgstr ""
25507
25508 # type: =head1
25509 #: ../tools/virt-df.pl:609
25510 msgid "NOTE ABOUT CSV FORMAT"
25511 msgstr ""
25512
25513 # type: textblock
25514 #: ../tools/virt-df.pl:611
25515 msgid ""
25516 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25517 "should be easy to parse, but it is definitely not easy to parse."
25518 msgstr ""
25519
25520 # type: textblock
25521 #: ../tools/virt-df.pl:614
25522 msgid ""
25523 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25524 "reliably.  This example has two columns:"
25525 msgstr ""
25526
25527 # type: verbatim
25528 #: ../tools/virt-df.pl:617
25529 #, no-wrap
25530 msgid ""
25531 " \"foo,bar\",baz\n"
25532 "\n"
25533 msgstr ""
25534
25535 # type: textblock
25536 #: ../tools/virt-df.pl:619
25537 msgid ""
25538 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25539 "reliably.  This example has one row:"
25540 msgstr ""
25541
25542 # type: verbatim
25543 #: ../tools/virt-df.pl:622
25544 #, no-wrap
25545 msgid ""
25546 " \"foo\n"
25547 " bar\",baz\n"
25548 "\n"
25549 msgstr ""
25550
25551 # type: textblock
25552 #: ../tools/virt-df.pl:625
25553 msgid ""
25554 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25555 "packaged in major Linux distributions)."
25556 msgstr ""
25557
25558 # type: textblock
25559 #: ../tools/virt-df.pl:628
25560 msgid ""
25561 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25562 "or Python's built-in csv library)."
25563 msgstr ""
25564
25565 # type: textblock
25566 #: ../tools/virt-df.pl:631
25567 msgid "Most spreadsheets and databases can import CSV directly."
25568 msgstr ""
25569
25570 # type: textblock
25571 #: ../tools/virt-df.pl:642
25572 msgid ""
25573 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25574 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25575 msgstr ""
25576
25577 # type: textblock
25578 #: ../tools/virt-ls.pl:34
25579 msgid "virt-ls - List files in a virtual machine"
25580 msgstr ""
25581
25582 # type: verbatim
25583 #: ../tools/virt-ls.pl:38
25584 #, no-wrap
25585 msgid ""
25586 " virt-ls [--options] domname directory\n"
25587 "\n"
25588 msgstr ""
25589
25590 # type: verbatim
25591 #: ../tools/virt-ls.pl:40
25592 #, no-wrap
25593 msgid ""
25594 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25595 "\n"
25596 msgstr ""
25597
25598 # type: textblock
25599 #: ../tools/virt-ls.pl:44
25600 msgid ""
25601 "C<virt-ls> is a command line tool to list the names of files in a directory "
25602 "inside a virtual machine or disk image."
25603 msgstr ""
25604
25605 # type: textblock
25606 #: ../tools/virt-ls.pl:47
25607 msgid ""
25608 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25609 "For more complex cases you should look at the L<guestfish(1)> tool."
25610 msgstr ""
25611
25612 # type: textblock
25613 #: ../tools/virt-ls.pl:51
25614 msgid ""
25615 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
25616 "simple listing is like the ordinary L<ls(1)> command:"
25617 msgstr ""
25618
25619 # type: verbatim
25620 #: ../tools/virt-ls.pl:54
25621 #, no-wrap
25622 msgid ""
25623 " $ virt-ls myguest /\n"
25624 " bin\n"
25625 " boot\n"
25626 " [etc.]\n"
25627 "\n"
25628 msgstr ""
25629
25630 # type: textblock
25631 #: ../tools/virt-ls.pl:59
25632 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
25633 msgstr ""
25634
25635 # type: verbatim
25636 #: ../tools/virt-ls.pl:61
25637 #, no-wrap
25638 msgid ""
25639 " $ virt-ls -l myguest /\n"
25640 " total 204\n"
25641 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25642 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25643 " [etc.]\n"
25644 "\n"
25645 msgstr ""
25646
25647 # type: textblock
25648 #: ../tools/virt-ls.pl:67
25649 msgid ""
25650 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25651 "and directories recursively:"
25652 msgstr ""
25653
25654 # type: verbatim
25655 #: ../tools/virt-ls.pl:70
25656 #, no-wrap
25657 msgid ""
25658 " $ virt-ls -R myguest /tmp\n"
25659 " foo\n"
25660 " foo/bar\n"
25661 " [etc.]\n"
25662 "\n"
25663 msgstr ""
25664
25665 # type: textblock
25666 #: ../tools/virt-ls.pl:75
25667 msgid ""
25668 "You I<cannot> combine these options.  To do more complicated things, use "
25669 "L<guestfish(1)>."
25670 msgstr ""
25671
25672 # type: =item
25673 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
25674 #: ../tools/virt-list-partitions.pl:112
25675 msgid "B<-l> | B<--long>"
25676 msgstr ""
25677
25678 # type: =item
25679 #: ../tools/virt-ls.pl:133
25680 msgid "B<-R> | B<--recursive>"
25681 msgstr ""
25682
25683 # type: textblock
25684 #: ../tools/virt-ls.pl:135
25685 msgid ""
25686 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25687 "simple, flat list of the files in the named directory."
25688 msgstr ""
25689
25690 # type: textblock
25691 #: ../tools/virt-ls.pl:138
25692 msgid ""
25693 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
25694 "like the plain C<ls -l> command)."
25695 msgstr ""
25696
25697 # type: textblock
25698 #: ../tools/virt-ls.pl:141
25699 msgid ""
25700 "C<virt-ls -R> produces a recursive list of files starting at the named "
25701 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
25702 "details."
25703 msgstr ""
25704
25705 # type: textblock
25706 #: ../tools/virt-ls.pl:145
25707 msgid "You cannot combine these options."
25708 msgstr ""
25709
25710 # type: textblock
25711 #: ../tools/virt-ls.pl:234
25712 msgid ""
25713 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
25714 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25715 "org/>."
25716 msgstr ""
25717
25718 # type: textblock
25719 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
25720 #: ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
25721 msgid "Copyright (C) 2009 Red Hat Inc."
25722 msgstr ""
25723
25724 # type: textblock
25725 #: ../tools/virt-resize.pl:42
25726 msgid "virt-resize - Resize a virtual machine disk"
25727 msgstr ""
25728
25729 # type: verbatim
25730 #: ../tools/virt-resize.pl:46
25731 #, no-wrap
25732 msgid ""
25733 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25734 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25735 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25736 "\n"
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../tools/virt-resize.pl:52
25741 msgid ""
25742 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25743 "larger or smaller overall, and resizing or deleting any partitions contained "
25744 "within."
25745 msgstr ""
25746
25747 # type: textblock
25748 #: ../tools/virt-resize.pl:56
25749 msgid ""
25750 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25751 "not> be used on live virtual machines - for consistent results, shut the "
25752 "virtual machine down before resizing it."
25753 msgstr ""
25754
25755 # type: textblock
25756 #: ../tools/virt-resize.pl:60
25757 msgid ""
25758 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
25759 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
25760 "read those manual pages first."
25761 msgstr ""
25762
25763 # type: textblock
25764 #: ../tools/virt-resize.pl:68
25765 msgid ""
25766 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25767 "fill the extra 5GB of space."
25768 msgstr ""
25769
25770 # type: verbatim
25771 #: ../tools/virt-resize.pl:71
25772 #, no-wrap
25773 msgid ""
25774 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
25775 " virt-list-partitions -lht olddisk\n"
25776 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25777 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25778 "\n"
25779 msgstr ""
25780
25781 # type: textblock
25782 #: ../tools/virt-resize.pl:76
25783 msgid ""
25784 "As above, but make the /boot partition 200MB bigger, while giving the "
25785 "remaining space to /dev/sda2:"
25786 msgstr ""
25787
25788 # type: verbatim
25789 #: ../tools/virt-resize.pl:79
25790 #, no-wrap
25791 msgid ""
25792 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25793 "\n"
25794 msgstr ""
25795
25796 # type: textblock
25797 #: ../tools/virt-resize.pl:81
25798 msgid "As above, but the output format will be uncompressed qcow2:"
25799 msgstr ""
25800
25801 # type: verbatim
25802 #: ../tools/virt-resize.pl:83
25803 #, no-wrap
25804 msgid ""
25805 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25806 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25807 "\n"
25808 msgstr ""
25809
25810 # type: =head1
25811 #: ../tools/virt-resize.pl:86
25812 msgid "DETAILED USAGE"
25813 msgstr ""
25814
25815 # type: =head2
25816 #: ../tools/virt-resize.pl:88
25817 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25818 msgstr ""
25819
25820 # type: =item
25821 #: ../tools/virt-resize.pl:92
25822 msgid "1. Shut down the virtual machine"
25823 msgstr ""
25824
25825 # type: =item
25826 #: ../tools/virt-resize.pl:94
25827 msgid "2. Locate input disk image"
25828 msgstr ""
25829
25830 # type: textblock
25831 #: ../tools/virt-resize.pl:96
25832 msgid ""
25833 "Locate the input disk image (ie. the file or device on the host containing "
25834 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25835 "dumpxml> like this to find the disk image name:"
25836 msgstr ""
25837
25838 # type: verbatim
25839 #: ../tools/virt-resize.pl:100
25840 #, no-wrap
25841 msgid ""
25842 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25843 " Found 1 nodes:\n"
25844 " -- NODE --\n"
25845 " <source dev=\"/dev/vg/lv_guest\" />\n"
25846 "\n"
25847 msgstr ""
25848
25849 # type: =item
25850 #: ../tools/virt-resize.pl:105
25851 msgid "3. Look at current sizing"
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../tools/virt-resize.pl:107
25856 msgid ""
25857 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25858 msgstr ""
25859
25860 # type: verbatim
25861 #: ../tools/virt-resize.pl:110
25862 #, no-wrap
25863 msgid ""
25864 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25865 " /dev/sda1 ext3 101.9M\n"
25866 " /dev/sda2 pv 7.9G\n"
25867 " /dev/sda device 8.0G\n"
25868 "\n"
25869 msgstr ""
25870
25871 # type: textblock
25872 #: ../tools/virt-resize.pl:115
25873 msgid ""
25874 "(This example is a virtual machine with an 8 GB disk which we would like to "
25875 "expand up to 10 GB)."
25876 msgstr ""
25877
25878 # type: =item
25879 #: ../tools/virt-resize.pl:118
25880 msgid "4. Create output disk"
25881 msgstr ""
25882
25883 # type: textblock
25884 #: ../tools/virt-resize.pl:120
25885 msgid ""
25886 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25887 "to store the resized output disk."
25888 msgstr ""
25889
25890 # type: textblock
25891 #: ../tools/virt-resize.pl:123
25892 msgid ""
25893 "To store the resized disk image in a file, create a file of a suitable size:"
25894 msgstr ""
25895
25896 # type: verbatim
25897 #: ../tools/virt-resize.pl:126
25898 #, no-wrap
25899 msgid ""
25900 " # rm -f outdisk\n"
25901 " # truncate -s 10G outdisk\n"
25902 "\n"
25903 msgstr ""
25904
25905 # type: textblock
25906 #: ../tools/virt-resize.pl:129
25907 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25908 msgstr ""
25909
25910 # type: verbatim
25911 #: ../tools/virt-resize.pl:131
25912 #, no-wrap
25913 msgid ""
25914 " # lvcreate -L 10G -n lv_name vg_name\n"
25915 "\n"
25916 msgstr ""
25917
25918 # type: textblock
25919 #: ../tools/virt-resize.pl:133
25920 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25921 msgstr ""
25922
25923 # type: verbatim
25924 #: ../tools/virt-resize.pl:135
25925 #, no-wrap
25926 msgid ""
25927 " # virsh pool-list\n"
25928 " # virsh vol-create-as poolname newvol 10G\n"
25929 "\n"
25930 msgstr ""
25931
25932 # type: =item
25933 #: ../tools/virt-resize.pl:138
25934 msgid "5. Resize"
25935 msgstr ""
25936
25937 # type: textblock
25938 #: ../tools/virt-resize.pl:140
25939 msgid ""
25940 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25941 "file) and the output disk.  The output disk is the one created in the "
25942 "previous step."
25943 msgstr ""
25944
25945 # type: verbatim
25946 #: ../tools/virt-resize.pl:144
25947 #, no-wrap
25948 msgid ""
25949 " # virt-resize indisk outdisk\n"
25950 "\n"
25951 msgstr ""
25952
25953 # type: textblock
25954 #: ../tools/virt-resize.pl:146
25955 msgid ""
25956 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25957 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25958 "larger, then an extra, empty partition is created at the end of the disk "
25959 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25960 "error."
25961 msgstr ""
25962
25963 # type: textblock
25964 #: ../tools/virt-resize.pl:152
25965 msgid ""
25966 "More realistically you'd want to expand existing partitions in the disk "
25967 "image by passing extra options (for the full list see the L</OPTIONS> "
25968 "section below)."
25969 msgstr ""
25970
25971 # type: textblock
25972 #: ../tools/virt-resize.pl:156
25973 msgid ""
25974 "L</--expand> is the most useful option.  It expands the named partition "
25975 "within the disk to fill any extra space:"
25976 msgstr ""
25977
25978 # type: verbatim
25979 #: ../tools/virt-resize.pl:159
25980 #, no-wrap
25981 msgid ""
25982 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25983 "\n"
25984 msgstr ""
25985
25986 # type: textblock
25987 #: ../tools/virt-resize.pl:161
25988 msgid ""
25989 "(In this case, an extra partition is I<not> created at the end of the disk, "
25990 "because there will be no unused space)."
25991 msgstr ""
25992
25993 # type: textblock
25994 #: ../tools/virt-resize.pl:164
25995 msgid ""
25996 "L</--resize> is the other commonly used option.  The following would "
25997 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25998 "rest of the available space:"
25999 msgstr ""
26000
26001 # type: verbatim
26002 #: ../tools/virt-resize.pl:168
26003 #, no-wrap
26004 msgid ""
26005 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26006 "     indisk outdisk\n"
26007 "\n"
26008 msgstr ""
26009
26010 # type: textblock
26011 #: ../tools/virt-resize.pl:171
26012 msgid ""
26013 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26014 "if virt-resize knows how, it will resize the contents, the equivalent of "
26015 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
26016 ">.  However virt-resize does not know how to resize some filesystems, so you "
26017 "would have to online resize them after booting the guest.  And virt-resize "
26018 "also does not resize anything inside an LVM PV, it just resizes the PV "
26019 "itself and leaves the user to resize any LVs inside that PV as desired."
26020 msgstr ""
26021
26022 # type: textblock
26023 #: ../tools/virt-resize.pl:180
26024 msgid "Other options are covered below."
26025 msgstr ""
26026
26027 # type: =item
26028 #: ../tools/virt-resize.pl:182
26029 msgid "6. Test"
26030 msgstr ""
26031
26032 # type: textblock
26033 #: ../tools/virt-resize.pl:184
26034 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26035 msgstr ""
26036
26037 # type: textblock
26038 #: ../tools/virt-resize.pl:186
26039 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26040 msgstr ""
26041
26042 # type: verbatim
26043 #: ../tools/virt-resize.pl:188
26044 #, no-wrap
26045 msgid ""
26046 " # virsh edit guestname\n"
26047 "\n"
26048 msgstr ""
26049
26050 # type: textblock
26051 #: ../tools/virt-resize.pl:190
26052 msgid ""
26053 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
26054 "html#elementsDisks>"
26055 msgstr ""
26056
26057 # type: textblock
26058 #: ../tools/virt-resize.pl:193
26059 msgid "Then start up the domain with the new, resized disk:"
26060 msgstr ""
26061
26062 # type: verbatim
26063 #: ../tools/virt-resize.pl:195
26064 #, no-wrap
26065 msgid ""
26066 " # virsh start guestname\n"
26067 "\n"
26068 msgstr ""
26069
26070 # type: textblock
26071 #: ../tools/virt-resize.pl:197
26072 msgid ""
26073 "and check that it still works.  See also the L</NOTES> section below for "
26074 "additional information."
26075 msgstr ""
26076
26077 # type: =item
26078 #: ../tools/virt-resize.pl:200
26079 msgid "7. Resize LVs etc inside the guest"
26080 msgstr ""
26081
26082 # type: textblock
26083 #: ../tools/virt-resize.pl:202
26084 msgid "(This can also be done offline using L<guestfish(1)>)"
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../tools/virt-resize.pl:204
26089 msgid ""
26090 "Once the guest has booted you should see the new space available, at least "
26091 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26092 "may need to resize LVs inside PVs, and also resize filesystem types that "
26093 "virt-resize does not know how to expand."
26094 msgstr ""
26095
26096 # type: =head2
26097 #: ../tools/virt-resize.pl:211
26098 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26099 msgstr ""
26100
26101 # type: textblock
26102 #: ../tools/virt-resize.pl:213
26103 msgid ""
26104 "Shrinking is somewhat more complex than expanding, and only an overview is "
26105 "given here."
26106 msgstr ""
26107
26108 # type: textblock
26109 #: ../tools/virt-resize.pl:216
26110 msgid ""
26111 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26112 "filesystems).  The user has to shrink content before passing the disk image "
26113 "to virt-resize, and virt-resize will check that the content has been shrunk "
26114 "properly."
26115 msgstr ""
26116
26117 # type: textblock
26118 #: ../tools/virt-resize.pl:221
26119 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26120 msgstr ""
26121
26122 # type: textblock
26123 #: ../tools/virt-resize.pl:223
26124 msgid ""
26125 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26126 "steps 3 and 4 above to allocate a new disk image."
26127 msgstr ""
26128
26129 # type: textblock
26130 #: ../tools/virt-resize.pl:226
26131 msgid ""
26132 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26133 msgstr ""
26134
26135 # type: =head2
26136 #: ../tools/virt-resize.pl:229
26137 msgid "IGNORING OR DELETING PARTITIONS"
26138 msgstr ""
26139
26140 # type: textblock
26141 #: ../tools/virt-resize.pl:231
26142 msgid ""
26143 "virt-resize also gives a convenient way to ignore or delete partitions when "
26144 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26145 "up the copy where you don't care about the existing contents of a "
26146 "partition.  Deleting a partition removes it completely, but note that it "
26147 "also renumbers any partitions after the one which is deleted, which can "
26148 "leave some guests unbootable."
26149 msgstr ""
26150
26151 # type: =head2
26152 #: ../tools/virt-resize.pl:238
26153 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26154 msgstr ""
26155
26156 # type: textblock
26157 #: ../tools/virt-resize.pl:240
26158 msgid ""
26159 "If the input disk is in qcow2 format, then you may prefer that the output is "
26160 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26161 "the fly.  The output format is simply determined by the format of the empty "
26162 "output container that you provide.  Thus to create qcow2 output, use:"
26163 msgstr ""
26164
26165 # type: verbatim
26166 #: ../tools/virt-resize.pl:246
26167 #, no-wrap
26168 msgid ""
26169 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26170 "\n"
26171 msgstr ""
26172
26173 # type: textblock
26174 #: ../tools/virt-resize.pl:248
26175 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26176 msgstr ""
26177
26178 # type: textblock
26179 #: ../tools/virt-resize.pl:250
26180 msgid "Similarly, to get non-sparse raw output use:"
26181 msgstr ""
26182
26183 # type: verbatim
26184 #: ../tools/virt-resize.pl:252
26185 #, no-wrap
26186 msgid ""
26187 " fallocate -l size outdisk\n"
26188 "\n"
26189 msgstr ""
26190
26191 # type: textblock
26192 #: ../tools/virt-resize.pl:254
26193 msgid ""
26194 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
26195 "dev/zero of=outdisk bs=1M count=..>)"
26196 msgstr ""
26197
26198 # type: textblock
26199 #: ../tools/virt-resize.pl:267
26200 msgid "Display help."
26201 msgstr ""
26202
26203 # type: =item
26204 #: ../tools/virt-resize.pl:281
26205 msgid "B<--resize part=size>"
26206 msgstr ""
26207
26208 # type: textblock
26209 #: ../tools/virt-resize.pl:283
26210 msgid ""
26211 "Resize the named partition (expanding or shrinking it) so that it has the "
26212 "given size."
26213 msgstr ""
26214
26215 # type: textblock
26216 #: ../tools/virt-resize.pl:286
26217 msgid ""
26218 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26219 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26220 "Exabytes; or as a percentage of the current size; or as a relative number or "
26221 "percentage.  For example:"
26222 msgstr ""
26223
26224 # type: verbatim
26225 #: ../tools/virt-resize.pl:291
26226 #, no-wrap
26227 msgid ""
26228 " --resize /dev/sda2=10G\n"
26229 "\n"
26230 msgstr ""
26231
26232 # type: verbatim
26233 #: ../tools/virt-resize.pl:293
26234 #, no-wrap
26235 msgid ""
26236 " --resize /dev/sda4=90%\n"
26237 "\n"
26238 msgstr ""
26239
26240 # type: verbatim
26241 #: ../tools/virt-resize.pl:295
26242 #, no-wrap
26243 msgid ""
26244 " --resize /dev/sda2=+1G\n"
26245 "\n"
26246 msgstr ""
26247
26248 # type: verbatim
26249 #: ../tools/virt-resize.pl:297
26250 #, no-wrap
26251 msgid ""
26252 " --resize /dev/sda2=-200M\n"
26253 "\n"
26254 msgstr ""
26255
26256 # type: verbatim
26257 #: ../tools/virt-resize.pl:299
26258 #, no-wrap
26259 msgid ""
26260 " --resize /dev/sda1=+128K\n"
26261 "\n"
26262 msgstr ""
26263
26264 # type: verbatim
26265 #: ../tools/virt-resize.pl:301
26266 #, no-wrap
26267 msgid ""
26268 " --resize /dev/sda1=+10%\n"
26269 "\n"
26270 msgstr ""
26271
26272 # type: verbatim
26273 #: ../tools/virt-resize.pl:303
26274 #, no-wrap
26275 msgid ""
26276 " --resize /dev/sda1=-10%\n"
26277 "\n"
26278 msgstr ""
26279
26280 # type: textblock
26281 #: ../tools/virt-resize.pl:305
26282 msgid ""
26283 "You can increase the size of any partition.  Virt-resize will expand the "
26284 "direct content of the partition if it knows how (see C<--expand> below)."
26285 msgstr ""
26286
26287 # type: textblock
26288 #: ../tools/virt-resize.pl:309
26289 msgid ""
26290 "You can only I<decrease> the size of partitions that contain filesystems or "
26291 "PVs which have already been shrunk.  Virt-resize will check this has been "
26292 "done before proceeding, or else will print an error (see also C<--resize-"
26293 "force>)."
26294 msgstr ""
26295
26296 # type: textblock
26297 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
26298 #: ../tools/virt-resize.pl:423
26299 msgid "You can give this option multiple times."
26300 msgstr ""
26301
26302 # type: =item
26303 #: ../tools/virt-resize.pl:320
26304 msgid "B<--resize-force part=size>"
26305 msgstr ""
26306
26307 # type: textblock
26308 #: ../tools/virt-resize.pl:322
26309 msgid ""
26310 "This is the same as C<--resize> except that it will let you decrease the "
26311 "size of any partition.  Generally this means you will lose any data which "
26312 "was at the end of the partition you shrink, but you may not care about that "
26313 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26314 "as a swap partition)."
26315 msgstr ""
26316
26317 # type: textblock
26318 #: ../tools/virt-resize.pl:328
26319 msgid "See also the C<--ignore> option."
26320 msgstr ""
26321
26322 # type: =item
26323 #: ../tools/virt-resize.pl:334
26324 msgid "B<--expand part>"
26325 msgstr ""
26326
26327 # type: textblock
26328 #: ../tools/virt-resize.pl:336
26329 msgid ""
26330 "Expand the named partition so it uses up all extra space (space left over "
26331 "after any other resize changes that you request have been done)."
26332 msgstr ""
26333
26334 # type: textblock
26335 #: ../tools/virt-resize.pl:339
26336 msgid ""
26337 "If virt-resize knows how, it will expand the direct content of the "
26338 "partition.  For example, if the partition is an LVM PV, it will expand the "
26339 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26340 "content it doesn't know about alone."
26341 msgstr ""
26342
26343 # type: textblock
26344 #: ../tools/virt-resize.pl:344
26345 msgid "Currently virt-resize can resize:"
26346 msgstr ""
26347
26348 # type: textblock
26349 #: ../tools/virt-resize.pl:350
26350 msgid ""
26351 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26352 "partition."
26353 msgstr ""
26354
26355 # type: textblock
26356 #: ../tools/virt-resize.pl:355
26357 msgid ""
26358 "NTFS filesystems contained directly in a partition, if libguestfs was "
26359 "compiled with support for NTFS."
26360 msgstr ""
26361
26362 # type: textblock
26363 #: ../tools/virt-resize.pl:358
26364 msgid ""
26365 "The filesystem must have been shut down consistently last time it was used.  "
26366 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26367 "consistency check, so at the first boot after resizing Windows will check "
26368 "the disk."
26369 msgstr ""
26370
26371 # type: textblock
26372 #: ../tools/virt-resize.pl:365
26373 msgid ""
26374 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26375 "inside the PV.  The user will have to resize LVs as desired."
26376 msgstr ""
26377
26378 # type: textblock
26379 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26380 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26381 msgstr ""
26382
26383 # type: =item
26384 #: ../tools/virt-resize.pl:377
26385 msgid "B<--shrink part>"
26386 msgstr ""
26387
26388 # type: textblock
26389 #: ../tools/virt-resize.pl:379
26390 msgid ""
26391 "Shrink the named partition until the overall disk image fits in the "
26392 "destination.  The named partition B<must> contain a filesystem or PV which "
26393 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26394 "online tools).  Virt-resize will check this and give an error if it has not "
26395 "been done."
26396 msgstr ""
26397
26398 # type: textblock
26399 #: ../tools/virt-resize.pl:385
26400 msgid ""
26401 "The amount by which the overall disk must be shrunk (after carrying out all "
26402 "other operations requested by the user) is called the \"deficit\".  For "
26403 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26404 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26405 "would give an error unless the user specified a partition to shrink and that "
26406 "partition had more than a gigabyte of free space."
26407 msgstr ""
26408
26409 # type: =item
26410 #: ../tools/virt-resize.pl:399
26411 msgid "B<--ignore part>"
26412 msgstr ""
26413
26414 # type: textblock
26415 #: ../tools/virt-resize.pl:401
26416 msgid ""
26417 "Ignore the named partition.  Effectively this means the partition is "
26418 "allocated on the destination disk, but the content is not copied across from "
26419 "the source disk.  The content of the partition will be blank (all zero "
26420 "bytes)."
26421 msgstr ""
26422
26423 # type: =item
26424 #: ../tools/virt-resize.pl:412
26425 msgid "B<--delete part>"
26426 msgstr ""
26427
26428 # type: textblock
26429 #: ../tools/virt-resize.pl:414
26430 msgid ""
26431 "Delete the named partition.  It would be more accurate to describe this as "
26432 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26433 "the original disk image is left intact."
26434 msgstr ""
26435
26436 # type: textblock
26437 #: ../tools/virt-resize.pl:418
26438 msgid ""
26439 "Note that when you delete a partition, then anything contained in the "
26440 "partition is also deleted.  Furthermore, this causes any partitions that "
26441 "come after to be I<renumbered>, which can easily make your guest unbootable."
26442 msgstr ""
26443
26444 # type: =item
26445 #: ../tools/virt-resize.pl:429
26446 msgid "B<--LV-expand logvol>"
26447 msgstr ""
26448
26449 # type: textblock
26450 #: ../tools/virt-resize.pl:431
26451 msgid ""
26452 "This takes the logical volume and, as a final step, expands it to fill all "
26453 "the space available in its volume group.  A typical usage, assuming a Linux "
26454 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
26455 "lv_root> would be:"
26456 msgstr ""
26457
26458 # type: verbatim
26459 #: ../tools/virt-resize.pl:436
26460 #, no-wrap
26461 msgid ""
26462 " virt-resize indisk outdisk \\\n"
26463 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26464 "\n"
26465 msgstr ""
26466
26467 # type: textblock
26468 #: ../tools/virt-resize.pl:439
26469 msgid ""
26470 "This would first expand the partition (and PV), and then expand the root "
26471 "device to fill the extra space in the PV."
26472 msgstr ""
26473
26474 # type: textblock
26475 #: ../tools/virt-resize.pl:442
26476 msgid ""
26477 "The contents of the LV are also resized if virt-resize knows how to do "
26478 "that.  You can stop virt-resize from trying to expand the content by using "
26479 "the option C<--no-expand-content>."
26480 msgstr ""
26481
26482 # type: textblock
26483 #: ../tools/virt-resize.pl:446
26484 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26485 msgstr ""
26486
26487 # type: textblock
26488 #: ../tools/virt-resize.pl:449
26489 msgid ""
26490 "You can give this option multiple times, I<but> it doesn't make sense to do "
26491 "this unless the logical volumes you specify are all in different volume "
26492 "groups."
26493 msgstr ""
26494
26495 # type: =item
26496 #: ../tools/virt-resize.pl:457
26497 msgid "B<--no-copy-boot-loader>"
26498 msgstr ""
26499
26500 # type: textblock
26501 #: ../tools/virt-resize.pl:459
26502 msgid ""
26503 "By default, virt-resize copies over some sectors at the start of the disk "
26504 "(up to the beginning of the first partition).  Commonly these sectors "
26505 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26506 "in order for the guest to boot correctly."
26507 msgstr ""
26508
26509 # type: textblock
26510 #: ../tools/virt-resize.pl:464
26511 msgid ""
26512 "If you specify this flag, then this initial copy is not done.  You may need "
26513 "to reinstall the boot loader in this case."
26514 msgstr ""
26515
26516 # type: =item
26517 #: ../tools/virt-resize.pl:472
26518 msgid "B<--no-extra-partition>"
26519 msgstr ""
26520
26521 # type: textblock
26522 #: ../tools/virt-resize.pl:474
26523 msgid ""
26524 "By default, virt-resize creates an extra partition if there is any extra, "
26525 "unused space after all resizing has happened.  Use this option to prevent "
26526 "the extra partition from being created.  If you do this then the extra space "
26527 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26528 "tool in the guest."
26529 msgstr ""
26530
26531 # type: textblock
26532 #: ../tools/virt-resize.pl:480
26533 msgid ""
26534 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26535 "will be created."
26536 msgstr ""
26537
26538 # type: =item
26539 #: ../tools/virt-resize.pl:487
26540 msgid "B<--no-expand-content>"
26541 msgstr ""
26542
26543 # type: textblock
26544 #: ../tools/virt-resize.pl:489
26545 msgid ""
26546 "By default, virt-resize will try to expand the direct contents of "
26547 "partitions, if it knows how (see C<--expand> option above)."
26548 msgstr ""
26549
26550 # type: textblock
26551 #: ../tools/virt-resize.pl:492
26552 msgid ""
26553 "If you give the C<--no-expand-content> option then virt-resize will not "
26554 "attempt this."
26555 msgstr ""
26556
26557 # type: =item
26558 #: ../tools/virt-resize.pl:499
26559 msgid "B<-d> | B<--debug>"
26560 msgstr ""
26561
26562 # type: =item
26563 #: ../tools/virt-resize.pl:507
26564 msgid "B<-n> | B<--dryrun>"
26565 msgstr ""
26566
26567 # type: textblock
26568 #: ../tools/virt-resize.pl:509
26569 msgid "Print a summary of what would be done, but don't do anything."
26570 msgstr ""
26571
26572 # type: =item
26573 #: ../tools/virt-resize.pl:515
26574 msgid "B<-q> | B<--quiet>"
26575 msgstr ""
26576
26577 # type: textblock
26578 #: ../tools/virt-resize.pl:517
26579 msgid "Don't print the summary."
26580 msgstr ""
26581
26582 # type: textblock
26583 #: ../tools/virt-resize.pl:525
26584 msgid ""
26585 "Specify the format of the input disk image.  If this flag is not given then "
26586 "it is auto-detected from the image itself."
26587 msgstr ""
26588
26589 # type: textblock
26590 #: ../tools/virt-resize.pl:531
26591 msgid ""
26592 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26593 "AND NON-SPARSE RAW FORMATS>."
26594 msgstr ""
26595
26596 # type: =item
26597 #: ../tools/virt-resize.pl:538
26598 msgid "B<--output-format> raw"
26599 msgstr ""
26600
26601 # type: textblock
26602 #: ../tools/virt-resize.pl:540
26603 msgid ""
26604 "Specify the format of the output disk image.  If this flag is not given then "
26605 "it is auto-detected from the image itself."
26606 msgstr ""
26607
26608 # type: textblock
26609 #: ../tools/virt-resize.pl:546
26610 msgid ""
26611 "Note that you still need to create the output disk with the right format.  "
26612 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
26613 msgstr ""
26614
26615 # type: =head1
26616 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
26617 msgid "NOTES"
26618 msgstr ""
26619
26620 # type: =head2
26621 #: ../tools/virt-resize.pl:1424
26622 msgid "\"Partition 1 does not end on cylinder boundary.\""
26623 msgstr ""
26624
26625 # type: textblock
26626 #: ../tools/virt-resize.pl:1426
26627 msgid ""
26628 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
26629 "means the partitions will not be aligned to the ancient CHS geometry.  "
26630 "However CHS geometry is meaningless for disks manufactured since the early "
26631 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
26632 "cylinders is not required by any modern operating system."
26633 msgstr ""
26634
26635 # type: =head2
26636 #: ../tools/virt-resize.pl:1433
26637 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26638 msgstr ""
26639
26640 # type: textblock
26641 #: ../tools/virt-resize.pl:1435
26642 msgid ""
26643 "In Windows Vista and later versions, Microsoft switched to using a separate "
26644 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26645 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26646 "the boot partition.  Doing so seems to break the guest completely.  However "
26647 "expanding the second partition (ie. C: drive) should work."
26648 msgstr ""
26649
26650 # type: textblock
26651 #: ../tools/virt-resize.pl:1442
26652 msgid ""
26653 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26654 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26655 "it find errors) is nothing to worry about."
26656 msgstr ""
26657
26658 # type: =head2
26659 #: ../tools/virt-resize.pl:1446
26660 msgid "GUEST BOOT STUCK AT \"GRUB\""
26661 msgstr ""
26662
26663 # type: textblock
26664 #: ../tools/virt-resize.pl:1448
26665 msgid ""
26666 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26667 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26668 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26669 "although we think is to do with partition alignment."
26670 msgstr ""
26671
26672 # type: verbatim
26673 #: ../tools/virt-resize.pl:1453
26674 #, no-wrap
26675 msgid ""
26676 " guestfish -i -a newdisk\n"
26677 " ><fs> cat /boot/grub/device.map\n"
26678 " # check the contents of this file are sensible or\n"
26679 " # edit the file if necessary\n"
26680 " ><fs> grub-install / /dev/vda\n"
26681 " ><fs> exit\n"
26682 "\n"
26683 msgstr ""
26684
26685 # type: textblock
26686 #: ../tools/virt-resize.pl:1460
26687 msgid ""
26688 "For more flexible guest reconfiguration, including if you need to specify "
26689 "other parameters to grub-install, use L<virt-rescue(1)>."
26690 msgstr ""
26691
26692 # type: =head1
26693 #: ../tools/virt-resize.pl:1463
26694 msgid "ALTERNATIVE TOOLS"
26695 msgstr ""
26696
26697 # type: textblock
26698 #: ../tools/virt-resize.pl:1465
26699 msgid ""
26700 "There are several proprietary tools for resizing partitions.  We won't "
26701 "mention any here."
26702 msgstr ""
26703
26704 # type: textblock
26705 #: ../tools/virt-resize.pl:1468
26706 msgid ""
26707 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26708 "operations on disk images.  They can resize and move partitions, but I don't "
26709 "think they can do anything with the contents, and they certainly don't "
26710 "understand LVM."
26711 msgstr ""
26712
26713 # type: textblock
26714 #: ../tools/virt-resize.pl:1473
26715 msgid ""
26716 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26717 "but at a much lower level.  You will probably end up hand-calculating sector "
26718 "offsets, which is something that virt-resize was designed to avoid.  If you "
26719 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26720 "C<--debug> flag."
26721 msgstr ""
26722
26723 # type: textblock
26724 #: ../tools/virt-resize.pl:1488
26725 msgid ""
26726 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
26727 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
26728 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
26729 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
26730 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26731 msgstr ""
26732
26733 # type: textblock
26734 #: ../tools/virt-list-filesystems.pl:32
26735 msgid ""
26736 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
26737 msgstr ""
26738
26739 # type: verbatim
26740 #: ../tools/virt-list-filesystems.pl:36
26741 #, no-wrap
26742 msgid ""
26743 " virt-list-filesystems [--options] domname\n"
26744 "\n"
26745 msgstr ""
26746
26747 # type: verbatim
26748 #: ../tools/virt-list-filesystems.pl:38
26749 #, no-wrap
26750 msgid ""
26751 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
26752 "\n"
26753 msgstr ""
26754
26755 # type: textblock
26756 #: ../tools/virt-list-filesystems.pl:42
26757 msgid ""
26758 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
26759 "are contained in a virtual machine or disk image."
26760 msgstr ""
26761
26762 # type: textblock
26763 #: ../tools/virt-list-filesystems.pl:46
26764 msgid ""
26765 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
26766 "functionality.  For more complex cases you should look at the L<guestfish(1)"
26767 "> tool."
26768 msgstr ""
26769
26770 # type: textblock
26771 #: ../tools/virt-list-filesystems.pl:105
26772 msgid ""
26773 "With this option, C<virt-list-filesystems> displays the type of each "
26774 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
26775 msgstr ""
26776
26777 # type: =item
26778 #: ../tools/virt-list-filesystems.pl:112
26779 msgid "B<-a> | B<--all>"
26780 msgstr ""
26781
26782 # type: textblock
26783 #: ../tools/virt-list-filesystems.pl:114
26784 msgid ""
26785 "Normally we only show mountable filesystems.  If this option is given then "
26786 "swap devices are shown too."
26787 msgstr ""
26788
26789 # type: textblock
26790 #: ../tools/virt-list-filesystems.pl:188
26791 msgid ""
26792 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
26793 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
26794 ">, L<http://libguestfs.org/>."
26795 msgstr ""
26796
26797 # type: textblock
26798 #: ../tools/virt-cat.pl:33
26799 msgid "virt-cat - Display a file in a virtual machine"
26800 msgstr ""
26801
26802 # type: verbatim
26803 #: ../tools/virt-cat.pl:37
26804 #, no-wrap
26805 msgid ""
26806 " virt-cat [--options] domname file\n"
26807 "\n"
26808 msgstr ""
26809
26810 # type: verbatim
26811 #: ../tools/virt-cat.pl:39
26812 #, no-wrap
26813 msgid ""
26814 " virt-cat [--options] disk.img [disk.img ...] file\n"
26815 "\n"
26816 msgstr ""
26817
26818 # type: textblock
26819 #: ../tools/virt-cat.pl:43
26820 msgid ""
26821 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26822 "C<file> exists in the named virtual machine (or disk image)."
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-cat.pl:46
26827 msgid ""
26828 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26829 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26830 "tool."
26831 msgstr ""
26832
26833 # type: textblock
26834 #: ../tools/virt-cat.pl:52
26835 msgid ""
26836 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26837 msgstr ""
26838
26839 # type: verbatim
26840 #: ../tools/virt-cat.pl:55
26841 #, no-wrap
26842 msgid ""
26843 " virt-cat mydomain /etc/fstab\n"
26844 "\n"
26845 msgstr ""
26846
26847 # type: textblock
26848 #: ../tools/virt-cat.pl:57
26849 msgid "List syslog messages from a VM:"
26850 msgstr ""
26851
26852 # type: verbatim
26853 #: ../tools/virt-cat.pl:59
26854 #, no-wrap
26855 msgid ""
26856 " virt-cat mydomain /var/log/messages | tail\n"
26857 "\n"
26858 msgstr ""
26859
26860 # type: textblock
26861 #: ../tools/virt-cat.pl:61
26862 msgid "Find out what DHCP IP address a VM acquired:"
26863 msgstr ""
26864
26865 # type: verbatim
26866 #: ../tools/virt-cat.pl:63
26867 #, no-wrap
26868 msgid ""
26869 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26870 "\n"
26871 msgstr ""
26872
26873 # type: textblock
26874 #: ../tools/virt-cat.pl:65
26875 msgid "Find out what packages were recently installed:"
26876 msgstr ""
26877
26878 # type: verbatim
26879 #: ../tools/virt-cat.pl:67
26880 #, no-wrap
26881 msgid ""
26882 " virt-cat mydomain /var/log/yum.log | tail\n"
26883 "\n"
26884 msgstr ""
26885
26886 # type: textblock
26887 #: ../tools/virt-cat.pl:69
26888 msgid "Find out who is logged on inside a virtual machine:"
26889 msgstr ""
26890
26891 # type: verbatim
26892 #: ../tools/virt-cat.pl:71
26893 #, no-wrap
26894 msgid ""
26895 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26896 " who /tmp/utmp\n"
26897 "\n"
26898 msgstr ""
26899
26900 # type: textblock
26901 #: ../tools/virt-cat.pl:74
26902 msgid "or who was logged on:"
26903 msgstr ""
26904
26905 # type: verbatim
26906 #: ../tools/virt-cat.pl:76
26907 #, no-wrap
26908 msgid ""
26909 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26910 " last -f /tmp/wtmp\n"
26911 "\n"
26912 msgstr ""
26913
26914 # type: textblock
26915 #: ../tools/virt-cat.pl:187
26916 msgid ""
26917 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26918 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26919 msgstr ""
26920
26921 # type: textblock
26922 #: ../tools/virt-tar.pl:33
26923 msgid "virt-tar - Extract or upload files to a virtual machine"
26924 msgstr ""
26925
26926 # type: verbatim
26927 #: ../tools/virt-tar.pl:37
26928 #, no-wrap
26929 msgid ""
26930 " virt-tar [--options] -x domname directory tarball\n"
26931 "\n"
26932 msgstr ""
26933
26934 # type: verbatim
26935 #: ../tools/virt-tar.pl:39
26936 #, no-wrap
26937 msgid ""
26938 " virt-tar [--options] -u domname tarball directory\n"
26939 "\n"
26940 msgstr ""
26941
26942 # type: verbatim
26943 #: ../tools/virt-tar.pl:41
26944 #, no-wrap
26945 msgid ""
26946 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26947 "\n"
26948 msgstr ""
26949
26950 # type: verbatim
26951 #: ../tools/virt-tar.pl:43
26952 #, no-wrap
26953 msgid ""
26954 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26955 "\n"
26956 msgstr ""
26957
26958 # type: textblock
26959 #: ../tools/virt-tar.pl:47
26960 msgid "Download C</home> from the VM into a local tarball:"
26961 msgstr ""
26962
26963 # type: verbatim
26964 #: ../tools/virt-tar.pl:49
26965 #, no-wrap
26966 msgid ""
26967 " virt-tar -x domname /home home.tar\n"
26968 "\n"
26969 msgstr ""
26970
26971 # type: verbatim
26972 #: ../tools/virt-tar.pl:51
26973 #, no-wrap
26974 msgid ""
26975 " virt-tar -zx domname /home home.tar.gz\n"
26976 "\n"
26977 msgstr ""
26978
26979 # type: textblock
26980 #: ../tools/virt-tar.pl:53
26981 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
26982 msgstr ""
26983
26984 # type: verbatim
26985 #: ../tools/virt-tar.pl:55
26986 #, no-wrap
26987 msgid ""
26988 " virt-tar -u domname uploadstuff.tar /tmp\n"
26989 "\n"
26990 msgstr ""
26991
26992 # type: verbatim
26993 #: ../tools/virt-tar.pl:57
26994 #, no-wrap
26995 msgid ""
26996 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
26997 "\n"
26998 msgstr ""
26999
27000 # type: textblock
27001 #: ../tools/virt-tar.pl:61
27002 msgid ""
27003 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27004 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27005 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27006 msgstr ""
27007
27008 # type: textblock
27009 #: ../tools/virt-tar.pl:66
27010 msgid ""
27011 "You can use C<-x> (extract) on live virtual machines, but you might get "
27012 "inconsistent results or errors if there is filesystem activity inside the "
27013 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27014 "work, but the only way to guarantee consistent results is if the virtual "
27015 "machine is shut down."
27016 msgstr ""
27017
27018 # type: textblock
27019 #: ../tools/virt-tar.pl:74
27020 msgid ""
27021 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27022 "parts of a guest filesystem.  There are many possibilities: making backups, "
27023 "uploading data files, snooping on guest activity, fixing or customizing "
27024 "guests, etc."
27025 msgstr ""
27026
27027 # type: textblock
27028 #: ../tools/virt-tar.pl:79
27029 msgid ""
27030 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27031 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27032 "should look at the L<guestfish(1)> tool."
27033 msgstr ""
27034
27035 # type: textblock
27036 #: ../tools/virt-tar.pl:83
27037 msgid ""
27038 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27039 "its contents (recursively) from the virtual machine into a local tarball.  "
27040 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27041 "virtual machine.  You cannot use these two options together."
27042 msgstr ""
27043
27044 # type: textblock
27045 #: ../tools/virt-tar.pl:89
27046 msgid ""
27047 "In addition, you may need to use the C<-z> (gZip) option to enable "
27048 "compression.  When uploading, you have to specify C<-z> if the upload file "
27049 "is compressed because virt-tar won't detect this on its own."
27050 msgstr ""
27051
27052 # type: textblock
27053 #: ../tools/virt-tar.pl:93
27054 msgid ""
27055 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27056 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27057 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27058 "the L<libguestfs(3)> API)."
27059 msgstr ""
27060
27061 # type: =item
27062 #: ../tools/virt-tar.pl:151
27063 msgid "B<-x> | B<--extract> | B<--download>"
27064 msgstr ""
27065
27066 # type: =item
27067 #: ../tools/virt-tar.pl:153
27068 msgid "B<-u> | B<--upload>"
27069 msgstr ""
27070
27071 # type: textblock
27072 #: ../tools/virt-tar.pl:155
27073 msgid ""
27074 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27075 "local tarball."
27076 msgstr ""
27077
27078 # type: textblock
27079 #: ../tools/virt-tar.pl:158
27080 msgid ""
27081 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27082 "Please read the L</WARNING> section above before using this option."
27083 msgstr ""
27084
27085 # type: textblock
27086 #: ../tools/virt-tar.pl:162
27087 msgid "You must specify exactly one of these options."
27088 msgstr ""
27089
27090 # type: =item
27091 #: ../tools/virt-tar.pl:168
27092 msgid "B<-z> | B<--gzip>"
27093 msgstr ""
27094
27095 # type: textblock
27096 #: ../tools/virt-tar.pl:170
27097 msgid "Specify that the input or output tarball is gzip-compressed."
27098 msgstr ""
27099
27100 # type: textblock
27101 #: ../tools/virt-tar.pl:283
27102 msgid ""
27103 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
27104 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
27105 "org/>."
27106 msgstr ""
27107
27108 # type: textblock
27109 #: ../tools/virt-rescue.pl:33
27110 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27111 msgstr ""
27112
27113 # type: verbatim
27114 #: ../tools/virt-rescue.pl:37
27115 #, no-wrap
27116 msgid ""
27117 " virt-rescue [--options] domname\n"
27118 "\n"
27119 msgstr ""
27120
27121 # type: verbatim
27122 #: ../tools/virt-rescue.pl:39
27123 #, no-wrap
27124 msgid ""
27125 " virt-rescue [--options] disk.img [disk.img ...]\n"
27126 "\n"
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-rescue.pl:43
27131 msgid ""
27132 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27133 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27134 "you from doing this, but doesn't catch all cases."
27135 msgstr ""
27136
27137 # type: textblock
27138 #: ../tools/virt-rescue.pl:47
27139 msgid ""
27140 "However if you use the I<--ro> (read only) option, then you can attach a "
27141 "shell to a live virtual machine.  The results might be strange or "
27142 "inconsistent at times but you won't get disk corruption."
27143 msgstr ""
27144
27145 # type: textblock
27146 #: ../tools/virt-rescue.pl:53
27147 msgid ""
27148 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27149 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27150 "recovery tools which you can use to examine or rescue a virtual machine or "
27151 "disk image."
27152 msgstr ""
27153
27154 # type: textblock
27155 #: ../tools/virt-rescue.pl:58
27156 msgid ""
27157 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27158 "on disk image(s):"
27159 msgstr ""
27160
27161 # type: verbatim
27162 #: ../tools/virt-rescue.pl:61
27163 #, no-wrap
27164 msgid ""
27165 " virt-rescue GuestName\n"
27166 "\n"
27167 msgstr ""
27168
27169 # type: verbatim
27170 #: ../tools/virt-rescue.pl:63
27171 #, no-wrap
27172 msgid ""
27173 " virt-rescue --ro /path/to/disk.img\n"
27174 "\n"
27175 msgstr ""
27176
27177 # type: verbatim
27178 #: ../tools/virt-rescue.pl:65
27179 #, no-wrap
27180 msgid ""
27181 " virt-rescue /dev/sdc\n"
27182 "\n"
27183 msgstr ""
27184
27185 # type: textblock
27186 #: ../tools/virt-rescue.pl:67
27187 msgid "For live VMs you I<must> use the --ro option."
27188 msgstr ""
27189
27190 # type: textblock
27191 #: ../tools/virt-rescue.pl:69
27192 msgid ""
27193 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27194 "in an interactive bash shell where you can use many ordinary Linux "
27195 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27196 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27197 "is an empty directory called C</sysroot> where you can mount filesystems."
27198 msgstr ""
27199
27200 # type: textblock
27201 #: ../tools/virt-rescue.pl:76
27202 msgid ""
27203 "In the example below, we list logical volumes, then choose one to mount "
27204 "under C</sysroot>:"
27205 msgstr ""
27206
27207 # type: verbatim
27208 #: ../tools/virt-rescue.pl:79
27209 #, no-wrap
27210 msgid ""
27211 " ><rescue> lvs\n"
27212 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27213 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27214 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27215 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27216 " ><rescue> ls /sysroot\n"
27217 "\n"
27218 msgstr ""
27219
27220 # type: textblock
27221 #: ../tools/virt-rescue.pl:86
27222 msgid ""
27223 "If you don't know what filesystems are available on the virtual machine then "
27224 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27225 msgstr ""
27226
27227 # type: textblock
27228 #: ../tools/virt-rescue.pl:92
27229 msgid ""
27230 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27231 "virtual machine.  For example you can use it on a blank file if you want to "
27232 "partition that file (although we would recommend using L<guestfish(1)> "
27233 "instead as it is more suitable for this purpose).  You can even use virt-"
27234 "rescue on things like SD cards."
27235 msgstr ""
27236
27237 # type: textblock
27238 #: ../tools/virt-rescue.pl:98
27239 msgid ""
27240 "This tool is just designed for quick interactive hacking on a virtual "
27241 "machine.  For more structured access to a virtual machine disk image, you "
27242 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27243 "make scripted changes to guests, use L<guestfish(1)>."
27244 msgstr ""
27245
27246 # type: =item
27247 #: ../tools/virt-rescue.pl:127
27248 msgid "B<--append kernelopts>"
27249 msgstr ""
27250
27251 # type: textblock
27252 #: ../tools/virt-rescue.pl:129
27253 msgid "Pass additional options to the rescue kernel."
27254 msgstr ""
27255
27256 # type: =item
27257 #: ../tools/virt-rescue.pl:164
27258 msgid "B<--memsize MB> | B<-m MB>"
27259 msgstr ""
27260
27261 # type: textblock
27262 #: ../tools/virt-rescue.pl:166
27263 msgid ""
27264 "Change the amount of memory allocated to the rescue system.  The default is "
27265 "set by libguestfs and is small but adequate for running system tools.  The "
27266 "occasional program might need more memory.  The parameter is specified in "
27267 "megabytes."
27268 msgstr ""
27269
27270 # type: =item
27271 #: ../tools/virt-rescue.pl:175
27272 msgid "B<--network MB>"
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-rescue.pl:177
27277 msgid "Enable QEMU user networking in the guest."
27278 msgstr ""
27279
27280 # type: =item
27281 #: ../tools/virt-rescue.pl:183
27282 msgid "B<--ro> | B<-r>"
27283 msgstr ""
27284
27285 # type: textblock
27286 #: ../tools/virt-rescue.pl:185
27287 msgid "Open the image read-only."
27288 msgstr ""
27289
27290 # type: textblock
27291 #: ../tools/virt-rescue.pl:197
27292 msgid ""
27293 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
27294 "SELINUX> before using this option."
27295 msgstr ""
27296
27297 # type: textblock
27298 #: ../tools/virt-rescue.pl:257
27299 msgid ""
27300 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
27301 "ENVIRONMENT VARIABLES> for the complete list."
27302 msgstr ""
27303
27304 # type: textblock
27305 #: ../tools/virt-rescue.pl:269
27306 msgid ""
27307 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27308 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27309 msgstr ""
27310
27311 # type: textblock
27312 #: ../tools/virt-make-fs.pl:37
27313 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27314 msgstr ""
27315
27316 # type: verbatim
27317 #: ../tools/virt-make-fs.pl:41
27318 #, no-wrap
27319 msgid ""
27320 " virt-make-fs [--options] input.tar output.img\n"
27321 "\n"
27322 msgstr ""
27323
27324 # type: verbatim
27325 #: ../tools/virt-make-fs.pl:43
27326 #, no-wrap
27327 msgid ""
27328 " virt-make-fs [--options] input.tar.gz output.img\n"
27329 "\n"
27330 msgstr ""
27331
27332 # type: verbatim
27333 #: ../tools/virt-make-fs.pl:45
27334 #, no-wrap
27335 msgid ""
27336 " virt-make-fs [--options] directory output.img\n"
27337 "\n"
27338 msgstr ""
27339
27340 # type: textblock
27341 #: ../tools/virt-make-fs.pl:49
27342 msgid ""
27343 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27344 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
27345 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
27346 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
27347 "you want to attach these filesystems to existing virtual machines (eg. to "
27348 "import large amounts of read-only data to a VM)."
27349 msgstr ""
27350
27351 # type: textblock
27352 #: ../tools/virt-make-fs.pl:57
27353 msgid "Basic usage is:"
27354 msgstr ""
27355
27356 # type: verbatim
27357 #: ../tools/virt-make-fs.pl:59
27358 #, no-wrap
27359 msgid ""
27360 " virt-make-fs input output\n"
27361 "\n"
27362 msgstr ""
27363
27364 # type: textblock
27365 #: ../tools/virt-make-fs.pl:61
27366 msgid ""
27367 "where C<input> is either a directory containing files that you want to add, "
27368 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27369 "C<output> is a disk image.  The input type is detected automatically.  The "
27370 "output disk image defaults to a raw ext2 image unless you specify extra "
27371 "flags (see L</OPTIONS> below)."
27372 msgstr ""
27373
27374 # type: =head2
27375 #: ../tools/virt-make-fs.pl:67
27376 msgid "EXTRA SPACE"
27377 msgstr ""
27378
27379 # type: textblock
27380 #: ../tools/virt-make-fs.pl:69
27381 msgid ""
27382 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27383 "the files that it contains, but might have extra space.  Depending on how "
27384 "you are going to use the output, you might think this extra space is wasted "
27385 "and want to minimize it, or you might want to leave space so that more files "
27386 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27387 "but you can use the C<--size> flag to leave space in the filesystem if you "
27388 "want it."
27389 msgstr ""
27390
27391 # type: textblock
27392 #: ../tools/virt-make-fs.pl:77
27393 msgid ""
27394 "An alternative way to leave extra space but not make the output image any "
27395 "bigger is to use an alternative disk image format (instead of the default "
27396 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27397 "image format (check your hypervisor supports this before using it).  This "
27398 "allows you to choose a large C<--size> but the extra space won't actually be "
27399 "allocated in the image until you try to store something in it."
27400 msgstr ""
27401
27402 # type: textblock
27403 #: ../tools/virt-make-fs.pl:85
27404 msgid ""
27405 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27406 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
27407 "resize to build another image from scratch."
27408 msgstr ""
27409
27410 # type: =head3
27411 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
27412 #: ../tools/virt-make-fs.pl:142
27413 msgid "EXAMPLE"
27414 msgstr ""
27415
27416 # type: verbatim
27417 #: ../tools/virt-make-fs.pl:91
27418 #, no-wrap
27419 msgid ""
27420 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27421 "\n"
27422 msgstr ""
27423
27424 # type: =head2
27425 #: ../tools/virt-make-fs.pl:93
27426 msgid "FILESYSTEM TYPE"
27427 msgstr ""
27428
27429 # type: textblock
27430 #: ../tools/virt-make-fs.pl:95
27431 msgid ""
27432 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27433 "libguestfs supports can be used (but I<not> read-only formats like "
27434 "ISO9660).  Here are some of the more common choices:"
27435 msgstr ""
27436
27437 # type: =item
27438 #: ../tools/virt-make-fs.pl:101
27439 msgid "I<ext3>"
27440 msgstr ""
27441
27442 # type: textblock
27443 #: ../tools/virt-make-fs.pl:103
27444 msgid ""
27445 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27446 "you are not going to use the filesystem in a way that requires the journal, "
27447 "then this is just wasted overhead."
27448 msgstr ""
27449
27450 # type: =item
27451 #: ../tools/virt-make-fs.pl:107
27452 msgid "I<ntfs> or I<vfat>"
27453 msgstr ""
27454
27455 # type: textblock
27456 #: ../tools/virt-make-fs.pl:109
27457 msgid "Useful if exporting data to a Windows guest."
27458 msgstr ""
27459
27460 # type: textblock
27461 #: ../tools/virt-make-fs.pl:111
27462 msgid ""
27463 "I<Note for vfat>: The tar archive or local directory must only contain files "
27464 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27465 "program running within libguestfs is unable to change the ownership of non-"
27466 "root files, since vfat itself does not support this."
27467 msgstr ""
27468
27469 # type: =item
27470 #: ../tools/virt-make-fs.pl:116
27471 msgid "I<minix>"
27472 msgstr ""
27473
27474 # type: textblock
27475 #: ../tools/virt-make-fs.pl:118
27476 msgid ""
27477 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27478 "total filesystem size."
27479 msgstr ""
27480
27481 # type: verbatim
27482 #: ../tools/virt-make-fs.pl:125
27483 #, no-wrap
27484 msgid ""
27485 " virt-make-fs --type=minix input minixfs.img\n"
27486 "\n"
27487 msgstr ""
27488
27489 # type: =head2
27490 #: ../tools/virt-make-fs.pl:127
27491 msgid "TO PARTITION OR NOT TO PARTITION"
27492 msgstr ""
27493
27494 # type: textblock
27495 #: ../tools/virt-make-fs.pl:129
27496 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27497 msgstr ""
27498
27499 # type: textblock
27500 #: ../tools/virt-make-fs.pl:131
27501 msgid ""
27502 "Adding a partition can make the disk image more compatible with certain "
27503 "virtualized operating systems which don't expect to see a filesystem "
27504 "directly located on a block device (Linux doesn't care and will happily "
27505 "handle both types)."
27506 msgstr ""
27507
27508 # type: textblock
27509 #: ../tools/virt-make-fs.pl:136
27510 msgid ""
27511 "On the other hand, if you have a partition table then the output image is no "
27512 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27513 "directly on a partitioned disk image.  (However libguestfs tools such as "
27514 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27515 msgstr ""
27516
27517 # type: textblock
27518 #: ../tools/virt-make-fs.pl:144
27519 msgid "Add an MBR partition:"
27520 msgstr ""
27521
27522 # type: verbatim
27523 #: ../tools/virt-make-fs.pl:146
27524 #, no-wrap
27525 msgid ""
27526 " virt-make-fs --partition -- input disk.img\n"
27527 "\n"
27528 msgstr ""
27529
27530 # type: textblock
27531 #: ../tools/virt-make-fs.pl:148
27532 msgid ""
27533 "If the output disk image could be terabyte-sized or larger, it's better to "
27534 "use an EFI/GPT-compatible partition table:"
27535 msgstr ""
27536
27537 # type: verbatim
27538 #: ../tools/virt-make-fs.pl:151
27539 #, no-wrap
27540 msgid ""
27541 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27542 "\n"
27543 msgstr ""
27544
27545 # type: textblock
27546 #: ../tools/virt-make-fs.pl:179
27547 msgid "Enable debugging information."
27548 msgstr ""
27549
27550 # type: =item
27551 #: ../tools/virt-make-fs.pl:185
27552 msgid "B<--size=E<lt>NE<gt>>"
27553 msgstr ""
27554
27555 # type: =item
27556 #: ../tools/virt-make-fs.pl:187
27557 msgid "B<--size=+E<lt>NE<gt>>"
27558 msgstr ""
27559
27560 # type: =item
27561 #: ../tools/virt-make-fs.pl:189
27562 msgid "B<-s E<lt>NE<gt>>"
27563 msgstr ""
27564
27565 # type: =item
27566 #: ../tools/virt-make-fs.pl:191
27567 msgid "B<-s +E<lt>NE<gt>>"
27568 msgstr ""
27569
27570 # type: textblock
27571 #: ../tools/virt-make-fs.pl:193
27572 msgid ""
27573 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27574 msgstr ""
27575
27576 # type: textblock
27577 #: ../tools/virt-make-fs.pl:196
27578 msgid ""
27579 "If this option is I<not> given, then the output image will be just large "
27580 "enough to contain all the files, with not much wasted space."
27581 msgstr ""
27582
27583 # type: textblock
27584 #: ../tools/virt-make-fs.pl:199
27585 msgid ""
27586 "To choose a fixed size output disk, specify an absolute number followed by b/"
27587 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27588 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27589 "files, else you will get an error."
27590 msgstr ""
27591
27592 # type: textblock
27593 #: ../tools/virt-make-fs.pl:204
27594 msgid ""
27595 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
27596 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27597 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27598 "the input files, and (approximately) an extra 200 MB free space."
27599 msgstr ""
27600
27601 # type: textblock
27602 #: ../tools/virt-make-fs.pl:210
27603 msgid ""
27604 "Note that virt-make-fs estimates free space, and therefore will not produce "
27605 "filesystems containing precisely the free space requested.  (It is much more "
27606 "expensive and time-consuming to produce a filesystem which has precisely the "
27607 "desired free space)."
27608 msgstr ""
27609
27610 # type: =item
27611 #: ../tools/virt-make-fs.pl:219
27612 msgid "B<--format=E<lt>fmtE<gt>>"
27613 msgstr ""
27614
27615 # type: =item
27616 #: ../tools/virt-make-fs.pl:221
27617 msgid "B<-F E<lt>fmtE<gt>>"
27618 msgstr ""
27619
27620 # type: textblock
27621 #: ../tools/virt-make-fs.pl:223
27622 msgid "Choose the output disk image format."
27623 msgstr ""
27624
27625 # type: textblock
27626 #: ../tools/virt-make-fs.pl:225
27627 msgid "The default is C<raw> (raw disk image)."
27628 msgstr ""
27629
27630 # type: textblock
27631 #: ../tools/virt-make-fs.pl:227
27632 msgid ""
27633 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27634 "that would really make sense here is C<qcow2>."
27635 msgstr ""
27636
27637 # type: =item
27638 #: ../tools/virt-make-fs.pl:234
27639 msgid "B<--type=E<lt>fsE<gt>>"
27640 msgstr ""
27641
27642 # type: =item
27643 #: ../tools/virt-make-fs.pl:236
27644 msgid "B<-t E<lt>fsE<gt>>"
27645 msgstr ""
27646
27647 # type: textblock
27648 #: ../tools/virt-make-fs.pl:238
27649 msgid "Choose the output filesystem type."
27650 msgstr ""
27651
27652 # type: textblock
27653 #: ../tools/virt-make-fs.pl:240
27654 msgid "The default is C<ext2>."
27655 msgstr ""
27656
27657 # type: textblock
27658 #: ../tools/virt-make-fs.pl:242
27659 msgid ""
27660 "Any filesystem which is supported read-write by libguestfs can be used here."
27661 msgstr ""
27662
27663 # type: =item
27664 #: ../tools/virt-make-fs.pl:249
27665 msgid "B<--partition>"
27666 msgstr ""
27667
27668 # type: =item
27669 #: ../tools/virt-make-fs.pl:251
27670 msgid "B<--partition=E<lt>parttypeE<gt>>"
27671 msgstr ""
27672
27673 # type: textblock
27674 #: ../tools/virt-make-fs.pl:253
27675 msgid ""
27676 "If specified, this flag adds an MBR partition table to the output disk image."
27677 msgstr ""
27678
27679 # type: textblock
27680 #: ../tools/virt-make-fs.pl:256
27681 msgid ""
27682 "You can change the partition table type, eg. C<--partition=gpt> for large "
27683 "disks."
27684 msgstr ""
27685
27686 # type: textblock
27687 #: ../tools/virt-make-fs.pl:259
27688 msgid ""
27689 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27690 "might consider the next parameter to be the partition type.  For example:"
27691 msgstr ""
27692
27693 # type: verbatim
27694 #: ../tools/virt-make-fs.pl:263
27695 #, no-wrap
27696 msgid ""
27697 " virt-make-fs --partition input.tar ...\n"
27698 "\n"
27699 msgstr ""
27700
27701 # type: textblock
27702 #: ../tools/virt-make-fs.pl:265
27703 msgid ""
27704 "would cause virt-make-fs to think you wanted to use a partition type of "
27705 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27706 "dash) between options and the input file argument:"
27707 msgstr ""
27708
27709 # type: verbatim
27710 #: ../tools/virt-make-fs.pl:269
27711 #, no-wrap
27712 msgid ""
27713 " virt-make-fs --partition -- input.tar ...\n"
27714 "\n"
27715 msgstr ""
27716
27717 # type: textblock
27718 #: ../tools/virt-make-fs.pl:536
27719 msgid ""
27720 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27721 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
27722 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27723 msgstr ""
27724
27725 # type: verbatim
27726 #: ../tools/virt-make-fs.pl:553
27727 #, no-wrap
27728 msgid ""
27729 " export LIBGUESTFS_DEBUG=1\n"
27730 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
27731 "\n"
27732 msgstr ""
27733
27734 # type: textblock
27735 #: ../tools/virt-make-fs.pl:556
27736 msgid ""
27737 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
27738 "redhat.com/>"
27739 msgstr ""
27740
27741 # type: textblock
27742 #: ../tools/virt-list-partitions.pl:32
27743 msgid ""
27744 "virt-list-partitions - List partitions in a virtual machine or disk image"
27745 msgstr ""
27746
27747 # type: verbatim
27748 #: ../tools/virt-list-partitions.pl:36
27749 #, no-wrap
27750 msgid ""
27751 " virt-list-partitions [--options] domname\n"
27752 "\n"
27753 msgstr ""
27754
27755 # type: verbatim
27756 #: ../tools/virt-list-partitions.pl:38
27757 #, no-wrap
27758 msgid ""
27759 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
27760 "\n"
27761 msgstr ""
27762
27763 # type: textblock
27764 #: ../tools/virt-list-partitions.pl:42
27765 msgid ""
27766 "C<virt-list-partitions> is a command line tool to list the partitions that "
27767 "are contained in a virtual machine or disk image.  It is mainly useful as a "
27768 "first step to using L<virt-resize(1)>."
27769 msgstr ""
27770
27771 # type: textblock
27772 #: ../tools/virt-list-partitions.pl:47
27773 msgid ""
27774 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
27775 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27776 "> tool."
27777 msgstr ""
27778
27779 # type: =item
27780 #: ../tools/virt-list-partitions.pl:104
27781 msgid "B<-h> | B<--human-readable>"
27782 msgstr ""
27783
27784 # type: textblock
27785 #: ../tools/virt-list-partitions.pl:106
27786 msgid "Show sizes in human-readable form (eg. \"1G\")."
27787 msgstr ""
27788
27789 # type: textblock
27790 #: ../tools/virt-list-partitions.pl:114
27791 msgid ""
27792 "With this option, C<virt-list-partitions> displays the type and size of each "
27793 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
27794 msgstr ""
27795
27796 # type: =item
27797 #: ../tools/virt-list-partitions.pl:121
27798 msgid "B<-t> | B<--total>"
27799 msgstr ""
27800
27801 # type: textblock
27802 #: ../tools/virt-list-partitions.pl:123
27803 msgid ""
27804 "Display the total size of each block device (as a separate row or rows)."
27805 msgstr ""
27806
27807 # type: textblock
27808 #: ../tools/virt-list-partitions.pl:256
27809 msgid ""
27810 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
27811 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
27812 "libguestfs.org/>."
27813 msgstr ""