build: Add ./configure --disable-ruby option.
[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-05 15:21+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:1186
782 #: ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1411
783 #: ../src/guestfs.pod:1416 ../src/guestfs.pod:1420 ../src/guestfs.pod:1522
784 #: ../src/guestfs.pod:1526 ../src/guestfs.pod:1530 ../src/guestfs.pod:1535
785 #: ../src/guestfs.pod:1543 ../src/guestfs.pod:1562 ../src/guestfs.pod:1570
786 #: ../src/guestfs.pod:1800 ../src/guestfs.pod:1806 ../src/guestfs.pod:1811
787 #: ../src/guestfs.pod:1817 ../src/guestfs.pod:1924 ../src/guestfs.pod:1928
788 #: ../src/guestfs.pod:1932 ../src/guestfs.pod:1936
789 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
790 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:469
791 #: ../src/guestfs-actions.pod:476 ../src/guestfs-actions.pod:483
792 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1426
793 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1434
794 #: ../src/guestfs-actions.pod:1442 ../src/guestfs-actions.pod:1446
795 #: ../src/guestfs-actions.pod:1450 ../src/guestfs-actions.pod:1460
796 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1468
797 #: ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1600
798 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:1610
799 #: ../src/guestfs-actions.pod:1665 ../src/guestfs-actions.pod:1669
800 #: ../src/guestfs-actions.pod:1674 ../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 "API functions can return errors.  For example, almost all functions that "
1859 "return C<int> will return C<-1> to indicate an error.  You can get "
1860 "additional information on errors by calling L</guestfs_last_error> and/or by "
1861 "setting up an error handler with L</guestfs_set_error_handler>."
1862 msgstr ""
1863
1864 # type: textblock
1865 #: ../src/guestfs.pod:897
1866 msgid ""
1867 "When the handle is created, a default error handler is installed which "
1868 "prints the error message string to C<stderr>.  For small short-running "
1869 "command line programs it is sufficient to do:"
1870 msgstr ""
1871
1872 # type: verbatim
1873 #: ../src/guestfs.pod:901
1874 #, no-wrap
1875 msgid ""
1876 " if (guestfs_launch (g) == -1)\n"
1877 "   exit (EXIT_FAILURE);\n"
1878 "\n"
1879 msgstr ""
1880
1881 # type: textblock
1882 #: ../src/guestfs.pod:904
1883 msgid ""
1884 "since the default error handler will ensure that an error message has been "
1885 "printed to C<stderr> before the program exits."
1886 msgstr ""
1887
1888 # type: textblock
1889 #: ../src/guestfs.pod:907
1890 msgid ""
1891 "For other programs the caller will almost certainly want to install an "
1892 "alternate error handler or do error handling in-line like this:"
1893 msgstr ""
1894
1895 # type: verbatim
1896 #: ../src/guestfs.pod:910
1897 #, no-wrap
1898 msgid ""
1899 " g = guestfs_create ();\n"
1900 " \n"
1901 msgstr ""
1902
1903 # type: verbatim
1904 #: ../src/guestfs.pod:912
1905 #, no-wrap
1906 msgid ""
1907 " /* This disables the default behaviour of printing errors\n"
1908 "    on stderr. */\n"
1909 " guestfs_set_error_handler (g, NULL, NULL);\n"
1910 " \n"
1911 msgstr ""
1912
1913 # type: verbatim
1914 #: ../src/guestfs.pod:916
1915 #, no-wrap
1916 msgid ""
1917 " if (guestfs_launch (g) == -1) {\n"
1918 "   /* Examine the error message and print it etc. */\n"
1919 "   char *msg = guestfs_last_error (g);\n"
1920 "   fprintf (stderr, \"%s\\n\", msg);\n"
1921 "   /* ... */\n"
1922 "  }\n"
1923 "\n"
1924 msgstr ""
1925
1926 # type: textblock
1927 #: ../src/guestfs.pod:923
1928 msgid ""
1929 "Out of memory errors are handled differently.  The default action is to call "
1930 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
1931 "guestfs_set_out_of_memory_handler>."
1932 msgstr ""
1933
1934 # type: textblock
1935 #: ../src/guestfs.pod:927
1936 msgid ""
1937 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
1938 "because there is no handle if this happens there is no way to get additional "
1939 "error information.  However L</guestfs_create> is supposed to be a "
1940 "lightweight operation which can only fail because of insufficient memory (it "
1941 "returns NULL in this case)."
1942 msgstr ""
1943
1944 # type: =head2
1945 #: ../src/guestfs.pod:933
1946 msgid "guestfs_last_error"
1947 msgstr ""
1948
1949 # type: verbatim
1950 #: ../src/guestfs.pod:935
1951 #, no-wrap
1952 msgid ""
1953 " const char *guestfs_last_error (guestfs_h *g);\n"
1954 "\n"
1955 msgstr ""
1956
1957 # type: textblock
1958 #: ../src/guestfs.pod:937
1959 msgid ""
1960 "This returns the last error message that happened on C<g>.  If there has not "
1961 "been an error since the handle was created, then this returns C<NULL>."
1962 msgstr ""
1963
1964 # type: textblock
1965 #: ../src/guestfs.pod:941
1966 msgid ""
1967 "The lifetime of the returned string is until the next error occurs, or L</"
1968 "guestfs_close> is called."
1969 msgstr ""
1970
1971 # type: =head2
1972 #: ../src/guestfs.pod:944
1973 msgid "guestfs_set_error_handler"
1974 msgstr ""
1975
1976 # type: verbatim
1977 #: ../src/guestfs.pod:946
1978 #, no-wrap
1979 msgid ""
1980 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1981 "                                           void *opaque,\n"
1982 "                                           const char *msg);\n"
1983 " void guestfs_set_error_handler (guestfs_h *g,\n"
1984 "                                 guestfs_error_handler_cb cb,\n"
1985 "                                 void *opaque);\n"
1986 "\n"
1987 msgstr ""
1988
1989 # type: textblock
1990 #: ../src/guestfs.pod:953
1991 msgid ""
1992 "The callback C<cb> will be called if there is an error.  The parameters "
1993 "passed to the callback are an opaque data pointer and the error message "
1994 "string."
1995 msgstr ""
1996
1997 # type: textblock
1998 #: ../src/guestfs.pod:957
1999 msgid ""
2000 "Note that the message string C<msg> is freed as soon as the callback "
2001 "function returns, so if you want to stash it somewhere you must make your "
2002 "own copy."
2003 msgstr ""
2004
2005 # type: textblock
2006 #: ../src/guestfs.pod:961
2007 msgid "The default handler prints messages on C<stderr>."
2008 msgstr ""
2009
2010 # type: textblock
2011 #: ../src/guestfs.pod:963
2012 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2013 msgstr ""
2014
2015 # type: =head2
2016 #: ../src/guestfs.pod:965
2017 msgid "guestfs_get_error_handler"
2018 msgstr ""
2019
2020 # type: verbatim
2021 #: ../src/guestfs.pod:967
2022 #, no-wrap
2023 msgid ""
2024 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2025 "                                                     void **opaque_rtn);\n"
2026 "\n"
2027 msgstr ""
2028
2029 # type: textblock
2030 #: ../src/guestfs.pod:970
2031 msgid "Returns the current error handler callback."
2032 msgstr ""
2033
2034 # type: =head2
2035 #: ../src/guestfs.pod:972
2036 msgid "guestfs_set_out_of_memory_handler"
2037 msgstr ""
2038
2039 # type: verbatim
2040 #: ../src/guestfs.pod:974
2041 #, no-wrap
2042 msgid ""
2043 " typedef void (*guestfs_abort_cb) (void);\n"
2044 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2045 "                                        guestfs_abort_cb);\n"
2046 "\n"
2047 msgstr ""
2048
2049 # type: textblock
2050 #: ../src/guestfs.pod:978
2051 msgid ""
2052 "The callback C<cb> will be called if there is an out of memory situation.  "
2053 "I<Note this callback must not return>."
2054 msgstr ""
2055
2056 # type: textblock
2057 #: ../src/guestfs.pod:981
2058 msgid "The default is to call L<abort(3)>."
2059 msgstr ""
2060
2061 # type: textblock
2062 #: ../src/guestfs.pod:983
2063 msgid ""
2064 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2065 msgstr ""
2066
2067 # type: =head2
2068 #: ../src/guestfs.pod:986
2069 msgid "guestfs_get_out_of_memory_handler"
2070 msgstr ""
2071
2072 # type: verbatim
2073 #: ../src/guestfs.pod:988
2074 #, no-wrap
2075 msgid ""
2076 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2077 "\n"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:990
2082 msgid "This returns the current out of memory handler."
2083 msgstr ""
2084
2085 # type: =head1
2086 #: ../src/guestfs.pod:992
2087 msgid "PATH"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:994
2092 msgid ""
2093 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2094 "internal path."
2095 msgstr ""
2096
2097 # type: textblock
2098 #: ../src/guestfs.pod:997
2099 msgid ""
2100 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2101 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2102 msgstr ""
2103
2104 # type: textblock
2105 #: ../src/guestfs.pod:1000
2106 msgid ""
2107 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2108 "to change the directories that libguestfs will search in.  The value is a "
2109 "colon-separated list of paths.  The current directory is I<not> searched "
2110 "unless the path contains an empty element or C<.>.  For example "
2111 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2112 "then C</usr/lib/guestfs>."
2113 msgstr ""
2114
2115 # type: =head1
2116 #: ../src/guestfs.pod:1007
2117 msgid "HIGH-LEVEL API ACTIONS"
2118 msgstr ""
2119
2120 # type: =head2
2121 #: ../src/guestfs.pod:1009
2122 msgid "ABI GUARANTEE"
2123 msgstr ""
2124
2125 # type: textblock
2126 #: ../src/guestfs.pod:1011
2127 msgid ""
2128 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2129 "actions as outlined in this section.  Although we will deprecate some "
2130 "actions, for example if they get replaced by newer calls, we will keep the "
2131 "old actions forever.  This allows you the developer to program in confidence "
2132 "against the libguestfs API."
2133 msgstr ""
2134
2135 # type: textblock
2136 #: ../src/guestfs.pod:1017 ../fish/guestfish.pod:860
2137 msgid "@ACTIONS@"
2138 msgstr ""
2139
2140 # type: =head1
2141 #: ../src/guestfs.pod:1019
2142 msgid "STRUCTURES"
2143 msgstr ""
2144
2145 # type: textblock
2146 #: ../src/guestfs.pod:1021
2147 msgid "@STRUCTS@"
2148 msgstr ""
2149
2150 # type: =head1
2151 #: ../src/guestfs.pod:1023
2152 msgid "AVAILABILITY"
2153 msgstr ""
2154
2155 # type: =head2
2156 #: ../src/guestfs.pod:1025
2157 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2158 msgstr ""
2159
2160 # type: textblock
2161 #: ../src/guestfs.pod:1027
2162 msgid ""
2163 "Using L</guestfs_available> you can test availability of the following "
2164 "groups of functions.  This test queries the appliance to see if the "
2165 "appliance you are currently using supports the functionality."
2166 msgstr ""
2167
2168 # type: textblock
2169 #: ../src/guestfs.pod:1032
2170 msgid "@AVAILABILITY@"
2171 msgstr ""
2172
2173 # type: =head2
2174 #: ../src/guestfs.pod:1034
2175 msgid "GUESTFISH supported COMMAND"
2176 msgstr ""
2177
2178 # type: textblock
2179 #: ../src/guestfs.pod:1036
2180 msgid ""
2181 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2182 "prints out the available groups and whether they are supported by this build "
2183 "of libguestfs.  Note however that you have to do C<run> first."
2184 msgstr ""
2185
2186 # type: =head2
2187 #: ../src/guestfs.pod:1041
2188 msgid "SINGLE CALLS AT COMPILE TIME"
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1043
2193 msgid ""
2194 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2195 "function, such as:"
2196 msgstr ""
2197
2198 # type: verbatim
2199 #: ../src/guestfs.pod:1046
2200 #, no-wrap
2201 msgid ""
2202 " #define LIBGUESTFS_HAVE_DD 1\n"
2203 "\n"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1048
2208 msgid "if L</guestfs_dd> is available."
2209 msgstr ""
2210
2211 # type: textblock
2212 #: ../src/guestfs.pod:1050
2213 msgid ""
2214 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2215 "function is available at compile time, we recommended using build tools such "
2216 "as autoconf or cmake.  For example in autotools you could use:"
2217 msgstr ""
2218
2219 # type: verbatim
2220 #: ../src/guestfs.pod:1055
2221 #, no-wrap
2222 msgid ""
2223 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2224 " AC_CHECK_FUNCS([guestfs_dd])\n"
2225 "\n"
2226 msgstr ""
2227
2228 # type: textblock
2229 #: ../src/guestfs.pod:1058
2230 msgid ""
2231 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2232 "in your program."
2233 msgstr ""
2234
2235 # type: =head2
2236 #: ../src/guestfs.pod:1061
2237 msgid "SINGLE CALLS AT RUN TIME"
2238 msgstr ""
2239
2240 # type: textblock
2241 #: ../src/guestfs.pod:1063
2242 msgid ""
2243 "Testing at compile time doesn't guarantee that a function really exists in "
2244 "the library.  The reason is that you might be dynamically linked against a "
2245 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2246 "This situation unfortunately results in a segmentation fault, which is a "
2247 "shortcoming of the C dynamic linking system itself."
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1070
2252 msgid ""
2253 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2254 "in this example program (note that you still need the compile time check as "
2255 "well):"
2256 msgstr ""
2257
2258 # type: verbatim
2259 #: ../src/guestfs.pod:1074
2260 #, no-wrap
2261 msgid ""
2262 " #include <stdio.h>\n"
2263 " #include <stdlib.h>\n"
2264 " #include <unistd.h>\n"
2265 " #include <dlfcn.h>\n"
2266 " #include <guestfs.h>\n"
2267 " \n"
2268 msgstr ""
2269
2270 # type: verbatim
2271 #: ../src/guestfs.pod:1080
2272 #, no-wrap
2273 msgid ""
2274 " main ()\n"
2275 " {\n"
2276 " #ifdef LIBGUESTFS_HAVE_DD\n"
2277 "   void *dl;\n"
2278 "   int has_function;\n"
2279 " \n"
2280 msgstr ""
2281
2282 # type: verbatim
2283 #: ../src/guestfs.pod:1086
2284 #, no-wrap
2285 msgid ""
2286 "   /* Test if the function guestfs_dd is really available. */\n"
2287 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2288 "   if (!dl) {\n"
2289 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2290 "     exit (EXIT_FAILURE);\n"
2291 "   }\n"
2292 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2293 "   dlclose (dl);\n"
2294 " \n"
2295 msgstr ""
2296
2297 # type: verbatim
2298 #: ../src/guestfs.pod:1095
2299 #, no-wrap
2300 msgid ""
2301 "   if (!has_function)\n"
2302 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2303 "   else {\n"
2304 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2305 "     /* Now it's safe to call\n"
2306 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2307 "     */\n"
2308 "   }\n"
2309 " #else\n"
2310 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2311 " #endif\n"
2312 "  }\n"
2313 "\n"
2314 msgstr ""
2315
2316 # type: textblock
2317 #: ../src/guestfs.pod:1108
2318 msgid ""
2319 "You may think the above is an awful lot of hassle, and it is.  There are "
2320 "other ways outside of the C linking system to ensure that this kind of "
2321 "incompatibility never arises, such as using package versioning:"
2322 msgstr ""
2323
2324 # type: verbatim
2325 #: ../src/guestfs.pod:1113
2326 #, no-wrap
2327 msgid ""
2328 " Requires: libguestfs >= 1.0.80\n"
2329 "\n"
2330 msgstr ""
2331
2332 # type: =head1
2333 #: ../src/guestfs.pod:1115
2334 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1117
2339 msgid ""
2340 "A recent feature of the API is the introduction of calls which take optional "
2341 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2342 "takes variable arguments (ie. C<...>), as in this example:"
2343 msgstr ""
2344
2345 # type: verbatim
2346 #: ../src/guestfs.pod:1122
2347 #, no-wrap
2348 msgid ""
2349 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2350 "\n"
2351 msgstr ""
2352
2353 # type: textblock
2354 #: ../src/guestfs.pod:1124
2355 msgid ""
2356 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2357 "call with no optional arguments specified:"
2358 msgstr ""
2359
2360 # type: verbatim
2361 #: ../src/guestfs.pod:1127
2362 #, no-wrap
2363 msgid ""
2364 " guestfs_add_drive_opts (g, filename, -1);\n"
2365 "\n"
2366 msgstr ""
2367
2368 # type: textblock
2369 #: ../src/guestfs.pod:1129
2370 msgid "With a single optional argument:"
2371 msgstr ""
2372
2373 # type: verbatim
2374 #: ../src/guestfs.pod:1131
2375 #, no-wrap
2376 msgid ""
2377 " guestfs_add_drive_opts (g, filename,\n"
2378 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2379 "                         -1);\n"
2380 "\n"
2381 msgstr ""
2382
2383 # type: textblock
2384 #: ../src/guestfs.pod:1135
2385 msgid "With two:"
2386 msgstr ""
2387
2388 # type: verbatim
2389 #: ../src/guestfs.pod:1137
2390 #, no-wrap
2391 msgid ""
2392 " guestfs_add_drive_opts (g, filename,\n"
2393 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2394 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2395 "                         -1);\n"
2396 "\n"
2397 msgstr ""
2398
2399 # type: textblock
2400 #: ../src/guestfs.pod:1142
2401 msgid ""
2402 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2403 "happen!"
2404 msgstr ""
2405
2406 # type: =head2
2407 #: ../src/guestfs.pod:1145
2408 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2409 msgstr ""
2410
2411 # type: textblock
2412 #: ../src/guestfs.pod:1147
2413 msgid ""
2414 "The second variant has the same name with the suffix C<_va>, which works the "
2415 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2416 "example function, this is declared:"
2417 msgstr ""
2418
2419 # type: verbatim
2420 #: ../src/guestfs.pod:1151
2421 #, no-wrap
2422 msgid ""
2423 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2424 "                                va_list args);\n"
2425 "\n"
2426 msgstr ""
2427
2428 # type: =head2
2429 #: ../src/guestfs.pod:1154
2430 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2431 msgstr ""
2432
2433 # type: textblock
2434 #: ../src/guestfs.pod:1156
2435 msgid ""
2436 "The third variant is useful where you need to construct these calls.  You "
2437 "pass in a structure where you fill in the optional fields.  The structure "
2438 "has a bitmask as the first element which you must set to indicate which "
2439 "fields you have filled in.  For our example function the structure and call "
2440 "are declared:"
2441 msgstr ""
2442
2443 # type: verbatim
2444 #: ../src/guestfs.pod:1162
2445 #, no-wrap
2446 msgid ""
2447 " struct guestfs_add_drive_opts_argv {\n"
2448 "   uint64_t bitmask;\n"
2449 "   int readonly;\n"
2450 "   const char *format;\n"
2451 "   /* ... */\n"
2452 " };\n"
2453 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2454 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2455 "\n"
2456 msgstr ""
2457
2458 # type: textblock
2459 #: ../src/guestfs.pod:1171
2460 msgid "You could call it like this:"
2461 msgstr ""
2462
2463 # type: verbatim
2464 #: ../src/guestfs.pod:1173
2465 #, no-wrap
2466 msgid ""
2467 " struct guestfs_add_drive_opts_argv optargs = {\n"
2468 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2469 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2470 "   .readonly = 1,\n"
2471 "   .format = \"qcow2\"\n"
2472 " };\n"
2473 " \n"
2474 msgstr ""
2475
2476 # type: verbatim
2477 #: ../src/guestfs.pod:1180
2478 #, no-wrap
2479 msgid ""
2480 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2481 "\n"
2482 msgstr ""
2483
2484 # type: textblock
2485 #: ../src/guestfs.pod:1182 ../src/guestfs-actions.pod:11
2486 #: ../src/guestfs-actions.pod:1661 ../fish/guestfish-actions.pod:9
2487 #: ../fish/guestfish-actions.pod:1244
2488 msgid "Notes:"
2489 msgstr ""
2490
2491 # type: textblock
2492 #: ../src/guestfs.pod:1188
2493 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1193
2498 msgid "You do not need to fill in all fields of the structure."
2499 msgstr ""
2500
2501 # type: textblock
2502 #: ../src/guestfs.pod:1197
2503 msgid ""
2504 "There must be a one-to-one correspondence between fields of the structure "
2505 "that are filled in, and bits set in the bitmask."
2506 msgstr ""
2507
2508 # type: =head2
2509 #: ../src/guestfs.pod:1202
2510 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2511 msgstr ""
2512
2513 # type: textblock
2514 #: ../src/guestfs.pod:1204
2515 msgid ""
2516 "In other languages, optional arguments are expressed in the way that is "
2517 "natural for that language.  We refer you to the language-specific "
2518 "documentation for more details on that."
2519 msgstr ""
2520
2521 # type: textblock
2522 #: ../src/guestfs.pod:1208
2523 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2524 msgstr ""
2525
2526 # type: =end
2527 #: ../src/guestfs.pod:1210 ../src/guestfs.pod:1215
2528 msgid "html"
2529 msgstr ""
2530
2531 # type: textblock
2532 #: ../src/guestfs.pod:1212
2533 msgid ""
2534 "<!-- old anchor for the next section --> <a name="
2535 "\"state_machine_and_low_level_event_api\"/>"
2536 msgstr ""
2537
2538 # type: =head1
2539 #: ../src/guestfs.pod:1217
2540 msgid "ARCHITECTURE"
2541 msgstr ""
2542
2543 # type: textblock
2544 #: ../src/guestfs.pod:1219
2545 msgid ""
2546 "Internally, libguestfs is implemented by running an appliance (a special "
2547 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2548 "process of the main program."
2549 msgstr ""
2550
2551 # type: verbatim
2552 #: ../src/guestfs.pod:1223
2553 #, no-wrap
2554 msgid ""
2555 "  ___________________\n"
2556 " /                   \\\n"
2557 " | main program      |\n"
2558 " |                   |\n"
2559 " |                   |           child process / appliance\n"
2560 " |                   |           __________________________\n"
2561 " |                   |          / qemu                     \\\n"
2562 " +-------------------+   RPC    |      +-----------------+ |\n"
2563 " | libguestfs     <--------------------> guestfsd        | |\n"
2564 " |                   |          |      +-----------------+ |\n"
2565 " \\___________________/          |      | Linux kernel    | |\n"
2566 "                                |      +--^--------------+ |\n"
2567 "                                \\_________|________________/\n"
2568 "                                          |\n"
2569 "                                   _______v______\n"
2570 "                                  /              \\\n"
2571 "                                  | Device or    |\n"
2572 "                                  | disk image   |\n"
2573 "                                  \\______________/\n"
2574 "\n"
2575 msgstr ""
2576
2577 # type: textblock
2578 #: ../src/guestfs.pod:1243
2579 msgid ""
2580 "The library, linked to the main program, creates the child process and hence "
2581 "the appliance in the L</guestfs_launch> function."
2582 msgstr ""
2583
2584 # type: textblock
2585 #: ../src/guestfs.pod:1246
2586 msgid ""
2587 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2588 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2589 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2590 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2591 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2592 "attached to the qemu process which translates device access by the "
2593 "appliance's Linux kernel into accesses to the image."
2594 msgstr ""
2595
2596 # type: textblock
2597 #: ../src/guestfs.pod:1255
2598 msgid ""
2599 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2600 "Although the disk image you are attached to might also be used by some "
2601 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2602 "care if both libguestfs's qemu process and your virtual machine are trying "
2603 "to update the disk image at the same time, since these usually results in "
2604 "massive disk corruption)."
2605 msgstr ""
2606
2607 # type: =head1
2608 #: ../src/guestfs.pod:1262
2609 msgid "STATE MACHINE"
2610 msgstr ""
2611
2612 # type: textblock
2613 #: ../src/guestfs.pod:1264
2614 msgid "libguestfs uses a state machine to model the child process:"
2615 msgstr ""
2616
2617 # type: verbatim
2618 #: ../src/guestfs.pod:1266
2619 #, no-wrap
2620 msgid ""
2621 "                         |\n"
2622 "                    guestfs_create\n"
2623 "                         |\n"
2624 "                         |\n"
2625 "                     ____V_____\n"
2626 "                    /          \\\n"
2627 "                    |  CONFIG  |\n"
2628 "                    \\__________/\n"
2629 "                     ^ ^   ^  \\\n"
2630 "                    /  |    \\  \\ guestfs_launch\n"
2631 "                   /   |    _\\__V______\n"
2632 "                  /    |   /           \\\n"
2633 "                 /     |   | LAUNCHING |\n"
2634 "                /      |   \\___________/\n"
2635 "               /       |       /\n"
2636 "              /        |  guestfs_launch\n"
2637 "             /         |     /\n"
2638 "    ______  /        __|____V\n"
2639 "   /      \\ ------> /        \\\n"
2640 "   | BUSY |         | READY  |\n"
2641 "   \\______/ <------ \\________/\n"
2642 "\n"
2643 msgstr ""
2644
2645 # type: textblock
2646 #: ../src/guestfs.pod:1288
2647 msgid ""
2648 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2649 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2650 "(3) alternating between READY and BUSY as commands are issued to, and "
2651 "carried out by, the child process."
2652 msgstr ""
2653
2654 # type: textblock
2655 #: ../src/guestfs.pod:1293
2656 msgid ""
2657 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2658 "asynchronously at any time (eg. due to some internal error), and that causes "
2659 "the state to transition back to CONFIG."
2660 msgstr ""
2661
2662 # type: textblock
2663 #: ../src/guestfs.pod:1297
2664 msgid ""
2665 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2666 "issued when in the CONFIG state."
2667 msgstr ""
2668
2669 # type: textblock
2670 #: ../src/guestfs.pod:1300
2671 msgid ""
2672 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2673 "L</guestfs_launch> blocks until the child process is READY to accept "
2674 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2675 "moves the state from CONFIG to LAUNCHING while it is running."
2676 msgstr ""
2677
2678 # type: textblock
2679 #: ../src/guestfs.pod:1306
2680 msgid ""
2681 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2682 "state.  These API calls block waiting for the command to be carried out (ie. "
2683 "the state to transition to BUSY and then back to READY).  There are no non-"
2684 "blocking versions, and no way to issue more than one command per handle at "
2685 "the same time."
2686 msgstr ""
2687
2688 # type: textblock
2689 #: ../src/guestfs.pod:1312
2690 msgid ""
2691 "Finally, the child process sends asynchronous messages back to the main "
2692 "program, such as kernel log messages.  You can register a callback to "
2693 "receive these messages."
2694 msgstr ""
2695
2696 # type: =head2
2697 #: ../src/guestfs.pod:1316
2698 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2699 msgstr ""
2700
2701 # type: textblock
2702 #: ../src/guestfs.pod:1318
2703 msgid ""
2704 "The child process generates events in some situations.  Current events "
2705 "include: receiving a log message, the child process exits."
2706 msgstr ""
2707
2708 # type: textblock
2709 #: ../src/guestfs.pod:1321
2710 msgid ""
2711 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2712 "types of events."
2713 msgstr ""
2714
2715 # type: textblock
2716 #: ../src/guestfs.pod:1324
2717 msgid ""
2718 "Only I<one callback of each type> can be registered for each handle.  "
2719 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2720 "that type.  Cancel all callbacks of this type by calling this function with "
2721 "C<cb> set to C<NULL>."
2722 msgstr ""
2723
2724 # type: =head2
2725 #: ../src/guestfs.pod:1329
2726 msgid "guestfs_set_log_message_callback"
2727 msgstr ""
2728
2729 # type: verbatim
2730 #: ../src/guestfs.pod:1331
2731 #, no-wrap
2732 msgid ""
2733 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2734 "                                         char *buf, int len);\n"
2735 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2736 "                                        guestfs_log_message_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 whenever qemu or the guest writes "
2745 "anything to the console."
2746 msgstr ""
2747
2748 # type: textblock
2749 #: ../src/guestfs.pod:1340
2750 msgid "Use this function to capture kernel messages and similar."
2751 msgstr ""
2752
2753 # type: textblock
2754 #: ../src/guestfs.pod:1342
2755 msgid ""
2756 "Normally there is no log message handler, and log messages are just "
2757 "discarded."
2758 msgstr ""
2759
2760 # type: =head2
2761 #: ../src/guestfs.pod:1345
2762 msgid "guestfs_set_subprocess_quit_callback"
2763 msgstr ""
2764
2765 # type: verbatim
2766 #: ../src/guestfs.pod:1347
2767 #, no-wrap
2768 msgid ""
2769 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2770 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2771 "                                            guestfs_subprocess_quit_cb cb,\n"
2772 "                                            void *opaque);\n"
2773 "\n"
2774 msgstr ""
2775
2776 # type: textblock
2777 #: ../src/guestfs.pod:1352
2778 msgid ""
2779 "The callback function C<cb> will be called when the child process quits, "
2780 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2781 "corresponds to a transition from any state to the CONFIG state)."
2782 msgstr ""
2783
2784 # type: =head2
2785 #: ../src/guestfs.pod:1357
2786 msgid "guestfs_set_launch_done_callback"
2787 msgstr ""
2788
2789 # type: verbatim
2790 #: ../src/guestfs.pod:1359
2791 #, no-wrap
2792 msgid ""
2793 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2794 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2795 "                                        guestfs_launch_done_cb cb,\n"
2796 "                                        void *opaque);\n"
2797 "\n"
2798 msgstr ""
2799
2800 # type: textblock
2801 #: ../src/guestfs.pod:1364
2802 msgid ""
2803 "The callback function C<cb> will be called when the child process becomes "
2804 "ready first time after it has been launched.  (This corresponds to a "
2805 "transition from LAUNCHING to the READY state)."
2806 msgstr ""
2807
2808 # type: =head2
2809 #: ../src/guestfs.pod:1368
2810 msgid "guestfs_set_close_callback"
2811 msgstr ""
2812
2813 # type: verbatim
2814 #: ../src/guestfs.pod:1370
2815 #, no-wrap
2816 msgid ""
2817 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2818 " void guestfs_set_close_callback (guestfs_h *g,\n"
2819 "                                  guestfs_close_cb cb,\n"
2820 "                                  void *opaque);\n"
2821 "\n"
2822 msgstr ""
2823
2824 # type: textblock
2825 #: ../src/guestfs.pod:1375
2826 msgid ""
2827 "The callback function C<cb> will be called while the handle is being closed "
2828 "(synchronously from L</guestfs_close>)."
2829 msgstr ""
2830
2831 # type: textblock
2832 #: ../src/guestfs.pod:1378
2833 msgid ""
2834 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2835 "handles that are open when the program exits.  This means that this callback "
2836 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2837 "problems in higher-level languages (eg. if your HLL interpreter has already "
2838 "been cleaned up by the time this is called, and if your callback then jumps "
2839 "into some HLL function)."
2840 msgstr ""
2841
2842 # type: =head2
2843 #: ../src/guestfs.pod:1386
2844 msgid "guestfs_set_progress_callback"
2845 msgstr ""
2846
2847 # type: verbatim
2848 #: ../src/guestfs.pod:1388
2849 #, no-wrap
2850 msgid ""
2851 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2852 "                                      int proc_nr, int serial,\n"
2853 "                                      uint64_t position, uint64_t total);\n"
2854 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2855 "                                     guestfs_progress_cb cb,\n"
2856 "                                     void *opaque);\n"
2857 "\n"
2858 msgstr ""
2859
2860 # type: textblock
2861 #: ../src/guestfs.pod:1395
2862 msgid ""
2863 "Some long-running operations can generate progress messages.  If this "
2864 "callback is registered, then it will be called each time a progress message "
2865 "is generated (usually two seconds after the operation started, and three "
2866 "times per second thereafter until it completes, although the frequency may "
2867 "change in future versions)."
2868 msgstr ""
2869
2870 # type: textblock
2871 #: ../src/guestfs.pod:1401
2872 msgid ""
2873 "The callback receives two numbers: C<position> and C<total>.  The units of "
2874 "C<total> are not defined, although for some operations C<total> may relate "
2875 "in some way to the amount of data to be transferred (eg. in bytes or "
2876 "megabytes), and C<position> may be the portion which has been transferred."
2877 msgstr ""
2878
2879 # type: textblock
2880 #: ../src/guestfs.pod:1407
2881 msgid "The only defined and stable parts of the API are:"
2882 msgstr ""
2883
2884 # type: textblock
2885 #: ../src/guestfs.pod:1413
2886 msgid ""
2887 "The callback can display to the user some type of progress bar or indicator "
2888 "which shows the ratio of C<position>:C<total>."
2889 msgstr ""
2890
2891 # type: textblock
2892 #: ../src/guestfs.pod:1418
2893 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2894 msgstr ""
2895
2896 # type: textblock
2897 #: ../src/guestfs.pod:1422
2898 msgid ""
2899 "If any progress notification is sent during a call, then a final progress "
2900 "notification is always sent when C<position> = C<total>."
2901 msgstr ""
2902
2903 # type: textblock
2904 #: ../src/guestfs.pod:1425
2905 msgid ""
2906 "This is to simplify caller code, so callers can easily set the progress "
2907 "indicator to \"100%\" at the end of the operation, without requiring special "
2908 "code to detect this case."
2909 msgstr ""
2910
2911 # type: textblock
2912 #: ../src/guestfs.pod:1431
2913 msgid ""
2914 "The callback also receives the procedure number and serial number of the "
2915 "call.  These are only useful for debugging protocol issues, and the callback "
2916 "can normally ignore them.  The callback may want to print these numbers in "
2917 "error messages or debugging messages."
2918 msgstr ""
2919
2920 # type: =head1
2921 #: ../src/guestfs.pod:1436
2922 msgid "PRIVATE DATA AREA"
2923 msgstr ""
2924
2925 # type: textblock
2926 #: ../src/guestfs.pod:1438
2927 msgid ""
2928 "You can attach named pieces of private data to the libguestfs handle, and "
2929 "fetch them by name for the lifetime of the handle.  This is called the "
2930 "private data area and is only available from the C API."
2931 msgstr ""
2932
2933 # type: textblock
2934 #: ../src/guestfs.pod:1442
2935 msgid "To attach a named piece of data, use the following call:"
2936 msgstr ""
2937
2938 # type: verbatim
2939 #: ../src/guestfs.pod:1444
2940 #, no-wrap
2941 msgid ""
2942 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2943 "\n"
2944 msgstr ""
2945
2946 # type: textblock
2947 #: ../src/guestfs.pod:1446
2948 msgid ""
2949 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2950 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2951 "overwritten."
2952 msgstr ""
2953
2954 # type: textblock
2955 #: ../src/guestfs.pod:1450
2956 msgid ""
2957 "You can use any C<key> you want, but names beginning with an underscore "
2958 "character are reserved for internal libguestfs purposes (for implementing "
2959 "language bindings).  It is recommended to prefix the name with some unique "
2960 "string to avoid collisions with other users."
2961 msgstr ""
2962
2963 # type: textblock
2964 #: ../src/guestfs.pod:1455
2965 msgid "To retrieve the pointer, use:"
2966 msgstr ""
2967
2968 # type: verbatim
2969 #: ../src/guestfs.pod:1457
2970 #, no-wrap
2971 msgid ""
2972 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2973 "\n"
2974 msgstr ""
2975
2976 # type: textblock
2977 #: ../src/guestfs.pod:1459
2978 msgid ""
2979 "This function returns C<NULL> if either no data is found associated with "
2980 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2981 "C<NULL>."
2982 msgstr ""
2983
2984 # type: textblock
2985 #: ../src/guestfs.pod:1463
2986 msgid ""
2987 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2988 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2989 "all.  In particular, libguestfs does I<not> try to free the data when the "
2990 "handle is closed.  If the data must be freed, then the caller must either "
2991 "free it before calling L</guestfs_close> or must set up a close callback to "
2992 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2993 "can be registered for a handle)."
2994 msgstr ""
2995
2996 # type: textblock
2997 #: ../src/guestfs.pod:1471
2998 msgid ""
2999 "The private data area is implemented using a hash table, and should be "
3000 "reasonably efficient for moderate numbers of keys."
3001 msgstr ""
3002
3003 # type: =head1
3004 #: ../src/guestfs.pod:1474
3005 msgid "BLOCK DEVICE NAMING"
3006 msgstr ""
3007
3008 # type: textblock
3009 #: ../src/guestfs.pod:1476
3010 msgid ""
3011 "In the kernel there is now quite a profusion of schemata for naming block "
3012 "devices (in this context, by I<block device> I mean a physical or virtual "
3013 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
3014 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
3015 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
3016 "for the old IDE driver (particularly for SATA devices) those devices also "
3017 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
3018 "paravirtualized drivers.  This has created several different naming systems, "
3019 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
3020 msgstr ""
3021
3022 # type: textblock
3023 #: ../src/guestfs.pod:1488
3024 msgid ""
3025 "As discussed above, libguestfs uses a qemu appliance running an embedded "
3026 "Linux kernel to access block devices.  We can run a variety of appliances "
3027 "based on a variety of Linux kernels."
3028 msgstr ""
3029
3030 # type: textblock
3031 #: ../src/guestfs.pod:1492
3032 msgid ""
3033 "This causes a problem for libguestfs because many API calls use device or "
3034 "partition names.  Working scripts and the recipe (example) scripts that we "
3035 "make available over the internet could fail if the naming scheme changes."
3036 msgstr ""
3037
3038 # type: textblock
3039 #: ../src/guestfs.pod:1497
3040 msgid ""
3041 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
3042 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
3043 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
3044 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
3045 msgstr ""
3046
3047 # type: textblock
3048 #: ../src/guestfs.pod:1503
3049 msgid ""
3050 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
3051 "L</guestfs_list_partitions> and similar calls return the true names of the "
3052 "devices and partitions as known to the appliance."
3053 msgstr ""
3054
3055 # type: =head2
3056 #: ../src/guestfs.pod:1508
3057 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
3058 msgstr ""
3059
3060 # type: textblock
3061 #: ../src/guestfs.pod:1510
3062 msgid ""
3063 "Usually this translation is transparent.  However in some (very rare)  cases "
3064 "you may need to know the exact algorithm.  Such cases include where you use "
3065 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
3066 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
3067 msgstr ""
3068
3069 # type: textblock
3070 #: ../src/guestfs.pod:1516
3071 msgid ""
3072 "The algorithm is applied only to I<parameters> which are known to be either "
3073 "device or partition names.  Return values from functions such as L</"
3074 "guestfs_list_devices> are never changed."
3075 msgstr ""
3076
3077 # type: textblock
3078 #: ../src/guestfs.pod:1524
3079 msgid "Is the string a parameter which is a device or partition name?"
3080 msgstr ""
3081
3082 # type: textblock
3083 #: ../src/guestfs.pod:1528
3084 msgid "Does the string begin with C</dev/sd>?"
3085 msgstr ""
3086
3087 # type: textblock
3088 #: ../src/guestfs.pod:1532
3089 msgid ""
3090 "Does the named device exist? If so, we use that device.  However if I<not> "
3091 "then we continue with this algorithm."
3092 msgstr ""
3093
3094 # type: textblock
3095 #: ../src/guestfs.pod:1537
3096 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1539
3101 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3102 msgstr ""
3103
3104 # type: textblock
3105 #: ../src/guestfs.pod:1541
3106 msgid "If that named device exists, use it.  If not, continue."
3107 msgstr ""
3108
3109 # type: textblock
3110 #: ../src/guestfs.pod:1545
3111 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3112 msgstr ""
3113
3114 # type: textblock
3115 #: ../src/guestfs.pod:1547
3116 msgid "If that named device exists, use it.  If not, return an error."
3117 msgstr ""
3118
3119 # type: =head2
3120 #: ../src/guestfs.pod:1551
3121 msgid "PORTABILITY CONCERNS"
3122 msgstr ""
3123
3124 # type: textblock
3125 #: ../src/guestfs.pod:1553
3126 msgid ""
3127 "Although the standard naming scheme and automatic translation is useful for "
3128 "simple programs and guestfish scripts, for larger programs it is best not to "
3129 "rely on this mechanism."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1557
3134 msgid ""
3135 "Where possible for maximum future portability programs using libguestfs "
3136 "should use these future-proof techniques:"
3137 msgstr ""
3138
3139 # type: textblock
3140 #: ../src/guestfs.pod:1564
3141 msgid ""
3142 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3143 "device names, and then use those names directly."
3144 msgstr ""
3145
3146 # type: textblock
3147 #: ../src/guestfs.pod:1567
3148 msgid ""
3149 "Since those device names exist by definition, they will never be translated."
3150 msgstr ""
3151
3152 # type: textblock
3153 #: ../src/guestfs.pod:1572
3154 msgid ""
3155 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3156 "filesystem labels."
3157 msgstr ""
3158
3159 # type: =head1
3160 #: ../src/guestfs.pod:1577
3161 msgid "INTERNALS"
3162 msgstr ""
3163
3164 # type: =head2
3165 #: ../src/guestfs.pod:1579
3166 msgid "COMMUNICATION PROTOCOL"
3167 msgstr ""
3168
3169 # type: textblock
3170 #: ../src/guestfs.pod:1581
3171 msgid ""
3172 "Don't rely on using this protocol directly.  This section documents how it "
3173 "currently works, but it may change at any time."
3174 msgstr ""
3175
3176 # type: textblock
3177 #: ../src/guestfs.pod:1584
3178 msgid ""
3179 "The protocol used to talk between the library and the daemon running inside "
3180 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3181 "1014, RFC 1832, RFC 4506)."
3182 msgstr ""
3183
3184 # type: textblock
3185 #: ../src/guestfs.pod:1588
3186 msgid ""
3187 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3188 "this file is automatically generated)."
3189 msgstr ""
3190
3191 # type: textblock
3192 #: ../src/guestfs.pod:1591
3193 msgid ""
3194 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3195 "and C<FileOut> parameters, which are handled with very simple request/reply "
3196 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3197 "parameters, which use the same request and reply messages, but they may also "
3198 "be followed by files sent using a chunked encoding."
3199 msgstr ""
3200
3201 # type: =head3
3202 #: ../src/guestfs.pod:1598
3203 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3204 msgstr ""
3205
3206 # type: textblock
3207 #: ../src/guestfs.pod:1600
3208 msgid "For ordinary functions, the request message is:"
3209 msgstr ""
3210
3211 # type: verbatim
3212 #: ../src/guestfs.pod:1602
3213 #, no-wrap
3214 msgid ""
3215 " total length (header + arguments,\n"
3216 "      but not including the length word itself)\n"
3217 " struct guestfs_message_header (encoded as XDR)\n"
3218 " struct guestfs_<foo>_args (encoded as XDR)\n"
3219 "\n"
3220 msgstr ""
3221
3222 # type: textblock
3223 #: ../src/guestfs.pod:1607
3224 msgid ""
3225 "The total length field allows the daemon to allocate a fixed size buffer "
3226 "into which it slurps the rest of the message.  As a result, the total length "
3227 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3228 "effective size of any request is limited to somewhere under this size."
3229 msgstr ""
3230
3231 # type: textblock
3232 #: ../src/guestfs.pod:1613
3233 msgid ""
3234 "Note also that many functions don't take any arguments, in which case the "
3235 "C<guestfs_I<foo>_args> is completely omitted."
3236 msgstr ""
3237
3238 # type: textblock
3239 #: ../src/guestfs.pod:1616
3240 msgid ""
3241 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3242 "receiver knows what type of args structure to expect, or none at all."
3243 msgstr ""
3244
3245 # type: textblock
3246 #: ../src/guestfs.pod:1620
3247 msgid "The reply message for ordinary functions is:"
3248 msgstr ""
3249
3250 # type: verbatim
3251 #: ../src/guestfs.pod:1622
3252 #, no-wrap
3253 msgid ""
3254 " total length (header + ret,\n"
3255 "      but not including the length word itself)\n"
3256 " struct guestfs_message_header (encoded as XDR)\n"
3257 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3258 "\n"
3259 msgstr ""
3260
3261 # type: textblock
3262 #: ../src/guestfs.pod:1627
3263 msgid ""
3264 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3265 "functions that return no formal return values."
3266 msgstr ""
3267
3268 # type: textblock
3269 #: ../src/guestfs.pod:1630
3270 msgid ""
3271 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3272 msgstr ""
3273
3274 # type: textblock
3275 #: ../src/guestfs.pod:1633
3276 msgid ""
3277 "In the case of an error, a flag is set in the header, and the reply message "
3278 "is slightly changed:"
3279 msgstr ""
3280
3281 # type: verbatim
3282 #: ../src/guestfs.pod:1636
3283 #, no-wrap
3284 msgid ""
3285 " total length (header + error,\n"
3286 "      but not including the length word itself)\n"
3287 " struct guestfs_message_header (encoded as XDR)\n"
3288 " struct guestfs_message_error (encoded as XDR)\n"
3289 "\n"
3290 msgstr ""
3291
3292 # type: textblock
3293 #: ../src/guestfs.pod:1641
3294 msgid ""
3295 "The C<guestfs_message_error> structure contains the error message as a "
3296 "string."
3297 msgstr ""
3298
3299 # type: =head3
3300 #: ../src/guestfs.pod:1644
3301 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3302 msgstr ""
3303
3304 # type: textblock
3305 #: ../src/guestfs.pod:1646
3306 msgid ""
3307 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3308 "The normal request message is sent (see above).  However this is followed by "
3309 "a sequence of file chunks."
3310 msgstr ""
3311
3312 # type: verbatim
3313 #: ../src/guestfs.pod:1650
3314 #, no-wrap
3315 msgid ""
3316 " total length (header + arguments,\n"
3317 "      but not including the length word itself,\n"
3318 "      and not including the chunks)\n"
3319 " struct guestfs_message_header (encoded as XDR)\n"
3320 " struct guestfs_<foo>_args (encoded as XDR)\n"
3321 " sequence of chunks for FileIn param #0\n"
3322 " sequence of chunks for FileIn param #1 etc.\n"
3323 "\n"
3324 msgstr ""
3325
3326 # type: textblock
3327 #: ../src/guestfs.pod:1658
3328 msgid "The \"sequence of chunks\" is:"
3329 msgstr ""
3330
3331 # type: verbatim
3332 #: ../src/guestfs.pod:1660
3333 #, no-wrap
3334 msgid ""
3335 " length of chunk (not including length word itself)\n"
3336 " struct guestfs_chunk (encoded as XDR)\n"
3337 " length of chunk\n"
3338 " struct guestfs_chunk (encoded as XDR)\n"
3339 "   ...\n"
3340 " length of chunk\n"
3341 " struct guestfs_chunk (with data.data_len == 0)\n"
3342 "\n"
3343 msgstr ""
3344
3345 # type: textblock
3346 #: ../src/guestfs.pod:1668
3347 msgid ""
3348 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3349 "is set in the final chunk to indicate either successful completion or early "
3350 "cancellation."
3351 msgstr ""
3352
3353 # type: textblock
3354 #: ../src/guestfs.pod:1672
3355 msgid ""
3356 "At time of writing there are no functions that have more than one FileIn "
3357 "parameter.  However this is (theoretically) supported, by sending the "
3358 "sequence of chunks for each FileIn parameter one after another (from left to "
3359 "right)."
3360 msgstr ""
3361
3362 # type: textblock
3363 #: ../src/guestfs.pod:1677
3364 msgid ""
3365 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3366 "transfer.  The library does this by sending a chunk with a special flag set "
3367 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3368 "RPC, does I<not> send any reply, and goes back to reading the next request."
3369 msgstr ""
3370
3371 # type: textblock
3372 #: ../src/guestfs.pod:1683
3373 msgid ""
3374 "The daemon may also cancel.  It does this by writing a special word "
3375 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3376 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3377 "cancel chunk).  The special word is chosen so that even if cancellation "
3378 "happens right at the end of the transfer (after the library has finished "
3379 "writing and has started listening for the reply), the \"spurious\" cancel "
3380 "flag will not be confused with the reply message."
3381 msgstr ""
3382
3383 # type: textblock
3384 #: ../src/guestfs.pod:1692
3385 msgid ""
3386 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3387 "limit), and also files where the size is not known in advance (eg. from "
3388 "pipes or sockets).  However the chunks are rather small "
3389 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3390 "to keep much in memory."
3391 msgstr ""
3392
3393 # type: =head3
3394 #: ../src/guestfs.pod:1698
3395 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3396 msgstr ""
3397
3398 # type: textblock
3399 #: ../src/guestfs.pod:1700
3400 msgid ""
3401 "The protocol for FileOut parameters is exactly the same as for FileIn "
3402 "parameters, but with the roles of daemon and library reversed."
3403 msgstr ""
3404
3405 # type: verbatim
3406 #: ../src/guestfs.pod:1703
3407 #, no-wrap
3408 msgid ""
3409 " total length (header + ret,\n"
3410 "      but not including the length word itself,\n"
3411 "      and not including the chunks)\n"
3412 " struct guestfs_message_header (encoded as XDR)\n"
3413 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3414 " sequence of chunks for FileOut param #0\n"
3415 " sequence of chunks for FileOut param #1 etc.\n"
3416 "\n"
3417 msgstr ""
3418
3419 # type: =head3
3420 #: ../src/guestfs.pod:1711
3421 msgid "INITIAL MESSAGE"
3422 msgstr ""
3423
3424 # type: textblock
3425 #: ../src/guestfs.pod:1713
3426 msgid ""
3427 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3428 "which indicates that the guest and daemon is alive.  This is what L</"
3429 "guestfs_launch> waits for."
3430 msgstr ""
3431
3432 # type: =head3
3433 #: ../src/guestfs.pod:1717
3434 msgid "PROGRESS NOTIFICATION MESSAGES"
3435 msgstr ""
3436
3437 # type: textblock
3438 #: ../src/guestfs.pod:1719
3439 msgid ""
3440 "The daemon may send progress notification messages at any time.  These are "
3441 "distinguished by the normal length word being replaced by "
3442 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3443 msgstr ""
3444
3445 # type: textblock
3446 #: ../src/guestfs.pod:1723
3447 msgid ""
3448 "The library turns them into progress callbacks (see "
3449 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3450 "discards them if not."
3451 msgstr ""
3452
3453 # type: textblock
3454 #: ../src/guestfs.pod:1727
3455 msgid ""
3456 "The daemon self-limits the frequency of progress messages it sends (see "
3457 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3458 "messages."
3459 msgstr ""
3460
3461 # type: =head1
3462 #: ../src/guestfs.pod:1731
3463 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3464 msgstr ""
3465
3466 # type: textblock
3467 #: ../src/guestfs.pod:1733
3468 msgid ""
3469 "All high-level libguestfs actions are synchronous.  If you want to use "
3470 "libguestfs asynchronously then you must create a thread."
3471 msgstr ""
3472
3473 # type: textblock
3474 #: ../src/guestfs.pod:1736
3475 msgid ""
3476 "Only use the handle from a single thread.  Either use the handle exclusively "
3477 "from one thread, or provide your own mutex so that two threads cannot issue "
3478 "calls on the same handle at the same time."
3479 msgstr ""
3480
3481 # type: textblock
3482 #: ../src/guestfs.pod:1740
3483 msgid ""
3484 "See the graphical program guestfs-browser for one possible architecture for "
3485 "multithreaded programs using libvirt and libguestfs."
3486 msgstr ""
3487
3488 # type: =head1
3489 #: ../src/guestfs.pod:1743
3490 msgid "QEMU WRAPPERS"
3491 msgstr ""
3492
3493 # type: textblock
3494 #: ../src/guestfs.pod:1745
3495 msgid ""
3496 "If you want to compile your own qemu, run qemu from a non-standard location, "
3497 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3498 "around qemu."
3499 msgstr ""
3500
3501 # type: textblock
3502 #: ../src/guestfs.pod:1749
3503 msgid ""
3504 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3505 "last command in the shell script (so that qemu replaces the shell and "
3506 "becomes the direct child of the libguestfs-using program).  If you don't do "
3507 "this, then the qemu process won't be cleaned up correctly."
3508 msgstr ""
3509
3510 # type: textblock
3511 #: ../src/guestfs.pod:1754
3512 msgid ""
3513 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3514 "source:"
3515 msgstr ""
3516
3517 # type: verbatim
3518 #: ../src/guestfs.pod:1757
3519 #, no-wrap
3520 msgid ""
3521 " #!/bin/sh -\n"
3522 " qemudir=/home/rjones/d/qemu\n"
3523 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
3524 "\n"
3525 msgstr ""
3526
3527 # type: textblock
3528 #: ../src/guestfs.pod:1761
3529 msgid ""
3530 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3531 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3532 "example:"
3533 msgstr ""
3534
3535 # type: verbatim
3536 #: ../src/guestfs.pod:1765
3537 #, no-wrap
3538 msgid ""
3539 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3540 "\n"
3541 msgstr ""
3542
3543 # type: textblock
3544 #: ../src/guestfs.pod:1767
3545 msgid ""
3546 "Note that libguestfs also calls qemu with the -help and -version options in "
3547 "order to determine features."
3548 msgstr ""
3549
3550 # type: =head1
3551 #: ../src/guestfs.pod:1770
3552 msgid "LIBGUESTFS VERSION NUMBERS"
3553 msgstr ""
3554
3555 # type: textblock
3556 #: ../src/guestfs.pod:1772
3557 msgid ""
3558 "Since April 2010, libguestfs has started to make separate development and "
3559 "stable releases, along with corresponding branches in our git repository.  "
3560 "These separate releases can be identified by version number:"
3561 msgstr ""
3562
3563 # type: verbatim
3564 #: ../src/guestfs.pod:1777
3565 #, no-wrap
3566 msgid ""
3567 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3568 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3569 "       |\n"
3570 "       v\n"
3571 " 1  .  3  .  5\n"
3572 " ^           ^\n"
3573 " |           |\n"
3574 " |           `-------- sub-version\n"
3575 " |\n"
3576 " `------ always '1' because we don't change the ABI\n"
3577 "\n"
3578 msgstr ""
3579
3580 # type: textblock
3581 #: ../src/guestfs.pod:1788
3582 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3583 msgstr ""
3584
3585 # type: textblock
3586 #: ../src/guestfs.pod:1790
3587 msgid ""
3588 "As time passes we cherry pick fixes from the development branch and backport "
3589 "those into the stable branch, the effect being that the stable branch should "
3590 "get more stable and less buggy over time.  So the stable releases are ideal "
3591 "for people who don't need new features but would just like the software to "
3592 "work."
3593 msgstr ""
3594
3595 # type: textblock
3596 #: ../src/guestfs.pod:1796
3597 msgid "Our criteria for backporting changes are:"
3598 msgstr ""
3599
3600 # type: textblock
3601 #: ../src/guestfs.pod:1802
3602 msgid ""
3603 "Documentation changes which don't affect any code are backported unless the "
3604 "documentation refers to a future feature which is not in stable."
3605 msgstr ""
3606
3607 # type: textblock
3608 #: ../src/guestfs.pod:1808
3609 msgid ""
3610 "Bug fixes which are not controversial, fix obvious problems, and have been "
3611 "well tested are backported."
3612 msgstr ""
3613
3614 # type: textblock
3615 #: ../src/guestfs.pod:1813
3616 msgid ""
3617 "Simple rearrangements of code which shouldn't affect how it works get "
3618 "backported.  This is so that the code in the two branches doesn't get too "
3619 "far out of step, allowing us to backport future fixes more easily."
3620 msgstr ""
3621
3622 # type: textblock
3623 #: ../src/guestfs.pod:1819
3624 msgid ""
3625 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3626 "exceptional case: the new feature is required in order to implement an "
3627 "important bug fix."
3628 msgstr ""
3629
3630 # type: textblock
3631 #: ../src/guestfs.pod:1825
3632 msgid ""
3633 "A new stable branch starts when we think the new features in development are "
3634 "substantial and compelling enough over the current stable branch to warrant "
3635 "it.  When that happens we create new stable and development versions 1.N.0 "
3636 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3637 "stable at this point, but by backporting fixes from development, that branch "
3638 "will stabilize over time."
3639 msgstr ""
3640
3641 # type: =head1
3642 #: ../src/guestfs.pod:1833 ../fish/guestfish.pod:867
3643 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3644 #: ../tools/virt-rescue.pl:255
3645 msgid "ENVIRONMENT VARIABLES"
3646 msgstr ""
3647
3648 # type: =item
3649 #: ../src/guestfs.pod:1837 ../fish/guestfish.pod:893
3650 msgid "LIBGUESTFS_APPEND"
3651 msgstr ""
3652
3653 # type: textblock
3654 #: ../src/guestfs.pod:1839 ../fish/guestfish.pod:895
3655 msgid "Pass additional options to the guest kernel."
3656 msgstr ""
3657
3658 # type: =item
3659 #: ../src/guestfs.pod:1841 ../fish/guestfish.pod:897
3660 msgid "LIBGUESTFS_DEBUG"
3661 msgstr ""
3662
3663 # type: textblock
3664 #: ../src/guestfs.pod:1843
3665 msgid ""
3666 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3667 "effect as calling C<guestfs_set_verbose (g, 1)>."
3668 msgstr ""
3669
3670 # type: =item
3671 #: ../src/guestfs.pod:1846 ../fish/guestfish.pod:902
3672 msgid "LIBGUESTFS_MEMSIZE"
3673 msgstr ""
3674
3675 # type: textblock
3676 #: ../src/guestfs.pod:1848 ../fish/guestfish.pod:904
3677 msgid ""
3678 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3679 msgstr ""
3680
3681 # type: verbatim
3682 #: ../src/guestfs.pod:1851 ../fish/guestfish.pod:907
3683 #, no-wrap
3684 msgid ""
3685 " LIBGUESTFS_MEMSIZE=700\n"
3686 "\n"
3687 msgstr ""
3688
3689 # type: =item
3690 #: ../src/guestfs.pod:1853 ../fish/guestfish.pod:909
3691 msgid "LIBGUESTFS_PATH"
3692 msgstr ""
3693
3694 # type: textblock
3695 #: ../src/guestfs.pod:1855
3696 msgid ""
3697 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3698 "the discussion of paths in section PATH above."
3699 msgstr ""
3700
3701 # type: =item
3702 #: ../src/guestfs.pod:1858 ../fish/guestfish.pod:914
3703 msgid "LIBGUESTFS_QEMU"
3704 msgstr ""
3705
3706 # type: textblock
3707 #: ../src/guestfs.pod:1860 ../fish/guestfish.pod:916
3708 msgid ""
3709 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3710 "which was found at compile time by the configure script is used."
3711 msgstr ""
3712
3713 # type: textblock
3714 #: ../src/guestfs.pod:1864
3715 msgid "See also L</QEMU WRAPPERS> above."
3716 msgstr ""
3717
3718 # type: =item
3719 #: ../src/guestfs.pod:1866 ../fish/guestfish.pod:920
3720 msgid "LIBGUESTFS_TRACE"
3721 msgstr ""
3722
3723 # type: textblock
3724 #: ../src/guestfs.pod:1868
3725 msgid ""
3726 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3727 "effect as calling C<guestfs_set_trace (g, 1)>."
3728 msgstr ""
3729
3730 # type: =item
3731 #: ../src/guestfs.pod:1871 ../fish/guestfish.pod:929
3732 msgid "TMPDIR"
3733 msgstr ""
3734
3735 # type: textblock
3736 #: ../src/guestfs.pod:1873 ../fish/guestfish.pod:931
3737 msgid "Location of temporary directory, defaults to C</tmp>."
3738 msgstr ""
3739
3740 # type: textblock
3741 #: ../src/guestfs.pod:1875 ../fish/guestfish.pod:933
3742 msgid ""
3743 "If libguestfs was compiled to use the supermin appliance then the real "
3744 "appliance is cached in this directory, shared between all handles belonging "
3745 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3746 "use in case C</tmp> is not large enough."
3747 msgstr ""
3748
3749 # type: =head1
3750 #: ../src/guestfs.pod:1883 ../fish/guestfish.pod:991
3751 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:214
3752 #: ../inspector/virt-inspector.pl:570 ../tools/virt-edit.pl:350
3753 #: ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640
3754 #: ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486
3755 #: ../tools/virt-list-filesystems.pl:186 ../tools/virt-cat.pl:185
3756 #: ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267
3757 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3758 msgid "SEE ALSO"
3759 msgstr ""
3760
3761 # type: textblock
3762 #: ../src/guestfs.pod:1885
3763 msgid ""
3764 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-edit"
3765 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
3766 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
3767 "tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
3768 "L<http://libguestfs.org/>."
3769 msgstr ""
3770
3771 # type: textblock
3772 #: ../src/guestfs.pod:1903
3773 msgid ""
3774 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
3775 "(8)>, L<disktype(1)>."
3776 msgstr ""
3777
3778 # type: =head1
3779 #: ../src/guestfs.pod:1910 ../tools/virt-win-reg.pl:499
3780 #: ../tools/virt-make-fs.pl:548
3781 msgid "BUGS"
3782 msgstr ""
3783
3784 # type: textblock
3785 #: ../src/guestfs.pod:1912
3786 msgid "To get a list of bugs against libguestfs use this link:"
3787 msgstr ""
3788
3789 # type: textblock
3790 #: ../src/guestfs.pod:1914
3791 msgid ""
3792 "L<https://bugzilla.redhat.com/buglist.cgi?"
3793 "component=libguestfs&product=Virtualization+Tools>"
3794 msgstr ""
3795
3796 # type: textblock
3797 #: ../src/guestfs.pod:1916
3798 msgid "To report a new bug against libguestfs use this link:"
3799 msgstr ""
3800
3801 # type: textblock
3802 #: ../src/guestfs.pod:1918
3803 msgid ""
3804 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
3805 "component=libguestfs&product=Virtualization+Tools>"
3806 msgstr ""
3807
3808 # type: textblock
3809 #: ../src/guestfs.pod:1920
3810 msgid "When reporting a bug, please check:"
3811 msgstr ""
3812
3813 # type: textblock
3814 #: ../src/guestfs.pod:1926
3815 msgid "That the bug hasn't been reported already."
3816 msgstr ""
3817
3818 # type: textblock
3819 #: ../src/guestfs.pod:1930
3820 msgid "That you are testing a recent version."
3821 msgstr ""
3822
3823 # type: textblock
3824 #: ../src/guestfs.pod:1934
3825 msgid "Describe the bug accurately, and give a way to reproduce it."
3826 msgstr ""
3827
3828 # type: textblock
3829 #: ../src/guestfs.pod:1938
3830 msgid ""
3831 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3832 "bug report."
3833 msgstr ""
3834
3835 # type: =head1
3836 #: ../src/guestfs.pod:1943 ../fish/guestfish.pod:1008
3837 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:225
3838 #: ../inspector/virt-inspector.pl:580
3839 msgid "AUTHORS"
3840 msgstr ""
3841
3842 # type: textblock
3843 #: ../src/guestfs.pod:1945 ../fish/guestfish.pod:1010
3844 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:227
3845 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3846 msgstr ""
3847
3848 # type: =head1
3849 #: ../src/guestfs.pod:1947 ../fish/guestfish.pod:1012
3850 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:229
3851 #: ../inspector/virt-inspector.pl:594 ../tools/virt-edit.pl:366
3852 #: ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653
3853 #: ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512
3854 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-cat.pl:199
3855 #: ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281
3856 #: ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3857 msgid "COPYRIGHT"
3858 msgstr ""
3859
3860 # type: textblock
3861 #: ../src/guestfs.pod:1949 ../fish/guestfish.pod:1014
3862 #: ../fuse/guestmount.pod:231
3863 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3864 msgstr ""
3865
3866 # type: textblock
3867 #: ../src/guestfs.pod:1952
3868 msgid ""
3869 "This library is free software; you can redistribute it and/or modify it "
3870 "under the terms of the GNU Lesser General Public License as published by the "
3871 "Free Software Foundation; either version 2 of the License, or (at your "
3872 "option) any later version."
3873 msgstr ""
3874
3875 # type: textblock
3876 #: ../src/guestfs.pod:1957
3877 msgid ""
3878 "This library is distributed in the hope that it will be useful, but WITHOUT "
3879 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3880 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3881 "for more details."
3882 msgstr ""
3883
3884 # type: textblock
3885 #: ../src/guestfs.pod:1962
3886 msgid ""
3887 "You should have received a copy of the GNU Lesser General Public License "
3888 "along with this library; if not, write to the Free Software Foundation, "
3889 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3890 msgstr ""
3891
3892 # type: =head2
3893 #: ../src/guestfs-actions.pod:1
3894 msgid "guestfs_add_cdrom"
3895 msgstr ""
3896
3897 # type: verbatim
3898 #: ../src/guestfs-actions.pod:3
3899 #, no-wrap
3900 msgid ""
3901 " int\n"
3902 " guestfs_add_cdrom (guestfs_h *g,\n"
3903 "                    const char *filename);\n"
3904 "\n"
3905 msgstr ""
3906
3907 # type: textblock
3908 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
3909 msgid "This function adds a virtual CD-ROM disk image to the guest."
3910 msgstr ""
3911
3912 # type: textblock
3913 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
3914 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3915 msgstr ""
3916
3917 # type: textblock
3918 #: ../src/guestfs-actions.pod:17
3919 msgid ""
3920 "This call checks for the existence of C<filename>.  This stops you from "
3921 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3922 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3923 "instead."
3924 msgstr ""
3925
3926 # type: textblock
3927 #: ../src/guestfs-actions.pod:24
3928 msgid ""
3929 "If you just want to add an ISO file (often you use this as an efficient way "
3930 "to transfer large files into the guest), then you should probably use "
3931 "C<guestfs_add_drive_ro> instead."
3932 msgstr ""
3933
3934 # type: textblock
3935 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:56
3936 #: ../src/guestfs-actions.pod:115 ../src/guestfs-actions.pod:150
3937 #: ../src/guestfs-actions.pod:162 ../src/guestfs-actions.pod:181
3938 #: ../src/guestfs-actions.pod:199 ../src/guestfs-actions.pod:211
3939 #: ../src/guestfs-actions.pod:318 ../src/guestfs-actions.pod:336
3940 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:387
3941 #: ../src/guestfs-actions.pod:411 ../src/guestfs-actions.pod:427
3942 #: ../src/guestfs-actions.pod:492 ../src/guestfs-actions.pod:521
3943 #: ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:546
3944 #: ../src/guestfs-actions.pod:633 ../src/guestfs-actions.pod:649
3945 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:673
3946 #: ../src/guestfs-actions.pod:824 ../src/guestfs-actions.pod:842
3947 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:936
3948 #: ../src/guestfs-actions.pod:952 ../src/guestfs-actions.pod:969
3949 #: ../src/guestfs-actions.pod:981 ../src/guestfs-actions.pod:999
3950 #: ../src/guestfs-actions.pod:1034 ../src/guestfs-actions.pod:1096
3951 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1148
3952 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1275
3953 #: ../src/guestfs-actions.pod:1307 ../src/guestfs-actions.pod:1513
3954 #: ../src/guestfs-actions.pod:1533 ../src/guestfs-actions.pod:1616
3955 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2119
3956 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2208
3957 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:2693
3958 #: ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2825
3959 #: ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2848
3960 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2873
3961 #: ../src/guestfs-actions.pod:2905 ../src/guestfs-actions.pod:2972
3962 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3005
3963 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3047
3964 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3094
3965 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3142
3966 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3186
3967 #: ../src/guestfs-actions.pod:3200 ../src/guestfs-actions.pod:3211
3968 #: ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3239
3969 #: ../src/guestfs-actions.pod:3324 ../src/guestfs-actions.pod:3342
3970 #: ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3400
3971 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3432
3972 #: ../src/guestfs-actions.pod:3446 ../src/guestfs-actions.pod:3458
3973 #: ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3485
3974 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3516
3975 #: ../src/guestfs-actions.pod:3563 ../src/guestfs-actions.pod:3592
3976 #: ../src/guestfs-actions.pod:3609 ../src/guestfs-actions.pod:3626
3977 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3651
3978 #: ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3675
3979 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3721
3980 #: ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3752
3981 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3779
3982 #: ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3855
3983 #: ../src/guestfs-actions.pod:3867 ../src/guestfs-actions.pod:3893
3984 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3924
3985 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4104
3986 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4140
3987 #: ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4228
3988 #: ../src/guestfs-actions.pod:4243 ../src/guestfs-actions.pod:4254
3989 #: ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4533
3990 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4562
3991 #: ../src/guestfs-actions.pod:4572 ../src/guestfs-actions.pod:4584
3992 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4606
3993 #: ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4639
3994 #: ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4673
3995 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4710
3996 #: ../src/guestfs-actions.pod:4726 ../src/guestfs-actions.pod:4743
3997 #: ../src/guestfs-actions.pod:4762 ../src/guestfs-actions.pod:4779
3998 #: ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:4820
3999 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4859
4000 #: ../src/guestfs-actions.pod:4881 ../src/guestfs-actions.pod:4894
4001 #: ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4924
4002 #: ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4980
4003 #: ../src/guestfs-actions.pod:5004 ../src/guestfs-actions.pod:5100
4004 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5221
4005 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
4006 #: ../src/guestfs-actions.pod:5263 ../src/guestfs-actions.pod:5274
4007 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5296
4008 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5362
4009 #: ../src/guestfs-actions.pod:5377 ../src/guestfs-actions.pod:5391
4010 #: ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5420
4011 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5449
4012 #: ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5493
4013 #: ../src/guestfs-actions.pod:5530 ../src/guestfs-actions.pod:5541
4014 #: ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5584
4015 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5722
4016 #: ../src/guestfs-actions.pod:5738 ../src/guestfs-actions.pod:5750
4017 #: ../src/guestfs-actions.pod:5799 ../src/guestfs-actions.pod:5810
4018 #: ../src/guestfs-actions.pod:5850 ../src/guestfs-actions.pod:5879
4019 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5949
4020 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6026
4021 #: ../src/guestfs-actions.pod:6053
4022 msgid "This function returns 0 on success or -1 on error."
4023 msgstr ""
4024
4025 # type: textblock
4026 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:164
4027 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:28
4028 #: ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
4029 msgid ""
4030 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4031 "instead."
4032 msgstr ""
4033
4034 # type: textblock
4035 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:167
4036 #: ../src/guestfs-actions.pod:186 ../src/guestfs-actions.pod:1280
4037 #: ../src/guestfs-actions.pod:1732 ../src/guestfs-actions.pod:1751
4038 #: ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:6110
4039 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120
4040 #: ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940
4041 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311
4042 #: ../fish/guestfish-actions.pod:4353 ../fish/guestfish-actions.pod:4450
4043 msgid ""
4044 "Deprecated functions will not be removed from the API, but the fact that "
4045 "they are deprecated indicates that there are problems with correct use of "
4046 "these functions."
4047 msgstr ""
4048
4049 # type: =head2
4050 #: ../src/guestfs-actions.pod:39
4051 msgid "guestfs_add_drive"
4052 msgstr ""
4053
4054 # type: verbatim
4055 #: ../src/guestfs-actions.pod:41
4056 #, no-wrap
4057 msgid ""
4058 " int\n"
4059 " guestfs_add_drive (guestfs_h *g,\n"
4060 "                    const char *filename);\n"
4061 "\n"
4062 msgstr ""
4063
4064 # type: textblock
4065 #: ../src/guestfs-actions.pod:45
4066 msgid ""
4067 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4068 "optional parameters, so the disk is added writable, with the format being "
4069 "detected automatically."
4070 msgstr ""
4071
4072 # type: textblock
4073 #: ../src/guestfs-actions.pod:49
4074 msgid ""
4075 "Automatic detection of the format opens you up to a potential security hole "
4076 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4077 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4078 "you should think about replacing calls to this function with calls to "
4079 "C<guestfs_add_drive_opts>, and specifying the format."
4080 msgstr ""
4081
4082 # type: =head2
4083 #: ../src/guestfs-actions.pod:58
4084 msgid "guestfs_add_drive_opts"
4085 msgstr ""
4086
4087 # type: verbatim
4088 #: ../src/guestfs-actions.pod:60
4089 #, no-wrap
4090 msgid ""
4091 " int\n"
4092 " guestfs_add_drive_opts (guestfs_h *g,\n"
4093 "                         const char *filename,\n"
4094 "                         ...);\n"
4095 "\n"
4096 msgstr ""
4097
4098 # type: textblock
4099 #: ../src/guestfs-actions.pod:65
4100 msgid ""
4101 "You may supply a list of optional arguments to this call.  Use zero or more "
4102 "of the following pairs of parameters, and terminate the list with C<-1> on "
4103 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4104 msgstr ""
4105
4106 # type: verbatim
4107 #: ../src/guestfs-actions.pod:70
4108 #, no-wrap
4109 msgid ""
4110 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4111 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4112 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4113 "\n"
4114 msgstr ""
4115
4116 # type: textblock
4117 #: ../src/guestfs-actions.pod:74 ../fish/guestfish-actions.pod:56
4118 msgid ""
4119 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4120 "The first time you call this function, the disk appears as C</dev/sda>, the "
4121 "second time as C</dev/sdb>, and so on."
4122 msgstr ""
4123
4124 # type: textblock
4125 #: ../src/guestfs-actions.pod:79 ../fish/guestfish-actions.pod:61
4126 msgid ""
4127 "You don't necessarily need to be root when using libguestfs.  However you "
4128 "obviously do need sufficient permissions to access the filename for whatever "
4129 "operations you want to perform (ie. read access if you just want to read the "
4130 "image or write access if you want to modify the image)."
4131 msgstr ""
4132
4133 # type: textblock
4134 #: ../src/guestfs-actions.pod:85 ../fish/guestfish-actions.pod:67
4135 msgid "This call checks that C<filename> exists."
4136 msgstr ""
4137
4138 # type: textblock
4139 #: ../src/guestfs-actions.pod:87 ../fish/guestfish-actions.pod:69
4140 msgid "The optional arguments are:"
4141 msgstr ""
4142
4143 # type: =item
4144 #: ../src/guestfs-actions.pod:91 ../fish/guestfish-actions.pod:73
4145 msgid "C<readonly>"
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../src/guestfs-actions.pod:93 ../fish/guestfish-actions.pod:75
4150 msgid ""
4151 "If true then the image is treated as read-only.  Writes are still allowed, "
4152 "but they are stored in a temporary snapshot overlay which is discarded at "
4153 "the end.  The disk that you add is not modified."
4154 msgstr ""
4155
4156 # type: =item
4157 #: ../src/guestfs-actions.pod:97 ../fish/guestfish-actions.pod:79
4158 msgid "C<format>"
4159 msgstr ""
4160
4161 # type: textblock
4162 #: ../src/guestfs-actions.pod:99
4163 msgid ""
4164 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4165 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4166 "Possible formats include C<raw> and C<qcow2>."
4167 msgstr ""
4168
4169 # type: textblock
4170 #: ../src/guestfs-actions.pod:103 ../fish/guestfish-actions.pod:85
4171 msgid ""
4172 "Automatic detection of the format opens you up to a potential security hole "
4173 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4174 "RHBZ#642934.  Specifying the format closes this security hole."
4175 msgstr ""
4176
4177 # type: =item
4178 #: ../src/guestfs-actions.pod:108 ../fish/guestfish-actions.pod:90
4179 msgid "C<iface>"
4180 msgstr ""
4181
4182 # type: textblock
4183 #: ../src/guestfs-actions.pod:110
4184 msgid ""
4185 "This rarely-used option lets you emulate the behaviour of the deprecated "
4186 "C<guestfs_add_drive_with_if> call (q.v.)"
4187 msgstr ""
4188
4189 # type: =head2
4190 #: ../src/guestfs-actions.pod:117
4191 msgid "guestfs_add_drive_opts_va"
4192 msgstr ""
4193
4194 # type: verbatim
4195 #: ../src/guestfs-actions.pod:119
4196 #, no-wrap
4197 msgid ""
4198 " int\n"
4199 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4200 "                            const char *filename,\n"
4201 "                            va_list args);\n"
4202 "\n"
4203 msgstr ""
4204
4205 # type: textblock
4206 #: ../src/guestfs-actions.pod:124
4207 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4208 msgstr ""
4209
4210 # type: textblock
4211 #: ../src/guestfs-actions.pod:126 ../src/guestfs-actions.pod:137
4212 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4213 msgstr ""
4214
4215 # type: =head2
4216 #: ../src/guestfs-actions.pod:128
4217 msgid "guestfs_add_drive_opts_argv"
4218 msgstr ""
4219
4220 # type: verbatim
4221 #: ../src/guestfs-actions.pod:130
4222 #, no-wrap
4223 msgid ""
4224 " int\n"
4225 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4226 "                              const char *filename,\n"
4227 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4228 "\n"
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs-actions.pod:135
4233 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4234 msgstr ""
4235
4236 # type: =head2
4237 #: ../src/guestfs-actions.pod:139
4238 msgid "guestfs_add_drive_ro"
4239 msgstr ""
4240
4241 # type: verbatim
4242 #: ../src/guestfs-actions.pod:141
4243 #, no-wrap
4244 msgid ""
4245 " int\n"
4246 " guestfs_add_drive_ro (guestfs_h *g,\n"
4247 "                       const char *filename);\n"
4248 "\n"
4249 msgstr ""
4250
4251 # type: textblock
4252 #: ../src/guestfs-actions.pod:145
4253 msgid ""
4254 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4255 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4256 "disk is added read-only, with the format being detected automatically."
4257 msgstr ""
4258
4259 # type: =head2
4260 #: ../src/guestfs-actions.pod:152
4261 msgid "guestfs_add_drive_ro_with_if"
4262 msgstr ""
4263
4264 # type: verbatim
4265 #: ../src/guestfs-actions.pod:154
4266 #, no-wrap
4267 msgid ""
4268 " int\n"
4269 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4270 "                               const char *filename,\n"
4271 "                               const char *iface);\n"
4272 "\n"
4273 msgstr ""
4274
4275 # type: textblock
4276 #: ../src/guestfs-actions.pod:159
4277 msgid ""
4278 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4279 "QEMU interface emulation to use at run time."
4280 msgstr ""
4281
4282 # type: =head2
4283 #: ../src/guestfs-actions.pod:171
4284 msgid "guestfs_add_drive_with_if"
4285 msgstr ""
4286
4287 # type: verbatim
4288 #: ../src/guestfs-actions.pod:173
4289 #, no-wrap
4290 msgid ""
4291 " int\n"
4292 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4293 "                            const char *filename,\n"
4294 "                            const char *iface);\n"
4295 "\n"
4296 msgstr ""
4297
4298 # type: textblock
4299 #: ../src/guestfs-actions.pod:178
4300 msgid ""
4301 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4302 "QEMU interface emulation to use at run time."
4303 msgstr ""
4304
4305 # type: =head2
4306 #: ../src/guestfs-actions.pod:190
4307 msgid "guestfs_aug_clear"
4308 msgstr ""
4309
4310 # type: verbatim
4311 #: ../src/guestfs-actions.pod:192
4312 #, no-wrap
4313 msgid ""
4314 " int\n"
4315 " guestfs_aug_clear (guestfs_h *g,\n"
4316 "                    const char *augpath);\n"
4317 "\n"
4318 msgstr ""
4319
4320 # type: textblock
4321 #: ../src/guestfs-actions.pod:196 ../fish/guestfish-actions.pod:142
4322 msgid ""
4323 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4324 "L<augtool(1)> C<clear> command."
4325 msgstr ""
4326
4327 # type: =head2
4328 #: ../src/guestfs-actions.pod:201
4329 msgid "guestfs_aug_close"
4330 msgstr ""
4331
4332 # type: verbatim
4333 #: ../src/guestfs-actions.pod:203
4334 #, no-wrap
4335 msgid ""
4336 " int\n"
4337 " guestfs_aug_close (guestfs_h *g);\n"
4338 "\n"
4339 msgstr ""
4340
4341 # type: textblock
4342 #: ../src/guestfs-actions.pod:206
4343 msgid ""
4344 "Close the current Augeas handle and free up any resources used by it.  After "
4345 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4346 "any other Augeas functions."
4347 msgstr ""
4348
4349 # type: =head2
4350 #: ../src/guestfs-actions.pod:213
4351 msgid "guestfs_aug_defnode"
4352 msgstr ""
4353
4354 # type: verbatim
4355 #: ../src/guestfs-actions.pod:215
4356 #, no-wrap
4357 msgid ""
4358 " struct guestfs_int_bool *\n"
4359 " guestfs_aug_defnode (guestfs_h *g,\n"
4360 "                      const char *name,\n"
4361 "                      const char *expr,\n"
4362 "                      const char *val);\n"
4363 "\n"
4364 msgstr ""
4365
4366 # type: textblock
4367 #: ../src/guestfs-actions.pod:221 ../fish/guestfish-actions.pod:158
4368 msgid ""
4369 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4370 msgstr ""
4371
4372 # type: textblock
4373 #: ../src/guestfs-actions.pod:224
4374 msgid ""
4375 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4376 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4377 "containing that single node."
4378 msgstr ""
4379
4380 # type: textblock
4381 #: ../src/guestfs-actions.pod:228 ../fish/guestfish-actions.pod:165
4382 msgid ""
4383 "On success this returns a pair containing the number of nodes in the "
4384 "nodeset, and a boolean flag if a node was created."
4385 msgstr ""
4386
4387 # type: textblock
4388 #: ../src/guestfs-actions.pod:232
4389 msgid ""
4390 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4391 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4392 msgstr ""
4393
4394 # type: =head2
4395 #: ../src/guestfs-actions.pod:236
4396 msgid "guestfs_aug_defvar"
4397 msgstr ""
4398
4399 # type: verbatim
4400 #: ../src/guestfs-actions.pod:238
4401 #, no-wrap
4402 msgid ""
4403 " int\n"
4404 " guestfs_aug_defvar (guestfs_h *g,\n"
4405 "                     const char *name,\n"
4406 "                     const char *expr);\n"
4407 "\n"
4408 msgstr ""
4409
4410 # type: textblock
4411 #: ../src/guestfs-actions.pod:243 ../fish/guestfish-actions.pod:173
4412 msgid ""
4413 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4414 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4415 msgstr ""
4416
4417 # type: textblock
4418 #: ../src/guestfs-actions.pod:247 ../fish/guestfish-actions.pod:177
4419 msgid ""
4420 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4421 "evaluates to something which is not a nodeset."
4422 msgstr ""
4423
4424 # type: textblock
4425 #: ../src/guestfs-actions.pod:250 ../src/guestfs-actions.pod:399
4426 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:588
4427 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:621
4428 #: ../src/guestfs-actions.pod:1166 ../src/guestfs-actions.pod:1494
4429 #: ../src/guestfs-actions.pod:1683 ../src/guestfs-actions.pod:1770
4430 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1851
4431 #: ../src/guestfs-actions.pod:1870 ../src/guestfs-actions.pod:2108
4432 #: ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:2368
4433 #: ../src/guestfs-actions.pod:3843 ../src/guestfs-actions.pod:3957
4434 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4353
4435 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5890
4436 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5912
4437 msgid "On error this function returns -1."
4438 msgstr ""
4439
4440 # type: =head2
4441 #: ../src/guestfs-actions.pod:252
4442 msgid "guestfs_aug_get"
4443 msgstr ""
4444
4445 # type: verbatim
4446 #: ../src/guestfs-actions.pod:254
4447 #, no-wrap
4448 msgid ""
4449 " char *\n"
4450 " guestfs_aug_get (guestfs_h *g,\n"
4451 "                  const char *augpath);\n"
4452 "\n"
4453 msgstr ""
4454
4455 # type: textblock
4456 #: ../src/guestfs-actions.pod:258 ../fish/guestfish-actions.pod:184
4457 msgid ""
4458 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4459 "node, the C<value> is returned."
4460 msgstr ""
4461
4462 # type: textblock
4463 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:713
4464 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:787
4465 #: ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:896
4466 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1047
4467 #: ../src/guestfs-actions.pod:1062 ../src/guestfs-actions.pod:1079
4468 #: ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1369
4469 #: ../src/guestfs-actions.pod:1479 ../src/guestfs-actions.pod:1630
4470 #: ../src/guestfs-actions.pod:1645 ../src/guestfs-actions.pod:1726
4471 #: ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:1891
4472 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2228
4473 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2420
4474 #: ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2477
4475 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3128
4476 #: ../src/guestfs-actions.pod:3279 ../src/guestfs-actions.pod:3380
4477 #: ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4155
4478 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4473
4479 #: ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:5023
4480 #: ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5052
4481 #: ../src/guestfs-actions.pod:5074 ../src/guestfs-actions.pod:5668
4482 #: ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5701
4483 #: ../src/guestfs-actions.pod:5860 ../src/guestfs-actions.pod:6104
4484 msgid ""
4485 "This function returns a string, or NULL on error.  I<The caller must free "
4486 "the returned string after use>."
4487 msgstr ""
4488
4489 # type: =head2
4490 #: ../src/guestfs-actions.pod:264
4491 msgid "guestfs_aug_init"
4492 msgstr ""
4493
4494 # type: verbatim
4495 #: ../src/guestfs-actions.pod:266
4496 #, no-wrap
4497 msgid ""
4498 " int\n"
4499 " guestfs_aug_init (guestfs_h *g,\n"
4500 "                   const char *root,\n"
4501 "                   int flags);\n"
4502 "\n"
4503 msgstr ""
4504
4505 # type: textblock
4506 #: ../src/guestfs-actions.pod:271 ../fish/guestfish-actions.pod:191
4507 msgid ""
4508 "Create a new Augeas handle for editing configuration files.  If there was "
4509 "any previous Augeas handle associated with this guestfs session, then it is "
4510 "closed."
4511 msgstr ""
4512
4513 # type: textblock
4514 #: ../src/guestfs-actions.pod:275
4515 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4516 msgstr ""
4517
4518 # type: textblock
4519 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:198
4520 msgid ""
4521 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4522 msgstr ""
4523
4524 # type: textblock
4525 #: ../src/guestfs-actions.pod:281 ../fish/guestfish-actions.pod:201
4526 msgid ""
4527 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4528 "logical I<or> of the following integers:"
4529 msgstr ""
4530
4531 # type: =item
4532 #: ../src/guestfs-actions.pod:287 ../fish/guestfish-actions.pod:207
4533 msgid "C<AUG_SAVE_BACKUP> = 1"
4534 msgstr ""
4535
4536 # type: textblock
4537 #: ../src/guestfs-actions.pod:289 ../fish/guestfish-actions.pod:209
4538 msgid "Keep the original file with a C<.augsave> extension."
4539 msgstr ""
4540
4541 # type: =item
4542 #: ../src/guestfs-actions.pod:291 ../fish/guestfish-actions.pod:211
4543 msgid "C<AUG_SAVE_NEWFILE> = 2"
4544 msgstr ""
4545
4546 # type: textblock
4547 #: ../src/guestfs-actions.pod:293 ../fish/guestfish-actions.pod:213
4548 msgid ""
4549 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4550 "original.  Overrides C<AUG_SAVE_BACKUP>."
4551 msgstr ""
4552
4553 # type: =item
4554 #: ../src/guestfs-actions.pod:296 ../fish/guestfish-actions.pod:216
4555 msgid "C<AUG_TYPE_CHECK> = 4"
4556 msgstr ""
4557
4558 # type: textblock
4559 #: ../src/guestfs-actions.pod:298 ../fish/guestfish-actions.pod:218
4560 msgid "Typecheck lenses (can be expensive)."
4561 msgstr ""
4562
4563 # type: =item
4564 #: ../src/guestfs-actions.pod:300 ../fish/guestfish-actions.pod:220
4565 msgid "C<AUG_NO_STDINC> = 8"
4566 msgstr ""
4567
4568 # type: textblock
4569 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:222
4570 msgid "Do not use standard load path for modules."
4571 msgstr ""
4572
4573 # type: =item
4574 #: ../src/guestfs-actions.pod:304 ../fish/guestfish-actions.pod:224
4575 msgid "C<AUG_SAVE_NOOP> = 16"
4576 msgstr ""
4577
4578 # type: textblock
4579 #: ../src/guestfs-actions.pod:306 ../fish/guestfish-actions.pod:226
4580 msgid "Make save a no-op, just record what would have been changed."
4581 msgstr ""
4582
4583 # type: =item
4584 #: ../src/guestfs-actions.pod:308 ../fish/guestfish-actions.pod:228
4585 msgid "C<AUG_NO_LOAD> = 32"
4586 msgstr ""
4587
4588 # type: textblock
4589 #: ../src/guestfs-actions.pod:310
4590 msgid "Do not load the tree in C<guestfs_aug_init>."
4591 msgstr ""
4592
4593 # type: textblock
4594 #: ../src/guestfs-actions.pod:314
4595 msgid "To close the handle, you can call C<guestfs_aug_close>."
4596 msgstr ""
4597
4598 # type: textblock
4599 #: ../src/guestfs-actions.pod:316 ../fish/guestfish-actions.pod:236
4600 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4601 msgstr ""
4602
4603 # type: =head2
4604 #: ../src/guestfs-actions.pod:320
4605 msgid "guestfs_aug_insert"
4606 msgstr ""
4607
4608 # type: verbatim
4609 #: ../src/guestfs-actions.pod:322
4610 #, no-wrap
4611 msgid ""
4612 " int\n"
4613 " guestfs_aug_insert (guestfs_h *g,\n"
4614 "                     const char *augpath,\n"
4615 "                     const char *label,\n"
4616 "                     int before);\n"
4617 "\n"
4618 msgstr ""
4619
4620 # type: textblock
4621 #: ../src/guestfs-actions.pod:328 ../fish/guestfish-actions.pod:242
4622 msgid ""
4623 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4624 "or after C<path> (depending on the boolean flag C<before>)."
4625 msgstr ""
4626
4627 # type: textblock
4628 #: ../src/guestfs-actions.pod:332 ../fish/guestfish-actions.pod:246
4629 msgid ""
4630 "C<path> must match exactly one existing node in the tree, and C<label> must "
4631 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4632 msgstr ""
4633
4634 # type: =head2
4635 #: ../src/guestfs-actions.pod:338
4636 msgid "guestfs_aug_load"
4637 msgstr ""
4638
4639 # type: verbatim
4640 #: ../src/guestfs-actions.pod:340
4641 #, no-wrap
4642 msgid ""
4643 " int\n"
4644 " guestfs_aug_load (guestfs_h *g);\n"
4645 "\n"
4646 msgstr ""
4647
4648 # type: textblock
4649 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:254
4650 msgid "Load files into the tree."
4651 msgstr ""
4652
4653 # type: textblock
4654 #: ../src/guestfs-actions.pod:345 ../fish/guestfish-actions.pod:256
4655 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4656 msgstr ""
4657
4658 # type: =head2
4659 #: ../src/guestfs-actions.pod:350
4660 msgid "guestfs_aug_ls"
4661 msgstr ""
4662
4663 # type: verbatim
4664 #: ../src/guestfs-actions.pod:352
4665 #, no-wrap
4666 msgid ""
4667 " char **\n"
4668 " guestfs_aug_ls (guestfs_h *g,\n"
4669 "                 const char *augpath);\n"
4670 "\n"
4671 msgstr ""
4672
4673 # type: textblock
4674 #: ../src/guestfs-actions.pod:356
4675 msgid ""
4676 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4677 "sorting the resulting nodes into alphabetical order."
4678 msgstr ""
4679
4680 # type: textblock
4681 #: ../src/guestfs-actions.pod:359 ../src/guestfs-actions.pod:373
4682 #: ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:913
4683 #: ../src/guestfs-actions.pod:1209 ../src/guestfs-actions.pod:1226
4684 #: ../src/guestfs-actions.pod:1319 ../src/guestfs-actions.pod:1336
4685 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1930
4686 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:1961
4687 #: ../src/guestfs-actions.pod:2000 ../src/guestfs-actions.pod:2022
4688 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2130
4689 #: ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:2517
4690 #: ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2797
4691 #: ../src/guestfs-actions.pod:2888 ../src/guestfs-actions.pod:3254
4692 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:4281
4693 #: ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:4505
4694 #: ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5141
4695 #: ../src/guestfs-actions.pod:5194 ../src/guestfs-actions.pod:5320
4696 #: ../src/guestfs-actions.pod:5342 ../src/guestfs-actions.pod:5766
4697 #: ../src/guestfs-actions.pod:5784 ../src/guestfs-actions.pod:5825
4698 #: ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:5988
4699 #: ../src/guestfs-actions.pod:6065 ../src/guestfs-actions.pod:6082
4700 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6141
4701 msgid ""
4702 "This function returns a NULL-terminated array of strings (like L<environ(3)"
4703 ">), or NULL if there was an error.  I<The caller must free the strings and "
4704 "the array after use>."
4705 msgstr ""
4706
4707 # type: =head2
4708 #: ../src/guestfs-actions.pod:363
4709 msgid "guestfs_aug_match"
4710 msgstr ""
4711
4712 # type: verbatim
4713 #: ../src/guestfs-actions.pod:365
4714 #, no-wrap
4715 msgid ""
4716 " char **\n"
4717 " guestfs_aug_match (guestfs_h *g,\n"
4718 "                    const char *augpath);\n"
4719 "\n"
4720 msgstr ""
4721
4722 # type: textblock
4723 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:270
4724 msgid ""
4725 "Returns a list of paths which match the path expression C<path>.  The "
4726 "returned paths are sufficiently qualified so that they match exactly one "
4727 "node in the current tree."
4728 msgstr ""
4729
4730 # type: =head2
4731 #: ../src/guestfs-actions.pod:377
4732 msgid "guestfs_aug_mv"
4733 msgstr ""
4734
4735 # type: verbatim
4736 #: ../src/guestfs-actions.pod:379
4737 #, no-wrap
4738 msgid ""
4739 " int\n"
4740 " guestfs_aug_mv (guestfs_h *g,\n"
4741 "                 const char *src,\n"
4742 "                 const char *dest);\n"
4743 "\n"
4744 msgstr ""
4745
4746 # type: textblock
4747 #: ../src/guestfs-actions.pod:384 ../fish/guestfish-actions.pod:278
4748 msgid ""
4749 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4750 "C<dest> is overwritten if it exists."
4751 msgstr ""
4752
4753 # type: =head2
4754 #: ../src/guestfs-actions.pod:389
4755 msgid "guestfs_aug_rm"
4756 msgstr ""
4757
4758 # type: verbatim
4759 #: ../src/guestfs-actions.pod:391
4760 #, no-wrap
4761 msgid ""
4762 " int\n"
4763 " guestfs_aug_rm (guestfs_h *g,\n"
4764 "                 const char *augpath);\n"
4765 "\n"
4766 msgstr ""
4767
4768 # type: textblock
4769 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:285
4770 msgid "Remove C<path> and all of its children."
4771 msgstr ""
4772
4773 # type: textblock
4774 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:287
4775 msgid "On success this returns the number of entries which were removed."
4776 msgstr ""
4777
4778 # type: =head2
4779 #: ../src/guestfs-actions.pod:401
4780 msgid "guestfs_aug_save"
4781 msgstr ""
4782
4783 # type: verbatim
4784 #: ../src/guestfs-actions.pod:403
4785 #, no-wrap
4786 msgid ""
4787 " int\n"
4788 " guestfs_aug_save (guestfs_h *g);\n"
4789 "\n"
4790 msgstr ""
4791
4792 # type: textblock
4793 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:293
4794 msgid "This writes all pending changes to disk."
4795 msgstr ""
4796
4797 # type: textblock
4798 #: ../src/guestfs-actions.pod:408
4799 msgid ""
4800 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4801 "are saved."
4802 msgstr ""
4803
4804 # type: =head2
4805 #: ../src/guestfs-actions.pod:413
4806 msgid "guestfs_aug_set"
4807 msgstr ""
4808
4809 # type: verbatim
4810 #: ../src/guestfs-actions.pod:415
4811 #, no-wrap
4812 msgid ""
4813 " int\n"
4814 " guestfs_aug_set (guestfs_h *g,\n"
4815 "                  const char *augpath,\n"
4816 "                  const char *val);\n"
4817 "\n"
4818 msgstr ""
4819
4820 # type: textblock
4821 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:302
4822 msgid "Set the value associated with C<path> to C<val>."
4823 msgstr ""
4824
4825 # type: textblock
4826 #: ../src/guestfs-actions.pod:422
4827 msgid ""
4828 "In the Augeas API, it is possible to clear a node by setting the value to "
4829 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4830 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4831 msgstr ""
4832
4833 # type: =head2
4834 #: ../src/guestfs-actions.pod:429
4835 msgid "guestfs_available"
4836 msgstr ""
4837
4838 # type: verbatim
4839 #: ../src/guestfs-actions.pod:431
4840 #, no-wrap
4841 msgid ""
4842 " int\n"
4843 " guestfs_available (guestfs_h *g,\n"
4844 "                    char *const *groups);\n"
4845 "\n"
4846 msgstr ""
4847
4848 # type: textblock
4849 #: ../src/guestfs-actions.pod:435 ../fish/guestfish-actions.pod:313
4850 msgid ""
4851 "This command is used to check the availability of some groups of "
4852 "functionality in the appliance, which not all builds of the libguestfs "
4853 "appliance will be able to provide."
4854 msgstr ""
4855
4856 # type: textblock
4857 #: ../src/guestfs-actions.pod:439
4858 msgid ""
4859 "The libguestfs groups, and the functions that those groups correspond to, "
4860 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4861 "runtime by calling C<guestfs_available_all_groups>."
4862 msgstr ""
4863
4864 # type: textblock
4865 #: ../src/guestfs-actions.pod:444 ../fish/guestfish-actions.pod:322
4866 msgid ""
4867 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4868 "\"]> would check for the availability of the Linux inotify functions and "
4869 "Augeas (configuration file editing) functions."
4870 msgstr ""
4871
4872 # type: textblock
4873 #: ../src/guestfs-actions.pod:449 ../fish/guestfish-actions.pod:327
4874 msgid "The command returns no error if I<all> requested groups are available."
4875 msgstr ""
4876
4877 # type: textblock
4878 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:329
4879 msgid ""
4880 "It fails with an error if one or more of the requested groups is unavailable "
4881 "in the appliance."
4882 msgstr ""
4883
4884 # type: textblock
4885 #: ../src/guestfs-actions.pod:454 ../fish/guestfish-actions.pod:332
4886 msgid ""
4887 "If an unknown group name is included in the list of groups then an error is "
4888 "always returned."
4889 msgstr ""
4890
4891 # type: textblock
4892 #: ../src/guestfs-actions.pod:457 ../fish/guestfish-actions.pod:335
4893 msgid "I<Notes:>"
4894 msgstr ""
4895
4896 # type: textblock
4897 #: ../src/guestfs-actions.pod:463
4898 msgid "You must call C<guestfs_launch> before calling this function."
4899 msgstr ""
4900
4901 # type: textblock
4902 #: ../src/guestfs-actions.pod:465 ../fish/guestfish-actions.pod:343
4903 msgid ""
4904 "The reason is because we don't know what groups are supported by the "
4905 "appliance/daemon until it is running and can be queried."
4906 msgstr ""
4907
4908 # type: textblock
4909 #: ../src/guestfs-actions.pod:471 ../fish/guestfish-actions.pod:349
4910 msgid ""
4911 "If a group of functions is available, this does not necessarily mean that "
4912 "they will work.  You still have to check for errors when calling individual "
4913 "API functions even if they are available."
4914 msgstr ""
4915
4916 # type: textblock
4917 #: ../src/guestfs-actions.pod:478 ../fish/guestfish-actions.pod:356
4918 msgid ""
4919 "It is usually the job of distro packagers to build complete functionality "
4920 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4921 "with all requirements satisfied, will support everything."
4922 msgstr ""
4923
4924 # type: textblock
4925 #: ../src/guestfs-actions.pod:485
4926 msgid ""
4927 "This call was added in version C<1.0.80>.  In previous versions of "
4928 "libguestfs all you could do would be to speculatively execute a command to "
4929 "find out if the daemon implemented it.  See also C<guestfs_version>."
4930 msgstr ""
4931
4932 # type: =head2
4933 #: ../src/guestfs-actions.pod:494
4934 msgid "guestfs_available_all_groups"
4935 msgstr ""
4936
4937 # type: verbatim
4938 #: ../src/guestfs-actions.pod:496
4939 #, no-wrap
4940 msgid ""
4941 " char **\n"
4942 " guestfs_available_all_groups (guestfs_h *g);\n"
4943 "\n"
4944 msgstr ""
4945
4946 # type: textblock
4947 #: ../src/guestfs-actions.pod:499
4948 msgid ""
4949 "This command returns a list of all optional groups that this daemon knows "
4950 "about.  Note this returns both supported and unsupported groups.  To find "
4951 "out which ones the daemon can actually support you have to call "
4952 "C<guestfs_available> on each member of the returned list."
4953 msgstr ""
4954
4955 # type: textblock
4956 #: ../src/guestfs-actions.pod:505
4957 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4958 msgstr ""
4959
4960 # type: =head2
4961 #: ../src/guestfs-actions.pod:511
4962 msgid "guestfs_base64_in"
4963 msgstr ""
4964
4965 # type: verbatim
4966 #: ../src/guestfs-actions.pod:513
4967 #, no-wrap
4968 msgid ""
4969 " int\n"
4970 " guestfs_base64_in (guestfs_h *g,\n"
4971 "                    const char *base64file,\n"
4972 "                    const char *filename);\n"
4973 "\n"
4974 msgstr ""
4975
4976 # type: textblock
4977 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:386
4978 msgid ""
4979 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4980 msgstr ""
4981
4982 # type: =head2
4983 #: ../src/guestfs-actions.pod:523
4984 msgid "guestfs_base64_out"
4985 msgstr ""
4986
4987 # type: verbatim
4988 #: ../src/guestfs-actions.pod:525
4989 #, no-wrap
4990 msgid ""
4991 " int\n"
4992 " guestfs_base64_out (guestfs_h *g,\n"
4993 "                     const char *filename,\n"
4994 "                     const char *base64file);\n"
4995 "\n"
4996 msgstr ""
4997
4998 # type: textblock
4999 #: ../src/guestfs-actions.pod:530 ../fish/guestfish-actions.pod:395
5000 msgid ""
5001 "This command downloads the contents of C<filename>, writing it out to local "
5002 "file C<base64file> encoded as base64."
5003 msgstr ""
5004
5005 # type: =head2
5006 #: ../src/guestfs-actions.pod:535
5007 msgid "guestfs_blockdev_flushbufs"
5008 msgstr ""
5009
5010 # type: verbatim
5011 #: ../src/guestfs-actions.pod:537
5012 #, no-wrap
5013 msgid ""
5014 " int\n"
5015 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5016 "                             const char *device);\n"
5017 "\n"
5018 msgstr ""
5019
5020 # type: textblock
5021 #: ../src/guestfs-actions.pod:541 ../fish/guestfish-actions.pod:404
5022 msgid ""
5023 "This tells the kernel to flush internal buffers associated with C<device>."
5024 msgstr ""
5025
5026 # type: textblock
5027 #: ../src/guestfs-actions.pod:544 ../src/guestfs-actions.pod:559
5028 #: ../src/guestfs-actions.pod:572 ../src/guestfs-actions.pod:586
5029 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:619
5030 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:647
5031 #: ../src/guestfs-actions.pod:659 ../src/guestfs-actions.pod:671
5032 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418
5033 #: ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437
5034 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462
5035 #: ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481
5036 #: ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
5037 msgid "This uses the L<blockdev(8)> command."
5038 msgstr ""
5039
5040 # type: =head2
5041 #: ../src/guestfs-actions.pod:548
5042 msgid "guestfs_blockdev_getbsz"
5043 msgstr ""
5044
5045 # type: verbatim
5046 #: ../src/guestfs-actions.pod:550
5047 #, no-wrap
5048 msgid ""
5049 " int\n"
5050 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5051 "                          const char *device);\n"
5052 "\n"
5053 msgstr ""
5054
5055 # type: textblock
5056 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:413
5057 msgid "This returns the block size of a device."
5058 msgstr ""
5059
5060 # type: textblock
5061 #: ../src/guestfs-actions.pod:556 ../src/guestfs-actions.pod:644
5062 #: ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
5063 msgid ""
5064 "(Note this is different from both I<size in blocks> and I<filesystem block "
5065 "size>)."
5066 msgstr ""
5067
5068 # type: =head2
5069 #: ../src/guestfs-actions.pod:563
5070 msgid "guestfs_blockdev_getro"
5071 msgstr ""
5072
5073 # type: verbatim
5074 #: ../src/guestfs-actions.pod:565
5075 #, no-wrap
5076 msgid ""
5077 " int\n"
5078 " guestfs_blockdev_getro (guestfs_h *g,\n"
5079 "                         const char *device);\n"
5080 "\n"
5081 msgstr ""
5082
5083 # type: textblock
5084 #: ../src/guestfs-actions.pod:569 ../fish/guestfish-actions.pod:424
5085 msgid ""
5086 "Returns a boolean indicating if the block device is read-only (true if read-"
5087 "only, false if not)."
5088 msgstr ""
5089
5090 # type: textblock
5091 #: ../src/guestfs-actions.pod:574 ../src/guestfs-actions.pod:1245
5092 #: ../src/guestfs-actions.pod:1258 ../src/guestfs-actions.pod:1706
5093 #: ../src/guestfs-actions.pod:1715 ../src/guestfs-actions.pod:1779
5094 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1839
5095 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1879
5096 #: ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2544
5097 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:2569
5098 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2596
5099 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:2622
5100 #: ../src/guestfs-actions.pod:2633 ../src/guestfs-actions.pod:2645
5101 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2671
5102 #: ../src/guestfs-actions.pod:3941
5103 msgid "This function returns a C truth value on success or -1 on error."
5104 msgstr ""
5105
5106 # type: =head2
5107 #: ../src/guestfs-actions.pod:576
5108 msgid "guestfs_blockdev_getsize64"
5109 msgstr ""
5110
5111 # type: verbatim
5112 #: ../src/guestfs-actions.pod:578
5113 #, no-wrap
5114 msgid ""
5115 " int64_t\n"
5116 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5117 "                             const char *device);\n"
5118 "\n"
5119 msgstr ""
5120
5121 # type: textblock
5122 #: ../src/guestfs-actions.pod:582 ../fish/guestfish-actions.pod:433
5123 msgid "This returns the size of the device in bytes."
5124 msgstr ""
5125
5126 # type: textblock
5127 #: ../src/guestfs-actions.pod:584
5128 msgid "See also C<guestfs_blockdev_getsz>."
5129 msgstr ""
5130
5131 # type: =head2
5132 #: ../src/guestfs-actions.pod:590
5133 msgid "guestfs_blockdev_getss"
5134 msgstr ""
5135
5136 # type: verbatim
5137 #: ../src/guestfs-actions.pod:592
5138 #, no-wrap
5139 msgid ""
5140 " int\n"
5141 " guestfs_blockdev_getss (guestfs_h *g,\n"
5142 "                         const char *device);\n"
5143 "\n"
5144 msgstr ""
5145
5146 # type: textblock
5147 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:443
5148 msgid ""
5149 "This returns the size of sectors on a block device.  Usually 512, but can be "
5150 "larger for modern devices."
5151 msgstr ""
5152
5153 # type: textblock
5154 #: ../src/guestfs-actions.pod:599
5155 msgid ""
5156 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5157 "that)."
5158 msgstr ""
5159
5160 # type: =head2
5161 #: ../src/guestfs-actions.pod:606
5162 msgid "guestfs_blockdev_getsz"
5163 msgstr ""
5164
5165 # type: verbatim
5166 #: ../src/guestfs-actions.pod:608
5167 #, no-wrap
5168 msgid ""
5169 " int64_t\n"
5170 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5171 "                         const char *device);\n"
5172 "\n"
5173 msgstr ""
5174
5175 # type: textblock
5176 #: ../src/guestfs-actions.pod:612 ../fish/guestfish-actions.pod:455
5177 msgid ""
5178 "This returns the size of the device in units of 512-byte sectors (even if "
5179 "the sectorsize isn't 512 bytes ... weird)."
5180 msgstr ""
5181
5182 # type: textblock
5183 #: ../src/guestfs-actions.pod:615
5184 msgid ""
5185 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5186 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5187 msgstr ""
5188
5189 # type: =head2
5190 #: ../src/guestfs-actions.pod:623
5191 msgid "guestfs_blockdev_rereadpt"
5192 msgstr ""
5193
5194 # type: verbatim
5195 #: ../src/guestfs-actions.pod:625
5196 #, no-wrap
5197 msgid ""
5198 " int\n"
5199 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5200 "                            const char *device);\n"
5201 "\n"
5202 msgstr ""
5203
5204 # type: textblock
5205 #: ../src/guestfs-actions.pod:629 ../fish/guestfish-actions.pod:468
5206 msgid "Reread the partition table on C<device>."
5207 msgstr ""
5208
5209 # type: =head2
5210 #: ../src/guestfs-actions.pod:635
5211 msgid "guestfs_blockdev_setbsz"
5212 msgstr ""
5213
5214 # type: verbatim
5215 #: ../src/guestfs-actions.pod:637
5216 #, no-wrap
5217 msgid ""
5218 " int\n"
5219 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5220 "                          const char *device,\n"
5221 "                          int blocksize);\n"
5222 "\n"
5223 msgstr ""
5224
5225 # type: textblock
5226 #: ../src/guestfs-actions.pod:642 ../fish/guestfish-actions.pod:476
5227 msgid "This sets the block size of a device."
5228 msgstr ""
5229
5230 # type: =head2
5231 #: ../src/guestfs-actions.pod:651
5232 msgid "guestfs_blockdev_setro"
5233 msgstr ""
5234
5235 # type: verbatim
5236 #: ../src/guestfs-actions.pod:653
5237 #, no-wrap
5238 msgid ""
5239 " int\n"
5240 " guestfs_blockdev_setro (guestfs_h *g,\n"
5241 "                         const char *device);\n"
5242 "\n"
5243 msgstr ""
5244
5245 # type: textblock
5246 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:487
5247 msgid "Sets the block device named C<device> to read-only."
5248 msgstr ""
5249
5250 # type: =head2
5251 #: ../src/guestfs-actions.pod:663
5252 msgid "guestfs_blockdev_setrw"
5253 msgstr ""
5254
5255 # type: verbatim
5256 #: ../src/guestfs-actions.pod:665
5257 #, no-wrap
5258 msgid ""
5259 " int\n"
5260 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5261 "                         const char *device);\n"
5262 "\n"
5263 msgstr ""
5264
5265 # type: textblock
5266 #: ../src/guestfs-actions.pod:669 ../fish/guestfish-actions.pod:495
5267 msgid "Sets the block device named C<device> to read-write."
5268 msgstr ""
5269
5270 # type: =head2
5271 #: ../src/guestfs-actions.pod:675
5272 msgid "guestfs_case_sensitive_path"
5273 msgstr ""
5274
5275 # type: verbatim
5276 #: ../src/guestfs-actions.pod:677
5277 #, no-wrap
5278 msgid ""
5279 " char *\n"
5280 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5281 "                              const char *path);\n"
5282 "\n"
5283 msgstr ""
5284
5285 # type: textblock
5286 #: ../src/guestfs-actions.pod:681 ../fish/guestfish-actions.pod:503
5287 msgid ""
5288 "This can be used to resolve case insensitive paths on a filesystem which is "
5289 "case sensitive.  The use case is to resolve paths which you have read from "
5290 "Windows configuration files or the Windows Registry, to the true path."
5291 msgstr ""
5292
5293 # type: textblock
5294 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:508
5295 msgid ""
5296 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5297 "(and probably others), which is that although the underlying filesystem is "
5298 "case-insensitive, the driver exports the filesystem to Linux as case-"
5299 "sensitive."
5300 msgstr ""
5301
5302 # type: textblock
5303 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:513
5304 msgid ""
5305 "One consequence of this is that special directories such as C<c:\\windows> "
5306 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5307 "precise details of how they were created.  In Windows itself this would not "
5308 "be a problem."
5309 msgstr ""
5310
5311 # type: textblock
5312 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:519
5313 msgid ""
5314 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5315 "#posixfilenames1>"
5316 msgstr ""
5317
5318 # type: textblock
5319 #: ../src/guestfs-actions.pod:700 ../fish/guestfish-actions.pod:522
5320 msgid ""
5321 "This function resolves the true case of each element in the path and returns "
5322 "the case-sensitive path."
5323 msgstr ""
5324
5325 # type: textblock
5326 #: ../src/guestfs-actions.pod:703
5327 msgid ""
5328 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5329 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5330 "how the directories were originally created under Windows)."
5331 msgstr ""
5332
5333 # type: textblock
5334 #: ../src/guestfs-actions.pod:708 ../fish/guestfish-actions.pod:530
5335 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5336 msgstr ""
5337
5338 # type: textblock
5339 #: ../src/guestfs-actions.pod:711
5340 msgid "See also C<guestfs_realpath>."
5341 msgstr ""
5342
5343 # type: =head2
5344 #: ../src/guestfs-actions.pod:716
5345 msgid "guestfs_cat"
5346 msgstr ""
5347
5348 # type: verbatim
5349 #: ../src/guestfs-actions.pod:718
5350 #, no-wrap
5351 msgid ""
5352 " char *\n"
5353 " guestfs_cat (guestfs_h *g,\n"
5354 "              const char *path);\n"
5355 "\n"
5356 msgstr ""
5357
5358 # type: textblock
5359 #: ../src/guestfs-actions.pod:722 ../src/guestfs-actions.pod:4386
5360 #: ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3197
5361 msgid "Return the contents of the file named C<path>."
5362 msgstr ""
5363
5364 # type: textblock
5365 #: ../src/guestfs-actions.pod:724
5366 msgid ""
5367 "Note that this function cannot correctly handle binary files (specifically, "
5368 "files containing C<\\0> character which is treated as end of string).  For "
5369 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5370 "functions which have a more complex interface."
5371 msgstr ""
5372
5373 # type: textblock
5374 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:899
5375 #: ../src/guestfs-actions.pod:917 ../src/guestfs-actions.pod:1213
5376 #: ../src/guestfs-actions.pod:1230 ../src/guestfs-actions.pod:1323
5377 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1577
5378 #: ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:1965
5379 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2026
5380 #: ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:2068
5381 #: ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:4215
5382 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4355
5383 #: ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5145
5384 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5324
5385 #: ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5927
5386 #: ../src/guestfs-actions.pod:5951 ../src/guestfs-actions.pod:5975
5387 #: ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6069
5388 #: ../src/guestfs-actions.pod:6086 ../src/guestfs-actions.pod:6128
5389 #: ../src/guestfs-actions.pod:6145 ../fish/guestfish-actions.pod:546
5390 #: ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693
5391 #: ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904
5392 #: ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981
5393 #: ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451
5394 #: ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489
5395 #: ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514
5396 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3067
5397 #: ../fish/guestfish-actions.pod:3082 ../fish/guestfish-actions.pod:3158
5398 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3190
5399 #: ../fish/guestfish-actions.pod:3773 ../fish/guestfish-actions.pod:3819
5400 #: ../fish/guestfish-actions.pod:3904 ../fish/guestfish-actions.pod:3919
5401 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4347
5402 #: ../fish/guestfish-actions.pod:4364 ../fish/guestfish-actions.pod:4374
5403 #: ../fish/guestfish-actions.pod:4422 ../fish/guestfish-actions.pod:4432
5404 #: ../fish/guestfish-actions.pod:4461 ../fish/guestfish-actions.pod:4471
5405 msgid ""
5406 "Because of the message protocol, there is a transfer limit of somewhere "
5407 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5408 msgstr ""
5409
5410 # type: =head2
5411 #: ../src/guestfs-actions.pod:735
5412 msgid "guestfs_checksum"
5413 msgstr ""
5414
5415 # type: verbatim
5416 #: ../src/guestfs-actions.pod:737
5417 #, no-wrap
5418 msgid ""
5419 " char *\n"
5420 " guestfs_checksum (guestfs_h *g,\n"
5421 "                   const char *csumtype,\n"
5422 "                   const char *path);\n"
5423 "\n"
5424 msgstr ""
5425
5426 # type: textblock
5427 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:553
5428 msgid ""
5429 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5430 msgstr ""
5431
5432 # type: textblock
5433 #: ../src/guestfs-actions.pod:745 ../fish/guestfish-actions.pod:556
5434 msgid ""
5435 "The type of checksum to compute is given by the C<csumtype> parameter which "
5436 "must have one of the following values:"
5437 msgstr ""
5438
5439 # type: =item
5440 #: ../src/guestfs-actions.pod:750 ../fish/guestfish-actions.pod:561
5441 msgid "C<crc>"
5442 msgstr ""
5443
5444 # type: textblock
5445 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:563
5446 msgid ""
5447 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5448 "C<cksum> command."
5449 msgstr ""
5450
5451 # type: =item
5452 #: ../src/guestfs-actions.pod:755 ../fish/guestfish-actions.pod:566
5453 msgid "C<md5>"
5454 msgstr ""
5455
5456 # type: textblock
5457 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:568
5458 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5459 msgstr ""
5460
5461 # type: =item
5462 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:570
5463 msgid "C<sha1>"
5464 msgstr ""
5465
5466 # type: textblock
5467 #: ../src/guestfs-actions.pod:761 ../fish/guestfish-actions.pod:572
5468 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5469 msgstr ""
5470
5471 # type: =item
5472 #: ../src/guestfs-actions.pod:763 ../fish/guestfish-actions.pod:574
5473 msgid "C<sha224>"
5474 msgstr ""
5475
5476 # type: textblock
5477 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:576
5478 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5479 msgstr ""
5480
5481 # type: =item
5482 #: ../src/guestfs-actions.pod:767 ../fish/guestfish-actions.pod:578
5483 msgid "C<sha256>"
5484 msgstr ""
5485
5486 # type: textblock
5487 #: ../src/guestfs-actions.pod:769 ../fish/guestfish-actions.pod:580
5488 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5489 msgstr ""
5490
5491 # type: =item
5492 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:582
5493 msgid "C<sha384>"
5494 msgstr ""
5495
5496 # type: textblock
5497 #: ../src/guestfs-actions.pod:773 ../fish/guestfish-actions.pod:584
5498 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5499 msgstr ""
5500
5501 # type: =item
5502 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:586
5503 msgid "C<sha512>"
5504 msgstr ""
5505
5506 # type: textblock
5507 #: ../src/guestfs-actions.pod:777 ../fish/guestfish-actions.pod:588
5508 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5509 msgstr ""
5510
5511 # type: textblock
5512 #: ../src/guestfs-actions.pod:781 ../fish/guestfish-actions.pod:592
5513 msgid "The checksum is returned as a printable string."
5514 msgstr ""
5515
5516 # type: textblock
5517 #: ../src/guestfs-actions.pod:783
5518 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5519 msgstr ""
5520
5521 # type: textblock
5522 #: ../src/guestfs-actions.pod:785
5523 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5524 msgstr ""
5525
5526 # type: =head2
5527 #: ../src/guestfs-actions.pod:790
5528 msgid "guestfs_checksum_device"
5529 msgstr ""
5530
5531 # type: verbatim
5532 #: ../src/guestfs-actions.pod:792
5533 #, no-wrap
5534 msgid ""
5535 " char *\n"
5536 " guestfs_checksum_device (guestfs_h *g,\n"
5537 "                          const char *csumtype,\n"
5538 "                          const char *device);\n"
5539 "\n"
5540 msgstr ""
5541
5542 # type: textblock
5543 #: ../src/guestfs-actions.pod:797
5544 msgid ""
5545 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5546 "device named C<device>.  For the types of checksums supported see the "
5547 "C<guestfs_checksum> command."
5548 msgstr ""
5549
5550 # type: =head2
5551 #: ../src/guestfs-actions.pod:804
5552 msgid "guestfs_checksums_out"
5553 msgstr ""
5554
5555 # type: verbatim
5556 #: ../src/guestfs-actions.pod:806
5557 #, no-wrap
5558 msgid ""
5559 " int\n"
5560 " guestfs_checksums_out (guestfs_h *g,\n"
5561 "                        const char *csumtype,\n"
5562 "                        const char *directory,\n"
5563 "                        const char *sumsfile);\n"
5564 "\n"
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:812 ../fish/guestfish-actions.pod:610
5569 msgid ""
5570 "This command computes the checksums of all regular files in C<directory> and "
5571 "then emits a list of those checksums to the local output file C<sumsfile>."
5572 msgstr ""
5573
5574 # type: textblock
5575 #: ../src/guestfs-actions.pod:816 ../fish/guestfish-actions.pod:614
5576 msgid ""
5577 "This can be used for verifying the integrity of a virtual machine.  However "
5578 "to be properly secure you should pay attention to the output of the checksum "
5579 "command (it uses the ones from GNU coreutils).  In particular when the "
5580 "filename is not printable, coreutils uses a special backslash syntax.  For "
5581 "more information, see the GNU coreutils info file."
5582 msgstr ""
5583
5584 # type: =head2
5585 #: ../src/guestfs-actions.pod:826
5586 msgid "guestfs_chmod"
5587 msgstr ""
5588
5589 # type: verbatim
5590 #: ../src/guestfs-actions.pod:828
5591 #, no-wrap
5592 msgid ""
5593 " int\n"
5594 " guestfs_chmod (guestfs_h *g,\n"
5595 "                int mode,\n"
5596 "                const char *path);\n"
5597 "\n"
5598 msgstr ""
5599
5600 # type: textblock
5601 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:628
5602 msgid ""
5603 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5604 "supported."
5605 msgstr ""
5606
5607 # type: textblock
5608 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:631
5609 msgid ""
5610 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5611 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5612 "C<700>."
5613 msgstr ""
5614
5615 # type: textblock
5616 #: ../src/guestfs-actions.pod:840 ../src/guestfs-actions.pod:3483
5617 #: ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3607
5618 #: ../src/guestfs-actions.pod:3624 ../fish/guestfish-actions.pod:635
5619 #: ../fish/guestfish-actions.pod:2557 ../fish/guestfish-actions.pod:2642
5620 #: ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2662
5621 msgid "The mode actually set is affected by the umask."
5622 msgstr ""
5623
5624 # type: =head2
5625 #: ../src/guestfs-actions.pod:844
5626 msgid "guestfs_chown"
5627 msgstr ""
5628
5629 # type: verbatim
5630 #: ../src/guestfs-actions.pod:846
5631 #, no-wrap
5632 msgid ""
5633 " int\n"
5634 " guestfs_chown (guestfs_h *g,\n"
5635 "                int owner,\n"
5636 "                int group,\n"
5637 "                const char *path);\n"
5638 "\n"
5639 msgstr ""
5640
5641 # type: textblock
5642 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:641
5643 msgid "Change the file owner to C<owner> and group to C<group>."
5644 msgstr ""
5645
5646 # type: textblock
5647 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:2707
5648 #: ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2035
5649 msgid ""
5650 "Only numeric uid and gid are supported.  If you want to use names, you will "
5651 "need to locate and parse the password file yourself (Augeas support makes "
5652 "this relatively easy)."
5653 msgstr ""
5654
5655 # type: =head2
5656 #: ../src/guestfs-actions.pod:860
5657 msgid "guestfs_command"
5658 msgstr ""
5659
5660 # type: verbatim
5661 #: ../src/guestfs-actions.pod:862
5662 #, no-wrap
5663 msgid ""
5664 " char *\n"
5665 " guestfs_command (guestfs_h *g,\n"
5666 "                  char *const *arguments);\n"
5667 "\n"
5668 msgstr ""
5669
5670 # type: textblock
5671 #: ../src/guestfs-actions.pod:866 ../fish/guestfish-actions.pod:651
5672 msgid ""
5673 "This call runs a command from the guest filesystem.  The filesystem must be "
5674 "mounted, and must contain a compatible operating system (ie. something "
5675 "Linux, with the same or compatible processor architecture)."
5676 msgstr ""
5677
5678 # type: textblock
5679 #: ../src/guestfs-actions.pod:871
5680 msgid ""
5681 "The single parameter is an argv-style list of arguments.  The first element "
5682 "is the name of the program to run.  Subsequent elements are parameters.  The "
5683 "list must be non-empty (ie. must contain a program name).  Note that the "
5684 "command runs directly, and is I<not> invoked via the shell (see "
5685 "C<guestfs_sh>)."
5686 msgstr ""
5687
5688 # type: textblock
5689 #: ../src/guestfs-actions.pod:878 ../fish/guestfish-actions.pod:663
5690 msgid "The return value is anything printed to I<stdout> by the command."
5691 msgstr ""
5692
5693 # type: textblock
5694 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:666
5695 msgid ""
5696 "If the command returns a non-zero exit status, then this function returns an "
5697 "error message.  The error message string is the content of I<stderr> from "
5698 "the command."
5699 msgstr ""
5700
5701 # type: textblock
5702 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:670
5703 msgid ""
5704 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5705 "bin>.  If you require a program from another location, you should provide "
5706 "the full path in the first parameter."
5707 msgstr ""
5708
5709 # type: textblock
5710 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:675
5711 msgid ""
5712 "Shared libraries and data files required by the program must be available on "
5713 "filesystems which are mounted in the correct places.  It is the caller's "
5714 "responsibility to ensure all filesystems that are needed are mounted at the "
5715 "right locations."
5716 msgstr ""
5717
5718 # type: =head2
5719 #: ../src/guestfs-actions.pod:902
5720 msgid "guestfs_command_lines"
5721 msgstr ""
5722
5723 # type: verbatim
5724 #: ../src/guestfs-actions.pod:904
5725 #, no-wrap
5726 msgid ""
5727 " char **\n"
5728 " guestfs_command_lines (guestfs_h *g,\n"
5729 "                        char *const *arguments);\n"
5730 "\n"
5731 msgstr ""
5732
5733 # type: textblock
5734 #: ../src/guestfs-actions.pod:908
5735 msgid ""
5736 "This is the same as C<guestfs_command>, but splits the result into a list of "
5737 "lines."
5738 msgstr ""
5739
5740 # type: textblock
5741 #: ../src/guestfs-actions.pod:911
5742 msgid "See also: C<guestfs_sh_lines>"
5743 msgstr ""
5744
5745 # type: =head2
5746 #: ../src/guestfs-actions.pod:920
5747 msgid "guestfs_config"
5748 msgstr ""
5749
5750 # type: verbatim
5751 #: ../src/guestfs-actions.pod:922
5752 #, no-wrap
5753 msgid ""
5754 " int\n"
5755 " guestfs_config (guestfs_h *g,\n"
5756 "                 const char *qemuparam,\n"
5757 "                 const char *qemuvalue);\n"
5758 "\n"
5759 msgstr ""
5760
5761 # type: textblock
5762 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:700
5763 msgid ""
5764 "This can be used to add arbitrary qemu command line parameters of the form "
5765 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5766 "setting some parameters which would interfere with parameters that we use."
5767 msgstr ""
5768
5769 # type: textblock
5770 #: ../src/guestfs-actions.pod:932 ../fish/guestfish-actions.pod:705
5771 msgid "The first character of C<param> string must be a C<-> (dash)."
5772 msgstr ""
5773
5774 # type: textblock
5775 #: ../src/guestfs-actions.pod:934 ../fish/guestfish-actions.pod:707
5776 msgid "C<value> can be NULL."
5777 msgstr ""
5778
5779 # type: =head2
5780 #: ../src/guestfs-actions.pod:938
5781 msgid "guestfs_copy_size"
5782 msgstr ""
5783
5784 # type: verbatim
5785 #: ../src/guestfs-actions.pod:940
5786 #, no-wrap
5787 msgid ""
5788 " int\n"
5789 " guestfs_copy_size (guestfs_h *g,\n"
5790 "                    const char *src,\n"
5791 "                    const char *dest,\n"
5792 "                    int64_t size);\n"
5793 "\n"
5794 msgstr ""
5795
5796 # type: textblock
5797 #: ../src/guestfs-actions.pod:946 ../fish/guestfish-actions.pod:713
5798 msgid ""
5799 "This command copies exactly C<size> bytes from one source device or file "
5800 "C<src> to another destination device or file C<dest>."
5801 msgstr ""
5802
5803 # type: textblock
5804 #: ../src/guestfs-actions.pod:949 ../fish/guestfish-actions.pod:716
5805 msgid ""
5806 "Note this will fail if the source is too short or if the destination is not "
5807 "large enough."
5808 msgstr ""
5809
5810 # type: textblock
5811 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1098
5812 #: ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1515
5813 #: ../src/guestfs-actions.pod:1535 ../src/guestfs-actions.pod:6011
5814 #: ../src/guestfs-actions.pod:6028
5815 msgid ""
5816 "This long-running command can generate progress notification messages so "
5817 "that the caller can display a progress bar or indicator.  To receive these "
5818 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
5819 "guestfs_set_progress_callback>."
5820 msgstr ""
5821
5822 # type: =head2
5823 #: ../src/guestfs-actions.pod:959
5824 msgid "guestfs_cp"
5825 msgstr ""
5826
5827 # type: verbatim
5828 #: ../src/guestfs-actions.pod:961
5829 #, no-wrap
5830 msgid ""
5831 " int\n"
5832 " guestfs_cp (guestfs_h *g,\n"
5833 "             const char *src,\n"
5834 "             const char *dest);\n"
5835 "\n"
5836 msgstr ""
5837
5838 # type: textblock
5839 #: ../src/guestfs-actions.pod:966 ../fish/guestfish-actions.pod:723
5840 msgid ""
5841 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5842 "destination filename or destination directory."
5843 msgstr ""
5844
5845 # type: =head2
5846 #: ../src/guestfs-actions.pod:971
5847 msgid "guestfs_cp_a"
5848 msgstr ""
5849
5850 # type: verbatim
5851 #: ../src/guestfs-actions.pod:973
5852 #, no-wrap
5853 msgid ""
5854 " int\n"
5855 " guestfs_cp_a (guestfs_h *g,\n"
5856 "               const char *src,\n"
5857 "               const char *dest);\n"
5858 "\n"
5859 msgstr ""
5860
5861 # type: textblock
5862 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:730
5863 msgid ""
5864 "This copies a file or directory from C<src> to C<dest> recursively using the "
5865 "C<cp -a> command."
5866 msgstr ""
5867
5868 # type: =head2
5869 #: ../src/guestfs-actions.pod:983
5870 msgid "guestfs_dd"
5871 msgstr ""
5872
5873 # type: verbatim
5874 #: ../src/guestfs-actions.pod:985
5875 #, no-wrap
5876 msgid ""
5877 " int\n"
5878 " guestfs_dd (guestfs_h *g,\n"
5879 "             const char *src,\n"
5880 "             const char *dest);\n"
5881 "\n"
5882 msgstr ""
5883
5884 # type: textblock
5885 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:737
5886 msgid ""
5887 "This command copies from one source device or file C<src> to another "
5888 "destination device or file C<dest>.  Normally you would use this to copy to "
5889 "or from a device or partition, for example to duplicate a filesystem."
5890 msgstr ""
5891
5892 # type: textblock
5893 #: ../src/guestfs-actions.pod:995
5894 msgid ""
5895 "If the destination is a device, it must be as large or larger than the "
5896 "source file or device, otherwise the copy will fail.  This command cannot do "
5897 "partial copies (see C<guestfs_copy_size>)."
5898 msgstr ""
5899
5900 # type: =head2
5901 #: ../src/guestfs-actions.pod:1001
5902 msgid "guestfs_debug"
5903 msgstr ""
5904
5905 # type: verbatim
5906 #: ../src/guestfs-actions.pod:1003
5907 #, no-wrap
5908 msgid ""
5909 " char *\n"
5910 " guestfs_debug (guestfs_h *g,\n"
5911 "                const char *subcmd,\n"
5912 "                char *const *extraargs);\n"
5913 "\n"
5914 msgstr ""
5915
5916 # type: textblock
5917 #: ../src/guestfs-actions.pod:1008
5918 msgid ""
5919 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5920 "guestfs daemon) that runs inside the qemu subprocess."
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1012 ../fish/guestfish-actions.pod:754
5925 msgid ""
5926 "There is no comprehensive help for this command.  You have to look at the "
5927 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5928 msgstr ""
5929
5930 # type: =head2
5931 #: ../src/guestfs-actions.pod:1019
5932 msgid "guestfs_debug_upload"
5933 msgstr ""
5934
5935 # type: verbatim
5936 #: ../src/guestfs-actions.pod:1021
5937 #, no-wrap
5938 msgid ""
5939 " int\n"
5940 " guestfs_debug_upload (guestfs_h *g,\n"
5941 "                       const char *filename,\n"
5942 "                       const char *tmpname,\n"
5943 "                       int mode);\n"
5944 "\n"
5945 msgstr ""
5946
5947 # type: textblock
5948 #: ../src/guestfs-actions.pod:1027
5949 msgid ""
5950 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5951 "appliance."
5952 msgstr ""
5953
5954 # type: textblock
5955 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:765
5956 msgid ""
5957 "There is no comprehensive help for this command.  You have to look at the "
5958 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5959 msgstr ""
5960
5961 # type: =head2
5962 #: ../src/guestfs-actions.pod:1036
5963 msgid "guestfs_df"
5964 msgstr ""
5965
5966 # type: verbatim
5967 #: ../src/guestfs-actions.pod:1038
5968 #, no-wrap
5969 msgid ""
5970 " char *\n"
5971 " guestfs_df (guestfs_h *g);\n"
5972 "\n"
5973 msgstr ""
5974
5975 # type: textblock
5976 #: ../src/guestfs-actions.pod:1041 ../fish/guestfish-actions.pod:775
5977 msgid "This command runs the C<df> command to report disk space used."
5978 msgstr ""
5979
5980 # type: textblock
5981 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:1058
5982 #: ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5983 msgid ""
5984 "This command is mostly useful for interactive sessions.  It is I<not> "
5985 "intended that you try to parse the output string.  Use C<statvfs> from "
5986 "programs."
5987 msgstr ""
5988
5989 # type: =head2
5990 #: ../src/guestfs-actions.pod:1050
5991 msgid "guestfs_df_h"
5992 msgstr ""
5993
5994 # type: verbatim
5995 #: ../src/guestfs-actions.pod:1052
5996 #, no-wrap
5997 msgid ""
5998 " char *\n"
5999 " guestfs_df_h (guestfs_h *g);\n"
6000 "\n"
6001 msgstr ""
6002
6003 # type: textblock
6004 #: ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:785
6005 msgid ""
6006 "This command runs the C<df -h> command to report disk space used in human-"
6007 "readable format."
6008 msgstr ""
6009
6010 # type: =head2
6011 #: ../src/guestfs-actions.pod:1065
6012 msgid "guestfs_dmesg"
6013 msgstr ""
6014
6015 # type: verbatim
6016 #: ../src/guestfs-actions.pod:1067
6017 #, no-wrap
6018 msgid ""
6019 " char *\n"
6020 " guestfs_dmesg (guestfs_h *g);\n"
6021 "\n"
6022 msgstr ""
6023
6024 # type: textblock
6025 #: ../src/guestfs-actions.pod:1070 ../fish/guestfish-actions.pod:796
6026 msgid ""
6027 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6028 "This is sometimes useful for extended debugging of problems."
6029 msgstr ""
6030
6031 # type: textblock
6032 #: ../src/guestfs-actions.pod:1074
6033 msgid ""
6034 "Another way to get the same information is to enable verbose messages with "
6035 "C<guestfs_set_verbose> or by setting the environment variable "
6036 "C<LIBGUESTFS_DEBUG=1> before running the program."
6037 msgstr ""
6038
6039 # type: =head2
6040 #: ../src/guestfs-actions.pod:1082
6041 msgid "guestfs_download"
6042 msgstr ""
6043
6044 # type: verbatim
6045 #: ../src/guestfs-actions.pod:1084
6046 #, no-wrap
6047 msgid ""
6048 " int\n"
6049 " guestfs_download (guestfs_h *g,\n"
6050 "                   const char *remotefilename,\n"
6051 "                   const char *filename);\n"
6052 "\n"
6053 msgstr ""
6054
6055 # type: textblock
6056 #: ../src/guestfs-actions.pod:1089 ../src/guestfs-actions.pod:1112
6057 #: ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
6058 msgid ""
6059 "Download file C<remotefilename> and save it as C<filename> on the local "
6060 "machine."
6061 msgstr ""
6062
6063 # type: textblock
6064 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:5553
6065 #: ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4077
6066 msgid "C<filename> can also be a named pipe."
6067 msgstr ""
6068
6069 # type: textblock
6070 #: ../src/guestfs-actions.pod:1094
6071 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6072 msgstr ""
6073
6074 # type: =head2
6075 #: ../src/guestfs-actions.pod:1103
6076 msgid "guestfs_download_offset"
6077 msgstr ""
6078
6079 # type: verbatim
6080 #: ../src/guestfs-actions.pod:1105
6081 #, no-wrap
6082 msgid ""
6083 " int\n"
6084 " guestfs_download_offset (guestfs_h *g,\n"
6085 "                          const char *remotefilename,\n"
6086 "                          const char *filename,\n"
6087 "                          int64_t offset,\n"
6088 "                          int64_t size);\n"
6089 "\n"
6090 msgstr ""
6091
6092 # type: textblock
6093 #: ../src/guestfs-actions.pod:1115 ../fish/guestfish-actions.pod:825
6094 msgid ""
6095 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6096 "region must be within the file or device)."
6097 msgstr ""
6098
6099 # type: textblock
6100 #: ../src/guestfs-actions.pod:1118
6101 msgid ""
6102 "Note that there is no limit on the amount of data that can be downloaded "
6103 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6104 "full amount unless an error occurs."
6105 msgstr ""
6106
6107 # type: textblock
6108 #: ../src/guestfs-actions.pod:1123
6109 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6110 msgstr ""
6111
6112 # type: =head2
6113 #: ../src/guestfs-actions.pod:1132
6114 msgid "guestfs_drop_caches"
6115 msgstr ""
6116
6117 # type: verbatim
6118 #: ../src/guestfs-actions.pod:1134
6119 #, no-wrap
6120 msgid ""
6121 " int\n"
6122 " guestfs_drop_caches (guestfs_h *g,\n"
6123 "                      int whattodrop);\n"
6124 "\n"
6125 msgstr ""
6126
6127 # type: textblock
6128 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:841
6129 msgid ""
6130 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6131 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6132 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6133 msgstr ""
6134
6135 # type: textblock
6136 #: ../src/guestfs-actions.pod:1143 ../fish/guestfish-actions.pod:846
6137 msgid "Setting C<whattodrop> to 3 should drop everything."
6138 msgstr ""
6139
6140 # type: textblock
6141 #: ../src/guestfs-actions.pod:1145 ../fish/guestfish-actions.pod:848
6142 msgid ""
6143 "This automatically calls L<sync(2)> before the operation, so that the "
6144 "maximum guest memory is freed."
6145 msgstr ""
6146
6147 # type: =head2
6148 #: ../src/guestfs-actions.pod:1150
6149 msgid "guestfs_du"
6150 msgstr ""
6151
6152 # type: verbatim
6153 #: ../src/guestfs-actions.pod:1152
6154 #, no-wrap
6155 msgid ""
6156 " int64_t\n"
6157 " guestfs_du (guestfs_h *g,\n"
6158 "             const char *path);\n"
6159 "\n"
6160 msgstr ""
6161
6162 # type: textblock
6163 #: ../src/guestfs-actions.pod:1156 ../fish/guestfish-actions.pod:855
6164 msgid ""
6165 "This command runs the C<du -s> command to estimate file space usage for "
6166 "C<path>."
6167 msgstr ""
6168
6169 # type: textblock
6170 #: ../src/guestfs-actions.pod:1159 ../fish/guestfish-actions.pod:858
6171 msgid ""
6172 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6173 "estimate includes the contents of the directory and all subdirectories "
6174 "(recursively)."
6175 msgstr ""
6176
6177 # type: textblock
6178 #: ../src/guestfs-actions.pod:1163 ../fish/guestfish-actions.pod:862
6179 msgid ""
6180 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6181 msgstr ""
6182
6183 # type: =head2
6184 #: ../src/guestfs-actions.pod:1168
6185 msgid "guestfs_e2fsck_f"
6186 msgstr ""
6187
6188 # type: verbatim
6189 #: ../src/guestfs-actions.pod:1170
6190 #, no-wrap
6191 msgid ""
6192 " int\n"
6193 " guestfs_e2fsck_f (guestfs_h *g,\n"
6194 "                   const char *device);\n"
6195 "\n"
6196 msgstr ""
6197
6198 # type: textblock
6199 #: ../src/guestfs-actions.pod:1174 ../fish/guestfish-actions.pod:869
6200 msgid ""
6201 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6202 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6203 "clean (C<-f>)."
6204 msgstr ""
6205
6206 # type: textblock
6207 #: ../src/guestfs-actions.pod:1178
6208 msgid ""
6209 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6210 "Normally you should use C<guestfs_fsck>."
6211 msgstr ""
6212
6213 # type: =head2
6214 #: ../src/guestfs-actions.pod:1183
6215 msgid "guestfs_echo_daemon"
6216 msgstr ""
6217
6218 # type: verbatim
6219 #: ../src/guestfs-actions.pod:1185
6220 #, no-wrap
6221 msgid ""
6222 " char *\n"
6223 " guestfs_echo_daemon (guestfs_h *g,\n"
6224 "                      char *const *words);\n"
6225 "\n"
6226 msgstr ""
6227
6228 # type: textblock
6229 #: ../src/guestfs-actions.pod:1189 ../fish/guestfish-actions.pod:880
6230 msgid ""
6231 "This command concatenates the list of C<words> passed with single spaces "
6232 "between them and returns the resulting string."
6233 msgstr ""
6234
6235 # type: textblock
6236 #: ../src/guestfs-actions.pod:1192 ../fish/guestfish-actions.pod:883
6237 msgid "You can use this command to test the connection through to the daemon."
6238 msgstr ""
6239
6240 # type: textblock
6241 #: ../src/guestfs-actions.pod:1194
6242 msgid "See also C<guestfs_ping_daemon>."
6243 msgstr ""
6244
6245 # type: =head2
6246 #: ../src/guestfs-actions.pod:1199
6247 msgid "guestfs_egrep"
6248 msgstr ""
6249
6250 # type: verbatim
6251 #: ../src/guestfs-actions.pod:1201
6252 #, no-wrap
6253 msgid ""
6254 " char **\n"
6255 " guestfs_egrep (guestfs_h *g,\n"
6256 "                const char *regex,\n"
6257 "                const char *path);\n"
6258 "\n"
6259 msgstr ""
6260
6261 # type: textblock
6262 #: ../src/guestfs-actions.pod:1206 ../fish/guestfish-actions.pod:891
6263 msgid ""
6264 "This calls the external C<egrep> program and returns the matching lines."
6265 msgstr ""
6266
6267 # type: =head2
6268 #: ../src/guestfs-actions.pod:1216
6269 msgid "guestfs_egrepi"
6270 msgstr ""
6271
6272 # type: verbatim
6273 #: ../src/guestfs-actions.pod:1218
6274 #, no-wrap
6275 msgid ""
6276 " char **\n"
6277 " guestfs_egrepi (guestfs_h *g,\n"
6278 "                 const char *regex,\n"
6279 "                 const char *path);\n"
6280 "\n"
6281 msgstr ""
6282
6283 # type: textblock
6284 #: ../src/guestfs-actions.pod:1223 ../fish/guestfish-actions.pod:901
6285 msgid ""
6286 "This calls the external C<egrep -i> program and returns the matching lines."
6287 msgstr ""
6288
6289 # type: =head2
6290 #: ../src/guestfs-actions.pod:1233
6291 msgid "guestfs_equal"
6292 msgstr ""
6293
6294 # type: verbatim
6295 #: ../src/guestfs-actions.pod:1235
6296 #, no-wrap
6297 msgid ""
6298 " int\n"
6299 " guestfs_equal (guestfs_h *g,\n"
6300 "                const char *file1,\n"
6301 "                const char *file2);\n"
6302 "\n"
6303 msgstr ""
6304
6305 # type: textblock
6306 #: ../src/guestfs-actions.pod:1240 ../fish/guestfish-actions.pod:911
6307 msgid ""
6308 "This compares the two files C<file1> and C<file2> and returns true if their "
6309 "content is exactly equal, or false otherwise."
6310 msgstr ""
6311
6312 # type: textblock
6313 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:914
6314 msgid "The external L<cmp(1)> program is used for the comparison."
6315 msgstr ""
6316
6317 # type: =head2
6318 #: ../src/guestfs-actions.pod:1247
6319 msgid "guestfs_exists"
6320 msgstr ""
6321
6322 # type: verbatim
6323 #: ../src/guestfs-actions.pod:1249
6324 #, no-wrap
6325 msgid ""
6326 " int\n"
6327 " guestfs_exists (guestfs_h *g,\n"
6328 "                 const char *path);\n"
6329 "\n"
6330 msgstr ""
6331
6332 # type: textblock
6333 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:920
6334 msgid ""
6335 "This returns C<true> if and only if there is a file, directory (or anything) "
6336 "with the given C<path> name."
6337 msgstr ""
6338
6339 # type: textblock
6340 #: ../src/guestfs-actions.pod:1256
6341 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6342 msgstr ""
6343
6344 # type: =head2
6345 #: ../src/guestfs-actions.pod:1260
6346 msgid "guestfs_fallocate"
6347 msgstr ""
6348
6349 # type: verbatim
6350 #: ../src/guestfs-actions.pod:1262
6351 #, no-wrap
6352 msgid ""
6353 " int\n"
6354 " guestfs_fallocate (guestfs_h *g,\n"
6355 "                    const char *path,\n"
6356 "                    int len);\n"
6357 "\n"
6358 msgstr ""
6359
6360 # type: textblock
6361 #: ../src/guestfs-actions.pod:1267 ../src/guestfs-actions.pod:1291
6362 #: ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6363 msgid ""
6364 "This command preallocates a file (containing zero bytes) named C<path> of "
6365 "size C<len> bytes.  If the file exists already, it is overwritten."
6366 msgstr ""
6367
6368 # type: textblock
6369 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:933
6370 msgid ""
6371 "Do not confuse this with the guestfish-specific C<alloc> command which "
6372 "allocates a file in the host and attaches it as a device."
6373 msgstr ""
6374
6375 # type: textblock
6376 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:937
6377 msgid ""
6378 "This function is deprecated.  In new code, use the C<fallocate64> call "
6379 "instead."
6380 msgstr ""
6381
6382 # type: =head2
6383 #: ../src/guestfs-actions.pod:1284
6384 msgid "guestfs_fallocate64"
6385 msgstr ""
6386
6387 # type: verbatim
6388 #: ../src/guestfs-actions.pod:1286
6389 #, no-wrap
6390 msgid ""
6391 " int\n"
6392 " guestfs_fallocate64 (guestfs_h *g,\n"
6393 "                      const char *path,\n"
6394 "                      int64_t len);\n"
6395 "\n"
6396 msgstr ""
6397
6398 # type: textblock
6399 #: ../src/guestfs-actions.pod:1295
6400 msgid ""
6401 "Note that this call allocates disk blocks for the file.  To create a sparse "
6402 "file use C<guestfs_truncate_size> instead."
6403 msgstr ""
6404
6405 # type: textblock
6406 #: ../src/guestfs-actions.pod:1298
6407 msgid ""
6408 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6409 "oversight it only allowed 30 bit lengths to be specified, effectively "
6410 "limiting the maximum size of files created through that call to 1GB."
6411 msgstr ""
6412
6413 # type: textblock
6414 #: ../src/guestfs-actions.pod:1303 ../fish/guestfish-actions.pod:960
6415 msgid ""
6416 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6417 "commands which create a file in the host and attach it as a device."
6418 msgstr ""
6419
6420 # type: =head2
6421 #: ../src/guestfs-actions.pod:1309
6422 msgid "guestfs_fgrep"
6423 msgstr ""
6424
6425 # type: verbatim
6426 #: ../src/guestfs-actions.pod:1311
6427 #, no-wrap
6428 msgid ""
6429 " char **\n"
6430 " guestfs_fgrep (guestfs_h *g,\n"
6431 "                const char *pattern,\n"
6432 "                const char *path);\n"
6433 "\n"
6434 msgstr ""
6435
6436 # type: textblock
6437 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:968
6438 msgid ""
6439 "This calls the external C<fgrep> program and returns the matching lines."
6440 msgstr ""
6441
6442 # type: =head2
6443 #: ../src/guestfs-actions.pod:1326
6444 msgid "guestfs_fgrepi"
6445 msgstr ""
6446
6447 # type: verbatim
6448 #: ../src/guestfs-actions.pod:1328
6449 #, no-wrap
6450 msgid ""
6451 " char **\n"
6452 " guestfs_fgrepi (guestfs_h *g,\n"
6453 "                 const char *pattern,\n"
6454 "                 const char *path);\n"
6455 "\n"
6456 msgstr ""
6457
6458 # type: textblock
6459 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:978
6460 msgid ""
6461 "This calls the external C<fgrep -i> program and returns the matching lines."
6462 msgstr ""
6463
6464 # type: =head2
6465 #: ../src/guestfs-actions.pod:1343
6466 msgid "guestfs_file"
6467 msgstr ""
6468
6469 # type: verbatim
6470 #: ../src/guestfs-actions.pod:1345
6471 #, no-wrap
6472 msgid ""
6473 " char *\n"
6474 " guestfs_file (guestfs_h *g,\n"
6475 "               const char *path);\n"
6476 "\n"
6477 msgstr ""
6478
6479 # type: textblock
6480 #: ../src/guestfs-actions.pod:1349 ../fish/guestfish-actions.pod:988
6481 msgid ""
6482 "This call uses the standard L<file(1)> command to determine the type or "
6483 "contents of the file."
6484 msgstr ""
6485
6486 # type: textblock
6487 #: ../src/guestfs-actions.pod:1352 ../fish/guestfish-actions.pod:991
6488 msgid ""
6489 "This call will also transparently look inside various types of compressed "
6490 "file."
6491 msgstr ""
6492
6493 # type: textblock
6494 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:994
6495 msgid ""
6496 "The exact command which runs is C<file -zb path>.  Note in particular that "
6497 "the filename is not prepended to the output (the C<-b> option)."
6498 msgstr ""
6499
6500 # type: textblock
6501 #: ../src/guestfs-actions.pod:1359
6502 msgid ""
6503 "This command can also be used on C</dev/> devices (and partitions, LV "
6504 "names).  You can for example use this to determine if a device contains a "
6505 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6506 msgstr ""
6507
6508 # type: textblock
6509 #: ../src/guestfs-actions.pod:1364 ../fish/guestfish-actions.pod:1003
6510 msgid ""
6511 "If the C<path> does not begin with C</dev/> then this command only works for "
6512 "the content of regular files.  For other file types (directory, symbolic "
6513 "link etc) it will just return the string C<directory> etc."
6514 msgstr ""
6515
6516 # type: =head2
6517 #: ../src/guestfs-actions.pod:1372
6518 msgid "guestfs_file_architecture"
6519 msgstr ""
6520
6521 # type: verbatim
6522 #: ../src/guestfs-actions.pod:1374
6523 #, no-wrap
6524 msgid ""
6525 " char *\n"
6526 " guestfs_file_architecture (guestfs_h *g,\n"
6527 "                            const char *filename);\n"
6528 "\n"
6529 msgstr ""
6530
6531 # type: textblock
6532 #: ../src/guestfs-actions.pod:1378 ../fish/guestfish-actions.pod:1012
6533 msgid ""
6534 "This detects the architecture of the binary C<filename>, and returns it if "
6535 "known."
6536 msgstr ""
6537
6538 # type: textblock
6539 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1015
6540 msgid "Currently defined architectures are:"
6541 msgstr ""
6542
6543 # type: =item
6544 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1019
6545 msgid "\"i386\""
6546 msgstr ""
6547
6548 # type: textblock
6549 #: ../src/guestfs-actions.pod:1387 ../fish/guestfish-actions.pod:1021
6550 msgid ""
6551 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6552 "irrespective of the precise processor requirements of the binary."
6553 msgstr ""
6554
6555 # type: =item
6556 #: ../src/guestfs-actions.pod:1390 ../fish/guestfish-actions.pod:1024
6557 msgid "\"x86_64\""
6558 msgstr ""
6559
6560 # type: textblock
6561 #: ../src/guestfs-actions.pod:1392 ../fish/guestfish-actions.pod:1026
6562 msgid "64 bit x86-64."
6563 msgstr ""
6564
6565 # type: =item
6566 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:1028
6567 msgid "\"sparc\""
6568 msgstr ""
6569
6570 # type: textblock
6571 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:1030
6572 msgid "32 bit SPARC."
6573 msgstr ""
6574
6575 # type: =item
6576 #: ../src/guestfs-actions.pod:1398 ../fish/guestfish-actions.pod:1032
6577 msgid "\"sparc64\""
6578 msgstr ""
6579
6580 # type: textblock
6581 #: ../src/guestfs-actions.pod:1400 ../fish/guestfish-actions.pod:1034
6582 msgid "64 bit SPARC V9 and above."
6583 msgstr ""
6584
6585 # type: =item
6586 #: ../src/guestfs-actions.pod:1402 ../fish/guestfish-actions.pod:1036
6587 msgid "\"ia64\""
6588 msgstr ""
6589
6590 # type: textblock
6591 #: ../src/guestfs-actions.pod:1404 ../fish/guestfish-actions.pod:1038
6592 msgid "Intel Itanium."
6593 msgstr ""
6594
6595 # type: =item
6596 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:1040
6597 msgid "\"ppc\""
6598 msgstr ""
6599
6600 # type: textblock
6601 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:1042
6602 msgid "32 bit Power PC."
6603 msgstr ""
6604
6605 # type: =item
6606 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:1044
6607 msgid "\"ppc64\""
6608 msgstr ""
6609
6610 # type: textblock
6611 #: ../src/guestfs-actions.pod:1412 ../fish/guestfish-actions.pod:1046
6612 msgid "64 bit Power PC."
6613 msgstr ""
6614
6615 # type: textblock
6616 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1050
6617 msgid "Libguestfs may return other architecture strings in future."
6618 msgstr ""
6619
6620 # type: textblock
6621 #: ../src/guestfs-actions.pod:1418 ../fish/guestfish-actions.pod:1052
6622 msgid "The function works on at least the following types of files:"
6623 msgstr ""
6624
6625 # type: textblock
6626 #: ../src/guestfs-actions.pod:1424 ../fish/guestfish-actions.pod:1058
6627 msgid "many types of Un*x and Linux binary"
6628 msgstr ""
6629
6630 # type: textblock
6631 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:1062
6632 msgid "many types of Un*x and Linux shared library"
6633 msgstr ""
6634
6635 # type: textblock
6636 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:1066
6637 msgid "Windows Win32 and Win64 binaries"
6638 msgstr ""
6639
6640 # type: textblock
6641 #: ../src/guestfs-actions.pod:1436 ../fish/guestfish-actions.pod:1070
6642 msgid "Windows Win32 and Win64 DLLs"
6643 msgstr ""
6644
6645 # type: textblock
6646 #: ../src/guestfs-actions.pod:1438 ../fish/guestfish-actions.pod:1072
6647 msgid "Win32 binaries and DLLs return C<i386>."
6648 msgstr ""
6649
6650 # type: textblock
6651 #: ../src/guestfs-actions.pod:1440 ../fish/guestfish-actions.pod:1074
6652 msgid "Win64 binaries and DLLs return C<x86_64>."
6653 msgstr ""
6654
6655 # type: textblock
6656 #: ../src/guestfs-actions.pod:1444 ../fish/guestfish-actions.pod:1078
6657 msgid "Linux kernel modules"
6658 msgstr ""
6659
6660 # type: textblock
6661 #: ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:1082
6662 msgid "Linux new-style initrd images"
6663 msgstr ""
6664
6665 # type: textblock
6666 #: ../src/guestfs-actions.pod:1452 ../fish/guestfish-actions.pod:1086
6667 msgid "some non-x86 Linux vmlinuz kernels"
6668 msgstr ""
6669
6670 # type: textblock
6671 #: ../src/guestfs-actions.pod:1456 ../fish/guestfish-actions.pod:1090
6672 msgid "What it can't do currently:"
6673 msgstr ""
6674
6675 # type: textblock
6676 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:1096
6677 msgid "static libraries (libfoo.a)"
6678 msgstr ""
6679
6680 # type: textblock
6681 #: ../src/guestfs-actions.pod:1466 ../fish/guestfish-actions.pod:1100
6682 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6683 msgstr ""
6684
6685 # type: textblock
6686 #: ../src/guestfs-actions.pod:1470 ../fish/guestfish-actions.pod:1104
6687 msgid "x86 Linux vmlinuz kernels"
6688 msgstr ""
6689
6690 # type: textblock
6691 #: ../src/guestfs-actions.pod:1472 ../fish/guestfish-actions.pod:1106
6692 msgid ""
6693 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6694 "compressed code, and are horribly hard to unpack.  If you want to find the "
6695 "architecture of a kernel, use the architecture of the associated initrd or "
6696 "kernel module(s) instead."
6697 msgstr ""
6698
6699 # type: =head2
6700 #: ../src/guestfs-actions.pod:1482
6701 msgid "guestfs_filesize"
6702 msgstr ""
6703
6704 # type: verbatim
6705 #: ../src/guestfs-actions.pod:1484
6706 #, no-wrap
6707 msgid ""
6708 " int64_t\n"
6709 " guestfs_filesize (guestfs_h *g,\n"
6710 "                   const char *file);\n"
6711 "\n"
6712 msgstr ""
6713
6714 # type: textblock
6715 #: ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:1117
6716 msgid "This command returns the size of C<file> in bytes."
6717 msgstr ""
6718
6719 # type: textblock
6720 #: ../src/guestfs-actions.pod:1490
6721 msgid ""
6722 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6723 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6724 "devices, use C<guestfs_blockdev_getsize64>."
6725 msgstr ""
6726
6727 # type: =head2
6728 #: ../src/guestfs-actions.pod:1496
6729 msgid "guestfs_fill"
6730 msgstr ""
6731
6732 # type: verbatim
6733 #: ../src/guestfs-actions.pod:1498
6734 #, no-wrap
6735 msgid ""
6736 " int\n"
6737 " guestfs_fill (guestfs_h *g,\n"
6738 "               int c,\n"
6739 "               int len,\n"
6740 "               const char *path);\n"
6741 "\n"
6742 msgstr ""
6743
6744 # type: textblock
6745 #: ../src/guestfs-actions.pod:1504 ../fish/guestfish-actions.pod:1127
6746 msgid ""
6747 "This command creates a new file called C<path>.  The initial content of the "
6748 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6749 "[0..255]>."
6750 msgstr ""
6751
6752 # type: textblock
6753 #: ../src/guestfs-actions.pod:1508
6754 msgid ""
6755 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6756 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6757 "bytes use C<guestfs_fill_pattern>."
6758 msgstr ""
6759
6760 # type: =head2
6761 #: ../src/guestfs-actions.pod:1520
6762 msgid "guestfs_fill_pattern"
6763 msgstr ""
6764
6765 # type: verbatim
6766 #: ../src/guestfs-actions.pod:1522
6767 #, no-wrap
6768 msgid ""
6769 " int\n"
6770 " guestfs_fill_pattern (guestfs_h *g,\n"
6771 "                       const char *pattern,\n"
6772 "                       int len,\n"
6773 "                       const char *path);\n"
6774 "\n"
6775 msgstr ""
6776
6777 # type: textblock
6778 #: ../src/guestfs-actions.pod:1528
6779 msgid ""
6780 "This function is like C<guestfs_fill> except that it creates a new file of "
6781 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6782 "pattern is truncated if necessary to ensure the length of the file is "
6783 "exactly C<len> bytes."
6784 msgstr ""
6785
6786 # type: =head2
6787 #: ../src/guestfs-actions.pod:1540
6788 msgid "guestfs_find"
6789 msgstr ""
6790
6791 # type: verbatim
6792 #: ../src/guestfs-actions.pod:1542
6793 #, no-wrap
6794 msgid ""
6795 " char **\n"
6796 " guestfs_find (guestfs_h *g,\n"
6797 "               const char *directory);\n"
6798 "\n"
6799 msgstr ""
6800
6801 # type: textblock
6802 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1149
6803 msgid ""
6804 "This command lists out all files and directories, recursively, starting at "
6805 "C<directory>.  It is essentially equivalent to running the shell command "
6806 "C<find directory -print> but some post-processing happens on the output, "
6807 "described below."
6808 msgstr ""
6809
6810 # type: textblock
6811 #: ../src/guestfs-actions.pod:1551 ../fish/guestfish-actions.pod:1154
6812 msgid ""
6813 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6814 "structure was:"
6815 msgstr ""
6816
6817 # type: verbatim
6818 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1157
6819 #, no-wrap
6820 msgid ""
6821 " /tmp/a\n"
6822 " /tmp/b\n"
6823 " /tmp/c/d\n"
6824 "\n"
6825 msgstr ""
6826
6827 # type: textblock
6828 #: ../src/guestfs-actions.pod:1558
6829 msgid ""
6830 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6831 msgstr ""
6832
6833 # type: verbatim
6834 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1164
6835 #, no-wrap
6836 msgid ""
6837 " a\n"
6838 " b\n"
6839 " c\n"
6840 " c/d\n"
6841 "\n"
6842 msgstr ""
6843
6844 # type: textblock
6845 #: ../src/guestfs-actions.pod:1566 ../fish/guestfish-actions.pod:1169
6846 msgid "If C<directory> is not a directory, then this command returns an error."
6847 msgstr ""
6848
6849 # type: textblock
6850 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1172
6851 msgid "The returned list is sorted."
6852 msgstr ""
6853
6854 # type: textblock
6855 #: ../src/guestfs-actions.pod:1571
6856 msgid "See also C<guestfs_find0>."
6857 msgstr ""
6858
6859 # type: =head2
6860 #: ../src/guestfs-actions.pod:1580
6861 msgid "guestfs_find0"
6862 msgstr ""
6863
6864 # type: verbatim
6865 #: ../src/guestfs-actions.pod:1582
6866 #, no-wrap
6867 msgid ""
6868 " int\n"
6869 " guestfs_find0 (guestfs_h *g,\n"
6870 "                const char *directory,\n"
6871 "                const char *files);\n"
6872 "\n"
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1587 ../fish/guestfish-actions.pod:1183
6877 msgid ""
6878 "This command lists out all files and directories, recursively, starting at "
6879 "C<directory>, placing the resulting list in the external file called "
6880 "C<files>."
6881 msgstr ""
6882
6883 # type: textblock
6884 #: ../src/guestfs-actions.pod:1591
6885 msgid ""
6886 "This command works the same way as C<guestfs_find> with the following "
6887 "exceptions:"
6888 msgstr ""
6889
6890 # type: textblock
6891 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1194
6892 msgid "The resulting list is written to an external file."
6893 msgstr ""
6894
6895 # type: textblock
6896 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1198
6897 msgid ""
6898 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6899 "L<find(1)> option I<-print0>."
6900 msgstr ""
6901
6902 # type: textblock
6903 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1203
6904 msgid "This command is not limited in the number of names that it can return."
6905 msgstr ""
6906
6907 # type: textblock
6908 #: ../src/guestfs-actions.pod:1612 ../fish/guestfish-actions.pod:1208
6909 msgid "The result list is not sorted."
6910 msgstr ""
6911
6912 # type: =head2
6913 #: ../src/guestfs-actions.pod:1618
6914 msgid "guestfs_findfs_label"
6915 msgstr ""
6916
6917 # type: verbatim
6918 #: ../src/guestfs-actions.pod:1620
6919 #, no-wrap
6920 msgid ""
6921 " char *\n"
6922 " guestfs_findfs_label (guestfs_h *g,\n"
6923 "                       const char *label);\n"
6924 "\n"
6925 msgstr ""
6926
6927 # type: textblock
6928 #: ../src/guestfs-actions.pod:1624 ../fish/guestfish-actions.pod:1218
6929 msgid ""
6930 "This command searches the filesystems and returns the one which has the "
6931 "given label.  An error is returned if no such filesystem can be found."
6932 msgstr ""
6933
6934 # type: textblock
6935 #: ../src/guestfs-actions.pod:1628
6936 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6937 msgstr ""
6938
6939 # type: =head2
6940 #: ../src/guestfs-actions.pod:1633
6941 msgid "guestfs_findfs_uuid"
6942 msgstr ""
6943
6944 # type: verbatim
6945 #: ../src/guestfs-actions.pod:1635
6946 #, no-wrap
6947 msgid ""
6948 " char *\n"
6949 " guestfs_findfs_uuid (guestfs_h *g,\n"
6950 "                      const char *uuid);\n"
6951 "\n"
6952 msgstr ""
6953
6954 # type: textblock
6955 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1228
6956 msgid ""
6957 "This command searches the filesystems and returns the one which has the "
6958 "given UUID.  An error is returned if no such filesystem can be found."
6959 msgstr ""
6960
6961 # type: textblock
6962 #: ../src/guestfs-actions.pod:1643
6963 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6964 msgstr ""
6965
6966 # type: =head2
6967 #: ../src/guestfs-actions.pod:1648
6968 msgid "guestfs_fsck"
6969 msgstr ""
6970
6971 # type: verbatim
6972 #: ../src/guestfs-actions.pod:1650
6973 #, no-wrap
6974 msgid ""
6975 " int\n"
6976 " guestfs_fsck (guestfs_h *g,\n"
6977 "               const char *fstype,\n"
6978 "               const char *device);\n"
6979 "\n"
6980 msgstr ""
6981
6982 # type: textblock
6983 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1238
6984 msgid ""
6985 "This runs the filesystem checker (fsck) on C<device> which should have "
6986 "filesystem type C<fstype>."
6987 msgstr ""
6988
6989 # type: textblock
6990 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1241
6991 msgid ""
6992 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6993 "codes from C<fsck>."
6994 msgstr ""
6995
6996 # type: textblock
6997 #: ../src/guestfs-actions.pod:1667 ../fish/guestfish-actions.pod:1250
6998 msgid "Multiple status codes can be summed together."
6999 msgstr ""
7000
7001 # type: textblock
7002 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1254
7003 msgid ""
7004 "A non-zero return code can mean \"success\", for example if errors have been "
7005 "corrected on the filesystem."
7006 msgstr ""
7007
7008 # type: textblock
7009 #: ../src/guestfs-actions.pod:1676 ../fish/guestfish-actions.pod:1259
7010 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7011 msgstr ""
7012
7013 # type: textblock
7014 #: ../src/guestfs-actions.pod:1681 ../fish/guestfish-actions.pod:1264
7015 msgid ""
7016 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7017 msgstr ""
7018
7019 # type: =head2
7020 #: ../src/guestfs-actions.pod:1685
7021 msgid "guestfs_get_append"
7022 msgstr ""
7023
7024 # type: verbatim
7025 #: ../src/guestfs-actions.pod:1687
7026 #, no-wrap
7027 msgid ""
7028 " const char *\n"
7029 " guestfs_get_append (guestfs_h *g);\n"
7030 "\n"
7031 msgstr ""
7032
7033 # type: textblock
7034 #: ../src/guestfs-actions.pod:1690 ../fish/guestfish-actions.pod:1270
7035 msgid ""
7036 "Return the additional kernel options which are added to the guest kernel "
7037 "command line."
7038 msgstr ""
7039
7040 # type: textblock
7041 #: ../src/guestfs-actions.pod:1693 ../fish/guestfish-actions.pod:1273
7042 msgid "If C<NULL> then no options are added."
7043 msgstr ""
7044
7045 # type: textblock
7046 #: ../src/guestfs-actions.pod:1695
7047 msgid ""
7048 "This function returns a string which may be NULL.  There is no way to return "
7049 "an error from this function.  The string is owned by the guest handle and "
7050 "must I<not> be freed."
7051 msgstr ""
7052
7053 # type: =head2
7054 #: ../src/guestfs-actions.pod:1699
7055 msgid "guestfs_get_autosync"
7056 msgstr ""
7057
7058 # type: verbatim
7059 #: ../src/guestfs-actions.pod:1701
7060 #, no-wrap
7061 msgid ""
7062 " int\n"
7063 " guestfs_get_autosync (guestfs_h *g);\n"
7064 "\n"
7065 msgstr ""
7066
7067 # type: textblock
7068 #: ../src/guestfs-actions.pod:1704 ../fish/guestfish-actions.pod:1279
7069 msgid "Get the autosync flag."
7070 msgstr ""
7071
7072 # type: =head2
7073 #: ../src/guestfs-actions.pod:1708
7074 msgid "guestfs_get_direct"
7075 msgstr ""
7076
7077 # type: verbatim
7078 #: ../src/guestfs-actions.pod:1710
7079 #, no-wrap
7080 msgid ""
7081 " int\n"
7082 " guestfs_get_direct (guestfs_h *g);\n"
7083 "\n"
7084 msgstr ""
7085
7086 # type: textblock
7087 #: ../src/guestfs-actions.pod:1713 ../fish/guestfish-actions.pod:1285
7088 msgid "Return the direct appliance mode flag."
7089 msgstr ""
7090
7091 # type: =head2
7092 #: ../src/guestfs-actions.pod:1717
7093 msgid "guestfs_get_e2label"
7094 msgstr ""
7095
7096 # type: verbatim
7097 #: ../src/guestfs-actions.pod:1719
7098 #, no-wrap
7099 msgid ""
7100 " char *\n"
7101 " guestfs_get_e2label (guestfs_h *g,\n"
7102 "                      const char *device);\n"
7103 "\n"
7104 msgstr ""
7105
7106 # type: textblock
7107 #: ../src/guestfs-actions.pod:1723 ../fish/guestfish-actions.pod:1291
7108 msgid ""
7109 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7110 msgstr ""
7111
7112 # type: textblock
7113 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1294
7114 msgid ""
7115 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7116 msgstr ""
7117
7118 # type: =head2
7119 #: ../src/guestfs-actions.pod:1736
7120 msgid "guestfs_get_e2uuid"
7121 msgstr ""
7122
7123 # type: verbatim
7124 #: ../src/guestfs-actions.pod:1738
7125 #, no-wrap
7126 msgid ""
7127 " char *\n"
7128 " guestfs_get_e2uuid (guestfs_h *g,\n"
7129 "                     const char *device);\n"
7130 "\n"
7131 msgstr ""
7132
7133 # type: textblock
7134 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1305
7135 msgid ""
7136 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7137 msgstr ""
7138
7139 # type: textblock
7140 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1308
7141 msgid ""
7142 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7143 msgstr ""
7144
7145 # type: =head2
7146 #: ../src/guestfs-actions.pod:1755
7147 msgid "guestfs_get_memsize"
7148 msgstr ""
7149
7150 # type: verbatim
7151 #: ../src/guestfs-actions.pod:1757
7152 #, no-wrap
7153 msgid ""
7154 " int\n"
7155 " guestfs_get_memsize (guestfs_h *g);\n"
7156 "\n"
7157 msgstr ""
7158
7159 # type: textblock
7160 #: ../src/guestfs-actions.pod:1760 ../fish/guestfish-actions.pod:1319
7161 msgid ""
7162 "This gets the memory size in megabytes allocated to the qemu subprocess."
7163 msgstr ""
7164
7165 # type: textblock
7166 #: ../src/guestfs-actions.pod:1763
7167 msgid ""
7168 "If C<guestfs_set_memsize> was not called on this handle, and if "
7169 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7170 "value for memsize."
7171 msgstr ""
7172
7173 # type: textblock
7174 #: ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1836
7175 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:4856
7176 #: ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377
7177 #: ../fish/guestfish-actions.pod:3484 ../fish/guestfish-actions.pod:3571
7178 msgid ""
7179 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7180 msgstr ""
7181
7182 # type: =head2
7183 #: ../src/guestfs-actions.pod:1772
7184 msgid "guestfs_get_network"
7185 msgstr ""
7186
7187 # type: verbatim
7188 #: ../src/guestfs-actions.pod:1774
7189 #, no-wrap
7190 msgid ""
7191 " int\n"
7192 " guestfs_get_network (guestfs_h *g);\n"
7193 "\n"
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1333
7198 msgid "This returns the enable network flag."
7199 msgstr ""
7200
7201 # type: =head2
7202 #: ../src/guestfs-actions.pod:1781
7203 msgid "guestfs_get_path"
7204 msgstr ""
7205
7206 # type: verbatim
7207 #: ../src/guestfs-actions.pod:1783
7208 #, no-wrap
7209 msgid ""
7210 " const char *\n"
7211 " guestfs_get_path (guestfs_h *g);\n"
7212 "\n"
7213 msgstr ""
7214
7215 # type: textblock
7216 #: ../src/guestfs-actions.pod:1786 ../fish/guestfish-actions.pod:1339
7217 msgid "Return the current search path."
7218 msgstr ""
7219
7220 # type: textblock
7221 #: ../src/guestfs-actions.pod:1788 ../fish/guestfish-actions.pod:1341
7222 msgid ""
7223 "This is always non-NULL.  If it wasn't set already, then this will return "
7224 "the default path."
7225 msgstr ""
7226
7227 # type: textblock
7228 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816
7229 msgid ""
7230 "This function returns a string, or NULL on error.  The string is owned by "
7231 "the guest handle and must I<not> be freed."
7232 msgstr ""
7233
7234 # type: =head2
7235 #: ../src/guestfs-actions.pod:1794
7236 msgid "guestfs_get_pid"
7237 msgstr ""
7238
7239 # type: verbatim
7240 #: ../src/guestfs-actions.pod:1796
7241 #, no-wrap
7242 msgid ""
7243 " int\n"
7244 " guestfs_get_pid (guestfs_h *g);\n"
7245 "\n"
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:1799 ../fish/guestfish-actions.pod:1350
7250 msgid ""
7251 "Return the process ID of the qemu subprocess.  If there is no qemu "
7252 "subprocess, then this will return an error."
7253 msgstr ""
7254
7255 # type: textblock
7256 #: ../src/guestfs-actions.pod:1802 ../fish/guestfish-actions.pod:1353
7257 msgid "This is an internal call used for debugging and testing."
7258 msgstr ""
7259
7260 # type: =head2
7261 #: ../src/guestfs-actions.pod:1806
7262 msgid "guestfs_get_qemu"
7263 msgstr ""
7264
7265 # type: verbatim
7266 #: ../src/guestfs-actions.pod:1808
7267 #, no-wrap
7268 msgid ""
7269 " const char *\n"
7270 " guestfs_get_qemu (guestfs_h *g);\n"
7271 "\n"
7272 msgstr ""
7273
7274 # type: textblock
7275 #: ../src/guestfs-actions.pod:1811 ../fish/guestfish-actions.pod:1359
7276 msgid "Return the current qemu binary."
7277 msgstr ""
7278
7279 # type: textblock
7280 #: ../src/guestfs-actions.pod:1813 ../fish/guestfish-actions.pod:1361
7281 msgid ""
7282 "This is always non-NULL.  If it wasn't set already, then this will return "
7283 "the default qemu binary name."
7284 msgstr ""
7285
7286 # type: =head2
7287 #: ../src/guestfs-actions.pod:1819
7288 msgid "guestfs_get_recovery_proc"
7289 msgstr ""
7290
7291 # type: verbatim
7292 #: ../src/guestfs-actions.pod:1821
7293 #, no-wrap
7294 msgid ""
7295 " int\n"
7296 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7297 "\n"
7298 msgstr ""
7299
7300 # type: textblock
7301 #: ../src/guestfs-actions.pod:1824 ../fish/guestfish-actions.pod:1368
7302 msgid "Return the recovery process enabled flag."
7303 msgstr ""
7304
7305 # type: =head2
7306 #: ../src/guestfs-actions.pod:1828
7307 msgid "guestfs_get_selinux"
7308 msgstr ""
7309
7310 # type: verbatim
7311 #: ../src/guestfs-actions.pod:1830
7312 #, no-wrap
7313 msgid ""
7314 " int\n"
7315 " guestfs_get_selinux (guestfs_h *g);\n"
7316 "\n"
7317 msgstr ""
7318
7319 # type: textblock
7320 #: ../src/guestfs-actions.pod:1833
7321 msgid ""
7322 "This returns the current setting of the selinux flag which is passed to the "
7323 "appliance at boot time.  See C<guestfs_set_selinux>."
7324 msgstr ""
7325
7326 # type: =head2
7327 #: ../src/guestfs-actions.pod:1841
7328 msgid "guestfs_get_state"
7329 msgstr ""
7330
7331 # type: verbatim
7332 #: ../src/guestfs-actions.pod:1843
7333 #, no-wrap
7334 msgid ""
7335 " int\n"
7336 " guestfs_get_state (guestfs_h *g);\n"
7337 "\n"
7338 msgstr ""
7339
7340 # type: textblock
7341 #: ../src/guestfs-actions.pod:1846 ../fish/guestfish-actions.pod:1384
7342 msgid ""
7343 "This returns the current state as an opaque integer.  This is only useful "
7344 "for printing debug and internal error messages."
7345 msgstr ""
7346
7347 # type: textblock
7348 #: ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:2542
7349 #: ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2620
7350 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1387
7351 #: ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1935
7352 #: ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:1989
7353 msgid "For more information on states, see L<guestfs(3)>."
7354 msgstr ""
7355
7356 # type: =head2
7357 #: ../src/guestfs-actions.pod:1853
7358 msgid "guestfs_get_trace"
7359 msgstr ""
7360
7361 # type: verbatim
7362 #: ../src/guestfs-actions.pod:1855
7363 #, no-wrap
7364 msgid ""
7365 " int\n"
7366 " guestfs_get_trace (guestfs_h *g);\n"
7367 "\n"
7368 msgstr ""
7369
7370 # type: textblock
7371 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1393
7372 msgid "Return the command trace flag."
7373 msgstr ""
7374
7375 # type: =head2
7376 #: ../src/guestfs-actions.pod:1862
7377 msgid "guestfs_get_umask"
7378 msgstr ""
7379
7380 # type: verbatim
7381 #: ../src/guestfs-actions.pod:1864
7382 #, no-wrap
7383 msgid ""
7384 " int\n"
7385 " guestfs_get_umask (guestfs_h *g);\n"
7386 "\n"
7387 msgstr ""
7388
7389 # type: textblock
7390 #: ../src/guestfs-actions.pod:1867
7391 msgid ""
7392 "Return the current umask.  By default the umask is C<022> unless it has been "
7393 "set by calling C<guestfs_umask>."
7394 msgstr ""
7395
7396 # type: =head2
7397 #: ../src/guestfs-actions.pod:1872
7398 msgid "guestfs_get_verbose"
7399 msgstr ""
7400
7401 # type: verbatim
7402 #: ../src/guestfs-actions.pod:1874
7403 #, no-wrap
7404 msgid ""
7405 " int\n"
7406 " guestfs_get_verbose (guestfs_h *g);\n"
7407 "\n"
7408 msgstr ""
7409
7410 # type: textblock
7411 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1406
7412 msgid "This returns the verbose messages flag."
7413 msgstr ""
7414
7415 # type: =head2
7416 #: ../src/guestfs-actions.pod:1881
7417 msgid "guestfs_getcon"
7418 msgstr ""
7419
7420 # type: verbatim
7421 #: ../src/guestfs-actions.pod:1883
7422 #, no-wrap
7423 msgid ""
7424 " char *\n"
7425 " guestfs_getcon (guestfs_h *g);\n"
7426 "\n"
7427 msgstr ""
7428
7429 # type: textblock
7430 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1412
7431 msgid "This gets the SELinux security context of the daemon."
7432 msgstr ""
7433
7434 # type: textblock
7435 #: ../src/guestfs-actions.pod:1888
7436 msgid ""
7437 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7438 msgstr ""
7439
7440 # type: =head2
7441 #: ../src/guestfs-actions.pod:1894
7442 msgid "guestfs_getxattrs"
7443 msgstr ""
7444
7445 # type: verbatim
7446 #: ../src/guestfs-actions.pod:1896
7447 #, no-wrap
7448 msgid ""
7449 " struct guestfs_xattr_list *\n"
7450 " guestfs_getxattrs (guestfs_h *g,\n"
7451 "                    const char *path);\n"
7452 "\n"
7453 msgstr ""
7454
7455 # type: textblock
7456 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1421
7457 msgid ""
7458 "This call lists the extended attributes of the file or directory C<path>."
7459 msgstr ""
7460
7461 # type: textblock
7462 #: ../src/guestfs-actions.pod:1903 ../fish/guestfish-actions.pod:1424
7463 msgid ""
7464 "At the system call level, this is a combination of the L<listxattr(2)> and "
7465 "L<getxattr(2)> calls."
7466 msgstr ""
7467
7468 # type: textblock
7469 #: ../src/guestfs-actions.pod:1906
7470 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7471 msgstr ""
7472
7473 # type: textblock
7474 #: ../src/guestfs-actions.pod:1908 ../src/guestfs-actions.pod:2723
7475 #: ../src/guestfs-actions.pod:3311
7476 msgid ""
7477 "This function returns a C<struct guestfs_xattr_list *> (see E<lt>guestfs-"
7478 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
7479 "C<guestfs_free_xattr_list> after use>."
7480 msgstr ""
7481
7482 # type: =head2
7483 #: ../src/guestfs-actions.pod:1913
7484 msgid "guestfs_glob_expand"
7485 msgstr ""
7486
7487 # type: verbatim
7488 #: ../src/guestfs-actions.pod:1915
7489 #, no-wrap
7490 msgid ""
7491 " char **\n"
7492 " guestfs_glob_expand (guestfs_h *g,\n"
7493 "                      const char *pattern);\n"
7494 "\n"
7495 msgstr ""
7496
7497 # type: textblock
7498 #: ../src/guestfs-actions.pod:1919 ../fish/guestfish-actions.pod:1433
7499 msgid ""
7500 "This command searches for all the pathnames matching C<pattern> according to "
7501 "the wildcard expansion rules used by the shell."
7502 msgstr ""
7503
7504 # type: textblock
7505 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1437
7506 msgid ""
7507 "If no paths match, then this returns an empty list (note: not an error)."
7508 msgstr ""
7509
7510 # type: textblock
7511 #: ../src/guestfs-actions.pod:1926 ../fish/guestfish-actions.pod:1440
7512 msgid ""
7513 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7514 "GLOB_BRACE>.  See that manual page for more details."
7515 msgstr ""
7516
7517 # type: =head2
7518 #: ../src/guestfs-actions.pod:1934
7519 msgid "guestfs_grep"
7520 msgstr ""
7521
7522 # type: verbatim
7523 #: ../src/guestfs-actions.pod:1936
7524 #, no-wrap
7525 msgid ""
7526 " char **\n"
7527 " guestfs_grep (guestfs_h *g,\n"
7528 "               const char *regex,\n"
7529 "               const char *path);\n"
7530 "\n"
7531 msgstr ""
7532
7533 # type: textblock
7534 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1448
7535 msgid "This calls the external C<grep> program and returns the matching lines."
7536 msgstr ""
7537
7538 # type: =head2
7539 #: ../src/guestfs-actions.pod:1951
7540 msgid "guestfs_grepi"
7541 msgstr ""
7542
7543 # type: verbatim
7544 #: ../src/guestfs-actions.pod:1953
7545 #, no-wrap
7546 msgid ""
7547 " char **\n"
7548 " guestfs_grepi (guestfs_h *g,\n"
7549 "                const char *regex,\n"
7550 "                const char *path);\n"
7551 "\n"
7552 msgstr ""
7553
7554 # type: textblock
7555 #: ../src/guestfs-actions.pod:1958 ../fish/guestfish-actions.pod:1458
7556 msgid ""
7557 "This calls the external C<grep -i> program and returns the matching lines."
7558 msgstr ""
7559
7560 # type: =head2
7561 #: ../src/guestfs-actions.pod:1968
7562 msgid "guestfs_grub_install"
7563 msgstr ""
7564
7565 # type: verbatim
7566 #: ../src/guestfs-actions.pod:1970
7567 #, no-wrap
7568 msgid ""
7569 " int\n"
7570 " guestfs_grub_install (guestfs_h *g,\n"
7571 "                       const char *root,\n"
7572 "                       const char *device);\n"
7573 "\n"
7574 msgstr ""
7575
7576 # type: textblock
7577 #: ../src/guestfs-actions.pod:1975 ../fish/guestfish-actions.pod:1468
7578 msgid ""
7579 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7580 "the root directory being C<root>."
7581 msgstr ""
7582
7583 # type: textblock
7584 #: ../src/guestfs-actions.pod:1978 ../fish/guestfish-actions.pod:1471
7585 msgid ""
7586 "Note: If grub-install reports the error \"No suitable drive was found in the "
7587 "generated device map.\" it may be that you need to create a C</boot/grub/"
7588 "device.map> file first that contains the mapping between grub device names "
7589 "and Linux device names.  It is usually sufficient to create a file "
7590 "containing:"
7591 msgstr ""
7592
7593 # type: verbatim
7594 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1478
7595 #, no-wrap
7596 msgid ""
7597 " (hd0) /dev/vda\n"
7598 "\n"
7599 msgstr ""
7600
7601 # type: textblock
7602 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1480
7603 msgid "replacing C</dev/vda> with the name of the installation device."
7604 msgstr ""
7605
7606 # type: =head2
7607 #: ../src/guestfs-actions.pod:1991
7608 msgid "guestfs_head"
7609 msgstr ""
7610
7611 # type: verbatim
7612 #: ../src/guestfs-actions.pod:1993
7613 #, no-wrap
7614 msgid ""
7615 " char **\n"
7616 " guestfs_head (guestfs_h *g,\n"
7617 "               const char *path);\n"
7618 "\n"
7619 msgstr ""
7620
7621 # type: textblock
7622 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1486
7623 msgid ""
7624 "This command returns up to the first 10 lines of a file as a list of strings."
7625 msgstr ""
7626
7627 # type: =head2
7628 #: ../src/guestfs-actions.pod:2007
7629 msgid "guestfs_head_n"
7630 msgstr ""
7631
7632 # type: verbatim
7633 #: ../src/guestfs-actions.pod:2009
7634 #, no-wrap
7635 msgid ""
7636 " char **\n"
7637 " guestfs_head_n (guestfs_h *g,\n"
7638 "                 int nrlines,\n"
7639 "                 const char *path);\n"
7640 "\n"
7641 msgstr ""
7642
7643 # type: textblock
7644 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1496
7645 msgid ""
7646 "If the parameter C<nrlines> is a positive number, this returns the first "
7647 "C<nrlines> lines of the file C<path>."
7648 msgstr ""
7649
7650 # type: textblock
7651 #: ../src/guestfs-actions.pod:2017 ../fish/guestfish-actions.pod:1499
7652 msgid ""
7653 "If the parameter C<nrlines> is a negative number, this returns lines from "
7654 "the file C<path>, excluding the last C<nrlines> lines."
7655 msgstr ""
7656
7657 # type: textblock
7658 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5340
7659 #: ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3917
7660 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7661 msgstr ""
7662
7663 # type: =head2
7664 #: ../src/guestfs-actions.pod:2029
7665 msgid "guestfs_hexdump"
7666 msgstr ""
7667
7668 # type: verbatim
7669 #: ../src/guestfs-actions.pod:2031
7670 #, no-wrap
7671 msgid ""
7672 " char *\n"
7673 " guestfs_hexdump (guestfs_h *g,\n"
7674 "                  const char *path);\n"
7675 "\n"
7676 msgstr ""
7677
7678 # type: textblock
7679 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1511
7680 msgid ""
7681 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7682 "readable, canonical hex dump of the file."
7683 msgstr ""
7684
7685 # type: =head2
7686 #: ../src/guestfs-actions.pod:2044
7687 msgid "guestfs_initrd_cat"
7688 msgstr ""
7689
7690 # type: verbatim
7691 #: ../src/guestfs-actions.pod:2046
7692 #, no-wrap
7693 msgid ""
7694 " char *\n"
7695 " guestfs_initrd_cat (guestfs_h *g,\n"
7696 "                     const char *initrdpath,\n"
7697 "                     const char *filename,\n"
7698 "                     size_t *size_r);\n"
7699 "\n"
7700 msgstr ""
7701
7702 # type: textblock
7703 #: ../src/guestfs-actions.pod:2052 ../fish/guestfish-actions.pod:1521
7704 msgid ""
7705 "This command unpacks the file C<filename> from the initrd file called "
7706 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7707 "character."
7708 msgstr ""
7709
7710 # type: textblock
7711 #: ../src/guestfs-actions.pod:2056 ../fish/guestfish-actions.pod:1525
7712 msgid ""
7713 "For example, in guestfish you could use the following command to examine the "
7714 "boot script (usually called C</init>)  contained in a Linux initrd or "
7715 "initramfs image:"
7716 msgstr ""
7717
7718 # type: verbatim
7719 #: ../src/guestfs-actions.pod:2060 ../fish/guestfish-actions.pod:1529
7720 #, no-wrap
7721 msgid ""
7722 " initrd-cat /boot/initrd-<version>.img init\n"
7723 "\n"
7724 msgstr ""
7725
7726 # type: textblock
7727 #: ../src/guestfs-actions.pod:2062
7728 msgid "See also C<guestfs_initrd_list>."
7729 msgstr ""
7730
7731 # type: textblock
7732 #: ../src/guestfs-actions.pod:2064 ../src/guestfs-actions.pod:4187
7733 #: ../src/guestfs-actions.pod:4211 ../src/guestfs-actions.pod:4373
7734 msgid ""
7735 "This function returns a buffer, or NULL on error.  The size of the returned "
7736 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7737 "after use>."
7738 msgstr ""
7739
7740 # type: =head2
7741 #: ../src/guestfs-actions.pod:2071
7742 msgid "guestfs_initrd_list"
7743 msgstr ""
7744
7745 # type: verbatim
7746 #: ../src/guestfs-actions.pod:2073
7747 #, no-wrap
7748 msgid ""
7749 " char **\n"
7750 " guestfs_initrd_list (guestfs_h *g,\n"
7751 "                      const char *path);\n"
7752 "\n"
7753 msgstr ""
7754
7755 # type: textblock
7756 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1540
7757 msgid "This command lists out files contained in an initrd."
7758 msgstr ""
7759
7760 # type: textblock
7761 #: ../src/guestfs-actions.pod:2079 ../fish/guestfish-actions.pod:1542
7762 msgid ""
7763 "The files are listed without any initial C</> character.  The files are "
7764 "listed in the order they appear (not necessarily alphabetical).  Directory "
7765 "names are listed as separate items."
7766 msgstr ""
7767
7768 # type: textblock
7769 #: ../src/guestfs-actions.pod:2083 ../fish/guestfish-actions.pod:1546
7770 msgid ""
7771 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7772 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7773 "files)."
7774 msgstr ""
7775
7776 # type: =head2
7777 #: ../src/guestfs-actions.pod:2091
7778 msgid "guestfs_inotify_add_watch"
7779 msgstr ""
7780
7781 # type: verbatim
7782 #: ../src/guestfs-actions.pod:2093
7783 #, no-wrap
7784 msgid ""
7785 " int64_t\n"
7786 " guestfs_inotify_add_watch (guestfs_h *g,\n"
7787 "                            const char *path,\n"
7788 "                            int mask);\n"
7789 "\n"
7790 msgstr ""
7791
7792 # type: textblock
7793 #: ../src/guestfs-actions.pod:2098 ../fish/guestfish-actions.pod:1554
7794 msgid "Watch C<path> for the events listed in C<mask>."
7795 msgstr ""
7796
7797 # type: textblock
7798 #: ../src/guestfs-actions.pod:2100 ../fish/guestfish-actions.pod:1556
7799 msgid ""
7800 "Note that if C<path> is a directory then events within that directory are "
7801 "watched, but this does I<not> happen recursively (in subdirectories)."
7802 msgstr ""
7803
7804 # type: textblock
7805 #: ../src/guestfs-actions.pod:2104 ../fish/guestfish-actions.pod:1560
7806 msgid ""
7807 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7808 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7809 msgstr ""
7810
7811 # type: =head2
7812 #: ../src/guestfs-actions.pod:2110
7813 msgid "guestfs_inotify_close"
7814 msgstr ""
7815
7816 # type: verbatim
7817 #: ../src/guestfs-actions.pod:2112
7818 #, no-wrap
7819 msgid ""
7820 " int\n"
7821 " guestfs_inotify_close (guestfs_h *g);\n"
7822 "\n"
7823 msgstr ""
7824
7825 # type: textblock
7826 #: ../src/guestfs-actions.pod:2115 ../fish/guestfish-actions.pod:1568
7827 msgid ""
7828 "This closes the inotify handle which was previously opened by inotify_init.  "
7829 "It removes all watches, throws away any pending events, and deallocates all "
7830 "resources."
7831 msgstr ""
7832
7833 # type: =head2
7834 #: ../src/guestfs-actions.pod:2121
7835 msgid "guestfs_inotify_files"
7836 msgstr ""
7837
7838 # type: verbatim
7839 #: ../src/guestfs-actions.pod:2123
7840 #, no-wrap
7841 msgid ""
7842 " char **\n"
7843 " guestfs_inotify_files (guestfs_h *g);\n"
7844 "\n"
7845 msgstr ""
7846
7847 # type: textblock
7848 #: ../src/guestfs-actions.pod:2126
7849 msgid ""
7850 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7851 "returns a list of pathnames of objects that were touched.  The returned "
7852 "pathnames are sorted and deduplicated."
7853 msgstr ""
7854
7855 # type: =head2
7856 #: ../src/guestfs-actions.pod:2134
7857 msgid "guestfs_inotify_init"
7858 msgstr ""
7859
7860 # type: verbatim
7861 #: ../src/guestfs-actions.pod:2136
7862 #, no-wrap
7863 msgid ""
7864 " int\n"
7865 " guestfs_inotify_init (guestfs_h *g,\n"
7866 "                       int maxevents);\n"
7867 "\n"
7868 msgstr ""
7869
7870 # type: textblock
7871 #: ../src/guestfs-actions.pod:2140 ../fish/guestfish-actions.pod:1584
7872 msgid ""
7873 "This command creates a new inotify handle.  The inotify subsystem can be "
7874 "used to notify events which happen to objects in the guest filesystem."
7875 msgstr ""
7876
7877 # type: textblock
7878 #: ../src/guestfs-actions.pod:2144
7879 msgid ""
7880 "C<maxevents> is the maximum number of events which will be queued up between "
7881 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7882 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7883 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7884 "throws away events, but records the fact that it threw them away by setting "
7885 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7886 "C<guestfs_inotify_read>)."
7887 msgstr ""
7888
7889 # type: textblock
7890 #: ../src/guestfs-actions.pod:2154
7891 msgid ""
7892 "Before any events are generated, you have to add some watches to the "
7893 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7894 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7895 msgstr ""
7896
7897 # type: textblock
7898 #: ../src/guestfs-actions.pod:2160
7899 msgid ""
7900 "Queued up events should be read periodically by calling "
7901 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7902 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7903 "often enough then you risk the internal queue overflowing."
7904 msgstr ""
7905
7906 # type: textblock
7907 #: ../src/guestfs-actions.pod:2167
7908 msgid ""
7909 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7910 "This also removes any watches automatically."
7911 msgstr ""
7912
7913 # type: textblock
7914 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1615
7915 msgid ""
7916 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7917 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7918 "that there is one global inotify handle per libguestfs instance."
7919 msgstr ""
7920
7921 # type: =head2
7922 #: ../src/guestfs-actions.pod:2178
7923 msgid "guestfs_inotify_read"
7924 msgstr ""
7925
7926 # type: verbatim
7927 #: ../src/guestfs-actions.pod:2180
7928 #, no-wrap
7929 msgid ""
7930 " struct guestfs_inotify_event_list *\n"
7931 " guestfs_inotify_read (guestfs_h *g);\n"
7932 "\n"
7933 msgstr ""
7934
7935 # type: textblock
7936 #: ../src/guestfs-actions.pod:2183 ../fish/guestfish-actions.pod:1624
7937 msgid ""
7938 "Return the complete queue of events that have happened since the previous "
7939 "read call."
7940 msgstr ""
7941
7942 # type: textblock
7943 #: ../src/guestfs-actions.pod:2186 ../fish/guestfish-actions.pod:1627
7944 msgid "If no events have happened, this returns an empty list."
7945 msgstr ""
7946
7947 # type: textblock
7948 #: ../src/guestfs-actions.pod:2188 ../fish/guestfish-actions.pod:1629
7949 msgid ""
7950 "I<Note>: In order to make sure that all events have been read, you must call "
7951 "this function repeatedly until it returns an empty list.  The reason is that "
7952 "the call will read events up to the maximum appliance-to-host message size "
7953 "and leave remaining events in the queue."
7954 msgstr ""
7955
7956 # type: textblock
7957 #: ../src/guestfs-actions.pod:2194
7958 msgid ""
7959 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7960 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7961 "must call C<guestfs_free_inotify_event_list> after use>."
7962 msgstr ""
7963
7964 # type: =head2
7965 #: ../src/guestfs-actions.pod:2199
7966 msgid "guestfs_inotify_rm_watch"
7967 msgstr ""
7968
7969 # type: verbatim
7970 #: ../src/guestfs-actions.pod:2201
7971 #, no-wrap
7972 msgid ""
7973 " int\n"
7974 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
7975 "                           int wd);\n"
7976 "\n"
7977 msgstr ""
7978
7979 # type: textblock
7980 #: ../src/guestfs-actions.pod:2205
7981 msgid ""
7982 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
7983 msgstr ""
7984
7985 # type: =head2
7986 #: ../src/guestfs-actions.pod:2210
7987 msgid "guestfs_inspect_get_arch"
7988 msgstr ""
7989
7990 # type: verbatim
7991 #: ../src/guestfs-actions.pod:2212
7992 #, no-wrap
7993 msgid ""
7994 " char *\n"
7995 " guestfs_inspect_get_arch (guestfs_h *g,\n"
7996 "                           const char *root);\n"
7997 "\n"
7998 msgstr ""
7999
8000 # type: textblock
8001 #: ../src/guestfs-actions.pod:2216 ../src/guestfs-actions.pod:2237
8002 #: ../src/guestfs-actions.pod:2308 ../src/guestfs-actions.pod:2332
8003 #: ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2376
8004 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:2429
8005 #: ../src/guestfs-actions.pod:2465
8006 msgid ""
8007 "This function should only be called with a root device string as returned by "
8008 "C<guestfs_inspect_os>."
8009 msgstr ""
8010
8011 # type: textblock
8012 #: ../src/guestfs-actions.pod:2219
8013 msgid ""
8014 "This returns the architecture of the inspected operating system.  The "
8015 "possible return values are listed under C<guestfs_file_architecture>."
8016 msgstr ""
8017
8018 # type: textblock
8019 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1653
8020 msgid ""
8021 "If the architecture could not be determined, then the string C<unknown> is "
8022 "returned."
8023 msgstr ""
8024
8025 # type: textblock
8026 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2297
8027 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2418
8028 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2475
8029 #: ../src/guestfs-actions.pod:2513 ../fish/guestfish-actions.pod:1656
8030 #: ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:1761
8031 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1847
8032 #: ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:1897
8033 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8034 msgstr ""
8035
8036 # type: =head2
8037 #: ../src/guestfs-actions.pod:2231
8038 msgid "guestfs_inspect_get_distro"
8039 msgstr ""
8040
8041 # type: verbatim
8042 #: ../src/guestfs-actions.pod:2233
8043 #, no-wrap
8044 msgid ""
8045 " char *\n"
8046 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8047 "                             const char *root);\n"
8048 "\n"
8049 msgstr ""
8050
8051 # type: textblock
8052 #: ../src/guestfs-actions.pod:2240 ../fish/guestfish-actions.pod:1665
8053 msgid ""
8054 "This returns the distro (distribution) of the inspected operating system."
8055 msgstr ""
8056
8057 # type: textblock
8058 #: ../src/guestfs-actions.pod:2243 ../fish/guestfish-actions.pod:1668
8059 msgid "Currently defined distros are:"
8060 msgstr ""
8061
8062 # type: =item
8063 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1672
8064 msgid "\"archlinux\""
8065 msgstr ""
8066
8067 # type: textblock
8068 #: ../src/guestfs-actions.pod:2249 ../fish/guestfish-actions.pod:1674
8069 msgid "Arch Linux."
8070 msgstr ""
8071
8072 # type: =item
8073 #: ../src/guestfs-actions.pod:2251 ../fish/guestfish-actions.pod:1676
8074 msgid "\"debian\""
8075 msgstr ""
8076
8077 # type: textblock
8078 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1678
8079 msgid "Debian or a Debian-derived distro such as Ubuntu."
8080 msgstr ""
8081
8082 # type: =item
8083 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1680
8084 msgid "\"fedora\""
8085 msgstr ""
8086
8087 # type: textblock
8088 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1682
8089 msgid "Fedora."
8090 msgstr ""
8091
8092 # type: =item
8093 #: ../src/guestfs-actions.pod:2259 ../fish/guestfish-actions.pod:1684
8094 msgid "\"gentoo\""
8095 msgstr ""
8096
8097 # type: textblock
8098 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1686
8099 msgid "Gentoo."
8100 msgstr ""
8101
8102 # type: =item
8103 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1688
8104 msgid "\"meego\""
8105 msgstr ""
8106
8107 # type: textblock
8108 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1690
8109 msgid "MeeGo."
8110 msgstr ""
8111
8112 # type: =item
8113 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1692
8114 msgid "\"pardus\""
8115 msgstr ""
8116
8117 # type: textblock
8118 #: ../src/guestfs-actions.pod:2269 ../fish/guestfish-actions.pod:1694
8119 msgid "Pardus."
8120 msgstr ""
8121
8122 # type: =item
8123 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1696
8124 msgid "\"redhat-based\""
8125 msgstr ""
8126
8127 # type: textblock
8128 #: ../src/guestfs-actions.pod:2273 ../fish/guestfish-actions.pod:1698
8129 msgid "Some Red Hat-derived distro."
8130 msgstr ""
8131
8132 # type: =item
8133 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1700
8134 msgid "\"rhel\""
8135 msgstr ""
8136
8137 # type: textblock
8138 #: ../src/guestfs-actions.pod:2277 ../fish/guestfish-actions.pod:1702
8139 msgid "Red Hat Enterprise Linux and some derivatives."
8140 msgstr ""
8141
8142 # type: =item
8143 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2441
8144 #: ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1834
8145 msgid "\"windows\""
8146 msgstr ""
8147
8148 # type: textblock
8149 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1706
8150 msgid ""
8151 "Windows does not have distributions.  This string is returned if the OS type "
8152 "is Windows."
8153 msgstr ""
8154
8155 # type: =item
8156 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1709
8157 msgid "\"ubuntu\""
8158 msgstr ""
8159
8160 # type: textblock
8161 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1711
8162 msgid "Ubuntu."
8163 msgstr ""
8164
8165 # type: =item
8166 #: ../src/guestfs-actions.pod:2288 ../src/guestfs-actions.pod:2445
8167 #: ../fish/guestfish-actions.pod:1713 ../fish/guestfish-actions.pod:1838
8168 msgid "\"unknown\""
8169 msgstr ""
8170
8171 # type: textblock
8172 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1715
8173 msgid "The distro could not be determined."
8174 msgstr ""
8175
8176 # type: textblock
8177 #: ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2451
8178 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1844
8179 msgid ""
8180 "Future versions of libguestfs may return other strings here.  The caller "
8181 "should be prepared to handle any string."
8182 msgstr ""
8183
8184 # type: =head2
8185 #: ../src/guestfs-actions.pod:2302
8186 msgid "guestfs_inspect_get_filesystems"
8187 msgstr ""
8188
8189 # type: verbatim
8190 #: ../src/guestfs-actions.pod:2304
8191 #, no-wrap
8192 msgid ""
8193 " char **\n"
8194 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8195 "                                  const char *root);\n"
8196 "\n"
8197 msgstr ""
8198
8199 # type: textblock
8200 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1731
8201 msgid ""
8202 "This returns a list of all the filesystems that we think are associated with "
8203 "this operating system.  This includes the root filesystem, other ordinary "
8204 "filesystems, and non-mounted devices like swap partitions."
8205 msgstr ""
8206
8207 # type: textblock
8208 #: ../src/guestfs-actions.pod:2316 ../fish/guestfish-actions.pod:1736
8209 msgid ""
8210 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8211 "to be shared between operating systems."
8212 msgstr ""
8213
8214 # type: textblock
8215 #: ../src/guestfs-actions.pod:2319
8216 msgid ""
8217 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8218 "C<guestfs_inspect_get_mountpoints>."
8219 msgstr ""
8220
8221 # type: =head2
8222 #: ../src/guestfs-actions.pod:2326
8223 msgid "guestfs_inspect_get_major_version"
8224 msgstr ""
8225
8226 # type: verbatim
8227 #: ../src/guestfs-actions.pod:2328
8228 #, no-wrap
8229 msgid ""
8230 " int\n"
8231 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8232 "                                    const char *root);\n"
8233 "\n"
8234 msgstr ""
8235
8236 # type: textblock
8237 #: ../src/guestfs-actions.pod:2335 ../fish/guestfish-actions.pod:1749
8238 msgid ""
8239 "This returns the major version number of the inspected operating system."
8240 msgstr ""
8241
8242 # type: textblock
8243 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1752
8244 msgid ""
8245 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8246 "popular public names used by the operating system.  Notably the operating "
8247 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8248 "1).  You can find out the real versions corresponding to releases of Windows "
8249 "by consulting Wikipedia or MSDN."
8250 msgstr ""
8251
8252 # type: textblock
8253 #: ../src/guestfs-actions.pod:2345 ../src/guestfs-actions.pod:2363
8254 #: ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1773
8255 msgid "If the version could not be determined, then C<0> is returned."
8256 msgstr ""
8257
8258 # type: =head2
8259 #: ../src/guestfs-actions.pod:2351
8260 msgid "guestfs_inspect_get_minor_version"
8261 msgstr ""
8262
8263 # type: verbatim
8264 #: ../src/guestfs-actions.pod:2353
8265 #, no-wrap
8266 msgid ""
8267 " int\n"
8268 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8269 "                                    const char *root);\n"
8270 "\n"
8271 msgstr ""
8272
8273 # type: textblock
8274 #: ../src/guestfs-actions.pod:2360 ../fish/guestfish-actions.pod:1770
8275 msgid ""
8276 "This returns the minor version number of the inspected operating system."
8277 msgstr ""
8278
8279 # type: textblock
8280 #: ../src/guestfs-actions.pod:2365
8281 msgid ""
8282 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8283 "C<guestfs_inspect_get_major_version>."
8284 msgstr ""
8285
8286 # type: =head2
8287 #: ../src/guestfs-actions.pod:2370
8288 msgid "guestfs_inspect_get_mountpoints"
8289 msgstr ""
8290
8291 # type: verbatim
8292 #: ../src/guestfs-actions.pod:2372
8293 #, no-wrap
8294 msgid ""
8295 " char **\n"
8296 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8297 "                                  const char *root);\n"
8298 "\n"
8299 msgstr ""
8300
8301 # type: textblock
8302 #: ../src/guestfs-actions.pod:2379 ../fish/guestfish-actions.pod:1785
8303 msgid ""
8304 "This returns a hash of where we think the filesystems associated with this "
8305 "operating system should be mounted.  Callers should note that this is at "
8306 "best an educated guess made by reading configuration files such as C</etc/"
8307 "fstab>."
8308 msgstr ""
8309
8310 # type: textblock
8311 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1790
8312 msgid ""
8313 "Each element in the returned hashtable has a key which is the path of the "
8314 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8315 "mounted there (eg. C</dev/sda1>)."
8316 msgstr ""
8317
8318 # type: textblock
8319 #: ../src/guestfs-actions.pod:2389 ../fish/guestfish-actions.pod:1795
8320 msgid ""
8321 "Non-mounted devices such as swap devices are I<not> returned in this list."
8322 msgstr ""
8323
8324 # type: textblock
8325 #: ../src/guestfs-actions.pod:2392
8326 msgid ""
8327 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8328 "C<guestfs_inspect_get_filesystems>."
8329 msgstr ""
8330
8331 # type: textblock
8332 #: ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2777
8333 #: ../src/guestfs-actions.pod:3790 ../src/guestfs-actions.pod:5465
8334 msgid ""
8335 "This function returns a NULL-terminated array of strings, or NULL if there "
8336 "was an error.  The array of strings will always have length C<2n+1>, where "
8337 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8338 "caller must free the strings and the array after use>."
8339 msgstr ""
8340
8341 # type: =head2
8342 #: ../src/guestfs-actions.pod:2401
8343 msgid "guestfs_inspect_get_product_name"
8344 msgstr ""
8345
8346 # type: verbatim
8347 #: ../src/guestfs-actions.pod:2403
8348 #, no-wrap
8349 msgid ""
8350 " char *\n"
8351 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8352 "                                   const char *root);\n"
8353 "\n"
8354 msgstr ""
8355
8356 # type: textblock
8357 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1808
8358 msgid ""
8359 "This returns the product name of the inspected operating system.  The "
8360 "product name is generally some freeform string which can be displayed to the "
8361 "user, but should not be parsed by programs."
8362 msgstr ""
8363
8364 # type: textblock
8365 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1813
8366 msgid ""
8367 "If the product name could not be determined, then the string C<unknown> is "
8368 "returned."
8369 msgstr ""
8370
8371 # type: =head2
8372 #: ../src/guestfs-actions.pod:2423
8373 msgid "guestfs_inspect_get_type"
8374 msgstr ""
8375
8376 # type: verbatim
8377 #: ../src/guestfs-actions.pod:2425
8378 #, no-wrap
8379 msgid ""
8380 " char *\n"
8381 " guestfs_inspect_get_type (guestfs_h *g,\n"
8382 "                           const char *root);\n"
8383 "\n"
8384 msgstr ""
8385
8386 # type: textblock
8387 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1825
8388 msgid ""
8389 "This returns the type of the inspected operating system.  Currently defined "
8390 "types are:"
8391 msgstr ""
8392
8393 # type: =item
8394 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1830
8395 msgid "\"linux\""
8396 msgstr ""
8397
8398 # type: textblock
8399 #: ../src/guestfs-actions.pod:2439 ../fish/guestfish-actions.pod:1832
8400 msgid "Any Linux-based operating system."
8401 msgstr ""
8402
8403 # type: textblock
8404 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1836
8405 msgid "Any Microsoft Windows operating system."
8406 msgstr ""
8407
8408 # type: textblock
8409 #: ../src/guestfs-actions.pod:2447 ../fish/guestfish-actions.pod:1840
8410 msgid "The operating system type could not be determined."
8411 msgstr ""
8412
8413 # type: =head2
8414 #: ../src/guestfs-actions.pod:2459
8415 msgid "guestfs_inspect_get_windows_systemroot"
8416 msgstr ""
8417
8418 # type: verbatim
8419 #: ../src/guestfs-actions.pod:2461
8420 #, no-wrap
8421 msgid ""
8422 " char *\n"
8423 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8424 "                                         const char *root);\n"
8425 "\n"
8426 msgstr ""
8427
8428 # type: textblock
8429 #: ../src/guestfs-actions.pod:2468 ../fish/guestfish-actions.pod:1856
8430 msgid ""
8431 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8432 "is a directory path such as C</WINDOWS>."
8433 msgstr ""
8434
8435 # type: textblock
8436 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1859
8437 msgid ""
8438 "This call assumes that the guest is Windows and that the systemroot could be "
8439 "determined by inspection.  If this is not the case then an error is returned."
8440 msgstr ""
8441
8442 # type: =head2
8443 #: ../src/guestfs-actions.pod:2480
8444 msgid "guestfs_inspect_os"
8445 msgstr ""
8446
8447 # type: verbatim
8448 #: ../src/guestfs-actions.pod:2482
8449 #, no-wrap
8450 msgid ""
8451 " char **\n"
8452 " guestfs_inspect_os (guestfs_h *g);\n"
8453 "\n"
8454 msgstr ""
8455
8456 # type: textblock
8457 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1869
8458 msgid ""
8459 "This function uses other libguestfs functions and certain heuristics to "
8460 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8461 "for operating systems."
8462 msgstr ""
8463
8464 # type: textblock
8465 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1873
8466 msgid "The list returned is empty if no operating systems were found."
8467 msgstr ""
8468
8469 # type: textblock
8470 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1875
8471 msgid ""
8472 "If one operating system was found, then this returns a list with a single "
8473 "element, which is the name of the root filesystem of this operating system.  "
8474 "It is also possible for this function to return a list containing more than "
8475 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8476 "element being the root filesystem of one of the operating systems."
8477 msgstr ""
8478
8479 # type: textblock
8480 #: ../src/guestfs-actions.pod:2498
8481 msgid ""
8482 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8483 "functions in order to query further information about each operating system, "
8484 "such as the name and version."
8485 msgstr ""
8486
8487 # type: textblock
8488 #: ../src/guestfs-actions.pod:2503
8489 msgid ""
8490 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8491 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8492 "the contents.  This should be called with no disks currently mounted.  The "
8493 "function may also use Augeas, so any existing Augeas handle will be closed."
8494 msgstr ""
8495
8496 # type: textblock
8497 #: ../src/guestfs-actions.pod:2509 ../fish/guestfish-actions.pod:1893
8498 msgid ""
8499 "This function cannot decrypt encrypted disks.  The caller must do that first "
8500 "(supplying the necessary keys) if the disk is encrypted."
8501 msgstr ""
8502
8503 # type: textblock
8504 #: ../src/guestfs-actions.pod:2515 ../src/guestfs-actions.pod:2737
8505 #: ../src/guestfs-actions.pod:2795
8506 msgid "See also C<guestfs_list_filesystems>."
8507 msgstr ""
8508
8509 # type: =head2
8510 #: ../src/guestfs-actions.pod:2521
8511 msgid "guestfs_is_blockdev"
8512 msgstr ""
8513
8514 # type: verbatim
8515 #: ../src/guestfs-actions.pod:2523
8516 #, no-wrap
8517 msgid ""
8518 " int\n"
8519 " guestfs_is_blockdev (guestfs_h *g,\n"
8520 "                      const char *path);\n"
8521 "\n"
8522 msgstr ""
8523
8524 # type: textblock
8525 #: ../src/guestfs-actions.pod:2527 ../fish/guestfish-actions.pod:1905
8526 msgid ""
8527 "This returns C<true> if and only if there is a block device with the given "
8528 "C<path> name."
8529 msgstr ""
8530
8531 # type: textblock
8532 #: ../src/guestfs-actions.pod:2530 ../src/guestfs-actions.pod:2555
8533 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2594
8534 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2656
8535 #: ../src/guestfs-actions.pod:2669
8536 msgid "See also C<guestfs_stat>."
8537 msgstr ""
8538
8539 # type: =head2
8540 #: ../src/guestfs-actions.pod:2534
8541 msgid "guestfs_is_busy"
8542 msgstr ""
8543
8544 # type: verbatim
8545 #: ../src/guestfs-actions.pod:2536
8546 #, no-wrap
8547 msgid ""
8548 " int\n"
8549 " guestfs_is_busy (guestfs_h *g);\n"
8550 "\n"
8551 msgstr ""
8552
8553 # type: textblock
8554 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1914
8555 msgid ""
8556 "This returns true iff this handle is busy processing a command (in the "
8557 "C<BUSY> state)."
8558 msgstr ""
8559
8560 # type: =head2
8561 #: ../src/guestfs-actions.pod:2546
8562 msgid "guestfs_is_chardev"
8563 msgstr ""
8564
8565 # type: verbatim
8566 #: ../src/guestfs-actions.pod:2548
8567 #, no-wrap
8568 msgid ""
8569 " int\n"
8570 " guestfs_is_chardev (guestfs_h *g,\n"
8571 "                     const char *path);\n"
8572 "\n"
8573 msgstr ""
8574
8575 # type: textblock
8576 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1923
8577 msgid ""
8578 "This returns C<true> if and only if there is a character device with the "
8579 "given C<path> name."
8580 msgstr ""
8581
8582 # type: =head2
8583 #: ../src/guestfs-actions.pod:2559
8584 msgid "guestfs_is_config"
8585 msgstr ""
8586
8587 # type: verbatim
8588 #: ../src/guestfs-actions.pod:2561
8589 #, no-wrap
8590 msgid ""
8591 " int\n"
8592 " guestfs_is_config (guestfs_h *g);\n"
8593 "\n"
8594 msgstr ""
8595
8596 # type: textblock
8597 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1932
8598 msgid ""
8599 "This returns true iff this handle is being configured (in the C<CONFIG> "
8600 "state)."
8601 msgstr ""
8602
8603 # type: =head2
8604 #: ../src/guestfs-actions.pod:2571
8605 msgid "guestfs_is_dir"
8606 msgstr ""
8607
8608 # type: verbatim
8609 #: ../src/guestfs-actions.pod:2573
8610 #, no-wrap
8611 msgid ""
8612 " int\n"
8613 " guestfs_is_dir (guestfs_h *g,\n"
8614 "                 const char *path);\n"
8615 "\n"
8616 msgstr ""
8617
8618 # type: textblock
8619 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1941
8620 msgid ""
8621 "This returns C<true> if and only if there is a directory with the given "
8622 "C<path> name.  Note that it returns false for other objects like files."
8623 msgstr ""
8624
8625 # type: =head2
8626 #: ../src/guestfs-actions.pod:2585
8627 msgid "guestfs_is_fifo"
8628 msgstr ""
8629
8630 # type: verbatim
8631 #: ../src/guestfs-actions.pod:2587
8632 #, no-wrap
8633 msgid ""
8634 " int\n"
8635 " guestfs_is_fifo (guestfs_h *g,\n"
8636 "                  const char *path);\n"
8637 "\n"
8638 msgstr ""
8639
8640 # type: textblock
8641 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1951
8642 msgid ""
8643 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8644 "given C<path> name."
8645 msgstr ""
8646
8647 # type: =head2
8648 #: ../src/guestfs-actions.pod:2598
8649 msgid "guestfs_is_file"
8650 msgstr ""
8651
8652 # type: verbatim
8653 #: ../src/guestfs-actions.pod:2600
8654 #, no-wrap
8655 msgid ""
8656 " int\n"
8657 " guestfs_is_file (guestfs_h *g,\n"
8658 "                  const char *path);\n"
8659 "\n"
8660 msgstr ""
8661
8662 # type: textblock
8663 #: ../src/guestfs-actions.pod:2604 ../fish/guestfish-actions.pod:1960
8664 msgid ""
8665 "This returns C<true> if and only if there is a regular file with the given "
8666 "C<path> name.  Note that it returns false for other objects like directories."
8667 msgstr ""
8668
8669 # type: =head2
8670 #: ../src/guestfs-actions.pod:2612
8671 msgid "guestfs_is_launching"
8672 msgstr ""
8673
8674 # type: verbatim
8675 #: ../src/guestfs-actions.pod:2614
8676 #, no-wrap
8677 msgid ""
8678 " int\n"
8679 " guestfs_is_launching (guestfs_h *g);\n"
8680 "\n"
8681 msgstr ""
8682
8683 # type: textblock
8684 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:1970
8685 msgid ""
8686 "This returns true iff this handle is launching the subprocess (in the "
8687 "C<LAUNCHING> state)."
8688 msgstr ""
8689
8690 # type: =head2
8691 #: ../src/guestfs-actions.pod:2624
8692 msgid "guestfs_is_lv"
8693 msgstr ""
8694
8695 # type: verbatim
8696 #: ../src/guestfs-actions.pod:2626
8697 #, no-wrap
8698 msgid ""
8699 " int\n"
8700 " guestfs_is_lv (guestfs_h *g,\n"
8701 "                const char *device);\n"
8702 "\n"
8703 msgstr ""
8704
8705 # type: textblock
8706 #: ../src/guestfs-actions.pod:2630 ../fish/guestfish-actions.pod:1979
8707 msgid ""
8708 "This command tests whether C<device> is a logical volume, and returns true "
8709 "iff this is the case."
8710 msgstr ""
8711
8712 # type: =head2
8713 #: ../src/guestfs-actions.pod:2635
8714 msgid "guestfs_is_ready"
8715 msgstr ""
8716
8717 # type: verbatim
8718 #: ../src/guestfs-actions.pod:2637
8719 #, no-wrap
8720 msgid ""
8721 " int\n"
8722 " guestfs_is_ready (guestfs_h *g);\n"
8723 "\n"
8724 msgstr ""
8725
8726 # type: textblock
8727 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:1986
8728 msgid ""
8729 "This returns true iff this handle is ready to accept commands (in the "
8730 "C<READY> state)."
8731 msgstr ""
8732
8733 # type: =head2
8734 #: ../src/guestfs-actions.pod:2647
8735 msgid "guestfs_is_socket"
8736 msgstr ""
8737
8738 # type: verbatim
8739 #: ../src/guestfs-actions.pod:2649
8740 #, no-wrap
8741 msgid ""
8742 " int\n"
8743 " guestfs_is_socket (guestfs_h *g,\n"
8744 "                    const char *path);\n"
8745 "\n"
8746 msgstr ""
8747
8748 # type: textblock
8749 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1995
8750 msgid ""
8751 "This returns C<true> if and only if there is a Unix domain socket with the "
8752 "given C<path> name."
8753 msgstr ""
8754
8755 # type: =head2
8756 #: ../src/guestfs-actions.pod:2660
8757 msgid "guestfs_is_symlink"
8758 msgstr ""
8759
8760 # type: verbatim
8761 #: ../src/guestfs-actions.pod:2662
8762 #, no-wrap
8763 msgid ""
8764 " int\n"
8765 " guestfs_is_symlink (guestfs_h *g,\n"
8766 "                     const char *path);\n"
8767 "\n"
8768 msgstr ""
8769
8770 # type: textblock
8771 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:2004
8772 msgid ""
8773 "This returns C<true> if and only if there is a symbolic link with the given "
8774 "C<path> name."
8775 msgstr ""
8776
8777 # type: =head2
8778 #: ../src/guestfs-actions.pod:2673
8779 msgid "guestfs_kill_subprocess"
8780 msgstr ""
8781
8782 # type: verbatim
8783 #: ../src/guestfs-actions.pod:2675
8784 #, no-wrap
8785 msgid ""
8786 " int\n"
8787 " guestfs_kill_subprocess (guestfs_h *g);\n"
8788 "\n"
8789 msgstr ""
8790
8791 # type: textblock
8792 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:2013
8793 msgid "This kills the qemu subprocess.  You should never need to call this."
8794 msgstr ""
8795
8796 # type: =head2
8797 #: ../src/guestfs-actions.pod:2682
8798 msgid "guestfs_launch"
8799 msgstr ""
8800
8801 # type: verbatim
8802 #: ../src/guestfs-actions.pod:2684
8803 #, no-wrap
8804 msgid ""
8805 " int\n"
8806 " guestfs_launch (guestfs_h *g);\n"
8807 "\n"
8808 msgstr ""
8809
8810 # type: textblock
8811 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:2021
8812 msgid ""
8813 "Internally libguestfs is implemented by running a virtual machine using "
8814 "L<qemu(1)>."
8815 msgstr ""
8816
8817 # type: textblock
8818 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:2024
8819 msgid ""
8820 "You should call this after configuring the handle (eg. adding drives) but "
8821 "before performing any actions."
8822 msgstr ""
8823
8824 # type: =head2
8825 #: ../src/guestfs-actions.pod:2695
8826 msgid "guestfs_lchown"
8827 msgstr ""
8828
8829 # type: verbatim
8830 #: ../src/guestfs-actions.pod:2697
8831 #, no-wrap
8832 msgid ""
8833 " int\n"
8834 " guestfs_lchown (guestfs_h *g,\n"
8835 "                 int owner,\n"
8836 "                 int group,\n"
8837 "                 const char *path);\n"
8838 "\n"
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2703
8843 msgid ""
8844 "Change the file owner to C<owner> and group to C<group>.  This is like "
8845 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8846 "changed, not the target."
8847 msgstr ""
8848
8849 # type: =head2
8850 #: ../src/guestfs-actions.pod:2713
8851 msgid "guestfs_lgetxattrs"
8852 msgstr ""
8853
8854 # type: verbatim
8855 #: ../src/guestfs-actions.pod:2715
8856 #, no-wrap
8857 msgid ""
8858 " struct guestfs_xattr_list *\n"
8859 " guestfs_lgetxattrs (guestfs_h *g,\n"
8860 "                     const char *path);\n"
8861 "\n"
8862 msgstr ""
8863
8864 # type: textblock
8865 #: ../src/guestfs-actions.pod:2719
8866 msgid ""
8867 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8868 "then it returns the extended attributes of the link itself."
8869 msgstr ""
8870
8871 # type: =head2
8872 #: ../src/guestfs-actions.pod:2728
8873 msgid "guestfs_list_devices"
8874 msgstr ""
8875
8876 # type: verbatim
8877 #: ../src/guestfs-actions.pod:2730
8878 #, no-wrap
8879 msgid ""
8880 " char **\n"
8881 " guestfs_list_devices (guestfs_h *g);\n"
8882 "\n"
8883 msgstr ""
8884
8885 # type: textblock
8886 #: ../src/guestfs-actions.pod:2733 ../fish/guestfish-actions.pod:2051
8887 msgid "List all the block devices."
8888 msgstr ""
8889
8890 # type: textblock
8891 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:2053
8892 msgid "The full block device names are returned, eg. C</dev/sda>."
8893 msgstr ""
8894
8895 # type: =head2
8896 #: ../src/guestfs-actions.pod:2743
8897 msgid "guestfs_list_filesystems"
8898 msgstr ""
8899
8900 # type: verbatim
8901 #: ../src/guestfs-actions.pod:2745
8902 #, no-wrap
8903 msgid ""
8904 " char **\n"
8905 " guestfs_list_filesystems (guestfs_h *g);\n"
8906 "\n"
8907 msgstr ""
8908
8909 # type: textblock
8910 #: ../src/guestfs-actions.pod:2748 ../fish/guestfish-actions.pod:2061
8911 msgid ""
8912 "This inspection command looks for filesystems on partitions, block devices "
8913 "and logical volumes, returning a list of devices containing filesystems and "
8914 "their type."
8915 msgstr ""
8916
8917 # type: textblock
8918 #: ../src/guestfs-actions.pod:2752 ../fish/guestfish-actions.pod:2065
8919 msgid ""
8920 "The return value is a hash, where the keys are the devices containing "
8921 "filesystems, and the values are the filesystem types.  For example:"
8922 msgstr ""
8923
8924 # type: verbatim
8925 #: ../src/guestfs-actions.pod:2756 ../fish/guestfish-actions.pod:2069
8926 #, no-wrap
8927 msgid ""
8928 " \"/dev/sda1\" => \"ntfs\"\n"
8929 " \"/dev/sda2\" => \"ext2\"\n"
8930 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8931 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8932 "\n"
8933 msgstr ""
8934
8935 # type: textblock
8936 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:2074
8937 msgid ""
8938 "The value can have the special value \"unknown\", meaning the content of the "
8939 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8940 msgstr ""
8941
8942 # type: textblock
8943 #: ../src/guestfs-actions.pod:2765
8944 msgid ""
8945 "This command runs other libguestfs commands, which might include "
8946 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8947 "soon after launch and only when nothing is mounted."
8948 msgstr ""
8949
8950 # type: textblock
8951 #: ../src/guestfs-actions.pod:2769
8952 msgid ""
8953 "Not all of the filesystems returned will be mountable.  In particular, swap "
8954 "partitions are returned in the list.  Also this command does not check that "
8955 "each filesystem found is valid and mountable, and some filesystems might be "
8956 "mountable but require special options.  Filesystems may not all belong to a "
8957 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
8958 msgstr ""
8959
8960 # type: =head2
8961 #: ../src/guestfs-actions.pod:2783
8962 msgid "guestfs_list_partitions"
8963 msgstr ""
8964
8965 # type: verbatim
8966 #: ../src/guestfs-actions.pod:2785
8967 #, no-wrap
8968 msgid ""
8969 " char **\n"
8970 " guestfs_list_partitions (guestfs_h *g);\n"
8971 "\n"
8972 msgstr ""
8973
8974 # type: textblock
8975 #: ../src/guestfs-actions.pod:2788 ../fish/guestfish-actions.pod:2094
8976 msgid "List all the partitions detected on all block devices."
8977 msgstr ""
8978
8979 # type: textblock
8980 #: ../src/guestfs-actions.pod:2790 ../fish/guestfish-actions.pod:2096
8981 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8982 msgstr ""
8983
8984 # type: textblock
8985 #: ../src/guestfs-actions.pod:2792
8986 msgid ""
8987 "This does not return logical volumes.  For that you will need to call "
8988 "C<guestfs_lvs>."
8989 msgstr ""
8990
8991 # type: =head2
8992 #: ../src/guestfs-actions.pod:2801
8993 msgid "guestfs_ll"
8994 msgstr ""
8995
8996 # type: verbatim
8997 #: ../src/guestfs-actions.pod:2803
8998 #, no-wrap
8999 msgid ""
9000 " char *\n"
9001 " guestfs_ll (guestfs_h *g,\n"
9002 "             const char *directory);\n"
9003 "\n"
9004 msgstr ""
9005
9006 # type: textblock
9007 #: ../src/guestfs-actions.pod:2807 ../fish/guestfish-actions.pod:2107
9008 msgid ""
9009 "List the files in C<directory> (relative to the root directory, there is no "
9010 "cwd) in the format of 'ls -la'."
9011 msgstr ""
9012
9013 # type: textblock
9014 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:2110
9015 msgid ""
9016 "This command is mostly useful for interactive sessions.  It is I<not> "
9017 "intended that you try to parse the output string."
9018 msgstr ""
9019
9020 # type: =head2
9021 #: ../src/guestfs-actions.pod:2816
9022 msgid "guestfs_ln"
9023 msgstr ""
9024
9025 # type: verbatim
9026 #: ../src/guestfs-actions.pod:2818
9027 #, no-wrap
9028 msgid ""
9029 " int\n"
9030 " guestfs_ln (guestfs_h *g,\n"
9031 "             const char *target,\n"
9032 "             const char *linkname);\n"
9033 "\n"
9034 msgstr ""
9035
9036 # type: textblock
9037 #: ../src/guestfs-actions.pod:2823 ../fish/guestfish-actions.pod:2117
9038 msgid "This command creates a hard link using the C<ln> command."
9039 msgstr ""
9040
9041 # type: =head2
9042 #: ../src/guestfs-actions.pod:2827
9043 msgid "guestfs_ln_f"
9044 msgstr ""
9045
9046 # type: verbatim
9047 #: ../src/guestfs-actions.pod:2829
9048 #, no-wrap
9049 msgid ""
9050 " int\n"
9051 " guestfs_ln_f (guestfs_h *g,\n"
9052 "               const char *target,\n"
9053 "               const char *linkname);\n"
9054 "\n"
9055 msgstr ""
9056
9057 # type: textblock
9058 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:2123
9059 msgid ""
9060 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9061 "option removes the link (C<linkname>) if it exists already."
9062 msgstr ""
9063
9064 # type: =head2
9065 #: ../src/guestfs-actions.pod:2839
9066 msgid "guestfs_ln_s"
9067 msgstr ""
9068
9069 # type: verbatim
9070 #: ../src/guestfs-actions.pod:2841
9071 #, no-wrap
9072 msgid ""
9073 " int\n"
9074 " guestfs_ln_s (guestfs_h *g,\n"
9075 "               const char *target,\n"
9076 "               const char *linkname);\n"
9077 "\n"
9078 msgstr ""
9079
9080 # type: textblock
9081 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:2130
9082 msgid "This command creates a symbolic link using the C<ln -s> command."
9083 msgstr ""
9084
9085 # type: =head2
9086 #: ../src/guestfs-actions.pod:2850
9087 msgid "guestfs_ln_sf"
9088 msgstr ""
9089
9090 # type: verbatim
9091 #: ../src/guestfs-actions.pod:2852
9092 #, no-wrap
9093 msgid ""
9094 " int\n"
9095 " guestfs_ln_sf (guestfs_h *g,\n"
9096 "                const char *target,\n"
9097 "                const char *linkname);\n"
9098 "\n"
9099 msgstr ""
9100
9101 # type: textblock
9102 #: ../src/guestfs-actions.pod:2857 ../fish/guestfish-actions.pod:2136
9103 msgid ""
9104 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9105 "option removes the link (C<linkname>) if it exists already."
9106 msgstr ""
9107
9108 # type: =head2
9109 #: ../src/guestfs-actions.pod:2862
9110 msgid "guestfs_lremovexattr"
9111 msgstr ""
9112
9113 # type: verbatim
9114 #: ../src/guestfs-actions.pod:2864
9115 #, no-wrap
9116 msgid ""
9117 " int\n"
9118 " guestfs_lremovexattr (guestfs_h *g,\n"
9119 "                       const char *xattr,\n"
9120 "                       const char *path);\n"
9121 "\n"
9122 msgstr ""
9123
9124 # type: textblock
9125 #: ../src/guestfs-actions.pod:2869
9126 msgid ""
9127 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9128 "link, then it removes an extended attribute of the link itself."
9129 msgstr ""
9130
9131 # type: =head2
9132 #: ../src/guestfs-actions.pod:2875
9133 msgid "guestfs_ls"
9134 msgstr ""
9135
9136 # type: verbatim
9137 #: ../src/guestfs-actions.pod:2877
9138 #, no-wrap
9139 msgid ""
9140 " char **\n"
9141 " guestfs_ls (guestfs_h *g,\n"
9142 "             const char *directory);\n"
9143 "\n"
9144 msgstr ""
9145
9146 # type: textblock
9147 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:2151
9148 msgid ""
9149 "List the files in C<directory> (relative to the root directory, there is no "
9150 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9151 msgstr ""
9152
9153 # type: textblock
9154 #: ../src/guestfs-actions.pod:2885
9155 msgid ""
9156 "This command is mostly useful for interactive sessions.  Programs should "
9157 "probably use C<guestfs_readdir> instead."
9158 msgstr ""
9159
9160 # type: =head2
9161 #: ../src/guestfs-actions.pod:2892
9162 msgid "guestfs_lsetxattr"
9163 msgstr ""
9164
9165 # type: verbatim
9166 #: ../src/guestfs-actions.pod:2894
9167 #, no-wrap
9168 msgid ""
9169 " int\n"
9170 " guestfs_lsetxattr (guestfs_h *g,\n"
9171 "                    const char *xattr,\n"
9172 "                    const char *val,\n"
9173 "                    int vallen,\n"
9174 "                    const char *path);\n"
9175 "\n"
9176 msgstr ""
9177
9178 # type: textblock
9179 #: ../src/guestfs-actions.pod:2901
9180 msgid ""
9181 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9182 "then it sets an extended attribute of the link itself."
9183 msgstr ""
9184
9185 # type: =head2
9186 #: ../src/guestfs-actions.pod:2907
9187 msgid "guestfs_lstat"
9188 msgstr ""
9189
9190 # type: verbatim
9191 #: ../src/guestfs-actions.pod:2909
9192 #, no-wrap
9193 msgid ""
9194 " struct guestfs_stat *\n"
9195 " guestfs_lstat (guestfs_h *g,\n"
9196 "                const char *path);\n"
9197 "\n"
9198 msgstr ""
9199
9200 # type: textblock
9201 #: ../src/guestfs-actions.pod:2913 ../src/guestfs-actions.pod:5108
9202 #: ../fish/guestfish-actions.pod:2170 ../fish/guestfish-actions.pod:3752
9203 msgid "Returns file information for the given C<path>."
9204 msgstr ""
9205
9206 # type: textblock
9207 #: ../src/guestfs-actions.pod:2915
9208 msgid ""
9209 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9210 "link, then the link is stat-ed, not the file it refers to."
9211 msgstr ""
9212
9213 # type: textblock
9214 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2176
9215 msgid "This is the same as the C<lstat(2)> system call."
9216 msgstr ""
9217
9218 # type: textblock
9219 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:5112
9220 msgid ""
9221 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9222 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9223 msgstr ""
9224
9225 # type: =head2
9226 #: ../src/guestfs-actions.pod:2925
9227 msgid "guestfs_lstatlist"
9228 msgstr ""
9229
9230 # type: verbatim
9231 #: ../src/guestfs-actions.pod:2927
9232 #, no-wrap
9233 msgid ""
9234 " struct guestfs_stat_list *\n"
9235 " guestfs_lstatlist (guestfs_h *g,\n"
9236 "                    const char *path,\n"
9237 "                    char *const *names);\n"
9238 "\n"
9239 msgstr ""
9240
9241 # type: textblock
9242 #: ../src/guestfs-actions.pod:2932
9243 msgid ""
9244 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9245 "files, where all files are in the directory C<path>.  C<names> is the list "
9246 "of files from this directory."
9247 msgstr ""
9248
9249 # type: textblock
9250 #: ../src/guestfs-actions.pod:2936 ../fish/guestfish-actions.pod:2186
9251 msgid ""
9252 "On return you get a list of stat structs, with a one-to-one correspondence "
9253 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9254 "then the C<ino> field of that structure is set to C<-1>."
9255 msgstr ""
9256
9257 # type: textblock
9258 #: ../src/guestfs-actions.pod:2941
9259 msgid ""
9260 "This call is intended for programs that want to efficiently list a directory "
9261 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9262 "for a similarly efficient call for getting extended attributes.  Very long "
9263 "directory listings might cause the protocol message size to be exceeded, "
9264 "causing this call to fail.  The caller must split up such requests into "
9265 "smaller groups of names."
9266 msgstr ""
9267
9268 # type: textblock
9269 #: ../src/guestfs-actions.pod:2949
9270 msgid ""
9271 "This function returns a C<struct guestfs_stat_list *> (see E<lt>guestfs-"
9272 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9273 "C<guestfs_free_stat_list> after use>."
9274 msgstr ""
9275
9276 # type: =head2
9277 #: ../src/guestfs-actions.pod:2954
9278 msgid "guestfs_luks_add_key"
9279 msgstr ""
9280
9281 # type: verbatim
9282 #: ../src/guestfs-actions.pod:2956
9283 #, no-wrap
9284 msgid ""
9285 " int\n"
9286 " guestfs_luks_add_key (guestfs_h *g,\n"
9287 "                       const char *device,\n"
9288 "                       const char *key,\n"
9289 "                       const char *newkey,\n"
9290 "                       int keyslot);\n"
9291 "\n"
9292 msgstr ""
9293
9294 # type: textblock
9295 #: ../src/guestfs-actions.pod:2963 ../fish/guestfish-actions.pod:2203
9296 msgid ""
9297 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9298 "existing key, and is used to access the device.  C<newkey> is the new key to "
9299 "add.  C<keyslot> is the key slot that will be replaced."
9300 msgstr ""
9301
9302 # type: textblock
9303 #: ../src/guestfs-actions.pod:2968
9304 msgid ""
9305 "Note that if C<keyslot> already contains a key, then this command will "
9306 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9307 msgstr ""
9308
9309 # type: textblock
9310 #: ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3010
9311 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3049
9312 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3096
9313 msgid ""
9314 "This function takes a key or passphrase parameter which could contain "
9315 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9316 "information."
9317 msgstr ""
9318
9319 # type: =head2
9320 #: ../src/guestfs-actions.pod:2978
9321 msgid "guestfs_luks_close"
9322 msgstr ""
9323
9324 # type: verbatim
9325 #: ../src/guestfs-actions.pod:2980
9326 #, no-wrap
9327 msgid ""
9328 " int\n"
9329 " guestfs_luks_close (guestfs_h *g,\n"
9330 "                     const char *device);\n"
9331 "\n"
9332 msgstr ""
9333
9334 # type: textblock
9335 #: ../src/guestfs-actions.pod:2984
9336 msgid ""
9337 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9338 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9339 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9340 "underlying block device."
9341 msgstr ""
9342
9343 # type: =head2
9344 #: ../src/guestfs-actions.pod:2992
9345 msgid "guestfs_luks_format"
9346 msgstr ""
9347
9348 # type: verbatim
9349 #: ../src/guestfs-actions.pod:2994
9350 #, no-wrap
9351 msgid ""
9352 " int\n"
9353 " guestfs_luks_format (guestfs_h *g,\n"
9354 "                      const char *device,\n"
9355 "                      const char *key,\n"
9356 "                      int keyslot);\n"
9357 "\n"
9358 msgstr ""
9359
9360 # type: textblock
9361 #: ../src/guestfs-actions.pod:3000 ../fish/guestfish-actions.pod:2229
9362 msgid ""
9363 "This command erases existing data on C<device> and formats the device as a "
9364 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9365 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9366 msgstr ""
9367
9368 # type: textblock
9369 #: ../src/guestfs-actions.pod:3007 ../src/guestfs-actions.pod:3028
9370 #: ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3926
9371 #: ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:4961
9372 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:5006
9373 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:2237
9374 #: ../fish/guestfish-actions.pod:2250 ../fish/guestfish-actions.pod:2334
9375 #: ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3371
9376 #: ../fish/guestfish-actions.pod:3651 ../fish/guestfish-actions.pod:3667
9377 #: ../fish/guestfish-actions.pod:3682 ../fish/guestfish-actions.pod:4397
9378 msgid ""
9379 "B<This command is dangerous.  Without careful use you can easily destroy all "
9380 "your data>."
9381 msgstr ""
9382
9383 # type: =head2
9384 #: ../src/guestfs-actions.pod:3014
9385 msgid "guestfs_luks_format_cipher"
9386 msgstr ""
9387
9388 # type: verbatim
9389 #: ../src/guestfs-actions.pod:3016
9390 #, no-wrap
9391 msgid ""
9392 " int\n"
9393 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9394 "                             const char *device,\n"
9395 "                             const char *key,\n"
9396 "                             int keyslot,\n"
9397 "                             const char *cipher);\n"
9398 "\n"
9399 msgstr ""
9400
9401 # type: textblock
9402 #: ../src/guestfs-actions.pod:3023
9403 msgid ""
9404 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9405 "set the C<cipher> used."
9406 msgstr ""
9407
9408 # type: =head2
9409 #: ../src/guestfs-actions.pod:3035
9410 msgid "guestfs_luks_kill_slot"
9411 msgstr ""
9412
9413 # type: verbatim
9414 #: ../src/guestfs-actions.pod:3037
9415 #, no-wrap
9416 msgid ""
9417 " int\n"
9418 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9419 "                         const char *device,\n"
9420 "                         const char *key,\n"
9421 "                         int keyslot);\n"
9422 "\n"
9423 msgstr ""
9424
9425 # type: textblock
9426 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2257
9427 msgid ""
9428 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9429 "device C<device>.  C<key> must be one of the I<other> keys."
9430 msgstr ""
9431
9432 # type: =head2
9433 #: ../src/guestfs-actions.pod:3053
9434 msgid "guestfs_luks_open"
9435 msgstr ""
9436
9437 # type: verbatim
9438 #: ../src/guestfs-actions.pod:3055
9439 #, no-wrap
9440 msgid ""
9441 " int\n"
9442 " guestfs_luks_open (guestfs_h *g,\n"
9443 "                    const char *device,\n"
9444 "                    const char *key,\n"
9445 "                    const char *mapname);\n"
9446 "\n"
9447 msgstr ""
9448
9449 # type: textblock
9450 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2268
9451 msgid ""
9452 "This command opens a block device which has been encrypted according to the "
9453 "Linux Unified Key Setup (LUKS) standard."
9454 msgstr ""
9455
9456 # type: textblock
9457 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2271
9458 msgid "C<device> is the encrypted block device or partition."
9459 msgstr ""
9460
9461 # type: textblock
9462 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2273
9463 msgid ""
9464 "The caller must supply one of the keys associated with the LUKS block "
9465 "device, in the C<key> parameter."
9466 msgstr ""
9467
9468 # type: textblock
9469 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2276
9470 msgid ""
9471 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9472 "writes to this block device are decrypted from and encrypted to the "
9473 "underlying C<device> respectively."
9474 msgstr ""
9475
9476 # type: textblock
9477 #: ../src/guestfs-actions.pod:3073
9478 msgid ""
9479 "If this block device contains LVM volume groups, then calling "
9480 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9481 "visible."
9482 msgstr ""
9483
9484 # type: =head2
9485 #: ../src/guestfs-actions.pod:3083
9486 msgid "guestfs_luks_open_ro"
9487 msgstr ""
9488
9489 # type: verbatim
9490 #: ../src/guestfs-actions.pod:3085
9491 #, no-wrap
9492 msgid ""
9493 " int\n"
9494 " guestfs_luks_open_ro (guestfs_h *g,\n"
9495 "                       const char *device,\n"
9496 "                       const char *key,\n"
9497 "                       const char *mapname);\n"
9498 "\n"
9499 msgstr ""
9500
9501 # type: textblock
9502 #: ../src/guestfs-actions.pod:3091
9503 msgid ""
9504 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9505 "created."
9506 msgstr ""
9507
9508 # type: =head2
9509 #: ../src/guestfs-actions.pod:3100
9510 msgid "guestfs_lvcreate"
9511 msgstr ""
9512
9513 # type: verbatim
9514 #: ../src/guestfs-actions.pod:3102
9515 #, no-wrap
9516 msgid ""
9517 " int\n"
9518 " guestfs_lvcreate (guestfs_h *g,\n"
9519 "                   const char *logvol,\n"
9520 "                   const char *volgroup,\n"
9521 "                   int mbytes);\n"
9522 "\n"
9523 msgstr ""
9524
9525 # type: textblock
9526 #: ../src/guestfs-actions.pod:3108 ../fish/guestfish-actions.pod:2301
9527 msgid ""
9528 "This creates an LVM logical volume called C<logvol> on the volume group "
9529 "C<volgroup>, with C<size> megabytes."
9530 msgstr ""
9531
9532 # type: =head2
9533 #: ../src/guestfs-actions.pod:3113
9534 msgid "guestfs_lvm_canonical_lv_name"
9535 msgstr ""
9536
9537 # type: verbatim
9538 #: ../src/guestfs-actions.pod:3115
9539 #, no-wrap
9540 msgid ""
9541 " char *\n"
9542 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9543 "                                const char *lvname);\n"
9544 "\n"
9545 msgstr ""
9546
9547 # type: textblock
9548 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2308
9549 msgid ""
9550 "This converts alternative naming schemes for LVs that you might find to the "
9551 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
9552 "LV>."
9553 msgstr ""
9554
9555 # type: textblock
9556 #: ../src/guestfs-actions.pod:3123 ../fish/guestfish-actions.pod:2312
9557 msgid ""
9558 "This command returns an error if the C<lvname> parameter does not refer to a "
9559 "logical volume."
9560 msgstr ""
9561
9562 # type: textblock
9563 #: ../src/guestfs-actions.pod:3126
9564 msgid "See also C<guestfs_is_lv>."
9565 msgstr ""
9566
9567 # type: =head2
9568 #: ../src/guestfs-actions.pod:3131
9569 msgid "guestfs_lvm_clear_filter"
9570 msgstr ""
9571
9572 # type: verbatim
9573 #: ../src/guestfs-actions.pod:3133
9574 #, no-wrap
9575 msgid ""
9576 " int\n"
9577 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
9578 "\n"
9579 msgstr ""
9580
9581 # type: textblock
9582 #: ../src/guestfs-actions.pod:3136
9583 msgid ""
9584 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9585 "see every block device."
9586 msgstr ""
9587
9588 # type: textblock
9589 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3177
9590 #: ../fish/guestfish-actions.pod:2324 ../fish/guestfish-actions.pod:2355
9591 msgid ""
9592 "This command also clears the LVM cache and performs a volume group scan."
9593 msgstr ""
9594
9595 # type: =head2
9596 #: ../src/guestfs-actions.pod:3144
9597 msgid "guestfs_lvm_remove_all"
9598 msgstr ""
9599
9600 # type: verbatim
9601 #: ../src/guestfs-actions.pod:3146
9602 #, no-wrap
9603 msgid ""
9604 " int\n"
9605 " guestfs_lvm_remove_all (guestfs_h *g);\n"
9606 "\n"
9607 msgstr ""
9608
9609 # type: textblock
9610 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2331
9611 msgid ""
9612 "This command removes all LVM logical volumes, volume groups and physical "
9613 "volumes."
9614 msgstr ""
9615
9616 # type: =head2
9617 #: ../src/guestfs-actions.pod:3157
9618 msgid "guestfs_lvm_set_filter"
9619 msgstr ""
9620
9621 # type: verbatim
9622 #: ../src/guestfs-actions.pod:3159
9623 #, no-wrap
9624 msgid ""
9625 " int\n"
9626 " guestfs_lvm_set_filter (guestfs_h *g,\n"
9627 "                         char *const *devices);\n"
9628 "\n"
9629 msgstr ""
9630
9631 # type: textblock
9632 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2341
9633 msgid ""
9634 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9635 "block devices in the list C<devices>, and will ignore all other attached "
9636 "block devices."
9637 msgstr ""
9638
9639 # type: textblock
9640 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2345
9641 msgid ""
9642 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9643 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9644 "there are two types of duplication possible: either cloned PVs/VGs which "
9645 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9646 "same name.  In normal operation you cannot create this situation, but you "
9647 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9648 "inside the LVM metadata."
9649 msgstr ""
9650
9651 # type: textblock
9652 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2358
9653 msgid "You can filter whole block devices or individual partitions."
9654 msgstr ""
9655
9656 # type: textblock
9657 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2360
9658 msgid ""
9659 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9660 "filesystem), even if you are not filtering out that VG."
9661 msgstr ""
9662
9663 # type: =head2
9664 #: ../src/guestfs-actions.pod:3188
9665 msgid "guestfs_lvremove"
9666 msgstr ""
9667
9668 # type: verbatim
9669 #: ../src/guestfs-actions.pod:3190
9670 #, no-wrap
9671 msgid ""
9672 " int\n"
9673 " guestfs_lvremove (guestfs_h *g,\n"
9674 "                   const char *device);\n"
9675 "\n"
9676 msgstr ""
9677
9678 # type: textblock
9679 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2368
9680 msgid ""
9681 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9682 "LV, such as C</dev/VG/LV>."
9683 msgstr ""
9684
9685 # type: textblock
9686 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2371
9687 msgid ""
9688 "You can also remove all LVs in a volume group by specifying the VG name, C</"
9689 "dev/VG>."
9690 msgstr ""
9691
9692 # type: =head2
9693 #: ../src/guestfs-actions.pod:3202
9694 msgid "guestfs_lvrename"
9695 msgstr ""
9696
9697 # type: verbatim
9698 #: ../src/guestfs-actions.pod:3204
9699 #, no-wrap
9700 msgid ""
9701 " int\n"
9702 " guestfs_lvrename (guestfs_h *g,\n"
9703 "                   const char *logvol,\n"
9704 "                   const char *newlogvol);\n"
9705 "\n"
9706 msgstr ""
9707
9708 # type: textblock
9709 #: ../src/guestfs-actions.pod:3209 ../fish/guestfish-actions.pod:2378
9710 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9711 msgstr ""
9712
9713 # type: =head2
9714 #: ../src/guestfs-actions.pod:3213
9715 msgid "guestfs_lvresize"
9716 msgstr ""
9717
9718 # type: verbatim
9719 #: ../src/guestfs-actions.pod:3215
9720 #, no-wrap
9721 msgid ""
9722 " int\n"
9723 " guestfs_lvresize (guestfs_h *g,\n"
9724 "                   const char *device,\n"
9725 "                   int mbytes);\n"
9726 "\n"
9727 msgstr ""
9728
9729 # type: textblock
9730 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2384
9731 msgid ""
9732 "This resizes (expands or shrinks) an existing LVM logical volume to "
9733 "C<mbytes>.  When reducing, data in the reduced part is lost."
9734 msgstr ""
9735
9736 # type: =head2
9737 #: ../src/guestfs-actions.pod:3226
9738 msgid "guestfs_lvresize_free"
9739 msgstr ""
9740
9741 # type: verbatim
9742 #: ../src/guestfs-actions.pod:3228
9743 #, no-wrap
9744 msgid ""
9745 " int\n"
9746 " guestfs_lvresize_free (guestfs_h *g,\n"
9747 "                        const char *lv,\n"
9748 "                        int percent);\n"
9749 "\n"
9750 msgstr ""
9751
9752 # type: textblock
9753 #: ../src/guestfs-actions.pod:3233 ../fish/guestfish-actions.pod:2392
9754 msgid ""
9755 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9756 "remaining free space in the volume group.  Commonly you would call this with "
9757 "pc = 100 which expands the logical volume as much as possible, using all "
9758 "remaining free space in the volume group."
9759 msgstr ""
9760
9761 # type: =head2
9762 #: ../src/guestfs-actions.pod:3241
9763 msgid "guestfs_lvs"
9764 msgstr ""
9765
9766 # type: verbatim
9767 #: ../src/guestfs-actions.pod:3243
9768 #, no-wrap
9769 msgid ""
9770 " char **\n"
9771 " guestfs_lvs (guestfs_h *g);\n"
9772 "\n"
9773 msgstr ""
9774
9775 # type: textblock
9776 #: ../src/guestfs-actions.pod:3246 ../fish/guestfish-actions.pod:2402
9777 msgid ""
9778 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9779 "(8)> command."
9780 msgstr ""
9781
9782 # type: textblock
9783 #: ../src/guestfs-actions.pod:3249 ../fish/guestfish-actions.pod:2405
9784 msgid ""
9785 "This returns a list of the logical volume device names (eg. C</dev/"
9786 "VolGroup00/LogVol00>)."
9787 msgstr ""
9788
9789 # type: textblock
9790 #: ../src/guestfs-actions.pod:3252
9791 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9792 msgstr ""
9793
9794 # type: =head2
9795 #: ../src/guestfs-actions.pod:3258
9796 msgid "guestfs_lvs_full"
9797 msgstr ""
9798
9799 # type: verbatim
9800 #: ../src/guestfs-actions.pod:3260
9801 #, no-wrap
9802 msgid ""
9803 " struct guestfs_lvm_lv_list *\n"
9804 " guestfs_lvs_full (guestfs_h *g);\n"
9805 "\n"
9806 msgstr ""
9807
9808 # type: textblock
9809 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2414
9810 msgid ""
9811 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
9812 "(8)> command.  The \"full\" version includes all fields."
9813 msgstr ""
9814
9815 # type: textblock
9816 #: ../src/guestfs-actions.pod:3266
9817 msgid ""
9818 "This function returns a C<struct guestfs_lvm_lv_list *> (see E<lt>guestfs-"
9819 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
9820 "C<guestfs_free_lvm_lv_list> after use>."
9821 msgstr ""
9822
9823 # type: =head2
9824 #: ../src/guestfs-actions.pod:3271
9825 msgid "guestfs_lvuuid"
9826 msgstr ""
9827
9828 # type: verbatim
9829 #: ../src/guestfs-actions.pod:3273
9830 #, no-wrap
9831 msgid ""
9832 " char *\n"
9833 " guestfs_lvuuid (guestfs_h *g,\n"
9834 "                 const char *device);\n"
9835 "\n"
9836 msgstr ""
9837
9838 # type: textblock
9839 #: ../src/guestfs-actions.pod:3277 ../fish/guestfish-actions.pod:2421
9840 msgid "This command returns the UUID of the LVM LV C<device>."
9841 msgstr ""
9842
9843 # type: =head2
9844 #: ../src/guestfs-actions.pod:3282
9845 msgid "guestfs_lxattrlist"
9846 msgstr ""
9847
9848 # type: verbatim
9849 #: ../src/guestfs-actions.pod:3284
9850 #, no-wrap
9851 msgid ""
9852 " struct guestfs_xattr_list *\n"
9853 " guestfs_lxattrlist (guestfs_h *g,\n"
9854 "                     const char *path,\n"
9855 "                     char *const *names);\n"
9856 "\n"
9857 msgstr ""
9858
9859 # type: textblock
9860 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2427
9861 msgid ""
9862 "This call allows you to get the extended attributes of multiple files, where "
9863 "all files are in the directory C<path>.  C<names> is the list of files from "
9864 "this directory."
9865 msgstr ""
9866
9867 # type: textblock
9868 #: ../src/guestfs-actions.pod:3293 ../fish/guestfish-actions.pod:2431
9869 msgid ""
9870 "On return you get a flat list of xattr structs which must be interpreted "
9871 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9872 "C<attrval> in this struct is zero-length to indicate there was an error "
9873 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9874 "number (the number of following attributes for this file, which could be C<"
9875 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
9876 "for the first named file.  This repeats for the second and subsequent files."
9877 msgstr ""
9878
9879 # type: textblock
9880 #: ../src/guestfs-actions.pod:3303
9881 msgid ""
9882 "This call is intended for programs that want to efficiently list a directory "
9883 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9884 "a similarly efficient call for getting standard stats.  Very long directory "
9885 "listings might cause the protocol message size to be exceeded, causing this "
9886 "call to fail.  The caller must split up such requests into smaller groups of "
9887 "names."
9888 msgstr ""
9889
9890 # type: =head2
9891 #: ../src/guestfs-actions.pod:3316
9892 msgid "guestfs_mkdir"
9893 msgstr ""
9894
9895 # type: verbatim
9896 #: ../src/guestfs-actions.pod:3318
9897 #, no-wrap
9898 msgid ""
9899 " int\n"
9900 " guestfs_mkdir (guestfs_h *g,\n"
9901 "                const char *path);\n"
9902 "\n"
9903 msgstr ""
9904
9905 # type: textblock
9906 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2453
9907 msgid "Create a directory named C<path>."
9908 msgstr ""
9909
9910 # type: =head2
9911 #: ../src/guestfs-actions.pod:3326
9912 msgid "guestfs_mkdir_mode"
9913 msgstr ""
9914
9915 # type: verbatim
9916 #: ../src/guestfs-actions.pod:3328
9917 #, no-wrap
9918 msgid ""
9919 " int\n"
9920 " guestfs_mkdir_mode (guestfs_h *g,\n"
9921 "                     const char *path,\n"
9922 "                     int mode);\n"
9923 "\n"
9924 msgstr ""
9925
9926 # type: textblock
9927 #: ../src/guestfs-actions.pod:3333 ../fish/guestfish-actions.pod:2459
9928 msgid ""
9929 "This command creates a directory, setting the initial permissions of the "
9930 "directory to C<mode>."
9931 msgstr ""
9932
9933 # type: textblock
9934 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2462
9935 msgid ""
9936 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9937 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9938 "other ways."
9939 msgstr ""
9940
9941 # type: textblock
9942 #: ../src/guestfs-actions.pod:3340
9943 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9944 msgstr ""
9945
9946 # type: =head2
9947 #: ../src/guestfs-actions.pod:3344
9948 msgid "guestfs_mkdir_p"
9949 msgstr ""
9950
9951 # type: verbatim
9952 #: ../src/guestfs-actions.pod:3346
9953 #, no-wrap
9954 msgid ""
9955 " int\n"
9956 " guestfs_mkdir_p (guestfs_h *g,\n"
9957 "                  const char *path);\n"
9958 "\n"
9959 msgstr ""
9960
9961 # type: textblock
9962 #: ../src/guestfs-actions.pod:3350 ../fish/guestfish-actions.pod:2472
9963 msgid ""
9964 "Create a directory named C<path>, creating any parent directories as "
9965 "necessary.  This is like the C<mkdir -p> shell command."
9966 msgstr ""
9967
9968 # type: =head2
9969 #: ../src/guestfs-actions.pod:3355
9970 msgid "guestfs_mkdtemp"
9971 msgstr ""
9972
9973 # type: verbatim
9974 #: ../src/guestfs-actions.pod:3357
9975 #, no-wrap
9976 msgid ""
9977 " char *\n"
9978 " guestfs_mkdtemp (guestfs_h *g,\n"
9979 "                  const char *template);\n"
9980 "\n"
9981 msgstr ""
9982
9983 # type: textblock
9984 #: ../src/guestfs-actions.pod:3361 ../fish/guestfish-actions.pod:2479
9985 msgid ""
9986 "This command creates a temporary directory.  The C<template> parameter "
9987 "should be a full pathname for the temporary directory name with the final "
9988 "six characters being \"XXXXXX\"."
9989 msgstr ""
9990
9991 # type: textblock
9992 #: ../src/guestfs-actions.pod:3366 ../fish/guestfish-actions.pod:2484
9993 msgid ""
9994 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9995 "being suitable for Windows filesystems."
9996 msgstr ""
9997
9998 # type: textblock
9999 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2487
10000 msgid "The name of the temporary directory that was created is returned."
10001 msgstr ""
10002
10003 # type: textblock
10004 #: ../src/guestfs-actions.pod:3372 ../fish/guestfish-actions.pod:2490
10005 msgid "The temporary directory is created with mode 0700 and is owned by root."
10006 msgstr ""
10007
10008 # type: textblock
10009 #: ../src/guestfs-actions.pod:3375 ../fish/guestfish-actions.pod:2493
10010 msgid ""
10011 "The caller is responsible for deleting the temporary directory and its "
10012 "contents after use."
10013 msgstr ""
10014
10015 # type: textblock
10016 #: ../src/guestfs-actions.pod:3378 ../fish/guestfish-actions.pod:2496
10017 msgid "See also: L<mkdtemp(3)>"
10018 msgstr ""
10019
10020 # type: =head2
10021 #: ../src/guestfs-actions.pod:3383
10022 msgid "guestfs_mke2fs_J"
10023 msgstr ""
10024
10025 # type: verbatim
10026 #: ../src/guestfs-actions.pod:3385
10027 #, no-wrap
10028 msgid ""
10029 " int\n"
10030 " guestfs_mke2fs_J (guestfs_h *g,\n"
10031 "                   const char *fstype,\n"
10032 "                   int blocksize,\n"
10033 "                   const char *device,\n"
10034 "                   const char *journal);\n"
10035 "\n"
10036 msgstr ""
10037
10038 # type: textblock
10039 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2502
10040 msgid ""
10041 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10042 "C<journal>.  It is equivalent to the command:"
10043 msgstr ""
10044
10045 # type: verbatim
10046 #: ../src/guestfs-actions.pod:3396 ../fish/guestfish-actions.pod:2506
10047 #, no-wrap
10048 msgid ""
10049 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10050 "\n"
10051 msgstr ""
10052
10053 # type: textblock
10054 #: ../src/guestfs-actions.pod:3398
10055 msgid "See also C<guestfs_mke2journal>."
10056 msgstr ""
10057
10058 # type: =head2
10059 #: ../src/guestfs-actions.pod:3402
10060 msgid "guestfs_mke2fs_JL"
10061 msgstr ""
10062
10063 # type: verbatim
10064 #: ../src/guestfs-actions.pod:3404
10065 #, no-wrap
10066 msgid ""
10067 " int\n"
10068 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10069 "                    const char *fstype,\n"
10070 "                    int blocksize,\n"
10071 "                    const char *device,\n"
10072 "                    const char *label);\n"
10073 "\n"
10074 msgstr ""
10075
10076 # type: textblock
10077 #: ../src/guestfs-actions.pod:3411 ../fish/guestfish-actions.pod:2514
10078 msgid ""
10079 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10080 "the journal labeled C<label>."
10081 msgstr ""
10082
10083 # type: textblock
10084 #: ../src/guestfs-actions.pod:3414
10085 msgid "See also C<guestfs_mke2journal_L>."
10086 msgstr ""
10087
10088 # type: =head2
10089 #: ../src/guestfs-actions.pod:3418
10090 msgid "guestfs_mke2fs_JU"
10091 msgstr ""
10092
10093 # type: verbatim
10094 #: ../src/guestfs-actions.pod:3420
10095 #, no-wrap
10096 msgid ""
10097 " int\n"
10098 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10099 "                    const char *fstype,\n"
10100 "                    int blocksize,\n"
10101 "                    const char *device,\n"
10102 "                    const char *uuid);\n"
10103 "\n"
10104 msgstr ""
10105
10106 # type: textblock
10107 #: ../src/guestfs-actions.pod:3427 ../fish/guestfish-actions.pod:2523
10108 msgid ""
10109 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10110 "the journal with UUID C<uuid>."
10111 msgstr ""
10112
10113 # type: textblock
10114 #: ../src/guestfs-actions.pod:3430
10115 msgid "See also C<guestfs_mke2journal_U>."
10116 msgstr ""
10117
10118 # type: =head2
10119 #: ../src/guestfs-actions.pod:3434
10120 msgid "guestfs_mke2journal"
10121 msgstr ""
10122
10123 # type: verbatim
10124 #: ../src/guestfs-actions.pod:3436
10125 #, no-wrap
10126 msgid ""
10127 " int\n"
10128 " guestfs_mke2journal (guestfs_h *g,\n"
10129 "                      int blocksize,\n"
10130 "                      const char *device);\n"
10131 "\n"
10132 msgstr ""
10133
10134 # type: textblock
10135 #: ../src/guestfs-actions.pod:3441 ../fish/guestfish-actions.pod:2532
10136 msgid ""
10137 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10138 "command:"
10139 msgstr ""
10140
10141 # type: verbatim
10142 #: ../src/guestfs-actions.pod:3444 ../fish/guestfish-actions.pod:2535
10143 #, no-wrap
10144 msgid ""
10145 " mke2fs -O journal_dev -b blocksize device\n"
10146 "\n"
10147 msgstr ""
10148
10149 # type: =head2
10150 #: ../src/guestfs-actions.pod:3448
10151 msgid "guestfs_mke2journal_L"
10152 msgstr ""
10153
10154 # type: verbatim
10155 #: ../src/guestfs-actions.pod:3450
10156 #, no-wrap
10157 msgid ""
10158 " int\n"
10159 " guestfs_mke2journal_L (guestfs_h *g,\n"
10160 "                        int blocksize,\n"
10161 "                        const char *label,\n"
10162 "                        const char *device);\n"
10163 "\n"
10164 msgstr ""
10165
10166 # type: textblock
10167 #: ../src/guestfs-actions.pod:3456 ../fish/guestfish-actions.pod:2541
10168 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10169 msgstr ""
10170
10171 # type: =head2
10172 #: ../src/guestfs-actions.pod:3460
10173 msgid "guestfs_mke2journal_U"
10174 msgstr ""
10175
10176 # type: verbatim
10177 #: ../src/guestfs-actions.pod:3462
10178 #, no-wrap
10179 msgid ""
10180 " int\n"
10181 " guestfs_mke2journal_U (guestfs_h *g,\n"
10182 "                        int blocksize,\n"
10183 "                        const char *uuid,\n"
10184 "                        const char *device);\n"
10185 "\n"
10186 msgstr ""
10187
10188 # type: textblock
10189 #: ../src/guestfs-actions.pod:3468 ../fish/guestfish-actions.pod:2547
10190 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10191 msgstr ""
10192
10193 # type: =head2
10194 #: ../src/guestfs-actions.pod:3472
10195 msgid "guestfs_mkfifo"
10196 msgstr ""
10197
10198 # type: verbatim
10199 #: ../src/guestfs-actions.pod:3474
10200 #, no-wrap
10201 msgid ""
10202 " int\n"
10203 " guestfs_mkfifo (guestfs_h *g,\n"
10204 "                 int mode,\n"
10205 "                 const char *path);\n"
10206 "\n"
10207 msgstr ""
10208
10209 # type: textblock
10210 #: ../src/guestfs-actions.pod:3479
10211 msgid ""
10212 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10213 "is just a convenient wrapper around C<guestfs_mknod>."
10214 msgstr ""
10215
10216 # type: =head2
10217 #: ../src/guestfs-actions.pod:3487
10218 msgid "guestfs_mkfs"
10219 msgstr ""
10220
10221 # type: verbatim
10222 #: ../src/guestfs-actions.pod:3489
10223 #, no-wrap
10224 msgid ""
10225 " int\n"
10226 " guestfs_mkfs (guestfs_h *g,\n"
10227 "               const char *fstype,\n"
10228 "               const char *device);\n"
10229 "\n"
10230 msgstr ""
10231
10232 # type: textblock
10233 #: ../src/guestfs-actions.pod:3494 ../fish/guestfish-actions.pod:2563
10234 msgid ""
10235 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10236 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10237 msgstr ""
10238
10239 # type: =head2
10240 #: ../src/guestfs-actions.pod:3500
10241 msgid "guestfs_mkfs_b"
10242 msgstr ""
10243
10244 # type: verbatim
10245 #: ../src/guestfs-actions.pod:3502
10246 #, no-wrap
10247 msgid ""
10248 " int\n"
10249 " guestfs_mkfs_b (guestfs_h *g,\n"
10250 "                 const char *fstype,\n"
10251 "                 int blocksize,\n"
10252 "                 const char *device);\n"
10253 "\n"
10254 msgstr ""
10255
10256 # type: textblock
10257 #: ../src/guestfs-actions.pod:3508
10258 msgid ""
10259 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10260 "block size of the resulting filesystem.  Supported block sizes depend on the "
10261 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10262 msgstr ""
10263
10264 # type: textblock
10265 #: ../src/guestfs-actions.pod:3513 ../fish/guestfish-actions.pod:2576
10266 msgid ""
10267 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10268 "cluster size."
10269 msgstr ""
10270
10271 # type: =head2
10272 #: ../src/guestfs-actions.pod:3518
10273 msgid "guestfs_mkmountpoint"
10274 msgstr ""
10275
10276 # type: verbatim
10277 #: ../src/guestfs-actions.pod:3520
10278 #, no-wrap
10279 msgid ""
10280 " int\n"
10281 " guestfs_mkmountpoint (guestfs_h *g,\n"
10282 "                       const char *exemptpath);\n"
10283 "\n"
10284 msgstr ""
10285
10286 # type: textblock
10287 #: ../src/guestfs-actions.pod:3524
10288 msgid ""
10289 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10290 "that can be used to create extra mountpoints before mounting the first "
10291 "filesystem."
10292 msgstr ""
10293
10294 # type: textblock
10295 #: ../src/guestfs-actions.pod:3528 ../fish/guestfish-actions.pod:2587
10296 msgid ""
10297 "These calls are I<only> necessary in some very limited circumstances, mainly "
10298 "the case where you want to mount a mix of unrelated and/or read-only "
10299 "filesystems together."
10300 msgstr ""
10301
10302 # type: textblock
10303 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2591
10304 msgid ""
10305 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10306 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10307 "inside that.  You can unpack this as follows in guestfish:"
10308 msgstr ""
10309
10310 # type: verbatim
10311 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2596
10312 #, no-wrap
10313 msgid ""
10314 " add-ro Fedora-11-i686-Live.iso\n"
10315 " run\n"
10316 " mkmountpoint /cd\n"
10317 " mkmountpoint /sqsh\n"
10318 " mkmountpoint /ext3fs\n"
10319 " mount /dev/sda /cd\n"
10320 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10321 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10322 "\n"
10323 msgstr ""
10324
10325 # type: textblock
10326 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2605
10327 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10328 msgstr ""
10329
10330 # type: textblock
10331 #: ../src/guestfs-actions.pod:3548
10332 msgid ""
10333 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10334 "may get unexpected errors if you try to mix these calls.  It is safest to "
10335 "manually unmount filesystems and remove mountpoints after use."
10336 msgstr ""
10337
10338 # type: textblock
10339 #: ../src/guestfs-actions.pod:3552
10340 msgid ""
10341 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10342 "first, so for this to work for manual mountpoints, you must ensure that the "
10343 "innermost mountpoints have the longest pathnames, as in the example code "
10344 "above."
10345 msgstr ""
10346
10347 # type: textblock
10348 #: ../src/guestfs-actions.pod:3557 ../fish/guestfish-actions.pod:2616
10349 msgid ""
10350 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10351 msgstr ""
10352
10353 # type: textblock
10354 #: ../src/guestfs-actions.pod:3559
10355 msgid ""
10356 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10357 "means that C<guestfs_umount_all> is called when the handle is closed which "
10358 "can also trigger these issues."
10359 msgstr ""
10360
10361 # type: =head2
10362 #: ../src/guestfs-actions.pod:3565
10363 msgid "guestfs_mknod"
10364 msgstr ""
10365
10366 # type: verbatim
10367 #: ../src/guestfs-actions.pod:3567
10368 #, no-wrap
10369 msgid ""
10370 " int\n"
10371 " guestfs_mknod (guestfs_h *g,\n"
10372 "                int mode,\n"
10373 "                int devmajor,\n"
10374 "                int devminor,\n"
10375 "                const char *path);\n"
10376 "\n"
10377 msgstr ""
10378
10379 # type: textblock
10380 #: ../src/guestfs-actions.pod:3574 ../fish/guestfish-actions.pod:2626
10381 msgid ""
10382 "This call creates block or character special devices, or named pipes (FIFOs)."
10383 msgstr ""
10384
10385 # type: textblock
10386 #: ../src/guestfs-actions.pod:3577 ../fish/guestfish-actions.pod:2629
10387 msgid ""
10388 "The C<mode> parameter should be the mode, using the standard constants.  "
10389 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10390 "used when creating block and character special devices."
10391 msgstr ""
10392
10393 # type: textblock
10394 #: ../src/guestfs-actions.pod:3582
10395 msgid ""
10396 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10397 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10398 "regular file).  These constants are available in the standard Linux header "
10399 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10400 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10401 "the appropriate constant for you."
10402 msgstr ""
10403
10404 # type: =head2
10405 #: ../src/guestfs-actions.pod:3594
10406 msgid "guestfs_mknod_b"
10407 msgstr ""
10408
10409 # type: verbatim
10410 #: ../src/guestfs-actions.pod:3596
10411 #, no-wrap
10412 msgid ""
10413 " int\n"
10414 " guestfs_mknod_b (guestfs_h *g,\n"
10415 "                  int mode,\n"
10416 "                  int devmajor,\n"
10417 "                  int devminor,\n"
10418 "                  const char *path);\n"
10419 "\n"
10420 msgstr ""
10421
10422 # type: textblock
10423 #: ../src/guestfs-actions.pod:3603
10424 msgid ""
10425 "This call creates a block device node called C<path> with mode C<mode> and "
10426 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10427 "wrapper around C<guestfs_mknod>."
10428 msgstr ""
10429
10430 # type: =head2
10431 #: ../src/guestfs-actions.pod:3611
10432 msgid "guestfs_mknod_c"
10433 msgstr ""
10434
10435 # type: verbatim
10436 #: ../src/guestfs-actions.pod:3613
10437 #, no-wrap
10438 msgid ""
10439 " int\n"
10440 " guestfs_mknod_c (guestfs_h *g,\n"
10441 "                  int mode,\n"
10442 "                  int devmajor,\n"
10443 "                  int devminor,\n"
10444 "                  const char *path);\n"
10445 "\n"
10446 msgstr ""
10447
10448 # type: textblock
10449 #: ../src/guestfs-actions.pod:3620
10450 msgid ""
10451 "This call creates a char device node called C<path> with mode C<mode> and "
10452 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10453 "wrapper around C<guestfs_mknod>."
10454 msgstr ""
10455
10456 # type: =head2
10457 #: ../src/guestfs-actions.pod:3628
10458 msgid "guestfs_mkswap"
10459 msgstr ""
10460
10461 # type: verbatim
10462 #: ../src/guestfs-actions.pod:3630
10463 #, no-wrap
10464 msgid ""
10465 " int\n"
10466 " guestfs_mkswap (guestfs_h *g,\n"
10467 "                 const char *device);\n"
10468 "\n"
10469 msgstr ""
10470
10471 # type: textblock
10472 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2668
10473 msgid "Create a swap partition on C<device>."
10474 msgstr ""
10475
10476 # type: =head2
10477 #: ../src/guestfs-actions.pod:3638
10478 msgid "guestfs_mkswap_L"
10479 msgstr ""
10480
10481 # type: verbatim
10482 #: ../src/guestfs-actions.pod:3640
10483 #, no-wrap
10484 msgid ""
10485 " int\n"
10486 " guestfs_mkswap_L (guestfs_h *g,\n"
10487 "                   const char *label,\n"
10488 "                   const char *device);\n"
10489 "\n"
10490 msgstr ""
10491
10492 # type: textblock
10493 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2674
10494 msgid "Create a swap partition on C<device> with label C<label>."
10495 msgstr ""
10496
10497 # type: textblock
10498 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2676
10499 msgid ""
10500 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
10501 "sda>), just to a partition.  This appears to be a limitation of the kernel "
10502 "or swap tools."
10503 msgstr ""
10504
10505 # type: =head2
10506 #: ../src/guestfs-actions.pod:3653
10507 msgid "guestfs_mkswap_U"
10508 msgstr ""
10509
10510 # type: verbatim
10511 #: ../src/guestfs-actions.pod:3655
10512 #, no-wrap
10513 msgid ""
10514 " int\n"
10515 " guestfs_mkswap_U (guestfs_h *g,\n"
10516 "                   const char *uuid,\n"
10517 "                   const char *device);\n"
10518 "\n"
10519 msgstr ""
10520
10521 # type: textblock
10522 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2684
10523 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10524 msgstr ""
10525
10526 # type: =head2
10527 #: ../src/guestfs-actions.pod:3664
10528 msgid "guestfs_mkswap_file"
10529 msgstr ""
10530
10531 # type: verbatim
10532 #: ../src/guestfs-actions.pod:3666
10533 #, no-wrap
10534 msgid ""
10535 " int\n"
10536 " guestfs_mkswap_file (guestfs_h *g,\n"
10537 "                      const char *path);\n"
10538 "\n"
10539 msgstr ""
10540
10541 # type: textblock
10542 #: ../src/guestfs-actions.pod:3670 ../fish/guestfish-actions.pod:2690
10543 msgid "Create a swap file."
10544 msgstr ""
10545
10546 # type: textblock
10547 #: ../src/guestfs-actions.pod:3672
10548 msgid ""
10549 "This command just writes a swap file signature to an existing file.  To "
10550 "create the file itself, use something like C<guestfs_fallocate>."
10551 msgstr ""
10552
10553 # type: =head2
10554 #: ../src/guestfs-actions.pod:3677
10555 msgid "guestfs_modprobe"
10556 msgstr ""
10557
10558 # type: verbatim
10559 #: ../src/guestfs-actions.pod:3679
10560 #, no-wrap
10561 msgid ""
10562 " int\n"
10563 " guestfs_modprobe (guestfs_h *g,\n"
10564 "                   const char *modulename);\n"
10565 "\n"
10566 msgstr ""
10567
10568 # type: textblock
10569 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2699
10570 msgid "This loads a kernel module in the appliance."
10571 msgstr ""
10572
10573 # type: textblock
10574 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2701
10575 msgid ""
10576 "The kernel module must have been whitelisted when libguestfs was built (see "
10577 "C<appliance/kmod.whitelist.in> in the source)."
10578 msgstr ""
10579
10580 # type: =head2
10581 #: ../src/guestfs-actions.pod:3690
10582 msgid "guestfs_mount"
10583 msgstr ""
10584
10585 # type: verbatim
10586 #: ../src/guestfs-actions.pod:3692
10587 #, no-wrap
10588 msgid ""
10589 " int\n"
10590 " guestfs_mount (guestfs_h *g,\n"
10591 "                const char *device,\n"
10592 "                const char *mountpoint);\n"
10593 "\n"
10594 msgstr ""
10595
10596 # type: textblock
10597 #: ../src/guestfs-actions.pod:3697 ../fish/guestfish-actions.pod:2708
10598 msgid ""
10599 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10600 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10601 "those block devices contain partitions, they will have the usual names (eg. "
10602 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10603 msgstr ""
10604
10605 # type: textblock
10606 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2714
10607 msgid ""
10608 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10609 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10610 "mounted on directories which already exist."
10611 msgstr ""
10612
10613 # type: textblock
10614 #: ../src/guestfs-actions.pod:3708 ../fish/guestfish-actions.pod:2719
10615 msgid ""
10616 "The mounted filesystem is writable, if we have sufficient permissions on the "
10617 "underlying device."
10618 msgstr ""
10619
10620 # type: textblock
10621 #: ../src/guestfs-actions.pod:3711
10622 msgid ""
10623 "B<Important note:> When you use this call, the filesystem options C<sync> "
10624 "and C<noatime> are set implicitly.  This was originally done because we "
10625 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10626 "very large negative performance impact and negligible effect on "
10627 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10628 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10629 "(use an empty string for the first parameter if you don't want any options)."
10630 msgstr ""
10631
10632 # type: =head2
10633 #: ../src/guestfs-actions.pod:3723
10634 msgid "guestfs_mount_loop"
10635 msgstr ""
10636
10637 # type: verbatim
10638 #: ../src/guestfs-actions.pod:3725
10639 #, no-wrap
10640 msgid ""
10641 " int\n"
10642 " guestfs_mount_loop (guestfs_h *g,\n"
10643 "                     const char *file,\n"
10644 "                     const char *mountpoint);\n"
10645 "\n"
10646 msgstr ""
10647
10648 # type: textblock
10649 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2736
10650 msgid ""
10651 "This command lets you mount C<file> (a filesystem image in a file) on a "
10652 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10653 "mountpoint>."
10654 msgstr ""
10655
10656 # type: =head2
10657 #: ../src/guestfs-actions.pod:3736
10658 msgid "guestfs_mount_options"
10659 msgstr ""
10660
10661 # type: verbatim
10662 #: ../src/guestfs-actions.pod:3738
10663 #, no-wrap
10664 msgid ""
10665 " int\n"
10666 " guestfs_mount_options (guestfs_h *g,\n"
10667 "                        const char *options,\n"
10668 "                        const char *device,\n"
10669 "                        const char *mountpoint);\n"
10670 "\n"
10671 msgstr ""
10672
10673 # type: textblock
10674 #: ../src/guestfs-actions.pod:3744
10675 msgid ""
10676 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10677 "the mount options as for the L<mount(8)> I<-o> flag."
10678 msgstr ""
10679
10680 # type: textblock
10681 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2748
10682 msgid ""
10683 "If the C<options> parameter is an empty string, then no options are passed "
10684 "(all options default to whatever the filesystem uses)."
10685 msgstr ""
10686
10687 # type: =head2
10688 #: ../src/guestfs-actions.pod:3754
10689 msgid "guestfs_mount_ro"
10690 msgstr ""
10691
10692 # type: verbatim
10693 #: ../src/guestfs-actions.pod:3756
10694 #, no-wrap
10695 msgid ""
10696 " int\n"
10697 " guestfs_mount_ro (guestfs_h *g,\n"
10698 "                   const char *device,\n"
10699 "                   const char *mountpoint);\n"
10700 "\n"
10701 msgstr ""
10702
10703 # type: textblock
10704 #: ../src/guestfs-actions.pod:3761
10705 msgid ""
10706 "This is the same as the C<guestfs_mount> command, but it mounts the "
10707 "filesystem with the read-only (I<-o ro>) flag."
10708 msgstr ""
10709
10710 # type: =head2
10711 #: ../src/guestfs-actions.pod:3766
10712 msgid "guestfs_mount_vfs"
10713 msgstr ""
10714
10715 # type: verbatim
10716 #: ../src/guestfs-actions.pod:3768
10717 #, no-wrap
10718 msgid ""
10719 " int\n"
10720 " guestfs_mount_vfs (guestfs_h *g,\n"
10721 "                    const char *options,\n"
10722 "                    const char *vfstype,\n"
10723 "                    const char *device,\n"
10724 "                    const char *mountpoint);\n"
10725 "\n"
10726 msgstr ""
10727
10728 # type: textblock
10729 #: ../src/guestfs-actions.pod:3775
10730 msgid ""
10731 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10732 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
10733 "t> flags."
10734 msgstr ""
10735
10736 # type: =head2
10737 #: ../src/guestfs-actions.pod:3781
10738 msgid "guestfs_mountpoints"
10739 msgstr ""
10740
10741 # type: verbatim
10742 #: ../src/guestfs-actions.pod:3783
10743 #, no-wrap
10744 msgid ""
10745 " char **\n"
10746 " guestfs_mountpoints (guestfs_h *g);\n"
10747 "\n"
10748 msgstr ""
10749
10750 # type: textblock
10751 #: ../src/guestfs-actions.pod:3786
10752 msgid ""
10753 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10754 "devices.  This one returns a hash table (map) of device name to directory "
10755 "where the device is mounted."
10756 msgstr ""
10757
10758 # type: =head2
10759 #: ../src/guestfs-actions.pod:3796
10760 msgid "guestfs_mounts"
10761 msgstr ""
10762
10763 # type: verbatim
10764 #: ../src/guestfs-actions.pod:3798
10765 #, no-wrap
10766 msgid ""
10767 " char **\n"
10768 " guestfs_mounts (guestfs_h *g);\n"
10769 "\n"
10770 msgstr ""
10771
10772 # type: textblock
10773 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2779
10774 msgid ""
10775 "This returns the list of currently mounted filesystems.  It returns the list "
10776 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10777 msgstr ""
10778
10779 # type: textblock
10780 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2782
10781 msgid "Some internal mounts are not shown."
10782 msgstr ""
10783
10784 # type: textblock
10785 #: ../src/guestfs-actions.pod:3806
10786 msgid "See also: C<guestfs_mountpoints>"
10787 msgstr ""
10788
10789 # type: =head2
10790 #: ../src/guestfs-actions.pod:3812
10791 msgid "guestfs_mv"
10792 msgstr ""
10793
10794 # type: verbatim
10795 #: ../src/guestfs-actions.pod:3814
10796 #, no-wrap
10797 msgid ""
10798 " int\n"
10799 " guestfs_mv (guestfs_h *g,\n"
10800 "             const char *src,\n"
10801 "             const char *dest);\n"
10802 "\n"
10803 msgstr ""
10804
10805 # type: textblock
10806 #: ../src/guestfs-actions.pod:3819 ../fish/guestfish-actions.pod:2790
10807 msgid ""
10808 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10809 "destination filename or destination directory."
10810 msgstr ""
10811
10812 # type: =head2
10813 #: ../src/guestfs-actions.pod:3824
10814 msgid "guestfs_ntfs_3g_probe"
10815 msgstr ""
10816
10817 # type: verbatim
10818 #: ../src/guestfs-actions.pod:3826
10819 #, no-wrap
10820 msgid ""
10821 " int\n"
10822 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10823 "                        int rw,\n"
10824 "                        const char *device);\n"
10825 "\n"
10826 msgstr ""
10827
10828 # type: textblock
10829 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2797
10830 msgid ""
10831 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10832 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
10833 "write, and some cannot be mounted at all)."
10834 msgstr ""
10835
10836 # type: textblock
10837 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2801
10838 msgid ""
10839 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10840 "can be mounted read-write.  Set it to false if you want to test if the "
10841 "volume can be mounted read-only."
10842 msgstr ""
10843
10844 # type: textblock
10845 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2805
10846 msgid ""
10847 "The return value is an integer which C<0> if the operation would succeed, or "
10848 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10849 msgstr ""
10850
10851 # type: =head2
10852 #: ../src/guestfs-actions.pod:3845
10853 msgid "guestfs_ntfsresize"
10854 msgstr ""
10855
10856 # type: verbatim
10857 #: ../src/guestfs-actions.pod:3847
10858 #, no-wrap
10859 msgid ""
10860 " int\n"
10861 " guestfs_ntfsresize (guestfs_h *g,\n"
10862 "                     const char *device);\n"
10863 "\n"
10864 msgstr ""
10865
10866 # type: textblock
10867 #: ../src/guestfs-actions.pod:3851 ../fish/guestfish-actions.pod:2813
10868 msgid ""
10869 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10870 "size of the underlying device.  See also L<ntfsresize(8)>."
10871 msgstr ""
10872
10873 # type: =head2
10874 #: ../src/guestfs-actions.pod:3857
10875 msgid "guestfs_ntfsresize_size"
10876 msgstr ""
10877
10878 # type: verbatim
10879 #: ../src/guestfs-actions.pod:3859
10880 #, no-wrap
10881 msgid ""
10882 " int\n"
10883 " guestfs_ntfsresize_size (guestfs_h *g,\n"
10884 "                          const char *device,\n"
10885 "                          int64_t size);\n"
10886 "\n"
10887 msgstr ""
10888
10889 # type: textblock
10890 #: ../src/guestfs-actions.pod:3864
10891 msgid ""
10892 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10893 "to specify the new size (in bytes) explicitly."
10894 msgstr ""
10895
10896 # type: =head2
10897 #: ../src/guestfs-actions.pod:3869
10898 msgid "guestfs_part_add"
10899 msgstr ""
10900
10901 # type: verbatim
10902 #: ../src/guestfs-actions.pod:3871
10903 #, no-wrap
10904 msgid ""
10905 " int\n"
10906 " guestfs_part_add (guestfs_h *g,\n"
10907 "                   const char *device,\n"
10908 "                   const char *prlogex,\n"
10909 "                   int64_t startsect,\n"
10910 "                   int64_t endsect);\n"
10911 "\n"
10912 msgstr ""
10913
10914 # type: textblock
10915 #: ../src/guestfs-actions.pod:3878
10916 msgid ""
10917 "This command adds a partition to C<device>.  If there is no partition table "
10918 "on the device, call C<guestfs_part_init> first."
10919 msgstr ""
10920
10921 # type: textblock
10922 #: ../src/guestfs-actions.pod:3881 ../fish/guestfish-actions.pod:2831
10923 msgid ""
10924 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10925 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10926 "C<logical>) and C<e> (or C<extended>) partition types."
10927 msgstr ""
10928
10929 # type: textblock
10930 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2836
10931 msgid ""
10932 "C<startsect> and C<endsect> are the start and end of the partition in "
10933 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10934 "from the end of the disk (C<-1> is the last sector)."
10935 msgstr ""
10936
10937 # type: textblock
10938 #: ../src/guestfs-actions.pod:3890
10939 msgid ""
10940 "Creating a partition which covers the whole disk is not so easy.  Use "
10941 "C<guestfs_part_disk> to do that."
10942 msgstr ""
10943
10944 # type: =head2
10945 #: ../src/guestfs-actions.pod:3895
10946 msgid "guestfs_part_del"
10947 msgstr ""
10948
10949 # type: verbatim
10950 #: ../src/guestfs-actions.pod:3897
10951 #, no-wrap
10952 msgid ""
10953 " int\n"
10954 " guestfs_part_del (guestfs_h *g,\n"
10955 "                   const char *device,\n"
10956 "                   int partnum);\n"
10957 "\n"
10958 msgstr ""
10959
10960 # type: textblock
10961 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:2847
10962 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10963 msgstr ""
10964
10965 # type: textblock
10966 #: ../src/guestfs-actions.pod:3904 ../fish/guestfish-actions.pod:2849
10967 msgid ""
10968 "Note that in the case of MBR partitioning, deleting an extended partition "
10969 "also deletes any logical partitions it contains."
10970 msgstr ""
10971
10972 # type: =head2
10973 #: ../src/guestfs-actions.pod:3910
10974 msgid "guestfs_part_disk"
10975 msgstr ""
10976
10977 # type: verbatim
10978 #: ../src/guestfs-actions.pod:3912
10979 #, no-wrap
10980 msgid ""
10981 " int\n"
10982 " guestfs_part_disk (guestfs_h *g,\n"
10983 "                    const char *device,\n"
10984 "                    const char *parttype);\n"
10985 "\n"
10986 msgstr ""
10987
10988 # type: textblock
10989 #: ../src/guestfs-actions.pod:3917
10990 msgid ""
10991 "This command is simply a combination of C<guestfs_part_init> followed by "
10992 "C<guestfs_part_add> to create a single primary partition covering the whole "
10993 "disk."
10994 msgstr ""
10995
10996 # type: textblock
10997 #: ../src/guestfs-actions.pod:3921
10998 msgid ""
10999 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11000 "possible values are described in C<guestfs_part_init>."
11001 msgstr ""
11002
11003 # type: =head2
11004 #: ../src/guestfs-actions.pod:3929
11005 msgid "guestfs_part_get_bootable"
11006 msgstr ""
11007
11008 # type: verbatim
11009 #: ../src/guestfs-actions.pod:3931
11010 #, no-wrap
11011 msgid ""
11012 " int\n"
11013 " guestfs_part_get_bootable (guestfs_h *g,\n"
11014 "                            const char *device,\n"
11015 "                            int partnum);\n"
11016 "\n"
11017 msgstr ""
11018
11019 # type: textblock
11020 #: ../src/guestfs-actions.pod:3936 ../fish/guestfish-actions.pod:2871
11021 msgid ""
11022 "This command returns true if the partition C<partnum> on C<device> has the "
11023 "bootable flag set."
11024 msgstr ""
11025
11026 # type: textblock
11027 #: ../src/guestfs-actions.pod:3939
11028 msgid "See also C<guestfs_part_set_bootable>."
11029 msgstr ""
11030
11031 # type: =head2
11032 #: ../src/guestfs-actions.pod:3943
11033 msgid "guestfs_part_get_mbr_id"
11034 msgstr ""
11035
11036 # type: verbatim
11037 #: ../src/guestfs-actions.pod:3945
11038 #, no-wrap
11039 msgid ""
11040 " int\n"
11041 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11042 "                          const char *device,\n"
11043 "                          int partnum);\n"
11044 "\n"
11045 msgstr ""
11046
11047 # type: textblock
11048 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2880
11049 msgid ""
11050 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11051 "partition C<partnum>."
11052 msgstr ""
11053
11054 # type: textblock
11055 #: ../src/guestfs-actions.pod:3953 ../src/guestfs-actions.pod:4120
11056 msgid ""
11057 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11058 "undefined results for other partition table types (see "
11059 "C<guestfs_part_get_parttype>)."
11060 msgstr ""
11061
11062 # type: =head2
11063 #: ../src/guestfs-actions.pod:3959
11064 msgid "guestfs_part_get_parttype"
11065 msgstr ""
11066
11067 # type: verbatim
11068 #: ../src/guestfs-actions.pod:3961
11069 #, no-wrap
11070 msgid ""
11071 " char *\n"
11072 " guestfs_part_get_parttype (guestfs_h *g,\n"
11073 "                            const char *device);\n"
11074 "\n"
11075 msgstr ""
11076
11077 # type: textblock
11078 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2891
11079 msgid ""
11080 "This command examines the partition table on C<device> and returns the "
11081 "partition table type (format) being used."
11082 msgstr ""
11083
11084 # type: textblock
11085 #: ../src/guestfs-actions.pod:3968
11086 msgid ""
11087 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11088 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11089 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11090 msgstr ""
11091
11092 # type: =head2
11093 #: ../src/guestfs-actions.pod:3976
11094 msgid "guestfs_part_init"
11095 msgstr ""
11096
11097 # type: verbatim
11098 #: ../src/guestfs-actions.pod:3978
11099 #, no-wrap
11100 msgid ""
11101 " int\n"
11102 " guestfs_part_init (guestfs_h *g,\n"
11103 "                    const char *device,\n"
11104 "                    const char *parttype);\n"
11105 "\n"
11106 msgstr ""
11107
11108 # type: textblock
11109 #: ../src/guestfs-actions.pod:3983 ../fish/guestfish-actions.pod:2903
11110 msgid ""
11111 "This creates an empty partition table on C<device> of one of the partition "
11112 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11113 "(for large disks)."
11114 msgstr ""
11115
11116 # type: textblock
11117 #: ../src/guestfs-actions.pod:3987
11118 msgid ""
11119 "Initially there are no partitions.  Following this, you should call "
11120 "C<guestfs_part_add> for each partition required."
11121 msgstr ""
11122
11123 # type: textblock
11124 #: ../src/guestfs-actions.pod:3990 ../fish/guestfish-actions.pod:2910
11125 msgid "Possible values for C<parttype> are:"
11126 msgstr ""
11127
11128 # type: =item
11129 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2914
11130 msgid "B<efi> | B<gpt>"
11131 msgstr ""
11132
11133 # type: textblock
11134 #: ../src/guestfs-actions.pod:3996 ../fish/guestfish-actions.pod:2916
11135 msgid "Intel EFI / GPT partition table."
11136 msgstr ""
11137
11138 # type: textblock
11139 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:2918
11140 msgid ""
11141 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11142 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11143 "the C<mbr> format."
11144 msgstr ""
11145
11146 # type: =item
11147 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:2922
11148 msgid "B<mbr> | B<msdos>"
11149 msgstr ""
11150
11151 # type: textblock
11152 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:2924
11153 msgid ""
11154 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11155 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11156 "TB.  For large disks we recommend using C<gpt>."
11157 msgstr ""
11158
11159 # type: textblock
11160 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2931
11161 msgid ""
11162 "Other partition table types that may work but are not supported include:"
11163 msgstr ""
11164
11165 # type: =item
11166 #: ../src/guestfs-actions.pod:4016 ../fish/guestfish-actions.pod:2936
11167 msgid "B<aix>"
11168 msgstr ""
11169
11170 # type: textblock
11171 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2938
11172 msgid "AIX disk labels."
11173 msgstr ""
11174
11175 # type: =item
11176 #: ../src/guestfs-actions.pod:4020 ../fish/guestfish-actions.pod:2940
11177 msgid "B<amiga> | B<rdb>"
11178 msgstr ""
11179
11180 # type: textblock
11181 #: ../src/guestfs-actions.pod:4022 ../fish/guestfish-actions.pod:2942
11182 msgid "Amiga \"Rigid Disk Block\" format."
11183 msgstr ""
11184
11185 # type: =item
11186 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2944
11187 msgid "B<bsd>"
11188 msgstr ""
11189
11190 # type: textblock
11191 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:2946
11192 msgid "BSD disk labels."
11193 msgstr ""
11194
11195 # type: =item
11196 #: ../src/guestfs-actions.pod:4028 ../fish/guestfish-actions.pod:2948
11197 msgid "B<dasd>"
11198 msgstr ""
11199
11200 # type: textblock
11201 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2950
11202 msgid "DASD, used on IBM mainframes."
11203 msgstr ""
11204
11205 # type: =item
11206 #: ../src/guestfs-actions.pod:4032 ../fish/guestfish-actions.pod:2952
11207 msgid "B<dvh>"
11208 msgstr ""
11209
11210 # type: textblock
11211 #: ../src/guestfs-actions.pod:4034 ../fish/guestfish-actions.pod:2954
11212 msgid "MIPS/SGI volumes."
11213 msgstr ""
11214
11215 # type: =item
11216 #: ../src/guestfs-actions.pod:4036 ../fish/guestfish-actions.pod:2956
11217 msgid "B<mac>"
11218 msgstr ""
11219
11220 # type: textblock
11221 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:2958
11222 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11223 msgstr ""
11224
11225 # type: =item
11226 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2960
11227 msgid "B<pc98>"
11228 msgstr ""
11229
11230 # type: textblock
11231 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2962
11232 msgid "NEC PC-98 format, common in Japan apparently."
11233 msgstr ""
11234
11235 # type: =item
11236 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2964
11237 msgid "B<sun>"
11238 msgstr ""
11239
11240 # type: textblock
11241 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:2966
11242 msgid "Sun disk labels."
11243 msgstr ""
11244
11245 # type: =head2
11246 #: ../src/guestfs-actions.pod:4052
11247 msgid "guestfs_part_list"
11248 msgstr ""
11249
11250 # type: verbatim
11251 #: ../src/guestfs-actions.pod:4054
11252 #, no-wrap
11253 msgid ""
11254 " struct guestfs_partition_list *\n"
11255 " guestfs_part_list (guestfs_h *g,\n"
11256 "                    const char *device);\n"
11257 "\n"
11258 msgstr ""
11259
11260 # type: textblock
11261 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2974
11262 msgid ""
11263 "This command parses the partition table on C<device> and returns the list of "
11264 "partitions found."
11265 msgstr ""
11266
11267 # type: textblock
11268 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2977
11269 msgid "The fields in the returned structure are:"
11270 msgstr ""
11271
11272 # type: =item
11273 #: ../src/guestfs-actions.pod:4065 ../fish/guestfish-actions.pod:2981
11274 msgid "B<part_num>"
11275 msgstr ""
11276
11277 # type: textblock
11278 #: ../src/guestfs-actions.pod:4067 ../fish/guestfish-actions.pod:2983
11279 msgid "Partition number, counting from 1."
11280 msgstr ""
11281
11282 # type: =item
11283 #: ../src/guestfs-actions.pod:4069 ../fish/guestfish-actions.pod:2985
11284 msgid "B<part_start>"
11285 msgstr ""
11286
11287 # type: textblock
11288 #: ../src/guestfs-actions.pod:4071
11289 msgid ""
11290 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11291 "the device's sector size, see C<guestfs_blockdev_getss>."
11292 msgstr ""
11293
11294 # type: =item
11295 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:2990
11296 msgid "B<part_end>"
11297 msgstr ""
11298
11299 # type: textblock
11300 #: ../src/guestfs-actions.pod:4076 ../fish/guestfish-actions.pod:2992
11301 msgid "End of the partition in bytes."
11302 msgstr ""
11303
11304 # type: =item
11305 #: ../src/guestfs-actions.pod:4078 ../fish/guestfish-actions.pod:2994
11306 msgid "B<part_size>"
11307 msgstr ""
11308
11309 # type: textblock
11310 #: ../src/guestfs-actions.pod:4080 ../fish/guestfish-actions.pod:2996
11311 msgid "Size of the partition in bytes."
11312 msgstr ""
11313
11314 # type: textblock
11315 #: ../src/guestfs-actions.pod:4084
11316 msgid ""
11317 "This function returns a C<struct guestfs_partition_list *> (see E<lt>guestfs-"
11318 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11319 "C<guestfs_free_partition_list> after use>."
11320 msgstr ""
11321
11322 # type: =head2
11323 #: ../src/guestfs-actions.pod:4089
11324 msgid "guestfs_part_set_bootable"
11325 msgstr ""
11326
11327 # type: verbatim
11328 #: ../src/guestfs-actions.pod:4091
11329 #, no-wrap
11330 msgid ""
11331 " int\n"
11332 " guestfs_part_set_bootable (guestfs_h *g,\n"
11333 "                            const char *device,\n"
11334 "                            int partnum,\n"
11335 "                            int bootable);\n"
11336 "\n"
11337 msgstr ""
11338
11339 # type: textblock
11340 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:3004
11341 msgid ""
11342 "This sets the bootable flag on partition numbered C<partnum> on device "
11343 "C<device>.  Note that partitions are numbered from 1."
11344 msgstr ""
11345
11346 # type: textblock
11347 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:3007
11348 msgid ""
11349 "The bootable flag is used by some operating systems (notably Windows) to "
11350 "determine which partition to boot from.  It is by no means universally "
11351 "recognized."
11352 msgstr ""
11353
11354 # type: =head2
11355 #: ../src/guestfs-actions.pod:4106
11356 msgid "guestfs_part_set_mbr_id"
11357 msgstr ""
11358
11359 # type: verbatim
11360 #: ../src/guestfs-actions.pod:4108
11361 #, no-wrap
11362 msgid ""
11363 " int\n"
11364 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11365 "                          const char *device,\n"
11366 "                          int partnum,\n"
11367 "                          int idbyte);\n"
11368 "\n"
11369 msgstr ""
11370
11371 # type: textblock
11372 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:3015
11373 msgid ""
11374 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11375 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11376 "documentation are in fact hexadecimal numbers, but usually documented "
11377 "without any leading \"0x\" which might be confusing."
11378 msgstr ""
11379
11380 # type: =head2
11381 #: ../src/guestfs-actions.pod:4126
11382 msgid "guestfs_part_set_name"
11383 msgstr ""
11384
11385 # type: verbatim
11386 #: ../src/guestfs-actions.pod:4128
11387 #, no-wrap
11388 msgid ""
11389 " int\n"
11390 " guestfs_part_set_name (guestfs_h *g,\n"
11391 "                        const char *device,\n"
11392 "                        int partnum,\n"
11393 "                        const char *name);\n"
11394 "\n"
11395 msgstr ""
11396
11397 # type: textblock
11398 #: ../src/guestfs-actions.pod:4134 ../fish/guestfish-actions.pod:3029
11399 msgid ""
11400 "This sets the partition name on partition numbered C<partnum> on device "
11401 "C<device>.  Note that partitions are numbered from 1."
11402 msgstr ""
11403
11404 # type: textblock
11405 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:3032
11406 msgid ""
11407 "The partition name can only be set on certain types of partition table.  "
11408 "This works on C<gpt> but not on C<mbr> partitions."
11409 msgstr ""
11410
11411 # type: =head2
11412 #: ../src/guestfs-actions.pod:4142
11413 msgid "guestfs_part_to_dev"
11414 msgstr ""
11415
11416 # type: verbatim
11417 #: ../src/guestfs-actions.pod:4144
11418 #, no-wrap
11419 msgid ""
11420 " char *\n"
11421 " guestfs_part_to_dev (guestfs_h *g,\n"
11422 "                      const char *partition);\n"
11423 "\n"
11424 msgstr ""
11425
11426 # type: textblock
11427 #: ../src/guestfs-actions.pod:4148 ../fish/guestfish-actions.pod:3039
11428 msgid ""
11429 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11430 "partition number, returning the device name (eg. \"/dev/sdb\")."
11431 msgstr ""
11432
11433 # type: textblock
11434 #: ../src/guestfs-actions.pod:4152
11435 msgid ""
11436 "The named partition must exist, for example as a string returned from "
11437 "C<guestfs_list_partitions>."
11438 msgstr ""
11439
11440 # type: =head2
11441 #: ../src/guestfs-actions.pod:4158
11442 msgid "guestfs_ping_daemon"
11443 msgstr ""
11444
11445 # type: verbatim
11446 #: ../src/guestfs-actions.pod:4160
11447 #, no-wrap
11448 msgid ""
11449 " int\n"
11450 " guestfs_ping_daemon (guestfs_h *g);\n"
11451 "\n"
11452 msgstr ""
11453
11454 # type: textblock
11455 #: ../src/guestfs-actions.pod:4163 ../fish/guestfish-actions.pod:3050
11456 msgid ""
11457 "This is a test probe into the guestfs daemon running inside the qemu "
11458 "subprocess.  Calling this function checks that the daemon responds to the "
11459 "ping message, without affecting the daemon or attached block device(s) in "
11460 "any other way."
11461 msgstr ""
11462
11463 # type: =head2
11464 #: ../src/guestfs-actions.pod:4170
11465 msgid "guestfs_pread"
11466 msgstr ""
11467
11468 # type: verbatim
11469 #: ../src/guestfs-actions.pod:4172
11470 #, no-wrap
11471 msgid ""
11472 " char *\n"
11473 " guestfs_pread (guestfs_h *g,\n"
11474 "                const char *path,\n"
11475 "                int count,\n"
11476 "                int64_t offset,\n"
11477 "                size_t *size_r);\n"
11478 "\n"
11479 msgstr ""
11480
11481 # type: textblock
11482 #: ../src/guestfs-actions.pod:4179 ../fish/guestfish-actions.pod:3059
11483 msgid ""
11484 "This command lets you read part of a file.  It reads C<count> bytes of the "
11485 "file, starting at C<offset>, from file C<path>."
11486 msgstr ""
11487
11488 # type: textblock
11489 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4206
11490 #: ../fish/guestfish-actions.pod:3062 ../fish/guestfish-actions.pod:3077
11491 msgid ""
11492 "This may read fewer bytes than requested.  For further details see the "
11493 "L<pread(2)> system call."
11494 msgstr ""
11495
11496 # type: textblock
11497 #: ../src/guestfs-actions.pod:4185
11498 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11499 msgstr ""
11500
11501 # type: =head2
11502 #: ../src/guestfs-actions.pod:4194
11503 msgid "guestfs_pread_device"
11504 msgstr ""
11505
11506 # type: verbatim
11507 #: ../src/guestfs-actions.pod:4196
11508 #, no-wrap
11509 msgid ""
11510 " char *\n"
11511 " guestfs_pread_device (guestfs_h *g,\n"
11512 "                       const char *device,\n"
11513 "                       int count,\n"
11514 "                       int64_t offset,\n"
11515 "                       size_t *size_r);\n"
11516 "\n"
11517 msgstr ""
11518
11519 # type: textblock
11520 #: ../src/guestfs-actions.pod:4203 ../fish/guestfish-actions.pod:3074
11521 msgid ""
11522 "This command lets you read part of a file.  It reads C<count> bytes of "
11523 "C<device>, starting at C<offset>."
11524 msgstr ""
11525
11526 # type: textblock
11527 #: ../src/guestfs-actions.pod:4209
11528 msgid "See also C<guestfs_pread>."
11529 msgstr ""
11530
11531 # type: =head2
11532 #: ../src/guestfs-actions.pod:4218
11533 msgid "guestfs_pvcreate"
11534 msgstr ""
11535
11536 # type: verbatim
11537 #: ../src/guestfs-actions.pod:4220
11538 #, no-wrap
11539 msgid ""
11540 " int\n"
11541 " guestfs_pvcreate (guestfs_h *g,\n"
11542 "                   const char *device);\n"
11543 "\n"
11544 msgstr ""
11545
11546 # type: textblock
11547 #: ../src/guestfs-actions.pod:4224 ../fish/guestfish-actions.pod:3089
11548 msgid ""
11549 "This creates an LVM physical volume on the named C<device>, where C<device> "
11550 "should usually be a partition name such as C</dev/sda1>."
11551 msgstr ""
11552
11553 # type: =head2
11554 #: ../src/guestfs-actions.pod:4230
11555 msgid "guestfs_pvremove"
11556 msgstr ""
11557
11558 # type: verbatim
11559 #: ../src/guestfs-actions.pod:4232
11560 #, no-wrap
11561 msgid ""
11562 " int\n"
11563 " guestfs_pvremove (guestfs_h *g,\n"
11564 "                   const char *device);\n"
11565 "\n"
11566 msgstr ""
11567
11568 # type: textblock
11569 #: ../src/guestfs-actions.pod:4236 ../fish/guestfish-actions.pod:3097
11570 msgid ""
11571 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11572 "it."
11573 msgstr ""
11574
11575 # type: textblock
11576 #: ../src/guestfs-actions.pod:4239 ../fish/guestfish-actions.pod:3100
11577 msgid ""
11578 "The implementation uses the C<pvremove> command which refuses to wipe "
11579 "physical volumes that contain any volume groups, so you have to remove those "
11580 "first."
11581 msgstr ""
11582
11583 # type: =head2
11584 #: ../src/guestfs-actions.pod:4245
11585 msgid "guestfs_pvresize"
11586 msgstr ""
11587
11588 # type: verbatim
11589 #: ../src/guestfs-actions.pod:4247
11590 #, no-wrap
11591 msgid ""
11592 " int\n"
11593 " guestfs_pvresize (guestfs_h *g,\n"
11594 "                   const char *device);\n"
11595 "\n"
11596 msgstr ""
11597
11598 # type: textblock
11599 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:3108
11600 msgid ""
11601 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11602 "the new size of the underlying device."
11603 msgstr ""
11604
11605 # type: =head2
11606 #: ../src/guestfs-actions.pod:4256
11607 msgid "guestfs_pvresize_size"
11608 msgstr ""
11609
11610 # type: verbatim
11611 #: ../src/guestfs-actions.pod:4258
11612 #, no-wrap
11613 msgid ""
11614 " int\n"
11615 " guestfs_pvresize_size (guestfs_h *g,\n"
11616 "                        const char *device,\n"
11617 "                        int64_t size);\n"
11618 "\n"
11619 msgstr ""
11620
11621 # type: textblock
11622 #: ../src/guestfs-actions.pod:4263
11623 msgid ""
11624 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11625 "specify the new size (in bytes) explicitly."
11626 msgstr ""
11627
11628 # type: =head2
11629 #: ../src/guestfs-actions.pod:4268
11630 msgid "guestfs_pvs"
11631 msgstr ""
11632
11633 # type: verbatim
11634 #: ../src/guestfs-actions.pod:4270
11635 #, no-wrap
11636 msgid ""
11637 " char **\n"
11638 " guestfs_pvs (guestfs_h *g);\n"
11639 "\n"
11640 msgstr ""
11641
11642 # type: textblock
11643 #: ../src/guestfs-actions.pod:4273 ../fish/guestfish-actions.pod:3122
11644 msgid ""
11645 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11646 "(8)> command."
11647 msgstr ""
11648
11649 # type: textblock
11650 #: ../src/guestfs-actions.pod:4276 ../fish/guestfish-actions.pod:3125
11651 msgid ""
11652 "This returns a list of just the device names that contain PVs (eg. C</dev/"
11653 "sda2>)."
11654 msgstr ""
11655
11656 # type: textblock
11657 #: ../src/guestfs-actions.pod:4279
11658 msgid "See also C<guestfs_pvs_full>."
11659 msgstr ""
11660
11661 # type: =head2
11662 #: ../src/guestfs-actions.pod:4285
11663 msgid "guestfs_pvs_full"
11664 msgstr ""
11665
11666 # type: verbatim
11667 #: ../src/guestfs-actions.pod:4287
11668 #, no-wrap
11669 msgid ""
11670 " struct guestfs_lvm_pv_list *\n"
11671 " guestfs_pvs_full (guestfs_h *g);\n"
11672 "\n"
11673 msgstr ""
11674
11675 # type: textblock
11676 #: ../src/guestfs-actions.pod:4290 ../fish/guestfish-actions.pod:3134
11677 msgid ""
11678 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
11679 "(8)> command.  The \"full\" version includes all fields."
11680 msgstr ""
11681
11682 # type: textblock
11683 #: ../src/guestfs-actions.pod:4293
11684 msgid ""
11685 "This function returns a C<struct guestfs_lvm_pv_list *> (see E<lt>guestfs-"
11686 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11687 "C<guestfs_free_lvm_pv_list> after use>."
11688 msgstr ""
11689
11690 # type: =head2
11691 #: ../src/guestfs-actions.pod:4298
11692 msgid "guestfs_pvuuid"
11693 msgstr ""
11694
11695 # type: verbatim
11696 #: ../src/guestfs-actions.pod:4300
11697 #, no-wrap
11698 msgid ""
11699 " char *\n"
11700 " guestfs_pvuuid (guestfs_h *g,\n"
11701 "                 const char *device);\n"
11702 "\n"
11703 msgstr ""
11704
11705 # type: textblock
11706 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:3141
11707 msgid "This command returns the UUID of the LVM PV C<device>."
11708 msgstr ""
11709
11710 # type: =head2
11711 #: ../src/guestfs-actions.pod:4309
11712 msgid "guestfs_pwrite"
11713 msgstr ""
11714
11715 # type: verbatim
11716 #: ../src/guestfs-actions.pod:4311
11717 #, no-wrap
11718 msgid ""
11719 " int\n"
11720 " guestfs_pwrite (guestfs_h *g,\n"
11721 "                 const char *path,\n"
11722 "                 const char *content,\n"
11723 "                 size_t content_size,\n"
11724 "                 int64_t offset);\n"
11725 "\n"
11726 msgstr ""
11727
11728 # type: textblock
11729 #: ../src/guestfs-actions.pod:4318 ../fish/guestfish-actions.pod:3147
11730 msgid ""
11731 "This command writes to part of a file.  It writes the data buffer C<content> "
11732 "to the file C<path> starting at offset C<offset>."
11733 msgstr ""
11734
11735 # type: textblock
11736 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:3150
11737 msgid ""
11738 "This command implements the L<pwrite(2)> system call, and like that system "
11739 "call it may not write the full data requested.  The return value is the "
11740 "number of bytes that were actually written to the file.  This could even be "
11741 "0, although short writes are unlikely for regular files in ordinary "
11742 "circumstances."
11743 msgstr ""
11744
11745 # type: textblock
11746 #: ../src/guestfs-actions.pod:4327
11747 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11748 msgstr ""
11749
11750 # type: =head2
11751 #: ../src/guestfs-actions.pod:4334
11752 msgid "guestfs_pwrite_device"
11753 msgstr ""
11754
11755 # type: verbatim
11756 #: ../src/guestfs-actions.pod:4336
11757 #, no-wrap
11758 msgid ""
11759 " int\n"
11760 " guestfs_pwrite_device (guestfs_h *g,\n"
11761 "                        const char *device,\n"
11762 "                        const char *content,\n"
11763 "                        size_t content_size,\n"
11764 "                        int64_t offset);\n"
11765 "\n"
11766 msgstr ""
11767
11768 # type: textblock
11769 #: ../src/guestfs-actions.pod:4343 ../fish/guestfish-actions.pod:3165
11770 msgid ""
11771 "This command writes to part of a device.  It writes the data buffer "
11772 "C<content> to C<device> starting at offset C<offset>."
11773 msgstr ""
11774
11775 # type: textblock
11776 #: ../src/guestfs-actions.pod:4346 ../fish/guestfish-actions.pod:3168
11777 msgid ""
11778 "This command implements the L<pwrite(2)> system call, and like that system "
11779 "call it may not write the full data requested (although short writes to disk "
11780 "devices and partitions are probably impossible with standard Linux kernels)."
11781 msgstr ""
11782
11783 # type: textblock
11784 #: ../src/guestfs-actions.pod:4351
11785 msgid "See also C<guestfs_pwrite>."
11786 msgstr ""
11787
11788 # type: =head2
11789 #: ../src/guestfs-actions.pod:4358
11790 msgid "guestfs_read_file"
11791 msgstr ""
11792
11793 # type: verbatim
11794 #: ../src/guestfs-actions.pod:4360
11795 #, no-wrap
11796 msgid ""
11797 " char *\n"
11798 " guestfs_read_file (guestfs_h *g,\n"
11799 "                    const char *path,\n"
11800 "                    size_t *size_r);\n"
11801 "\n"
11802 msgstr ""
11803
11804 # type: textblock
11805 #: ../src/guestfs-actions.pod:4365 ../fish/guestfish-actions.pod:3182
11806 msgid "This calls returns the contents of the file C<path> as a buffer."
11807 msgstr ""
11808
11809 # type: textblock
11810 #: ../src/guestfs-actions.pod:4368
11811 msgid ""
11812 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11813 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11814 "function is limited in the total size of file that can be handled."
11815 msgstr ""
11816
11817 # type: =head2
11818 #: ../src/guestfs-actions.pod:4380
11819 msgid "guestfs_read_lines"
11820 msgstr ""
11821
11822 # type: verbatim
11823 #: ../src/guestfs-actions.pod:4382
11824 #, no-wrap
11825 msgid ""
11826 " char **\n"
11827 " guestfs_read_lines (guestfs_h *g,\n"
11828 "                     const char *path);\n"
11829 "\n"
11830 msgstr ""
11831
11832 # type: textblock
11833 #: ../src/guestfs-actions.pod:4388 ../fish/guestfish-actions.pod:3199
11834 msgid ""
11835 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11836 "C<CRLF> character sequences are I<not> returned."
11837 msgstr ""
11838
11839 # type: textblock
11840 #: ../src/guestfs-actions.pod:4391
11841 msgid ""
11842 "Note that this function cannot correctly handle binary files (specifically, "
11843 "files containing C<\\0> character which is treated as end of line).  For "
11844 "those you need to use the C<guestfs_read_file> function which has a more "
11845 "complex interface."
11846 msgstr ""
11847
11848 # type: =head2
11849 #: ../src/guestfs-actions.pod:4400
11850 msgid "guestfs_readdir"
11851 msgstr ""
11852
11853 # type: verbatim
11854 #: ../src/guestfs-actions.pod:4402
11855 #, no-wrap
11856 msgid ""
11857 " struct guestfs_dirent_list *\n"
11858 " guestfs_readdir (guestfs_h *g,\n"
11859 "                  const char *dir);\n"
11860 "\n"
11861 msgstr ""
11862
11863 # type: textblock
11864 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:3211
11865 msgid "This returns the list of directory entries in directory C<dir>."
11866 msgstr ""
11867
11868 # type: textblock
11869 #: ../src/guestfs-actions.pod:4408 ../fish/guestfish-actions.pod:3213
11870 msgid ""
11871 "All entries in the directory are returned, including C<.> and C<..>.  The "
11872 "entries are I<not> sorted, but returned in the same order as the underlying "
11873 "filesystem."
11874 msgstr ""
11875
11876 # type: textblock
11877 #: ../src/guestfs-actions.pod:4412 ../fish/guestfish-actions.pod:3217
11878 msgid ""
11879 "Also this call returns basic file type information about each file.  The "
11880 "C<ftyp> field will contain one of the following characters:"
11881 msgstr ""
11882
11883 # type: =item
11884 #: ../src/guestfs-actions.pod:4417 ../fish/guestfish-actions.pod:3222
11885 msgid "'b'"
11886 msgstr ""
11887
11888 # type: textblock
11889 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:3224
11890 msgid "Block special"
11891 msgstr ""
11892
11893 # type: =item
11894 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:3226
11895 msgid "'c'"
11896 msgstr ""
11897
11898 # type: textblock
11899 #: ../src/guestfs-actions.pod:4423 ../fish/guestfish-actions.pod:3228
11900 msgid "Char special"
11901 msgstr ""
11902
11903 # type: =item
11904 #: ../src/guestfs-actions.pod:4425 ../fish/guestfish-actions.pod:3230
11905 msgid "'d'"
11906 msgstr ""
11907
11908 # type: textblock
11909 #: ../src/guestfs-actions.pod:4427 ../fish/guestfish-actions.pod:3232
11910 msgid "Directory"
11911 msgstr ""
11912
11913 # type: =item
11914 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:3234
11915 msgid "'f'"
11916 msgstr ""
11917
11918 # type: textblock
11919 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:3236
11920 msgid "FIFO (named pipe)"
11921 msgstr ""
11922
11923 # type: =item
11924 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:3238
11925 msgid "'l'"
11926 msgstr ""
11927
11928 # type: textblock
11929 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:3240
11930 msgid "Symbolic link"
11931 msgstr ""
11932
11933 # type: =item
11934 #: ../src/guestfs-actions.pod:4437 ../fish/guestfish-actions.pod:3242
11935 msgid "'r'"
11936 msgstr ""
11937
11938 # type: textblock
11939 #: ../src/guestfs-actions.pod:4439 ../fish/guestfish-actions.pod:3244
11940 msgid "Regular file"
11941 msgstr ""
11942
11943 # type: =item
11944 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:3246
11945 msgid "'s'"
11946 msgstr ""
11947
11948 # type: textblock
11949 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:3248
11950 msgid "Socket"
11951 msgstr ""
11952
11953 # type: =item
11954 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:3250
11955 msgid "'u'"
11956 msgstr ""
11957
11958 # type: textblock
11959 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:3252
11960 msgid "Unknown file type"
11961 msgstr ""
11962
11963 # type: =item
11964 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:3254
11965 msgid "'?'"
11966 msgstr ""
11967
11968 # type: textblock
11969 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:3256
11970 msgid ""
11971 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11972 msgstr ""
11973
11974 # type: textblock
11975 #: ../src/guestfs-actions.pod:4456
11976 msgid ""
11977 "This function is primarily intended for use by programs.  To get a simple "
11978 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11979 "consumption, use C<guestfs_ll>."
11980 msgstr ""
11981
11982 # type: textblock
11983 #: ../src/guestfs-actions.pod:4460
11984 msgid ""
11985 "This function returns a C<struct guestfs_dirent_list *> (see E<lt>guestfs-"
11986 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
11987 "C<guestfs_free_dirent_list> after use>."
11988 msgstr ""
11989
11990 # type: =head2
11991 #: ../src/guestfs-actions.pod:4465
11992 msgid "guestfs_readlink"
11993 msgstr ""
11994
11995 # type: verbatim
11996 #: ../src/guestfs-actions.pod:4467
11997 #, no-wrap
11998 msgid ""
11999 " char *\n"
12000 " guestfs_readlink (guestfs_h *g,\n"
12001 "                   const char *path);\n"
12002 "\n"
12003 msgstr ""
12004
12005 # type: textblock
12006 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3269
12007 msgid "This command reads the target of a symbolic link."
12008 msgstr ""
12009
12010 # type: =head2
12011 #: ../src/guestfs-actions.pod:4476
12012 msgid "guestfs_readlinklist"
12013 msgstr ""
12014
12015 # type: verbatim
12016 #: ../src/guestfs-actions.pod:4478
12017 #, no-wrap
12018 msgid ""
12019 " char **\n"
12020 " guestfs_readlinklist (guestfs_h *g,\n"
12021 "                       const char *path,\n"
12022 "                       char *const *names);\n"
12023 "\n"
12024 msgstr ""
12025
12026 # type: textblock
12027 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3275
12028 msgid ""
12029 "This call allows you to do a C<readlink> operation on multiple files, where "
12030 "all files are in the directory C<path>.  C<names> is the list of files from "
12031 "this directory."
12032 msgstr ""
12033
12034 # type: textblock
12035 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:3279
12036 msgid ""
12037 "On return you get a list of strings, with a one-to-one correspondence to the "
12038 "C<names> list.  Each string is the value of the symbolic link."
12039 msgstr ""
12040
12041 # type: textblock
12042 #: ../src/guestfs-actions.pod:4491 ../fish/guestfish-actions.pod:3283
12043 msgid ""
12044 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12045 "result string is the empty string C<\"\">.  However the whole operation is "
12046 "completed even if there were C<readlink(2)> errors, and so you can call this "
12047 "function with names where you don't know if they are symbolic links already "
12048 "(albeit slightly less efficient)."
12049 msgstr ""
12050
12051 # type: textblock
12052 #: ../src/guestfs-actions.pod:4498 ../fish/guestfish-actions.pod:3290
12053 msgid ""
12054 "This call is intended for programs that want to efficiently list a directory "
12055 "contents without making many round-trips.  Very long directory listings "
12056 "might cause the protocol message size to be exceeded, causing this call to "
12057 "fail.  The caller must split up such requests into smaller groups of names."
12058 msgstr ""
12059
12060 # type: =head2
12061 #: ../src/guestfs-actions.pod:4509
12062 msgid "guestfs_realpath"
12063 msgstr ""
12064
12065 # type: verbatim
12066 #: ../src/guestfs-actions.pod:4511
12067 #, no-wrap
12068 msgid ""
12069 " char *\n"
12070 " guestfs_realpath (guestfs_h *g,\n"
12071 "                   const char *path);\n"
12072 "\n"
12073 msgstr ""
12074
12075 # type: textblock
12076 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:3301
12077 msgid ""
12078 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12079 "has no C<.>, C<..> or symbolic link path elements."
12080 msgstr ""
12081
12082 # type: =head2
12083 #: ../src/guestfs-actions.pod:4521
12084 msgid "guestfs_removexattr"
12085 msgstr ""
12086
12087 # type: verbatim
12088 #: ../src/guestfs-actions.pod:4523
12089 #, no-wrap
12090 msgid ""
12091 " int\n"
12092 " guestfs_removexattr (guestfs_h *g,\n"
12093 "                      const char *xattr,\n"
12094 "                      const char *path);\n"
12095 "\n"
12096 msgstr ""
12097
12098 # type: textblock
12099 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3308
12100 msgid ""
12101 "This call removes the extended attribute named C<xattr> of the file C<path>."
12102 msgstr ""
12103
12104 # type: textblock
12105 #: ../src/guestfs-actions.pod:4531
12106 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12107 msgstr ""
12108
12109 # type: =head2
12110 #: ../src/guestfs-actions.pod:4535
12111 msgid "guestfs_resize2fs"
12112 msgstr ""
12113
12114 # type: verbatim
12115 #: ../src/guestfs-actions.pod:4537
12116 #, no-wrap
12117 msgid ""
12118 " int\n"
12119 " guestfs_resize2fs (guestfs_h *g,\n"
12120 "                    const char *device);\n"
12121 "\n"
12122 msgstr ""
12123
12124 # type: textblock
12125 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3317
12126 msgid ""
12127 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12128 "underlying device."
12129 msgstr ""
12130
12131 # type: textblock
12132 #: ../src/guestfs-actions.pod:4544
12133 msgid ""
12134 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12135 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12136 "sometimes gives an error about this and sometimes not.  In any case, it is "
12137 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12138 msgstr ""
12139
12140 # type: =head2
12141 #: ../src/guestfs-actions.pod:4552
12142 msgid "guestfs_resize2fs_size"
12143 msgstr ""
12144
12145 # type: verbatim
12146 #: ../src/guestfs-actions.pod:4554
12147 #, no-wrap
12148 msgid ""
12149 " int\n"
12150 " guestfs_resize2fs_size (guestfs_h *g,\n"
12151 "                         const char *device,\n"
12152 "                         int64_t size);\n"
12153 "\n"
12154 msgstr ""
12155
12156 # type: textblock
12157 #: ../src/guestfs-actions.pod:4559
12158 msgid ""
12159 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12160 "to specify the new size (in bytes) explicitly."
12161 msgstr ""
12162
12163 # type: =head2
12164 #: ../src/guestfs-actions.pod:4564
12165 msgid "guestfs_rm"
12166 msgstr ""
12167
12168 # type: verbatim
12169 #: ../src/guestfs-actions.pod:4566
12170 #, no-wrap
12171 msgid ""
12172 " int\n"
12173 " guestfs_rm (guestfs_h *g,\n"
12174 "             const char *path);\n"
12175 "\n"
12176 msgstr ""
12177
12178 # type: textblock
12179 #: ../src/guestfs-actions.pod:4570 ../fish/guestfish-actions.pod:3337
12180 msgid "Remove the single file C<path>."
12181 msgstr ""
12182
12183 # type: =head2
12184 #: ../src/guestfs-actions.pod:4574
12185 msgid "guestfs_rm_rf"
12186 msgstr ""
12187
12188 # type: verbatim
12189 #: ../src/guestfs-actions.pod:4576
12190 #, no-wrap
12191 msgid ""
12192 " int\n"
12193 " guestfs_rm_rf (guestfs_h *g,\n"
12194 "                const char *path);\n"
12195 "\n"
12196 msgstr ""
12197
12198 # type: textblock
12199 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3343
12200 msgid ""
12201 "Remove the file or directory C<path>, recursively removing the contents if "
12202 "its a directory.  This is like the C<rm -rf> shell command."
12203 msgstr ""
12204
12205 # type: =head2
12206 #: ../src/guestfs-actions.pod:4586
12207 msgid "guestfs_rmdir"
12208 msgstr ""
12209
12210 # type: verbatim
12211 #: ../src/guestfs-actions.pod:4588
12212 #, no-wrap
12213 msgid ""
12214 " int\n"
12215 " guestfs_rmdir (guestfs_h *g,\n"
12216 "                const char *path);\n"
12217 "\n"
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3351
12222 msgid "Remove the single directory C<path>."
12223 msgstr ""
12224
12225 # type: =head2
12226 #: ../src/guestfs-actions.pod:4596
12227 msgid "guestfs_rmmountpoint"
12228 msgstr ""
12229
12230 # type: verbatim
12231 #: ../src/guestfs-actions.pod:4598
12232 #, no-wrap
12233 msgid ""
12234 " int\n"
12235 " guestfs_rmmountpoint (guestfs_h *g,\n"
12236 "                       const char *exemptpath);\n"
12237 "\n"
12238 msgstr ""
12239
12240 # type: textblock
12241 #: ../src/guestfs-actions.pod:4602
12242 msgid ""
12243 "This calls removes a mountpoint that was previously created with "
12244 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12245 msgstr ""
12246
12247 # type: =head2
12248 #: ../src/guestfs-actions.pod:4608
12249 msgid "guestfs_scrub_device"
12250 msgstr ""
12251
12252 # type: verbatim
12253 #: ../src/guestfs-actions.pod:4610
12254 #, no-wrap
12255 msgid ""
12256 " int\n"
12257 " guestfs_scrub_device (guestfs_h *g,\n"
12258 "                       const char *device);\n"
12259 "\n"
12260 msgstr ""
12261
12262 # type: textblock
12263 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3365
12264 msgid ""
12265 "This command writes patterns over C<device> to make data retrieval more "
12266 "difficult."
12267 msgstr ""
12268
12269 # type: textblock
12270 #: ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4636
12271 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3368
12272 #: ../fish/guestfish-actions.pod:3383 ../fish/guestfish-actions.pod:3396
12273 msgid ""
12274 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12275 "more details."
12276 msgstr ""
12277
12278 # type: =head2
12279 #: ../src/guestfs-actions.pod:4625
12280 msgid "guestfs_scrub_file"
12281 msgstr ""
12282
12283 # type: verbatim
12284 #: ../src/guestfs-actions.pod:4627
12285 #, no-wrap
12286 msgid ""
12287 " int\n"
12288 " guestfs_scrub_file (guestfs_h *g,\n"
12289 "                     const char *file);\n"
12290 "\n"
12291 msgstr ""
12292
12293 # type: textblock
12294 #: ../src/guestfs-actions.pod:4631 ../fish/guestfish-actions.pod:3378
12295 msgid ""
12296 "This command writes patterns over a file to make data retrieval more "
12297 "difficult."
12298 msgstr ""
12299
12300 # type: textblock
12301 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3381
12302 msgid "The file is I<removed> after scrubbing."
12303 msgstr ""
12304
12305 # type: =head2
12306 #: ../src/guestfs-actions.pod:4641
12307 msgid "guestfs_scrub_freespace"
12308 msgstr ""
12309
12310 # type: verbatim
12311 #: ../src/guestfs-actions.pod:4643
12312 #, no-wrap
12313 msgid ""
12314 " int\n"
12315 " guestfs_scrub_freespace (guestfs_h *g,\n"
12316 "                          const char *dir);\n"
12317 "\n"
12318 msgstr ""
12319
12320 # type: textblock
12321 #: ../src/guestfs-actions.pod:4647
12322 msgid ""
12323 "This command creates the directory C<dir> and then fills it with files until "
12324 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12325 "and deletes them.  The intention is to scrub any free space on the partition "
12326 "containing C<dir>."
12327 msgstr ""
12328
12329 # type: =head2
12330 #: ../src/guestfs-actions.pod:4658
12331 msgid "guestfs_set_append"
12332 msgstr ""
12333
12334 # type: verbatim
12335 #: ../src/guestfs-actions.pod:4660
12336 #, no-wrap
12337 msgid ""
12338 " int\n"
12339 " guestfs_set_append (guestfs_h *g,\n"
12340 "                     const char *append);\n"
12341 "\n"
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3405
12346 msgid ""
12347 "This function is used to add additional options to the guest kernel command "
12348 "line."
12349 msgstr ""
12350
12351 # type: textblock
12352 #: ../src/guestfs-actions.pod:4667 ../fish/guestfish-actions.pod:3408
12353 msgid ""
12354 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12355 "environment variable."
12356 msgstr ""
12357
12358 # type: textblock
12359 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3411
12360 msgid ""
12361 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12362 "(libguestfs always adds a few of its own)."
12363 msgstr ""
12364
12365 # type: =head2
12366 #: ../src/guestfs-actions.pod:4675
12367 msgid "guestfs_set_autosync"
12368 msgstr ""
12369
12370 # type: verbatim
12371 #: ../src/guestfs-actions.pod:4677
12372 #, no-wrap
12373 msgid ""
12374 " int\n"
12375 " guestfs_set_autosync (guestfs_h *g,\n"
12376 "                       int autosync);\n"
12377 "\n"
12378 msgstr ""
12379
12380 # type: textblock
12381 #: ../src/guestfs-actions.pod:4681
12382 msgid ""
12383 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12384 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12385 "the handle is closed (also if the program exits without closing handles)."
12386 msgstr ""
12387
12388 # type: textblock
12389 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3425
12390 msgid ""
12391 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12392 "disabled by default)."
12393 msgstr ""
12394
12395 # type: =head2
12396 #: ../src/guestfs-actions.pod:4691
12397 msgid "guestfs_set_direct"
12398 msgstr ""
12399
12400 # type: verbatim
12401 #: ../src/guestfs-actions.pod:4693
12402 #, no-wrap
12403 msgid ""
12404 " int\n"
12405 " guestfs_set_direct (guestfs_h *g,\n"
12406 "                     int direct);\n"
12407 "\n"
12408 msgstr ""
12409
12410 # type: textblock
12411 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3434
12412 msgid ""
12413 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12414 "passed directly through to the appliance once it is launched."
12415 msgstr ""
12416
12417 # type: textblock
12418 #: ../src/guestfs-actions.pod:4701
12419 msgid ""
12420 "One consequence of this is that log messages aren't caught by the library "
12421 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12422 "stdout."
12423 msgstr ""
12424
12425 # type: textblock
12426 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3442
12427 msgid "You probably don't want to use this unless you know what you are doing."
12428 msgstr ""
12429
12430 # type: textblock
12431 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3445
12432 msgid "The default is disabled."
12433 msgstr ""
12434
12435 # type: =head2
12436 #: ../src/guestfs-actions.pod:4712
12437 msgid "guestfs_set_e2label"
12438 msgstr ""
12439
12440 # type: verbatim
12441 #: ../src/guestfs-actions.pod:4714
12442 #, no-wrap
12443 msgid ""
12444 " int\n"
12445 " guestfs_set_e2label (guestfs_h *g,\n"
12446 "                      const char *device,\n"
12447 "                      const char *label);\n"
12448 "\n"
12449 msgstr ""
12450
12451 # type: textblock
12452 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3451
12453 msgid ""
12454 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12455 "C<label>.  Filesystem labels are limited to 16 characters."
12456 msgstr ""
12457
12458 # type: textblock
12459 #: ../src/guestfs-actions.pod:4723
12460 msgid ""
12461 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12462 "the existing label on a filesystem."
12463 msgstr ""
12464
12465 # type: =head2
12466 #: ../src/guestfs-actions.pod:4728
12467 msgid "guestfs_set_e2uuid"
12468 msgstr ""
12469
12470 # type: verbatim
12471 #: ../src/guestfs-actions.pod:4730
12472 #, no-wrap
12473 msgid ""
12474 " int\n"
12475 " guestfs_set_e2uuid (guestfs_h *g,\n"
12476 "                     const char *device,\n"
12477 "                     const char *uuid);\n"
12478 "\n"
12479 msgstr ""
12480
12481 # type: textblock
12482 #: ../src/guestfs-actions.pod:4735 ../fish/guestfish-actions.pod:3462
12483 msgid ""
12484 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12485 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12486 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12487 msgstr ""
12488
12489 # type: textblock
12490 #: ../src/guestfs-actions.pod:4740
12491 msgid ""
12492 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12493 "the existing UUID of a filesystem."
12494 msgstr ""
12495
12496 # type: =head2
12497 #: ../src/guestfs-actions.pod:4745
12498 msgid "guestfs_set_memsize"
12499 msgstr ""
12500
12501 # type: verbatim
12502 #: ../src/guestfs-actions.pod:4747
12503 #, no-wrap
12504 msgid ""
12505 " int\n"
12506 " guestfs_set_memsize (guestfs_h *g,\n"
12507 "                      int memsize);\n"
12508 "\n"
12509 msgstr ""
12510
12511 # type: textblock
12512 #: ../src/guestfs-actions.pod:4751
12513 msgid ""
12514 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12515 "This only has any effect if called before C<guestfs_launch>."
12516 msgstr ""
12517
12518 # type: textblock
12519 #: ../src/guestfs-actions.pod:4755 ../fish/guestfish-actions.pod:3480
12520 msgid ""
12521 "You can also change this by setting the environment variable "
12522 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12523 msgstr ""
12524
12525 # type: =head2
12526 #: ../src/guestfs-actions.pod:4764
12527 msgid "guestfs_set_network"
12528 msgstr ""
12529
12530 # type: verbatim
12531 #: ../src/guestfs-actions.pod:4766
12532 #, no-wrap
12533 msgid ""
12534 " int\n"
12535 " guestfs_set_network (guestfs_h *g,\n"
12536 "                      int network);\n"
12537 "\n"
12538 msgstr ""
12539
12540 # type: textblock
12541 #: ../src/guestfs-actions.pod:4770 ../fish/guestfish-actions.pod:3493
12542 msgid ""
12543 "If C<network> is true, then the network is enabled in the libguestfs "
12544 "appliance.  The default is false."
12545 msgstr ""
12546
12547 # type: textblock
12548 #: ../src/guestfs-actions.pod:4773 ../fish/guestfish-actions.pod:3496
12549 msgid ""
12550 "This affects whether commands are able to access the network (see L<guestfs"
12551 "(3)/RUNNING COMMANDS>)."
12552 msgstr ""
12553
12554 # type: textblock
12555 #: ../src/guestfs-actions.pod:4776
12556 msgid ""
12557 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12558 "effect."
12559 msgstr ""
12560
12561 # type: =head2
12562 #: ../src/guestfs-actions.pod:4781
12563 msgid "guestfs_set_path"
12564 msgstr ""
12565
12566 # type: verbatim
12567 #: ../src/guestfs-actions.pod:4783
12568 #, no-wrap
12569 msgid ""
12570 " int\n"
12571 " guestfs_set_path (guestfs_h *g,\n"
12572 "                   const char *searchpath);\n"
12573 "\n"
12574 msgstr ""
12575
12576 # type: textblock
12577 #: ../src/guestfs-actions.pod:4787 ../fish/guestfish-actions.pod:3508
12578 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12579 msgstr ""
12580
12581 # type: textblock
12582 #: ../src/guestfs-actions.pod:4789 ../fish/guestfish-actions.pod:3510
12583 msgid ""
12584 "The default is C<$libdir/guestfs> unless overridden by setting "
12585 "C<LIBGUESTFS_PATH> environment variable."
12586 msgstr ""
12587
12588 # type: textblock
12589 #: ../src/guestfs-actions.pod:4792 ../fish/guestfish-actions.pod:3513
12590 msgid "Setting C<path> to C<NULL> restores the default path."
12591 msgstr ""
12592
12593 # type: =head2
12594 #: ../src/guestfs-actions.pod:4796
12595 msgid "guestfs_set_qemu"
12596 msgstr ""
12597
12598 # type: verbatim
12599 #: ../src/guestfs-actions.pod:4798
12600 #, no-wrap
12601 msgid ""
12602 " int\n"
12603 " guestfs_set_qemu (guestfs_h *g,\n"
12604 "                   const char *qemu);\n"
12605 "\n"
12606 msgstr ""
12607
12608 # type: textblock
12609 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3521
12610 msgid "Set the qemu binary that we will use."
12611 msgstr ""
12612
12613 # type: textblock
12614 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3523
12615 msgid ""
12616 "The default is chosen when the library was compiled by the configure script."
12617 msgstr ""
12618
12619 # type: textblock
12620 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3526
12621 msgid ""
12622 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12623 "variable."
12624 msgstr ""
12625
12626 # type: textblock
12627 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3529
12628 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12629 msgstr ""
12630
12631 # type: textblock
12632 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3531
12633 msgid ""
12634 "Note that you should call this function as early as possible after creating "
12635 "the handle.  This is because some pre-launch operations depend on testing "
12636 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12637 "don't retest features, and so you might see inconsistent results.  Using the "
12638 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12639 "the qemu binary at the same time as the handle is created."
12640 msgstr ""
12641
12642 # type: =head2
12643 #: ../src/guestfs-actions.pod:4822
12644 msgid "guestfs_set_recovery_proc"
12645 msgstr ""
12646
12647 # type: verbatim
12648 #: ../src/guestfs-actions.pod:4824
12649 #, no-wrap
12650 msgid ""
12651 " int\n"
12652 " guestfs_set_recovery_proc (guestfs_h *g,\n"
12653 "                            int recoveryproc);\n"
12654 "\n"
12655 msgstr ""
12656
12657 # type: textblock
12658 #: ../src/guestfs-actions.pod:4828
12659 msgid ""
12660 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12661 "not create a recovery process.  The purpose of the recovery process is to "
12662 "stop runaway qemu processes in the case where the main program aborts "
12663 "abruptly."
12664 msgstr ""
12665
12666 # type: textblock
12667 #: ../src/guestfs-actions.pod:4833
12668 msgid ""
12669 "This only has any effect if called before C<guestfs_launch>, and the default "
12670 "is true."
12671 msgstr ""
12672
12673 # type: textblock
12674 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3553
12675 msgid ""
12676 "About the only time when you would want to disable this is if the main "
12677 "process will fork itself into the background (\"daemonize\" itself).  In "
12678 "this case the recovery process thinks that the main program has disappeared "
12679 "and so kills qemu, which is not very helpful."
12680 msgstr ""
12681
12682 # type: =head2
12683 #: ../src/guestfs-actions.pod:4844
12684 msgid "guestfs_set_selinux"
12685 msgstr ""
12686
12687 # type: verbatim
12688 #: ../src/guestfs-actions.pod:4846
12689 #, no-wrap
12690 msgid ""
12691 " int\n"
12692 " guestfs_set_selinux (guestfs_h *g,\n"
12693 "                      int selinux);\n"
12694 "\n"
12695 msgstr ""
12696
12697 # type: textblock
12698 #: ../src/guestfs-actions.pod:4850 ../fish/guestfish-actions.pod:3565
12699 msgid ""
12700 "This sets the selinux flag that is passed to the appliance at boot time.  "
12701 "The default is C<selinux=0> (disabled)."
12702 msgstr ""
12703
12704 # type: textblock
12705 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3568
12706 msgid ""
12707 "Note that if SELinux is enabled, it is always in Permissive mode "
12708 "(C<enforcing=0>)."
12709 msgstr ""
12710
12711 # type: =head2
12712 #: ../src/guestfs-actions.pod:4861
12713 msgid "guestfs_set_trace"
12714 msgstr ""
12715
12716 # type: verbatim
12717 #: ../src/guestfs-actions.pod:4863
12718 #, no-wrap
12719 msgid ""
12720 " int\n"
12721 " guestfs_set_trace (guestfs_h *g,\n"
12722 "                    int trace);\n"
12723 "\n"
12724 msgstr ""
12725
12726 # type: textblock
12727 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3580
12728 msgid ""
12729 "If the command trace flag is set to 1, then commands are printed on stderr "
12730 "before they are executed in a format which is very similar to the one used "
12731 "by guestfish.  In other words, you can run a program with this enabled, and "
12732 "you will get out a script which you can feed to guestfish to perform the "
12733 "same set of actions."
12734 msgstr ""
12735
12736 # type: textblock
12737 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3587
12738 msgid ""
12739 "If you want to trace C API calls into libguestfs (and other libraries) then "
12740 "possibly a better way is to use the external ltrace(1) command."
12741 msgstr ""
12742
12743 # type: textblock
12744 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3591
12745 msgid ""
12746 "Command traces are disabled unless the environment variable "
12747 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12748 msgstr ""
12749
12750 # type: =head2
12751 #: ../src/guestfs-actions.pod:4883
12752 msgid "guestfs_set_verbose"
12753 msgstr ""
12754
12755 # type: verbatim
12756 #: ../src/guestfs-actions.pod:4885
12757 #, no-wrap
12758 msgid ""
12759 " int\n"
12760 " guestfs_set_verbose (guestfs_h *g,\n"
12761 "                      int verbose);\n"
12762 "\n"
12763 msgstr ""
12764
12765 # type: textblock
12766 #: ../src/guestfs-actions.pod:4889 ../fish/guestfish-actions.pod:3600
12767 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12768 msgstr ""
12769
12770 # type: textblock
12771 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3602
12772 msgid ""
12773 "Verbose messages are disabled unless the environment variable "
12774 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12775 msgstr ""
12776
12777 # type: =head2
12778 #: ../src/guestfs-actions.pod:4896
12779 msgid "guestfs_setcon"
12780 msgstr ""
12781
12782 # type: verbatim
12783 #: ../src/guestfs-actions.pod:4898
12784 #, no-wrap
12785 msgid ""
12786 " int\n"
12787 " guestfs_setcon (guestfs_h *g,\n"
12788 "                 const char *context);\n"
12789 "\n"
12790 msgstr ""
12791
12792 # type: textblock
12793 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3609
12794 msgid ""
12795 "This sets the SELinux security context of the daemon to the string "
12796 "C<context>."
12797 msgstr ""
12798
12799 # type: textblock
12800 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3612
12801 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12802 msgstr ""
12803
12804 # type: =head2
12805 #: ../src/guestfs-actions.pod:4909
12806 msgid "guestfs_setxattr"
12807 msgstr ""
12808
12809 # type: verbatim
12810 #: ../src/guestfs-actions.pod:4911
12811 #, no-wrap
12812 msgid ""
12813 " int\n"
12814 " guestfs_setxattr (guestfs_h *g,\n"
12815 "                   const char *xattr,\n"
12816 "                   const char *val,\n"
12817 "                   int vallen,\n"
12818 "                   const char *path);\n"
12819 "\n"
12820 msgstr ""
12821
12822 # type: textblock
12823 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3618
12824 msgid ""
12825 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12826 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12827 msgstr ""
12828
12829 # type: textblock
12830 #: ../src/guestfs-actions.pod:4922
12831 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12832 msgstr ""
12833
12834 # type: =head2
12835 #: ../src/guestfs-actions.pod:4926
12836 msgid "guestfs_sfdisk"
12837 msgstr ""
12838
12839 # type: verbatim
12840 #: ../src/guestfs-actions.pod:4928
12841 #, no-wrap
12842 msgid ""
12843 " int\n"
12844 " guestfs_sfdisk (guestfs_h *g,\n"
12845 "                 const char *device,\n"
12846 "                 int cyls,\n"
12847 "                 int heads,\n"
12848 "                 int sectors,\n"
12849 "                 char *const *lines);\n"
12850 "\n"
12851 msgstr ""
12852
12853 # type: textblock
12854 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3628
12855 msgid ""
12856 "This is a direct interface to the L<sfdisk(8)> program for creating "
12857 "partitions on block devices."
12858 msgstr ""
12859
12860 # type: textblock
12861 #: ../src/guestfs-actions.pod:4939 ../fish/guestfish-actions.pod:3631
12862 msgid "C<device> should be a block device, for example C</dev/sda>."
12863 msgstr ""
12864
12865 # type: textblock
12866 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3633
12867 msgid ""
12868 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12869 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
12870 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12871 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12872 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12873 "the kernel) cannot work out the right geometry and you will need to tell it."
12874 msgstr ""
12875
12876 # type: textblock
12877 #: ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3641
12878 msgid ""
12879 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12880 "refer to the L<sfdisk(8)> manpage."
12881 msgstr ""
12882
12883 # type: textblock
12884 #: ../src/guestfs-actions.pod:4952 ../fish/guestfish-actions.pod:3644
12885 msgid ""
12886 "To create a single partition occupying the whole disk, you would pass "
12887 "C<lines> as a single element list, when the single element being the string "
12888 "C<,> (comma)."
12889 msgstr ""
12890
12891 # type: textblock
12892 #: ../src/guestfs-actions.pod:4956
12893 msgid ""
12894 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12895 msgstr ""
12896
12897 # type: =head2
12898 #: ../src/guestfs-actions.pod:4964
12899 msgid "guestfs_sfdiskM"
12900 msgstr ""
12901
12902 # type: verbatim
12903 #: ../src/guestfs-actions.pod:4966
12904 #, no-wrap
12905 msgid ""
12906 " int\n"
12907 " guestfs_sfdiskM (guestfs_h *g,\n"
12908 "                  const char *device,\n"
12909 "                  char *const *lines);\n"
12910 "\n"
12911 msgstr ""
12912
12913 # type: textblock
12914 #: ../src/guestfs-actions.pod:4971
12915 msgid ""
12916 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12917 "partition sizes are specified in megabytes only (rounded to the nearest "
12918 "cylinder) and you don't need to specify the cyls, heads and sectors "
12919 "parameters which were rarely if ever used anyway."
12920 msgstr ""
12921
12922 # type: textblock
12923 #: ../src/guestfs-actions.pod:4977
12924 msgid ""
12925 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12926 "C<guestfs_part_disk>"
12927 msgstr ""
12928
12929 # type: =head2
12930 #: ../src/guestfs-actions.pod:4985
12931 msgid "guestfs_sfdisk_N"
12932 msgstr ""
12933
12934 # type: verbatim
12935 #: ../src/guestfs-actions.pod:4987
12936 #, no-wrap
12937 msgid ""
12938 " int\n"
12939 " guestfs_sfdisk_N (guestfs_h *g,\n"
12940 "                   const char *device,\n"
12941 "                   int partnum,\n"
12942 "                   int cyls,\n"
12943 "                   int heads,\n"
12944 "                   int sectors,\n"
12945 "                   const char *line);\n"
12946 "\n"
12947 msgstr ""
12948
12949 # type: textblock
12950 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3674
12951 msgid ""
12952 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12953 "(note: C<n> counts from 1)."
12954 msgstr ""
12955
12956 # type: textblock
12957 #: ../src/guestfs-actions.pod:4999
12958 msgid ""
12959 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12960 "for the cyls/heads/sectors parameters."
12961 msgstr ""
12962
12963 # type: textblock
12964 #: ../src/guestfs-actions.pod:5002
12965 msgid "See also: C<guestfs_part_add>"
12966 msgstr ""
12967
12968 # type: =head2
12969 #: ../src/guestfs-actions.pod:5009
12970 msgid "guestfs_sfdisk_disk_geometry"
12971 msgstr ""
12972
12973 # type: verbatim
12974 #: ../src/guestfs-actions.pod:5011
12975 #, no-wrap
12976 msgid ""
12977 " char *\n"
12978 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12979 "                               const char *device);\n"
12980 "\n"
12981 msgstr ""
12982
12983 # type: textblock
12984 #: ../src/guestfs-actions.pod:5015
12985 msgid ""
12986 "This displays the disk geometry of C<device> read from the partition table.  "
12987 "Especially in the case where the underlying block device has been resized, "
12988 "this can be different from the kernel's idea of the geometry (see "
12989 "C<guestfs_sfdisk_kernel_geometry>)."
12990 msgstr ""
12991
12992 # type: textblock
12993 #: ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5034
12994 #: ../fish/guestfish-actions.pod:3694 ../fish/guestfish-actions.pod:3703
12995 msgid "The result is in human-readable format, and not designed to be parsed."
12996 msgstr ""
12997
12998 # type: =head2
12999 #: ../src/guestfs-actions.pod:5026
13000 msgid "guestfs_sfdisk_kernel_geometry"
13001 msgstr ""
13002
13003 # type: verbatim
13004 #: ../src/guestfs-actions.pod:5028
13005 #, no-wrap
13006 msgid ""
13007 " char *\n"
13008 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13009 "                                 const char *device);\n"
13010 "\n"
13011 msgstr ""
13012
13013 # type: textblock
13014 #: ../src/guestfs-actions.pod:5032 ../fish/guestfish-actions.pod:3701
13015 msgid "This displays the kernel's idea of the geometry of C<device>."
13016 msgstr ""
13017
13018 # type: =head2
13019 #: ../src/guestfs-actions.pod:5040
13020 msgid "guestfs_sfdisk_l"
13021 msgstr ""
13022
13023 # type: verbatim
13024 #: ../src/guestfs-actions.pod:5042
13025 #, no-wrap
13026 msgid ""
13027 " char *\n"
13028 " guestfs_sfdisk_l (guestfs_h *g,\n"
13029 "                   const char *device);\n"
13030 "\n"
13031 msgstr ""
13032
13033 # type: textblock
13034 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3710
13035 msgid ""
13036 "This displays the partition table on C<device>, in the human-readable output "
13037 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13038 msgstr ""
13039
13040 # type: textblock
13041 #: ../src/guestfs-actions.pod:5050
13042 msgid "See also: C<guestfs_part_list>"
13043 msgstr ""
13044
13045 # type: =head2
13046 #: ../src/guestfs-actions.pod:5055
13047 msgid "guestfs_sh"
13048 msgstr ""
13049
13050 # type: verbatim
13051 #: ../src/guestfs-actions.pod:5057
13052 #, no-wrap
13053 msgid ""
13054 " char *\n"
13055 " guestfs_sh (guestfs_h *g,\n"
13056 "             const char *command);\n"
13057 "\n"
13058 msgstr ""
13059
13060 # type: textblock
13061 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3720
13062 msgid ""
13063 "This call runs a command from the guest filesystem via the guest's C</bin/"
13064 "sh>."
13065 msgstr ""
13066
13067 # type: textblock
13068 #: ../src/guestfs-actions.pod:5064
13069 msgid "This is like C<guestfs_command>, but passes the command to:"
13070 msgstr ""
13071
13072 # type: verbatim
13073 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3725
13074 #, no-wrap
13075 msgid ""
13076 " /bin/sh -c \"command\"\n"
13077 "\n"
13078 msgstr ""
13079
13080 # type: textblock
13081 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3727
13082 msgid ""
13083 "Depending on the guest's shell, this usually results in wildcards being "
13084 "expanded, shell expressions being interpolated and so on."
13085 msgstr ""
13086
13087 # type: textblock
13088 #: ../src/guestfs-actions.pod:5072
13089 msgid "All the provisos about C<guestfs_command> apply to this call."
13090 msgstr ""
13091
13092 # type: =head2
13093 #: ../src/guestfs-actions.pod:5077
13094 msgid "guestfs_sh_lines"
13095 msgstr ""
13096
13097 # type: verbatim
13098 #: ../src/guestfs-actions.pod:5079
13099 #, no-wrap
13100 msgid ""
13101 " char **\n"
13102 " guestfs_sh_lines (guestfs_h *g,\n"
13103 "                   const char *command);\n"
13104 "\n"
13105 msgstr ""
13106
13107 # type: textblock
13108 #: ../src/guestfs-actions.pod:5083
13109 msgid ""
13110 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13111 "lines."
13112 msgstr ""
13113
13114 # type: textblock
13115 #: ../src/guestfs-actions.pod:5086
13116 msgid "See also: C<guestfs_command_lines>"
13117 msgstr ""
13118
13119 # type: =head2
13120 #: ../src/guestfs-actions.pod:5092
13121 msgid "guestfs_sleep"
13122 msgstr ""
13123
13124 # type: verbatim
13125 #: ../src/guestfs-actions.pod:5094
13126 #, no-wrap
13127 msgid ""
13128 " int\n"
13129 " guestfs_sleep (guestfs_h *g,\n"
13130 "                int secs);\n"
13131 "\n"
13132 msgstr ""
13133
13134 # type: textblock
13135 #: ../src/guestfs-actions.pod:5098 ../fish/guestfish-actions.pod:3746
13136 msgid "Sleep for C<secs> seconds."
13137 msgstr ""
13138
13139 # type: =head2
13140 #: ../src/guestfs-actions.pod:5102 ../src/guestfs-structs.pod:109
13141 msgid "guestfs_stat"
13142 msgstr ""
13143
13144 # type: verbatim
13145 #: ../src/guestfs-actions.pod:5104
13146 #, no-wrap
13147 msgid ""
13148 " struct guestfs_stat *\n"
13149 " guestfs_stat (guestfs_h *g,\n"
13150 "               const char *path);\n"
13151 "\n"
13152 msgstr ""
13153
13154 # type: textblock
13155 #: ../src/guestfs-actions.pod:5110 ../fish/guestfish-actions.pod:3754
13156 msgid "This is the same as the C<stat(2)> system call."
13157 msgstr ""
13158
13159 # type: =head2
13160 #: ../src/guestfs-actions.pod:5116 ../src/guestfs-structs.pod:135
13161 msgid "guestfs_statvfs"
13162 msgstr ""
13163
13164 # type: verbatim
13165 #: ../src/guestfs-actions.pod:5118
13166 #, no-wrap
13167 msgid ""
13168 " struct guestfs_statvfs *\n"
13169 " guestfs_statvfs (guestfs_h *g,\n"
13170 "                  const char *path);\n"
13171 "\n"
13172 msgstr ""
13173
13174 # type: textblock
13175 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3760
13176 msgid ""
13177 "Returns file system statistics for any mounted file system.  C<path> should "
13178 "be a file or directory in the mounted file system (typically it is the mount "
13179 "point itself, but it doesn't need to be)."
13180 msgstr ""
13181
13182 # type: textblock
13183 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3764
13184 msgid "This is the same as the C<statvfs(2)> system call."
13185 msgstr ""
13186
13187 # type: textblock
13188 #: ../src/guestfs-actions.pod:5128
13189 msgid ""
13190 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13191 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13192 msgstr ""
13193
13194 # type: =head2
13195 #: ../src/guestfs-actions.pod:5132
13196 msgid "guestfs_strings"
13197 msgstr ""
13198
13199 # type: verbatim
13200 #: ../src/guestfs-actions.pod:5134
13201 #, no-wrap
13202 msgid ""
13203 " char **\n"
13204 " guestfs_strings (guestfs_h *g,\n"
13205 "                  const char *path);\n"
13206 "\n"
13207 msgstr ""
13208
13209 # type: textblock
13210 #: ../src/guestfs-actions.pod:5138 ../fish/guestfish-actions.pod:3770
13211 msgid ""
13212 "This runs the L<strings(1)> command on a file and returns the list of "
13213 "printable strings found."
13214 msgstr ""
13215
13216 # type: =head2
13217 #: ../src/guestfs-actions.pod:5148
13218 msgid "guestfs_strings_e"
13219 msgstr ""
13220
13221 # type: verbatim
13222 #: ../src/guestfs-actions.pod:5150
13223 #, no-wrap
13224 msgid ""
13225 " char **\n"
13226 " guestfs_strings_e (guestfs_h *g,\n"
13227 "                    const char *encoding,\n"
13228 "                    const char *path);\n"
13229 "\n"
13230 msgstr ""
13231
13232 # type: textblock
13233 #: ../src/guestfs-actions.pod:5155
13234 msgid ""
13235 "This is like the C<guestfs_strings> command, but allows you to specify the "
13236 "encoding of strings that are looked for in the source file C<path>."
13237 msgstr ""
13238
13239 # type: textblock
13240 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3784
13241 msgid "Allowed encodings are:"
13242 msgstr ""
13243
13244 # type: =item
13245 #: ../src/guestfs-actions.pod:5163 ../fish/guestfish-actions.pod:3788
13246 msgid "s"
13247 msgstr ""
13248
13249 # type: textblock
13250 #: ../src/guestfs-actions.pod:5165
13251 msgid ""
13252 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13253 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13254 msgstr ""
13255
13256 # type: =item
13257 #: ../src/guestfs-actions.pod:5168 ../fish/guestfish-actions.pod:3793
13258 msgid "S"
13259 msgstr ""
13260
13261 # type: textblock
13262 #: ../src/guestfs-actions.pod:5170 ../fish/guestfish-actions.pod:3795
13263 msgid "Single 8-bit-byte characters."
13264 msgstr ""
13265
13266 # type: =item
13267 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3797
13268 msgid "b"
13269 msgstr ""
13270
13271 # type: textblock
13272 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3799
13273 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13274 msgstr ""
13275
13276 # type: =item
13277 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:3802
13278 msgid "l (lower case letter L)"
13279 msgstr ""
13280
13281 # type: textblock
13282 #: ../src/guestfs-actions.pod:5179 ../fish/guestfish-actions.pod:3804
13283 msgid ""
13284 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13285 "examining binaries in Windows guests."
13286 msgstr ""
13287
13288 # type: =item
13289 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3807
13290 msgid "B"
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5184 ../fish/guestfish-actions.pod:3809
13295 msgid "32-bit big endian such as UCS-4BE."
13296 msgstr ""
13297
13298 # type: =item
13299 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3811
13300 msgid "L"
13301 msgstr ""
13302
13303 # type: textblock
13304 #: ../src/guestfs-actions.pod:5188 ../fish/guestfish-actions.pod:3813
13305 msgid "32-bit little endian such as UCS-4LE."
13306 msgstr ""
13307
13308 # type: textblock
13309 #: ../src/guestfs-actions.pod:5192 ../fish/guestfish-actions.pod:3817
13310 msgid "The returned strings are transcoded to UTF-8."
13311 msgstr ""
13312
13313 # type: =head2
13314 #: ../src/guestfs-actions.pod:5201
13315 msgid "guestfs_swapoff_device"
13316 msgstr ""
13317
13318 # type: verbatim
13319 #: ../src/guestfs-actions.pod:5203
13320 #, no-wrap
13321 msgid ""
13322 " int\n"
13323 " guestfs_swapoff_device (guestfs_h *g,\n"
13324 "                         const char *device);\n"
13325 "\n"
13326 msgstr ""
13327
13328 # type: textblock
13329 #: ../src/guestfs-actions.pod:5207
13330 msgid ""
13331 "This command disables the libguestfs appliance swap device or partition "
13332 "named C<device>.  See C<guestfs_swapon_device>."
13333 msgstr ""
13334
13335 # type: =head2
13336 #: ../src/guestfs-actions.pod:5213
13337 msgid "guestfs_swapoff_file"
13338 msgstr ""
13339
13340 # type: verbatim
13341 #: ../src/guestfs-actions.pod:5215
13342 #, no-wrap
13343 msgid ""
13344 " int\n"
13345 " guestfs_swapoff_file (guestfs_h *g,\n"
13346 "                       const char *file);\n"
13347 "\n"
13348 msgstr ""
13349
13350 # type: textblock
13351 #: ../src/guestfs-actions.pod:5219 ../fish/guestfish-actions.pod:3834
13352 msgid "This command disables the libguestfs appliance swap on file."
13353 msgstr ""
13354
13355 # type: =head2
13356 #: ../src/guestfs-actions.pod:5223
13357 msgid "guestfs_swapoff_label"
13358 msgstr ""
13359
13360 # type: verbatim
13361 #: ../src/guestfs-actions.pod:5225
13362 #, no-wrap
13363 msgid ""
13364 " int\n"
13365 " guestfs_swapoff_label (guestfs_h *g,\n"
13366 "                        const char *label);\n"
13367 "\n"
13368 msgstr ""
13369
13370 # type: textblock
13371 #: ../src/guestfs-actions.pod:5229 ../fish/guestfish-actions.pod:3840
13372 msgid ""
13373 "This command disables the libguestfs appliance swap on labeled swap "
13374 "partition."
13375 msgstr ""
13376
13377 # type: =head2
13378 #: ../src/guestfs-actions.pod:5234
13379 msgid "guestfs_swapoff_uuid"
13380 msgstr ""
13381
13382 # type: verbatim
13383 #: ../src/guestfs-actions.pod:5236
13384 #, no-wrap
13385 msgid ""
13386 " int\n"
13387 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13388 "                       const char *uuid);\n"
13389 "\n"
13390 msgstr ""
13391
13392 # type: textblock
13393 #: ../src/guestfs-actions.pod:5240 ../fish/guestfish-actions.pod:3847
13394 msgid ""
13395 "This command disables the libguestfs appliance swap partition with the given "
13396 "UUID."
13397 msgstr ""
13398
13399 # type: =head2
13400 #: ../src/guestfs-actions.pod:5245
13401 msgid "guestfs_swapon_device"
13402 msgstr ""
13403
13404 # type: verbatim
13405 #: ../src/guestfs-actions.pod:5247
13406 #, no-wrap
13407 msgid ""
13408 " int\n"
13409 " guestfs_swapon_device (guestfs_h *g,\n"
13410 "                        const char *device);\n"
13411 "\n"
13412 msgstr ""
13413
13414 # type: textblock
13415 #: ../src/guestfs-actions.pod:5251
13416 msgid ""
13417 "This command enables the libguestfs appliance to use the swap device or "
13418 "partition named C<device>.  The increased memory is made available for all "
13419 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13420 msgstr ""
13421
13422 # type: textblock
13423 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:3859
13424 msgid ""
13425 "Note that you should not swap to existing guest swap partitions unless you "
13426 "know what you are doing.  They may contain hibernation information, or other "
13427 "information that the guest doesn't want you to trash.  You also risk leaking "
13428 "information about the host to the guest this way.  Instead, attach a new "
13429 "host device to the guest and swap on that."
13430 msgstr ""
13431
13432 # type: =head2
13433 #: ../src/guestfs-actions.pod:5265
13434 msgid "guestfs_swapon_file"
13435 msgstr ""
13436
13437 # type: verbatim
13438 #: ../src/guestfs-actions.pod:5267
13439 #, no-wrap
13440 msgid ""
13441 " int\n"
13442 " guestfs_swapon_file (guestfs_h *g,\n"
13443 "                      const char *file);\n"
13444 "\n"
13445 msgstr ""
13446
13447 # type: textblock
13448 #: ../src/guestfs-actions.pod:5271
13449 msgid ""
13450 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13451 "notes."
13452 msgstr ""
13453
13454 # type: =head2
13455 #: ../src/guestfs-actions.pod:5276
13456 msgid "guestfs_swapon_label"
13457 msgstr ""
13458
13459 # type: verbatim
13460 #: ../src/guestfs-actions.pod:5278
13461 #, no-wrap
13462 msgid ""
13463 " int\n"
13464 " guestfs_swapon_label (guestfs_h *g,\n"
13465 "                       const char *label);\n"
13466 "\n"
13467 msgstr ""
13468
13469 # type: textblock
13470 #: ../src/guestfs-actions.pod:5282
13471 msgid ""
13472 "This command enables swap to a labeled swap partition.  See "
13473 "C<guestfs_swapon_device> for other notes."
13474 msgstr ""
13475
13476 # type: =head2
13477 #: ../src/guestfs-actions.pod:5287
13478 msgid "guestfs_swapon_uuid"
13479 msgstr ""
13480
13481 # type: verbatim
13482 #: ../src/guestfs-actions.pod:5289
13483 #, no-wrap
13484 msgid ""
13485 " int\n"
13486 " guestfs_swapon_uuid (guestfs_h *g,\n"
13487 "                      const char *uuid);\n"
13488 "\n"
13489 msgstr ""
13490
13491 # type: textblock
13492 #: ../src/guestfs-actions.pod:5293
13493 msgid ""
13494 "This command enables swap to a swap partition with the given UUID.  See "
13495 "C<guestfs_swapon_device> for other notes."
13496 msgstr ""
13497
13498 # type: =head2
13499 #: ../src/guestfs-actions.pod:5298
13500 msgid "guestfs_sync"
13501 msgstr ""
13502
13503 # type: verbatim
13504 #: ../src/guestfs-actions.pod:5300
13505 #, no-wrap
13506 msgid ""
13507 " int\n"
13508 " guestfs_sync (guestfs_h *g);\n"
13509 "\n"
13510 msgstr ""
13511
13512 # type: textblock
13513 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3891
13514 msgid ""
13515 "This syncs the disk, so that any writes are flushed through to the "
13516 "underlying disk image."
13517 msgstr ""
13518
13519 # type: textblock
13520 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:3894
13521 msgid ""
13522 "You should always call this if you have modified a disk image, before "
13523 "closing the handle."
13524 msgstr ""
13525
13526 # type: =head2
13527 #: ../src/guestfs-actions.pod:5311
13528 msgid "guestfs_tail"
13529 msgstr ""
13530
13531 # type: verbatim
13532 #: ../src/guestfs-actions.pod:5313
13533 #, no-wrap
13534 msgid ""
13535 " char **\n"
13536 " guestfs_tail (guestfs_h *g,\n"
13537 "               const char *path);\n"
13538 "\n"
13539 msgstr ""
13540
13541 # type: textblock
13542 #: ../src/guestfs-actions.pod:5317 ../fish/guestfish-actions.pod:3901
13543 msgid ""
13544 "This command returns up to the last 10 lines of a file as a list of strings."
13545 msgstr ""
13546
13547 # type: =head2
13548 #: ../src/guestfs-actions.pod:5327
13549 msgid "guestfs_tail_n"
13550 msgstr ""
13551
13552 # type: verbatim
13553 #: ../src/guestfs-actions.pod:5329
13554 #, no-wrap
13555 msgid ""
13556 " char **\n"
13557 " guestfs_tail_n (guestfs_h *g,\n"
13558 "                 int nrlines,\n"
13559 "                 const char *path);\n"
13560 "\n"
13561 msgstr ""
13562
13563 # type: textblock
13564 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:3911
13565 msgid ""
13566 "If the parameter C<nrlines> is a positive number, this returns the last "
13567 "C<nrlines> lines of the file C<path>."
13568 msgstr ""
13569
13570 # type: textblock
13571 #: ../src/guestfs-actions.pod:5337 ../fish/guestfish-actions.pod:3914
13572 msgid ""
13573 "If the parameter C<nrlines> is a negative number, this returns lines from "
13574 "the file C<path>, starting with the C<-nrlines>th line."
13575 msgstr ""
13576
13577 # type: =head2
13578 #: ../src/guestfs-actions.pod:5349
13579 msgid "guestfs_tar_in"
13580 msgstr ""
13581
13582 # type: verbatim
13583 #: ../src/guestfs-actions.pod:5351
13584 #, no-wrap
13585 msgid ""
13586 " int\n"
13587 " guestfs_tar_in (guestfs_h *g,\n"
13588 "                 const char *tarfile,\n"
13589 "                 const char *directory);\n"
13590 "\n"
13591 msgstr ""
13592
13593 # type: textblock
13594 #: ../src/guestfs-actions.pod:5356 ../fish/guestfish-actions.pod:3926
13595 msgid ""
13596 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13597 "tar file) into C<directory>."
13598 msgstr ""
13599
13600 # type: textblock
13601 #: ../src/guestfs-actions.pod:5359
13602 msgid ""
13603 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13604 msgstr ""
13605
13606 # type: =head2
13607 #: ../src/guestfs-actions.pod:5364
13608 msgid "guestfs_tar_out"
13609 msgstr ""
13610
13611 # type: verbatim
13612 #: ../src/guestfs-actions.pod:5366
13613 #, no-wrap
13614 msgid ""
13615 " int\n"
13616 " guestfs_tar_out (guestfs_h *g,\n"
13617 "                  const char *directory,\n"
13618 "                  const char *tarfile);\n"
13619 "\n"
13620 msgstr ""
13621
13622 # type: textblock
13623 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:3938
13624 msgid ""
13625 "This command packs the contents of C<directory> and downloads it to local "
13626 "file C<tarfile>."
13627 msgstr ""
13628
13629 # type: textblock
13630 #: ../src/guestfs-actions.pod:5374
13631 msgid ""
13632 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13633 "C<guestfs_txz_out>."
13634 msgstr ""
13635
13636 # type: =head2
13637 #: ../src/guestfs-actions.pod:5379
13638 msgid "guestfs_tgz_in"
13639 msgstr ""
13640
13641 # type: verbatim
13642 #: ../src/guestfs-actions.pod:5381
13643 #, no-wrap
13644 msgid ""
13645 " int\n"
13646 " guestfs_tgz_in (guestfs_h *g,\n"
13647 "                 const char *tarball,\n"
13648 "                 const char *directory);\n"
13649 "\n"
13650 msgstr ""
13651
13652 # type: textblock
13653 #: ../src/guestfs-actions.pod:5386 ../fish/guestfish-actions.pod:3950
13654 msgid ""
13655 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13656 "tar file) into C<directory>."
13657 msgstr ""
13658
13659 # type: textblock
13660 #: ../src/guestfs-actions.pod:5389
13661 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13662 msgstr ""
13663
13664 # type: =head2
13665 #: ../src/guestfs-actions.pod:5393
13666 msgid "guestfs_tgz_out"
13667 msgstr ""
13668
13669 # type: verbatim
13670 #: ../src/guestfs-actions.pod:5395
13671 #, no-wrap
13672 msgid ""
13673 " int\n"
13674 " guestfs_tgz_out (guestfs_h *g,\n"
13675 "                  const char *directory,\n"
13676 "                  const char *tarball);\n"
13677 "\n"
13678 msgstr ""
13679
13680 # type: textblock
13681 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3961
13682 msgid ""
13683 "This command packs the contents of C<directory> and downloads it to local "
13684 "file C<tarball>."
13685 msgstr ""
13686
13687 # type: textblock
13688 #: ../src/guestfs-actions.pod:5403
13689 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13690 msgstr ""
13691
13692 # type: =head2
13693 #: ../src/guestfs-actions.pod:5407
13694 msgid "guestfs_touch"
13695 msgstr ""
13696
13697 # type: verbatim
13698 #: ../src/guestfs-actions.pod:5409
13699 #, no-wrap
13700 msgid ""
13701 " int\n"
13702 " guestfs_touch (guestfs_h *g,\n"
13703 "                const char *path);\n"
13704 "\n"
13705 msgstr ""
13706
13707 # type: textblock
13708 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3972
13709 msgid ""
13710 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13711 "timestamps on a file, or, if the file does not exist, to create a new zero-"
13712 "length file."
13713 msgstr ""
13714
13715 # type: textblock
13716 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3976
13717 msgid ""
13718 "This command only works on regular files, and will fail on other file types "
13719 "such as directories, symbolic links, block special etc."
13720 msgstr ""
13721
13722 # type: =head2
13723 #: ../src/guestfs-actions.pod:5422
13724 msgid "guestfs_truncate"
13725 msgstr ""
13726
13727 # type: verbatim
13728 #: ../src/guestfs-actions.pod:5424
13729 #, no-wrap
13730 msgid ""
13731 " int\n"
13732 " guestfs_truncate (guestfs_h *g,\n"
13733 "                   const char *path);\n"
13734 "\n"
13735 msgstr ""
13736
13737 # type: textblock
13738 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3983
13739 msgid ""
13740 "This command truncates C<path> to a zero-length file.  The file must exist "
13741 "already."
13742 msgstr ""
13743
13744 # type: =head2
13745 #: ../src/guestfs-actions.pod:5433
13746 msgid "guestfs_truncate_size"
13747 msgstr ""
13748
13749 # type: verbatim
13750 #: ../src/guestfs-actions.pod:5435
13751 #, no-wrap
13752 msgid ""
13753 " int\n"
13754 " guestfs_truncate_size (guestfs_h *g,\n"
13755 "                        const char *path,\n"
13756 "                        int64_t size);\n"
13757 "\n"
13758 msgstr ""
13759
13760 # type: textblock
13761 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3990
13762 msgid ""
13763 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13764 "already."
13765 msgstr ""
13766
13767 # type: textblock
13768 #: ../src/guestfs-actions.pod:5443
13769 msgid ""
13770 "If the current file size is less than C<size> then the file is extended to "
13771 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13772 "blocks are not allocated for the file until you write to it).  To create a "
13773 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13774 msgstr ""
13775
13776 # type: =head2
13777 #: ../src/guestfs-actions.pod:5451
13778 msgid "guestfs_tune2fs_l"
13779 msgstr ""
13780
13781 # type: verbatim
13782 #: ../src/guestfs-actions.pod:5453
13783 #, no-wrap
13784 msgid ""
13785 " char **\n"
13786 " guestfs_tune2fs_l (guestfs_h *g,\n"
13787 "                    const char *device);\n"
13788 "\n"
13789 msgstr ""
13790
13791 # type: textblock
13792 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:4003
13793 msgid ""
13794 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13795 "C<device>."
13796 msgstr ""
13797
13798 # type: textblock
13799 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:4006
13800 msgid ""
13801 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13802 "for more details.  The list of fields returned isn't clearly defined, and "
13803 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13804 "and the filesystem itself."
13805 msgstr ""
13806
13807 # type: =head2
13808 #: ../src/guestfs-actions.pod:5471
13809 msgid "guestfs_txz_in"
13810 msgstr ""
13811
13812 # type: verbatim
13813 #: ../src/guestfs-actions.pod:5473
13814 #, no-wrap
13815 msgid ""
13816 " int\n"
13817 " guestfs_txz_in (guestfs_h *g,\n"
13818 "                 const char *tarball,\n"
13819 "                 const char *directory);\n"
13820 "\n"
13821 msgstr ""
13822
13823 # type: textblock
13824 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:4015
13825 msgid ""
13826 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13827 "tar file) into C<directory>."
13828 msgstr ""
13829
13830 # type: =head2
13831 #: ../src/guestfs-actions.pod:5483
13832 msgid "guestfs_txz_out"
13833 msgstr ""
13834
13835 # type: verbatim
13836 #: ../src/guestfs-actions.pod:5485
13837 #, no-wrap
13838 msgid ""
13839 " int\n"
13840 " guestfs_txz_out (guestfs_h *g,\n"
13841 "                  const char *directory,\n"
13842 "                  const char *tarball);\n"
13843 "\n"
13844 msgstr ""
13845
13846 # type: textblock
13847 #: ../src/guestfs-actions.pod:5490 ../fish/guestfish-actions.pod:4024
13848 msgid ""
13849 "This command packs the contents of C<directory> and downloads it to local "
13850 "file C<tarball> (as an xz compressed tar archive)."
13851 msgstr ""
13852
13853 # type: =head2
13854 #: ../src/guestfs-actions.pod:5495
13855 msgid "guestfs_umask"
13856 msgstr ""
13857
13858 # type: verbatim
13859 #: ../src/guestfs-actions.pod:5497
13860 #, no-wrap
13861 msgid ""
13862 " int\n"
13863 " guestfs_umask (guestfs_h *g,\n"
13864 "                int mask);\n"
13865 "\n"
13866 msgstr ""
13867
13868 # type: textblock
13869 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:4033
13870 msgid ""
13871 "This function sets the mask used for creating new files and device nodes to "
13872 "C<mask & 0777>."
13873 msgstr ""
13874
13875 # type: textblock
13876 #: ../src/guestfs-actions.pod:5504 ../fish/guestfish-actions.pod:4036
13877 msgid ""
13878 "Typical umask values would be C<022> which creates new files with "
13879 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13880 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13881 msgstr ""
13882
13883 # type: textblock
13884 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:4041
13885 msgid ""
13886 "The default umask is C<022>.  This is important because it means that "
13887 "directories and device nodes will be created with C<0644> or C<0755> mode "
13888 "even if you specify C<0777>."
13889 msgstr ""
13890
13891 # type: textblock
13892 #: ../src/guestfs-actions.pod:5513
13893 msgid ""
13894 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13895 "C<guestfs_mkdir>."
13896 msgstr ""
13897
13898 # type: textblock
13899 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:4048
13900 msgid "This call returns the previous umask."
13901 msgstr ""
13902
13903 # type: =head2
13904 #: ../src/guestfs-actions.pod:5520
13905 msgid "guestfs_umount"
13906 msgstr ""
13907
13908 # type: verbatim
13909 #: ../src/guestfs-actions.pod:5522
13910 #, no-wrap
13911 msgid ""
13912 " int\n"
13913 " guestfs_umount (guestfs_h *g,\n"
13914 "                 const char *pathordevice);\n"
13915 "\n"
13916 msgstr ""
13917
13918 # type: textblock
13919 #: ../src/guestfs-actions.pod:5526 ../fish/guestfish-actions.pod:4056
13920 msgid ""
13921 "This unmounts the given filesystem.  The filesystem may be specified either "
13922 "by its mountpoint (path) or the device which contains the filesystem."
13923 msgstr ""
13924
13925 # type: =head2
13926 #: ../src/guestfs-actions.pod:5532
13927 msgid "guestfs_umount_all"
13928 msgstr ""
13929
13930 # type: verbatim
13931 #: ../src/guestfs-actions.pod:5534
13932 #, no-wrap
13933 msgid ""
13934 " int\n"
13935 " guestfs_umount_all (guestfs_h *g);\n"
13936 "\n"
13937 msgstr ""
13938
13939 # type: textblock
13940 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:4066
13941 msgid "This unmounts all mounted filesystems."
13942 msgstr ""
13943
13944 # type: textblock
13945 #: ../src/guestfs-actions.pod:5539 ../fish/guestfish-actions.pod:4068
13946 msgid "Some internal mounts are not unmounted by this call."
13947 msgstr ""
13948
13949 # type: =head2
13950 #: ../src/guestfs-actions.pod:5543
13951 msgid "guestfs_upload"
13952 msgstr ""
13953
13954 # type: verbatim
13955 #: ../src/guestfs-actions.pod:5545
13956 #, no-wrap
13957 msgid ""
13958 " int\n"
13959 " guestfs_upload (guestfs_h *g,\n"
13960 "                 const char *filename,\n"
13961 "                 const char *remotefilename);\n"
13962 "\n"
13963 msgstr ""
13964
13965 # type: textblock
13966 #: ../src/guestfs-actions.pod:5550 ../src/guestfs-actions.pod:5567
13967 #: ../fish/guestfish-actions.pod:4074 ../fish/guestfish-actions.pod:4087
13968 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13969 msgstr ""
13970
13971 # type: textblock
13972 #: ../src/guestfs-actions.pod:5555
13973 msgid "See also C<guestfs_download>."
13974 msgstr ""
13975
13976 # type: =head2
13977 #: ../src/guestfs-actions.pod:5559
13978 msgid "guestfs_upload_offset"
13979 msgstr ""
13980
13981 # type: verbatim
13982 #: ../src/guestfs-actions.pod:5561
13983 #, no-wrap
13984 msgid ""
13985 " int\n"
13986 " guestfs_upload_offset (guestfs_h *g,\n"
13987 "                        const char *filename,\n"
13988 "                        const char *remotefilename,\n"
13989 "                        int64_t offset);\n"
13990 "\n"
13991 msgstr ""
13992
13993 # type: textblock
13994 #: ../src/guestfs-actions.pod:5570 ../fish/guestfish-actions.pod:4090
13995 msgid ""
13996 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13997 "The intention is to overwrite parts of existing files or devices, although "
13998 "if a non-existant file is specified then it is created with a \"hole\" "
13999 "before C<offset>.  The size of the data written is implicit in the size of "
14000 "the source C<filename>."
14001 msgstr ""
14002
14003 # type: textblock
14004 #: ../src/guestfs-actions.pod:5577
14005 msgid ""
14006 "Note that there is no limit on the amount of data that can be uploaded with "
14007 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14008 "full amount unless an error occurs."
14009 msgstr ""
14010
14011 # type: textblock
14012 #: ../src/guestfs-actions.pod:5582
14013 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14014 msgstr ""
14015
14016 # type: =head2
14017 #: ../src/guestfs-actions.pod:5586
14018 msgid "guestfs_utimens"
14019 msgstr ""
14020
14021 # type: verbatim
14022 #: ../src/guestfs-actions.pod:5588
14023 #, no-wrap
14024 msgid ""
14025 " int\n"
14026 " guestfs_utimens (guestfs_h *g,\n"
14027 "                  const char *path,\n"
14028 "                  int64_t atsecs,\n"
14029 "                  int64_t atnsecs,\n"
14030 "                  int64_t mtsecs,\n"
14031 "                  int64_t mtnsecs);\n"
14032 "\n"
14033 msgstr ""
14034
14035 # type: textblock
14036 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:4110
14037 msgid "This command sets the timestamps of a file with nanosecond precision."
14038 msgstr ""
14039
14040 # type: textblock
14041 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:4113
14042 msgid ""
14043 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14044 "from the epoch."
14045 msgstr ""
14046
14047 # type: textblock
14048 #: ../src/guestfs-actions.pod:5602 ../fish/guestfish-actions.pod:4116
14049 msgid ""
14050 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14051 "nanoseconds from the epoch."
14052 msgstr ""
14053
14054 # type: textblock
14055 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:4119
14056 msgid ""
14057 "If the C<*nsecs> field contains the special value C<-1> then the "
14058 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14059 "ignored in this case)."
14060 msgstr ""
14061
14062 # type: textblock
14063 #: ../src/guestfs-actions.pod:5609 ../fish/guestfish-actions.pod:4123
14064 msgid ""
14065 "If the C<*nsecs> field contains the special value C<-2> then the "
14066 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14067 "in this case)."
14068 msgstr ""
14069
14070 # type: =head2
14071 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-structs.pod:175
14072 msgid "guestfs_version"
14073 msgstr ""
14074
14075 # type: verbatim
14076 #: ../src/guestfs-actions.pod:5617
14077 #, no-wrap
14078 msgid ""
14079 " struct guestfs_version *\n"
14080 " guestfs_version (guestfs_h *g);\n"
14081 "\n"
14082 msgstr ""
14083
14084 # type: textblock
14085 #: ../src/guestfs-actions.pod:5620 ../fish/guestfish-actions.pod:4131
14086 msgid ""
14087 "Return the libguestfs version number that the program is linked against."
14088 msgstr ""
14089
14090 # type: textblock
14091 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:4134
14092 msgid ""
14093 "Note that because of dynamic linking this is not necessarily the version of "
14094 "libguestfs that you compiled against.  You can compile the program, and then "
14095 "at runtime dynamically link against a completely different C<libguestfs.so> "
14096 "library."
14097 msgstr ""
14098
14099 # type: textblock
14100 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:4139
14101 msgid ""
14102 "This call was added in version C<1.0.58>.  In previous versions of "
14103 "libguestfs there was no way to get the version number.  From C code you can "
14104 "use dynamic linker functions to find out if this symbol exists (if it "
14105 "doesn't, then it's an earlier version)."
14106 msgstr ""
14107
14108 # type: textblock
14109 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:4145
14110 msgid ""
14111 "The call returns a structure with four elements.  The first three (C<major>, "
14112 "C<minor> and C<release>) are numbers and correspond to the usual version "
14113 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14114 "but may be used for distro-specific information."
14115 msgstr ""
14116
14117 # type: textblock
14118 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:4151
14119 msgid ""
14120 "To construct the original version string: C<$major.$minor.$release$extra>"
14121 msgstr ""
14122
14123 # type: textblock
14124 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:4154
14125 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14126 msgstr ""
14127
14128 # type: textblock
14129 #: ../src/guestfs-actions.pod:5645
14130 msgid ""
14131 "I<Note:> Don't use this call to test for availability of features.  In "
14132 "enterprise distributions we backport features from later versions into "
14133 "earlier versions, making this an unreliable way to test for features.  Use "
14134 "C<guestfs_available> instead."
14135 msgstr ""
14136
14137 # type: textblock
14138 #: ../src/guestfs-actions.pod:5651
14139 msgid ""
14140 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14141 "error.  I<The caller must call C<guestfs_free_version> after use>."
14142 msgstr ""
14143
14144 # type: =head2
14145 #: ../src/guestfs-actions.pod:5655
14146 msgid "guestfs_vfs_label"
14147 msgstr ""
14148
14149 # type: verbatim
14150 #: ../src/guestfs-actions.pod:5657
14151 #, no-wrap
14152 msgid ""
14153 " char *\n"
14154 " guestfs_vfs_label (guestfs_h *g,\n"
14155 "                    const char *device);\n"
14156 "\n"
14157 msgstr ""
14158
14159 # type: textblock
14160 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:4166
14161 msgid "This returns the filesystem label of the filesystem on C<device>."
14162 msgstr ""
14163
14164 # type: textblock
14165 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:4169
14166 msgid "If the filesystem is unlabeled, this returns the empty string."
14167 msgstr ""
14168
14169 # type: textblock
14170 #: ../src/guestfs-actions.pod:5666
14171 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14172 msgstr ""
14173
14174 # type: =head2
14175 #: ../src/guestfs-actions.pod:5671
14176 msgid "guestfs_vfs_type"
14177 msgstr ""
14178
14179 # type: verbatim
14180 #: ../src/guestfs-actions.pod:5673
14181 #, no-wrap
14182 msgid ""
14183 " char *\n"
14184 " guestfs_vfs_type (guestfs_h *g,\n"
14185 "                   const char *device);\n"
14186 "\n"
14187 msgstr ""
14188
14189 # type: textblock
14190 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:4177
14191 msgid ""
14192 "This command gets the filesystem type corresponding to the filesystem on "
14193 "C<device>."
14194 msgstr ""
14195
14196 # type: textblock
14197 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:4180
14198 msgid ""
14199 "For most filesystems, the result is the name of the Linux VFS module which "
14200 "would be used to mount this filesystem if you mounted it without specifying "
14201 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14202 msgstr ""
14203
14204 # type: =head2
14205 #: ../src/guestfs-actions.pod:5688
14206 msgid "guestfs_vfs_uuid"
14207 msgstr ""
14208
14209 # type: verbatim
14210 #: ../src/guestfs-actions.pod:5690
14211 #, no-wrap
14212 msgid ""
14213 " char *\n"
14214 " guestfs_vfs_uuid (guestfs_h *g,\n"
14215 "                   const char *device);\n"
14216 "\n"
14217 msgstr ""
14218
14219 # type: textblock
14220 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:4189
14221 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14222 msgstr ""
14223
14224 # type: textblock
14225 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:4192
14226 msgid "If the filesystem does not have a UUID, this returns the empty string."
14227 msgstr ""
14228
14229 # type: textblock
14230 #: ../src/guestfs-actions.pod:5699
14231 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14232 msgstr ""
14233
14234 # type: =head2
14235 #: ../src/guestfs-actions.pod:5704
14236 msgid "guestfs_vg_activate"
14237 msgstr ""
14238
14239 # type: verbatim
14240 #: ../src/guestfs-actions.pod:5706
14241 #, no-wrap
14242 msgid ""
14243 " int\n"
14244 " guestfs_vg_activate (guestfs_h *g,\n"
14245 "                      int activate,\n"
14246 "                      char *const *volgroups);\n"
14247 "\n"
14248 msgstr ""
14249
14250 # type: textblock
14251 #: ../src/guestfs-actions.pod:5711 ../fish/guestfish-actions.pod:4200
14252 msgid ""
14253 "This command activates or (if C<activate> is false) deactivates all logical "
14254 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14255 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14256 "deactivated, then those devices disappear."
14257 msgstr ""
14258
14259 # type: textblock
14260 #: ../src/guestfs-actions.pod:5717 ../fish/guestfish-actions.pod:4206
14261 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14262 msgstr ""
14263
14264 # type: textblock
14265 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:4208
14266 msgid ""
14267 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14268 "activated or deactivated."
14269 msgstr ""
14270
14271 # type: =head2
14272 #: ../src/guestfs-actions.pod:5724
14273 msgid "guestfs_vg_activate_all"
14274 msgstr ""
14275
14276 # type: verbatim
14277 #: ../src/guestfs-actions.pod:5726
14278 #, no-wrap
14279 msgid ""
14280 " int\n"
14281 " guestfs_vg_activate_all (guestfs_h *g,\n"
14282 "                          int activate);\n"
14283 "\n"
14284 msgstr ""
14285
14286 # type: textblock
14287 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:4215
14288 msgid ""
14289 "This command activates or (if C<activate> is false) deactivates all logical "
14290 "volumes in all volume groups.  If activated, then they are made known to the "
14291 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14292 "those devices disappear."
14293 msgstr ""
14294
14295 # type: textblock
14296 #: ../src/guestfs-actions.pod:5736 ../fish/guestfish-actions.pod:4221
14297 msgid "This command is the same as running C<vgchange -a y|n>"
14298 msgstr ""
14299
14300 # type: =head2
14301 #: ../src/guestfs-actions.pod:5740
14302 msgid "guestfs_vgcreate"
14303 msgstr ""
14304
14305 # type: verbatim
14306 #: ../src/guestfs-actions.pod:5742
14307 #, no-wrap
14308 msgid ""
14309 " int\n"
14310 " guestfs_vgcreate (guestfs_h *g,\n"
14311 "                   const char *volgroup,\n"
14312 "                   char *const *physvols);\n"
14313 "\n"
14314 msgstr ""
14315
14316 # type: textblock
14317 #: ../src/guestfs-actions.pod:5747 ../fish/guestfish-actions.pod:4227
14318 msgid ""
14319 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14320 "of physical volumes C<physvols>."
14321 msgstr ""
14322
14323 # type: =head2
14324 #: ../src/guestfs-actions.pod:5752
14325 msgid "guestfs_vglvuuids"
14326 msgstr ""
14327
14328 # type: verbatim
14329 #: ../src/guestfs-actions.pod:5754
14330 #, no-wrap
14331 msgid ""
14332 " char **\n"
14333 " guestfs_vglvuuids (guestfs_h *g,\n"
14334 "                    const char *vgname);\n"
14335 "\n"
14336 msgstr ""
14337
14338 # type: textblock
14339 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:4234
14340 msgid ""
14341 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14342 "volumes created in this volume group."
14343 msgstr ""
14344
14345 # type: textblock
14346 #: ../src/guestfs-actions.pod:5761
14347 msgid ""
14348 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14349 "associate logical volumes and volume groups."
14350 msgstr ""
14351
14352 # type: textblock
14353 #: ../src/guestfs-actions.pod:5764
14354 msgid "See also C<guestfs_vgpvuuids>."
14355 msgstr ""
14356
14357 # type: =head2
14358 #: ../src/guestfs-actions.pod:5770
14359 msgid "guestfs_vgpvuuids"
14360 msgstr ""
14361
14362 # type: verbatim
14363 #: ../src/guestfs-actions.pod:5772
14364 #, no-wrap
14365 msgid ""
14366 " char **\n"
14367 " guestfs_vgpvuuids (guestfs_h *g,\n"
14368 "                    const char *vgname);\n"
14369 "\n"
14370 msgstr ""
14371
14372 # type: textblock
14373 #: ../src/guestfs-actions.pod:5776 ../fish/guestfish-actions.pod:4246
14374 msgid ""
14375 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14376 "volumes that this volume group resides on."
14377 msgstr ""
14378
14379 # type: textblock
14380 #: ../src/guestfs-actions.pod:5779
14381 msgid ""
14382 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14383 "associate physical volumes and volume groups."
14384 msgstr ""
14385
14386 # type: textblock
14387 #: ../src/guestfs-actions.pod:5782
14388 msgid "See also C<guestfs_vglvuuids>."
14389 msgstr ""
14390
14391 # type: =head2
14392 #: ../src/guestfs-actions.pod:5788
14393 msgid "guestfs_vgremove"
14394 msgstr ""
14395
14396 # type: verbatim
14397 #: ../src/guestfs-actions.pod:5790
14398 #, no-wrap
14399 msgid ""
14400 " int\n"
14401 " guestfs_vgremove (guestfs_h *g,\n"
14402 "                   const char *vgname);\n"
14403 "\n"
14404 msgstr ""
14405
14406 # type: textblock
14407 #: ../src/guestfs-actions.pod:5794 ../fish/guestfish-actions.pod:4258
14408 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14409 msgstr ""
14410
14411 # type: textblock
14412 #: ../src/guestfs-actions.pod:5796 ../fish/guestfish-actions.pod:4260
14413 msgid ""
14414 "This also forcibly removes all logical volumes in the volume group (if any)."
14415 msgstr ""
14416
14417 # type: =head2
14418 #: ../src/guestfs-actions.pod:5801
14419 msgid "guestfs_vgrename"
14420 msgstr ""
14421
14422 # type: verbatim
14423 #: ../src/guestfs-actions.pod:5803
14424 #, no-wrap
14425 msgid ""
14426 " int\n"
14427 " guestfs_vgrename (guestfs_h *g,\n"
14428 "                   const char *volgroup,\n"
14429 "                   const char *newvolgroup);\n"
14430 "\n"
14431 msgstr ""
14432
14433 # type: textblock
14434 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:4267
14435 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14436 msgstr ""
14437
14438 # type: =head2
14439 #: ../src/guestfs-actions.pod:5812
14440 msgid "guestfs_vgs"
14441 msgstr ""
14442
14443 # type: verbatim
14444 #: ../src/guestfs-actions.pod:5814
14445 #, no-wrap
14446 msgid ""
14447 " char **\n"
14448 " guestfs_vgs (guestfs_h *g);\n"
14449 "\n"
14450 msgstr ""
14451
14452 # type: textblock
14453 #: ../src/guestfs-actions.pod:5817 ../fish/guestfish-actions.pod:4273
14454 msgid ""
14455 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14456 "> command."
14457 msgstr ""
14458
14459 # type: textblock
14460 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:4276
14461 msgid ""
14462 "This returns a list of just the volume group names that were detected (eg. "
14463 "C<VolGroup00>)."
14464 msgstr ""
14465
14466 # type: textblock
14467 #: ../src/guestfs-actions.pod:5823
14468 msgid "See also C<guestfs_vgs_full>."
14469 msgstr ""
14470
14471 # type: =head2
14472 #: ../src/guestfs-actions.pod:5829
14473 msgid "guestfs_vgs_full"
14474 msgstr ""
14475
14476 # type: verbatim
14477 #: ../src/guestfs-actions.pod:5831
14478 #, no-wrap
14479 msgid ""
14480 " struct guestfs_lvm_vg_list *\n"
14481 " guestfs_vgs_full (guestfs_h *g);\n"
14482 "\n"
14483 msgstr ""
14484
14485 # type: textblock
14486 #: ../src/guestfs-actions.pod:5834 ../fish/guestfish-actions.pod:4285
14487 msgid ""
14488 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14489 "> command.  The \"full\" version includes all fields."
14490 msgstr ""
14491
14492 # type: textblock
14493 #: ../src/guestfs-actions.pod:5837
14494 msgid ""
14495 "This function returns a C<struct guestfs_lvm_vg_list *> (see E<lt>guestfs-"
14496 "structs.hE<gt>), or NULL if there was an error.  I<The caller must call "
14497 "C<guestfs_free_lvm_vg_list> after use>."
14498 msgstr ""
14499
14500 # type: =head2
14501 #: ../src/guestfs-actions.pod:5842
14502 msgid "guestfs_vgscan"
14503 msgstr ""
14504
14505 # type: verbatim
14506 #: ../src/guestfs-actions.pod:5844
14507 #, no-wrap
14508 msgid ""
14509 " int\n"
14510 " guestfs_vgscan (guestfs_h *g);\n"
14511 "\n"
14512 msgstr ""
14513
14514 # type: textblock
14515 #: ../src/guestfs-actions.pod:5847 ../fish/guestfish-actions.pod:4292
14516 msgid ""
14517 "This rescans all block devices and rebuilds the list of LVM physical "
14518 "volumes, volume groups and logical volumes."
14519 msgstr ""
14520
14521 # type: =head2
14522 #: ../src/guestfs-actions.pod:5852
14523 msgid "guestfs_vguuid"
14524 msgstr ""
14525
14526 # type: verbatim
14527 #: ../src/guestfs-actions.pod:5854
14528 #, no-wrap
14529 msgid ""
14530 " char *\n"
14531 " guestfs_vguuid (guestfs_h *g,\n"
14532 "                 const char *vgname);\n"
14533 "\n"
14534 msgstr ""
14535
14536 # type: textblock
14537 #: ../src/guestfs-actions.pod:5858 ../fish/guestfish-actions.pod:4299
14538 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14539 msgstr ""
14540
14541 # type: =head2
14542 #: ../src/guestfs-actions.pod:5863
14543 msgid "guestfs_wait_ready"
14544 msgstr ""
14545
14546 # type: verbatim
14547 #: ../src/guestfs-actions.pod:5865
14548 #, no-wrap
14549 msgid ""
14550 " int\n"
14551 " guestfs_wait_ready (guestfs_h *g);\n"
14552 "\n"
14553 msgstr ""
14554
14555 # type: textblock
14556 #: ../src/guestfs-actions.pod:5868
14557 msgid "This function is a no op."
14558 msgstr ""
14559
14560 # type: textblock
14561 #: ../src/guestfs-actions.pod:5870
14562 msgid ""
14563 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14564 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14565 "is no longer necessary because C<guestfs_launch> now does the waiting."
14566 msgstr ""
14567
14568 # type: textblock
14569 #: ../src/guestfs-actions.pod:5875
14570 msgid ""
14571 "If you see any calls to this function in code then you can just remove them, "
14572 "unless you want to retain compatibility with older versions of the API."
14573 msgstr ""
14574
14575 # type: =head2
14576 #: ../src/guestfs-actions.pod:5881
14577 msgid "guestfs_wc_c"
14578 msgstr ""
14579
14580 # type: verbatim
14581 #: ../src/guestfs-actions.pod:5883
14582 #, no-wrap
14583 msgid ""
14584 " int\n"
14585 " guestfs_wc_c (guestfs_h *g,\n"
14586 "               const char *path);\n"
14587 "\n"
14588 msgstr ""
14589
14590 # type: textblock
14591 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:4305
14592 msgid ""
14593 "This command counts the characters in a file, using the C<wc -c> external "
14594 "command."
14595 msgstr ""
14596
14597 # type: =head2
14598 #: ../src/guestfs-actions.pod:5892
14599 msgid "guestfs_wc_l"
14600 msgstr ""
14601
14602 # type: verbatim
14603 #: ../src/guestfs-actions.pod:5894
14604 #, no-wrap
14605 msgid ""
14606 " int\n"
14607 " guestfs_wc_l (guestfs_h *g,\n"
14608 "               const char *path);\n"
14609 "\n"
14610 msgstr ""
14611
14612 # type: textblock
14613 #: ../src/guestfs-actions.pod:5898 ../fish/guestfish-actions.pod:4312
14614 msgid ""
14615 "This command counts the lines in a file, using the C<wc -l> external command."
14616 msgstr ""
14617
14618 # type: =head2
14619 #: ../src/guestfs-actions.pod:5903
14620 msgid "guestfs_wc_w"
14621 msgstr ""
14622
14623 # type: verbatim
14624 #: ../src/guestfs-actions.pod:5905
14625 #, no-wrap
14626 msgid ""
14627 " int\n"
14628 " guestfs_wc_w (guestfs_h *g,\n"
14629 "               const char *path);\n"
14630 "\n"
14631 msgstr ""
14632
14633 # type: textblock
14634 #: ../src/guestfs-actions.pod:5909 ../fish/guestfish-actions.pod:4319
14635 msgid ""
14636 "This command counts the words in a file, using the C<wc -w> external command."
14637 msgstr ""
14638
14639 # type: =head2
14640 #: ../src/guestfs-actions.pod:5914
14641 msgid "guestfs_write"
14642 msgstr ""
14643
14644 # type: verbatim
14645 #: ../src/guestfs-actions.pod:5916
14646 #, no-wrap
14647 msgid ""
14648 " int\n"
14649 " guestfs_write (guestfs_h *g,\n"
14650 "                const char *path,\n"
14651 "                const char *content,\n"
14652 "                size_t content_size);\n"
14653 "\n"
14654 msgstr ""
14655
14656 # type: textblock
14657 #: ../src/guestfs-actions.pod:5922 ../fish/guestfish-actions.pod:4326
14658 msgid ""
14659 "This call creates a file called C<path>.  The content of the file is the "
14660 "string C<content> (which can contain any 8 bit data)."
14661 msgstr ""
14662
14663 # type: =head2
14664 #: ../src/guestfs-actions.pod:5930
14665 msgid "guestfs_write_file"
14666 msgstr ""
14667
14668 # type: verbatim
14669 #: ../src/guestfs-actions.pod:5932
14670 #, no-wrap
14671 msgid ""
14672 " int\n"
14673 " guestfs_write_file (guestfs_h *g,\n"
14674 "                     const char *path,\n"
14675 "                     const char *content,\n"
14676 "                     int size);\n"
14677 "\n"
14678 msgstr ""
14679
14680 # type: textblock
14681 #: ../src/guestfs-actions.pod:5938 ../fish/guestfish-actions.pod:4336
14682 msgid ""
14683 "This call creates a file called C<path>.  The contents of the file is the "
14684 "string C<content> (which can contain any 8 bit data), with length C<size>."
14685 msgstr ""
14686
14687 # type: textblock
14688 #: ../src/guestfs-actions.pod:5942 ../fish/guestfish-actions.pod:4340
14689 msgid ""
14690 "As a special case, if C<size> is C<0> then the length is calculated using "
14691 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14692 msgstr ""
14693
14694 # type: textblock
14695 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:4344
14696 msgid ""
14697 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14698 "I<not> work, even if the length is specified."
14699 msgstr ""
14700
14701 # type: textblock
14702 #: ../src/guestfs-actions.pod:5954 ../fish/guestfish-actions.pod:4350
14703 msgid ""
14704 "This function is deprecated.  In new code, use the C<write> call instead."
14705 msgstr ""
14706
14707 # type: =head2
14708 #: ../src/guestfs-actions.pod:5961
14709 msgid "guestfs_zegrep"
14710 msgstr ""
14711
14712 # type: verbatim
14713 #: ../src/guestfs-actions.pod:5963
14714 #, no-wrap
14715 msgid ""
14716 " char **\n"
14717 " guestfs_zegrep (guestfs_h *g,\n"
14718 "                 const char *regex,\n"
14719 "                 const char *path);\n"
14720 "\n"
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-actions.pod:5968 ../fish/guestfish-actions.pod:4361
14725 msgid ""
14726 "This calls the external C<zegrep> program and returns the matching lines."
14727 msgstr ""
14728
14729 # type: =head2
14730 #: ../src/guestfs-actions.pod:5978
14731 msgid "guestfs_zegrepi"
14732 msgstr ""
14733
14734 # type: verbatim
14735 #: ../src/guestfs-actions.pod:5980
14736 #, no-wrap
14737 msgid ""
14738 " char **\n"
14739 " guestfs_zegrepi (guestfs_h *g,\n"
14740 "                  const char *regex,\n"
14741 "                  const char *path);\n"
14742 "\n"
14743 msgstr ""
14744
14745 # type: textblock
14746 #: ../src/guestfs-actions.pod:5985 ../fish/guestfish-actions.pod:4371
14747 msgid ""
14748 "This calls the external C<zegrep -i> program and returns the matching lines."
14749 msgstr ""
14750
14751 # type: =head2
14752 #: ../src/guestfs-actions.pod:5995
14753 msgid "guestfs_zero"
14754 msgstr ""
14755
14756 # type: verbatim
14757 #: ../src/guestfs-actions.pod:5997
14758 #, no-wrap
14759 msgid ""
14760 " int\n"
14761 " guestfs_zero (guestfs_h *g,\n"
14762 "               const char *device);\n"
14763 "\n"
14764 msgstr ""
14765
14766 # type: textblock
14767 #: ../src/guestfs-actions.pod:6001 ../fish/guestfish-actions.pod:4381
14768 msgid "This command writes zeroes over the first few blocks of C<device>."
14769 msgstr ""
14770
14771 # type: textblock
14772 #: ../src/guestfs-actions.pod:6003 ../fish/guestfish-actions.pod:4383
14773 msgid ""
14774 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14775 "securely wipe the device).  It should be sufficient to remove any partition "
14776 "tables, filesystem superblocks and so on."
14777 msgstr ""
14778
14779 # type: textblock
14780 #: ../src/guestfs-actions.pod:6007
14781 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14782 msgstr ""
14783
14784 # type: =head2
14785 #: ../src/guestfs-actions.pod:6016
14786 msgid "guestfs_zero_device"
14787 msgstr ""
14788
14789 # type: verbatim
14790 #: ../src/guestfs-actions.pod:6018
14791 #, no-wrap
14792 msgid ""
14793 " int\n"
14794 " guestfs_zero_device (guestfs_h *g,\n"
14795 "                      const char *device);\n"
14796 "\n"
14797 msgstr ""
14798
14799 # type: textblock
14800 #: ../src/guestfs-actions.pod:6022
14801 msgid ""
14802 "This command writes zeroes over the entire C<device>.  Compare with "
14803 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14804 msgstr ""
14805
14806 # type: =head2
14807 #: ../src/guestfs-actions.pod:6036
14808 msgid "guestfs_zerofree"
14809 msgstr ""
14810
14811 # type: verbatim
14812 #: ../src/guestfs-actions.pod:6038
14813 #, no-wrap
14814 msgid ""
14815 " int\n"
14816 " guestfs_zerofree (guestfs_h *g,\n"
14817 "                   const char *device);\n"
14818 "\n"
14819 msgstr ""
14820
14821 # type: textblock
14822 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:4404
14823 msgid ""
14824 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14825 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14826 "possible to compress the filesystem more effectively."
14827 msgstr ""
14828
14829 # type: textblock
14830 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4409
14831 msgid "You should B<not> run this program if the filesystem is mounted."
14832 msgstr ""
14833
14834 # type: textblock
14835 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4412
14836 msgid ""
14837 "It is possible that using this program can damage the filesystem or data on "
14838 "the filesystem."
14839 msgstr ""
14840
14841 # type: =head2
14842 #: ../src/guestfs-actions.pod:6055
14843 msgid "guestfs_zfgrep"
14844 msgstr ""
14845
14846 # type: verbatim
14847 #: ../src/guestfs-actions.pod:6057
14848 #, no-wrap
14849 msgid ""
14850 " char **\n"
14851 " guestfs_zfgrep (guestfs_h *g,\n"
14852 "                 const char *pattern,\n"
14853 "                 const char *path);\n"
14854 "\n"
14855 msgstr ""
14856
14857 # type: textblock
14858 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4419
14859 msgid ""
14860 "This calls the external C<zfgrep> program and returns the matching lines."
14861 msgstr ""
14862
14863 # type: =head2
14864 #: ../src/guestfs-actions.pod:6072
14865 msgid "guestfs_zfgrepi"
14866 msgstr ""
14867
14868 # type: verbatim
14869 #: ../src/guestfs-actions.pod:6074
14870 #, no-wrap
14871 msgid ""
14872 " char **\n"
14873 " guestfs_zfgrepi (guestfs_h *g,\n"
14874 "                  const char *pattern,\n"
14875 "                  const char *path);\n"
14876 "\n"
14877 msgstr ""
14878
14879 # type: textblock
14880 #: ../src/guestfs-actions.pod:6079 ../fish/guestfish-actions.pod:4429
14881 msgid ""
14882 "This calls the external C<zfgrep -i> program and returns the matching lines."
14883 msgstr ""
14884
14885 # type: =head2
14886 #: ../src/guestfs-actions.pod:6089
14887 msgid "guestfs_zfile"
14888 msgstr ""
14889
14890 # type: verbatim
14891 #: ../src/guestfs-actions.pod:6091
14892 #, no-wrap
14893 msgid ""
14894 " char *\n"
14895 " guestfs_zfile (guestfs_h *g,\n"
14896 "                const char *meth,\n"
14897 "                const char *path);\n"
14898 "\n"
14899 msgstr ""
14900
14901 # type: textblock
14902 #: ../src/guestfs-actions.pod:6096 ../fish/guestfish-actions.pod:4439
14903 msgid ""
14904 "This command runs C<file> after first decompressing C<path> using C<method>."
14905 msgstr ""
14906
14907 # type: textblock
14908 #: ../src/guestfs-actions.pod:6099 ../fish/guestfish-actions.pod:4442
14909 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14910 msgstr ""
14911
14912 # type: textblock
14913 #: ../src/guestfs-actions.pod:6101
14914 msgid ""
14915 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14916 "files."
14917 msgstr ""
14918
14919 # type: textblock
14920 #: ../src/guestfs-actions.pod:6107 ../fish/guestfish-actions.pod:4447
14921 msgid ""
14922 "This function is deprecated.  In new code, use the C<file> call instead."
14923 msgstr ""
14924
14925 # type: =head2
14926 #: ../src/guestfs-actions.pod:6114
14927 msgid "guestfs_zgrep"
14928 msgstr ""
14929
14930 # type: verbatim
14931 #: ../src/guestfs-actions.pod:6116
14932 #, no-wrap
14933 msgid ""
14934 " char **\n"
14935 " guestfs_zgrep (guestfs_h *g,\n"
14936 "                const char *regex,\n"
14937 "                const char *path);\n"
14938 "\n"
14939 msgstr ""
14940
14941 # type: textblock
14942 #: ../src/guestfs-actions.pod:6121 ../fish/guestfish-actions.pod:4458
14943 msgid ""
14944 "This calls the external C<zgrep> program and returns the matching lines."
14945 msgstr ""
14946
14947 # type: =head2
14948 #: ../src/guestfs-actions.pod:6131
14949 msgid "guestfs_zgrepi"
14950 msgstr ""
14951
14952 # type: verbatim
14953 #: ../src/guestfs-actions.pod:6133
14954 #, no-wrap
14955 msgid ""
14956 " char **\n"
14957 " guestfs_zgrepi (guestfs_h *g,\n"
14958 "                 const char *regex,\n"
14959 "                 const char *path);\n"
14960 "\n"
14961 msgstr ""
14962
14963 # type: textblock
14964 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4468
14965 msgid ""
14966 "This calls the external C<zgrep -i> program and returns the matching lines."
14967 msgstr ""
14968
14969 # type: =item
14970 #: ../src/guestfs-availability.pod:3
14971 msgid "B<augeas>"
14972 msgstr ""
14973
14974 # type: textblock
14975 #: ../src/guestfs-availability.pod:5
14976 msgid ""
14977 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
14978 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
14979 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
14980 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
14981 "L</guestfs_aug_save> L</guestfs_aug_set>"
14982 msgstr ""
14983
14984 # type: =item
14985 #: ../src/guestfs-availability.pod:21
14986 msgid "B<inotify>"
14987 msgstr ""
14988
14989 # type: textblock
14990 #: ../src/guestfs-availability.pod:23
14991 msgid ""
14992 "The following functions: L</guestfs_inotify_add_watch> L</"
14993 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
14994 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14995 msgstr ""
14996
14997 # type: =item
14998 #: ../src/guestfs-availability.pod:31
14999 msgid "B<linuxfsuuid>"
15000 msgstr ""
15001
15002 # type: textblock
15003 #: ../src/guestfs-availability.pod:33
15004 msgid ""
15005 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
15006 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15007 msgstr ""
15008
15009 # type: =item
15010 #: ../src/guestfs-availability.pod:40
15011 msgid "B<linuxmodules>"
15012 msgstr ""
15013
15014 # type: textblock
15015 #: ../src/guestfs-availability.pod:42
15016 msgid "The following functions: L</guestfs_modprobe>"
15017 msgstr ""
15018
15019 # type: =item
15020 #: ../src/guestfs-availability.pod:45
15021 msgid "B<linuxxattrs>"
15022 msgstr ""
15023
15024 # type: textblock
15025 #: ../src/guestfs-availability.pod:47
15026 msgid ""
15027 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
15028 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
15029 "guestfs_removexattr> L</guestfs_setxattr>"
15030 msgstr ""
15031
15032 # type: =item
15033 #: ../src/guestfs-availability.pod:56
15034 msgid "B<luks>"
15035 msgstr ""
15036
15037 # type: textblock
15038 #: ../src/guestfs-availability.pod:58
15039 msgid ""
15040 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
15041 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
15042 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15043 msgstr ""
15044
15045 # type: =item
15046 #: ../src/guestfs-availability.pod:67
15047 msgid "B<lvm2>"
15048 msgstr ""
15049
15050 # type: textblock
15051 #: ../src/guestfs-availability.pod:69
15052 msgid ""
15053 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
15054 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
15055 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
15056 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
15057 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
15058 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
15059 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
15060 msgstr ""
15061
15062 # type: =item
15063 #: ../src/guestfs-availability.pod:92
15064 msgid "B<mknod>"
15065 msgstr ""
15066
15067 # type: textblock
15068 #: ../src/guestfs-availability.pod:94
15069 msgid ""
15070 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
15071 "guestfs_mknod_b> L</guestfs_mknod_c>"
15072 msgstr ""
15073
15074 # type: =item
15075 #: ../src/guestfs-availability.pod:100
15076 msgid "B<ntfs3g>"
15077 msgstr ""
15078
15079 # type: textblock
15080 #: ../src/guestfs-availability.pod:102
15081 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15082 msgstr ""
15083
15084 # type: =item
15085 #: ../src/guestfs-availability.pod:105
15086 msgid "B<ntfsprogs>"
15087 msgstr ""
15088
15089 # type: textblock
15090 #: ../src/guestfs-availability.pod:107
15091 msgid ""
15092 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15093 msgstr ""
15094
15095 # type: =item
15096 #: ../src/guestfs-availability.pod:111
15097 msgid "B<realpath>"
15098 msgstr ""
15099
15100 # type: textblock
15101 #: ../src/guestfs-availability.pod:113
15102 msgid "The following functions: L</guestfs_realpath>"
15103 msgstr ""
15104
15105 # type: =item
15106 #: ../src/guestfs-availability.pod:116
15107 msgid "B<scrub>"
15108 msgstr ""
15109
15110 # type: textblock
15111 #: ../src/guestfs-availability.pod:118
15112 msgid ""
15113 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
15114 "guestfs_scrub_freespace>"
15115 msgstr ""
15116
15117 # type: =item
15118 #: ../src/guestfs-availability.pod:123
15119 msgid "B<selinux>"
15120 msgstr ""
15121
15122 # type: textblock
15123 #: ../src/guestfs-availability.pod:125
15124 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15125 msgstr ""
15126
15127 # type: =item
15128 #: ../src/guestfs-availability.pod:129
15129 msgid "B<xz>"
15130 msgstr ""
15131
15132 # type: textblock
15133 #: ../src/guestfs-availability.pod:131
15134 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15135 msgstr ""
15136
15137 # type: =item
15138 #: ../src/guestfs-availability.pod:135
15139 msgid "B<zerofree>"
15140 msgstr ""
15141
15142 # type: textblock
15143 #: ../src/guestfs-availability.pod:137
15144 msgid "The following functions: L</guestfs_zerofree>"
15145 msgstr ""
15146
15147 # type: =head2
15148 #: ../src/guestfs-structs.pod:1
15149 msgid "guestfs_int_bool"
15150 msgstr ""
15151
15152 # type: verbatim
15153 #: ../src/guestfs-structs.pod:3
15154 #, no-wrap
15155 msgid ""
15156 " struct guestfs_int_bool {\n"
15157 "   int32_t i;\n"
15158 "   int32_t b;\n"
15159 " };\n"
15160 " \n"
15161 msgstr ""
15162
15163 # type: verbatim
15164 #: ../src/guestfs-structs.pod:8
15165 #, no-wrap
15166 msgid ""
15167 " struct guestfs_int_bool_list {\n"
15168 "   uint32_t len; /* Number of elements in list. */\n"
15169 "   struct guestfs_int_bool *val; /* Elements. */\n"
15170 " };\n"
15171 " \n"
15172 msgstr ""
15173
15174 # type: verbatim
15175 #: ../src/guestfs-structs.pod:13
15176 #, no-wrap
15177 msgid ""
15178 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15179 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15180 "\n"
15181 msgstr ""
15182
15183 # type: =head2
15184 #: ../src/guestfs-structs.pod:16
15185 msgid "guestfs_lvm_pv"
15186 msgstr ""
15187
15188 # type: verbatim
15189 #: ../src/guestfs-structs.pod:18
15190 #, no-wrap
15191 msgid ""
15192 " struct guestfs_lvm_pv {\n"
15193 "   char *pv_name;\n"
15194 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15195 "   char pv_uuid[32];\n"
15196 "   char *pv_fmt;\n"
15197 "   uint64_t pv_size;\n"
15198 "   uint64_t dev_size;\n"
15199 "   uint64_t pv_free;\n"
15200 "   uint64_t pv_used;\n"
15201 "   char *pv_attr;\n"
15202 "   int64_t pv_pe_count;\n"
15203 "   int64_t pv_pe_alloc_count;\n"
15204 "   char *pv_tags;\n"
15205 "   uint64_t pe_start;\n"
15206 "   int64_t pv_mda_count;\n"
15207 "   uint64_t pv_mda_free;\n"
15208 " };\n"
15209 " \n"
15210 msgstr ""
15211
15212 # type: verbatim
15213 #: ../src/guestfs-structs.pod:36
15214 #, no-wrap
15215 msgid ""
15216 " struct guestfs_lvm_pv_list {\n"
15217 "   uint32_t len; /* Number of elements in list. */\n"
15218 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15219 " };\n"
15220 " \n"
15221 msgstr ""
15222
15223 # type: verbatim
15224 #: ../src/guestfs-structs.pod:41
15225 #, no-wrap
15226 msgid ""
15227 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15228 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15229 "\n"
15230 msgstr ""
15231
15232 # type: =head2
15233 #: ../src/guestfs-structs.pod:44
15234 msgid "guestfs_lvm_vg"
15235 msgstr ""
15236
15237 # type: verbatim
15238 #: ../src/guestfs-structs.pod:46
15239 #, no-wrap
15240 msgid ""
15241 " struct guestfs_lvm_vg {\n"
15242 "   char *vg_name;\n"
15243 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15244 "   char vg_uuid[32];\n"
15245 "   char *vg_fmt;\n"
15246 "   char *vg_attr;\n"
15247 "   uint64_t vg_size;\n"
15248 "   uint64_t vg_free;\n"
15249 "   char *vg_sysid;\n"
15250 "   uint64_t vg_extent_size;\n"
15251 "   int64_t vg_extent_count;\n"
15252 "   int64_t vg_free_count;\n"
15253 "   int64_t max_lv;\n"
15254 "   int64_t max_pv;\n"
15255 "   int64_t pv_count;\n"
15256 "   int64_t lv_count;\n"
15257 "   int64_t snap_count;\n"
15258 "   int64_t vg_seqno;\n"
15259 "   char *vg_tags;\n"
15260 "   int64_t vg_mda_count;\n"
15261 "   uint64_t vg_mda_free;\n"
15262 " };\n"
15263 " \n"
15264 msgstr ""
15265
15266 # type: verbatim
15267 #: ../src/guestfs-structs.pod:69
15268 #, no-wrap
15269 msgid ""
15270 " struct guestfs_lvm_vg_list {\n"
15271 "   uint32_t len; /* Number of elements in list. */\n"
15272 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15273 " };\n"
15274 " \n"
15275 msgstr ""
15276
15277 # type: verbatim
15278 #: ../src/guestfs-structs.pod:74
15279 #, no-wrap
15280 msgid ""
15281 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15282 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15283 "\n"
15284 msgstr ""
15285
15286 # type: =head2
15287 #: ../src/guestfs-structs.pod:77
15288 msgid "guestfs_lvm_lv"
15289 msgstr ""
15290
15291 # type: verbatim
15292 #: ../src/guestfs-structs.pod:79
15293 #, no-wrap
15294 msgid ""
15295 " struct guestfs_lvm_lv {\n"
15296 "   char *lv_name;\n"
15297 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
15298 "   char lv_uuid[32];\n"
15299 "   char *lv_attr;\n"
15300 "   int64_t lv_major;\n"
15301 "   int64_t lv_minor;\n"
15302 "   int64_t lv_kernel_major;\n"
15303 "   int64_t lv_kernel_minor;\n"
15304 "   uint64_t lv_size;\n"
15305 "   int64_t seg_count;\n"
15306 "   char *origin;\n"
15307 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15308 "   float snap_percent;\n"
15309 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15310 "   float copy_percent;\n"
15311 "   char *move_pv;\n"
15312 "   char *lv_tags;\n"
15313 "   char *mirror_log;\n"
15314 "   char *modules;\n"
15315 " };\n"
15316 " \n"
15317 msgstr ""
15318
15319 # type: verbatim
15320 #: ../src/guestfs-structs.pod:101
15321 #, no-wrap
15322 msgid ""
15323 " struct guestfs_lvm_lv_list {\n"
15324 "   uint32_t len; /* Number of elements in list. */\n"
15325 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15326 " };\n"
15327 " \n"
15328 msgstr ""
15329
15330 # type: verbatim
15331 #: ../src/guestfs-structs.pod:106
15332 #, no-wrap
15333 msgid ""
15334 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15335 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15336 "\n"
15337 msgstr ""
15338
15339 # type: verbatim
15340 #: ../src/guestfs-structs.pod:111
15341 #, no-wrap
15342 msgid ""
15343 " struct guestfs_stat {\n"
15344 "   int64_t dev;\n"
15345 "   int64_t ino;\n"
15346 "   int64_t mode;\n"
15347 "   int64_t nlink;\n"
15348 "   int64_t uid;\n"
15349 "   int64_t gid;\n"
15350 "   int64_t rdev;\n"
15351 "   int64_t size;\n"
15352 "   int64_t blksize;\n"
15353 "   int64_t blocks;\n"
15354 "   int64_t atime;\n"
15355 "   int64_t mtime;\n"
15356 "   int64_t ctime;\n"
15357 " };\n"
15358 " \n"
15359 msgstr ""
15360
15361 # type: verbatim
15362 #: ../src/guestfs-structs.pod:127
15363 #, no-wrap
15364 msgid ""
15365 " struct guestfs_stat_list {\n"
15366 "   uint32_t len; /* Number of elements in list. */\n"
15367 "   struct guestfs_stat *val; /* Elements. */\n"
15368 " };\n"
15369 " \n"
15370 msgstr ""
15371
15372 # type: verbatim
15373 #: ../src/guestfs-structs.pod:132
15374 #, no-wrap
15375 msgid ""
15376 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15377 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15378 "\n"
15379 msgstr ""
15380
15381 # type: verbatim
15382 #: ../src/guestfs-structs.pod:137
15383 #, no-wrap
15384 msgid ""
15385 " struct guestfs_statvfs {\n"
15386 "   int64_t bsize;\n"
15387 "   int64_t frsize;\n"
15388 "   int64_t blocks;\n"
15389 "   int64_t bfree;\n"
15390 "   int64_t bavail;\n"
15391 "   int64_t files;\n"
15392 "   int64_t ffree;\n"
15393 "   int64_t favail;\n"
15394 "   int64_t fsid;\n"
15395 "   int64_t flag;\n"
15396 "   int64_t namemax;\n"
15397 " };\n"
15398 " \n"
15399 msgstr ""
15400
15401 # type: verbatim
15402 #: ../src/guestfs-structs.pod:151
15403 #, no-wrap
15404 msgid ""
15405 " struct guestfs_statvfs_list {\n"
15406 "   uint32_t len; /* Number of elements in list. */\n"
15407 "   struct guestfs_statvfs *val; /* Elements. */\n"
15408 " };\n"
15409 " \n"
15410 msgstr ""
15411
15412 # type: verbatim
15413 #: ../src/guestfs-structs.pod:156
15414 #, no-wrap
15415 msgid ""
15416 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15417 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15418 "\n"
15419 msgstr ""
15420
15421 # type: =head2
15422 #: ../src/guestfs-structs.pod:159
15423 msgid "guestfs_dirent"
15424 msgstr ""
15425
15426 # type: verbatim
15427 #: ../src/guestfs-structs.pod:161
15428 #, no-wrap
15429 msgid ""
15430 " struct guestfs_dirent {\n"
15431 "   int64_t ino;\n"
15432 "   char ftyp;\n"
15433 "   char *name;\n"
15434 " };\n"
15435 " \n"
15436 msgstr ""
15437
15438 # type: verbatim
15439 #: ../src/guestfs-structs.pod:167
15440 #, no-wrap
15441 msgid ""
15442 " struct guestfs_dirent_list {\n"
15443 "   uint32_t len; /* Number of elements in list. */\n"
15444 "   struct guestfs_dirent *val; /* Elements. */\n"
15445 " };\n"
15446 " \n"
15447 msgstr ""
15448
15449 # type: verbatim
15450 #: ../src/guestfs-structs.pod:172
15451 #, no-wrap
15452 msgid ""
15453 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15454 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15455 "\n"
15456 msgstr ""
15457
15458 # type: verbatim
15459 #: ../src/guestfs-structs.pod:177
15460 #, no-wrap
15461 msgid ""
15462 " struct guestfs_version {\n"
15463 "   int64_t major;\n"
15464 "   int64_t minor;\n"
15465 "   int64_t release;\n"
15466 "   char *extra;\n"
15467 " };\n"
15468 " \n"
15469 msgstr ""
15470
15471 # type: verbatim
15472 #: ../src/guestfs-structs.pod:184
15473 #, no-wrap
15474 msgid ""
15475 " struct guestfs_version_list {\n"
15476 "   uint32_t len; /* Number of elements in list. */\n"
15477 "   struct guestfs_version *val; /* Elements. */\n"
15478 " };\n"
15479 " \n"
15480 msgstr ""
15481
15482 # type: verbatim
15483 #: ../src/guestfs-structs.pod:189
15484 #, no-wrap
15485 msgid ""
15486 " void guestfs_free_version (struct guestfs_free_version *);\n"
15487 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15488 "\n"
15489 msgstr ""
15490
15491 # type: =head2
15492 #: ../src/guestfs-structs.pod:192
15493 msgid "guestfs_xattr"
15494 msgstr ""
15495
15496 # type: verbatim
15497 #: ../src/guestfs-structs.pod:194
15498 #, no-wrap
15499 msgid ""
15500 " struct guestfs_xattr {\n"
15501 "   char *attrname;\n"
15502 "   /* The next two fields describe a byte array. */\n"
15503 "   uint32_t attrval_len;\n"
15504 "   char *attrval;\n"
15505 " };\n"
15506 " \n"
15507 msgstr ""
15508
15509 # type: verbatim
15510 #: ../src/guestfs-structs.pod:201
15511 #, no-wrap
15512 msgid ""
15513 " struct guestfs_xattr_list {\n"
15514 "   uint32_t len; /* Number of elements in list. */\n"
15515 "   struct guestfs_xattr *val; /* Elements. */\n"
15516 " };\n"
15517 " \n"
15518 msgstr ""
15519
15520 # type: verbatim
15521 #: ../src/guestfs-structs.pod:206
15522 #, no-wrap
15523 msgid ""
15524 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15525 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15526 "\n"
15527 msgstr ""
15528
15529 # type: =head2
15530 #: ../src/guestfs-structs.pod:209
15531 msgid "guestfs_inotify_event"
15532 msgstr ""
15533
15534 # type: verbatim
15535 #: ../src/guestfs-structs.pod:211
15536 #, no-wrap
15537 msgid ""
15538 " struct guestfs_inotify_event {\n"
15539 "   int64_t in_wd;\n"
15540 "   uint32_t in_mask;\n"
15541 "   uint32_t in_cookie;\n"
15542 "   char *in_name;\n"
15543 " };\n"
15544 " \n"
15545 msgstr ""
15546
15547 # type: verbatim
15548 #: ../src/guestfs-structs.pod:218
15549 #, no-wrap
15550 msgid ""
15551 " struct guestfs_inotify_event_list {\n"
15552 "   uint32_t len; /* Number of elements in list. */\n"
15553 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15554 " };\n"
15555 " \n"
15556 msgstr ""
15557
15558 # type: verbatim
15559 #: ../src/guestfs-structs.pod:223
15560 #, no-wrap
15561 msgid ""
15562 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15563 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
15564 "\n"
15565 msgstr ""
15566
15567 # type: =head2
15568 #: ../src/guestfs-structs.pod:226
15569 msgid "guestfs_partition"
15570 msgstr ""
15571
15572 # type: verbatim
15573 #: ../src/guestfs-structs.pod:228
15574 #, no-wrap
15575 msgid ""
15576 " struct guestfs_partition {\n"
15577 "   int32_t part_num;\n"
15578 "   uint64_t part_start;\n"
15579 "   uint64_t part_end;\n"
15580 "   uint64_t part_size;\n"
15581 " };\n"
15582 " \n"
15583 msgstr ""
15584
15585 # type: verbatim
15586 #: ../src/guestfs-structs.pod:235
15587 #, no-wrap
15588 msgid ""
15589 " struct guestfs_partition_list {\n"
15590 "   uint32_t len; /* Number of elements in list. */\n"
15591 "   struct guestfs_partition *val; /* Elements. */\n"
15592 " };\n"
15593 " \n"
15594 msgstr ""
15595
15596 # type: verbatim
15597 #: ../src/guestfs-structs.pod:240
15598 #, no-wrap
15599 msgid ""
15600 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15601 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15602 "\n"
15603 msgstr ""
15604
15605 # type: textblock
15606 #: ../fish/guestfish.pod:5
15607 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15608 msgstr ""
15609
15610 # type: verbatim
15611 #: ../fish/guestfish.pod:9
15612 #, no-wrap
15613 msgid ""
15614 " guestfish [--options] [commands]\n"
15615 "\n"
15616 msgstr ""
15617
15618 # type: verbatim
15619 #: ../fish/guestfish.pod:11
15620 #, no-wrap
15621 msgid ""
15622 " guestfish\n"
15623 "\n"
15624 msgstr ""
15625
15626 # type: verbatim
15627 #: ../fish/guestfish.pod:13
15628 #, no-wrap
15629 msgid ""
15630 " guestfish -a disk.img\n"
15631 "\n"
15632 msgstr ""
15633
15634 # type: verbatim
15635 #: ../fish/guestfish.pod:15
15636 #, no-wrap
15637 msgid ""
15638 " guestfish -a disk.img -m dev[:mountpoint]\n"
15639 "\n"
15640 msgstr ""
15641
15642 # type: verbatim
15643 #: ../fish/guestfish.pod:17
15644 #, no-wrap
15645 msgid ""
15646 " guestfish -d libvirt-domain\n"
15647 "\n"
15648 msgstr ""
15649
15650 # type: verbatim
15651 #: ../fish/guestfish.pod:19
15652 #, no-wrap
15653 msgid ""
15654 " guestfish -a disk.img -i\n"
15655 "\n"
15656 msgstr ""
15657
15658 # type: verbatim
15659 #: ../fish/guestfish.pod:21
15660 #, no-wrap
15661 msgid ""
15662 " guestfish -d libvirt-domain -i\n"
15663 "\n"
15664 msgstr ""
15665
15666 # type: =head1
15667 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
15668 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
15669 #: ../tools/virt-rescue.pl:41
15670 msgid "WARNING"
15671 msgstr ""
15672
15673 # type: textblock
15674 #: ../fish/guestfish.pod:25
15675 msgid ""
15676 "Using guestfish in read/write mode on live virtual machines can be "
15677 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15678 "option to use guestfish safely if the disk image or virtual machine might be "
15679 "live."
15680 msgstr ""
15681
15682 # type: textblock
15683 #: ../fish/guestfish.pod:32
15684 msgid ""
15685 "Guestfish is a shell and command-line tool for examining and modifying "
15686 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15687 "functionality of the guestfs API, see L<guestfs(3)>."
15688 msgstr ""
15689
15690 # type: textblock
15691 #: ../fish/guestfish.pod:36
15692 msgid ""
15693 "Guestfish gives you structured access to the libguestfs API, from shell "
15694 "scripts or the command line or interactively.  If you want to rescue a "
15695 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15696 "command."
15697 msgstr ""
15698
15699 # type: =head1
15700 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800
15701 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
15702 #: ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
15703 msgid "EXAMPLES"
15704 msgstr ""
15705
15706 # type: =head2
15707 #: ../fish/guestfish.pod:43
15708 msgid "As an interactive shell"
15709 msgstr ""
15710
15711 # type: verbatim
15712 #: ../fish/guestfish.pod:45
15713 #, no-wrap
15714 msgid ""
15715 " $ guestfish\n"
15716 " \n"
15717 msgstr ""
15718
15719 # type: verbatim
15720 #: ../fish/guestfish.pod:47
15721 #, no-wrap
15722 msgid ""
15723 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15724 " editing virtual machine filesystems.\n"
15725 " \n"
15726 msgstr ""
15727
15728 # type: verbatim
15729 #: ../fish/guestfish.pod:50
15730 #, no-wrap
15731 msgid ""
15732 " Type: 'help' for a list of commands\n"
15733 "       'man' to read the manual\n"
15734 "       'quit' to quit the shell\n"
15735 " \n"
15736 msgstr ""
15737
15738 # type: verbatim
15739 #: ../fish/guestfish.pod:54
15740 #, no-wrap
15741 msgid ""
15742 " ><fs> add-ro disk.img\n"
15743 " ><fs> run\n"
15744 " ><fs> list-filesystems\n"
15745 " /dev/sda1: ext4\n"
15746 " /dev/vg_guest/lv_root: ext4\n"
15747 " /dev/vg_guest/lv_swap: swap\n"
15748 " ><fs> mount /dev/vg_guest/lv_root /\n"
15749 " ><fs> cat /etc/fstab\n"
15750 " # /etc/fstab\n"
15751 " # Created by anaconda\n"
15752 " [...]\n"
15753 " ><fs> exit\n"
15754 "\n"
15755 msgstr ""
15756
15757 # type: =head2
15758 #: ../fish/guestfish.pod:67
15759 msgid "From shell scripts"
15760 msgstr ""
15761
15762 # type: textblock
15763 #: ../fish/guestfish.pod:69
15764 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15765 msgstr ""
15766
15767 # type: verbatim
15768 #: ../fish/guestfish.pod:71
15769 #, no-wrap
15770 msgid ""
15771 " guestfish <<_EOF_\n"
15772 " add disk.img\n"
15773 " run\n"
15774 " mount /dev/vg_guest/lv_root /\n"
15775 " write /etc/motd \"Welcome, new users\"\n"
15776 " _EOF_\n"
15777 "\n"
15778 msgstr ""
15779
15780 # type: textblock
15781 #: ../fish/guestfish.pod:78
15782 msgid "List the LVM logical volumes in a disk image:"
15783 msgstr ""
15784
15785 # type: verbatim
15786 #: ../fish/guestfish.pod:80
15787 #, no-wrap
15788 msgid ""
15789 " guestfish -a disk.img --ro <<_EOF_\n"
15790 " run\n"
15791 " lvs\n"
15792 " _EOF_\n"
15793 "\n"
15794 msgstr ""
15795
15796 # type: textblock
15797 #: ../fish/guestfish.pod:85
15798 msgid "List all the filesystems in a disk image:"
15799 msgstr ""
15800
15801 # type: verbatim
15802 #: ../fish/guestfish.pod:87
15803 #, no-wrap
15804 msgid ""
15805 " guestfish -a disk.img --ro <<_EOF_\n"
15806 " run\n"
15807 " list-filesystems\n"
15808 " _EOF_\n"
15809 "\n"
15810 msgstr ""
15811
15812 # type: =head2
15813 #: ../fish/guestfish.pod:92
15814 msgid "On one command line"
15815 msgstr ""
15816
15817 # type: textblock
15818 #: ../fish/guestfish.pod:94
15819 msgid "Update C</etc/resolv.conf> in a guest:"
15820 msgstr ""
15821
15822 # type: verbatim
15823 #: ../fish/guestfish.pod:96
15824 #, no-wrap
15825 msgid ""
15826 " guestfish \\\n"
15827 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15828 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15829 "\n"
15830 msgstr ""
15831
15832 # type: textblock
15833 #: ../fish/guestfish.pod:100
15834 msgid "Edit C</boot/grub/grub.conf> interactively:"
15835 msgstr ""
15836
15837 # type: verbatim
15838 #: ../fish/guestfish.pod:102
15839 #, no-wrap
15840 msgid ""
15841 " guestfish --add disk.img \\\n"
15842 "   --mount /dev/vg_guest/lv_root \\\n"
15843 "   --mount /dev/sda1:/boot \\\n"
15844 "   edit /boot/grub/grub.conf\n"
15845 "\n"
15846 msgstr ""
15847
15848 # type: =head2
15849 #: ../fish/guestfish.pod:107
15850 msgid "Mount disks automatically"
15851 msgstr ""
15852
15853 # type: textblock
15854 #: ../fish/guestfish.pod:109
15855 msgid ""
15856 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
15857 msgstr ""
15858
15859 # type: verbatim
15860 #: ../fish/guestfish.pod:112
15861 #, no-wrap
15862 msgid ""
15863 " guestfish --ro -a disk.img -i cat /etc/group\n"
15864 "\n"
15865 msgstr ""
15866
15867 # type: verbatim
15868 #: ../fish/guestfish.pod:114
15869 #, no-wrap
15870 msgid ""
15871 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15872 "\n"
15873 msgstr ""
15874
15875 # type: textblock
15876 #: ../fish/guestfish.pod:116
15877 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15878 msgstr ""
15879
15880 # type: verbatim
15881 #: ../fish/guestfish.pod:118
15882 #, no-wrap
15883 msgid ""
15884 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15885 "\n"
15886 msgstr ""
15887
15888 # type: =head2
15889 #: ../fish/guestfish.pod:120
15890 msgid "As a script interpreter"
15891 msgstr ""
15892
15893 # type: textblock
15894 #: ../fish/guestfish.pod:122
15895 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15896 msgstr ""
15897
15898 # type: verbatim
15899 #: ../fish/guestfish.pod:124
15900 #, no-wrap
15901 msgid ""
15902 " #!/usr/bin/guestfish -f\n"
15903 " sparse test1.img 100M\n"
15904 " run\n"
15905 " part-disk /dev/sda mbr\n"
15906 " mkfs ext2 /dev/sda1\n"
15907 "\n"
15908 msgstr ""
15909
15910 # type: =head2
15911 #: ../fish/guestfish.pod:130
15912 msgid "Start with a prepared disk"
15913 msgstr ""
15914
15915 # type: textblock
15916 #: ../fish/guestfish.pod:132
15917 msgid ""
15918 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15919 "single ext2-formatted partition:"
15920 msgstr ""
15921
15922 # type: verbatim
15923 #: ../fish/guestfish.pod:135
15924 #, no-wrap
15925 msgid ""
15926 " guestfish -N fs\n"
15927 "\n"
15928 msgstr ""
15929
15930 # type: textblock
15931 #: ../fish/guestfish.pod:137
15932 msgid "To list what is available do:"
15933 msgstr ""
15934
15935 # type: verbatim
15936 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15937 #, no-wrap
15938 msgid ""
15939 " guestfish -N help | less\n"
15940 "\n"
15941 msgstr ""
15942
15943 # type: =head2
15944 #: ../fish/guestfish.pod:141
15945 msgid "Remote control"
15946 msgstr ""
15947
15948 # type: verbatim
15949 #: ../fish/guestfish.pod:143
15950 #, no-wrap
15951 msgid ""
15952 " eval `guestfish --listen`\n"
15953 " guestfish --remote add-ro disk.img\n"
15954 " guestfish --remote run\n"
15955 " guestfish --remote lvs\n"
15956 "\n"
15957 msgstr ""
15958
15959 # type: =head1
15960 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
15961 #: ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68
15962 #: ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171
15963 #: ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257
15964 #: ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79
15965 #: ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103
15966 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
15967 msgid "OPTIONS"
15968 msgstr ""
15969
15970 # type: =item
15971 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:124
15972 #: ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80
15973 #: ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86
15974 #: ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58
15975 #: ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106
15976 #: ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161
15977 #: ../tools/virt-list-partitions.pl:59
15978 msgid "B<--help>"
15979 msgstr ""
15980
15981 # type: textblock
15982 #: ../fish/guestfish.pod:154
15983 msgid "Displays general help on options."
15984 msgstr ""
15985
15986 # type: =item
15987 #: ../fish/guestfish.pod:156
15988 msgid "B<-h> | B<--cmd-help>"
15989 msgstr ""
15990
15991 # type: textblock
15992 #: ../fish/guestfish.pod:158
15993 msgid "Lists all available guestfish commands."
15994 msgstr ""
15995
15996 # type: =item
15997 #: ../fish/guestfish.pod:160
15998 msgid "B<-h cmd> | B<--cmd-help cmd>"
15999 msgstr ""
16000
16001 # type: textblock
16002 #: ../fish/guestfish.pod:162
16003 msgid "Displays detailed help on a single command C<cmd>."
16004 msgstr ""
16005
16006 # type: =item
16007 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16008 msgid "B<-a image> | B<--add image>"
16009 msgstr ""
16010
16011 # type: textblock
16012 #: ../fish/guestfish.pod:166
16013 msgid "Add a block device or virtual machine image to the shell."
16014 msgstr ""
16015
16016 # type: textblock
16017 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16018 msgid ""
16019 "The format of the disk image is auto-detected.  To override this and force a "
16020 "particular format use the I<--format=..> option."
16021 msgstr ""
16022
16023 # type: =item
16024 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16025 msgid "B<-c URI> | B<--connect URI>"
16026 msgstr ""
16027
16028 # type: textblock
16029 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16030 msgid ""
16031 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16032 "URI to use.  The default is to use the default libvirt connection."
16033 msgstr ""
16034
16035 # type: =item
16036 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
16037 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16038 msgstr ""
16039
16040 # type: textblock
16041 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
16042 msgid ""
16043 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16044 "used, then any libvirt domain can be used.  However in write mode, only "
16045 "libvirt domains which are shut down can be named here."
16046 msgstr ""
16047
16048 # type: =item
16049 #: ../fish/guestfish.pod:183
16050 msgid "B<-D> | B<--no-dest-paths>"
16051 msgstr ""
16052
16053 # type: textblock
16054 #: ../fish/guestfish.pod:185
16055 msgid ""
16056 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16057 "to hit the tab key to complete paths on the guest filesystem, but this "
16058 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16059 "allow this feature to be disabled."
16060 msgstr ""
16061
16062 # type: =item
16063 #: ../fish/guestfish.pod:190
16064 msgid "B<--echo-keys>"
16065 msgstr ""
16066
16067 # type: textblock
16068 #: ../fish/guestfish.pod:192
16069 msgid ""
16070 "When prompting for keys and passphrases, guestfish normally turns echoing "
16071 "off so you cannot see what you are typing.  If you are not worried about "
16072 "Tempest attacks and there is no one else in the room you can specify this "
16073 "flag to see what you are typing."
16074 msgstr ""
16075
16076 # type: =item
16077 #: ../fish/guestfish.pod:197
16078 msgid "B<-f file> | B<--file file>"
16079 msgstr ""
16080
16081 # type: textblock
16082 #: ../fish/guestfish.pod:199
16083 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16084 msgstr ""
16085
16086 # type: verbatim
16087 #: ../fish/guestfish.pod:202
16088 #, no-wrap
16089 msgid ""
16090 " #!/usr/bin/guestfish -f\n"
16091 "\n"
16092 msgstr ""
16093
16094 # type: =item
16095 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
16096 msgid "B<--format=raw|qcow2|..> | B<--format>"
16097 msgstr ""
16098
16099 # type: textblock
16100 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
16101 msgid ""
16102 "The default for the I<-a> option is to auto-detect the format of the disk "
16103 "image.  Using this forces the disk format for I<-a> options which follow on "
16104 "the command line.  Using I<--format> with no argument switches back to auto-"
16105 "detection for subsequent I<-a> options."
16106 msgstr ""
16107
16108 # type: textblock
16109 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
16110 #: ../inspector/virt-inspector.pl:549
16111 msgid "For example:"
16112 msgstr ""
16113
16114 # type: verbatim
16115 #: ../fish/guestfish.pod:213
16116 #, no-wrap
16117 msgid ""
16118 " guestfish --format=raw -a disk.img\n"
16119 "\n"
16120 msgstr ""
16121
16122 # type: textblock
16123 #: ../fish/guestfish.pod:215
16124 msgid "forces raw format (no auto-detection) for C<disk.img>."
16125 msgstr ""
16126
16127 # type: verbatim
16128 #: ../fish/guestfish.pod:217
16129 #, no-wrap
16130 msgid ""
16131 " guestfish --format=raw -a disk.img --format -a another.img\n"
16132 "\n"
16133 msgstr ""
16134
16135 # type: textblock
16136 #: ../fish/guestfish.pod:219
16137 msgid ""
16138 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
16139 "detection for C<another.img>."
16140 msgstr ""
16141
16142 # type: textblock
16143 #: ../fish/guestfish.pod:222
16144 msgid ""
16145 "If you have untrusted raw-format guest disk images, you should use this "
16146 "option to specify the disk format.  This avoids a possible security problem "
16147 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16148 msgstr ""
16149
16150 # type: =item
16151 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
16152 msgid "B<-i> | B<--inspector>"
16153 msgstr ""
16154
16155 # type: textblock
16156 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
16157 msgid ""
16158 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16159 "system and mount filesystems as they would be mounted on the real virtual "
16160 "machine."
16161 msgstr ""
16162
16163 # type: textblock
16164 #: ../fish/guestfish.pod:233
16165 msgid "Typical usage is either:"
16166 msgstr ""
16167
16168 # type: verbatim
16169 #: ../fish/guestfish.pod:235
16170 #, no-wrap
16171 msgid ""
16172 " guestfish -d myguest -i\n"
16173 "\n"
16174 msgstr ""
16175
16176 # type: textblock
16177 #: ../fish/guestfish.pod:237
16178 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16179 msgstr ""
16180
16181 # type: verbatim
16182 #: ../fish/guestfish.pod:239
16183 #, no-wrap
16184 msgid ""
16185 " guestfish --ro -d myguest -i\n"
16186 "\n"
16187 msgstr ""
16188
16189 # type: textblock
16190 #: ../fish/guestfish.pod:241
16191 msgid "(for active domains, readonly), or specify the block device directly:"
16192 msgstr ""
16193
16194 # type: verbatim
16195 #: ../fish/guestfish.pod:243
16196 #, no-wrap
16197 msgid ""
16198 " guestfish -a /dev/Guests/MyGuest -i\n"
16199 "\n"
16200 msgstr ""
16201
16202 # type: textblock
16203 #: ../fish/guestfish.pod:245
16204 msgid ""
16205 "Note that the command line syntax changed slightly over older versions of "
16206 "guestfish.  You can still use the old syntax:"
16207 msgstr ""
16208
16209 # type: verbatim
16210 #: ../fish/guestfish.pod:248
16211 #, no-wrap
16212 msgid ""
16213 " guestfish [--ro] -i disk.img\n"
16214 "\n"
16215 msgstr ""
16216
16217 # type: verbatim
16218 #: ../fish/guestfish.pod:250
16219 #, no-wrap
16220 msgid ""
16221 " guestfish [--ro] -i libvirt-domain\n"
16222 "\n"
16223 msgstr ""
16224
16225 # type: =item
16226 #: ../fish/guestfish.pod:252
16227 msgid "B<--keys-from-stdin>"
16228 msgstr ""
16229
16230 # type: textblock
16231 #: ../fish/guestfish.pod:254
16232 msgid ""
16233 "Read key or passphrase parameters from stdin.  The default is to try to read "
16234 "passphrases from the user by opening C</dev/tty>."
16235 msgstr ""
16236
16237 # type: =item
16238 #: ../fish/guestfish.pod:257
16239 msgid "B<--listen>"
16240 msgstr ""
16241
16242 # type: textblock
16243 #: ../fish/guestfish.pod:259
16244 msgid ""
16245 "Fork into the background and listen for remote commands.  See section L</"
16246 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16247 msgstr ""
16248
16249 # type: =item
16250 #: ../fish/guestfish.pod:262
16251 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16252 msgstr ""
16253
16254 # type: textblock
16255 #: ../fish/guestfish.pod:264
16256 msgid "Mount the named partition or logical volume on the given mountpoint."
16257 msgstr ""
16258
16259 # type: textblock
16260 #: ../fish/guestfish.pod:266
16261 msgid "If the mountpoint is omitted, it defaults to C</>."
16262 msgstr ""
16263
16264 # type: textblock
16265 #: ../fish/guestfish.pod:268
16266 msgid "You have to mount something on C</> before most commands will work."
16267 msgstr ""
16268
16269 # type: textblock
16270 #: ../fish/guestfish.pod:270
16271 msgid ""
16272 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16273 "launched."
16274 msgstr ""
16275
16276 # type: textblock
16277 #: ../fish/guestfish.pod:273
16278 msgid ""
16279 "If you don't know what filesystems a disk image contains, you can either run "
16280 "guestfish without this option, then list the partitions and LVs available "
16281 "(see L</list-partitions> and L</lvs> commands), or you can use the L<virt-"
16282 "list-filesystems(1)> program."
16283 msgstr ""
16284
16285 # type: =item
16286 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
16287 msgid "B<-n> | B<--no-sync>"
16288 msgstr ""
16289
16290 # type: textblock
16291 #: ../fish/guestfish.pod:280
16292 msgid ""
16293 "Disable autosync.  This is enabled by default.  See the discussion of "
16294 "autosync in the L<guestfs(3)> manpage."
16295 msgstr ""
16296
16297 # type: =item
16298 #: ../fish/guestfish.pod:283
16299 msgid "B<-N type> | B<--new type> | B<-N help>"
16300 msgstr ""
16301
16302 # type: textblock
16303 #: ../fish/guestfish.pod:285
16304 msgid ""
16305 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16306 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16307 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16308 "IMAGES> below."
16309 msgstr ""
16310
16311 # type: =item
16312 #: ../fish/guestfish.pod:290
16313 msgid "B<--progress-bars>"
16314 msgstr ""
16315
16316 # type: textblock
16317 #: ../fish/guestfish.pod:292
16318 msgid "Enable progress bars, even when guestfish is used non-interactively."
16319 msgstr ""
16320
16321 # type: textblock
16322 #: ../fish/guestfish.pod:294
16323 msgid ""
16324 "Progress bars are enabled by default when guestfish is used as an "
16325 "interactive shell."
16326 msgstr ""
16327
16328 # type: =item
16329 #: ../fish/guestfish.pod:297
16330 msgid "B<--no-progress-bars>"
16331 msgstr ""
16332
16333 # type: textblock
16334 #: ../fish/guestfish.pod:299
16335 msgid "Disable progress bars."
16336 msgstr ""
16337
16338 # type: =item
16339 #: ../fish/guestfish.pod:301
16340 msgid "B<--remote[=pid]>"
16341 msgstr ""
16342
16343 # type: textblock
16344 #: ../fish/guestfish.pod:303
16345 msgid ""
16346 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16347 "CONTROL GUESTFISH OVER A SOCKET> below."
16348 msgstr ""
16349
16350 # type: =item
16351 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
16352 msgid "B<-r> | B<--ro>"
16353 msgstr ""
16354
16355 # type: textblock
16356 #: ../fish/guestfish.pod:308
16357 msgid ""
16358 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16359 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16360 msgstr ""
16361
16362 # type: textblock
16363 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
16364 msgid ""
16365 "The option must always be used if the disk image or virtual machine might be "
16366 "running, and is generally recommended in cases where you don't need write "
16367 "access to the disk."
16368 msgstr ""
16369
16370 # type: textblock
16371 #: ../fish/guestfish.pod:315
16372 msgid ""
16373 "Note that prepared disk images created with I<-N> are not affected by the "
16374 "I<--ro> option."
16375 msgstr ""
16376
16377 # type: =item
16378 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194
16379 #: ../tools/virt-rescue.pl:195
16380 msgid "B<--selinux>"
16381 msgstr ""
16382
16383 # type: textblock
16384 #: ../fish/guestfish.pod:320
16385 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16386 msgstr ""
16387
16388 # type: =item
16389 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
16390 msgid "B<-v> | B<--verbose>"
16391 msgstr ""
16392
16393 # type: textblock
16394 #: ../fish/guestfish.pod:324
16395 msgid ""
16396 "Enable very verbose messages.  This is particularly useful if you find a bug."
16397 msgstr ""
16398
16399 # type: =item
16400 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
16401 msgid "B<-V> | B<--version>"
16402 msgstr ""
16403
16404 # type: textblock
16405 #: ../fish/guestfish.pod:329
16406 msgid "Display the guestfish / libguestfs version number and exit."
16407 msgstr ""
16408
16409 # type: =item
16410 #: ../fish/guestfish.pod:331
16411 msgid "B<-x>"
16412 msgstr ""
16413
16414 # type: textblock
16415 #: ../fish/guestfish.pod:333
16416 msgid "Echo each command before executing it."
16417 msgstr ""
16418
16419 # type: =head1
16420 #: ../fish/guestfish.pod:337
16421 msgid "COMMANDS ON COMMAND LINE"
16422 msgstr ""
16423
16424 # type: textblock
16425 #: ../fish/guestfish.pod:339
16426 msgid ""
16427 "Any additional (non-option) arguments are treated as commands to execute."
16428 msgstr ""
16429
16430 # type: textblock
16431 #: ../fish/guestfish.pod:342
16432 msgid ""
16433 "Commands to execute should be separated by a colon (C<:>), where the colon "
16434 "is a separate parameter.  Thus:"
16435 msgstr ""
16436
16437 # type: verbatim
16438 #: ../fish/guestfish.pod:345
16439 #, no-wrap
16440 msgid ""
16441 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16442 "\n"
16443 msgstr ""
16444
16445 # type: textblock
16446 #: ../fish/guestfish.pod:347
16447 msgid ""
16448 "If there are no additional arguments, then we enter a shell, either an "
16449 "interactive shell with a prompt (if the input is a terminal) or a non-"
16450 "interactive shell."
16451 msgstr ""
16452
16453 # type: textblock
16454 #: ../fish/guestfish.pod:351
16455 msgid ""
16456 "In either command line mode or non-interactive shell, the first command that "
16457 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16458 "prompt) if a command fails, you can continue to enter commands."
16459 msgstr ""
16460
16461 # type: =head1
16462 #: ../fish/guestfish.pod:356
16463 msgid "USING launch (OR run)"
16464 msgstr ""
16465
16466 # type: textblock
16467 #: ../fish/guestfish.pod:358
16468 msgid ""
16469 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16470 "then launch it, then mount any disks you need, and finally issue actions/"
16471 "commands.  So the general order of the day is:"
16472 msgstr ""
16473
16474 # type: textblock
16475 #: ../fish/guestfish.pod:366
16476 msgid "add or -a/--add"
16477 msgstr ""
16478
16479 # type: textblock
16480 #: ../fish/guestfish.pod:370
16481 msgid "launch (aka run)"
16482 msgstr ""
16483
16484 # type: textblock
16485 #: ../fish/guestfish.pod:374
16486 msgid "mount or -m/--mount"
16487 msgstr ""
16488
16489 # type: textblock
16490 #: ../fish/guestfish.pod:378
16491 msgid "any other commands"
16492 msgstr ""
16493
16494 # type: textblock
16495 #: ../fish/guestfish.pod:382
16496 msgid ""
16497 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16498 "guest before mounting or performing any other commands."
16499 msgstr ""
16500
16501 # type: textblock
16502 #: ../fish/guestfish.pod:385
16503 msgid ""
16504 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16505 "I<--new> options were given then C<run> is done automatically, simply "
16506 "because guestfish can't perform the action you asked for without doing this."
16507 msgstr ""
16508
16509 # type: =head1
16510 #: ../fish/guestfish.pod:390
16511 msgid "QUOTING"
16512 msgstr ""
16513
16514 # type: textblock
16515 #: ../fish/guestfish.pod:392
16516 msgid ""
16517 "You can quote ordinary parameters using either single or double quotes.  For "
16518 "example:"
16519 msgstr ""
16520
16521 # type: verbatim
16522 #: ../fish/guestfish.pod:395
16523 #, no-wrap
16524 msgid ""
16525 " add \"file with a space.img\"\n"
16526 "\n"
16527 msgstr ""
16528
16529 # type: verbatim
16530 #: ../fish/guestfish.pod:397
16531 #, no-wrap
16532 msgid ""
16533 " rm '/file name'\n"
16534 "\n"
16535 msgstr ""
16536
16537 # type: verbatim
16538 #: ../fish/guestfish.pod:399
16539 #, no-wrap
16540 msgid ""
16541 " rm '/\"'\n"
16542 "\n"
16543 msgstr ""
16544
16545 # type: textblock
16546 #: ../fish/guestfish.pod:401
16547 msgid ""
16548 "A few commands require a list of strings to be passed.  For these, use a "
16549 "whitespace-separated list, enclosed in quotes.  Strings containing "
16550 "whitespace to be passed through must be enclosed in single quotes.  A "
16551 "literal single quote must be escaped with a backslash."
16552 msgstr ""
16553
16554 # type: verbatim
16555 #: ../fish/guestfish.pod:406
16556 #, no-wrap
16557 msgid ""
16558 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16559 " command \"/bin/echo 'foo      bar'\"\n"
16560 " command \"/bin/echo \\'foo\\'\"\n"
16561 "\n"
16562 msgstr ""
16563
16564 # type: =head1
16565 #: ../fish/guestfish.pod:410
16566 msgid "OPTIONAL ARGUMENTS"
16567 msgstr ""
16568
16569 # type: textblock
16570 #: ../fish/guestfish.pod:412
16571 msgid ""
16572 "Some commands take optional arguments.  These arguments appear in this "
16573 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16574 msgstr ""
16575
16576 # type: verbatim
16577 #: ../fish/guestfish.pod:416
16578 #, no-wrap
16579 msgid ""
16580 " add-drive-opts filename\n"
16581 "\n"
16582 msgstr ""
16583
16584 # type: verbatim
16585 #: ../fish/guestfish.pod:418
16586 #, no-wrap
16587 msgid ""
16588 " add-drive-opts filename readonly:true\n"
16589 "\n"
16590 msgstr ""
16591
16592 # type: verbatim
16593 #: ../fish/guestfish.pod:420
16594 #, no-wrap
16595 msgid ""
16596 " add-drive-opts filename format:qcow2 readonly:false\n"
16597 "\n"
16598 msgstr ""
16599
16600 # type: textblock
16601 #: ../fish/guestfish.pod:422
16602 msgid ""
16603 "Each optional argument can appear at most once.  All optional arguments must "
16604 "appear after the required ones."
16605 msgstr ""
16606
16607 # type: =head1
16608 #: ../fish/guestfish.pod:425
16609 msgid "NUMBERS"
16610 msgstr ""
16611
16612 # type: textblock
16613 #: ../fish/guestfish.pod:427
16614 msgid ""
16615 "This section applies to all commands which can take integers as parameters."
16616 msgstr ""
16617
16618 # type: =head2
16619 #: ../fish/guestfish.pod:430
16620 msgid "SIZE SUFFIX"
16621 msgstr ""
16622
16623 # type: textblock
16624 #: ../fish/guestfish.pod:432
16625 msgid ""
16626 "When the command takes a parameter measured in bytes, you can use one of the "
16627 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16628 msgstr ""
16629
16630 # type: =item
16631 #: ../fish/guestfish.pod:438
16632 msgid "B<k> or B<K> or B<KiB>"
16633 msgstr ""
16634
16635 # type: textblock
16636 #: ../fish/guestfish.pod:440
16637 msgid "The size in kilobytes (multiplied by 1024)."
16638 msgstr ""
16639
16640 # type: =item
16641 #: ../fish/guestfish.pod:442
16642 msgid "B<KB>"
16643 msgstr ""
16644
16645 # type: textblock
16646 #: ../fish/guestfish.pod:444
16647 msgid "The size in SI 1000 byte units."
16648 msgstr ""
16649
16650 # type: =item
16651 #: ../fish/guestfish.pod:446
16652 msgid "B<M> or B<MiB>"
16653 msgstr ""
16654
16655 # type: textblock
16656 #: ../fish/guestfish.pod:448
16657 msgid "The size in megabytes (multiplied by 1048576)."
16658 msgstr ""
16659
16660 # type: =item
16661 #: ../fish/guestfish.pod:450
16662 msgid "B<MB>"
16663 msgstr ""
16664
16665 # type: textblock
16666 #: ../fish/guestfish.pod:452
16667 msgid "The size in SI 1000000 byte units."
16668 msgstr ""
16669
16670 # type: =item
16671 #: ../fish/guestfish.pod:454
16672 msgid "B<G> or B<GiB>"
16673 msgstr ""
16674
16675 # type: textblock
16676 #: ../fish/guestfish.pod:456
16677 msgid "The size in gigabytes (multiplied by 2**30)."
16678 msgstr ""
16679
16680 # type: =item
16681 #: ../fish/guestfish.pod:458
16682 msgid "B<GB>"
16683 msgstr ""
16684
16685 # type: textblock
16686 #: ../fish/guestfish.pod:460
16687 msgid "The size in SI 10**9 byte units."
16688 msgstr ""
16689
16690 # type: =item
16691 #: ../fish/guestfish.pod:462
16692 msgid "B<T> or B<TiB>"
16693 msgstr ""
16694
16695 # type: textblock
16696 #: ../fish/guestfish.pod:464
16697 msgid "The size in terabytes (multiplied by 2**40)."
16698 msgstr ""
16699
16700 # type: =item
16701 #: ../fish/guestfish.pod:466
16702 msgid "B<TB>"
16703 msgstr ""
16704
16705 # type: textblock
16706 #: ../fish/guestfish.pod:468
16707 msgid "The size in SI 10**12 byte units."
16708 msgstr ""
16709
16710 # type: =item
16711 #: ../fish/guestfish.pod:470
16712 msgid "B<P> or B<PiB>"
16713 msgstr ""
16714
16715 # type: textblock
16716 #: ../fish/guestfish.pod:472
16717 msgid "The size in petabytes (multiplied by 2**50)."
16718 msgstr ""
16719
16720 # type: =item
16721 #: ../fish/guestfish.pod:474
16722 msgid "B<PB>"
16723 msgstr ""
16724
16725 # type: textblock
16726 #: ../fish/guestfish.pod:476
16727 msgid "The size in SI 10**15 byte units."
16728 msgstr ""
16729
16730 # type: =item
16731 #: ../fish/guestfish.pod:478
16732 msgid "B<E> or B<EiB>"
16733 msgstr ""
16734
16735 # type: textblock
16736 #: ../fish/guestfish.pod:480
16737 msgid "The size in exabytes (multiplied by 2**60)."
16738 msgstr ""
16739
16740 # type: =item
16741 #: ../fish/guestfish.pod:482
16742 msgid "B<EB>"
16743 msgstr ""
16744
16745 # type: textblock
16746 #: ../fish/guestfish.pod:484
16747 msgid "The size in SI 10**18 byte units."
16748 msgstr ""
16749
16750 # type: =item
16751 #: ../fish/guestfish.pod:486
16752 msgid "B<Z> or B<ZiB>"
16753 msgstr ""
16754
16755 # type: textblock
16756 #: ../fish/guestfish.pod:488
16757 msgid "The size in zettabytes (multiplied by 2**70)."
16758 msgstr ""
16759
16760 # type: =item
16761 #: ../fish/guestfish.pod:490
16762 msgid "B<ZB>"
16763 msgstr ""
16764
16765 # type: textblock
16766 #: ../fish/guestfish.pod:492
16767 msgid "The size in SI 10**21 byte units."
16768 msgstr ""
16769
16770 # type: =item
16771 #: ../fish/guestfish.pod:494
16772 msgid "B<Y> or B<YiB>"
16773 msgstr ""
16774
16775 # type: textblock
16776 #: ../fish/guestfish.pod:496
16777 msgid "The size in yottabytes (multiplied by 2**80)."
16778 msgstr ""
16779
16780 # type: =item
16781 #: ../fish/guestfish.pod:498
16782 msgid "B<YB>"
16783 msgstr ""
16784
16785 # type: textblock
16786 #: ../fish/guestfish.pod:500
16787 msgid "The size in SI 10**24 byte units."
16788 msgstr ""
16789
16790 # type: verbatim
16791 #: ../fish/guestfish.pod:506
16792 #, no-wrap
16793 msgid ""
16794 " truncate-size /file 1G\n"
16795 "\n"
16796 msgstr ""
16797
16798 # type: textblock
16799 #: ../fish/guestfish.pod:508
16800 msgid "would truncate the file to 1 gigabyte."
16801 msgstr ""
16802
16803 # type: textblock
16804 #: ../fish/guestfish.pod:510
16805 msgid ""
16806 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
16807 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
16808 "suffix will probably not do what you expect."
16809 msgstr ""
16810
16811 # type: =head2
16812 #: ../fish/guestfish.pod:514
16813 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16814 msgstr ""
16815
16816 # type: textblock
16817 #: ../fish/guestfish.pod:516
16818 msgid ""
16819 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16820 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16821 msgstr ""
16822
16823 # type: verbatim
16824 #: ../fish/guestfish.pod:519
16825 #, no-wrap
16826 msgid ""
16827 " 1234      decimal number 1234\n"
16828 " 02322     octal number, equivalent to decimal 1234\n"
16829 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16830 "\n"
16831 msgstr ""
16832
16833 # type: textblock
16834 #: ../fish/guestfish.pod:523
16835 msgid ""
16836 "When using the C<chmod> command, you almost always want to specify an octal "
16837 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16838 "L<chmod(1)> program):"
16839 msgstr ""
16840
16841 # type: verbatim
16842 #: ../fish/guestfish.pod:527
16843 #, no-wrap
16844 msgid ""
16845 " chmod 0777 /public  # OK\n"
16846 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16847 "\n"
16848 msgstr ""
16849
16850 # type: textblock
16851 #: ../fish/guestfish.pod:530
16852 msgid ""
16853 "Commands that return numbers usually print them in decimal, but some "
16854 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16855 "octal, preceeded by C<0>)."
16856 msgstr ""
16857
16858 # type: =head1
16859 #: ../fish/guestfish.pod:534
16860 msgid "WILDCARDS AND GLOBBING"
16861 msgstr ""
16862
16863 # type: textblock
16864 #: ../fish/guestfish.pod:536
16865 msgid ""
16866 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16867 "(globbing) by default.  So for example the following will not do what you "
16868 "expect:"
16869 msgstr ""
16870
16871 # type: verbatim
16872 #: ../fish/guestfish.pod:540
16873 #, no-wrap
16874 msgid ""
16875 " rm-rf /home/*\n"
16876 "\n"
16877 msgstr ""
16878
16879 # type: textblock
16880 #: ../fish/guestfish.pod:542
16881 msgid ""
16882 "Assuming you don't have a directory called literally C</home/*> then the "
16883 "above command will return an error."
16884 msgstr ""
16885
16886 # type: textblock
16887 #: ../fish/guestfish.pod:545
16888 msgid "To perform wildcard expansion, use the C<glob> command."
16889 msgstr ""
16890
16891 # type: verbatim
16892 #: ../fish/guestfish.pod:547
16893 #, no-wrap
16894 msgid ""
16895 " glob rm-rf /home/*\n"
16896 "\n"
16897 msgstr ""
16898
16899 # type: textblock
16900 #: ../fish/guestfish.pod:549
16901 msgid ""
16902 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16903 "many times), equivalent to:"
16904 msgstr ""
16905
16906 # type: verbatim
16907 #: ../fish/guestfish.pod:552
16908 #, no-wrap
16909 msgid ""
16910 " rm-rf /home/jim\n"
16911 " rm-rf /home/joe\n"
16912 " rm-rf /home/mary\n"
16913 "\n"
16914 msgstr ""
16915
16916 # type: textblock
16917 #: ../fish/guestfish.pod:556
16918 msgid "C<glob> only works on simple guest paths and not on device names."
16919 msgstr ""
16920
16921 # type: textblock
16922 #: ../fish/guestfish.pod:558
16923 msgid ""
16924 "If you have several parameters, each containing a wildcard, then glob will "
16925 "perform a Cartesian product."
16926 msgstr ""
16927
16928 # type: =head1
16929 #: ../fish/guestfish.pod:561
16930 msgid "COMMENTS"
16931 msgstr ""
16932
16933 # type: textblock
16934 #: ../fish/guestfish.pod:563
16935 msgid ""
16936 "Any line which starts with a I<#> character is treated as a comment and "
16937 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16938 "a command.  For example:"
16939 msgstr ""
16940
16941 # type: verbatim
16942 #: ../fish/guestfish.pod:567
16943 #, no-wrap
16944 msgid ""
16945 " # this is a comment\n"
16946 "         # this is a comment\n"
16947 " foo # NOT a comment\n"
16948 "\n"
16949 msgstr ""
16950
16951 # type: textblock
16952 #: ../fish/guestfish.pod:571
16953 msgid "Blank lines are also ignored."
16954 msgstr ""
16955
16956 # type: =head1
16957 #: ../fish/guestfish.pod:573
16958 msgid "RUNNING COMMANDS LOCALLY"
16959 msgstr ""
16960
16961 # type: textblock
16962 #: ../fish/guestfish.pod:575
16963 msgid ""
16964 "Any line which starts with a I<!> character is treated as a command sent to "
16965 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16966 msgstr ""
16967
16968 # type: verbatim
16969 #: ../fish/guestfish.pod:579
16970 #, no-wrap
16971 msgid ""
16972 " !mkdir local\n"
16973 " tgz-out /remote local/remote-data.tar.gz\n"
16974 "\n"
16975 msgstr ""
16976
16977 # type: textblock
16978 #: ../fish/guestfish.pod:582
16979 msgid ""
16980 "will create a directory C<local> on the host, and then export the contents "
16981 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16982 "(See C<tgz-out>)."
16983 msgstr ""
16984
16985 # type: textblock
16986 #: ../fish/guestfish.pod:586
16987 msgid ""
16988 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16989 "effect, due to the way that subprocesses work in Unix."
16990 msgstr ""
16991
16992 # type: =head1
16993 #: ../fish/guestfish.pod:589
16994 msgid "PIPES"
16995 msgstr ""
16996
16997 # type: textblock
16998 #: ../fish/guestfish.pod:591
16999 msgid ""
17000 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17001 "command (a guestfish command) to the second command (any host command).  For "
17002 "example:"
17003 msgstr ""
17004
17005 # type: verbatim
17006 #: ../fish/guestfish.pod:595
17007 #, no-wrap
17008 msgid ""
17009 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17010 "\n"
17011 msgstr ""
17012
17013 # type: textblock
17014 #: ../fish/guestfish.pod:597
17015 msgid ""
17016 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17017 "program).  The above command would list all accounts in the guest filesystem "
17018 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17019 msgstr ""
17020
17021 # type: verbatim
17022 #: ../fish/guestfish.pod:602
17023 #, no-wrap
17024 msgid ""
17025 " hexdump /bin/ls | head\n"
17026 " list-devices | tail -1\n"
17027 " tgz-out / - | tar ztf -\n"
17028 "\n"
17029 msgstr ""
17030
17031 # type: textblock
17032 #: ../fish/guestfish.pod:606
17033 msgid ""
17034 "The space before the pipe symbol is required, any space after the pipe "
17035 "symbol is optional.  Everything after the pipe symbol is just passed "
17036 "straight to the host shell, so it can contain redirections, globs and "
17037 "anything else that makes sense on the host side."
17038 msgstr ""
17039
17040 # type: textblock
17041 #: ../fish/guestfish.pod:611
17042 msgid ""
17043 "To use a literal argument which begins with a pipe symbol, you have to quote "
17044 "it, eg:"
17045 msgstr ""
17046
17047 # type: verbatim
17048 #: ../fish/guestfish.pod:614
17049 #, no-wrap
17050 msgid ""
17051 " echo \"|\"\n"
17052 "\n"
17053 msgstr ""
17054
17055 # type: =head1
17056 #: ../fish/guestfish.pod:616
17057 msgid "HOME DIRECTORIES"
17058 msgstr ""
17059
17060 # type: textblock
17061 #: ../fish/guestfish.pod:618
17062 msgid ""
17063 "If a parameter starts with the character C<~> then the tilde may be expanded "
17064 "as a home directory path (either C<~> for the current user's home directory, "
17065 "or C<~user> for another user)."
17066 msgstr ""
17067
17068 # type: textblock
17069 #: ../fish/guestfish.pod:622
17070 msgid ""
17071 "Note that home directory expansion happens for users known I<on the host>, "
17072 "not in the guest filesystem."
17073 msgstr ""
17074
17075 # type: textblock
17076 #: ../fish/guestfish.pod:625
17077 msgid ""
17078 "To use a literal argument which begins with a tilde, you have to quote it, "
17079 "eg:"
17080 msgstr ""
17081
17082 # type: verbatim
17083 #: ../fish/guestfish.pod:628
17084 #, no-wrap
17085 msgid ""
17086 " echo \"~\"\n"
17087 "\n"
17088 msgstr ""
17089
17090 # type: textblock
17091 #: ../fish/guestfish.pod:632
17092 msgid ""
17093 "Libguestfs has some support for Linux guests encrypted according to the "
17094 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17095 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17096 "LUKS is supported."
17097 msgstr ""
17098
17099 # type: textblock
17100 #: ../fish/guestfish.pod:637
17101 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17102 msgstr ""
17103
17104 # type: verbatim
17105 #: ../fish/guestfish.pod:639
17106 #, no-wrap
17107 msgid ""
17108 " ><fs> vfs-type /dev/sda2\n"
17109 " crypto_LUKS\n"
17110 "\n"
17111 msgstr ""
17112
17113 # type: textblock
17114 #: ../fish/guestfish.pod:642
17115 msgid ""
17116 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17117 "device called C</dev/mapper/luksdev>."
17118 msgstr ""
17119
17120 # type: verbatim
17121 #: ../fish/guestfish.pod:645
17122 #, no-wrap
17123 msgid ""
17124 " ><fs> luks-open /dev/sda2 luksdev\n"
17125 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17126 "\n"
17127 msgstr ""
17128
17129 # type: textblock
17130 #: ../fish/guestfish.pod:648
17131 msgid ""
17132 "Finally you have to tell LVM to scan for volume groups on the newly created "
17133 "mapper device:"
17134 msgstr ""
17135
17136 # type: verbatim
17137 #: ../fish/guestfish.pod:651
17138 #, no-wrap
17139 msgid ""
17140 " vgscan\n"
17141 " vg-activate-all true\n"
17142 "\n"
17143 msgstr ""
17144
17145 # type: textblock
17146 #: ../fish/guestfish.pod:654
17147 msgid "The logical volume(s) can now be mounted in the usual way."
17148 msgstr ""
17149
17150 # type: textblock
17151 #: ../fish/guestfish.pod:656
17152 msgid ""
17153 "Before closing a LUKS device you must unmount any logical volumes on it and "
17154 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17155 "one.  Then you can close the mapper device:"
17156 msgstr ""
17157
17158 # type: verbatim
17159 #: ../fish/guestfish.pod:660
17160 #, no-wrap
17161 msgid ""
17162 " vg-activate false /dev/VG\n"
17163 " luks-close /dev/mapper/luksdev\n"
17164 "\n"
17165 msgstr ""
17166
17167 # type: =head1
17168 #: ../fish/guestfish.pod:663
17169 msgid "WINDOWS PATHS"
17170 msgstr ""
17171
17172 # type: textblock
17173 #: ../fish/guestfish.pod:665
17174 msgid ""
17175 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17176 "(with some limitations).  The following commands are equivalent:"
17177 msgstr ""
17178
17179 # type: verbatim
17180 #: ../fish/guestfish.pod:668
17181 #, no-wrap
17182 msgid ""
17183 " file /WINDOWS/system32/config/system.LOG\n"
17184 "\n"
17185 msgstr ""
17186
17187 # type: verbatim
17188 #: ../fish/guestfish.pod:670
17189 #, no-wrap
17190 msgid ""
17191 " file win:/windows/system32/config/system.log\n"
17192 "\n"
17193 msgstr ""
17194
17195 # type: verbatim
17196 #: ../fish/guestfish.pod:672
17197 #, no-wrap
17198 msgid ""
17199 " file win:\\windows\\system32\\config\\system.log\n"
17200 "\n"
17201 msgstr ""
17202
17203 # type: verbatim
17204 #: ../fish/guestfish.pod:674
17205 #, no-wrap
17206 msgid ""
17207 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17208 "\n"
17209 msgstr ""
17210
17211 # type: textblock
17212 #: ../fish/guestfish.pod:676
17213 msgid ""
17214 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17215 "handles case insensitivity like Windows would.  This only works in argument "
17216 "positions that expect a path."
17217 msgstr ""
17218
17219 # type: =head1
17220 #: ../fish/guestfish.pod:680
17221 msgid "UPLOADING AND DOWNLOADING FILES"
17222 msgstr ""
17223
17224 # type: textblock
17225 #: ../fish/guestfish.pod:682
17226 msgid ""
17227 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17228 "others which upload from or download to a local file, you can use the "
17229 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17230 msgstr ""
17231
17232 # type: verbatim
17233 #: ../fish/guestfish.pod:686
17234 #, no-wrap
17235 msgid ""
17236 " upload - /foo\n"
17237 "\n"
17238 msgstr ""
17239
17240 # type: textblock
17241 #: ../fish/guestfish.pod:688
17242 msgid ""
17243 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17244 msgstr ""
17245
17246 # type: verbatim
17247 #: ../fish/guestfish.pod:691
17248 #, no-wrap
17249 msgid ""
17250 " tar-out /etc - | tar tf -\n"
17251 "\n"
17252 msgstr ""
17253
17254 # type: textblock
17255 #: ../fish/guestfish.pod:693
17256 msgid ""
17257 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17258 "command (see L</PIPES>)."
17259 msgstr ""
17260
17261 # type: textblock
17262 #: ../fish/guestfish.pod:696
17263 msgid ""
17264 "When using C<-> to read from stdin, the input is read up to the end of "
17265 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17266 "some arbitrary end marker:"
17267 msgstr ""
17268
17269 # type: verbatim
17270 #: ../fish/guestfish.pod:700
17271 #, no-wrap
17272 msgid ""
17273 " upload -<<END /foo\n"
17274 " input line 1\n"
17275 " input line 2\n"
17276 " input line 3\n"
17277 " END\n"
17278 "\n"
17279 msgstr ""
17280
17281 # type: textblock
17282 #: ../fish/guestfish.pod:706
17283 msgid ""
17284 "Any string of characters can be used instead of C<END>.  The end marker must "
17285 "appear on a line of its own, without any preceeding or following characters "
17286 "(not even spaces)."
17287 msgstr ""
17288
17289 # type: textblock
17290 #: ../fish/guestfish.pod:710
17291 msgid ""
17292 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17293 "upload local files (so-called \"FileIn\" parameters in the generator)."
17294 msgstr ""
17295
17296 # type: =head1
17297 #: ../fish/guestfish.pod:713
17298 msgid "EXIT ON ERROR BEHAVIOUR"
17299 msgstr ""
17300
17301 # type: textblock
17302 #: ../fish/guestfish.pod:715
17303 msgid ""
17304 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17305 "taking commands from a human over a tty), and will exit on the first error "
17306 "in non-interactive mode (scripts, commands given on the command line)."
17307 msgstr ""
17308
17309 # type: textblock
17310 #: ../fish/guestfish.pod:720
17311 msgid ""
17312 "If you prefix a command with a I<-> character, then that command will not "
17313 "cause guestfish to exit, even if that (one) command returns an error."
17314 msgstr ""
17315
17316 # type: =head1
17317 #: ../fish/guestfish.pod:724
17318 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17319 msgstr ""
17320
17321 # type: textblock
17322 #: ../fish/guestfish.pod:726
17323 msgid ""
17324 "Guestfish can be remote-controlled over a socket.  This is useful "
17325 "particularly in shell scripts where you want to make several different "
17326 "changes to a filesystem, but you don't want the overhead of starting up a "
17327 "guestfish process each time."
17328 msgstr ""
17329
17330 # type: textblock
17331 #: ../fish/guestfish.pod:731
17332 msgid "Start a guestfish server process using:"
17333 msgstr ""
17334
17335 # type: verbatim
17336 #: ../fish/guestfish.pod:733
17337 #, no-wrap
17338 msgid ""
17339 " eval `guestfish --listen`\n"
17340 "\n"
17341 msgstr ""
17342
17343 # type: textblock
17344 #: ../fish/guestfish.pod:735
17345 msgid "and then send it commands by doing:"
17346 msgstr ""
17347
17348 # type: verbatim
17349 #: ../fish/guestfish.pod:737
17350 #, no-wrap
17351 msgid ""
17352 " guestfish --remote cmd [...]\n"
17353 "\n"
17354 msgstr ""
17355
17356 # type: textblock
17357 #: ../fish/guestfish.pod:739
17358 msgid "To cause the server to exit, send it the exit command:"
17359 msgstr ""
17360
17361 # type: verbatim
17362 #: ../fish/guestfish.pod:741
17363 #, no-wrap
17364 msgid ""
17365 " guestfish --remote exit\n"
17366 "\n"
17367 msgstr ""
17368
17369 # type: textblock
17370 #: ../fish/guestfish.pod:743
17371 msgid ""
17372 "Note that the server will normally exit if there is an error in a command.  "
17373 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17374 "BEHAVIOUR>."
17375 msgstr ""
17376
17377 # type: =head2
17378 #: ../fish/guestfish.pod:747
17379 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17380 msgstr ""
17381
17382 # type: textblock
17383 #: ../fish/guestfish.pod:749
17384 msgid ""
17385 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17386 "is how the I<--remote> option knows where to send the commands.  You can "
17387 "have several guestfish listener processes running using:"
17388 msgstr ""
17389
17390 # type: verbatim
17391 #: ../fish/guestfish.pod:753
17392 #, no-wrap
17393 msgid ""
17394 " eval `guestfish --listen`\n"
17395 " pid1=$GUESTFISH_PID\n"
17396 " eval `guestfish --listen`\n"
17397 " pid2=$GUESTFISH_PID\n"
17398 " ...\n"
17399 " guestfish --remote=$pid1 cmd\n"
17400 " guestfish --remote=$pid2 cmd\n"
17401 "\n"
17402 msgstr ""
17403
17404 # type: =head2
17405 #: ../fish/guestfish.pod:761
17406 msgid "REMOTE CONTROL DETAILS"
17407 msgstr ""
17408
17409 # type: textblock
17410 #: ../fish/guestfish.pod:763
17411 msgid ""
17412 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
17413 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
17414 "and C<$PID> is the process ID of the server."
17415 msgstr ""
17416
17417 # type: textblock
17418 #: ../fish/guestfish.pod:767
17419 msgid "Guestfish client and server versions must match exactly."
17420 msgstr ""
17421
17422 # type: =head1
17423 #: ../fish/guestfish.pod:769
17424 msgid "PREPARED DISK IMAGES"
17425 msgstr ""
17426
17427 # type: textblock
17428 #: ../fish/guestfish.pod:771
17429 msgid ""
17430 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17431 "preformatted disk images that guestfish can make for you to save typing.  "
17432 "This is particularly useful for testing purposes.  This option is used "
17433 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17434 "can be mixed with I<-a>)."
17435 msgstr ""
17436
17437 # type: textblock
17438 #: ../fish/guestfish.pod:777
17439 msgid ""
17440 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17441 "the second and so on.  Existing files in the current directory are "
17442 "I<overwritten>."
17443 msgstr ""
17444
17445 # type: textblock
17446 #: ../fish/guestfish.pod:781
17447 msgid ""
17448 "The type briefly describes how the disk should be sized, partitioned, how "
17449 "filesystem(s) should be created, and how content should be added.  "
17450 "Optionally the type can be followed by extra parameters, separated by C<:> "
17451 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
17452 "allocated disk, containing a single partition, with the partition formatted "
17453 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
17454 "disk instead."
17455 msgstr ""
17456
17457 # type: textblock
17458 #: ../fish/guestfish.pod:789
17459 msgid "To list the available types and any extra parameters they take, run:"
17460 msgstr ""
17461
17462 # type: textblock
17463 #: ../fish/guestfish.pod:793
17464 msgid ""
17465 "Note that the prepared filesystem is not mounted.  You would usually have to "
17466 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17467 msgstr ""
17468
17469 # type: textblock
17470 #: ../fish/guestfish.pod:797
17471 msgid ""
17472 "If any I<-N> or I<--new> options are given, the guest is automatically "
17473 "launched."
17474 msgstr ""
17475
17476 # type: textblock
17477 #: ../fish/guestfish.pod:802
17478 msgid "Create a 100MB disk with an ext4-formatted partition:"
17479 msgstr ""
17480
17481 # type: verbatim
17482 #: ../fish/guestfish.pod:804
17483 #, no-wrap
17484 msgid ""
17485 " guestfish -N fs:ext4\n"
17486 "\n"
17487 msgstr ""
17488
17489 # type: textblock
17490 #: ../fish/guestfish.pod:806
17491 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17492 msgstr ""
17493
17494 # type: verbatim
17495 #: ../fish/guestfish.pod:808
17496 #, no-wrap
17497 msgid ""
17498 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17499 "\n"
17500 msgstr ""
17501
17502 # type: textblock
17503 #: ../fish/guestfish.pod:810
17504 msgid "Create a blank 200MB disk:"
17505 msgstr ""
17506
17507 # type: verbatim
17508 #: ../fish/guestfish.pod:812
17509 #, no-wrap
17510 msgid ""
17511 " guestfish -N disk:200M\n"
17512 "\n"
17513 msgstr ""
17514
17515 # type: =head1
17516 #: ../fish/guestfish.pod:814
17517 msgid "PROGRESS BARS"
17518 msgstr ""
17519
17520 # type: textblock
17521 #: ../fish/guestfish.pod:816
17522 msgid ""
17523 "Some (not all) long-running commands send progress notification messages as "
17524 "they are running.  Guestfish turns these messages into progress bars."
17525 msgstr ""
17526
17527 # type: textblock
17528 #: ../fish/guestfish.pod:820
17529 msgid ""
17530 "When a command that supports progress bars takes longer than two seconds to "
17531 "run, and if progress bars are enabled, then you will see one appearing below "
17532 "the command:"
17533 msgstr ""
17534
17535 # type: verbatim
17536 #: ../fish/guestfish.pod:824
17537 #, no-wrap
17538 msgid ""
17539 " ><fs> copy-size /large-file /another-file 2048M\n"
17540 " / 10% [#####-----------------------------------------] 00:30\n"
17541 "\n"
17542 msgstr ""
17543
17544 # type: textblock
17545 #: ../fish/guestfish.pod:827
17546 msgid ""
17547 "The spinner on the left hand side moves round once for every progress "
17548 "notification received from the backend.  This is a (reasonably) golden "
17549 "assurance that the command is \"doing something\" even if the progress bar "
17550 "is not moving, because the command is able to send the progress "
17551 "notifications.  When the bar reaches 100% and the command finishes, the "
17552 "spinner disappears."
17553 msgstr ""
17554
17555 # type: textblock
17556 #: ../fish/guestfish.pod:834
17557 msgid ""
17558 "Progress bars are enabled by default when guestfish is used interactively.  "
17559 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17560 "and you can disable them completely using I<--no-progress-bars>."
17561 msgstr ""
17562
17563 # type: =head1
17564 #: ../fish/guestfish.pod:839
17565 msgid "GUESTFISH COMMANDS"
17566 msgstr ""
17567
17568 # type: textblock
17569 #: ../fish/guestfish.pod:841
17570 msgid ""
17571 "The commands in this section are guestfish convenience commands, in other "
17572 "words, they are not part of the L<guestfs(3)> API."
17573 msgstr ""
17574
17575 # type: =head2
17576 #: ../fish/guestfish.pod:844
17577 msgid "help"
17578 msgstr ""
17579
17580 # type: verbatim
17581 #: ../fish/guestfish.pod:846
17582 #, no-wrap
17583 msgid ""
17584 " help\n"
17585 " help cmd\n"
17586 "\n"
17587 msgstr ""
17588
17589 # type: textblock
17590 #: ../fish/guestfish.pod:849
17591 msgid ""
17592 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
17593 "this displays detailed help for a command."
17594 msgstr ""
17595
17596 # type: =head2
17597 #: ../fish/guestfish.pod:852
17598 msgid "quit | exit"
17599 msgstr ""
17600
17601 # type: textblock
17602 #: ../fish/guestfish.pod:854
17603 msgid "This exits guestfish.  You can also use C<^D> key."
17604 msgstr ""
17605
17606 # type: textblock
17607 #: ../fish/guestfish.pod:856
17608 msgid "@FISH_COMMANDS@"
17609 msgstr ""
17610
17611 # type: =head1
17612 #: ../fish/guestfish.pod:858
17613 msgid "COMMANDS"
17614 msgstr ""
17615
17616 # type: =head1
17617 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
17618 msgid "EXIT CODE"
17619 msgstr ""
17620
17621 # type: textblock
17622 #: ../fish/guestfish.pod:864
17623 msgid ""
17624 "guestfish returns 0 if the commands completed without error, or 1 if there "
17625 "was an error."
17626 msgstr ""
17627
17628 # type: =item
17629 #: ../fish/guestfish.pod:871
17630 msgid "EDITOR"
17631 msgstr ""
17632
17633 # type: textblock
17634 #: ../fish/guestfish.pod:873
17635 msgid ""
17636 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17637 "C<vi>."
17638 msgstr ""
17639
17640 # type: =item
17641 #: ../fish/guestfish.pod:876
17642 msgid "GUESTFISH_PID"
17643 msgstr ""
17644
17645 # type: textblock
17646 #: ../fish/guestfish.pod:878
17647 msgid ""
17648 "Used with the I<--remote> option to specify the remote guestfish process to "
17649 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17650 msgstr ""
17651
17652 # type: =item
17653 #: ../fish/guestfish.pod:882
17654 msgid "HEXEDITOR"
17655 msgstr ""
17656
17657 # type: textblock
17658 #: ../fish/guestfish.pod:884
17659 msgid ""
17660 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17661 "not specified, the external L<hexedit(1)> program is used."
17662 msgstr ""
17663
17664 # type: =item
17665 #: ../fish/guestfish.pod:888
17666 msgid "HOME"
17667 msgstr ""
17668
17669 # type: textblock
17670 #: ../fish/guestfish.pod:890
17671 msgid ""
17672 "If compiled with GNU readline support, various files in the home directory "
17673 "can be used.  See L</FILES>."
17674 msgstr ""
17675
17676 # type: textblock
17677 #: ../fish/guestfish.pod:899
17678 msgid ""
17679 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17680 "effect as using the B<-v> option."
17681 msgstr ""
17682
17683 # type: textblock
17684 #: ../fish/guestfish.pod:911
17685 msgid ""
17686 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17687 "the discussion of paths in L<guestfs(3)>."
17688 msgstr ""
17689
17690 # type: textblock
17691 #: ../fish/guestfish.pod:922
17692 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17693 msgstr ""
17694
17695 # type: =item
17696 #: ../fish/guestfish.pod:924
17697 msgid "PAGER"
17698 msgstr ""
17699
17700 # type: textblock
17701 #: ../fish/guestfish.pod:926
17702 msgid ""
17703 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17704 "C<more>."
17705 msgstr ""
17706
17707 # type: =head1
17708 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
17709 msgid "FILES"
17710 msgstr ""
17711
17712 # type: =item
17713 #: ../fish/guestfish.pod:945
17714 msgid "$HOME/.guestfish"
17715 msgstr ""
17716
17717 # type: textblock
17718 #: ../fish/guestfish.pod:947
17719 msgid ""
17720 "If compiled with GNU readline support, then the command history is saved in "
17721 "this file."
17722 msgstr ""
17723
17724 # type: =item
17725 #: ../fish/guestfish.pod:950
17726 msgid "$HOME/.inputrc"
17727 msgstr ""
17728
17729 # type: =item
17730 #: ../fish/guestfish.pod:952
17731 msgid "/etc/inputrc"
17732 msgstr ""
17733
17734 # type: textblock
17735 #: ../fish/guestfish.pod:954
17736 msgid ""
17737 "If compiled with GNU readline support, then these files can be used to "
17738 "configure readline.  For further information, please see L<readline(3)/"
17739 "INITIALIZATION FILE>."
17740 msgstr ""
17741
17742 # type: textblock
17743 #: ../fish/guestfish.pod:958
17744 msgid "To write rules which only apply to guestfish, use:"
17745 msgstr ""
17746
17747 # type: verbatim
17748 #: ../fish/guestfish.pod:960
17749 #, no-wrap
17750 msgid ""
17751 " $if guestfish\n"
17752 " ...\n"
17753 " $endif\n"
17754 "\n"
17755 msgstr ""
17756
17757 # type: textblock
17758 #: ../fish/guestfish.pod:964
17759 msgid ""
17760 "Variables that you can set in inputrc that change the behaviour of guestfish "
17761 "in useful ways include:"
17762 msgstr ""
17763
17764 # type: =item
17765 #: ../fish/guestfish.pod:969
17766 msgid "completion-ignore-case (default: on)"
17767 msgstr ""
17768
17769 # type: textblock
17770 #: ../fish/guestfish.pod:971
17771 msgid ""
17772 "By default, guestfish will ignore case when tab-completing paths on the "
17773 "disk.  Use:"
17774 msgstr ""
17775
17776 # type: verbatim
17777 #: ../fish/guestfish.pod:974
17778 #, no-wrap
17779 msgid ""
17780 " set completion-ignore-case off\n"
17781 "\n"
17782 msgstr ""
17783
17784 # type: textblock
17785 #: ../fish/guestfish.pod:976
17786 msgid "to make guestfish case sensitive."
17787 msgstr ""
17788
17789 # type: =item
17790 #: ../fish/guestfish.pod:980
17791 msgid "test1.img"
17792 msgstr ""
17793
17794 # type: =item
17795 #: ../fish/guestfish.pod:982
17796 msgid "test2.img (etc)"
17797 msgstr ""
17798
17799 # type: textblock
17800 #: ../fish/guestfish.pod:984
17801 msgid ""
17802 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17803 "will be created in the file C<test1.img> in the current directory.  The "
17804 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17805 "the same name will be overwritten."
17806 msgstr ""
17807
17808 # type: textblock
17809 #: ../fish/guestfish.pod:993
17810 msgid ""
17811 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17812 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17813 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17814 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17815 msgstr ""
17816
17817 # type: textblock
17818 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124
17819 #: ../fuse/guestmount.pod:234 ../inspector/virt-inspector.pl:598
17820 #: ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518
17821 #: ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251
17822 #: ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206
17823 #: ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300
17824 #: ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567
17825 #: ../tools/virt-list-partitions.pl:273
17826 msgid ""
17827 "This program is free software; you can redistribute it and/or modify it "
17828 "under the terms of the GNU General Public License as published by the Free "
17829 "Software Foundation; either version 2 of the License, or (at your option) "
17830 "any later version."
17831 msgstr ""
17832
17833 # type: textblock
17834 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129
17835 #: ../fuse/guestmount.pod:239 ../inspector/virt-inspector.pl:603
17836 #: ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523
17837 #: ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256
17838 #: ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211
17839 #: ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305
17840 #: ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572
17841 #: ../tools/virt-list-partitions.pl:278
17842 msgid ""
17843 "This program is distributed in the hope that it will be useful, but WITHOUT "
17844 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17845 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17846 "more details."
17847 msgstr ""
17848
17849 # type: textblock
17850 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134
17851 #: ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:608
17852 #: ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528
17853 #: ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261
17854 #: ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216
17855 #: ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310
17856 #: ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577
17857 #: ../tools/virt-list-partitions.pl:283
17858 msgid ""
17859 "You should have received a copy of the GNU General Public License along with "
17860 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17861 "Ave, Cambridge, MA 02139, USA."
17862 msgstr ""
17863
17864 # type: =head2
17865 #: ../fish/guestfish-actions.pod:1
17866 msgid "add-cdrom"
17867 msgstr ""
17868
17869 # type: verbatim
17870 #: ../fish/guestfish-actions.pod:3
17871 #, no-wrap
17872 msgid ""
17873 " add-cdrom filename\n"
17874 "\n"
17875 msgstr ""
17876
17877 # type: textblock
17878 #: ../fish/guestfish-actions.pod:15
17879 msgid ""
17880 "This call checks for the existence of C<filename>.  This stops you from "
17881 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17882 "and C<http:> URLs.  To specify those, use the general L</config> call "
17883 "instead."
17884 msgstr ""
17885
17886 # type: textblock
17887 #: ../fish/guestfish-actions.pod:22
17888 msgid ""
17889 "If you just want to add an ISO file (often you use this as an efficient way "
17890 "to transfer large files into the guest), then you should probably use L</add-"
17891 "drive-ro> instead."
17892 msgstr ""
17893
17894 # type: =head2
17895 #: ../fish/guestfish-actions.pod:35
17896 msgid "add-drive"
17897 msgstr ""
17898
17899 # type: verbatim
17900 #: ../fish/guestfish-actions.pod:37
17901 #, no-wrap
17902 msgid ""
17903 " add-drive filename\n"
17904 "\n"
17905 msgstr ""
17906
17907 # type: textblock
17908 #: ../fish/guestfish-actions.pod:39
17909 msgid ""
17910 "This function is the equivalent of calling L</add-drive-opts> with no "
17911 "optional parameters, so the disk is added writable, with the format being "
17912 "detected automatically."
17913 msgstr ""
17914
17915 # type: textblock
17916 #: ../fish/guestfish-actions.pod:43
17917 msgid ""
17918 "Automatic detection of the format opens you up to a potential security hole "
17919 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17920 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17921 "you should think about replacing calls to this function with calls to L</add-"
17922 "drive-opts>, and specifying the format."
17923 msgstr ""
17924
17925 # type: =head2
17926 #: ../fish/guestfish-actions.pod:50
17927 msgid "add-drive-opts"
17928 msgstr ""
17929
17930 # type: =head2
17931 #: ../fish/guestfish-actions.pod:52
17932 msgid "add"
17933 msgstr ""
17934
17935 # type: verbatim
17936 #: ../fish/guestfish-actions.pod:54
17937 #, no-wrap
17938 msgid ""
17939 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17940 "\n"
17941 msgstr ""
17942
17943 # type: textblock
17944 #: ../fish/guestfish-actions.pod:81
17945 msgid ""
17946 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
17947 "add-drive-ro>) then the format is automatically detected.  Possible formats "
17948 "include C<raw> and C<qcow2>."
17949 msgstr ""
17950
17951 # type: textblock
17952 #: ../fish/guestfish-actions.pod:92
17953 msgid ""
17954 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
17955 "add-drive-with-if> call (q.v.)"
17956 msgstr ""
17957
17958 # type: textblock
17959 #: ../fish/guestfish-actions.pod:97
17960 msgid ""
17961 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
17962 msgstr ""
17963
17964 # type: =head2
17965 #: ../fish/guestfish-actions.pod:99
17966 msgid "add-drive-ro"
17967 msgstr ""
17968
17969 # type: =head2
17970 #: ../fish/guestfish-actions.pod:101
17971 msgid "add-ro"
17972 msgstr ""
17973
17974 # type: verbatim
17975 #: ../fish/guestfish-actions.pod:103
17976 #, no-wrap
17977 msgid ""
17978 " add-drive-ro filename\n"
17979 "\n"
17980 msgstr ""
17981
17982 # type: textblock
17983 #: ../fish/guestfish-actions.pod:105
17984 msgid ""
17985 "This function is the equivalent of calling L</add-drive-opts> with the "
17986 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17987 "is added read-only, with the format being detected automatically."
17988 msgstr ""
17989
17990 # type: =head2
17991 #: ../fish/guestfish-actions.pod:110
17992 msgid "add-drive-ro-with-if"
17993 msgstr ""
17994
17995 # type: verbatim
17996 #: ../fish/guestfish-actions.pod:112
17997 #, no-wrap
17998 msgid ""
17999 " add-drive-ro-with-if filename iface\n"
18000 "\n"
18001 msgstr ""
18002
18003 # type: textblock
18004 #: ../fish/guestfish-actions.pod:114
18005 msgid ""
18006 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18007 "interface emulation to use at run time."
18008 msgstr ""
18009
18010 # type: =head2
18011 #: ../fish/guestfish-actions.pod:124
18012 msgid "add-drive-with-if"
18013 msgstr ""
18014
18015 # type: verbatim
18016 #: ../fish/guestfish-actions.pod:126
18017 #, no-wrap
18018 msgid ""
18019 " add-drive-with-if filename iface\n"
18020 "\n"
18021 msgstr ""
18022
18023 # type: textblock
18024 #: ../fish/guestfish-actions.pod:128
18025 msgid ""
18026 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18027 "interface emulation to use at run time."
18028 msgstr ""
18029
18030 # type: =head2
18031 #: ../fish/guestfish-actions.pod:138
18032 msgid "aug-clear"
18033 msgstr ""
18034
18035 # type: verbatim
18036 #: ../fish/guestfish-actions.pod:140
18037 #, no-wrap
18038 msgid ""
18039 " aug-clear augpath\n"
18040 "\n"
18041 msgstr ""
18042
18043 # type: =head2
18044 #: ../fish/guestfish-actions.pod:145
18045 msgid "aug-close"
18046 msgstr ""
18047
18048 # type: verbatim
18049 #: ../fish/guestfish-actions.pod:147
18050 #, no-wrap
18051 msgid ""
18052 " aug-close\n"
18053 "\n"
18054 msgstr ""
18055
18056 # type: textblock
18057 #: ../fish/guestfish-actions.pod:149
18058 msgid ""
18059 "Close the current Augeas handle and free up any resources used by it.  After "
18060 "calling this, you have to call L</aug-init> again before you can use any "
18061 "other Augeas functions."
18062 msgstr ""
18063
18064 # type: =head2
18065 #: ../fish/guestfish-actions.pod:154
18066 msgid "aug-defnode"
18067 msgstr ""
18068
18069 # type: verbatim
18070 #: ../fish/guestfish-actions.pod:156
18071 #, no-wrap
18072 msgid ""
18073 " aug-defnode name expr val\n"
18074 "\n"
18075 msgstr ""
18076
18077 # type: textblock
18078 #: ../fish/guestfish-actions.pod:161
18079 msgid ""
18080 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18081 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18082 "containing that single node."
18083 msgstr ""
18084
18085 # type: =head2
18086 #: ../fish/guestfish-actions.pod:169
18087 msgid "aug-defvar"
18088 msgstr ""
18089
18090 # type: verbatim
18091 #: ../fish/guestfish-actions.pod:171
18092 #, no-wrap
18093 msgid ""
18094 " aug-defvar name expr\n"
18095 "\n"
18096 msgstr ""
18097
18098 # type: =head2
18099 #: ../fish/guestfish-actions.pod:180
18100 msgid "aug-get"
18101 msgstr ""
18102
18103 # type: verbatim
18104 #: ../fish/guestfish-actions.pod:182
18105 #, no-wrap
18106 msgid ""
18107 " aug-get augpath\n"
18108 "\n"
18109 msgstr ""
18110
18111 # type: =head2
18112 #: ../fish/guestfish-actions.pod:187
18113 msgid "aug-init"
18114 msgstr ""
18115
18116 # type: verbatim
18117 #: ../fish/guestfish-actions.pod:189
18118 #, no-wrap
18119 msgid ""
18120 " aug-init root flags\n"
18121 "\n"
18122 msgstr ""
18123
18124 # type: textblock
18125 #: ../fish/guestfish-actions.pod:195
18126 msgid "You must call this before using any other L</aug-*> commands."
18127 msgstr ""
18128
18129 # type: textblock
18130 #: ../fish/guestfish-actions.pod:230
18131 msgid "Do not load the tree in L</aug-init>."
18132 msgstr ""
18133
18134 # type: textblock
18135 #: ../fish/guestfish-actions.pod:234
18136 msgid "To close the handle, you can call L</aug-close>."
18137 msgstr ""
18138
18139 # type: =head2
18140 #: ../fish/guestfish-actions.pod:238
18141 msgid "aug-insert"
18142 msgstr ""
18143
18144 # type: verbatim
18145 #: ../fish/guestfish-actions.pod:240
18146 #, no-wrap
18147 msgid ""
18148 " aug-insert augpath label true|false\n"
18149 "\n"
18150 msgstr ""
18151
18152 # type: =head2
18153 #: ../fish/guestfish-actions.pod:250
18154 msgid "aug-load"
18155 msgstr ""
18156
18157 # type: verbatim
18158 #: ../fish/guestfish-actions.pod:252
18159 #, no-wrap
18160 msgid ""
18161 " aug-load\n"
18162 "\n"
18163 msgstr ""
18164
18165 # type: =head2
18166 #: ../fish/guestfish-actions.pod:259
18167 msgid "aug-ls"
18168 msgstr ""
18169
18170 # type: verbatim
18171 #: ../fish/guestfish-actions.pod:261
18172 #, no-wrap
18173 msgid ""
18174 " aug-ls augpath\n"
18175 "\n"
18176 msgstr ""
18177
18178 # type: textblock
18179 #: ../fish/guestfish-actions.pod:263
18180 msgid ""
18181 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
18182 "resulting nodes into alphabetical order."
18183 msgstr ""
18184
18185 # type: =head2
18186 #: ../fish/guestfish-actions.pod:266
18187 msgid "aug-match"
18188 msgstr ""
18189
18190 # type: verbatim
18191 #: ../fish/guestfish-actions.pod:268
18192 #, no-wrap
18193 msgid ""
18194 " aug-match augpath\n"
18195 "\n"
18196 msgstr ""
18197
18198 # type: =head2
18199 #: ../fish/guestfish-actions.pod:274
18200 msgid "aug-mv"
18201 msgstr ""
18202
18203 # type: verbatim
18204 #: ../fish/guestfish-actions.pod:276
18205 #, no-wrap
18206 msgid ""
18207 " aug-mv src dest\n"
18208 "\n"
18209 msgstr ""
18210
18211 # type: =head2
18212 #: ../fish/guestfish-actions.pod:281
18213 msgid "aug-rm"
18214 msgstr ""
18215
18216 # type: verbatim
18217 #: ../fish/guestfish-actions.pod:283
18218 #, no-wrap
18219 msgid ""
18220 " aug-rm augpath\n"
18221 "\n"
18222 msgstr ""
18223
18224 # type: =head2
18225 #: ../fish/guestfish-actions.pod:289
18226 msgid "aug-save"
18227 msgstr ""
18228
18229 # type: verbatim
18230 #: ../fish/guestfish-actions.pod:291
18231 #, no-wrap
18232 msgid ""
18233 " aug-save\n"
18234 "\n"
18235 msgstr ""
18236
18237 # type: textblock
18238 #: ../fish/guestfish-actions.pod:295
18239 msgid ""
18240 "The flags which were passed to L</aug-init> affect exactly how files are "
18241 "saved."
18242 msgstr ""
18243
18244 # type: =head2
18245 #: ../fish/guestfish-actions.pod:298
18246 msgid "aug-set"
18247 msgstr ""
18248
18249 # type: verbatim
18250 #: ../fish/guestfish-actions.pod:300
18251 #, no-wrap
18252 msgid ""
18253 " aug-set augpath val\n"
18254 "\n"
18255 msgstr ""
18256
18257 # type: textblock
18258 #: ../fish/guestfish-actions.pod:304
18259 msgid ""
18260 "In the Augeas API, it is possible to clear a node by setting the value to "
18261 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
18262 "this call.  Instead you must use the L</aug-clear> call."
18263 msgstr ""
18264
18265 # type: =head2
18266 #: ../fish/guestfish-actions.pod:309
18267 msgid "available"
18268 msgstr ""
18269
18270 # type: verbatim
18271 #: ../fish/guestfish-actions.pod:311
18272 #, no-wrap
18273 msgid ""
18274 " available 'groups ...'\n"
18275 "\n"
18276 msgstr ""
18277
18278 # type: textblock
18279 #: ../fish/guestfish-actions.pod:317
18280 msgid ""
18281 "The libguestfs groups, and the functions that those groups correspond to, "
18282 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
18283 "runtime by calling L</available-all-groups>."
18284 msgstr ""
18285
18286 # type: textblock
18287 #: ../fish/guestfish-actions.pod:341
18288 msgid "You must call L</launch> before calling this function."
18289 msgstr ""
18290
18291 # type: textblock
18292 #: ../fish/guestfish-actions.pod:363
18293 msgid ""
18294 "This call was added in version C<1.0.80>.  In previous versions of "
18295 "libguestfs all you could do would be to speculatively execute a command to "
18296 "find out if the daemon implemented it.  See also L</version>."
18297 msgstr ""
18298
18299 # type: =head2
18300 #: ../fish/guestfish-actions.pod:370
18301 msgid "available-all-groups"
18302 msgstr ""
18303
18304 # type: verbatim
18305 #: ../fish/guestfish-actions.pod:372
18306 #, no-wrap
18307 msgid ""
18308 " available-all-groups\n"
18309 "\n"
18310 msgstr ""
18311
18312 # type: textblock
18313 #: ../fish/guestfish-actions.pod:374
18314 msgid ""
18315 "This command returns a list of all optional groups that this daemon knows "
18316 "about.  Note this returns both supported and unsupported groups.  To find "
18317 "out which ones the daemon can actually support you have to call L</"
18318 "available> on each member of the returned list."
18319 msgstr ""
18320
18321 # type: textblock
18322 #: ../fish/guestfish-actions.pod:380
18323 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
18324 msgstr ""
18325
18326 # type: =head2
18327 #: ../fish/guestfish-actions.pod:382
18328 msgid "base64-in"
18329 msgstr ""
18330
18331 # type: verbatim
18332 #: ../fish/guestfish-actions.pod:384
18333 #, no-wrap
18334 msgid ""
18335 " base64-in (base64file|-) filename\n"
18336 "\n"
18337 msgstr ""
18338
18339 # type: textblock
18340 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398
18341 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769
18342 #: ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835
18343 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3932
18344 #: ../fish/guestfish-actions.pod:3944 ../fish/guestfish-actions.pod:3955
18345 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:4018
18346 #: ../fish/guestfish-actions.pod:4027 ../fish/guestfish-actions.pod:4081
18347 #: ../fish/guestfish-actions.pod:4104
18348 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
18349 msgstr ""
18350
18351 # type: =head2
18352 #: ../fish/guestfish-actions.pod:391
18353 msgid "base64-out"
18354 msgstr ""
18355
18356 # type: verbatim
18357 #: ../fish/guestfish-actions.pod:393
18358 #, no-wrap
18359 msgid ""
18360 " base64-out filename (base64file|-)\n"
18361 "\n"
18362 msgstr ""
18363
18364 # type: =head2
18365 #: ../fish/guestfish-actions.pod:400
18366 msgid "blockdev-flushbufs"
18367 msgstr ""
18368
18369 # type: verbatim
18370 #: ../fish/guestfish-actions.pod:402
18371 #, no-wrap
18372 msgid ""
18373 " blockdev-flushbufs device\n"
18374 "\n"
18375 msgstr ""
18376
18377 # type: =head2
18378 #: ../fish/guestfish-actions.pod:409
18379 msgid "blockdev-getbsz"
18380 msgstr ""
18381
18382 # type: verbatim
18383 #: ../fish/guestfish-actions.pod:411
18384 #, no-wrap
18385 msgid ""
18386 " blockdev-getbsz device\n"
18387 "\n"
18388 msgstr ""
18389
18390 # type: =head2
18391 #: ../fish/guestfish-actions.pod:420
18392 msgid "blockdev-getro"
18393 msgstr ""
18394
18395 # type: verbatim
18396 #: ../fish/guestfish-actions.pod:422
18397 #, no-wrap
18398 msgid ""
18399 " blockdev-getro device\n"
18400 "\n"
18401 msgstr ""
18402
18403 # type: =head2
18404 #: ../fish/guestfish-actions.pod:429
18405 msgid "blockdev-getsize64"
18406 msgstr ""
18407
18408 # type: verbatim
18409 #: ../fish/guestfish-actions.pod:431
18410 #, no-wrap
18411 msgid ""
18412 " blockdev-getsize64 device\n"
18413 "\n"
18414 msgstr ""
18415
18416 # type: textblock
18417 #: ../fish/guestfish-actions.pod:435
18418 msgid "See also L</blockdev-getsz>."
18419 msgstr ""
18420
18421 # type: =head2
18422 #: ../fish/guestfish-actions.pod:439
18423 msgid "blockdev-getss"
18424 msgstr ""
18425
18426 # type: verbatim
18427 #: ../fish/guestfish-actions.pod:441
18428 #, no-wrap
18429 msgid ""
18430 " blockdev-getss device\n"
18431 "\n"
18432 msgstr ""
18433
18434 # type: textblock
18435 #: ../fish/guestfish-actions.pod:446
18436 msgid ""
18437 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18438 msgstr ""
18439
18440 # type: =head2
18441 #: ../fish/guestfish-actions.pod:451
18442 msgid "blockdev-getsz"
18443 msgstr ""
18444
18445 # type: verbatim
18446 #: ../fish/guestfish-actions.pod:453
18447 #, no-wrap
18448 msgid ""
18449 " blockdev-getsz device\n"
18450 "\n"
18451 msgstr ""
18452
18453 # type: textblock
18454 #: ../fish/guestfish-actions.pod:458
18455 msgid ""
18456 "See also L</blockdev-getss> for the real sector size of the device, and L</"
18457 "blockdev-getsize64> for the more useful I<size in bytes>."
18458 msgstr ""
18459
18460 # type: =head2
18461 #: ../fish/guestfish-actions.pod:464
18462 msgid "blockdev-rereadpt"
18463 msgstr ""
18464
18465 # type: verbatim
18466 #: ../fish/guestfish-actions.pod:466
18467 #, no-wrap
18468 msgid ""
18469 " blockdev-rereadpt device\n"
18470 "\n"
18471 msgstr ""
18472
18473 # type: =head2
18474 #: ../fish/guestfish-actions.pod:472
18475 msgid "blockdev-setbsz"
18476 msgstr ""
18477
18478 # type: verbatim
18479 #: ../fish/guestfish-actions.pod:474
18480 #, no-wrap
18481 msgid ""
18482 " blockdev-setbsz device blocksize\n"
18483 "\n"
18484 msgstr ""
18485
18486 # type: =head2
18487 #: ../fish/guestfish-actions.pod:483
18488 msgid "blockdev-setro"
18489 msgstr ""
18490
18491 # type: verbatim
18492 #: ../fish/guestfish-actions.pod:485
18493 #, no-wrap
18494 msgid ""
18495 " blockdev-setro device\n"
18496 "\n"
18497 msgstr ""
18498
18499 # type: =head2
18500 #: ../fish/guestfish-actions.pod:491
18501 msgid "blockdev-setrw"
18502 msgstr ""
18503
18504 # type: verbatim
18505 #: ../fish/guestfish-actions.pod:493
18506 #, no-wrap
18507 msgid ""
18508 " blockdev-setrw device\n"
18509 "\n"
18510 msgstr ""
18511
18512 # type: =head2
18513 #: ../fish/guestfish-actions.pod:499
18514 msgid "case-sensitive-path"
18515 msgstr ""
18516
18517 # type: verbatim
18518 #: ../fish/guestfish-actions.pod:501
18519 #, no-wrap
18520 msgid ""
18521 " case-sensitive-path path\n"
18522 "\n"
18523 msgstr ""
18524
18525 # type: textblock
18526 #: ../fish/guestfish-actions.pod:525
18527 msgid ""
18528 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
18529 "WINDOWS/system32\"> (the exact return value would depend on details of how "
18530 "the directories were originally created under Windows)."
18531 msgstr ""
18532
18533 # type: textblock
18534 #: ../fish/guestfish-actions.pod:533
18535 msgid "See also L</realpath>."
18536 msgstr ""
18537
18538 # type: =head2
18539 #: ../fish/guestfish-actions.pod:535
18540 msgid "cat"
18541 msgstr ""
18542
18543 # type: verbatim
18544 #: ../fish/guestfish-actions.pod:537
18545 #, no-wrap
18546 msgid ""
18547 " cat path\n"
18548 "\n"
18549 msgstr ""
18550
18551 # type: textblock
18552 #: ../fish/guestfish-actions.pod:541
18553 msgid ""
18554 "Note that this function cannot correctly handle binary files (specifically, "
18555 "files containing C<\\0> character which is treated as end of string).  For "
18556 "those you need to use the L</read-file> or L</download> functions which have "
18557 "a more complex interface."
18558 msgstr ""
18559
18560 # type: =head2
18561 #: ../fish/guestfish-actions.pod:549
18562 msgid "checksum"
18563 msgstr ""
18564
18565 # type: verbatim
18566 #: ../fish/guestfish-actions.pod:551
18567 #, no-wrap
18568 msgid ""
18569 " checksum csumtype path\n"
18570 "\n"
18571 msgstr ""
18572
18573 # type: textblock
18574 #: ../fish/guestfish-actions.pod:594
18575 msgid "To get the checksum for a device, use L</checksum-device>."
18576 msgstr ""
18577
18578 # type: textblock
18579 #: ../fish/guestfish-actions.pod:596
18580 msgid "To get the checksums for many files, use L</checksums-out>."
18581 msgstr ""
18582
18583 # type: =head2
18584 #: ../fish/guestfish-actions.pod:598
18585 msgid "checksum-device"
18586 msgstr ""
18587
18588 # type: verbatim
18589 #: ../fish/guestfish-actions.pod:600
18590 #, no-wrap
18591 msgid ""
18592 " checksum-device csumtype device\n"
18593 "\n"
18594 msgstr ""
18595
18596 # type: textblock
18597 #: ../fish/guestfish-actions.pod:602
18598 msgid ""
18599 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18600 "device named C<device>.  For the types of checksums supported see the L</"
18601 "checksum> command."
18602 msgstr ""
18603
18604 # type: =head2
18605 #: ../fish/guestfish-actions.pod:606
18606 msgid "checksums-out"
18607 msgstr ""
18608
18609 # type: verbatim
18610 #: ../fish/guestfish-actions.pod:608
18611 #, no-wrap
18612 msgid ""
18613 " checksums-out csumtype directory (sumsfile|-)\n"
18614 "\n"
18615 msgstr ""
18616
18617 # type: =head2
18618 #: ../fish/guestfish-actions.pod:624
18619 msgid "chmod"
18620 msgstr ""
18621
18622 # type: verbatim
18623 #: ../fish/guestfish-actions.pod:626
18624 #, no-wrap
18625 msgid ""
18626 " chmod mode path\n"
18627 "\n"
18628 msgstr ""
18629
18630 # type: =head2
18631 #: ../fish/guestfish-actions.pod:637
18632 msgid "chown"
18633 msgstr ""
18634
18635 # type: verbatim
18636 #: ../fish/guestfish-actions.pod:639
18637 #, no-wrap
18638 msgid ""
18639 " chown owner group path\n"
18640 "\n"
18641 msgstr ""
18642
18643 # type: =head2
18644 #: ../fish/guestfish-actions.pod:647
18645 msgid "command"
18646 msgstr ""
18647
18648 # type: verbatim
18649 #: ../fish/guestfish-actions.pod:649
18650 #, no-wrap
18651 msgid ""
18652 " command 'arguments ...'\n"
18653 "\n"
18654 msgstr ""
18655
18656 # type: textblock
18657 #: ../fish/guestfish-actions.pod:656
18658 msgid ""
18659 "The single parameter is an argv-style list of arguments.  The first element "
18660 "is the name of the program to run.  Subsequent elements are parameters.  The "
18661 "list must be non-empty (ie. must contain a program name).  Note that the "
18662 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18663 msgstr ""
18664
18665 # type: =head2
18666 #: ../fish/guestfish-actions.pod:684
18667 msgid "command-lines"
18668 msgstr ""
18669
18670 # type: verbatim
18671 #: ../fish/guestfish-actions.pod:686
18672 #, no-wrap
18673 msgid ""
18674 " command-lines 'arguments ...'\n"
18675 "\n"
18676 msgstr ""
18677
18678 # type: textblock
18679 #: ../fish/guestfish-actions.pod:688
18680 msgid ""
18681 "This is the same as L</command>, but splits the result into a list of lines."
18682 msgstr ""
18683
18684 # type: textblock
18685 #: ../fish/guestfish-actions.pod:691
18686 msgid "See also: L</sh-lines>"
18687 msgstr ""
18688
18689 # type: =head2
18690 #: ../fish/guestfish-actions.pod:696
18691 msgid "config"
18692 msgstr ""
18693
18694 # type: verbatim
18695 #: ../fish/guestfish-actions.pod:698
18696 #, no-wrap
18697 msgid ""
18698 " config qemuparam qemuvalue\n"
18699 "\n"
18700 msgstr ""
18701
18702 # type: =head2
18703 #: ../fish/guestfish-actions.pod:709
18704 msgid "copy-size"
18705 msgstr ""
18706
18707 # type: verbatim
18708 #: ../fish/guestfish-actions.pod:711
18709 #, no-wrap
18710 msgid ""
18711 " copy-size src dest size\n"
18712 "\n"
18713 msgstr ""
18714
18715 # type: =head2
18716 #: ../fish/guestfish-actions.pod:719
18717 msgid "cp"
18718 msgstr ""
18719
18720 # type: verbatim
18721 #: ../fish/guestfish-actions.pod:721
18722 #, no-wrap
18723 msgid ""
18724 " cp src dest\n"
18725 "\n"
18726 msgstr ""
18727
18728 # type: =head2
18729 #: ../fish/guestfish-actions.pod:726
18730 msgid "cp-a"
18731 msgstr ""
18732
18733 # type: verbatim
18734 #: ../fish/guestfish-actions.pod:728
18735 #, no-wrap
18736 msgid ""
18737 " cp-a src dest\n"
18738 "\n"
18739 msgstr ""
18740
18741 # type: =head2
18742 #: ../fish/guestfish-actions.pod:733
18743 msgid "dd"
18744 msgstr ""
18745
18746 # type: verbatim
18747 #: ../fish/guestfish-actions.pod:735
18748 #, no-wrap
18749 msgid ""
18750 " dd src dest\n"
18751 "\n"
18752 msgstr ""
18753
18754 # type: textblock
18755 #: ../fish/guestfish-actions.pod:742
18756 msgid ""
18757 "If the destination is a device, it must be as large or larger than the "
18758 "source file or device, otherwise the copy will fail.  This command cannot do "
18759 "partial copies (see L</copy-size>)."
18760 msgstr ""
18761
18762 # type: =head2
18763 #: ../fish/guestfish-actions.pod:746
18764 msgid "debug"
18765 msgstr ""
18766
18767 # type: verbatim
18768 #: ../fish/guestfish-actions.pod:748
18769 #, no-wrap
18770 msgid ""
18771 " debug subcmd 'extraargs ...'\n"
18772 "\n"
18773 msgstr ""
18774
18775 # type: textblock
18776 #: ../fish/guestfish-actions.pod:750
18777 msgid ""
18778 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18779 "daemon) that runs inside the qemu subprocess."
18780 msgstr ""
18781
18782 # type: =head2
18783 #: ../fish/guestfish-actions.pod:758
18784 msgid "debug-upload"
18785 msgstr ""
18786
18787 # type: verbatim
18788 #: ../fish/guestfish-actions.pod:760
18789 #, no-wrap
18790 msgid ""
18791 " debug-upload (filename|-) tmpname mode\n"
18792 "\n"
18793 msgstr ""
18794
18795 # type: textblock
18796 #: ../fish/guestfish-actions.pod:762
18797 msgid ""
18798 "The L</debug-upload> command uploads a file to the libguestfs appliance."
18799 msgstr ""
18800
18801 # type: =head2
18802 #: ../fish/guestfish-actions.pod:771
18803 msgid "df"
18804 msgstr ""
18805
18806 # type: verbatim
18807 #: ../fish/guestfish-actions.pod:773
18808 #, no-wrap
18809 msgid ""
18810 " df\n"
18811 "\n"
18812 msgstr ""
18813
18814 # type: =head2
18815 #: ../fish/guestfish-actions.pod:781
18816 msgid "df-h"
18817 msgstr ""
18818
18819 # type: verbatim
18820 #: ../fish/guestfish-actions.pod:783
18821 #, no-wrap
18822 msgid ""
18823 " df-h\n"
18824 "\n"
18825 msgstr ""
18826
18827 # type: =head2
18828 #: ../fish/guestfish-actions.pod:792
18829 msgid "dmesg"
18830 msgstr ""
18831
18832 # type: verbatim
18833 #: ../fish/guestfish-actions.pod:794
18834 #, no-wrap
18835 msgid ""
18836 " dmesg\n"
18837 "\n"
18838 msgstr ""
18839
18840 # type: textblock
18841 #: ../fish/guestfish-actions.pod:800
18842 msgid ""
18843 "Another way to get the same information is to enable verbose messages with "
18844 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18845 "before running the program."
18846 msgstr ""
18847
18848 # type: =head2
18849 #: ../fish/guestfish-actions.pod:805
18850 msgid "download"
18851 msgstr ""
18852
18853 # type: verbatim
18854 #: ../fish/guestfish-actions.pod:807
18855 #, no-wrap
18856 msgid ""
18857 " download remotefilename (filename|-)\n"
18858 "\n"
18859 msgstr ""
18860
18861 # type: textblock
18862 #: ../fish/guestfish-actions.pod:814
18863 msgid "See also L</upload>, L</cat>."
18864 msgstr ""
18865
18866 # type: =head2
18867 #: ../fish/guestfish-actions.pod:818
18868 msgid "download-offset"
18869 msgstr ""
18870
18871 # type: verbatim
18872 #: ../fish/guestfish-actions.pod:820
18873 #, no-wrap
18874 msgid ""
18875 " download-offset remotefilename (filename|-) offset size\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: textblock
18880 #: ../fish/guestfish-actions.pod:828
18881 msgid ""
18882 "Note that there is no limit on the amount of data that can be downloaded "
18883 "with this call, unlike with L</pread>, and this call always reads the full "
18884 "amount unless an error occurs."
18885 msgstr ""
18886
18887 # type: textblock
18888 #: ../fish/guestfish-actions.pod:833
18889 msgid "See also L</download>, L</pread>."
18890 msgstr ""
18891
18892 # type: =head2
18893 #: ../fish/guestfish-actions.pod:837
18894 msgid "drop-caches"
18895 msgstr ""
18896
18897 # type: verbatim
18898 #: ../fish/guestfish-actions.pod:839
18899 #, no-wrap
18900 msgid ""
18901 " drop-caches whattodrop\n"
18902 "\n"
18903 msgstr ""
18904
18905 # type: =head2
18906 #: ../fish/guestfish-actions.pod:851
18907 msgid "du"
18908 msgstr ""
18909
18910 # type: verbatim
18911 #: ../fish/guestfish-actions.pod:853
18912 #, no-wrap
18913 msgid ""
18914 " du path\n"
18915 "\n"
18916 msgstr ""
18917
18918 # type: =head2
18919 #: ../fish/guestfish-actions.pod:865
18920 msgid "e2fsck-f"
18921 msgstr ""
18922
18923 # type: verbatim
18924 #: ../fish/guestfish-actions.pod:867
18925 #, no-wrap
18926 msgid ""
18927 " e2fsck-f device\n"
18928 "\n"
18929 msgstr ""
18930
18931 # type: textblock
18932 #: ../fish/guestfish-actions.pod:873
18933 msgid ""
18934 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18935 "should use L</fsck>."
18936 msgstr ""
18937
18938 # type: =head2
18939 #: ../fish/guestfish-actions.pod:876
18940 msgid "echo-daemon"
18941 msgstr ""
18942
18943 # type: verbatim
18944 #: ../fish/guestfish-actions.pod:878
18945 #, no-wrap
18946 msgid ""
18947 " echo-daemon 'words ...'\n"
18948 "\n"
18949 msgstr ""
18950
18951 # type: textblock
18952 #: ../fish/guestfish-actions.pod:885
18953 msgid "See also L</ping-daemon>."
18954 msgstr ""
18955
18956 # type: =head2
18957 #: ../fish/guestfish-actions.pod:887
18958 msgid "egrep"
18959 msgstr ""
18960
18961 # type: verbatim
18962 #: ../fish/guestfish-actions.pod:889
18963 #, no-wrap
18964 msgid ""
18965 " egrep regex path\n"
18966 "\n"
18967 msgstr ""
18968
18969 # type: =head2
18970 #: ../fish/guestfish-actions.pod:897
18971 msgid "egrepi"
18972 msgstr ""
18973
18974 # type: verbatim
18975 #: ../fish/guestfish-actions.pod:899
18976 #, no-wrap
18977 msgid ""
18978 " egrepi regex path\n"
18979 "\n"
18980 msgstr ""
18981
18982 # type: =head2
18983 #: ../fish/guestfish-actions.pod:907
18984 msgid "equal"
18985 msgstr ""
18986
18987 # type: verbatim
18988 #: ../fish/guestfish-actions.pod:909
18989 #, no-wrap
18990 msgid ""
18991 " equal file1 file2\n"
18992 "\n"
18993 msgstr ""
18994
18995 # type: =head2
18996 #: ../fish/guestfish-actions.pod:916
18997 msgid "exists"
18998 msgstr ""
18999
19000 # type: verbatim
19001 #: ../fish/guestfish-actions.pod:918
19002 #, no-wrap
19003 msgid ""
19004 " exists path\n"
19005 "\n"
19006 msgstr ""
19007
19008 # type: textblock
19009 #: ../fish/guestfish-actions.pod:923
19010 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19011 msgstr ""
19012
19013 # type: =head2
19014 #: ../fish/guestfish-actions.pod:925
19015 msgid "fallocate"
19016 msgstr ""
19017
19018 # type: verbatim
19019 #: ../fish/guestfish-actions.pod:927
19020 #, no-wrap
19021 msgid ""
19022 " fallocate path len\n"
19023 "\n"
19024 msgstr ""
19025
19026 # type: =head2
19027 #: ../fish/guestfish-actions.pod:944
19028 msgid "fallocate64"
19029 msgstr ""
19030
19031 # type: verbatim
19032 #: ../fish/guestfish-actions.pod:946
19033 #, no-wrap
19034 msgid ""
19035 " fallocate64 path len\n"
19036 "\n"
19037 msgstr ""
19038
19039 # type: textblock
19040 #: ../fish/guestfish-actions.pod:952
19041 msgid ""
19042 "Note that this call allocates disk blocks for the file.  To create a sparse "
19043 "file use L</truncate-size> instead."
19044 msgstr ""
19045
19046 # type: textblock
19047 #: ../fish/guestfish-actions.pod:955
19048 msgid ""
19049 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19050 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19051 "maximum size of files created through that call to 1GB."
19052 msgstr ""
19053
19054 # type: =head2
19055 #: ../fish/guestfish-actions.pod:964
19056 msgid "fgrep"
19057 msgstr ""
19058
19059 # type: verbatim
19060 #: ../fish/guestfish-actions.pod:966
19061 #, no-wrap
19062 msgid ""
19063 " fgrep pattern path\n"
19064 "\n"
19065 msgstr ""
19066
19067 # type: =head2
19068 #: ../fish/guestfish-actions.pod:974
19069 msgid "fgrepi"
19070 msgstr ""
19071
19072 # type: verbatim
19073 #: ../fish/guestfish-actions.pod:976
19074 #, no-wrap
19075 msgid ""
19076 " fgrepi pattern path\n"
19077 "\n"
19078 msgstr ""
19079
19080 # type: =head2
19081 #: ../fish/guestfish-actions.pod:984
19082 msgid "file"
19083 msgstr ""
19084
19085 # type: verbatim
19086 #: ../fish/guestfish-actions.pod:986
19087 #, no-wrap
19088 msgid ""
19089 " file path\n"
19090 "\n"
19091 msgstr ""
19092
19093 # type: textblock
19094 #: ../fish/guestfish-actions.pod:998
19095 msgid ""
19096 "This command can also be used on C</dev/> devices (and partitions, LV "
19097 "names).  You can for example use this to determine if a device contains a "
19098 "filesystem, although it's usually better to use L</vfs-type>."
19099 msgstr ""
19100
19101 # type: =head2
19102 #: ../fish/guestfish-actions.pod:1008
19103 msgid "file-architecture"
19104 msgstr ""
19105
19106 # type: verbatim
19107 #: ../fish/guestfish-actions.pod:1010
19108 #, no-wrap
19109 msgid ""
19110 " file-architecture filename\n"
19111 "\n"
19112 msgstr ""
19113
19114 # type: =head2
19115 #: ../fish/guestfish-actions.pod:1113
19116 msgid "filesize"
19117 msgstr ""
19118
19119 # type: verbatim
19120 #: ../fish/guestfish-actions.pod:1115
19121 #, no-wrap
19122 msgid ""
19123 " filesize file\n"
19124 "\n"
19125 msgstr ""
19126
19127 # type: textblock
19128 #: ../fish/guestfish-actions.pod:1119
19129 msgid ""
19130 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
19131 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
19132 msgstr ""
19133
19134 # type: =head2
19135 #: ../fish/guestfish-actions.pod:1123
19136 msgid "fill"
19137 msgstr ""
19138
19139 # type: verbatim
19140 #: ../fish/guestfish-actions.pod:1125
19141 #, no-wrap
19142 msgid ""
19143 " fill c len path\n"
19144 "\n"
19145 msgstr ""
19146
19147 # type: textblock
19148 #: ../fish/guestfish-actions.pod:1131
19149 msgid ""
19150 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19151 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19152 "L</fill-pattern>."
19153 msgstr ""
19154
19155 # type: =head2
19156 #: ../fish/guestfish-actions.pod:1136
19157 msgid "fill-pattern"
19158 msgstr ""
19159
19160 # type: verbatim
19161 #: ../fish/guestfish-actions.pod:1138
19162 #, no-wrap
19163 msgid ""
19164 " fill-pattern pattern len path\n"
19165 "\n"
19166 msgstr ""
19167
19168 # type: textblock
19169 #: ../fish/guestfish-actions.pod:1140
19170 msgid ""
19171 "This function is like L</fill> except that it creates a new file of length "
19172 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19173 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19174 "bytes."
19175 msgstr ""
19176
19177 # type: =head2
19178 #: ../fish/guestfish-actions.pod:1145
19179 msgid "find"
19180 msgstr ""
19181
19182 # type: verbatim
19183 #: ../fish/guestfish-actions.pod:1147
19184 #, no-wrap
19185 msgid ""
19186 " find directory\n"
19187 "\n"
19188 msgstr ""
19189
19190 # type: textblock
19191 #: ../fish/guestfish-actions.pod:1161
19192 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19193 msgstr ""
19194
19195 # type: textblock
19196 #: ../fish/guestfish-actions.pod:1174
19197 msgid "See also L</find0>."
19198 msgstr ""
19199
19200 # type: =head2
19201 #: ../fish/guestfish-actions.pod:1179
19202 msgid "find0"
19203 msgstr ""
19204
19205 # type: verbatim
19206 #: ../fish/guestfish-actions.pod:1181
19207 #, no-wrap
19208 msgid ""
19209 " find0 directory (files|-)\n"
19210 "\n"
19211 msgstr ""
19212
19213 # type: textblock
19214 #: ../fish/guestfish-actions.pod:1187
19215 msgid ""
19216 "This command works the same way as L</find> with the following exceptions:"
19217 msgstr ""
19218
19219 # type: =head2
19220 #: ../fish/guestfish-actions.pod:1214
19221 msgid "findfs-label"
19222 msgstr ""
19223
19224 # type: verbatim
19225 #: ../fish/guestfish-actions.pod:1216
19226 #, no-wrap
19227 msgid ""
19228 " findfs-label label\n"
19229 "\n"
19230 msgstr ""
19231
19232 # type: textblock
19233 #: ../fish/guestfish-actions.pod:1222
19234 msgid "To find the label of a filesystem, use L</vfs-label>."
19235 msgstr ""
19236
19237 # type: =head2
19238 #: ../fish/guestfish-actions.pod:1224
19239 msgid "findfs-uuid"
19240 msgstr ""
19241
19242 # type: verbatim
19243 #: ../fish/guestfish-actions.pod:1226
19244 #, no-wrap
19245 msgid ""
19246 " findfs-uuid uuid\n"
19247 "\n"
19248 msgstr ""
19249
19250 # type: textblock
19251 #: ../fish/guestfish-actions.pod:1232
19252 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
19253 msgstr ""
19254
19255 # type: =head2
19256 #: ../fish/guestfish-actions.pod:1234
19257 msgid "fsck"
19258 msgstr ""
19259
19260 # type: verbatim
19261 #: ../fish/guestfish-actions.pod:1236
19262 #, no-wrap
19263 msgid ""
19264 " fsck fstype device\n"
19265 "\n"
19266 msgstr ""
19267
19268 # type: =head2
19269 #: ../fish/guestfish-actions.pod:1266
19270 msgid "get-append"
19271 msgstr ""
19272
19273 # type: verbatim
19274 #: ../fish/guestfish-actions.pod:1268
19275 #, no-wrap
19276 msgid ""
19277 " get-append\n"
19278 "\n"
19279 msgstr ""
19280
19281 # type: =head2
19282 #: ../fish/guestfish-actions.pod:1275
19283 msgid "get-autosync"
19284 msgstr ""
19285
19286 # type: verbatim
19287 #: ../fish/guestfish-actions.pod:1277
19288 #, no-wrap
19289 msgid ""
19290 " get-autosync\n"
19291 "\n"
19292 msgstr ""
19293
19294 # type: =head2
19295 #: ../fish/guestfish-actions.pod:1281
19296 msgid "get-direct"
19297 msgstr ""
19298
19299 # type: verbatim
19300 #: ../fish/guestfish-actions.pod:1283
19301 #, no-wrap
19302 msgid ""
19303 " get-direct\n"
19304 "\n"
19305 msgstr ""
19306
19307 # type: =head2
19308 #: ../fish/guestfish-actions.pod:1287
19309 msgid "get-e2label"
19310 msgstr ""
19311
19312 # type: verbatim
19313 #: ../fish/guestfish-actions.pod:1289
19314 #, no-wrap
19315 msgid ""
19316 " get-e2label device\n"
19317 "\n"
19318 msgstr ""
19319
19320 # type: =head2
19321 #: ../fish/guestfish-actions.pod:1301
19322 msgid "get-e2uuid"
19323 msgstr ""
19324
19325 # type: verbatim
19326 #: ../fish/guestfish-actions.pod:1303
19327 #, no-wrap
19328 msgid ""
19329 " get-e2uuid device\n"
19330 "\n"
19331 msgstr ""
19332
19333 # type: =head2
19334 #: ../fish/guestfish-actions.pod:1315
19335 msgid "get-memsize"
19336 msgstr ""
19337
19338 # type: verbatim
19339 #: ../fish/guestfish-actions.pod:1317
19340 #, no-wrap
19341 msgid ""
19342 " get-memsize\n"
19343 "\n"
19344 msgstr ""
19345
19346 # type: textblock
19347 #: ../fish/guestfish-actions.pod:1322
19348 msgid ""
19349 "If L</set-memsize> was not called on this handle, and if "
19350 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
19351 "value for memsize."
19352 msgstr ""
19353
19354 # type: =head2
19355 #: ../fish/guestfish-actions.pod:1329
19356 msgid "get-network"
19357 msgstr ""
19358
19359 # type: verbatim
19360 #: ../fish/guestfish-actions.pod:1331
19361 #, no-wrap
19362 msgid ""
19363 " get-network\n"
19364 "\n"
19365 msgstr ""
19366
19367 # type: =head2
19368 #: ../fish/guestfish-actions.pod:1335
19369 msgid "get-path"
19370 msgstr ""
19371
19372 # type: verbatim
19373 #: ../fish/guestfish-actions.pod:1337
19374 #, no-wrap
19375 msgid ""
19376 " get-path\n"
19377 "\n"
19378 msgstr ""
19379
19380 # type: =head2
19381 #: ../fish/guestfish-actions.pod:1344
19382 msgid "get-pid"
19383 msgstr ""
19384
19385 # type: =head2
19386 #: ../fish/guestfish-actions.pod:1346
19387 msgid "pid"
19388 msgstr ""
19389
19390 # type: verbatim
19391 #: ../fish/guestfish-actions.pod:1348
19392 #, no-wrap
19393 msgid ""
19394 " get-pid\n"
19395 "\n"
19396 msgstr ""
19397
19398 # type: =head2
19399 #: ../fish/guestfish-actions.pod:1355
19400 msgid "get-qemu"
19401 msgstr ""
19402
19403 # type: verbatim
19404 #: ../fish/guestfish-actions.pod:1357
19405 #, no-wrap
19406 msgid ""
19407 " get-qemu\n"
19408 "\n"
19409 msgstr ""
19410
19411 # type: =head2
19412 #: ../fish/guestfish-actions.pod:1364
19413 msgid "get-recovery-proc"
19414 msgstr ""
19415
19416 # type: verbatim
19417 #: ../fish/guestfish-actions.pod:1366
19418 #, no-wrap
19419 msgid ""
19420 " get-recovery-proc\n"
19421 "\n"
19422 msgstr ""
19423
19424 # type: =head2
19425 #: ../fish/guestfish-actions.pod:1370
19426 msgid "get-selinux"
19427 msgstr ""
19428
19429 # type: verbatim
19430 #: ../fish/guestfish-actions.pod:1372
19431 #, no-wrap
19432 msgid ""
19433 " get-selinux\n"
19434 "\n"
19435 msgstr ""
19436
19437 # type: textblock
19438 #: ../fish/guestfish-actions.pod:1374
19439 msgid ""
19440 "This returns the current setting of the selinux flag which is passed to the "
19441 "appliance at boot time.  See L</set-selinux>."
19442 msgstr ""
19443
19444 # type: =head2
19445 #: ../fish/guestfish-actions.pod:1380
19446 msgid "get-state"
19447 msgstr ""
19448
19449 # type: verbatim
19450 #: ../fish/guestfish-actions.pod:1382
19451 #, no-wrap
19452 msgid ""
19453 " get-state\n"
19454 "\n"
19455 msgstr ""
19456
19457 # type: =head2
19458 #: ../fish/guestfish-actions.pod:1389
19459 msgid "get-trace"
19460 msgstr ""
19461
19462 # type: verbatim
19463 #: ../fish/guestfish-actions.pod:1391
19464 #, no-wrap
19465 msgid ""
19466 " get-trace\n"
19467 "\n"
19468 msgstr ""
19469
19470 # type: =head2
19471 #: ../fish/guestfish-actions.pod:1395
19472 msgid "get-umask"
19473 msgstr ""
19474
19475 # type: verbatim
19476 #: ../fish/guestfish-actions.pod:1397
19477 #, no-wrap
19478 msgid ""
19479 " get-umask\n"
19480 "\n"
19481 msgstr ""
19482
19483 # type: textblock
19484 #: ../fish/guestfish-actions.pod:1399
19485 msgid ""
19486 "Return the current umask.  By default the umask is C<022> unless it has been "
19487 "set by calling L</umask>."
19488 msgstr ""
19489
19490 # type: =head2
19491 #: ../fish/guestfish-actions.pod:1402
19492 msgid "get-verbose"
19493 msgstr ""
19494
19495 # type: verbatim
19496 #: ../fish/guestfish-actions.pod:1404
19497 #, no-wrap
19498 msgid ""
19499 " get-verbose\n"
19500 "\n"
19501 msgstr ""
19502
19503 # type: =head2
19504 #: ../fish/guestfish-actions.pod:1408
19505 msgid "getcon"
19506 msgstr ""
19507
19508 # type: verbatim
19509 #: ../fish/guestfish-actions.pod:1410
19510 #, no-wrap
19511 msgid ""
19512 " getcon\n"
19513 "\n"
19514 msgstr ""
19515
19516 # type: textblock
19517 #: ../fish/guestfish-actions.pod:1414
19518 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19519 msgstr ""
19520
19521 # type: =head2
19522 #: ../fish/guestfish-actions.pod:1417
19523 msgid "getxattrs"
19524 msgstr ""
19525
19526 # type: verbatim
19527 #: ../fish/guestfish-actions.pod:1419
19528 #, no-wrap
19529 msgid ""
19530 " getxattrs path\n"
19531 "\n"
19532 msgstr ""
19533
19534 # type: textblock
19535 #: ../fish/guestfish-actions.pod:1427
19536 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19537 msgstr ""
19538
19539 # type: =head2
19540 #: ../fish/guestfish-actions.pod:1429
19541 msgid "glob-expand"
19542 msgstr ""
19543
19544 # type: verbatim
19545 #: ../fish/guestfish-actions.pod:1431
19546 #, no-wrap
19547 msgid ""
19548 " glob-expand pattern\n"
19549 "\n"
19550 msgstr ""
19551
19552 # type: =head2
19553 #: ../fish/guestfish-actions.pod:1444
19554 msgid "grep"
19555 msgstr ""
19556
19557 # type: verbatim
19558 #: ../fish/guestfish-actions.pod:1446
19559 #, no-wrap
19560 msgid ""
19561 " grep regex path\n"
19562 "\n"
19563 msgstr ""
19564
19565 # type: =head2
19566 #: ../fish/guestfish-actions.pod:1454
19567 msgid "grepi"
19568 msgstr ""
19569
19570 # type: verbatim
19571 #: ../fish/guestfish-actions.pod:1456
19572 #, no-wrap
19573 msgid ""
19574 " grepi regex path\n"
19575 "\n"
19576 msgstr ""
19577
19578 # type: =head2
19579 #: ../fish/guestfish-actions.pod:1464
19580 msgid "grub-install"
19581 msgstr ""
19582
19583 # type: verbatim
19584 #: ../fish/guestfish-actions.pod:1466
19585 #, no-wrap
19586 msgid ""
19587 " grub-install root device\n"
19588 "\n"
19589 msgstr ""
19590
19591 # type: =head2
19592 #: ../fish/guestfish-actions.pod:1482
19593 msgid "head"
19594 msgstr ""
19595
19596 # type: verbatim
19597 #: ../fish/guestfish-actions.pod:1484
19598 #, no-wrap
19599 msgid ""
19600 " head path\n"
19601 "\n"
19602 msgstr ""
19603
19604 # type: =head2
19605 #: ../fish/guestfish-actions.pod:1492
19606 msgid "head-n"
19607 msgstr ""
19608
19609 # type: verbatim
19610 #: ../fish/guestfish-actions.pod:1494
19611 #, no-wrap
19612 msgid ""
19613 " head-n nrlines path\n"
19614 "\n"
19615 msgstr ""
19616
19617 # type: =head2
19618 #: ../fish/guestfish-actions.pod:1507
19619 msgid "hexdump"
19620 msgstr ""
19621
19622 # type: verbatim
19623 #: ../fish/guestfish-actions.pod:1509
19624 #, no-wrap
19625 msgid ""
19626 " hexdump path\n"
19627 "\n"
19628 msgstr ""
19629
19630 # type: =head2
19631 #: ../fish/guestfish-actions.pod:1517
19632 msgid "initrd-cat"
19633 msgstr ""
19634
19635 # type: verbatim
19636 #: ../fish/guestfish-actions.pod:1519
19637 #, no-wrap
19638 msgid ""
19639 " initrd-cat initrdpath filename\n"
19640 "\n"
19641 msgstr ""
19642
19643 # type: textblock
19644 #: ../fish/guestfish-actions.pod:1531
19645 msgid "See also L</initrd-list>."
19646 msgstr ""
19647
19648 # type: =head2
19649 #: ../fish/guestfish-actions.pod:1536
19650 msgid "initrd-list"
19651 msgstr ""
19652
19653 # type: verbatim
19654 #: ../fish/guestfish-actions.pod:1538
19655 #, no-wrap
19656 msgid ""
19657 " initrd-list path\n"
19658 "\n"
19659 msgstr ""
19660
19661 # type: =head2
19662 #: ../fish/guestfish-actions.pod:1550
19663 msgid "inotify-add-watch"
19664 msgstr ""
19665
19666 # type: verbatim
19667 #: ../fish/guestfish-actions.pod:1552
19668 #, no-wrap
19669 msgid ""
19670 " inotify-add-watch path mask\n"
19671 "\n"
19672 msgstr ""
19673
19674 # type: =head2
19675 #: ../fish/guestfish-actions.pod:1564
19676 msgid "inotify-close"
19677 msgstr ""
19678
19679 # type: verbatim
19680 #: ../fish/guestfish-actions.pod:1566
19681 #, no-wrap
19682 msgid ""
19683 " inotify-close\n"
19684 "\n"
19685 msgstr ""
19686
19687 # type: =head2
19688 #: ../fish/guestfish-actions.pod:1572
19689 msgid "inotify-files"
19690 msgstr ""
19691
19692 # type: verbatim
19693 #: ../fish/guestfish-actions.pod:1574
19694 #, no-wrap
19695 msgid ""
19696 " inotify-files\n"
19697 "\n"
19698 msgstr ""
19699
19700 # type: textblock
19701 #: ../fish/guestfish-actions.pod:1576
19702 msgid ""
19703 "This function is a helpful wrapper around L</inotify-read> which just "
19704 "returns a list of pathnames of objects that were touched.  The returned "
19705 "pathnames are sorted and deduplicated."
19706 msgstr ""
19707
19708 # type: =head2
19709 #: ../fish/guestfish-actions.pod:1580
19710 msgid "inotify-init"
19711 msgstr ""
19712
19713 # type: verbatim
19714 #: ../fish/guestfish-actions.pod:1582
19715 #, no-wrap
19716 msgid ""
19717 " inotify-init maxevents\n"
19718 "\n"
19719 msgstr ""
19720
19721 # type: textblock
19722 #: ../fish/guestfish-actions.pod:1588
19723 msgid ""
19724 "C<maxevents> is the maximum number of events which will be queued up between "
19725 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19726 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19727 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19728 "but records the fact that it threw them away by setting a flag "
19729 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19730 msgstr ""
19731
19732 # type: textblock
19733 #: ../fish/guestfish-actions.pod:1598
19734 msgid ""
19735 "Before any events are generated, you have to add some watches to the "
19736 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19737 "L</inotify-watch-all>."
19738 msgstr ""
19739
19740 # type: textblock
19741 #: ../fish/guestfish-actions.pod:1604
19742 msgid ""
19743 "Queued up events should be read periodically by calling L</inotify-read> (or "
19744 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19745 "If you don't read the events out often enough then you risk the internal "
19746 "queue overflowing."
19747 msgstr ""
19748
19749 # type: textblock
19750 #: ../fish/guestfish-actions.pod:1611
19751 msgid ""
19752 "The handle should be closed after use by calling L</inotify-close>.  This "
19753 "also removes any watches automatically."
19754 msgstr ""
19755
19756 # type: =head2
19757 #: ../fish/guestfish-actions.pod:1620
19758 msgid "inotify-read"
19759 msgstr ""
19760
19761 # type: verbatim
19762 #: ../fish/guestfish-actions.pod:1622
19763 #, no-wrap
19764 msgid ""
19765 " inotify-read\n"
19766 "\n"
19767 msgstr ""
19768
19769 # type: =head2
19770 #: ../fish/guestfish-actions.pod:1635
19771 msgid "inotify-rm-watch"
19772 msgstr ""
19773
19774 # type: verbatim
19775 #: ../fish/guestfish-actions.pod:1637
19776 #, no-wrap
19777 msgid ""
19778 " inotify-rm-watch wd\n"
19779 "\n"
19780 msgstr ""
19781
19782 # type: textblock
19783 #: ../fish/guestfish-actions.pod:1639
19784 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19785 msgstr ""
19786
19787 # type: =head2
19788 #: ../fish/guestfish-actions.pod:1642
19789 msgid "inspect-get-arch"
19790 msgstr ""
19791
19792 # type: verbatim
19793 #: ../fish/guestfish-actions.pod:1644
19794 #, no-wrap
19795 msgid ""
19796 " inspect-get-arch root\n"
19797 "\n"
19798 msgstr ""
19799
19800 # type: textblock
19801 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662
19802 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1746
19803 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1782
19804 #: ../fish/guestfish-actions.pod:1805 ../fish/guestfish-actions.pod:1822
19805 #: ../fish/guestfish-actions.pod:1853
19806 msgid ""
19807 "This function should only be called with a root device string as returned by "
19808 "L</inspect-os>."
19809 msgstr ""
19810
19811 # type: textblock
19812 #: ../fish/guestfish-actions.pod:1649
19813 msgid ""
19814 "This returns the architecture of the inspected operating system.  The "
19815 "possible return values are listed under L</file-architecture>."
19816 msgstr ""
19817
19818 # type: =head2
19819 #: ../fish/guestfish-actions.pod:1658
19820 msgid "inspect-get-distro"
19821 msgstr ""
19822
19823 # type: verbatim
19824 #: ../fish/guestfish-actions.pod:1660
19825 #, no-wrap
19826 msgid ""
19827 " inspect-get-distro root\n"
19828 "\n"
19829 msgstr ""
19830
19831 # type: =head2
19832 #: ../fish/guestfish-actions.pod:1724
19833 msgid "inspect-get-filesystems"
19834 msgstr ""
19835
19836 # type: verbatim
19837 #: ../fish/guestfish-actions.pod:1726
19838 #, no-wrap
19839 msgid ""
19840 " inspect-get-filesystems root\n"
19841 "\n"
19842 msgstr ""
19843
19844 # type: textblock
19845 #: ../fish/guestfish-actions.pod:1739
19846 msgid ""
19847 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19848 "get-mountpoints>."
19849 msgstr ""
19850
19851 # type: =head2
19852 #: ../fish/guestfish-actions.pod:1742
19853 msgid "inspect-get-major-version"
19854 msgstr ""
19855
19856 # type: verbatim
19857 #: ../fish/guestfish-actions.pod:1744
19858 #, no-wrap
19859 msgid ""
19860 " inspect-get-major-version root\n"
19861 "\n"
19862 msgstr ""
19863
19864 # type: =head2
19865 #: ../fish/guestfish-actions.pod:1763
19866 msgid "inspect-get-minor-version"
19867 msgstr ""
19868
19869 # type: verbatim
19870 #: ../fish/guestfish-actions.pod:1765
19871 #, no-wrap
19872 msgid ""
19873 " inspect-get-minor-version root\n"
19874 "\n"
19875 msgstr ""
19876
19877 # type: textblock
19878 #: ../fish/guestfish-actions.pod:1775
19879 msgid ""
19880 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19881 "get-major-version>."
19882 msgstr ""
19883
19884 # type: =head2
19885 #: ../fish/guestfish-actions.pod:1778
19886 msgid "inspect-get-mountpoints"
19887 msgstr ""
19888
19889 # type: verbatim
19890 #: ../fish/guestfish-actions.pod:1780
19891 #, no-wrap
19892 msgid ""
19893 " inspect-get-mountpoints root\n"
19894 "\n"
19895 msgstr ""
19896
19897 # type: textblock
19898 #: ../fish/guestfish-actions.pod:1798
19899 msgid ""
19900 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
19901 "get-filesystems>."
19902 msgstr ""
19903
19904 # type: =head2
19905 #: ../fish/guestfish-actions.pod:1801
19906 msgid "inspect-get-product-name"
19907 msgstr ""
19908
19909 # type: verbatim
19910 #: ../fish/guestfish-actions.pod:1803
19911 #, no-wrap
19912 msgid ""
19913 " inspect-get-product-name root\n"
19914 "\n"
19915 msgstr ""
19916
19917 # type: =head2
19918 #: ../fish/guestfish-actions.pod:1818
19919 msgid "inspect-get-type"
19920 msgstr ""
19921
19922 # type: verbatim
19923 #: ../fish/guestfish-actions.pod:1820
19924 #, no-wrap
19925 msgid ""
19926 " inspect-get-type root\n"
19927 "\n"
19928 msgstr ""
19929
19930 # type: =head2
19931 #: ../fish/guestfish-actions.pod:1849
19932 msgid "inspect-get-windows-systemroot"
19933 msgstr ""
19934
19935 # type: verbatim
19936 #: ../fish/guestfish-actions.pod:1851
19937 #, no-wrap
19938 msgid ""
19939 " inspect-get-windows-systemroot root\n"
19940 "\n"
19941 msgstr ""
19942
19943 # type: =head2
19944 #: ../fish/guestfish-actions.pod:1865
19945 msgid "inspect-os"
19946 msgstr ""
19947
19948 # type: verbatim
19949 #: ../fish/guestfish-actions.pod:1867
19950 #, no-wrap
19951 msgid ""
19952 " inspect-os\n"
19953 "\n"
19954 msgstr ""
19955
19956 # type: textblock
19957 #: ../fish/guestfish-actions.pod:1882
19958 msgid ""
19959 "You can pass the root string(s) returned to other L</inspect-get-*> "
19960 "functions in order to query further information about each operating system, "
19961 "such as the name and version."
19962 msgstr ""
19963
19964 # type: textblock
19965 #: ../fish/guestfish-actions.pod:1887
19966 msgid ""
19967 "This function uses other libguestfs features such as L</mount-ro> and L</"
19968 "umount-all> in order to mount and unmount filesystems and look at the "
19969 "contents.  This should be called with no disks currently mounted.  The "
19970 "function may also use Augeas, so any existing Augeas handle will be closed."
19971 msgstr ""
19972
19973 # type: textblock
19974 #: ../fish/guestfish-actions.pod:1899 ../fish/guestfish-actions.pod:2055
19975 #: ../fish/guestfish-actions.pod:2101
19976 msgid "See also L</list-filesystems>."
19977 msgstr ""
19978
19979 # type: =head2
19980 #: ../fish/guestfish-actions.pod:1901
19981 msgid "is-blockdev"
19982 msgstr ""
19983
19984 # type: verbatim
19985 #: ../fish/guestfish-actions.pod:1903
19986 #, no-wrap
19987 msgid ""
19988 " is-blockdev path\n"
19989 "\n"
19990 msgstr ""
19991
19992 # type: textblock
19993 #: ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1926
19994 #: ../fish/guestfish-actions.pod:1945 ../fish/guestfish-actions.pod:1954
19995 #: ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1998
19996 #: ../fish/guestfish-actions.pod:2007
19997 msgid "See also L</stat>."
19998 msgstr ""
19999
20000 # type: =head2
20001 #: ../fish/guestfish-actions.pod:1910
20002 msgid "is-busy"
20003 msgstr ""
20004
20005 # type: verbatim
20006 #: ../fish/guestfish-actions.pod:1912
20007 #, no-wrap
20008 msgid ""
20009 " is-busy\n"
20010 "\n"
20011 msgstr ""
20012
20013 # type: =head2
20014 #: ../fish/guestfish-actions.pod:1919
20015 msgid "is-chardev"
20016 msgstr ""
20017
20018 # type: verbatim
20019 #: ../fish/guestfish-actions.pod:1921
20020 #, no-wrap
20021 msgid ""
20022 " is-chardev path\n"
20023 "\n"
20024 msgstr ""
20025
20026 # type: =head2
20027 #: ../fish/guestfish-actions.pod:1928
20028 msgid "is-config"
20029 msgstr ""
20030
20031 # type: verbatim
20032 #: ../fish/guestfish-actions.pod:1930
20033 #, no-wrap
20034 msgid ""
20035 " is-config\n"
20036 "\n"
20037 msgstr ""
20038
20039 # type: =head2
20040 #: ../fish/guestfish-actions.pod:1937
20041 msgid "is-dir"
20042 msgstr ""
20043
20044 # type: verbatim
20045 #: ../fish/guestfish-actions.pod:1939
20046 #, no-wrap
20047 msgid ""
20048 " is-dir path\n"
20049 "\n"
20050 msgstr ""
20051
20052 # type: =head2
20053 #: ../fish/guestfish-actions.pod:1947
20054 msgid "is-fifo"
20055 msgstr ""
20056
20057 # type: verbatim
20058 #: ../fish/guestfish-actions.pod:1949
20059 #, no-wrap
20060 msgid ""
20061 " is-fifo path\n"
20062 "\n"
20063 msgstr ""
20064
20065 # type: =head2
20066 #: ../fish/guestfish-actions.pod:1956
20067 msgid "is-file"
20068 msgstr ""
20069
20070 # type: verbatim
20071 #: ../fish/guestfish-actions.pod:1958
20072 #, no-wrap
20073 msgid ""
20074 " is-file path\n"
20075 "\n"
20076 msgstr ""
20077
20078 # type: =head2
20079 #: ../fish/guestfish-actions.pod:1966
20080 msgid "is-launching"
20081 msgstr ""
20082
20083 # type: verbatim
20084 #: ../fish/guestfish-actions.pod:1968
20085 #, no-wrap
20086 msgid ""
20087 " is-launching\n"
20088 "\n"
20089 msgstr ""
20090
20091 # type: =head2
20092 #: ../fish/guestfish-actions.pod:1975
20093 msgid "is-lv"
20094 msgstr ""
20095
20096 # type: verbatim
20097 #: ../fish/guestfish-actions.pod:1977
20098 #, no-wrap
20099 msgid ""
20100 " is-lv device\n"
20101 "\n"
20102 msgstr ""
20103
20104 # type: =head2
20105 #: ../fish/guestfish-actions.pod:1982
20106 msgid "is-ready"
20107 msgstr ""
20108
20109 # type: verbatim
20110 #: ../fish/guestfish-actions.pod:1984
20111 #, no-wrap
20112 msgid ""
20113 " is-ready\n"
20114 "\n"
20115 msgstr ""
20116
20117 # type: =head2
20118 #: ../fish/guestfish-actions.pod:1991
20119 msgid "is-socket"
20120 msgstr ""
20121
20122 # type: verbatim
20123 #: ../fish/guestfish-actions.pod:1993
20124 #, no-wrap
20125 msgid ""
20126 " is-socket path\n"
20127 "\n"
20128 msgstr ""
20129
20130 # type: =head2
20131 #: ../fish/guestfish-actions.pod:2000
20132 msgid "is-symlink"
20133 msgstr ""
20134
20135 # type: verbatim
20136 #: ../fish/guestfish-actions.pod:2002
20137 #, no-wrap
20138 msgid ""
20139 " is-symlink path\n"
20140 "\n"
20141 msgstr ""
20142
20143 # type: =head2
20144 #: ../fish/guestfish-actions.pod:2009
20145 msgid "kill-subprocess"
20146 msgstr ""
20147
20148 # type: verbatim
20149 #: ../fish/guestfish-actions.pod:2011
20150 #, no-wrap
20151 msgid ""
20152 " kill-subprocess\n"
20153 "\n"
20154 msgstr ""
20155
20156 # type: =head2
20157 #: ../fish/guestfish-actions.pod:2015
20158 msgid "launch"
20159 msgstr ""
20160
20161 # type: =head2
20162 #: ../fish/guestfish-actions.pod:2017
20163 msgid "run"
20164 msgstr ""
20165
20166 # type: verbatim
20167 #: ../fish/guestfish-actions.pod:2019
20168 #, no-wrap
20169 msgid ""
20170 " launch\n"
20171 "\n"
20172 msgstr ""
20173
20174 # type: =head2
20175 #: ../fish/guestfish-actions.pod:2027
20176 msgid "lchown"
20177 msgstr ""
20178
20179 # type: verbatim
20180 #: ../fish/guestfish-actions.pod:2029
20181 #, no-wrap
20182 msgid ""
20183 " lchown owner group path\n"
20184 "\n"
20185 msgstr ""
20186
20187 # type: textblock
20188 #: ../fish/guestfish-actions.pod:2031
20189 msgid ""
20190 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
20191 "chown> but if C<path> is a symlink then the link itself is changed, not the "
20192 "target."
20193 msgstr ""
20194
20195 # type: =head2
20196 #: ../fish/guestfish-actions.pod:2039
20197 msgid "lgetxattrs"
20198 msgstr ""
20199
20200 # type: verbatim
20201 #: ../fish/guestfish-actions.pod:2041
20202 #, no-wrap
20203 msgid ""
20204 " lgetxattrs path\n"
20205 "\n"
20206 msgstr ""
20207
20208 # type: textblock
20209 #: ../fish/guestfish-actions.pod:2043
20210 msgid ""
20211 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
20212 "it returns the extended attributes of the link itself."
20213 msgstr ""
20214
20215 # type: =head2
20216 #: ../fish/guestfish-actions.pod:2047
20217 msgid "list-devices"
20218 msgstr ""
20219
20220 # type: verbatim
20221 #: ../fish/guestfish-actions.pod:2049
20222 #, no-wrap
20223 msgid ""
20224 " list-devices\n"
20225 "\n"
20226 msgstr ""
20227
20228 # type: =head2
20229 #: ../fish/guestfish-actions.pod:2057
20230 msgid "list-filesystems"
20231 msgstr ""
20232
20233 # type: verbatim
20234 #: ../fish/guestfish-actions.pod:2059
20235 #, no-wrap
20236 msgid ""
20237 " list-filesystems\n"
20238 "\n"
20239 msgstr ""
20240
20241 # type: textblock
20242 #: ../fish/guestfish-actions.pod:2078
20243 msgid ""
20244 "This command runs other libguestfs commands, which might include L</mount> "
20245 "and L</umount>, and therefore you should use this soon after launch and only "
20246 "when nothing is mounted."
20247 msgstr ""
20248
20249 # type: textblock
20250 #: ../fish/guestfish-actions.pod:2082
20251 msgid ""
20252 "Not all of the filesystems returned will be mountable.  In particular, swap "
20253 "partitions are returned in the list.  Also this command does not check that "
20254 "each filesystem found is valid and mountable, and some filesystems might be "
20255 "mountable but require special options.  Filesystems may not all belong to a "
20256 "single logical operating system (use L</inspect-os> to look for OSes)."
20257 msgstr ""
20258
20259 # type: =head2
20260 #: ../fish/guestfish-actions.pod:2090
20261 msgid "list-partitions"
20262 msgstr ""
20263
20264 # type: verbatim
20265 #: ../fish/guestfish-actions.pod:2092
20266 #, no-wrap
20267 msgid ""
20268 " list-partitions\n"
20269 "\n"
20270 msgstr ""
20271
20272 # type: textblock
20273 #: ../fish/guestfish-actions.pod:2098
20274 msgid ""
20275 "This does not return logical volumes.  For that you will need to call L</"
20276 "lvs>."
20277 msgstr ""
20278
20279 # type: =head2
20280 #: ../fish/guestfish-actions.pod:2103
20281 msgid "ll"
20282 msgstr ""
20283
20284 # type: verbatim
20285 #: ../fish/guestfish-actions.pod:2105
20286 #, no-wrap
20287 msgid ""
20288 " ll directory\n"
20289 "\n"
20290 msgstr ""
20291
20292 # type: =head2
20293 #: ../fish/guestfish-actions.pod:2113
20294 msgid "ln"
20295 msgstr ""
20296
20297 # type: verbatim
20298 #: ../fish/guestfish-actions.pod:2115
20299 #, no-wrap
20300 msgid ""
20301 " ln target linkname\n"
20302 "\n"
20303 msgstr ""
20304
20305 # type: =head2
20306 #: ../fish/guestfish-actions.pod:2119
20307 msgid "ln-f"
20308 msgstr ""
20309
20310 # type: verbatim
20311 #: ../fish/guestfish-actions.pod:2121
20312 #, no-wrap
20313 msgid ""
20314 " ln-f target linkname\n"
20315 "\n"
20316 msgstr ""
20317
20318 # type: =head2
20319 #: ../fish/guestfish-actions.pod:2126
20320 msgid "ln-s"
20321 msgstr ""
20322
20323 # type: verbatim
20324 #: ../fish/guestfish-actions.pod:2128
20325 #, no-wrap
20326 msgid ""
20327 " ln-s target linkname\n"
20328 "\n"
20329 msgstr ""
20330
20331 # type: =head2
20332 #: ../fish/guestfish-actions.pod:2132
20333 msgid "ln-sf"
20334 msgstr ""
20335
20336 # type: verbatim
20337 #: ../fish/guestfish-actions.pod:2134
20338 #, no-wrap
20339 msgid ""
20340 " ln-sf target linkname\n"
20341 "\n"
20342 msgstr ""
20343
20344 # type: =head2
20345 #: ../fish/guestfish-actions.pod:2139
20346 msgid "lremovexattr"
20347 msgstr ""
20348
20349 # type: verbatim
20350 #: ../fish/guestfish-actions.pod:2141
20351 #, no-wrap
20352 msgid ""
20353 " lremovexattr xattr path\n"
20354 "\n"
20355 msgstr ""
20356
20357 # type: textblock
20358 #: ../fish/guestfish-actions.pod:2143
20359 msgid ""
20360 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
20361 "it removes an extended attribute of the link itself."
20362 msgstr ""
20363
20364 # type: =head2
20365 #: ../fish/guestfish-actions.pod:2147
20366 msgid "ls"
20367 msgstr ""
20368
20369 # type: verbatim
20370 #: ../fish/guestfish-actions.pod:2149
20371 #, no-wrap
20372 msgid ""
20373 " ls directory\n"
20374 "\n"
20375 msgstr ""
20376
20377 # type: textblock
20378 #: ../fish/guestfish-actions.pod:2155
20379 msgid ""
20380 "This command is mostly useful for interactive sessions.  Programs should "
20381 "probably use L</readdir> instead."
20382 msgstr ""
20383
20384 # type: =head2
20385 #: ../fish/guestfish-actions.pod:2158
20386 msgid "lsetxattr"
20387 msgstr ""
20388
20389 # type: verbatim
20390 #: ../fish/guestfish-actions.pod:2160
20391 #, no-wrap
20392 msgid ""
20393 " lsetxattr xattr val vallen path\n"
20394 "\n"
20395 msgstr ""
20396
20397 # type: textblock
20398 #: ../fish/guestfish-actions.pod:2162
20399 msgid ""
20400 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20401 "sets an extended attribute of the link itself."
20402 msgstr ""
20403
20404 # type: =head2
20405 #: ../fish/guestfish-actions.pod:2166
20406 msgid "lstat"
20407 msgstr ""
20408
20409 # type: verbatim
20410 #: ../fish/guestfish-actions.pod:2168
20411 #, no-wrap
20412 msgid ""
20413 " lstat path\n"
20414 "\n"
20415 msgstr ""
20416
20417 # type: textblock
20418 #: ../fish/guestfish-actions.pod:2172
20419 msgid ""
20420 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20421 "the link is stat-ed, not the file it refers to."
20422 msgstr ""
20423
20424 # type: =head2
20425 #: ../fish/guestfish-actions.pod:2178
20426 msgid "lstatlist"
20427 msgstr ""
20428
20429 # type: verbatim
20430 #: ../fish/guestfish-actions.pod:2180
20431 #, no-wrap
20432 msgid ""
20433 " lstatlist path 'names ...'\n"
20434 "\n"
20435 msgstr ""
20436
20437 # type: textblock
20438 #: ../fish/guestfish-actions.pod:2182
20439 msgid ""
20440 "This call allows you to perform the L</lstat> operation on multiple files, "
20441 "where all files are in the directory C<path>.  C<names> is the list of files "
20442 "from this directory."
20443 msgstr ""
20444
20445 # type: textblock
20446 #: ../fish/guestfish-actions.pod:2191
20447 msgid ""
20448 "This call is intended for programs that want to efficiently list a directory "
20449 "contents without making many round-trips.  See also L</lxattrlist> for a "
20450 "similarly efficient call for getting extended attributes.  Very long "
20451 "directory listings might cause the protocol message size to be exceeded, "
20452 "causing this call to fail.  The caller must split up such requests into "
20453 "smaller groups of names."
20454 msgstr ""
20455
20456 # type: =head2
20457 #: ../fish/guestfish-actions.pod:2199
20458 msgid "luks-add-key"
20459 msgstr ""
20460
20461 # type: verbatim
20462 #: ../fish/guestfish-actions.pod:2201
20463 #, no-wrap
20464 msgid ""
20465 " luks-add-key device keyslot\n"
20466 "\n"
20467 msgstr ""
20468
20469 # type: textblock
20470 #: ../fish/guestfish-actions.pod:2208
20471 msgid ""
20472 "Note that if C<keyslot> already contains a key, then this command will "
20473 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20474 msgstr ""
20475
20476 # type: textblock
20477 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2234
20478 #: ../fish/guestfish-actions.pod:2247 ../fish/guestfish-actions.pod:2261
20479 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2294
20480 msgid ""
20481 "This command has one or more key or passphrase parameters.  Guestfish will "
20482 "prompt for these separately."
20483 msgstr ""
20484
20485 # type: =head2
20486 #: ../fish/guestfish-actions.pod:2215
20487 msgid "luks-close"
20488 msgstr ""
20489
20490 # type: verbatim
20491 #: ../fish/guestfish-actions.pod:2217
20492 #, no-wrap
20493 msgid ""
20494 " luks-close device\n"
20495 "\n"
20496 msgstr ""
20497
20498 # type: textblock
20499 #: ../fish/guestfish-actions.pod:2219
20500 msgid ""
20501 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
20502 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
20503 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
20504 "block device."
20505 msgstr ""
20506
20507 # type: =head2
20508 #: ../fish/guestfish-actions.pod:2225
20509 msgid "luks-format"
20510 msgstr ""
20511
20512 # type: verbatim
20513 #: ../fish/guestfish-actions.pod:2227
20514 #, no-wrap
20515 msgid ""
20516 " luks-format device keyslot\n"
20517 "\n"
20518 msgstr ""
20519
20520 # type: =head2
20521 #: ../fish/guestfish-actions.pod:2240
20522 msgid "luks-format-cipher"
20523 msgstr ""
20524
20525 # type: verbatim
20526 #: ../fish/guestfish-actions.pod:2242
20527 #, no-wrap
20528 msgid ""
20529 " luks-format-cipher device keyslot cipher\n"
20530 "\n"
20531 msgstr ""
20532
20533 # type: textblock
20534 #: ../fish/guestfish-actions.pod:2244
20535 msgid ""
20536 "This command is the same as L</luks-format> but it also allows you to set "
20537 "the C<cipher> used."
20538 msgstr ""
20539
20540 # type: =head2
20541 #: ../fish/guestfish-actions.pod:2253
20542 msgid "luks-kill-slot"
20543 msgstr ""
20544
20545 # type: verbatim
20546 #: ../fish/guestfish-actions.pod:2255
20547 #, no-wrap
20548 msgid ""
20549 " luks-kill-slot device keyslot\n"
20550 "\n"
20551 msgstr ""
20552
20553 # type: =head2
20554 #: ../fish/guestfish-actions.pod:2264
20555 msgid "luks-open"
20556 msgstr ""
20557
20558 # type: verbatim
20559 #: ../fish/guestfish-actions.pod:2266
20560 #, no-wrap
20561 msgid ""
20562 " luks-open device mapname\n"
20563 "\n"
20564 msgstr ""
20565
20566 # type: textblock
20567 #: ../fish/guestfish-actions.pod:2280
20568 msgid ""
20569 "If this block device contains LVM volume groups, then calling L</vgscan> "
20570 "followed by L</vg-activate-all> will make them visible."
20571 msgstr ""
20572
20573 # type: =head2
20574 #: ../fish/guestfish-actions.pod:2287
20575 msgid "luks-open-ro"
20576 msgstr ""
20577
20578 # type: verbatim
20579 #: ../fish/guestfish-actions.pod:2289
20580 #, no-wrap
20581 msgid ""
20582 " luks-open-ro device mapname\n"
20583 "\n"
20584 msgstr ""
20585
20586 # type: textblock
20587 #: ../fish/guestfish-actions.pod:2291
20588 msgid ""
20589 "This is the same as L</luks-open> except that a read-only mapping is created."
20590 msgstr ""
20591
20592 # type: =head2
20593 #: ../fish/guestfish-actions.pod:2297
20594 msgid "lvcreate"
20595 msgstr ""
20596
20597 # type: verbatim
20598 #: ../fish/guestfish-actions.pod:2299
20599 #, no-wrap
20600 msgid ""
20601 " lvcreate logvol volgroup mbytes\n"
20602 "\n"
20603 msgstr ""
20604
20605 # type: =head2
20606 #: ../fish/guestfish-actions.pod:2304
20607 msgid "lvm-canonical-lv-name"
20608 msgstr ""
20609
20610 # type: verbatim
20611 #: ../fish/guestfish-actions.pod:2306
20612 #, no-wrap
20613 msgid ""
20614 " lvm-canonical-lv-name lvname\n"
20615 "\n"
20616 msgstr ""
20617
20618 # type: textblock
20619 #: ../fish/guestfish-actions.pod:2315
20620 msgid "See also L</is-lv>."
20621 msgstr ""
20622
20623 # type: =head2
20624 #: ../fish/guestfish-actions.pod:2317
20625 msgid "lvm-clear-filter"
20626 msgstr ""
20627
20628 # type: verbatim
20629 #: ../fish/guestfish-actions.pod:2319
20630 #, no-wrap
20631 msgid ""
20632 " lvm-clear-filter\n"
20633 "\n"
20634 msgstr ""
20635
20636 # type: textblock
20637 #: ../fish/guestfish-actions.pod:2321
20638 msgid ""
20639 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20640 "block device."
20641 msgstr ""
20642
20643 # type: =head2
20644 #: ../fish/guestfish-actions.pod:2327
20645 msgid "lvm-remove-all"
20646 msgstr ""
20647
20648 # type: verbatim
20649 #: ../fish/guestfish-actions.pod:2329
20650 #, no-wrap
20651 msgid ""
20652 " lvm-remove-all\n"
20653 "\n"
20654 msgstr ""
20655
20656 # type: =head2
20657 #: ../fish/guestfish-actions.pod:2337
20658 msgid "lvm-set-filter"
20659 msgstr ""
20660
20661 # type: verbatim
20662 #: ../fish/guestfish-actions.pod:2339
20663 #, no-wrap
20664 msgid ""
20665 " lvm-set-filter 'devices ...'\n"
20666 "\n"
20667 msgstr ""
20668
20669 # type: =head2
20670 #: ../fish/guestfish-actions.pod:2364
20671 msgid "lvremove"
20672 msgstr ""
20673
20674 # type: verbatim
20675 #: ../fish/guestfish-actions.pod:2366
20676 #, no-wrap
20677 msgid ""
20678 " lvremove device\n"
20679 "\n"
20680 msgstr ""
20681
20682 # type: =head2
20683 #: ../fish/guestfish-actions.pod:2374
20684 msgid "lvrename"
20685 msgstr ""
20686
20687 # type: verbatim
20688 #: ../fish/guestfish-actions.pod:2376
20689 #, no-wrap
20690 msgid ""
20691 " lvrename logvol newlogvol\n"
20692 "\n"
20693 msgstr ""
20694
20695 # type: =head2
20696 #: ../fish/guestfish-actions.pod:2380
20697 msgid "lvresize"
20698 msgstr ""
20699
20700 # type: verbatim
20701 #: ../fish/guestfish-actions.pod:2382
20702 #, no-wrap
20703 msgid ""
20704 " lvresize device mbytes\n"
20705 "\n"
20706 msgstr ""
20707
20708 # type: =head2
20709 #: ../fish/guestfish-actions.pod:2388
20710 msgid "lvresize-free"
20711 msgstr ""
20712
20713 # type: verbatim
20714 #: ../fish/guestfish-actions.pod:2390
20715 #, no-wrap
20716 msgid ""
20717 " lvresize-free lv percent\n"
20718 "\n"
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:2398
20723 msgid "lvs"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:2400
20728 #, no-wrap
20729 msgid ""
20730 " lvs\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: textblock
20735 #: ../fish/guestfish-actions.pod:2408
20736 msgid "See also L</lvs-full>, L</list-filesystems>."
20737 msgstr ""
20738
20739 # type: =head2
20740 #: ../fish/guestfish-actions.pod:2410
20741 msgid "lvs-full"
20742 msgstr ""
20743
20744 # type: verbatim
20745 #: ../fish/guestfish-actions.pod:2412
20746 #, no-wrap
20747 msgid ""
20748 " lvs-full\n"
20749 "\n"
20750 msgstr ""
20751
20752 # type: =head2
20753 #: ../fish/guestfish-actions.pod:2417
20754 msgid "lvuuid"
20755 msgstr ""
20756
20757 # type: verbatim
20758 #: ../fish/guestfish-actions.pod:2419
20759 #, no-wrap
20760 msgid ""
20761 " lvuuid device\n"
20762 "\n"
20763 msgstr ""
20764
20765 # type: =head2
20766 #: ../fish/guestfish-actions.pod:2423
20767 msgid "lxattrlist"
20768 msgstr ""
20769
20770 # type: verbatim
20771 #: ../fish/guestfish-actions.pod:2425
20772 #, no-wrap
20773 msgid ""
20774 " lxattrlist path 'names ...'\n"
20775 "\n"
20776 msgstr ""
20777
20778 # type: textblock
20779 #: ../fish/guestfish-actions.pod:2441
20780 msgid ""
20781 "This call is intended for programs that want to efficiently list a directory "
20782 "contents without making many round-trips.  See also L</lstatlist> for a "
20783 "similarly efficient call for getting standard stats.  Very long directory "
20784 "listings might cause the protocol message size to be exceeded, causing this "
20785 "call to fail.  The caller must split up such requests into smaller groups of "
20786 "names."
20787 msgstr ""
20788
20789 # type: =head2
20790 #: ../fish/guestfish-actions.pod:2449
20791 msgid "mkdir"
20792 msgstr ""
20793
20794 # type: verbatim
20795 #: ../fish/guestfish-actions.pod:2451
20796 #, no-wrap
20797 msgid ""
20798 " mkdir path\n"
20799 "\n"
20800 msgstr ""
20801
20802 # type: =head2
20803 #: ../fish/guestfish-actions.pod:2455
20804 msgid "mkdir-mode"
20805 msgstr ""
20806
20807 # type: verbatim
20808 #: ../fish/guestfish-actions.pod:2457
20809 #, no-wrap
20810 msgid ""
20811 " mkdir-mode path mode\n"
20812 "\n"
20813 msgstr ""
20814
20815 # type: textblock
20816 #: ../fish/guestfish-actions.pod:2466
20817 msgid "See also L</mkdir>, L</umask>"
20818 msgstr ""
20819
20820 # type: =head2
20821 #: ../fish/guestfish-actions.pod:2468
20822 msgid "mkdir-p"
20823 msgstr ""
20824
20825 # type: verbatim
20826 #: ../fish/guestfish-actions.pod:2470
20827 #, no-wrap
20828 msgid ""
20829 " mkdir-p path\n"
20830 "\n"
20831 msgstr ""
20832
20833 # type: =head2
20834 #: ../fish/guestfish-actions.pod:2475
20835 msgid "mkdtemp"
20836 msgstr ""
20837
20838 # type: verbatim
20839 #: ../fish/guestfish-actions.pod:2477
20840 #, no-wrap
20841 msgid ""
20842 " mkdtemp template\n"
20843 "\n"
20844 msgstr ""
20845
20846 # type: =head2
20847 #: ../fish/guestfish-actions.pod:2498
20848 msgid "mke2fs-J"
20849 msgstr ""
20850
20851 # type: verbatim
20852 #: ../fish/guestfish-actions.pod:2500
20853 #, no-wrap
20854 msgid ""
20855 " mke2fs-J fstype blocksize device journal\n"
20856 "\n"
20857 msgstr ""
20858
20859 # type: textblock
20860 #: ../fish/guestfish-actions.pod:2508
20861 msgid "See also L</mke2journal>."
20862 msgstr ""
20863
20864 # type: =head2
20865 #: ../fish/guestfish-actions.pod:2510
20866 msgid "mke2fs-JL"
20867 msgstr ""
20868
20869 # type: verbatim
20870 #: ../fish/guestfish-actions.pod:2512
20871 #, no-wrap
20872 msgid ""
20873 " mke2fs-JL fstype blocksize device label\n"
20874 "\n"
20875 msgstr ""
20876
20877 # type: textblock
20878 #: ../fish/guestfish-actions.pod:2517
20879 msgid "See also L</mke2journal-L>."
20880 msgstr ""
20881
20882 # type: =head2
20883 #: ../fish/guestfish-actions.pod:2519
20884 msgid "mke2fs-JU"
20885 msgstr ""
20886
20887 # type: verbatim
20888 #: ../fish/guestfish-actions.pod:2521
20889 #, no-wrap
20890 msgid ""
20891 " mke2fs-JU fstype blocksize device uuid\n"
20892 "\n"
20893 msgstr ""
20894
20895 # type: textblock
20896 #: ../fish/guestfish-actions.pod:2526
20897 msgid "See also L</mke2journal-U>."
20898 msgstr ""
20899
20900 # type: =head2
20901 #: ../fish/guestfish-actions.pod:2528
20902 msgid "mke2journal"
20903 msgstr ""
20904
20905 # type: verbatim
20906 #: ../fish/guestfish-actions.pod:2530
20907 #, no-wrap
20908 msgid ""
20909 " mke2journal blocksize device\n"
20910 "\n"
20911 msgstr ""
20912
20913 # type: =head2
20914 #: ../fish/guestfish-actions.pod:2537
20915 msgid "mke2journal-L"
20916 msgstr ""
20917
20918 # type: verbatim
20919 #: ../fish/guestfish-actions.pod:2539
20920 #, no-wrap
20921 msgid ""
20922 " mke2journal-L blocksize label device\n"
20923 "\n"
20924 msgstr ""
20925
20926 # type: =head2
20927 #: ../fish/guestfish-actions.pod:2543
20928 msgid "mke2journal-U"
20929 msgstr ""
20930
20931 # type: verbatim
20932 #: ../fish/guestfish-actions.pod:2545
20933 #, no-wrap
20934 msgid ""
20935 " mke2journal-U blocksize uuid device\n"
20936 "\n"
20937 msgstr ""
20938
20939 # type: =head2
20940 #: ../fish/guestfish-actions.pod:2549
20941 msgid "mkfifo"
20942 msgstr ""
20943
20944 # type: verbatim
20945 #: ../fish/guestfish-actions.pod:2551
20946 #, no-wrap
20947 msgid ""
20948 " mkfifo mode path\n"
20949 "\n"
20950 msgstr ""
20951
20952 # type: textblock
20953 #: ../fish/guestfish-actions.pod:2553
20954 msgid ""
20955 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20956 "is just a convenient wrapper around L</mknod>."
20957 msgstr ""
20958
20959 # type: =head2
20960 #: ../fish/guestfish-actions.pod:2559
20961 msgid "mkfs"
20962 msgstr ""
20963
20964 # type: verbatim
20965 #: ../fish/guestfish-actions.pod:2561
20966 #, no-wrap
20967 msgid ""
20968 " mkfs fstype device\n"
20969 "\n"
20970 msgstr ""
20971
20972 # type: =head2
20973 #: ../fish/guestfish-actions.pod:2567
20974 msgid "mkfs-b"
20975 msgstr ""
20976
20977 # type: verbatim
20978 #: ../fish/guestfish-actions.pod:2569
20979 #, no-wrap
20980 msgid ""
20981 " mkfs-b fstype blocksize device\n"
20982 "\n"
20983 msgstr ""
20984
20985 # type: textblock
20986 #: ../fish/guestfish-actions.pod:2571
20987 msgid ""
20988 "This call is similar to L</mkfs>, but it allows you to control the block "
20989 "size of the resulting filesystem.  Supported block sizes depend on the "
20990 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20991 msgstr ""
20992
20993 # type: =head2
20994 #: ../fish/guestfish-actions.pod:2579
20995 msgid "mkmountpoint"
20996 msgstr ""
20997
20998 # type: verbatim
20999 #: ../fish/guestfish-actions.pod:2581
21000 #, no-wrap
21001 msgid ""
21002 " mkmountpoint exemptpath\n"
21003 "\n"
21004 msgstr ""
21005
21006 # type: textblock
21007 #: ../fish/guestfish-actions.pod:2583
21008 msgid ""
21009 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21010 "to create extra mountpoints before mounting the first filesystem."
21011 msgstr ""
21012
21013 # type: textblock
21014 #: ../fish/guestfish-actions.pod:2607
21015 msgid ""
21016 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21017 "unexpected errors if you try to mix these calls.  It is safest to manually "
21018 "unmount filesystems and remove mountpoints after use."
21019 msgstr ""
21020
21021 # type: textblock
21022 #: ../fish/guestfish-actions.pod:2611
21023 msgid ""
21024 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21025 "for this to work for manual mountpoints, you must ensure that the innermost "
21026 "mountpoints have the longest pathnames, as in the example code above."
21027 msgstr ""
21028
21029 # type: textblock
21030 #: ../fish/guestfish-actions.pod:2618
21031 msgid ""
21032 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21033 "that L</umount-all> is called when the handle is closed which can also "
21034 "trigger these issues."
21035 msgstr ""
21036
21037 # type: =head2
21038 #: ../fish/guestfish-actions.pod:2622
21039 msgid "mknod"
21040 msgstr ""
21041
21042 # type: verbatim
21043 #: ../fish/guestfish-actions.pod:2624
21044 #, no-wrap
21045 msgid ""
21046 " mknod mode devmajor devminor path\n"
21047 "\n"
21048 msgstr ""
21049
21050 # type: textblock
21051 #: ../fish/guestfish-actions.pod:2634
21052 msgid ""
21053 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21054 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21055 "regular file).  These constants are available in the standard Linux header "
21056 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21057 "wrappers around this command which bitwise OR in the appropriate constant "
21058 "for you."
21059 msgstr ""
21060
21061 # type: =head2
21062 #: ../fish/guestfish-actions.pod:2644
21063 msgid "mknod-b"
21064 msgstr ""
21065
21066 # type: verbatim
21067 #: ../fish/guestfish-actions.pod:2646
21068 #, no-wrap
21069 msgid ""
21070 " mknod-b mode devmajor devminor path\n"
21071 "\n"
21072 msgstr ""
21073
21074 # type: textblock
21075 #: ../fish/guestfish-actions.pod:2648
21076 msgid ""
21077 "This call creates a block device node called C<path> with mode C<mode> and "
21078 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21079 "wrapper around L</mknod>."
21080 msgstr ""
21081
21082 # type: =head2
21083 #: ../fish/guestfish-actions.pod:2654
21084 msgid "mknod-c"
21085 msgstr ""
21086
21087 # type: verbatim
21088 #: ../fish/guestfish-actions.pod:2656
21089 #, no-wrap
21090 msgid ""
21091 " mknod-c mode devmajor devminor path\n"
21092 "\n"
21093 msgstr ""
21094
21095 # type: textblock
21096 #: ../fish/guestfish-actions.pod:2658
21097 msgid ""
21098 "This call creates a char device node called C<path> with mode C<mode> and "
21099 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21100 "wrapper around L</mknod>."
21101 msgstr ""
21102
21103 # type: =head2
21104 #: ../fish/guestfish-actions.pod:2664
21105 msgid "mkswap"
21106 msgstr ""
21107
21108 # type: verbatim
21109 #: ../fish/guestfish-actions.pod:2666
21110 #, no-wrap
21111 msgid ""
21112 " mkswap device\n"
21113 "\n"
21114 msgstr ""
21115
21116 # type: =head2
21117 #: ../fish/guestfish-actions.pod:2670
21118 msgid "mkswap-L"
21119 msgstr ""
21120
21121 # type: verbatim
21122 #: ../fish/guestfish-actions.pod:2672
21123 #, no-wrap
21124 msgid ""
21125 " mkswap-L label device\n"
21126 "\n"
21127 msgstr ""
21128
21129 # type: =head2
21130 #: ../fish/guestfish-actions.pod:2680
21131 msgid "mkswap-U"
21132 msgstr ""
21133
21134 # type: verbatim
21135 #: ../fish/guestfish-actions.pod:2682
21136 #, no-wrap
21137 msgid ""
21138 " mkswap-U uuid device\n"
21139 "\n"
21140 msgstr ""
21141
21142 # type: =head2
21143 #: ../fish/guestfish-actions.pod:2686
21144 msgid "mkswap-file"
21145 msgstr ""
21146
21147 # type: verbatim
21148 #: ../fish/guestfish-actions.pod:2688
21149 #, no-wrap
21150 msgid ""
21151 " mkswap-file path\n"
21152 "\n"
21153 msgstr ""
21154
21155 # type: textblock
21156 #: ../fish/guestfish-actions.pod:2692
21157 msgid ""
21158 "This command just writes a swap file signature to an existing file.  To "
21159 "create the file itself, use something like L</fallocate>."
21160 msgstr ""
21161
21162 # type: =head2
21163 #: ../fish/guestfish-actions.pod:2695
21164 msgid "modprobe"
21165 msgstr ""
21166
21167 # type: verbatim
21168 #: ../fish/guestfish-actions.pod:2697
21169 #, no-wrap
21170 msgid ""
21171 " modprobe modulename\n"
21172 "\n"
21173 msgstr ""
21174
21175 # type: =head2
21176 #: ../fish/guestfish-actions.pod:2704
21177 msgid "mount"
21178 msgstr ""
21179
21180 # type: verbatim
21181 #: ../fish/guestfish-actions.pod:2706
21182 #, no-wrap
21183 msgid ""
21184 " mount device mountpoint\n"
21185 "\n"
21186 msgstr ""
21187
21188 # type: textblock
21189 #: ../fish/guestfish-actions.pod:2722
21190 msgid ""
21191 "B<Important note:> When you use this call, the filesystem options C<sync> "
21192 "and C<noatime> are set implicitly.  This was originally done because we "
21193 "thought it would improve reliability, but it turns out that I<-o sync> has a "
21194 "very large negative performance impact and negligible effect on "
21195 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
21196 "code that needs performance, and instead use L</mount-options> (use an empty "
21197 "string for the first parameter if you don't want any options)."
21198 msgstr ""
21199
21200 # type: =head2
21201 #: ../fish/guestfish-actions.pod:2732
21202 msgid "mount-loop"
21203 msgstr ""
21204
21205 # type: verbatim
21206 #: ../fish/guestfish-actions.pod:2734
21207 #, no-wrap
21208 msgid ""
21209 " mount-loop file mountpoint\n"
21210 "\n"
21211 msgstr ""
21212
21213 # type: =head2
21214 #: ../fish/guestfish-actions.pod:2740
21215 msgid "mount-options"
21216 msgstr ""
21217
21218 # type: verbatim
21219 #: ../fish/guestfish-actions.pod:2742
21220 #, no-wrap
21221 msgid ""
21222 " mount-options options device mountpoint\n"
21223 "\n"
21224 msgstr ""
21225
21226 # type: textblock
21227 #: ../fish/guestfish-actions.pod:2744
21228 msgid ""
21229 "This is the same as the L</mount> command, but it allows you to set the "
21230 "mount options as for the L<mount(8)> I<-o> flag."
21231 msgstr ""
21232
21233 # type: =head2
21234 #: ../fish/guestfish-actions.pod:2752
21235 msgid "mount-ro"
21236 msgstr ""
21237
21238 # type: verbatim
21239 #: ../fish/guestfish-actions.pod:2754
21240 #, no-wrap
21241 msgid ""
21242 " mount-ro device mountpoint\n"
21243 "\n"
21244 msgstr ""
21245
21246 # type: textblock
21247 #: ../fish/guestfish-actions.pod:2756
21248 msgid ""
21249 "This is the same as the L</mount> command, but it mounts the filesystem with "
21250 "the read-only (I<-o ro>) flag."
21251 msgstr ""
21252
21253 # type: =head2
21254 #: ../fish/guestfish-actions.pod:2759
21255 msgid "mount-vfs"
21256 msgstr ""
21257
21258 # type: verbatim
21259 #: ../fish/guestfish-actions.pod:2761
21260 #, no-wrap
21261 msgid ""
21262 " mount-vfs options vfstype device mountpoint\n"
21263 "\n"
21264 msgstr ""
21265
21266 # type: textblock
21267 #: ../fish/guestfish-actions.pod:2763
21268 msgid ""
21269 "This is the same as the L</mount> command, but it allows you to set both the "
21270 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
21271 msgstr ""
21272
21273 # type: =head2
21274 #: ../fish/guestfish-actions.pod:2767
21275 msgid "mountpoints"
21276 msgstr ""
21277
21278 # type: verbatim
21279 #: ../fish/guestfish-actions.pod:2769
21280 #, no-wrap
21281 msgid ""
21282 " mountpoints\n"
21283 "\n"
21284 msgstr ""
21285
21286 # type: textblock
21287 #: ../fish/guestfish-actions.pod:2771
21288 msgid ""
21289 "This call is similar to L</mounts>.  That call returns a list of devices.  "
21290 "This one returns a hash table (map) of device name to directory where the "
21291 "device is mounted."
21292 msgstr ""
21293
21294 # type: =head2
21295 #: ../fish/guestfish-actions.pod:2775
21296 msgid "mounts"
21297 msgstr ""
21298
21299 # type: verbatim
21300 #: ../fish/guestfish-actions.pod:2777
21301 #, no-wrap
21302 msgid ""
21303 " mounts\n"
21304 "\n"
21305 msgstr ""
21306
21307 # type: textblock
21308 #: ../fish/guestfish-actions.pod:2784
21309 msgid "See also: L</mountpoints>"
21310 msgstr ""
21311
21312 # type: =head2
21313 #: ../fish/guestfish-actions.pod:2786
21314 msgid "mv"
21315 msgstr ""
21316
21317 # type: verbatim
21318 #: ../fish/guestfish-actions.pod:2788
21319 #, no-wrap
21320 msgid ""
21321 " mv src dest\n"
21322 "\n"
21323 msgstr ""
21324
21325 # type: =head2
21326 #: ../fish/guestfish-actions.pod:2793
21327 msgid "ntfs-3g-probe"
21328 msgstr ""
21329
21330 # type: verbatim
21331 #: ../fish/guestfish-actions.pod:2795
21332 #, no-wrap
21333 msgid ""
21334 " ntfs-3g-probe true|false device\n"
21335 "\n"
21336 msgstr ""
21337
21338 # type: =head2
21339 #: ../fish/guestfish-actions.pod:2809
21340 msgid "ntfsresize"
21341 msgstr ""
21342
21343 # type: verbatim
21344 #: ../fish/guestfish-actions.pod:2811
21345 #, no-wrap
21346 msgid ""
21347 " ntfsresize device\n"
21348 "\n"
21349 msgstr ""
21350
21351 # type: =head2
21352 #: ../fish/guestfish-actions.pod:2817
21353 msgid "ntfsresize-size"
21354 msgstr ""
21355
21356 # type: verbatim
21357 #: ../fish/guestfish-actions.pod:2819
21358 #, no-wrap
21359 msgid ""
21360 " ntfsresize-size device size\n"
21361 "\n"
21362 msgstr ""
21363
21364 # type: textblock
21365 #: ../fish/guestfish-actions.pod:2821
21366 msgid ""
21367 "This command is the same as L</ntfsresize> except that it allows you to "
21368 "specify the new size (in bytes) explicitly."
21369 msgstr ""
21370
21371 # type: =head2
21372 #: ../fish/guestfish-actions.pod:2824
21373 msgid "part-add"
21374 msgstr ""
21375
21376 # type: verbatim
21377 #: ../fish/guestfish-actions.pod:2826
21378 #, no-wrap
21379 msgid ""
21380 " part-add device prlogex startsect endsect\n"
21381 "\n"
21382 msgstr ""
21383
21384 # type: textblock
21385 #: ../fish/guestfish-actions.pod:2828
21386 msgid ""
21387 "This command adds a partition to C<device>.  If there is no partition table "
21388 "on the device, call L</part-init> first."
21389 msgstr ""
21390
21391 # type: textblock
21392 #: ../fish/guestfish-actions.pod:2840
21393 msgid ""
21394 "Creating a partition which covers the whole disk is not so easy.  Use L</"
21395 "part-disk> to do that."
21396 msgstr ""
21397
21398 # type: =head2
21399 #: ../fish/guestfish-actions.pod:2843
21400 msgid "part-del"
21401 msgstr ""
21402
21403 # type: verbatim
21404 #: ../fish/guestfish-actions.pod:2845
21405 #, no-wrap
21406 msgid ""
21407 " part-del device partnum\n"
21408 "\n"
21409 msgstr ""
21410
21411 # type: =head2
21412 #: ../fish/guestfish-actions.pod:2853
21413 msgid "part-disk"
21414 msgstr ""
21415
21416 # type: verbatim
21417 #: ../fish/guestfish-actions.pod:2855
21418 #, no-wrap
21419 msgid ""
21420 " part-disk device parttype\n"
21421 "\n"
21422 msgstr ""
21423
21424 # type: textblock
21425 #: ../fish/guestfish-actions.pod:2857
21426 msgid ""
21427 "This command is simply a combination of L</part-init> followed by L</part-"
21428 "add> to create a single primary partition covering the whole disk."
21429 msgstr ""
21430
21431 # type: textblock
21432 #: ../fish/guestfish-actions.pod:2861
21433 msgid ""
21434 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21435 "possible values are described in L</part-init>."
21436 msgstr ""
21437
21438 # type: =head2
21439 #: ../fish/guestfish-actions.pod:2867
21440 msgid "part-get-bootable"
21441 msgstr ""
21442
21443 # type: verbatim
21444 #: ../fish/guestfish-actions.pod:2869
21445 #, no-wrap
21446 msgid ""
21447 " part-get-bootable device partnum\n"
21448 "\n"
21449 msgstr ""
21450
21451 # type: textblock
21452 #: ../fish/guestfish-actions.pod:2874
21453 msgid "See also L</part-set-bootable>."
21454 msgstr ""
21455
21456 # type: =head2
21457 #: ../fish/guestfish-actions.pod:2876
21458 msgid "part-get-mbr-id"
21459 msgstr ""
21460
21461 # type: verbatim
21462 #: ../fish/guestfish-actions.pod:2878
21463 #, no-wrap
21464 msgid ""
21465 " part-get-mbr-id device partnum\n"
21466 "\n"
21467 msgstr ""
21468
21469 # type: textblock
21470 #: ../fish/guestfish-actions.pod:2883 ../fish/guestfish-actions.pod:3021
21471 msgid ""
21472 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21473 "undefined results for other partition table types (see L</part-get-"
21474 "parttype>)."
21475 msgstr ""
21476
21477 # type: =head2
21478 #: ../fish/guestfish-actions.pod:2887
21479 msgid "part-get-parttype"
21480 msgstr ""
21481
21482 # type: verbatim
21483 #: ../fish/guestfish-actions.pod:2889
21484 #, no-wrap
21485 msgid ""
21486 " part-get-parttype device\n"
21487 "\n"
21488 msgstr ""
21489
21490 # type: textblock
21491 #: ../fish/guestfish-actions.pod:2894
21492 msgid ""
21493 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21494 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21495 "possible, although unusual.  See L</part-init> for a full list."
21496 msgstr ""
21497
21498 # type: =head2
21499 #: ../fish/guestfish-actions.pod:2899
21500 msgid "part-init"
21501 msgstr ""
21502
21503 # type: verbatim
21504 #: ../fish/guestfish-actions.pod:2901
21505 #, no-wrap
21506 msgid ""
21507 " part-init device parttype\n"
21508 "\n"
21509 msgstr ""
21510
21511 # type: textblock
21512 #: ../fish/guestfish-actions.pod:2907
21513 msgid ""
21514 "Initially there are no partitions.  Following this, you should call L</part-"
21515 "add> for each partition required."
21516 msgstr ""
21517
21518 # type: =head2
21519 #: ../fish/guestfish-actions.pod:2970
21520 msgid "part-list"
21521 msgstr ""
21522
21523 # type: verbatim
21524 #: ../fish/guestfish-actions.pod:2972
21525 #, no-wrap
21526 msgid ""
21527 " part-list device\n"
21528 "\n"
21529 msgstr ""
21530
21531 # type: textblock
21532 #: ../fish/guestfish-actions.pod:2987
21533 msgid ""
21534 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21535 "the device's sector size, see L</blockdev-getss>."
21536 msgstr ""
21537
21538 # type: =head2
21539 #: ../fish/guestfish-actions.pod:3000
21540 msgid "part-set-bootable"
21541 msgstr ""
21542
21543 # type: verbatim
21544 #: ../fish/guestfish-actions.pod:3002
21545 #, no-wrap
21546 msgid ""
21547 " part-set-bootable device partnum true|false\n"
21548 "\n"
21549 msgstr ""
21550
21551 # type: =head2
21552 #: ../fish/guestfish-actions.pod:3011
21553 msgid "part-set-mbr-id"
21554 msgstr ""
21555
21556 # type: verbatim
21557 #: ../fish/guestfish-actions.pod:3013
21558 #, no-wrap
21559 msgid ""
21560 " part-set-mbr-id device partnum idbyte\n"
21561 "\n"
21562 msgstr ""
21563
21564 # type: =head2
21565 #: ../fish/guestfish-actions.pod:3025
21566 msgid "part-set-name"
21567 msgstr ""
21568
21569 # type: verbatim
21570 #: ../fish/guestfish-actions.pod:3027
21571 #, no-wrap
21572 msgid ""
21573 " part-set-name device partnum name\n"
21574 "\n"
21575 msgstr ""
21576
21577 # type: =head2
21578 #: ../fish/guestfish-actions.pod:3035
21579 msgid "part-to-dev"
21580 msgstr ""
21581
21582 # type: verbatim
21583 #: ../fish/guestfish-actions.pod:3037
21584 #, no-wrap
21585 msgid ""
21586 " part-to-dev partition\n"
21587 "\n"
21588 msgstr ""
21589
21590 # type: textblock
21591 #: ../fish/guestfish-actions.pod:3043
21592 msgid ""
21593 "The named partition must exist, for example as a string returned from L</"
21594 "list-partitions>."
21595 msgstr ""
21596
21597 # type: =head2
21598 #: ../fish/guestfish-actions.pod:3046
21599 msgid "ping-daemon"
21600 msgstr ""
21601
21602 # type: verbatim
21603 #: ../fish/guestfish-actions.pod:3048
21604 #, no-wrap
21605 msgid ""
21606 " ping-daemon\n"
21607 "\n"
21608 msgstr ""
21609
21610 # type: =head2
21611 #: ../fish/guestfish-actions.pod:3055
21612 msgid "pread"
21613 msgstr ""
21614
21615 # type: verbatim
21616 #: ../fish/guestfish-actions.pod:3057
21617 #, no-wrap
21618 msgid ""
21619 " pread path count offset\n"
21620 "\n"
21621 msgstr ""
21622
21623 # type: textblock
21624 #: ../fish/guestfish-actions.pod:3065
21625 msgid "See also L</pwrite>, L</pread-device>."
21626 msgstr ""
21627
21628 # type: =head2
21629 #: ../fish/guestfish-actions.pod:3070
21630 msgid "pread-device"
21631 msgstr ""
21632
21633 # type: verbatim
21634 #: ../fish/guestfish-actions.pod:3072
21635 #, no-wrap
21636 msgid ""
21637 " pread-device device count offset\n"
21638 "\n"
21639 msgstr ""
21640
21641 # type: textblock
21642 #: ../fish/guestfish-actions.pod:3080
21643 msgid "See also L</pread>."
21644 msgstr ""
21645
21646 # type: =head2
21647 #: ../fish/guestfish-actions.pod:3085
21648 msgid "pvcreate"
21649 msgstr ""
21650
21651 # type: verbatim
21652 #: ../fish/guestfish-actions.pod:3087
21653 #, no-wrap
21654 msgid ""
21655 " pvcreate device\n"
21656 "\n"
21657 msgstr ""
21658
21659 # type: =head2
21660 #: ../fish/guestfish-actions.pod:3093
21661 msgid "pvremove"
21662 msgstr ""
21663
21664 # type: verbatim
21665 #: ../fish/guestfish-actions.pod:3095
21666 #, no-wrap
21667 msgid ""
21668 " pvremove device\n"
21669 "\n"
21670 msgstr ""
21671
21672 # type: =head2
21673 #: ../fish/guestfish-actions.pod:3104
21674 msgid "pvresize"
21675 msgstr ""
21676
21677 # type: verbatim
21678 #: ../fish/guestfish-actions.pod:3106
21679 #, no-wrap
21680 msgid ""
21681 " pvresize device\n"
21682 "\n"
21683 msgstr ""
21684
21685 # type: =head2
21686 #: ../fish/guestfish-actions.pod:3111
21687 msgid "pvresize-size"
21688 msgstr ""
21689
21690 # type: verbatim
21691 #: ../fish/guestfish-actions.pod:3113
21692 #, no-wrap
21693 msgid ""
21694 " pvresize-size device size\n"
21695 "\n"
21696 msgstr ""
21697
21698 # type: textblock
21699 #: ../fish/guestfish-actions.pod:3115
21700 msgid ""
21701 "This command is the same as L</pvresize> except that it allows you to "
21702 "specify the new size (in bytes) explicitly."
21703 msgstr ""
21704
21705 # type: =head2
21706 #: ../fish/guestfish-actions.pod:3118
21707 msgid "pvs"
21708 msgstr ""
21709
21710 # type: verbatim
21711 #: ../fish/guestfish-actions.pod:3120
21712 #, no-wrap
21713 msgid ""
21714 " pvs\n"
21715 "\n"
21716 msgstr ""
21717
21718 # type: textblock
21719 #: ../fish/guestfish-actions.pod:3128
21720 msgid "See also L</pvs-full>."
21721 msgstr ""
21722
21723 # type: =head2
21724 #: ../fish/guestfish-actions.pod:3130
21725 msgid "pvs-full"
21726 msgstr ""
21727
21728 # type: verbatim
21729 #: ../fish/guestfish-actions.pod:3132
21730 #, no-wrap
21731 msgid ""
21732 " pvs-full\n"
21733 "\n"
21734 msgstr ""
21735
21736 # type: =head2
21737 #: ../fish/guestfish-actions.pod:3137
21738 msgid "pvuuid"
21739 msgstr ""
21740
21741 # type: verbatim
21742 #: ../fish/guestfish-actions.pod:3139
21743 #, no-wrap
21744 msgid ""
21745 " pvuuid device\n"
21746 "\n"
21747 msgstr ""
21748
21749 # type: =head2
21750 #: ../fish/guestfish-actions.pod:3143
21751 msgid "pwrite"
21752 msgstr ""
21753
21754 # type: verbatim
21755 #: ../fish/guestfish-actions.pod:3145
21756 #, no-wrap
21757 msgid ""
21758 " pwrite path content offset\n"
21759 "\n"
21760 msgstr ""
21761
21762 # type: textblock
21763 #: ../fish/guestfish-actions.pod:3156
21764 msgid "See also L</pread>, L</pwrite-device>."
21765 msgstr ""
21766
21767 # type: =head2
21768 #: ../fish/guestfish-actions.pod:3161
21769 msgid "pwrite-device"
21770 msgstr ""
21771
21772 # type: verbatim
21773 #: ../fish/guestfish-actions.pod:3163
21774 #, no-wrap
21775 msgid ""
21776 " pwrite-device device content offset\n"
21777 "\n"
21778 msgstr ""
21779
21780 # type: textblock
21781 #: ../fish/guestfish-actions.pod:3173
21782 msgid "See also L</pwrite>."
21783 msgstr ""
21784
21785 # type: =head2
21786 #: ../fish/guestfish-actions.pod:3178
21787 msgid "read-file"
21788 msgstr ""
21789
21790 # type: verbatim
21791 #: ../fish/guestfish-actions.pod:3180
21792 #, no-wrap
21793 msgid ""
21794 " read-file path\n"
21795 "\n"
21796 msgstr ""
21797
21798 # type: textblock
21799 #: ../fish/guestfish-actions.pod:3185
21800 msgid ""
21801 "Unlike L</cat>, this function can correctly handle files that contain "
21802 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21803 "is limited in the total size of file that can be handled."
21804 msgstr ""
21805
21806 # type: =head2
21807 #: ../fish/guestfish-actions.pod:3193
21808 msgid "read-lines"
21809 msgstr ""
21810
21811 # type: verbatim
21812 #: ../fish/guestfish-actions.pod:3195
21813 #, no-wrap
21814 msgid ""
21815 " read-lines path\n"
21816 "\n"
21817 msgstr ""
21818
21819 # type: textblock
21820 #: ../fish/guestfish-actions.pod:3202
21821 msgid ""
21822 "Note that this function cannot correctly handle binary files (specifically, "
21823 "files containing C<\\0> character which is treated as end of line).  For "
21824 "those you need to use the L</read-file> function which has a more complex "
21825 "interface."
21826 msgstr ""
21827
21828 # type: =head2
21829 #: ../fish/guestfish-actions.pod:3207
21830 msgid "readdir"
21831 msgstr ""
21832
21833 # type: verbatim
21834 #: ../fish/guestfish-actions.pod:3209
21835 #, no-wrap
21836 msgid ""
21837 " readdir dir\n"
21838 "\n"
21839 msgstr ""
21840
21841 # type: textblock
21842 #: ../fish/guestfish-actions.pod:3261
21843 msgid ""
21844 "This function is primarily intended for use by programs.  To get a simple "
21845 "list of names, use L</ls>.  To get a printable directory for human "
21846 "consumption, use L</ll>."
21847 msgstr ""
21848
21849 # type: =head2
21850 #: ../fish/guestfish-actions.pod:3265
21851 msgid "readlink"
21852 msgstr ""
21853
21854 # type: verbatim
21855 #: ../fish/guestfish-actions.pod:3267
21856 #, no-wrap
21857 msgid ""
21858 " readlink path\n"
21859 "\n"
21860 msgstr ""
21861
21862 # type: =head2
21863 #: ../fish/guestfish-actions.pod:3271
21864 msgid "readlinklist"
21865 msgstr ""
21866
21867 # type: verbatim
21868 #: ../fish/guestfish-actions.pod:3273
21869 #, no-wrap
21870 msgid ""
21871 " readlinklist path 'names ...'\n"
21872 "\n"
21873 msgstr ""
21874
21875 # type: =head2
21876 #: ../fish/guestfish-actions.pod:3297
21877 msgid "realpath"
21878 msgstr ""
21879
21880 # type: verbatim
21881 #: ../fish/guestfish-actions.pod:3299
21882 #, no-wrap
21883 msgid ""
21884 " realpath path\n"
21885 "\n"
21886 msgstr ""
21887
21888 # type: =head2
21889 #: ../fish/guestfish-actions.pod:3304
21890 msgid "removexattr"
21891 msgstr ""
21892
21893 # type: verbatim
21894 #: ../fish/guestfish-actions.pod:3306
21895 #, no-wrap
21896 msgid ""
21897 " removexattr xattr path\n"
21898 "\n"
21899 msgstr ""
21900
21901 # type: textblock
21902 #: ../fish/guestfish-actions.pod:3311
21903 msgid "See also: L</lremovexattr>, L<attr(5)>."
21904 msgstr ""
21905
21906 # type: =head2
21907 #: ../fish/guestfish-actions.pod:3313
21908 msgid "resize2fs"
21909 msgstr ""
21910
21911 # type: verbatim
21912 #: ../fish/guestfish-actions.pod:3315
21913 #, no-wrap
21914 msgid ""
21915 " resize2fs device\n"
21916 "\n"
21917 msgstr ""
21918
21919 # type: textblock
21920 #: ../fish/guestfish-actions.pod:3320
21921 msgid ""
21922 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21923 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21924 "gives an error about this and sometimes not.  In any case, it is always safe "
21925 "to call L</e2fsck-f> before calling this function."
21926 msgstr ""
21927
21928 # type: =head2
21929 #: ../fish/guestfish-actions.pod:3326
21930 msgid "resize2fs-size"
21931 msgstr ""
21932
21933 # type: verbatim
21934 #: ../fish/guestfish-actions.pod:3328
21935 #, no-wrap
21936 msgid ""
21937 " resize2fs-size device size\n"
21938 "\n"
21939 msgstr ""
21940
21941 # type: textblock
21942 #: ../fish/guestfish-actions.pod:3330
21943 msgid ""
21944 "This command is the same as L</resize2fs> except that it allows you to "
21945 "specify the new size (in bytes) explicitly."
21946 msgstr ""
21947
21948 # type: =head2
21949 #: ../fish/guestfish-actions.pod:3333
21950 msgid "rm"
21951 msgstr ""
21952
21953 # type: verbatim
21954 #: ../fish/guestfish-actions.pod:3335
21955 #, no-wrap
21956 msgid ""
21957 " rm path\n"
21958 "\n"
21959 msgstr ""
21960
21961 # type: =head2
21962 #: ../fish/guestfish-actions.pod:3339
21963 msgid "rm-rf"
21964 msgstr ""
21965
21966 # type: verbatim
21967 #: ../fish/guestfish-actions.pod:3341
21968 #, no-wrap
21969 msgid ""
21970 " rm-rf path\n"
21971 "\n"
21972 msgstr ""
21973
21974 # type: =head2
21975 #: ../fish/guestfish-actions.pod:3347
21976 msgid "rmdir"
21977 msgstr ""
21978
21979 # type: verbatim
21980 #: ../fish/guestfish-actions.pod:3349
21981 #, no-wrap
21982 msgid ""
21983 " rmdir path\n"
21984 "\n"
21985 msgstr ""
21986
21987 # type: =head2
21988 #: ../fish/guestfish-actions.pod:3353
21989 msgid "rmmountpoint"
21990 msgstr ""
21991
21992 # type: verbatim
21993 #: ../fish/guestfish-actions.pod:3355
21994 #, no-wrap
21995 msgid ""
21996 " rmmountpoint exemptpath\n"
21997 "\n"
21998 msgstr ""
21999
22000 # type: textblock
22001 #: ../fish/guestfish-actions.pod:3357
22002 msgid ""
22003 "This calls removes a mountpoint that was previously created with L</"
22004 "mkmountpoint>.  See L</mkmountpoint> for full details."
22005 msgstr ""
22006
22007 # type: =head2
22008 #: ../fish/guestfish-actions.pod:3361
22009 msgid "scrub-device"
22010 msgstr ""
22011
22012 # type: verbatim
22013 #: ../fish/guestfish-actions.pod:3363
22014 #, no-wrap
22015 msgid ""
22016 " scrub-device device\n"
22017 "\n"
22018 msgstr ""
22019
22020 # type: =head2
22021 #: ../fish/guestfish-actions.pod:3374
22022 msgid "scrub-file"
22023 msgstr ""
22024
22025 # type: verbatim
22026 #: ../fish/guestfish-actions.pod:3376
22027 #, no-wrap
22028 msgid ""
22029 " scrub-file file\n"
22030 "\n"
22031 msgstr ""
22032
22033 # type: =head2
22034 #: ../fish/guestfish-actions.pod:3386
22035 msgid "scrub-freespace"
22036 msgstr ""
22037
22038 # type: verbatim
22039 #: ../fish/guestfish-actions.pod:3388
22040 #, no-wrap
22041 msgid ""
22042 " scrub-freespace dir\n"
22043 "\n"
22044 msgstr ""
22045
22046 # type: textblock
22047 #: ../fish/guestfish-actions.pod:3390
22048 msgid ""
22049 "This command creates the directory C<dir> and then fills it with files until "
22050 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22051 "deletes them.  The intention is to scrub any free space on the partition "
22052 "containing C<dir>."
22053 msgstr ""
22054
22055 # type: =head2
22056 #: ../fish/guestfish-actions.pod:3399
22057 msgid "set-append"
22058 msgstr ""
22059
22060 # type: =head2
22061 #: ../fish/guestfish-actions.pod:3401
22062 msgid "append"
22063 msgstr ""
22064
22065 # type: verbatim
22066 #: ../fish/guestfish-actions.pod:3403
22067 #, no-wrap
22068 msgid ""
22069 " set-append append\n"
22070 "\n"
22071 msgstr ""
22072
22073 # type: =head2
22074 #: ../fish/guestfish-actions.pod:3414
22075 msgid "set-autosync"
22076 msgstr ""
22077
22078 # type: =head2
22079 #: ../fish/guestfish-actions.pod:3416
22080 msgid "autosync"
22081 msgstr ""
22082
22083 # type: verbatim
22084 #: ../fish/guestfish-actions.pod:3418
22085 #, no-wrap
22086 msgid ""
22087 " set-autosync true|false\n"
22088 "\n"
22089 msgstr ""
22090
22091 # type: textblock
22092 #: ../fish/guestfish-actions.pod:3420
22093 msgid ""
22094 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22095 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22096 "closed (also if the program exits without closing handles)."
22097 msgstr ""
22098
22099 # type: =head2
22100 #: ../fish/guestfish-actions.pod:3428
22101 msgid "set-direct"
22102 msgstr ""
22103
22104 # type: =head2
22105 #: ../fish/guestfish-actions.pod:3430
22106 msgid "direct"
22107 msgstr ""
22108
22109 # type: verbatim
22110 #: ../fish/guestfish-actions.pod:3432
22111 #, no-wrap
22112 msgid ""
22113 " set-direct true|false\n"
22114 "\n"
22115 msgstr ""
22116
22117 # type: textblock
22118 #: ../fish/guestfish-actions.pod:3438
22119 msgid ""
22120 "One consequence of this is that log messages aren't caught by the library "
22121 "and handled by L</set-log-message-callback>, but go straight to stdout."
22122 msgstr ""
22123
22124 # type: =head2
22125 #: ../fish/guestfish-actions.pod:3447
22126 msgid "set-e2label"
22127 msgstr ""
22128
22129 # type: verbatim
22130 #: ../fish/guestfish-actions.pod:3449
22131 #, no-wrap
22132 msgid ""
22133 " set-e2label device label\n"
22134 "\n"
22135 msgstr ""
22136
22137 # type: textblock
22138 #: ../fish/guestfish-actions.pod:3455
22139 msgid ""
22140 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
22141 "label on a filesystem."
22142 msgstr ""
22143
22144 # type: =head2
22145 #: ../fish/guestfish-actions.pod:3458
22146 msgid "set-e2uuid"
22147 msgstr ""
22148
22149 # type: verbatim
22150 #: ../fish/guestfish-actions.pod:3460
22151 #, no-wrap
22152 msgid ""
22153 " set-e2uuid device uuid\n"
22154 "\n"
22155 msgstr ""
22156
22157 # type: textblock
22158 #: ../fish/guestfish-actions.pod:3467
22159 msgid ""
22160 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
22161 "UUID of a filesystem."
22162 msgstr ""
22163
22164 # type: =head2
22165 #: ../fish/guestfish-actions.pod:3470
22166 msgid "set-memsize"
22167 msgstr ""
22168
22169 # type: =head2
22170 #: ../fish/guestfish-actions.pod:3472
22171 msgid "memsize"
22172 msgstr ""
22173
22174 # type: verbatim
22175 #: ../fish/guestfish-actions.pod:3474
22176 #, no-wrap
22177 msgid ""
22178 " set-memsize memsize\n"
22179 "\n"
22180 msgstr ""
22181
22182 # type: textblock
22183 #: ../fish/guestfish-actions.pod:3476
22184 msgid ""
22185 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
22186 "This only has any effect if called before L</launch>."
22187 msgstr ""
22188
22189 # type: =head2
22190 #: ../fish/guestfish-actions.pod:3487
22191 msgid "set-network"
22192 msgstr ""
22193
22194 # type: =head2
22195 #: ../fish/guestfish-actions.pod:3489
22196 msgid "network"
22197 msgstr ""
22198
22199 # type: verbatim
22200 #: ../fish/guestfish-actions.pod:3491
22201 #, no-wrap
22202 msgid ""
22203 " set-network true|false\n"
22204 "\n"
22205 msgstr ""
22206
22207 # type: textblock
22208 #: ../fish/guestfish-actions.pod:3499
22209 msgid ""
22210 "You must call this before calling L</launch>, otherwise it has no effect."
22211 msgstr ""
22212
22213 # type: =head2
22214 #: ../fish/guestfish-actions.pod:3502
22215 msgid "set-path"
22216 msgstr ""
22217
22218 # type: =head2
22219 #: ../fish/guestfish-actions.pod:3504
22220 msgid "path"
22221 msgstr ""
22222
22223 # type: verbatim
22224 #: ../fish/guestfish-actions.pod:3506
22225 #, no-wrap
22226 msgid ""
22227 " set-path searchpath\n"
22228 "\n"
22229 msgstr ""
22230
22231 # type: =head2
22232 #: ../fish/guestfish-actions.pod:3515
22233 msgid "set-qemu"
22234 msgstr ""
22235
22236 # type: =head2
22237 #: ../fish/guestfish-actions.pod:3517
22238 msgid "qemu"
22239 msgstr ""
22240
22241 # type: verbatim
22242 #: ../fish/guestfish-actions.pod:3519
22243 #, no-wrap
22244 msgid ""
22245 " set-qemu qemu\n"
22246 "\n"
22247 msgstr ""
22248
22249 # type: =head2
22250 #: ../fish/guestfish-actions.pod:3539
22251 msgid "set-recovery-proc"
22252 msgstr ""
22253
22254 # type: =head2
22255 #: ../fish/guestfish-actions.pod:3541
22256 msgid "recovery-proc"
22257 msgstr ""
22258
22259 # type: verbatim
22260 #: ../fish/guestfish-actions.pod:3543
22261 #, no-wrap
22262 msgid ""
22263 " set-recovery-proc true|false\n"
22264 "\n"
22265 msgstr ""
22266
22267 # type: textblock
22268 #: ../fish/guestfish-actions.pod:3545
22269 msgid ""
22270 "If this is called with the parameter C<false> then L</launch> does not "
22271 "create a recovery process.  The purpose of the recovery process is to stop "
22272 "runaway qemu processes in the case where the main program aborts abruptly."
22273 msgstr ""
22274
22275 # type: textblock
22276 #: ../fish/guestfish-actions.pod:3550
22277 msgid ""
22278 "This only has any effect if called before L</launch>, and the default is "
22279 "true."
22280 msgstr ""
22281
22282 # type: =head2
22283 #: ../fish/guestfish-actions.pod:3559
22284 msgid "set-selinux"
22285 msgstr ""
22286
22287 # type: =head2
22288 #: ../fish/guestfish-actions.pod:3561
22289 msgid "selinux"
22290 msgstr ""
22291
22292 # type: verbatim
22293 #: ../fish/guestfish-actions.pod:3563
22294 #, no-wrap
22295 msgid ""
22296 " set-selinux true|false\n"
22297 "\n"
22298 msgstr ""
22299
22300 # type: =head2
22301 #: ../fish/guestfish-actions.pod:3574
22302 msgid "set-trace"
22303 msgstr ""
22304
22305 # type: =head2
22306 #: ../fish/guestfish-actions.pod:3576
22307 msgid "trace"
22308 msgstr ""
22309
22310 # type: verbatim
22311 #: ../fish/guestfish-actions.pod:3578
22312 #, no-wrap
22313 msgid ""
22314 " set-trace true|false\n"
22315 "\n"
22316 msgstr ""
22317
22318 # type: =head2
22319 #: ../fish/guestfish-actions.pod:3594
22320 msgid "set-verbose"
22321 msgstr ""
22322
22323 # type: =head2
22324 #: ../fish/guestfish-actions.pod:3596
22325 msgid "verbose"
22326 msgstr ""
22327
22328 # type: verbatim
22329 #: ../fish/guestfish-actions.pod:3598
22330 #, no-wrap
22331 msgid ""
22332 " set-verbose true|false\n"
22333 "\n"
22334 msgstr ""
22335
22336 # type: =head2
22337 #: ../fish/guestfish-actions.pod:3605
22338 msgid "setcon"
22339 msgstr ""
22340
22341 # type: verbatim
22342 #: ../fish/guestfish-actions.pod:3607
22343 #, no-wrap
22344 msgid ""
22345 " setcon context\n"
22346 "\n"
22347 msgstr ""
22348
22349 # type: =head2
22350 #: ../fish/guestfish-actions.pod:3614
22351 msgid "setxattr"
22352 msgstr ""
22353
22354 # type: verbatim
22355 #: ../fish/guestfish-actions.pod:3616
22356 #, no-wrap
22357 msgid ""
22358 " setxattr xattr val vallen path\n"
22359 "\n"
22360 msgstr ""
22361
22362 # type: textblock
22363 #: ../fish/guestfish-actions.pod:3622
22364 msgid "See also: L</lsetxattr>, L<attr(5)>."
22365 msgstr ""
22366
22367 # type: =head2
22368 #: ../fish/guestfish-actions.pod:3624
22369 msgid "sfdisk"
22370 msgstr ""
22371
22372 # type: verbatim
22373 #: ../fish/guestfish-actions.pod:3626
22374 #, no-wrap
22375 msgid ""
22376 " sfdisk device cyls heads sectors 'lines ...'\n"
22377 "\n"
22378 msgstr ""
22379
22380 # type: textblock
22381 #: ../fish/guestfish-actions.pod:3648
22382 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
22383 msgstr ""
22384
22385 # type: =head2
22386 #: ../fish/guestfish-actions.pod:3654
22387 msgid "sfdiskM"
22388 msgstr ""
22389
22390 # type: verbatim
22391 #: ../fish/guestfish-actions.pod:3656
22392 #, no-wrap
22393 msgid ""
22394 " sfdiskM device 'lines ...'\n"
22395 "\n"
22396 msgstr ""
22397
22398 # type: textblock
22399 #: ../fish/guestfish-actions.pod:3658
22400 msgid ""
22401 "This is a simplified interface to the L</sfdisk> command, where partition "
22402 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22403 "you don't need to specify the cyls, heads and sectors parameters which were "
22404 "rarely if ever used anyway."
22405 msgstr ""
22406
22407 # type: textblock
22408 #: ../fish/guestfish-actions.pod:3664
22409 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22410 msgstr ""
22411
22412 # type: =head2
22413 #: ../fish/guestfish-actions.pod:3670
22414 msgid "sfdisk-N"
22415 msgstr ""
22416
22417 # type: verbatim
22418 #: ../fish/guestfish-actions.pod:3672
22419 #, no-wrap
22420 msgid ""
22421 " sfdisk-N device partnum cyls heads sectors line\n"
22422 "\n"
22423 msgstr ""
22424
22425 # type: textblock
22426 #: ../fish/guestfish-actions.pod:3677
22427 msgid ""
22428 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
22429 "cyls/heads/sectors parameters."
22430 msgstr ""
22431
22432 # type: textblock
22433 #: ../fish/guestfish-actions.pod:3680
22434 msgid "See also: L</part-add>"
22435 msgstr ""
22436
22437 # type: =head2
22438 #: ../fish/guestfish-actions.pod:3685
22439 msgid "sfdisk-disk-geometry"
22440 msgstr ""
22441
22442 # type: verbatim
22443 #: ../fish/guestfish-actions.pod:3687
22444 #, no-wrap
22445 msgid ""
22446 " sfdisk-disk-geometry device\n"
22447 "\n"
22448 msgstr ""
22449
22450 # type: textblock
22451 #: ../fish/guestfish-actions.pod:3689
22452 msgid ""
22453 "This displays the disk geometry of C<device> read from the partition table.  "
22454 "Especially in the case where the underlying block device has been resized, "
22455 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
22456 "kernel-geometry>)."
22457 msgstr ""
22458
22459 # type: =head2
22460 #: ../fish/guestfish-actions.pod:3697
22461 msgid "sfdisk-kernel-geometry"
22462 msgstr ""
22463
22464 # type: verbatim
22465 #: ../fish/guestfish-actions.pod:3699
22466 #, no-wrap
22467 msgid ""
22468 " sfdisk-kernel-geometry device\n"
22469 "\n"
22470 msgstr ""
22471
22472 # type: =head2
22473 #: ../fish/guestfish-actions.pod:3706
22474 msgid "sfdisk-l"
22475 msgstr ""
22476
22477 # type: verbatim
22478 #: ../fish/guestfish-actions.pod:3708
22479 #, no-wrap
22480 msgid ""
22481 " sfdisk-l device\n"
22482 "\n"
22483 msgstr ""
22484
22485 # type: textblock
22486 #: ../fish/guestfish-actions.pod:3714
22487 msgid "See also: L</part-list>"
22488 msgstr ""
22489
22490 # type: =head2
22491 #: ../fish/guestfish-actions.pod:3716
22492 msgid "sh"
22493 msgstr ""
22494
22495 # type: verbatim
22496 #: ../fish/guestfish-actions.pod:3718
22497 #, no-wrap
22498 msgid ""
22499 " sh command\n"
22500 "\n"
22501 msgstr ""
22502
22503 # type: textblock
22504 #: ../fish/guestfish-actions.pod:3723
22505 msgid "This is like L</command>, but passes the command to:"
22506 msgstr ""
22507
22508 # type: textblock
22509 #: ../fish/guestfish-actions.pod:3731
22510 msgid "All the provisos about L</command> apply to this call."
22511 msgstr ""
22512
22513 # type: =head2
22514 #: ../fish/guestfish-actions.pod:3733
22515 msgid "sh-lines"
22516 msgstr ""
22517
22518 # type: verbatim
22519 #: ../fish/guestfish-actions.pod:3735
22520 #, no-wrap
22521 msgid ""
22522 " sh-lines command\n"
22523 "\n"
22524 msgstr ""
22525
22526 # type: textblock
22527 #: ../fish/guestfish-actions.pod:3737
22528 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22529 msgstr ""
22530
22531 # type: textblock
22532 #: ../fish/guestfish-actions.pod:3740
22533 msgid "See also: L</command-lines>"
22534 msgstr ""
22535
22536 # type: =head2
22537 #: ../fish/guestfish-actions.pod:3742
22538 msgid "sleep"
22539 msgstr ""
22540
22541 # type: verbatim
22542 #: ../fish/guestfish-actions.pod:3744
22543 #, no-wrap
22544 msgid ""
22545 " sleep secs\n"
22546 "\n"
22547 msgstr ""
22548
22549 # type: =head2
22550 #: ../fish/guestfish-actions.pod:3748
22551 msgid "stat"
22552 msgstr ""
22553
22554 # type: verbatim
22555 #: ../fish/guestfish-actions.pod:3750
22556 #, no-wrap
22557 msgid ""
22558 " stat path\n"
22559 "\n"
22560 msgstr ""
22561
22562 # type: =head2
22563 #: ../fish/guestfish-actions.pod:3756
22564 msgid "statvfs"
22565 msgstr ""
22566
22567 # type: verbatim
22568 #: ../fish/guestfish-actions.pod:3758
22569 #, no-wrap
22570 msgid ""
22571 " statvfs path\n"
22572 "\n"
22573 msgstr ""
22574
22575 # type: =head2
22576 #: ../fish/guestfish-actions.pod:3766
22577 msgid "strings"
22578 msgstr ""
22579
22580 # type: verbatim
22581 #: ../fish/guestfish-actions.pod:3768
22582 #, no-wrap
22583 msgid ""
22584 " strings path\n"
22585 "\n"
22586 msgstr ""
22587
22588 # type: =head2
22589 #: ../fish/guestfish-actions.pod:3776
22590 msgid "strings-e"
22591 msgstr ""
22592
22593 # type: verbatim
22594 #: ../fish/guestfish-actions.pod:3778
22595 #, no-wrap
22596 msgid ""
22597 " strings-e encoding path\n"
22598 "\n"
22599 msgstr ""
22600
22601 # type: textblock
22602 #: ../fish/guestfish-actions.pod:3780
22603 msgid ""
22604 "This is like the L</strings> command, but allows you to specify the encoding "
22605 "of strings that are looked for in the source file C<path>."
22606 msgstr ""
22607
22608 # type: textblock
22609 #: ../fish/guestfish-actions.pod:3790
22610 msgid ""
22611 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22612 "ISO-8859-X (this is what L</strings> uses)."
22613 msgstr ""
22614
22615 # type: =head2
22616 #: ../fish/guestfish-actions.pod:3822
22617 msgid "swapoff-device"
22618 msgstr ""
22619
22620 # type: verbatim
22621 #: ../fish/guestfish-actions.pod:3824
22622 #, no-wrap
22623 msgid ""
22624 " swapoff-device device\n"
22625 "\n"
22626 msgstr ""
22627
22628 # type: textblock
22629 #: ../fish/guestfish-actions.pod:3826
22630 msgid ""
22631 "This command disables the libguestfs appliance swap device or partition "
22632 "named C<device>.  See L</swapon-device>."
22633 msgstr ""
22634
22635 # type: =head2
22636 #: ../fish/guestfish-actions.pod:3830
22637 msgid "swapoff-file"
22638 msgstr ""
22639
22640 # type: verbatim
22641 #: ../fish/guestfish-actions.pod:3832
22642 #, no-wrap
22643 msgid ""
22644 " swapoff-file file\n"
22645 "\n"
22646 msgstr ""
22647
22648 # type: =head2
22649 #: ../fish/guestfish-actions.pod:3836
22650 msgid "swapoff-label"
22651 msgstr ""
22652
22653 # type: verbatim
22654 #: ../fish/guestfish-actions.pod:3838
22655 #, no-wrap
22656 msgid ""
22657 " swapoff-label label\n"
22658 "\n"
22659 msgstr ""
22660
22661 # type: =head2
22662 #: ../fish/guestfish-actions.pod:3843
22663 msgid "swapoff-uuid"
22664 msgstr ""
22665
22666 # type: verbatim
22667 #: ../fish/guestfish-actions.pod:3845
22668 #, no-wrap
22669 msgid ""
22670 " swapoff-uuid uuid\n"
22671 "\n"
22672 msgstr ""
22673
22674 # type: =head2
22675 #: ../fish/guestfish-actions.pod:3850
22676 msgid "swapon-device"
22677 msgstr ""
22678
22679 # type: verbatim
22680 #: ../fish/guestfish-actions.pod:3852
22681 #, no-wrap
22682 msgid ""
22683 " swapon-device device\n"
22684 "\n"
22685 msgstr ""
22686
22687 # type: textblock
22688 #: ../fish/guestfish-actions.pod:3854
22689 msgid ""
22690 "This command enables the libguestfs appliance to use the swap device or "
22691 "partition named C<device>.  The increased memory is made available for all "
22692 "commands, for example those run using L</command> or L</sh>."
22693 msgstr ""
22694
22695 # type: =head2
22696 #: ../fish/guestfish-actions.pod:3866
22697 msgid "swapon-file"
22698 msgstr ""
22699
22700 # type: verbatim
22701 #: ../fish/guestfish-actions.pod:3868
22702 #, no-wrap
22703 msgid ""
22704 " swapon-file file\n"
22705 "\n"
22706 msgstr ""
22707
22708 # type: textblock
22709 #: ../fish/guestfish-actions.pod:3870
22710 msgid ""
22711 "This command enables swap to a file.  See L</swapon-device> for other notes."
22712 msgstr ""
22713
22714 # type: =head2
22715 #: ../fish/guestfish-actions.pod:3873
22716 msgid "swapon-label"
22717 msgstr ""
22718
22719 # type: verbatim
22720 #: ../fish/guestfish-actions.pod:3875
22721 #, no-wrap
22722 msgid ""
22723 " swapon-label label\n"
22724 "\n"
22725 msgstr ""
22726
22727 # type: textblock
22728 #: ../fish/guestfish-actions.pod:3877
22729 msgid ""
22730 "This command enables swap to a labeled swap partition.  See L</swapon-"
22731 "device> for other notes."
22732 msgstr ""
22733
22734 # type: =head2
22735 #: ../fish/guestfish-actions.pod:3880
22736 msgid "swapon-uuid"
22737 msgstr ""
22738
22739 # type: verbatim
22740 #: ../fish/guestfish-actions.pod:3882
22741 #, no-wrap
22742 msgid ""
22743 " swapon-uuid uuid\n"
22744 "\n"
22745 msgstr ""
22746
22747 # type: textblock
22748 #: ../fish/guestfish-actions.pod:3884
22749 msgid ""
22750 "This command enables swap to a swap partition with the given UUID.  See L</"
22751 "swapon-device> for other notes."
22752 msgstr ""
22753
22754 # type: =head2
22755 #: ../fish/guestfish-actions.pod:3887
22756 msgid "sync"
22757 msgstr ""
22758
22759 # type: verbatim
22760 #: ../fish/guestfish-actions.pod:3889
22761 #, no-wrap
22762 msgid ""
22763 " sync\n"
22764 "\n"
22765 msgstr ""
22766
22767 # type: =head2
22768 #: ../fish/guestfish-actions.pod:3897
22769 msgid "tail"
22770 msgstr ""
22771
22772 # type: verbatim
22773 #: ../fish/guestfish-actions.pod:3899
22774 #, no-wrap
22775 msgid ""
22776 " tail path\n"
22777 "\n"
22778 msgstr ""
22779
22780 # type: =head2
22781 #: ../fish/guestfish-actions.pod:3907
22782 msgid "tail-n"
22783 msgstr ""
22784
22785 # type: verbatim
22786 #: ../fish/guestfish-actions.pod:3909
22787 #, no-wrap
22788 msgid ""
22789 " tail-n nrlines path\n"
22790 "\n"
22791 msgstr ""
22792
22793 # type: =head2
22794 #: ../fish/guestfish-actions.pod:3922
22795 msgid "tar-in"
22796 msgstr ""
22797
22798 # type: verbatim
22799 #: ../fish/guestfish-actions.pod:3924
22800 #, no-wrap
22801 msgid ""
22802 " tar-in (tarfile|-) directory\n"
22803 "\n"
22804 msgstr ""
22805
22806 # type: textblock
22807 #: ../fish/guestfish-actions.pod:3929
22808 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22809 msgstr ""
22810
22811 # type: =head2
22812 #: ../fish/guestfish-actions.pod:3934
22813 msgid "tar-out"
22814 msgstr ""
22815
22816 # type: verbatim
22817 #: ../fish/guestfish-actions.pod:3936
22818 #, no-wrap
22819 msgid ""
22820 " tar-out directory (tarfile|-)\n"
22821 "\n"
22822 msgstr ""
22823
22824 # type: textblock
22825 #: ../fish/guestfish-actions.pod:3941
22826 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22827 msgstr ""
22828
22829 # type: =head2
22830 #: ../fish/guestfish-actions.pod:3946
22831 msgid "tgz-in"
22832 msgstr ""
22833
22834 # type: verbatim
22835 #: ../fish/guestfish-actions.pod:3948
22836 #, no-wrap
22837 msgid ""
22838 " tgz-in (tarball|-) directory\n"
22839 "\n"
22840 msgstr ""
22841
22842 # type: textblock
22843 #: ../fish/guestfish-actions.pod:3953
22844 msgid "To upload an uncompressed tarball, use L</tar-in>."
22845 msgstr ""
22846
22847 # type: =head2
22848 #: ../fish/guestfish-actions.pod:3957
22849 msgid "tgz-out"
22850 msgstr ""
22851
22852 # type: verbatim
22853 #: ../fish/guestfish-actions.pod:3959
22854 #, no-wrap
22855 msgid ""
22856 " tgz-out directory (tarball|-)\n"
22857 "\n"
22858 msgstr ""
22859
22860 # type: textblock
22861 #: ../fish/guestfish-actions.pod:3964
22862 msgid "To download an uncompressed tarball, use L</tar-out>."
22863 msgstr ""
22864
22865 # type: =head2
22866 #: ../fish/guestfish-actions.pod:3968
22867 msgid "touch"
22868 msgstr ""
22869
22870 # type: verbatim
22871 #: ../fish/guestfish-actions.pod:3970
22872 #, no-wrap
22873 msgid ""
22874 " touch path\n"
22875 "\n"
22876 msgstr ""
22877
22878 # type: =head2
22879 #: ../fish/guestfish-actions.pod:3979
22880 msgid "truncate"
22881 msgstr ""
22882
22883 # type: verbatim
22884 #: ../fish/guestfish-actions.pod:3981
22885 #, no-wrap
22886 msgid ""
22887 " truncate path\n"
22888 "\n"
22889 msgstr ""
22890
22891 # type: =head2
22892 #: ../fish/guestfish-actions.pod:3986
22893 msgid "truncate-size"
22894 msgstr ""
22895
22896 # type: verbatim
22897 #: ../fish/guestfish-actions.pod:3988
22898 #, no-wrap
22899 msgid ""
22900 " truncate-size path size\n"
22901 "\n"
22902 msgstr ""
22903
22904 # type: textblock
22905 #: ../fish/guestfish-actions.pod:3993
22906 msgid ""
22907 "If the current file size is less than C<size> then the file is extended to "
22908 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22909 "blocks are not allocated for the file until you write to it).  To create a "
22910 "non-sparse file of zeroes, use L</fallocate64> instead."
22911 msgstr ""
22912
22913 # type: =head2
22914 #: ../fish/guestfish-actions.pod:3999
22915 msgid "tune2fs-l"
22916 msgstr ""
22917
22918 # type: verbatim
22919 #: ../fish/guestfish-actions.pod:4001
22920 #, no-wrap
22921 msgid ""
22922 " tune2fs-l device\n"
22923 "\n"
22924 msgstr ""
22925
22926 # type: =head2
22927 #: ../fish/guestfish-actions.pod:4011
22928 msgid "txz-in"
22929 msgstr ""
22930
22931 # type: verbatim
22932 #: ../fish/guestfish-actions.pod:4013
22933 #, no-wrap
22934 msgid ""
22935 " txz-in (tarball|-) directory\n"
22936 "\n"
22937 msgstr ""
22938
22939 # type: =head2
22940 #: ../fish/guestfish-actions.pod:4020
22941 msgid "txz-out"
22942 msgstr ""
22943
22944 # type: verbatim
22945 #: ../fish/guestfish-actions.pod:4022
22946 #, no-wrap
22947 msgid ""
22948 " txz-out directory (tarball|-)\n"
22949 "\n"
22950 msgstr ""
22951
22952 # type: =head2
22953 #: ../fish/guestfish-actions.pod:4029
22954 msgid "umask"
22955 msgstr ""
22956
22957 # type: verbatim
22958 #: ../fish/guestfish-actions.pod:4031
22959 #, no-wrap
22960 msgid ""
22961 " umask mask\n"
22962 "\n"
22963 msgstr ""
22964
22965 # type: textblock
22966 #: ../fish/guestfish-actions.pod:4045
22967 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22968 msgstr ""
22969
22970 # type: =head2
22971 #: ../fish/guestfish-actions.pod:4050
22972 msgid "umount"
22973 msgstr ""
22974
22975 # type: =head2
22976 #: ../fish/guestfish-actions.pod:4052
22977 msgid "unmount"
22978 msgstr ""
22979
22980 # type: verbatim
22981 #: ../fish/guestfish-actions.pod:4054
22982 #, no-wrap
22983 msgid ""
22984 " umount pathordevice\n"
22985 "\n"
22986 msgstr ""
22987
22988 # type: =head2
22989 #: ../fish/guestfish-actions.pod:4060
22990 msgid "umount-all"
22991 msgstr ""
22992
22993 # type: =head2
22994 #: ../fish/guestfish-actions.pod:4062
22995 msgid "unmount-all"
22996 msgstr ""
22997
22998 # type: verbatim
22999 #: ../fish/guestfish-actions.pod:4064
23000 #, no-wrap
23001 msgid ""
23002 " umount-all\n"
23003 "\n"
23004 msgstr ""
23005
23006 # type: =head2
23007 #: ../fish/guestfish-actions.pod:4070
23008 msgid "upload"
23009 msgstr ""
23010
23011 # type: verbatim
23012 #: ../fish/guestfish-actions.pod:4072
23013 #, no-wrap
23014 msgid ""
23015 " upload (filename|-) remotefilename\n"
23016 "\n"
23017 msgstr ""
23018
23019 # type: textblock
23020 #: ../fish/guestfish-actions.pod:4079
23021 msgid "See also L</download>."
23022 msgstr ""
23023
23024 # type: =head2
23025 #: ../fish/guestfish-actions.pod:4083
23026 msgid "upload-offset"
23027 msgstr ""
23028
23029 # type: verbatim
23030 #: ../fish/guestfish-actions.pod:4085
23031 #, no-wrap
23032 msgid ""
23033 " upload-offset (filename|-) remotefilename offset\n"
23034 "\n"
23035 msgstr ""
23036
23037 # type: textblock
23038 #: ../fish/guestfish-actions.pod:4097
23039 msgid ""
23040 "Note that there is no limit on the amount of data that can be uploaded with "
23041 "this call, unlike with L</pwrite>, and this call always writes the full "
23042 "amount unless an error occurs."
23043 msgstr ""
23044
23045 # type: textblock
23046 #: ../fish/guestfish-actions.pod:4102
23047 msgid "See also L</upload>, L</pwrite>."
23048 msgstr ""
23049
23050 # type: =head2
23051 #: ../fish/guestfish-actions.pod:4106
23052 msgid "utimens"
23053 msgstr ""
23054
23055 # type: verbatim
23056 #: ../fish/guestfish-actions.pod:4108
23057 #, no-wrap
23058 msgid ""
23059 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23060 "\n"
23061 msgstr ""
23062
23063 # type: =head2
23064 #: ../fish/guestfish-actions.pod:4127
23065 msgid "version"
23066 msgstr ""
23067
23068 # type: verbatim
23069 #: ../fish/guestfish-actions.pod:4129
23070 #, no-wrap
23071 msgid ""
23072 " version\n"
23073 "\n"
23074 msgstr ""
23075
23076 # type: textblock
23077 #: ../fish/guestfish-actions.pod:4156
23078 msgid ""
23079 "I<Note:> Don't use this call to test for availability of features.  In "
23080 "enterprise distributions we backport features from later versions into "
23081 "earlier versions, making this an unreliable way to test for features.  Use "
23082 "L</available> instead."
23083 msgstr ""
23084
23085 # type: =head2
23086 #: ../fish/guestfish-actions.pod:4162
23087 msgid "vfs-label"
23088 msgstr ""
23089
23090 # type: verbatim
23091 #: ../fish/guestfish-actions.pod:4164
23092 #, no-wrap
23093 msgid ""
23094 " vfs-label device\n"
23095 "\n"
23096 msgstr ""
23097
23098 # type: textblock
23099 #: ../fish/guestfish-actions.pod:4171
23100 msgid "To find a filesystem from the label, use L</findfs-label>."
23101 msgstr ""
23102
23103 # type: =head2
23104 #: ../fish/guestfish-actions.pod:4173
23105 msgid "vfs-type"
23106 msgstr ""
23107
23108 # type: verbatim
23109 #: ../fish/guestfish-actions.pod:4175
23110 #, no-wrap
23111 msgid ""
23112 " vfs-type device\n"
23113 "\n"
23114 msgstr ""
23115
23116 # type: =head2
23117 #: ../fish/guestfish-actions.pod:4185
23118 msgid "vfs-uuid"
23119 msgstr ""
23120
23121 # type: verbatim
23122 #: ../fish/guestfish-actions.pod:4187
23123 #, no-wrap
23124 msgid ""
23125 " vfs-uuid device\n"
23126 "\n"
23127 msgstr ""
23128
23129 # type: textblock
23130 #: ../fish/guestfish-actions.pod:4194
23131 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
23132 msgstr ""
23133
23134 # type: =head2
23135 #: ../fish/guestfish-actions.pod:4196
23136 msgid "vg-activate"
23137 msgstr ""
23138
23139 # type: verbatim
23140 #: ../fish/guestfish-actions.pod:4198
23141 #, no-wrap
23142 msgid ""
23143 " vg-activate true|false 'volgroups ...'\n"
23144 "\n"
23145 msgstr ""
23146
23147 # type: =head2
23148 #: ../fish/guestfish-actions.pod:4211
23149 msgid "vg-activate-all"
23150 msgstr ""
23151
23152 # type: verbatim
23153 #: ../fish/guestfish-actions.pod:4213
23154 #, no-wrap
23155 msgid ""
23156 " vg-activate-all true|false\n"
23157 "\n"
23158 msgstr ""
23159
23160 # type: =head2
23161 #: ../fish/guestfish-actions.pod:4223
23162 msgid "vgcreate"
23163 msgstr ""
23164
23165 # type: verbatim
23166 #: ../fish/guestfish-actions.pod:4225
23167 #, no-wrap
23168 msgid ""
23169 " vgcreate volgroup 'physvols ...'\n"
23170 "\n"
23171 msgstr ""
23172
23173 # type: =head2
23174 #: ../fish/guestfish-actions.pod:4230
23175 msgid "vglvuuids"
23176 msgstr ""
23177
23178 # type: verbatim
23179 #: ../fish/guestfish-actions.pod:4232
23180 #, no-wrap
23181 msgid ""
23182 " vglvuuids vgname\n"
23183 "\n"
23184 msgstr ""
23185
23186 # type: textblock
23187 #: ../fish/guestfish-actions.pod:4237
23188 msgid ""
23189 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
23190 "logical volumes and volume groups."
23191 msgstr ""
23192
23193 # type: textblock
23194 #: ../fish/guestfish-actions.pod:4240
23195 msgid "See also L</vgpvuuids>."
23196 msgstr ""
23197
23198 # type: =head2
23199 #: ../fish/guestfish-actions.pod:4242
23200 msgid "vgpvuuids"
23201 msgstr ""
23202
23203 # type: verbatim
23204 #: ../fish/guestfish-actions.pod:4244
23205 #, no-wrap
23206 msgid ""
23207 " vgpvuuids vgname\n"
23208 "\n"
23209 msgstr ""
23210
23211 # type: textblock
23212 #: ../fish/guestfish-actions.pod:4249
23213 msgid ""
23214 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
23215 "physical volumes and volume groups."
23216 msgstr ""
23217
23218 # type: textblock
23219 #: ../fish/guestfish-actions.pod:4252
23220 msgid "See also L</vglvuuids>."
23221 msgstr ""
23222
23223 # type: =head2
23224 #: ../fish/guestfish-actions.pod:4254
23225 msgid "vgremove"
23226 msgstr ""
23227
23228 # type: verbatim
23229 #: ../fish/guestfish-actions.pod:4256
23230 #, no-wrap
23231 msgid ""
23232 " vgremove vgname\n"
23233 "\n"
23234 msgstr ""
23235
23236 # type: =head2
23237 #: ../fish/guestfish-actions.pod:4263
23238 msgid "vgrename"
23239 msgstr ""
23240
23241 # type: verbatim
23242 #: ../fish/guestfish-actions.pod:4265
23243 #, no-wrap
23244 msgid ""
23245 " vgrename volgroup newvolgroup\n"
23246 "\n"
23247 msgstr ""
23248
23249 # type: =head2
23250 #: ../fish/guestfish-actions.pod:4269
23251 msgid "vgs"
23252 msgstr ""
23253
23254 # type: verbatim
23255 #: ../fish/guestfish-actions.pod:4271
23256 #, no-wrap
23257 msgid ""
23258 " vgs\n"
23259 "\n"
23260 msgstr ""
23261
23262 # type: textblock
23263 #: ../fish/guestfish-actions.pod:4279
23264 msgid "See also L</vgs-full>."
23265 msgstr ""
23266
23267 # type: =head2
23268 #: ../fish/guestfish-actions.pod:4281
23269 msgid "vgs-full"
23270 msgstr ""
23271
23272 # type: verbatim
23273 #: ../fish/guestfish-actions.pod:4283
23274 #, no-wrap
23275 msgid ""
23276 " vgs-full\n"
23277 "\n"
23278 msgstr ""
23279
23280 # type: =head2
23281 #: ../fish/guestfish-actions.pod:4288
23282 msgid "vgscan"
23283 msgstr ""
23284
23285 # type: verbatim
23286 #: ../fish/guestfish-actions.pod:4290
23287 #, no-wrap
23288 msgid ""
23289 " vgscan\n"
23290 "\n"
23291 msgstr ""
23292
23293 # type: =head2
23294 #: ../fish/guestfish-actions.pod:4295
23295 msgid "vguuid"
23296 msgstr ""
23297
23298 # type: verbatim
23299 #: ../fish/guestfish-actions.pod:4297
23300 #, no-wrap
23301 msgid ""
23302 " vguuid vgname\n"
23303 "\n"
23304 msgstr ""
23305
23306 # type: =head2
23307 #: ../fish/guestfish-actions.pod:4301
23308 msgid "wc-c"
23309 msgstr ""
23310
23311 # type: verbatim
23312 #: ../fish/guestfish-actions.pod:4303
23313 #, no-wrap
23314 msgid ""
23315 " wc-c path\n"
23316 "\n"
23317 msgstr ""
23318
23319 # type: =head2
23320 #: ../fish/guestfish-actions.pod:4308
23321 msgid "wc-l"
23322 msgstr ""
23323
23324 # type: verbatim
23325 #: ../fish/guestfish-actions.pod:4310
23326 #, no-wrap
23327 msgid ""
23328 " wc-l path\n"
23329 "\n"
23330 msgstr ""
23331
23332 # type: =head2
23333 #: ../fish/guestfish-actions.pod:4315
23334 msgid "wc-w"
23335 msgstr ""
23336
23337 # type: verbatim
23338 #: ../fish/guestfish-actions.pod:4317
23339 #, no-wrap
23340 msgid ""
23341 " wc-w path\n"
23342 "\n"
23343 msgstr ""
23344
23345 # type: =head2
23346 #: ../fish/guestfish-actions.pod:4322
23347 msgid "write"
23348 msgstr ""
23349
23350 # type: verbatim
23351 #: ../fish/guestfish-actions.pod:4324
23352 #, no-wrap
23353 msgid ""
23354 " write path content\n"
23355 "\n"
23356 msgstr ""
23357
23358 # type: =head2
23359 #: ../fish/guestfish-actions.pod:4332
23360 msgid "write-file"
23361 msgstr ""
23362
23363 # type: verbatim
23364 #: ../fish/guestfish-actions.pod:4334
23365 #, no-wrap
23366 msgid ""
23367 " write-file path content size\n"
23368 "\n"
23369 msgstr ""
23370
23371 # type: =head2
23372 #: ../fish/guestfish-actions.pod:4357
23373 msgid "zegrep"
23374 msgstr ""
23375
23376 # type: verbatim
23377 #: ../fish/guestfish-actions.pod:4359
23378 #, no-wrap
23379 msgid ""
23380 " zegrep regex path\n"
23381 "\n"
23382 msgstr ""
23383
23384 # type: =head2
23385 #: ../fish/guestfish-actions.pod:4367
23386 msgid "zegrepi"
23387 msgstr ""
23388
23389 # type: verbatim
23390 #: ../fish/guestfish-actions.pod:4369
23391 #, no-wrap
23392 msgid ""
23393 " zegrepi regex path\n"
23394 "\n"
23395 msgstr ""
23396
23397 # type: =head2
23398 #: ../fish/guestfish-actions.pod:4377
23399 msgid "zero"
23400 msgstr ""
23401
23402 # type: verbatim
23403 #: ../fish/guestfish-actions.pod:4379
23404 #, no-wrap
23405 msgid ""
23406 " zero device\n"
23407 "\n"
23408 msgstr ""
23409
23410 # type: textblock
23411 #: ../fish/guestfish-actions.pod:4387
23412 msgid "See also: L</zero-device>, L</scrub-device>."
23413 msgstr ""
23414
23415 # type: =head2
23416 #: ../fish/guestfish-actions.pod:4389
23417 msgid "zero-device"
23418 msgstr ""
23419
23420 # type: verbatim
23421 #: ../fish/guestfish-actions.pod:4391
23422 #, no-wrap
23423 msgid ""
23424 " zero-device device\n"
23425 "\n"
23426 msgstr ""
23427
23428 # type: textblock
23429 #: ../fish/guestfish-actions.pod:4393
23430 msgid ""
23431 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23432 "which just zeroes the first few blocks of a device."
23433 msgstr ""
23434
23435 # type: =head2
23436 #: ../fish/guestfish-actions.pod:4400
23437 msgid "zerofree"
23438 msgstr ""
23439
23440 # type: verbatim
23441 #: ../fish/guestfish-actions.pod:4402
23442 #, no-wrap
23443 msgid ""
23444 " zerofree device\n"
23445 "\n"
23446 msgstr ""
23447
23448 # type: =head2
23449 #: ../fish/guestfish-actions.pod:4415
23450 msgid "zfgrep"
23451 msgstr ""
23452
23453 # type: verbatim
23454 #: ../fish/guestfish-actions.pod:4417
23455 #, no-wrap
23456 msgid ""
23457 " zfgrep pattern path\n"
23458 "\n"
23459 msgstr ""
23460
23461 # type: =head2
23462 #: ../fish/guestfish-actions.pod:4425
23463 msgid "zfgrepi"
23464 msgstr ""
23465
23466 # type: verbatim
23467 #: ../fish/guestfish-actions.pod:4427
23468 #, no-wrap
23469 msgid ""
23470 " zfgrepi pattern path\n"
23471 "\n"
23472 msgstr ""
23473
23474 # type: =head2
23475 #: ../fish/guestfish-actions.pod:4435
23476 msgid "zfile"
23477 msgstr ""
23478
23479 # type: verbatim
23480 #: ../fish/guestfish-actions.pod:4437
23481 #, no-wrap
23482 msgid ""
23483 " zfile meth path\n"
23484 "\n"
23485 msgstr ""
23486
23487 # type: textblock
23488 #: ../fish/guestfish-actions.pod:4444
23489 msgid ""
23490 "Since 1.0.63, use L</file> instead which can now process compressed files."
23491 msgstr ""
23492
23493 # type: =head2
23494 #: ../fish/guestfish-actions.pod:4454
23495 msgid "zgrep"
23496 msgstr ""
23497
23498 # type: verbatim
23499 #: ../fish/guestfish-actions.pod:4456
23500 #, no-wrap
23501 msgid ""
23502 " zgrep regex path\n"
23503 "\n"
23504 msgstr ""
23505
23506 # type: =head2
23507 #: ../fish/guestfish-actions.pod:4464
23508 msgid "zgrepi"
23509 msgstr ""
23510
23511 # type: verbatim
23512 #: ../fish/guestfish-actions.pod:4466
23513 #, no-wrap
23514 msgid ""
23515 " zgrepi regex path\n"
23516 "\n"
23517 msgstr ""
23518
23519 # type: =head2
23520 #: ../fish/guestfish-commands.pod:1
23521 msgid "alloc"
23522 msgstr ""
23523
23524 # type: =head2
23525 #: ../fish/guestfish-commands.pod:3
23526 msgid "allocate"
23527 msgstr ""
23528
23529 # type: verbatim
23530 #: ../fish/guestfish-commands.pod:5
23531 #, no-wrap
23532 msgid ""
23533 " alloc filename size\n"
23534 "\n"
23535 msgstr ""
23536
23537 # type: textblock
23538 #: ../fish/guestfish-commands.pod:7
23539 msgid ""
23540 "This creates an empty (zeroed) file of the given size, and then adds so it "
23541 "can be further examined."
23542 msgstr ""
23543
23544 # type: textblock
23545 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23546 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23547 msgstr ""
23548
23549 # type: textblock
23550 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23551 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23552 msgstr ""
23553
23554 # type: textblock
23555 #: ../fish/guestfish-commands.pod:14
23556 msgid ""
23557 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23558 "image, see L</PREPARED DISK IMAGES>."
23559 msgstr ""
23560
23561 # type: =head2
23562 #: ../fish/guestfish-commands.pod:17
23563 msgid "copy-in"
23564 msgstr ""
23565
23566 # type: verbatim
23567 #: ../fish/guestfish-commands.pod:19
23568 #, no-wrap
23569 msgid ""
23570 " copy-in local [local ...] /remotedir\n"
23571 "\n"
23572 msgstr ""
23573
23574 # type: textblock
23575 #: ../fish/guestfish-commands.pod:21
23576 msgid ""
23577 "C<copy-in> copies local files or directories recursively into the disk "
23578 "image, placing them in the directory called C</remotedir> (which must "
23579 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23580 "other commands as necessary."
23581 msgstr ""
23582
23583 # type: textblock
23584 #: ../fish/guestfish-commands.pod:26
23585 msgid ""
23586 "Multiple local files and directories can be specified, but the last "
23587 "parameter must always be a remote directory.  Wildcards cannot be used."
23588 msgstr ""
23589
23590 # type: =head2
23591 #: ../fish/guestfish-commands.pod:30
23592 msgid "copy-out"
23593 msgstr ""
23594
23595 # type: verbatim
23596 #: ../fish/guestfish-commands.pod:32
23597 #, no-wrap
23598 msgid ""
23599 " copy-out remote [remote ...] localdir\n"
23600 "\n"
23601 msgstr ""
23602
23603 # type: textblock
23604 #: ../fish/guestfish-commands.pod:34
23605 msgid ""
23606 "C<copy-out> copies remote files or directories recursively out of the disk "
23607 "image, placing them on the host disk in a local directory called C<localdir> "
23608 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
23609 "download>, L</tar-out> and other commands as necessary."
23610 msgstr ""
23611
23612 # type: textblock
23613 #: ../fish/guestfish-commands.pod:40
23614 msgid ""
23615 "Multiple remote files and directories can be specified, but the last "
23616 "parameter must always be a local directory.  To download to the current "
23617 "directory, use C<.> as in:"
23618 msgstr ""
23619
23620 # type: verbatim
23621 #: ../fish/guestfish-commands.pod:44
23622 #, no-wrap
23623 msgid ""
23624 " copy-out /home .\n"
23625 "\n"
23626 msgstr ""
23627
23628 # type: textblock
23629 #: ../fish/guestfish-commands.pod:46
23630 msgid ""
23631 "Wildcards cannot be used in the ordinary command, but you can use them with "
23632 "the help of L</glob> like this:"
23633 msgstr ""
23634
23635 # type: verbatim
23636 #: ../fish/guestfish-commands.pod:49
23637 #, no-wrap
23638 msgid ""
23639 " glob copy-out /home/* .\n"
23640 "\n"
23641 msgstr ""
23642
23643 # type: =head2
23644 #: ../fish/guestfish-commands.pod:51
23645 msgid "echo"
23646 msgstr ""
23647
23648 # type: verbatim
23649 #: ../fish/guestfish-commands.pod:53
23650 #, no-wrap
23651 msgid ""
23652 " echo [params ...]\n"
23653 "\n"
23654 msgstr ""
23655
23656 # type: textblock
23657 #: ../fish/guestfish-commands.pod:55
23658 msgid "This echos the parameters to the terminal."
23659 msgstr ""
23660
23661 # type: =head2
23662 #: ../fish/guestfish-commands.pod:57
23663 msgid "edit"
23664 msgstr ""
23665
23666 # type: =head2
23667 #: ../fish/guestfish-commands.pod:59
23668 msgid "vi"
23669 msgstr ""
23670
23671 # type: =head2
23672 #: ../fish/guestfish-commands.pod:61
23673 msgid "emacs"
23674 msgstr ""
23675
23676 # type: verbatim
23677 #: ../fish/guestfish-commands.pod:63
23678 #, no-wrap
23679 msgid ""
23680 " edit filename\n"
23681 "\n"
23682 msgstr ""
23683
23684 # type: textblock
23685 #: ../fish/guestfish-commands.pod:65
23686 msgid ""
23687 "This is used to edit a file.  It downloads the file, edits it locally using "
23688 "your editor, then uploads the result."
23689 msgstr ""
23690
23691 # type: textblock
23692 #: ../fish/guestfish-commands.pod:68
23693 msgid ""
23694 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23695 "or C<emacs> you will get those corresponding editors."
23696 msgstr ""
23697
23698 # type: =head2
23699 #: ../fish/guestfish-commands.pod:72
23700 msgid "glob"
23701 msgstr ""
23702
23703 # type: verbatim
23704 #: ../fish/guestfish-commands.pod:74
23705 #, no-wrap
23706 msgid ""
23707 " glob command args...\n"
23708 "\n"
23709 msgstr ""
23710
23711 # type: textblock
23712 #: ../fish/guestfish-commands.pod:76
23713 msgid ""
23714 "Expand wildcards in any paths in the args list, and run C<command> "
23715 "repeatedly on each matching path."
23716 msgstr ""
23717
23718 # type: textblock
23719 #: ../fish/guestfish-commands.pod:79
23720 msgid "See L</WILDCARDS AND GLOBBING>."
23721 msgstr ""
23722
23723 # type: =head2
23724 #: ../fish/guestfish-commands.pod:81
23725 msgid "hexedit"
23726 msgstr ""
23727
23728 # type: verbatim
23729 #: ../fish/guestfish-commands.pod:83
23730 #, no-wrap
23731 msgid ""
23732 " hexedit <filename|device>\n"
23733 " hexedit <filename|device> <max>\n"
23734 " hexedit <filename|device> <start> <max>\n"
23735 "\n"
23736 msgstr ""
23737
23738 # type: textblock
23739 #: ../fish/guestfish-commands.pod:87
23740 msgid ""
23741 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23742 "device."
23743 msgstr ""
23744
23745 # type: textblock
23746 #: ../fish/guestfish-commands.pod:90
23747 msgid ""
23748 "This command works by downloading potentially the whole file or device, "
23749 "editing it locally, then uploading it.  If the file or device is large, you "
23750 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23751 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23752 "usual modifiers allowed such as C<1M> (1 megabyte)."
23753 msgstr ""
23754
23755 # type: textblock
23756 #: ../fish/guestfish-commands.pod:97
23757 msgid "For example to edit the first few sectors of a disk you might do:"
23758 msgstr ""
23759
23760 # type: verbatim
23761 #: ../fish/guestfish-commands.pod:100
23762 #, no-wrap
23763 msgid ""
23764 " hexedit /dev/sda 1M\n"
23765 "\n"
23766 msgstr ""
23767
23768 # type: textblock
23769 #: ../fish/guestfish-commands.pod:102
23770 msgid ""
23771 "which would allow you to edit anywhere within the first megabyte of the disk."
23772 msgstr ""
23773
23774 # type: textblock
23775 #: ../fish/guestfish-commands.pod:105
23776 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23777 msgstr ""
23778
23779 # type: verbatim
23780 #: ../fish/guestfish-commands.pod:107
23781 #, no-wrap
23782 msgid ""
23783 " hexedit /dev/sda1 0x400 0x400\n"
23784 "\n"
23785 msgstr ""
23786
23787 # type: textblock
23788 #: ../fish/guestfish-commands.pod:109
23789 msgid "(assuming the superblock is in the standard location)."
23790 msgstr ""
23791
23792 # type: textblock
23793 #: ../fish/guestfish-commands.pod:111
23794 msgid ""
23795 "This command requires the external L<hexedit(1)> program.  You can specify "
23796 "another program to use by setting the C<HEXEDITOR> environment variable."
23797 msgstr ""
23798
23799 # type: textblock
23800 #: ../fish/guestfish-commands.pod:115
23801 msgid "See also L</hexdump>."
23802 msgstr ""
23803
23804 # type: =head2
23805 #: ../fish/guestfish-commands.pod:117
23806 msgid "lcd"
23807 msgstr ""
23808
23809 # type: verbatim
23810 #: ../fish/guestfish-commands.pod:119
23811 #, no-wrap
23812 msgid ""
23813 " lcd directory\n"
23814 "\n"
23815 msgstr ""
23816
23817 # type: textblock
23818 #: ../fish/guestfish-commands.pod:121
23819 msgid ""
23820 "Change the local directory, ie. the current directory of guestfish itself."
23821 msgstr ""
23822
23823 # type: textblock
23824 #: ../fish/guestfish-commands.pod:124
23825 msgid "Note that C<!cd> won't do what you might expect."
23826 msgstr ""
23827
23828 # type: =head2
23829 #: ../fish/guestfish-commands.pod:126
23830 msgid "man"
23831 msgstr ""
23832
23833 # type: =head2
23834 #: ../fish/guestfish-commands.pod:128
23835 msgid "manual"
23836 msgstr ""
23837
23838 # type: verbatim
23839 #: ../fish/guestfish-commands.pod:130
23840 #, no-wrap
23841 msgid ""
23842 "  man\n"
23843 "\n"
23844 msgstr ""
23845
23846 # type: textblock
23847 #: ../fish/guestfish-commands.pod:132
23848 msgid "Opens the manual page for guestfish."
23849 msgstr ""
23850
23851 # type: =head2
23852 #: ../fish/guestfish-commands.pod:134
23853 msgid "more"
23854 msgstr ""
23855
23856 # type: =head2
23857 #: ../fish/guestfish-commands.pod:136
23858 msgid "less"
23859 msgstr ""
23860
23861 # type: verbatim
23862 #: ../fish/guestfish-commands.pod:138
23863 #, no-wrap
23864 msgid ""
23865 " more filename\n"
23866 "\n"
23867 msgstr ""
23868
23869 # type: verbatim
23870 #: ../fish/guestfish-commands.pod:140
23871 #, no-wrap
23872 msgid ""
23873 " less filename\n"
23874 "\n"
23875 msgstr ""
23876
23877 # type: textblock
23878 #: ../fish/guestfish-commands.pod:142
23879 msgid "This is used to view a file."
23880 msgstr ""
23881
23882 # type: textblock
23883 #: ../fish/guestfish-commands.pod:144
23884 msgid ""
23885 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23886 "C<less> you will get the C<less> command specifically."
23887 msgstr ""
23888
23889 # type: =head2
23890 #: ../fish/guestfish-commands.pod:147
23891 msgid "reopen"
23892 msgstr ""
23893
23894 # type: verbatim
23895 #: ../fish/guestfish-commands.pod:149
23896 #, no-wrap
23897 msgid ""
23898 "  reopen\n"
23899 "\n"
23900 msgstr ""
23901
23902 # type: textblock
23903 #: ../fish/guestfish-commands.pod:151
23904 msgid ""
23905 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23906 "normally, because the handle is closed properly when guestfish exits.  "
23907 "However this is occasionally useful for testing."
23908 msgstr ""
23909
23910 # type: =head2
23911 #: ../fish/guestfish-commands.pod:155
23912 msgid "sparse"
23913 msgstr ""
23914
23915 # type: verbatim
23916 #: ../fish/guestfish-commands.pod:157
23917 #, no-wrap
23918 msgid ""
23919 " sparse filename size\n"
23920 "\n"
23921 msgstr ""
23922
23923 # type: textblock
23924 #: ../fish/guestfish-commands.pod:159
23925 msgid ""
23926 "This creates an empty sparse file of the given size, and then adds so it can "
23927 "be further examined."
23928 msgstr ""
23929
23930 # type: textblock
23931 #: ../fish/guestfish-commands.pod:162
23932 msgid ""
23933 "In all respects it works the same as the L</alloc> command, except that the "
23934 "image file is allocated sparsely, which means that disk blocks are not "
23935 "assigned to the file until they are needed.  Sparse disk files only use "
23936 "space when written to, but they are slower and there is a danger you could "
23937 "run out of real disk space during a write operation."
23938 msgstr ""
23939
23940 # type: =head2
23941 #: ../fish/guestfish-commands.pod:172
23942 msgid "supported"
23943 msgstr ""
23944
23945 # type: verbatim
23946 #: ../fish/guestfish-commands.pod:174
23947 #, no-wrap
23948 msgid ""
23949 " supported\n"
23950 "\n"
23951 msgstr ""
23952
23953 # type: textblock
23954 #: ../fish/guestfish-commands.pod:176
23955 msgid ""
23956 "This command returns a list of the optional groups known to the daemon, and "
23957 "indicates which ones are supported by this build of the libguestfs appliance."
23958 msgstr ""
23959
23960 # type: textblock
23961 #: ../fish/guestfish-commands.pod:180
23962 msgid "See also L<guestfs(3)/AVAILABILITY>."
23963 msgstr ""
23964
23965 # type: =head2
23966 #: ../fish/guestfish-commands.pod:182
23967 msgid "time"
23968 msgstr ""
23969
23970 # type: verbatim
23971 #: ../fish/guestfish-commands.pod:184
23972 #, no-wrap
23973 msgid ""
23974 " time command args...\n"
23975 "\n"
23976 msgstr ""
23977
23978 # type: textblock
23979 #: ../fish/guestfish-commands.pod:186
23980 msgid ""
23981 "Run the command as usual, but print the elapsed time afterwards.  This can "
23982 "be useful for benchmarking operations."
23983 msgstr ""
23984
23985 # type: textblock
23986 #: ../test-tool/libguestfs-test-tool.pod:5
23987 msgid "libguestfs-test-tool - End user tests for libguestfs"
23988 msgstr ""
23989
23990 # type: verbatim
23991 #: ../test-tool/libguestfs-test-tool.pod:9
23992 #, no-wrap
23993 msgid ""
23994 " libguestfs-test-tool [--options]\n"
23995 "\n"
23996 msgstr ""
23997
23998 # type: textblock
23999 #: ../test-tool/libguestfs-test-tool.pod:13
24000 msgid ""
24001 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24002 "and developers, to allow them to check basic libguestfs functionality is "
24003 "working.  This is needed because libguestfs occasionally breaks for reasons "
24004 "beyond our control: usually because of changes in the underlying qemu or "
24005 "kernel packages, or the host environment."
24006 msgstr ""
24007
24008 # type: textblock
24009 #: ../test-tool/libguestfs-test-tool.pod:20
24010 msgid "If you suspect a problem in libguestfs, then just run:"
24011 msgstr ""
24012
24013 # type: verbatim
24014 #: ../test-tool/libguestfs-test-tool.pod:22
24015 #, no-wrap
24016 msgid ""
24017 " libguestfs-test-tool\n"
24018 "\n"
24019 msgstr ""
24020
24021 # type: textblock
24022 #: ../test-tool/libguestfs-test-tool.pod:24
24023 msgid "It will print lots of diagnostic messages."
24024 msgstr ""
24025
24026 # type: textblock
24027 #: ../test-tool/libguestfs-test-tool.pod:26
24028 msgid "If it runs to completion successfully, you will see this near the end:"
24029 msgstr ""
24030
24031 # type: verbatim
24032 #: ../test-tool/libguestfs-test-tool.pod:28
24033 #, no-wrap
24034 msgid ""
24035 " ===== TEST FINISHED OK =====\n"
24036 "\n"
24037 msgstr ""
24038
24039 # type: textblock
24040 #: ../test-tool/libguestfs-test-tool.pod:30
24041 msgid "and the test tool will exit with code 0."
24042 msgstr ""
24043
24044 # type: textblock
24045 #: ../test-tool/libguestfs-test-tool.pod:32
24046 msgid ""
24047 "If it fails (and/or exits with non-zero error code), please paste the "
24048 "B<complete, unedited> output of the test tool into a bug report.  More "
24049 "information about reporting bugs can be found on the L<http://libguestfs.org/"
24050 "> website."
24051 msgstr ""
24052
24053 # type: =item
24054 #: ../test-tool/libguestfs-test-tool.pod:41
24055 msgid "I<--help>"
24056 msgstr ""
24057
24058 # type: textblock
24059 #: ../test-tool/libguestfs-test-tool.pod:43
24060 msgid "Display short usage information and exit."
24061 msgstr ""
24062
24063 # type: =item
24064 #: ../test-tool/libguestfs-test-tool.pod:45
24065 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24066 msgstr ""
24067
24068 # type: textblock
24069 #: ../test-tool/libguestfs-test-tool.pod:47
24070 msgid ""
24071 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24072 "normally look in the C<$libexec> directory that was configured when the tool "
24073 "was built."
24074 msgstr ""
24075
24076 # type: =item
24077 #: ../test-tool/libguestfs-test-tool.pod:51
24078 msgid "I<--qemu qemu_binary>"
24079 msgstr ""
24080
24081 # type: textblock
24082 #: ../test-tool/libguestfs-test-tool.pod:53
24083 msgid ""
24084 "If you have downloaded another qemu binary, point this option at the full "
24085 "path of the binary to try it."
24086 msgstr ""
24087
24088 # type: =item
24089 #: ../test-tool/libguestfs-test-tool.pod:56
24090 msgid "I<--qemudir qemu_source_dir>"
24091 msgstr ""
24092
24093 # type: textblock
24094 #: ../test-tool/libguestfs-test-tool.pod:58
24095 msgid ""
24096 "If you have compiled qemu from source, point this option at the source "
24097 "directory to try it."
24098 msgstr ""
24099
24100 # type: =item
24101 #: ../test-tool/libguestfs-test-tool.pod:61
24102 msgid "I<--timeout N>"
24103 msgstr ""
24104
24105 # type: textblock
24106 #: ../test-tool/libguestfs-test-tool.pod:63
24107 msgid ""
24108 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24109 "does not usually need to be adjusted unless your machine is very slow."
24110 msgstr ""
24111
24112 # type: =head1
24113 #: ../test-tool/libguestfs-test-tool.pod:69
24114 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24115 msgstr ""
24116
24117 # type: textblock
24118 #: ../test-tool/libguestfs-test-tool.pod:71
24119 msgid ""
24120 "If you have compiled another version of qemu from source and would like to "
24121 "try that, then you can use the I<--qemudir> option to point to the qemu "
24122 "source directory."
24123 msgstr ""
24124
24125 # type: textblock
24126 #: ../test-tool/libguestfs-test-tool.pod:75
24127 msgid ""
24128 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24129 "option to point to the binary."
24130 msgstr ""
24131
24132 # type: textblock
24133 #: ../test-tool/libguestfs-test-tool.pod:78
24134 msgid ""
24135 "When using an alternate qemu with libguestfs, usually you would need to "
24136 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
24137 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
24138 "use either of the I<--qemudir> or I<--qemu> options."
24139 msgstr ""
24140
24141 # type: textblock
24142 #: ../test-tool/libguestfs-test-tool.pod:85
24143 msgid ""
24144 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
24145 "I<1> if there was an error."
24146 msgstr ""
24147
24148 # type: =item
24149 #: ../test-tool/libguestfs-test-tool.pod:92
24150 msgid "/usr/libexec/libguestfs-test-tool-helper"
24151 msgstr ""
24152
24153 # type: textblock
24154 #: ../test-tool/libguestfs-test-tool.pod:94
24155 msgid ""
24156 "This helper program is run inside the appliance and provides additional "
24157 "tests."
24158 msgstr ""
24159
24160 # type: =item
24161 #: ../test-tool/libguestfs-test-tool.pod:97
24162 msgid "/usr/bin/mkisofs"
24163 msgstr ""
24164
24165 # type: textblock
24166 #: ../test-tool/libguestfs-test-tool.pod:99
24167 msgid ""
24168 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
24169 "which is used as part of the tests."
24170 msgstr ""
24171
24172 # type: textblock
24173 #: ../test-tool/libguestfs-test-tool.pod:106
24174 msgid ""
24175 "For the full list of environment variables which may affect libguestfs, "
24176 "please see the L<guestfs(3)> manual page."
24177 msgstr ""
24178
24179 # type: textblock
24180 #: ../test-tool/libguestfs-test-tool.pod:111
24181 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
24182 msgstr ""
24183
24184 # type: textblock
24185 #: ../test-tool/libguestfs-test-tool.pod:121
24186 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
24187 msgstr ""
24188
24189 # type: textblock
24190 #: ../fuse/guestmount.pod:5
24191 msgid ""
24192 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
24193 msgstr ""
24194
24195 # type: verbatim
24196 #: ../fuse/guestmount.pod:9
24197 #, no-wrap
24198 msgid ""
24199 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
24200 "\n"
24201 msgstr ""
24202
24203 # type: verbatim
24204 #: ../fuse/guestmount.pod:11
24205 #, no-wrap
24206 msgid ""
24207 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
24208 "\n"
24209 msgstr ""
24210
24211 # type: verbatim
24212 #: ../fuse/guestmount.pod:13
24213 #, no-wrap
24214 msgid ""
24215 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
24216 "\n"
24217 msgstr ""
24218
24219 # type: textblock
24220 #: ../fuse/guestmount.pod:17
24221 msgid ""
24222 "You must I<not> use C<guestmount> in read-write mode on live virtual "
24223 "machines.  If you do this, you risk disk corruption in the VM."
24224 msgstr ""
24225
24226 # type: textblock
24227 #: ../fuse/guestmount.pod:22
24228 msgid ""
24229 "The guestmount program can be used to mount virtual machine filesystems and "
24230 "other disk images on the host.  It uses libguestfs for access to the guest "
24231 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
24232 "a mountable device."
24233 msgstr ""
24234
24235 # type: textblock
24236 #: ../fuse/guestmount.pod:27
24237 msgid ""
24238 "Along with other options, you have to give at least one device (I<-a> "
24239 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
24240 "option) or use the I<-i> inspection option.  How this works is better "
24241 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
24242 "below."
24243 msgstr ""
24244
24245 # type: textblock
24246 #: ../fuse/guestmount.pod:33
24247 msgid ""
24248 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
24249 "by you, and the filesystem will not be visible to any other users unless you "
24250 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
24251 "the filesystem, use the C<fusermount -u> command."
24252 msgstr ""
24253
24254 # type: textblock
24255 #: ../fuse/guestmount.pod:41
24256 msgid ""
24257 "For a typical Windows guest which has its main filesystem on the first "
24258 "partition:"
24259 msgstr ""
24260
24261 # type: verbatim
24262 #: ../fuse/guestmount.pod:44
24263 #, no-wrap
24264 msgid ""
24265 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
24266 "\n"
24267 msgstr ""
24268
24269 # type: textblock
24270 #: ../fuse/guestmount.pod:46
24271 msgid ""
24272 "For a typical Linux guest which has a /boot filesystem on the first "
24273 "partition, and the root filesystem on a logical volume:"
24274 msgstr ""
24275
24276 # type: verbatim
24277 #: ../fuse/guestmount.pod:49
24278 #, no-wrap
24279 msgid ""
24280 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
24281 "\n"
24282 msgstr ""
24283
24284 # type: textblock
24285 #: ../fuse/guestmount.pod:51
24286 msgid "To get libguestfs to detect guest mountpoints for you:"
24287 msgstr ""
24288
24289 # type: verbatim
24290 #: ../fuse/guestmount.pod:53
24291 #, no-wrap
24292 msgid ""
24293 " guestmount -a guest.img -i --ro /mnt\n"
24294 "\n"
24295 msgstr ""
24296
24297 # type: textblock
24298 #: ../fuse/guestmount.pod:55
24299 msgid "For a libvirt guest called \"Guest\" you could do:"
24300 msgstr ""
24301
24302 # type: verbatim
24303 #: ../fuse/guestmount.pod:57
24304 #, no-wrap
24305 msgid ""
24306 " guestmount -d Guest -i --ro /mnt\n"
24307 "\n"
24308 msgstr ""
24309
24310 # type: textblock
24311 #: ../fuse/guestmount.pod:59
24312 msgid ""
24313 "If you don't know what filesystems are contained in a guest or disk image, "
24314 "use L<virt-list-filesystems(1)> first:"
24315 msgstr ""
24316
24317 # type: verbatim
24318 #: ../fuse/guestmount.pod:62
24319 #, no-wrap
24320 msgid ""
24321 " virt-list-filesystems MyGuest\n"
24322 "\n"
24323 msgstr ""
24324
24325 # type: textblock
24326 #: ../fuse/guestmount.pod:64
24327 msgid ""
24328 "If you want to trace the libguestfs calls but without excessive debugging "
24329 "information, we recommend:"
24330 msgstr ""
24331
24332 # type: verbatim
24333 #: ../fuse/guestmount.pod:67
24334 #, no-wrap
24335 msgid ""
24336 " guestmount [...] --trace /mnt\n"
24337 "\n"
24338 msgstr ""
24339
24340 # type: textblock
24341 #: ../fuse/guestmount.pod:69
24342 msgid "If you want to debug the program, we recommend:"
24343 msgstr ""
24344
24345 # type: verbatim
24346 #: ../fuse/guestmount.pod:71
24347 #, no-wrap
24348 msgid ""
24349 " guestmount [...] --trace --verbose /mnt\n"
24350 "\n"
24351 msgstr ""
24352
24353 # type: textblock
24354 #: ../fuse/guestmount.pod:79
24355 msgid "Add a block device or virtual machine image."
24356 msgstr ""
24357
24358 # type: =item
24359 #: ../fuse/guestmount.pod:96
24360 msgid "B<--dir-cache-timeout N>"
24361 msgstr ""
24362
24363 # type: textblock
24364 #: ../fuse/guestmount.pod:98
24365 msgid ""
24366 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
24367 "seconds.  The readdir cache [actually, there are several semi-independent "
24368 "caches] is populated after a readdir(2) call with the stat and extended "
24369 "attributes of the files in the directory, in anticipation that they will be "
24370 "requested soon after."
24371 msgstr ""
24372
24373 # type: textblock
24374 #: ../fuse/guestmount.pod:104
24375 msgid ""
24376 "There is also a different attribute cache implemented by FUSE (see the FUSE "
24377 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
24378 "requests, only cache existing ones."
24379 msgstr ""
24380
24381 # type: textblock
24382 #: ../fuse/guestmount.pod:115
24383 msgid ""
24384 "If you have untrusted raw-format guest disk images, you should use this "
24385 "option to specify the disk format.  This avoids a possible security problem "
24386 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
24387 "guestfs_add_drive_opts>."
24388 msgstr ""
24389
24390 # type: =item
24391 #: ../fuse/guestmount.pod:120
24392 msgid "B<--fuse-help>"
24393 msgstr ""
24394
24395 # type: textblock
24396 #: ../fuse/guestmount.pod:122
24397 msgid "Display help on special FUSE options (see I<-o> below)."
24398 msgstr ""
24399
24400 # type: textblock
24401 #: ../fuse/guestmount.pod:126
24402 msgid "Display brief help and exit."
24403 msgstr ""
24404
24405 # type: =item
24406 #: ../fuse/guestmount.pod:134
24407 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24408 msgstr ""
24409
24410 # type: textblock
24411 #: ../fuse/guestmount.pod:136
24412 msgid ""
24413 "Mount the named partition or logical volume on the given mountpoint B<in the "
24414 "guest> (this has nothing to do with mountpoints in the host)."
24415 msgstr ""
24416
24417 # type: textblock
24418 #: ../fuse/guestmount.pod:139
24419 msgid ""
24420 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24421 "something on C</>."
24422 msgstr ""
24423
24424 # type: textblock
24425 #: ../fuse/guestmount.pod:144
24426 msgid ""
24427 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
24428 "unmounted.  If you specify this option, then we don't attempt to sync the "
24429 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
24430 msgstr ""
24431
24432 # type: =item
24433 #: ../fuse/guestmount.pod:149
24434 msgid "B<-o option> | B<--option option>"
24435 msgstr ""
24436
24437 # type: textblock
24438 #: ../fuse/guestmount.pod:151
24439 msgid "Pass extra options to FUSE."
24440 msgstr ""
24441
24442 # type: textblock
24443 #: ../fuse/guestmount.pod:153
24444 msgid ""
24445 "To get a list of all the extra options supported by FUSE, use the command "
24446 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24447 "of them are a good idea."
24448 msgstr ""
24449
24450 # type: verbatim
24451 #: ../fuse/guestmount.pod:157
24452 #, no-wrap
24453 msgid ""
24454 " guestmount --fuse-help\n"
24455 "\n"
24456 msgstr ""
24457
24458 # type: textblock
24459 #: ../fuse/guestmount.pod:159
24460 msgid "Some potentially useful FUSE options:"
24461 msgstr ""
24462
24463 # type: =item
24464 #: ../fuse/guestmount.pod:163
24465 msgid "B<-o allow_other>"
24466 msgstr ""
24467
24468 # type: textblock
24469 #: ../fuse/guestmount.pod:165
24470 msgid "Allow other users to see the filesystem."
24471 msgstr ""
24472
24473 # type: =item
24474 #: ../fuse/guestmount.pod:167
24475 msgid "B<-o attr_timeout=N>"
24476 msgstr ""
24477
24478 # type: textblock
24479 #: ../fuse/guestmount.pod:169
24480 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24481 msgstr ""
24482
24483 # type: =item
24484 #: ../fuse/guestmount.pod:171
24485 msgid "B<-o kernel_cache>"
24486 msgstr ""
24487
24488 # type: textblock
24489 #: ../fuse/guestmount.pod:173
24490 msgid ""
24491 "Allow the kernel to cache files (reduces the number of reads that have to go "
24492 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24493 "afford the extra memory usage."
24494 msgstr ""
24495
24496 # type: =item
24497 #: ../fuse/guestmount.pod:177
24498 msgid "B<-o uid=N> B<-o gid=N>"
24499 msgstr ""
24500
24501 # type: textblock
24502 #: ../fuse/guestmount.pod:179
24503 msgid ""
24504 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24505 "the chosen values."
24506 msgstr ""
24507
24508 # type: textblock
24509 #: ../fuse/guestmount.pod:186
24510 msgid ""
24511 "Add devices and mount everything read-only.  Also disallow writes and make "
24512 "the disk appear read-only to FUSE."
24513 msgstr ""
24514
24515 # type: textblock
24516 #: ../fuse/guestmount.pod:189
24517 msgid ""
24518 "This is highly recommended if you are not going to edit the guest disk.  If "
24519 "the guest is running and this option is I<not> supplied, then there is a "
24520 "strong risk of disk corruption in the guest.  We try to prevent this from "
24521 "happening, but it is not always possible."
24522 msgstr ""
24523
24524 # type: textblock
24525 #: ../fuse/guestmount.pod:196
24526 msgid "Enable SELinux support for the guest."
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../fuse/guestmount.pod:200
24531 msgid "Enable verbose messages from underlying libguestfs."
24532 msgstr ""
24533
24534 # type: textblock
24535 #: ../fuse/guestmount.pod:204
24536 msgid "Display the program version and exit."
24537 msgstr ""
24538
24539 # type: =item
24540 #: ../fuse/guestmount.pod:206
24541 msgid "B<-x> | B<--trace>"
24542 msgstr ""
24543
24544 # type: textblock
24545 #: ../fuse/guestmount.pod:208
24546 msgid "Trace libguestfs calls."
24547 msgstr ""
24548
24549 # type: textblock
24550 #: ../fuse/guestmount.pod:210
24551 msgid "This also stops the daemon from forking into the background."
24552 msgstr ""
24553
24554 # type: textblock
24555 #: ../fuse/guestmount.pod:216
24556 msgid ""
24557 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24558 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
24559 "net/>."
24560 msgstr ""
24561
24562 # type: textblock
24563 #: ../inspector/virt-inspector.pl:35
24564 msgid ""
24565 "virt-inspector - Display operating system version and other information "
24566 "about a virtual machine"
24567 msgstr ""
24568
24569 # type: verbatim
24570 #: ../inspector/virt-inspector.pl:39
24571 #, no-wrap
24572 msgid ""
24573 " virt-inspector [--connect URI] domname\n"
24574 "\n"
24575 msgstr ""
24576
24577 # type: verbatim
24578 #: ../inspector/virt-inspector.pl:41
24579 #, no-wrap
24580 msgid ""
24581 " virt-inspector guest.img [guest.img ...]\n"
24582 "\n"
24583 msgstr ""
24584
24585 # type: textblock
24586 #: ../inspector/virt-inspector.pl:45
24587 msgid ""
24588 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24589 "determine the version of the operating system and other information about "
24590 "the virtual machine."
24591 msgstr ""
24592
24593 # type: textblock
24594 #: ../inspector/virt-inspector.pl:49
24595 msgid "Virt-inspector produces XML output for feeding into other programs."
24596 msgstr ""
24597
24598 # type: textblock
24599 #: ../inspector/virt-inspector.pl:51
24600 msgid ""
24601 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24602 "libvirt domain (see: C<virsh list --all>)."
24603 msgstr ""
24604
24605 # type: textblock
24606 #: ../inspector/virt-inspector.pl:54
24607 msgid ""
24608 "You can also run virt-inspector directly on disk images from a single "
24609 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24610 "has several block devices, in which case you should list them one after "
24611 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24612 "to the guest's C</dev/sdb> and so on."
24613 msgstr ""
24614
24615 # type: textblock
24616 #: ../inspector/virt-inspector.pl:60
24617 msgid ""
24618 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24619 "inspect several virtual machines, you have to run virt-inspector several "
24620 "times (for example, from a shell script for-loop)."
24621 msgstr ""
24622
24623 # type: textblock
24624 #: ../inspector/virt-inspector.pl:65
24625 msgid ""
24626 "Because virt-inspector needs direct access to guest images, it won't "
24627 "normally work over remote libvirt connections."
24628 msgstr ""
24629
24630 # type: textblock
24631 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82
24632 #: ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88
24633 #: ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89
24634 #: ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113
24635 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
24636 msgid "Display brief help."
24637 msgstr ""
24638
24639 # type: =item
24640 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88
24641 #: ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94
24642 #: ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66
24643 #: ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114
24644 #: ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169
24645 #: ../tools/virt-list-partitions.pl:67
24646 msgid "B<--version>"
24647 msgstr ""
24648
24649 # type: textblock
24650 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90
24651 #: ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96
24652 #: ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68
24653 #: ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116
24654 #: ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171
24655 #: ../tools/virt-list-partitions.pl:69
24656 msgid "Display version number and exit."
24657 msgstr ""
24658
24659 # type: =item
24660 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112
24661 #: ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102
24662 #: ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103
24663 #: ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135
24664 #: ../tools/virt-list-partitions.pl:75
24665 msgid "B<--connect URI> | B<-c URI>"
24666 msgstr ""
24667
24668 # type: textblock
24669 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114
24670 #: ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104
24671 #: ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105
24672 #: ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137
24673 #: ../tools/virt-list-partitions.pl:77
24674 msgid ""
24675 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24676 "to the default libvirt hypervisor."
24677 msgstr ""
24678
24679 # type: textblock
24680 #: ../inspector/virt-inspector.pl:97
24681 msgid ""
24682 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24683 "you specify guest block devices directly, then libvirt is not used at all."
24684 msgstr ""
24685
24686 # type: =item
24687 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124
24688 #: ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117
24689 #: ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523
24690 #: ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115
24691 #: ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147
24692 #: ../tools/virt-list-partitions.pl:87
24693 msgid "B<--format> raw"
24694 msgstr ""
24695
24696 # type: textblock
24697 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126
24698 #: ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119
24699 #: ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88
24700 #: ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136
24701 #: ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
24702 msgid ""
24703 "Specify the format of disk images given on the command line.  If this is "
24704 "omitted then the format is autodetected from the content of the disk image."
24705 msgstr ""
24706
24707 # type: textblock
24708 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130
24709 #: ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123
24710 #: ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92
24711 #: ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140
24712 #: ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
24713 msgid ""
24714 "If disk images are requested from libvirt, then this program asks libvirt "
24715 "for this information.  In this case, the value of the format parameter is "
24716 "ignored."
24717 msgstr ""
24718
24719 # type: textblock
24720 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134
24721 #: ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127
24722 #: ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528
24723 #: ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96
24724 #: ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144
24725 #: ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
24726 msgid ""
24727 "If working with untrusted raw-format guest disk images, you should ensure "
24728 "the format is always specified."
24729 msgstr ""
24730
24731 # type: =head1
24732 #: ../inspector/virt-inspector.pl:149
24733 msgid "XML FORMAT"
24734 msgstr ""
24735
24736 # type: textblock
24737 #: ../inspector/virt-inspector.pl:151
24738 msgid ""
24739 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
24740 "supplied with libguestfs.  This section is just an overview."
24741 msgstr ""
24742
24743 # type: textblock
24744 #: ../inspector/virt-inspector.pl:154
24745 msgid ""
24746 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
24747 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
24748 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
24749 "which is vanishingly rare in real world VMs."
24750 msgstr ""
24751
24752 # type: =head2
24753 #: ../inspector/virt-inspector.pl:159
24754 msgid "E<lt>operatingsystemE<gt>"
24755 msgstr ""
24756
24757 # type: textblock
24758 #: ../inspector/virt-inspector.pl:161
24759 msgid ""
24760 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
24761 "describe the operating system, its architecture, the descriptive \"product "
24762 "name\" string, the type of OS and so on, as in this example:"
24763 msgstr ""
24764
24765 # type: verbatim
24766 #: ../inspector/virt-inspector.pl:165
24767 #, no-wrap
24768 msgid ""
24769 " <operatingsystems>\n"
24770 "   <operatingsystem>\n"
24771 "     <root>/dev/sda2</root>\n"
24772 "     <name>windows</name>\n"
24773 "     <arch>i386</arch>\n"
24774 "     <distro>windows</distro>\n"
24775 "     <product_name>Windows 7 Enterprise</product_name>\n"
24776 "     <major_version>6</major_version>\n"
24777 "     <minor_version>1</minor_version>\n"
24778 "     <windows_systemroot>/Windows</windows_systemroot>\n"
24779 "\n"
24780 msgstr ""
24781
24782 # type: textblock
24783 #: ../inspector/virt-inspector.pl:176
24784 msgid ""
24785 "These fields are derived from the libguestfs inspection API, and you can "
24786 "find more details in L<guestfs(3)/INSPECTION>."
24787 msgstr ""
24788
24789 # type: textblock
24790 #: ../inspector/virt-inspector.pl:179
24791 msgid ""
24792 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
24793 "of view of libguestfs (block devices may have completely different names "
24794 "inside the VM itself)."
24795 msgstr ""
24796
24797 # type: =head2
24798 #: ../inspector/virt-inspector.pl:240
24799 msgid "E<lt>mountpointsE<gt>"
24800 msgstr ""
24801
24802 # type: textblock
24803 #: ../inspector/virt-inspector.pl:242
24804 msgid ""
24805 "Un*x-like guests typically have multiple filesystems which are mounted at "
24806 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
24807 "element which looks like this:"
24808 msgstr ""
24809
24810 # type: verbatim
24811 #: ../inspector/virt-inspector.pl:246
24812 #, no-wrap
24813 msgid ""
24814 " <operatingsystems>\n"
24815 "   <operatingsystem>\n"
24816 "     ...\n"
24817 "     <mountpoints>\n"
24818 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
24819 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
24820 "     </mountpoints>\n"
24821 "\n"
24822 msgstr ""
24823
24824 # type: textblock
24825 #: ../inspector/virt-inspector.pl:254
24826 msgid ""
24827 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
24828 "and may have completely different names inside the guest.  Only mountable "
24829 "filesystems appear in this list, not things like swap devices."
24830 msgstr ""
24831
24832 # type: =head2
24833 #: ../inspector/virt-inspector.pl:276
24834 msgid "E<lt>filesystemsE<gt>"
24835 msgstr ""
24836
24837 # type: textblock
24838 #: ../inspector/virt-inspector.pl:278
24839 msgid ""
24840 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
24841 "filesystems belonging to the guest, including swap and empty partitions.  "
24842 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
24843 "this OS or shared by this OS and other OSes)."
24844 msgstr ""
24845
24846 # type: textblock
24847 #: ../inspector/virt-inspector.pl:283
24848 msgid "You might see something like this:"
24849 msgstr ""
24850
24851 # type: verbatim
24852 #: ../inspector/virt-inspector.pl:285
24853 #, no-wrap
24854 msgid ""
24855 " <operatingsystems>\n"
24856 "   <operatingsystem>\n"
24857 "     ...\n"
24858 "     <filesystems>\n"
24859 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24860 "         <type>ext4</type>\n"
24861 "         <label>Fedora-13-x86_64</label>\n"
24862 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24863 "       </filesystem>\n"
24864 "\n"
24865 msgstr ""
24866
24867 # type: textblock
24868 #: ../inspector/virt-inspector.pl:295
24869 msgid ""
24870 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24871 "the label, and the UUID."
24872 msgstr ""
24873
24874 # type: =head2
24875 #: ../inspector/virt-inspector.pl:337
24876 msgid "E<lt>applicationsE<gt>"
24877 msgstr ""
24878
24879 # type: textblock
24880 #: ../inspector/virt-inspector.pl:339
24881 msgid ""
24882 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24883 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24884 "machine.  At the moment we are only able to list RPMs and Debian packages "
24885 "installed, but in future we will support other Linux distros and Windows."
24886 msgstr ""
24887
24888 # type: textblock
24889 #: ../inspector/virt-inspector.pl:345
24890 msgid ""
24891 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
24892 "Typical values would be C<rpm> and C<deb>."
24893 msgstr ""
24894
24895 # type: textblock
24896 #: ../inspector/virt-inspector.pl:348
24897 msgid ""
24898 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
24899 "Typical values include C<yum>, C<up2date> and C<apt>"
24900 msgstr ""
24901
24902 # type: textblock
24903 #: ../inspector/virt-inspector.pl:351
24904 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24905 msgstr ""
24906
24907 # type: verbatim
24908 #: ../inspector/virt-inspector.pl:354
24909 #, no-wrap
24910 msgid ""
24911 " <operatingsystems>\n"
24912 "   <operatingsystem>\n"
24913 "     ...\n"
24914 "     <applications>\n"
24915 "       <application>\n"
24916 "         <name>coreutils</name>\n"
24917 "         <version>8.5</version>\n"
24918 "         <release>1</release>\n"
24919 "       </application>\n"
24920 "\n"
24921 msgstr ""
24922
24923 # type: textblock
24924 #: ../inspector/virt-inspector.pl:364
24925 msgid ""
24926 "(The version and release fields may not be available for some package types)."
24927 msgstr ""
24928
24929 # type: =head1
24930 #: ../inspector/virt-inspector.pl:544
24931 msgid "USING XPATH"
24932 msgstr ""
24933
24934 # type: textblock
24935 #: ../inspector/virt-inspector.pl:546
24936 msgid ""
24937 "You can use the XPath query language, and/or the xpath tool, in order to "
24938 "select parts of the XML."
24939 msgstr ""
24940
24941 # type: verbatim
24942 #: ../inspector/virt-inspector.pl:551
24943 #, no-wrap
24944 msgid ""
24945 " $ virt-inspector Guest | xpath //filesystems\n"
24946 " Found 1 nodes:\n"
24947 " -- NODE --\n"
24948 " <filesystems>\n"
24949 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24950 "        <type>ext4</type>\n"
24951 " [etc]\n"
24952 "\n"
24953 msgstr ""
24954
24955 # type: verbatim
24956 #: ../inspector/virt-inspector.pl:559
24957 #, no-wrap
24958 msgid ""
24959 " $ virt-inspector Guest | \\\n"
24960 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24961 " Query didn't return a nodeset. Value: ext4\n"
24962 "\n"
24963 msgstr ""
24964
24965 # type: =head2
24966 #: ../inspector/virt-inspector.pl:563 ../tools/virt-edit.pl:343
24967 #: ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477
24968 #: ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225
24969 #: ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179
24970 #: ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274
24971 #: ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527
24972 #: ../tools/virt-list-partitions.pl:247
24973 msgid "SHELL QUOTING"
24974 msgstr ""
24975
24976 # type: textblock
24977 #: ../inspector/virt-inspector.pl:565 ../tools/virt-edit.pl:345
24978 #: ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635
24979 #: ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481
24980 #: ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180
24981 #: ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262
24982 #: ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
24983 msgid ""
24984 "Libvirt guest names can contain arbitrary characters, some of which have "
24985 "meaning to the shell such as C<#> and space.  You may need to quote or "
24986 "escape these characters on the command line.  See the shell manual page L<sh"
24987 "(1)> for details."
24988 msgstr ""
24989
24990 # type: textblock
24991 #: ../inspector/virt-inspector.pl:572
24992 msgid ""
24993 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24994 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
24995 msgstr ""
24996
24997 # type: textblock
24998 #: ../inspector/virt-inspector.pl:586 ../tools/virt-edit.pl:364
24999 #: ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651
25000 #: ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510
25001 #: ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197
25002 #: ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279
25003 #: ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
25004 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25005 msgstr ""
25006
25007 # type: textblock
25008 #: ../inspector/virt-inspector.pl:590
25009 msgid "Matthew Booth L<mbooth@redhat.com>"
25010 msgstr ""
25011
25012 # type: textblock
25013 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516
25014 #: ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25015 msgid "Copyright (C) 2010 Red Hat Inc."
25016 msgstr ""
25017
25018 # type: textblock
25019 #: ../tools/virt-edit.pl:34
25020 msgid "virt-edit - Edit a file in a virtual machine"
25021 msgstr ""
25022
25023 # type: verbatim
25024 #: ../tools/virt-edit.pl:38
25025 #, no-wrap
25026 msgid ""
25027 " virt-edit [--options] domname file\n"
25028 "\n"
25029 msgstr ""
25030
25031 # type: verbatim
25032 #: ../tools/virt-edit.pl:40
25033 #, no-wrap
25034 msgid ""
25035 " virt-edit [--options] disk.img [disk.img ...] file\n"
25036 "\n"
25037 msgstr ""
25038
25039 # type: verbatim
25040 #: ../tools/virt-edit.pl:42
25041 #, no-wrap
25042 msgid ""
25043 " virt-edit [domname|disk.img] file -e 'expr'\n"
25044 "\n"
25045 msgstr ""
25046
25047 # type: textblock
25048 #: ../tools/virt-edit.pl:46
25049 msgid ""
25050 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25051 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25052 "doing this, but doesn't catch all cases."
25053 msgstr ""
25054
25055 # type: textblock
25056 #: ../tools/virt-edit.pl:52
25057 msgid ""
25058 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25059 "the named virtual machine (or disk image)."
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../tools/virt-edit.pl:55
25064 msgid ""
25065 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25066 "you should look at the L<guestfish(1)> tool."
25067 msgstr ""
25068
25069 # type: textblock
25070 #: ../tools/virt-edit.pl:60
25071 msgid "Edit the named files interactively:"
25072 msgstr ""
25073
25074 # type: verbatim
25075 #: ../tools/virt-edit.pl:62
25076 #, no-wrap
25077 msgid ""
25078 " virt-edit mydomain /boot/grub/grub.conf\n"
25079 "\n"
25080 msgstr ""
25081
25082 # type: verbatim
25083 #: ../tools/virt-edit.pl:64
25084 #, no-wrap
25085 msgid ""
25086 " virt-edit mydomain /etc/passwd\n"
25087 "\n"
25088 msgstr ""
25089
25090 # type: textblock
25091 #: ../tools/virt-edit.pl:66
25092 msgid ""
25093 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25094 "below).  To change the init default level to 5:"
25095 msgstr ""
25096
25097 # type: verbatim
25098 #: ../tools/virt-edit.pl:70
25099 #, no-wrap
25100 msgid ""
25101 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25102 "\n"
25103 msgstr ""
25104
25105 # type: =item
25106 #: ../tools/virt-edit.pl:96
25107 msgid "B<--backup extension> | B<-b extension>"
25108 msgstr ""
25109
25110 # type: textblock
25111 #: ../tools/virt-edit.pl:98
25112 msgid ""
25113 "Create a backup of the original file I<in the guest disk image>.  The backup "
25114 "has the original filename with C<extension> added."
25115 msgstr ""
25116
25117 # type: textblock
25118 #: ../tools/virt-edit.pl:101
25119 msgid ""
25120 "Usually the first character of C<extension> would be a dot C<.> so you would "
25121 "write:"
25122 msgstr ""
25123
25124 # type: verbatim
25125 #: ../tools/virt-edit.pl:104
25126 #, no-wrap
25127 msgid ""
25128 " virt-edit -b .orig [etc]\n"
25129 "\n"
25130 msgstr ""
25131
25132 # type: textblock
25133 #: ../tools/virt-edit.pl:106
25134 msgid "By default, no backup file is made."
25135 msgstr ""
25136
25137 # type: textblock
25138 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
25139 #: ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107
25140 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108
25141 #: ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140
25142 #: ../tools/virt-list-partitions.pl:80
25143 msgid ""
25144 "If you specify guest block devices directly, then libvirt is not used at all."
25145 msgstr ""
25146
25147 # type: =item
25148 #: ../tools/virt-edit.pl:141
25149 msgid "B<--expr EXPR> | B<-e EXPR>"
25150 msgstr ""
25151
25152 # type: textblock
25153 #: ../tools/virt-edit.pl:143
25154 msgid ""
25155 "Instead of launching the external editor, non-interactively apply the Perl "
25156 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25157 "EDITING> below."
25158 msgstr ""
25159
25160 # type: textblock
25161 #: ../tools/virt-edit.pl:147
25162 msgid ""
25163 "Be careful to properly quote the expression to prevent it from being altered "
25164 "by the shell."
25165 msgstr ""
25166
25167 # type: =head1
25168 #: ../tools/virt-edit.pl:268
25169 msgid "NON-INTERACTIVE EDITING"
25170 msgstr ""
25171
25172 # type: textblock
25173 #: ../tools/virt-edit.pl:270
25174 msgid ""
25175 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25176 "administrator can interactively edit the file."
25177 msgstr ""
25178
25179 # type: textblock
25180 #: ../tools/virt-edit.pl:273
25181 msgid ""
25182 "There are two ways also to use C<virt-edit> from scripts in order to make "
25183 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25184 "like this, it's less error-prone to write scripts directly using the "
25185 "libguestfs API and Augeas for configuration file editing.)"
25186 msgstr ""
25187
25188 # type: textblock
25189 #: ../tools/virt-edit.pl:279
25190 msgid ""
25191 "The first method is to temporarily set C<$EDITOR> to any script or program "
25192 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25193 "update C<tmpfile> in place however it likes."
25194 msgstr ""
25195
25196 # type: textblock
25197 #: ../tools/virt-edit.pl:283
25198 msgid ""
25199 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25200 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25201 "instances of C<foo> with C<bar> in a file:"
25202 msgstr ""
25203
25204 # type: verbatim
25205 #: ../tools/virt-edit.pl:287
25206 #, no-wrap
25207 msgid ""
25208 " virt-edit domname filename -e 's/foo/bar/'\n"
25209 "\n"
25210 msgstr ""
25211
25212 # type: textblock
25213 #: ../tools/virt-edit.pl:289
25214 msgid ""
25215 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25216 "For example to delete root's password you could do:"
25217 msgstr ""
25218
25219 # type: verbatim
25220 #: ../tools/virt-edit.pl:292
25221 #, no-wrap
25222 msgid ""
25223 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25224 "\n"
25225 msgstr ""
25226
25227 # type: textblock
25228 #: ../tools/virt-edit.pl:294
25229 msgid ""
25230 "What really happens is that the snippet is evaluated as a Perl expression "
25231 "for each line of the file.  The line, including the final C<\\n>, is passed "
25232 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25233 msgstr ""
25234
25235 # type: textblock
25236 #: ../tools/virt-edit.pl:299
25237 msgid ""
25238 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25239 "C<apache> user account from the password file you can do:"
25240 msgstr ""
25241
25242 # type: verbatim
25243 #: ../tools/virt-edit.pl:302
25244 #, no-wrap
25245 msgid ""
25246 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25247 "\n"
25248 msgstr ""
25249
25250 # type: textblock
25251 #: ../tools/virt-edit.pl:304
25252 msgid ""
25253 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25254 "the end of the file is rather difficult this way since there is no concept "
25255 "of \"last line of the file\" - your expression just doesn't get called "
25256 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25257 "want to do this."
25258 msgstr ""
25259
25260 # type: textblock
25261 #: ../tools/virt-edit.pl:310
25262 msgid ""
25263 "The variable C<$lineno> contains the current line number.  As is "
25264 "traditional, the first line in the file is number C<1>."
25265 msgstr ""
25266
25267 # type: textblock
25268 #: ../tools/virt-edit.pl:313
25269 msgid ""
25270 "The return value from the expression is ignored, but the expression may call "
25271 "C<die> in order to abort the whole program, leaving the original file "
25272 "untouched."
25273 msgstr ""
25274
25275 # type: textblock
25276 #: ../tools/virt-edit.pl:317
25277 msgid ""
25278 "Remember when matching the end of a line that C<$_> may contain the final C<"
25279 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25280 "newline then neither of these.  Thus to match or substitute some text at the "
25281 "end of a line, use this regular expression:"
25282 msgstr ""
25283
25284 # type: verbatim
25285 #: ../tools/virt-edit.pl:322
25286 #, no-wrap
25287 msgid ""
25288 " /some text(\\r?\\n)?$/\n"
25289 "\n"
25290 msgstr ""
25291
25292 # type: textblock
25293 #: ../tools/virt-edit.pl:324
25294 msgid ""
25295 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
25296 "$_> itself (since that would remove all newlines from the file):"
25297 msgstr ""
25298
25299 # type: verbatim
25300 #: ../tools/virt-edit.pl:328
25301 #, no-wrap
25302 msgid ""
25303 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25304 "\n"
25305 msgstr ""
25306
25307 # type: =item
25308 #: ../tools/virt-edit.pl:334
25309 msgid "C<EDITOR>"
25310 msgstr ""
25311
25312 # type: textblock
25313 #: ../tools/virt-edit.pl:336
25314 msgid ""
25315 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
25316 "\"emacs -nw\">"
25317 msgstr ""
25318
25319 # type: textblock
25320 #: ../tools/virt-edit.pl:339
25321 msgid "If not set, C<vi> is used."
25322 msgstr ""
25323
25324 # type: textblock
25325 #: ../tools/virt-edit.pl:352
25326 msgid ""
25327 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
25328 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
25329 "L<perlre(1)>."
25330 msgstr ""
25331
25332 # type: =head1
25333 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
25334 #: ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243
25335 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198
25336 #: ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292
25337 #: ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559
25338 #: ../tools/virt-list-partitions.pl:265
25339 msgid "AUTHOR"
25340 msgstr ""
25341
25342 # type: textblock
25343 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655
25344 #: ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
25345 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25346 msgstr ""
25347
25348 # type: textblock
25349 #: ../tools/virt-win-reg.pl:37
25350 msgid ""
25351 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
25352 msgstr ""
25353
25354 # type: verbatim
25355 #: ../tools/virt-win-reg.pl:41
25356 #, no-wrap
25357 msgid ""
25358 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25359 "\n"
25360 msgstr ""
25361
25362 # type: verbatim
25363 #: ../tools/virt-win-reg.pl:43
25364 #, no-wrap
25365 msgid ""
25366 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25367 "\n"
25368 msgstr ""
25369
25370 # type: verbatim
25371 #: ../tools/virt-win-reg.pl:45
25372 #, no-wrap
25373 msgid ""
25374 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25375 "\n"
25376 msgstr ""
25377
25378 # type: verbatim
25379 #: ../tools/virt-win-reg.pl:47
25380 #, no-wrap
25381 msgid ""
25382 " virt-win-reg --merge domname [input.reg ...]\n"
25383 "\n"
25384 msgstr ""
25385
25386 # type: verbatim
25387 #: ../tools/virt-win-reg.pl:49
25388 #, no-wrap
25389 msgid ""
25390 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25391 "\n"
25392 msgstr ""
25393
25394 # type: textblock
25395 #: ../tools/virt-win-reg.pl:53
25396 msgid ""
25397 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25398 "virtual machines.  If you do this, you I<will> get irreversible disk "
25399 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25400 "but doesn't catch all cases."
25401 msgstr ""
25402
25403 # type: textblock
25404 #: ../tools/virt-win-reg.pl:58
25405 msgid ""
25406 "Modifying the Windows Registry is an inherently risky operation.  The format "
25407 "is deliberately obscure and undocumented, and Registry changes can leave the "
25408 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25409 "you have a reliable backup first."
25410 msgstr ""
25411
25412 # type: textblock
25413 #: ../tools/virt-win-reg.pl:65
25414 msgid ""
25415 "This program can export and merge Windows Registry entries from a Windows "
25416 "guest."
25417 msgstr ""
25418
25419 # type: textblock
25420 #: ../tools/virt-win-reg.pl:68
25421 msgid ""
25422 "The first parameter is the libvirt guest name or the raw disk image of a "
25423 "Windows guest."
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../tools/virt-win-reg.pl:71
25428 msgid ""
25429 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
25430 "exported (recursively).  For example:"
25431 msgstr ""
25432
25433 # type: verbatim
25434 #: ../tools/virt-win-reg.pl:74
25435 #, no-wrap
25436 msgid ""
25437 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25438 "\n"
25439 msgstr ""
25440
25441 # type: textblock
25442 #: ../tools/virt-win-reg.pl:76
25443 msgid ""
25444 "You can also display single values from within registry keys, for example:"
25445 msgstr ""
25446
25447 # type: verbatim
25448 #: ../tools/virt-win-reg.pl:79
25449 #, no-wrap
25450 msgid ""
25451 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25452 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25453 " Windows 7 Enterprise\n"
25454 "\n"
25455 msgstr ""
25456
25457 # type: textblock
25458 #: ../tools/virt-win-reg.pl:83
25459 msgid ""
25460 "With C<--merge>, you can merge a textual regedit file into the Windows "
25461 "Registry:"
25462 msgstr ""
25463
25464 # type: verbatim
25465 #: ../tools/virt-win-reg.pl:86
25466 #, no-wrap
25467 msgid ""
25468 " $ virt-win-reg --merge Windows7 changes.reg\n"
25469 "\n"
25470 msgstr ""
25471
25472 # type: =head2
25473 #: ../tools/virt-win-reg.pl:88
25474 msgid "SUPPORTED SYSTEMS"
25475 msgstr ""
25476
25477 # type: textblock
25478 #: ../tools/virt-win-reg.pl:90
25479 msgid ""
25480 "The program currently supports Windows NT-derived guests starting with "
25481 "Windows XP through to at least Windows 7."
25482 msgstr ""
25483
25484 # type: textblock
25485 #: ../tools/virt-win-reg.pl:93
25486 msgid ""
25487 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
25488 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
25489 "and C<HKEY_USERS\\.DEFAULT>."
25490 msgstr ""
25491
25492 # type: textblock
25493 #: ../tools/virt-win-reg.pl:97
25494 msgid ""
25495 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25496 "C<HKEY_USERS>."
25497 msgstr ""
25498
25499 # type: textblock
25500 #: ../tools/virt-win-reg.pl:100
25501 msgid ""
25502 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25503 "time."
25504 msgstr ""
25505
25506 # type: =head2
25507 #: ../tools/virt-win-reg.pl:103
25508 msgid "NOTE"
25509 msgstr ""
25510
25511 # type: textblock
25512 #: ../tools/virt-win-reg.pl:105
25513 msgid ""
25514 "This program is only meant for simple access to the registry.  If you want "
25515 "to do complicated things with the registry, we suggest you download the "
25516 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25517 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25518 "L<hivexregedit(1)>."
25519 msgstr ""
25520
25521 # type: =head2
25522 #: ../tools/virt-win-reg.pl:111
25523 msgid "ENCODING"
25524 msgstr ""
25525
25526 # type: textblock
25527 #: ../tools/virt-win-reg.pl:113
25528 msgid ""
25529 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25530 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
25531 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
25532 "Windows-style line endings, you may need to reencode the whole file before "
25533 "or after processing."
25534 msgstr ""
25535
25536 # type: textblock
25537 #: ../tools/virt-win-reg.pl:119
25538 msgid ""
25539 "To reencode a file from Windows format to Linux (before processing it with "
25540 "the C<--merge> option), you would do something like this:"
25541 msgstr ""
25542
25543 # type: verbatim
25544 #: ../tools/virt-win-reg.pl:122
25545 #, no-wrap
25546 msgid ""
25547 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25548 "\n"
25549 msgstr ""
25550
25551 # type: textblock
25552 #: ../tools/virt-win-reg.pl:124
25553 msgid ""
25554 "To go in the opposite direction, after exporting and before sending the file "
25555 "to a Windows user, do something like this:"
25556 msgstr ""
25557
25558 # type: verbatim
25559 #: ../tools/virt-win-reg.pl:127
25560 #, no-wrap
25561 msgid ""
25562 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25563 "\n"
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../tools/virt-win-reg.pl:129
25568 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25569 msgstr ""
25570
25571 # type: textblock
25572 #: ../tools/virt-win-reg.pl:131
25573 msgid ""
25574 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25575 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
25576 "style (CRLF) line endings, like this:"
25577 msgstr ""
25578
25579 # type: verbatim
25580 #: ../tools/virt-win-reg.pl:135
25581 #, no-wrap
25582 msgid ""
25583 " $ file software.reg\n"
25584 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25585 " with CRLF line terminators\n"
25586 "\n"
25587 msgstr ""
25588
25589 # type: textblock
25590 #: ../tools/virt-win-reg.pl:139
25591 msgid "This file would need conversion before you could C<--merge> it."
25592 msgstr ""
25593
25594 # type: textblock
25595 #: ../tools/virt-win-reg.pl:143
25596 msgid ""
25597 "Be careful when passing parameters containing C<\\> (backslash) in the "
25598 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25599 "(but not both) to protect them from the shell."
25600 msgstr ""
25601
25602 # type: textblock
25603 #: ../tools/virt-win-reg.pl:147
25604 msgid "Paths and value names are case-insensitive."
25605 msgstr ""
25606
25607 # type: =head2
25608 #: ../tools/virt-win-reg.pl:149
25609 msgid "CurrentControlSet etc."
25610 msgstr ""
25611
25612 # type: textblock
25613 #: ../tools/virt-win-reg.pl:151
25614 msgid ""
25615 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25616 "Registry at the level of the hive file, and therefore you cannot modify "
25617 "these."
25618 msgstr ""
25619
25620 # type: textblock
25621 #: ../tools/virt-win-reg.pl:155
25622 msgid ""
25623 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25624 "circumstances it might refer to another control set.  The way to find out is "
25625 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25626 msgstr ""
25627
25628 # type: verbatim
25629 #: ../tools/virt-win-reg.pl:159
25630 #, no-wrap
25631 msgid ""
25632 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25633 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25634 " \"Current\"=dword:00000001\n"
25635 " \"Default\"=dword:00000001\n"
25636 " \"Failed\"=dword:00000000\n"
25637 " \"LastKnownGood\"=dword:00000002\n"
25638 "\n"
25639 msgstr ""
25640
25641 # type: textblock
25642 #: ../tools/virt-win-reg.pl:166
25643 msgid "\"Current\" is the one which Windows will choose when it boots."
25644 msgstr ""
25645
25646 # type: textblock
25647 #: ../tools/virt-win-reg.pl:168
25648 msgid ""
25649 "Similarly, other C<Current...> keys in the path may need to be replaced."
25650 msgstr ""
25651
25652 # type: =item
25653 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
25654 msgid "B<--debug>"
25655 msgstr ""
25656
25657 # type: textblock
25658 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
25659 msgid "Enable debugging messages."
25660 msgstr ""
25661
25662 # type: =item
25663 #: ../tools/virt-win-reg.pl:232
25664 msgid "B<--merge>"
25665 msgstr ""
25666
25667 # type: textblock
25668 #: ../tools/virt-win-reg.pl:234
25669 msgid ""
25670 "In merge mode, this merges a textual regedit file into the Windows Registry "
25671 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25672 "displays or exports Registry entries instead."
25673 msgstr ""
25674
25675 # type: textblock
25676 #: ../tools/virt-win-reg.pl:238
25677 msgid ""
25678 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25679 "result in disk corruption.  However exporting (without this flag)  is always "
25680 "safe."
25681 msgstr ""
25682
25683 # type: =item
25684 #: ../tools/virt-win-reg.pl:246
25685 msgid "B<--encoding> UTF-16LE|ASCII"
25686 msgstr ""
25687
25688 # type: textblock
25689 #: ../tools/virt-win-reg.pl:248
25690 msgid ""
25691 "When merging (only), you may need to specify the encoding for strings to be "
25692 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
25693 "(3)/ENCODING STRINGS>."
25694 msgstr ""
25695
25696 # type: textblock
25697 #: ../tools/virt-win-reg.pl:252
25698 msgid ""
25699 "The default is to use UTF-16LE, which should work with recent versions of "
25700 "Windows."
25701 msgstr ""
25702
25703 # type: textblock
25704 #: ../tools/virt-win-reg.pl:486
25705 msgid ""
25706 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
25707 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
25708 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25709 msgstr ""
25710
25711 # type: textblock
25712 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25713 msgid ""
25714 "When reporting bugs, please enable debugging and capture the I<complete> "
25715 "output:"
25716 msgstr ""
25717
25718 # type: verbatim
25719 #: ../tools/virt-win-reg.pl:504
25720 #, no-wrap
25721 msgid ""
25722 " export LIBGUESTFS_DEBUG=1\n"
25723 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25724 "\n"
25725 msgstr ""
25726
25727 # type: textblock
25728 #: ../tools/virt-win-reg.pl:507
25729 msgid ""
25730 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
25731 "redhat.com/>"
25732 msgstr ""
25733
25734 # type: textblock
25735 #: ../tools/virt-df.pl:36
25736 msgid "virt-df - Display free space on virtual filesystems"
25737 msgstr ""
25738
25739 # type: verbatim
25740 #: ../tools/virt-df.pl:40
25741 #, no-wrap
25742 msgid ""
25743 " virt-df [--options]\n"
25744 "\n"
25745 msgstr ""
25746
25747 # type: verbatim
25748 #: ../tools/virt-df.pl:42
25749 #, no-wrap
25750 msgid ""
25751 " virt-df [--options] domname\n"
25752 "\n"
25753 msgstr ""
25754
25755 # type: verbatim
25756 #: ../tools/virt-df.pl:44
25757 #, no-wrap
25758 msgid ""
25759 " virt-df [--options] disk.img [disk.img ...]\n"
25760 "\n"
25761 msgstr ""
25762
25763 # type: textblock
25764 #: ../tools/virt-df.pl:48
25765 msgid ""
25766 "C<virt-df> is a command line tool to display free space on virtual machine "
25767 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25768 "space allocated to a virtual machine, but can look inside the virtual "
25769 "machine to see how much space is really being used."
25770 msgstr ""
25771
25772 # type: textblock
25773 #: ../tools/virt-df.pl:53
25774 msgid ""
25775 "It is like the L<df(1)> command, but for virtual machines, except that it "
25776 "also works for Windows virtual machines."
25777 msgstr ""
25778
25779 # type: textblock
25780 #: ../tools/virt-df.pl:56
25781 msgid ""
25782 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25783 "of all active and inactive guests, and performs a C<df>-type operation on "
25784 "each one in turn, printing out the results."
25785 msgstr ""
25786
25787 # type: textblock
25788 #: ../tools/virt-df.pl:60
25789 msgid ""
25790 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25791 "either the single named libvirt domain, or on the disk image(s) listed on "
25792 "the command line (which must all belong to a single VM).  In this mode (with "
25793 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25794 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25795 msgstr ""
25796
25797 # type: textblock
25798 #: ../tools/virt-df.pl:67
25799 msgid ""
25800 "Use the C<--csv> option to get a format which can be easily parsed by other "
25801 "programs.  Other options are mostly similar to standard C<df> options.  See "
25802 "below for the complete list."
25803 msgstr ""
25804
25805 # type: =item
25806 #: ../tools/virt-df.pl:107
25807 msgid "B<--csv>"
25808 msgstr ""
25809
25810 # type: textblock
25811 #: ../tools/virt-df.pl:109
25812 msgid ""
25813 "Write out the results in CSV format (comma-separated values).  This format "
25814 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25815 "ABOUT CSV FORMAT> below."
25816 msgstr ""
25817
25818 # type: =item
25819 #: ../tools/virt-df.pl:134
25820 msgid "B<--human-readable> | B<-h>"
25821 msgstr ""
25822
25823 # type: textblock
25824 #: ../tools/virt-df.pl:136
25825 msgid "Print sizes in human-readable format."
25826 msgstr ""
25827
25828 # type: textblock
25829 #: ../tools/virt-df.pl:138
25830 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25831 msgstr ""
25832
25833 # type: =item
25834 #: ../tools/virt-df.pl:144
25835 msgid "B<--inodes> | B<-i>"
25836 msgstr ""
25837
25838 # type: textblock
25839 #: ../tools/virt-df.pl:146
25840 msgid "Print inodes instead of blocks."
25841 msgstr ""
25842
25843 # type: =item
25844 #: ../tools/virt-df.pl:152
25845 msgid "B<--one-per-guest>"
25846 msgstr ""
25847
25848 # type: textblock
25849 #: ../tools/virt-df.pl:154
25850 msgid ""
25851 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25852 "disks from several guests to a single libguestfs appliance."
25853 msgstr ""
25854
25855 # type: textblock
25856 #: ../tools/virt-df.pl:157
25857 msgid "You might use this option in the following circumstances:"
25858 msgstr ""
25859
25860 # type: textblock
25861 #: ../tools/virt-df.pl:163
25862 msgid ""
25863 "If you think an untrusted guest might actively try to exploit the libguestfs "
25864 "appliance kernel, then this prevents one guest from interfering with the "
25865 "stats printed for another guest."
25866 msgstr ""
25867
25868 # type: textblock
25869 #: ../tools/virt-df.pl:169
25870 msgid ""
25871 "If the kernel has a bug which stops it from accessing a filesystem in one "
25872 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25873 "and report stats for further guests."
25874 msgstr ""
25875
25876 # type: =item
25877 #: ../tools/virt-df.pl:180
25878 msgid "B<--uuid>"
25879 msgstr ""
25880
25881 # type: textblock
25882 #: ../tools/virt-df.pl:182
25883 msgid ""
25884 "Print UUIDs instead of names.  This is useful for following a guest even "
25885 "when the guest is migrated or renamed, or when two guests happen to have the "
25886 "same name."
25887 msgstr ""
25888
25889 # type: textblock
25890 #: ../tools/virt-df.pl:186
25891 msgid ""
25892 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25893 "images, we still print the disk image name even when this option is "
25894 "specified."
25895 msgstr ""
25896
25897 # type: =head1
25898 #: ../tools/virt-df.pl:609
25899 msgid "NOTE ABOUT CSV FORMAT"
25900 msgstr ""
25901
25902 # type: textblock
25903 #: ../tools/virt-df.pl:611
25904 msgid ""
25905 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25906 "should be easy to parse, but it is definitely not easy to parse."
25907 msgstr ""
25908
25909 # type: textblock
25910 #: ../tools/virt-df.pl:614
25911 msgid ""
25912 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25913 "reliably.  This example has two columns:"
25914 msgstr ""
25915
25916 # type: verbatim
25917 #: ../tools/virt-df.pl:617
25918 #, no-wrap
25919 msgid ""
25920 " \"foo,bar\",baz\n"
25921 "\n"
25922 msgstr ""
25923
25924 # type: textblock
25925 #: ../tools/virt-df.pl:619
25926 msgid ""
25927 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25928 "reliably.  This example has one row:"
25929 msgstr ""
25930
25931 # type: verbatim
25932 #: ../tools/virt-df.pl:622
25933 #, no-wrap
25934 msgid ""
25935 " \"foo\n"
25936 " bar\",baz\n"
25937 "\n"
25938 msgstr ""
25939
25940 # type: textblock
25941 #: ../tools/virt-df.pl:625
25942 msgid ""
25943 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25944 "packaged in major Linux distributions)."
25945 msgstr ""
25946
25947 # type: textblock
25948 #: ../tools/virt-df.pl:628
25949 msgid ""
25950 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25951 "or Python's built-in csv library)."
25952 msgstr ""
25953
25954 # type: textblock
25955 #: ../tools/virt-df.pl:631
25956 msgid "Most spreadsheets and databases can import CSV directly."
25957 msgstr ""
25958
25959 # type: textblock
25960 #: ../tools/virt-df.pl:642
25961 msgid ""
25962 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25963 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25964 msgstr ""
25965
25966 # type: textblock
25967 #: ../tools/virt-ls.pl:34
25968 msgid "virt-ls - List files in a virtual machine"
25969 msgstr ""
25970
25971 # type: verbatim
25972 #: ../tools/virt-ls.pl:38
25973 #, no-wrap
25974 msgid ""
25975 " virt-ls [--options] domname directory\n"
25976 "\n"
25977 msgstr ""
25978
25979 # type: verbatim
25980 #: ../tools/virt-ls.pl:40
25981 #, no-wrap
25982 msgid ""
25983 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25984 "\n"
25985 msgstr ""
25986
25987 # type: textblock
25988 #: ../tools/virt-ls.pl:44
25989 msgid ""
25990 "C<virt-ls> is a command line tool to list the names of files in a directory "
25991 "inside a virtual machine or disk image."
25992 msgstr ""
25993
25994 # type: textblock
25995 #: ../tools/virt-ls.pl:47
25996 msgid ""
25997 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25998 "For more complex cases you should look at the L<guestfish(1)> tool."
25999 msgstr ""
26000
26001 # type: textblock
26002 #: ../tools/virt-ls.pl:51
26003 msgid ""
26004 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26005 "simple listing is like the ordinary L<ls(1)> command:"
26006 msgstr ""
26007
26008 # type: verbatim
26009 #: ../tools/virt-ls.pl:54
26010 #, no-wrap
26011 msgid ""
26012 " $ virt-ls myguest /\n"
26013 " bin\n"
26014 " boot\n"
26015 " [etc.]\n"
26016 "\n"
26017 msgstr ""
26018
26019 # type: textblock
26020 #: ../tools/virt-ls.pl:59
26021 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26022 msgstr ""
26023
26024 # type: verbatim
26025 #: ../tools/virt-ls.pl:61
26026 #, no-wrap
26027 msgid ""
26028 " $ virt-ls -l myguest /\n"
26029 " total 204\n"
26030 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26031 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26032 " [etc.]\n"
26033 "\n"
26034 msgstr ""
26035
26036 # type: textblock
26037 #: ../tools/virt-ls.pl:67
26038 msgid ""
26039 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26040 "and directories recursively:"
26041 msgstr ""
26042
26043 # type: verbatim
26044 #: ../tools/virt-ls.pl:70
26045 #, no-wrap
26046 msgid ""
26047 " $ virt-ls -R myguest /tmp\n"
26048 " foo\n"
26049 " foo/bar\n"
26050 " [etc.]\n"
26051 "\n"
26052 msgstr ""
26053
26054 # type: textblock
26055 #: ../tools/virt-ls.pl:75
26056 msgid ""
26057 "You I<cannot> combine these options.  To do more complicated things, use "
26058 "L<guestfish(1)>."
26059 msgstr ""
26060
26061 # type: =item
26062 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103
26063 #: ../tools/virt-list-partitions.pl:112
26064 msgid "B<-l> | B<--long>"
26065 msgstr ""
26066
26067 # type: =item
26068 #: ../tools/virt-ls.pl:133
26069 msgid "B<-R> | B<--recursive>"
26070 msgstr ""
26071
26072 # type: textblock
26073 #: ../tools/virt-ls.pl:135
26074 msgid ""
26075 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26076 "simple, flat list of the files in the named directory."
26077 msgstr ""
26078
26079 # type: textblock
26080 #: ../tools/virt-ls.pl:138
26081 msgid ""
26082 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26083 "like the plain C<ls -l> command)."
26084 msgstr ""
26085
26086 # type: textblock
26087 #: ../tools/virt-ls.pl:141
26088 msgid ""
26089 "C<virt-ls -R> produces a recursive list of files starting at the named "
26090 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26091 "details."
26092 msgstr ""
26093
26094 # type: textblock
26095 #: ../tools/virt-ls.pl:145
26096 msgid "You cannot combine these options."
26097 msgstr ""
26098
26099 # type: textblock
26100 #: ../tools/virt-ls.pl:234
26101 msgid ""
26102 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<Sys::"
26103 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
26104 "org/>."
26105 msgstr ""
26106
26107 # type: textblock
26108 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204
26109 #: ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
26110 msgid "Copyright (C) 2009 Red Hat Inc."
26111 msgstr ""
26112
26113 # type: textblock
26114 #: ../tools/virt-resize.pl:42
26115 msgid "virt-resize - Resize a virtual machine disk"
26116 msgstr ""
26117
26118 # type: verbatim
26119 #: ../tools/virt-resize.pl:46
26120 #, no-wrap
26121 msgid ""
26122 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26123 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26124 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26125 "\n"
26126 msgstr ""
26127
26128 # type: textblock
26129 #: ../tools/virt-resize.pl:52
26130 msgid ""
26131 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26132 "larger or smaller overall, and resizing or deleting any partitions contained "
26133 "within."
26134 msgstr ""
26135
26136 # type: textblock
26137 #: ../tools/virt-resize.pl:56
26138 msgid ""
26139 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26140 "not> be used on live virtual machines - for consistent results, shut the "
26141 "virtual machine down before resizing it."
26142 msgstr ""
26143
26144 # type: textblock
26145 #: ../tools/virt-resize.pl:60
26146 msgid ""
26147 "If you are not familiar with the associated tools: L<virt-list-partitions(1)"
26148 ">, L<virt-list-filesystems(1)> and L<virt-df(1)>, we recommend you go and "
26149 "read those manual pages first."
26150 msgstr ""
26151
26152 # type: textblock
26153 #: ../tools/virt-resize.pl:68
26154 msgid ""
26155 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26156 "fill the extra 5GB of space."
26157 msgstr ""
26158
26159 # type: verbatim
26160 #: ../tools/virt-resize.pl:71
26161 #, no-wrap
26162 msgid ""
26163 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26164 " virt-list-partitions -lht olddisk\n"
26165 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26166 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26167 "\n"
26168 msgstr ""
26169
26170 # type: textblock
26171 #: ../tools/virt-resize.pl:76
26172 msgid ""
26173 "As above, but make the /boot partition 200MB bigger, while giving the "
26174 "remaining space to /dev/sda2:"
26175 msgstr ""
26176
26177 # type: verbatim
26178 #: ../tools/virt-resize.pl:79
26179 #, no-wrap
26180 msgid ""
26181 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26182 "\n"
26183 msgstr ""
26184
26185 # type: textblock
26186 #: ../tools/virt-resize.pl:81
26187 msgid "As above, but the output format will be uncompressed qcow2:"
26188 msgstr ""
26189
26190 # type: verbatim
26191 #: ../tools/virt-resize.pl:83
26192 #, no-wrap
26193 msgid ""
26194 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26195 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26196 "\n"
26197 msgstr ""
26198
26199 # type: =head1
26200 #: ../tools/virt-resize.pl:86
26201 msgid "DETAILED USAGE"
26202 msgstr ""
26203
26204 # type: =head2
26205 #: ../tools/virt-resize.pl:88
26206 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26207 msgstr ""
26208
26209 # type: =item
26210 #: ../tools/virt-resize.pl:92
26211 msgid "1. Shut down the virtual machine"
26212 msgstr ""
26213
26214 # type: =item
26215 #: ../tools/virt-resize.pl:94
26216 msgid "2. Locate input disk image"
26217 msgstr ""
26218
26219 # type: textblock
26220 #: ../tools/virt-resize.pl:96
26221 msgid ""
26222 "Locate the input disk image (ie. the file or device on the host containing "
26223 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26224 "dumpxml> like this to find the disk image name:"
26225 msgstr ""
26226
26227 # type: verbatim
26228 #: ../tools/virt-resize.pl:100
26229 #, no-wrap
26230 msgid ""
26231 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26232 " Found 1 nodes:\n"
26233 " -- NODE --\n"
26234 " <source dev=\"/dev/vg/lv_guest\" />\n"
26235 "\n"
26236 msgstr ""
26237
26238 # type: =item
26239 #: ../tools/virt-resize.pl:105
26240 msgid "3. Look at current sizing"
26241 msgstr ""
26242
26243 # type: textblock
26244 #: ../tools/virt-resize.pl:107
26245 msgid ""
26246 "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26247 msgstr ""
26248
26249 # type: verbatim
26250 #: ../tools/virt-resize.pl:110
26251 #, no-wrap
26252 msgid ""
26253 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
26254 " /dev/sda1 ext3 101.9M\n"
26255 " /dev/sda2 pv 7.9G\n"
26256 " /dev/sda device 8.0G\n"
26257 "\n"
26258 msgstr ""
26259
26260 # type: textblock
26261 #: ../tools/virt-resize.pl:115
26262 msgid ""
26263 "(This example is a virtual machine with an 8 GB disk which we would like to "
26264 "expand up to 10 GB)."
26265 msgstr ""
26266
26267 # type: =item
26268 #: ../tools/virt-resize.pl:118
26269 msgid "4. Create output disk"
26270 msgstr ""
26271
26272 # type: textblock
26273 #: ../tools/virt-resize.pl:120
26274 msgid ""
26275 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26276 "to store the resized output disk."
26277 msgstr ""
26278
26279 # type: textblock
26280 #: ../tools/virt-resize.pl:123
26281 msgid ""
26282 "To store the resized disk image in a file, create a file of a suitable size:"
26283 msgstr ""
26284
26285 # type: verbatim
26286 #: ../tools/virt-resize.pl:126
26287 #, no-wrap
26288 msgid ""
26289 " # rm -f outdisk\n"
26290 " # truncate -s 10G outdisk\n"
26291 "\n"
26292 msgstr ""
26293
26294 # type: textblock
26295 #: ../tools/virt-resize.pl:129
26296 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26297 msgstr ""
26298
26299 # type: verbatim
26300 #: ../tools/virt-resize.pl:131
26301 #, no-wrap
26302 msgid ""
26303 " # lvcreate -L 10G -n lv_name vg_name\n"
26304 "\n"
26305 msgstr ""
26306
26307 # type: textblock
26308 #: ../tools/virt-resize.pl:133
26309 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26310 msgstr ""
26311
26312 # type: verbatim
26313 #: ../tools/virt-resize.pl:135
26314 #, no-wrap
26315 msgid ""
26316 " # virsh pool-list\n"
26317 " # virsh vol-create-as poolname newvol 10G\n"
26318 "\n"
26319 msgstr ""
26320
26321 # type: =item
26322 #: ../tools/virt-resize.pl:138
26323 msgid "5. Resize"
26324 msgstr ""
26325
26326 # type: textblock
26327 #: ../tools/virt-resize.pl:140
26328 msgid ""
26329 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26330 "file) and the output disk.  The output disk is the one created in the "
26331 "previous step."
26332 msgstr ""
26333
26334 # type: verbatim
26335 #: ../tools/virt-resize.pl:144
26336 #, no-wrap
26337 msgid ""
26338 " # virt-resize indisk outdisk\n"
26339 "\n"
26340 msgstr ""
26341
26342 # type: textblock
26343 #: ../tools/virt-resize.pl:146
26344 msgid ""
26345 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26346 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26347 "larger, then an extra, empty partition is created at the end of the disk "
26348 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26349 "error."
26350 msgstr ""
26351
26352 # type: textblock
26353 #: ../tools/virt-resize.pl:152
26354 msgid ""
26355 "More realistically you'd want to expand existing partitions in the disk "
26356 "image by passing extra options (for the full list see the L</OPTIONS> "
26357 "section below)."
26358 msgstr ""
26359
26360 # type: textblock
26361 #: ../tools/virt-resize.pl:156
26362 msgid ""
26363 "L</--expand> is the most useful option.  It expands the named partition "
26364 "within the disk to fill any extra space:"
26365 msgstr ""
26366
26367 # type: verbatim
26368 #: ../tools/virt-resize.pl:159
26369 #, no-wrap
26370 msgid ""
26371 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26372 "\n"
26373 msgstr ""
26374
26375 # type: textblock
26376 #: ../tools/virt-resize.pl:161
26377 msgid ""
26378 "(In this case, an extra partition is I<not> created at the end of the disk, "
26379 "because there will be no unused space)."
26380 msgstr ""
26381
26382 # type: textblock
26383 #: ../tools/virt-resize.pl:164
26384 msgid ""
26385 "L</--resize> is the other commonly used option.  The following would "
26386 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26387 "rest of the available space:"
26388 msgstr ""
26389
26390 # type: verbatim
26391 #: ../tools/virt-resize.pl:168
26392 #, no-wrap
26393 msgid ""
26394 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26395 "     indisk outdisk\n"
26396 "\n"
26397 msgstr ""
26398
26399 # type: textblock
26400 #: ../tools/virt-resize.pl:171
26401 msgid ""
26402 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26403 "if virt-resize knows how, it will resize the contents, the equivalent of "
26404 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
26405 ">.  However virt-resize does not know how to resize some filesystems, so you "
26406 "would have to online resize them after booting the guest.  And virt-resize "
26407 "also does not resize anything inside an LVM PV, it just resizes the PV "
26408 "itself and leaves the user to resize any LVs inside that PV as desired."
26409 msgstr ""
26410
26411 # type: textblock
26412 #: ../tools/virt-resize.pl:180
26413 msgid "Other options are covered below."
26414 msgstr ""
26415
26416 # type: =item
26417 #: ../tools/virt-resize.pl:182
26418 msgid "6. Test"
26419 msgstr ""
26420
26421 # type: textblock
26422 #: ../tools/virt-resize.pl:184
26423 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26424 msgstr ""
26425
26426 # type: textblock
26427 #: ../tools/virt-resize.pl:186
26428 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26429 msgstr ""
26430
26431 # type: verbatim
26432 #: ../tools/virt-resize.pl:188
26433 #, no-wrap
26434 msgid ""
26435 " # virsh edit guestname\n"
26436 "\n"
26437 msgstr ""
26438
26439 # type: textblock
26440 #: ../tools/virt-resize.pl:190
26441 msgid ""
26442 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
26443 "html#elementsDisks>"
26444 msgstr ""
26445
26446 # type: textblock
26447 #: ../tools/virt-resize.pl:193
26448 msgid "Then start up the domain with the new, resized disk:"
26449 msgstr ""
26450
26451 # type: verbatim
26452 #: ../tools/virt-resize.pl:195
26453 #, no-wrap
26454 msgid ""
26455 " # virsh start guestname\n"
26456 "\n"
26457 msgstr ""
26458
26459 # type: textblock
26460 #: ../tools/virt-resize.pl:197
26461 msgid ""
26462 "and check that it still works.  See also the L</NOTES> section below for "
26463 "additional information."
26464 msgstr ""
26465
26466 # type: =item
26467 #: ../tools/virt-resize.pl:200
26468 msgid "7. Resize LVs etc inside the guest"
26469 msgstr ""
26470
26471 # type: textblock
26472 #: ../tools/virt-resize.pl:202
26473 msgid "(This can also be done offline using L<guestfish(1)>)"
26474 msgstr ""
26475
26476 # type: textblock
26477 #: ../tools/virt-resize.pl:204
26478 msgid ""
26479 "Once the guest has booted you should see the new space available, at least "
26480 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26481 "may need to resize LVs inside PVs, and also resize filesystem types that "
26482 "virt-resize does not know how to expand."
26483 msgstr ""
26484
26485 # type: =head2
26486 #: ../tools/virt-resize.pl:211
26487 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26488 msgstr ""
26489
26490 # type: textblock
26491 #: ../tools/virt-resize.pl:213
26492 msgid ""
26493 "Shrinking is somewhat more complex than expanding, and only an overview is "
26494 "given here."
26495 msgstr ""
26496
26497 # type: textblock
26498 #: ../tools/virt-resize.pl:216
26499 msgid ""
26500 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26501 "filesystems).  The user has to shrink content before passing the disk image "
26502 "to virt-resize, and virt-resize will check that the content has been shrunk "
26503 "properly."
26504 msgstr ""
26505
26506 # type: textblock
26507 #: ../tools/virt-resize.pl:221
26508 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26509 msgstr ""
26510
26511 # type: textblock
26512 #: ../tools/virt-resize.pl:223
26513 msgid ""
26514 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26515 "steps 3 and 4 above to allocate a new disk image."
26516 msgstr ""
26517
26518 # type: textblock
26519 #: ../tools/virt-resize.pl:226
26520 msgid ""
26521 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26522 msgstr ""
26523
26524 # type: =head2
26525 #: ../tools/virt-resize.pl:229
26526 msgid "IGNORING OR DELETING PARTITIONS"
26527 msgstr ""
26528
26529 # type: textblock
26530 #: ../tools/virt-resize.pl:231
26531 msgid ""
26532 "virt-resize also gives a convenient way to ignore or delete partitions when "
26533 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26534 "up the copy where you don't care about the existing contents of a "
26535 "partition.  Deleting a partition removes it completely, but note that it "
26536 "also renumbers any partitions after the one which is deleted, which can "
26537 "leave some guests unbootable."
26538 msgstr ""
26539
26540 # type: =head2
26541 #: ../tools/virt-resize.pl:238
26542 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26543 msgstr ""
26544
26545 # type: textblock
26546 #: ../tools/virt-resize.pl:240
26547 msgid ""
26548 "If the input disk is in qcow2 format, then you may prefer that the output is "
26549 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26550 "the fly.  The output format is simply determined by the format of the empty "
26551 "output container that you provide.  Thus to create qcow2 output, use:"
26552 msgstr ""
26553
26554 # type: verbatim
26555 #: ../tools/virt-resize.pl:246
26556 #, no-wrap
26557 msgid ""
26558 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26559 "\n"
26560 msgstr ""
26561
26562 # type: textblock
26563 #: ../tools/virt-resize.pl:248
26564 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26565 msgstr ""
26566
26567 # type: textblock
26568 #: ../tools/virt-resize.pl:250
26569 msgid "Similarly, to get non-sparse raw output use:"
26570 msgstr ""
26571
26572 # type: verbatim
26573 #: ../tools/virt-resize.pl:252
26574 #, no-wrap
26575 msgid ""
26576 " fallocate -l size outdisk\n"
26577 "\n"
26578 msgstr ""
26579
26580 # type: textblock
26581 #: ../tools/virt-resize.pl:254
26582 msgid ""
26583 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
26584 "dev/zero of=outdisk bs=1M count=..>)"
26585 msgstr ""
26586
26587 # type: textblock
26588 #: ../tools/virt-resize.pl:267
26589 msgid "Display help."
26590 msgstr ""
26591
26592 # type: =item
26593 #: ../tools/virt-resize.pl:281
26594 msgid "B<--resize part=size>"
26595 msgstr ""
26596
26597 # type: textblock
26598 #: ../tools/virt-resize.pl:283
26599 msgid ""
26600 "Resize the named partition (expanding or shrinking it) so that it has the "
26601 "given size."
26602 msgstr ""
26603
26604 # type: textblock
26605 #: ../tools/virt-resize.pl:286
26606 msgid ""
26607 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26608 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26609 "Exabytes; or as a percentage of the current size; or as a relative number or "
26610 "percentage.  For example:"
26611 msgstr ""
26612
26613 # type: verbatim
26614 #: ../tools/virt-resize.pl:291
26615 #, no-wrap
26616 msgid ""
26617 " --resize /dev/sda2=10G\n"
26618 "\n"
26619 msgstr ""
26620
26621 # type: verbatim
26622 #: ../tools/virt-resize.pl:293
26623 #, no-wrap
26624 msgid ""
26625 " --resize /dev/sda4=90%\n"
26626 "\n"
26627 msgstr ""
26628
26629 # type: verbatim
26630 #: ../tools/virt-resize.pl:295
26631 #, no-wrap
26632 msgid ""
26633 " --resize /dev/sda2=+1G\n"
26634 "\n"
26635 msgstr ""
26636
26637 # type: verbatim
26638 #: ../tools/virt-resize.pl:297
26639 #, no-wrap
26640 msgid ""
26641 " --resize /dev/sda2=-200M\n"
26642 "\n"
26643 msgstr ""
26644
26645 # type: verbatim
26646 #: ../tools/virt-resize.pl:299
26647 #, no-wrap
26648 msgid ""
26649 " --resize /dev/sda1=+128K\n"
26650 "\n"
26651 msgstr ""
26652
26653 # type: verbatim
26654 #: ../tools/virt-resize.pl:301
26655 #, no-wrap
26656 msgid ""
26657 " --resize /dev/sda1=+10%\n"
26658 "\n"
26659 msgstr ""
26660
26661 # type: verbatim
26662 #: ../tools/virt-resize.pl:303
26663 #, no-wrap
26664 msgid ""
26665 " --resize /dev/sda1=-10%\n"
26666 "\n"
26667 msgstr ""
26668
26669 # type: textblock
26670 #: ../tools/virt-resize.pl:305
26671 msgid ""
26672 "You can increase the size of any partition.  Virt-resize will expand the "
26673 "direct content of the partition if it knows how (see C<--expand> below)."
26674 msgstr ""
26675
26676 # type: textblock
26677 #: ../tools/virt-resize.pl:309
26678 msgid ""
26679 "You can only I<decrease> the size of partitions that contain filesystems or "
26680 "PVs which have already been shrunk.  Virt-resize will check this has been "
26681 "done before proceeding, or else will print an error (see also C<--resize-"
26682 "force>)."
26683 msgstr ""
26684
26685 # type: textblock
26686 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406
26687 #: ../tools/virt-resize.pl:423
26688 msgid "You can give this option multiple times."
26689 msgstr ""
26690
26691 # type: =item
26692 #: ../tools/virt-resize.pl:320
26693 msgid "B<--resize-force part=size>"
26694 msgstr ""
26695
26696 # type: textblock
26697 #: ../tools/virt-resize.pl:322
26698 msgid ""
26699 "This is the same as C<--resize> except that it will let you decrease the "
26700 "size of any partition.  Generally this means you will lose any data which "
26701 "was at the end of the partition you shrink, but you may not care about that "
26702 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26703 "as a swap partition)."
26704 msgstr ""
26705
26706 # type: textblock
26707 #: ../tools/virt-resize.pl:328
26708 msgid "See also the C<--ignore> option."
26709 msgstr ""
26710
26711 # type: =item
26712 #: ../tools/virt-resize.pl:334
26713 msgid "B<--expand part>"
26714 msgstr ""
26715
26716 # type: textblock
26717 #: ../tools/virt-resize.pl:336
26718 msgid ""
26719 "Expand the named partition so it uses up all extra space (space left over "
26720 "after any other resize changes that you request have been done)."
26721 msgstr ""
26722
26723 # type: textblock
26724 #: ../tools/virt-resize.pl:339
26725 msgid ""
26726 "If virt-resize knows how, it will expand the direct content of the "
26727 "partition.  For example, if the partition is an LVM PV, it will expand the "
26728 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26729 "content it doesn't know about alone."
26730 msgstr ""
26731
26732 # type: textblock
26733 #: ../tools/virt-resize.pl:344
26734 msgid "Currently virt-resize can resize:"
26735 msgstr ""
26736
26737 # type: textblock
26738 #: ../tools/virt-resize.pl:350
26739 msgid ""
26740 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26741 "partition."
26742 msgstr ""
26743
26744 # type: textblock
26745 #: ../tools/virt-resize.pl:355
26746 msgid ""
26747 "NTFS filesystems contained directly in a partition, if libguestfs was "
26748 "compiled with support for NTFS."
26749 msgstr ""
26750
26751 # type: textblock
26752 #: ../tools/virt-resize.pl:358
26753 msgid ""
26754 "The filesystem must have been shut down consistently last time it was used.  "
26755 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26756 "consistency check, so at the first boot after resizing Windows will check "
26757 "the disk."
26758 msgstr ""
26759
26760 # type: textblock
26761 #: ../tools/virt-resize.pl:365
26762 msgid ""
26763 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26764 "inside the PV.  The user will have to resize LVs as desired."
26765 msgstr ""
26766
26767 # type: textblock
26768 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26769 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26770 msgstr ""
26771
26772 # type: =item
26773 #: ../tools/virt-resize.pl:377
26774 msgid "B<--shrink part>"
26775 msgstr ""
26776
26777 # type: textblock
26778 #: ../tools/virt-resize.pl:379
26779 msgid ""
26780 "Shrink the named partition until the overall disk image fits in the "
26781 "destination.  The named partition B<must> contain a filesystem or PV which "
26782 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26783 "online tools).  Virt-resize will check this and give an error if it has not "
26784 "been done."
26785 msgstr ""
26786
26787 # type: textblock
26788 #: ../tools/virt-resize.pl:385
26789 msgid ""
26790 "The amount by which the overall disk must be shrunk (after carrying out all "
26791 "other operations requested by the user) is called the \"deficit\".  For "
26792 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26793 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26794 "would give an error unless the user specified a partition to shrink and that "
26795 "partition had more than a gigabyte of free space."
26796 msgstr ""
26797
26798 # type: =item
26799 #: ../tools/virt-resize.pl:399
26800 msgid "B<--ignore part>"
26801 msgstr ""
26802
26803 # type: textblock
26804 #: ../tools/virt-resize.pl:401
26805 msgid ""
26806 "Ignore the named partition.  Effectively this means the partition is "
26807 "allocated on the destination disk, but the content is not copied across from "
26808 "the source disk.  The content of the partition will be blank (all zero "
26809 "bytes)."
26810 msgstr ""
26811
26812 # type: =item
26813 #: ../tools/virt-resize.pl:412
26814 msgid "B<--delete part>"
26815 msgstr ""
26816
26817 # type: textblock
26818 #: ../tools/virt-resize.pl:414
26819 msgid ""
26820 "Delete the named partition.  It would be more accurate to describe this as "
26821 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26822 "the original disk image is left intact."
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-resize.pl:418
26827 msgid ""
26828 "Note that when you delete a partition, then anything contained in the "
26829 "partition is also deleted.  Furthermore, this causes any partitions that "
26830 "come after to be I<renumbered>, which can easily make your guest unbootable."
26831 msgstr ""
26832
26833 # type: =item
26834 #: ../tools/virt-resize.pl:429
26835 msgid "B<--LV-expand logvol>"
26836 msgstr ""
26837
26838 # type: textblock
26839 #: ../tools/virt-resize.pl:431
26840 msgid ""
26841 "This takes the logical volume and, as a final step, expands it to fill all "
26842 "the space available in its volume group.  A typical usage, assuming a Linux "
26843 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
26844 "lv_root> would be:"
26845 msgstr ""
26846
26847 # type: verbatim
26848 #: ../tools/virt-resize.pl:436
26849 #, no-wrap
26850 msgid ""
26851 " virt-resize indisk outdisk \\\n"
26852 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26853 "\n"
26854 msgstr ""
26855
26856 # type: textblock
26857 #: ../tools/virt-resize.pl:439
26858 msgid ""
26859 "This would first expand the partition (and PV), and then expand the root "
26860 "device to fill the extra space in the PV."
26861 msgstr ""
26862
26863 # type: textblock
26864 #: ../tools/virt-resize.pl:442
26865 msgid ""
26866 "The contents of the LV are also resized if virt-resize knows how to do "
26867 "that.  You can stop virt-resize from trying to expand the content by using "
26868 "the option C<--no-expand-content>."
26869 msgstr ""
26870
26871 # type: textblock
26872 #: ../tools/virt-resize.pl:446
26873 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26874 msgstr ""
26875
26876 # type: textblock
26877 #: ../tools/virt-resize.pl:449
26878 msgid ""
26879 "You can give this option multiple times, I<but> it doesn't make sense to do "
26880 "this unless the logical volumes you specify are all in different volume "
26881 "groups."
26882 msgstr ""
26883
26884 # type: =item
26885 #: ../tools/virt-resize.pl:457
26886 msgid "B<--no-copy-boot-loader>"
26887 msgstr ""
26888
26889 # type: textblock
26890 #: ../tools/virt-resize.pl:459
26891 msgid ""
26892 "By default, virt-resize copies over some sectors at the start of the disk "
26893 "(up to the beginning of the first partition).  Commonly these sectors "
26894 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26895 "in order for the guest to boot correctly."
26896 msgstr ""
26897
26898 # type: textblock
26899 #: ../tools/virt-resize.pl:464
26900 msgid ""
26901 "If you specify this flag, then this initial copy is not done.  You may need "
26902 "to reinstall the boot loader in this case."
26903 msgstr ""
26904
26905 # type: =item
26906 #: ../tools/virt-resize.pl:472
26907 msgid "B<--no-extra-partition>"
26908 msgstr ""
26909
26910 # type: textblock
26911 #: ../tools/virt-resize.pl:474
26912 msgid ""
26913 "By default, virt-resize creates an extra partition if there is any extra, "
26914 "unused space after all resizing has happened.  Use this option to prevent "
26915 "the extra partition from being created.  If you do this then the extra space "
26916 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26917 "tool in the guest."
26918 msgstr ""
26919
26920 # type: textblock
26921 #: ../tools/virt-resize.pl:480
26922 msgid ""
26923 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26924 "will be created."
26925 msgstr ""
26926
26927 # type: =item
26928 #: ../tools/virt-resize.pl:487
26929 msgid "B<--no-expand-content>"
26930 msgstr ""
26931
26932 # type: textblock
26933 #: ../tools/virt-resize.pl:489
26934 msgid ""
26935 "By default, virt-resize will try to expand the direct contents of "
26936 "partitions, if it knows how (see C<--expand> option above)."
26937 msgstr ""
26938
26939 # type: textblock
26940 #: ../tools/virt-resize.pl:492
26941 msgid ""
26942 "If you give the C<--no-expand-content> option then virt-resize will not "
26943 "attempt this."
26944 msgstr ""
26945
26946 # type: =item
26947 #: ../tools/virt-resize.pl:499
26948 msgid "B<-d> | B<--debug>"
26949 msgstr ""
26950
26951 # type: =item
26952 #: ../tools/virt-resize.pl:507
26953 msgid "B<-n> | B<--dryrun>"
26954 msgstr ""
26955
26956 # type: textblock
26957 #: ../tools/virt-resize.pl:509
26958 msgid "Print a summary of what would be done, but don't do anything."
26959 msgstr ""
26960
26961 # type: =item
26962 #: ../tools/virt-resize.pl:515
26963 msgid "B<-q> | B<--quiet>"
26964 msgstr ""
26965
26966 # type: textblock
26967 #: ../tools/virt-resize.pl:517
26968 msgid "Don't print the summary."
26969 msgstr ""
26970
26971 # type: textblock
26972 #: ../tools/virt-resize.pl:525
26973 msgid ""
26974 "Specify the format of the input disk image.  If this flag is not given then "
26975 "it is auto-detected from the image itself."
26976 msgstr ""
26977
26978 # type: textblock
26979 #: ../tools/virt-resize.pl:531
26980 msgid ""
26981 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26982 "AND NON-SPARSE RAW FORMATS>."
26983 msgstr ""
26984
26985 # type: =item
26986 #: ../tools/virt-resize.pl:538
26987 msgid "B<--output-format> raw"
26988 msgstr ""
26989
26990 # type: textblock
26991 #: ../tools/virt-resize.pl:540
26992 msgid ""
26993 "Specify the format of the output disk image.  If this flag is not given then "
26994 "it is auto-detected from the image itself."
26995 msgstr ""
26996
26997 # type: textblock
26998 #: ../tools/virt-resize.pl:546
26999 msgid ""
27000 "Note that you still need to create the output disk with the right format.  "
27001 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27002 msgstr ""
27003
27004 # type: =head1
27005 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27006 msgid "NOTES"
27007 msgstr ""
27008
27009 # type: =head2
27010 #: ../tools/virt-resize.pl:1424
27011 msgid "\"Partition 1 does not end on cylinder boundary.\""
27012 msgstr ""
27013
27014 # type: textblock
27015 #: ../tools/virt-resize.pl:1426
27016 msgid ""
27017 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27018 "means the partitions will not be aligned to the ancient CHS geometry.  "
27019 "However CHS geometry is meaningless for disks manufactured since the early "
27020 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27021 "cylinders is not required by any modern operating system."
27022 msgstr ""
27023
27024 # type: =head2
27025 #: ../tools/virt-resize.pl:1433
27026 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-resize.pl:1435
27031 msgid ""
27032 "In Windows Vista and later versions, Microsoft switched to using a separate "
27033 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27034 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27035 "the boot partition.  Doing so seems to break the guest completely.  However "
27036 "expanding the second partition (ie. C: drive) should work."
27037 msgstr ""
27038
27039 # type: textblock
27040 #: ../tools/virt-resize.pl:1442
27041 msgid ""
27042 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27043 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27044 "it find errors) is nothing to worry about."
27045 msgstr ""
27046
27047 # type: =head2
27048 #: ../tools/virt-resize.pl:1446
27049 msgid "GUEST BOOT STUCK AT \"GRUB\""
27050 msgstr ""
27051
27052 # type: textblock
27053 #: ../tools/virt-resize.pl:1448
27054 msgid ""
27055 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27056 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27057 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27058 "although we think is to do with partition alignment."
27059 msgstr ""
27060
27061 # type: verbatim
27062 #: ../tools/virt-resize.pl:1453
27063 #, no-wrap
27064 msgid ""
27065 " guestfish -i -a newdisk\n"
27066 " ><fs> cat /boot/grub/device.map\n"
27067 " # check the contents of this file are sensible or\n"
27068 " # edit the file if necessary\n"
27069 " ><fs> grub-install / /dev/vda\n"
27070 " ><fs> exit\n"
27071 "\n"
27072 msgstr ""
27073
27074 # type: textblock
27075 #: ../tools/virt-resize.pl:1460
27076 msgid ""
27077 "For more flexible guest reconfiguration, including if you need to specify "
27078 "other parameters to grub-install, use L<virt-rescue(1)>."
27079 msgstr ""
27080
27081 # type: =head1
27082 #: ../tools/virt-resize.pl:1463
27083 msgid "ALTERNATIVE TOOLS"
27084 msgstr ""
27085
27086 # type: textblock
27087 #: ../tools/virt-resize.pl:1465
27088 msgid ""
27089 "There are several proprietary tools for resizing partitions.  We won't "
27090 "mention any here."
27091 msgstr ""
27092
27093 # type: textblock
27094 #: ../tools/virt-resize.pl:1468
27095 msgid ""
27096 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27097 "operations on disk images.  They can resize and move partitions, but I don't "
27098 "think they can do anything with the contents, and they certainly don't "
27099 "understand LVM."
27100 msgstr ""
27101
27102 # type: textblock
27103 #: ../tools/virt-resize.pl:1473
27104 msgid ""
27105 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27106 "but at a much lower level.  You will probably end up hand-calculating sector "
27107 "offsets, which is something that virt-resize was designed to avoid.  If you "
27108 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27109 "C<--debug> flag."
27110 msgstr ""
27111
27112 # type: textblock
27113 #: ../tools/virt-resize.pl:1488
27114 msgid ""
27115 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27116 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27117 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)"
27118 ">, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27119 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27120 msgstr ""
27121
27122 # type: textblock
27123 #: ../tools/virt-list-filesystems.pl:32
27124 msgid ""
27125 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27126 msgstr ""
27127
27128 # type: verbatim
27129 #: ../tools/virt-list-filesystems.pl:36
27130 #, no-wrap
27131 msgid ""
27132 " virt-list-filesystems [--options] domname\n"
27133 "\n"
27134 msgstr ""
27135
27136 # type: verbatim
27137 #: ../tools/virt-list-filesystems.pl:38
27138 #, no-wrap
27139 msgid ""
27140 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27141 "\n"
27142 msgstr ""
27143
27144 # type: textblock
27145 #: ../tools/virt-list-filesystems.pl:42
27146 msgid ""
27147 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27148 "are contained in a virtual machine or disk image."
27149 msgstr ""
27150
27151 # type: textblock
27152 #: ../tools/virt-list-filesystems.pl:46
27153 msgid ""
27154 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27155 "functionality.  For more complex cases you should look at the L<guestfish(1)"
27156 "> tool."
27157 msgstr ""
27158
27159 # type: textblock
27160 #: ../tools/virt-list-filesystems.pl:105
27161 msgid ""
27162 "With this option, C<virt-list-filesystems> displays the type of each "
27163 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27164 msgstr ""
27165
27166 # type: =item
27167 #: ../tools/virt-list-filesystems.pl:112
27168 msgid "B<-a> | B<--all>"
27169 msgstr ""
27170
27171 # type: textblock
27172 #: ../tools/virt-list-filesystems.pl:114
27173 msgid ""
27174 "Normally we only show mountable filesystems.  If this option is given then "
27175 "swap devices are shown too."
27176 msgstr ""
27177
27178 # type: textblock
27179 #: ../tools/virt-list-filesystems.pl:188
27180 msgid ""
27181 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-list-"
27182 "partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)"
27183 ">, L<http://libguestfs.org/>."
27184 msgstr ""
27185
27186 # type: textblock
27187 #: ../tools/virt-cat.pl:33
27188 msgid "virt-cat - Display a file in a virtual machine"
27189 msgstr ""
27190
27191 # type: verbatim
27192 #: ../tools/virt-cat.pl:37
27193 #, no-wrap
27194 msgid ""
27195 " virt-cat [--options] domname file\n"
27196 "\n"
27197 msgstr ""
27198
27199 # type: verbatim
27200 #: ../tools/virt-cat.pl:39
27201 #, no-wrap
27202 msgid ""
27203 " virt-cat [--options] disk.img [disk.img ...] file\n"
27204 "\n"
27205 msgstr ""
27206
27207 # type: textblock
27208 #: ../tools/virt-cat.pl:43
27209 msgid ""
27210 "C<virt-cat> is a command line tool to display the contents of C<file> where "
27211 "C<file> exists in the named virtual machine (or disk image)."
27212 msgstr ""
27213
27214 # type: textblock
27215 #: ../tools/virt-cat.pl:46
27216 msgid ""
27217 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
27218 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
27219 "tool."
27220 msgstr ""
27221
27222 # type: textblock
27223 #: ../tools/virt-cat.pl:52
27224 msgid ""
27225 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
27226 msgstr ""
27227
27228 # type: verbatim
27229 #: ../tools/virt-cat.pl:55
27230 #, no-wrap
27231 msgid ""
27232 " virt-cat mydomain /etc/fstab\n"
27233 "\n"
27234 msgstr ""
27235
27236 # type: textblock
27237 #: ../tools/virt-cat.pl:57
27238 msgid "List syslog messages from a VM:"
27239 msgstr ""
27240
27241 # type: verbatim
27242 #: ../tools/virt-cat.pl:59
27243 #, no-wrap
27244 msgid ""
27245 " virt-cat mydomain /var/log/messages | tail\n"
27246 "\n"
27247 msgstr ""
27248
27249 # type: textblock
27250 #: ../tools/virt-cat.pl:61
27251 msgid "Find out what DHCP IP address a VM acquired:"
27252 msgstr ""
27253
27254 # type: verbatim
27255 #: ../tools/virt-cat.pl:63
27256 #, no-wrap
27257 msgid ""
27258 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
27259 "\n"
27260 msgstr ""
27261
27262 # type: textblock
27263 #: ../tools/virt-cat.pl:65
27264 msgid "Find out what packages were recently installed:"
27265 msgstr ""
27266
27267 # type: verbatim
27268 #: ../tools/virt-cat.pl:67
27269 #, no-wrap
27270 msgid ""
27271 " virt-cat mydomain /var/log/yum.log | tail\n"
27272 "\n"
27273 msgstr ""
27274
27275 # type: textblock
27276 #: ../tools/virt-cat.pl:69
27277 msgid "Find out who is logged on inside a virtual machine:"
27278 msgstr ""
27279
27280 # type: verbatim
27281 #: ../tools/virt-cat.pl:71
27282 #, no-wrap
27283 msgid ""
27284 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
27285 " who /tmp/utmp\n"
27286 "\n"
27287 msgstr ""
27288
27289 # type: textblock
27290 #: ../tools/virt-cat.pl:74
27291 msgid "or who was logged on:"
27292 msgstr ""
27293
27294 # type: verbatim
27295 #: ../tools/virt-cat.pl:76
27296 #, no-wrap
27297 msgid ""
27298 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
27299 " last -f /tmp/wtmp\n"
27300 "\n"
27301 msgstr ""
27302
27303 # type: textblock
27304 #: ../tools/virt-cat.pl:187
27305 msgid ""
27306 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27307 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27308 msgstr ""
27309
27310 # type: textblock
27311 #: ../tools/virt-tar.pl:33
27312 msgid "virt-tar - Extract or upload files to a virtual machine"
27313 msgstr ""
27314
27315 # type: verbatim
27316 #: ../tools/virt-tar.pl:37
27317 #, no-wrap
27318 msgid ""
27319 " virt-tar [--options] -x domname directory tarball\n"
27320 "\n"
27321 msgstr ""
27322
27323 # type: verbatim
27324 #: ../tools/virt-tar.pl:39
27325 #, no-wrap
27326 msgid ""
27327 " virt-tar [--options] -u domname tarball directory\n"
27328 "\n"
27329 msgstr ""
27330
27331 # type: verbatim
27332 #: ../tools/virt-tar.pl:41
27333 #, no-wrap
27334 msgid ""
27335 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27336 "\n"
27337 msgstr ""
27338
27339 # type: verbatim
27340 #: ../tools/virt-tar.pl:43
27341 #, no-wrap
27342 msgid ""
27343 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27344 "\n"
27345 msgstr ""
27346
27347 # type: textblock
27348 #: ../tools/virt-tar.pl:47
27349 msgid "Download C</home> from the VM into a local tarball:"
27350 msgstr ""
27351
27352 # type: verbatim
27353 #: ../tools/virt-tar.pl:49
27354 #, no-wrap
27355 msgid ""
27356 " virt-tar -x domname /home home.tar\n"
27357 "\n"
27358 msgstr ""
27359
27360 # type: verbatim
27361 #: ../tools/virt-tar.pl:51
27362 #, no-wrap
27363 msgid ""
27364 " virt-tar -zx domname /home home.tar.gz\n"
27365 "\n"
27366 msgstr ""
27367
27368 # type: textblock
27369 #: ../tools/virt-tar.pl:53
27370 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27371 msgstr ""
27372
27373 # type: verbatim
27374 #: ../tools/virt-tar.pl:55
27375 #, no-wrap
27376 msgid ""
27377 " virt-tar -u domname uploadstuff.tar /tmp\n"
27378 "\n"
27379 msgstr ""
27380
27381 # type: verbatim
27382 #: ../tools/virt-tar.pl:57
27383 #, no-wrap
27384 msgid ""
27385 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27386 "\n"
27387 msgstr ""
27388
27389 # type: textblock
27390 #: ../tools/virt-tar.pl:61
27391 msgid ""
27392 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27393 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27394 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27395 msgstr ""
27396
27397 # type: textblock
27398 #: ../tools/virt-tar.pl:66
27399 msgid ""
27400 "You can use C<-x> (extract) on live virtual machines, but you might get "
27401 "inconsistent results or errors if there is filesystem activity inside the "
27402 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27403 "work, but the only way to guarantee consistent results is if the virtual "
27404 "machine is shut down."
27405 msgstr ""
27406
27407 # type: textblock
27408 #: ../tools/virt-tar.pl:74
27409 msgid ""
27410 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27411 "parts of a guest filesystem.  There are many possibilities: making backups, "
27412 "uploading data files, snooping on guest activity, fixing or customizing "
27413 "guests, etc."
27414 msgstr ""
27415
27416 # type: textblock
27417 #: ../tools/virt-tar.pl:79
27418 msgid ""
27419 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27420 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27421 "should look at the L<guestfish(1)> tool."
27422 msgstr ""
27423
27424 # type: textblock
27425 #: ../tools/virt-tar.pl:83
27426 msgid ""
27427 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27428 "its contents (recursively) from the virtual machine into a local tarball.  "
27429 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27430 "virtual machine.  You cannot use these two options together."
27431 msgstr ""
27432
27433 # type: textblock
27434 #: ../tools/virt-tar.pl:89
27435 msgid ""
27436 "In addition, you may need to use the C<-z> (gZip) option to enable "
27437 "compression.  When uploading, you have to specify C<-z> if the upload file "
27438 "is compressed because virt-tar won't detect this on its own."
27439 msgstr ""
27440
27441 # type: textblock
27442 #: ../tools/virt-tar.pl:93
27443 msgid ""
27444 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27445 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27446 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27447 "the L<libguestfs(3)> API)."
27448 msgstr ""
27449
27450 # type: =item
27451 #: ../tools/virt-tar.pl:151
27452 msgid "B<-x> | B<--extract> | B<--download>"
27453 msgstr ""
27454
27455 # type: =item
27456 #: ../tools/virt-tar.pl:153
27457 msgid "B<-u> | B<--upload>"
27458 msgstr ""
27459
27460 # type: textblock
27461 #: ../tools/virt-tar.pl:155
27462 msgid ""
27463 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27464 "local tarball."
27465 msgstr ""
27466
27467 # type: textblock
27468 #: ../tools/virt-tar.pl:158
27469 msgid ""
27470 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27471 "Please read the L</WARNING> section above before using this option."
27472 msgstr ""
27473
27474 # type: textblock
27475 #: ../tools/virt-tar.pl:162
27476 msgid "You must specify exactly one of these options."
27477 msgstr ""
27478
27479 # type: =item
27480 #: ../tools/virt-tar.pl:168
27481 msgid "B<-z> | B<--gzip>"
27482 msgstr ""
27483
27484 # type: textblock
27485 #: ../tools/virt-tar.pl:170
27486 msgid "Specify that the input or output tarball is gzip-compressed."
27487 msgstr ""
27488
27489 # type: textblock
27490 #: ../tools/virt-tar.pl:283
27491 msgid ""
27492 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
27493 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
27494 "org/>."
27495 msgstr ""
27496
27497 # type: textblock
27498 #: ../tools/virt-rescue.pl:33
27499 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27500 msgstr ""
27501
27502 # type: verbatim
27503 #: ../tools/virt-rescue.pl:37
27504 #, no-wrap
27505 msgid ""
27506 " virt-rescue [--options] domname\n"
27507 "\n"
27508 msgstr ""
27509
27510 # type: verbatim
27511 #: ../tools/virt-rescue.pl:39
27512 #, no-wrap
27513 msgid ""
27514 " virt-rescue [--options] disk.img [disk.img ...]\n"
27515 "\n"
27516 msgstr ""
27517
27518 # type: textblock
27519 #: ../tools/virt-rescue.pl:43
27520 msgid ""
27521 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27522 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27523 "you from doing this, but doesn't catch all cases."
27524 msgstr ""
27525
27526 # type: textblock
27527 #: ../tools/virt-rescue.pl:47
27528 msgid ""
27529 "However if you use the I<--ro> (read only) option, then you can attach a "
27530 "shell to a live virtual machine.  The results might be strange or "
27531 "inconsistent at times but you won't get disk corruption."
27532 msgstr ""
27533
27534 # type: textblock
27535 #: ../tools/virt-rescue.pl:53
27536 msgid ""
27537 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27538 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27539 "recovery tools which you can use to examine or rescue a virtual machine or "
27540 "disk image."
27541 msgstr ""
27542
27543 # type: textblock
27544 #: ../tools/virt-rescue.pl:58
27545 msgid ""
27546 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27547 "on disk image(s):"
27548 msgstr ""
27549
27550 # type: verbatim
27551 #: ../tools/virt-rescue.pl:61
27552 #, no-wrap
27553 msgid ""
27554 " virt-rescue GuestName\n"
27555 "\n"
27556 msgstr ""
27557
27558 # type: verbatim
27559 #: ../tools/virt-rescue.pl:63
27560 #, no-wrap
27561 msgid ""
27562 " virt-rescue --ro /path/to/disk.img\n"
27563 "\n"
27564 msgstr ""
27565
27566 # type: verbatim
27567 #: ../tools/virt-rescue.pl:65
27568 #, no-wrap
27569 msgid ""
27570 " virt-rescue /dev/sdc\n"
27571 "\n"
27572 msgstr ""
27573
27574 # type: textblock
27575 #: ../tools/virt-rescue.pl:67
27576 msgid "For live VMs you I<must> use the --ro option."
27577 msgstr ""
27578
27579 # type: textblock
27580 #: ../tools/virt-rescue.pl:69
27581 msgid ""
27582 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27583 "in an interactive bash shell where you can use many ordinary Linux "
27584 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27585 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27586 "is an empty directory called C</sysroot> where you can mount filesystems."
27587 msgstr ""
27588
27589 # type: textblock
27590 #: ../tools/virt-rescue.pl:76
27591 msgid ""
27592 "In the example below, we list logical volumes, then choose one to mount "
27593 "under C</sysroot>:"
27594 msgstr ""
27595
27596 # type: verbatim
27597 #: ../tools/virt-rescue.pl:79
27598 #, no-wrap
27599 msgid ""
27600 " ><rescue> lvs\n"
27601 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27602 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27603 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27604 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27605 " ><rescue> ls /sysroot\n"
27606 "\n"
27607 msgstr ""
27608
27609 # type: textblock
27610 #: ../tools/virt-rescue.pl:86
27611 msgid ""
27612 "If you don't know what filesystems are available on the virtual machine then "
27613 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27614 msgstr ""
27615
27616 # type: textblock
27617 #: ../tools/virt-rescue.pl:92
27618 msgid ""
27619 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27620 "virtual machine.  For example you can use it on a blank file if you want to "
27621 "partition that file (although we would recommend using L<guestfish(1)> "
27622 "instead as it is more suitable for this purpose).  You can even use virt-"
27623 "rescue on things like SD cards."
27624 msgstr ""
27625
27626 # type: textblock
27627 #: ../tools/virt-rescue.pl:98
27628 msgid ""
27629 "This tool is just designed for quick interactive hacking on a virtual "
27630 "machine.  For more structured access to a virtual machine disk image, you "
27631 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27632 "make scripted changes to guests, use L<guestfish(1)>."
27633 msgstr ""
27634
27635 # type: =item
27636 #: ../tools/virt-rescue.pl:127
27637 msgid "B<--append kernelopts>"
27638 msgstr ""
27639
27640 # type: textblock
27641 #: ../tools/virt-rescue.pl:129
27642 msgid "Pass additional options to the rescue kernel."
27643 msgstr ""
27644
27645 # type: =item
27646 #: ../tools/virt-rescue.pl:164
27647 msgid "B<--memsize MB> | B<-m MB>"
27648 msgstr ""
27649
27650 # type: textblock
27651 #: ../tools/virt-rescue.pl:166
27652 msgid ""
27653 "Change the amount of memory allocated to the rescue system.  The default is "
27654 "set by libguestfs and is small but adequate for running system tools.  The "
27655 "occasional program might need more memory.  The parameter is specified in "
27656 "megabytes."
27657 msgstr ""
27658
27659 # type: =item
27660 #: ../tools/virt-rescue.pl:175
27661 msgid "B<--network MB>"
27662 msgstr ""
27663
27664 # type: textblock
27665 #: ../tools/virt-rescue.pl:177
27666 msgid "Enable QEMU user networking in the guest."
27667 msgstr ""
27668
27669 # type: =item
27670 #: ../tools/virt-rescue.pl:183
27671 msgid "B<--ro> | B<-r>"
27672 msgstr ""
27673
27674 # type: textblock
27675 #: ../tools/virt-rescue.pl:185
27676 msgid "Open the image read-only."
27677 msgstr ""
27678
27679 # type: textblock
27680 #: ../tools/virt-rescue.pl:197
27681 msgid ""
27682 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
27683 "SELINUX> before using this option."
27684 msgstr ""
27685
27686 # type: textblock
27687 #: ../tools/virt-rescue.pl:257
27688 msgid ""
27689 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
27690 "ENVIRONMENT VARIABLES> for the complete list."
27691 msgstr ""
27692
27693 # type: textblock
27694 #: ../tools/virt-rescue.pl:269
27695 msgid ""
27696 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27697 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27698 msgstr ""
27699
27700 # type: textblock
27701 #: ../tools/virt-make-fs.pl:37
27702 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27703 msgstr ""
27704
27705 # type: verbatim
27706 #: ../tools/virt-make-fs.pl:41
27707 #, no-wrap
27708 msgid ""
27709 " virt-make-fs [--options] input.tar output.img\n"
27710 "\n"
27711 msgstr ""
27712
27713 # type: verbatim
27714 #: ../tools/virt-make-fs.pl:43
27715 #, no-wrap
27716 msgid ""
27717 " virt-make-fs [--options] input.tar.gz output.img\n"
27718 "\n"
27719 msgstr ""
27720
27721 # type: verbatim
27722 #: ../tools/virt-make-fs.pl:45
27723 #, no-wrap
27724 msgid ""
27725 " virt-make-fs [--options] directory output.img\n"
27726 "\n"
27727 msgstr ""
27728
27729 # type: textblock
27730 #: ../tools/virt-make-fs.pl:49
27731 msgid ""
27732 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27733 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
27734 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
27735 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
27736 "you want to attach these filesystems to existing virtual machines (eg. to "
27737 "import large amounts of read-only data to a VM)."
27738 msgstr ""
27739
27740 # type: textblock
27741 #: ../tools/virt-make-fs.pl:57
27742 msgid "Basic usage is:"
27743 msgstr ""
27744
27745 # type: verbatim
27746 #: ../tools/virt-make-fs.pl:59
27747 #, no-wrap
27748 msgid ""
27749 " virt-make-fs input output\n"
27750 "\n"
27751 msgstr ""
27752
27753 # type: textblock
27754 #: ../tools/virt-make-fs.pl:61
27755 msgid ""
27756 "where C<input> is either a directory containing files that you want to add, "
27757 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27758 "C<output> is a disk image.  The input type is detected automatically.  The "
27759 "output disk image defaults to a raw ext2 image unless you specify extra "
27760 "flags (see L</OPTIONS> below)."
27761 msgstr ""
27762
27763 # type: =head2
27764 #: ../tools/virt-make-fs.pl:67
27765 msgid "EXTRA SPACE"
27766 msgstr ""
27767
27768 # type: textblock
27769 #: ../tools/virt-make-fs.pl:69
27770 msgid ""
27771 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27772 "the files that it contains, but might have extra space.  Depending on how "
27773 "you are going to use the output, you might think this extra space is wasted "
27774 "and want to minimize it, or you might want to leave space so that more files "
27775 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27776 "but you can use the C<--size> flag to leave space in the filesystem if you "
27777 "want it."
27778 msgstr ""
27779
27780 # type: textblock
27781 #: ../tools/virt-make-fs.pl:77
27782 msgid ""
27783 "An alternative way to leave extra space but not make the output image any "
27784 "bigger is to use an alternative disk image format (instead of the default "
27785 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27786 "image format (check your hypervisor supports this before using it).  This "
27787 "allows you to choose a large C<--size> but the extra space won't actually be "
27788 "allocated in the image until you try to store something in it."
27789 msgstr ""
27790
27791 # type: textblock
27792 #: ../tools/virt-make-fs.pl:85
27793 msgid ""
27794 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27795 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
27796 "resize to build another image from scratch."
27797 msgstr ""
27798
27799 # type: =head3
27800 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
27801 #: ../tools/virt-make-fs.pl:142
27802 msgid "EXAMPLE"
27803 msgstr ""
27804
27805 # type: verbatim
27806 #: ../tools/virt-make-fs.pl:91
27807 #, no-wrap
27808 msgid ""
27809 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27810 "\n"
27811 msgstr ""
27812
27813 # type: =head2
27814 #: ../tools/virt-make-fs.pl:93
27815 msgid "FILESYSTEM TYPE"
27816 msgstr ""
27817
27818 # type: textblock
27819 #: ../tools/virt-make-fs.pl:95
27820 msgid ""
27821 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27822 "libguestfs supports can be used (but I<not> read-only formats like "
27823 "ISO9660).  Here are some of the more common choices:"
27824 msgstr ""
27825
27826 # type: =item
27827 #: ../tools/virt-make-fs.pl:101
27828 msgid "I<ext3>"
27829 msgstr ""
27830
27831 # type: textblock
27832 #: ../tools/virt-make-fs.pl:103
27833 msgid ""
27834 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27835 "you are not going to use the filesystem in a way that requires the journal, "
27836 "then this is just wasted overhead."
27837 msgstr ""
27838
27839 # type: =item
27840 #: ../tools/virt-make-fs.pl:107
27841 msgid "I<ntfs> or I<vfat>"
27842 msgstr ""
27843
27844 # type: textblock
27845 #: ../tools/virt-make-fs.pl:109
27846 msgid "Useful if exporting data to a Windows guest."
27847 msgstr ""
27848
27849 # type: textblock
27850 #: ../tools/virt-make-fs.pl:111
27851 msgid ""
27852 "I<Note for vfat>: The tar archive or local directory must only contain files "
27853 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27854 "program running within libguestfs is unable to change the ownership of non-"
27855 "root files, since vfat itself does not support this."
27856 msgstr ""
27857
27858 # type: =item
27859 #: ../tools/virt-make-fs.pl:116
27860 msgid "I<minix>"
27861 msgstr ""
27862
27863 # type: textblock
27864 #: ../tools/virt-make-fs.pl:118
27865 msgid ""
27866 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27867 "total filesystem size."
27868 msgstr ""
27869
27870 # type: verbatim
27871 #: ../tools/virt-make-fs.pl:125
27872 #, no-wrap
27873 msgid ""
27874 " virt-make-fs --type=minix input minixfs.img\n"
27875 "\n"
27876 msgstr ""
27877
27878 # type: =head2
27879 #: ../tools/virt-make-fs.pl:127
27880 msgid "TO PARTITION OR NOT TO PARTITION"
27881 msgstr ""
27882
27883 # type: textblock
27884 #: ../tools/virt-make-fs.pl:129
27885 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27886 msgstr ""
27887
27888 # type: textblock
27889 #: ../tools/virt-make-fs.pl:131
27890 msgid ""
27891 "Adding a partition can make the disk image more compatible with certain "
27892 "virtualized operating systems which don't expect to see a filesystem "
27893 "directly located on a block device (Linux doesn't care and will happily "
27894 "handle both types)."
27895 msgstr ""
27896
27897 # type: textblock
27898 #: ../tools/virt-make-fs.pl:136
27899 msgid ""
27900 "On the other hand, if you have a partition table then the output image is no "
27901 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27902 "directly on a partitioned disk image.  (However libguestfs tools such as "
27903 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27904 msgstr ""
27905
27906 # type: textblock
27907 #: ../tools/virt-make-fs.pl:144
27908 msgid "Add an MBR partition:"
27909 msgstr ""
27910
27911 # type: verbatim
27912 #: ../tools/virt-make-fs.pl:146
27913 #, no-wrap
27914 msgid ""
27915 " virt-make-fs --partition -- input disk.img\n"
27916 "\n"
27917 msgstr ""
27918
27919 # type: textblock
27920 #: ../tools/virt-make-fs.pl:148
27921 msgid ""
27922 "If the output disk image could be terabyte-sized or larger, it's better to "
27923 "use an EFI/GPT-compatible partition table:"
27924 msgstr ""
27925
27926 # type: verbatim
27927 #: ../tools/virt-make-fs.pl:151
27928 #, no-wrap
27929 msgid ""
27930 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27931 "\n"
27932 msgstr ""
27933
27934 # type: textblock
27935 #: ../tools/virt-make-fs.pl:179
27936 msgid "Enable debugging information."
27937 msgstr ""
27938
27939 # type: =item
27940 #: ../tools/virt-make-fs.pl:185
27941 msgid "B<--size=E<lt>NE<gt>>"
27942 msgstr ""
27943
27944 # type: =item
27945 #: ../tools/virt-make-fs.pl:187
27946 msgid "B<--size=+E<lt>NE<gt>>"
27947 msgstr ""
27948
27949 # type: =item
27950 #: ../tools/virt-make-fs.pl:189
27951 msgid "B<-s E<lt>NE<gt>>"
27952 msgstr ""
27953
27954 # type: =item
27955 #: ../tools/virt-make-fs.pl:191
27956 msgid "B<-s +E<lt>NE<gt>>"
27957 msgstr ""
27958
27959 # type: textblock
27960 #: ../tools/virt-make-fs.pl:193
27961 msgid ""
27962 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27963 msgstr ""
27964
27965 # type: textblock
27966 #: ../tools/virt-make-fs.pl:196
27967 msgid ""
27968 "If this option is I<not> given, then the output image will be just large "
27969 "enough to contain all the files, with not much wasted space."
27970 msgstr ""
27971
27972 # type: textblock
27973 #: ../tools/virt-make-fs.pl:199
27974 msgid ""
27975 "To choose a fixed size output disk, specify an absolute number followed by b/"
27976 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27977 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27978 "files, else you will get an error."
27979 msgstr ""
27980
27981 # type: textblock
27982 #: ../tools/virt-make-fs.pl:204
27983 msgid ""
27984 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
27985 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27986 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27987 "the input files, and (approximately) an extra 200 MB free space."
27988 msgstr ""
27989
27990 # type: textblock
27991 #: ../tools/virt-make-fs.pl:210
27992 msgid ""
27993 "Note that virt-make-fs estimates free space, and therefore will not produce "
27994 "filesystems containing precisely the free space requested.  (It is much more "
27995 "expensive and time-consuming to produce a filesystem which has precisely the "
27996 "desired free space)."
27997 msgstr ""
27998
27999 # type: =item
28000 #: ../tools/virt-make-fs.pl:219
28001 msgid "B<--format=E<lt>fmtE<gt>>"
28002 msgstr ""
28003
28004 # type: =item
28005 #: ../tools/virt-make-fs.pl:221
28006 msgid "B<-F E<lt>fmtE<gt>>"
28007 msgstr ""
28008
28009 # type: textblock
28010 #: ../tools/virt-make-fs.pl:223
28011 msgid "Choose the output disk image format."
28012 msgstr ""
28013
28014 # type: textblock
28015 #: ../tools/virt-make-fs.pl:225
28016 msgid "The default is C<raw> (raw disk image)."
28017 msgstr ""
28018
28019 # type: textblock
28020 #: ../tools/virt-make-fs.pl:227
28021 msgid ""
28022 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28023 "that would really make sense here is C<qcow2>."
28024 msgstr ""
28025
28026 # type: =item
28027 #: ../tools/virt-make-fs.pl:234
28028 msgid "B<--type=E<lt>fsE<gt>>"
28029 msgstr ""
28030
28031 # type: =item
28032 #: ../tools/virt-make-fs.pl:236
28033 msgid "B<-t E<lt>fsE<gt>>"
28034 msgstr ""
28035
28036 # type: textblock
28037 #: ../tools/virt-make-fs.pl:238
28038 msgid "Choose the output filesystem type."
28039 msgstr ""
28040
28041 # type: textblock
28042 #: ../tools/virt-make-fs.pl:240
28043 msgid "The default is C<ext2>."
28044 msgstr ""
28045
28046 # type: textblock
28047 #: ../tools/virt-make-fs.pl:242
28048 msgid ""
28049 "Any filesystem which is supported read-write by libguestfs can be used here."
28050 msgstr ""
28051
28052 # type: =item
28053 #: ../tools/virt-make-fs.pl:249
28054 msgid "B<--partition>"
28055 msgstr ""
28056
28057 # type: =item
28058 #: ../tools/virt-make-fs.pl:251
28059 msgid "B<--partition=E<lt>parttypeE<gt>>"
28060 msgstr ""
28061
28062 # type: textblock
28063 #: ../tools/virt-make-fs.pl:253
28064 msgid ""
28065 "If specified, this flag adds an MBR partition table to the output disk image."
28066 msgstr ""
28067
28068 # type: textblock
28069 #: ../tools/virt-make-fs.pl:256
28070 msgid ""
28071 "You can change the partition table type, eg. C<--partition=gpt> for large "
28072 "disks."
28073 msgstr ""
28074
28075 # type: textblock
28076 #: ../tools/virt-make-fs.pl:259
28077 msgid ""
28078 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28079 "might consider the next parameter to be the partition type.  For example:"
28080 msgstr ""
28081
28082 # type: verbatim
28083 #: ../tools/virt-make-fs.pl:263
28084 #, no-wrap
28085 msgid ""
28086 " virt-make-fs --partition input.tar ...\n"
28087 "\n"
28088 msgstr ""
28089
28090 # type: textblock
28091 #: ../tools/virt-make-fs.pl:265
28092 msgid ""
28093 "would cause virt-make-fs to think you wanted to use a partition type of "
28094 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28095 "dash) between options and the input file argument:"
28096 msgstr ""
28097
28098 # type: verbatim
28099 #: ../tools/virt-make-fs.pl:269
28100 #, no-wrap
28101 msgid ""
28102 " virt-make-fs --partition -- input.tar ...\n"
28103 "\n"
28104 msgstr ""
28105
28106 # type: textblock
28107 #: ../tools/virt-make-fs.pl:536
28108 msgid ""
28109 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28110 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28111 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28112 msgstr ""
28113
28114 # type: verbatim
28115 #: ../tools/virt-make-fs.pl:553
28116 #, no-wrap
28117 msgid ""
28118 " export LIBGUESTFS_DEBUG=1\n"
28119 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28120 "\n"
28121 msgstr ""
28122
28123 # type: textblock
28124 #: ../tools/virt-make-fs.pl:556
28125 msgid ""
28126 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28127 "redhat.com/>"
28128 msgstr ""
28129
28130 # type: textblock
28131 #: ../tools/virt-list-partitions.pl:32
28132 msgid ""
28133 "virt-list-partitions - List partitions in a virtual machine or disk image"
28134 msgstr ""
28135
28136 # type: verbatim
28137 #: ../tools/virt-list-partitions.pl:36
28138 #, no-wrap
28139 msgid ""
28140 " virt-list-partitions [--options] domname\n"
28141 "\n"
28142 msgstr ""
28143
28144 # type: verbatim
28145 #: ../tools/virt-list-partitions.pl:38
28146 #, no-wrap
28147 msgid ""
28148 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28149 "\n"
28150 msgstr ""
28151
28152 # type: textblock
28153 #: ../tools/virt-list-partitions.pl:42
28154 msgid ""
28155 "C<virt-list-partitions> is a command line tool to list the partitions that "
28156 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28157 "first step to using L<virt-resize(1)>."
28158 msgstr ""
28159
28160 # type: textblock
28161 #: ../tools/virt-list-partitions.pl:47
28162 msgid ""
28163 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28164 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28165 "> tool."
28166 msgstr ""
28167
28168 # type: =item
28169 #: ../tools/virt-list-partitions.pl:104
28170 msgid "B<-h> | B<--human-readable>"
28171 msgstr ""
28172
28173 # type: textblock
28174 #: ../tools/virt-list-partitions.pl:106
28175 msgid "Show sizes in human-readable form (eg. \"1G\")."
28176 msgstr ""
28177
28178 # type: textblock
28179 #: ../tools/virt-list-partitions.pl:114
28180 msgid ""
28181 "With this option, C<virt-list-partitions> displays the type and size of each "
28182 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28183 msgstr ""
28184
28185 # type: =item
28186 #: ../tools/virt-list-partitions.pl:121
28187 msgid "B<-t> | B<--total>"
28188 msgstr ""
28189
28190 # type: textblock
28191 #: ../tools/virt-list-partitions.pl:123
28192 msgid ""
28193 "Display the total size of each block device (as a separate row or rows)."
28194 msgstr ""
28195
28196 # type: textblock
28197 #: ../tools/virt-list-partitions.pl:256
28198 msgid ""
28199 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, L<virt-resize(1)"
28200 ">, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
28201 "libguestfs.org/>."
28202 msgstr ""