Fix networking in the appliance.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.5.23\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-10-22 23:11+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: ENCODING"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../inspector/virt-inspector.pl:36 ../tools/virt-edit.pl:31 ../tools/virt-win-reg.pl:34 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:31 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-cat.pl:30 ../tools/virt-tar.pl:30 ../tools/virt-rescue.pl:29 ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
21 msgid "utf8"
22 msgstr ""
23
24 # type: =head1
25 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pl:38 ../tools/virt-edit.pl:33 ../tools/virt-win-reg.pl:36 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:33 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-cat.pl:32 ../tools/virt-tar.pl:32 ../tools/virt-rescue.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr ""
28
29 # type: textblock
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
32 msgstr ""
33
34 # type: =head1
35 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pl:42 ../tools/virt-edit.pl:37 ../tools/virt-win-reg.pl:40 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:37 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-cat.pl:36 ../tools/virt-tar.pl:36 ../tools/virt-rescue.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
36 msgid "SYNOPSIS"
37 msgstr ""
38
39 # type: verbatim
40 #: ../src/guestfs.pod:9
41 #, no-wrap
42 msgid ""
43 " #include <guestfs.h>\n"
44 " \n"
45 msgstr ""
46
47 # type: verbatim
48 #: ../src/guestfs.pod:11
49 #, no-wrap
50 msgid ""
51 " guestfs_h *g = guestfs_create ();\n"
52 " guestfs_add_drive (g, \"guest.img\");\n"
53 " guestfs_launch (g);\n"
54 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
55 " guestfs_touch (g, \"/hello\");\n"
56 " guestfs_umount (g, \"/\");\n"
57 " guestfs_sync (g);\n"
58 " guestfs_close (g);\n"
59 "\n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:20
64 #, no-wrap
65 msgid ""
66 " cc prog.c -o prog -lguestfs\n"
67 "or:\n"
68 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
69 "\n"
70 msgstr ""
71
72 # type: =head1
73 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:16 ../inspector/virt-inspector.pl:48 ../tools/virt-edit.pl:51 ../tools/virt-win-reg.pl:64 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:43 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-cat.pl:42 ../tools/virt-tar.pl:73 ../tools/virt-rescue.pl:51 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 # type: textblock
78 #: ../src/guestfs.pod:26
79 msgid ""
80 "Libguestfs is a library for accessing and modifying guest disk images.  "
81 "Amongst the things this is good for: making batch configuration changes to "
82 "guests, getting disk used/free statistics (see also: virt-df), migrating "
83 "between virtualization systems (see also: virt-p2v), performing partial "
84 "backups, performing partial guest clones, cloning guests and changing "
85 "registry/UUID/hostname info, and much else besides."
86 msgstr ""
87
88 # type: textblock
89 #: ../src/guestfs.pod:34
90 msgid ""
91 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
92 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
93 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
94 "qcow2, vmdk."
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:39
99 msgid ""
100 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
101 "what filesystem is in each LV, etc.).  It can also run commands in the "
102 "context of the guest.  Also you can access filesystems over FUSE."
103 msgstr ""
104
105 # type: textblock
106 #: ../src/guestfs.pod:44
107 msgid ""
108 "Libguestfs is a library that can be linked with C and C++ management "
109 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
110 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
111 "line."
112 msgstr ""
113
114 # type: textblock
115 #: ../src/guestfs.pod:49
116 msgid ""
117 "You don't need to be root to use libguestfs, although obviously you do need "
118 "enough permissions to access the disk images."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:52
123 msgid ""
124 "Libguestfs is a large API because it can do many things.  For a gentle "
125 "introduction, please read the L</API OVERVIEW> section next."
126 msgstr ""
127
128 # type: =head1
129 #: ../src/guestfs.pod:55
130 msgid "API OVERVIEW"
131 msgstr ""
132
133 # type: textblock
134 #: ../src/guestfs.pod:57
135 msgid ""
136 "This section provides a gentler overview of the libguestfs API.  We also try "
137 "to group API calls together, where that may not be obvious from reading "
138 "about the individual calls in the main section of this manual."
139 msgstr ""
140
141 # type: =head2
142 #: ../src/guestfs.pod:62
143 msgid "HANDLES"
144 msgstr ""
145
146 # type: textblock
147 #: ../src/guestfs.pod:64
148 msgid ""
149 "Before you can use libguestfs calls, you have to create a handle.  Then you "
150 "must add at least one disk image to the handle, followed by launching the "
151 "handle, then performing whatever operations you want, and finally closing "
152 "the handle.  By convention we use the single letter C<g> for the name of the "
153 "handle variable, although of course you can use any name you want."
154 msgstr ""
155
156 # type: textblock
157 #: ../src/guestfs.pod:71
158 msgid "The general structure of all libguestfs-using programs looks like this:"
159 msgstr ""
160
161 # type: verbatim
162 #: ../src/guestfs.pod:74
163 #, no-wrap
164 msgid ""
165 " guestfs_h *g = guestfs_create ();\n"
166 " \n"
167 msgstr ""
168
169 # type: verbatim
170 #: ../src/guestfs.pod:76
171 #, no-wrap
172 msgid ""
173 " /* Call guestfs_add_drive additional times if there are\n"
174 "  * multiple disk images.\n"
175 "  */\n"
176 " guestfs_add_drive (g, \"guest.img\");\n"
177 " \n"
178 msgstr ""
179
180 # type: verbatim
181 #: ../src/guestfs.pod:81
182 #, no-wrap
183 msgid ""
184 " /* Most manipulation calls won't work until you've launched\n"
185 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
186 "  * and _before_ other commands.\n"
187 "  */\n"
188 " guestfs_launch (g);\n"
189 " \n"
190 msgstr ""
191
192 # type: verbatim
193 #: ../src/guestfs.pod:87
194 #, no-wrap
195 msgid ""
196 " /* Now you can examine what partitions, LVs etc are available.\n"
197 "  */\n"
198 " char **partitions = guestfs_list_partitions (g);\n"
199 " char **logvols = guestfs_lvs (g);\n"
200 " \n"
201 msgstr ""
202
203 # type: verbatim
204 #: ../src/guestfs.pod:92
205 #, no-wrap
206 msgid ""
207 " /* To access a filesystem in the image, you must mount it.\n"
208 "  */\n"
209 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
210 " \n"
211 msgstr ""
212
213 # type: verbatim
214 #: ../src/guestfs.pod:96
215 #, no-wrap
216 msgid ""
217 " /* Now you can perform filesystem actions on the guest\n"
218 "  * disk image.\n"
219 "  */\n"
220 " guestfs_touch (g, \"/hello\");\n"
221 " \n"
222 msgstr ""
223
224 # type: verbatim
225 #: ../src/guestfs.pod:101
226 #, no-wrap
227 msgid ""
228 " /* You only need to call guestfs_sync if you have made\n"
229 "  * changes to the guest image.  (But if you've made changes\n"
230 "  * then you *must* sync).  See also: guestfs_umount and\n"
231 "  * guestfs_umount_all calls.\n"
232 "  */\n"
233 " guestfs_sync (g);\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:108
239 #, no-wrap
240 msgid ""
241 " /* Close the handle 'g'. */\n"
242 " guestfs_close (g);\n"
243 "\n"
244 msgstr ""
245
246 # type: textblock
247 #: ../src/guestfs.pod:111
248 msgid ""
249 "The code above doesn't include any error checking.  In real code you should "
250 "check return values carefully for errors.  In general all functions that "
251 "return integers return C<-1> on error, and all functions that return "
252 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
253 "how to handle errors, and consult the documentation for each function call "
254 "below to see precisely how they return error indications."
255 msgstr ""
256
257 # type: =head2
258 #: ../src/guestfs.pod:119
259 msgid "DISK IMAGES"
260 msgstr ""
261
262 # type: textblock
263 #: ../src/guestfs.pod:121
264 msgid ""
265 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
266 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
267 "actual block device, or simply an empty file of zeroes that you have created "
268 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
269 "of these."
270 msgstr ""
271
272 # type: textblock
273 #: ../src/guestfs.pod:127
274 msgid ""
275 "The call you should use in modern code for adding drives is "
276 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
277 "specifying that the format is raw, do:"
278 msgstr ""
279
280 # type: verbatim
281 #: ../src/guestfs.pod:131
282 #, no-wrap
283 msgid ""
284 " guestfs_add_drive_opts (g, filename,\n"
285 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
286 "                         -1);\n"
287 "\n"
288 msgstr ""
289
290 # type: textblock
291 #: ../src/guestfs.pod:135
292 msgid "You can add a disk read-only using:"
293 msgstr ""
294
295 # type: verbatim
296 #: ../src/guestfs.pod:137
297 #, no-wrap
298 msgid ""
299 " guestfs_add_drive_opts (g, filename,\n"
300 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
301 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
302 "                         -1);\n"
303 "\n"
304 msgstr ""
305
306 # type: textblock
307 #: ../src/guestfs.pod:142
308 msgid ""
309 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
310 "libguestfs won't modify the file."
311 msgstr ""
312
313 # type: textblock
314 #: ../src/guestfs.pod:145
315 msgid ""
316 "Be extremely cautious if the disk image is in use, eg. if it is being used "
317 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
318 "corruption, but adding it read-only is safe."
319 msgstr ""
320
321 # type: textblock
322 #: ../src/guestfs.pod:149
323 msgid ""
324 "You must add at least one disk image, and you may add multiple disk images.  "
325 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
326 "first one you added), C</dev/sdb> (for the second one you added), etc."
327 msgstr ""
328
329 # type: textblock
330 #: ../src/guestfs.pod:154
331 msgid ""
332 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
333 "can call L</guestfs_list_devices> to get a list of the device names, in the "
334 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
335 msgstr ""
336
337 # type: =head2
338 #: ../src/guestfs.pod:159
339 msgid "MOUNTING"
340 msgstr ""
341
342 # type: textblock
343 #: ../src/guestfs.pod:161
344 msgid ""
345 "Before you can read or write files, create directories and so on in a disk "
346 "image that contains filesystems, you have to mount those filesystems using "
347 "L</guestfs_mount>.  If you already know that a disk image contains (for "
348 "example) one partition with a filesystem on that partition, then you can "
349 "mount it directly:"
350 msgstr ""
351
352 # type: verbatim
353 #: ../src/guestfs.pod:167
354 #, no-wrap
355 msgid ""
356 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
357 "\n"
358 msgstr ""
359
360 # type: textblock
361 #: ../src/guestfs.pod:169
362 msgid ""
363 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
364 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
365 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
366 msgstr ""
367
368 # type: textblock
369 #: ../src/guestfs.pod:173
370 msgid ""
371 "If you are given a disk image and you don't know what it contains then you "
372 "have to find out.  Libguestfs can do that too: use "
373 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
374 "and LVs, and either try mounting each to see what is mountable, or else "
375 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
376 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
377 "But you might find it easier to look at higher level programs built on top "
378 "of libguestfs, in particular L<virt-inspector(1)>."
379 msgstr ""
380
381 # type: textblock
382 #: ../src/guestfs.pod:183
383 msgid ""
384 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
385 "several other variations of the C<guestfs_mount_*> call."
386 msgstr ""
387
388 # type: =head2
389 #: ../src/guestfs.pod:186
390 msgid "FILESYSTEM ACCESS AND MODIFICATION"
391 msgstr ""
392
393 # type: textblock
394 #: ../src/guestfs.pod:188
395 msgid ""
396 "The majority of the libguestfs API consists of fairly low-level calls for "
397 "accessing and modifying the files, directories, symlinks etc on mounted "
398 "filesystems.  There are over a hundred such calls which you can find listed "
399 "in detail below in this man page, and we don't even pretend to cover them "
400 "all in this overview."
401 msgstr ""
402
403 # type: textblock
404 #: ../src/guestfs.pod:194
405 msgid ""
406 "Specify filenames as full paths, starting with C<\"/\"> and including the "
407 "mount point."
408 msgstr ""
409
410 # type: textblock
411 #: ../src/guestfs.pod:197
412 msgid ""
413 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
414 "the file called C<\"etc/passwd\"> then you could do:"
415 msgstr ""
416
417 # type: verbatim
418 #: ../src/guestfs.pod:200
419 #, no-wrap
420 msgid ""
421 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
422 "\n"
423 msgstr ""
424
425 # type: textblock
426 #: ../src/guestfs.pod:202
427 msgid ""
428 "This would return C<data> as a newly allocated buffer containing the full "
429 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
430 "or C<NULL> if there was an error."
431 msgstr ""
432
433 # type: textblock
434 #: ../src/guestfs.pod:206
435 msgid ""
436 "As another example, to create a top-level directory on that filesystem "
437 "called C<\"var\"> you would do:"
438 msgstr ""
439
440 # type: verbatim
441 #: ../src/guestfs.pod:209
442 #, no-wrap
443 msgid ""
444 " guestfs_mkdir (g, \"/var\");\n"
445 "\n"
446 msgstr ""
447
448 # type: textblock
449 #: ../src/guestfs.pod:211
450 msgid "To create a symlink you could do:"
451 msgstr ""
452
453 # type: verbatim
454 #: ../src/guestfs.pod:213
455 #, no-wrap
456 msgid ""
457 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
458 "               \"/etc/rc3.d/S30portmap\");\n"
459 "\n"
460 msgstr ""
461
462 # type: textblock
463 #: ../src/guestfs.pod:216
464 msgid ""
465 "Libguestfs will reject attempts to use relative paths and there is no "
466 "concept of a current working directory."
467 msgstr ""
468
469 # type: textblock
470 #: ../src/guestfs.pod:219
471 msgid ""
472 "Libguestfs can return errors in many situations: for example if the "
473 "filesystem isn't writable, or if a file or directory that you requested "
474 "doesn't exist.  If you are using the C API (documented here)  you have to "
475 "check for those error conditions after each call.  (Other language bindings "
476 "turn these errors into exceptions)."
477 msgstr ""
478
479 # type: textblock
480 #: ../src/guestfs.pod:225
481 msgid ""
482 "File writes are affected by the per-handle umask, set by calling "
483 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
484 msgstr ""
485
486 # type: =head2
487 #: ../src/guestfs.pod:228
488 msgid "PARTITIONING"
489 msgstr ""
490
491 # type: textblock
492 #: ../src/guestfs.pod:230
493 msgid ""
494 "Libguestfs contains API calls to read, create and modify partition tables on "
495 "disk images."
496 msgstr ""
497
498 # type: textblock
499 #: ../src/guestfs.pod:233
500 msgid ""
501 "In the common case where you want to create a single partition covering the "
502 "whole disk, you should use the L</guestfs_part_disk> call:"
503 msgstr ""
504
505 # type: verbatim
506 #: ../src/guestfs.pod:237
507 #, no-wrap
508 msgid ""
509 " const char *parttype = \"mbr\";\n"
510 " if (disk_is_larger_than_2TB)\n"
511 "   parttype = \"gpt\";\n"
512 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
513 "\n"
514 msgstr ""
515
516 # type: textblock
517 #: ../src/guestfs.pod:242
518 msgid ""
519 "Obviously this effectively wipes anything that was on that disk image "
520 "before."
521 msgstr ""
522
523 # type: =head2
524 #: ../src/guestfs.pod:245
525 msgid "LVM2"
526 msgstr ""
527
528 # type: textblock
529 #: ../src/guestfs.pod:247
530 msgid ""
531 "Libguestfs provides access to a large part of the LVM2 API, such as "
532 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
533 "unless you familiarize yourself with the concepts of physical volumes, "
534 "volume groups and logical volumes."
535 msgstr ""
536
537 # type: textblock
538 #: ../src/guestfs.pod:252
539 msgid ""
540 "This author strongly recommends reading the LVM HOWTO, online at "
541 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
542 msgstr ""
543
544 # type: =head2
545 #: ../src/guestfs.pod:255
546 msgid "DOWNLOADING"
547 msgstr ""
548
549 # type: textblock
550 #: ../src/guestfs.pod:257
551 msgid ""
552 "Use L</guestfs_cat> to download small, text only files.  This call is "
553 "limited to files which are less than 2 MB and which cannot contain any ASCII "
554 "NUL (C<\\0>) characters.  However it has a very simple to use API."
555 msgstr ""
556
557 # type: textblock
558 #: ../src/guestfs.pod:262
559 msgid ""
560 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
561 "bit data, since it returns a (pointer, size) pair.  However it is still "
562 "limited to \"small\" files, less than 2 MB."
563 msgstr ""
564
565 # type: textblock
566 #: ../src/guestfs.pod:266
567 msgid ""
568 "L</guestfs_download> can be used to download any file, with no limits on "
569 "content or size (even files larger than 4 GB)."
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:269
574 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
575 msgstr ""
576
577 # type: =head2
578 #: ../src/guestfs.pod:272
579 msgid "UPLOADING"
580 msgstr ""
581
582 # type: textblock
583 #: ../src/guestfs.pod:274
584 msgid ""
585 "It's often the case that you want to write a file or files to the disk "
586 "image."
587 msgstr ""
588
589 # type: textblock
590 #: ../src/guestfs.pod:277
591 msgid ""
592 "To write a small file with fixed content, use L</guestfs_write>.  To create "
593 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
594 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
595 "variety of other functions for creating test files, for example "
596 "L</guestfs_fill> and L</guestfs_fill_pattern>."
597 msgstr ""
598
599 # type: textblock
600 #: ../src/guestfs.pod:283
601 msgid ""
602 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
603 "file content or size (even files larger than 4 GB)."
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:286
608 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
609 msgstr ""
610
611 # type: textblock
612 #: ../src/guestfs.pod:288
613 msgid ""
614 "However the fastest way to upload I<large numbers of arbitrary files> is to "
615 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
616 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
617 "the drive in a predictable way (eg. adding it last after all other drives) "
618 "then you can get the device name from L</guestfs_list_devices> and mount it "
619 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
620 "sometimes non-portable between kernel versions, and they don't support "
621 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
622 "using a label or UUID, use an ISO image instead."
623 msgstr ""
624
625 # type: =head2
626 #: ../src/guestfs.pod:299
627 msgid "COPYING"
628 msgstr ""
629
630 # type: textblock
631 #: ../src/guestfs.pod:301
632 msgid ""
633 "There are various different commands for copying between files and devices "
634 "and in and out of the guest filesystem.  These are summarised in the table "
635 "below."
636 msgstr ""
637
638 # type: =item
639 #: ../src/guestfs.pod:307
640 msgid "B<file> to B<file>"
641 msgstr ""
642
643 # type: textblock
644 #: ../src/guestfs.pod:309
645 msgid ""
646 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
647 "directories recursively."
648 msgstr ""
649
650 # type: =item
651 #: ../src/guestfs.pod:312
652 msgid "B<file or device> to B<file or device>"
653 msgstr ""
654
655 # type: textblock
656 #: ../src/guestfs.pod:314
657 msgid ""
658 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
659 "devices in the guest."
660 msgstr ""
661
662 # type: textblock
663 #: ../src/guestfs.pod:317
664 msgid "Example: duplicate the contents of an LV:"
665 msgstr ""
666
667 # type: verbatim
668 #: ../src/guestfs.pod:319
669 #, no-wrap
670 msgid ""
671 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
672 "\n"
673 msgstr ""
674
675 # type: textblock
676 #: ../src/guestfs.pod:321
677 msgid ""
678 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
679 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
680 "L</guestfs_copy_size>."
681 msgstr ""
682
683 # type: =item
684 #: ../src/guestfs.pod:325
685 msgid "B<file on the host> to B<file or device>"
686 msgstr ""
687
688 # type: textblock
689 #: ../src/guestfs.pod:327
690 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
691 msgstr ""
692
693 # type: =item
694 #: ../src/guestfs.pod:329
695 msgid "B<file or device> to B<file on the host>"
696 msgstr ""
697
698 # type: textblock
699 #: ../src/guestfs.pod:331
700 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
701 msgstr ""
702
703 # type: =head2
704 #: ../src/guestfs.pod:335
705 msgid "LISTING FILES"
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:337
710 msgid ""
711 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
712 "L<guestfish(1)>-equivalent command C<ll>)."
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:340
717 msgid ""
718 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
719 "programs, as a flat list of strings."
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:343
724 msgid ""
725 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
726 "directory, plus additional information about each one.  It is more "
727 "equivalent to using the L<readdir(3)> call on a local filesystem."
728 msgstr ""
729
730 # type: textblock
731 #: ../src/guestfs.pod:347
732 msgid ""
733 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
734 "files."
735 msgstr ""
736
737 # type: =head2
738 #: ../src/guestfs.pod:350
739 msgid "RUNNING COMMANDS"
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:352
744 msgid ""
745 "Although libguestfs is primarily an API for manipulating files inside guest "
746 "images, we also provide some limited facilities for running commands inside "
747 "guests."
748 msgstr ""
749
750 # type: textblock
751 #: ../src/guestfs.pod:356
752 msgid "There are many limitations to this:"
753 msgstr ""
754
755 # type: =item
756 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370 ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:1140 ../src/guestfs.pod:1145 ../src/guestfs.pod:1149 ../src/guestfs.pod:1365 ../src/guestfs.pod:1370 ../src/guestfs.pod:1374 ../src/guestfs.pod:1476 ../src/guestfs.pod:1480 ../src/guestfs.pod:1484 ../src/guestfs.pod:1489 ../src/guestfs.pod:1497 ../src/guestfs.pod:1516 ../src/guestfs.pod:1524 ../src/guestfs.pod:1754 ../src/guestfs.pod:1760 ../src/guestfs.pod:1765 ../src/guestfs.pod:1771 ../src/guestfs.pod:1878 ../src/guestfs.pod:1882 ../src/guestfs.pod:1886 ../src/guestfs.pod:1890 ../src/guestfs-actions.pod:14 ../src/guestfs-actions.pod:21 ../src/guestfs-actions.pod:438 ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:460 ../src/guestfs-actions.pod:1351 ../src/guestfs-actions.pod:1355 ../src/guestfs-actions.pod:1359 ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1529 ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1595 ../fish/guestfish.pod:364 ../fish/guestfish.pod:368 ../fish/guestfish.pod:372 ../fish/guestfish.pod:376 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:339 ../fish/guestfish-actions.pod:347 ../fish/guestfish-actions.pod:354 ../fish/guestfish-actions.pod:361 ../fish/guestfish-actions.pod:1056 ../fish/guestfish-actions.pod:1060 ../fish/guestfish-actions.pod:1064 ../fish/guestfish-actions.pod:1068 ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098 ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1196 ../fish/guestfish-actions.pod:1201 ../fish/guestfish-actions.pod:1206 ../fish/guestfish-actions.pod:1248 ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1257 ../tools/virt-df.pl:161 ../tools/virt-df.pl:167 ../tools/virt-resize.pl:348 ../tools/virt-resize.pl:353 ../tools/virt-resize.pl:363
757 msgid "*"
758 msgstr ""
759
760 # type: textblock
761 #: ../src/guestfs.pod:362
762 msgid ""
763 "The kernel version that the command runs under will be different from what "
764 "it expects."
765 msgstr ""
766
767 # type: textblock
768 #: ../src/guestfs.pod:367
769 msgid ""
770 "If the command needs to communicate with daemons, then most likely they "
771 "won't be running."
772 msgstr ""
773
774 # type: textblock
775 #: ../src/guestfs.pod:372
776 msgid "The command will be running in limited memory."
777 msgstr ""
778
779 # type: textblock
780 #: ../src/guestfs.pod:376
781 msgid ""
782 "The network may not be available unless you enable it (see "
783 "L</guestfs_set_network>)."
784 msgstr ""
785
786 # type: textblock
787 #: ../src/guestfs.pod:381
788 msgid "Only supports Linux guests (not Windows, BSD, etc)."
789 msgstr ""
790
791 # type: textblock
792 #: ../src/guestfs.pod:385
793 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
794 msgstr ""
795
796 # type: textblock
797 #: ../src/guestfs.pod:390
798 msgid ""
799 "For SELinux guests, you may need to enable SELinux and load policy first.  "
800 "See L</SELINUX> in this manpage."
801 msgstr ""
802
803 # type: textblock
804 #: ../src/guestfs.pod:395
805 msgid ""
806 "The two main API calls to run commands are L</guestfs_command> and "
807 "L</guestfs_sh> (there are also variations)."
808 msgstr ""
809
810 # type: textblock
811 #: ../src/guestfs.pod:398
812 msgid ""
813 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
814 "shell globs, redirections, etc will work."
815 msgstr ""
816
817 # type: =head2
818 #: ../src/guestfs.pod:401
819 msgid "CONFIGURATION FILES"
820 msgstr ""
821
822 # type: textblock
823 #: ../src/guestfs.pod:403
824 msgid ""
825 "To read and write configuration files in Linux guest filesystems, we "
826 "strongly recommend using Augeas.  For example, Augeas understands how to "
827 "read and write, say, a Linux shadow password file or X.org configuration "
828 "file, and so avoids you having to write that code."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:408
833 msgid ""
834 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
835 "document Augeas itself here because there is excellent documentation on the "
836 "L<http://augeas.net/> website."
837 msgstr ""
838
839 # type: textblock
840 #: ../src/guestfs.pod:412
841 msgid ""
842 "If you don't want to use Augeas (you fool!) then try calling "
843 "L</guestfs_read_lines> to get the file as a list of lines which you can "
844 "iterate over."
845 msgstr ""
846
847 # type: =head2
848 #: ../src/guestfs.pod:416
849 msgid "SELINUX"
850 msgstr ""
851
852 # type: textblock
853 #: ../src/guestfs.pod:418
854 msgid ""
855 "We support SELinux guests.  To ensure that labeling happens correctly in "
856 "SELinux guests, you need to enable SELinux and load the guest's policy:"
857 msgstr ""
858
859 # type: =item
860 #: ../src/guestfs.pod:424
861 msgid "1."
862 msgstr ""
863
864 # type: textblock
865 #: ../src/guestfs.pod:426
866 msgid "Before launching, do:"
867 msgstr ""
868
869 # type: verbatim
870 #: ../src/guestfs.pod:428
871 #, no-wrap
872 msgid ""
873 " guestfs_set_selinux (g, 1);\n"
874 "\n"
875 msgstr ""
876
877 # type: =item
878 #: ../src/guestfs.pod:430
879 msgid "2."
880 msgstr ""
881
882 # type: textblock
883 #: ../src/guestfs.pod:432
884 msgid ""
885 "After mounting the guest's filesystem(s), load the policy.  This is best "
886 "done by running the L<load_policy(8)> command in the guest itself:"
887 msgstr ""
888
889 # type: verbatim
890 #: ../src/guestfs.pod:436
891 #, no-wrap
892 msgid ""
893 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
894 "\n"
895 msgstr ""
896
897 # type: textblock
898 #: ../src/guestfs.pod:438
899 msgid ""
900 "(Older versions of C<load_policy> require you to specify the name of the "
901 "policy file)."
902 msgstr ""
903
904 # type: =item
905 #: ../src/guestfs.pod:441
906 msgid "3."
907 msgstr ""
908
909 # type: textblock
910 #: ../src/guestfs.pod:443
911 msgid ""
912 "Optionally, set the security context for the API.  The correct security "
913 "context to use can only be known by inspecting the guest.  As an example:"
914 msgstr ""
915
916 # type: verbatim
917 #: ../src/guestfs.pod:447
918 #, no-wrap
919 msgid ""
920 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
921 "\n"
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:451
926 msgid "This will work for running commands and editing existing files."
927 msgstr ""
928
929 # type: textblock
930 #: ../src/guestfs.pod:453
931 msgid ""
932 "When new files are created, you may need to label them explicitly, for "
933 "example by running the external command C<restorecon pathname>."
934 msgstr ""
935
936 # type: =head2
937 #: ../src/guestfs.pod:457
938 msgid "UMASK"
939 msgstr ""
940
941 # type: textblock
942 #: ../src/guestfs.pod:459
943 msgid ""
944 "Certain calls are affected by the current file mode creation mask (the "
945 "\"umask\").  In particular ones which create files or directories, such as "
946 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
947 "either the default mode that the file is created with or modifies the mode "
948 "that you supply."
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:465
953 msgid ""
954 "The default umask is C<022>, so files are created with modes such as C<0644> "
955 "and directories with C<0755>."
956 msgstr ""
957
958 # type: textblock
959 #: ../src/guestfs.pod:468
960 msgid ""
961 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
962 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
963 "L</guestfs_chmod> after creating each file or directory."
964 msgstr ""
965
966 # type: textblock
967 #: ../src/guestfs.pod:472
968 msgid "For more information about umask, see L<umask(2)>."
969 msgstr ""
970
971 # type: =head1
972 #: ../src/guestfs.pod:474 ../fish/guestfish.pod:630
973 msgid "ENCRYPTED DISKS"
974 msgstr ""
975
976 # type: textblock
977 #: ../src/guestfs.pod:476
978 msgid ""
979 "Libguestfs allows you to access Linux guests which have been encrypted using "
980 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
981 "standard.  This includes nearly all whole disk encryption systems used by "
982 "modern Linux guests."
983 msgstr ""
984
985 # type: textblock
986 #: ../src/guestfs.pod:482
987 msgid ""
988 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
989 "returns the string C<crypto_LUKS>)."
990 msgstr ""
991
992 # type: textblock
993 #: ../src/guestfs.pod:485
994 msgid ""
995 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
996 "will require the passphrase!"
997 msgstr ""
998
999 # type: textblock
1000 #: ../src/guestfs.pod:488
1001 msgid ""
1002 "Opening a LUKS device creates a new device mapper device called "
1003 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1004 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1005 "decrypted from and encrypted to the underlying block device respectively."
1006 msgstr ""
1007
1008 # type: textblock
1009 #: ../src/guestfs.pod:494
1010 msgid ""
1011 "LVM volume groups on the device can be made visible by calling "
1012 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1013 "volume(s) can now be mounted in the usual way."
1014 msgstr ""
1015
1016 # type: textblock
1017 #: ../src/guestfs.pod:498
1018 msgid ""
1019 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1020 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1021 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1022 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1023 "underlying encrypted block device)."
1024 msgstr ""
1025
1026 # type: =head2
1027 #: ../src/guestfs.pod:505
1028 msgid "INSPECTION"
1029 msgstr ""
1030
1031 # type: textblock
1032 #: ../src/guestfs.pod:507
1033 msgid ""
1034 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1035 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1036 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1037 "frequently used part of this library has been rewritten in C and moved into "
1038 "the core code)."
1039 msgstr ""
1040
1041 # type: textblock
1042 #: ../src/guestfs.pod:513
1043 msgid ""
1044 "Add all disks belonging to the unknown virtual machine and call "
1045 "L</guestfs_launch> in the usual way."
1046 msgstr ""
1047
1048 # type: textblock
1049 #: ../src/guestfs.pod:516
1050 msgid ""
1051 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1052 "and certain heuristics, and returns a list of operating systems that were "
1053 "found.  An empty list means none were found.  A single element is the root "
1054 "filesystem of the operating system.  For dual- or multi-boot guests, "
1055 "multiple roots can be returned, each one corresponding to a separate "
1056 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1057 "world of virtualization, but since this scenario can happen, we have built "
1058 "libguestfs to deal with it.)"
1059 msgstr ""
1060
1061 # type: textblock
1062 #: ../src/guestfs.pod:525
1063 msgid ""
1064 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1065 "to get additional details about that operating system.  For example, call "
1066 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1067 "Windows and Linux-based operating systems respectively."
1068 msgstr ""
1069
1070 # type: textblock
1071 #: ../src/guestfs.pod:531
1072 msgid ""
1073 "Un*x-like and Linux-based operating systems usually consist of several "
1074 "filesystems which are mounted at boot time (for example, a separate boot "
1075 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1076 "filesystems correspond to mount points.  Call "
1077 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1078 "hash table like this example:"
1079 msgstr ""
1080
1081 # type: verbatim
1082 #: ../src/guestfs.pod:538
1083 #, no-wrap
1084 msgid ""
1085 " /boot => /dev/sda1\n"
1086 " /     => /dev/vg_guest/lv_root\n"
1087 " /usr  => /dev/vg_guest/lv_usr\n"
1088 "\n"
1089 msgstr ""
1090
1091 # type: textblock
1092 #: ../src/guestfs.pod:542
1093 msgid ""
1094 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1095 "filesystems as suggested."
1096 msgstr ""
1097
1098 # type: textblock
1099 #: ../src/guestfs.pod:545
1100 msgid ""
1101 "Be careful to mount filesystems in the right order (eg. C</> before "
1102 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1103 "work."
1104 msgstr ""
1105
1106 # type: textblock
1107 #: ../src/guestfs.pod:549
1108 msgid ""
1109 "Inspection currently only works for some common operating systems.  "
1110 "Contributors are welcome to send patches for other operating systems that we "
1111 "currently cannot detect."
1112 msgstr ""
1113
1114 # type: textblock
1115 #: ../src/guestfs.pod:553
1116 msgid ""
1117 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1118 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1119 "encrypted devices."
1120 msgstr ""
1121
1122 # type: textblock
1123 #: ../src/guestfs.pod:557
1124 msgid ""
1125 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1126 "inspection and caches the results in the guest handle.  Subsequent calls to "
1127 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1128 "re-read the disks.  If you change the content of the guest disks, you can "
1129 "redo inspection by calling L</guestfs_inspect_os> again."
1130 msgstr ""
1131
1132 # type: =head2
1133 #: ../src/guestfs.pod:564
1134 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1135 msgstr ""
1136
1137 # type: textblock
1138 #: ../src/guestfs.pod:566
1139 msgid ""
1140 "Libguestfs can mount NTFS partitions.  It does this using the "
1141 "L<http://www.ntfs-3g.org/> driver."
1142 msgstr ""
1143
1144 # type: textblock
1145 #: ../src/guestfs.pod:569
1146 msgid ""
1147 "DOS and Windows still use drive letters, and the filesystems are always "
1148 "treated as case insensitive by Windows itself, and therefore you might find "
1149 "a Windows configuration file referring to a path like "
1150 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1151 "that directory might be referred to as C</WINDOWS/System32>."
1152 msgstr ""
1153
1154 # type: textblock
1155 #: ../src/guestfs.pod:575
1156 msgid ""
1157 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1158 "libguestfs to read the appropriate Windows Registry and configuration files, "
1159 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1160 "L<virt-inspector(1)>)."
1161 msgstr ""
1162
1163 # type: textblock
1164 #: ../src/guestfs.pod:580
1165 msgid ""
1166 "Replacing backslash characters with forward slash characters is also outside "
1167 "the scope of libguestfs, but something that you can easily do."
1168 msgstr ""
1169
1170 # type: textblock
1171 #: ../src/guestfs.pod:583
1172 msgid ""
1173 "Where we can help is in resolving the case insensitivity of paths.  For "
1174 "this, call L</guestfs_case_sensitive_path>."
1175 msgstr ""
1176
1177 # type: textblock
1178 #: ../src/guestfs.pod:586
1179 msgid ""
1180 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1181 "files, through the library C<hivex> which is part of the libguestfs project "
1182 "although ships as a separate tarball.  You have to locate and download the "
1183 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1184 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1185 "L<virt-win-reg(1)> for more help on this issue."
1186 msgstr ""
1187
1188 # type: =head2
1189 #: ../src/guestfs.pod:594
1190 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1191 msgstr ""
1192
1193 # type: textblock
1194 #: ../src/guestfs.pod:596
1195 msgid ""
1196 "Although we don't want to discourage you from using the C API, we will "
1197 "mention here that the same API is also available in other languages."
1198 msgstr ""
1199
1200 # type: textblock
1201 #: ../src/guestfs.pod:599
1202 msgid ""
1203 "The API is broadly identical in all supported languages.  This means that "
1204 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1205 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1206 "words, a straightforward, predictable isomorphism between each language."
1207 msgstr ""
1208
1209 # type: textblock
1210 #: ../src/guestfs.pod:605
1211 msgid ""
1212 "Error messages are automatically transformed into exceptions if the language "
1213 "supports it."
1214 msgstr ""
1215
1216 # type: textblock
1217 #: ../src/guestfs.pod:608
1218 msgid ""
1219 "We don't try to \"object orientify\" parts of the API in OO languages, "
1220 "although contributors are welcome to write higher level APIs above what we "
1221 "provide in their favourite languages if they wish."
1222 msgstr ""
1223
1224 # type: =item
1225 #: ../src/guestfs.pod:614
1226 msgid "B<C++>"
1227 msgstr ""
1228
1229 # type: textblock
1230 #: ../src/guestfs.pod:616
1231 msgid ""
1232 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1233 "identical to the C API.  C++ classes and exceptions are not used."
1234 msgstr ""
1235
1236 # type: =item
1237 #: ../src/guestfs.pod:620
1238 msgid "B<C#>"
1239 msgstr ""
1240
1241 # type: textblock
1242 #: ../src/guestfs.pod:622
1243 msgid ""
1244 "The C# bindings are highly experimental.  Please read the warnings at the "
1245 "top of C<csharp/Libguestfs.cs>."
1246 msgstr ""
1247
1248 # type: =item
1249 #: ../src/guestfs.pod:625
1250 msgid "B<Haskell>"
1251 msgstr ""
1252
1253 # type: textblock
1254 #: ../src/guestfs.pod:627
1255 msgid ""
1256 "This is the only language binding that is working but incomplete.  Only "
1257 "calls which return simple integers have been bound in Haskell, and we are "
1258 "looking for help to complete this binding."
1259 msgstr ""
1260
1261 # type: =item
1262 #: ../src/guestfs.pod:631
1263 msgid "B<Java>"
1264 msgstr ""
1265
1266 # type: textblock
1267 #: ../src/guestfs.pod:633
1268 msgid ""
1269 "Full documentation is contained in the Javadoc which is distributed with "
1270 "libguestfs."
1271 msgstr ""
1272
1273 # type: =item
1274 #: ../src/guestfs.pod:636
1275 msgid "B<OCaml>"
1276 msgstr ""
1277
1278 # type: textblock
1279 #: ../src/guestfs.pod:638
1280 msgid "For documentation see the file C<guestfs.mli>."
1281 msgstr ""
1282
1283 # type: =item
1284 #: ../src/guestfs.pod:640
1285 msgid "B<Perl>"
1286 msgstr ""
1287
1288 # type: textblock
1289 #: ../src/guestfs.pod:642
1290 msgid "For documentation see L<Sys::Guestfs(3)>."
1291 msgstr ""
1292
1293 # type: =item
1294 #: ../src/guestfs.pod:644
1295 msgid "B<PHP>"
1296 msgstr ""
1297
1298 # type: textblock
1299 #: ../src/guestfs.pod:646
1300 msgid ""
1301 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1302 "the php-libguestfs package for your distribution."
1303 msgstr ""
1304
1305 # type: textblock
1306 #: ../src/guestfs.pod:649
1307 msgid "The PHP binding only works correctly on 64 bit machines."
1308 msgstr ""
1309
1310 # type: =item
1311 #: ../src/guestfs.pod:651
1312 msgid "B<Python>"
1313 msgstr ""
1314
1315 # type: textblock
1316 #: ../src/guestfs.pod:653
1317 msgid "For documentation do:"
1318 msgstr ""
1319
1320 # type: verbatim
1321 #: ../src/guestfs.pod:655
1322 #, no-wrap
1323 msgid ""
1324 " $ python\n"
1325 " >>> import guestfs\n"
1326 " >>> help (guestfs)\n"
1327 "\n"
1328 msgstr ""
1329
1330 # type: =item
1331 #: ../src/guestfs.pod:659
1332 msgid "B<Ruby>"
1333 msgstr ""
1334
1335 # type: textblock
1336 #: ../src/guestfs.pod:661
1337 msgid ""
1338 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1339 "can find examples written in Ruby in the libguestfs source."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:664
1344 msgid "B<shell scripts>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:666
1349 msgid "For documentation see L<guestfish(1)>."
1350 msgstr ""
1351
1352 # type: =head2
1353 #: ../src/guestfs.pod:670
1354 msgid "LIBGUESTFS GOTCHAS"
1355 msgstr ""
1356
1357 # type: textblock
1358 #: ../src/guestfs.pod:672
1359 msgid ""
1360 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1361 "system [...] that works in the way it is documented but is counterintuitive "
1362 "and almost invites mistakes.\""
1363 msgstr ""
1364
1365 # type: textblock
1366 #: ../src/guestfs.pod:676
1367 msgid ""
1368 "Since we developed libguestfs and the associated tools, there are several "
1369 "things we would have designed differently, but are now stuck with for "
1370 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1371 "release, you can expect these to change.  Beware of them."
1372 msgstr ""
1373
1374 # type: =item
1375 #: ../src/guestfs.pod:684
1376 msgid "Autosync / forgetting to sync."
1377 msgstr ""
1378
1379 # type: textblock
1380 #: ../src/guestfs.pod:686
1381 msgid ""
1382 "When modifying a filesystem from C or another language, you B<must> unmount "
1383 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1384 "libguestfs handle.  You can also call:"
1385 msgstr ""
1386
1387 # type: verbatim
1388 #: ../src/guestfs.pod:690
1389 #, no-wrap
1390 msgid ""
1391 " guestfs_set_autosync (g, 1);\n"
1392 "\n"
1393 msgstr ""
1394
1395 # type: textblock
1396 #: ../src/guestfs.pod:692
1397 msgid ""
1398 "to have the unmount/sync done automatically for you when the handle 'g' is "
1399 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1400 "q.v.)"
1401 msgstr ""
1402
1403 # type: textblock
1404 #: ../src/guestfs.pod:696
1405 msgid ""
1406 "If you forget to do this, then it is entirely possible that your changes "
1407 "won't be written out, or will be partially written, or (very rarely) that "
1408 "you'll get disk corruption."
1409 msgstr ""
1410
1411 # type: textblock
1412 #: ../src/guestfs.pod:700
1413 msgid ""
1414 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1415 "guestfish scripts that forget to sync will work just fine, which can make "
1416 "this very puzzling if you are trying to debug a problem."
1417 msgstr ""
1418
1419 # type: =item
1420 #: ../src/guestfs.pod:704
1421 msgid "Mount option C<-o sync> should not be the default."
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:706
1426 msgid ""
1427 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1428 "However C<-o sync> does not add any reliability benefit, but does have a "
1429 "very large performance impact."
1430 msgstr ""
1431
1432 # type: textblock
1433 #: ../src/guestfs.pod:710
1434 msgid ""
1435 "The work around is to use L</guestfs_mount_options> and set the mount "
1436 "options that you actually want to use."
1437 msgstr ""
1438
1439 # type: =item
1440 #: ../src/guestfs.pod:713
1441 msgid "Read-only should be the default."
1442 msgstr ""
1443
1444 # type: textblock
1445 #: ../src/guestfs.pod:715
1446 msgid ""
1447 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1448 "specify I<--rw> if you want to make changes to the image."
1449 msgstr ""
1450
1451 # type: textblock
1452 #: ../src/guestfs.pod:718
1453 msgid "This would reduce the potential to corrupt live VM images."
1454 msgstr ""
1455
1456 # type: textblock
1457 #: ../src/guestfs.pod:720
1458 msgid ""
1459 "Note that many filesystems change the disk when you just mount and unmount, "
1460 "even if you didn't perform any writes.  You need to use "
1461 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1462 msgstr ""
1463
1464 # type: =item
1465 #: ../src/guestfs.pod:724
1466 msgid "guestfish command line is hard to use."
1467 msgstr ""
1468
1469 # type: textblock
1470 #: ../src/guestfs.pod:726
1471 msgid ""
1472 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1473 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1474 "exist, so it fails.  In earlier versions of guestfish the error message was "
1475 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1476 "we should have used C<guestfish -c command> to run commands."
1477 msgstr ""
1478
1479 # type: =item
1480 #: ../src/guestfs.pod:733
1481 msgid "guestfish megabyte modifiers don't work right on all commands"
1482 msgstr ""
1483
1484 # type: textblock
1485 #: ../src/guestfs.pod:735
1486 msgid ""
1487 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1488 "other modifiers).  What guestfish actually does is to multiply the number "
1489 "part by the modifier part and pass the result to the C API.  However this "
1490 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1491 "expecting some other unit (eg. megabytes)."
1492 msgstr ""
1493
1494 # type: textblock
1495 #: ../src/guestfs.pod:742
1496 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1497 msgstr ""
1498
1499 # type: verbatim
1500 #: ../src/guestfs.pod:744
1501 #, no-wrap
1502 msgid ""
1503 " lvcreate LV VG 100M\n"
1504 "\n"
1505 msgstr ""
1506
1507 # type: textblock
1508 #: ../src/guestfs.pod:746
1509 msgid ""
1510 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1511 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1512 "megabytes * megabytes) logical volume.  The error message you get from this "
1513 "is also a little obscure."
1514 msgstr ""
1515
1516 # type: textblock
1517 #: ../src/guestfs.pod:751
1518 msgid ""
1519 "This could be fixed in the generator by specially marking parameters and "
1520 "return values which take bytes or other units."
1521 msgstr ""
1522
1523 # type: =item
1524 #: ../src/guestfs.pod:754
1525 msgid "Library should return errno with error messages."
1526 msgstr ""
1527
1528 # type: textblock
1529 #: ../src/guestfs.pod:756
1530 msgid ""
1531 "It would be a nice-to-have to be able to get the original value of 'errno' "
1532 "from inside the appliance along error paths (where set).  Currently "
1533 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1534 "string into an errno, see the function error() in fuse/guestmount.c."
1535 msgstr ""
1536
1537 # type: textblock
1538 #: ../src/guestfs.pod:762
1539 msgid ""
1540 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1541 "sent back from the daemon."
1542 msgstr ""
1543
1544 # type: =item
1545 #: ../src/guestfs.pod:765
1546 msgid "Ambiguity between devices and paths"
1547 msgstr ""
1548
1549 # type: textblock
1550 #: ../src/guestfs.pod:767
1551 msgid ""
1552 "There is a subtle ambiguity in the API between a device name "
1553 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1554 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1555 msgstr ""
1556
1557 # type: textblock
1558 #: ../src/guestfs.pod:772
1559 msgid ""
1560 "In the current API we usually resolve this ambiguity by having two separate "
1561 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1562 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1563 "detecting if the path supplied begins with C</dev/>."
1564 msgstr ""
1565
1566 # type: textblock
1567 #: ../src/guestfs.pod:778
1568 msgid ""
1569 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1570 "make paths/devices into structured names.  One way to do this would be to "
1571 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1572 "aspect of grub.  Another way would be to use a structured type, equivalent "
1573 "to this OCaml type:"
1574 msgstr ""
1575
1576 # type: verbatim
1577 #: ../src/guestfs.pod:784
1578 #, no-wrap
1579 msgid ""
1580 " type path = Path of string | Device of int | Partition of int * int\n"
1581 "\n"
1582 msgstr ""
1583
1584 # type: textblock
1585 #: ../src/guestfs.pod:786
1586 msgid "which would allow you to pass arguments like:"
1587 msgstr ""
1588
1589 # type: verbatim
1590 #: ../src/guestfs.pod:788
1591 #, no-wrap
1592 msgid ""
1593 " Path \"/foo/bar\"\n"
1594 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1595 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1596 " Path \"/dev/sdb2\"    (* not a device *)\n"
1597 "\n"
1598 msgstr ""
1599
1600 # type: textblock
1601 #: ../src/guestfs.pod:793
1602 msgid ""
1603 "As you can see there are still problems to resolve even with this "
1604 "representation.  Also consider how it might work in guestfish."
1605 msgstr ""
1606
1607 # type: =head2
1608 #: ../src/guestfs.pod:798
1609 msgid "PROTOCOL LIMITS"
1610 msgstr ""
1611
1612 # type: textblock
1613 #: ../src/guestfs.pod:800
1614 msgid ""
1615 "Internally libguestfs uses a message-based protocol to pass API calls and "
1616 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1617 "plenty more detail about this).  The maximum message size used by the "
1618 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1619 "aware of this limit.  The API calls which may be affected are individually "
1620 "documented, with a link back to this section of the documentation."
1621 msgstr ""
1622
1623 # type: textblock
1624 #: ../src/guestfs.pod:808
1625 msgid ""
1626 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1627 "a simple string.  Because this string is at some point internally encoded as "
1628 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1629 "the requested file is larger than this then you will get an error."
1630 msgstr ""
1631
1632 # type: textblock
1633 #: ../src/guestfs.pod:814
1634 msgid ""
1635 "In order to transfer large files into and out of the guest filesystem, you "
1636 "need to use particular calls that support this.  The sections L</UPLOADING> "
1637 "and L</DOWNLOADING> document how to do this."
1638 msgstr ""
1639
1640 # type: textblock
1641 #: ../src/guestfs.pod:818
1642 msgid ""
1643 "You might also consider mounting the disk image using our FUSE filesystem "
1644 "support (L<guestmount(1)>)."
1645 msgstr ""
1646
1647 # type: =head2
1648 #: ../src/guestfs.pod:821
1649 msgid "KEYS AND PASSPHRASES"
1650 msgstr ""
1651
1652 # type: textblock
1653 #: ../src/guestfs.pod:823
1654 msgid ""
1655 "Certain libguestfs calls take a parameter that contains sensitive key "
1656 "material, passed in as a C string."
1657 msgstr ""
1658
1659 # type: textblock
1660 #: ../src/guestfs.pod:826
1661 msgid ""
1662 "In the future we would hope to change the libguestfs implementation so that "
1663 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1664 "swap.  However this is I<not> done at the moment, because of the complexity "
1665 "of such an implementation."
1666 msgstr ""
1667
1668 # type: textblock
1669 #: ../src/guestfs.pod:831
1670 msgid ""
1671 "Therefore you should be aware that any key parameter you pass to libguestfs "
1672 "might end up being written out to the swap partition.  If this is a concern, "
1673 "scrub the swap partition or don't use libguestfs on encrypted devices."
1674 msgstr ""
1675
1676 # type: =head1
1677 #: ../src/guestfs.pod:836
1678 msgid "CONNECTION MANAGEMENT"
1679 msgstr ""
1680
1681 # type: =head2
1682 #: ../src/guestfs.pod:838
1683 msgid "guestfs_h *"
1684 msgstr ""
1685
1686 # type: textblock
1687 #: ../src/guestfs.pod:840
1688 msgid ""
1689 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1690 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1691 "handle and release all resources used."
1692 msgstr ""
1693
1694 # type: textblock
1695 #: ../src/guestfs.pod:844
1696 msgid ""
1697 "For information on using multiple handles and threads, see the section "
1698 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1699 msgstr ""
1700
1701 # type: =head2
1702 #: ../src/guestfs.pod:847
1703 msgid "guestfs_create"
1704 msgstr ""
1705
1706 # type: verbatim
1707 #: ../src/guestfs.pod:849
1708 #, no-wrap
1709 msgid ""
1710 " guestfs_h *guestfs_create (void);\n"
1711 "\n"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:851
1716 msgid "Create a connection handle."
1717 msgstr ""
1718
1719 # type: textblock
1720 #: ../src/guestfs.pod:853
1721 msgid ""
1722 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1723 "on the handle at least once."
1724 msgstr ""
1725
1726 # type: textblock
1727 #: ../src/guestfs.pod:856
1728 msgid ""
1729 "This function returns a non-NULL pointer to a handle on success or NULL on "
1730 "error."
1731 msgstr ""
1732
1733 # type: textblock
1734 #: ../src/guestfs.pod:859
1735 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1736 msgstr ""
1737
1738 # type: textblock
1739 #: ../src/guestfs.pod:861
1740 msgid ""
1741 "You may also want to configure error handling for the handle.  See L</ERROR "
1742 "HANDLING> section below."
1743 msgstr ""
1744
1745 # type: =head2
1746 #: ../src/guestfs.pod:864
1747 msgid "guestfs_close"
1748 msgstr ""
1749
1750 # type: verbatim
1751 #: ../src/guestfs.pod:866
1752 #, no-wrap
1753 msgid ""
1754 " void guestfs_close (guestfs_h *g);\n"
1755 "\n"
1756 msgstr ""
1757
1758 # type: textblock
1759 #: ../src/guestfs.pod:868
1760 msgid "This closes the connection handle and frees up all resources used."
1761 msgstr ""
1762
1763 # type: =head1
1764 #: ../src/guestfs.pod:870
1765 msgid "ERROR HANDLING"
1766 msgstr ""
1767
1768 # type: textblock
1769 #: ../src/guestfs.pod:872
1770 msgid ""
1771 "The convention in all functions that return C<int> is that they return C<-1> "
1772 "to indicate an error.  You can get additional information on errors by "
1773 "calling L</guestfs_last_error> and/or by setting up an error handler with "
1774 "L</guestfs_set_error_handler>."
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:877
1779 msgid "The default error handler prints the information string to C<stderr>."
1780 msgstr ""
1781
1782 # type: textblock
1783 #: ../src/guestfs.pod:879
1784 msgid ""
1785 "Out of memory errors are handled differently.  The default action is to call "
1786 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
1787 "L</guestfs_set_out_of_memory_handler>."
1788 msgstr ""
1789
1790 # type: =head2
1791 #: ../src/guestfs.pod:883
1792 msgid "guestfs_last_error"
1793 msgstr ""
1794
1795 # type: verbatim
1796 #: ../src/guestfs.pod:885
1797 #, no-wrap
1798 msgid ""
1799 " const char *guestfs_last_error (guestfs_h *g);\n"
1800 "\n"
1801 msgstr ""
1802
1803 # type: textblock
1804 #: ../src/guestfs.pod:887
1805 msgid ""
1806 "This returns the last error message that happened on C<g>.  If there has not "
1807 "been an error since the handle was created, then this returns C<NULL>."
1808 msgstr ""
1809
1810 # type: textblock
1811 #: ../src/guestfs.pod:891
1812 msgid ""
1813 "The lifetime of the returned string is until the next error occurs, or "
1814 "L</guestfs_close> is called."
1815 msgstr ""
1816
1817 # type: textblock
1818 #: ../src/guestfs.pod:894
1819 msgid ""
1820 "The error string is not localized (ie. is always in English), because this "
1821 "makes searching for error messages in search engines give the largest number "
1822 "of results."
1823 msgstr ""
1824
1825 # type: =head2
1826 #: ../src/guestfs.pod:898
1827 msgid "guestfs_set_error_handler"
1828 msgstr ""
1829
1830 # type: verbatim
1831 #: ../src/guestfs.pod:900
1832 #, no-wrap
1833 msgid ""
1834 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1835 "                                           void *opaque,\n"
1836 "                                           const char *msg);\n"
1837 " void guestfs_set_error_handler (guestfs_h *g,\n"
1838 "                                 guestfs_error_handler_cb cb,\n"
1839 "                                 void *opaque);\n"
1840 "\n"
1841 msgstr ""
1842
1843 # type: textblock
1844 #: ../src/guestfs.pod:907
1845 msgid ""
1846 "The callback C<cb> will be called if there is an error.  The parameters "
1847 "passed to the callback are an opaque data pointer and the error message "
1848 "string."
1849 msgstr ""
1850
1851 # type: textblock
1852 #: ../src/guestfs.pod:911
1853 msgid ""
1854 "Note that the message string C<msg> is freed as soon as the callback "
1855 "function returns, so if you want to stash it somewhere you must make your "
1856 "own copy."
1857 msgstr ""
1858
1859 # type: textblock
1860 #: ../src/guestfs.pod:915
1861 msgid "The default handler prints messages on C<stderr>."
1862 msgstr ""
1863
1864 # type: textblock
1865 #: ../src/guestfs.pod:917
1866 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1867 msgstr ""
1868
1869 # type: =head2
1870 #: ../src/guestfs.pod:919
1871 msgid "guestfs_get_error_handler"
1872 msgstr ""
1873
1874 # type: verbatim
1875 #: ../src/guestfs.pod:921
1876 #, no-wrap
1877 msgid ""
1878 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1879 "                                                     void **opaque_rtn);\n"
1880 "\n"
1881 msgstr ""
1882
1883 # type: textblock
1884 #: ../src/guestfs.pod:924
1885 msgid "Returns the current error handler callback."
1886 msgstr ""
1887
1888 # type: =head2
1889 #: ../src/guestfs.pod:926
1890 msgid "guestfs_set_out_of_memory_handler"
1891 msgstr ""
1892
1893 # type: verbatim
1894 #: ../src/guestfs.pod:928
1895 #, no-wrap
1896 msgid ""
1897 " typedef void (*guestfs_abort_cb) (void);\n"
1898 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1899 "                                        guestfs_abort_cb);\n"
1900 "\n"
1901 msgstr ""
1902
1903 # type: textblock
1904 #: ../src/guestfs.pod:932
1905 msgid ""
1906 "The callback C<cb> will be called if there is an out of memory situation.  "
1907 "I<Note this callback must not return>."
1908 msgstr ""
1909
1910 # type: textblock
1911 #: ../src/guestfs.pod:935
1912 msgid "The default is to call L<abort(3)>."
1913 msgstr ""
1914
1915 # type: textblock
1916 #: ../src/guestfs.pod:937
1917 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
1918 msgstr ""
1919
1920 # type: =head2
1921 #: ../src/guestfs.pod:940
1922 msgid "guestfs_get_out_of_memory_handler"
1923 msgstr ""
1924
1925 # type: verbatim
1926 #: ../src/guestfs.pod:942
1927 #, no-wrap
1928 msgid ""
1929 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
1930 "\n"
1931 msgstr ""
1932
1933 # type: textblock
1934 #: ../src/guestfs.pod:944
1935 msgid "This returns the current out of memory handler."
1936 msgstr ""
1937
1938 # type: =head1
1939 #: ../src/guestfs.pod:946
1940 msgid "PATH"
1941 msgstr ""
1942
1943 # type: textblock
1944 #: ../src/guestfs.pod:948
1945 msgid ""
1946 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1947 "internal path."
1948 msgstr ""
1949
1950 # type: textblock
1951 #: ../src/guestfs.pod:951
1952 msgid ""
1953 "By default it looks for these in the directory C<$libdir/guestfs> "
1954 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1955 msgstr ""
1956
1957 # type: textblock
1958 #: ../src/guestfs.pod:954
1959 msgid ""
1960 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1961 "to change the directories that libguestfs will search in.  The value is a "
1962 "colon-separated list of paths.  The current directory is I<not> searched "
1963 "unless the path contains an empty element or C<.>.  For example "
1964 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1965 "then C</usr/lib/guestfs>."
1966 msgstr ""
1967
1968 # type: =head1
1969 #: ../src/guestfs.pod:961
1970 msgid "HIGH-LEVEL API ACTIONS"
1971 msgstr ""
1972
1973 # type: =head2
1974 #: ../src/guestfs.pod:963
1975 msgid "ABI GUARANTEE"
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:965
1980 msgid ""
1981 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1982 "actions as outlined in this section.  Although we will deprecate some "
1983 "actions, for example if they get replaced by newer calls, we will keep the "
1984 "old actions forever.  This allows you the developer to program in confidence "
1985 "against the libguestfs API."
1986 msgstr ""
1987
1988 # type: textblock
1989 #: ../src/guestfs.pod:971 ../fish/guestfish.pod:860
1990 msgid "@ACTIONS@"
1991 msgstr ""
1992
1993 # type: =head1
1994 #: ../src/guestfs.pod:973
1995 msgid "STRUCTURES"
1996 msgstr ""
1997
1998 # type: textblock
1999 #: ../src/guestfs.pod:975
2000 msgid "@STRUCTS@"
2001 msgstr ""
2002
2003 # type: =head1
2004 #: ../src/guestfs.pod:977
2005 msgid "AVAILABILITY"
2006 msgstr ""
2007
2008 # type: =head2
2009 #: ../src/guestfs.pod:979
2010 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2011 msgstr ""
2012
2013 # type: textblock
2014 #: ../src/guestfs.pod:981
2015 msgid ""
2016 "Using L</guestfs_available> you can test availability of the following "
2017 "groups of functions.  This test queries the appliance to see if the "
2018 "appliance you are currently using supports the functionality."
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:986
2023 msgid "@AVAILABILITY@"
2024 msgstr ""
2025
2026 # type: =head2
2027 #: ../src/guestfs.pod:988
2028 msgid "GUESTFISH supported COMMAND"
2029 msgstr ""
2030
2031 # type: textblock
2032 #: ../src/guestfs.pod:990
2033 msgid ""
2034 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2035 "prints out the available groups and whether they are supported by this build "
2036 "of libguestfs.  Note however that you have to do C<run> first."
2037 msgstr ""
2038
2039 # type: =head2
2040 #: ../src/guestfs.pod:995
2041 msgid "SINGLE CALLS AT COMPILE TIME"
2042 msgstr ""
2043
2044 # type: textblock
2045 #: ../src/guestfs.pod:997
2046 msgid ""
2047 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2048 "function, such as:"
2049 msgstr ""
2050
2051 # type: verbatim
2052 #: ../src/guestfs.pod:1000
2053 #, no-wrap
2054 msgid ""
2055 " #define LIBGUESTFS_HAVE_DD 1\n"
2056 "\n"
2057 msgstr ""
2058
2059 # type: textblock
2060 #: ../src/guestfs.pod:1002
2061 msgid "if L</guestfs_dd> is available."
2062 msgstr ""
2063
2064 # type: textblock
2065 #: ../src/guestfs.pod:1004
2066 msgid ""
2067 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2068 "function is available at compile time, we recommended using build tools such "
2069 "as autoconf or cmake.  For example in autotools you could use:"
2070 msgstr ""
2071
2072 # type: verbatim
2073 #: ../src/guestfs.pod:1009
2074 #, no-wrap
2075 msgid ""
2076 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2077 " AC_CHECK_FUNCS([guestfs_dd])\n"
2078 "\n"
2079 msgstr ""
2080
2081 # type: textblock
2082 #: ../src/guestfs.pod:1012
2083 msgid ""
2084 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2085 "in your program."
2086 msgstr ""
2087
2088 # type: =head2
2089 #: ../src/guestfs.pod:1015
2090 msgid "SINGLE CALLS AT RUN TIME"
2091 msgstr ""
2092
2093 # type: textblock
2094 #: ../src/guestfs.pod:1017
2095 msgid ""
2096 "Testing at compile time doesn't guarantee that a function really exists in "
2097 "the library.  The reason is that you might be dynamically linked against a "
2098 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2099 "This situation unfortunately results in a segmentation fault, which is a "
2100 "shortcoming of the C dynamic linking system itself."
2101 msgstr ""
2102
2103 # type: textblock
2104 #: ../src/guestfs.pod:1024
2105 msgid ""
2106 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2107 "in this example program (note that you still need the compile time check as "
2108 "well):"
2109 msgstr ""
2110
2111 # type: verbatim
2112 #: ../src/guestfs.pod:1028
2113 #, no-wrap
2114 msgid ""
2115 " #include <stdio.h>\n"
2116 " #include <stdlib.h>\n"
2117 " #include <unistd.h>\n"
2118 " #include <dlfcn.h>\n"
2119 " #include <guestfs.h>\n"
2120 " \n"
2121 msgstr ""
2122
2123 # type: verbatim
2124 #: ../src/guestfs.pod:1034
2125 #, no-wrap
2126 msgid ""
2127 " main ()\n"
2128 " {\n"
2129 " #ifdef LIBGUESTFS_HAVE_DD\n"
2130 "   void *dl;\n"
2131 "   int has_function;\n"
2132 " \n"
2133 msgstr ""
2134
2135 # type: verbatim
2136 #: ../src/guestfs.pod:1040
2137 #, no-wrap
2138 msgid ""
2139 "   /* Test if the function guestfs_dd is really available. */\n"
2140 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2141 "   if (!dl) {\n"
2142 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2143 "     exit (EXIT_FAILURE);\n"
2144 "   }\n"
2145 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2146 "   dlclose (dl);\n"
2147 " \n"
2148 msgstr ""
2149
2150 # type: verbatim
2151 #: ../src/guestfs.pod:1049
2152 #, no-wrap
2153 msgid ""
2154 "   if (!has_function)\n"
2155 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2156 "   else {\n"
2157 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2158 "     /* Now it's safe to call\n"
2159 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2160 "     */\n"
2161 "   }\n"
2162 " #else\n"
2163 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2164 " #endif\n"
2165 "  }\n"
2166 "\n"
2167 msgstr ""
2168
2169 # type: textblock
2170 #: ../src/guestfs.pod:1062
2171 msgid ""
2172 "You may think the above is an awful lot of hassle, and it is.  There are "
2173 "other ways outside of the C linking system to ensure that this kind of "
2174 "incompatibility never arises, such as using package versioning:"
2175 msgstr ""
2176
2177 # type: verbatim
2178 #: ../src/guestfs.pod:1067
2179 #, no-wrap
2180 msgid ""
2181 " Requires: libguestfs >= 1.0.80\n"
2182 "\n"
2183 msgstr ""
2184
2185 # type: =head1
2186 #: ../src/guestfs.pod:1069
2187 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2188 msgstr ""
2189
2190 # type: textblock
2191 #: ../src/guestfs.pod:1071
2192 msgid ""
2193 "A recent feature of the API is the introduction of calls which take optional "
2194 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2195 "takes variable arguments (ie. C<...>), as in this example:"
2196 msgstr ""
2197
2198 # type: verbatim
2199 #: ../src/guestfs.pod:1076
2200 #, no-wrap
2201 msgid ""
2202 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2203 "\n"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1078
2208 msgid ""
2209 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2210 "call with no optional arguments specified:"
2211 msgstr ""
2212
2213 # type: verbatim
2214 #: ../src/guestfs.pod:1081
2215 #, no-wrap
2216 msgid ""
2217 " guestfs_add_drive_opts (g, filename, -1);\n"
2218 "\n"
2219 msgstr ""
2220
2221 # type: textblock
2222 #: ../src/guestfs.pod:1083
2223 msgid "With a single optional argument:"
2224 msgstr ""
2225
2226 # type: verbatim
2227 #: ../src/guestfs.pod:1085
2228 #, no-wrap
2229 msgid ""
2230 " guestfs_add_drive_opts (g, filename,\n"
2231 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2232 "                         -1);\n"
2233 "\n"
2234 msgstr ""
2235
2236 # type: textblock
2237 #: ../src/guestfs.pod:1089
2238 msgid "With two:"
2239 msgstr ""
2240
2241 # type: verbatim
2242 #: ../src/guestfs.pod:1091
2243 #, no-wrap
2244 msgid ""
2245 " guestfs_add_drive_opts (g, filename,\n"
2246 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2247 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2248 "                         -1);\n"
2249 "\n"
2250 msgstr ""
2251
2252 # type: textblock
2253 #: ../src/guestfs.pod:1096
2254 msgid ""
2255 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2256 "happen!"
2257 msgstr ""
2258
2259 # type: =head2
2260 #: ../src/guestfs.pod:1099
2261 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2262 msgstr ""
2263
2264 # type: textblock
2265 #: ../src/guestfs.pod:1101
2266 msgid ""
2267 "The second variant has the same name with the suffix C<_va>, which works the "
2268 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2269 "example function, this is declared:"
2270 msgstr ""
2271
2272 # type: verbatim
2273 #: ../src/guestfs.pod:1105
2274 #, no-wrap
2275 msgid ""
2276 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2277 "                                va_list args);\n"
2278 "\n"
2279 msgstr ""
2280
2281 # type: =head2
2282 #: ../src/guestfs.pod:1108
2283 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2284 msgstr ""
2285
2286 # type: textblock
2287 #: ../src/guestfs.pod:1110
2288 msgid ""
2289 "The third variant is useful where you need to construct these calls.  You "
2290 "pass in a structure where you fill in the optional fields.  The structure "
2291 "has a bitmask as the first element which you must set to indicate which "
2292 "fields you have filled in.  For our example function the structure and call "
2293 "are declared:"
2294 msgstr ""
2295
2296 # type: verbatim
2297 #: ../src/guestfs.pod:1116
2298 #, no-wrap
2299 msgid ""
2300 " struct guestfs_add_drive_opts_argv {\n"
2301 "   uint64_t bitmask;\n"
2302 "   int readonly;\n"
2303 "   const char *format;\n"
2304 "   /* ... */\n"
2305 " };\n"
2306 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2307 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2308 "\n"
2309 msgstr ""
2310
2311 # type: textblock
2312 #: ../src/guestfs.pod:1125
2313 msgid "You could call it like this:"
2314 msgstr ""
2315
2316 # type: verbatim
2317 #: ../src/guestfs.pod:1127
2318 #, no-wrap
2319 msgid ""
2320 " struct guestfs_add_drive_opts_argv optargs = {\n"
2321 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2322 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2323 "   .readonly = 1,\n"
2324 "   .format = \"qcow2\"\n"
2325 " };\n"
2326 " \n"
2327 msgstr ""
2328
2329 # type: verbatim
2330 #: ../src/guestfs.pod:1134
2331 #, no-wrap
2332 msgid ""
2333 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2334 "\n"
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1136 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1244
2339 msgid "Notes:"
2340 msgstr ""
2341
2342 # type: textblock
2343 #: ../src/guestfs.pod:1142
2344 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2345 msgstr ""
2346
2347 # type: textblock
2348 #: ../src/guestfs.pod:1147
2349 msgid "You do not need to fill in all fields of the structure."
2350 msgstr ""
2351
2352 # type: textblock
2353 #: ../src/guestfs.pod:1151
2354 msgid ""
2355 "There must be a one-to-one correspondence between fields of the structure "
2356 "that are filled in, and bits set in the bitmask."
2357 msgstr ""
2358
2359 # type: =head2
2360 #: ../src/guestfs.pod:1156
2361 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2362 msgstr ""
2363
2364 # type: textblock
2365 #: ../src/guestfs.pod:1158
2366 msgid ""
2367 "In other languages, optional arguments are expressed in the way that is "
2368 "natural for that language.  We refer you to the language-specific "
2369 "documentation for more details on that."
2370 msgstr ""
2371
2372 # type: textblock
2373 #: ../src/guestfs.pod:1162
2374 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2375 msgstr ""
2376
2377 # type: =end
2378 #: ../src/guestfs.pod:1164 ../src/guestfs.pod:1169
2379 msgid "html"
2380 msgstr ""
2381
2382 # type: textblock
2383 #: ../src/guestfs.pod:1166
2384 msgid ""
2385 "<!-- old anchor for the next section --> <a "
2386 "name=\"state_machine_and_low_level_event_api\"/>"
2387 msgstr ""
2388
2389 # type: =head1
2390 #: ../src/guestfs.pod:1171
2391 msgid "ARCHITECTURE"
2392 msgstr ""
2393
2394 # type: textblock
2395 #: ../src/guestfs.pod:1173
2396 msgid ""
2397 "Internally, libguestfs is implemented by running an appliance (a special "
2398 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2399 "process of the main program."
2400 msgstr ""
2401
2402 # type: verbatim
2403 #: ../src/guestfs.pod:1177
2404 #, no-wrap
2405 msgid ""
2406 "  ___________________\n"
2407 " /                   \\\n"
2408 " | main program      |\n"
2409 " |                   |\n"
2410 " |                   |           child process / appliance\n"
2411 " |                   |           __________________________\n"
2412 " |                   |          / qemu                     \\\n"
2413 " +-------------------+   RPC    |      +-----------------+ |\n"
2414 " | libguestfs     <--------------------> guestfsd        | |\n"
2415 " |                   |          |      +-----------------+ |\n"
2416 " \\___________________/          |      | Linux kernel    | |\n"
2417 "                                |      +--^--------------+ |\n"
2418 "                                \\_________|________________/\n"
2419 "                                          |\n"
2420 "                                   _______v______\n"
2421 "                                  /              \\\n"
2422 "                                  | Device or    |\n"
2423 "                                  | disk image   |\n"
2424 "                                  \\______________/\n"
2425 "\n"
2426 msgstr ""
2427
2428 # type: textblock
2429 #: ../src/guestfs.pod:1197
2430 msgid ""
2431 "The library, linked to the main program, creates the child process and hence "
2432 "the appliance in the L</guestfs_launch> function."
2433 msgstr ""
2434
2435 # type: textblock
2436 #: ../src/guestfs.pod:1200
2437 msgid ""
2438 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2439 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2440 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2441 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2442 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2443 "attached to the qemu process which translates device access by the "
2444 "appliance's Linux kernel into accesses to the image."
2445 msgstr ""
2446
2447 # type: textblock
2448 #: ../src/guestfs.pod:1209
2449 msgid ""
2450 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2451 "Although the disk image you are attached to might also be used by some "
2452 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2453 "care if both libguestfs's qemu process and your virtual machine are trying "
2454 "to update the disk image at the same time, since these usually results in "
2455 "massive disk corruption)."
2456 msgstr ""
2457
2458 # type: =head1
2459 #: ../src/guestfs.pod:1216
2460 msgid "STATE MACHINE"
2461 msgstr ""
2462
2463 # type: textblock
2464 #: ../src/guestfs.pod:1218
2465 msgid "libguestfs uses a state machine to model the child process:"
2466 msgstr ""
2467
2468 # type: verbatim
2469 #: ../src/guestfs.pod:1220
2470 #, no-wrap
2471 msgid ""
2472 "                         |\n"
2473 "                    guestfs_create\n"
2474 "                         |\n"
2475 "                         |\n"
2476 "                     ____V_____\n"
2477 "                    /          \\\n"
2478 "                    |  CONFIG  |\n"
2479 "                    \\__________/\n"
2480 "                     ^ ^   ^  \\\n"
2481 "                    /  |    \\  \\ guestfs_launch\n"
2482 "                   /   |    _\\__V______\n"
2483 "                  /    |   /           \\\n"
2484 "                 /     |   | LAUNCHING |\n"
2485 "                /      |   \\___________/\n"
2486 "               /       |       /\n"
2487 "              /        |  guestfs_launch\n"
2488 "             /         |     /\n"
2489 "    ______  /        __|____V\n"
2490 "   /      \\ ------> /        \\\n"
2491 "   | BUSY |         | READY  |\n"
2492 "   \\______/ <------ \\________/\n"
2493 "\n"
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1242
2498 msgid ""
2499 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2500 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2501 "(3) alternating between READY and BUSY as commands are issued to, and "
2502 "carried out by, the child process."
2503 msgstr ""
2504
2505 # type: textblock
2506 #: ../src/guestfs.pod:1247
2507 msgid ""
2508 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2509 "asynchronously at any time (eg. due to some internal error), and that causes "
2510 "the state to transition back to CONFIG."
2511 msgstr ""
2512
2513 # type: textblock
2514 #: ../src/guestfs.pod:1251
2515 msgid ""
2516 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2517 "issued when in the CONFIG state."
2518 msgstr ""
2519
2520 # type: textblock
2521 #: ../src/guestfs.pod:1254
2522 msgid ""
2523 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2524 "L</guestfs_launch> blocks until the child process is READY to accept "
2525 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2526 "moves the state from CONFIG to LAUNCHING while it is running."
2527 msgstr ""
2528
2529 # type: textblock
2530 #: ../src/guestfs.pod:1260
2531 msgid ""
2532 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2533 "state.  These API calls block waiting for the command to be carried out "
2534 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2535 "non-blocking versions, and no way to issue more than one command per handle "
2536 "at the same time."
2537 msgstr ""
2538
2539 # type: textblock
2540 #: ../src/guestfs.pod:1266
2541 msgid ""
2542 "Finally, the child process sends asynchronous messages back to the main "
2543 "program, such as kernel log messages.  You can register a callback to "
2544 "receive these messages."
2545 msgstr ""
2546
2547 # type: =head2
2548 #: ../src/guestfs.pod:1270
2549 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1272
2554 msgid ""
2555 "The child process generates events in some situations.  Current events "
2556 "include: receiving a log message, the child process exits."
2557 msgstr ""
2558
2559 # type: textblock
2560 #: ../src/guestfs.pod:1275
2561 msgid ""
2562 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2563 "types of events."
2564 msgstr ""
2565
2566 # type: textblock
2567 #: ../src/guestfs.pod:1278
2568 msgid ""
2569 "Only I<one callback of each type> can be registered for each handle.  "
2570 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2571 "that type.  Cancel all callbacks of this type by calling this function with "
2572 "C<cb> set to C<NULL>."
2573 msgstr ""
2574
2575 # type: =head2
2576 #: ../src/guestfs.pod:1283
2577 msgid "guestfs_set_log_message_callback"
2578 msgstr ""
2579
2580 # type: verbatim
2581 #: ../src/guestfs.pod:1285
2582 #, no-wrap
2583 msgid ""
2584 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2585 "                                         char *buf, int len);\n"
2586 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2587 "                                        guestfs_log_message_cb cb,\n"
2588 "                                        void *opaque);\n"
2589 "\n"
2590 msgstr ""
2591
2592 # type: textblock
2593 #: ../src/guestfs.pod:1291
2594 msgid ""
2595 "The callback function C<cb> will be called whenever qemu or the guest writes "
2596 "anything to the console."
2597 msgstr ""
2598
2599 # type: textblock
2600 #: ../src/guestfs.pod:1294
2601 msgid "Use this function to capture kernel messages and similar."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1296
2606 msgid ""
2607 "Normally there is no log message handler, and log messages are just "
2608 "discarded."
2609 msgstr ""
2610
2611 # type: =head2
2612 #: ../src/guestfs.pod:1299
2613 msgid "guestfs_set_subprocess_quit_callback"
2614 msgstr ""
2615
2616 # type: verbatim
2617 #: ../src/guestfs.pod:1301
2618 #, no-wrap
2619 msgid ""
2620 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2621 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2622 "                                            guestfs_subprocess_quit_cb cb,\n"
2623 "                                            void *opaque);\n"
2624 "\n"
2625 msgstr ""
2626
2627 # type: textblock
2628 #: ../src/guestfs.pod:1306
2629 msgid ""
2630 "The callback function C<cb> will be called when the child process quits, "
2631 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2632 "corresponds to a transition from any state to the CONFIG state)."
2633 msgstr ""
2634
2635 # type: =head2
2636 #: ../src/guestfs.pod:1311
2637 msgid "guestfs_set_launch_done_callback"
2638 msgstr ""
2639
2640 # type: verbatim
2641 #: ../src/guestfs.pod:1313
2642 #, no-wrap
2643 msgid ""
2644 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2645 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2646 "                                        guestfs_launch_done_cb cb,\n"
2647 "                                        void *opaque);\n"
2648 "\n"
2649 msgstr ""
2650
2651 # type: textblock
2652 #: ../src/guestfs.pod:1318
2653 msgid ""
2654 "The callback function C<cb> will be called when the child process becomes "
2655 "ready first time after it has been launched.  (This corresponds to a "
2656 "transition from LAUNCHING to the READY state)."
2657 msgstr ""
2658
2659 # type: =head2
2660 #: ../src/guestfs.pod:1322
2661 msgid "guestfs_set_close_callback"
2662 msgstr ""
2663
2664 # type: verbatim
2665 #: ../src/guestfs.pod:1324
2666 #, no-wrap
2667 msgid ""
2668 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2669 " void guestfs_set_close_callback (guestfs_h *g,\n"
2670 "                                  guestfs_close_cb cb,\n"
2671 "                                  void *opaque);\n"
2672 "\n"
2673 msgstr ""
2674
2675 # type: textblock
2676 #: ../src/guestfs.pod:1329
2677 msgid ""
2678 "The callback function C<cb> will be called while the handle is being closed "
2679 "(synchronously from L</guestfs_close>)."
2680 msgstr ""
2681
2682 # type: textblock
2683 #: ../src/guestfs.pod:1332
2684 msgid ""
2685 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2686 "handles that are open when the program exits.  This means that this callback "
2687 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2688 "problems in higher-level languages (eg. if your HLL interpreter has already "
2689 "been cleaned up by the time this is called, and if your callback then jumps "
2690 "into some HLL function)."
2691 msgstr ""
2692
2693 # type: =head2
2694 #: ../src/guestfs.pod:1340
2695 msgid "guestfs_set_progress_callback"
2696 msgstr ""
2697
2698 # type: verbatim
2699 #: ../src/guestfs.pod:1342
2700 #, no-wrap
2701 msgid ""
2702 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2703 "                                      int proc_nr, int serial,\n"
2704 "                                      uint64_t position, uint64_t total);\n"
2705 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2706 "                                     guestfs_progress_cb cb,\n"
2707 "                                     void *opaque);\n"
2708 "\n"
2709 msgstr ""
2710
2711 # type: textblock
2712 #: ../src/guestfs.pod:1349
2713 msgid ""
2714 "Some long-running operations can generate progress messages.  If this "
2715 "callback is registered, then it will be called each time a progress message "
2716 "is generated (usually two seconds after the operation started, and three "
2717 "times per second thereafter until it completes, although the frequency may "
2718 "change in future versions)."
2719 msgstr ""
2720
2721 # type: textblock
2722 #: ../src/guestfs.pod:1355
2723 msgid ""
2724 "The callback receives two numbers: C<position> and C<total>.  The units of "
2725 "C<total> are not defined, although for some operations C<total> may relate "
2726 "in some way to the amount of data to be transferred (eg. in bytes or "
2727 "megabytes), and C<position> may be the portion which has been transferred."
2728 msgstr ""
2729
2730 # type: textblock
2731 #: ../src/guestfs.pod:1361
2732 msgid "The only defined and stable parts of the API are:"
2733 msgstr ""
2734
2735 # type: textblock
2736 #: ../src/guestfs.pod:1367
2737 msgid ""
2738 "The callback can display to the user some type of progress bar or indicator "
2739 "which shows the ratio of C<position>:C<total>."
2740 msgstr ""
2741
2742 # type: textblock
2743 #: ../src/guestfs.pod:1372
2744 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2745 msgstr ""
2746
2747 # type: textblock
2748 #: ../src/guestfs.pod:1376
2749 msgid ""
2750 "If any progress notification is sent during a call, then a final progress "
2751 "notification is always sent when C<position> = C<total>."
2752 msgstr ""
2753
2754 # type: textblock
2755 #: ../src/guestfs.pod:1379
2756 msgid ""
2757 "This is to simplify caller code, so callers can easily set the progress "
2758 "indicator to \"100%\" at the end of the operation, without requiring special "
2759 "code to detect this case."
2760 msgstr ""
2761
2762 # type: textblock
2763 #: ../src/guestfs.pod:1385
2764 msgid ""
2765 "The callback also receives the procedure number and serial number of the "
2766 "call.  These are only useful for debugging protocol issues, and the callback "
2767 "can normally ignore them.  The callback may want to print these numbers in "
2768 "error messages or debugging messages."
2769 msgstr ""
2770
2771 # type: =head1
2772 #: ../src/guestfs.pod:1390
2773 msgid "PRIVATE DATA AREA"
2774 msgstr ""
2775
2776 # type: textblock
2777 #: ../src/guestfs.pod:1392
2778 msgid ""
2779 "You can attach named pieces of private data to the libguestfs handle, and "
2780 "fetch them by name for the lifetime of the handle.  This is called the "
2781 "private data area and is only available from the C API."
2782 msgstr ""
2783
2784 # type: textblock
2785 #: ../src/guestfs.pod:1396
2786 msgid "To attach a named piece of data, use the following call:"
2787 msgstr ""
2788
2789 # type: verbatim
2790 #: ../src/guestfs.pod:1398
2791 #, no-wrap
2792 msgid ""
2793 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2794 "\n"
2795 msgstr ""
2796
2797 # type: textblock
2798 #: ../src/guestfs.pod:1400
2799 msgid ""
2800 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2801 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2802 "overwritten."
2803 msgstr ""
2804
2805 # type: textblock
2806 #: ../src/guestfs.pod:1404
2807 msgid ""
2808 "You can use any C<key> you want, but names beginning with an underscore "
2809 "character are reserved for internal libguestfs purposes (for implementing "
2810 "language bindings).  It is recommended to prefix the name with some unique "
2811 "string to avoid collisions with other users."
2812 msgstr ""
2813
2814 # type: textblock
2815 #: ../src/guestfs.pod:1409
2816 msgid "To retrieve the pointer, use:"
2817 msgstr ""
2818
2819 # type: verbatim
2820 #: ../src/guestfs.pod:1411
2821 #, no-wrap
2822 msgid ""
2823 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2824 "\n"
2825 msgstr ""
2826
2827 # type: textblock
2828 #: ../src/guestfs.pod:1413
2829 msgid ""
2830 "This function returns C<NULL> if either no data is found associated with "
2831 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2832 "C<NULL>."
2833 msgstr ""
2834
2835 # type: textblock
2836 #: ../src/guestfs.pod:1417
2837 msgid ""
2838 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2839 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2840 "all.  In particular, libguestfs does I<not> try to free the data when the "
2841 "handle is closed.  If the data must be freed, then the caller must either "
2842 "free it before calling L</guestfs_close> or must set up a close callback to "
2843 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2844 "can be registered for a handle)."
2845 msgstr ""
2846
2847 # type: textblock
2848 #: ../src/guestfs.pod:1425
2849 msgid ""
2850 "The private data area is implemented using a hash table, and should be "
2851 "reasonably efficient for moderate numbers of keys."
2852 msgstr ""
2853
2854 # type: =head1
2855 #: ../src/guestfs.pod:1428
2856 msgid "BLOCK DEVICE NAMING"
2857 msgstr ""
2858
2859 # type: textblock
2860 #: ../src/guestfs.pod:1430
2861 msgid ""
2862 "In the kernel there is now quite a profusion of schemata for naming block "
2863 "devices (in this context, by I<block device> I mean a physical or virtual "
2864 "hard drive).  The original Linux IDE driver used names starting with "
2865 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
2866 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
2867 "replacement for the old IDE driver (particularly for SATA devices) those "
2868 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
2869 "machines with paravirtualized drivers.  This has created several different "
2870 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
2871 "Xen PV disks."
2872 msgstr ""
2873
2874 # type: textblock
2875 #: ../src/guestfs.pod:1442
2876 msgid ""
2877 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2878 "Linux kernel to access block devices.  We can run a variety of appliances "
2879 "based on a variety of Linux kernels."
2880 msgstr ""
2881
2882 # type: textblock
2883 #: ../src/guestfs.pod:1446
2884 msgid ""
2885 "This causes a problem for libguestfs because many API calls use device or "
2886 "partition names.  Working scripts and the recipe (example) scripts that we "
2887 "make available over the internet could fail if the naming scheme changes."
2888 msgstr ""
2889
2890 # type: textblock
2891 #: ../src/guestfs.pod:1451
2892 msgid ""
2893 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2894 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2895 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2896 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2897 msgstr ""
2898
2899 # type: textblock
2900 #: ../src/guestfs.pod:1457
2901 msgid ""
2902 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2903 "L</guestfs_list_partitions> and similar calls return the true names of the "
2904 "devices and partitions as known to the appliance."
2905 msgstr ""
2906
2907 # type: =head2
2908 #: ../src/guestfs.pod:1462
2909 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2910 msgstr ""
2911
2912 # type: textblock
2913 #: ../src/guestfs.pod:1464
2914 msgid ""
2915 "Usually this translation is transparent.  However in some (very rare)  cases "
2916 "you may need to know the exact algorithm.  Such cases include where you use "
2917 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
2918 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
2919 "devices."
2920 msgstr ""
2921
2922 # type: textblock
2923 #: ../src/guestfs.pod:1470
2924 msgid ""
2925 "The algorithm is applied only to I<parameters> which are known to be either "
2926 "device or partition names.  Return values from functions such as "
2927 "L</guestfs_list_devices> are never changed."
2928 msgstr ""
2929
2930 # type: textblock
2931 #: ../src/guestfs.pod:1478
2932 msgid "Is the string a parameter which is a device or partition name?"
2933 msgstr ""
2934
2935 # type: textblock
2936 #: ../src/guestfs.pod:1482
2937 msgid "Does the string begin with C</dev/sd>?"
2938 msgstr ""
2939
2940 # type: textblock
2941 #: ../src/guestfs.pod:1486
2942 msgid ""
2943 "Does the named device exist? If so, we use that device.  However if I<not> "
2944 "then we continue with this algorithm."
2945 msgstr ""
2946
2947 # type: textblock
2948 #: ../src/guestfs.pod:1491
2949 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1493
2954 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2955 msgstr ""
2956
2957 # type: textblock
2958 #: ../src/guestfs.pod:1495
2959 msgid "If that named device exists, use it.  If not, continue."
2960 msgstr ""
2961
2962 # type: textblock
2963 #: ../src/guestfs.pod:1499
2964 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2965 msgstr ""
2966
2967 # type: textblock
2968 #: ../src/guestfs.pod:1501
2969 msgid "If that named device exists, use it.  If not, return an error."
2970 msgstr ""
2971
2972 # type: =head2
2973 #: ../src/guestfs.pod:1505
2974 msgid "PORTABILITY CONCERNS"
2975 msgstr ""
2976
2977 # type: textblock
2978 #: ../src/guestfs.pod:1507
2979 msgid ""
2980 "Although the standard naming scheme and automatic translation is useful for "
2981 "simple programs and guestfish scripts, for larger programs it is best not to "
2982 "rely on this mechanism."
2983 msgstr ""
2984
2985 # type: textblock
2986 #: ../src/guestfs.pod:1511
2987 msgid ""
2988 "Where possible for maximum future portability programs using libguestfs "
2989 "should use these future-proof techniques:"
2990 msgstr ""
2991
2992 # type: textblock
2993 #: ../src/guestfs.pod:1518
2994 msgid ""
2995 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2996 "device names, and then use those names directly."
2997 msgstr ""
2998
2999 # type: textblock
3000 #: ../src/guestfs.pod:1521
3001 msgid "Since those device names exist by definition, they will never be translated."
3002 msgstr ""
3003
3004 # type: textblock
3005 #: ../src/guestfs.pod:1526
3006 msgid ""
3007 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3008 "filesystem labels."
3009 msgstr ""
3010
3011 # type: =head1
3012 #: ../src/guestfs.pod:1531
3013 msgid "INTERNALS"
3014 msgstr ""
3015
3016 # type: =head2
3017 #: ../src/guestfs.pod:1533
3018 msgid "COMMUNICATION PROTOCOL"
3019 msgstr ""
3020
3021 # type: textblock
3022 #: ../src/guestfs.pod:1535
3023 msgid ""
3024 "Don't rely on using this protocol directly.  This section documents how it "
3025 "currently works, but it may change at any time."
3026 msgstr ""
3027
3028 # type: textblock
3029 #: ../src/guestfs.pod:1538
3030 msgid ""
3031 "The protocol used to talk between the library and the daemon running inside "
3032 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3033 "1014, RFC 1832, RFC 4506)."
3034 msgstr ""
3035
3036 # type: textblock
3037 #: ../src/guestfs.pod:1542
3038 msgid ""
3039 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3040 "this file is automatically generated)."
3041 msgstr ""
3042
3043 # type: textblock
3044 #: ../src/guestfs.pod:1545
3045 msgid ""
3046 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3047 "and C<FileOut> parameters, which are handled with very simple request/reply "
3048 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3049 "parameters, which use the same request and reply messages, but they may also "
3050 "be followed by files sent using a chunked encoding."
3051 msgstr ""
3052
3053 # type: =head3
3054 #: ../src/guestfs.pod:1552
3055 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3056 msgstr ""
3057
3058 # type: textblock
3059 #: ../src/guestfs.pod:1554
3060 msgid "For ordinary functions, the request message is:"
3061 msgstr ""
3062
3063 # type: verbatim
3064 #: ../src/guestfs.pod:1556
3065 #, no-wrap
3066 msgid ""
3067 " total length (header + arguments,\n"
3068 "      but not including the length word itself)\n"
3069 " struct guestfs_message_header (encoded as XDR)\n"
3070 " struct guestfs_<foo>_args (encoded as XDR)\n"
3071 "\n"
3072 msgstr ""
3073
3074 # type: textblock
3075 #: ../src/guestfs.pod:1561
3076 msgid ""
3077 "The total length field allows the daemon to allocate a fixed size buffer "
3078 "into which it slurps the rest of the message.  As a result, the total length "
3079 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3080 "effective size of any request is limited to somewhere under this size."
3081 msgstr ""
3082
3083 # type: textblock
3084 #: ../src/guestfs.pod:1567
3085 msgid ""
3086 "Note also that many functions don't take any arguments, in which case the "
3087 "C<guestfs_I<foo>_args> is completely omitted."
3088 msgstr ""
3089
3090 # type: textblock
3091 #: ../src/guestfs.pod:1570
3092 msgid ""
3093 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3094 "receiver knows what type of args structure to expect, or none at all."
3095 msgstr ""
3096
3097 # type: textblock
3098 #: ../src/guestfs.pod:1574
3099 msgid "The reply message for ordinary functions is:"
3100 msgstr ""
3101
3102 # type: verbatim
3103 #: ../src/guestfs.pod:1576
3104 #, no-wrap
3105 msgid ""
3106 " total length (header + ret,\n"
3107 "      but not including the length word itself)\n"
3108 " struct guestfs_message_header (encoded as XDR)\n"
3109 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3110 "\n"
3111 msgstr ""
3112
3113 # type: textblock
3114 #: ../src/guestfs.pod:1581
3115 msgid ""
3116 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3117 "functions that return no formal return values."
3118 msgstr ""
3119
3120 # type: textblock
3121 #: ../src/guestfs.pod:1584
3122 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1587
3127 msgid ""
3128 "In the case of an error, a flag is set in the header, and the reply message "
3129 "is slightly changed:"
3130 msgstr ""
3131
3132 # type: verbatim
3133 #: ../src/guestfs.pod:1590
3134 #, no-wrap
3135 msgid ""
3136 " total length (header + error,\n"
3137 "      but not including the length word itself)\n"
3138 " struct guestfs_message_header (encoded as XDR)\n"
3139 " struct guestfs_message_error (encoded as XDR)\n"
3140 "\n"
3141 msgstr ""
3142
3143 # type: textblock
3144 #: ../src/guestfs.pod:1595
3145 msgid ""
3146 "The C<guestfs_message_error> structure contains the error message as a "
3147 "string."
3148 msgstr ""
3149
3150 # type: =head3
3151 #: ../src/guestfs.pod:1598
3152 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3153 msgstr ""
3154
3155 # type: textblock
3156 #: ../src/guestfs.pod:1600
3157 msgid ""
3158 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3159 "The normal request message is sent (see above).  However this is followed by "
3160 "a sequence of file chunks."
3161 msgstr ""
3162
3163 # type: verbatim
3164 #: ../src/guestfs.pod:1604
3165 #, no-wrap
3166 msgid ""
3167 " total length (header + arguments,\n"
3168 "      but not including the length word itself,\n"
3169 "      and not including the chunks)\n"
3170 " struct guestfs_message_header (encoded as XDR)\n"
3171 " struct guestfs_<foo>_args (encoded as XDR)\n"
3172 " sequence of chunks for FileIn param #0\n"
3173 " sequence of chunks for FileIn param #1 etc.\n"
3174 "\n"
3175 msgstr ""
3176
3177 # type: textblock
3178 #: ../src/guestfs.pod:1612
3179 msgid "The \"sequence of chunks\" is:"
3180 msgstr ""
3181
3182 # type: verbatim
3183 #: ../src/guestfs.pod:1614
3184 #, no-wrap
3185 msgid ""
3186 " length of chunk (not including length word itself)\n"
3187 " struct guestfs_chunk (encoded as XDR)\n"
3188 " length of chunk\n"
3189 " struct guestfs_chunk (encoded as XDR)\n"
3190 "   ...\n"
3191 " length of chunk\n"
3192 " struct guestfs_chunk (with data.data_len == 0)\n"
3193 "\n"
3194 msgstr ""
3195
3196 # type: textblock
3197 #: ../src/guestfs.pod:1622
3198 msgid ""
3199 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3200 "is set in the final chunk to indicate either successful completion or early "
3201 "cancellation."
3202 msgstr ""
3203
3204 # type: textblock
3205 #: ../src/guestfs.pod:1626
3206 msgid ""
3207 "At time of writing there are no functions that have more than one FileIn "
3208 "parameter.  However this is (theoretically) supported, by sending the "
3209 "sequence of chunks for each FileIn parameter one after another (from left to "
3210 "right)."
3211 msgstr ""
3212
3213 # type: textblock
3214 #: ../src/guestfs.pod:1631
3215 msgid ""
3216 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3217 "transfer.  The library does this by sending a chunk with a special flag set "
3218 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3219 "RPC, does I<not> send any reply, and goes back to reading the next request."
3220 msgstr ""
3221
3222 # type: textblock
3223 #: ../src/guestfs.pod:1637
3224 msgid ""
3225 "The daemon may also cancel.  It does this by writing a special word "
3226 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3227 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3228 "cancel chunk).  The special word is chosen so that even if cancellation "
3229 "happens right at the end of the transfer (after the library has finished "
3230 "writing and has started listening for the reply), the \"spurious\" cancel "
3231 "flag will not be confused with the reply message."
3232 msgstr ""
3233
3234 # type: textblock
3235 #: ../src/guestfs.pod:1646
3236 msgid ""
3237 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3238 "limit), and also files where the size is not known in advance (eg. from "
3239 "pipes or sockets).  However the chunks are rather small "
3240 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3241 "to keep much in memory."
3242 msgstr ""
3243
3244 # type: =head3
3245 #: ../src/guestfs.pod:1652
3246 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3247 msgstr ""
3248
3249 # type: textblock
3250 #: ../src/guestfs.pod:1654
3251 msgid ""
3252 "The protocol for FileOut parameters is exactly the same as for FileIn "
3253 "parameters, but with the roles of daemon and library reversed."
3254 msgstr ""
3255
3256 # type: verbatim
3257 #: ../src/guestfs.pod:1657
3258 #, no-wrap
3259 msgid ""
3260 " total length (header + ret,\n"
3261 "      but not including the length word itself,\n"
3262 "      and not including the chunks)\n"
3263 " struct guestfs_message_header (encoded as XDR)\n"
3264 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3265 " sequence of chunks for FileOut param #0\n"
3266 " sequence of chunks for FileOut param #1 etc.\n"
3267 "\n"
3268 msgstr ""
3269
3270 # type: =head3
3271 #: ../src/guestfs.pod:1665
3272 msgid "INITIAL MESSAGE"
3273 msgstr ""
3274
3275 # type: textblock
3276 #: ../src/guestfs.pod:1667
3277 msgid ""
3278 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3279 "which indicates that the guest and daemon is alive.  This is what "
3280 "L</guestfs_launch> waits for."
3281 msgstr ""
3282
3283 # type: =head3
3284 #: ../src/guestfs.pod:1671
3285 msgid "PROGRESS NOTIFICATION MESSAGES"
3286 msgstr ""
3287
3288 # type: textblock
3289 #: ../src/guestfs.pod:1673
3290 msgid ""
3291 "The daemon may send progress notification messages at any time.  These are "
3292 "distinguished by the normal length word being replaced by "
3293 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3294 msgstr ""
3295
3296 # type: textblock
3297 #: ../src/guestfs.pod:1677
3298 msgid ""
3299 "The library turns them into progress callbacks (see "
3300 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3301 "discards them if not."
3302 msgstr ""
3303
3304 # type: textblock
3305 #: ../src/guestfs.pod:1681
3306 msgid ""
3307 "The daemon self-limits the frequency of progress messages it sends (see "
3308 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3309 "messages."
3310 msgstr ""
3311
3312 # type: =head1
3313 #: ../src/guestfs.pod:1685
3314 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3315 msgstr ""
3316
3317 # type: textblock
3318 #: ../src/guestfs.pod:1687
3319 msgid ""
3320 "All high-level libguestfs actions are synchronous.  If you want to use "
3321 "libguestfs asynchronously then you must create a thread."
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1690
3326 msgid ""
3327 "Only use the handle from a single thread.  Either use the handle exclusively "
3328 "from one thread, or provide your own mutex so that two threads cannot issue "
3329 "calls on the same handle at the same time."
3330 msgstr ""
3331
3332 # type: textblock
3333 #: ../src/guestfs.pod:1694
3334 msgid ""
3335 "See the graphical program guestfs-browser for one possible architecture for "
3336 "multithreaded programs using libvirt and libguestfs."
3337 msgstr ""
3338
3339 # type: =head1
3340 #: ../src/guestfs.pod:1697
3341 msgid "QEMU WRAPPERS"
3342 msgstr ""
3343
3344 # type: textblock
3345 #: ../src/guestfs.pod:1699
3346 msgid ""
3347 "If you want to compile your own qemu, run qemu from a non-standard location, "
3348 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3349 "around qemu."
3350 msgstr ""
3351
3352 # type: textblock
3353 #: ../src/guestfs.pod:1703
3354 msgid ""
3355 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3356 "last command in the shell script (so that qemu replaces the shell and "
3357 "becomes the direct child of the libguestfs-using program).  If you don't do "
3358 "this, then the qemu process won't be cleaned up correctly."
3359 msgstr ""
3360
3361 # type: textblock
3362 #: ../src/guestfs.pod:1708
3363 msgid ""
3364 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3365 "source:"
3366 msgstr ""
3367
3368 # type: verbatim
3369 #: ../src/guestfs.pod:1711
3370 #, no-wrap
3371 msgid ""
3372 " #!/bin/sh -\n"
3373 " qemudir=/home/rjones/d/qemu\n"
3374 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3375 "\"$@\"\n"
3376 "\n"
3377 msgstr ""
3378
3379 # type: textblock
3380 #: ../src/guestfs.pod:1715
3381 msgid ""
3382 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3383 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3384 "example:"
3385 msgstr ""
3386
3387 # type: verbatim
3388 #: ../src/guestfs.pod:1719
3389 #, no-wrap
3390 msgid ""
3391 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3392 "\n"
3393 msgstr ""
3394
3395 # type: textblock
3396 #: ../src/guestfs.pod:1721
3397 msgid ""
3398 "Note that libguestfs also calls qemu with the -help and -version options in "
3399 "order to determine features."
3400 msgstr ""
3401
3402 # type: =head1
3403 #: ../src/guestfs.pod:1724
3404 msgid "LIBGUESTFS VERSION NUMBERS"
3405 msgstr ""
3406
3407 # type: textblock
3408 #: ../src/guestfs.pod:1726
3409 msgid ""
3410 "Since April 2010, libguestfs has started to make separate development and "
3411 "stable releases, along with corresponding branches in our git repository.  "
3412 "These separate releases can be identified by version number:"
3413 msgstr ""
3414
3415 # type: verbatim
3416 #: ../src/guestfs.pod:1731
3417 #, no-wrap
3418 msgid ""
3419 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3420 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3421 "       |\n"
3422 "       v\n"
3423 " 1  .  3  .  5\n"
3424 " ^           ^\n"
3425 " |           |\n"
3426 " |           `-------- sub-version\n"
3427 " |\n"
3428 " `------ always '1' because we don't change the ABI\n"
3429 "\n"
3430 msgstr ""
3431
3432 # type: textblock
3433 #: ../src/guestfs.pod:1742
3434 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3435 msgstr ""
3436
3437 # type: textblock
3438 #: ../src/guestfs.pod:1744
3439 msgid ""
3440 "As time passes we cherry pick fixes from the development branch and backport "
3441 "those into the stable branch, the effect being that the stable branch should "
3442 "get more stable and less buggy over time.  So the stable releases are ideal "
3443 "for people who don't need new features but would just like the software to "
3444 "work."
3445 msgstr ""
3446
3447 # type: textblock
3448 #: ../src/guestfs.pod:1750
3449 msgid "Our criteria for backporting changes are:"
3450 msgstr ""
3451
3452 # type: textblock
3453 #: ../src/guestfs.pod:1756
3454 msgid ""
3455 "Documentation changes which don't affect any code are backported unless the "
3456 "documentation refers to a future feature which is not in stable."
3457 msgstr ""
3458
3459 # type: textblock
3460 #: ../src/guestfs.pod:1762
3461 msgid ""
3462 "Bug fixes which are not controversial, fix obvious problems, and have been "
3463 "well tested are backported."
3464 msgstr ""
3465
3466 # type: textblock
3467 #: ../src/guestfs.pod:1767
3468 msgid ""
3469 "Simple rearrangements of code which shouldn't affect how it works get "
3470 "backported.  This is so that the code in the two branches doesn't get too "
3471 "far out of step, allowing us to backport future fixes more easily."
3472 msgstr ""
3473
3474 # type: textblock
3475 #: ../src/guestfs.pod:1773
3476 msgid ""
3477 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3478 "exceptional case: the new feature is required in order to implement an "
3479 "important bug fix."
3480 msgstr ""
3481
3482 # type: textblock
3483 #: ../src/guestfs.pod:1779
3484 msgid ""
3485 "A new stable branch starts when we think the new features in development are "
3486 "substantial and compelling enough over the current stable branch to warrant "
3487 "it.  When that happens we create new stable and development versions 1.N.0 "
3488 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3489 "stable at this point, but by backporting fixes from development, that branch "
3490 "will stabilize over time."
3491 msgstr ""
3492
3493 # type: =head1
3494 #: ../src/guestfs.pod:1787 ../fish/guestfish.pod:867 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:245
3495 msgid "ENVIRONMENT VARIABLES"
3496 msgstr ""
3497
3498 # type: =item
3499 #: ../src/guestfs.pod:1791 ../fish/guestfish.pod:893
3500 msgid "LIBGUESTFS_APPEND"
3501 msgstr ""
3502
3503 # type: textblock
3504 #: ../src/guestfs.pod:1793 ../fish/guestfish.pod:895
3505 msgid "Pass additional options to the guest kernel."
3506 msgstr ""
3507
3508 # type: =item
3509 #: ../src/guestfs.pod:1795 ../fish/guestfish.pod:897
3510 msgid "LIBGUESTFS_DEBUG"
3511 msgstr ""
3512
3513 # type: textblock
3514 #: ../src/guestfs.pod:1797
3515 msgid ""
3516 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3517 "effect as calling C<guestfs_set_verbose (g, 1)>."
3518 msgstr ""
3519
3520 # type: =item
3521 #: ../src/guestfs.pod:1800 ../fish/guestfish.pod:902
3522 msgid "LIBGUESTFS_MEMSIZE"
3523 msgstr ""
3524
3525 # type: textblock
3526 #: ../src/guestfs.pod:1802 ../fish/guestfish.pod:904
3527 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3528 msgstr ""
3529
3530 # type: verbatim
3531 #: ../src/guestfs.pod:1805 ../fish/guestfish.pod:907
3532 #, no-wrap
3533 msgid ""
3534 " LIBGUESTFS_MEMSIZE=700\n"
3535 "\n"
3536 msgstr ""
3537
3538 # type: =item
3539 #: ../src/guestfs.pod:1807 ../fish/guestfish.pod:909
3540 msgid "LIBGUESTFS_PATH"
3541 msgstr ""
3542
3543 # type: textblock
3544 #: ../src/guestfs.pod:1809
3545 msgid ""
3546 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3547 "the discussion of paths in section PATH above."
3548 msgstr ""
3549
3550 # type: =item
3551 #: ../src/guestfs.pod:1812 ../fish/guestfish.pod:914
3552 msgid "LIBGUESTFS_QEMU"
3553 msgstr ""
3554
3555 # type: textblock
3556 #: ../src/guestfs.pod:1814 ../fish/guestfish.pod:916
3557 msgid ""
3558 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3559 "which was found at compile time by the configure script is used."
3560 msgstr ""
3561
3562 # type: textblock
3563 #: ../src/guestfs.pod:1818
3564 msgid "See also L</QEMU WRAPPERS> above."
3565 msgstr ""
3566
3567 # type: =item
3568 #: ../src/guestfs.pod:1820 ../fish/guestfish.pod:920
3569 msgid "LIBGUESTFS_TRACE"
3570 msgstr ""
3571
3572 # type: textblock
3573 #: ../src/guestfs.pod:1822
3574 msgid ""
3575 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3576 "effect as calling C<guestfs_set_trace (g, 1)>."
3577 msgstr ""
3578
3579 # type: =item
3580 #: ../src/guestfs.pod:1825 ../fish/guestfish.pod:929
3581 msgid "TMPDIR"
3582 msgstr ""
3583
3584 # type: textblock
3585 #: ../src/guestfs.pod:1827 ../fish/guestfish.pod:931
3586 msgid "Location of temporary directory, defaults to C</tmp>."
3587 msgstr ""
3588
3589 # type: textblock
3590 #: ../src/guestfs.pod:1829 ../fish/guestfish.pod:933
3591 msgid ""
3592 "If libguestfs was compiled to use the supermin appliance then the real "
3593 "appliance is cached in this directory, shared between all handles belonging "
3594 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3595 "use in case C</tmp> is not large enough."
3596 msgstr ""
3597
3598 # type: =head1
3599 #: ../src/guestfs.pod:1837 ../fish/guestfish.pod:991 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:178 ../inspector/virt-inspector.pl:884 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:487 ../tools/virt-df.pl:614 ../tools/virt-ls.pl:235 ../tools/virt-resize.pl:1486 ../tools/virt-list-filesystems.pl:216 ../tools/virt-cat.pl:188 ../tools/virt-tar.pl:283 ../tools/virt-rescue.pl:257 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3600 msgid "SEE ALSO"
3601 msgstr ""
3602
3603 # type: textblock
3604 #: ../src/guestfs.pod:1839
3605 msgid ""
3606 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3607 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3608 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3609 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3610 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3611 msgstr ""
3612
3613 # type: textblock
3614 #: ../src/guestfs.pod:1857
3615 msgid ""
3616 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
3617 "L<lvm(8)>, L<disktype(1)>."
3618 msgstr ""
3619
3620 # type: =head1
3621 #: ../src/guestfs.pod:1864 ../tools/virt-win-reg.pl:502 ../tools/virt-make-fs.pl:548
3622 msgid "BUGS"
3623 msgstr ""
3624
3625 # type: textblock
3626 #: ../src/guestfs.pod:1866
3627 msgid "To get a list of bugs against libguestfs use this link:"
3628 msgstr ""
3629
3630 # type: textblock
3631 #: ../src/guestfs.pod:1868
3632 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
3633 msgstr ""
3634
3635 # type: textblock
3636 #: ../src/guestfs.pod:1870
3637 msgid "To report a new bug against libguestfs use this link:"
3638 msgstr ""
3639
3640 # type: textblock
3641 #: ../src/guestfs.pod:1872
3642 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
3643 msgstr ""
3644
3645 # type: textblock
3646 #: ../src/guestfs.pod:1874
3647 msgid "When reporting a bug, please check:"
3648 msgstr ""
3649
3650 # type: textblock
3651 #: ../src/guestfs.pod:1880
3652 msgid "That the bug hasn't been reported already."
3653 msgstr ""
3654
3655 # type: textblock
3656 #: ../src/guestfs.pod:1884
3657 msgid "That you are testing a recent version."
3658 msgstr ""
3659
3660 # type: textblock
3661 #: ../src/guestfs.pod:1888
3662 msgid "Describe the bug accurately, and give a way to reproduce it."
3663 msgstr ""
3664
3665 # type: textblock
3666 #: ../src/guestfs.pod:1892
3667 msgid ""
3668 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3669 "bug report."
3670 msgstr ""
3671
3672 # type: =head1
3673 #: ../src/guestfs.pod:1897 ../fish/guestfish.pod:1008 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:189 ../inspector/virt-inspector.pl:893
3674 msgid "AUTHORS"
3675 msgstr ""
3676
3677 # type: textblock
3678 #: ../src/guestfs.pod:1899 ../fish/guestfish.pod:1010 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:191
3679 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3680 msgstr ""
3681
3682 # type: =head1
3683 #: ../src/guestfs.pod:1901 ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:193 ../inspector/virt-inspector.pl:899 ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:517 ../tools/virt-df.pl:627 ../tools/virt-ls.pl:250 ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:232 ../tools/virt-cat.pl:202 ../tools/virt-tar.pl:298 ../tools/virt-rescue.pl:271 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3684 msgid "COPYRIGHT"
3685 msgstr ""
3686
3687 # type: textblock
3688 #: ../src/guestfs.pod:1903 ../fish/guestfish.pod:1014
3689 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3690 msgstr ""
3691
3692 # type: textblock
3693 #: ../src/guestfs.pod:1906
3694 msgid ""
3695 "This library is free software; you can redistribute it and/or modify it "
3696 "under the terms of the GNU Lesser General Public License as published by the "
3697 "Free Software Foundation; either version 2 of the License, or (at your "
3698 "option) any later version."
3699 msgstr ""
3700
3701 # type: textblock
3702 #: ../src/guestfs.pod:1911
3703 msgid ""
3704 "This library is distributed in the hope that it will be useful, but WITHOUT "
3705 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3706 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3707 "for more details."
3708 msgstr ""
3709
3710 # type: textblock
3711 #: ../src/guestfs.pod:1916
3712 msgid ""
3713 "You should have received a copy of the GNU Lesser General Public License "
3714 "along with this library; if not, write to the Free Software Foundation, "
3715 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3716 msgstr ""
3717
3718 # type: =head2
3719 #: ../src/guestfs-actions.pod:1
3720 msgid "guestfs_add_cdrom"
3721 msgstr ""
3722
3723 # type: verbatim
3724 #: ../src/guestfs-actions.pod:3
3725 #, no-wrap
3726 msgid ""
3727 " int guestfs_add_cdrom (guestfs_h *g,\n"
3728 "\t\tconst char *filename);\n"
3729 "\n"
3730 msgstr ""
3731
3732 # type: textblock
3733 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3734 msgid "This function adds a virtual CD-ROM disk image to the guest."
3735 msgstr ""
3736
3737 # type: textblock
3738 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3739 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3740 msgstr ""
3741
3742 # type: textblock
3743 #: ../src/guestfs-actions.pod:16
3744 msgid ""
3745 "This call checks for the existence of C<filename>.  This stops you from "
3746 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3747 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3748 "instead."
3749 msgstr ""
3750
3751 # type: textblock
3752 #: ../src/guestfs-actions.pod:23
3753 msgid ""
3754 "If you just want to add an ISO file (often you use this as an efficient way "
3755 "to transfer large files into the guest), then you should probably use "
3756 "C<guestfs_add_drive_ro> instead."
3757 msgstr ""
3758
3759 # type: textblock
3760 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:54 ../src/guestfs-actions.pod:112 ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:155 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:190 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:304 ../src/guestfs-actions.pod:321 ../src/guestfs-actions.pod:332 ../src/guestfs-actions.pod:368 ../src/guestfs-actions.pod:390 ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:496 ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:615 ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:783 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:815 ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:905 ../src/guestfs-actions.pod:921 ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:949 ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1090 ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1209 ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1540 ../src/guestfs-actions.pod:1888 ../src/guestfs-actions.pod:2011 ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2663 ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2780 ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2851 ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2896 ../src/guestfs-actions.pod:2912 ../src/guestfs-actions.pod:2924 ../src/guestfs-actions.pod:2933 ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:2989 ../src/guestfs-actions.pod:3001 ../src/guestfs-actions.pod:3015 ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3122 ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3182 ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3210 ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3232 ../src/guestfs-actions.pod:3246 ../src/guestfs-actions.pod:3258 ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3306 ../src/guestfs-actions.pod:3334 ../src/guestfs-actions.pod:3350 ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3423 ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3495 ../src/guestfs-actions.pod:3509 ../src/guestfs-actions.pod:3549 ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:3591 ../src/guestfs-actions.pod:3616 ../src/guestfs-actions.pod:3630 ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3767 ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:3853 ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3936 ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4253 ../src/guestfs-actions.pod:4262 ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4293 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4340 ../src/guestfs-actions.pod:4356 ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4391 ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:4470 ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4532 ../src/guestfs-actions.pod:4553 ../src/guestfs-actions.pod:4565 ../src/guestfs-actions.pod:4577 ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4627 ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4670 ../src/guestfs-actions.pod:4760 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4875 ../src/guestfs-actions.pod:4885 ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4914 ../src/guestfs-actions.pod:4924 ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5033 ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5060 ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5087 ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5128 ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5188 ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5242 ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5361 ../src/guestfs-actions.pod:5372 ../src/guestfs-actions.pod:5418 ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5492 ../src/guestfs-actions.pod:5534 ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:5656
3761 msgid "This function returns 0 on success or -1 on error."
3762 msgstr ""
3763
3764 # type: textblock
3765 #: ../src/guestfs-actions.pod:31 ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3766 msgid ""
3767 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3768 "instead."
3769 msgstr ""
3770
3771 # type: textblock
3772 #: ../src/guestfs-actions.pod:34 ../src/guestfs-actions.pod:160 ../src/guestfs-actions.pod:178 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:5710 ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:120 ../fish/guestfish-actions.pod:134 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1311 ../fish/guestfish-actions.pod:4289 ../fish/guestfish-actions.pod:4386
3773 msgid ""
3774 "Deprecated functions will not be removed from the API, but the fact that "
3775 "they are deprecated indicates that there are problems with correct use of "
3776 "these functions."
3777 msgstr ""
3778
3779 # type: =head2
3780 #: ../src/guestfs-actions.pod:38
3781 msgid "guestfs_add_drive"
3782 msgstr ""
3783
3784 # type: verbatim
3785 #: ../src/guestfs-actions.pod:40
3786 #, no-wrap
3787 msgid ""
3788 " int guestfs_add_drive (guestfs_h *g,\n"
3789 "\t\tconst char *filename);\n"
3790 "\n"
3791 msgstr ""
3792
3793 # type: textblock
3794 #: ../src/guestfs-actions.pod:43
3795 msgid ""
3796 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
3797 "optional parameters, so the disk is added writable, with the format being "
3798 "detected automatically."
3799 msgstr ""
3800
3801 # type: textblock
3802 #: ../src/guestfs-actions.pod:47
3803 msgid ""
3804 "Automatic detection of the format opens you up to a potential security hole "
3805 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3806 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3807 "you should think about replacing calls to this function with calls to "
3808 "C<guestfs_add_drive_opts>, and specifying the format."
3809 msgstr ""
3810
3811 # type: =head2
3812 #: ../src/guestfs-actions.pod:56
3813 msgid "guestfs_add_drive_opts"
3814 msgstr ""
3815
3816 # type: verbatim
3817 #: ../src/guestfs-actions.pod:58
3818 #, no-wrap
3819 msgid ""
3820 " int guestfs_add_drive_opts (guestfs_h *g,\n"
3821 "\t\tconst char *filename,\n"
3822 "\t\t...);\n"
3823 "\n"
3824 msgstr ""
3825
3826 # type: textblock
3827 #: ../src/guestfs-actions.pod:62
3828 msgid ""
3829 "You may supply a list of optional arguments to this call.  Use zero or more "
3830 "of the following pairs of parameters, and terminate the list with C<-1> on "
3831 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
3832 msgstr ""
3833
3834 # type: verbatim
3835 #: ../src/guestfs-actions.pod:67
3836 #, no-wrap
3837 msgid ""
3838 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
3839 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
3840 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
3841 "\n"
3842 msgstr ""
3843
3844 # type: textblock
3845 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:56
3846 msgid ""
3847 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
3848 "The first time you call this function, the disk appears as C</dev/sda>, the "
3849 "second time as C</dev/sdb>, and so on."
3850 msgstr ""
3851
3852 # type: textblock
3853 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:61
3854 msgid ""
3855 "You don't necessarily need to be root when using libguestfs.  However you "
3856 "obviously do need sufficient permissions to access the filename for whatever "
3857 "operations you want to perform (ie. read access if you just want to read the "
3858 "image or write access if you want to modify the image)."
3859 msgstr ""
3860
3861 # type: textblock
3862 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:67
3863 msgid "This call checks that C<filename> exists."
3864 msgstr ""
3865
3866 # type: textblock
3867 #: ../src/guestfs-actions.pod:84 ../fish/guestfish-actions.pod:69
3868 msgid "The optional arguments are:"
3869 msgstr ""
3870
3871 # type: =item
3872 #: ../src/guestfs-actions.pod:88 ../fish/guestfish-actions.pod:73
3873 msgid "C<readonly>"
3874 msgstr ""
3875
3876 # type: textblock
3877 #: ../src/guestfs-actions.pod:90 ../fish/guestfish-actions.pod:75
3878 msgid ""
3879 "If true then the image is treated as read-only.  Writes are still allowed, "
3880 "but they are stored in a temporary snapshot overlay which is discarded at "
3881 "the end.  The disk that you add is not modified."
3882 msgstr ""
3883
3884 # type: =item
3885 #: ../src/guestfs-actions.pod:94 ../fish/guestfish-actions.pod:79
3886 msgid "C<format>"
3887 msgstr ""
3888
3889 # type: textblock
3890 #: ../src/guestfs-actions.pod:96
3891 msgid ""
3892 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
3893 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
3894 "Possible formats include C<raw> and C<qcow2>."
3895 msgstr ""
3896
3897 # type: textblock
3898 #: ../src/guestfs-actions.pod:100 ../fish/guestfish-actions.pod:85
3899 msgid ""
3900 "Automatic detection of the format opens you up to a potential security hole "
3901 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3902 "RHBZ#642934.  Specifying the format closes this security hole."
3903 msgstr ""
3904
3905 # type: =item
3906 #: ../src/guestfs-actions.pod:105 ../fish/guestfish-actions.pod:90
3907 msgid "C<iface>"
3908 msgstr ""
3909
3910 # type: textblock
3911 #: ../src/guestfs-actions.pod:107
3912 msgid ""
3913 "This rarely-used option lets you emulate the behaviour of the deprecated "
3914 "C<guestfs_add_drive_with_if> call (q.v.)"
3915 msgstr ""
3916
3917 # type: =head2
3918 #: ../src/guestfs-actions.pod:114
3919 msgid "guestfs_add_drive_opts_va"
3920 msgstr ""
3921
3922 # type: verbatim
3923 #: ../src/guestfs-actions.pod:116
3924 #, no-wrap
3925 msgid ""
3926 " int guestfs_add_drive_opts_va (guestfs_h *g,\n"
3927 "\t\tconst char *filename,\n"
3928 "\t\tva_list args);\n"
3929 "\n"
3930 msgstr ""
3931
3932 # type: textblock
3933 #: ../src/guestfs-actions.pod:120
3934 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
3935 msgstr ""
3936
3937 # type: textblock
3938 #: ../src/guestfs-actions.pod:122 ../src/guestfs-actions.pod:132
3939 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3940 msgstr ""
3941
3942 # type: =head2
3943 #: ../src/guestfs-actions.pod:124
3944 msgid "guestfs_add_drive_opts_argv"
3945 msgstr ""
3946
3947 # type: verbatim
3948 #: ../src/guestfs-actions.pod:126
3949 #, no-wrap
3950 msgid ""
3951 " int guestfs_add_drive_opts_argv (guestfs_h *g,\n"
3952 "\t\tconst char *filename,\n"
3953 "\t\tconst struct guestfs_add_drive_opts_argv *optargs);\n"
3954 "\n"
3955 msgstr ""
3956
3957 # type: textblock
3958 #: ../src/guestfs-actions.pod:130
3959 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
3960 msgstr ""
3961
3962 # type: =head2
3963 #: ../src/guestfs-actions.pod:134
3964 msgid "guestfs_add_drive_ro"
3965 msgstr ""
3966
3967 # type: verbatim
3968 #: ../src/guestfs-actions.pod:136
3969 #, no-wrap
3970 msgid ""
3971 " int guestfs_add_drive_ro (guestfs_h *g,\n"
3972 "\t\tconst char *filename);\n"
3973 "\n"
3974 msgstr ""
3975
3976 # type: textblock
3977 #: ../src/guestfs-actions.pod:139
3978 msgid ""
3979 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
3980 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
3981 "disk is added read-only, with the format being detected automatically."
3982 msgstr ""
3983
3984 # type: =head2
3985 #: ../src/guestfs-actions.pod:146
3986 msgid "guestfs_add_drive_ro_with_if"
3987 msgstr ""
3988
3989 # type: verbatim
3990 #: ../src/guestfs-actions.pod:148
3991 #, no-wrap
3992 msgid ""
3993 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
3994 "\t\tconst char *filename,\n"
3995 "\t\tconst char *iface);\n"
3996 "\n"
3997 msgstr ""
3998
3999 # type: textblock
4000 #: ../src/guestfs-actions.pod:152
4001 msgid ""
4002 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4003 "QEMU interface emulation to use at run time."
4004 msgstr ""
4005
4006 # type: =head2
4007 #: ../src/guestfs-actions.pod:164
4008 msgid "guestfs_add_drive_with_if"
4009 msgstr ""
4010
4011 # type: verbatim
4012 #: ../src/guestfs-actions.pod:166
4013 #, no-wrap
4014 msgid ""
4015 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
4016 "\t\tconst char *filename,\n"
4017 "\t\tconst char *iface);\n"
4018 "\n"
4019 msgstr ""
4020
4021 # type: textblock
4022 #: ../src/guestfs-actions.pod:170
4023 msgid ""
4024 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4025 "QEMU interface emulation to use at run time."
4026 msgstr ""
4027
4028 # type: =head2
4029 #: ../src/guestfs-actions.pod:182
4030 msgid "guestfs_aug_clear"
4031 msgstr ""
4032
4033 # type: verbatim
4034 #: ../src/guestfs-actions.pod:184
4035 #, no-wrap
4036 msgid ""
4037 " int guestfs_aug_clear (guestfs_h *g,\n"
4038 "\t\tconst char *augpath);\n"
4039 "\n"
4040 msgstr ""
4041
4042 # type: textblock
4043 #: ../src/guestfs-actions.pod:187 ../fish/guestfish-actions.pod:142
4044 msgid ""
4045 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4046 "L<augtool(1)> C<clear> command."
4047 msgstr ""
4048
4049 # type: =head2
4050 #: ../src/guestfs-actions.pod:192
4051 msgid "guestfs_aug_close"
4052 msgstr ""
4053
4054 # type: verbatim
4055 #: ../src/guestfs-actions.pod:194
4056 #, no-wrap
4057 msgid ""
4058 " int guestfs_aug_close (guestfs_h *g);\n"
4059 "\n"
4060 msgstr ""
4061
4062 # type: textblock
4063 #: ../src/guestfs-actions.pod:196
4064 msgid ""
4065 "Close the current Augeas handle and free up any resources used by it.  After "
4066 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4067 "any other Augeas functions."
4068 msgstr ""
4069
4070 # type: =head2
4071 #: ../src/guestfs-actions.pod:203
4072 msgid "guestfs_aug_defnode"
4073 msgstr ""
4074
4075 # type: verbatim
4076 #: ../src/guestfs-actions.pod:205
4077 #, no-wrap
4078 msgid ""
4079 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
4080 "\t\tconst char *name,\n"
4081 "\t\tconst char *expr,\n"
4082 "\t\tconst char *val);\n"
4083 "\n"
4084 msgstr ""
4085
4086 # type: textblock
4087 #: ../src/guestfs-actions.pod:210 ../fish/guestfish-actions.pod:158
4088 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4089 msgstr ""
4090
4091 # type: textblock
4092 #: ../src/guestfs-actions.pod:213
4093 msgid ""
4094 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4095 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4096 "containing that single node."
4097 msgstr ""
4098
4099 # type: textblock
4100 #: ../src/guestfs-actions.pod:217 ../fish/guestfish-actions.pod:165
4101 msgid ""
4102 "On success this returns a pair containing the number of nodes in the "
4103 "nodeset, and a boolean flag if a node was created."
4104 msgstr ""
4105
4106 # type: textblock
4107 #: ../src/guestfs-actions.pod:221
4108 msgid ""
4109 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4110 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4111 msgstr ""
4112
4113 # type: =head2
4114 #: ../src/guestfs-actions.pod:225
4115 msgid "guestfs_aug_defvar"
4116 msgstr ""
4117
4118 # type: verbatim
4119 #: ../src/guestfs-actions.pod:227
4120 #, no-wrap
4121 msgid ""
4122 " int guestfs_aug_defvar (guestfs_h *g,\n"
4123 "\t\tconst char *name,\n"
4124 "\t\tconst char *expr);\n"
4125 "\n"
4126 msgstr ""
4127
4128 # type: textblock
4129 #: ../src/guestfs-actions.pod:231 ../fish/guestfish-actions.pod:173
4130 msgid ""
4131 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4132 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4133 msgstr ""
4134
4135 # type: textblock
4136 #: ../src/guestfs-actions.pod:235 ../fish/guestfish-actions.pod:177
4137 msgid ""
4138 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4139 "evaluates to something which is not a nodeset."
4140 msgstr ""
4141
4142 # type: textblock
4143 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:379 ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:558 ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1685 ../src/guestfs-actions.pod:1716 ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1776 ../src/guestfs-actions.pod:2001 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2231 ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4053 ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5522
4144 msgid "On error this function returns -1."
4145 msgstr ""
4146
4147 # type: =head2
4148 #: ../src/guestfs-actions.pod:240
4149 msgid "guestfs_aug_get"
4150 msgstr ""
4151
4152 # type: verbatim
4153 #: ../src/guestfs-actions.pod:242
4154 #, no-wrap
4155 msgid ""
4156 " char *guestfs_aug_get (guestfs_h *g,\n"
4157 "\t\tconst char *augpath);\n"
4158 "\n"
4159 msgstr ""
4160
4161 # type: textblock
4162 #: ../src/guestfs-actions.pod:245 ../fish/guestfish-actions.pod:184
4163 msgid ""
4164 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4165 "node, the C<value> is returned."
4166 msgstr ""
4167
4168 # type: textblock
4169 #: ../src/guestfs-actions.pod:248 ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:748 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:965 ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1408 ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1643 ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1795 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:2115 ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:2281 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2631 ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3148 ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3867 ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4688 ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4736 ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5311 ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5474 ../src/guestfs-actions.pod:5704
4170 msgid ""
4171 "This function returns a string, or NULL on error.  I<The caller must free "
4172 "the returned string after use>."
4173 msgstr ""
4174
4175 # type: =head2
4176 #: ../src/guestfs-actions.pod:251
4177 msgid "guestfs_aug_init"
4178 msgstr ""
4179
4180 # type: verbatim
4181 #: ../src/guestfs-actions.pod:253
4182 #, no-wrap
4183 msgid ""
4184 " int guestfs_aug_init (guestfs_h *g,\n"
4185 "\t\tconst char *root,\n"
4186 "\t\tint flags);\n"
4187 "\n"
4188 msgstr ""
4189
4190 # type: textblock
4191 #: ../src/guestfs-actions.pod:257 ../fish/guestfish-actions.pod:191
4192 msgid ""
4193 "Create a new Augeas handle for editing configuration files.  If there was "
4194 "any previous Augeas handle associated with this guestfs session, then it is "
4195 "closed."
4196 msgstr ""
4197
4198 # type: textblock
4199 #: ../src/guestfs-actions.pod:261
4200 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4201 msgstr ""
4202
4203 # type: textblock
4204 #: ../src/guestfs-actions.pod:264 ../fish/guestfish-actions.pod:198
4205 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4206 msgstr ""
4207
4208 # type: textblock
4209 #: ../src/guestfs-actions.pod:267 ../fish/guestfish-actions.pod:201
4210 msgid ""
4211 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4212 "logical I<or> of the following integers:"
4213 msgstr ""
4214
4215 # type: =item
4216 #: ../src/guestfs-actions.pod:273 ../fish/guestfish-actions.pod:207
4217 msgid "C<AUG_SAVE_BACKUP> = 1"
4218 msgstr ""
4219
4220 # type: textblock
4221 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:209
4222 msgid "Keep the original file with a C<.augsave> extension."
4223 msgstr ""
4224
4225 # type: =item
4226 #: ../src/guestfs-actions.pod:277 ../fish/guestfish-actions.pod:211
4227 msgid "C<AUG_SAVE_NEWFILE> = 2"
4228 msgstr ""
4229
4230 # type: textblock
4231 #: ../src/guestfs-actions.pod:279 ../fish/guestfish-actions.pod:213
4232 msgid ""
4233 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4234 "original.  Overrides C<AUG_SAVE_BACKUP>."
4235 msgstr ""
4236
4237 # type: =item
4238 #: ../src/guestfs-actions.pod:282 ../fish/guestfish-actions.pod:216
4239 msgid "C<AUG_TYPE_CHECK> = 4"
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:218
4244 msgid "Typecheck lenses (can be expensive)."
4245 msgstr ""
4246
4247 # type: =item
4248 #: ../src/guestfs-actions.pod:286 ../fish/guestfish-actions.pod:220
4249 msgid "C<AUG_NO_STDINC> = 8"
4250 msgstr ""
4251
4252 # type: textblock
4253 #: ../src/guestfs-actions.pod:288 ../fish/guestfish-actions.pod:222
4254 msgid "Do not use standard load path for modules."
4255 msgstr ""
4256
4257 # type: =item
4258 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:224
4259 msgid "C<AUG_SAVE_NOOP> = 16"
4260 msgstr ""
4261
4262 # type: textblock
4263 #: ../src/guestfs-actions.pod:292 ../fish/guestfish-actions.pod:226
4264 msgid "Make save a no-op, just record what would have been changed."
4265 msgstr ""
4266
4267 # type: =item
4268 #: ../src/guestfs-actions.pod:294 ../fish/guestfish-actions.pod:228
4269 msgid "C<AUG_NO_LOAD> = 32"
4270 msgstr ""
4271
4272 # type: textblock
4273 #: ../src/guestfs-actions.pod:296
4274 msgid "Do not load the tree in C<guestfs_aug_init>."
4275 msgstr ""
4276
4277 # type: textblock
4278 #: ../src/guestfs-actions.pod:300
4279 msgid "To close the handle, you can call C<guestfs_aug_close>."
4280 msgstr ""
4281
4282 # type: textblock
4283 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:236
4284 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4285 msgstr ""
4286
4287 # type: =head2
4288 #: ../src/guestfs-actions.pod:306
4289 msgid "guestfs_aug_insert"
4290 msgstr ""
4291
4292 # type: verbatim
4293 #: ../src/guestfs-actions.pod:308
4294 #, no-wrap
4295 msgid ""
4296 " int guestfs_aug_insert (guestfs_h *g,\n"
4297 "\t\tconst char *augpath,\n"
4298 "\t\tconst char *label,\n"
4299 "\t\tint before);\n"
4300 "\n"
4301 msgstr ""
4302
4303 # type: textblock
4304 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:242
4305 msgid ""
4306 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4307 "or after C<path> (depending on the boolean flag C<before>)."
4308 msgstr ""
4309
4310 # type: textblock
4311 #: ../src/guestfs-actions.pod:317 ../fish/guestfish-actions.pod:246
4312 msgid ""
4313 "C<path> must match exactly one existing node in the tree, and C<label> must "
4314 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4315 msgstr ""
4316
4317 # type: =head2
4318 #: ../src/guestfs-actions.pod:323
4319 msgid "guestfs_aug_load"
4320 msgstr ""
4321
4322 # type: verbatim
4323 #: ../src/guestfs-actions.pod:325
4324 #, no-wrap
4325 msgid ""
4326 " int guestfs_aug_load (guestfs_h *g);\n"
4327 "\n"
4328 msgstr ""
4329
4330 # type: textblock
4331 #: ../src/guestfs-actions.pod:327 ../fish/guestfish-actions.pod:254
4332 msgid "Load files into the tree."
4333 msgstr ""
4334
4335 # type: textblock
4336 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:256
4337 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4338 msgstr ""
4339
4340 # type: =head2
4341 #: ../src/guestfs-actions.pod:334
4342 msgid "guestfs_aug_ls"
4343 msgstr ""
4344
4345 # type: verbatim
4346 #: ../src/guestfs-actions.pod:336
4347 #, no-wrap
4348 msgid ""
4349 " char **guestfs_aug_ls (guestfs_h *g,\n"
4350 "\t\tconst char *augpath);\n"
4351 "\n"
4352 msgstr ""
4353
4354 # type: textblock
4355 #: ../src/guestfs-actions.pod:339
4356 msgid ""
4357 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4358 "sorting the resulting nodes into alphabetical order."
4359 msgstr ""
4360
4361 # type: textblock
4362 #: ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:355 ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1251 ../src/guestfs-actions.pod:1267 ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1832 ../src/guestfs-actions.pod:1845 ../src/guestfs-actions.pod:1861 ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:1919 ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021 ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:2560 ../src/guestfs-actions.pod:2616 ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:3029 ../src/guestfs-actions.pod:3536 ../src/guestfs-actions.pod:3985 ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4749 ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:4850 ../src/guestfs-actions.pod:4966 ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5387 ../src/guestfs-actions.pod:5404 ../src/guestfs-actions.pod:5442 ../src/guestfs-actions.pod:5578 ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5683 ../src/guestfs-actions.pod:5723 ../src/guestfs-actions.pod:5739
4363 msgid ""
4364 "This function returns a NULL-terminated array of strings (like "
4365 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4366 "strings and the array after use>."
4367 msgstr ""
4368
4369 # type: =head2
4370 #: ../src/guestfs-actions.pod:346
4371 msgid "guestfs_aug_match"
4372 msgstr ""
4373
4374 # type: verbatim
4375 #: ../src/guestfs-actions.pod:348
4376 #, no-wrap
4377 msgid ""
4378 " char **guestfs_aug_match (guestfs_h *g,\n"
4379 "\t\tconst char *augpath);\n"
4380 "\n"
4381 msgstr ""
4382
4383 # type: textblock
4384 #: ../src/guestfs-actions.pod:351 ../fish/guestfish-actions.pod:270
4385 msgid ""
4386 "Returns a list of paths which match the path expression C<path>.  The "
4387 "returned paths are sufficiently qualified so that they match exactly one "
4388 "node in the current tree."
4389 msgstr ""
4390
4391 # type: =head2
4392 #: ../src/guestfs-actions.pod:359
4393 msgid "guestfs_aug_mv"
4394 msgstr ""
4395
4396 # type: verbatim
4397 #: ../src/guestfs-actions.pod:361
4398 #, no-wrap
4399 msgid ""
4400 " int guestfs_aug_mv (guestfs_h *g,\n"
4401 "\t\tconst char *src,\n"
4402 "\t\tconst char *dest);\n"
4403 "\n"
4404 msgstr ""
4405
4406 # type: textblock
4407 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:278
4408 msgid ""
4409 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4410 "C<dest> is overwritten if it exists."
4411 msgstr ""
4412
4413 # type: =head2
4414 #: ../src/guestfs-actions.pod:370
4415 msgid "guestfs_aug_rm"
4416 msgstr ""
4417
4418 # type: verbatim
4419 #: ../src/guestfs-actions.pod:372
4420 #, no-wrap
4421 msgid ""
4422 " int guestfs_aug_rm (guestfs_h *g,\n"
4423 "\t\tconst char *augpath);\n"
4424 "\n"
4425 msgstr ""
4426
4427 # type: textblock
4428 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:285
4429 msgid "Remove C<path> and all of its children."
4430 msgstr ""
4431
4432 # type: textblock
4433 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:287
4434 msgid "On success this returns the number of entries which were removed."
4435 msgstr ""
4436
4437 # type: =head2
4438 #: ../src/guestfs-actions.pod:381
4439 msgid "guestfs_aug_save"
4440 msgstr ""
4441
4442 # type: verbatim
4443 #: ../src/guestfs-actions.pod:383
4444 #, no-wrap
4445 msgid ""
4446 " int guestfs_aug_save (guestfs_h *g);\n"
4447 "\n"
4448 msgstr ""
4449
4450 # type: textblock
4451 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:293
4452 msgid "This writes all pending changes to disk."
4453 msgstr ""
4454
4455 # type: textblock
4456 #: ../src/guestfs-actions.pod:387
4457 msgid ""
4458 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4459 "are saved."
4460 msgstr ""
4461
4462 # type: =head2
4463 #: ../src/guestfs-actions.pod:392
4464 msgid "guestfs_aug_set"
4465 msgstr ""
4466
4467 # type: verbatim
4468 #: ../src/guestfs-actions.pod:394
4469 #, no-wrap
4470 msgid ""
4471 " int guestfs_aug_set (guestfs_h *g,\n"
4472 "\t\tconst char *augpath,\n"
4473 "\t\tconst char *val);\n"
4474 "\n"
4475 msgstr ""
4476
4477 # type: textblock
4478 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:302
4479 msgid "Set the value associated with C<path> to C<val>."
4480 msgstr ""
4481
4482 # type: textblock
4483 #: ../src/guestfs-actions.pod:400
4484 msgid ""
4485 "In the Augeas API, it is possible to clear a node by setting the value to "
4486 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4487 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4488 msgstr ""
4489
4490 # type: =head2
4491 #: ../src/guestfs-actions.pod:407
4492 msgid "guestfs_available"
4493 msgstr ""
4494
4495 # type: verbatim
4496 #: ../src/guestfs-actions.pod:409
4497 #, no-wrap
4498 msgid ""
4499 " int guestfs_available (guestfs_h *g,\n"
4500 "\t\tchar *const *groups);\n"
4501 "\n"
4502 msgstr ""
4503
4504 # type: textblock
4505 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:313
4506 msgid ""
4507 "This command is used to check the availability of some groups of "
4508 "functionality in the appliance, which not all builds of the libguestfs "
4509 "appliance will be able to provide."
4510 msgstr ""
4511
4512 # type: textblock
4513 #: ../src/guestfs-actions.pod:416
4514 msgid ""
4515 "The libguestfs groups, and the functions that those groups correspond to, "
4516 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4517 "runtime by calling C<guestfs_available_all_groups>."
4518 msgstr ""
4519
4520 # type: textblock
4521 #: ../src/guestfs-actions.pod:421 ../fish/guestfish-actions.pod:322
4522 msgid ""
4523 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4524 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4525 "and Augeas (configuration file editing) functions."
4526 msgstr ""
4527
4528 # type: textblock
4529 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:327
4530 msgid "The command returns no error if I<all> requested groups are available."
4531 msgstr ""
4532
4533 # type: textblock
4534 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:329
4535 msgid ""
4536 "It fails with an error if one or more of the requested groups is unavailable "
4537 "in the appliance."
4538 msgstr ""
4539
4540 # type: textblock
4541 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:332
4542 msgid ""
4543 "If an unknown group name is included in the list of groups then an error is "
4544 "always returned."
4545 msgstr ""
4546
4547 # type: textblock
4548 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:335
4549 msgid "I<Notes:>"
4550 msgstr ""
4551
4552 # type: textblock
4553 #: ../src/guestfs-actions.pod:440
4554 msgid "You must call C<guestfs_launch> before calling this function."
4555 msgstr ""
4556
4557 # type: textblock
4558 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:343
4559 msgid ""
4560 "The reason is because we don't know what groups are supported by the "
4561 "appliance/daemon until it is running and can be queried."
4562 msgstr ""
4563
4564 # type: textblock
4565 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:349
4566 msgid ""
4567 "If a group of functions is available, this does not necessarily mean that "
4568 "they will work.  You still have to check for errors when calling individual "
4569 "API functions even if they are available."
4570 msgstr ""
4571
4572 # type: textblock
4573 #: ../src/guestfs-actions.pod:455 ../fish/guestfish-actions.pod:356
4574 msgid ""
4575 "It is usually the job of distro packagers to build complete functionality "
4576 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4577 "with all requirements satisfied, will support everything."
4578 msgstr ""
4579
4580 # type: textblock
4581 #: ../src/guestfs-actions.pod:462
4582 msgid ""
4583 "This call was added in version C<1.0.80>.  In previous versions of "
4584 "libguestfs all you could do would be to speculatively execute a command to "
4585 "find out if the daemon implemented it.  See also C<guestfs_version>."
4586 msgstr ""
4587
4588 # type: =head2
4589 #: ../src/guestfs-actions.pod:471
4590 msgid "guestfs_available_all_groups"
4591 msgstr ""
4592
4593 # type: verbatim
4594 #: ../src/guestfs-actions.pod:473
4595 #, no-wrap
4596 msgid ""
4597 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4598 "\n"
4599 msgstr ""
4600
4601 # type: textblock
4602 #: ../src/guestfs-actions.pod:475
4603 msgid ""
4604 "This command returns a list of all optional groups that this daemon knows "
4605 "about.  Note this returns both supported and unsupported groups.  To find "
4606 "out which ones the daemon can actually support you have to call "
4607 "C<guestfs_available> on each member of the returned list."
4608 msgstr ""
4609
4610 # type: textblock
4611 #: ../src/guestfs-actions.pod:481
4612 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4613 msgstr ""
4614
4615 # type: =head2
4616 #: ../src/guestfs-actions.pod:487
4617 msgid "guestfs_base64_in"
4618 msgstr ""
4619
4620 # type: verbatim
4621 #: ../src/guestfs-actions.pod:489
4622 #, no-wrap
4623 msgid ""
4624 " int guestfs_base64_in (guestfs_h *g,\n"
4625 "\t\tconst char *base64file,\n"
4626 "\t\tconst char *filename);\n"
4627 "\n"
4628 msgstr ""
4629
4630 # type: textblock
4631 #: ../src/guestfs-actions.pod:493 ../fish/guestfish-actions.pod:386
4632 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4633 msgstr ""
4634
4635 # type: =head2
4636 #: ../src/guestfs-actions.pod:498
4637 msgid "guestfs_base64_out"
4638 msgstr ""
4639
4640 # type: verbatim
4641 #: ../src/guestfs-actions.pod:500
4642 #, no-wrap
4643 msgid ""
4644 " int guestfs_base64_out (guestfs_h *g,\n"
4645 "\t\tconst char *filename,\n"
4646 "\t\tconst char *base64file);\n"
4647 "\n"
4648 msgstr ""
4649
4650 # type: textblock
4651 #: ../src/guestfs-actions.pod:504 ../fish/guestfish-actions.pod:395
4652 msgid ""
4653 "This command downloads the contents of C<filename>, writing it out to local "
4654 "file C<base64file> encoded as base64."
4655 msgstr ""
4656
4657 # type: =head2
4658 #: ../src/guestfs-actions.pod:509
4659 msgid "guestfs_blockdev_flushbufs"
4660 msgstr ""
4661
4662 # type: verbatim
4663 #: ../src/guestfs-actions.pod:511
4664 #, no-wrap
4665 msgid ""
4666 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4667 "\t\tconst char *device);\n"
4668 "\n"
4669 msgstr ""
4670
4671 # type: textblock
4672 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:404
4673 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4674 msgstr ""
4675
4676 # type: textblock
4677 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:556 ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:613 ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:635 ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418 ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462 ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481 ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
4678 msgid "This uses the L<blockdev(8)> command."
4679 msgstr ""
4680
4681 # type: =head2
4682 #: ../src/guestfs-actions.pod:521
4683 msgid "guestfs_blockdev_getbsz"
4684 msgstr ""
4685
4686 # type: verbatim
4687 #: ../src/guestfs-actions.pod:523
4688 #, no-wrap
4689 msgid ""
4690 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4691 "\t\tconst char *device);\n"
4692 "\n"
4693 msgstr ""
4694
4695 # type: textblock
4696 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:413
4697 msgid "This returns the block size of a device."
4698 msgstr ""
4699
4700 # type: textblock
4701 #: ../src/guestfs-actions.pod:528 ../src/guestfs-actions.pod:610 ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4702 msgid ""
4703 "(Note this is different from both I<size in blocks> and I<filesystem block "
4704 "size>)."
4705 msgstr ""
4706
4707 # type: =head2
4708 #: ../src/guestfs-actions.pod:535
4709 msgid "guestfs_blockdev_getro"
4710 msgstr ""
4711
4712 # type: verbatim
4713 #: ../src/guestfs-actions.pod:537
4714 #, no-wrap
4715 msgid ""
4716 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4717 "\t\tconst char *device);\n"
4718 "\n"
4719 msgstr ""
4720
4721 # type: textblock
4722 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:424
4723 msgid ""
4724 "Returns a boolean indicating if the block device is read-only (true if "
4725 "read-only, false if not)."
4726 msgstr ""
4727
4728 # type: textblock
4729 #: ../src/guestfs-actions.pod:545 ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1693 ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:2369 ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:2416 ../src/guestfs-actions.pod:2428 ../src/guestfs-actions.pod:2441 ../src/guestfs-actions.pod:2452 ../src/guestfs-actions.pod:2462 ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:2497 ../src/guestfs-actions.pod:3661
4730 msgid "This function returns a C truth value on success or -1 on error."
4731 msgstr ""
4732
4733 # type: =head2
4734 #: ../src/guestfs-actions.pod:547
4735 msgid "guestfs_blockdev_getsize64"
4736 msgstr ""
4737
4738 # type: verbatim
4739 #: ../src/guestfs-actions.pod:549
4740 #, no-wrap
4741 msgid ""
4742 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4743 "\t\tconst char *device);\n"
4744 "\n"
4745 msgstr ""
4746
4747 # type: textblock
4748 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:433
4749 msgid "This returns the size of the device in bytes."
4750 msgstr ""
4751
4752 # type: textblock
4753 #: ../src/guestfs-actions.pod:554
4754 msgid "See also C<guestfs_blockdev_getsz>."
4755 msgstr ""
4756
4757 # type: =head2
4758 #: ../src/guestfs-actions.pod:560
4759 msgid "guestfs_blockdev_getss"
4760 msgstr ""
4761
4762 # type: verbatim
4763 #: ../src/guestfs-actions.pod:562
4764 #, no-wrap
4765 msgid ""
4766 " int guestfs_blockdev_getss (guestfs_h *g,\n"
4767 "\t\tconst char *device);\n"
4768 "\n"
4769 msgstr ""
4770
4771 # type: textblock
4772 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:443
4773 msgid ""
4774 "This returns the size of sectors on a block device.  Usually 512, but can be "
4775 "larger for modern devices."
4776 msgstr ""
4777
4778 # type: textblock
4779 #: ../src/guestfs-actions.pod:568
4780 msgid ""
4781 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
4782 "that)."
4783 msgstr ""
4784
4785 # type: =head2
4786 #: ../src/guestfs-actions.pod:575
4787 msgid "guestfs_blockdev_getsz"
4788 msgstr ""
4789
4790 # type: verbatim
4791 #: ../src/guestfs-actions.pod:577
4792 #, no-wrap
4793 msgid ""
4794 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
4795 "\t\tconst char *device);\n"
4796 "\n"
4797 msgstr ""
4798
4799 # type: textblock
4800 #: ../src/guestfs-actions.pod:580 ../fish/guestfish-actions.pod:455
4801 msgid ""
4802 "This returns the size of the device in units of 512-byte sectors (even if "
4803 "the sectorsize isn't 512 bytes ... weird)."
4804 msgstr ""
4805
4806 # type: textblock
4807 #: ../src/guestfs-actions.pod:583
4808 msgid ""
4809 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
4810 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
4811 msgstr ""
4812
4813 # type: =head2
4814 #: ../src/guestfs-actions.pod:591
4815 msgid "guestfs_blockdev_rereadpt"
4816 msgstr ""
4817
4818 # type: verbatim
4819 #: ../src/guestfs-actions.pod:593
4820 #, no-wrap
4821 msgid ""
4822 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
4823 "\t\tconst char *device);\n"
4824 "\n"
4825 msgstr ""
4826
4827 # type: textblock
4828 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:468
4829 msgid "Reread the partition table on C<device>."
4830 msgstr ""
4831
4832 # type: =head2
4833 #: ../src/guestfs-actions.pod:602
4834 msgid "guestfs_blockdev_setbsz"
4835 msgstr ""
4836
4837 # type: verbatim
4838 #: ../src/guestfs-actions.pod:604
4839 #, no-wrap
4840 msgid ""
4841 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
4842 "\t\tconst char *device,\n"
4843 "\t\tint blocksize);\n"
4844 "\n"
4845 msgstr ""
4846
4847 # type: textblock
4848 #: ../src/guestfs-actions.pod:608 ../fish/guestfish-actions.pod:476
4849 msgid "This sets the block size of a device."
4850 msgstr ""
4851
4852 # type: =head2
4853 #: ../src/guestfs-actions.pod:617
4854 msgid "guestfs_blockdev_setro"
4855 msgstr ""
4856
4857 # type: verbatim
4858 #: ../src/guestfs-actions.pod:619
4859 #, no-wrap
4860 msgid ""
4861 " int guestfs_blockdev_setro (guestfs_h *g,\n"
4862 "\t\tconst char *device);\n"
4863 "\n"
4864 msgstr ""
4865
4866 # type: textblock
4867 #: ../src/guestfs-actions.pod:622 ../fish/guestfish-actions.pod:487
4868 msgid "Sets the block device named C<device> to read-only."
4869 msgstr ""
4870
4871 # type: =head2
4872 #: ../src/guestfs-actions.pod:628
4873 msgid "guestfs_blockdev_setrw"
4874 msgstr ""
4875
4876 # type: verbatim
4877 #: ../src/guestfs-actions.pod:630
4878 #, no-wrap
4879 msgid ""
4880 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
4881 "\t\tconst char *device);\n"
4882 "\n"
4883 msgstr ""
4884
4885 # type: textblock
4886 #: ../src/guestfs-actions.pod:633 ../fish/guestfish-actions.pod:495
4887 msgid "Sets the block device named C<device> to read-write."
4888 msgstr ""
4889
4890 # type: =head2
4891 #: ../src/guestfs-actions.pod:639
4892 msgid "guestfs_case_sensitive_path"
4893 msgstr ""
4894
4895 # type: verbatim
4896 #: ../src/guestfs-actions.pod:641
4897 #, no-wrap
4898 msgid ""
4899 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
4900 "\t\tconst char *path);\n"
4901 "\n"
4902 msgstr ""
4903
4904 # type: textblock
4905 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:503
4906 msgid ""
4907 "This can be used to resolve case insensitive paths on a filesystem which is "
4908 "case sensitive.  The use case is to resolve paths which you have read from "
4909 "Windows configuration files or the Windows Registry, to the true path."
4910 msgstr ""
4911
4912 # type: textblock
4913 #: ../src/guestfs-actions.pod:649 ../fish/guestfish-actions.pod:508
4914 msgid ""
4915 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4916 "(and probably others), which is that although the underlying filesystem is "
4917 "case-insensitive, the driver exports the filesystem to Linux as "
4918 "case-sensitive."
4919 msgstr ""
4920
4921 # type: textblock
4922 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:513
4923 msgid ""
4924 "One consequence of this is that special directories such as C<c:\\windows> "
4925 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4926 "precise details of how they were created.  In Windows itself this would not "
4927 "be a problem."
4928 msgstr ""
4929
4930 # type: textblock
4931 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:519
4932 msgid ""
4933 "Bug or feature? You decide: "
4934 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4935 msgstr ""
4936
4937 # type: textblock
4938 #: ../src/guestfs-actions.pod:663 ../fish/guestfish-actions.pod:522
4939 msgid ""
4940 "This function resolves the true case of each element in the path and returns "
4941 "the case-sensitive path."
4942 msgstr ""
4943
4944 # type: textblock
4945 #: ../src/guestfs-actions.pod:666
4946 msgid ""
4947 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
4948 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4949 "how the directories were originally created under Windows)."
4950 msgstr ""
4951
4952 # type: textblock
4953 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:530
4954 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4955 msgstr ""
4956
4957 # type: textblock
4958 #: ../src/guestfs-actions.pod:674
4959 msgid "See also C<guestfs_realpath>."
4960 msgstr ""
4961
4962 # type: =head2
4963 #: ../src/guestfs-actions.pod:679
4964 msgid "guestfs_cat"
4965 msgstr ""
4966
4967 # type: verbatim
4968 #: ../src/guestfs-actions.pod:681
4969 #, no-wrap
4970 msgid ""
4971 " char *guestfs_cat (guestfs_h *g,\n"
4972 "\t\tconst char *path);\n"
4973 "\n"
4974 msgstr ""
4975
4976 # type: textblock
4977 #: ../src/guestfs-actions.pod:684 ../src/guestfs-actions.pod:4084 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3133
4978 msgid "Return the contents of the file named C<path>."
4979 msgstr ""
4980
4981 # type: textblock
4982 #: ../src/guestfs-actions.pod:686
4983 msgid ""
4984 "Note that this function cannot correctly handle binary files (specifically, "
4985 "files containing C<\\0> character which is treated as end of string).  For "
4986 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
4987 "functions which have a more complex interface."
4988 msgstr ""
4989
4990 # type: textblock
4991 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:855 ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1151 ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1255 ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1502 ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4970 ../src/guestfs-actions.pod:4991 ../src/guestfs-actions.pod:5536 ../src/guestfs-actions.pod:5559 ../src/guestfs-actions.pod:5582 ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5671 ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:5727 ../src/guestfs-actions.pod:5743 ../fish/guestfish-actions.pod:546 ../fish/guestfish-actions.pod:681 ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:904 ../fish/guestfish-actions.pod:971 ../fish/guestfish-actions.pod:981 ../fish/guestfish-actions.pod:1176 ../fish/guestfish-actions.pod:1451 ../fish/guestfish-actions.pod:1461 ../fish/guestfish-actions.pod:1489 ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1514 ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:3003 ../fish/guestfish-actions.pod:3018 ../fish/guestfish-actions.pod:3094 ../fish/guestfish-actions.pod:3111 ../fish/guestfish-actions.pod:3126 ../fish/guestfish-actions.pod:3709 ../fish/guestfish-actions.pod:3755 ../fish/guestfish-actions.pod:3840 ../fish/guestfish-actions.pod:3855 ../fish/guestfish-actions.pod:4265 ../fish/guestfish-actions.pod:4283 ../fish/guestfish-actions.pod:4300 ../fish/guestfish-actions.pod:4310 ../fish/guestfish-actions.pod:4358 ../fish/guestfish-actions.pod:4368 ../fish/guestfish-actions.pod:4397 ../fish/guestfish-actions.pod:4407
4992 msgid ""
4993 "Because of the message protocol, there is a transfer limit of somewhere "
4994 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4995 msgstr ""
4996
4997 # type: =head2
4998 #: ../src/guestfs-actions.pod:697
4999 msgid "guestfs_checksum"
5000 msgstr ""
5001
5002 # type: verbatim
5003 #: ../src/guestfs-actions.pod:699
5004 #, no-wrap
5005 msgid ""
5006 " char *guestfs_checksum (guestfs_h *g,\n"
5007 "\t\tconst char *csumtype,\n"
5008 "\t\tconst char *path);\n"
5009 "\n"
5010 msgstr ""
5011
5012 # type: textblock
5013 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:553
5014 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5015 msgstr ""
5016
5017 # type: textblock
5018 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:556
5019 msgid ""
5020 "The type of checksum to compute is given by the C<csumtype> parameter which "
5021 "must have one of the following values:"
5022 msgstr ""
5023
5024 # type: =item
5025 #: ../src/guestfs-actions.pod:711 ../fish/guestfish-actions.pod:561
5026 msgid "C<crc>"
5027 msgstr ""
5028
5029 # type: textblock
5030 #: ../src/guestfs-actions.pod:713 ../fish/guestfish-actions.pod:563
5031 msgid ""
5032 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5033 "C<cksum> command."
5034 msgstr ""
5035
5036 # type: =item
5037 #: ../src/guestfs-actions.pod:716 ../fish/guestfish-actions.pod:566
5038 msgid "C<md5>"
5039 msgstr ""
5040
5041 # type: textblock
5042 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:568
5043 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5044 msgstr ""
5045
5046 # type: =item
5047 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:570
5048 msgid "C<sha1>"
5049 msgstr ""
5050
5051 # type: textblock
5052 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:572
5053 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5054 msgstr ""
5055
5056 # type: =item
5057 #: ../src/guestfs-actions.pod:724 ../fish/guestfish-actions.pod:574
5058 msgid "C<sha224>"
5059 msgstr ""
5060
5061 # type: textblock
5062 #: ../src/guestfs-actions.pod:726 ../fish/guestfish-actions.pod:576
5063 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5064 msgstr ""
5065
5066 # type: =item
5067 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:578
5068 msgid "C<sha256>"
5069 msgstr ""
5070
5071 # type: textblock
5072 #: ../src/guestfs-actions.pod:730 ../fish/guestfish-actions.pod:580
5073 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5074 msgstr ""
5075
5076 # type: =item
5077 #: ../src/guestfs-actions.pod:732 ../fish/guestfish-actions.pod:582
5078 msgid "C<sha384>"
5079 msgstr ""
5080
5081 # type: textblock
5082 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:584
5083 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5084 msgstr ""
5085
5086 # type: =item
5087 #: ../src/guestfs-actions.pod:736 ../fish/guestfish-actions.pod:586
5088 msgid "C<sha512>"
5089 msgstr ""
5090
5091 # type: textblock
5092 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:588
5093 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5094 msgstr ""
5095
5096 # type: textblock
5097 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:592
5098 msgid "The checksum is returned as a printable string."
5099 msgstr ""
5100
5101 # type: textblock
5102 #: ../src/guestfs-actions.pod:744
5103 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5104 msgstr ""
5105
5106 # type: textblock
5107 #: ../src/guestfs-actions.pod:746
5108 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5109 msgstr ""
5110
5111 # type: =head2
5112 #: ../src/guestfs-actions.pod:751
5113 msgid "guestfs_checksum_device"
5114 msgstr ""
5115
5116 # type: verbatim
5117 #: ../src/guestfs-actions.pod:753
5118 #, no-wrap
5119 msgid ""
5120 " char *guestfs_checksum_device (guestfs_h *g,\n"
5121 "\t\tconst char *csumtype,\n"
5122 "\t\tconst char *device);\n"
5123 "\n"
5124 msgstr ""
5125
5126 # type: textblock
5127 #: ../src/guestfs-actions.pod:757
5128 msgid ""
5129 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5130 "device named C<device>.  For the types of checksums supported see the "
5131 "C<guestfs_checksum> command."
5132 msgstr ""
5133
5134 # type: =head2
5135 #: ../src/guestfs-actions.pod:764
5136 msgid "guestfs_checksums_out"
5137 msgstr ""
5138
5139 # type: verbatim
5140 #: ../src/guestfs-actions.pod:766
5141 #, no-wrap
5142 msgid ""
5143 " int guestfs_checksums_out (guestfs_h *g,\n"
5144 "\t\tconst char *csumtype,\n"
5145 "\t\tconst char *directory,\n"
5146 "\t\tconst char *sumsfile);\n"
5147 "\n"
5148 msgstr ""
5149
5150 # type: textblock
5151 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:610
5152 msgid ""
5153 "This command computes the checksums of all regular files in C<directory> and "
5154 "then emits a list of those checksums to the local output file C<sumsfile>."
5155 msgstr ""
5156
5157 # type: textblock
5158 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:614
5159 msgid ""
5160 "This can be used for verifying the integrity of a virtual machine.  However "
5161 "to be properly secure you should pay attention to the output of the checksum "
5162 "command (it uses the ones from GNU coreutils).  In particular when the "
5163 "filename is not printable, coreutils uses a special backslash syntax.  For "
5164 "more information, see the GNU coreutils info file."
5165 msgstr ""
5166
5167 # type: =head2
5168 #: ../src/guestfs-actions.pod:785
5169 msgid "guestfs_chmod"
5170 msgstr ""
5171
5172 # type: verbatim
5173 #: ../src/guestfs-actions.pod:787
5174 #, no-wrap
5175 msgid ""
5176 " int guestfs_chmod (guestfs_h *g,\n"
5177 "\t\tint mode,\n"
5178 "\t\tconst char *path);\n"
5179 "\n"
5180 msgstr ""
5181
5182 # type: textblock
5183 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:628
5184 msgid ""
5185 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5186 "supported."
5187 msgstr ""
5188
5189 # type: textblock
5190 #: ../src/guestfs-actions.pod:794 ../fish/guestfish-actions.pod:631
5191 msgid ""
5192 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5193 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5194 "C<700>."
5195 msgstr ""
5196
5197 # type: textblock
5198 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3332 ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:3364 ../fish/guestfish-actions.pod:635 ../fish/guestfish-actions.pod:2508 ../fish/guestfish-actions.pod:2578 ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2598
5199 msgid "The mode actually set is affected by the umask."
5200 msgstr ""
5201
5202 # type: =head2
5203 #: ../src/guestfs-actions.pod:802
5204 msgid "guestfs_chown"
5205 msgstr ""
5206
5207 # type: verbatim
5208 #: ../src/guestfs-actions.pod:804
5209 #, no-wrap
5210 msgid ""
5211 " int guestfs_chown (guestfs_h *g,\n"
5212 "\t\tint owner,\n"
5213 "\t\tint group,\n"
5214 "\t\tconst char *path);\n"
5215 "\n"
5216 msgstr ""
5217
5218 # type: textblock
5219 #: ../src/guestfs-actions.pod:809 ../fish/guestfish-actions.pod:641
5220 msgid "Change the file owner to C<owner> and group to C<group>."
5221 msgstr ""
5222
5223 # type: textblock
5224 #: ../src/guestfs-actions.pod:811 ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:1999
5225 msgid ""
5226 "Only numeric uid and gid are supported.  If you want to use names, you will "
5227 "need to locate and parse the password file yourself (Augeas support makes "
5228 "this relatively easy)."
5229 msgstr ""
5230
5231 # type: =head2
5232 #: ../src/guestfs-actions.pod:817
5233 msgid "guestfs_command"
5234 msgstr ""
5235
5236 # type: verbatim
5237 #: ../src/guestfs-actions.pod:819
5238 #, no-wrap
5239 msgid ""
5240 " char *guestfs_command (guestfs_h *g,\n"
5241 "\t\tchar *const *arguments);\n"
5242 "\n"
5243 msgstr ""
5244
5245 # type: textblock
5246 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:651
5247 msgid ""
5248 "This call runs a command from the guest filesystem.  The filesystem must be "
5249 "mounted, and must contain a compatible operating system (ie. something "
5250 "Linux, with the same or compatible processor architecture)."
5251 msgstr ""
5252
5253 # type: textblock
5254 #: ../src/guestfs-actions.pod:827
5255 msgid ""
5256 "The single parameter is an argv-style list of arguments.  The first element "
5257 "is the name of the program to run.  Subsequent elements are parameters.  The "
5258 "list must be non-empty (ie. must contain a program name).  Note that the "
5259 "command runs directly, and is I<not> invoked via the shell (see "
5260 "C<guestfs_sh>)."
5261 msgstr ""
5262
5263 # type: textblock
5264 #: ../src/guestfs-actions.pod:834 ../fish/guestfish-actions.pod:663
5265 msgid "The return value is anything printed to I<stdout> by the command."
5266 msgstr ""
5267
5268 # type: textblock
5269 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:666
5270 msgid ""
5271 "If the command returns a non-zero exit status, then this function returns an "
5272 "error message.  The error message string is the content of I<stderr> from "
5273 "the command."
5274 msgstr ""
5275
5276 # type: textblock
5277 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:670
5278 msgid ""
5279 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5280 "C</bin>.  If you require a program from another location, you should provide "
5281 "the full path in the first parameter."
5282 msgstr ""
5283
5284 # type: textblock
5285 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:675
5286 msgid ""
5287 "Shared libraries and data files required by the program must be available on "
5288 "filesystems which are mounted in the correct places.  It is the caller's "
5289 "responsibility to ensure all filesystems that are needed are mounted at the "
5290 "right locations."
5291 msgstr ""
5292
5293 # type: =head2
5294 #: ../src/guestfs-actions.pod:858
5295 msgid "guestfs_command_lines"
5296 msgstr ""
5297
5298 # type: verbatim
5299 #: ../src/guestfs-actions.pod:860
5300 #, no-wrap
5301 msgid ""
5302 " char **guestfs_command_lines (guestfs_h *g,\n"
5303 "\t\tchar *const *arguments);\n"
5304 "\n"
5305 msgstr ""
5306
5307 # type: textblock
5308 #: ../src/guestfs-actions.pod:863
5309 msgid ""
5310 "This is the same as C<guestfs_command>, but splits the result into a list of "
5311 "lines."
5312 msgstr ""
5313
5314 # type: textblock
5315 #: ../src/guestfs-actions.pod:866
5316 msgid "See also: C<guestfs_sh_lines>"
5317 msgstr ""
5318
5319 # type: =head2
5320 #: ../src/guestfs-actions.pod:875
5321 msgid "guestfs_config"
5322 msgstr ""
5323
5324 # type: verbatim
5325 #: ../src/guestfs-actions.pod:877
5326 #, no-wrap
5327 msgid ""
5328 " int guestfs_config (guestfs_h *g,\n"
5329 "\t\tconst char *qemuparam,\n"
5330 "\t\tconst char *qemuvalue);\n"
5331 "\n"
5332 msgstr ""
5333
5334 # type: textblock
5335 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:700
5336 msgid ""
5337 "This can be used to add arbitrary qemu command line parameters of the form "
5338 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5339 "setting some parameters which would interfere with parameters that we use."
5340 msgstr ""
5341
5342 # type: textblock
5343 #: ../src/guestfs-actions.pod:886 ../fish/guestfish-actions.pod:705
5344 msgid "The first character of C<param> string must be a C<-> (dash)."
5345 msgstr ""
5346
5347 # type: textblock
5348 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:707
5349 msgid "C<value> can be NULL."
5350 msgstr ""
5351
5352 # type: =head2
5353 #: ../src/guestfs-actions.pod:892
5354 msgid "guestfs_copy_size"
5355 msgstr ""
5356
5357 # type: verbatim
5358 #: ../src/guestfs-actions.pod:894
5359 #, no-wrap
5360 msgid ""
5361 " int guestfs_copy_size (guestfs_h *g,\n"
5362 "\t\tconst char *src,\n"
5363 "\t\tconst char *dest,\n"
5364 "\t\tint64_t size);\n"
5365 "\n"
5366 msgstr ""
5367
5368 # type: textblock
5369 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:713
5370 msgid ""
5371 "This command copies exactly C<size> bytes from one source device or file "
5372 "C<src> to another destination device or file C<dest>."
5373 msgstr ""
5374
5375 # type: textblock
5376 #: ../src/guestfs-actions.pod:902 ../fish/guestfish-actions.pod:716
5377 msgid ""
5378 "Note this will fail if the source is too short or if the destination is not "
5379 "large enough."
5380 msgstr ""
5381
5382 # type: textblock
5383 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:1042 ../src/guestfs-actions.pod:1070 ../src/guestfs-actions.pod:1442 ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5632
5384 msgid ""
5385 "This long-running command can generate progress notification messages so "
5386 "that the caller can display a progress bar or indicator.  To receive these "
5387 "messages, the caller must register a progress callback.  See "
5388 "L<guestfs(3)/guestfs_set_progress_callback>."
5389 msgstr ""
5390
5391 # type: =head2
5392 #: ../src/guestfs-actions.pod:912
5393 msgid "guestfs_cp"
5394 msgstr ""
5395
5396 # type: verbatim
5397 #: ../src/guestfs-actions.pod:914
5398 #, no-wrap
5399 msgid ""
5400 " int guestfs_cp (guestfs_h *g,\n"
5401 "\t\tconst char *src,\n"
5402 "\t\tconst char *dest);\n"
5403 "\n"
5404 msgstr ""
5405
5406 # type: textblock
5407 #: ../src/guestfs-actions.pod:918 ../fish/guestfish-actions.pod:723
5408 msgid ""
5409 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5410 "destination filename or destination directory."
5411 msgstr ""
5412
5413 # type: =head2
5414 #: ../src/guestfs-actions.pod:923
5415 msgid "guestfs_cp_a"
5416 msgstr ""
5417
5418 # type: verbatim
5419 #: ../src/guestfs-actions.pod:925
5420 #, no-wrap
5421 msgid ""
5422 " int guestfs_cp_a (guestfs_h *g,\n"
5423 "\t\tconst char *src,\n"
5424 "\t\tconst char *dest);\n"
5425 "\n"
5426 msgstr ""
5427
5428 # type: textblock
5429 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:730
5430 msgid ""
5431 "This copies a file or directory from C<src> to C<dest> recursively using the "
5432 "C<cp -a> command."
5433 msgstr ""
5434
5435 # type: =head2
5436 #: ../src/guestfs-actions.pod:934
5437 msgid "guestfs_dd"
5438 msgstr ""
5439
5440 # type: verbatim
5441 #: ../src/guestfs-actions.pod:936
5442 #, no-wrap
5443 msgid ""
5444 " int guestfs_dd (guestfs_h *g,\n"
5445 "\t\tconst char *src,\n"
5446 "\t\tconst char *dest);\n"
5447 "\n"
5448 msgstr ""
5449
5450 # type: textblock
5451 #: ../src/guestfs-actions.pod:940 ../fish/guestfish-actions.pod:737
5452 msgid ""
5453 "This command copies from one source device or file C<src> to another "
5454 "destination device or file C<dest>.  Normally you would use this to copy to "
5455 "or from a device or partition, for example to duplicate a filesystem."
5456 msgstr ""
5457
5458 # type: textblock
5459 #: ../src/guestfs-actions.pod:945
5460 msgid ""
5461 "If the destination is a device, it must be as large or larger than the "
5462 "source file or device, otherwise the copy will fail.  This command cannot do "
5463 "partial copies (see C<guestfs_copy_size>)."
5464 msgstr ""
5465
5466 # type: =head2
5467 #: ../src/guestfs-actions.pod:951
5468 msgid "guestfs_debug"
5469 msgstr ""
5470
5471 # type: verbatim
5472 #: ../src/guestfs-actions.pod:953
5473 #, no-wrap
5474 msgid ""
5475 " char *guestfs_debug (guestfs_h *g,\n"
5476 "\t\tconst char *subcmd,\n"
5477 "\t\tchar *const *extraargs);\n"
5478 "\n"
5479 msgstr ""
5480
5481 # type: textblock
5482 #: ../src/guestfs-actions.pod:957
5483 msgid ""
5484 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5485 "guestfs daemon) that runs inside the qemu subprocess."
5486 msgstr ""
5487
5488 # type: textblock
5489 #: ../src/guestfs-actions.pod:961 ../fish/guestfish-actions.pod:754
5490 msgid ""
5491 "There is no comprehensive help for this command.  You have to look at the "
5492 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5493 msgstr ""
5494
5495 # type: =head2
5496 #: ../src/guestfs-actions.pod:968
5497 msgid "guestfs_debug_upload"
5498 msgstr ""
5499
5500 # type: verbatim
5501 #: ../src/guestfs-actions.pod:970
5502 #, no-wrap
5503 msgid ""
5504 " int guestfs_debug_upload (guestfs_h *g,\n"
5505 "\t\tconst char *filename,\n"
5506 "\t\tconst char *tmpname,\n"
5507 "\t\tint mode);\n"
5508 "\n"
5509 msgstr ""
5510
5511 # type: textblock
5512 #: ../src/guestfs-actions.pod:975
5513 msgid ""
5514 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5515 "appliance."
5516 msgstr ""
5517
5518 # type: textblock
5519 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:765
5520 msgid ""
5521 "There is no comprehensive help for this command.  You have to look at the "
5522 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5523 msgstr ""
5524
5525 # type: =head2
5526 #: ../src/guestfs-actions.pod:984
5527 msgid "guestfs_df"
5528 msgstr ""
5529
5530 # type: verbatim
5531 #: ../src/guestfs-actions.pod:986
5532 #, no-wrap
5533 msgid ""
5534 " char *guestfs_df (guestfs_h *g);\n"
5535 "\n"
5536 msgstr ""
5537
5538 # type: textblock
5539 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:775
5540 msgid "This command runs the C<df> command to report disk space used."
5541 msgstr ""
5542
5543 # type: textblock
5544 #: ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1004 ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5545 msgid ""
5546 "This command is mostly useful for interactive sessions.  It is I<not> "
5547 "intended that you try to parse the output string.  Use C<statvfs> from "
5548 "programs."
5549 msgstr ""
5550
5551 # type: =head2
5552 #: ../src/guestfs-actions.pod:997
5553 msgid "guestfs_df_h"
5554 msgstr ""
5555
5556 # type: verbatim
5557 #: ../src/guestfs-actions.pod:999
5558 #, no-wrap
5559 msgid ""
5560 " char *guestfs_df_h (guestfs_h *g);\n"
5561 "\n"
5562 msgstr ""
5563
5564 # type: textblock
5565 #: ../src/guestfs-actions.pod:1001 ../fish/guestfish-actions.pod:785
5566 msgid ""
5567 "This command runs the C<df -h> command to report disk space used in "
5568 "human-readable format."
5569 msgstr ""
5570
5571 # type: =head2
5572 #: ../src/guestfs-actions.pod:1011
5573 msgid "guestfs_dmesg"
5574 msgstr ""
5575
5576 # type: verbatim
5577 #: ../src/guestfs-actions.pod:1013
5578 #, no-wrap
5579 msgid ""
5580 " char *guestfs_dmesg (guestfs_h *g);\n"
5581 "\n"
5582 msgstr ""
5583
5584 # type: textblock
5585 #: ../src/guestfs-actions.pod:1015 ../fish/guestfish-actions.pod:796
5586 msgid ""
5587 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5588 "This is sometimes useful for extended debugging of problems."
5589 msgstr ""
5590
5591 # type: textblock
5592 #: ../src/guestfs-actions.pod:1019
5593 msgid ""
5594 "Another way to get the same information is to enable verbose messages with "
5595 "C<guestfs_set_verbose> or by setting the environment variable "
5596 "C<LIBGUESTFS_DEBUG=1> before running the program."
5597 msgstr ""
5598
5599 # type: =head2
5600 #: ../src/guestfs-actions.pod:1027
5601 msgid "guestfs_download"
5602 msgstr ""
5603
5604 # type: verbatim
5605 #: ../src/guestfs-actions.pod:1029
5606 #, no-wrap
5607 msgid ""
5608 " int guestfs_download (guestfs_h *g,\n"
5609 "\t\tconst char *remotefilename,\n"
5610 "\t\tconst char *filename);\n"
5611 "\n"
5612 msgstr ""
5613
5614 # type: textblock
5615 #: ../src/guestfs-actions.pod:1033 ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5616 msgid ""
5617 "Download file C<remotefilename> and save it as C<filename> on the local "
5618 "machine."
5619 msgstr ""
5620
5621 # type: textblock
5622 #: ../src/guestfs-actions.pod:1036 ../src/guestfs-actions.pod:5184 ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4013
5623 msgid "C<filename> can also be a named pipe."
5624 msgstr ""
5625
5626 # type: textblock
5627 #: ../src/guestfs-actions.pod:1038
5628 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5629 msgstr ""
5630
5631 # type: =head2
5632 #: ../src/guestfs-actions.pod:1047
5633 msgid "guestfs_download_offset"
5634 msgstr ""
5635
5636 # type: verbatim
5637 #: ../src/guestfs-actions.pod:1049
5638 #, no-wrap
5639 msgid ""
5640 " int guestfs_download_offset (guestfs_h *g,\n"
5641 "\t\tconst char *remotefilename,\n"
5642 "\t\tconst char *filename,\n"
5643 "\t\tint64_t offset,\n"
5644 "\t\tint64_t size);\n"
5645 "\n"
5646 msgstr ""
5647
5648 # type: textblock
5649 #: ../src/guestfs-actions.pod:1058 ../fish/guestfish-actions.pod:825
5650 msgid ""
5651 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5652 "region must be within the file or device)."
5653 msgstr ""
5654
5655 # type: textblock
5656 #: ../src/guestfs-actions.pod:1061
5657 msgid ""
5658 "Note that there is no limit on the amount of data that can be downloaded "
5659 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5660 "full amount unless an error occurs."
5661 msgstr ""
5662
5663 # type: textblock
5664 #: ../src/guestfs-actions.pod:1066
5665 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5666 msgstr ""
5667
5668 # type: =head2
5669 #: ../src/guestfs-actions.pod:1075
5670 msgid "guestfs_drop_caches"
5671 msgstr ""
5672
5673 # type: verbatim
5674 #: ../src/guestfs-actions.pod:1077
5675 #, no-wrap
5676 msgid ""
5677 " int guestfs_drop_caches (guestfs_h *g,\n"
5678 "\t\tint whattodrop);\n"
5679 "\n"
5680 msgstr ""
5681
5682 # type: textblock
5683 #: ../src/guestfs-actions.pod:1080 ../fish/guestfish-actions.pod:841
5684 msgid ""
5685 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5686 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5687 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5688 msgstr ""
5689
5690 # type: textblock
5691 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:846
5692 msgid "Setting C<whattodrop> to 3 should drop everything."
5693 msgstr ""
5694
5695 # type: textblock
5696 #: ../src/guestfs-actions.pod:1087 ../fish/guestfish-actions.pod:848
5697 msgid ""
5698 "This automatically calls L<sync(2)> before the operation, so that the "
5699 "maximum guest memory is freed."
5700 msgstr ""
5701
5702 # type: =head2
5703 #: ../src/guestfs-actions.pod:1092
5704 msgid "guestfs_du"
5705 msgstr ""
5706
5707 # type: verbatim
5708 #: ../src/guestfs-actions.pod:1094
5709 #, no-wrap
5710 msgid ""
5711 " int64_t guestfs_du (guestfs_h *g,\n"
5712 "\t\tconst char *path);\n"
5713 "\n"
5714 msgstr ""
5715
5716 # type: textblock
5717 #: ../src/guestfs-actions.pod:1097 ../fish/guestfish-actions.pod:855
5718 msgid ""
5719 "This command runs the C<du -s> command to estimate file space usage for "
5720 "C<path>."
5721 msgstr ""
5722
5723 # type: textblock
5724 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:858
5725 msgid ""
5726 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5727 "estimate includes the contents of the directory and all subdirectories "
5728 "(recursively)."
5729 msgstr ""
5730
5731 # type: textblock
5732 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:862
5733 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5734 msgstr ""
5735
5736 # type: =head2
5737 #: ../src/guestfs-actions.pod:1109
5738 msgid "guestfs_e2fsck_f"
5739 msgstr ""
5740
5741 # type: verbatim
5742 #: ../src/guestfs-actions.pod:1111
5743 #, no-wrap
5744 msgid ""
5745 " int guestfs_e2fsck_f (guestfs_h *g,\n"
5746 "\t\tconst char *device);\n"
5747 "\n"
5748 msgstr ""
5749
5750 # type: textblock
5751 #: ../src/guestfs-actions.pod:1114 ../fish/guestfish-actions.pod:869
5752 msgid ""
5753 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5754 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5755 "clean (C<-f>)."
5756 msgstr ""
5757
5758 # type: textblock
5759 #: ../src/guestfs-actions.pod:1118
5760 msgid ""
5761 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5762 "Normally you should use C<guestfs_fsck>."
5763 msgstr ""
5764
5765 # type: =head2
5766 #: ../src/guestfs-actions.pod:1123
5767 msgid "guestfs_echo_daemon"
5768 msgstr ""
5769
5770 # type: verbatim
5771 #: ../src/guestfs-actions.pod:1125
5772 #, no-wrap
5773 msgid ""
5774 " char *guestfs_echo_daemon (guestfs_h *g,\n"
5775 "\t\tchar *const *words);\n"
5776 "\n"
5777 msgstr ""
5778
5779 # type: textblock
5780 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:880
5781 msgid ""
5782 "This command concatenates the list of C<words> passed with single spaces "
5783 "between them and returns the resulting string."
5784 msgstr ""
5785
5786 # type: textblock
5787 #: ../src/guestfs-actions.pod:1131 ../fish/guestfish-actions.pod:883
5788 msgid "You can use this command to test the connection through to the daemon."
5789 msgstr ""
5790
5791 # type: textblock
5792 #: ../src/guestfs-actions.pod:1133
5793 msgid "See also C<guestfs_ping_daemon>."
5794 msgstr ""
5795
5796 # type: =head2
5797 #: ../src/guestfs-actions.pod:1138
5798 msgid "guestfs_egrep"
5799 msgstr ""
5800
5801 # type: verbatim
5802 #: ../src/guestfs-actions.pod:1140
5803 #, no-wrap
5804 msgid ""
5805 " char **guestfs_egrep (guestfs_h *g,\n"
5806 "\t\tconst char *regex,\n"
5807 "\t\tconst char *path);\n"
5808 "\n"
5809 msgstr ""
5810
5811 # type: textblock
5812 #: ../src/guestfs-actions.pod:1144 ../fish/guestfish-actions.pod:891
5813 msgid "This calls the external C<egrep> program and returns the matching lines."
5814 msgstr ""
5815
5816 # type: =head2
5817 #: ../src/guestfs-actions.pod:1154
5818 msgid "guestfs_egrepi"
5819 msgstr ""
5820
5821 # type: verbatim
5822 #: ../src/guestfs-actions.pod:1156
5823 #, no-wrap
5824 msgid ""
5825 " char **guestfs_egrepi (guestfs_h *g,\n"
5826 "\t\tconst char *regex,\n"
5827 "\t\tconst char *path);\n"
5828 "\n"
5829 msgstr ""
5830
5831 # type: textblock
5832 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:901
5833 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5834 msgstr ""
5835
5836 # type: =head2
5837 #: ../src/guestfs-actions.pod:1170
5838 msgid "guestfs_equal"
5839 msgstr ""
5840
5841 # type: verbatim
5842 #: ../src/guestfs-actions.pod:1172
5843 #, no-wrap
5844 msgid ""
5845 " int guestfs_equal (guestfs_h *g,\n"
5846 "\t\tconst char *file1,\n"
5847 "\t\tconst char *file2);\n"
5848 "\n"
5849 msgstr ""
5850
5851 # type: textblock
5852 #: ../src/guestfs-actions.pod:1176 ../fish/guestfish-actions.pod:911
5853 msgid ""
5854 "This compares the two files C<file1> and C<file2> and returns true if their "
5855 "content is exactly equal, or false otherwise."
5856 msgstr ""
5857
5858 # type: textblock
5859 #: ../src/guestfs-actions.pod:1179 ../fish/guestfish-actions.pod:914
5860 msgid "The external L<cmp(1)> program is used for the comparison."
5861 msgstr ""
5862
5863 # type: =head2
5864 #: ../src/guestfs-actions.pod:1183
5865 msgid "guestfs_exists"
5866 msgstr ""
5867
5868 # type: verbatim
5869 #: ../src/guestfs-actions.pod:1185
5870 #, no-wrap
5871 msgid ""
5872 " int guestfs_exists (guestfs_h *g,\n"
5873 "\t\tconst char *path);\n"
5874 "\n"
5875 msgstr ""
5876
5877 # type: textblock
5878 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:920
5879 msgid ""
5880 "This returns C<true> if and only if there is a file, directory (or anything) "
5881 "with the given C<path> name."
5882 msgstr ""
5883
5884 # type: textblock
5885 #: ../src/guestfs-actions.pod:1191
5886 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
5887 msgstr ""
5888
5889 # type: =head2
5890 #: ../src/guestfs-actions.pod:1195
5891 msgid "guestfs_fallocate"
5892 msgstr ""
5893
5894 # type: verbatim
5895 #: ../src/guestfs-actions.pod:1197
5896 #, no-wrap
5897 msgid ""
5898 " int guestfs_fallocate (guestfs_h *g,\n"
5899 "\t\tconst char *path,\n"
5900 "\t\tint len);\n"
5901 "\n"
5902 msgstr ""
5903
5904 # type: textblock
5905 #: ../src/guestfs-actions.pod:1201 ../src/guestfs-actions.pod:1224 ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
5906 msgid ""
5907 "This command preallocates a file (containing zero bytes) named C<path> of "
5908 "size C<len> bytes.  If the file exists already, it is overwritten."
5909 msgstr ""
5910
5911 # type: textblock
5912 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:933
5913 msgid ""
5914 "Do not confuse this with the guestfish-specific C<alloc> command which "
5915 "allocates a file in the host and attaches it as a device."
5916 msgstr ""
5917
5918 # type: textblock
5919 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:937
5920 msgid ""
5921 "This function is deprecated.  In new code, use the C<fallocate64> call "
5922 "instead."
5923 msgstr ""
5924
5925 # type: =head2
5926 #: ../src/guestfs-actions.pod:1218
5927 msgid "guestfs_fallocate64"
5928 msgstr ""
5929
5930 # type: verbatim
5931 #: ../src/guestfs-actions.pod:1220
5932 #, no-wrap
5933 msgid ""
5934 " int guestfs_fallocate64 (guestfs_h *g,\n"
5935 "\t\tconst char *path,\n"
5936 "\t\tint64_t len);\n"
5937 "\n"
5938 msgstr ""
5939
5940 # type: textblock
5941 #: ../src/guestfs-actions.pod:1228
5942 msgid ""
5943 "Note that this call allocates disk blocks for the file.  To create a sparse "
5944 "file use C<guestfs_truncate_size> instead."
5945 msgstr ""
5946
5947 # type: textblock
5948 #: ../src/guestfs-actions.pod:1231
5949 msgid ""
5950 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
5951 "oversight it only allowed 30 bit lengths to be specified, effectively "
5952 "limiting the maximum size of files created through that call to 1GB."
5953 msgstr ""
5954
5955 # type: textblock
5956 #: ../src/guestfs-actions.pod:1236 ../fish/guestfish-actions.pod:960
5957 msgid ""
5958 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5959 "commands which create a file in the host and attach it as a device."
5960 msgstr ""
5961
5962 # type: =head2
5963 #: ../src/guestfs-actions.pod:1242
5964 msgid "guestfs_fgrep"
5965 msgstr ""
5966
5967 # type: verbatim
5968 #: ../src/guestfs-actions.pod:1244
5969 #, no-wrap
5970 msgid ""
5971 " char **guestfs_fgrep (guestfs_h *g,\n"
5972 "\t\tconst char *pattern,\n"
5973 "\t\tconst char *path);\n"
5974 "\n"
5975 msgstr ""
5976
5977 # type: textblock
5978 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:968
5979 msgid "This calls the external C<fgrep> program and returns the matching lines."
5980 msgstr ""
5981
5982 # type: =head2
5983 #: ../src/guestfs-actions.pod:1258
5984 msgid "guestfs_fgrepi"
5985 msgstr ""
5986
5987 # type: verbatim
5988 #: ../src/guestfs-actions.pod:1260
5989 #, no-wrap
5990 msgid ""
5991 " char **guestfs_fgrepi (guestfs_h *g,\n"
5992 "\t\tconst char *pattern,\n"
5993 "\t\tconst char *path);\n"
5994 "\n"
5995 msgstr ""
5996
5997 # type: textblock
5998 #: ../src/guestfs-actions.pod:1264 ../fish/guestfish-actions.pod:978
5999 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6000 msgstr ""
6001
6002 # type: =head2
6003 #: ../src/guestfs-actions.pod:1274
6004 msgid "guestfs_file"
6005 msgstr ""
6006
6007 # type: verbatim
6008 #: ../src/guestfs-actions.pod:1276
6009 #, no-wrap
6010 msgid ""
6011 " char *guestfs_file (guestfs_h *g,\n"
6012 "\t\tconst char *path);\n"
6013 "\n"
6014 msgstr ""
6015
6016 # type: textblock
6017 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:988
6018 msgid ""
6019 "This call uses the standard L<file(1)> command to determine the type or "
6020 "contents of the file."
6021 msgstr ""
6022
6023 # type: textblock
6024 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:991
6025 msgid ""
6026 "This call will also transparently look inside various types of compressed "
6027 "file."
6028 msgstr ""
6029
6030 # type: textblock
6031 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:994
6032 msgid ""
6033 "The exact command which runs is C<file -zb path>.  Note in particular that "
6034 "the filename is not prepended to the output (the C<-b> option)."
6035 msgstr ""
6036
6037 # type: textblock
6038 #: ../src/guestfs-actions.pod:1289
6039 msgid ""
6040 "This command can also be used on C</dev/> devices (and partitions, LV "
6041 "names).  You can for example use this to determine if a device contains a "
6042 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6043 msgstr ""
6044
6045 # type: textblock
6046 #: ../src/guestfs-actions.pod:1294 ../fish/guestfish-actions.pod:1003
6047 msgid ""
6048 "If the C<path> does not begin with C</dev/> then this command only works for "
6049 "the content of regular files.  For other file types (directory, symbolic "
6050 "link etc) it will just return the string C<directory> etc."
6051 msgstr ""
6052
6053 # type: =head2
6054 #: ../src/guestfs-actions.pod:1302
6055 msgid "guestfs_file_architecture"
6056 msgstr ""
6057
6058 # type: verbatim
6059 #: ../src/guestfs-actions.pod:1304
6060 #, no-wrap
6061 msgid ""
6062 " char *guestfs_file_architecture (guestfs_h *g,\n"
6063 "\t\tconst char *filename);\n"
6064 "\n"
6065 msgstr ""
6066
6067 # type: textblock
6068 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1012
6069 msgid ""
6070 "This detects the architecture of the binary C<filename>, and returns it if "
6071 "known."
6072 msgstr ""
6073
6074 # type: textblock
6075 #: ../src/guestfs-actions.pod:1310 ../fish/guestfish-actions.pod:1015
6076 msgid "Currently defined architectures are:"
6077 msgstr ""
6078
6079 # type: =item
6080 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:1019
6081 msgid "\"i386\""
6082 msgstr ""
6083
6084 # type: textblock
6085 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:1021
6086 msgid ""
6087 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6088 "irrespective of the precise processor requirements of the binary."
6089 msgstr ""
6090
6091 # type: =item
6092 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:1024
6093 msgid "\"x86_64\""
6094 msgstr ""
6095
6096 # type: textblock
6097 #: ../src/guestfs-actions.pod:1321 ../fish/guestfish-actions.pod:1026
6098 msgid "64 bit x86-64."
6099 msgstr ""
6100
6101 # type: =item
6102 #: ../src/guestfs-actions.pod:1323 ../fish/guestfish-actions.pod:1028
6103 msgid "\"sparc\""
6104 msgstr ""
6105
6106 # type: textblock
6107 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:1030
6108 msgid "32 bit SPARC."
6109 msgstr ""
6110
6111 # type: =item
6112 #: ../src/guestfs-actions.pod:1327 ../fish/guestfish-actions.pod:1032
6113 msgid "\"sparc64\""
6114 msgstr ""
6115
6116 # type: textblock
6117 #: ../src/guestfs-actions.pod:1329 ../fish/guestfish-actions.pod:1034
6118 msgid "64 bit SPARC V9 and above."
6119 msgstr ""
6120
6121 # type: =item
6122 #: ../src/guestfs-actions.pod:1331 ../fish/guestfish-actions.pod:1036
6123 msgid "\"ia64\""
6124 msgstr ""
6125
6126 # type: textblock
6127 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:1038
6128 msgid "Intel Itanium."
6129 msgstr ""
6130
6131 # type: =item
6132 #: ../src/guestfs-actions.pod:1335 ../fish/guestfish-actions.pod:1040
6133 msgid "\"ppc\""
6134 msgstr ""
6135
6136 # type: textblock
6137 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1042
6138 msgid "32 bit Power PC."
6139 msgstr ""
6140
6141 # type: =item
6142 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:1044
6143 msgid "\"ppc64\""
6144 msgstr ""
6145
6146 # type: textblock
6147 #: ../src/guestfs-actions.pod:1341 ../fish/guestfish-actions.pod:1046
6148 msgid "64 bit Power PC."
6149 msgstr ""
6150
6151 # type: textblock
6152 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:1050
6153 msgid "Libguestfs may return other architecture strings in future."
6154 msgstr ""
6155
6156 # type: textblock
6157 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:1052
6158 msgid "The function works on at least the following types of files:"
6159 msgstr ""
6160
6161 # type: textblock
6162 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:1058
6163 msgid "many types of Un*x and Linux binary"
6164 msgstr ""
6165
6166 # type: textblock
6167 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:1062
6168 msgid "many types of Un*x and Linux shared library"
6169 msgstr ""
6170
6171 # type: textblock
6172 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:1066
6173 msgid "Windows Win32 and Win64 binaries"
6174 msgstr ""
6175
6176 # type: textblock
6177 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:1070
6178 msgid "Windows Win32 and Win64 DLLs"
6179 msgstr ""
6180
6181 # type: textblock
6182 #: ../src/guestfs-actions.pod:1367 ../fish/guestfish-actions.pod:1072
6183 msgid "Win32 binaries and DLLs return C<i386>."
6184 msgstr ""
6185
6186 # type: textblock
6187 #: ../src/guestfs-actions.pod:1369 ../fish/guestfish-actions.pod:1074
6188 msgid "Win64 binaries and DLLs return C<x86_64>."
6189 msgstr ""
6190
6191 # type: textblock
6192 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:1078
6193 msgid "Linux kernel modules"
6194 msgstr ""
6195
6196 # type: textblock
6197 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1082
6198 msgid "Linux new-style initrd images"
6199 msgstr ""
6200
6201 # type: textblock
6202 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1086
6203 msgid "some non-x86 Linux vmlinuz kernels"
6204 msgstr ""
6205
6206 # type: textblock
6207 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1090
6208 msgid "What it can't do currently:"
6209 msgstr ""
6210
6211 # type: textblock
6212 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:1096
6213 msgid "static libraries (libfoo.a)"
6214 msgstr ""
6215
6216 # type: textblock
6217 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:1100
6218 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6219 msgstr ""
6220
6221 # type: textblock
6222 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:1104
6223 msgid "x86 Linux vmlinuz kernels"
6224 msgstr ""
6225
6226 # type: textblock
6227 #: ../src/guestfs-actions.pod:1401 ../fish/guestfish-actions.pod:1106
6228 msgid ""
6229 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6230 "compressed code, and are horribly hard to unpack.  If you want to find the "
6231 "architecture of a kernel, use the architecture of the associated initrd or "
6232 "kernel module(s) instead."
6233 msgstr ""
6234
6235 # type: =head2
6236 #: ../src/guestfs-actions.pod:1411
6237 msgid "guestfs_filesize"
6238 msgstr ""
6239
6240 # type: verbatim
6241 #: ../src/guestfs-actions.pod:1413
6242 #, no-wrap
6243 msgid ""
6244 " int64_t guestfs_filesize (guestfs_h *g,\n"
6245 "\t\tconst char *file);\n"
6246 "\n"
6247 msgstr ""
6248
6249 # type: textblock
6250 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1117
6251 msgid "This command returns the size of C<file> in bytes."
6252 msgstr ""
6253
6254 # type: textblock
6255 #: ../src/guestfs-actions.pod:1418
6256 msgid ""
6257 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6258 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6259 "devices, use C<guestfs_blockdev_getsize64>."
6260 msgstr ""
6261
6262 # type: =head2
6263 #: ../src/guestfs-actions.pod:1424
6264 msgid "guestfs_fill"
6265 msgstr ""
6266
6267 # type: verbatim
6268 #: ../src/guestfs-actions.pod:1426
6269 #, no-wrap
6270 msgid ""
6271 " int guestfs_fill (guestfs_h *g,\n"
6272 "\t\tint c,\n"
6273 "\t\tint len,\n"
6274 "\t\tconst char *path);\n"
6275 "\n"
6276 msgstr ""
6277
6278 # type: textblock
6279 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:1127
6280 msgid ""
6281 "This command creates a new file called C<path>.  The initial content of the "
6282 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6283 "C<[0..255]>."
6284 msgstr ""
6285
6286 # type: textblock
6287 #: ../src/guestfs-actions.pod:1435
6288 msgid ""
6289 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6290 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6291 "bytes use C<guestfs_fill_pattern>."
6292 msgstr ""
6293
6294 # type: =head2
6295 #: ../src/guestfs-actions.pod:1447
6296 msgid "guestfs_fill_pattern"
6297 msgstr ""
6298
6299 # type: verbatim
6300 #: ../src/guestfs-actions.pod:1449
6301 #, no-wrap
6302 msgid ""
6303 " int guestfs_fill_pattern (guestfs_h *g,\n"
6304 "\t\tconst char *pattern,\n"
6305 "\t\tint len,\n"
6306 "\t\tconst char *path);\n"
6307 "\n"
6308 msgstr ""
6309
6310 # type: textblock
6311 #: ../src/guestfs-actions.pod:1454
6312 msgid ""
6313 "This function is like C<guestfs_fill> except that it creates a new file of "
6314 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6315 "pattern is truncated if necessary to ensure the length of the file is "
6316 "exactly C<len> bytes."
6317 msgstr ""
6318
6319 # type: =head2
6320 #: ../src/guestfs-actions.pod:1466
6321 msgid "guestfs_find"
6322 msgstr ""
6323
6324 # type: verbatim
6325 #: ../src/guestfs-actions.pod:1468
6326 #, no-wrap
6327 msgid ""
6328 " char **guestfs_find (guestfs_h *g,\n"
6329 "\t\tconst char *directory);\n"
6330 "\n"
6331 msgstr ""
6332
6333 # type: textblock
6334 #: ../src/guestfs-actions.pod:1471 ../fish/guestfish-actions.pod:1149
6335 msgid ""
6336 "This command lists out all files and directories, recursively, starting at "
6337 "C<directory>.  It is essentially equivalent to running the shell command "
6338 "C<find directory -print> but some post-processing happens on the output, "
6339 "described below."
6340 msgstr ""
6341
6342 # type: textblock
6343 #: ../src/guestfs-actions.pod:1476 ../fish/guestfish-actions.pod:1154
6344 msgid ""
6345 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6346 "structure was:"
6347 msgstr ""
6348
6349 # type: verbatim
6350 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:1157
6351 #, no-wrap
6352 msgid ""
6353 " /tmp/a\n"
6354 " /tmp/b\n"
6355 " /tmp/c/d\n"
6356 "\n"
6357 msgstr ""
6358
6359 # type: textblock
6360 #: ../src/guestfs-actions.pod:1483
6361 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6362 msgstr ""
6363
6364 # type: verbatim
6365 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:1164
6366 #, no-wrap
6367 msgid ""
6368 " a\n"
6369 " b\n"
6370 " c\n"
6371 " c/d\n"
6372 "\n"
6373 msgstr ""
6374
6375 # type: textblock
6376 #: ../src/guestfs-actions.pod:1491 ../fish/guestfish-actions.pod:1169
6377 msgid "If C<directory> is not a directory, then this command returns an error."
6378 msgstr ""
6379
6380 # type: textblock
6381 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1172
6382 msgid "The returned list is sorted."
6383 msgstr ""
6384
6385 # type: textblock
6386 #: ../src/guestfs-actions.pod:1496
6387 msgid "See also C<guestfs_find0>."
6388 msgstr ""
6389
6390 # type: =head2
6391 #: ../src/guestfs-actions.pod:1505
6392 msgid "guestfs_find0"
6393 msgstr ""
6394
6395 # type: verbatim
6396 #: ../src/guestfs-actions.pod:1507
6397 #, no-wrap
6398 msgid ""
6399 " int guestfs_find0 (guestfs_h *g,\n"
6400 "\t\tconst char *directory,\n"
6401 "\t\tconst char *files);\n"
6402 "\n"
6403 msgstr ""
6404
6405 # type: textblock
6406 #: ../src/guestfs-actions.pod:1511 ../fish/guestfish-actions.pod:1183
6407 msgid ""
6408 "This command lists out all files and directories, recursively, starting at "
6409 "C<directory>, placing the resulting list in the external file called "
6410 "C<files>."
6411 msgstr ""
6412
6413 # type: textblock
6414 #: ../src/guestfs-actions.pod:1515
6415 msgid ""
6416 "This command works the same way as C<guestfs_find> with the following "
6417 "exceptions:"
6418 msgstr ""
6419
6420 # type: textblock
6421 #: ../src/guestfs-actions.pod:1522 ../fish/guestfish-actions.pod:1194
6422 msgid "The resulting list is written to an external file."
6423 msgstr ""
6424
6425 # type: textblock
6426 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1198
6427 msgid ""
6428 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6429 "L<find(1)> option I<-print0>."
6430 msgstr ""
6431
6432 # type: textblock
6433 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1203
6434 msgid "This command is not limited in the number of names that it can return."
6435 msgstr ""
6436
6437 # type: textblock
6438 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1208
6439 msgid "The result list is not sorted."
6440 msgstr ""
6441
6442 # type: =head2
6443 #: ../src/guestfs-actions.pod:1542
6444 msgid "guestfs_findfs_label"
6445 msgstr ""
6446
6447 # type: verbatim
6448 #: ../src/guestfs-actions.pod:1544
6449 #, no-wrap
6450 msgid ""
6451 " char *guestfs_findfs_label (guestfs_h *g,\n"
6452 "\t\tconst char *label);\n"
6453 "\n"
6454 msgstr ""
6455
6456 # type: textblock
6457 #: ../src/guestfs-actions.pod:1547 ../fish/guestfish-actions.pod:1218
6458 msgid ""
6459 "This command searches the filesystems and returns the one which has the "
6460 "given label.  An error is returned if no such filesystem can be found."
6461 msgstr ""
6462
6463 # type: textblock
6464 #: ../src/guestfs-actions.pod:1551
6465 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6466 msgstr ""
6467
6468 # type: =head2
6469 #: ../src/guestfs-actions.pod:1556
6470 msgid "guestfs_findfs_uuid"
6471 msgstr ""
6472
6473 # type: verbatim
6474 #: ../src/guestfs-actions.pod:1558
6475 #, no-wrap
6476 msgid ""
6477 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6478 "\t\tconst char *uuid);\n"
6479 "\n"
6480 msgstr ""
6481
6482 # type: textblock
6483 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1228
6484 msgid ""
6485 "This command searches the filesystems and returns the one which has the "
6486 "given UUID.  An error is returned if no such filesystem can be found."
6487 msgstr ""
6488
6489 # type: textblock
6490 #: ../src/guestfs-actions.pod:1565
6491 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6492 msgstr ""
6493
6494 # type: =head2
6495 #: ../src/guestfs-actions.pod:1570
6496 msgid "guestfs_fsck"
6497 msgstr ""
6498
6499 # type: verbatim
6500 #: ../src/guestfs-actions.pod:1572
6501 #, no-wrap
6502 msgid ""
6503 " int guestfs_fsck (guestfs_h *g,\n"
6504 "\t\tconst char *fstype,\n"
6505 "\t\tconst char *device);\n"
6506 "\n"
6507 msgstr ""
6508
6509 # type: textblock
6510 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1238
6511 msgid ""
6512 "This runs the filesystem checker (fsck) on C<device> which should have "
6513 "filesystem type C<fstype>."
6514 msgstr ""
6515
6516 # type: textblock
6517 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1241
6518 msgid ""
6519 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6520 "codes from C<fsck>."
6521 msgstr ""
6522
6523 # type: textblock
6524 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1250
6525 msgid "Multiple status codes can be summed together."
6526 msgstr ""
6527
6528 # type: textblock
6529 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1254
6530 msgid ""
6531 "A non-zero return code can mean \"success\", for example if errors have been "
6532 "corrected on the filesystem."
6533 msgstr ""
6534
6535 # type: textblock
6536 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1259
6537 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6538 msgstr ""
6539
6540 # type: textblock
6541 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1264
6542 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6543 msgstr ""
6544
6545 # type: =head2
6546 #: ../src/guestfs-actions.pod:1606
6547 msgid "guestfs_get_append"
6548 msgstr ""
6549
6550 # type: verbatim
6551 #: ../src/guestfs-actions.pod:1608
6552 #, no-wrap
6553 msgid ""
6554 " const char *guestfs_get_append (guestfs_h *g);\n"
6555 "\n"
6556 msgstr ""
6557
6558 # type: textblock
6559 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1270
6560 msgid ""
6561 "Return the additional kernel options which are added to the guest kernel "
6562 "command line."
6563 msgstr ""
6564
6565 # type: textblock
6566 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1273
6567 msgid "If C<NULL> then no options are added."
6568 msgstr ""
6569
6570 # type: textblock
6571 #: ../src/guestfs-actions.pod:1615
6572 msgid ""
6573 "This function returns a string which may be NULL.  There is no way to return "
6574 "an error from this function.  The string is owned by the guest handle and "
6575 "must I<not> be freed."
6576 msgstr ""
6577
6578 # type: =head2
6579 #: ../src/guestfs-actions.pod:1619
6580 msgid "guestfs_get_autosync"
6581 msgstr ""
6582
6583 # type: verbatim
6584 #: ../src/guestfs-actions.pod:1621
6585 #, no-wrap
6586 msgid ""
6587 " int guestfs_get_autosync (guestfs_h *g);\n"
6588 "\n"
6589 msgstr ""
6590
6591 # type: textblock
6592 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1279
6593 msgid "Get the autosync flag."
6594 msgstr ""
6595
6596 # type: =head2
6597 #: ../src/guestfs-actions.pod:1627
6598 msgid "guestfs_get_direct"
6599 msgstr ""
6600
6601 # type: verbatim
6602 #: ../src/guestfs-actions.pod:1629
6603 #, no-wrap
6604 msgid ""
6605 " int guestfs_get_direct (guestfs_h *g);\n"
6606 "\n"
6607 msgstr ""
6608
6609 # type: textblock
6610 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1285
6611 msgid "Return the direct appliance mode flag."
6612 msgstr ""
6613
6614 # type: =head2
6615 #: ../src/guestfs-actions.pod:1635
6616 msgid "guestfs_get_e2label"
6617 msgstr ""
6618
6619 # type: verbatim
6620 #: ../src/guestfs-actions.pod:1637
6621 #, no-wrap
6622 msgid ""
6623 " char *guestfs_get_e2label (guestfs_h *g,\n"
6624 "\t\tconst char *device);\n"
6625 "\n"
6626 msgstr ""
6627
6628 # type: textblock
6629 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1291
6630 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6631 msgstr ""
6632
6633 # type: textblock
6634 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1294
6635 msgid ""
6636 "This function is deprecated.  In new code, use the C<vfs_label> call "
6637 "instead."
6638 msgstr ""
6639
6640 # type: =head2
6641 #: ../src/guestfs-actions.pod:1653
6642 msgid "guestfs_get_e2uuid"
6643 msgstr ""
6644
6645 # type: verbatim
6646 #: ../src/guestfs-actions.pod:1655
6647 #, no-wrap
6648 msgid ""
6649 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6650 "\t\tconst char *device);\n"
6651 "\n"
6652 msgstr ""
6653
6654 # type: textblock
6655 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1305
6656 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6657 msgstr ""
6658
6659 # type: textblock
6660 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1308
6661 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6662 msgstr ""
6663
6664 # type: =head2
6665 #: ../src/guestfs-actions.pod:1671
6666 msgid "guestfs_get_memsize"
6667 msgstr ""
6668
6669 # type: verbatim
6670 #: ../src/guestfs-actions.pod:1673
6671 #, no-wrap
6672 msgid ""
6673 " int guestfs_get_memsize (guestfs_h *g);\n"
6674 "\n"
6675 msgstr ""
6676
6677 # type: textblock
6678 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1319
6679 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6680 msgstr ""
6681
6682 # type: textblock
6683 #: ../src/guestfs-actions.pod:1678
6684 msgid ""
6685 "If C<guestfs_set_memsize> was not called on this handle, and if "
6686 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6687 "value for memsize."
6688 msgstr ""
6689
6690 # type: textblock
6691 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:4529 ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377 ../fish/guestfish-actions.pod:3420 ../fish/guestfish-actions.pod:3507
6692 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6693 msgstr ""
6694
6695 # type: =head2
6696 #: ../src/guestfs-actions.pod:1687
6697 msgid "guestfs_get_network"
6698 msgstr ""
6699
6700 # type: verbatim
6701 #: ../src/guestfs-actions.pod:1689
6702 #, no-wrap
6703 msgid ""
6704 " int guestfs_get_network (guestfs_h *g);\n"
6705 "\n"
6706 msgstr ""
6707
6708 # type: textblock
6709 #: ../src/guestfs-actions.pod:1691 ../fish/guestfish-actions.pod:1333
6710 msgid "This returns the enable network flag."
6711 msgstr ""
6712
6713 # type: =head2
6714 #: ../src/guestfs-actions.pod:1695
6715 msgid "guestfs_get_path"
6716 msgstr ""
6717
6718 # type: verbatim
6719 #: ../src/guestfs-actions.pod:1697
6720 #, no-wrap
6721 msgid ""
6722 " const char *guestfs_get_path (guestfs_h *g);\n"
6723 "\n"
6724 msgstr ""
6725
6726 # type: textblock
6727 #: ../src/guestfs-actions.pod:1699 ../fish/guestfish-actions.pod:1339
6728 msgid "Return the current search path."
6729 msgstr ""
6730
6731 # type: textblock
6732 #: ../src/guestfs-actions.pod:1701 ../fish/guestfish-actions.pod:1341
6733 msgid ""
6734 "This is always non-NULL.  If it wasn't set already, then this will return "
6735 "the default path."
6736 msgstr ""
6737
6738 # type: textblock
6739 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1727
6740 msgid ""
6741 "This function returns a string, or NULL on error.  The string is owned by "
6742 "the guest handle and must I<not> be freed."
6743 msgstr ""
6744
6745 # type: =head2
6746 #: ../src/guestfs-actions.pod:1707
6747 msgid "guestfs_get_pid"
6748 msgstr ""
6749
6750 # type: verbatim
6751 #: ../src/guestfs-actions.pod:1709
6752 #, no-wrap
6753 msgid ""
6754 " int guestfs_get_pid (guestfs_h *g);\n"
6755 "\n"
6756 msgstr ""
6757
6758 # type: textblock
6759 #: ../src/guestfs-actions.pod:1711 ../fish/guestfish-actions.pod:1350
6760 msgid ""
6761 "Return the process ID of the qemu subprocess.  If there is no qemu "
6762 "subprocess, then this will return an error."
6763 msgstr ""
6764
6765 # type: textblock
6766 #: ../src/guestfs-actions.pod:1714 ../fish/guestfish-actions.pod:1353
6767 msgid "This is an internal call used for debugging and testing."
6768 msgstr ""
6769
6770 # type: =head2
6771 #: ../src/guestfs-actions.pod:1718
6772 msgid "guestfs_get_qemu"
6773 msgstr ""
6774
6775 # type: verbatim
6776 #: ../src/guestfs-actions.pod:1720
6777 #, no-wrap
6778 msgid ""
6779 " const char *guestfs_get_qemu (guestfs_h *g);\n"
6780 "\n"
6781 msgstr ""
6782
6783 # type: textblock
6784 #: ../src/guestfs-actions.pod:1722 ../fish/guestfish-actions.pod:1359
6785 msgid "Return the current qemu binary."
6786 msgstr ""
6787
6788 # type: textblock
6789 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1361
6790 msgid ""
6791 "This is always non-NULL.  If it wasn't set already, then this will return "
6792 "the default qemu binary name."
6793 msgstr ""
6794
6795 # type: =head2
6796 #: ../src/guestfs-actions.pod:1730
6797 msgid "guestfs_get_recovery_proc"
6798 msgstr ""
6799
6800 # type: verbatim
6801 #: ../src/guestfs-actions.pod:1732
6802 #, no-wrap
6803 msgid ""
6804 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
6805 "\n"
6806 msgstr ""
6807
6808 # type: textblock
6809 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1368
6810 msgid "Return the recovery process enabled flag."
6811 msgstr ""
6812
6813 # type: =head2
6814 #: ../src/guestfs-actions.pod:1738
6815 msgid "guestfs_get_selinux"
6816 msgstr ""
6817
6818 # type: verbatim
6819 #: ../src/guestfs-actions.pod:1740
6820 #, no-wrap
6821 msgid ""
6822 " int guestfs_get_selinux (guestfs_h *g);\n"
6823 "\n"
6824 msgstr ""
6825
6826 # type: textblock
6827 #: ../src/guestfs-actions.pod:1742
6828 msgid ""
6829 "This returns the current setting of the selinux flag which is passed to the "
6830 "appliance at boot time.  See C<guestfs_set_selinux>."
6831 msgstr ""
6832
6833 # type: =head2
6834 #: ../src/guestfs-actions.pod:1750
6835 msgid "guestfs_get_state"
6836 msgstr ""
6837
6838 # type: verbatim
6839 #: ../src/guestfs-actions.pod:1752
6840 #, no-wrap
6841 msgid ""
6842 " int guestfs_get_state (guestfs_h *g);\n"
6843 "\n"
6844 msgstr ""
6845
6846 # type: textblock
6847 #: ../src/guestfs-actions.pod:1754 ../fish/guestfish-actions.pod:1384
6848 msgid ""
6849 "This returns the current state as an opaque integer.  This is only useful "
6850 "for printing debug and internal error messages."
6851 msgstr ""
6852
6853 # type: textblock
6854 #: ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1387 ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:1899 ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:1953
6855 msgid "For more information on states, see L<guestfs(3)>."
6856 msgstr ""
6857
6858 # type: =head2
6859 #: ../src/guestfs-actions.pod:1761
6860 msgid "guestfs_get_trace"
6861 msgstr ""
6862
6863 # type: verbatim
6864 #: ../src/guestfs-actions.pod:1763
6865 #, no-wrap
6866 msgid ""
6867 " int guestfs_get_trace (guestfs_h *g);\n"
6868 "\n"
6869 msgstr ""
6870
6871 # type: textblock
6872 #: ../src/guestfs-actions.pod:1765 ../fish/guestfish-actions.pod:1393
6873 msgid "Return the command trace flag."
6874 msgstr ""
6875
6876 # type: =head2
6877 #: ../src/guestfs-actions.pod:1769
6878 msgid "guestfs_get_umask"
6879 msgstr ""
6880
6881 # type: verbatim
6882 #: ../src/guestfs-actions.pod:1771
6883 #, no-wrap
6884 msgid ""
6885 " int guestfs_get_umask (guestfs_h *g);\n"
6886 "\n"
6887 msgstr ""
6888
6889 # type: textblock
6890 #: ../src/guestfs-actions.pod:1773
6891 msgid ""
6892 "Return the current umask.  By default the umask is C<022> unless it has been "
6893 "set by calling C<guestfs_umask>."
6894 msgstr ""
6895
6896 # type: =head2
6897 #: ../src/guestfs-actions.pod:1778
6898 msgid "guestfs_get_verbose"
6899 msgstr ""
6900
6901 # type: verbatim
6902 #: ../src/guestfs-actions.pod:1780
6903 #, no-wrap
6904 msgid ""
6905 " int guestfs_get_verbose (guestfs_h *g);\n"
6906 "\n"
6907 msgstr ""
6908
6909 # type: textblock
6910 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1406
6911 msgid "This returns the verbose messages flag."
6912 msgstr ""
6913
6914 # type: =head2
6915 #: ../src/guestfs-actions.pod:1786
6916 msgid "guestfs_getcon"
6917 msgstr ""
6918
6919 # type: verbatim
6920 #: ../src/guestfs-actions.pod:1788
6921 #, no-wrap
6922 msgid ""
6923 " char *guestfs_getcon (guestfs_h *g);\n"
6924 "\n"
6925 msgstr ""
6926
6927 # type: textblock
6928 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1412
6929 msgid "This gets the SELinux security context of the daemon."
6930 msgstr ""
6931
6932 # type: textblock
6933 #: ../src/guestfs-actions.pod:1792
6934 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
6935 msgstr ""
6936
6937 # type: =head2
6938 #: ../src/guestfs-actions.pod:1798
6939 msgid "guestfs_getxattrs"
6940 msgstr ""
6941
6942 # type: verbatim
6943 #: ../src/guestfs-actions.pod:1800
6944 #, no-wrap
6945 msgid ""
6946 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
6947 "\t\tconst char *path);\n"
6948 "\n"
6949 msgstr ""
6950
6951 # type: textblock
6952 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1421
6953 msgid "This call lists the extended attributes of the file or directory C<path>."
6954 msgstr ""
6955
6956 # type: textblock
6957 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1424
6958 msgid ""
6959 "At the system call level, this is a combination of the L<listxattr(2)> and "
6960 "L<getxattr(2)> calls."
6961 msgstr ""
6962
6963 # type: textblock
6964 #: ../src/guestfs-actions.pod:1809
6965 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
6966 msgstr ""
6967
6968 # type: textblock
6969 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:3083
6970 msgid ""
6971 "This function returns a C<struct guestfs_xattr_list *> (see "
6972 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
6973 "must call C<guestfs_free_xattr_list> after use>."
6974 msgstr ""
6975
6976 # type: =head2
6977 #: ../src/guestfs-actions.pod:1816
6978 msgid "guestfs_glob_expand"
6979 msgstr ""
6980
6981 # type: verbatim
6982 #: ../src/guestfs-actions.pod:1818
6983 #, no-wrap
6984 msgid ""
6985 " char **guestfs_glob_expand (guestfs_h *g,\n"
6986 "\t\tconst char *pattern);\n"
6987 "\n"
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1821 ../fish/guestfish-actions.pod:1433
6992 msgid ""
6993 "This command searches for all the pathnames matching C<pattern> according to "
6994 "the wildcard expansion rules used by the shell."
6995 msgstr ""
6996
6997 # type: textblock
6998 #: ../src/guestfs-actions.pod:1825 ../fish/guestfish-actions.pod:1437
6999 msgid "If no paths match, then this returns an empty list (note: not an error)."
7000 msgstr ""
7001
7002 # type: textblock
7003 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1440
7004 msgid ""
7005 "It is just a wrapper around the C L<glob(3)> function with flags "
7006 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7007 msgstr ""
7008
7009 # type: =head2
7010 #: ../src/guestfs-actions.pod:1836
7011 msgid "guestfs_grep"
7012 msgstr ""
7013
7014 # type: verbatim
7015 #: ../src/guestfs-actions.pod:1838
7016 #, no-wrap
7017 msgid ""
7018 " char **guestfs_grep (guestfs_h *g,\n"
7019 "\t\tconst char *regex,\n"
7020 "\t\tconst char *path);\n"
7021 "\n"
7022 msgstr ""
7023
7024 # type: textblock
7025 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:1448
7026 msgid "This calls the external C<grep> program and returns the matching lines."
7027 msgstr ""
7028
7029 # type: =head2
7030 #: ../src/guestfs-actions.pod:1852
7031 msgid "guestfs_grepi"
7032 msgstr ""
7033
7034 # type: verbatim
7035 #: ../src/guestfs-actions.pod:1854
7036 #, no-wrap
7037 msgid ""
7038 " char **guestfs_grepi (guestfs_h *g,\n"
7039 "\t\tconst char *regex,\n"
7040 "\t\tconst char *path);\n"
7041 "\n"
7042 msgstr ""
7043
7044 # type: textblock
7045 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1458
7046 msgid "This calls the external C<grep -i> program and returns the matching lines."
7047 msgstr ""
7048
7049 # type: =head2
7050 #: ../src/guestfs-actions.pod:1868
7051 msgid "guestfs_grub_install"
7052 msgstr ""
7053
7054 # type: verbatim
7055 #: ../src/guestfs-actions.pod:1870
7056 #, no-wrap
7057 msgid ""
7058 " int guestfs_grub_install (guestfs_h *g,\n"
7059 "\t\tconst char *root,\n"
7060 "\t\tconst char *device);\n"
7061 "\n"
7062 msgstr ""
7063
7064 # type: textblock
7065 #: ../src/guestfs-actions.pod:1874 ../fish/guestfish-actions.pod:1468
7066 msgid ""
7067 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7068 "the root directory being C<root>."
7069 msgstr ""
7070
7071 # type: textblock
7072 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1471
7073 msgid ""
7074 "Note: If grub-install reports the error \"No suitable drive was found in the "
7075 "generated device map.\" it may be that you need to create a "
7076 "C</boot/grub/device.map> file first that contains the mapping between grub "
7077 "device names and Linux device names.  It is usually sufficient to create a "
7078 "file containing:"
7079 msgstr ""
7080
7081 # type: verbatim
7082 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1478
7083 #, no-wrap
7084 msgid ""
7085 " (hd0) /dev/vda\n"
7086 "\n"
7087 msgstr ""
7088
7089 # type: textblock
7090 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1480
7091 msgid "replacing C</dev/vda> with the name of the installation device."
7092 msgstr ""
7093
7094 # type: =head2
7095 #: ../src/guestfs-actions.pod:1890
7096 msgid "guestfs_head"
7097 msgstr ""
7098
7099 # type: verbatim
7100 #: ../src/guestfs-actions.pod:1892
7101 #, no-wrap
7102 msgid ""
7103 " char **guestfs_head (guestfs_h *g,\n"
7104 "\t\tconst char *path);\n"
7105 "\n"
7106 msgstr ""
7107
7108 # type: textblock
7109 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1486
7110 msgid ""
7111 "This command returns up to the first 10 lines of a file as a list of "
7112 "strings."
7113 msgstr ""
7114
7115 # type: =head2
7116 #: ../src/guestfs-actions.pod:1905
7117 msgid "guestfs_head_n"
7118 msgstr ""
7119
7120 # type: verbatim
7121 #: ../src/guestfs-actions.pod:1907
7122 #, no-wrap
7123 msgid ""
7124 " char **guestfs_head_n (guestfs_h *g,\n"
7125 "\t\tint nrlines,\n"
7126 "\t\tconst char *path);\n"
7127 "\n"
7128 msgstr ""
7129
7130 # type: textblock
7131 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1496
7132 msgid ""
7133 "If the parameter C<nrlines> is a positive number, this returns the first "
7134 "C<nrlines> lines of the file C<path>."
7135 msgstr ""
7136
7137 # type: textblock
7138 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1499
7139 msgid ""
7140 "If the parameter C<nrlines> is a negative number, this returns lines from "
7141 "the file C<path>, excluding the last C<nrlines> lines."
7142 msgstr ""
7143
7144 # type: textblock
7145 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3853
7146 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7147 msgstr ""
7148
7149 # type: =head2
7150 #: ../src/guestfs-actions.pod:1926
7151 msgid "guestfs_hexdump"
7152 msgstr ""
7153
7154 # type: verbatim
7155 #: ../src/guestfs-actions.pod:1928
7156 #, no-wrap
7157 msgid ""
7158 " char *guestfs_hexdump (guestfs_h *g,\n"
7159 "\t\tconst char *path);\n"
7160 "\n"
7161 msgstr ""
7162
7163 # type: textblock
7164 #: ../src/guestfs-actions.pod:1931 ../fish/guestfish-actions.pod:1511
7165 msgid ""
7166 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7167 "human-readable, canonical hex dump of the file."
7168 msgstr ""
7169
7170 # type: =head2
7171 #: ../src/guestfs-actions.pod:1940
7172 msgid "guestfs_initrd_cat"
7173 msgstr ""
7174
7175 # type: verbatim
7176 #: ../src/guestfs-actions.pod:1942
7177 #, no-wrap
7178 msgid ""
7179 " char *guestfs_initrd_cat (guestfs_h *g,\n"
7180 "\t\tconst char *initrdpath,\n"
7181 "\t\tconst char *filename,\n"
7182 "\t\tsize_t *size_r);\n"
7183 "\n"
7184 msgstr ""
7185
7186 # type: textblock
7187 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1521
7188 msgid ""
7189 "This command unpacks the file C<filename> from the initrd file called "
7190 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7191 "character."
7192 msgstr ""
7193
7194 # type: textblock
7195 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1525
7196 msgid ""
7197 "For example, in guestfish you could use the following command to examine the "
7198 "boot script (usually called C</init>)  contained in a Linux initrd or "
7199 "initramfs image:"
7200 msgstr ""
7201
7202 # type: verbatim
7203 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1529
7204 #, no-wrap
7205 msgid ""
7206 " initrd-cat /boot/initrd-<version>.img init\n"
7207 "\n"
7208 msgstr ""
7209
7210 # type: textblock
7211 #: ../src/guestfs-actions.pod:1957
7212 msgid "See also C<guestfs_initrd_list>."
7213 msgstr ""
7214
7215 # type: textblock
7216 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:3897 ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:4072
7217 msgid ""
7218 "This function returns a buffer, or NULL on error.  The size of the returned "
7219 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7220 "after use>."
7221 msgstr ""
7222
7223 # type: =head2
7224 #: ../src/guestfs-actions.pod:1966
7225 msgid "guestfs_initrd_list"
7226 msgstr ""
7227
7228 # type: verbatim
7229 #: ../src/guestfs-actions.pod:1968
7230 #, no-wrap
7231 msgid ""
7232 " char **guestfs_initrd_list (guestfs_h *g,\n"
7233 "\t\tconst char *path);\n"
7234 "\n"
7235 msgstr ""
7236
7237 # type: textblock
7238 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1540
7239 msgid "This command lists out files contained in an initrd."
7240 msgstr ""
7241
7242 # type: textblock
7243 #: ../src/guestfs-actions.pod:1973 ../fish/guestfish-actions.pod:1542
7244 msgid ""
7245 "The files are listed without any initial C</> character.  The files are "
7246 "listed in the order they appear (not necessarily alphabetical).  Directory "
7247 "names are listed as separate items."
7248 msgstr ""
7249
7250 # type: textblock
7251 #: ../src/guestfs-actions.pod:1977 ../fish/guestfish-actions.pod:1546
7252 msgid ""
7253 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7254 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7255 "files)."
7256 msgstr ""
7257
7258 # type: =head2
7259 #: ../src/guestfs-actions.pod:1985
7260 msgid "guestfs_inotify_add_watch"
7261 msgstr ""
7262
7263 # type: verbatim
7264 #: ../src/guestfs-actions.pod:1987
7265 #, no-wrap
7266 msgid ""
7267 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
7268 "\t\tconst char *path,\n"
7269 "\t\tint mask);\n"
7270 "\n"
7271 msgstr ""
7272
7273 # type: textblock
7274 #: ../src/guestfs-actions.pod:1991 ../fish/guestfish-actions.pod:1554
7275 msgid "Watch C<path> for the events listed in C<mask>."
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:1993 ../fish/guestfish-actions.pod:1556
7280 msgid ""
7281 "Note that if C<path> is a directory then events within that directory are "
7282 "watched, but this does I<not> happen recursively (in subdirectories)."
7283 msgstr ""
7284
7285 # type: textblock
7286 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1560
7287 msgid ""
7288 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7289 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7290 msgstr ""
7291
7292 # type: =head2
7293 #: ../src/guestfs-actions.pod:2003
7294 msgid "guestfs_inotify_close"
7295 msgstr ""
7296
7297 # type: verbatim
7298 #: ../src/guestfs-actions.pod:2005
7299 #, no-wrap
7300 msgid ""
7301 " int guestfs_inotify_close (guestfs_h *g);\n"
7302 "\n"
7303 msgstr ""
7304
7305 # type: textblock
7306 #: ../src/guestfs-actions.pod:2007 ../fish/guestfish-actions.pod:1568
7307 msgid ""
7308 "This closes the inotify handle which was previously opened by inotify_init.  "
7309 "It removes all watches, throws away any pending events, and deallocates all "
7310 "resources."
7311 msgstr ""
7312
7313 # type: =head2
7314 #: ../src/guestfs-actions.pod:2013
7315 msgid "guestfs_inotify_files"
7316 msgstr ""
7317
7318 # type: verbatim
7319 #: ../src/guestfs-actions.pod:2015
7320 #, no-wrap
7321 msgid ""
7322 " char **guestfs_inotify_files (guestfs_h *g);\n"
7323 "\n"
7324 msgstr ""
7325
7326 # type: textblock
7327 #: ../src/guestfs-actions.pod:2017
7328 msgid ""
7329 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7330 "returns a list of pathnames of objects that were touched.  The returned "
7331 "pathnames are sorted and deduplicated."
7332 msgstr ""
7333
7334 # type: =head2
7335 #: ../src/guestfs-actions.pod:2025
7336 msgid "guestfs_inotify_init"
7337 msgstr ""
7338
7339 # type: verbatim
7340 #: ../src/guestfs-actions.pod:2027
7341 #, no-wrap
7342 msgid ""
7343 " int guestfs_inotify_init (guestfs_h *g,\n"
7344 "\t\tint maxevents);\n"
7345 "\n"
7346 msgstr ""
7347
7348 # type: textblock
7349 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1584
7350 msgid ""
7351 "This command creates a new inotify handle.  The inotify subsystem can be "
7352 "used to notify events which happen to objects in the guest filesystem."
7353 msgstr ""
7354
7355 # type: textblock
7356 #: ../src/guestfs-actions.pod:2034
7357 msgid ""
7358 "C<maxevents> is the maximum number of events which will be queued up between "
7359 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7360 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7361 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7362 "throws away events, but records the fact that it threw them away by setting "
7363 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7364 "C<guestfs_inotify_read>)."
7365 msgstr ""
7366
7367 # type: textblock
7368 #: ../src/guestfs-actions.pod:2044
7369 msgid ""
7370 "Before any events are generated, you have to add some watches to the "
7371 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7372 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7373 msgstr ""
7374
7375 # type: textblock
7376 #: ../src/guestfs-actions.pod:2050
7377 msgid ""
7378 "Queued up events should be read periodically by calling "
7379 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7380 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7381 "often enough then you risk the internal queue overflowing."
7382 msgstr ""
7383
7384 # type: textblock
7385 #: ../src/guestfs-actions.pod:2057
7386 msgid ""
7387 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7388 "This also removes any watches automatically."
7389 msgstr ""
7390
7391 # type: textblock
7392 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1615
7393 msgid ""
7394 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7395 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7396 "that there is one global inotify handle per libguestfs instance."
7397 msgstr ""
7398
7399 # type: =head2
7400 #: ../src/guestfs-actions.pod:2068
7401 msgid "guestfs_inotify_read"
7402 msgstr ""
7403
7404 # type: verbatim
7405 #: ../src/guestfs-actions.pod:2070
7406 #, no-wrap
7407 msgid ""
7408 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7409 "\n"
7410 msgstr ""
7411
7412 # type: textblock
7413 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1624
7414 msgid ""
7415 "Return the complete queue of events that have happened since the previous "
7416 "read call."
7417 msgstr ""
7418
7419 # type: textblock
7420 #: ../src/guestfs-actions.pod:2075 ../fish/guestfish-actions.pod:1627
7421 msgid "If no events have happened, this returns an empty list."
7422 msgstr ""
7423
7424 # type: textblock
7425 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1629
7426 msgid ""
7427 "I<Note>: In order to make sure that all events have been read, you must call "
7428 "this function repeatedly until it returns an empty list.  The reason is that "
7429 "the call will read events up to the maximum appliance-to-host message size "
7430 "and leave remaining events in the queue."
7431 msgstr ""
7432
7433 # type: textblock
7434 #: ../src/guestfs-actions.pod:2083
7435 msgid ""
7436 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7437 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7438 "must call C<guestfs_free_inotify_event_list> after use>."
7439 msgstr ""
7440
7441 # type: =head2
7442 #: ../src/guestfs-actions.pod:2088
7443 msgid "guestfs_inotify_rm_watch"
7444 msgstr ""
7445
7446 # type: verbatim
7447 #: ../src/guestfs-actions.pod:2090
7448 #, no-wrap
7449 msgid ""
7450 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7451 "\t\tint wd);\n"
7452 "\n"
7453 msgstr ""
7454
7455 # type: textblock
7456 #: ../src/guestfs-actions.pod:2093
7457 msgid ""
7458 "Remove a previously defined inotify watch.  See "
7459 "C<guestfs_inotify_add_watch>."
7460 msgstr ""
7461
7462 # type: =head2
7463 #: ../src/guestfs-actions.pod:2098
7464 msgid "guestfs_inspect_get_arch"
7465 msgstr ""
7466
7467 # type: verbatim
7468 #: ../src/guestfs-actions.pod:2100
7469 #, no-wrap
7470 msgid ""
7471 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7472 "\t\tconst char *root);\n"
7473 "\n"
7474 msgstr ""
7475
7476 # type: textblock
7477 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:2289
7478 msgid ""
7479 "This function should only be called with a root device string as returned by "
7480 "C<guestfs_inspect_os>."
7481 msgstr ""
7482
7483 # type: textblock
7484 #: ../src/guestfs-actions.pod:2106
7485 msgid ""
7486 "This returns the architecture of the inspected operating system.  The "
7487 "possible return values are listed under C<guestfs_file_architecture>."
7488 msgstr ""
7489
7490 # type: textblock
7491 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1653
7492 msgid ""
7493 "If the architecture could not be determined, then the string C<unknown> is "
7494 "returned."
7495 msgstr ""
7496
7497 # type: textblock
7498 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2314 ../src/guestfs-actions.pod:2351 ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:1702 ../fish/guestfish-actions.pod:1741 ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1827 ../fish/guestfish-actions.pod:1861
7499 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7500 msgstr ""
7501
7502 # type: =head2
7503 #: ../src/guestfs-actions.pod:2118
7504 msgid "guestfs_inspect_get_distro"
7505 msgstr ""
7506
7507 # type: verbatim
7508 #: ../src/guestfs-actions.pod:2120
7509 #, no-wrap
7510 msgid ""
7511 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7512 "\t\tconst char *root);\n"
7513 "\n"
7514 msgstr ""
7515
7516 # type: textblock
7517 #: ../src/guestfs-actions.pod:2126 ../fish/guestfish-actions.pod:1665
7518 msgid "This returns the distro (distribution) of the inspected operating system."
7519 msgstr ""
7520
7521 # type: textblock
7522 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1668
7523 msgid "Currently defined distros are:"
7524 msgstr ""
7525
7526 # type: =item
7527 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1672
7528 msgid "\"debian\""
7529 msgstr ""
7530
7531 # type: textblock
7532 #: ../src/guestfs-actions.pod:2135 ../fish/guestfish-actions.pod:1674
7533 msgid "Debian or a Debian-derived distro such as Ubuntu."
7534 msgstr ""
7535
7536 # type: =item
7537 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1676
7538 msgid "\"fedora\""
7539 msgstr ""
7540
7541 # type: textblock
7542 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1678
7543 msgid "Fedora."
7544 msgstr ""
7545
7546 # type: =item
7547 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1680
7548 msgid "\"redhat-based\""
7549 msgstr ""
7550
7551 # type: textblock
7552 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1682
7553 msgid "Some Red Hat-derived distro."
7554 msgstr ""
7555
7556 # type: =item
7557 #: ../src/guestfs-actions.pod:2145 ../fish/guestfish-actions.pod:1684
7558 msgid "\"rhel\""
7559 msgstr ""
7560
7561 # type: textblock
7562 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1686
7563 msgid "Red Hat Enterprise Linux and some derivatives."
7564 msgstr ""
7565
7566 # type: =item
7567 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2301 ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1814
7568 msgid "\"windows\""
7569 msgstr ""
7570
7571 # type: textblock
7572 #: ../src/guestfs-actions.pod:2151 ../fish/guestfish-actions.pod:1690
7573 msgid ""
7574 "Windows does not have distributions.  This string is returned if the OS type "
7575 "is Windows."
7576 msgstr ""
7577
7578 # type: =item
7579 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2305 ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1818
7580 msgid "\"unknown\""
7581 msgstr ""
7582
7583 # type: textblock
7584 #: ../src/guestfs-actions.pod:2156 ../fish/guestfish-actions.pod:1695
7585 msgid "The distro could not be determined."
7586 msgstr ""
7587
7588 # type: textblock
7589 #: ../src/guestfs-actions.pod:2160 ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1699 ../fish/guestfish-actions.pod:1824
7590 msgid ""
7591 "Future versions of libguestfs may return other strings here.  The caller "
7592 "should be prepared to handle any string."
7593 msgstr ""
7594
7595 # type: =head2
7596 #: ../src/guestfs-actions.pod:2168
7597 msgid "guestfs_inspect_get_filesystems"
7598 msgstr ""
7599
7600 # type: verbatim
7601 #: ../src/guestfs-actions.pod:2170
7602 #, no-wrap
7603 msgid ""
7604 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7605 "\t\tconst char *root);\n"
7606 "\n"
7607 msgstr ""
7608
7609 # type: textblock
7610 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1711
7611 msgid ""
7612 "This returns a list of all the filesystems that we think are associated with "
7613 "this operating system.  This includes the root filesystem, other ordinary "
7614 "filesystems, and non-mounted devices like swap partitions."
7615 msgstr ""
7616
7617 # type: textblock
7618 #: ../src/guestfs-actions.pod:2181 ../fish/guestfish-actions.pod:1716
7619 msgid ""
7620 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7621 "to be shared between operating systems."
7622 msgstr ""
7623
7624 # type: textblock
7625 #: ../src/guestfs-actions.pod:2184
7626 msgid ""
7627 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7628 "C<guestfs_inspect_get_mountpoints>."
7629 msgstr ""
7630
7631 # type: =head2
7632 #: ../src/guestfs-actions.pod:2191
7633 msgid "guestfs_inspect_get_major_version"
7634 msgstr ""
7635
7636 # type: verbatim
7637 #: ../src/guestfs-actions.pod:2193
7638 #, no-wrap
7639 msgid ""
7640 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7641 "\t\tconst char *root);\n"
7642 "\n"
7643 msgstr ""
7644
7645 # type: textblock
7646 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1729
7647 msgid "This returns the major version number of the inspected operating system."
7648 msgstr ""
7649
7650 # type: textblock
7651 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1732
7652 msgid ""
7653 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7654 "popular public names used by the operating system.  Notably the operating "
7655 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7656 "1).  You can find out the real versions corresponding to releases of Windows "
7657 "by consulting Wikipedia or MSDN."
7658 msgstr ""
7659
7660 # type: textblock
7661 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2226 ../fish/guestfish-actions.pod:1739 ../fish/guestfish-actions.pod:1753
7662 msgid "If the version could not be determined, then C<0> is returned."
7663 msgstr ""
7664
7665 # type: =head2
7666 #: ../src/guestfs-actions.pod:2215
7667 msgid "guestfs_inspect_get_minor_version"
7668 msgstr ""
7669
7670 # type: verbatim
7671 #: ../src/guestfs-actions.pod:2217
7672 #, no-wrap
7673 msgid ""
7674 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7675 "\t\tconst char *root);\n"
7676 "\n"
7677 msgstr ""
7678
7679 # type: textblock
7680 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1750
7681 msgid "This returns the minor version number of the inspected operating system."
7682 msgstr ""
7683
7684 # type: textblock
7685 #: ../src/guestfs-actions.pod:2228
7686 msgid ""
7687 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7688 "C<guestfs_inspect_get_major_version>."
7689 msgstr ""
7690
7691 # type: =head2
7692 #: ../src/guestfs-actions.pod:2233
7693 msgid "guestfs_inspect_get_mountpoints"
7694 msgstr ""
7695
7696 # type: verbatim
7697 #: ../src/guestfs-actions.pod:2235
7698 #, no-wrap
7699 msgid ""
7700 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
7701 "\t\tconst char *root);\n"
7702 "\n"
7703 msgstr ""
7704
7705 # type: textblock
7706 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1765
7707 msgid ""
7708 "This returns a hash of where we think the filesystems associated with this "
7709 "operating system should be mounted.  Callers should note that this is at "
7710 "best an educated guess made by reading configuration files such as "
7711 "C</etc/fstab>."
7712 msgstr ""
7713
7714 # type: textblock
7715 #: ../src/guestfs-actions.pod:2246 ../fish/guestfish-actions.pod:1770
7716 msgid ""
7717 "Each element in the returned hashtable has a key which is the path of the "
7718 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7719 "mounted there (eg. C</dev/sda1>)."
7720 msgstr ""
7721
7722 # type: textblock
7723 #: ../src/guestfs-actions.pod:2251 ../fish/guestfish-actions.pod:1775
7724 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7725 msgstr ""
7726
7727 # type: textblock
7728 #: ../src/guestfs-actions.pod:2254
7729 msgid ""
7730 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7731 "C<guestfs_inspect_get_filesystems>."
7732 msgstr ""
7733
7734 # type: textblock
7735 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:3519 ../src/guestfs-actions.pod:5102
7736 msgid ""
7737 "This function returns a NULL-terminated array of strings, or NULL if there "
7738 "was an error.  The array of strings will always have length C<2n+1>, where "
7739 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
7740 "caller must free the strings and the array after use>."
7741 msgstr ""
7742
7743 # type: =head2
7744 #: ../src/guestfs-actions.pod:2263
7745 msgid "guestfs_inspect_get_product_name"
7746 msgstr ""
7747
7748 # type: verbatim
7749 #: ../src/guestfs-actions.pod:2265
7750 #, no-wrap
7751 msgid ""
7752 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
7753 "\t\tconst char *root);\n"
7754 "\n"
7755 msgstr ""
7756
7757 # type: textblock
7758 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1788
7759 msgid ""
7760 "This returns the product name of the inspected operating system.  The "
7761 "product name is generally some freeform string which can be displayed to the "
7762 "user, but should not be parsed by programs."
7763 msgstr ""
7764
7765 # type: textblock
7766 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1793
7767 msgid ""
7768 "If the product name could not be determined, then the string C<unknown> is "
7769 "returned."
7770 msgstr ""
7771
7772 # type: =head2
7773 #: ../src/guestfs-actions.pod:2284
7774 msgid "guestfs_inspect_get_type"
7775 msgstr ""
7776
7777 # type: verbatim
7778 #: ../src/guestfs-actions.pod:2286
7779 #, no-wrap
7780 msgid ""
7781 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
7782 "\t\tconst char *root);\n"
7783 "\n"
7784 msgstr ""
7785
7786 # type: textblock
7787 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1805
7788 msgid ""
7789 "This returns the type of the inspected operating system.  Currently defined "
7790 "types are:"
7791 msgstr ""
7792
7793 # type: =item
7794 #: ../src/guestfs-actions.pod:2297 ../fish/guestfish-actions.pod:1810
7795 msgid "\"linux\""
7796 msgstr ""
7797
7798 # type: textblock
7799 #: ../src/guestfs-actions.pod:2299 ../fish/guestfish-actions.pod:1812
7800 msgid "Any Linux-based operating system."
7801 msgstr ""
7802
7803 # type: textblock
7804 #: ../src/guestfs-actions.pod:2303 ../fish/guestfish-actions.pod:1816
7805 msgid "Any Microsoft Windows operating system."
7806 msgstr ""
7807
7808 # type: textblock
7809 #: ../src/guestfs-actions.pod:2307 ../fish/guestfish-actions.pod:1820
7810 msgid "The operating system type could not be determined."
7811 msgstr ""
7812
7813 # type: =head2
7814 #: ../src/guestfs-actions.pod:2319
7815 msgid "guestfs_inspect_os"
7816 msgstr ""
7817
7818 # type: verbatim
7819 #: ../src/guestfs-actions.pod:2321
7820 #, no-wrap
7821 msgid ""
7822 " char **guestfs_inspect_os (guestfs_h *g);\n"
7823 "\n"
7824 msgstr ""
7825
7826 # type: textblock
7827 #: ../src/guestfs-actions.pod:2323 ../fish/guestfish-actions.pod:1833
7828 msgid ""
7829 "This function uses other libguestfs functions and certain heuristics to "
7830 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
7831 "for operating systems."
7832 msgstr ""
7833
7834 # type: textblock
7835 #: ../src/guestfs-actions.pod:2327 ../fish/guestfish-actions.pod:1837
7836 msgid "The list returned is empty if no operating systems were found."
7837 msgstr ""
7838
7839 # type: textblock
7840 #: ../src/guestfs-actions.pod:2329 ../fish/guestfish-actions.pod:1839
7841 msgid ""
7842 "If one operating system was found, then this returns a list with a single "
7843 "element, which is the name of the root filesystem of this operating system.  "
7844 "It is also possible for this function to return a list containing more than "
7845 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
7846 "element being the root filesystem of one of the operating systems."
7847 msgstr ""
7848
7849 # type: textblock
7850 #: ../src/guestfs-actions.pod:2336
7851 msgid ""
7852 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
7853 "functions in order to query further information about each operating system, "
7854 "such as the name and version."
7855 msgstr ""
7856
7857 # type: textblock
7858 #: ../src/guestfs-actions.pod:2341
7859 msgid ""
7860 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
7861 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
7862 "the contents.  This should be called with no disks currently mounted.  The "
7863 "function may also use Augeas, so any existing Augeas handle will be closed."
7864 msgstr ""
7865
7866 # type: textblock
7867 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1857
7868 msgid ""
7869 "This function cannot decrypt encrypted disks.  The caller must do that first "
7870 "(supplying the necessary keys) if the disk is encrypted."
7871 msgstr ""
7872
7873 # type: textblock
7874 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2558 ../src/guestfs-actions.pod:2614
7875 msgid "See also C<guestfs_list_filesystems>."
7876 msgstr ""
7877
7878 # type: =head2
7879 #: ../src/guestfs-actions.pod:2359
7880 msgid "guestfs_is_blockdev"
7881 msgstr ""
7882
7883 # type: verbatim
7884 #: ../src/guestfs-actions.pod:2361
7885 #, no-wrap
7886 msgid ""
7887 " int guestfs_is_blockdev (guestfs_h *g,\n"
7888 "\t\tconst char *path);\n"
7889 "\n"
7890 msgstr ""
7891
7892 # type: textblock
7893 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1869
7894 msgid ""
7895 "This returns C<true> if and only if there is a block device with the given "
7896 "C<path> name."
7897 msgstr ""
7898
7899 # type: textblock
7900 #: ../src/guestfs-actions.pod:2367 ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2414 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:2495
7901 msgid "See also C<guestfs_stat>."
7902 msgstr ""
7903
7904 # type: =head2
7905 #: ../src/guestfs-actions.pod:2371
7906 msgid "guestfs_is_busy"
7907 msgstr ""
7908
7909 # type: verbatim
7910 #: ../src/guestfs-actions.pod:2373
7911 #, no-wrap
7912 msgid ""
7913 " int guestfs_is_busy (guestfs_h *g);\n"
7914 "\n"
7915 msgstr ""
7916
7917 # type: textblock
7918 #: ../src/guestfs-actions.pod:2375 ../fish/guestfish-actions.pod:1878
7919 msgid ""
7920 "This returns true iff this handle is busy processing a command (in the "
7921 "C<BUSY> state)."
7922 msgstr ""
7923
7924 # type: =head2
7925 #: ../src/guestfs-actions.pod:2382
7926 msgid "guestfs_is_chardev"
7927 msgstr ""
7928
7929 # type: verbatim
7930 #: ../src/guestfs-actions.pod:2384
7931 #, no-wrap
7932 msgid ""
7933 " int guestfs_is_chardev (guestfs_h *g,\n"
7934 "\t\tconst char *path);\n"
7935 "\n"
7936 msgstr ""
7937
7938 # type: textblock
7939 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1887
7940 msgid ""
7941 "This returns C<true> if and only if there is a character device with the "
7942 "given C<path> name."
7943 msgstr ""
7944
7945 # type: =head2
7946 #: ../src/guestfs-actions.pod:2394
7947 msgid "guestfs_is_config"
7948 msgstr ""
7949
7950 # type: verbatim
7951 #: ../src/guestfs-actions.pod:2396
7952 #, no-wrap
7953 msgid ""
7954 " int guestfs_is_config (guestfs_h *g);\n"
7955 "\n"
7956 msgstr ""
7957
7958 # type: textblock
7959 #: ../src/guestfs-actions.pod:2398 ../fish/guestfish-actions.pod:1896
7960 msgid ""
7961 "This returns true iff this handle is being configured (in the C<CONFIG> "
7962 "state)."
7963 msgstr ""
7964
7965 # type: =head2
7966 #: ../src/guestfs-actions.pod:2405
7967 msgid "guestfs_is_dir"
7968 msgstr ""
7969
7970 # type: verbatim
7971 #: ../src/guestfs-actions.pod:2407
7972 #, no-wrap
7973 msgid ""
7974 " int guestfs_is_dir (guestfs_h *g,\n"
7975 "\t\tconst char *path);\n"
7976 "\n"
7977 msgstr ""
7978
7979 # type: textblock
7980 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1905
7981 msgid ""
7982 "This returns C<true> if and only if there is a directory with the given "
7983 "C<path> name.  Note that it returns false for other objects like files."
7984 msgstr ""
7985
7986 # type: =head2
7987 #: ../src/guestfs-actions.pod:2418
7988 msgid "guestfs_is_fifo"
7989 msgstr ""
7990
7991 # type: verbatim
7992 #: ../src/guestfs-actions.pod:2420
7993 #, no-wrap
7994 msgid ""
7995 " int guestfs_is_fifo (guestfs_h *g,\n"
7996 "\t\tconst char *path);\n"
7997 "\n"
7998 msgstr ""
7999
8000 # type: textblock
8001 #: ../src/guestfs-actions.pod:2423 ../fish/guestfish-actions.pod:1915
8002 msgid ""
8003 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8004 "given C<path> name."
8005 msgstr ""
8006
8007 # type: =head2
8008 #: ../src/guestfs-actions.pod:2430
8009 msgid "guestfs_is_file"
8010 msgstr ""
8011
8012 # type: verbatim
8013 #: ../src/guestfs-actions.pod:2432
8014 #, no-wrap
8015 msgid ""
8016 " int guestfs_is_file (guestfs_h *g,\n"
8017 "\t\tconst char *path);\n"
8018 "\n"
8019 msgstr ""
8020
8021 # type: textblock
8022 #: ../src/guestfs-actions.pod:2435 ../fish/guestfish-actions.pod:1924
8023 msgid ""
8024 "This returns C<true> if and only if there is a regular file with the given "
8025 "C<path> name.  Note that it returns false for other objects like "
8026 "directories."
8027 msgstr ""
8028
8029 # type: =head2
8030 #: ../src/guestfs-actions.pod:2443
8031 msgid "guestfs_is_launching"
8032 msgstr ""
8033
8034 # type: verbatim
8035 #: ../src/guestfs-actions.pod:2445
8036 #, no-wrap
8037 msgid ""
8038 " int guestfs_is_launching (guestfs_h *g);\n"
8039 "\n"
8040 msgstr ""
8041
8042 # type: textblock
8043 #: ../src/guestfs-actions.pod:2447 ../fish/guestfish-actions.pod:1934
8044 msgid ""
8045 "This returns true iff this handle is launching the subprocess (in the "
8046 "C<LAUNCHING> state)."
8047 msgstr ""
8048
8049 # type: =head2
8050 #: ../src/guestfs-actions.pod:2454
8051 msgid "guestfs_is_lv"
8052 msgstr ""
8053
8054 # type: verbatim
8055 #: ../src/guestfs-actions.pod:2456
8056 #, no-wrap
8057 msgid ""
8058 " int guestfs_is_lv (guestfs_h *g,\n"
8059 "\t\tconst char *device);\n"
8060 "\n"
8061 msgstr ""
8062
8063 # type: textblock
8064 #: ../src/guestfs-actions.pod:2459 ../fish/guestfish-actions.pod:1943
8065 msgid ""
8066 "This command tests whether C<device> is a logical volume, and returns true "
8067 "iff this is the case."
8068 msgstr ""
8069
8070 # type: =head2
8071 #: ../src/guestfs-actions.pod:2464
8072 msgid "guestfs_is_ready"
8073 msgstr ""
8074
8075 # type: verbatim
8076 #: ../src/guestfs-actions.pod:2466
8077 #, no-wrap
8078 msgid ""
8079 " int guestfs_is_ready (guestfs_h *g);\n"
8080 "\n"
8081 msgstr ""
8082
8083 # type: textblock
8084 #: ../src/guestfs-actions.pod:2468 ../fish/guestfish-actions.pod:1950
8085 msgid ""
8086 "This returns true iff this handle is ready to accept commands (in the "
8087 "C<READY> state)."
8088 msgstr ""
8089
8090 # type: =head2
8091 #: ../src/guestfs-actions.pod:2475
8092 msgid "guestfs_is_socket"
8093 msgstr ""
8094
8095 # type: verbatim
8096 #: ../src/guestfs-actions.pod:2477
8097 #, no-wrap
8098 msgid ""
8099 " int guestfs_is_socket (guestfs_h *g,\n"
8100 "\t\tconst char *path);\n"
8101 "\n"
8102 msgstr ""
8103
8104 # type: textblock
8105 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1959
8106 msgid ""
8107 "This returns C<true> if and only if there is a Unix domain socket with the "
8108 "given C<path> name."
8109 msgstr ""
8110
8111 # type: =head2
8112 #: ../src/guestfs-actions.pod:2487
8113 msgid "guestfs_is_symlink"
8114 msgstr ""
8115
8116 # type: verbatim
8117 #: ../src/guestfs-actions.pod:2489
8118 #, no-wrap
8119 msgid ""
8120 " int guestfs_is_symlink (guestfs_h *g,\n"
8121 "\t\tconst char *path);\n"
8122 "\n"
8123 msgstr ""
8124
8125 # type: textblock
8126 #: ../src/guestfs-actions.pod:2492 ../fish/guestfish-actions.pod:1968
8127 msgid ""
8128 "This returns C<true> if and only if there is a symbolic link with the given "
8129 "C<path> name."
8130 msgstr ""
8131
8132 # type: =head2
8133 #: ../src/guestfs-actions.pod:2499
8134 msgid "guestfs_kill_subprocess"
8135 msgstr ""
8136
8137 # type: verbatim
8138 #: ../src/guestfs-actions.pod:2501
8139 #, no-wrap
8140 msgid ""
8141 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8142 "\n"
8143 msgstr ""
8144
8145 # type: textblock
8146 #: ../src/guestfs-actions.pod:2503 ../fish/guestfish-actions.pod:1977
8147 msgid "This kills the qemu subprocess.  You should never need to call this."
8148 msgstr ""
8149
8150 # type: =head2
8151 #: ../src/guestfs-actions.pod:2507
8152 msgid "guestfs_launch"
8153 msgstr ""
8154
8155 # type: verbatim
8156 #: ../src/guestfs-actions.pod:2509
8157 #, no-wrap
8158 msgid ""
8159 " int guestfs_launch (guestfs_h *g);\n"
8160 "\n"
8161 msgstr ""
8162
8163 # type: textblock
8164 #: ../src/guestfs-actions.pod:2511 ../fish/guestfish-actions.pod:1985
8165 msgid ""
8166 "Internally libguestfs is implemented by running a virtual machine using "
8167 "L<qemu(1)>."
8168 msgstr ""
8169
8170 # type: textblock
8171 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1988
8172 msgid ""
8173 "You should call this after configuring the handle (eg. adding drives) but "
8174 "before performing any actions."
8175 msgstr ""
8176
8177 # type: =head2
8178 #: ../src/guestfs-actions.pod:2519
8179 msgid "guestfs_lchown"
8180 msgstr ""
8181
8182 # type: verbatim
8183 #: ../src/guestfs-actions.pod:2521
8184 #, no-wrap
8185 msgid ""
8186 " int guestfs_lchown (guestfs_h *g,\n"
8187 "\t\tint owner,\n"
8188 "\t\tint group,\n"
8189 "\t\tconst char *path);\n"
8190 "\n"
8191 msgstr ""
8192
8193 # type: textblock
8194 #: ../src/guestfs-actions.pod:2526
8195 msgid ""
8196 "Change the file owner to C<owner> and group to C<group>.  This is like "
8197 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8198 "changed, not the target."
8199 msgstr ""
8200
8201 # type: =head2
8202 #: ../src/guestfs-actions.pod:2536
8203 msgid "guestfs_lgetxattrs"
8204 msgstr ""
8205
8206 # type: verbatim
8207 #: ../src/guestfs-actions.pod:2538
8208 #, no-wrap
8209 msgid ""
8210 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8211 "\t\tconst char *path);\n"
8212 "\n"
8213 msgstr ""
8214
8215 # type: textblock
8216 #: ../src/guestfs-actions.pod:2541
8217 msgid ""
8218 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8219 "then it returns the extended attributes of the link itself."
8220 msgstr ""
8221
8222 # type: =head2
8223 #: ../src/guestfs-actions.pod:2550
8224 msgid "guestfs_list_devices"
8225 msgstr ""
8226
8227 # type: verbatim
8228 #: ../src/guestfs-actions.pod:2552
8229 #, no-wrap
8230 msgid ""
8231 " char **guestfs_list_devices (guestfs_h *g);\n"
8232 "\n"
8233 msgstr ""
8234
8235 # type: textblock
8236 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:2015
8237 msgid "List all the block devices."
8238 msgstr ""
8239
8240 # type: textblock
8241 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:2017
8242 msgid "The full block device names are returned, eg. C</dev/sda>."
8243 msgstr ""
8244
8245 # type: =head2
8246 #: ../src/guestfs-actions.pod:2564
8247 msgid "guestfs_list_filesystems"
8248 msgstr ""
8249
8250 # type: verbatim
8251 #: ../src/guestfs-actions.pod:2566
8252 #, no-wrap
8253 msgid ""
8254 " char **guestfs_list_filesystems (guestfs_h *g);\n"
8255 "\n"
8256 msgstr ""
8257
8258 # type: textblock
8259 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:2025
8260 msgid ""
8261 "This inspection command looks for filesystems on partitions, block devices "
8262 "and logical volumes, returning a list of devices containing filesystems and "
8263 "their type."
8264 msgstr ""
8265
8266 # type: textblock
8267 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:2029
8268 msgid ""
8269 "The return value is a hash, where the keys are the devices containing "
8270 "filesystems, and the values are the filesystem types.  For example:"
8271 msgstr ""
8272
8273 # type: verbatim
8274 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:2033
8275 #, no-wrap
8276 msgid ""
8277 " \"/dev/sda1\" => \"ntfs\"\n"
8278 " \"/dev/sda2\" => \"ext2\"\n"
8279 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8280 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8281 "\n"
8282 msgstr ""
8283
8284 # type: textblock
8285 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:2038
8286 msgid ""
8287 "The value can have the special value \"unknown\", meaning the content of the "
8288 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8289 msgstr ""
8290
8291 # type: textblock
8292 #: ../src/guestfs-actions.pod:2585
8293 msgid ""
8294 "This command runs other libguestfs commands, which might include "
8295 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8296 "soon after launch and only when nothing is mounted."
8297 msgstr ""
8298
8299 # type: textblock
8300 #: ../src/guestfs-actions.pod:2589
8301 msgid ""
8302 "Not all of the filesystems returned will be mountable.  In particular, swap "
8303 "partitions are returned in the list.  Also this command does not check that "
8304 "each filesystem found is valid and mountable, and some filesystems might be "
8305 "mountable but require special options.  Filesystems may not all belong to a "
8306 "single logical operating system (use C<guestfs_inspect_os> to look for "
8307 "OSes)."
8308 msgstr ""
8309
8310 # type: =head2
8311 #: ../src/guestfs-actions.pod:2603
8312 msgid "guestfs_list_partitions"
8313 msgstr ""
8314
8315 # type: verbatim
8316 #: ../src/guestfs-actions.pod:2605
8317 #, no-wrap
8318 msgid ""
8319 " char **guestfs_list_partitions (guestfs_h *g);\n"
8320 "\n"
8321 msgstr ""
8322
8323 # type: textblock
8324 #: ../src/guestfs-actions.pod:2607 ../fish/guestfish-actions.pod:2058
8325 msgid "List all the partitions detected on all block devices."
8326 msgstr ""
8327
8328 # type: textblock
8329 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:2060
8330 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8331 msgstr ""
8332
8333 # type: textblock
8334 #: ../src/guestfs-actions.pod:2611
8335 msgid ""
8336 "This does not return logical volumes.  For that you will need to call "
8337 "C<guestfs_lvs>."
8338 msgstr ""
8339
8340 # type: =head2
8341 #: ../src/guestfs-actions.pod:2620
8342 msgid "guestfs_ll"
8343 msgstr ""
8344
8345 # type: verbatim
8346 #: ../src/guestfs-actions.pod:2622
8347 #, no-wrap
8348 msgid ""
8349 " char *guestfs_ll (guestfs_h *g,\n"
8350 "\t\tconst char *directory);\n"
8351 "\n"
8352 msgstr ""
8353
8354 # type: textblock
8355 #: ../src/guestfs-actions.pod:2625 ../fish/guestfish-actions.pod:2071
8356 msgid ""
8357 "List the files in C<directory> (relative to the root directory, there is no "
8358 "cwd) in the format of 'ls -la'."
8359 msgstr ""
8360
8361 # type: textblock
8362 #: ../src/guestfs-actions.pod:2628 ../fish/guestfish-actions.pod:2074
8363 msgid ""
8364 "This command is mostly useful for interactive sessions.  It is I<not> "
8365 "intended that you try to parse the output string."
8366 msgstr ""
8367
8368 # type: =head2
8369 #: ../src/guestfs-actions.pod:2634
8370 msgid "guestfs_ln"
8371 msgstr ""
8372
8373 # type: verbatim
8374 #: ../src/guestfs-actions.pod:2636
8375 #, no-wrap
8376 msgid ""
8377 " int guestfs_ln (guestfs_h *g,\n"
8378 "\t\tconst char *target,\n"
8379 "\t\tconst char *linkname);\n"
8380 "\n"
8381 msgstr ""
8382
8383 # type: textblock
8384 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:2081
8385 msgid "This command creates a hard link using the C<ln> command."
8386 msgstr ""
8387
8388 # type: =head2
8389 #: ../src/guestfs-actions.pod:2644
8390 msgid "guestfs_ln_f"
8391 msgstr ""
8392
8393 # type: verbatim
8394 #: ../src/guestfs-actions.pod:2646
8395 #, no-wrap
8396 msgid ""
8397 " int guestfs_ln_f (guestfs_h *g,\n"
8398 "\t\tconst char *target,\n"
8399 "\t\tconst char *linkname);\n"
8400 "\n"
8401 msgstr ""
8402
8403 # type: textblock
8404 #: ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:2087
8405 msgid ""
8406 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8407 "option removes the link (C<linkname>) if it exists already."
8408 msgstr ""
8409
8410 # type: =head2
8411 #: ../src/guestfs-actions.pod:2655
8412 msgid "guestfs_ln_s"
8413 msgstr ""
8414
8415 # type: verbatim
8416 #: ../src/guestfs-actions.pod:2657
8417 #, no-wrap
8418 msgid ""
8419 " int guestfs_ln_s (guestfs_h *g,\n"
8420 "\t\tconst char *target,\n"
8421 "\t\tconst char *linkname);\n"
8422 "\n"
8423 msgstr ""
8424
8425 # type: textblock
8426 #: ../src/guestfs-actions.pod:2661 ../fish/guestfish-actions.pod:2094
8427 msgid "This command creates a symbolic link using the C<ln -s> command."
8428 msgstr ""
8429
8430 # type: =head2
8431 #: ../src/guestfs-actions.pod:2665
8432 msgid "guestfs_ln_sf"
8433 msgstr ""
8434
8435 # type: verbatim
8436 #: ../src/guestfs-actions.pod:2667
8437 #, no-wrap
8438 msgid ""
8439 " int guestfs_ln_sf (guestfs_h *g,\n"
8440 "\t\tconst char *target,\n"
8441 "\t\tconst char *linkname);\n"
8442 "\n"
8443 msgstr ""
8444
8445 # type: textblock
8446 #: ../src/guestfs-actions.pod:2671 ../fish/guestfish-actions.pod:2100
8447 msgid ""
8448 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8449 "option removes the link (C<linkname>) if it exists already."
8450 msgstr ""
8451
8452 # type: =head2
8453 #: ../src/guestfs-actions.pod:2676
8454 msgid "guestfs_lremovexattr"
8455 msgstr ""
8456
8457 # type: verbatim
8458 #: ../src/guestfs-actions.pod:2678
8459 #, no-wrap
8460 msgid ""
8461 " int guestfs_lremovexattr (guestfs_h *g,\n"
8462 "\t\tconst char *xattr,\n"
8463 "\t\tconst char *path);\n"
8464 "\n"
8465 msgstr ""
8466
8467 # type: textblock
8468 #: ../src/guestfs-actions.pod:2682
8469 msgid ""
8470 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8471 "link, then it removes an extended attribute of the link itself."
8472 msgstr ""
8473
8474 # type: =head2
8475 #: ../src/guestfs-actions.pod:2688
8476 msgid "guestfs_ls"
8477 msgstr ""
8478
8479 # type: verbatim
8480 #: ../src/guestfs-actions.pod:2690
8481 #, no-wrap
8482 msgid ""
8483 " char **guestfs_ls (guestfs_h *g,\n"
8484 "\t\tconst char *directory);\n"
8485 "\n"
8486 msgstr ""
8487
8488 # type: textblock
8489 #: ../src/guestfs-actions.pod:2693 ../fish/guestfish-actions.pod:2115
8490 msgid ""
8491 "List the files in C<directory> (relative to the root directory, there is no "
8492 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
8493 "shown."
8494 msgstr ""
8495
8496 # type: textblock
8497 #: ../src/guestfs-actions.pod:2697
8498 msgid ""
8499 "This command is mostly useful for interactive sessions.  Programs should "
8500 "probably use C<guestfs_readdir> instead."
8501 msgstr ""
8502
8503 # type: =head2
8504 #: ../src/guestfs-actions.pod:2704
8505 msgid "guestfs_lsetxattr"
8506 msgstr ""
8507
8508 # type: verbatim
8509 #: ../src/guestfs-actions.pod:2706
8510 #, no-wrap
8511 msgid ""
8512 " int guestfs_lsetxattr (guestfs_h *g,\n"
8513 "\t\tconst char *xattr,\n"
8514 "\t\tconst char *val,\n"
8515 "\t\tint vallen,\n"
8516 "\t\tconst char *path);\n"
8517 "\n"
8518 msgstr ""
8519
8520 # type: textblock
8521 #: ../src/guestfs-actions.pod:2712
8522 msgid ""
8523 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8524 "then it sets an extended attribute of the link itself."
8525 msgstr ""
8526
8527 # type: =head2
8528 #: ../src/guestfs-actions.pod:2718
8529 msgid "guestfs_lstat"
8530 msgstr ""
8531
8532 # type: verbatim
8533 #: ../src/guestfs-actions.pod:2720
8534 #, no-wrap
8535 msgid ""
8536 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8537 "\t\tconst char *path);\n"
8538 "\n"
8539 msgstr ""
8540
8541 # type: textblock
8542 #: ../src/guestfs-actions.pod:2723 ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:2134 ../fish/guestfish-actions.pod:3688
8543 msgid "Returns file information for the given C<path>."
8544 msgstr ""
8545
8546 # type: textblock
8547 #: ../src/guestfs-actions.pod:2725
8548 msgid ""
8549 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8550 "link, then the link is stat-ed, not the file it refers to."
8551 msgstr ""
8552
8553 # type: textblock
8554 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:2140
8555 msgid "This is the same as the C<lstat(2)> system call."
8556 msgstr ""
8557
8558 # type: textblock
8559 #: ../src/guestfs-actions.pod:2731 ../src/guestfs-actions.pod:4771
8560 msgid ""
8561 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8562 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8563 msgstr ""
8564
8565 # type: =head2
8566 #: ../src/guestfs-actions.pod:2735
8567 msgid "guestfs_lstatlist"
8568 msgstr ""
8569
8570 # type: verbatim
8571 #: ../src/guestfs-actions.pod:2737
8572 #, no-wrap
8573 msgid ""
8574 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8575 "\t\tconst char *path,\n"
8576 "\t\tchar *const *names);\n"
8577 "\n"
8578 msgstr ""
8579
8580 # type: textblock
8581 #: ../src/guestfs-actions.pod:2741
8582 msgid ""
8583 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8584 "files, where all files are in the directory C<path>.  C<names> is the list "
8585 "of files from this directory."
8586 msgstr ""
8587
8588 # type: textblock
8589 #: ../src/guestfs-actions.pod:2745 ../fish/guestfish-actions.pod:2150
8590 msgid ""
8591 "On return you get a list of stat structs, with a one-to-one correspondence "
8592 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8593 "then the C<ino> field of that structure is set to C<-1>."
8594 msgstr ""
8595
8596 # type: textblock
8597 #: ../src/guestfs-actions.pod:2750
8598 msgid ""
8599 "This call is intended for programs that want to efficiently list a directory "
8600 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8601 "for a similarly efficient call for getting extended attributes.  Very long "
8602 "directory listings might cause the protocol message size to be exceeded, "
8603 "causing this call to fail.  The caller must split up such requests into "
8604 "smaller groups of names."
8605 msgstr ""
8606
8607 # type: textblock
8608 #: ../src/guestfs-actions.pod:2758
8609 msgid ""
8610 "This function returns a C<struct guestfs_stat_list *> (see "
8611 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8612 "must call C<guestfs_free_stat_list> after use>."
8613 msgstr ""
8614
8615 # type: =head2
8616 #: ../src/guestfs-actions.pod:2763
8617 msgid "guestfs_luks_add_key"
8618 msgstr ""
8619
8620 # type: verbatim
8621 #: ../src/guestfs-actions.pod:2765
8622 #, no-wrap
8623 msgid ""
8624 " int guestfs_luks_add_key (guestfs_h *g,\n"
8625 "\t\tconst char *device,\n"
8626 "\t\tconst char *key,\n"
8627 "\t\tconst char *newkey,\n"
8628 "\t\tint keyslot);\n"
8629 "\n"
8630 msgstr ""
8631
8632 # type: textblock
8633 #: ../src/guestfs-actions.pod:2771 ../fish/guestfish-actions.pod:2167
8634 msgid ""
8635 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8636 "existing key, and is used to access the device.  C<newkey> is the new key to "
8637 "add.  C<keyslot> is the key slot that will be replaced."
8638 msgstr ""
8639
8640 # type: textblock
8641 #: ../src/guestfs-actions.pod:2776
8642 msgid ""
8643 "Note that if C<keyslot> already contains a key, then this command will "
8644 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8645 msgstr ""
8646
8647 # type: textblock
8648 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:2853 ../src/guestfs-actions.pod:2882 ../src/guestfs-actions.pod:2898
8649 msgid ""
8650 "This function takes a key or passphrase parameter which could contain "
8651 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8652 "information."
8653 msgstr ""
8654
8655 # type: =head2
8656 #: ../src/guestfs-actions.pod:2786
8657 msgid "guestfs_luks_close"
8658 msgstr ""
8659
8660 # type: verbatim
8661 #: ../src/guestfs-actions.pod:2788
8662 #, no-wrap
8663 msgid ""
8664 " int guestfs_luks_close (guestfs_h *g,\n"
8665 "\t\tconst char *device);\n"
8666 "\n"
8667 msgstr ""
8668
8669 # type: textblock
8670 #: ../src/guestfs-actions.pod:2791
8671 msgid ""
8672 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
8673 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
8674 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
8675 "underlying block device."
8676 msgstr ""
8677
8678 # type: =head2
8679 #: ../src/guestfs-actions.pod:2799
8680 msgid "guestfs_luks_format"
8681 msgstr ""
8682
8683 # type: verbatim
8684 #: ../src/guestfs-actions.pod:2801
8685 #, no-wrap
8686 msgid ""
8687 " int guestfs_luks_format (guestfs_h *g,\n"
8688 "\t\tconst char *device,\n"
8689 "\t\tconst char *key,\n"
8690 "\t\tint keyslot);\n"
8691 "\n"
8692 msgstr ""
8693
8694 # type: textblock
8695 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:2193
8696 msgid ""
8697 "This command erases existing data on C<device> and formats the device as a "
8698 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
8699 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
8700 msgstr ""
8701
8702 # type: textblock
8703 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2935 ../src/guestfs-actions.pod:3647 ../src/guestfs-actions.pod:4308 ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4672 ../src/guestfs-actions.pod:5637 ../fish/guestfish-actions.pod:2201 ../fish/guestfish-actions.pod:2214 ../fish/guestfish-actions.pod:2285 ../fish/guestfish-actions.pod:2800 ../fish/guestfish-actions.pod:3307 ../fish/guestfish-actions.pod:3587 ../fish/guestfish-actions.pod:3603 ../fish/guestfish-actions.pod:3618 ../fish/guestfish-actions.pod:4333
8704 msgid ""
8705 "B<This command is dangerous.  Without careful use you can easily destroy all "
8706 "your data>."
8707 msgstr ""
8708
8709 # type: =head2
8710 #: ../src/guestfs-actions.pod:2820
8711 msgid "guestfs_luks_format_cipher"
8712 msgstr ""
8713
8714 # type: verbatim
8715 #: ../src/guestfs-actions.pod:2822
8716 #, no-wrap
8717 msgid ""
8718 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
8719 "\t\tconst char *device,\n"
8720 "\t\tconst char *key,\n"
8721 "\t\tint keyslot,\n"
8722 "\t\tconst char *cipher);\n"
8723 "\n"
8724 msgstr ""
8725
8726 # type: textblock
8727 #: ../src/guestfs-actions.pod:2828
8728 msgid ""
8729 "This command is the same as C<guestfs_luks_format> but it also allows you to "
8730 "set the C<cipher> used."
8731 msgstr ""
8732
8733 # type: =head2
8734 #: ../src/guestfs-actions.pod:2840
8735 msgid "guestfs_luks_kill_slot"
8736 msgstr ""
8737
8738 # type: verbatim
8739 #: ../src/guestfs-actions.pod:2842
8740 #, no-wrap
8741 msgid ""
8742 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
8743 "\t\tconst char *device,\n"
8744 "\t\tconst char *key,\n"
8745 "\t\tint keyslot);\n"
8746 "\n"
8747 msgstr ""
8748
8749 # type: textblock
8750 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:2221
8751 msgid ""
8752 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
8753 "device C<device>.  C<key> must be one of the I<other> keys."
8754 msgstr ""
8755
8756 # type: =head2
8757 #: ../src/guestfs-actions.pod:2857
8758 msgid "guestfs_luks_open"
8759 msgstr ""
8760
8761 # type: verbatim
8762 #: ../src/guestfs-actions.pod:2859
8763 #, no-wrap
8764 msgid ""
8765 " int guestfs_luks_open (guestfs_h *g,\n"
8766 "\t\tconst char *device,\n"
8767 "\t\tconst char *key,\n"
8768 "\t\tconst char *mapname);\n"
8769 "\n"
8770 msgstr ""
8771
8772 # type: textblock
8773 #: ../src/guestfs-actions.pod:2864 ../fish/guestfish-actions.pod:2232
8774 msgid ""
8775 "This command opens a block device which has been encrypted according to the "
8776 "Linux Unified Key Setup (LUKS) standard."
8777 msgstr ""
8778
8779 # type: textblock
8780 #: ../src/guestfs-actions.pod:2867 ../fish/guestfish-actions.pod:2235
8781 msgid "C<device> is the encrypted block device or partition."
8782 msgstr ""
8783
8784 # type: textblock
8785 #: ../src/guestfs-actions.pod:2869 ../fish/guestfish-actions.pod:2237
8786 msgid ""
8787 "The caller must supply one of the keys associated with the LUKS block "
8788 "device, in the C<key> parameter."
8789 msgstr ""
8790
8791 # type: textblock
8792 #: ../src/guestfs-actions.pod:2872 ../fish/guestfish-actions.pod:2240
8793 msgid ""
8794 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
8795 "writes to this block device are decrypted from and encrypted to the "
8796 "underlying C<device> respectively."
8797 msgstr ""
8798
8799 # type: textblock
8800 #: ../src/guestfs-actions.pod:2876
8801 msgid ""
8802 "If this block device contains LVM volume groups, then calling "
8803 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
8804 "visible."
8805 msgstr ""
8806
8807 # type: =head2
8808 #: ../src/guestfs-actions.pod:2886
8809 msgid "guestfs_luks_open_ro"
8810 msgstr ""
8811
8812 # type: verbatim
8813 #: ../src/guestfs-actions.pod:2888
8814 #, no-wrap
8815 msgid ""
8816 " int guestfs_luks_open_ro (guestfs_h *g,\n"
8817 "\t\tconst char *device,\n"
8818 "\t\tconst char *key,\n"
8819 "\t\tconst char *mapname);\n"
8820 "\n"
8821 msgstr ""
8822
8823 # type: textblock
8824 #: ../src/guestfs-actions.pod:2893
8825 msgid ""
8826 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
8827 "created."
8828 msgstr ""
8829
8830 # type: =head2
8831 #: ../src/guestfs-actions.pod:2902
8832 msgid "guestfs_lvcreate"
8833 msgstr ""
8834
8835 # type: verbatim
8836 #: ../src/guestfs-actions.pod:2904
8837 #, no-wrap
8838 msgid ""
8839 " int guestfs_lvcreate (guestfs_h *g,\n"
8840 "\t\tconst char *logvol,\n"
8841 "\t\tconst char *volgroup,\n"
8842 "\t\tint mbytes);\n"
8843 "\n"
8844 msgstr ""
8845
8846 # type: textblock
8847 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2265
8848 msgid ""
8849 "This creates an LVM logical volume called C<logvol> on the volume group "
8850 "C<volgroup>, with C<size> megabytes."
8851 msgstr ""
8852
8853 # type: =head2
8854 #: ../src/guestfs-actions.pod:2914
8855 msgid "guestfs_lvm_clear_filter"
8856 msgstr ""
8857
8858 # type: verbatim
8859 #: ../src/guestfs-actions.pod:2916
8860 #, no-wrap
8861 msgid ""
8862 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
8863 "\n"
8864 msgstr ""
8865
8866 # type: textblock
8867 #: ../src/guestfs-actions.pod:2918
8868 msgid ""
8869 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
8870 "see every block device."
8871 msgstr ""
8872
8873 # type: textblock
8874 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2275 ../fish/guestfish-actions.pod:2306
8875 msgid "This command also clears the LVM cache and performs a volume group scan."
8876 msgstr ""
8877
8878 # type: =head2
8879 #: ../src/guestfs-actions.pod:2926
8880 msgid "guestfs_lvm_remove_all"
8881 msgstr ""
8882
8883 # type: verbatim
8884 #: ../src/guestfs-actions.pod:2928
8885 #, no-wrap
8886 msgid ""
8887 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
8888 "\n"
8889 msgstr ""
8890
8891 # type: textblock
8892 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2282
8893 msgid ""
8894 "This command removes all LVM logical volumes, volume groups and physical "
8895 "volumes."
8896 msgstr ""
8897
8898 # type: =head2
8899 #: ../src/guestfs-actions.pod:2938
8900 msgid "guestfs_lvm_set_filter"
8901 msgstr ""
8902
8903 # type: verbatim
8904 #: ../src/guestfs-actions.pod:2940
8905 #, no-wrap
8906 msgid ""
8907 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
8908 "\t\tchar *const *devices);\n"
8909 "\n"
8910 msgstr ""
8911
8912 # type: textblock
8913 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2292
8914 msgid ""
8915 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
8916 "block devices in the list C<devices>, and will ignore all other attached "
8917 "block devices."
8918 msgstr ""
8919
8920 # type: textblock
8921 #: ../src/guestfs-actions.pod:2947 ../fish/guestfish-actions.pod:2296
8922 msgid ""
8923 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
8924 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
8925 "there are two types of duplication possible: either cloned PVs/VGs which "
8926 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
8927 "same name.  In normal operation you cannot create this situation, but you "
8928 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
8929 "inside the LVM metadata."
8930 msgstr ""
8931
8932 # type: textblock
8933 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2309
8934 msgid "You can filter whole block devices or individual partitions."
8935 msgstr ""
8936
8937 # type: textblock
8938 #: ../src/guestfs-actions.pod:2962 ../fish/guestfish-actions.pod:2311
8939 msgid ""
8940 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
8941 "filesystem), even if you are not filtering out that VG."
8942 msgstr ""
8943
8944 # type: =head2
8945 #: ../src/guestfs-actions.pod:2968
8946 msgid "guestfs_lvremove"
8947 msgstr ""
8948
8949 # type: verbatim
8950 #: ../src/guestfs-actions.pod:2970
8951 #, no-wrap
8952 msgid ""
8953 " int guestfs_lvremove (guestfs_h *g,\n"
8954 "\t\tconst char *device);\n"
8955 "\n"
8956 msgstr ""
8957
8958 # type: textblock
8959 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2319
8960 msgid ""
8961 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
8962 "LV, such as C</dev/VG/LV>."
8963 msgstr ""
8964
8965 # type: textblock
8966 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2322
8967 msgid ""
8968 "You can also remove all LVs in a volume group by specifying the VG name, "
8969 "C</dev/VG>."
8970 msgstr ""
8971
8972 # type: =head2
8973 #: ../src/guestfs-actions.pod:2981
8974 msgid "guestfs_lvrename"
8975 msgstr ""
8976
8977 # type: verbatim
8978 #: ../src/guestfs-actions.pod:2983
8979 #, no-wrap
8980 msgid ""
8981 " int guestfs_lvrename (guestfs_h *g,\n"
8982 "\t\tconst char *logvol,\n"
8983 "\t\tconst char *newlogvol);\n"
8984 "\n"
8985 msgstr ""
8986
8987 # type: textblock
8988 #: ../src/guestfs-actions.pod:2987 ../fish/guestfish-actions.pod:2329
8989 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
8990 msgstr ""
8991
8992 # type: =head2
8993 #: ../src/guestfs-actions.pod:2991
8994 msgid "guestfs_lvresize"
8995 msgstr ""
8996
8997 # type: verbatim
8998 #: ../src/guestfs-actions.pod:2993
8999 #, no-wrap
9000 msgid ""
9001 " int guestfs_lvresize (guestfs_h *g,\n"
9002 "\t\tconst char *device,\n"
9003 "\t\tint mbytes);\n"
9004 "\n"
9005 msgstr ""
9006
9007 # type: textblock
9008 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2335
9009 msgid ""
9010 "This resizes (expands or shrinks) an existing LVM logical volume to "
9011 "C<mbytes>.  When reducing, data in the reduced part is lost."
9012 msgstr ""
9013
9014 # type: =head2
9015 #: ../src/guestfs-actions.pod:3003
9016 msgid "guestfs_lvresize_free"
9017 msgstr ""
9018
9019 # type: verbatim
9020 #: ../src/guestfs-actions.pod:3005
9021 #, no-wrap
9022 msgid ""
9023 " int guestfs_lvresize_free (guestfs_h *g,\n"
9024 "\t\tconst char *lv,\n"
9025 "\t\tint percent);\n"
9026 "\n"
9027 msgstr ""
9028
9029 # type: textblock
9030 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2343
9031 msgid ""
9032 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9033 "remaining free space in the volume group.  Commonly you would call this with "
9034 "pc = 100 which expands the logical volume as much as possible, using all "
9035 "remaining free space in the volume group."
9036 msgstr ""
9037
9038 # type: =head2
9039 #: ../src/guestfs-actions.pod:3017
9040 msgid "guestfs_lvs"
9041 msgstr ""
9042
9043 # type: verbatim
9044 #: ../src/guestfs-actions.pod:3019
9045 #, no-wrap
9046 msgid ""
9047 " char **guestfs_lvs (guestfs_h *g);\n"
9048 "\n"
9049 msgstr ""
9050
9051 # type: textblock
9052 #: ../src/guestfs-actions.pod:3021 ../fish/guestfish-actions.pod:2353
9053 msgid ""
9054 "List all the logical volumes detected.  This is the equivalent of the "
9055 "L<lvs(8)> command."
9056 msgstr ""
9057
9058 # type: textblock
9059 #: ../src/guestfs-actions.pod:3024 ../fish/guestfish-actions.pod:2356
9060 msgid ""
9061 "This returns a list of the logical volume device names "
9062 "(eg. C</dev/VolGroup00/LogVol00>)."
9063 msgstr ""
9064
9065 # type: textblock
9066 #: ../src/guestfs-actions.pod:3027
9067 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9068 msgstr ""
9069
9070 # type: =head2
9071 #: ../src/guestfs-actions.pod:3033
9072 msgid "guestfs_lvs_full"
9073 msgstr ""
9074
9075 # type: verbatim
9076 #: ../src/guestfs-actions.pod:3035
9077 #, no-wrap
9078 msgid ""
9079 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
9080 "\n"
9081 msgstr ""
9082
9083 # type: textblock
9084 #: ../src/guestfs-actions.pod:3037 ../fish/guestfish-actions.pod:2365
9085 msgid ""
9086 "List all the logical volumes detected.  This is the equivalent of the "
9087 "L<lvs(8)> command.  The \"full\" version includes all fields."
9088 msgstr ""
9089
9090 # type: textblock
9091 #: ../src/guestfs-actions.pod:3040
9092 msgid ""
9093 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
9094 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
9095 "must call C<guestfs_free_lvm_lv_list> after use>."
9096 msgstr ""
9097
9098 # type: =head2
9099 #: ../src/guestfs-actions.pod:3045
9100 msgid "guestfs_lvuuid"
9101 msgstr ""
9102
9103 # type: verbatim
9104 #: ../src/guestfs-actions.pod:3047
9105 #, no-wrap
9106 msgid ""
9107 " char *guestfs_lvuuid (guestfs_h *g,\n"
9108 "\t\tconst char *device);\n"
9109 "\n"
9110 msgstr ""
9111
9112 # type: textblock
9113 #: ../src/guestfs-actions.pod:3050 ../fish/guestfish-actions.pod:2372
9114 msgid "This command returns the UUID of the LVM LV C<device>."
9115 msgstr ""
9116
9117 # type: =head2
9118 #: ../src/guestfs-actions.pod:3055
9119 msgid "guestfs_lxattrlist"
9120 msgstr ""
9121
9122 # type: verbatim
9123 #: ../src/guestfs-actions.pod:3057
9124 #, no-wrap
9125 msgid ""
9126 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
9127 "\t\tconst char *path,\n"
9128 "\t\tchar *const *names);\n"
9129 "\n"
9130 msgstr ""
9131
9132 # type: textblock
9133 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2378
9134 msgid ""
9135 "This call allows you to get the extended attributes of multiple files, where "
9136 "all files are in the directory C<path>.  C<names> is the list of files from "
9137 "this directory."
9138 msgstr ""
9139
9140 # type: textblock
9141 #: ../src/guestfs-actions.pod:3065 ../fish/guestfish-actions.pod:2382
9142 msgid ""
9143 "On return you get a flat list of xattr structs which must be interpreted "
9144 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9145 "C<attrval> in this struct is zero-length to indicate there was an error "
9146 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9147 "number (the number of following attributes for this file, which could be "
9148 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9149 "attributes for the first named file.  This repeats for the second and "
9150 "subsequent files."
9151 msgstr ""
9152
9153 # type: textblock
9154 #: ../src/guestfs-actions.pod:3075
9155 msgid ""
9156 "This call is intended for programs that want to efficiently list a directory "
9157 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9158 "a similarly efficient call for getting standard stats.  Very long directory "
9159 "listings might cause the protocol message size to be exceeded, causing this "
9160 "call to fail.  The caller must split up such requests into smaller groups of "
9161 "names."
9162 msgstr ""
9163
9164 # type: =head2
9165 #: ../src/guestfs-actions.pod:3088
9166 msgid "guestfs_mkdir"
9167 msgstr ""
9168
9169 # type: verbatim
9170 #: ../src/guestfs-actions.pod:3090
9171 #, no-wrap
9172 msgid ""
9173 " int guestfs_mkdir (guestfs_h *g,\n"
9174 "\t\tconst char *path);\n"
9175 "\n"
9176 msgstr ""
9177
9178 # type: textblock
9179 #: ../src/guestfs-actions.pod:3093 ../fish/guestfish-actions.pod:2404
9180 msgid "Create a directory named C<path>."
9181 msgstr ""
9182
9183 # type: =head2
9184 #: ../src/guestfs-actions.pod:3097
9185 msgid "guestfs_mkdir_mode"
9186 msgstr ""
9187
9188 # type: verbatim
9189 #: ../src/guestfs-actions.pod:3099
9190 #, no-wrap
9191 msgid ""
9192 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9193 "\t\tconst char *path,\n"
9194 "\t\tint mode);\n"
9195 "\n"
9196 msgstr ""
9197
9198 # type: textblock
9199 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2410
9200 msgid ""
9201 "This command creates a directory, setting the initial permissions of the "
9202 "directory to C<mode>."
9203 msgstr ""
9204
9205 # type: textblock
9206 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2413
9207 msgid ""
9208 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9209 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9210 "other ways."
9211 msgstr ""
9212
9213 # type: textblock
9214 #: ../src/guestfs-actions.pod:3110
9215 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9216 msgstr ""
9217
9218 # type: =head2
9219 #: ../src/guestfs-actions.pod:3114
9220 msgid "guestfs_mkdir_p"
9221 msgstr ""
9222
9223 # type: verbatim
9224 #: ../src/guestfs-actions.pod:3116
9225 #, no-wrap
9226 msgid ""
9227 " int guestfs_mkdir_p (guestfs_h *g,\n"
9228 "\t\tconst char *path);\n"
9229 "\n"
9230 msgstr ""
9231
9232 # type: textblock
9233 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2423
9234 msgid ""
9235 "Create a directory named C<path>, creating any parent directories as "
9236 "necessary.  This is like the C<mkdir -p> shell command."
9237 msgstr ""
9238
9239 # type: =head2
9240 #: ../src/guestfs-actions.pod:3124
9241 msgid "guestfs_mkdtemp"
9242 msgstr ""
9243
9244 # type: verbatim
9245 #: ../src/guestfs-actions.pod:3126
9246 #, no-wrap
9247 msgid ""
9248 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9249 "\t\tconst char *template);\n"
9250 "\n"
9251 msgstr ""
9252
9253 # type: textblock
9254 #: ../src/guestfs-actions.pod:3129 ../fish/guestfish-actions.pod:2430
9255 msgid ""
9256 "This command creates a temporary directory.  The C<template> parameter "
9257 "should be a full pathname for the temporary directory name with the final "
9258 "six characters being \"XXXXXX\"."
9259 msgstr ""
9260
9261 # type: textblock
9262 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2435
9263 msgid ""
9264 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9265 "being suitable for Windows filesystems."
9266 msgstr ""
9267
9268 # type: textblock
9269 #: ../src/guestfs-actions.pod:3137 ../fish/guestfish-actions.pod:2438
9270 msgid "The name of the temporary directory that was created is returned."
9271 msgstr ""
9272
9273 # type: textblock
9274 #: ../src/guestfs-actions.pod:3140 ../fish/guestfish-actions.pod:2441
9275 msgid "The temporary directory is created with mode 0700 and is owned by root."
9276 msgstr ""
9277
9278 # type: textblock
9279 #: ../src/guestfs-actions.pod:3143 ../fish/guestfish-actions.pod:2444
9280 msgid ""
9281 "The caller is responsible for deleting the temporary directory and its "
9282 "contents after use."
9283 msgstr ""
9284
9285 # type: textblock
9286 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2447
9287 msgid "See also: L<mkdtemp(3)>"
9288 msgstr ""
9289
9290 # type: =head2
9291 #: ../src/guestfs-actions.pod:3151
9292 msgid "guestfs_mke2fs_J"
9293 msgstr ""
9294
9295 # type: verbatim
9296 #: ../src/guestfs-actions.pod:3153
9297 #, no-wrap
9298 msgid ""
9299 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9300 "\t\tconst char *fstype,\n"
9301 "\t\tint blocksize,\n"
9302 "\t\tconst char *device,\n"
9303 "\t\tconst char *journal);\n"
9304 "\n"
9305 msgstr ""
9306
9307 # type: textblock
9308 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2453
9309 msgid ""
9310 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9311 "C<journal>.  It is equivalent to the command:"
9312 msgstr ""
9313
9314 # type: verbatim
9315 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2457
9316 #, no-wrap
9317 msgid ""
9318 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9319 "\n"
9320 msgstr ""
9321
9322 # type: textblock
9323 #: ../src/guestfs-actions.pod:3165
9324 msgid "See also C<guestfs_mke2journal>."
9325 msgstr ""
9326
9327 # type: =head2
9328 #: ../src/guestfs-actions.pod:3169
9329 msgid "guestfs_mke2fs_JL"
9330 msgstr ""
9331
9332 # type: verbatim
9333 #: ../src/guestfs-actions.pod:3171
9334 #, no-wrap
9335 msgid ""
9336 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9337 "\t\tconst char *fstype,\n"
9338 "\t\tint blocksize,\n"
9339 "\t\tconst char *device,\n"
9340 "\t\tconst char *label);\n"
9341 "\n"
9342 msgstr ""
9343
9344 # type: textblock
9345 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2465
9346 msgid ""
9347 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9348 "the journal labeled C<label>."
9349 msgstr ""
9350
9351 # type: textblock
9352 #: ../src/guestfs-actions.pod:3180
9353 msgid "See also C<guestfs_mke2journal_L>."
9354 msgstr ""
9355
9356 # type: =head2
9357 #: ../src/guestfs-actions.pod:3184
9358 msgid "guestfs_mke2fs_JU"
9359 msgstr ""
9360
9361 # type: verbatim
9362 #: ../src/guestfs-actions.pod:3186
9363 #, no-wrap
9364 msgid ""
9365 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9366 "\t\tconst char *fstype,\n"
9367 "\t\tint blocksize,\n"
9368 "\t\tconst char *device,\n"
9369 "\t\tconst char *uuid);\n"
9370 "\n"
9371 msgstr ""
9372
9373 # type: textblock
9374 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2474
9375 msgid ""
9376 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9377 "the journal with UUID C<uuid>."
9378 msgstr ""
9379
9380 # type: textblock
9381 #: ../src/guestfs-actions.pod:3195
9382 msgid "See also C<guestfs_mke2journal_U>."
9383 msgstr ""
9384
9385 # type: =head2
9386 #: ../src/guestfs-actions.pod:3199
9387 msgid "guestfs_mke2journal"
9388 msgstr ""
9389
9390 # type: verbatim
9391 #: ../src/guestfs-actions.pod:3201
9392 #, no-wrap
9393 msgid ""
9394 " int guestfs_mke2journal (guestfs_h *g,\n"
9395 "\t\tint blocksize,\n"
9396 "\t\tconst char *device);\n"
9397 "\n"
9398 msgstr ""
9399
9400 # type: textblock
9401 #: ../src/guestfs-actions.pod:3205 ../fish/guestfish-actions.pod:2483
9402 msgid ""
9403 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9404 "command:"
9405 msgstr ""
9406
9407 # type: verbatim
9408 #: ../src/guestfs-actions.pod:3208 ../fish/guestfish-actions.pod:2486
9409 #, no-wrap
9410 msgid ""
9411 " mke2fs -O journal_dev -b blocksize device\n"
9412 "\n"
9413 msgstr ""
9414
9415 # type: =head2
9416 #: ../src/guestfs-actions.pod:3212
9417 msgid "guestfs_mke2journal_L"
9418 msgstr ""
9419
9420 # type: verbatim
9421 #: ../src/guestfs-actions.pod:3214
9422 #, no-wrap
9423 msgid ""
9424 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9425 "\t\tint blocksize,\n"
9426 "\t\tconst char *label,\n"
9427 "\t\tconst char *device);\n"
9428 "\n"
9429 msgstr ""
9430
9431 # type: textblock
9432 #: ../src/guestfs-actions.pod:3219 ../fish/guestfish-actions.pod:2492
9433 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9434 msgstr ""
9435
9436 # type: =head2
9437 #: ../src/guestfs-actions.pod:3223
9438 msgid "guestfs_mke2journal_U"
9439 msgstr ""
9440
9441 # type: verbatim
9442 #: ../src/guestfs-actions.pod:3225
9443 #, no-wrap
9444 msgid ""
9445 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9446 "\t\tint blocksize,\n"
9447 "\t\tconst char *uuid,\n"
9448 "\t\tconst char *device);\n"
9449 "\n"
9450 msgstr ""
9451
9452 # type: textblock
9453 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2498
9454 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9455 msgstr ""
9456
9457 # type: =head2
9458 #: ../src/guestfs-actions.pod:3234
9459 msgid "guestfs_mkfifo"
9460 msgstr ""
9461
9462 # type: verbatim
9463 #: ../src/guestfs-actions.pod:3236
9464 #, no-wrap
9465 msgid ""
9466 " int guestfs_mkfifo (guestfs_h *g,\n"
9467 "\t\tint mode,\n"
9468 "\t\tconst char *path);\n"
9469 "\n"
9470 msgstr ""
9471
9472 # type: textblock
9473 #: ../src/guestfs-actions.pod:3240
9474 msgid ""
9475 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9476 "is just a convenient wrapper around C<guestfs_mknod>."
9477 msgstr ""
9478
9479 # type: =head2
9480 #: ../src/guestfs-actions.pod:3248
9481 msgid "guestfs_mkfs"
9482 msgstr ""
9483
9484 # type: verbatim
9485 #: ../src/guestfs-actions.pod:3250
9486 #, no-wrap
9487 msgid ""
9488 " int guestfs_mkfs (guestfs_h *g,\n"
9489 "\t\tconst char *fstype,\n"
9490 "\t\tconst char *device);\n"
9491 "\n"
9492 msgstr ""
9493
9494 # type: textblock
9495 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2514
9496 msgid ""
9497 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9498 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9499 msgstr ""
9500
9501 # type: =head2
9502 #: ../src/guestfs-actions.pod:3260
9503 msgid "guestfs_mkfs_b"
9504 msgstr ""
9505
9506 # type: verbatim
9507 #: ../src/guestfs-actions.pod:3262
9508 #, no-wrap
9509 msgid ""
9510 " int guestfs_mkfs_b (guestfs_h *g,\n"
9511 "\t\tconst char *fstype,\n"
9512 "\t\tint blocksize,\n"
9513 "\t\tconst char *device);\n"
9514 "\n"
9515 msgstr ""
9516
9517 # type: textblock
9518 #: ../src/guestfs-actions.pod:3267
9519 msgid ""
9520 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9521 "block size of the resulting filesystem.  Supported block sizes depend on the "
9522 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9523 msgstr ""
9524
9525 # type: textblock
9526 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2527
9527 msgid ""
9528 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9529 "cluster size."
9530 msgstr ""
9531
9532 # type: =head2
9533 #: ../src/guestfs-actions.pod:3277
9534 msgid "guestfs_mkmountpoint"
9535 msgstr ""
9536
9537 # type: verbatim
9538 #: ../src/guestfs-actions.pod:3279
9539 #, no-wrap
9540 msgid ""
9541 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9542 "\t\tconst char *exemptpath);\n"
9543 "\n"
9544 msgstr ""
9545
9546 # type: textblock
9547 #: ../src/guestfs-actions.pod:3282
9548 msgid ""
9549 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9550 "that can be used to create extra mountpoints before mounting the first "
9551 "filesystem."
9552 msgstr ""
9553
9554 # type: textblock
9555 #: ../src/guestfs-actions.pod:3286 ../fish/guestfish-actions.pod:2538
9556 msgid ""
9557 "These calls are I<only> necessary in some very limited circumstances, mainly "
9558 "the case where you want to mount a mix of unrelated and/or read-only "
9559 "filesystems together."
9560 msgstr ""
9561
9562 # type: textblock
9563 #: ../src/guestfs-actions.pod:3290 ../fish/guestfish-actions.pod:2542
9564 msgid ""
9565 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9566 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9567 "inside that.  You can unpack this as follows in guestfish:"
9568 msgstr ""
9569
9570 # type: verbatim
9571 #: ../src/guestfs-actions.pod:3295 ../fish/guestfish-actions.pod:2547
9572 #, no-wrap
9573 msgid ""
9574 " add-ro Fedora-11-i686-Live.iso\n"
9575 " run\n"
9576 " mkmountpoint /cd\n"
9577 " mkmountpoint /squash\n"
9578 " mkmountpoint /ext3\n"
9579 " mount /dev/sda /cd\n"
9580 " mount-loop /cd/LiveOS/squashfs.img /squash\n"
9581 " mount-loop /squash/LiveOS/ext3fs.img /ext3\n"
9582 "\n"
9583 msgstr ""
9584
9585 # type: textblock
9586 #: ../src/guestfs-actions.pod:3304 ../fish/guestfish-actions.pod:2556
9587 msgid "The inner filesystem is now unpacked under the /ext3 mountpoint."
9588 msgstr ""
9589
9590 # type: =head2
9591 #: ../src/guestfs-actions.pod:3308
9592 msgid "guestfs_mknod"
9593 msgstr ""
9594
9595 # type: verbatim
9596 #: ../src/guestfs-actions.pod:3310
9597 #, no-wrap
9598 msgid ""
9599 " int guestfs_mknod (guestfs_h *g,\n"
9600 "\t\tint mode,\n"
9601 "\t\tint devmajor,\n"
9602 "\t\tint devminor,\n"
9603 "\t\tconst char *path);\n"
9604 "\n"
9605 msgstr ""
9606
9607 # type: textblock
9608 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2562
9609 msgid ""
9610 "This call creates block or character special devices, or named pipes "
9611 "(FIFOs)."
9612 msgstr ""
9613
9614 # type: textblock
9615 #: ../src/guestfs-actions.pod:3319 ../fish/guestfish-actions.pod:2565
9616 msgid ""
9617 "The C<mode> parameter should be the mode, using the standard constants.  "
9618 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
9619 "used when creating block and character special devices."
9620 msgstr ""
9621
9622 # type: textblock
9623 #: ../src/guestfs-actions.pod:3324
9624 msgid ""
9625 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
9626 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
9627 "regular file).  These constants are available in the standard Linux header "
9628 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
9629 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
9630 "the appropriate constant for you."
9631 msgstr ""
9632
9633 # type: =head2
9634 #: ../src/guestfs-actions.pod:3336
9635 msgid "guestfs_mknod_b"
9636 msgstr ""
9637
9638 # type: verbatim
9639 #: ../src/guestfs-actions.pod:3338
9640 #, no-wrap
9641 msgid ""
9642 " int guestfs_mknod_b (guestfs_h *g,\n"
9643 "\t\tint mode,\n"
9644 "\t\tint devmajor,\n"
9645 "\t\tint devminor,\n"
9646 "\t\tconst char *path);\n"
9647 "\n"
9648 msgstr ""
9649
9650 # type: textblock
9651 #: ../src/guestfs-actions.pod:3344
9652 msgid ""
9653 "This call creates a block device node called C<path> with mode C<mode> and "
9654 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9655 "wrapper around C<guestfs_mknod>."
9656 msgstr ""
9657
9658 # type: =head2
9659 #: ../src/guestfs-actions.pod:3352
9660 msgid "guestfs_mknod_c"
9661 msgstr ""
9662
9663 # type: verbatim
9664 #: ../src/guestfs-actions.pod:3354
9665 #, no-wrap
9666 msgid ""
9667 " int guestfs_mknod_c (guestfs_h *g,\n"
9668 "\t\tint mode,\n"
9669 "\t\tint devmajor,\n"
9670 "\t\tint devminor,\n"
9671 "\t\tconst char *path);\n"
9672 "\n"
9673 msgstr ""
9674
9675 # type: textblock
9676 #: ../src/guestfs-actions.pod:3360
9677 msgid ""
9678 "This call creates a char device node called C<path> with mode C<mode> and "
9679 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9680 "wrapper around C<guestfs_mknod>."
9681 msgstr ""
9682
9683 # type: =head2
9684 #: ../src/guestfs-actions.pod:3368
9685 msgid "guestfs_mkswap"
9686 msgstr ""
9687
9688 # type: verbatim
9689 #: ../src/guestfs-actions.pod:3370
9690 #, no-wrap
9691 msgid ""
9692 " int guestfs_mkswap (guestfs_h *g,\n"
9693 "\t\tconst char *device);\n"
9694 "\n"
9695 msgstr ""
9696
9697 # type: textblock
9698 #: ../src/guestfs-actions.pod:3373 ../fish/guestfish-actions.pod:2604
9699 msgid "Create a swap partition on C<device>."
9700 msgstr ""
9701
9702 # type: =head2
9703 #: ../src/guestfs-actions.pod:3377
9704 msgid "guestfs_mkswap_L"
9705 msgstr ""
9706
9707 # type: verbatim
9708 #: ../src/guestfs-actions.pod:3379
9709 #, no-wrap
9710 msgid ""
9711 " int guestfs_mkswap_L (guestfs_h *g,\n"
9712 "\t\tconst char *label,\n"
9713 "\t\tconst char *device);\n"
9714 "\n"
9715 msgstr ""
9716
9717 # type: textblock
9718 #: ../src/guestfs-actions.pod:3383 ../fish/guestfish-actions.pod:2610
9719 msgid "Create a swap partition on C<device> with label C<label>."
9720 msgstr ""
9721
9722 # type: textblock
9723 #: ../src/guestfs-actions.pod:3385 ../fish/guestfish-actions.pod:2612
9724 msgid ""
9725 "Note that you cannot attach a swap label to a block device "
9726 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
9727 "the kernel or swap tools."
9728 msgstr ""
9729
9730 # type: =head2
9731 #: ../src/guestfs-actions.pod:3391
9732 msgid "guestfs_mkswap_U"
9733 msgstr ""
9734
9735 # type: verbatim
9736 #: ../src/guestfs-actions.pod:3393
9737 #, no-wrap
9738 msgid ""
9739 " int guestfs_mkswap_U (guestfs_h *g,\n"
9740 "\t\tconst char *uuid,\n"
9741 "\t\tconst char *device);\n"
9742 "\n"
9743 msgstr ""
9744
9745 # type: textblock
9746 #: ../src/guestfs-actions.pod:3397 ../fish/guestfish-actions.pod:2620
9747 msgid "Create a swap partition on C<device> with UUID C<uuid>."
9748 msgstr ""
9749
9750 # type: =head2
9751 #: ../src/guestfs-actions.pod:3401
9752 msgid "guestfs_mkswap_file"
9753 msgstr ""
9754
9755 # type: verbatim
9756 #: ../src/guestfs-actions.pod:3403
9757 #, no-wrap
9758 msgid ""
9759 " int guestfs_mkswap_file (guestfs_h *g,\n"
9760 "\t\tconst char *path);\n"
9761 "\n"
9762 msgstr ""
9763
9764 # type: textblock
9765 #: ../src/guestfs-actions.pod:3406 ../fish/guestfish-actions.pod:2626
9766 msgid "Create a swap file."
9767 msgstr ""
9768
9769 # type: textblock
9770 #: ../src/guestfs-actions.pod:3408
9771 msgid ""
9772 "This command just writes a swap file signature to an existing file.  To "
9773 "create the file itself, use something like C<guestfs_fallocate>."
9774 msgstr ""
9775
9776 # type: =head2
9777 #: ../src/guestfs-actions.pod:3413
9778 msgid "guestfs_modprobe"
9779 msgstr ""
9780
9781 # type: verbatim
9782 #: ../src/guestfs-actions.pod:3415
9783 #, no-wrap
9784 msgid ""
9785 " int guestfs_modprobe (guestfs_h *g,\n"
9786 "\t\tconst char *modulename);\n"
9787 "\n"
9788 msgstr ""
9789
9790 # type: textblock
9791 #: ../src/guestfs-actions.pod:3418 ../fish/guestfish-actions.pod:2635
9792 msgid "This loads a kernel module in the appliance."
9793 msgstr ""
9794
9795 # type: textblock
9796 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2637
9797 msgid ""
9798 "The kernel module must have been whitelisted when libguestfs was built (see "
9799 "C<appliance/kmod.whitelist.in> in the source)."
9800 msgstr ""
9801
9802 # type: =head2
9803 #: ../src/guestfs-actions.pod:3425
9804 msgid "guestfs_mount"
9805 msgstr ""
9806
9807 # type: verbatim
9808 #: ../src/guestfs-actions.pod:3427
9809 #, no-wrap
9810 msgid ""
9811 " int guestfs_mount (guestfs_h *g,\n"
9812 "\t\tconst char *device,\n"
9813 "\t\tconst char *mountpoint);\n"
9814 "\n"
9815 msgstr ""
9816
9817 # type: textblock
9818 #: ../src/guestfs-actions.pod:3431 ../fish/guestfish-actions.pod:2644
9819 msgid ""
9820 "Mount a guest disk at a position in the filesystem.  Block devices are named "
9821 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
9822 "those block devices contain partitions, they will have the usual names "
9823 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
9824 msgstr ""
9825
9826 # type: textblock
9827 #: ../src/guestfs-actions.pod:3437 ../fish/guestfish-actions.pod:2650
9828 msgid ""
9829 "The rules are the same as for L<mount(2)>: A filesystem must first be "
9830 "mounted on C</> before others can be mounted.  Other filesystems can only be "
9831 "mounted on directories which already exist."
9832 msgstr ""
9833
9834 # type: textblock
9835 #: ../src/guestfs-actions.pod:3442 ../fish/guestfish-actions.pod:2655
9836 msgid ""
9837 "The mounted filesystem is writable, if we have sufficient permissions on the "
9838 "underlying device."
9839 msgstr ""
9840
9841 # type: textblock
9842 #: ../src/guestfs-actions.pod:3445
9843 msgid ""
9844 "B<Important note:> When you use this call, the filesystem options C<sync> "
9845 "and C<noatime> are set implicitly.  This was originally done because we "
9846 "thought it would improve reliability, but it turns out that I<-o sync> has a "
9847 "very large negative performance impact and negligible effect on "
9848 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
9849 "in any code that needs performance, and instead use C<guestfs_mount_options> "
9850 "(use an empty string for the first parameter if you don't want any options)."
9851 msgstr ""
9852
9853 # type: =head2
9854 #: ../src/guestfs-actions.pod:3457
9855 msgid "guestfs_mount_loop"
9856 msgstr ""
9857
9858 # type: verbatim
9859 #: ../src/guestfs-actions.pod:3459
9860 #, no-wrap
9861 msgid ""
9862 " int guestfs_mount_loop (guestfs_h *g,\n"
9863 "\t\tconst char *file,\n"
9864 "\t\tconst char *mountpoint);\n"
9865 "\n"
9866 msgstr ""
9867
9868 # type: textblock
9869 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2672
9870 msgid ""
9871 "This command lets you mount C<file> (a filesystem image in a file) on a "
9872 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
9873 "mountpoint>."
9874 msgstr ""
9875
9876 # type: =head2
9877 #: ../src/guestfs-actions.pod:3469
9878 msgid "guestfs_mount_options"
9879 msgstr ""
9880
9881 # type: verbatim
9882 #: ../src/guestfs-actions.pod:3471
9883 #, no-wrap
9884 msgid ""
9885 " int guestfs_mount_options (guestfs_h *g,\n"
9886 "\t\tconst char *options,\n"
9887 "\t\tconst char *device,\n"
9888 "\t\tconst char *mountpoint);\n"
9889 "\n"
9890 msgstr ""
9891
9892 # type: textblock
9893 #: ../src/guestfs-actions.pod:3476
9894 msgid ""
9895 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9896 "the mount options as for the L<mount(8)> I<-o> flag."
9897 msgstr ""
9898
9899 # type: textblock
9900 #: ../src/guestfs-actions.pod:3480 ../fish/guestfish-actions.pod:2684
9901 msgid ""
9902 "If the C<options> parameter is an empty string, then no options are passed "
9903 "(all options default to whatever the filesystem uses)."
9904 msgstr ""
9905
9906 # type: =head2
9907 #: ../src/guestfs-actions.pod:3486
9908 msgid "guestfs_mount_ro"
9909 msgstr ""
9910
9911 # type: verbatim
9912 #: ../src/guestfs-actions.pod:3488
9913 #, no-wrap
9914 msgid ""
9915 " int guestfs_mount_ro (guestfs_h *g,\n"
9916 "\t\tconst char *device,\n"
9917 "\t\tconst char *mountpoint);\n"
9918 "\n"
9919 msgstr ""
9920
9921 # type: textblock
9922 #: ../src/guestfs-actions.pod:3492
9923 msgid ""
9924 "This is the same as the C<guestfs_mount> command, but it mounts the "
9925 "filesystem with the read-only (I<-o ro>) flag."
9926 msgstr ""
9927
9928 # type: =head2
9929 #: ../src/guestfs-actions.pod:3497
9930 msgid "guestfs_mount_vfs"
9931 msgstr ""
9932
9933 # type: verbatim
9934 #: ../src/guestfs-actions.pod:3499
9935 #, no-wrap
9936 msgid ""
9937 " int guestfs_mount_vfs (guestfs_h *g,\n"
9938 "\t\tconst char *options,\n"
9939 "\t\tconst char *vfstype,\n"
9940 "\t\tconst char *device,\n"
9941 "\t\tconst char *mountpoint);\n"
9942 "\n"
9943 msgstr ""
9944
9945 # type: textblock
9946 #: ../src/guestfs-actions.pod:3505
9947 msgid ""
9948 "This is the same as the C<guestfs_mount> command, but it allows you to set "
9949 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
9950 "I<-t> flags."
9951 msgstr ""
9952
9953 # type: =head2
9954 #: ../src/guestfs-actions.pod:3511
9955 msgid "guestfs_mountpoints"
9956 msgstr ""
9957
9958 # type: verbatim
9959 #: ../src/guestfs-actions.pod:3513
9960 #, no-wrap
9961 msgid ""
9962 " char **guestfs_mountpoints (guestfs_h *g);\n"
9963 "\n"
9964 msgstr ""
9965
9966 # type: textblock
9967 #: ../src/guestfs-actions.pod:3515
9968 msgid ""
9969 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
9970 "devices.  This one returns a hash table (map) of device name to directory "
9971 "where the device is mounted."
9972 msgstr ""
9973
9974 # type: =head2
9975 #: ../src/guestfs-actions.pod:3525
9976 msgid "guestfs_mounts"
9977 msgstr ""
9978
9979 # type: verbatim
9980 #: ../src/guestfs-actions.pod:3527
9981 #, no-wrap
9982 msgid ""
9983 " char **guestfs_mounts (guestfs_h *g);\n"
9984 "\n"
9985 msgstr ""
9986
9987 # type: textblock
9988 #: ../src/guestfs-actions.pod:3529 ../fish/guestfish-actions.pod:2715
9989 msgid ""
9990 "This returns the list of currently mounted filesystems.  It returns the list "
9991 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
9992 msgstr ""
9993
9994 # type: textblock
9995 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2718
9996 msgid "Some internal mounts are not shown."
9997 msgstr ""
9998
9999 # type: textblock
10000 #: ../src/guestfs-actions.pod:3534
10001 msgid "See also: C<guestfs_mountpoints>"
10002 msgstr ""
10003
10004 # type: =head2
10005 #: ../src/guestfs-actions.pod:3540
10006 msgid "guestfs_mv"
10007 msgstr ""
10008
10009 # type: verbatim
10010 #: ../src/guestfs-actions.pod:3542
10011 #, no-wrap
10012 msgid ""
10013 " int guestfs_mv (guestfs_h *g,\n"
10014 "\t\tconst char *src,\n"
10015 "\t\tconst char *dest);\n"
10016 "\n"
10017 msgstr ""
10018
10019 # type: textblock
10020 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2726
10021 msgid ""
10022 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10023 "destination filename or destination directory."
10024 msgstr ""
10025
10026 # type: =head2
10027 #: ../src/guestfs-actions.pod:3551
10028 msgid "guestfs_ntfs_3g_probe"
10029 msgstr ""
10030
10031 # type: verbatim
10032 #: ../src/guestfs-actions.pod:3553
10033 #, no-wrap
10034 msgid ""
10035 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10036 "\t\tint rw,\n"
10037 "\t\tconst char *device);\n"
10038 "\n"
10039 msgstr ""
10040
10041 # type: textblock
10042 #: ../src/guestfs-actions.pod:3557 ../fish/guestfish-actions.pod:2733
10043 msgid ""
10044 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10045 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10046 "read-write, and some cannot be mounted at all)."
10047 msgstr ""
10048
10049 # type: textblock
10050 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2737
10051 msgid ""
10052 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10053 "can be mounted read-write.  Set it to false if you want to test if the "
10054 "volume can be mounted read-only."
10055 msgstr ""
10056
10057 # type: textblock
10058 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2741
10059 msgid ""
10060 "The return value is an integer which C<0> if the operation would succeed, or "
10061 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10062 msgstr ""
10063
10064 # type: =head2
10065 #: ../src/guestfs-actions.pod:3571
10066 msgid "guestfs_ntfsresize"
10067 msgstr ""
10068
10069 # type: verbatim
10070 #: ../src/guestfs-actions.pod:3573
10071 #, no-wrap
10072 msgid ""
10073 " int guestfs_ntfsresize (guestfs_h *g,\n"
10074 "\t\tconst char *device);\n"
10075 "\n"
10076 msgstr ""
10077
10078 # type: textblock
10079 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2749
10080 msgid ""
10081 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10082 "size of the underlying device.  See also L<ntfsresize(8)>."
10083 msgstr ""
10084
10085 # type: =head2
10086 #: ../src/guestfs-actions.pod:3582
10087 msgid "guestfs_ntfsresize_size"
10088 msgstr ""
10089
10090 # type: verbatim
10091 #: ../src/guestfs-actions.pod:3584
10092 #, no-wrap
10093 msgid ""
10094 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
10095 "\t\tconst char *device,\n"
10096 "\t\tint64_t size);\n"
10097 "\n"
10098 msgstr ""
10099
10100 # type: textblock
10101 #: ../src/guestfs-actions.pod:3588
10102 msgid ""
10103 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10104 "to specify the new size (in bytes) explicitly."
10105 msgstr ""
10106
10107 # type: =head2
10108 #: ../src/guestfs-actions.pod:3593
10109 msgid "guestfs_part_add"
10110 msgstr ""
10111
10112 # type: verbatim
10113 #: ../src/guestfs-actions.pod:3595
10114 #, no-wrap
10115 msgid ""
10116 " int guestfs_part_add (guestfs_h *g,\n"
10117 "\t\tconst char *device,\n"
10118 "\t\tconst char *prlogex,\n"
10119 "\t\tint64_t startsect,\n"
10120 "\t\tint64_t endsect);\n"
10121 "\n"
10122 msgstr ""
10123
10124 # type: textblock
10125 #: ../src/guestfs-actions.pod:3601
10126 msgid ""
10127 "This command adds a partition to C<device>.  If there is no partition table "
10128 "on the device, call C<guestfs_part_init> first."
10129 msgstr ""
10130
10131 # type: textblock
10132 #: ../src/guestfs-actions.pod:3604 ../fish/guestfish-actions.pod:2767
10133 msgid ""
10134 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10135 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10136 "C<logical>) and C<e> (or C<extended>) partition types."
10137 msgstr ""
10138
10139 # type: textblock
10140 #: ../src/guestfs-actions.pod:3609 ../fish/guestfish-actions.pod:2772
10141 msgid ""
10142 "C<startsect> and C<endsect> are the start and end of the partition in "
10143 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10144 "from the end of the disk (C<-1> is the last sector)."
10145 msgstr ""
10146
10147 # type: textblock
10148 #: ../src/guestfs-actions.pod:3613
10149 msgid ""
10150 "Creating a partition which covers the whole disk is not so easy.  Use "
10151 "C<guestfs_part_disk> to do that."
10152 msgstr ""
10153
10154 # type: =head2
10155 #: ../src/guestfs-actions.pod:3618
10156 msgid "guestfs_part_del"
10157 msgstr ""
10158
10159 # type: verbatim
10160 #: ../src/guestfs-actions.pod:3620
10161 #, no-wrap
10162 msgid ""
10163 " int guestfs_part_del (guestfs_h *g,\n"
10164 "\t\tconst char *device,\n"
10165 "\t\tint partnum);\n"
10166 "\n"
10167 msgstr ""
10168
10169 # type: textblock
10170 #: ../src/guestfs-actions.pod:3624 ../fish/guestfish-actions.pod:2783
10171 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10172 msgstr ""
10173
10174 # type: textblock
10175 #: ../src/guestfs-actions.pod:3626 ../fish/guestfish-actions.pod:2785
10176 msgid ""
10177 "Note that in the case of MBR partitioning, deleting an extended partition "
10178 "also deletes any logical partitions it contains."
10179 msgstr ""
10180
10181 # type: =head2
10182 #: ../src/guestfs-actions.pod:3632
10183 msgid "guestfs_part_disk"
10184 msgstr ""
10185
10186 # type: verbatim
10187 #: ../src/guestfs-actions.pod:3634
10188 #, no-wrap
10189 msgid ""
10190 " int guestfs_part_disk (guestfs_h *g,\n"
10191 "\t\tconst char *device,\n"
10192 "\t\tconst char *parttype);\n"
10193 "\n"
10194 msgstr ""
10195
10196 # type: textblock
10197 #: ../src/guestfs-actions.pod:3638
10198 msgid ""
10199 "This command is simply a combination of C<guestfs_part_init> followed by "
10200 "C<guestfs_part_add> to create a single primary partition covering the whole "
10201 "disk."
10202 msgstr ""
10203
10204 # type: textblock
10205 #: ../src/guestfs-actions.pod:3642
10206 msgid ""
10207 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10208 "possible values are described in C<guestfs_part_init>."
10209 msgstr ""
10210
10211 # type: =head2
10212 #: ../src/guestfs-actions.pod:3650
10213 msgid "guestfs_part_get_bootable"
10214 msgstr ""
10215
10216 # type: verbatim
10217 #: ../src/guestfs-actions.pod:3652
10218 #, no-wrap
10219 msgid ""
10220 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10221 "\t\tconst char *device,\n"
10222 "\t\tint partnum);\n"
10223 "\n"
10224 msgstr ""
10225
10226 # type: textblock
10227 #: ../src/guestfs-actions.pod:3656 ../fish/guestfish-actions.pod:2807
10228 msgid ""
10229 "This command returns true if the partition C<partnum> on C<device> has the "
10230 "bootable flag set."
10231 msgstr ""
10232
10233 # type: textblock
10234 #: ../src/guestfs-actions.pod:3659
10235 msgid "See also C<guestfs_part_set_bootable>."
10236 msgstr ""
10237
10238 # type: =head2
10239 #: ../src/guestfs-actions.pod:3663
10240 msgid "guestfs_part_get_mbr_id"
10241 msgstr ""
10242
10243 # type: verbatim
10244 #: ../src/guestfs-actions.pod:3665
10245 #, no-wrap
10246 msgid ""
10247 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10248 "\t\tconst char *device,\n"
10249 "\t\tint partnum);\n"
10250 "\n"
10251 msgstr ""
10252
10253 # type: textblock
10254 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2816
10255 msgid ""
10256 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10257 "partition C<partnum>."
10258 msgstr ""
10259
10260 # type: textblock
10261 #: ../src/guestfs-actions.pod:3672 ../src/guestfs-actions.pod:3834
10262 msgid ""
10263 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10264 "undefined results for other partition table types (see "
10265 "C<guestfs_part_get_parttype>)."
10266 msgstr ""
10267
10268 # type: =head2
10269 #: ../src/guestfs-actions.pod:3678
10270 msgid "guestfs_part_get_parttype"
10271 msgstr ""
10272
10273 # type: verbatim
10274 #: ../src/guestfs-actions.pod:3680
10275 #, no-wrap
10276 msgid ""
10277 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10278 "\t\tconst char *device);\n"
10279 "\n"
10280 msgstr ""
10281
10282 # type: textblock
10283 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2827
10284 msgid ""
10285 "This command examines the partition table on C<device> and returns the "
10286 "partition table type (format) being used."
10287 msgstr ""
10288
10289 # type: textblock
10290 #: ../src/guestfs-actions.pod:3686
10291 msgid ""
10292 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10293 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10294 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10295 msgstr ""
10296
10297 # type: =head2
10298 #: ../src/guestfs-actions.pod:3694
10299 msgid "guestfs_part_init"
10300 msgstr ""
10301
10302 # type: verbatim
10303 #: ../src/guestfs-actions.pod:3696
10304 #, no-wrap
10305 msgid ""
10306 " int guestfs_part_init (guestfs_h *g,\n"
10307 "\t\tconst char *device,\n"
10308 "\t\tconst char *parttype);\n"
10309 "\n"
10310 msgstr ""
10311
10312 # type: textblock
10313 #: ../src/guestfs-actions.pod:3700 ../fish/guestfish-actions.pod:2839
10314 msgid ""
10315 "This creates an empty partition table on C<device> of one of the partition "
10316 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10317 "(for large disks)."
10318 msgstr ""
10319
10320 # type: textblock
10321 #: ../src/guestfs-actions.pod:3704
10322 msgid ""
10323 "Initially there are no partitions.  Following this, you should call "
10324 "C<guestfs_part_add> for each partition required."
10325 msgstr ""
10326
10327 # type: textblock
10328 #: ../src/guestfs-actions.pod:3707 ../fish/guestfish-actions.pod:2846
10329 msgid "Possible values for C<parttype> are:"
10330 msgstr ""
10331
10332 # type: =item
10333 #: ../src/guestfs-actions.pod:3711 ../fish/guestfish-actions.pod:2850
10334 msgid "B<efi> | B<gpt>"
10335 msgstr ""
10336
10337 # type: textblock
10338 #: ../src/guestfs-actions.pod:3713 ../fish/guestfish-actions.pod:2852
10339 msgid "Intel EFI / GPT partition table."
10340 msgstr ""
10341
10342 # type: textblock
10343 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2854
10344 msgid ""
10345 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10346 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10347 "the C<mbr> format."
10348 msgstr ""
10349
10350 # type: =item
10351 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2858
10352 msgid "B<mbr> | B<msdos>"
10353 msgstr ""
10354
10355 # type: textblock
10356 #: ../src/guestfs-actions.pod:3721 ../fish/guestfish-actions.pod:2860
10357 msgid ""
10358 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10359 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10360 "TB.  For large disks we recommend using C<gpt>."
10361 msgstr ""
10362
10363 # type: textblock
10364 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2867
10365 msgid "Other partition table types that may work but are not supported include:"
10366 msgstr ""
10367
10368 # type: =item
10369 #: ../src/guestfs-actions.pod:3733 ../fish/guestfish-actions.pod:2872
10370 msgid "B<aix>"
10371 msgstr ""
10372
10373 # type: textblock
10374 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2874
10375 msgid "AIX disk labels."
10376 msgstr ""
10377
10378 # type: =item
10379 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2876
10380 msgid "B<amiga> | B<rdb>"
10381 msgstr ""
10382
10383 # type: textblock
10384 #: ../src/guestfs-actions.pod:3739 ../fish/guestfish-actions.pod:2878
10385 msgid "Amiga \"Rigid Disk Block\" format."
10386 msgstr ""
10387
10388 # type: =item
10389 #: ../src/guestfs-actions.pod:3741 ../fish/guestfish-actions.pod:2880
10390 msgid "B<bsd>"
10391 msgstr ""
10392
10393 # type: textblock
10394 #: ../src/guestfs-actions.pod:3743 ../fish/guestfish-actions.pod:2882
10395 msgid "BSD disk labels."
10396 msgstr ""
10397
10398 # type: =item
10399 #: ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2884
10400 msgid "B<dasd>"
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3747 ../fish/guestfish-actions.pod:2886
10405 msgid "DASD, used on IBM mainframes."
10406 msgstr ""
10407
10408 # type: =item
10409 #: ../src/guestfs-actions.pod:3749 ../fish/guestfish-actions.pod:2888
10410 msgid "B<dvh>"
10411 msgstr ""
10412
10413 # type: textblock
10414 #: ../src/guestfs-actions.pod:3751 ../fish/guestfish-actions.pod:2890
10415 msgid "MIPS/SGI volumes."
10416 msgstr ""
10417
10418 # type: =item
10419 #: ../src/guestfs-actions.pod:3753 ../fish/guestfish-actions.pod:2892
10420 msgid "B<mac>"
10421 msgstr ""
10422
10423 # type: textblock
10424 #: ../src/guestfs-actions.pod:3755 ../fish/guestfish-actions.pod:2894
10425 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10426 msgstr ""
10427
10428 # type: =item
10429 #: ../src/guestfs-actions.pod:3757 ../fish/guestfish-actions.pod:2896
10430 msgid "B<pc98>"
10431 msgstr ""
10432
10433 # type: textblock
10434 #: ../src/guestfs-actions.pod:3759 ../fish/guestfish-actions.pod:2898
10435 msgid "NEC PC-98 format, common in Japan apparently."
10436 msgstr ""
10437
10438 # type: =item
10439 #: ../src/guestfs-actions.pod:3761 ../fish/guestfish-actions.pod:2900
10440 msgid "B<sun>"
10441 msgstr ""
10442
10443 # type: textblock
10444 #: ../src/guestfs-actions.pod:3763 ../fish/guestfish-actions.pod:2902
10445 msgid "Sun disk labels."
10446 msgstr ""
10447
10448 # type: =head2
10449 #: ../src/guestfs-actions.pod:3769
10450 msgid "guestfs_part_list"
10451 msgstr ""
10452
10453 # type: verbatim
10454 #: ../src/guestfs-actions.pod:3771
10455 #, no-wrap
10456 msgid ""
10457 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10458 "\t\tconst char *device);\n"
10459 "\n"
10460 msgstr ""
10461
10462 # type: textblock
10463 #: ../src/guestfs-actions.pod:3774 ../fish/guestfish-actions.pod:2910
10464 msgid ""
10465 "This command parses the partition table on C<device> and returns the list of "
10466 "partitions found."
10467 msgstr ""
10468
10469 # type: textblock
10470 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2913
10471 msgid "The fields in the returned structure are:"
10472 msgstr ""
10473
10474 # type: =item
10475 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2917
10476 msgid "B<part_num>"
10477 msgstr ""
10478
10479 # type: textblock
10480 #: ../src/guestfs-actions.pod:3783 ../fish/guestfish-actions.pod:2919
10481 msgid "Partition number, counting from 1."
10482 msgstr ""
10483
10484 # type: =item
10485 #: ../src/guestfs-actions.pod:3785 ../fish/guestfish-actions.pod:2921
10486 msgid "B<part_start>"
10487 msgstr ""
10488
10489 # type: textblock
10490 #: ../src/guestfs-actions.pod:3787
10491 msgid ""
10492 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10493 "the device's sector size, see C<guestfs_blockdev_getss>."
10494 msgstr ""
10495
10496 # type: =item
10497 #: ../src/guestfs-actions.pod:3790 ../fish/guestfish-actions.pod:2926
10498 msgid "B<part_end>"
10499 msgstr ""
10500
10501 # type: textblock
10502 #: ../src/guestfs-actions.pod:3792 ../fish/guestfish-actions.pod:2928
10503 msgid "End of the partition in bytes."
10504 msgstr ""
10505
10506 # type: =item
10507 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2930
10508 msgid "B<part_size>"
10509 msgstr ""
10510
10511 # type: textblock
10512 #: ../src/guestfs-actions.pod:3796 ../fish/guestfish-actions.pod:2932
10513 msgid "Size of the partition in bytes."
10514 msgstr ""
10515
10516 # type: textblock
10517 #: ../src/guestfs-actions.pod:3800
10518 msgid ""
10519 "This function returns a C<struct guestfs_partition_list *> (see "
10520 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10521 "must call C<guestfs_free_partition_list> after use>."
10522 msgstr ""
10523
10524 # type: =head2
10525 #: ../src/guestfs-actions.pod:3805
10526 msgid "guestfs_part_set_bootable"
10527 msgstr ""
10528
10529 # type: verbatim
10530 #: ../src/guestfs-actions.pod:3807
10531 #, no-wrap
10532 msgid ""
10533 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10534 "\t\tconst char *device,\n"
10535 "\t\tint partnum,\n"
10536 "\t\tint bootable);\n"
10537 "\n"
10538 msgstr ""
10539
10540 # type: textblock
10541 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2940
10542 msgid ""
10543 "This sets the bootable flag on partition numbered C<partnum> on device "
10544 "C<device>.  Note that partitions are numbered from 1."
10545 msgstr ""
10546
10547 # type: textblock
10548 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2943
10549 msgid ""
10550 "The bootable flag is used by some operating systems (notably Windows) to "
10551 "determine which partition to boot from.  It is by no means universally "
10552 "recognized."
10553 msgstr ""
10554
10555 # type: =head2
10556 #: ../src/guestfs-actions.pod:3821
10557 msgid "guestfs_part_set_mbr_id"
10558 msgstr ""
10559
10560 # type: verbatim
10561 #: ../src/guestfs-actions.pod:3823
10562 #, no-wrap
10563 msgid ""
10564 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10565 "\t\tconst char *device,\n"
10566 "\t\tint partnum,\n"
10567 "\t\tint idbyte);\n"
10568 "\n"
10569 msgstr ""
10570
10571 # type: textblock
10572 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2951
10573 msgid ""
10574 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
10575 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
10576 "documentation are in fact hexadecimal numbers, but usually documented "
10577 "without any leading \"0x\" which might be confusing."
10578 msgstr ""
10579
10580 # type: =head2
10581 #: ../src/guestfs-actions.pod:3840
10582 msgid "guestfs_part_set_name"
10583 msgstr ""
10584
10585 # type: verbatim
10586 #: ../src/guestfs-actions.pod:3842
10587 #, no-wrap
10588 msgid ""
10589 " int guestfs_part_set_name (guestfs_h *g,\n"
10590 "\t\tconst char *device,\n"
10591 "\t\tint partnum,\n"
10592 "\t\tconst char *name);\n"
10593 "\n"
10594 msgstr ""
10595
10596 # type: textblock
10597 #: ../src/guestfs-actions.pod:3847 ../fish/guestfish-actions.pod:2965
10598 msgid ""
10599 "This sets the partition name on partition numbered C<partnum> on device "
10600 "C<device>.  Note that partitions are numbered from 1."
10601 msgstr ""
10602
10603 # type: textblock
10604 #: ../src/guestfs-actions.pod:3850 ../fish/guestfish-actions.pod:2968
10605 msgid ""
10606 "The partition name can only be set on certain types of partition table.  "
10607 "This works on C<gpt> but not on C<mbr> partitions."
10608 msgstr ""
10609
10610 # type: =head2
10611 #: ../src/guestfs-actions.pod:3855
10612 msgid "guestfs_part_to_dev"
10613 msgstr ""
10614
10615 # type: verbatim
10616 #: ../src/guestfs-actions.pod:3857
10617 #, no-wrap
10618 msgid ""
10619 " char *guestfs_part_to_dev (guestfs_h *g,\n"
10620 "\t\tconst char *partition);\n"
10621 "\n"
10622 msgstr ""
10623
10624 # type: textblock
10625 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2975
10626 msgid ""
10627 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
10628 "partition number, returning the device name (eg. \"/dev/sdb\")."
10629 msgstr ""
10630
10631 # type: textblock
10632 #: ../src/guestfs-actions.pod:3864
10633 msgid ""
10634 "The named partition must exist, for example as a string returned from "
10635 "C<guestfs_list_partitions>."
10636 msgstr ""
10637
10638 # type: =head2
10639 #: ../src/guestfs-actions.pod:3870
10640 msgid "guestfs_ping_daemon"
10641 msgstr ""
10642
10643 # type: verbatim
10644 #: ../src/guestfs-actions.pod:3872
10645 #, no-wrap
10646 msgid ""
10647 " int guestfs_ping_daemon (guestfs_h *g);\n"
10648 "\n"
10649 msgstr ""
10650
10651 # type: textblock
10652 #: ../src/guestfs-actions.pod:3874 ../fish/guestfish-actions.pod:2986
10653 msgid ""
10654 "This is a test probe into the guestfs daemon running inside the qemu "
10655 "subprocess.  Calling this function checks that the daemon responds to the "
10656 "ping message, without affecting the daemon or attached block device(s) in "
10657 "any other way."
10658 msgstr ""
10659
10660 # type: =head2
10661 #: ../src/guestfs-actions.pod:3881
10662 msgid "guestfs_pread"
10663 msgstr ""
10664
10665 # type: verbatim
10666 #: ../src/guestfs-actions.pod:3883
10667 #, no-wrap
10668 msgid ""
10669 " char *guestfs_pread (guestfs_h *g,\n"
10670 "\t\tconst char *path,\n"
10671 "\t\tint count,\n"
10672 "\t\tint64_t offset,\n"
10673 "\t\tsize_t *size_r);\n"
10674 "\n"
10675 msgstr ""
10676
10677 # type: textblock
10678 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:2995
10679 msgid ""
10680 "This command lets you read part of a file.  It reads C<count> bytes of the "
10681 "file, starting at C<offset>, from file C<path>."
10682 msgstr ""
10683
10684 # type: textblock
10685 #: ../src/guestfs-actions.pod:3892 ../src/guestfs-actions.pod:3915 ../fish/guestfish-actions.pod:2998 ../fish/guestfish-actions.pod:3013
10686 msgid ""
10687 "This may read fewer bytes than requested.  For further details see the "
10688 "L<pread(2)> system call."
10689 msgstr ""
10690
10691 # type: textblock
10692 #: ../src/guestfs-actions.pod:3895
10693 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
10694 msgstr ""
10695
10696 # type: =head2
10697 #: ../src/guestfs-actions.pod:3904
10698 msgid "guestfs_pread_device"
10699 msgstr ""
10700
10701 # type: verbatim
10702 #: ../src/guestfs-actions.pod:3906
10703 #, no-wrap
10704 msgid ""
10705 " char *guestfs_pread_device (guestfs_h *g,\n"
10706 "\t\tconst char *device,\n"
10707 "\t\tint count,\n"
10708 "\t\tint64_t offset,\n"
10709 "\t\tsize_t *size_r);\n"
10710 "\n"
10711 msgstr ""
10712
10713 # type: textblock
10714 #: ../src/guestfs-actions.pod:3912 ../fish/guestfish-actions.pod:3010
10715 msgid ""
10716 "This command lets you read part of a file.  It reads C<count> bytes of "
10717 "C<device>, starting at C<offset>."
10718 msgstr ""
10719
10720 # type: textblock
10721 #: ../src/guestfs-actions.pod:3918
10722 msgid "See also C<guestfs_pread>."
10723 msgstr ""
10724
10725 # type: =head2
10726 #: ../src/guestfs-actions.pod:3927
10727 msgid "guestfs_pvcreate"
10728 msgstr ""
10729
10730 # type: verbatim
10731 #: ../src/guestfs-actions.pod:3929
10732 #, no-wrap
10733 msgid ""
10734 " int guestfs_pvcreate (guestfs_h *g,\n"
10735 "\t\tconst char *device);\n"
10736 "\n"
10737 msgstr ""
10738
10739 # type: textblock
10740 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:3025
10741 msgid ""
10742 "This creates an LVM physical volume on the named C<device>, where C<device> "
10743 "should usually be a partition name such as C</dev/sda1>."
10744 msgstr ""
10745
10746 # type: =head2
10747 #: ../src/guestfs-actions.pod:3938
10748 msgid "guestfs_pvremove"
10749 msgstr ""
10750
10751 # type: verbatim
10752 #: ../src/guestfs-actions.pod:3940
10753 #, no-wrap
10754 msgid ""
10755 " int guestfs_pvremove (guestfs_h *g,\n"
10756 "\t\tconst char *device);\n"
10757 "\n"
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../src/guestfs-actions.pod:3943 ../fish/guestfish-actions.pod:3033
10762 msgid ""
10763 "This wipes a physical volume C<device> so that LVM will no longer recognise "
10764 "it."
10765 msgstr ""
10766
10767 # type: textblock
10768 #: ../src/guestfs-actions.pod:3946 ../fish/guestfish-actions.pod:3036
10769 msgid ""
10770 "The implementation uses the C<pvremove> command which refuses to wipe "
10771 "physical volumes that contain any volume groups, so you have to remove those "
10772 "first."
10773 msgstr ""
10774
10775 # type: =head2
10776 #: ../src/guestfs-actions.pod:3952
10777 msgid "guestfs_pvresize"
10778 msgstr ""
10779
10780 # type: verbatim
10781 #: ../src/guestfs-actions.pod:3954
10782 #, no-wrap
10783 msgid ""
10784 " int guestfs_pvresize (guestfs_h *g,\n"
10785 "\t\tconst char *device);\n"
10786 "\n"
10787 msgstr ""
10788
10789 # type: textblock
10790 #: ../src/guestfs-actions.pod:3957 ../fish/guestfish-actions.pod:3044
10791 msgid ""
10792 "This resizes (expands or shrinks) an existing LVM physical volume to match "
10793 "the new size of the underlying device."
10794 msgstr ""
10795
10796 # type: =head2
10797 #: ../src/guestfs-actions.pod:3962
10798 msgid "guestfs_pvresize_size"
10799 msgstr ""
10800
10801 # type: verbatim
10802 #: ../src/guestfs-actions.pod:3964
10803 #, no-wrap
10804 msgid ""
10805 " int guestfs_pvresize_size (guestfs_h *g,\n"
10806 "\t\tconst char *device,\n"
10807 "\t\tint64_t size);\n"
10808 "\n"
10809 msgstr ""
10810
10811 # type: textblock
10812 #: ../src/guestfs-actions.pod:3968
10813 msgid ""
10814 "This command is the same as C<guestfs_pvresize> except that it allows you to "
10815 "specify the new size (in bytes) explicitly."
10816 msgstr ""
10817
10818 # type: =head2
10819 #: ../src/guestfs-actions.pod:3973
10820 msgid "guestfs_pvs"
10821 msgstr ""
10822
10823 # type: verbatim
10824 #: ../src/guestfs-actions.pod:3975
10825 #, no-wrap
10826 msgid ""
10827 " char **guestfs_pvs (guestfs_h *g);\n"
10828 "\n"
10829 msgstr ""
10830
10831 # type: textblock
10832 #: ../src/guestfs-actions.pod:3977 ../fish/guestfish-actions.pod:3058
10833 msgid ""
10834 "List all the physical volumes detected.  This is the equivalent of the "
10835 "L<pvs(8)> command."
10836 msgstr ""
10837
10838 # type: textblock
10839 #: ../src/guestfs-actions.pod:3980 ../fish/guestfish-actions.pod:3061
10840 msgid ""
10841 "This returns a list of just the device names that contain PVs "
10842 "(eg. C</dev/sda2>)."
10843 msgstr ""
10844
10845 # type: textblock
10846 #: ../src/guestfs-actions.pod:3983
10847 msgid "See also C<guestfs_pvs_full>."
10848 msgstr ""
10849
10850 # type: =head2
10851 #: ../src/guestfs-actions.pod:3989
10852 msgid "guestfs_pvs_full"
10853 msgstr ""
10854
10855 # type: verbatim
10856 #: ../src/guestfs-actions.pod:3991
10857 #, no-wrap
10858 msgid ""
10859 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
10860 "\n"
10861 msgstr ""
10862
10863 # type: textblock
10864 #: ../src/guestfs-actions.pod:3993 ../fish/guestfish-actions.pod:3070
10865 msgid ""
10866 "List all the physical volumes detected.  This is the equivalent of the "
10867 "L<pvs(8)> command.  The \"full\" version includes all fields."
10868 msgstr ""
10869
10870 # type: textblock
10871 #: ../src/guestfs-actions.pod:3996
10872 msgid ""
10873 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
10874 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10875 "must call C<guestfs_free_lvm_pv_list> after use>."
10876 msgstr ""
10877
10878 # type: =head2
10879 #: ../src/guestfs-actions.pod:4001
10880 msgid "guestfs_pvuuid"
10881 msgstr ""
10882
10883 # type: verbatim
10884 #: ../src/guestfs-actions.pod:4003
10885 #, no-wrap
10886 msgid ""
10887 " char *guestfs_pvuuid (guestfs_h *g,\n"
10888 "\t\tconst char *device);\n"
10889 "\n"
10890 msgstr ""
10891
10892 # type: textblock
10893 #: ../src/guestfs-actions.pod:4006 ../fish/guestfish-actions.pod:3077
10894 msgid "This command returns the UUID of the LVM PV C<device>."
10895 msgstr ""
10896
10897 # type: =head2
10898 #: ../src/guestfs-actions.pod:4011
10899 msgid "guestfs_pwrite"
10900 msgstr ""
10901
10902 # type: verbatim
10903 #: ../src/guestfs-actions.pod:4013
10904 #, no-wrap
10905 msgid ""
10906 " int guestfs_pwrite (guestfs_h *g,\n"
10907 "\t\tconst char *path,\n"
10908 "\t\tconst char *content,\n"
10909 "\t\tsize_t content_size,\n"
10910 "\t\tint64_t offset);\n"
10911 "\n"
10912 msgstr ""
10913
10914 # type: textblock
10915 #: ../src/guestfs-actions.pod:4019 ../fish/guestfish-actions.pod:3083
10916 msgid ""
10917 "This command writes to part of a file.  It writes the data buffer C<content> "
10918 "to the file C<path> starting at offset C<offset>."
10919 msgstr ""
10920
10921 # type: textblock
10922 #: ../src/guestfs-actions.pod:4022 ../fish/guestfish-actions.pod:3086
10923 msgid ""
10924 "This command implements the L<pwrite(2)> system call, and like that system "
10925 "call it may not write the full data requested.  The return value is the "
10926 "number of bytes that were actually written to the file.  This could even be "
10927 "0, although short writes are unlikely for regular files in ordinary "
10928 "circumstances."
10929 msgstr ""
10930
10931 # type: textblock
10932 #: ../src/guestfs-actions.pod:4028
10933 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
10934 msgstr ""
10935
10936 # type: =head2
10937 #: ../src/guestfs-actions.pod:4035
10938 msgid "guestfs_pwrite_device"
10939 msgstr ""
10940
10941 # type: verbatim
10942 #: ../src/guestfs-actions.pod:4037
10943 #, no-wrap
10944 msgid ""
10945 " int guestfs_pwrite_device (guestfs_h *g,\n"
10946 "\t\tconst char *device,\n"
10947 "\t\tconst char *content,\n"
10948 "\t\tsize_t content_size,\n"
10949 "\t\tint64_t offset);\n"
10950 "\n"
10951 msgstr ""
10952
10953 # type: textblock
10954 #: ../src/guestfs-actions.pod:4043 ../fish/guestfish-actions.pod:3101
10955 msgid ""
10956 "This command writes to part of a device.  It writes the data buffer "
10957 "C<content> to C<device> starting at offset C<offset>."
10958 msgstr ""
10959
10960 # type: textblock
10961 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:3104
10962 msgid ""
10963 "This command implements the L<pwrite(2)> system call, and like that system "
10964 "call it may not write the full data requested (although short writes to disk "
10965 "devices and partitions are probably impossible with standard Linux kernels)."
10966 msgstr ""
10967
10968 # type: textblock
10969 #: ../src/guestfs-actions.pod:4051
10970 msgid "See also C<guestfs_pwrite>."
10971 msgstr ""
10972
10973 # type: =head2
10974 #: ../src/guestfs-actions.pod:4058
10975 msgid "guestfs_read_file"
10976 msgstr ""
10977
10978 # type: verbatim
10979 #: ../src/guestfs-actions.pod:4060
10980 #, no-wrap
10981 msgid ""
10982 " char *guestfs_read_file (guestfs_h *g,\n"
10983 "\t\tconst char *path,\n"
10984 "\t\tsize_t *size_r);\n"
10985 "\n"
10986 msgstr ""
10987
10988 # type: textblock
10989 #: ../src/guestfs-actions.pod:4064 ../fish/guestfish-actions.pod:3118
10990 msgid "This calls returns the contents of the file C<path> as a buffer."
10991 msgstr ""
10992
10993 # type: textblock
10994 #: ../src/guestfs-actions.pod:4067
10995 msgid ""
10996 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
10997 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
10998 "function is limited in the total size of file that can be handled."
10999 msgstr ""
11000
11001 # type: =head2
11002 #: ../src/guestfs-actions.pod:4079
11003 msgid "guestfs_read_lines"
11004 msgstr ""
11005
11006 # type: verbatim
11007 #: ../src/guestfs-actions.pod:4081
11008 #, no-wrap
11009 msgid ""
11010 " char **guestfs_read_lines (guestfs_h *g,\n"
11011 "\t\tconst char *path);\n"
11012 "\n"
11013 msgstr ""
11014
11015 # type: textblock
11016 #: ../src/guestfs-actions.pod:4086 ../fish/guestfish-actions.pod:3135
11017 msgid ""
11018 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11019 "C<CRLF> character sequences are I<not> returned."
11020 msgstr ""
11021
11022 # type: textblock
11023 #: ../src/guestfs-actions.pod:4089
11024 msgid ""
11025 "Note that this function cannot correctly handle binary files (specifically, "
11026 "files containing C<\\0> character which is treated as end of line).  For "
11027 "those you need to use the C<guestfs_read_file> function which has a more "
11028 "complex interface."
11029 msgstr ""
11030
11031 # type: =head2
11032 #: ../src/guestfs-actions.pod:4098
11033 msgid "guestfs_readdir"
11034 msgstr ""
11035
11036 # type: verbatim
11037 #: ../src/guestfs-actions.pod:4100
11038 #, no-wrap
11039 msgid ""
11040 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
11041 "\t\tconst char *dir);\n"
11042 "\n"
11043 msgstr ""
11044
11045 # type: textblock
11046 #: ../src/guestfs-actions.pod:4103 ../fish/guestfish-actions.pod:3147
11047 msgid "This returns the list of directory entries in directory C<dir>."
11048 msgstr ""
11049
11050 # type: textblock
11051 #: ../src/guestfs-actions.pod:4105 ../fish/guestfish-actions.pod:3149
11052 msgid ""
11053 "All entries in the directory are returned, including C<.> and C<..>.  The "
11054 "entries are I<not> sorted, but returned in the same order as the underlying "
11055 "filesystem."
11056 msgstr ""
11057
11058 # type: textblock
11059 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:3153
11060 msgid ""
11061 "Also this call returns basic file type information about each file.  The "
11062 "C<ftyp> field will contain one of the following characters:"
11063 msgstr ""
11064
11065 # type: =item
11066 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:3158
11067 msgid "'b'"
11068 msgstr ""
11069
11070 # type: textblock
11071 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:3160
11072 msgid "Block special"
11073 msgstr ""
11074
11075 # type: =item
11076 #: ../src/guestfs-actions.pod:4118 ../fish/guestfish-actions.pod:3162
11077 msgid "'c'"
11078 msgstr ""
11079
11080 # type: textblock
11081 #: ../src/guestfs-actions.pod:4120 ../fish/guestfish-actions.pod:3164
11082 msgid "Char special"
11083 msgstr ""
11084
11085 # type: =item
11086 #: ../src/guestfs-actions.pod:4122 ../fish/guestfish-actions.pod:3166
11087 msgid "'d'"
11088 msgstr ""
11089
11090 # type: textblock
11091 #: ../src/guestfs-actions.pod:4124 ../fish/guestfish-actions.pod:3168
11092 msgid "Directory"
11093 msgstr ""
11094
11095 # type: =item
11096 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:3170
11097 msgid "'f'"
11098 msgstr ""
11099
11100 # type: textblock
11101 #: ../src/guestfs-actions.pod:4128 ../fish/guestfish-actions.pod:3172
11102 msgid "FIFO (named pipe)"
11103 msgstr ""
11104
11105 # type: =item
11106 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:3174
11107 msgid "'l'"
11108 msgstr ""
11109
11110 # type: textblock
11111 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:3176
11112 msgid "Symbolic link"
11113 msgstr ""
11114
11115 # type: =item
11116 #: ../src/guestfs-actions.pod:4134 ../fish/guestfish-actions.pod:3178
11117 msgid "'r'"
11118 msgstr ""
11119
11120 # type: textblock
11121 #: ../src/guestfs-actions.pod:4136 ../fish/guestfish-actions.pod:3180
11122 msgid "Regular file"
11123 msgstr ""
11124
11125 # type: =item
11126 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:3182
11127 msgid "'s'"
11128 msgstr ""
11129
11130 # type: textblock
11131 #: ../src/guestfs-actions.pod:4140 ../fish/guestfish-actions.pod:3184
11132 msgid "Socket"
11133 msgstr ""
11134
11135 # type: =item
11136 #: ../src/guestfs-actions.pod:4142 ../fish/guestfish-actions.pod:3186
11137 msgid "'u'"
11138 msgstr ""
11139
11140 # type: textblock
11141 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:3188
11142 msgid "Unknown file type"
11143 msgstr ""
11144
11145 # type: =item
11146 #: ../src/guestfs-actions.pod:4146 ../fish/guestfish-actions.pod:3190
11147 msgid "'?'"
11148 msgstr ""
11149
11150 # type: textblock
11151 #: ../src/guestfs-actions.pod:4148 ../fish/guestfish-actions.pod:3192
11152 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11153 msgstr ""
11154
11155 # type: textblock
11156 #: ../src/guestfs-actions.pod:4153
11157 msgid ""
11158 "This function is primarily intended for use by programs.  To get a simple "
11159 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11160 "consumption, use C<guestfs_ll>."
11161 msgstr ""
11162
11163 # type: textblock
11164 #: ../src/guestfs-actions.pod:4157
11165 msgid ""
11166 "This function returns a C<struct guestfs_dirent_list *> (see "
11167 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11168 "must call C<guestfs_free_dirent_list> after use>."
11169 msgstr ""
11170
11171 # type: =head2
11172 #: ../src/guestfs-actions.pod:4162
11173 msgid "guestfs_readlink"
11174 msgstr ""
11175
11176 # type: verbatim
11177 #: ../src/guestfs-actions.pod:4164
11178 #, no-wrap
11179 msgid ""
11180 " char *guestfs_readlink (guestfs_h *g,\n"
11181 "\t\tconst char *path);\n"
11182 "\n"
11183 msgstr ""
11184
11185 # type: textblock
11186 #: ../src/guestfs-actions.pod:4167 ../fish/guestfish-actions.pod:3205
11187 msgid "This command reads the target of a symbolic link."
11188 msgstr ""
11189
11190 # type: =head2
11191 #: ../src/guestfs-actions.pod:4172
11192 msgid "guestfs_readlinklist"
11193 msgstr ""
11194
11195 # type: verbatim
11196 #: ../src/guestfs-actions.pod:4174
11197 #, no-wrap
11198 msgid ""
11199 " char **guestfs_readlinklist (guestfs_h *g,\n"
11200 "\t\tconst char *path,\n"
11201 "\t\tchar *const *names);\n"
11202 "\n"
11203 msgstr ""
11204
11205 # type: textblock
11206 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:3211
11207 msgid ""
11208 "This call allows you to do a C<readlink> operation on multiple files, where "
11209 "all files are in the directory C<path>.  C<names> is the list of files from "
11210 "this directory."
11211 msgstr ""
11212
11213 # type: textblock
11214 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:3215
11215 msgid ""
11216 "On return you get a list of strings, with a one-to-one correspondence to the "
11217 "C<names> list.  Each string is the value of the symbolic link."
11218 msgstr ""
11219
11220 # type: textblock
11221 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:3219
11222 msgid ""
11223 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11224 "result string is the empty string C<\"\">.  However the whole operation is "
11225 "completed even if there were C<readlink(2)> errors, and so you can call this "
11226 "function with names where you don't know if they are symbolic links already "
11227 "(albeit slightly less efficient)."
11228 msgstr ""
11229
11230 # type: textblock
11231 #: ../src/guestfs-actions.pod:4193 ../fish/guestfish-actions.pod:3226
11232 msgid ""
11233 "This call is intended for programs that want to efficiently list a directory "
11234 "contents without making many round-trips.  Very long directory listings "
11235 "might cause the protocol message size to be exceeded, causing this call to "
11236 "fail.  The caller must split up such requests into smaller groups of names."
11237 msgstr ""
11238
11239 # type: =head2
11240 #: ../src/guestfs-actions.pod:4204
11241 msgid "guestfs_realpath"
11242 msgstr ""
11243
11244 # type: verbatim
11245 #: ../src/guestfs-actions.pod:4206
11246 #, no-wrap
11247 msgid ""
11248 " char *guestfs_realpath (guestfs_h *g,\n"
11249 "\t\tconst char *path);\n"
11250 "\n"
11251 msgstr ""
11252
11253 # type: textblock
11254 #: ../src/guestfs-actions.pod:4209 ../fish/guestfish-actions.pod:3237
11255 msgid ""
11256 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11257 "has no C<.>, C<..> or symbolic link path elements."
11258 msgstr ""
11259
11260 # type: =head2
11261 #: ../src/guestfs-actions.pod:4215
11262 msgid "guestfs_removexattr"
11263 msgstr ""
11264
11265 # type: verbatim
11266 #: ../src/guestfs-actions.pod:4217
11267 #, no-wrap
11268 msgid ""
11269 " int guestfs_removexattr (guestfs_h *g,\n"
11270 "\t\tconst char *xattr,\n"
11271 "\t\tconst char *path);\n"
11272 "\n"
11273 msgstr ""
11274
11275 # type: textblock
11276 #: ../src/guestfs-actions.pod:4221 ../fish/guestfish-actions.pod:3244
11277 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
11278 msgstr ""
11279
11280 # type: textblock
11281 #: ../src/guestfs-actions.pod:4224
11282 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11283 msgstr ""
11284
11285 # type: =head2
11286 #: ../src/guestfs-actions.pod:4228
11287 msgid "guestfs_resize2fs"
11288 msgstr ""
11289
11290 # type: verbatim
11291 #: ../src/guestfs-actions.pod:4230
11292 #, no-wrap
11293 msgid ""
11294 " int guestfs_resize2fs (guestfs_h *g,\n"
11295 "\t\tconst char *device);\n"
11296 "\n"
11297 msgstr ""
11298
11299 # type: textblock
11300 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:3253
11301 msgid ""
11302 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11303 "underlying device."
11304 msgstr ""
11305
11306 # type: textblock
11307 #: ../src/guestfs-actions.pod:4236
11308 msgid ""
11309 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11310 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11311 "sometimes gives an error about this and sometimes not.  In any case, it is "
11312 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11313 msgstr ""
11314
11315 # type: =head2
11316 #: ../src/guestfs-actions.pod:4244
11317 msgid "guestfs_resize2fs_size"
11318 msgstr ""
11319
11320 # type: verbatim
11321 #: ../src/guestfs-actions.pod:4246
11322 #, no-wrap
11323 msgid ""
11324 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11325 "\t\tconst char *device,\n"
11326 "\t\tint64_t size);\n"
11327 "\n"
11328 msgstr ""
11329
11330 # type: textblock
11331 #: ../src/guestfs-actions.pod:4250
11332 msgid ""
11333 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11334 "to specify the new size (in bytes) explicitly."
11335 msgstr ""
11336
11337 # type: =head2
11338 #: ../src/guestfs-actions.pod:4255
11339 msgid "guestfs_rm"
11340 msgstr ""
11341
11342 # type: verbatim
11343 #: ../src/guestfs-actions.pod:4257
11344 #, no-wrap
11345 msgid ""
11346 " int guestfs_rm (guestfs_h *g,\n"
11347 "\t\tconst char *path);\n"
11348 "\n"
11349 msgstr ""
11350
11351 # type: textblock
11352 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:3273
11353 msgid "Remove the single file C<path>."
11354 msgstr ""
11355
11356 # type: =head2
11357 #: ../src/guestfs-actions.pod:4264
11358 msgid "guestfs_rm_rf"
11359 msgstr ""
11360
11361 # type: verbatim
11362 #: ../src/guestfs-actions.pod:4266
11363 #, no-wrap
11364 msgid ""
11365 " int guestfs_rm_rf (guestfs_h *g,\n"
11366 "\t\tconst char *path);\n"
11367 "\n"
11368 msgstr ""
11369
11370 # type: textblock
11371 #: ../src/guestfs-actions.pod:4269 ../fish/guestfish-actions.pod:3279
11372 msgid ""
11373 "Remove the file or directory C<path>, recursively removing the contents if "
11374 "its a directory.  This is like the C<rm -rf> shell command."
11375 msgstr ""
11376
11377 # type: =head2
11378 #: ../src/guestfs-actions.pod:4275
11379 msgid "guestfs_rmdir"
11380 msgstr ""
11381
11382 # type: verbatim
11383 #: ../src/guestfs-actions.pod:4277
11384 #, no-wrap
11385 msgid ""
11386 " int guestfs_rmdir (guestfs_h *g,\n"
11387 "\t\tconst char *path);\n"
11388 "\n"
11389 msgstr ""
11390
11391 # type: textblock
11392 #: ../src/guestfs-actions.pod:4280 ../fish/guestfish-actions.pod:3287
11393 msgid "Remove the single directory C<path>."
11394 msgstr ""
11395
11396 # type: =head2
11397 #: ../src/guestfs-actions.pod:4284
11398 msgid "guestfs_rmmountpoint"
11399 msgstr ""
11400
11401 # type: verbatim
11402 #: ../src/guestfs-actions.pod:4286
11403 #, no-wrap
11404 msgid ""
11405 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11406 "\t\tconst char *exemptpath);\n"
11407 "\n"
11408 msgstr ""
11409
11410 # type: textblock
11411 #: ../src/guestfs-actions.pod:4289
11412 msgid ""
11413 "This calls removes a mountpoint that was previously created with "
11414 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11415 msgstr ""
11416
11417 # type: =head2
11418 #: ../src/guestfs-actions.pod:4295
11419 msgid "guestfs_scrub_device"
11420 msgstr ""
11421
11422 # type: verbatim
11423 #: ../src/guestfs-actions.pod:4297
11424 #, no-wrap
11425 msgid ""
11426 " int guestfs_scrub_device (guestfs_h *g,\n"
11427 "\t\tconst char *device);\n"
11428 "\n"
11429 msgstr ""
11430
11431 # type: textblock
11432 #: ../src/guestfs-actions.pod:4300 ../fish/guestfish-actions.pod:3301
11433 msgid ""
11434 "This command writes patterns over C<device> to make data retrieval more "
11435 "difficult."
11436 msgstr ""
11437
11438 # type: textblock
11439 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4321 ../src/guestfs-actions.pod:4337 ../fish/guestfish-actions.pod:3304 ../fish/guestfish-actions.pod:3319 ../fish/guestfish-actions.pod:3332
11440 msgid ""
11441 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11442 "more details."
11443 msgstr ""
11444
11445 # type: =head2
11446 #: ../src/guestfs-actions.pod:4311
11447 msgid "guestfs_scrub_file"
11448 msgstr ""
11449
11450 # type: verbatim
11451 #: ../src/guestfs-actions.pod:4313
11452 #, no-wrap
11453 msgid ""
11454 " int guestfs_scrub_file (guestfs_h *g,\n"
11455 "\t\tconst char *file);\n"
11456 "\n"
11457 msgstr ""
11458
11459 # type: textblock
11460 #: ../src/guestfs-actions.pod:4316 ../fish/guestfish-actions.pod:3314
11461 msgid ""
11462 "This command writes patterns over a file to make data retrieval more "
11463 "difficult."
11464 msgstr ""
11465
11466 # type: textblock
11467 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:3317
11468 msgid "The file is I<removed> after scrubbing."
11469 msgstr ""
11470
11471 # type: =head2
11472 #: ../src/guestfs-actions.pod:4326
11473 msgid "guestfs_scrub_freespace"
11474 msgstr ""
11475
11476 # type: verbatim
11477 #: ../src/guestfs-actions.pod:4328
11478 #, no-wrap
11479 msgid ""
11480 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11481 "\t\tconst char *dir);\n"
11482 "\n"
11483 msgstr ""
11484
11485 # type: textblock
11486 #: ../src/guestfs-actions.pod:4331
11487 msgid ""
11488 "This command creates the directory C<dir> and then fills it with files until "
11489 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11490 "and deletes them.  The intention is to scrub any free space on the partition "
11491 "containing C<dir>."
11492 msgstr ""
11493
11494 # type: =head2
11495 #: ../src/guestfs-actions.pod:4342
11496 msgid "guestfs_set_append"
11497 msgstr ""
11498
11499 # type: verbatim
11500 #: ../src/guestfs-actions.pod:4344
11501 #, no-wrap
11502 msgid ""
11503 " int guestfs_set_append (guestfs_h *g,\n"
11504 "\t\tconst char *append);\n"
11505 "\n"
11506 msgstr ""
11507
11508 # type: textblock
11509 #: ../src/guestfs-actions.pod:4347 ../fish/guestfish-actions.pod:3341
11510 msgid ""
11511 "This function is used to add additional options to the guest kernel command "
11512 "line."
11513 msgstr ""
11514
11515 # type: textblock
11516 #: ../src/guestfs-actions.pod:4350 ../fish/guestfish-actions.pod:3344
11517 msgid ""
11518 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11519 "environment variable."
11520 msgstr ""
11521
11522 # type: textblock
11523 #: ../src/guestfs-actions.pod:4353 ../fish/guestfish-actions.pod:3347
11524 msgid ""
11525 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11526 "(libguestfs always adds a few of its own)."
11527 msgstr ""
11528
11529 # type: =head2
11530 #: ../src/guestfs-actions.pod:4358
11531 msgid "guestfs_set_autosync"
11532 msgstr ""
11533
11534 # type: verbatim
11535 #: ../src/guestfs-actions.pod:4360
11536 #, no-wrap
11537 msgid ""
11538 " int guestfs_set_autosync (guestfs_h *g,\n"
11539 "\t\tint autosync);\n"
11540 "\n"
11541 msgstr ""
11542
11543 # type: textblock
11544 #: ../src/guestfs-actions.pod:4363
11545 msgid ""
11546 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11547 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11548 "the handle is closed (also if the program exits without closing handles)."
11549 msgstr ""
11550
11551 # type: textblock
11552 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:3361
11553 msgid ""
11554 "This is disabled by default (except in guestfish where it is enabled by "
11555 "default)."
11556 msgstr ""
11557
11558 # type: =head2
11559 #: ../src/guestfs-actions.pod:4373
11560 msgid "guestfs_set_direct"
11561 msgstr ""
11562
11563 # type: verbatim
11564 #: ../src/guestfs-actions.pod:4375
11565 #, no-wrap
11566 msgid ""
11567 " int guestfs_set_direct (guestfs_h *g,\n"
11568 "\t\tint direct);\n"
11569 "\n"
11570 msgstr ""
11571
11572 # type: textblock
11573 #: ../src/guestfs-actions.pod:4378 ../fish/guestfish-actions.pod:3370
11574 msgid ""
11575 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11576 "passed directly through to the appliance once it is launched."
11577 msgstr ""
11578
11579 # type: textblock
11580 #: ../src/guestfs-actions.pod:4382
11581 msgid ""
11582 "One consequence of this is that log messages aren't caught by the library "
11583 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11584 "stdout."
11585 msgstr ""
11586
11587 # type: textblock
11588 #: ../src/guestfs-actions.pod:4386 ../fish/guestfish-actions.pod:3378
11589 msgid "You probably don't want to use this unless you know what you are doing."
11590 msgstr ""
11591
11592 # type: textblock
11593 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:3381
11594 msgid "The default is disabled."
11595 msgstr ""
11596
11597 # type: =head2
11598 #: ../src/guestfs-actions.pod:4393
11599 msgid "guestfs_set_e2label"
11600 msgstr ""
11601
11602 # type: verbatim
11603 #: ../src/guestfs-actions.pod:4395
11604 #, no-wrap
11605 msgid ""
11606 " int guestfs_set_e2label (guestfs_h *g,\n"
11607 "\t\tconst char *device,\n"
11608 "\t\tconst char *label);\n"
11609 "\n"
11610 msgstr ""
11611
11612 # type: textblock
11613 #: ../src/guestfs-actions.pod:4399 ../fish/guestfish-actions.pod:3387
11614 msgid ""
11615 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11616 "C<label>.  Filesystem labels are limited to 16 characters."
11617 msgstr ""
11618
11619 # type: textblock
11620 #: ../src/guestfs-actions.pod:4403
11621 msgid ""
11622 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11623 "the existing label on a filesystem."
11624 msgstr ""
11625
11626 # type: =head2
11627 #: ../src/guestfs-actions.pod:4408
11628 msgid "guestfs_set_e2uuid"
11629 msgstr ""
11630
11631 # type: verbatim
11632 #: ../src/guestfs-actions.pod:4410
11633 #, no-wrap
11634 msgid ""
11635 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11636 "\t\tconst char *device,\n"
11637 "\t\tconst char *uuid);\n"
11638 "\n"
11639 msgstr ""
11640
11641 # type: textblock
11642 #: ../src/guestfs-actions.pod:4414 ../fish/guestfish-actions.pod:3398
11643 msgid ""
11644 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
11645 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
11646 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
11647 msgstr ""
11648
11649 # type: textblock
11650 #: ../src/guestfs-actions.pod:4419
11651 msgid ""
11652 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
11653 "the existing UUID of a filesystem."
11654 msgstr ""
11655
11656 # type: =head2
11657 #: ../src/guestfs-actions.pod:4424
11658 msgid "guestfs_set_memsize"
11659 msgstr ""
11660
11661 # type: verbatim
11662 #: ../src/guestfs-actions.pod:4426
11663 #, no-wrap
11664 msgid ""
11665 " int guestfs_set_memsize (guestfs_h *g,\n"
11666 "\t\tint memsize);\n"
11667 "\n"
11668 msgstr ""
11669
11670 # type: textblock
11671 #: ../src/guestfs-actions.pod:4429
11672 msgid ""
11673 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
11674 "This only has any effect if called before C<guestfs_launch>."
11675 msgstr ""
11676
11677 # type: textblock
11678 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:3416
11679 msgid ""
11680 "You can also change this by setting the environment variable "
11681 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
11682 msgstr ""
11683
11684 # type: =head2
11685 #: ../src/guestfs-actions.pod:4442
11686 msgid "guestfs_set_network"
11687 msgstr ""
11688
11689 # type: verbatim
11690 #: ../src/guestfs-actions.pod:4444
11691 #, no-wrap
11692 msgid ""
11693 " int guestfs_set_network (guestfs_h *g,\n"
11694 "\t\tint network);\n"
11695 "\n"
11696 msgstr ""
11697
11698 # type: textblock
11699 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:3429
11700 msgid ""
11701 "If C<network> is true, then the network is enabled in the libguestfs "
11702 "appliance.  The default is false."
11703 msgstr ""
11704
11705 # type: textblock
11706 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:3432
11707 msgid ""
11708 "This affects whether commands are able to access the network (see "
11709 "L<guestfs(3)/RUNNING COMMANDS>)."
11710 msgstr ""
11711
11712 # type: textblock
11713 #: ../src/guestfs-actions.pod:4453
11714 msgid ""
11715 "You must call this before calling C<guestfs_launch>, otherwise it has no "
11716 "effect."
11717 msgstr ""
11718
11719 # type: =head2
11720 #: ../src/guestfs-actions.pod:4458
11721 msgid "guestfs_set_path"
11722 msgstr ""
11723
11724 # type: verbatim
11725 #: ../src/guestfs-actions.pod:4460
11726 #, no-wrap
11727 msgid ""
11728 " int guestfs_set_path (guestfs_h *g,\n"
11729 "\t\tconst char *searchpath);\n"
11730 "\n"
11731 msgstr ""
11732
11733 # type: textblock
11734 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:3444
11735 msgid "Set the path that libguestfs searches for kernel and initrd.img."
11736 msgstr ""
11737
11738 # type: textblock
11739 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:3446
11740 msgid ""
11741 "The default is C<$libdir/guestfs> unless overridden by setting "
11742 "C<LIBGUESTFS_PATH> environment variable."
11743 msgstr ""
11744
11745 # type: textblock
11746 #: ../src/guestfs-actions.pod:4468 ../fish/guestfish-actions.pod:3449
11747 msgid "Setting C<path> to C<NULL> restores the default path."
11748 msgstr ""
11749
11750 # type: =head2
11751 #: ../src/guestfs-actions.pod:4472
11752 msgid "guestfs_set_qemu"
11753 msgstr ""
11754
11755 # type: verbatim
11756 #: ../src/guestfs-actions.pod:4474
11757 #, no-wrap
11758 msgid ""
11759 " int guestfs_set_qemu (guestfs_h *g,\n"
11760 "\t\tconst char *qemu);\n"
11761 "\n"
11762 msgstr ""
11763
11764 # type: textblock
11765 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3457
11766 msgid "Set the qemu binary that we will use."
11767 msgstr ""
11768
11769 # type: textblock
11770 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:3459
11771 msgid "The default is chosen when the library was compiled by the configure script."
11772 msgstr ""
11773
11774 # type: textblock
11775 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3462
11776 msgid ""
11777 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
11778 "variable."
11779 msgstr ""
11780
11781 # type: textblock
11782 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3465
11783 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
11784 msgstr ""
11785
11786 # type: textblock
11787 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:3467
11788 msgid ""
11789 "Note that you should call this function as early as possible after creating "
11790 "the handle.  This is because some pre-launch operations depend on testing "
11791 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
11792 "don't retest features, and so you might see inconsistent results.  Using the "
11793 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
11794 "the qemu binary at the same time as the handle is created."
11795 msgstr ""
11796
11797 # type: =head2
11798 #: ../src/guestfs-actions.pod:4497
11799 msgid "guestfs_set_recovery_proc"
11800 msgstr ""
11801
11802 # type: verbatim
11803 #: ../src/guestfs-actions.pod:4499
11804 #, no-wrap
11805 msgid ""
11806 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
11807 "\t\tint recoveryproc);\n"
11808 "\n"
11809 msgstr ""
11810
11811 # type: textblock
11812 #: ../src/guestfs-actions.pod:4502
11813 msgid ""
11814 "If this is called with the parameter C<false> then C<guestfs_launch> does "
11815 "not create a recovery process.  The purpose of the recovery process is to "
11816 "stop runaway qemu processes in the case where the main program aborts "
11817 "abruptly."
11818 msgstr ""
11819
11820 # type: textblock
11821 #: ../src/guestfs-actions.pod:4507
11822 msgid ""
11823 "This only has any effect if called before C<guestfs_launch>, and the default "
11824 "is true."
11825 msgstr ""
11826
11827 # type: textblock
11828 #: ../src/guestfs-actions.pod:4510 ../fish/guestfish-actions.pod:3489
11829 msgid ""
11830 "About the only time when you would want to disable this is if the main "
11831 "process will fork itself into the background (\"daemonize\" itself).  In "
11832 "this case the recovery process thinks that the main program has disappeared "
11833 "and so kills qemu, which is not very helpful."
11834 msgstr ""
11835
11836 # type: =head2
11837 #: ../src/guestfs-actions.pod:4518
11838 msgid "guestfs_set_selinux"
11839 msgstr ""
11840
11841 # type: verbatim
11842 #: ../src/guestfs-actions.pod:4520
11843 #, no-wrap
11844 msgid ""
11845 " int guestfs_set_selinux (guestfs_h *g,\n"
11846 "\t\tint selinux);\n"
11847 "\n"
11848 msgstr ""
11849
11850 # type: textblock
11851 #: ../src/guestfs-actions.pod:4523 ../fish/guestfish-actions.pod:3501
11852 msgid ""
11853 "This sets the selinux flag that is passed to the appliance at boot time.  "
11854 "The default is C<selinux=0> (disabled)."
11855 msgstr ""
11856
11857 # type: textblock
11858 #: ../src/guestfs-actions.pod:4526 ../fish/guestfish-actions.pod:3504
11859 msgid ""
11860 "Note that if SELinux is enabled, it is always in Permissive mode "
11861 "(C<enforcing=0>)."
11862 msgstr ""
11863
11864 # type: =head2
11865 #: ../src/guestfs-actions.pod:4534
11866 msgid "guestfs_set_trace"
11867 msgstr ""
11868
11869 # type: verbatim
11870 #: ../src/guestfs-actions.pod:4536
11871 #, no-wrap
11872 msgid ""
11873 " int guestfs_set_trace (guestfs_h *g,\n"
11874 "\t\tint trace);\n"
11875 "\n"
11876 msgstr ""
11877
11878 # type: textblock
11879 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3516
11880 msgid ""
11881 "If the command trace flag is set to 1, then commands are printed on stderr "
11882 "before they are executed in a format which is very similar to the one used "
11883 "by guestfish.  In other words, you can run a program with this enabled, and "
11884 "you will get out a script which you can feed to guestfish to perform the "
11885 "same set of actions."
11886 msgstr ""
11887
11888 # type: textblock
11889 #: ../src/guestfs-actions.pod:4546 ../fish/guestfish-actions.pod:3523
11890 msgid ""
11891 "If you want to trace C API calls into libguestfs (and other libraries) then "
11892 "possibly a better way is to use the external ltrace(1) command."
11893 msgstr ""
11894
11895 # type: textblock
11896 #: ../src/guestfs-actions.pod:4550 ../fish/guestfish-actions.pod:3527
11897 msgid ""
11898 "Command traces are disabled unless the environment variable "
11899 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
11900 msgstr ""
11901
11902 # type: =head2
11903 #: ../src/guestfs-actions.pod:4555
11904 msgid "guestfs_set_verbose"
11905 msgstr ""
11906
11907 # type: verbatim
11908 #: ../src/guestfs-actions.pod:4557
11909 #, no-wrap
11910 msgid ""
11911 " int guestfs_set_verbose (guestfs_h *g,\n"
11912 "\t\tint verbose);\n"
11913 "\n"
11914 msgstr ""
11915
11916 # type: textblock
11917 #: ../src/guestfs-actions.pod:4560 ../fish/guestfish-actions.pod:3536
11918 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
11919 msgstr ""
11920
11921 # type: textblock
11922 #: ../src/guestfs-actions.pod:4562 ../fish/guestfish-actions.pod:3538
11923 msgid ""
11924 "Verbose messages are disabled unless the environment variable "
11925 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
11926 msgstr ""
11927
11928 # type: =head2
11929 #: ../src/guestfs-actions.pod:4567
11930 msgid "guestfs_setcon"
11931 msgstr ""
11932
11933 # type: verbatim
11934 #: ../src/guestfs-actions.pod:4569
11935 #, no-wrap
11936 msgid ""
11937 " int guestfs_setcon (guestfs_h *g,\n"
11938 "\t\tconst char *context);\n"
11939 "\n"
11940 msgstr ""
11941
11942 # type: textblock
11943 #: ../src/guestfs-actions.pod:4572 ../fish/guestfish-actions.pod:3545
11944 msgid ""
11945 "This sets the SELinux security context of the daemon to the string "
11946 "C<context>."
11947 msgstr ""
11948
11949 # type: textblock
11950 #: ../src/guestfs-actions.pod:4575 ../fish/guestfish-actions.pod:3548
11951 msgid "See the documentation about SELINUX in L<guestfs(3)>."
11952 msgstr ""
11953
11954 # type: =head2
11955 #: ../src/guestfs-actions.pod:4579
11956 msgid "guestfs_setxattr"
11957 msgstr ""
11958
11959 # type: verbatim
11960 #: ../src/guestfs-actions.pod:4581
11961 #, no-wrap
11962 msgid ""
11963 " int guestfs_setxattr (guestfs_h *g,\n"
11964 "\t\tconst char *xattr,\n"
11965 "\t\tconst char *val,\n"
11966 "\t\tint vallen,\n"
11967 "\t\tconst char *path);\n"
11968 "\n"
11969 msgstr ""
11970
11971 # type: textblock
11972 #: ../src/guestfs-actions.pod:4587 ../fish/guestfish-actions.pod:3554
11973 msgid ""
11974 "This call sets the extended attribute named C<xattr> of the file C<path> to "
11975 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
11976 msgstr ""
11977
11978 # type: textblock
11979 #: ../src/guestfs-actions.pod:4591
11980 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
11981 msgstr ""
11982
11983 # type: =head2
11984 #: ../src/guestfs-actions.pod:4595
11985 msgid "guestfs_sfdisk"
11986 msgstr ""
11987
11988 # type: verbatim
11989 #: ../src/guestfs-actions.pod:4597
11990 #, no-wrap
11991 msgid ""
11992 " int guestfs_sfdisk (guestfs_h *g,\n"
11993 "\t\tconst char *device,\n"
11994 "\t\tint cyls,\n"
11995 "\t\tint heads,\n"
11996 "\t\tint sectors,\n"
11997 "\t\tchar *const *lines);\n"
11998 "\n"
11999 msgstr ""
12000
12001 # type: textblock
12002 #: ../src/guestfs-actions.pod:4604 ../fish/guestfish-actions.pod:3564
12003 msgid ""
12004 "This is a direct interface to the L<sfdisk(8)> program for creating "
12005 "partitions on block devices."
12006 msgstr ""
12007
12008 # type: textblock
12009 #: ../src/guestfs-actions.pod:4607 ../fish/guestfish-actions.pod:3567
12010 msgid "C<device> should be a block device, for example C</dev/sda>."
12011 msgstr ""
12012
12013 # type: textblock
12014 #: ../src/guestfs-actions.pod:4609 ../fish/guestfish-actions.pod:3569
12015 msgid ""
12016 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12017 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12018 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12019 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12020 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12021 "the kernel) cannot work out the right geometry and you will need to tell it."
12022 msgstr ""
12023
12024 # type: textblock
12025 #: ../src/guestfs-actions.pod:4617 ../fish/guestfish-actions.pod:3577
12026 msgid ""
12027 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12028 "refer to the L<sfdisk(8)> manpage."
12029 msgstr ""
12030
12031 # type: textblock
12032 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3580
12033 msgid ""
12034 "To create a single partition occupying the whole disk, you would pass "
12035 "C<lines> as a single element list, when the single element being the string "
12036 "C<,> (comma)."
12037 msgstr ""
12038
12039 # type: textblock
12040 #: ../src/guestfs-actions.pod:4624
12041 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12042 msgstr ""
12043
12044 # type: =head2
12045 #: ../src/guestfs-actions.pod:4632
12046 msgid "guestfs_sfdiskM"
12047 msgstr ""
12048
12049 # type: verbatim
12050 #: ../src/guestfs-actions.pod:4634
12051 #, no-wrap
12052 msgid ""
12053 " int guestfs_sfdiskM (guestfs_h *g,\n"
12054 "\t\tconst char *device,\n"
12055 "\t\tchar *const *lines);\n"
12056 "\n"
12057 msgstr ""
12058
12059 # type: textblock
12060 #: ../src/guestfs-actions.pod:4638
12061 msgid ""
12062 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12063 "partition sizes are specified in megabytes only (rounded to the nearest "
12064 "cylinder) and you don't need to specify the cyls, heads and sectors "
12065 "parameters which were rarely if ever used anyway."
12066 msgstr ""
12067
12068 # type: textblock
12069 #: ../src/guestfs-actions.pod:4644
12070 msgid ""
12071 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12072 "C<guestfs_part_disk>"
12073 msgstr ""
12074
12075 # type: =head2
12076 #: ../src/guestfs-actions.pod:4652
12077 msgid "guestfs_sfdisk_N"
12078 msgstr ""
12079
12080 # type: verbatim
12081 #: ../src/guestfs-actions.pod:4654
12082 #, no-wrap
12083 msgid ""
12084 " int guestfs_sfdisk_N (guestfs_h *g,\n"
12085 "\t\tconst char *device,\n"
12086 "\t\tint partnum,\n"
12087 "\t\tint cyls,\n"
12088 "\t\tint heads,\n"
12089 "\t\tint sectors,\n"
12090 "\t\tconst char *line);\n"
12091 "\n"
12092 msgstr ""
12093
12094 # type: textblock
12095 #: ../src/guestfs-actions.pod:4662 ../fish/guestfish-actions.pod:3610
12096 msgid ""
12097 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12098 "(note: C<n> counts from 1)."
12099 msgstr ""
12100
12101 # type: textblock
12102 #: ../src/guestfs-actions.pod:4665
12103 msgid ""
12104 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12105 "for the cyls/heads/sectors parameters."
12106 msgstr ""
12107
12108 # type: textblock
12109 #: ../src/guestfs-actions.pod:4668
12110 msgid "See also: C<guestfs_part_add>"
12111 msgstr ""
12112
12113 # type: =head2
12114 #: ../src/guestfs-actions.pod:4675
12115 msgid "guestfs_sfdisk_disk_geometry"
12116 msgstr ""
12117
12118 # type: verbatim
12119 #: ../src/guestfs-actions.pod:4677
12120 #, no-wrap
12121 msgid ""
12122 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12123 "\t\tconst char *device);\n"
12124 "\n"
12125 msgstr ""
12126
12127 # type: textblock
12128 #: ../src/guestfs-actions.pod:4680
12129 msgid ""
12130 "This displays the disk geometry of C<device> read from the partition table.  "
12131 "Especially in the case where the underlying block device has been resized, "
12132 "this can be different from the kernel's idea of the geometry (see "
12133 "C<guestfs_sfdisk_kernel_geometry>)."
12134 msgstr ""
12135
12136 # type: textblock
12137 #: ../src/guestfs-actions.pod:4685 ../src/guestfs-actions.pod:4698 ../fish/guestfish-actions.pod:3630 ../fish/guestfish-actions.pod:3639
12138 msgid "The result is in human-readable format, and not designed to be parsed."
12139 msgstr ""
12140
12141 # type: =head2
12142 #: ../src/guestfs-actions.pod:4691
12143 msgid "guestfs_sfdisk_kernel_geometry"
12144 msgstr ""
12145
12146 # type: verbatim
12147 #: ../src/guestfs-actions.pod:4693
12148 #, no-wrap
12149 msgid ""
12150 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12151 "\t\tconst char *device);\n"
12152 "\n"
12153 msgstr ""
12154
12155 # type: textblock
12156 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3637
12157 msgid "This displays the kernel's idea of the geometry of C<device>."
12158 msgstr ""
12159
12160 # type: =head2
12161 #: ../src/guestfs-actions.pod:4704
12162 msgid "guestfs_sfdisk_l"
12163 msgstr ""
12164
12165 # type: verbatim
12166 #: ../src/guestfs-actions.pod:4706
12167 #, no-wrap
12168 msgid ""
12169 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
12170 "\t\tconst char *device);\n"
12171 "\n"
12172 msgstr ""
12173
12174 # type: textblock
12175 #: ../src/guestfs-actions.pod:4709 ../fish/guestfish-actions.pod:3646
12176 msgid ""
12177 "This displays the partition table on C<device>, in the human-readable output "
12178 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12179 msgstr ""
12180
12181 # type: textblock
12182 #: ../src/guestfs-actions.pod:4713
12183 msgid "See also: C<guestfs_part_list>"
12184 msgstr ""
12185
12186 # type: =head2
12187 #: ../src/guestfs-actions.pod:4718
12188 msgid "guestfs_sh"
12189 msgstr ""
12190
12191 # type: verbatim
12192 #: ../src/guestfs-actions.pod:4720
12193 #, no-wrap
12194 msgid ""
12195 " char *guestfs_sh (guestfs_h *g,\n"
12196 "\t\tconst char *command);\n"
12197 "\n"
12198 msgstr ""
12199
12200 # type: textblock
12201 #: ../src/guestfs-actions.pod:4723 ../fish/guestfish-actions.pod:3656
12202 msgid ""
12203 "This call runs a command from the guest filesystem via the guest's "
12204 "C</bin/sh>."
12205 msgstr ""
12206
12207 # type: textblock
12208 #: ../src/guestfs-actions.pod:4726
12209 msgid "This is like C<guestfs_command>, but passes the command to:"
12210 msgstr ""
12211
12212 # type: verbatim
12213 #: ../src/guestfs-actions.pod:4728 ../fish/guestfish-actions.pod:3661
12214 #, no-wrap
12215 msgid ""
12216 " /bin/sh -c \"command\"\n"
12217 "\n"
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3663
12222 msgid ""
12223 "Depending on the guest's shell, this usually results in wildcards being "
12224 "expanded, shell expressions being interpolated and so on."
12225 msgstr ""
12226
12227 # type: textblock
12228 #: ../src/guestfs-actions.pod:4734
12229 msgid "All the provisos about C<guestfs_command> apply to this call."
12230 msgstr ""
12231
12232 # type: =head2
12233 #: ../src/guestfs-actions.pod:4739
12234 msgid "guestfs_sh_lines"
12235 msgstr ""
12236
12237 # type: verbatim
12238 #: ../src/guestfs-actions.pod:4741
12239 #, no-wrap
12240 msgid ""
12241 " char **guestfs_sh_lines (guestfs_h *g,\n"
12242 "\t\tconst char *command);\n"
12243 "\n"
12244 msgstr ""
12245
12246 # type: textblock
12247 #: ../src/guestfs-actions.pod:4744
12248 msgid ""
12249 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12250 "lines."
12251 msgstr ""
12252
12253 # type: textblock
12254 #: ../src/guestfs-actions.pod:4747
12255 msgid "See also: C<guestfs_command_lines>"
12256 msgstr ""
12257
12258 # type: =head2
12259 #: ../src/guestfs-actions.pod:4753
12260 msgid "guestfs_sleep"
12261 msgstr ""
12262
12263 # type: verbatim
12264 #: ../src/guestfs-actions.pod:4755
12265 #, no-wrap
12266 msgid ""
12267 " int guestfs_sleep (guestfs_h *g,\n"
12268 "\t\tint secs);\n"
12269 "\n"
12270 msgstr ""
12271
12272 # type: textblock
12273 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3682
12274 msgid "Sleep for C<secs> seconds."
12275 msgstr ""
12276
12277 # type: =head2
12278 #: ../src/guestfs-actions.pod:4762 ../src/guestfs-structs.pod:109
12279 msgid "guestfs_stat"
12280 msgstr ""
12281
12282 # type: verbatim
12283 #: ../src/guestfs-actions.pod:4764
12284 #, no-wrap
12285 msgid ""
12286 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12287 "\t\tconst char *path);\n"
12288 "\n"
12289 msgstr ""
12290
12291 # type: textblock
12292 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3690
12293 msgid "This is the same as the C<stat(2)> system call."
12294 msgstr ""
12295
12296 # type: =head2
12297 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-structs.pod:135
12298 msgid "guestfs_statvfs"
12299 msgstr ""
12300
12301 # type: verbatim
12302 #: ../src/guestfs-actions.pod:4777
12303 #, no-wrap
12304 msgid ""
12305 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12306 "\t\tconst char *path);\n"
12307 "\n"
12308 msgstr ""
12309
12310 # type: textblock
12311 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3696
12312 msgid ""
12313 "Returns file system statistics for any mounted file system.  C<path> should "
12314 "be a file or directory in the mounted file system (typically it is the mount "
12315 "point itself, but it doesn't need to be)."
12316 msgstr ""
12317
12318 # type: textblock
12319 #: ../src/guestfs-actions.pod:4784 ../fish/guestfish-actions.pod:3700
12320 msgid "This is the same as the C<statvfs(2)> system call."
12321 msgstr ""
12322
12323 # type: textblock
12324 #: ../src/guestfs-actions.pod:4786
12325 msgid ""
12326 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12327 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12328 msgstr ""
12329
12330 # type: =head2
12331 #: ../src/guestfs-actions.pod:4790
12332 msgid "guestfs_strings"
12333 msgstr ""
12334
12335 # type: verbatim
12336 #: ../src/guestfs-actions.pod:4792
12337 #, no-wrap
12338 msgid ""
12339 " char **guestfs_strings (guestfs_h *g,\n"
12340 "\t\tconst char *path);\n"
12341 "\n"
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3706
12346 msgid ""
12347 "This runs the L<strings(1)> command on a file and returns the list of "
12348 "printable strings found."
12349 msgstr ""
12350
12351 # type: =head2
12352 #: ../src/guestfs-actions.pod:4805
12353 msgid "guestfs_strings_e"
12354 msgstr ""
12355
12356 # type: verbatim
12357 #: ../src/guestfs-actions.pod:4807
12358 #, no-wrap
12359 msgid ""
12360 " char **guestfs_strings_e (guestfs_h *g,\n"
12361 "\t\tconst char *encoding,\n"
12362 "\t\tconst char *path);\n"
12363 "\n"
12364 msgstr ""
12365
12366 # type: textblock
12367 #: ../src/guestfs-actions.pod:4811
12368 msgid ""
12369 "This is like the C<guestfs_strings> command, but allows you to specify the "
12370 "encoding of strings that are looked for in the source file C<path>."
12371 msgstr ""
12372
12373 # type: textblock
12374 #: ../src/guestfs-actions.pod:4815 ../fish/guestfish-actions.pod:3720
12375 msgid "Allowed encodings are:"
12376 msgstr ""
12377
12378 # type: =item
12379 #: ../src/guestfs-actions.pod:4819 ../fish/guestfish-actions.pod:3724
12380 msgid "s"
12381 msgstr ""
12382
12383 # type: textblock
12384 #: ../src/guestfs-actions.pod:4821
12385 msgid ""
12386 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12387 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12388 msgstr ""
12389
12390 # type: =item
12391 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3729
12392 msgid "S"
12393 msgstr ""
12394
12395 # type: textblock
12396 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3731
12397 msgid "Single 8-bit-byte characters."
12398 msgstr ""
12399
12400 # type: =item
12401 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3733
12402 msgid "b"
12403 msgstr ""
12404
12405 # type: textblock
12406 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3735
12407 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12408 msgstr ""
12409
12410 # type: =item
12411 #: ../src/guestfs-actions.pod:4833 ../fish/guestfish-actions.pod:3738
12412 msgid "l (lower case letter L)"
12413 msgstr ""
12414
12415 # type: textblock
12416 #: ../src/guestfs-actions.pod:4835 ../fish/guestfish-actions.pod:3740
12417 msgid ""
12418 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12419 "examining binaries in Windows guests."
12420 msgstr ""
12421
12422 # type: =item
12423 #: ../src/guestfs-actions.pod:4838 ../fish/guestfish-actions.pod:3743
12424 msgid "B"
12425 msgstr ""
12426
12427 # type: textblock
12428 #: ../src/guestfs-actions.pod:4840 ../fish/guestfish-actions.pod:3745
12429 msgid "32-bit big endian such as UCS-4BE."
12430 msgstr ""
12431
12432 # type: =item
12433 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3747
12434 msgid "L"
12435 msgstr ""
12436
12437 # type: textblock
12438 #: ../src/guestfs-actions.pod:4844 ../fish/guestfish-actions.pod:3749
12439 msgid "32-bit little endian such as UCS-4LE."
12440 msgstr ""
12441
12442 # type: textblock
12443 #: ../src/guestfs-actions.pod:4848 ../fish/guestfish-actions.pod:3753
12444 msgid "The returned strings are transcoded to UTF-8."
12445 msgstr ""
12446
12447 # type: =head2
12448 #: ../src/guestfs-actions.pod:4857
12449 msgid "guestfs_swapoff_device"
12450 msgstr ""
12451
12452 # type: verbatim
12453 #: ../src/guestfs-actions.pod:4859
12454 #, no-wrap
12455 msgid ""
12456 " int guestfs_swapoff_device (guestfs_h *g,\n"
12457 "\t\tconst char *device);\n"
12458 "\n"
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4862
12463 msgid ""
12464 "This command disables the libguestfs appliance swap device or partition "
12465 "named C<device>.  See C<guestfs_swapon_device>."
12466 msgstr ""
12467
12468 # type: =head2
12469 #: ../src/guestfs-actions.pod:4868
12470 msgid "guestfs_swapoff_file"
12471 msgstr ""
12472
12473 # type: verbatim
12474 #: ../src/guestfs-actions.pod:4870
12475 #, no-wrap
12476 msgid ""
12477 " int guestfs_swapoff_file (guestfs_h *g,\n"
12478 "\t\tconst char *file);\n"
12479 "\n"
12480 msgstr ""
12481
12482 # type: textblock
12483 #: ../src/guestfs-actions.pod:4873 ../fish/guestfish-actions.pod:3770
12484 msgid "This command disables the libguestfs appliance swap on file."
12485 msgstr ""
12486
12487 # type: =head2
12488 #: ../src/guestfs-actions.pod:4877
12489 msgid "guestfs_swapoff_label"
12490 msgstr ""
12491
12492 # type: verbatim
12493 #: ../src/guestfs-actions.pod:4879
12494 #, no-wrap
12495 msgid ""
12496 " int guestfs_swapoff_label (guestfs_h *g,\n"
12497 "\t\tconst char *label);\n"
12498 "\n"
12499 msgstr ""
12500
12501 # type: textblock
12502 #: ../src/guestfs-actions.pod:4882 ../fish/guestfish-actions.pod:3776
12503 msgid ""
12504 "This command disables the libguestfs appliance swap on labeled swap "
12505 "partition."
12506 msgstr ""
12507
12508 # type: =head2
12509 #: ../src/guestfs-actions.pod:4887
12510 msgid "guestfs_swapoff_uuid"
12511 msgstr ""
12512
12513 # type: verbatim
12514 #: ../src/guestfs-actions.pod:4889
12515 #, no-wrap
12516 msgid ""
12517 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12518 "\t\tconst char *uuid);\n"
12519 "\n"
12520 msgstr ""
12521
12522 # type: textblock
12523 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3783
12524 msgid ""
12525 "This command disables the libguestfs appliance swap partition with the given "
12526 "UUID."
12527 msgstr ""
12528
12529 # type: =head2
12530 #: ../src/guestfs-actions.pod:4897
12531 msgid "guestfs_swapon_device"
12532 msgstr ""
12533
12534 # type: verbatim
12535 #: ../src/guestfs-actions.pod:4899
12536 #, no-wrap
12537 msgid ""
12538 " int guestfs_swapon_device (guestfs_h *g,\n"
12539 "\t\tconst char *device);\n"
12540 "\n"
12541 msgstr ""
12542
12543 # type: textblock
12544 #: ../src/guestfs-actions.pod:4902
12545 msgid ""
12546 "This command enables the libguestfs appliance to use the swap device or "
12547 "partition named C<device>.  The increased memory is made available for all "
12548 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12549 msgstr ""
12550
12551 # type: textblock
12552 #: ../src/guestfs-actions.pod:4907 ../fish/guestfish-actions.pod:3795
12553 msgid ""
12554 "Note that you should not swap to existing guest swap partitions unless you "
12555 "know what you are doing.  They may contain hibernation information, or other "
12556 "information that the guest doesn't want you to trash.  You also risk leaking "
12557 "information about the host to the guest this way.  Instead, attach a new "
12558 "host device to the guest and swap on that."
12559 msgstr ""
12560
12561 # type: =head2
12562 #: ../src/guestfs-actions.pod:4916
12563 msgid "guestfs_swapon_file"
12564 msgstr ""
12565
12566 # type: verbatim
12567 #: ../src/guestfs-actions.pod:4918
12568 #, no-wrap
12569 msgid ""
12570 " int guestfs_swapon_file (guestfs_h *g,\n"
12571 "\t\tconst char *file);\n"
12572 "\n"
12573 msgstr ""
12574
12575 # type: textblock
12576 #: ../src/guestfs-actions.pod:4921
12577 msgid ""
12578 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12579 "notes."
12580 msgstr ""
12581
12582 # type: =head2
12583 #: ../src/guestfs-actions.pod:4926
12584 msgid "guestfs_swapon_label"
12585 msgstr ""
12586
12587 # type: verbatim
12588 #: ../src/guestfs-actions.pod:4928
12589 #, no-wrap
12590 msgid ""
12591 " int guestfs_swapon_label (guestfs_h *g,\n"
12592 "\t\tconst char *label);\n"
12593 "\n"
12594 msgstr ""
12595
12596 # type: textblock
12597 #: ../src/guestfs-actions.pod:4931
12598 msgid ""
12599 "This command enables swap to a labeled swap partition.  See "
12600 "C<guestfs_swapon_device> for other notes."
12601 msgstr ""
12602
12603 # type: =head2
12604 #: ../src/guestfs-actions.pod:4936
12605 msgid "guestfs_swapon_uuid"
12606 msgstr ""
12607
12608 # type: verbatim
12609 #: ../src/guestfs-actions.pod:4938
12610 #, no-wrap
12611 msgid ""
12612 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12613 "\t\tconst char *uuid);\n"
12614 "\n"
12615 msgstr ""
12616
12617 # type: textblock
12618 #: ../src/guestfs-actions.pod:4941
12619 msgid ""
12620 "This command enables swap to a swap partition with the given UUID.  See "
12621 "C<guestfs_swapon_device> for other notes."
12622 msgstr ""
12623
12624 # type: =head2
12625 #: ../src/guestfs-actions.pod:4946
12626 msgid "guestfs_sync"
12627 msgstr ""
12628
12629 # type: verbatim
12630 #: ../src/guestfs-actions.pod:4948
12631 #, no-wrap
12632 msgid ""
12633 " int guestfs_sync (guestfs_h *g);\n"
12634 "\n"
12635 msgstr ""
12636
12637 # type: textblock
12638 #: ../src/guestfs-actions.pod:4950 ../fish/guestfish-actions.pod:3827
12639 msgid ""
12640 "This syncs the disk, so that any writes are flushed through to the "
12641 "underlying disk image."
12642 msgstr ""
12643
12644 # type: textblock
12645 #: ../src/guestfs-actions.pod:4953 ../fish/guestfish-actions.pod:3830
12646 msgid ""
12647 "You should always call this if you have modified a disk image, before "
12648 "closing the handle."
12649 msgstr ""
12650
12651 # type: =head2
12652 #: ../src/guestfs-actions.pod:4958
12653 msgid "guestfs_tail"
12654 msgstr ""
12655
12656 # type: verbatim
12657 #: ../src/guestfs-actions.pod:4960
12658 #, no-wrap
12659 msgid ""
12660 " char **guestfs_tail (guestfs_h *g,\n"
12661 "\t\tconst char *path);\n"
12662 "\n"
12663 msgstr ""
12664
12665 # type: textblock
12666 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3837
12667 msgid "This command returns up to the last 10 lines of a file as a list of strings."
12668 msgstr ""
12669
12670 # type: =head2
12671 #: ../src/guestfs-actions.pod:4973
12672 msgid "guestfs_tail_n"
12673 msgstr ""
12674
12675 # type: verbatim
12676 #: ../src/guestfs-actions.pod:4975
12677 #, no-wrap
12678 msgid ""
12679 " char **guestfs_tail_n (guestfs_h *g,\n"
12680 "\t\tint nrlines,\n"
12681 "\t\tconst char *path);\n"
12682 "\n"
12683 msgstr ""
12684
12685 # type: textblock
12686 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3847
12687 msgid ""
12688 "If the parameter C<nrlines> is a positive number, this returns the last "
12689 "C<nrlines> lines of the file C<path>."
12690 msgstr ""
12691
12692 # type: textblock
12693 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3850
12694 msgid ""
12695 "If the parameter C<nrlines> is a negative number, this returns lines from "
12696 "the file C<path>, starting with the C<-nrlines>th line."
12697 msgstr ""
12698
12699 # type: =head2
12700 #: ../src/guestfs-actions.pod:4994
12701 msgid "guestfs_tar_in"
12702 msgstr ""
12703
12704 # type: verbatim
12705 #: ../src/guestfs-actions.pod:4996
12706 #, no-wrap
12707 msgid ""
12708 " int guestfs_tar_in (guestfs_h *g,\n"
12709 "\t\tconst char *tarfile,\n"
12710 "\t\tconst char *directory);\n"
12711 "\n"
12712 msgstr ""
12713
12714 # type: textblock
12715 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3862
12716 msgid ""
12717 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
12718 "tar file) into C<directory>."
12719 msgstr ""
12720
12721 # type: textblock
12722 #: ../src/guestfs-actions.pod:5003
12723 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
12724 msgstr ""
12725
12726 # type: =head2
12727 #: ../src/guestfs-actions.pod:5008
12728 msgid "guestfs_tar_out"
12729 msgstr ""
12730
12731 # type: verbatim
12732 #: ../src/guestfs-actions.pod:5010
12733 #, no-wrap
12734 msgid ""
12735 " int guestfs_tar_out (guestfs_h *g,\n"
12736 "\t\tconst char *directory,\n"
12737 "\t\tconst char *tarfile);\n"
12738 "\n"
12739 msgstr ""
12740
12741 # type: textblock
12742 #: ../src/guestfs-actions.pod:5014 ../fish/guestfish-actions.pod:3874
12743 msgid ""
12744 "This command packs the contents of C<directory> and downloads it to local "
12745 "file C<tarfile>."
12746 msgstr ""
12747
12748 # type: textblock
12749 #: ../src/guestfs-actions.pod:5017
12750 msgid ""
12751 "To download a compressed tarball, use C<guestfs_tgz_out> or "
12752 "C<guestfs_txz_out>."
12753 msgstr ""
12754
12755 # type: =head2
12756 #: ../src/guestfs-actions.pod:5022
12757 msgid "guestfs_tgz_in"
12758 msgstr ""
12759
12760 # type: verbatim
12761 #: ../src/guestfs-actions.pod:5024
12762 #, no-wrap
12763 msgid ""
12764 " int guestfs_tgz_in (guestfs_h *g,\n"
12765 "\t\tconst char *tarball,\n"
12766 "\t\tconst char *directory);\n"
12767 "\n"
12768 msgstr ""
12769
12770 # type: textblock
12771 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3886
12772 msgid ""
12773 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
12774 "tar file) into C<directory>."
12775 msgstr ""
12776
12777 # type: textblock
12778 #: ../src/guestfs-actions.pod:5031
12779 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
12780 msgstr ""
12781
12782 # type: =head2
12783 #: ../src/guestfs-actions.pod:5035
12784 msgid "guestfs_tgz_out"
12785 msgstr ""
12786
12787 # type: verbatim
12788 #: ../src/guestfs-actions.pod:5037
12789 #, no-wrap
12790 msgid ""
12791 " int guestfs_tgz_out (guestfs_h *g,\n"
12792 "\t\tconst char *directory,\n"
12793 "\t\tconst char *tarball);\n"
12794 "\n"
12795 msgstr ""
12796
12797 # type: textblock
12798 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3897
12799 msgid ""
12800 "This command packs the contents of C<directory> and downloads it to local "
12801 "file C<tarball>."
12802 msgstr ""
12803
12804 # type: textblock
12805 #: ../src/guestfs-actions.pod:5044
12806 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
12807 msgstr ""
12808
12809 # type: =head2
12810 #: ../src/guestfs-actions.pod:5048
12811 msgid "guestfs_touch"
12812 msgstr ""
12813
12814 # type: verbatim
12815 #: ../src/guestfs-actions.pod:5050
12816 #, no-wrap
12817 msgid ""
12818 " int guestfs_touch (guestfs_h *g,\n"
12819 "\t\tconst char *path);\n"
12820 "\n"
12821 msgstr ""
12822
12823 # type: textblock
12824 #: ../src/guestfs-actions.pod:5053 ../fish/guestfish-actions.pod:3908
12825 msgid ""
12826 "Touch acts like the L<touch(1)> command.  It can be used to update the "
12827 "timestamps on a file, or, if the file does not exist, to create a new "
12828 "zero-length file."
12829 msgstr ""
12830
12831 # type: textblock
12832 #: ../src/guestfs-actions.pod:5057 ../fish/guestfish-actions.pod:3912
12833 msgid ""
12834 "This command only works on regular files, and will fail on other file types "
12835 "such as directories, symbolic links, block special etc."
12836 msgstr ""
12837
12838 # type: =head2
12839 #: ../src/guestfs-actions.pod:5062
12840 msgid "guestfs_truncate"
12841 msgstr ""
12842
12843 # type: verbatim
12844 #: ../src/guestfs-actions.pod:5064
12845 #, no-wrap
12846 msgid ""
12847 " int guestfs_truncate (guestfs_h *g,\n"
12848 "\t\tconst char *path);\n"
12849 "\n"
12850 msgstr ""
12851
12852 # type: textblock
12853 #: ../src/guestfs-actions.pod:5067 ../fish/guestfish-actions.pod:3919
12854 msgid ""
12855 "This command truncates C<path> to a zero-length file.  The file must exist "
12856 "already."
12857 msgstr ""
12858
12859 # type: =head2
12860 #: ../src/guestfs-actions.pod:5072
12861 msgid "guestfs_truncate_size"
12862 msgstr ""
12863
12864 # type: verbatim
12865 #: ../src/guestfs-actions.pod:5074
12866 #, no-wrap
12867 msgid ""
12868 " int guestfs_truncate_size (guestfs_h *g,\n"
12869 "\t\tconst char *path,\n"
12870 "\t\tint64_t size);\n"
12871 "\n"
12872 msgstr ""
12873
12874 # type: textblock
12875 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3926
12876 msgid ""
12877 "This command truncates C<path> to size C<size> bytes.  The file must exist "
12878 "already."
12879 msgstr ""
12880
12881 # type: textblock
12882 #: ../src/guestfs-actions.pod:5081
12883 msgid ""
12884 "If the current file size is less than C<size> then the file is extended to "
12885 "the required size with zero bytes.  This creates a sparse file (ie. disk "
12886 "blocks are not allocated for the file until you write to it).  To create a "
12887 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
12888 msgstr ""
12889
12890 # type: =head2
12891 #: ../src/guestfs-actions.pod:5089
12892 msgid "guestfs_tune2fs_l"
12893 msgstr ""
12894
12895 # type: verbatim
12896 #: ../src/guestfs-actions.pod:5091
12897 #, no-wrap
12898 msgid ""
12899 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
12900 "\t\tconst char *device);\n"
12901 "\n"
12902 msgstr ""
12903
12904 # type: textblock
12905 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3939
12906 msgid ""
12907 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
12908 "C<device>."
12909 msgstr ""
12910
12911 # type: textblock
12912 #: ../src/guestfs-actions.pod:5097 ../fish/guestfish-actions.pod:3942
12913 msgid ""
12914 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
12915 "for more details.  The list of fields returned isn't clearly defined, and "
12916 "depends on both the version of C<tune2fs> that libguestfs was built against, "
12917 "and the filesystem itself."
12918 msgstr ""
12919
12920 # type: =head2
12921 #: ../src/guestfs-actions.pod:5108
12922 msgid "guestfs_txz_in"
12923 msgstr ""
12924
12925 # type: verbatim
12926 #: ../src/guestfs-actions.pod:5110
12927 #, no-wrap
12928 msgid ""
12929 " int guestfs_txz_in (guestfs_h *g,\n"
12930 "\t\tconst char *tarball,\n"
12931 "\t\tconst char *directory);\n"
12932 "\n"
12933 msgstr ""
12934
12935 # type: textblock
12936 #: ../src/guestfs-actions.pod:5114 ../fish/guestfish-actions.pod:3951
12937 msgid ""
12938 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
12939 "tar file) into C<directory>."
12940 msgstr ""
12941
12942 # type: =head2
12943 #: ../src/guestfs-actions.pod:5119
12944 msgid "guestfs_txz_out"
12945 msgstr ""
12946
12947 # type: verbatim
12948 #: ../src/guestfs-actions.pod:5121
12949 #, no-wrap
12950 msgid ""
12951 " int guestfs_txz_out (guestfs_h *g,\n"
12952 "\t\tconst char *directory,\n"
12953 "\t\tconst char *tarball);\n"
12954 "\n"
12955 msgstr ""
12956
12957 # type: textblock
12958 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3960
12959 msgid ""
12960 "This command packs the contents of C<directory> and downloads it to local "
12961 "file C<tarball> (as an xz compressed tar archive)."
12962 msgstr ""
12963
12964 # type: =head2
12965 #: ../src/guestfs-actions.pod:5130
12966 msgid "guestfs_umask"
12967 msgstr ""
12968
12969 # type: verbatim
12970 #: ../src/guestfs-actions.pod:5132
12971 #, no-wrap
12972 msgid ""
12973 " int guestfs_umask (guestfs_h *g,\n"
12974 "\t\tint mask);\n"
12975 "\n"
12976 msgstr ""
12977
12978 # type: textblock
12979 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3969
12980 msgid ""
12981 "This function sets the mask used for creating new files and device nodes to "
12982 "C<mask & 0777>."
12983 msgstr ""
12984
12985 # type: textblock
12986 #: ../src/guestfs-actions.pod:5138 ../fish/guestfish-actions.pod:3972
12987 msgid ""
12988 "Typical umask values would be C<022> which creates new files with "
12989 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
12990 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
12991 msgstr ""
12992
12993 # type: textblock
12994 #: ../src/guestfs-actions.pod:5143 ../fish/guestfish-actions.pod:3977
12995 msgid ""
12996 "The default umask is C<022>.  This is important because it means that "
12997 "directories and device nodes will be created with C<0644> or C<0755> mode "
12998 "even if you specify C<0777>."
12999 msgstr ""
13000
13001 # type: textblock
13002 #: ../src/guestfs-actions.pod:5147
13003 msgid ""
13004 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13005 "C<guestfs_mkdir>."
13006 msgstr ""
13007
13008 # type: textblock
13009 #: ../src/guestfs-actions.pod:5150 ../fish/guestfish-actions.pod:3984
13010 msgid "This call returns the previous umask."
13011 msgstr ""
13012
13013 # type: =head2
13014 #: ../src/guestfs-actions.pod:5154
13015 msgid "guestfs_umount"
13016 msgstr ""
13017
13018 # type: verbatim
13019 #: ../src/guestfs-actions.pod:5156
13020 #, no-wrap
13021 msgid ""
13022 " int guestfs_umount (guestfs_h *g,\n"
13023 "\t\tconst char *pathordevice);\n"
13024 "\n"
13025 msgstr ""
13026
13027 # type: textblock
13028 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3992
13029 msgid ""
13030 "This unmounts the given filesystem.  The filesystem may be specified either "
13031 "by its mountpoint (path) or the device which contains the filesystem."
13032 msgstr ""
13033
13034 # type: =head2
13035 #: ../src/guestfs-actions.pod:5165
13036 msgid "guestfs_umount_all"
13037 msgstr ""
13038
13039 # type: verbatim
13040 #: ../src/guestfs-actions.pod:5167
13041 #, no-wrap
13042 msgid ""
13043 " int guestfs_umount_all (guestfs_h *g);\n"
13044 "\n"
13045 msgstr ""
13046
13047 # type: textblock
13048 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:4002
13049 msgid "This unmounts all mounted filesystems."
13050 msgstr ""
13051
13052 # type: textblock
13053 #: ../src/guestfs-actions.pod:5171 ../fish/guestfish-actions.pod:4004
13054 msgid "Some internal mounts are not unmounted by this call."
13055 msgstr ""
13056
13057 # type: =head2
13058 #: ../src/guestfs-actions.pod:5175
13059 msgid "guestfs_upload"
13060 msgstr ""
13061
13062 # type: verbatim
13063 #: ../src/guestfs-actions.pod:5177
13064 #, no-wrap
13065 msgid ""
13066 " int guestfs_upload (guestfs_h *g,\n"
13067 "\t\tconst char *filename,\n"
13068 "\t\tconst char *remotefilename);\n"
13069 "\n"
13070 msgstr ""
13071
13072 # type: textblock
13073 #: ../src/guestfs-actions.pod:5181 ../src/guestfs-actions.pod:5197 ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4023
13074 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13075 msgstr ""
13076
13077 # type: textblock
13078 #: ../src/guestfs-actions.pod:5186
13079 msgid "See also C<guestfs_download>."
13080 msgstr ""
13081
13082 # type: =head2
13083 #: ../src/guestfs-actions.pod:5190
13084 msgid "guestfs_upload_offset"
13085 msgstr ""
13086
13087 # type: verbatim
13088 #: ../src/guestfs-actions.pod:5192
13089 #, no-wrap
13090 msgid ""
13091 " int guestfs_upload_offset (guestfs_h *g,\n"
13092 "\t\tconst char *filename,\n"
13093 "\t\tconst char *remotefilename,\n"
13094 "\t\tint64_t offset);\n"
13095 "\n"
13096 msgstr ""
13097
13098 # type: textblock
13099 #: ../src/guestfs-actions.pod:5200 ../fish/guestfish-actions.pod:4026
13100 msgid ""
13101 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13102 "The intention is to overwrite parts of existing files or devices, although "
13103 "if a non-existant file is specified then it is created with a \"hole\" "
13104 "before C<offset>.  The size of the data written is implicit in the size of "
13105 "the source C<filename>."
13106 msgstr ""
13107
13108 # type: textblock
13109 #: ../src/guestfs-actions.pod:5207
13110 msgid ""
13111 "Note that there is no limit on the amount of data that can be uploaded with "
13112 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13113 "full amount unless an error occurs."
13114 msgstr ""
13115
13116 # type: textblock
13117 #: ../src/guestfs-actions.pod:5212
13118 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13119 msgstr ""
13120
13121 # type: =head2
13122 #: ../src/guestfs-actions.pod:5216
13123 msgid "guestfs_utimens"
13124 msgstr ""
13125
13126 # type: verbatim
13127 #: ../src/guestfs-actions.pod:5218
13128 #, no-wrap
13129 msgid ""
13130 " int guestfs_utimens (guestfs_h *g,\n"
13131 "\t\tconst char *path,\n"
13132 "\t\tint64_t atsecs,\n"
13133 "\t\tint64_t atnsecs,\n"
13134 "\t\tint64_t mtsecs,\n"
13135 "\t\tint64_t mtnsecs);\n"
13136 "\n"
13137 msgstr ""
13138
13139 # type: textblock
13140 #: ../src/guestfs-actions.pod:5225 ../fish/guestfish-actions.pod:4046
13141 msgid "This command sets the timestamps of a file with nanosecond precision."
13142 msgstr ""
13143
13144 # type: textblock
13145 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:4049
13146 msgid ""
13147 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13148 "from the epoch."
13149 msgstr ""
13150
13151 # type: textblock
13152 #: ../src/guestfs-actions.pod:5231 ../fish/guestfish-actions.pod:4052
13153 msgid ""
13154 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13155 "nanoseconds from the epoch."
13156 msgstr ""
13157
13158 # type: textblock
13159 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:4055
13160 msgid ""
13161 "If the C<*nsecs> field contains the special value C<-1> then the "
13162 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13163 "ignored in this case)."
13164 msgstr ""
13165
13166 # type: textblock
13167 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:4059
13168 msgid ""
13169 "If the C<*nsecs> field contains the special value C<-2> then the "
13170 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13171 "in this case)."
13172 msgstr ""
13173
13174 # type: =head2
13175 #: ../src/guestfs-actions.pod:5244 ../src/guestfs-structs.pod:175
13176 msgid "guestfs_version"
13177 msgstr ""
13178
13179 # type: verbatim
13180 #: ../src/guestfs-actions.pod:5246
13181 #, no-wrap
13182 msgid ""
13183 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
13184 "\n"
13185 msgstr ""
13186
13187 # type: textblock
13188 #: ../src/guestfs-actions.pod:5248 ../fish/guestfish-actions.pod:4067
13189 msgid "Return the libguestfs version number that the program is linked against."
13190 msgstr ""
13191
13192 # type: textblock
13193 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:4070
13194 msgid ""
13195 "Note that because of dynamic linking this is not necessarily the version of "
13196 "libguestfs that you compiled against.  You can compile the program, and then "
13197 "at runtime dynamically link against a completely different C<libguestfs.so> "
13198 "library."
13199 msgstr ""
13200
13201 # type: textblock
13202 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:4075
13203 msgid ""
13204 "This call was added in version C<1.0.58>.  In previous versions of "
13205 "libguestfs there was no way to get the version number.  From C code you can "
13206 "use dynamic linker functions to find out if this symbol exists (if it "
13207 "doesn't, then it's an earlier version)."
13208 msgstr ""
13209
13210 # type: textblock
13211 #: ../src/guestfs-actions.pod:5262 ../fish/guestfish-actions.pod:4081
13212 msgid ""
13213 "The call returns a structure with four elements.  The first three (C<major>, "
13214 "C<minor> and C<release>) are numbers and correspond to the usual version "
13215 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13216 "but may be used for distro-specific information."
13217 msgstr ""
13218
13219 # type: textblock
13220 #: ../src/guestfs-actions.pod:5268 ../fish/guestfish-actions.pod:4087
13221 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
13222 msgstr ""
13223
13224 # type: textblock
13225 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:4090
13226 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13227 msgstr ""
13228
13229 # type: textblock
13230 #: ../src/guestfs-actions.pod:5273
13231 msgid ""
13232 "I<Note:> Don't use this call to test for availability of features.  In "
13233 "enterprise distributions we backport features from later versions into "
13234 "earlier versions, making this an unreliable way to test for features.  Use "
13235 "C<guestfs_available> instead."
13236 msgstr ""
13237
13238 # type: textblock
13239 #: ../src/guestfs-actions.pod:5279
13240 msgid ""
13241 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13242 "error.  I<The caller must call C<guestfs_free_version> after use>."
13243 msgstr ""
13244
13245 # type: =head2
13246 #: ../src/guestfs-actions.pod:5283
13247 msgid "guestfs_vfs_label"
13248 msgstr ""
13249
13250 # type: verbatim
13251 #: ../src/guestfs-actions.pod:5285
13252 #, no-wrap
13253 msgid ""
13254 " char *guestfs_vfs_label (guestfs_h *g,\n"
13255 "\t\tconst char *device);\n"
13256 "\n"
13257 msgstr ""
13258
13259 # type: textblock
13260 #: ../src/guestfs-actions.pod:5288 ../fish/guestfish-actions.pod:4102
13261 msgid "This returns the filesystem label of the filesystem on C<device>."
13262 msgstr ""
13263
13264 # type: textblock
13265 #: ../src/guestfs-actions.pod:5291 ../fish/guestfish-actions.pod:4105
13266 msgid "If the filesystem is unlabeled, this returns the empty string."
13267 msgstr ""
13268
13269 # type: textblock
13270 #: ../src/guestfs-actions.pod:5293
13271 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13272 msgstr ""
13273
13274 # type: =head2
13275 #: ../src/guestfs-actions.pod:5298
13276 msgid "guestfs_vfs_type"
13277 msgstr ""
13278
13279 # type: verbatim
13280 #: ../src/guestfs-actions.pod:5300
13281 #, no-wrap
13282 msgid ""
13283 " char *guestfs_vfs_type (guestfs_h *g,\n"
13284 "\t\tconst char *device);\n"
13285 "\n"
13286 msgstr ""
13287
13288 # type: textblock
13289 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:4113
13290 msgid ""
13291 "This command gets the filesystem type corresponding to the filesystem on "
13292 "C<device>."
13293 msgstr ""
13294
13295 # type: textblock
13296 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:4116
13297 msgid ""
13298 "For most filesystems, the result is the name of the Linux VFS module which "
13299 "would be used to mount this filesystem if you mounted it without specifying "
13300 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13301 msgstr ""
13302
13303 # type: =head2
13304 #: ../src/guestfs-actions.pod:5314
13305 msgid "guestfs_vfs_uuid"
13306 msgstr ""
13307
13308 # type: verbatim
13309 #: ../src/guestfs-actions.pod:5316
13310 #, no-wrap
13311 msgid ""
13312 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13313 "\t\tconst char *device);\n"
13314 "\n"
13315 msgstr ""
13316
13317 # type: textblock
13318 #: ../src/guestfs-actions.pod:5319 ../fish/guestfish-actions.pod:4125
13319 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:4128
13324 msgid "If the filesystem does not have a UUID, this returns the empty string."
13325 msgstr ""
13326
13327 # type: textblock
13328 #: ../src/guestfs-actions.pod:5324
13329 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13330 msgstr ""
13331
13332 # type: =head2
13333 #: ../src/guestfs-actions.pod:5329
13334 msgid "guestfs_vg_activate"
13335 msgstr ""
13336
13337 # type: verbatim
13338 #: ../src/guestfs-actions.pod:5331
13339 #, no-wrap
13340 msgid ""
13341 " int guestfs_vg_activate (guestfs_h *g,\n"
13342 "\t\tint activate,\n"
13343 "\t\tchar *const *volgroups);\n"
13344 "\n"
13345 msgstr ""
13346
13347 # type: textblock
13348 #: ../src/guestfs-actions.pod:5335 ../fish/guestfish-actions.pod:4136
13349 msgid ""
13350 "This command activates or (if C<activate> is false) deactivates all logical "
13351 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13352 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13353 "deactivated, then those devices disappear."
13354 msgstr ""
13355
13356 # type: textblock
13357 #: ../src/guestfs-actions.pod:5341 ../fish/guestfish-actions.pod:4142
13358 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13359 msgstr ""
13360
13361 # type: textblock
13362 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:4144
13363 msgid ""
13364 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13365 "activated or deactivated."
13366 msgstr ""
13367
13368 # type: =head2
13369 #: ../src/guestfs-actions.pod:5348
13370 msgid "guestfs_vg_activate_all"
13371 msgstr ""
13372
13373 # type: verbatim
13374 #: ../src/guestfs-actions.pod:5350
13375 #, no-wrap
13376 msgid ""
13377 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13378 "\t\tint activate);\n"
13379 "\n"
13380 msgstr ""
13381
13382 # type: textblock
13383 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:4151
13384 msgid ""
13385 "This command activates or (if C<activate> is false) deactivates all logical "
13386 "volumes in all volume groups.  If activated, then they are made known to the "
13387 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13388 "those devices disappear."
13389 msgstr ""
13390
13391 # type: textblock
13392 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:4157
13393 msgid "This command is the same as running C<vgchange -a y|n>"
13394 msgstr ""
13395
13396 # type: =head2
13397 #: ../src/guestfs-actions.pod:5363
13398 msgid "guestfs_vgcreate"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #: ../src/guestfs-actions.pod:5365
13403 #, no-wrap
13404 msgid ""
13405 " int guestfs_vgcreate (guestfs_h *g,\n"
13406 "\t\tconst char *volgroup,\n"
13407 "\t\tchar *const *physvols);\n"
13408 "\n"
13409 msgstr ""
13410
13411 # type: textblock
13412 #: ../src/guestfs-actions.pod:5369 ../fish/guestfish-actions.pod:4163
13413 msgid ""
13414 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13415 "of physical volumes C<physvols>."
13416 msgstr ""
13417
13418 # type: =head2
13419 #: ../src/guestfs-actions.pod:5374
13420 msgid "guestfs_vglvuuids"
13421 msgstr ""
13422
13423 # type: verbatim
13424 #: ../src/guestfs-actions.pod:5376
13425 #, no-wrap
13426 msgid ""
13427 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13428 "\t\tconst char *vgname);\n"
13429 "\n"
13430 msgstr ""
13431
13432 # type: textblock
13433 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:4170
13434 msgid ""
13435 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13436 "volumes created in this volume group."
13437 msgstr ""
13438
13439 # type: textblock
13440 #: ../src/guestfs-actions.pod:5382
13441 msgid ""
13442 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13443 "associate logical volumes and volume groups."
13444 msgstr ""
13445
13446 # type: textblock
13447 #: ../src/guestfs-actions.pod:5385
13448 msgid "See also C<guestfs_vgpvuuids>."
13449 msgstr ""
13450
13451 # type: =head2
13452 #: ../src/guestfs-actions.pod:5391
13453 msgid "guestfs_vgpvuuids"
13454 msgstr ""
13455
13456 # type: verbatim
13457 #: ../src/guestfs-actions.pod:5393
13458 #, no-wrap
13459 msgid ""
13460 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13461 "\t\tconst char *vgname);\n"
13462 "\n"
13463 msgstr ""
13464
13465 # type: textblock
13466 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:4182
13467 msgid ""
13468 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13469 "volumes that this volume group resides on."
13470 msgstr ""
13471
13472 # type: textblock
13473 #: ../src/guestfs-actions.pod:5399
13474 msgid ""
13475 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13476 "associate physical volumes and volume groups."
13477 msgstr ""
13478
13479 # type: textblock
13480 #: ../src/guestfs-actions.pod:5402
13481 msgid "See also C<guestfs_vglvuuids>."
13482 msgstr ""
13483
13484 # type: =head2
13485 #: ../src/guestfs-actions.pod:5408
13486 msgid "guestfs_vgremove"
13487 msgstr ""
13488
13489 # type: verbatim
13490 #: ../src/guestfs-actions.pod:5410
13491 #, no-wrap
13492 msgid ""
13493 " int guestfs_vgremove (guestfs_h *g,\n"
13494 "\t\tconst char *vgname);\n"
13495 "\n"
13496 msgstr ""
13497
13498 # type: textblock
13499 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:4194
13500 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13501 msgstr ""
13502
13503 # type: textblock
13504 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:4196
13505 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
13506 msgstr ""
13507
13508 # type: =head2
13509 #: ../src/guestfs-actions.pod:5420
13510 msgid "guestfs_vgrename"
13511 msgstr ""
13512
13513 # type: verbatim
13514 #: ../src/guestfs-actions.pod:5422
13515 #, no-wrap
13516 msgid ""
13517 " int guestfs_vgrename (guestfs_h *g,\n"
13518 "\t\tconst char *volgroup,\n"
13519 "\t\tconst char *newvolgroup);\n"
13520 "\n"
13521 msgstr ""
13522
13523 # type: textblock
13524 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:4203
13525 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13526 msgstr ""
13527
13528 # type: =head2
13529 #: ../src/guestfs-actions.pod:5430
13530 msgid "guestfs_vgs"
13531 msgstr ""
13532
13533 # type: verbatim
13534 #: ../src/guestfs-actions.pod:5432
13535 #, no-wrap
13536 msgid ""
13537 " char **guestfs_vgs (guestfs_h *g);\n"
13538 "\n"
13539 msgstr ""
13540
13541 # type: textblock
13542 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:4209
13543 msgid ""
13544 "List all the volumes groups detected.  This is the equivalent of the "
13545 "L<vgs(8)> command."
13546 msgstr ""
13547
13548 # type: textblock
13549 #: ../src/guestfs-actions.pod:5437 ../fish/guestfish-actions.pod:4212
13550 msgid ""
13551 "This returns a list of just the volume group names that were detected "
13552 "(eg. C<VolGroup00>)."
13553 msgstr ""
13554
13555 # type: textblock
13556 #: ../src/guestfs-actions.pod:5440
13557 msgid "See also C<guestfs_vgs_full>."
13558 msgstr ""
13559
13560 # type: =head2
13561 #: ../src/guestfs-actions.pod:5446
13562 msgid "guestfs_vgs_full"
13563 msgstr ""
13564
13565 # type: verbatim
13566 #: ../src/guestfs-actions.pod:5448
13567 #, no-wrap
13568 msgid ""
13569 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13570 "\n"
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5450 ../fish/guestfish-actions.pod:4221
13575 msgid ""
13576 "List all the volumes groups detected.  This is the equivalent of the "
13577 "L<vgs(8)> command.  The \"full\" version includes all fields."
13578 msgstr ""
13579
13580 # type: textblock
13581 #: ../src/guestfs-actions.pod:5453
13582 msgid ""
13583 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
13584 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
13585 "must call C<guestfs_free_lvm_vg_list> after use>."
13586 msgstr ""
13587
13588 # type: =head2
13589 #: ../src/guestfs-actions.pod:5458
13590 msgid "guestfs_vgscan"
13591 msgstr ""
13592
13593 # type: verbatim
13594 #: ../src/guestfs-actions.pod:5460
13595 #, no-wrap
13596 msgid ""
13597 " int guestfs_vgscan (guestfs_h *g);\n"
13598 "\n"
13599 msgstr ""
13600
13601 # type: textblock
13602 #: ../src/guestfs-actions.pod:5462 ../fish/guestfish-actions.pod:4228
13603 msgid ""
13604 "This rescans all block devices and rebuilds the list of LVM physical "
13605 "volumes, volume groups and logical volumes."
13606 msgstr ""
13607
13608 # type: =head2
13609 #: ../src/guestfs-actions.pod:5467
13610 msgid "guestfs_vguuid"
13611 msgstr ""
13612
13613 # type: verbatim
13614 #: ../src/guestfs-actions.pod:5469
13615 #, no-wrap
13616 msgid ""
13617 " char *guestfs_vguuid (guestfs_h *g,\n"
13618 "\t\tconst char *vgname);\n"
13619 "\n"
13620 msgstr ""
13621
13622 # type: textblock
13623 #: ../src/guestfs-actions.pod:5472 ../fish/guestfish-actions.pod:4235
13624 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13625 msgstr ""
13626
13627 # type: =head2
13628 #: ../src/guestfs-actions.pod:5477
13629 msgid "guestfs_wait_ready"
13630 msgstr ""
13631
13632 # type: verbatim
13633 #: ../src/guestfs-actions.pod:5479
13634 #, no-wrap
13635 msgid ""
13636 " int guestfs_wait_ready (guestfs_h *g);\n"
13637 "\n"
13638 msgstr ""
13639
13640 # type: textblock
13641 #: ../src/guestfs-actions.pod:5481
13642 msgid "This function is a no op."
13643 msgstr ""
13644
13645 # type: textblock
13646 #: ../src/guestfs-actions.pod:5483
13647 msgid ""
13648 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
13649 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
13650 "is no longer necessary because C<guestfs_launch> now does the waiting."
13651 msgstr ""
13652
13653 # type: textblock
13654 #: ../src/guestfs-actions.pod:5488
13655 msgid ""
13656 "If you see any calls to this function in code then you can just remove them, "
13657 "unless you want to retain compatibility with older versions of the API."
13658 msgstr ""
13659
13660 # type: =head2
13661 #: ../src/guestfs-actions.pod:5494
13662 msgid "guestfs_wc_c"
13663 msgstr ""
13664
13665 # type: verbatim
13666 #: ../src/guestfs-actions.pod:5496
13667 #, no-wrap
13668 msgid ""
13669 " int guestfs_wc_c (guestfs_h *g,\n"
13670 "\t\tconst char *path);\n"
13671 "\n"
13672 msgstr ""
13673
13674 # type: textblock
13675 #: ../src/guestfs-actions.pod:5499 ../fish/guestfish-actions.pod:4241
13676 msgid ""
13677 "This command counts the characters in a file, using the C<wc -c> external "
13678 "command."
13679 msgstr ""
13680
13681 # type: =head2
13682 #: ../src/guestfs-actions.pod:5504
13683 msgid "guestfs_wc_l"
13684 msgstr ""
13685
13686 # type: verbatim
13687 #: ../src/guestfs-actions.pod:5506
13688 #, no-wrap
13689 msgid ""
13690 " int guestfs_wc_l (guestfs_h *g,\n"
13691 "\t\tconst char *path);\n"
13692 "\n"
13693 msgstr ""
13694
13695 # type: textblock
13696 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:4248
13697 msgid ""
13698 "This command counts the lines in a file, using the C<wc -l> external "
13699 "command."
13700 msgstr ""
13701
13702 # type: =head2
13703 #: ../src/guestfs-actions.pod:5514
13704 msgid "guestfs_wc_w"
13705 msgstr ""
13706
13707 # type: verbatim
13708 #: ../src/guestfs-actions.pod:5516
13709 #, no-wrap
13710 msgid ""
13711 " int guestfs_wc_w (guestfs_h *g,\n"
13712 "\t\tconst char *path);\n"
13713 "\n"
13714 msgstr ""
13715
13716 # type: textblock
13717 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:4255
13718 msgid ""
13719 "This command counts the words in a file, using the C<wc -w> external "
13720 "command."
13721 msgstr ""
13722
13723 # type: =head2
13724 #: ../src/guestfs-actions.pod:5524
13725 msgid "guestfs_write"
13726 msgstr ""
13727
13728 # type: verbatim
13729 #: ../src/guestfs-actions.pod:5526
13730 #, no-wrap
13731 msgid ""
13732 " int guestfs_write (guestfs_h *g,\n"
13733 "\t\tconst char *path,\n"
13734 "\t\tconst char *content,\n"
13735 "\t\tsize_t content_size);\n"
13736 "\n"
13737 msgstr ""
13738
13739 # type: textblock
13740 #: ../src/guestfs-actions.pod:5531 ../fish/guestfish-actions.pod:4262
13741 msgid ""
13742 "This call creates a file called C<path>.  The content of the file is the "
13743 "string C<content> (which can contain any 8 bit data)."
13744 msgstr ""
13745
13746 # type: =head2
13747 #: ../src/guestfs-actions.pod:5539
13748 msgid "guestfs_write_file"
13749 msgstr ""
13750
13751 # type: verbatim
13752 #: ../src/guestfs-actions.pod:5541
13753 #, no-wrap
13754 msgid ""
13755 " int guestfs_write_file (guestfs_h *g,\n"
13756 "\t\tconst char *path,\n"
13757 "\t\tconst char *content,\n"
13758 "\t\tint size);\n"
13759 "\n"
13760 msgstr ""
13761
13762 # type: textblock
13763 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:4272
13764 msgid ""
13765 "This call creates a file called C<path>.  The contents of the file is the "
13766 "string C<content> (which can contain any 8 bit data), with length C<size>."
13767 msgstr ""
13768
13769 # type: textblock
13770 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:4276
13771 msgid ""
13772 "As a special case, if C<size> is C<0> then the length is calculated using "
13773 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
13774 msgstr ""
13775
13776 # type: textblock
13777 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:4280
13778 msgid ""
13779 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
13780 "I<not> work, even if the length is specified."
13781 msgstr ""
13782
13783 # type: textblock
13784 #: ../src/guestfs-actions.pod:5562 ../fish/guestfish-actions.pod:4286
13785 msgid "This function is deprecated.  In new code, use the C<write> call instead."
13786 msgstr ""
13787
13788 # type: =head2
13789 #: ../src/guestfs-actions.pod:5569
13790 msgid "guestfs_zegrep"
13791 msgstr ""
13792
13793 # type: verbatim
13794 #: ../src/guestfs-actions.pod:5571
13795 #, no-wrap
13796 msgid ""
13797 " char **guestfs_zegrep (guestfs_h *g,\n"
13798 "\t\tconst char *regex,\n"
13799 "\t\tconst char *path);\n"
13800 "\n"
13801 msgstr ""
13802
13803 # type: textblock
13804 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:4297
13805 msgid "This calls the external C<zegrep> program and returns the matching lines."
13806 msgstr ""
13807
13808 # type: =head2
13809 #: ../src/guestfs-actions.pod:5585
13810 msgid "guestfs_zegrepi"
13811 msgstr ""
13812
13813 # type: verbatim
13814 #: ../src/guestfs-actions.pod:5587
13815 #, no-wrap
13816 msgid ""
13817 " char **guestfs_zegrepi (guestfs_h *g,\n"
13818 "\t\tconst char *regex,\n"
13819 "\t\tconst char *path);\n"
13820 "\n"
13821 msgstr ""
13822
13823 # type: textblock
13824 #: ../src/guestfs-actions.pod:5591 ../fish/guestfish-actions.pod:4307
13825 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
13826 msgstr ""
13827
13828 # type: =head2
13829 #: ../src/guestfs-actions.pod:5601
13830 msgid "guestfs_zero"
13831 msgstr ""
13832
13833 # type: verbatim
13834 #: ../src/guestfs-actions.pod:5603
13835 #, no-wrap
13836 msgid ""
13837 " int guestfs_zero (guestfs_h *g,\n"
13838 "\t\tconst char *device);\n"
13839 "\n"
13840 msgstr ""
13841
13842 # type: textblock
13843 #: ../src/guestfs-actions.pod:5606 ../fish/guestfish-actions.pod:4317
13844 msgid "This command writes zeroes over the first few blocks of C<device>."
13845 msgstr ""
13846
13847 # type: textblock
13848 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:4319
13849 msgid ""
13850 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
13851 "securely wipe the device).  It should be sufficient to remove any partition "
13852 "tables, filesystem superblocks and so on."
13853 msgstr ""
13854
13855 # type: textblock
13856 #: ../src/guestfs-actions.pod:5612
13857 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
13858 msgstr ""
13859
13860 # type: =head2
13861 #: ../src/guestfs-actions.pod:5621
13862 msgid "guestfs_zero_device"
13863 msgstr ""
13864
13865 # type: verbatim
13866 #: ../src/guestfs-actions.pod:5623
13867 #, no-wrap
13868 msgid ""
13869 " int guestfs_zero_device (guestfs_h *g,\n"
13870 "\t\tconst char *device);\n"
13871 "\n"
13872 msgstr ""
13873
13874 # type: textblock
13875 #: ../src/guestfs-actions.pod:5626
13876 msgid ""
13877 "This command writes zeroes over the entire C<device>.  Compare with "
13878 "C<guestfs_zero> which just zeroes the first few blocks of a device."
13879 msgstr ""
13880
13881 # type: =head2
13882 #: ../src/guestfs-actions.pod:5640
13883 msgid "guestfs_zerofree"
13884 msgstr ""
13885
13886 # type: verbatim
13887 #: ../src/guestfs-actions.pod:5642
13888 #, no-wrap
13889 msgid ""
13890 " int guestfs_zerofree (guestfs_h *g,\n"
13891 "\t\tconst char *device);\n"
13892 "\n"
13893 msgstr ""
13894
13895 # type: textblock
13896 #: ../src/guestfs-actions.pod:5645 ../fish/guestfish-actions.pod:4340
13897 msgid ""
13898 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
13899 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
13900 "possible to compress the filesystem more effectively."
13901 msgstr ""
13902
13903 # type: textblock
13904 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:4345
13905 msgid "You should B<not> run this program if the filesystem is mounted."
13906 msgstr ""
13907
13908 # type: textblock
13909 #: ../src/guestfs-actions.pod:5653 ../fish/guestfish-actions.pod:4348
13910 msgid ""
13911 "It is possible that using this program can damage the filesystem or data on "
13912 "the filesystem."
13913 msgstr ""
13914
13915 # type: =head2
13916 #: ../src/guestfs-actions.pod:5658
13917 msgid "guestfs_zfgrep"
13918 msgstr ""
13919
13920 # type: verbatim
13921 #: ../src/guestfs-actions.pod:5660
13922 #, no-wrap
13923 msgid ""
13924 " char **guestfs_zfgrep (guestfs_h *g,\n"
13925 "\t\tconst char *pattern,\n"
13926 "\t\tconst char *path);\n"
13927 "\n"
13928 msgstr ""
13929
13930 # type: textblock
13931 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:4355
13932 msgid "This calls the external C<zfgrep> program and returns the matching lines."
13933 msgstr ""
13934
13935 # type: =head2
13936 #: ../src/guestfs-actions.pod:5674
13937 msgid "guestfs_zfgrepi"
13938 msgstr ""
13939
13940 # type: verbatim
13941 #: ../src/guestfs-actions.pod:5676
13942 #, no-wrap
13943 msgid ""
13944 " char **guestfs_zfgrepi (guestfs_h *g,\n"
13945 "\t\tconst char *pattern,\n"
13946 "\t\tconst char *path);\n"
13947 "\n"
13948 msgstr ""
13949
13950 # type: textblock
13951 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:4365
13952 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
13953 msgstr ""
13954
13955 # type: =head2
13956 #: ../src/guestfs-actions.pod:5690
13957 msgid "guestfs_zfile"
13958 msgstr ""
13959
13960 # type: verbatim
13961 #: ../src/guestfs-actions.pod:5692
13962 #, no-wrap
13963 msgid ""
13964 " char *guestfs_zfile (guestfs_h *g,\n"
13965 "\t\tconst char *meth,\n"
13966 "\t\tconst char *path);\n"
13967 "\n"
13968 msgstr ""
13969
13970 # type: textblock
13971 #: ../src/guestfs-actions.pod:5696 ../fish/guestfish-actions.pod:4375
13972 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
13973 msgstr ""
13974
13975 # type: textblock
13976 #: ../src/guestfs-actions.pod:5699 ../fish/guestfish-actions.pod:4378
13977 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
13978 msgstr ""
13979
13980 # type: textblock
13981 #: ../src/guestfs-actions.pod:5701
13982 msgid ""
13983 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
13984 "files."
13985 msgstr ""
13986
13987 # type: textblock
13988 #: ../src/guestfs-actions.pod:5707 ../fish/guestfish-actions.pod:4383
13989 msgid "This function is deprecated.  In new code, use the C<file> call instead."
13990 msgstr ""
13991
13992 # type: =head2
13993 #: ../src/guestfs-actions.pod:5714
13994 msgid "guestfs_zgrep"
13995 msgstr ""
13996
13997 # type: verbatim
13998 #: ../src/guestfs-actions.pod:5716
13999 #, no-wrap
14000 msgid ""
14001 " char **guestfs_zgrep (guestfs_h *g,\n"
14002 "\t\tconst char *regex,\n"
14003 "\t\tconst char *path);\n"
14004 "\n"
14005 msgstr ""
14006
14007 # type: textblock
14008 #: ../src/guestfs-actions.pod:5720 ../fish/guestfish-actions.pod:4394
14009 msgid "This calls the external C<zgrep> program and returns the matching lines."
14010 msgstr ""
14011
14012 # type: =head2
14013 #: ../src/guestfs-actions.pod:5730
14014 msgid "guestfs_zgrepi"
14015 msgstr ""
14016
14017 # type: verbatim
14018 #: ../src/guestfs-actions.pod:5732
14019 #, no-wrap
14020 msgid ""
14021 " char **guestfs_zgrepi (guestfs_h *g,\n"
14022 "\t\tconst char *regex,\n"
14023 "\t\tconst char *path);\n"
14024 "\n"
14025 msgstr ""
14026
14027 # type: textblock
14028 #: ../src/guestfs-actions.pod:5736 ../fish/guestfish-actions.pod:4404
14029 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14030 msgstr ""
14031
14032 # type: =item
14033 #: ../src/guestfs-availability.pod:3
14034 msgid "B<augeas>"
14035 msgstr ""
14036
14037 # type: textblock
14038 #: ../src/guestfs-availability.pod:5
14039 msgid ""
14040 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
14041 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
14042 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
14043 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
14044 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
14045 msgstr ""
14046
14047 # type: =item
14048 #: ../src/guestfs-availability.pod:21
14049 msgid "B<inotify>"
14050 msgstr ""
14051
14052 # type: textblock
14053 #: ../src/guestfs-availability.pod:23
14054 msgid ""
14055 "The following functions: L</guestfs_inotify_add_watch> "
14056 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
14057 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14058 msgstr ""
14059
14060 # type: =item
14061 #: ../src/guestfs-availability.pod:31
14062 msgid "B<linuxfsuuid>"
14063 msgstr ""
14064
14065 # type: textblock
14066 #: ../src/guestfs-availability.pod:33
14067 msgid ""
14068 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
14069 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14070 msgstr ""
14071
14072 # type: =item
14073 #: ../src/guestfs-availability.pod:40
14074 msgid "B<linuxmodules>"
14075 msgstr ""
14076
14077 # type: textblock
14078 #: ../src/guestfs-availability.pod:42
14079 msgid "The following functions: L</guestfs_modprobe>"
14080 msgstr ""
14081
14082 # type: =item
14083 #: ../src/guestfs-availability.pod:45
14084 msgid "B<linuxxattrs>"
14085 msgstr ""
14086
14087 # type: textblock
14088 #: ../src/guestfs-availability.pod:47
14089 msgid ""
14090 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
14091 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
14092 "L</guestfs_removexattr> L</guestfs_setxattr>"
14093 msgstr ""
14094
14095 # type: =item
14096 #: ../src/guestfs-availability.pod:56
14097 msgid "B<luks>"
14098 msgstr ""
14099
14100 # type: textblock
14101 #: ../src/guestfs-availability.pod:58
14102 msgid ""
14103 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
14104 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
14105 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14106 msgstr ""
14107
14108 # type: =item
14109 #: ../src/guestfs-availability.pod:67
14110 msgid "B<lvm2>"
14111 msgstr ""
14112
14113 # type: textblock
14114 #: ../src/guestfs-availability.pod:69
14115 msgid ""
14116 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
14117 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
14118 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
14119 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
14120 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
14121 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
14122 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
14123 "L</guestfs_vgs_full>"
14124 msgstr ""
14125
14126 # type: =item
14127 #: ../src/guestfs-availability.pod:92
14128 msgid "B<mknod>"
14129 msgstr ""
14130
14131 # type: textblock
14132 #: ../src/guestfs-availability.pod:94
14133 msgid ""
14134 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
14135 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
14136 msgstr ""
14137
14138 # type: =item
14139 #: ../src/guestfs-availability.pod:100
14140 msgid "B<ntfs3g>"
14141 msgstr ""
14142
14143 # type: textblock
14144 #: ../src/guestfs-availability.pod:102
14145 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14146 msgstr ""
14147
14148 # type: =item
14149 #: ../src/guestfs-availability.pod:105
14150 msgid "B<ntfsprogs>"
14151 msgstr ""
14152
14153 # type: textblock
14154 #: ../src/guestfs-availability.pod:107
14155 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14156 msgstr ""
14157
14158 # type: =item
14159 #: ../src/guestfs-availability.pod:111
14160 msgid "B<realpath>"
14161 msgstr ""
14162
14163 # type: textblock
14164 #: ../src/guestfs-availability.pod:113
14165 msgid "The following functions: L</guestfs_realpath>"
14166 msgstr ""
14167
14168 # type: =item
14169 #: ../src/guestfs-availability.pod:116
14170 msgid "B<scrub>"
14171 msgstr ""
14172
14173 # type: textblock
14174 #: ../src/guestfs-availability.pod:118
14175 msgid ""
14176 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
14177 "L</guestfs_scrub_freespace>"
14178 msgstr ""
14179
14180 # type: =item
14181 #: ../src/guestfs-availability.pod:123
14182 msgid "B<selinux>"
14183 msgstr ""
14184
14185 # type: textblock
14186 #: ../src/guestfs-availability.pod:125
14187 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14188 msgstr ""
14189
14190 # type: =item
14191 #: ../src/guestfs-availability.pod:129
14192 msgid "B<xz>"
14193 msgstr ""
14194
14195 # type: textblock
14196 #: ../src/guestfs-availability.pod:131
14197 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14198 msgstr ""
14199
14200 # type: =item
14201 #: ../src/guestfs-availability.pod:135
14202 msgid "B<zerofree>"
14203 msgstr ""
14204
14205 # type: textblock
14206 #: ../src/guestfs-availability.pod:137
14207 msgid "The following functions: L</guestfs_zerofree>"
14208 msgstr ""
14209
14210 # type: =head2
14211 #: ../src/guestfs-structs.pod:1
14212 msgid "guestfs_int_bool"
14213 msgstr ""
14214
14215 # type: verbatim
14216 #: ../src/guestfs-structs.pod:3
14217 #, no-wrap
14218 msgid ""
14219 " struct guestfs_int_bool {\n"
14220 "   int32_t i;\n"
14221 "   int32_t b;\n"
14222 " };\n"
14223 " \n"
14224 msgstr ""
14225
14226 # type: verbatim
14227 #: ../src/guestfs-structs.pod:8
14228 #, no-wrap
14229 msgid ""
14230 " struct guestfs_int_bool_list {\n"
14231 "   uint32_t len; /* Number of elements in list. */\n"
14232 "   struct guestfs_int_bool *val; /* Elements. */\n"
14233 " };\n"
14234 " \n"
14235 msgstr ""
14236
14237 # type: verbatim
14238 #: ../src/guestfs-structs.pod:13
14239 #, no-wrap
14240 msgid ""
14241 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14242 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14243 "\n"
14244 msgstr ""
14245
14246 # type: =head2
14247 #: ../src/guestfs-structs.pod:16
14248 msgid "guestfs_lvm_pv"
14249 msgstr ""
14250
14251 # type: verbatim
14252 #: ../src/guestfs-structs.pod:18
14253 #, no-wrap
14254 msgid ""
14255 " struct guestfs_lvm_pv {\n"
14256 "   char *pv_name;\n"
14257 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14258 "*/\n"
14259 "   char pv_uuid[32];\n"
14260 "   char *pv_fmt;\n"
14261 "   uint64_t pv_size;\n"
14262 "   uint64_t dev_size;\n"
14263 "   uint64_t pv_free;\n"
14264 "   uint64_t pv_used;\n"
14265 "   char *pv_attr;\n"
14266 "   int64_t pv_pe_count;\n"
14267 "   int64_t pv_pe_alloc_count;\n"
14268 "   char *pv_tags;\n"
14269 "   uint64_t pe_start;\n"
14270 "   int64_t pv_mda_count;\n"
14271 "   uint64_t pv_mda_free;\n"
14272 " };\n"
14273 " \n"
14274 msgstr ""
14275
14276 # type: verbatim
14277 #: ../src/guestfs-structs.pod:36
14278 #, no-wrap
14279 msgid ""
14280 " struct guestfs_lvm_pv_list {\n"
14281 "   uint32_t len; /* Number of elements in list. */\n"
14282 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14283 " };\n"
14284 " \n"
14285 msgstr ""
14286
14287 # type: verbatim
14288 #: ../src/guestfs-structs.pod:41
14289 #, no-wrap
14290 msgid ""
14291 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14292 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14293 "\n"
14294 msgstr ""
14295
14296 # type: =head2
14297 #: ../src/guestfs-structs.pod:44
14298 msgid "guestfs_lvm_vg"
14299 msgstr ""
14300
14301 # type: verbatim
14302 #: ../src/guestfs-structs.pod:46
14303 #, no-wrap
14304 msgid ""
14305 " struct guestfs_lvm_vg {\n"
14306 "   char *vg_name;\n"
14307 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14308 "*/\n"
14309 "   char vg_uuid[32];\n"
14310 "   char *vg_fmt;\n"
14311 "   char *vg_attr;\n"
14312 "   uint64_t vg_size;\n"
14313 "   uint64_t vg_free;\n"
14314 "   char *vg_sysid;\n"
14315 "   uint64_t vg_extent_size;\n"
14316 "   int64_t vg_extent_count;\n"
14317 "   int64_t vg_free_count;\n"
14318 "   int64_t max_lv;\n"
14319 "   int64_t max_pv;\n"
14320 "   int64_t pv_count;\n"
14321 "   int64_t lv_count;\n"
14322 "   int64_t snap_count;\n"
14323 "   int64_t vg_seqno;\n"
14324 "   char *vg_tags;\n"
14325 "   int64_t vg_mda_count;\n"
14326 "   uint64_t vg_mda_free;\n"
14327 " };\n"
14328 " \n"
14329 msgstr ""
14330
14331 # type: verbatim
14332 #: ../src/guestfs-structs.pod:69
14333 #, no-wrap
14334 msgid ""
14335 " struct guestfs_lvm_vg_list {\n"
14336 "   uint32_t len; /* Number of elements in list. */\n"
14337 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14338 " };\n"
14339 " \n"
14340 msgstr ""
14341
14342 # type: verbatim
14343 #: ../src/guestfs-structs.pod:74
14344 #, no-wrap
14345 msgid ""
14346 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14347 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14348 "\n"
14349 msgstr ""
14350
14351 # type: =head2
14352 #: ../src/guestfs-structs.pod:77
14353 msgid "guestfs_lvm_lv"
14354 msgstr ""
14355
14356 # type: verbatim
14357 #: ../src/guestfs-structs.pod:79
14358 #, no-wrap
14359 msgid ""
14360 " struct guestfs_lvm_lv {\n"
14361 "   char *lv_name;\n"
14362 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14363 "*/\n"
14364 "   char lv_uuid[32];\n"
14365 "   char *lv_attr;\n"
14366 "   int64_t lv_major;\n"
14367 "   int64_t lv_minor;\n"
14368 "   int64_t lv_kernel_major;\n"
14369 "   int64_t lv_kernel_minor;\n"
14370 "   uint64_t lv_size;\n"
14371 "   int64_t seg_count;\n"
14372 "   char *origin;\n"
14373 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14374 "   float snap_percent;\n"
14375 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14376 "   float copy_percent;\n"
14377 "   char *move_pv;\n"
14378 "   char *lv_tags;\n"
14379 "   char *mirror_log;\n"
14380 "   char *modules;\n"
14381 " };\n"
14382 " \n"
14383 msgstr ""
14384
14385 # type: verbatim
14386 #: ../src/guestfs-structs.pod:101
14387 #, no-wrap
14388 msgid ""
14389 " struct guestfs_lvm_lv_list {\n"
14390 "   uint32_t len; /* Number of elements in list. */\n"
14391 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14392 " };\n"
14393 " \n"
14394 msgstr ""
14395
14396 # type: verbatim
14397 #: ../src/guestfs-structs.pod:106
14398 #, no-wrap
14399 msgid ""
14400 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14401 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14402 "\n"
14403 msgstr ""
14404
14405 # type: verbatim
14406 #: ../src/guestfs-structs.pod:111
14407 #, no-wrap
14408 msgid ""
14409 " struct guestfs_stat {\n"
14410 "   int64_t dev;\n"
14411 "   int64_t ino;\n"
14412 "   int64_t mode;\n"
14413 "   int64_t nlink;\n"
14414 "   int64_t uid;\n"
14415 "   int64_t gid;\n"
14416 "   int64_t rdev;\n"
14417 "   int64_t size;\n"
14418 "   int64_t blksize;\n"
14419 "   int64_t blocks;\n"
14420 "   int64_t atime;\n"
14421 "   int64_t mtime;\n"
14422 "   int64_t ctime;\n"
14423 " };\n"
14424 " \n"
14425 msgstr ""
14426
14427 # type: verbatim
14428 #: ../src/guestfs-structs.pod:127
14429 #, no-wrap
14430 msgid ""
14431 " struct guestfs_stat_list {\n"
14432 "   uint32_t len; /* Number of elements in list. */\n"
14433 "   struct guestfs_stat *val; /* Elements. */\n"
14434 " };\n"
14435 " \n"
14436 msgstr ""
14437
14438 # type: verbatim
14439 #: ../src/guestfs-structs.pod:132
14440 #, no-wrap
14441 msgid ""
14442 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14443 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14444 "\n"
14445 msgstr ""
14446
14447 # type: verbatim
14448 #: ../src/guestfs-structs.pod:137
14449 #, no-wrap
14450 msgid ""
14451 " struct guestfs_statvfs {\n"
14452 "   int64_t bsize;\n"
14453 "   int64_t frsize;\n"
14454 "   int64_t blocks;\n"
14455 "   int64_t bfree;\n"
14456 "   int64_t bavail;\n"
14457 "   int64_t files;\n"
14458 "   int64_t ffree;\n"
14459 "   int64_t favail;\n"
14460 "   int64_t fsid;\n"
14461 "   int64_t flag;\n"
14462 "   int64_t namemax;\n"
14463 " };\n"
14464 " \n"
14465 msgstr ""
14466
14467 # type: verbatim
14468 #: ../src/guestfs-structs.pod:151
14469 #, no-wrap
14470 msgid ""
14471 " struct guestfs_statvfs_list {\n"
14472 "   uint32_t len; /* Number of elements in list. */\n"
14473 "   struct guestfs_statvfs *val; /* Elements. */\n"
14474 " };\n"
14475 " \n"
14476 msgstr ""
14477
14478 # type: verbatim
14479 #: ../src/guestfs-structs.pod:156
14480 #, no-wrap
14481 msgid ""
14482 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14483 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14484 "\n"
14485 msgstr ""
14486
14487 # type: =head2
14488 #: ../src/guestfs-structs.pod:159
14489 msgid "guestfs_dirent"
14490 msgstr ""
14491
14492 # type: verbatim
14493 #: ../src/guestfs-structs.pod:161
14494 #, no-wrap
14495 msgid ""
14496 " struct guestfs_dirent {\n"
14497 "   int64_t ino;\n"
14498 "   char ftyp;\n"
14499 "   char *name;\n"
14500 " };\n"
14501 " \n"
14502 msgstr ""
14503
14504 # type: verbatim
14505 #: ../src/guestfs-structs.pod:167
14506 #, no-wrap
14507 msgid ""
14508 " struct guestfs_dirent_list {\n"
14509 "   uint32_t len; /* Number of elements in list. */\n"
14510 "   struct guestfs_dirent *val; /* Elements. */\n"
14511 " };\n"
14512 " \n"
14513 msgstr ""
14514
14515 # type: verbatim
14516 #: ../src/guestfs-structs.pod:172
14517 #, no-wrap
14518 msgid ""
14519 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14520 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14521 "\n"
14522 msgstr ""
14523
14524 # type: verbatim
14525 #: ../src/guestfs-structs.pod:177
14526 #, no-wrap
14527 msgid ""
14528 " struct guestfs_version {\n"
14529 "   int64_t major;\n"
14530 "   int64_t minor;\n"
14531 "   int64_t release;\n"
14532 "   char *extra;\n"
14533 " };\n"
14534 " \n"
14535 msgstr ""
14536
14537 # type: verbatim
14538 #: ../src/guestfs-structs.pod:184
14539 #, no-wrap
14540 msgid ""
14541 " struct guestfs_version_list {\n"
14542 "   uint32_t len; /* Number of elements in list. */\n"
14543 "   struct guestfs_version *val; /* Elements. */\n"
14544 " };\n"
14545 " \n"
14546 msgstr ""
14547
14548 # type: verbatim
14549 #: ../src/guestfs-structs.pod:189
14550 #, no-wrap
14551 msgid ""
14552 " void guestfs_free_version (struct guestfs_free_version *);\n"
14553 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14554 "\n"
14555 msgstr ""
14556
14557 # type: =head2
14558 #: ../src/guestfs-structs.pod:192
14559 msgid "guestfs_xattr"
14560 msgstr ""
14561
14562 # type: verbatim
14563 #: ../src/guestfs-structs.pod:194
14564 #, no-wrap
14565 msgid ""
14566 " struct guestfs_xattr {\n"
14567 "   char *attrname;\n"
14568 "   /* The next two fields describe a byte array. */\n"
14569 "   uint32_t attrval_len;\n"
14570 "   char *attrval;\n"
14571 " };\n"
14572 " \n"
14573 msgstr ""
14574
14575 # type: verbatim
14576 #: ../src/guestfs-structs.pod:201
14577 #, no-wrap
14578 msgid ""
14579 " struct guestfs_xattr_list {\n"
14580 "   uint32_t len; /* Number of elements in list. */\n"
14581 "   struct guestfs_xattr *val; /* Elements. */\n"
14582 " };\n"
14583 " \n"
14584 msgstr ""
14585
14586 # type: verbatim
14587 #: ../src/guestfs-structs.pod:206
14588 #, no-wrap
14589 msgid ""
14590 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14591 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14592 "\n"
14593 msgstr ""
14594
14595 # type: =head2
14596 #: ../src/guestfs-structs.pod:209
14597 msgid "guestfs_inotify_event"
14598 msgstr ""
14599
14600 # type: verbatim
14601 #: ../src/guestfs-structs.pod:211
14602 #, no-wrap
14603 msgid ""
14604 " struct guestfs_inotify_event {\n"
14605 "   int64_t in_wd;\n"
14606 "   uint32_t in_mask;\n"
14607 "   uint32_t in_cookie;\n"
14608 "   char *in_name;\n"
14609 " };\n"
14610 " \n"
14611 msgstr ""
14612
14613 # type: verbatim
14614 #: ../src/guestfs-structs.pod:218
14615 #, no-wrap
14616 msgid ""
14617 " struct guestfs_inotify_event_list {\n"
14618 "   uint32_t len; /* Number of elements in list. */\n"
14619 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14620 " };\n"
14621 " \n"
14622 msgstr ""
14623
14624 # type: verbatim
14625 #: ../src/guestfs-structs.pod:223
14626 #, no-wrap
14627 msgid ""
14628 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14629 " void guestfs_free_inotify_event_list (struct "
14630 "guestfs_free_inotify_event_list *);\n"
14631 "\n"
14632 msgstr ""
14633
14634 # type: =head2
14635 #: ../src/guestfs-structs.pod:226
14636 msgid "guestfs_partition"
14637 msgstr ""
14638
14639 # type: verbatim
14640 #: ../src/guestfs-structs.pod:228
14641 #, no-wrap
14642 msgid ""
14643 " struct guestfs_partition {\n"
14644 "   int32_t part_num;\n"
14645 "   uint64_t part_start;\n"
14646 "   uint64_t part_end;\n"
14647 "   uint64_t part_size;\n"
14648 " };\n"
14649 " \n"
14650 msgstr ""
14651
14652 # type: verbatim
14653 #: ../src/guestfs-structs.pod:235
14654 #, no-wrap
14655 msgid ""
14656 " struct guestfs_partition_list {\n"
14657 "   uint32_t len; /* Number of elements in list. */\n"
14658 "   struct guestfs_partition *val; /* Elements. */\n"
14659 " };\n"
14660 " \n"
14661 msgstr ""
14662
14663 # type: verbatim
14664 #: ../src/guestfs-structs.pod:240
14665 #, no-wrap
14666 msgid ""
14667 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
14668 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
14669 "\n"
14670 msgstr ""
14671
14672 # type: textblock
14673 #: ../fish/guestfish.pod:5
14674 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
14675 msgstr ""
14676
14677 # type: verbatim
14678 #: ../fish/guestfish.pod:9
14679 #, no-wrap
14680 msgid ""
14681 " guestfish [--options] [commands]\n"
14682 "\n"
14683 msgstr ""
14684
14685 # type: verbatim
14686 #: ../fish/guestfish.pod:11
14687 #, no-wrap
14688 msgid ""
14689 " guestfish\n"
14690 "\n"
14691 msgstr ""
14692
14693 # type: verbatim
14694 #: ../fish/guestfish.pod:13
14695 #, no-wrap
14696 msgid ""
14697 " guestfish -a disk.img\n"
14698 "\n"
14699 msgstr ""
14700
14701 # type: verbatim
14702 #: ../fish/guestfish.pod:15
14703 #, no-wrap
14704 msgid ""
14705 " guestfish -a disk.img -m dev[:mountpoint]\n"
14706 "\n"
14707 msgstr ""
14708
14709 # type: verbatim
14710 #: ../fish/guestfish.pod:17
14711 #, no-wrap
14712 msgid ""
14713 " guestfish -d libvirt-domain\n"
14714 "\n"
14715 msgstr ""
14716
14717 # type: verbatim
14718 #: ../fish/guestfish.pod:19
14719 #, no-wrap
14720 msgid ""
14721 " guestfish -a disk.img -i\n"
14722 "\n"
14723 msgstr ""
14724
14725 # type: verbatim
14726 #: ../fish/guestfish.pod:21
14727 #, no-wrap
14728 msgid ""
14729 " guestfish -d libvirt-domain -i\n"
14730 "\n"
14731 msgstr ""
14732
14733 # type: =head1
14734 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:11 ../tools/virt-edit.pl:45 ../tools/virt-win-reg.pl:52 ../tools/virt-tar.pl:60 ../tools/virt-rescue.pl:41
14735 msgid "WARNING"
14736 msgstr ""
14737
14738 # type: textblock
14739 #: ../fish/guestfish.pod:25
14740 msgid ""
14741 "Using guestfish in read/write mode on live virtual machines can be "
14742 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
14743 "option to use guestfish safely if the disk image or virtual machine might be "
14744 "live."
14745 msgstr ""
14746
14747 # type: textblock
14748 #: ../fish/guestfish.pod:32
14749 msgid ""
14750 "Guestfish is a shell and command-line tool for examining and modifying "
14751 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
14752 "functionality of the guestfs API, see L<guestfs(3)>."
14753 msgstr ""
14754
14755 # type: textblock
14756 #: ../fish/guestfish.pod:36
14757 msgid ""
14758 "Guestfish gives you structured access to the libguestfs API, from shell "
14759 "scripts or the command line or interactively.  If you want to rescue a "
14760 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
14761 "command."
14762 msgstr ""
14763
14764 # type: =head1
14765 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800 ../fuse/guestmount.pod:35 ../tools/virt-edit.pl:59 ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:51 ../tools/virt-tar.pl:46
14766 msgid "EXAMPLES"
14767 msgstr ""
14768
14769 # type: =head2
14770 #: ../fish/guestfish.pod:43
14771 msgid "As an interactive shell"
14772 msgstr ""
14773
14774 # type: verbatim
14775 #: ../fish/guestfish.pod:45
14776 #, no-wrap
14777 msgid ""
14778 " $ guestfish\n"
14779 " \n"
14780 msgstr ""
14781
14782 # type: verbatim
14783 #: ../fish/guestfish.pod:47
14784 #, no-wrap
14785 msgid ""
14786 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
14787 " editing virtual machine filesystems.\n"
14788 " \n"
14789 msgstr ""
14790
14791 # type: verbatim
14792 #: ../fish/guestfish.pod:50
14793 #, no-wrap
14794 msgid ""
14795 " Type: 'help' for a list of commands\n"
14796 "       'man' to read the manual\n"
14797 "       'quit' to quit the shell\n"
14798 " \n"
14799 msgstr ""
14800
14801 # type: verbatim
14802 #: ../fish/guestfish.pod:54
14803 #, no-wrap
14804 msgid ""
14805 " ><fs> add-ro disk.img\n"
14806 " ><fs> run\n"
14807 " ><fs> list-filesystems\n"
14808 " /dev/sda1: ext4\n"
14809 " /dev/vg_guest/lv_root: ext4\n"
14810 " /dev/vg_guest/lv_swap: swap\n"
14811 " ><fs> mount /dev/vg_guest/lv_root /\n"
14812 " ><fs> cat /etc/fstab\n"
14813 " # /etc/fstab\n"
14814 " # Created by anaconda\n"
14815 " [...]\n"
14816 " ><fs> exit\n"
14817 "\n"
14818 msgstr ""
14819
14820 # type: =head2
14821 #: ../fish/guestfish.pod:67
14822 msgid "From shell scripts"
14823 msgstr ""
14824
14825 # type: textblock
14826 #: ../fish/guestfish.pod:69
14827 msgid "Create a new C</etc/motd> file in a guest or disk image:"
14828 msgstr ""
14829
14830 # type: verbatim
14831 #: ../fish/guestfish.pod:71
14832 #, no-wrap
14833 msgid ""
14834 " guestfish <<_EOF_\n"
14835 " add disk.img\n"
14836 " run\n"
14837 " mount /dev/vg_guest/lv_root /\n"
14838 " write /etc/motd \"Welcome, new users\"\n"
14839 " _EOF_\n"
14840 "\n"
14841 msgstr ""
14842
14843 # type: textblock
14844 #: ../fish/guestfish.pod:78
14845 msgid "List the LVM logical volumes in a disk image:"
14846 msgstr ""
14847
14848 # type: verbatim
14849 #: ../fish/guestfish.pod:80
14850 #, no-wrap
14851 msgid ""
14852 " guestfish -a disk.img --ro <<_EOF_\n"
14853 " run\n"
14854 " lvs\n"
14855 " _EOF_\n"
14856 "\n"
14857 msgstr ""
14858
14859 # type: textblock
14860 #: ../fish/guestfish.pod:85
14861 msgid "List all the filesystems in a disk image:"
14862 msgstr ""
14863
14864 # type: verbatim
14865 #: ../fish/guestfish.pod:87
14866 #, no-wrap
14867 msgid ""
14868 " guestfish -a disk.img --ro <<_EOF_\n"
14869 " run\n"
14870 " list-filesystems\n"
14871 " _EOF_\n"
14872 "\n"
14873 msgstr ""
14874
14875 # type: =head2
14876 #: ../fish/guestfish.pod:92
14877 msgid "On one command line"
14878 msgstr ""
14879
14880 # type: textblock
14881 #: ../fish/guestfish.pod:94
14882 msgid "Update C</etc/resolv.conf> in a guest:"
14883 msgstr ""
14884
14885 # type: verbatim
14886 #: ../fish/guestfish.pod:96
14887 #, no-wrap
14888 msgid ""
14889 " guestfish \\\n"
14890 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
14891 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
14892 "\n"
14893 msgstr ""
14894
14895 # type: textblock
14896 #: ../fish/guestfish.pod:100
14897 msgid "Edit C</boot/grub/grub.conf> interactively:"
14898 msgstr ""
14899
14900 # type: verbatim
14901 #: ../fish/guestfish.pod:102
14902 #, no-wrap
14903 msgid ""
14904 " guestfish --add disk.img \\\n"
14905 "   --mount /dev/vg_guest/lv_root \\\n"
14906 "   --mount /dev/sda1:/boot \\\n"
14907 "   edit /boot/grub/grub.conf\n"
14908 "\n"
14909 msgstr ""
14910
14911 # type: =head2
14912 #: ../fish/guestfish.pod:107
14913 msgid "Mount disks automatically"
14914 msgstr ""
14915
14916 # type: textblock
14917 #: ../fish/guestfish.pod:109
14918 msgid ""
14919 "Use the I<-i> option to automatically mount the disks from a virtual "
14920 "machine:"
14921 msgstr ""
14922
14923 # type: verbatim
14924 #: ../fish/guestfish.pod:112
14925 #, no-wrap
14926 msgid ""
14927 " guestfish --ro -a disk.img -i cat /etc/group\n"
14928 "\n"
14929 msgstr ""
14930
14931 # type: verbatim
14932 #: ../fish/guestfish.pod:114
14933 #, no-wrap
14934 msgid ""
14935 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
14936 "\n"
14937 msgstr ""
14938
14939 # type: textblock
14940 #: ../fish/guestfish.pod:116
14941 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
14942 msgstr ""
14943
14944 # type: verbatim
14945 #: ../fish/guestfish.pod:118
14946 #, no-wrap
14947 msgid ""
14948 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
14949 "\n"
14950 msgstr ""
14951
14952 # type: =head2
14953 #: ../fish/guestfish.pod:120
14954 msgid "As a script interpreter"
14955 msgstr ""
14956
14957 # type: textblock
14958 #: ../fish/guestfish.pod:122
14959 msgid "Create a 100MB disk containing an ext2-formatted partition:"
14960 msgstr ""
14961
14962 # type: verbatim
14963 #: ../fish/guestfish.pod:124
14964 #, no-wrap
14965 msgid ""
14966 " #!/usr/bin/guestfish -f\n"
14967 " sparse test1.img 100M\n"
14968 " run\n"
14969 " part-disk /dev/sda mbr\n"
14970 " mkfs ext2 /dev/sda1\n"
14971 "\n"
14972 msgstr ""
14973
14974 # type: =head2
14975 #: ../fish/guestfish.pod:130
14976 msgid "Start with a prepared disk"
14977 msgstr ""
14978
14979 # type: textblock
14980 #: ../fish/guestfish.pod:132
14981 msgid ""
14982 "An alternate way to create a 100MB disk called C<test1.img> containing a "
14983 "single ext2-formatted partition:"
14984 msgstr ""
14985
14986 # type: verbatim
14987 #: ../fish/guestfish.pod:135
14988 #, no-wrap
14989 msgid ""
14990 " guestfish -N fs\n"
14991 "\n"
14992 msgstr ""
14993
14994 # type: textblock
14995 #: ../fish/guestfish.pod:137
14996 msgid "To list what is available do:"
14997 msgstr ""
14998
14999 # type: verbatim
15000 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15001 #, no-wrap
15002 msgid ""
15003 " guestfish -N help | less\n"
15004 "\n"
15005 msgstr ""
15006
15007 # type: =head2
15008 #: ../fish/guestfish.pod:141
15009 msgid "Remote control"
15010 msgstr ""
15011
15012 # type: verbatim
15013 #: ../fish/guestfish.pod:143
15014 #, no-wrap
15015 msgid ""
15016 " eval `guestfish --listen`\n"
15017 " guestfish --remote add-ro disk.img\n"
15018 " guestfish --remote run\n"
15019 " guestfish --remote lvs\n"
15020 "\n"
15021 msgstr ""
15022
15023 # type: =head1
15024 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:70 ../inspector/virt-inspector.pl:75 ../tools/virt-edit.pl:73 ../tools/virt-win-reg.pl:172 ../tools/virt-df.pl:71 ../tools/virt-ls.pl:79 ../tools/virt-resize.pl:257 ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:80 ../tools/virt-tar.pl:99 ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
15025 msgid "OPTIONS"
15026 msgstr ""
15027
15028 # type: =item
15029 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:94 ../inspector/virt-inspector.pl:83 ../tools/virt-edit.pl:81 ../tools/virt-win-reg.pl:180 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:87 ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58 ../tools/virt-cat.pl:88 ../tools/virt-tar.pl:107 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
15030 msgid "B<--help>"
15031 msgstr ""
15032
15033 # type: textblock
15034 #: ../fish/guestfish.pod:154
15035 msgid "Displays general help on options."
15036 msgstr ""
15037
15038 # type: =item
15039 #: ../fish/guestfish.pod:156
15040 msgid "B<-h> | B<--cmd-help>"
15041 msgstr ""
15042
15043 # type: textblock
15044 #: ../fish/guestfish.pod:158
15045 msgid "Lists all available guestfish commands."
15046 msgstr ""
15047
15048 # type: =item
15049 #: ../fish/guestfish.pod:160
15050 msgid "B<-h cmd> | B<--cmd-help cmd>"
15051 msgstr ""
15052
15053 # type: textblock
15054 #: ../fish/guestfish.pod:162
15055 msgid "Displays detailed help on a single command C<cmd>."
15056 msgstr ""
15057
15058 # type: =item
15059 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:74
15060 msgid "B<-a image> | B<--add image>"
15061 msgstr ""
15062
15063 # type: textblock
15064 #: ../fish/guestfish.pod:166
15065 msgid "Add a block device or virtual machine image to the shell."
15066 msgstr ""
15067
15068 # type: textblock
15069 #: ../fish/guestfish.pod:168
15070 msgid ""
15071 "The format of the disk image is auto-detected.  To override this and force a "
15072 "particular format use the I<--format=..> option."
15073 msgstr ""
15074
15075 # type: =item
15076 #: ../fish/guestfish.pod:171
15077 msgid "B<-c URI> | B<--connect URI>"
15078 msgstr ""
15079
15080 # type: textblock
15081 #: ../fish/guestfish.pod:173
15082 msgid ""
15083 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15084 "URI to use.  The default is to use the default libvirt connection."
15085 msgstr ""
15086
15087 # type: =item
15088 #: ../fish/guestfish.pod:177
15089 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15090 msgstr ""
15091
15092 # type: textblock
15093 #: ../fish/guestfish.pod:179
15094 msgid ""
15095 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15096 "used, then any libvirt domain can be used.  However in write mode, only "
15097 "libvirt domains which are shut down can be named here."
15098 msgstr ""
15099
15100 # type: =item
15101 #: ../fish/guestfish.pod:183
15102 msgid "B<-D> | B<--no-dest-paths>"
15103 msgstr ""
15104
15105 # type: textblock
15106 #: ../fish/guestfish.pod:185
15107 msgid ""
15108 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15109 "to hit the tab key to complete paths on the guest filesystem, but this "
15110 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15111 "allow this feature to be disabled."
15112 msgstr ""
15113
15114 # type: =item
15115 #: ../fish/guestfish.pod:190
15116 msgid "B<--echo-keys>"
15117 msgstr ""
15118
15119 # type: textblock
15120 #: ../fish/guestfish.pod:192
15121 msgid ""
15122 "When prompting for keys and passphrases, guestfish normally turns echoing "
15123 "off so you cannot see what you are typing.  If you are not worried about "
15124 "Tempest attacks and there is no one else in the room you can specify this "
15125 "flag to see what you are typing."
15126 msgstr ""
15127
15128 # type: =item
15129 #: ../fish/guestfish.pod:197
15130 msgid "B<-f file> | B<--file file>"
15131 msgstr ""
15132
15133 # type: textblock
15134 #: ../fish/guestfish.pod:199
15135 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15136 msgstr ""
15137
15138 # type: verbatim
15139 #: ../fish/guestfish.pod:202
15140 #, no-wrap
15141 msgid ""
15142 " #!/usr/bin/guestfish -f\n"
15143 "\n"
15144 msgstr ""
15145
15146 # type: =item
15147 #: ../fish/guestfish.pod:204
15148 msgid "B<--format=raw|qcow2|..> | B<--format>"
15149 msgstr ""
15150
15151 # type: textblock
15152 #: ../fish/guestfish.pod:206
15153 msgid ""
15154 "The default for the I<-a> option is to auto-detect the format of the disk "
15155 "image.  Using this forces the disk format for I<-a> options which follow on "
15156 "the command line.  Using I<--format> with no argument switches back to "
15157 "auto-detection for subsequent I<-a> options."
15158 msgstr ""
15159
15160 # type: textblock
15161 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504
15162 msgid "For example:"
15163 msgstr ""
15164
15165 # type: verbatim
15166 #: ../fish/guestfish.pod:213
15167 #, no-wrap
15168 msgid ""
15169 " guestfish --format=raw -a disk.img\n"
15170 "\n"
15171 msgstr ""
15172
15173 # type: textblock
15174 #: ../fish/guestfish.pod:215
15175 msgid "forces raw format (no auto-detection) for C<disk.img>."
15176 msgstr ""
15177
15178 # type: verbatim
15179 #: ../fish/guestfish.pod:217
15180 #, no-wrap
15181 msgid ""
15182 " guestfish --format=raw -a disk.img --format -a another.img\n"
15183 "\n"
15184 msgstr ""
15185
15186 # type: textblock
15187 #: ../fish/guestfish.pod:219
15188 msgid ""
15189 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
15190 "auto-detection for C<another.img>."
15191 msgstr ""
15192
15193 # type: textblock
15194 #: ../fish/guestfish.pod:222
15195 msgid ""
15196 "If you have untrusted raw-format guest disk images, you should use this "
15197 "option to specify the disk format.  This avoids a possible security problem "
15198 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15199 msgstr ""
15200
15201 # type: =item
15202 #: ../fish/guestfish.pod:227
15203 msgid "B<-i> | B<--inspector>"
15204 msgstr ""
15205
15206 # type: textblock
15207 #: ../fish/guestfish.pod:229
15208 msgid ""
15209 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15210 "system and mount filesystems as they would be mounted on the real virtual "
15211 "machine."
15212 msgstr ""
15213
15214 # type: textblock
15215 #: ../fish/guestfish.pod:233
15216 msgid "Typical usage is either:"
15217 msgstr ""
15218
15219 # type: verbatim
15220 #: ../fish/guestfish.pod:235
15221 #, no-wrap
15222 msgid ""
15223 " guestfish -d myguest -i\n"
15224 "\n"
15225 msgstr ""
15226
15227 # type: textblock
15228 #: ../fish/guestfish.pod:237
15229 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15230 msgstr ""
15231
15232 # type: verbatim
15233 #: ../fish/guestfish.pod:239
15234 #, no-wrap
15235 msgid ""
15236 " guestfish --ro -d myguest -i\n"
15237 "\n"
15238 msgstr ""
15239
15240 # type: textblock
15241 #: ../fish/guestfish.pod:241
15242 msgid "(for active domains, readonly), or specify the block device directly:"
15243 msgstr ""
15244
15245 # type: verbatim
15246 #: ../fish/guestfish.pod:243
15247 #, no-wrap
15248 msgid ""
15249 " guestfish -a /dev/Guests/MyGuest -i\n"
15250 "\n"
15251 msgstr ""
15252
15253 # type: textblock
15254 #: ../fish/guestfish.pod:245
15255 msgid ""
15256 "Note that the command line syntax changed slightly over older versions of "
15257 "guestfish.  You can still use the old syntax:"
15258 msgstr ""
15259
15260 # type: verbatim
15261 #: ../fish/guestfish.pod:248
15262 #, no-wrap
15263 msgid ""
15264 " guestfish [--ro] -i disk.img\n"
15265 "\n"
15266 msgstr ""
15267
15268 # type: verbatim
15269 #: ../fish/guestfish.pod:250
15270 #, no-wrap
15271 msgid ""
15272 " guestfish [--ro] -i libvirt-domain\n"
15273 "\n"
15274 msgstr ""
15275
15276 # type: =item
15277 #: ../fish/guestfish.pod:252
15278 msgid "B<--keys-from-stdin>"
15279 msgstr ""
15280
15281 # type: textblock
15282 #: ../fish/guestfish.pod:254
15283 msgid ""
15284 "Read key or passphrase parameters from stdin.  The default is to try to read "
15285 "passphrases from the user by opening C</dev/tty>."
15286 msgstr ""
15287
15288 # type: =item
15289 #: ../fish/guestfish.pod:257
15290 msgid "B<--listen>"
15291 msgstr ""
15292
15293 # type: textblock
15294 #: ../fish/guestfish.pod:259
15295 msgid ""
15296 "Fork into the background and listen for remote commands.  See section "
15297 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15298 msgstr ""
15299
15300 # type: =item
15301 #: ../fish/guestfish.pod:262
15302 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15303 msgstr ""
15304
15305 # type: textblock
15306 #: ../fish/guestfish.pod:264
15307 msgid "Mount the named partition or logical volume on the given mountpoint."
15308 msgstr ""
15309
15310 # type: textblock
15311 #: ../fish/guestfish.pod:266
15312 msgid "If the mountpoint is omitted, it defaults to C</>."
15313 msgstr ""
15314
15315 # type: textblock
15316 #: ../fish/guestfish.pod:268
15317 msgid "You have to mount something on C</> before most commands will work."
15318 msgstr ""
15319
15320 # type: textblock
15321 #: ../fish/guestfish.pod:270
15322 msgid ""
15323 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15324 "launched."
15325 msgstr ""
15326
15327 # type: textblock
15328 #: ../fish/guestfish.pod:273
15329 msgid ""
15330 "If you don't know what filesystems a disk image contains, you can either run "
15331 "guestfish without this option, then list the partitions and LVs available "
15332 "(see L</list-partitions> and L</lvs> commands), or you can use the "
15333 "L<virt-list-filesystems(1)> program."
15334 msgstr ""
15335
15336 # type: =item
15337 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:106
15338 msgid "B<-n> | B<--no-sync>"
15339 msgstr ""
15340
15341 # type: textblock
15342 #: ../fish/guestfish.pod:280
15343 msgid ""
15344 "Disable autosync.  This is enabled by default.  See the discussion of "
15345 "autosync in the L<guestfs(3)> manpage."
15346 msgstr ""
15347
15348 # type: =item
15349 #: ../fish/guestfish.pod:283
15350 msgid "B<-N type> | B<--new type> | B<-N help>"
15351 msgstr ""
15352
15353 # type: textblock
15354 #: ../fish/guestfish.pod:285
15355 msgid ""
15356 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15357 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15358 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15359 "IMAGES> below."
15360 msgstr ""
15361
15362 # type: =item
15363 #: ../fish/guestfish.pod:290
15364 msgid "B<--progress-bars>"
15365 msgstr ""
15366
15367 # type: textblock
15368 #: ../fish/guestfish.pod:292
15369 msgid "Enable progress bars, even when guestfish is used non-interactively."
15370 msgstr ""
15371
15372 # type: textblock
15373 #: ../fish/guestfish.pod:294
15374 msgid ""
15375 "Progress bars are enabled by default when guestfish is used as an "
15376 "interactive shell."
15377 msgstr ""
15378
15379 # type: =item
15380 #: ../fish/guestfish.pod:297
15381 msgid "B<--no-progress-bars>"
15382 msgstr ""
15383
15384 # type: textblock
15385 #: ../fish/guestfish.pod:299
15386 msgid "Disable progress bars."
15387 msgstr ""
15388
15389 # type: =item
15390 #: ../fish/guestfish.pod:301
15391 msgid "B<--remote[=pid]>"
15392 msgstr ""
15393
15394 # type: textblock
15395 #: ../fish/guestfish.pod:303
15396 msgid ""
15397 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15398 "CONTROL GUESTFISH OVER A SOCKET> below."
15399 msgstr ""
15400
15401 # type: =item
15402 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:148
15403 msgid "B<-r> | B<--ro>"
15404 msgstr ""
15405
15406 # type: textblock
15407 #: ../fish/guestfish.pod:308
15408 msgid ""
15409 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15410 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15411 msgstr ""
15412
15413 # type: textblock
15414 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:179
15415 msgid ""
15416 "The option must always be used if the disk image or virtual machine might be "
15417 "running, and is generally recommended in cases where you don't need write "
15418 "access to the disk."
15419 msgstr ""
15420
15421 # type: textblock
15422 #: ../fish/guestfish.pod:315
15423 msgid ""
15424 "Note that prepared disk images created with I<-N> are not affected by the "
15425 "I<--ro> option."
15426 msgstr ""
15427
15428 # type: =item
15429 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:158 ../tools/virt-rescue.pl:187
15430 msgid "B<--selinux>"
15431 msgstr ""
15432
15433 # type: textblock
15434 #: ../fish/guestfish.pod:320
15435 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15436 msgstr ""
15437
15438 # type: =item
15439 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:168
15440 msgid "B<-v> | B<--verbose>"
15441 msgstr ""
15442
15443 # type: textblock
15444 #: ../fish/guestfish.pod:324
15445 msgid ""
15446 "Enable very verbose messages.  This is particularly useful if you find a "
15447 "bug."
15448 msgstr ""
15449
15450 # type: =item
15451 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:172
15452 msgid "B<-V> | B<--version>"
15453 msgstr ""
15454
15455 # type: textblock
15456 #: ../fish/guestfish.pod:329
15457 msgid "Display the guestfish / libguestfs version number and exit."
15458 msgstr ""
15459
15460 # type: =item
15461 #: ../fish/guestfish.pod:331
15462 msgid "B<-x>"
15463 msgstr ""
15464
15465 # type: textblock
15466 #: ../fish/guestfish.pod:333
15467 msgid "Echo each command before executing it."
15468 msgstr ""
15469
15470 # type: =head1
15471 #: ../fish/guestfish.pod:337
15472 msgid "COMMANDS ON COMMAND LINE"
15473 msgstr ""
15474
15475 # type: textblock
15476 #: ../fish/guestfish.pod:339
15477 msgid "Any additional (non-option) arguments are treated as commands to execute."
15478 msgstr ""
15479
15480 # type: textblock
15481 #: ../fish/guestfish.pod:342
15482 msgid ""
15483 "Commands to execute should be separated by a colon (C<:>), where the colon "
15484 "is a separate parameter.  Thus:"
15485 msgstr ""
15486
15487 # type: verbatim
15488 #: ../fish/guestfish.pod:345
15489 #, no-wrap
15490 msgid ""
15491 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
15492 "\n"
15493 msgstr ""
15494
15495 # type: textblock
15496 #: ../fish/guestfish.pod:347
15497 msgid ""
15498 "If there are no additional arguments, then we enter a shell, either an "
15499 "interactive shell with a prompt (if the input is a terminal) or a "
15500 "non-interactive shell."
15501 msgstr ""
15502
15503 # type: textblock
15504 #: ../fish/guestfish.pod:351
15505 msgid ""
15506 "In either command line mode or non-interactive shell, the first command that "
15507 "gives an error causes the whole shell to exit.  In interactive mode (with a "
15508 "prompt) if a command fails, you can continue to enter commands."
15509 msgstr ""
15510
15511 # type: =head1
15512 #: ../fish/guestfish.pod:356
15513 msgid "USING launch (OR run)"
15514 msgstr ""
15515
15516 # type: textblock
15517 #: ../fish/guestfish.pod:358
15518 msgid ""
15519 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
15520 "then launch it, then mount any disks you need, and finally issue "
15521 "actions/commands.  So the general order of the day is:"
15522 msgstr ""
15523
15524 # type: textblock
15525 #: ../fish/guestfish.pod:366
15526 msgid "add or -a/--add"
15527 msgstr ""
15528
15529 # type: textblock
15530 #: ../fish/guestfish.pod:370
15531 msgid "launch (aka run)"
15532 msgstr ""
15533
15534 # type: textblock
15535 #: ../fish/guestfish.pod:374
15536 msgid "mount or -m/--mount"
15537 msgstr ""
15538
15539 # type: textblock
15540 #: ../fish/guestfish.pod:378
15541 msgid "any other commands"
15542 msgstr ""
15543
15544 # type: textblock
15545 #: ../fish/guestfish.pod:382
15546 msgid ""
15547 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
15548 "guest before mounting or performing any other commands."
15549 msgstr ""
15550
15551 # type: textblock
15552 #: ../fish/guestfish.pod:385
15553 msgid ""
15554 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
15555 "I<--new> options were given then C<run> is done automatically, simply "
15556 "because guestfish can't perform the action you asked for without doing this."
15557 msgstr ""
15558
15559 # type: =head1
15560 #: ../fish/guestfish.pod:390
15561 msgid "QUOTING"
15562 msgstr ""
15563
15564 # type: textblock
15565 #: ../fish/guestfish.pod:392
15566 msgid ""
15567 "You can quote ordinary parameters using either single or double quotes.  For "
15568 "example:"
15569 msgstr ""
15570
15571 # type: verbatim
15572 #: ../fish/guestfish.pod:395
15573 #, no-wrap
15574 msgid ""
15575 " add \"file with a space.img\"\n"
15576 "\n"
15577 msgstr ""
15578
15579 # type: verbatim
15580 #: ../fish/guestfish.pod:397
15581 #, no-wrap
15582 msgid ""
15583 " rm '/file name'\n"
15584 "\n"
15585 msgstr ""
15586
15587 # type: verbatim
15588 #: ../fish/guestfish.pod:399
15589 #, no-wrap
15590 msgid ""
15591 " rm '/\"'\n"
15592 "\n"
15593 msgstr ""
15594
15595 # type: textblock
15596 #: ../fish/guestfish.pod:401
15597 msgid ""
15598 "A few commands require a list of strings to be passed.  For these, use a "
15599 "whitespace-separated list, enclosed in quotes.  Strings containing "
15600 "whitespace to be passed through must be enclosed in single quotes.  A "
15601 "literal single quote must be escaped with a backslash."
15602 msgstr ""
15603
15604 # type: verbatim
15605 #: ../fish/guestfish.pod:406
15606 #, no-wrap
15607 msgid ""
15608 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
15609 " command \"/bin/echo 'foo      bar'\"\n"
15610 " command \"/bin/echo \\'foo\\'\"\n"
15611 "\n"
15612 msgstr ""
15613
15614 # type: =head1
15615 #: ../fish/guestfish.pod:410
15616 msgid "OPTIONAL ARGUMENTS"
15617 msgstr ""
15618
15619 # type: textblock
15620 #: ../fish/guestfish.pod:412
15621 msgid ""
15622 "Some commands take optional arguments.  These arguments appear in this "
15623 "documentation as C<[argname:..]>.  You can use them as in these examples:"
15624 msgstr ""
15625
15626 # type: verbatim
15627 #: ../fish/guestfish.pod:416
15628 #, no-wrap
15629 msgid ""
15630 " add-drive-opts filename\n"
15631 "\n"
15632 msgstr ""
15633
15634 # type: verbatim
15635 #: ../fish/guestfish.pod:418
15636 #, no-wrap
15637 msgid ""
15638 " add-drive-opts filename readonly:true\n"
15639 "\n"
15640 msgstr ""
15641
15642 # type: verbatim
15643 #: ../fish/guestfish.pod:420
15644 #, no-wrap
15645 msgid ""
15646 " add-drive-opts filename format:qcow2 readonly:false\n"
15647 "\n"
15648 msgstr ""
15649
15650 # type: textblock
15651 #: ../fish/guestfish.pod:422
15652 msgid ""
15653 "Each optional argument can appear at most once.  All optional arguments must "
15654 "appear after the required ones."
15655 msgstr ""
15656
15657 # type: =head1
15658 #: ../fish/guestfish.pod:425
15659 msgid "NUMBERS"
15660 msgstr ""
15661
15662 # type: textblock
15663 #: ../fish/guestfish.pod:427
15664 msgid "This section applies to all commands which can take integers as parameters."
15665 msgstr ""
15666
15667 # type: =head2
15668 #: ../fish/guestfish.pod:430
15669 msgid "SIZE SUFFIX"
15670 msgstr ""
15671
15672 # type: textblock
15673 #: ../fish/guestfish.pod:432
15674 msgid ""
15675 "When the command takes a parameter measured in bytes, you can use one of the "
15676 "following suffixes to specify kilobytes, megabytes and larger sizes:"
15677 msgstr ""
15678
15679 # type: =item
15680 #: ../fish/guestfish.pod:438
15681 msgid "B<k> or B<K> or B<KiB>"
15682 msgstr ""
15683
15684 # type: textblock
15685 #: ../fish/guestfish.pod:440
15686 msgid "The size in kilobytes (multiplied by 1024)."
15687 msgstr ""
15688
15689 # type: =item
15690 #: ../fish/guestfish.pod:442
15691 msgid "B<KB>"
15692 msgstr ""
15693
15694 # type: textblock
15695 #: ../fish/guestfish.pod:444
15696 msgid "The size in SI 1000 byte units."
15697 msgstr ""
15698
15699 # type: =item
15700 #: ../fish/guestfish.pod:446
15701 msgid "B<M> or B<MiB>"
15702 msgstr ""
15703
15704 # type: textblock
15705 #: ../fish/guestfish.pod:448
15706 msgid "The size in megabytes (multiplied by 1048576)."
15707 msgstr ""
15708
15709 # type: =item
15710 #: ../fish/guestfish.pod:450
15711 msgid "B<MB>"
15712 msgstr ""
15713
15714 # type: textblock
15715 #: ../fish/guestfish.pod:452
15716 msgid "The size in SI 1000000 byte units."
15717 msgstr ""
15718
15719 # type: =item
15720 #: ../fish/guestfish.pod:454
15721 msgid "B<G> or B<GiB>"
15722 msgstr ""
15723
15724 # type: textblock
15725 #: ../fish/guestfish.pod:456
15726 msgid "The size in gigabytes (multiplied by 2**30)."
15727 msgstr ""
15728
15729 # type: =item
15730 #: ../fish/guestfish.pod:458
15731 msgid "B<GB>"
15732 msgstr ""
15733
15734 # type: textblock
15735 #: ../fish/guestfish.pod:460
15736 msgid "The size in SI 10**9 byte units."
15737 msgstr ""
15738
15739 # type: =item
15740 #: ../fish/guestfish.pod:462
15741 msgid "B<T> or B<TiB>"
15742 msgstr ""
15743
15744 # type: textblock
15745 #: ../fish/guestfish.pod:464
15746 msgid "The size in terabytes (multiplied by 2**40)."
15747 msgstr ""
15748
15749 # type: =item
15750 #: ../fish/guestfish.pod:466
15751 msgid "B<TB>"
15752 msgstr ""
15753
15754 # type: textblock
15755 #: ../fish/guestfish.pod:468
15756 msgid "The size in SI 10**12 byte units."
15757 msgstr ""
15758
15759 # type: =item
15760 #: ../fish/guestfish.pod:470
15761 msgid "B<P> or B<PiB>"
15762 msgstr ""
15763
15764 # type: textblock
15765 #: ../fish/guestfish.pod:472
15766 msgid "The size in petabytes (multiplied by 2**50)."
15767 msgstr ""
15768
15769 # type: =item
15770 #: ../fish/guestfish.pod:474
15771 msgid "B<PB>"
15772 msgstr ""
15773
15774 # type: textblock
15775 #: ../fish/guestfish.pod:476
15776 msgid "The size in SI 10**15 byte units."
15777 msgstr ""
15778
15779 # type: =item
15780 #: ../fish/guestfish.pod:478
15781 msgid "B<E> or B<EiB>"
15782 msgstr ""
15783
15784 # type: textblock
15785 #: ../fish/guestfish.pod:480
15786 msgid "The size in exabytes (multiplied by 2**60)."
15787 msgstr ""
15788
15789 # type: =item
15790 #: ../fish/guestfish.pod:482
15791 msgid "B<EB>"
15792 msgstr ""
15793
15794 # type: textblock
15795 #: ../fish/guestfish.pod:484
15796 msgid "The size in SI 10**18 byte units."
15797 msgstr ""
15798
15799 # type: =item
15800 #: ../fish/guestfish.pod:486
15801 msgid "B<Z> or B<ZiB>"
15802 msgstr ""
15803
15804 # type: textblock
15805 #: ../fish/guestfish.pod:488
15806 msgid "The size in zettabytes (multiplied by 2**70)."
15807 msgstr ""
15808
15809 # type: =item
15810 #: ../fish/guestfish.pod:490
15811 msgid "B<ZB>"
15812 msgstr ""
15813
15814 # type: textblock
15815 #: ../fish/guestfish.pod:492
15816 msgid "The size in SI 10**21 byte units."
15817 msgstr ""
15818
15819 # type: =item
15820 #: ../fish/guestfish.pod:494
15821 msgid "B<Y> or B<YiB>"
15822 msgstr ""
15823
15824 # type: textblock
15825 #: ../fish/guestfish.pod:496
15826 msgid "The size in yottabytes (multiplied by 2**80)."
15827 msgstr ""
15828
15829 # type: =item
15830 #: ../fish/guestfish.pod:498
15831 msgid "B<YB>"
15832 msgstr ""
15833
15834 # type: textblock
15835 #: ../fish/guestfish.pod:500
15836 msgid "The size in SI 10**24 byte units."
15837 msgstr ""
15838
15839 # type: verbatim
15840 #: ../fish/guestfish.pod:506
15841 #, no-wrap
15842 msgid ""
15843 " truncate-size /file 1G\n"
15844 "\n"
15845 msgstr ""
15846
15847 # type: textblock
15848 #: ../fish/guestfish.pod:508
15849 msgid "would truncate the file to 1 gigabyte."
15850 msgstr ""
15851
15852 # type: textblock
15853 #: ../fish/guestfish.pod:510
15854 msgid ""
15855 "Be careful because a few commands take sizes in kilobytes or megabytes "
15856 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
15857 "Adding a suffix will probably not do what you expect."
15858 msgstr ""
15859
15860 # type: =head2
15861 #: ../fish/guestfish.pod:514
15862 msgid "OCTAL AND HEXADECIMAL NUMBERS"
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../fish/guestfish.pod:516
15867 msgid ""
15868 "For specifying the radix (base) use the C convention: C<0> to prefix an "
15869 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
15870 msgstr ""
15871
15872 # type: verbatim
15873 #: ../fish/guestfish.pod:519
15874 #, no-wrap
15875 msgid ""
15876 " 1234      decimal number 1234\n"
15877 " 02322     octal number, equivalent to decimal 1234\n"
15878 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
15879 "\n"
15880 msgstr ""
15881
15882 # type: textblock
15883 #: ../fish/guestfish.pod:523
15884 msgid ""
15885 "When using the C<chmod> command, you almost always want to specify an octal "
15886 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
15887 "L<chmod(1)> program):"
15888 msgstr ""
15889
15890 # type: verbatim
15891 #: ../fish/guestfish.pod:527
15892 #, no-wrap
15893 msgid ""
15894 " chmod 0777 /public  # OK\n"
15895 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
15896 "\n"
15897 msgstr ""
15898
15899 # type: textblock
15900 #: ../fish/guestfish.pod:530
15901 msgid ""
15902 "Commands that return numbers usually print them in decimal, but some "
15903 "commands print numbers in other radices (eg. C<umask> prints the mode in "
15904 "octal, preceeded by C<0>)."
15905 msgstr ""
15906
15907 # type: =head1
15908 #: ../fish/guestfish.pod:534
15909 msgid "WILDCARDS AND GLOBBING"
15910 msgstr ""
15911
15912 # type: textblock
15913 #: ../fish/guestfish.pod:536
15914 msgid ""
15915 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
15916 "(globbing) by default.  So for example the following will not do what you "
15917 "expect:"
15918 msgstr ""
15919
15920 # type: verbatim
15921 #: ../fish/guestfish.pod:540
15922 #, no-wrap
15923 msgid ""
15924 " rm-rf /home/*\n"
15925 "\n"
15926 msgstr ""
15927
15928 # type: textblock
15929 #: ../fish/guestfish.pod:542
15930 msgid ""
15931 "Assuming you don't have a directory called literally C</home/*> then the "
15932 "above command will return an error."
15933 msgstr ""
15934
15935 # type: textblock
15936 #: ../fish/guestfish.pod:545
15937 msgid "To perform wildcard expansion, use the C<glob> command."
15938 msgstr ""
15939
15940 # type: verbatim
15941 #: ../fish/guestfish.pod:547
15942 #, no-wrap
15943 msgid ""
15944 " glob rm-rf /home/*\n"
15945 "\n"
15946 msgstr ""
15947
15948 # type: textblock
15949 #: ../fish/guestfish.pod:549
15950 msgid ""
15951 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
15952 "many times), equivalent to:"
15953 msgstr ""
15954
15955 # type: verbatim
15956 #: ../fish/guestfish.pod:552
15957 #, no-wrap
15958 msgid ""
15959 " rm-rf /home/jim\n"
15960 " rm-rf /home/joe\n"
15961 " rm-rf /home/mary\n"
15962 "\n"
15963 msgstr ""
15964
15965 # type: textblock
15966 #: ../fish/guestfish.pod:556
15967 msgid "C<glob> only works on simple guest paths and not on device names."
15968 msgstr ""
15969
15970 # type: textblock
15971 #: ../fish/guestfish.pod:558
15972 msgid ""
15973 "If you have several parameters, each containing a wildcard, then glob will "
15974 "perform a Cartesian product."
15975 msgstr ""
15976
15977 # type: =head1
15978 #: ../fish/guestfish.pod:561
15979 msgid "COMMENTS"
15980 msgstr ""
15981
15982 # type: textblock
15983 #: ../fish/guestfish.pod:563
15984 msgid ""
15985 "Any line which starts with a I<#> character is treated as a comment and "
15986 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
15987 "a command.  For example:"
15988 msgstr ""
15989
15990 # type: verbatim
15991 #: ../fish/guestfish.pod:567
15992 #, no-wrap
15993 msgid ""
15994 " # this is a comment\n"
15995 "         # this is a comment\n"
15996 " foo # NOT a comment\n"
15997 "\n"
15998 msgstr ""
15999
16000 # type: textblock
16001 #: ../fish/guestfish.pod:571
16002 msgid "Blank lines are also ignored."
16003 msgstr ""
16004
16005 # type: =head1
16006 #: ../fish/guestfish.pod:573
16007 msgid "RUNNING COMMANDS LOCALLY"
16008 msgstr ""
16009
16010 # type: textblock
16011 #: ../fish/guestfish.pod:575
16012 msgid ""
16013 "Any line which starts with a I<!> character is treated as a command sent to "
16014 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16015 msgstr ""
16016
16017 # type: verbatim
16018 #: ../fish/guestfish.pod:579
16019 #, no-wrap
16020 msgid ""
16021 " !mkdir local\n"
16022 " tgz-out /remote local/remote-data.tar.gz\n"
16023 "\n"
16024 msgstr ""
16025
16026 # type: textblock
16027 #: ../fish/guestfish.pod:582
16028 msgid ""
16029 "will create a directory C<local> on the host, and then export the contents "
16030 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16031 "(See C<tgz-out>)."
16032 msgstr ""
16033
16034 # type: textblock
16035 #: ../fish/guestfish.pod:586
16036 msgid ""
16037 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16038 "effect, due to the way that subprocesses work in Unix."
16039 msgstr ""
16040
16041 # type: =head1
16042 #: ../fish/guestfish.pod:589
16043 msgid "PIPES"
16044 msgstr ""
16045
16046 # type: textblock
16047 #: ../fish/guestfish.pod:591
16048 msgid ""
16049 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16050 "command (a guestfish command) to the second command (any host command).  For "
16051 "example:"
16052 msgstr ""
16053
16054 # type: verbatim
16055 #: ../fish/guestfish.pod:595
16056 #, no-wrap
16057 msgid ""
16058 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16059 "\n"
16060 msgstr ""
16061
16062 # type: textblock
16063 #: ../fish/guestfish.pod:597
16064 msgid ""
16065 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16066 "program).  The above command would list all accounts in the guest filesystem "
16067 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16068 msgstr ""
16069
16070 # type: verbatim
16071 #: ../fish/guestfish.pod:602
16072 #, no-wrap
16073 msgid ""
16074 " hexdump /bin/ls | head\n"
16075 " list-devices | tail -1\n"
16076 " tgz-out / - | tar ztf -\n"
16077 "\n"
16078 msgstr ""
16079
16080 # type: textblock
16081 #: ../fish/guestfish.pod:606
16082 msgid ""
16083 "The space before the pipe symbol is required, any space after the pipe "
16084 "symbol is optional.  Everything after the pipe symbol is just passed "
16085 "straight to the host shell, so it can contain redirections, globs and "
16086 "anything else that makes sense on the host side."
16087 msgstr ""
16088
16089 # type: textblock
16090 #: ../fish/guestfish.pod:611
16091 msgid ""
16092 "To use a literal argument which begins with a pipe symbol, you have to quote "
16093 "it, eg:"
16094 msgstr ""
16095
16096 # type: verbatim
16097 #: ../fish/guestfish.pod:614
16098 #, no-wrap
16099 msgid ""
16100 " echo \"|\"\n"
16101 "\n"
16102 msgstr ""
16103
16104 # type: =head1
16105 #: ../fish/guestfish.pod:616
16106 msgid "HOME DIRECTORIES"
16107 msgstr ""
16108
16109 # type: textblock
16110 #: ../fish/guestfish.pod:618
16111 msgid ""
16112 "If a parameter starts with the character C<~> then the tilde may be expanded "
16113 "as a home directory path (either C<~> for the current user's home directory, "
16114 "or C<~user> for another user)."
16115 msgstr ""
16116
16117 # type: textblock
16118 #: ../fish/guestfish.pod:622
16119 msgid ""
16120 "Note that home directory expansion happens for users known I<on the host>, "
16121 "not in the guest filesystem."
16122 msgstr ""
16123
16124 # type: textblock
16125 #: ../fish/guestfish.pod:625
16126 msgid ""
16127 "To use a literal argument which begins with a tilde, you have to quote it, "
16128 "eg:"
16129 msgstr ""
16130
16131 # type: verbatim
16132 #: ../fish/guestfish.pod:628
16133 #, no-wrap
16134 msgid ""
16135 " echo \"~\"\n"
16136 "\n"
16137 msgstr ""
16138
16139 # type: textblock
16140 #: ../fish/guestfish.pod:632
16141 msgid ""
16142 "Libguestfs has some support for Linux guests encrypted according to the "
16143 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16144 "disk encryption systems used by modern Linux guests.  Currently only "
16145 "LVM-on-LUKS is supported."
16146 msgstr ""
16147
16148 # type: textblock
16149 #: ../fish/guestfish.pod:637
16150 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16151 msgstr ""
16152
16153 # type: verbatim
16154 #: ../fish/guestfish.pod:639
16155 #, no-wrap
16156 msgid ""
16157 " ><fs> vfs-type /dev/sda2\n"
16158 " crypto_LUKS\n"
16159 "\n"
16160 msgstr ""
16161
16162 # type: textblock
16163 #: ../fish/guestfish.pod:642
16164 msgid ""
16165 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16166 "device called C</dev/mapper/luksdev>."
16167 msgstr ""
16168
16169 # type: verbatim
16170 #: ../fish/guestfish.pod:645
16171 #, no-wrap
16172 msgid ""
16173 " ><fs> luks-open /dev/sda2 luksdev\n"
16174 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16175 "\n"
16176 msgstr ""
16177
16178 # type: textblock
16179 #: ../fish/guestfish.pod:648
16180 msgid ""
16181 "Finally you have to tell LVM to scan for volume groups on the newly created "
16182 "mapper device:"
16183 msgstr ""
16184
16185 # type: verbatim
16186 #: ../fish/guestfish.pod:651
16187 #, no-wrap
16188 msgid ""
16189 " vgscan\n"
16190 " vg-activate-all true\n"
16191 "\n"
16192 msgstr ""
16193
16194 # type: textblock
16195 #: ../fish/guestfish.pod:654
16196 msgid "The logical volume(s) can now be mounted in the usual way."
16197 msgstr ""
16198
16199 # type: textblock
16200 #: ../fish/guestfish.pod:656
16201 msgid ""
16202 "Before closing a LUKS device you must unmount any logical volumes on it and "
16203 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16204 "one.  Then you can close the mapper device:"
16205 msgstr ""
16206
16207 # type: verbatim
16208 #: ../fish/guestfish.pod:660
16209 #, no-wrap
16210 msgid ""
16211 " vg-activate false /dev/VG\n"
16212 " luks-close /dev/mapper/luksdev\n"
16213 "\n"
16214 msgstr ""
16215
16216 # type: =head1
16217 #: ../fish/guestfish.pod:663
16218 msgid "WINDOWS PATHS"
16219 msgstr ""
16220
16221 # type: textblock
16222 #: ../fish/guestfish.pod:665
16223 msgid ""
16224 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16225 "(with some limitations).  The following commands are equivalent:"
16226 msgstr ""
16227
16228 # type: verbatim
16229 #: ../fish/guestfish.pod:668
16230 #, no-wrap
16231 msgid ""
16232 " file /WINDOWS/system32/config/system.LOG\n"
16233 "\n"
16234 msgstr ""
16235
16236 # type: verbatim
16237 #: ../fish/guestfish.pod:670
16238 #, no-wrap
16239 msgid ""
16240 " file win:/windows/system32/config/system.log\n"
16241 "\n"
16242 msgstr ""
16243
16244 # type: verbatim
16245 #: ../fish/guestfish.pod:672
16246 #, no-wrap
16247 msgid ""
16248 " file win:\\windows\\system32\\config\\system.log\n"
16249 "\n"
16250 msgstr ""
16251
16252 # type: verbatim
16253 #: ../fish/guestfish.pod:674
16254 #, no-wrap
16255 msgid ""
16256 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16257 "\n"
16258 msgstr ""
16259
16260 # type: textblock
16261 #: ../fish/guestfish.pod:676
16262 msgid ""
16263 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16264 "handles case insensitivity like Windows would.  This only works in argument "
16265 "positions that expect a path."
16266 msgstr ""
16267
16268 # type: =head1
16269 #: ../fish/guestfish.pod:680
16270 msgid "UPLOADING AND DOWNLOADING FILES"
16271 msgstr ""
16272
16273 # type: textblock
16274 #: ../fish/guestfish.pod:682
16275 msgid ""
16276 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16277 "others which upload from or download to a local file, you can use the "
16278 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16279 msgstr ""
16280
16281 # type: verbatim
16282 #: ../fish/guestfish.pod:686
16283 #, no-wrap
16284 msgid ""
16285 " upload - /foo\n"
16286 "\n"
16287 msgstr ""
16288
16289 # type: textblock
16290 #: ../fish/guestfish.pod:688
16291 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
16292 msgstr ""
16293
16294 # type: verbatim
16295 #: ../fish/guestfish.pod:691
16296 #, no-wrap
16297 msgid ""
16298 " tar-out /etc - | tar tf -\n"
16299 "\n"
16300 msgstr ""
16301
16302 # type: textblock
16303 #: ../fish/guestfish.pod:693
16304 msgid ""
16305 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16306 "command (see L</PIPES>)."
16307 msgstr ""
16308
16309 # type: textblock
16310 #: ../fish/guestfish.pod:696
16311 msgid ""
16312 "When using C<-> to read from stdin, the input is read up to the end of "
16313 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16314 "some arbitrary end marker:"
16315 msgstr ""
16316
16317 # type: verbatim
16318 #: ../fish/guestfish.pod:700
16319 #, no-wrap
16320 msgid ""
16321 " upload -<<END /foo\n"
16322 " input line 1\n"
16323 " input line 2\n"
16324 " input line 3\n"
16325 " END\n"
16326 "\n"
16327 msgstr ""
16328
16329 # type: textblock
16330 #: ../fish/guestfish.pod:706
16331 msgid ""
16332 "Any string of characters can be used instead of C<END>.  The end marker must "
16333 "appear on a line of its own, without any preceeding or following characters "
16334 "(not even spaces)."
16335 msgstr ""
16336
16337 # type: textblock
16338 #: ../fish/guestfish.pod:710
16339 msgid ""
16340 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16341 "upload local files (so-called \"FileIn\" parameters in the generator)."
16342 msgstr ""
16343
16344 # type: =head1
16345 #: ../fish/guestfish.pod:713
16346 msgid "EXIT ON ERROR BEHAVIOUR"
16347 msgstr ""
16348
16349 # type: textblock
16350 #: ../fish/guestfish.pod:715
16351 msgid ""
16352 "By default, guestfish will ignore any errors when in interactive mode "
16353 "(ie. taking commands from a human over a tty), and will exit on the first "
16354 "error in non-interactive mode (scripts, commands given on the command line)."
16355 msgstr ""
16356
16357 # type: textblock
16358 #: ../fish/guestfish.pod:720
16359 msgid ""
16360 "If you prefix a command with a I<-> character, then that command will not "
16361 "cause guestfish to exit, even if that (one) command returns an error."
16362 msgstr ""
16363
16364 # type: =head1
16365 #: ../fish/guestfish.pod:724
16366 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16367 msgstr ""
16368
16369 # type: textblock
16370 #: ../fish/guestfish.pod:726
16371 msgid ""
16372 "Guestfish can be remote-controlled over a socket.  This is useful "
16373 "particularly in shell scripts where you want to make several different "
16374 "changes to a filesystem, but you don't want the overhead of starting up a "
16375 "guestfish process each time."
16376 msgstr ""
16377
16378 # type: textblock
16379 #: ../fish/guestfish.pod:731
16380 msgid "Start a guestfish server process using:"
16381 msgstr ""
16382
16383 # type: verbatim
16384 #: ../fish/guestfish.pod:733
16385 #, no-wrap
16386 msgid ""
16387 " eval `guestfish --listen`\n"
16388 "\n"
16389 msgstr ""
16390
16391 # type: textblock
16392 #: ../fish/guestfish.pod:735
16393 msgid "and then send it commands by doing:"
16394 msgstr ""
16395
16396 # type: verbatim
16397 #: ../fish/guestfish.pod:737
16398 #, no-wrap
16399 msgid ""
16400 " guestfish --remote cmd [...]\n"
16401 "\n"
16402 msgstr ""
16403
16404 # type: textblock
16405 #: ../fish/guestfish.pod:739
16406 msgid "To cause the server to exit, send it the exit command:"
16407 msgstr ""
16408
16409 # type: verbatim
16410 #: ../fish/guestfish.pod:741
16411 #, no-wrap
16412 msgid ""
16413 " guestfish --remote exit\n"
16414 "\n"
16415 msgstr ""
16416
16417 # type: textblock
16418 #: ../fish/guestfish.pod:743
16419 msgid ""
16420 "Note that the server will normally exit if there is an error in a command.  "
16421 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16422 "BEHAVIOUR>."
16423 msgstr ""
16424
16425 # type: =head2
16426 #: ../fish/guestfish.pod:747
16427 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16428 msgstr ""
16429
16430 # type: textblock
16431 #: ../fish/guestfish.pod:749
16432 msgid ""
16433 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16434 "is how the I<--remote> option knows where to send the commands.  You can "
16435 "have several guestfish listener processes running using:"
16436 msgstr ""
16437
16438 # type: verbatim
16439 #: ../fish/guestfish.pod:753
16440 #, no-wrap
16441 msgid ""
16442 " eval `guestfish --listen`\n"
16443 " pid1=$GUESTFISH_PID\n"
16444 " eval `guestfish --listen`\n"
16445 " pid2=$GUESTFISH_PID\n"
16446 " ...\n"
16447 " guestfish --remote=$pid1 cmd\n"
16448 " guestfish --remote=$pid2 cmd\n"
16449 "\n"
16450 msgstr ""
16451
16452 # type: =head2
16453 #: ../fish/guestfish.pod:761
16454 msgid "REMOTE CONTROL DETAILS"
16455 msgstr ""
16456
16457 # type: textblock
16458 #: ../fish/guestfish.pod:763
16459 msgid ""
16460 "Remote control happens over a Unix domain socket called "
16461 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
16462 "of the process, and C<$PID> is the process ID of the server."
16463 msgstr ""
16464
16465 # type: textblock
16466 #: ../fish/guestfish.pod:767
16467 msgid "Guestfish client and server versions must match exactly."
16468 msgstr ""
16469
16470 # type: =head1
16471 #: ../fish/guestfish.pod:769
16472 msgid "PREPARED DISK IMAGES"
16473 msgstr ""
16474
16475 # type: textblock
16476 #: ../fish/guestfish.pod:771
16477 msgid ""
16478 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16479 "preformatted disk images that guestfish can make for you to save typing.  "
16480 "This is particularly useful for testing purposes.  This option is used "
16481 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16482 "can be mixed with I<-a>)."
16483 msgstr ""
16484
16485 # type: textblock
16486 #: ../fish/guestfish.pod:777
16487 msgid ""
16488 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
16489 "the second and so on.  Existing files in the current directory are "
16490 "I<overwritten>."
16491 msgstr ""
16492
16493 # type: textblock
16494 #: ../fish/guestfish.pod:781
16495 msgid ""
16496 "The type briefly describes how the disk should be sized, partitioned, how "
16497 "filesystem(s) should be created, and how content should be added.  "
16498 "Optionally the type can be followed by extra parameters, separated by C<:> "
16499 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
16500 "sparsely-allocated disk, containing a single partition, with the partition "
16501 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
16502 "on a 1GB disk instead."
16503 msgstr ""
16504
16505 # type: textblock
16506 #: ../fish/guestfish.pod:789
16507 msgid "To list the available types and any extra parameters they take, run:"
16508 msgstr ""
16509
16510 # type: textblock
16511 #: ../fish/guestfish.pod:793
16512 msgid ""
16513 "Note that the prepared filesystem is not mounted.  You would usually have to "
16514 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
16515 msgstr ""
16516
16517 # type: textblock
16518 #: ../fish/guestfish.pod:797
16519 msgid ""
16520 "If any I<-N> or I<--new> options are given, the guest is automatically "
16521 "launched."
16522 msgstr ""
16523
16524 # type: textblock
16525 #: ../fish/guestfish.pod:802
16526 msgid "Create a 100MB disk with an ext4-formatted partition:"
16527 msgstr ""
16528
16529 # type: verbatim
16530 #: ../fish/guestfish.pod:804
16531 #, no-wrap
16532 msgid ""
16533 " guestfish -N fs:ext4\n"
16534 "\n"
16535 msgstr ""
16536
16537 # type: textblock
16538 #: ../fish/guestfish.pod:806
16539 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
16540 msgstr ""
16541
16542 # type: verbatim
16543 #: ../fish/guestfish.pod:808
16544 #, no-wrap
16545 msgid ""
16546 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
16547 "\n"
16548 msgstr ""
16549
16550 # type: textblock
16551 #: ../fish/guestfish.pod:810
16552 msgid "Create a blank 200MB disk:"
16553 msgstr ""
16554
16555 # type: verbatim
16556 #: ../fish/guestfish.pod:812
16557 #, no-wrap
16558 msgid ""
16559 " guestfish -N disk:200M\n"
16560 "\n"
16561 msgstr ""
16562
16563 # type: =head1
16564 #: ../fish/guestfish.pod:814
16565 msgid "PROGRESS BARS"
16566 msgstr ""
16567
16568 # type: textblock
16569 #: ../fish/guestfish.pod:816
16570 msgid ""
16571 "Some (not all) long-running commands send progress notification messages as "
16572 "they are running.  Guestfish turns these messages into progress bars."
16573 msgstr ""
16574
16575 # type: textblock
16576 #: ../fish/guestfish.pod:820
16577 msgid ""
16578 "When a command that supports progress bars takes longer than two seconds to "
16579 "run, and if progress bars are enabled, then you will see one appearing below "
16580 "the command:"
16581 msgstr ""
16582
16583 # type: verbatim
16584 #: ../fish/guestfish.pod:824
16585 #, no-wrap
16586 msgid ""
16587 " ><fs> copy-size /large-file /another-file 2048M\n"
16588 " / 10% [#####-----------------------------------------] 00:30\n"
16589 "\n"
16590 msgstr ""
16591
16592 # type: textblock
16593 #: ../fish/guestfish.pod:827
16594 msgid ""
16595 "The spinner on the left hand side moves round once for every progress "
16596 "notification received from the backend.  This is a (reasonably) golden "
16597 "assurance that the command is \"doing something\" even if the progress bar "
16598 "is not moving, because the command is able to send the progress "
16599 "notifications.  When the bar reaches 100% and the command finishes, the "
16600 "spinner disappears."
16601 msgstr ""
16602
16603 # type: textblock
16604 #: ../fish/guestfish.pod:834
16605 msgid ""
16606 "Progress bars are enabled by default when guestfish is used interactively.  "
16607 "You can enable them even for non-interactive modes using I<--progress-bars>, "
16608 "and you can disable them completely using I<--no-progress-bars>."
16609 msgstr ""
16610
16611 # type: =head1
16612 #: ../fish/guestfish.pod:839
16613 msgid "GUESTFISH COMMANDS"
16614 msgstr ""
16615
16616 # type: textblock
16617 #: ../fish/guestfish.pod:841
16618 msgid ""
16619 "The commands in this section are guestfish convenience commands, in other "
16620 "words, they are not part of the L<guestfs(3)> API."
16621 msgstr ""
16622
16623 # type: =head2
16624 #: ../fish/guestfish.pod:844
16625 msgid "help"
16626 msgstr ""
16627
16628 # type: verbatim
16629 #: ../fish/guestfish.pod:846
16630 #, no-wrap
16631 msgid ""
16632 " help\n"
16633 " help cmd\n"
16634 "\n"
16635 msgstr ""
16636
16637 # type: textblock
16638 #: ../fish/guestfish.pod:849
16639 msgid ""
16640 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
16641 "this displays detailed help for a command."
16642 msgstr ""
16643
16644 # type: =head2
16645 #: ../fish/guestfish.pod:852
16646 msgid "quit | exit"
16647 msgstr ""
16648
16649 # type: textblock
16650 #: ../fish/guestfish.pod:854
16651 msgid "This exits guestfish.  You can also use C<^D> key."
16652 msgstr ""
16653
16654 # type: textblock
16655 #: ../fish/guestfish.pod:856
16656 msgid "@FISH_COMMANDS@"
16657 msgstr ""
16658
16659 # type: =head1
16660 #: ../fish/guestfish.pod:858
16661 msgid "COMMANDS"
16662 msgstr ""
16663
16664 # type: =head1
16665 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
16666 msgid "EXIT CODE"
16667 msgstr ""
16668
16669 # type: textblock
16670 #: ../fish/guestfish.pod:864
16671 msgid ""
16672 "guestfish returns 0 if the commands completed without error, or 1 if there "
16673 "was an error."
16674 msgstr ""
16675
16676 # type: =item
16677 #: ../fish/guestfish.pod:871
16678 msgid "EDITOR"
16679 msgstr ""
16680
16681 # type: textblock
16682 #: ../fish/guestfish.pod:873
16683 msgid ""
16684 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
16685 "C<vi>."
16686 msgstr ""
16687
16688 # type: =item
16689 #: ../fish/guestfish.pod:876
16690 msgid "GUESTFISH_PID"
16691 msgstr ""
16692
16693 # type: textblock
16694 #: ../fish/guestfish.pod:878
16695 msgid ""
16696 "Used with the I<--remote> option to specify the remote guestfish process to "
16697 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16698 msgstr ""
16699
16700 # type: =item
16701 #: ../fish/guestfish.pod:882
16702 msgid "HEXEDITOR"
16703 msgstr ""
16704
16705 # type: textblock
16706 #: ../fish/guestfish.pod:884
16707 msgid ""
16708 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
16709 "not specified, the external L<hexedit(1)> program is used."
16710 msgstr ""
16711
16712 # type: =item
16713 #: ../fish/guestfish.pod:888
16714 msgid "HOME"
16715 msgstr ""
16716
16717 # type: textblock
16718 #: ../fish/guestfish.pod:890
16719 msgid ""
16720 "If compiled with GNU readline support, various files in the home directory "
16721 "can be used.  See L</FILES>."
16722 msgstr ""
16723
16724 # type: textblock
16725 #: ../fish/guestfish.pod:899
16726 msgid ""
16727 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16728 "effect as using the B<-v> option."
16729 msgstr ""
16730
16731 # type: textblock
16732 #: ../fish/guestfish.pod:911
16733 msgid ""
16734 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16735 "the discussion of paths in L<guestfs(3)>."
16736 msgstr ""
16737
16738 # type: textblock
16739 #: ../fish/guestfish.pod:922
16740 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16741 msgstr ""
16742
16743 # type: =item
16744 #: ../fish/guestfish.pod:924
16745 msgid "PAGER"
16746 msgstr ""
16747
16748 # type: textblock
16749 #: ../fish/guestfish.pod:926
16750 msgid ""
16751 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16752 "C<more>."
16753 msgstr ""
16754
16755 # type: =head1
16756 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
16757 msgid "FILES"
16758 msgstr ""
16759
16760 # type: =item
16761 #: ../fish/guestfish.pod:945
16762 msgid "$HOME/.guestfish"
16763 msgstr ""
16764
16765 # type: textblock
16766 #: ../fish/guestfish.pod:947
16767 msgid ""
16768 "If compiled with GNU readline support, then the command history is saved in "
16769 "this file."
16770 msgstr ""
16771
16772 # type: =item
16773 #: ../fish/guestfish.pod:950
16774 msgid "$HOME/.inputrc"
16775 msgstr ""
16776
16777 # type: =item
16778 #: ../fish/guestfish.pod:952
16779 msgid "/etc/inputrc"
16780 msgstr ""
16781
16782 # type: textblock
16783 #: ../fish/guestfish.pod:954
16784 msgid ""
16785 "If compiled with GNU readline support, then these files can be used to "
16786 "configure readline.  For further information, please see "
16787 "L<readline(3)/INITIALIZATION FILE>."
16788 msgstr ""
16789
16790 # type: textblock
16791 #: ../fish/guestfish.pod:958
16792 msgid "To write rules which only apply to guestfish, use:"
16793 msgstr ""
16794
16795 # type: verbatim
16796 #: ../fish/guestfish.pod:960
16797 #, no-wrap
16798 msgid ""
16799 " $if guestfish\n"
16800 " ...\n"
16801 " $endif\n"
16802 "\n"
16803 msgstr ""
16804
16805 # type: textblock
16806 #: ../fish/guestfish.pod:964
16807 msgid ""
16808 "Variables that you can set in inputrc that change the behaviour of guestfish "
16809 "in useful ways include:"
16810 msgstr ""
16811
16812 # type: =item
16813 #: ../fish/guestfish.pod:969
16814 msgid "completion-ignore-case (default: on)"
16815 msgstr ""
16816
16817 # type: textblock
16818 #: ../fish/guestfish.pod:971
16819 msgid ""
16820 "By default, guestfish will ignore case when tab-completing paths on the "
16821 "disk.  Use:"
16822 msgstr ""
16823
16824 # type: verbatim
16825 #: ../fish/guestfish.pod:974
16826 #, no-wrap
16827 msgid ""
16828 " set completion-ignore-case off\n"
16829 "\n"
16830 msgstr ""
16831
16832 # type: textblock
16833 #: ../fish/guestfish.pod:976
16834 msgid "to make guestfish case sensitive."
16835 msgstr ""
16836
16837 # type: =item
16838 #: ../fish/guestfish.pod:980
16839 msgid "test1.img"
16840 msgstr ""
16841
16842 # type: =item
16843 #: ../fish/guestfish.pod:982
16844 msgid "test2.img (etc)"
16845 msgstr ""
16846
16847 # type: textblock
16848 #: ../fish/guestfish.pod:984
16849 msgid ""
16850 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
16851 "will be created in the file C<test1.img> in the current directory.  The "
16852 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
16853 "the same name will be overwritten."
16854 msgstr ""
16855
16856 # type: textblock
16857 #: ../fish/guestfish.pod:993
16858 msgid ""
16859 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
16860 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
16861 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
16862 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
16863 msgstr ""
16864
16865 # type: textblock
16866 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:198 ../inspector/virt-inspector.pl:903 ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:521 ../tools/virt-df.pl:631 ../tools/virt-ls.pl:254 ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:236 ../tools/virt-cat.pl:206 ../tools/virt-tar.pl:302 ../tools/virt-rescue.pl:275 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
16867 msgid ""
16868 "This program is free software; you can redistribute it and/or modify it "
16869 "under the terms of the GNU General Public License as published by the Free "
16870 "Software Foundation; either version 2 of the License, or (at your option) "
16871 "any later version."
16872 msgstr ""
16873
16874 # type: textblock
16875 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:203 ../inspector/virt-inspector.pl:908 ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:526 ../tools/virt-df.pl:636 ../tools/virt-ls.pl:259 ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:241 ../tools/virt-cat.pl:211 ../tools/virt-tar.pl:307 ../tools/virt-rescue.pl:280 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
16876 msgid ""
16877 "This program is distributed in the hope that it will be useful, but WITHOUT "
16878 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
16879 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
16880 "more details."
16881 msgstr ""
16882
16883 # type: textblock
16884 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:208 ../inspector/virt-inspector.pl:913 ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:531 ../tools/virt-df.pl:641 ../tools/virt-ls.pl:264 ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:246 ../tools/virt-cat.pl:216 ../tools/virt-tar.pl:312 ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
16885 msgid ""
16886 "You should have received a copy of the GNU General Public License along with "
16887 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
16888 "Ave, Cambridge, MA 02139, USA."
16889 msgstr ""
16890
16891 # type: =head2
16892 #: ../fish/guestfish-actions.pod:1
16893 msgid "add-cdrom"
16894 msgstr ""
16895
16896 # type: verbatim
16897 #: ../fish/guestfish-actions.pod:3
16898 #, no-wrap
16899 msgid ""
16900 " add-cdrom filename\n"
16901 "\n"
16902 msgstr ""
16903
16904 # type: textblock
16905 #: ../fish/guestfish-actions.pod:15
16906 msgid ""
16907 "This call checks for the existence of C<filename>.  This stops you from "
16908 "specifying other types of drive which are supported by qemu such as C<nbd:> "
16909 "and C<http:> URLs.  To specify those, use the general L</config> call "
16910 "instead."
16911 msgstr ""
16912
16913 # type: textblock
16914 #: ../fish/guestfish-actions.pod:22
16915 msgid ""
16916 "If you just want to add an ISO file (often you use this as an efficient way "
16917 "to transfer large files into the guest), then you should probably use "
16918 "L</add-drive-ro> instead."
16919 msgstr ""
16920
16921 # type: =head2
16922 #: ../fish/guestfish-actions.pod:35
16923 msgid "add-drive"
16924 msgstr ""
16925
16926 # type: verbatim
16927 #: ../fish/guestfish-actions.pod:37
16928 #, no-wrap
16929 msgid ""
16930 " add-drive filename\n"
16931 "\n"
16932 msgstr ""
16933
16934 # type: textblock
16935 #: ../fish/guestfish-actions.pod:39
16936 msgid ""
16937 "This function is the equivalent of calling L</add-drive-opts> with no "
16938 "optional parameters, so the disk is added writable, with the format being "
16939 "detected automatically."
16940 msgstr ""
16941
16942 # type: textblock
16943 #: ../fish/guestfish-actions.pod:43
16944 msgid ""
16945 "Automatic detection of the format opens you up to a potential security hole "
16946 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
16947 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
16948 "you should think about replacing calls to this function with calls to "
16949 "L</add-drive-opts>, and specifying the format."
16950 msgstr ""
16951
16952 # type: =head2
16953 #: ../fish/guestfish-actions.pod:50
16954 msgid "add-drive-opts"
16955 msgstr ""
16956
16957 # type: =head2
16958 #: ../fish/guestfish-actions.pod:52
16959 msgid "add"
16960 msgstr ""
16961
16962 # type: verbatim
16963 #: ../fish/guestfish-actions.pod:54
16964 #, no-wrap
16965 msgid ""
16966 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
16967 "\n"
16968 msgstr ""
16969
16970 # type: textblock
16971 #: ../fish/guestfish-actions.pod:81
16972 msgid ""
16973 "This forces the image format.  If you omit this (or use L</add-drive> or "
16974 "L</add-drive-ro>) then the format is automatically detected.  Possible "
16975 "formats include C<raw> and C<qcow2>."
16976 msgstr ""
16977
16978 # type: textblock
16979 #: ../fish/guestfish-actions.pod:92
16980 msgid ""
16981 "This rarely-used option lets you emulate the behaviour of the deprecated "
16982 "L</add-drive-with-if> call (q.v.)"
16983 msgstr ""
16984
16985 # type: textblock
16986 #: ../fish/guestfish-actions.pod:97
16987 msgid ""
16988 "This command has one or more optional arguments.  See L</OPTIONAL "
16989 "ARGUMENTS>."
16990 msgstr ""
16991
16992 # type: =head2
16993 #: ../fish/guestfish-actions.pod:99
16994 msgid "add-drive-ro"
16995 msgstr ""
16996
16997 # type: =head2
16998 #: ../fish/guestfish-actions.pod:101
16999 msgid "add-ro"
17000 msgstr ""
17001
17002 # type: verbatim
17003 #: ../fish/guestfish-actions.pod:103
17004 #, no-wrap
17005 msgid ""
17006 " add-drive-ro filename\n"
17007 "\n"
17008 msgstr ""
17009
17010 # type: textblock
17011 #: ../fish/guestfish-actions.pod:105
17012 msgid ""
17013 "This function is the equivalent of calling L</add-drive-opts> with the "
17014 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17015 "is added read-only, with the format being detected automatically."
17016 msgstr ""
17017
17018 # type: =head2
17019 #: ../fish/guestfish-actions.pod:110
17020 msgid "add-drive-ro-with-if"
17021 msgstr ""
17022
17023 # type: verbatim
17024 #: ../fish/guestfish-actions.pod:112
17025 #, no-wrap
17026 msgid ""
17027 " add-drive-ro-with-if filename iface\n"
17028 "\n"
17029 msgstr ""
17030
17031 # type: textblock
17032 #: ../fish/guestfish-actions.pod:114
17033 msgid ""
17034 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17035 "interface emulation to use at run time."
17036 msgstr ""
17037
17038 # type: =head2
17039 #: ../fish/guestfish-actions.pod:124
17040 msgid "add-drive-with-if"
17041 msgstr ""
17042
17043 # type: verbatim
17044 #: ../fish/guestfish-actions.pod:126
17045 #, no-wrap
17046 msgid ""
17047 " add-drive-with-if filename iface\n"
17048 "\n"
17049 msgstr ""
17050
17051 # type: textblock
17052 #: ../fish/guestfish-actions.pod:128
17053 msgid ""
17054 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17055 "interface emulation to use at run time."
17056 msgstr ""
17057
17058 # type: =head2
17059 #: ../fish/guestfish-actions.pod:138
17060 msgid "aug-clear"
17061 msgstr ""
17062
17063 # type: verbatim
17064 #: ../fish/guestfish-actions.pod:140
17065 #, no-wrap
17066 msgid ""
17067 " aug-clear augpath\n"
17068 "\n"
17069 msgstr ""
17070
17071 # type: =head2
17072 #: ../fish/guestfish-actions.pod:145
17073 msgid "aug-close"
17074 msgstr ""
17075
17076 # type: verbatim
17077 #: ../fish/guestfish-actions.pod:147
17078 #, no-wrap
17079 msgid ""
17080 " aug-close\n"
17081 "\n"
17082 msgstr ""
17083
17084 # type: textblock
17085 #: ../fish/guestfish-actions.pod:149
17086 msgid ""
17087 "Close the current Augeas handle and free up any resources used by it.  After "
17088 "calling this, you have to call L</aug-init> again before you can use any "
17089 "other Augeas functions."
17090 msgstr ""
17091
17092 # type: =head2
17093 #: ../fish/guestfish-actions.pod:154
17094 msgid "aug-defnode"
17095 msgstr ""
17096
17097 # type: verbatim
17098 #: ../fish/guestfish-actions.pod:156
17099 #, no-wrap
17100 msgid ""
17101 " aug-defnode name expr val\n"
17102 "\n"
17103 msgstr ""
17104
17105 # type: textblock
17106 #: ../fish/guestfish-actions.pod:161
17107 msgid ""
17108 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17109 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17110 "containing that single node."
17111 msgstr ""
17112
17113 # type: =head2
17114 #: ../fish/guestfish-actions.pod:169
17115 msgid "aug-defvar"
17116 msgstr ""
17117
17118 # type: verbatim
17119 #: ../fish/guestfish-actions.pod:171
17120 #, no-wrap
17121 msgid ""
17122 " aug-defvar name expr\n"
17123 "\n"
17124 msgstr ""
17125
17126 # type: =head2
17127 #: ../fish/guestfish-actions.pod:180
17128 msgid "aug-get"
17129 msgstr ""
17130
17131 # type: verbatim
17132 #: ../fish/guestfish-actions.pod:182
17133 #, no-wrap
17134 msgid ""
17135 " aug-get augpath\n"
17136 "\n"
17137 msgstr ""
17138
17139 # type: =head2
17140 #: ../fish/guestfish-actions.pod:187
17141 msgid "aug-init"
17142 msgstr ""
17143
17144 # type: verbatim
17145 #: ../fish/guestfish-actions.pod:189
17146 #, no-wrap
17147 msgid ""
17148 " aug-init root flags\n"
17149 "\n"
17150 msgstr ""
17151
17152 # type: textblock
17153 #: ../fish/guestfish-actions.pod:195
17154 msgid "You must call this before using any other L</aug-*> commands."
17155 msgstr ""
17156
17157 # type: textblock
17158 #: ../fish/guestfish-actions.pod:230
17159 msgid "Do not load the tree in L</aug-init>."
17160 msgstr ""
17161
17162 # type: textblock
17163 #: ../fish/guestfish-actions.pod:234
17164 msgid "To close the handle, you can call L</aug-close>."
17165 msgstr ""
17166
17167 # type: =head2
17168 #: ../fish/guestfish-actions.pod:238
17169 msgid "aug-insert"
17170 msgstr ""
17171
17172 # type: verbatim
17173 #: ../fish/guestfish-actions.pod:240
17174 #, no-wrap
17175 msgid ""
17176 " aug-insert augpath label true|false\n"
17177 "\n"
17178 msgstr ""
17179
17180 # type: =head2
17181 #: ../fish/guestfish-actions.pod:250
17182 msgid "aug-load"
17183 msgstr ""
17184
17185 # type: verbatim
17186 #: ../fish/guestfish-actions.pod:252
17187 #, no-wrap
17188 msgid ""
17189 " aug-load\n"
17190 "\n"
17191 msgstr ""
17192
17193 # type: =head2
17194 #: ../fish/guestfish-actions.pod:259
17195 msgid "aug-ls"
17196 msgstr ""
17197
17198 # type: verbatim
17199 #: ../fish/guestfish-actions.pod:261
17200 #, no-wrap
17201 msgid ""
17202 " aug-ls augpath\n"
17203 "\n"
17204 msgstr ""
17205
17206 # type: textblock
17207 #: ../fish/guestfish-actions.pod:263
17208 msgid ""
17209 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17210 "resulting nodes into alphabetical order."
17211 msgstr ""
17212
17213 # type: =head2
17214 #: ../fish/guestfish-actions.pod:266
17215 msgid "aug-match"
17216 msgstr ""
17217
17218 # type: verbatim
17219 #: ../fish/guestfish-actions.pod:268
17220 #, no-wrap
17221 msgid ""
17222 " aug-match augpath\n"
17223 "\n"
17224 msgstr ""
17225
17226 # type: =head2
17227 #: ../fish/guestfish-actions.pod:274
17228 msgid "aug-mv"
17229 msgstr ""
17230
17231 # type: verbatim
17232 #: ../fish/guestfish-actions.pod:276
17233 #, no-wrap
17234 msgid ""
17235 " aug-mv src dest\n"
17236 "\n"
17237 msgstr ""
17238
17239 # type: =head2
17240 #: ../fish/guestfish-actions.pod:281
17241 msgid "aug-rm"
17242 msgstr ""
17243
17244 # type: verbatim
17245 #: ../fish/guestfish-actions.pod:283
17246 #, no-wrap
17247 msgid ""
17248 " aug-rm augpath\n"
17249 "\n"
17250 msgstr ""
17251
17252 # type: =head2
17253 #: ../fish/guestfish-actions.pod:289
17254 msgid "aug-save"
17255 msgstr ""
17256
17257 # type: verbatim
17258 #: ../fish/guestfish-actions.pod:291
17259 #, no-wrap
17260 msgid ""
17261 " aug-save\n"
17262 "\n"
17263 msgstr ""
17264
17265 # type: textblock
17266 #: ../fish/guestfish-actions.pod:295
17267 msgid ""
17268 "The flags which were passed to L</aug-init> affect exactly how files are "
17269 "saved."
17270 msgstr ""
17271
17272 # type: =head2
17273 #: ../fish/guestfish-actions.pod:298
17274 msgid "aug-set"
17275 msgstr ""
17276
17277 # type: verbatim
17278 #: ../fish/guestfish-actions.pod:300
17279 #, no-wrap
17280 msgid ""
17281 " aug-set augpath val\n"
17282 "\n"
17283 msgstr ""
17284
17285 # type: textblock
17286 #: ../fish/guestfish-actions.pod:304
17287 msgid ""
17288 "In the Augeas API, it is possible to clear a node by setting the value to "
17289 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17290 "this call.  Instead you must use the L</aug-clear> call."
17291 msgstr ""
17292
17293 # type: =head2
17294 #: ../fish/guestfish-actions.pod:309
17295 msgid "available"
17296 msgstr ""
17297
17298 # type: verbatim
17299 #: ../fish/guestfish-actions.pod:311
17300 #, no-wrap
17301 msgid ""
17302 " available 'groups ...'\n"
17303 "\n"
17304 msgstr ""
17305
17306 # type: textblock
17307 #: ../fish/guestfish-actions.pod:317
17308 msgid ""
17309 "The libguestfs groups, and the functions that those groups correspond to, "
17310 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17311 "runtime by calling L</available-all-groups>."
17312 msgstr ""
17313
17314 # type: textblock
17315 #: ../fish/guestfish-actions.pod:341
17316 msgid "You must call L</launch> before calling this function."
17317 msgstr ""
17318
17319 # type: textblock
17320 #: ../fish/guestfish-actions.pod:363
17321 msgid ""
17322 "This call was added in version C<1.0.80>.  In previous versions of "
17323 "libguestfs all you could do would be to speculatively execute a command to "
17324 "find out if the daemon implemented it.  See also L</version>."
17325 msgstr ""
17326
17327 # type: =head2
17328 #: ../fish/guestfish-actions.pod:370
17329 msgid "available-all-groups"
17330 msgstr ""
17331
17332 # type: verbatim
17333 #: ../fish/guestfish-actions.pod:372
17334 #, no-wrap
17335 msgid ""
17336 " available-all-groups\n"
17337 "\n"
17338 msgstr ""
17339
17340 # type: textblock
17341 #: ../fish/guestfish-actions.pod:374
17342 msgid ""
17343 "This command returns a list of all optional groups that this daemon knows "
17344 "about.  Note this returns both supported and unsupported groups.  To find "
17345 "out which ones the daemon can actually support you have to call "
17346 "L</available> on each member of the returned list."
17347 msgstr ""
17348
17349 # type: textblock
17350 #: ../fish/guestfish-actions.pod:380
17351 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17352 msgstr ""
17353
17354 # type: =head2
17355 #: ../fish/guestfish-actions.pod:382
17356 msgid "base64-in"
17357 msgstr ""
17358
17359 # type: verbatim
17360 #: ../fish/guestfish-actions.pod:384
17361 #, no-wrap
17362 msgid ""
17363 " base64-in (base64file|-) filename\n"
17364 "\n"
17365 msgstr ""
17366
17367 # type: textblock
17368 #: ../fish/guestfish-actions.pod:389 ../fish/guestfish-actions.pod:398 ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:816 ../fish/guestfish-actions.pod:835 ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:3868 ../fish/guestfish-actions.pod:3880 ../fish/guestfish-actions.pod:3891 ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3954 ../fish/guestfish-actions.pod:3963 ../fish/guestfish-actions.pod:4017 ../fish/guestfish-actions.pod:4040
17369 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17370 msgstr ""
17371
17372 # type: =head2
17373 #: ../fish/guestfish-actions.pod:391
17374 msgid "base64-out"
17375 msgstr ""
17376
17377 # type: verbatim
17378 #: ../fish/guestfish-actions.pod:393
17379 #, no-wrap
17380 msgid ""
17381 " base64-out filename (base64file|-)\n"
17382 "\n"
17383 msgstr ""
17384
17385 # type: =head2
17386 #: ../fish/guestfish-actions.pod:400
17387 msgid "blockdev-flushbufs"
17388 msgstr ""
17389
17390 # type: verbatim
17391 #: ../fish/guestfish-actions.pod:402
17392 #, no-wrap
17393 msgid ""
17394 " blockdev-flushbufs device\n"
17395 "\n"
17396 msgstr ""
17397
17398 # type: =head2
17399 #: ../fish/guestfish-actions.pod:409
17400 msgid "blockdev-getbsz"
17401 msgstr ""
17402
17403 # type: verbatim
17404 #: ../fish/guestfish-actions.pod:411
17405 #, no-wrap
17406 msgid ""
17407 " blockdev-getbsz device\n"
17408 "\n"
17409 msgstr ""
17410
17411 # type: =head2
17412 #: ../fish/guestfish-actions.pod:420
17413 msgid "blockdev-getro"
17414 msgstr ""
17415
17416 # type: verbatim
17417 #: ../fish/guestfish-actions.pod:422
17418 #, no-wrap
17419 msgid ""
17420 " blockdev-getro device\n"
17421 "\n"
17422 msgstr ""
17423
17424 # type: =head2
17425 #: ../fish/guestfish-actions.pod:429
17426 msgid "blockdev-getsize64"
17427 msgstr ""
17428
17429 # type: verbatim
17430 #: ../fish/guestfish-actions.pod:431
17431 #, no-wrap
17432 msgid ""
17433 " blockdev-getsize64 device\n"
17434 "\n"
17435 msgstr ""
17436
17437 # type: textblock
17438 #: ../fish/guestfish-actions.pod:435
17439 msgid "See also L</blockdev-getsz>."
17440 msgstr ""
17441
17442 # type: =head2
17443 #: ../fish/guestfish-actions.pod:439
17444 msgid "blockdev-getss"
17445 msgstr ""
17446
17447 # type: verbatim
17448 #: ../fish/guestfish-actions.pod:441
17449 #, no-wrap
17450 msgid ""
17451 " blockdev-getss device\n"
17452 "\n"
17453 msgstr ""
17454
17455 # type: textblock
17456 #: ../fish/guestfish-actions.pod:446
17457 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
17458 msgstr ""
17459
17460 # type: =head2
17461 #: ../fish/guestfish-actions.pod:451
17462 msgid "blockdev-getsz"
17463 msgstr ""
17464
17465 # type: verbatim
17466 #: ../fish/guestfish-actions.pod:453
17467 #, no-wrap
17468 msgid ""
17469 " blockdev-getsz device\n"
17470 "\n"
17471 msgstr ""
17472
17473 # type: textblock
17474 #: ../fish/guestfish-actions.pod:458
17475 msgid ""
17476 "See also L</blockdev-getss> for the real sector size of the device, and "
17477 "L</blockdev-getsize64> for the more useful I<size in bytes>."
17478 msgstr ""
17479
17480 # type: =head2
17481 #: ../fish/guestfish-actions.pod:464
17482 msgid "blockdev-rereadpt"
17483 msgstr ""
17484
17485 # type: verbatim
17486 #: ../fish/guestfish-actions.pod:466
17487 #, no-wrap
17488 msgid ""
17489 " blockdev-rereadpt device\n"
17490 "\n"
17491 msgstr ""
17492
17493 # type: =head2
17494 #: ../fish/guestfish-actions.pod:472
17495 msgid "blockdev-setbsz"
17496 msgstr ""
17497
17498 # type: verbatim
17499 #: ../fish/guestfish-actions.pod:474
17500 #, no-wrap
17501 msgid ""
17502 " blockdev-setbsz device blocksize\n"
17503 "\n"
17504 msgstr ""
17505
17506 # type: =head2
17507 #: ../fish/guestfish-actions.pod:483
17508 msgid "blockdev-setro"
17509 msgstr ""
17510
17511 # type: verbatim
17512 #: ../fish/guestfish-actions.pod:485
17513 #, no-wrap
17514 msgid ""
17515 " blockdev-setro device\n"
17516 "\n"
17517 msgstr ""
17518
17519 # type: =head2
17520 #: ../fish/guestfish-actions.pod:491
17521 msgid "blockdev-setrw"
17522 msgstr ""
17523
17524 # type: verbatim
17525 #: ../fish/guestfish-actions.pod:493
17526 #, no-wrap
17527 msgid ""
17528 " blockdev-setrw device\n"
17529 "\n"
17530 msgstr ""
17531
17532 # type: =head2
17533 #: ../fish/guestfish-actions.pod:499
17534 msgid "case-sensitive-path"
17535 msgstr ""
17536
17537 # type: verbatim
17538 #: ../fish/guestfish-actions.pod:501
17539 #, no-wrap
17540 msgid ""
17541 " case-sensitive-path path\n"
17542 "\n"
17543 msgstr ""
17544
17545 # type: textblock
17546 #: ../fish/guestfish-actions.pod:525
17547 msgid ""
17548 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
17549 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
17550 "how the directories were originally created under Windows)."
17551 msgstr ""
17552
17553 # type: textblock
17554 #: ../fish/guestfish-actions.pod:533
17555 msgid "See also L</realpath>."
17556 msgstr ""
17557
17558 # type: =head2
17559 #: ../fish/guestfish-actions.pod:535
17560 msgid "cat"
17561 msgstr ""
17562
17563 # type: verbatim
17564 #: ../fish/guestfish-actions.pod:537
17565 #, no-wrap
17566 msgid ""
17567 " cat path\n"
17568 "\n"
17569 msgstr ""
17570
17571 # type: textblock
17572 #: ../fish/guestfish-actions.pod:541
17573 msgid ""
17574 "Note that this function cannot correctly handle binary files (specifically, "
17575 "files containing C<\\0> character which is treated as end of string).  For "
17576 "those you need to use the L</read-file> or L</download> functions which have "
17577 "a more complex interface."
17578 msgstr ""
17579
17580 # type: =head2
17581 #: ../fish/guestfish-actions.pod:549
17582 msgid "checksum"
17583 msgstr ""
17584
17585 # type: verbatim
17586 #: ../fish/guestfish-actions.pod:551
17587 #, no-wrap
17588 msgid ""
17589 " checksum csumtype path\n"
17590 "\n"
17591 msgstr ""
17592
17593 # type: textblock
17594 #: ../fish/guestfish-actions.pod:594
17595 msgid "To get the checksum for a device, use L</checksum-device>."
17596 msgstr ""
17597
17598 # type: textblock
17599 #: ../fish/guestfish-actions.pod:596
17600 msgid "To get the checksums for many files, use L</checksums-out>."
17601 msgstr ""
17602
17603 # type: =head2
17604 #: ../fish/guestfish-actions.pod:598
17605 msgid "checksum-device"
17606 msgstr ""
17607
17608 # type: verbatim
17609 #: ../fish/guestfish-actions.pod:600
17610 #, no-wrap
17611 msgid ""
17612 " checksum-device csumtype device\n"
17613 "\n"
17614 msgstr ""
17615
17616 # type: textblock
17617 #: ../fish/guestfish-actions.pod:602
17618 msgid ""
17619 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
17620 "device named C<device>.  For the types of checksums supported see the "
17621 "L</checksum> command."
17622 msgstr ""
17623
17624 # type: =head2
17625 #: ../fish/guestfish-actions.pod:606
17626 msgid "checksums-out"
17627 msgstr ""
17628
17629 # type: verbatim
17630 #: ../fish/guestfish-actions.pod:608
17631 #, no-wrap
17632 msgid ""
17633 " checksums-out csumtype directory (sumsfile|-)\n"
17634 "\n"
17635 msgstr ""
17636
17637 # type: =head2
17638 #: ../fish/guestfish-actions.pod:624
17639 msgid "chmod"
17640 msgstr ""
17641
17642 # type: verbatim
17643 #: ../fish/guestfish-actions.pod:626
17644 #, no-wrap
17645 msgid ""
17646 " chmod mode path\n"
17647 "\n"
17648 msgstr ""
17649
17650 # type: =head2
17651 #: ../fish/guestfish-actions.pod:637
17652 msgid "chown"
17653 msgstr ""
17654
17655 # type: verbatim
17656 #: ../fish/guestfish-actions.pod:639
17657 #, no-wrap
17658 msgid ""
17659 " chown owner group path\n"
17660 "\n"
17661 msgstr ""
17662
17663 # type: =head2
17664 #: ../fish/guestfish-actions.pod:647
17665 msgid "command"
17666 msgstr ""
17667
17668 # type: verbatim
17669 #: ../fish/guestfish-actions.pod:649
17670 #, no-wrap
17671 msgid ""
17672 " command 'arguments ...'\n"
17673 "\n"
17674 msgstr ""
17675
17676 # type: textblock
17677 #: ../fish/guestfish-actions.pod:656
17678 msgid ""
17679 "The single parameter is an argv-style list of arguments.  The first element "
17680 "is the name of the program to run.  Subsequent elements are parameters.  The "
17681 "list must be non-empty (ie. must contain a program name).  Note that the "
17682 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
17683 msgstr ""
17684
17685 # type: =head2
17686 #: ../fish/guestfish-actions.pod:684
17687 msgid "command-lines"
17688 msgstr ""
17689
17690 # type: verbatim
17691 #: ../fish/guestfish-actions.pod:686
17692 #, no-wrap
17693 msgid ""
17694 " command-lines 'arguments ...'\n"
17695 "\n"
17696 msgstr ""
17697
17698 # type: textblock
17699 #: ../fish/guestfish-actions.pod:688
17700 msgid "This is the same as L</command>, but splits the result into a list of lines."
17701 msgstr ""
17702
17703 # type: textblock
17704 #: ../fish/guestfish-actions.pod:691
17705 msgid "See also: L</sh-lines>"
17706 msgstr ""
17707
17708 # type: =head2
17709 #: ../fish/guestfish-actions.pod:696
17710 msgid "config"
17711 msgstr ""
17712
17713 # type: verbatim
17714 #: ../fish/guestfish-actions.pod:698
17715 #, no-wrap
17716 msgid ""
17717 " config qemuparam qemuvalue\n"
17718 "\n"
17719 msgstr ""
17720
17721 # type: =head2
17722 #: ../fish/guestfish-actions.pod:709
17723 msgid "copy-size"
17724 msgstr ""
17725
17726 # type: verbatim
17727 #: ../fish/guestfish-actions.pod:711
17728 #, no-wrap
17729 msgid ""
17730 " copy-size src dest size\n"
17731 "\n"
17732 msgstr ""
17733
17734 # type: =head2
17735 #: ../fish/guestfish-actions.pod:719
17736 msgid "cp"
17737 msgstr ""
17738
17739 # type: verbatim
17740 #: ../fish/guestfish-actions.pod:721
17741 #, no-wrap
17742 msgid ""
17743 " cp src dest\n"
17744 "\n"
17745 msgstr ""
17746
17747 # type: =head2
17748 #: ../fish/guestfish-actions.pod:726
17749 msgid "cp-a"
17750 msgstr ""
17751
17752 # type: verbatim
17753 #: ../fish/guestfish-actions.pod:728
17754 #, no-wrap
17755 msgid ""
17756 " cp-a src dest\n"
17757 "\n"
17758 msgstr ""
17759
17760 # type: =head2
17761 #: ../fish/guestfish-actions.pod:733
17762 msgid "dd"
17763 msgstr ""
17764
17765 # type: verbatim
17766 #: ../fish/guestfish-actions.pod:735
17767 #, no-wrap
17768 msgid ""
17769 " dd src dest\n"
17770 "\n"
17771 msgstr ""
17772
17773 # type: textblock
17774 #: ../fish/guestfish-actions.pod:742
17775 msgid ""
17776 "If the destination is a device, it must be as large or larger than the "
17777 "source file or device, otherwise the copy will fail.  This command cannot do "
17778 "partial copies (see L</copy-size>)."
17779 msgstr ""
17780
17781 # type: =head2
17782 #: ../fish/guestfish-actions.pod:746
17783 msgid "debug"
17784 msgstr ""
17785
17786 # type: verbatim
17787 #: ../fish/guestfish-actions.pod:748
17788 #, no-wrap
17789 msgid ""
17790 " debug subcmd 'extraargs ...'\n"
17791 "\n"
17792 msgstr ""
17793
17794 # type: textblock
17795 #: ../fish/guestfish-actions.pod:750
17796 msgid ""
17797 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
17798 "daemon) that runs inside the qemu subprocess."
17799 msgstr ""
17800
17801 # type: =head2
17802 #: ../fish/guestfish-actions.pod:758
17803 msgid "debug-upload"
17804 msgstr ""
17805
17806 # type: verbatim
17807 #: ../fish/guestfish-actions.pod:760
17808 #, no-wrap
17809 msgid ""
17810 " debug-upload (filename|-) tmpname mode\n"
17811 "\n"
17812 msgstr ""
17813
17814 # type: textblock
17815 #: ../fish/guestfish-actions.pod:762
17816 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
17817 msgstr ""
17818
17819 # type: =head2
17820 #: ../fish/guestfish-actions.pod:771
17821 msgid "df"
17822 msgstr ""
17823
17824 # type: verbatim
17825 #: ../fish/guestfish-actions.pod:773
17826 #, no-wrap
17827 msgid ""
17828 " df\n"
17829 "\n"
17830 msgstr ""
17831
17832 # type: =head2
17833 #: ../fish/guestfish-actions.pod:781
17834 msgid "df-h"
17835 msgstr ""
17836
17837 # type: verbatim
17838 #: ../fish/guestfish-actions.pod:783
17839 #, no-wrap
17840 msgid ""
17841 " df-h\n"
17842 "\n"
17843 msgstr ""
17844
17845 # type: =head2
17846 #: ../fish/guestfish-actions.pod:792
17847 msgid "dmesg"
17848 msgstr ""
17849
17850 # type: verbatim
17851 #: ../fish/guestfish-actions.pod:794
17852 #, no-wrap
17853 msgid ""
17854 " dmesg\n"
17855 "\n"
17856 msgstr ""
17857
17858 # type: textblock
17859 #: ../fish/guestfish-actions.pod:800
17860 msgid ""
17861 "Another way to get the same information is to enable verbose messages with "
17862 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
17863 "before running the program."
17864 msgstr ""
17865
17866 # type: =head2
17867 #: ../fish/guestfish-actions.pod:805
17868 msgid "download"
17869 msgstr ""
17870
17871 # type: verbatim
17872 #: ../fish/guestfish-actions.pod:807
17873 #, no-wrap
17874 msgid ""
17875 " download remotefilename (filename|-)\n"
17876 "\n"
17877 msgstr ""
17878
17879 # type: textblock
17880 #: ../fish/guestfish-actions.pod:814
17881 msgid "See also L</upload>, L</cat>."
17882 msgstr ""
17883
17884 # type: =head2
17885 #: ../fish/guestfish-actions.pod:818
17886 msgid "download-offset"
17887 msgstr ""
17888
17889 # type: verbatim
17890 #: ../fish/guestfish-actions.pod:820
17891 #, no-wrap
17892 msgid ""
17893 " download-offset remotefilename (filename|-) offset size\n"
17894 "\n"
17895 msgstr ""
17896
17897 # type: textblock
17898 #: ../fish/guestfish-actions.pod:828
17899 msgid ""
17900 "Note that there is no limit on the amount of data that can be downloaded "
17901 "with this call, unlike with L</pread>, and this call always reads the full "
17902 "amount unless an error occurs."
17903 msgstr ""
17904
17905 # type: textblock
17906 #: ../fish/guestfish-actions.pod:833
17907 msgid "See also L</download>, L</pread>."
17908 msgstr ""
17909
17910 # type: =head2
17911 #: ../fish/guestfish-actions.pod:837
17912 msgid "drop-caches"
17913 msgstr ""
17914
17915 # type: verbatim
17916 #: ../fish/guestfish-actions.pod:839
17917 #, no-wrap
17918 msgid ""
17919 " drop-caches whattodrop\n"
17920 "\n"
17921 msgstr ""
17922
17923 # type: =head2
17924 #: ../fish/guestfish-actions.pod:851
17925 msgid "du"
17926 msgstr ""
17927
17928 # type: verbatim
17929 #: ../fish/guestfish-actions.pod:853
17930 #, no-wrap
17931 msgid ""
17932 " du path\n"
17933 "\n"
17934 msgstr ""
17935
17936 # type: =head2
17937 #: ../fish/guestfish-actions.pod:865
17938 msgid "e2fsck-f"
17939 msgstr ""
17940
17941 # type: verbatim
17942 #: ../fish/guestfish-actions.pod:867
17943 #, no-wrap
17944 msgid ""
17945 " e2fsck-f device\n"
17946 "\n"
17947 msgstr ""
17948
17949 # type: textblock
17950 #: ../fish/guestfish-actions.pod:873
17951 msgid ""
17952 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
17953 "should use L</fsck>."
17954 msgstr ""
17955
17956 # type: =head2
17957 #: ../fish/guestfish-actions.pod:876
17958 msgid "echo-daemon"
17959 msgstr ""
17960
17961 # type: verbatim
17962 #: ../fish/guestfish-actions.pod:878
17963 #, no-wrap
17964 msgid ""
17965 " echo-daemon 'words ...'\n"
17966 "\n"
17967 msgstr ""
17968
17969 # type: textblock
17970 #: ../fish/guestfish-actions.pod:885
17971 msgid "See also L</ping-daemon>."
17972 msgstr ""
17973
17974 # type: =head2
17975 #: ../fish/guestfish-actions.pod:887
17976 msgid "egrep"
17977 msgstr ""
17978
17979 # type: verbatim
17980 #: ../fish/guestfish-actions.pod:889
17981 #, no-wrap
17982 msgid ""
17983 " egrep regex path\n"
17984 "\n"
17985 msgstr ""
17986
17987 # type: =head2
17988 #: ../fish/guestfish-actions.pod:897
17989 msgid "egrepi"
17990 msgstr ""
17991
17992 # type: verbatim
17993 #: ../fish/guestfish-actions.pod:899
17994 #, no-wrap
17995 msgid ""
17996 " egrepi regex path\n"
17997 "\n"
17998 msgstr ""
17999
18000 # type: =head2
18001 #: ../fish/guestfish-actions.pod:907
18002 msgid "equal"
18003 msgstr ""
18004
18005 # type: verbatim
18006 #: ../fish/guestfish-actions.pod:909
18007 #, no-wrap
18008 msgid ""
18009 " equal file1 file2\n"
18010 "\n"
18011 msgstr ""
18012
18013 # type: =head2
18014 #: ../fish/guestfish-actions.pod:916
18015 msgid "exists"
18016 msgstr ""
18017
18018 # type: verbatim
18019 #: ../fish/guestfish-actions.pod:918
18020 #, no-wrap
18021 msgid ""
18022 " exists path\n"
18023 "\n"
18024 msgstr ""
18025
18026 # type: textblock
18027 #: ../fish/guestfish-actions.pod:923
18028 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18029 msgstr ""
18030
18031 # type: =head2
18032 #: ../fish/guestfish-actions.pod:925
18033 msgid "fallocate"
18034 msgstr ""
18035
18036 # type: verbatim
18037 #: ../fish/guestfish-actions.pod:927
18038 #, no-wrap
18039 msgid ""
18040 " fallocate path len\n"
18041 "\n"
18042 msgstr ""
18043
18044 # type: =head2
18045 #: ../fish/guestfish-actions.pod:944
18046 msgid "fallocate64"
18047 msgstr ""
18048
18049 # type: verbatim
18050 #: ../fish/guestfish-actions.pod:946
18051 #, no-wrap
18052 msgid ""
18053 " fallocate64 path len\n"
18054 "\n"
18055 msgstr ""
18056
18057 # type: textblock
18058 #: ../fish/guestfish-actions.pod:952
18059 msgid ""
18060 "Note that this call allocates disk blocks for the file.  To create a sparse "
18061 "file use L</truncate-size> instead."
18062 msgstr ""
18063
18064 # type: textblock
18065 #: ../fish/guestfish-actions.pod:955
18066 msgid ""
18067 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18068 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18069 "maximum size of files created through that call to 1GB."
18070 msgstr ""
18071
18072 # type: =head2
18073 #: ../fish/guestfish-actions.pod:964
18074 msgid "fgrep"
18075 msgstr ""
18076
18077 # type: verbatim
18078 #: ../fish/guestfish-actions.pod:966
18079 #, no-wrap
18080 msgid ""
18081 " fgrep pattern path\n"
18082 "\n"
18083 msgstr ""
18084
18085 # type: =head2
18086 #: ../fish/guestfish-actions.pod:974
18087 msgid "fgrepi"
18088 msgstr ""
18089
18090 # type: verbatim
18091 #: ../fish/guestfish-actions.pod:976
18092 #, no-wrap
18093 msgid ""
18094 " fgrepi pattern path\n"
18095 "\n"
18096 msgstr ""
18097
18098 # type: =head2
18099 #: ../fish/guestfish-actions.pod:984
18100 msgid "file"
18101 msgstr ""
18102
18103 # type: verbatim
18104 #: ../fish/guestfish-actions.pod:986
18105 #, no-wrap
18106 msgid ""
18107 " file path\n"
18108 "\n"
18109 msgstr ""
18110
18111 # type: textblock
18112 #: ../fish/guestfish-actions.pod:998
18113 msgid ""
18114 "This command can also be used on C</dev/> devices (and partitions, LV "
18115 "names).  You can for example use this to determine if a device contains a "
18116 "filesystem, although it's usually better to use L</vfs-type>."
18117 msgstr ""
18118
18119 # type: =head2
18120 #: ../fish/guestfish-actions.pod:1008
18121 msgid "file-architecture"
18122 msgstr ""
18123
18124 # type: verbatim
18125 #: ../fish/guestfish-actions.pod:1010
18126 #, no-wrap
18127 msgid ""
18128 " file-architecture filename\n"
18129 "\n"
18130 msgstr ""
18131
18132 # type: =head2
18133 #: ../fish/guestfish-actions.pod:1113
18134 msgid "filesize"
18135 msgstr ""
18136
18137 # type: verbatim
18138 #: ../fish/guestfish-actions.pod:1115
18139 #, no-wrap
18140 msgid ""
18141 " filesize file\n"
18142 "\n"
18143 msgstr ""
18144
18145 # type: textblock
18146 #: ../fish/guestfish-actions.pod:1119
18147 msgid ""
18148 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
18149 "L</is-file> etc.  To get the size of block devices, use "
18150 "L</blockdev-getsize64>."
18151 msgstr ""
18152
18153 # type: =head2
18154 #: ../fish/guestfish-actions.pod:1123
18155 msgid "fill"
18156 msgstr ""
18157
18158 # type: verbatim
18159 #: ../fish/guestfish-actions.pod:1125
18160 #, no-wrap
18161 msgid ""
18162 " fill c len path\n"
18163 "\n"
18164 msgstr ""
18165
18166 # type: textblock
18167 #: ../fish/guestfish-actions.pod:1131
18168 msgid ""
18169 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18170 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18171 "L</fill-pattern>."
18172 msgstr ""
18173
18174 # type: =head2
18175 #: ../fish/guestfish-actions.pod:1136
18176 msgid "fill-pattern"
18177 msgstr ""
18178
18179 # type: verbatim
18180 #: ../fish/guestfish-actions.pod:1138
18181 #, no-wrap
18182 msgid ""
18183 " fill-pattern pattern len path\n"
18184 "\n"
18185 msgstr ""
18186
18187 # type: textblock
18188 #: ../fish/guestfish-actions.pod:1140
18189 msgid ""
18190 "This function is like L</fill> except that it creates a new file of length "
18191 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18192 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18193 "bytes."
18194 msgstr ""
18195
18196 # type: =head2
18197 #: ../fish/guestfish-actions.pod:1145
18198 msgid "find"
18199 msgstr ""
18200
18201 # type: verbatim
18202 #: ../fish/guestfish-actions.pod:1147
18203 #, no-wrap
18204 msgid ""
18205 " find directory\n"
18206 "\n"
18207 msgstr ""
18208
18209 # type: textblock
18210 #: ../fish/guestfish-actions.pod:1161
18211 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18212 msgstr ""
18213
18214 # type: textblock
18215 #: ../fish/guestfish-actions.pod:1174
18216 msgid "See also L</find0>."
18217 msgstr ""
18218
18219 # type: =head2
18220 #: ../fish/guestfish-actions.pod:1179
18221 msgid "find0"
18222 msgstr ""
18223
18224 # type: verbatim
18225 #: ../fish/guestfish-actions.pod:1181
18226 #, no-wrap
18227 msgid ""
18228 " find0 directory (files|-)\n"
18229 "\n"
18230 msgstr ""
18231
18232 # type: textblock
18233 #: ../fish/guestfish-actions.pod:1187
18234 msgid "This command works the same way as L</find> with the following exceptions:"
18235 msgstr ""
18236
18237 # type: =head2
18238 #: ../fish/guestfish-actions.pod:1214
18239 msgid "findfs-label"
18240 msgstr ""
18241
18242 # type: verbatim
18243 #: ../fish/guestfish-actions.pod:1216
18244 #, no-wrap
18245 msgid ""
18246 " findfs-label label\n"
18247 "\n"
18248 msgstr ""
18249
18250 # type: textblock
18251 #: ../fish/guestfish-actions.pod:1222
18252 msgid "To find the label of a filesystem, use L</vfs-label>."
18253 msgstr ""
18254
18255 # type: =head2
18256 #: ../fish/guestfish-actions.pod:1224
18257 msgid "findfs-uuid"
18258 msgstr ""
18259
18260 # type: verbatim
18261 #: ../fish/guestfish-actions.pod:1226
18262 #, no-wrap
18263 msgid ""
18264 " findfs-uuid uuid\n"
18265 "\n"
18266 msgstr ""
18267
18268 # type: textblock
18269 #: ../fish/guestfish-actions.pod:1232
18270 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18271 msgstr ""
18272
18273 # type: =head2
18274 #: ../fish/guestfish-actions.pod:1234
18275 msgid "fsck"
18276 msgstr ""
18277
18278 # type: verbatim
18279 #: ../fish/guestfish-actions.pod:1236
18280 #, no-wrap
18281 msgid ""
18282 " fsck fstype device\n"
18283 "\n"
18284 msgstr ""
18285
18286 # type: =head2
18287 #: ../fish/guestfish-actions.pod:1266
18288 msgid "get-append"
18289 msgstr ""
18290
18291 # type: verbatim
18292 #: ../fish/guestfish-actions.pod:1268
18293 #, no-wrap
18294 msgid ""
18295 " get-append\n"
18296 "\n"
18297 msgstr ""
18298
18299 # type: =head2
18300 #: ../fish/guestfish-actions.pod:1275
18301 msgid "get-autosync"
18302 msgstr ""
18303
18304 # type: verbatim
18305 #: ../fish/guestfish-actions.pod:1277
18306 #, no-wrap
18307 msgid ""
18308 " get-autosync\n"
18309 "\n"
18310 msgstr ""
18311
18312 # type: =head2
18313 #: ../fish/guestfish-actions.pod:1281
18314 msgid "get-direct"
18315 msgstr ""
18316
18317 # type: verbatim
18318 #: ../fish/guestfish-actions.pod:1283
18319 #, no-wrap
18320 msgid ""
18321 " get-direct\n"
18322 "\n"
18323 msgstr ""
18324
18325 # type: =head2
18326 #: ../fish/guestfish-actions.pod:1287
18327 msgid "get-e2label"
18328 msgstr ""
18329
18330 # type: verbatim
18331 #: ../fish/guestfish-actions.pod:1289
18332 #, no-wrap
18333 msgid ""
18334 " get-e2label device\n"
18335 "\n"
18336 msgstr ""
18337
18338 # type: =head2
18339 #: ../fish/guestfish-actions.pod:1301
18340 msgid "get-e2uuid"
18341 msgstr ""
18342
18343 # type: verbatim
18344 #: ../fish/guestfish-actions.pod:1303
18345 #, no-wrap
18346 msgid ""
18347 " get-e2uuid device\n"
18348 "\n"
18349 msgstr ""
18350
18351 # type: =head2
18352 #: ../fish/guestfish-actions.pod:1315
18353 msgid "get-memsize"
18354 msgstr ""
18355
18356 # type: verbatim
18357 #: ../fish/guestfish-actions.pod:1317
18358 #, no-wrap
18359 msgid ""
18360 " get-memsize\n"
18361 "\n"
18362 msgstr ""
18363
18364 # type: textblock
18365 #: ../fish/guestfish-actions.pod:1322
18366 msgid ""
18367 "If L</set-memsize> was not called on this handle, and if "
18368 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18369 "value for memsize."
18370 msgstr ""
18371
18372 # type: =head2
18373 #: ../fish/guestfish-actions.pod:1329
18374 msgid "get-network"
18375 msgstr ""
18376
18377 # type: verbatim
18378 #: ../fish/guestfish-actions.pod:1331
18379 #, no-wrap
18380 msgid ""
18381 " get-network\n"
18382 "\n"
18383 msgstr ""
18384
18385 # type: =head2
18386 #: ../fish/guestfish-actions.pod:1335
18387 msgid "get-path"
18388 msgstr ""
18389
18390 # type: verbatim
18391 #: ../fish/guestfish-actions.pod:1337
18392 #, no-wrap
18393 msgid ""
18394 " get-path\n"
18395 "\n"
18396 msgstr ""
18397
18398 # type: =head2
18399 #: ../fish/guestfish-actions.pod:1344
18400 msgid "get-pid"
18401 msgstr ""
18402
18403 # type: =head2
18404 #: ../fish/guestfish-actions.pod:1346
18405 msgid "pid"
18406 msgstr ""
18407
18408 # type: verbatim
18409 #: ../fish/guestfish-actions.pod:1348
18410 #, no-wrap
18411 msgid ""
18412 " get-pid\n"
18413 "\n"
18414 msgstr ""
18415
18416 # type: =head2
18417 #: ../fish/guestfish-actions.pod:1355
18418 msgid "get-qemu"
18419 msgstr ""
18420
18421 # type: verbatim
18422 #: ../fish/guestfish-actions.pod:1357
18423 #, no-wrap
18424 msgid ""
18425 " get-qemu\n"
18426 "\n"
18427 msgstr ""
18428
18429 # type: =head2
18430 #: ../fish/guestfish-actions.pod:1364
18431 msgid "get-recovery-proc"
18432 msgstr ""
18433
18434 # type: verbatim
18435 #: ../fish/guestfish-actions.pod:1366
18436 #, no-wrap
18437 msgid ""
18438 " get-recovery-proc\n"
18439 "\n"
18440 msgstr ""
18441
18442 # type: =head2
18443 #: ../fish/guestfish-actions.pod:1370
18444 msgid "get-selinux"
18445 msgstr ""
18446
18447 # type: verbatim
18448 #: ../fish/guestfish-actions.pod:1372
18449 #, no-wrap
18450 msgid ""
18451 " get-selinux\n"
18452 "\n"
18453 msgstr ""
18454
18455 # type: textblock
18456 #: ../fish/guestfish-actions.pod:1374
18457 msgid ""
18458 "This returns the current setting of the selinux flag which is passed to the "
18459 "appliance at boot time.  See L</set-selinux>."
18460 msgstr ""
18461
18462 # type: =head2
18463 #: ../fish/guestfish-actions.pod:1380
18464 msgid "get-state"
18465 msgstr ""
18466
18467 # type: verbatim
18468 #: ../fish/guestfish-actions.pod:1382
18469 #, no-wrap
18470 msgid ""
18471 " get-state\n"
18472 "\n"
18473 msgstr ""
18474
18475 # type: =head2
18476 #: ../fish/guestfish-actions.pod:1389
18477 msgid "get-trace"
18478 msgstr ""
18479
18480 # type: verbatim
18481 #: ../fish/guestfish-actions.pod:1391
18482 #, no-wrap
18483 msgid ""
18484 " get-trace\n"
18485 "\n"
18486 msgstr ""
18487
18488 # type: =head2
18489 #: ../fish/guestfish-actions.pod:1395
18490 msgid "get-umask"
18491 msgstr ""
18492
18493 # type: verbatim
18494 #: ../fish/guestfish-actions.pod:1397
18495 #, no-wrap
18496 msgid ""
18497 " get-umask\n"
18498 "\n"
18499 msgstr ""
18500
18501 # type: textblock
18502 #: ../fish/guestfish-actions.pod:1399
18503 msgid ""
18504 "Return the current umask.  By default the umask is C<022> unless it has been "
18505 "set by calling L</umask>."
18506 msgstr ""
18507
18508 # type: =head2
18509 #: ../fish/guestfish-actions.pod:1402
18510 msgid "get-verbose"
18511 msgstr ""
18512
18513 # type: verbatim
18514 #: ../fish/guestfish-actions.pod:1404
18515 #, no-wrap
18516 msgid ""
18517 " get-verbose\n"
18518 "\n"
18519 msgstr ""
18520
18521 # type: =head2
18522 #: ../fish/guestfish-actions.pod:1408
18523 msgid "getcon"
18524 msgstr ""
18525
18526 # type: verbatim
18527 #: ../fish/guestfish-actions.pod:1410
18528 #, no-wrap
18529 msgid ""
18530 " getcon\n"
18531 "\n"
18532 msgstr ""
18533
18534 # type: textblock
18535 #: ../fish/guestfish-actions.pod:1414
18536 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
18537 msgstr ""
18538
18539 # type: =head2
18540 #: ../fish/guestfish-actions.pod:1417
18541 msgid "getxattrs"
18542 msgstr ""
18543
18544 # type: verbatim
18545 #: ../fish/guestfish-actions.pod:1419
18546 #, no-wrap
18547 msgid ""
18548 " getxattrs path\n"
18549 "\n"
18550 msgstr ""
18551
18552 # type: textblock
18553 #: ../fish/guestfish-actions.pod:1427
18554 msgid "See also: L</lgetxattrs>, L<attr(5)>."
18555 msgstr ""
18556
18557 # type: =head2
18558 #: ../fish/guestfish-actions.pod:1429
18559 msgid "glob-expand"
18560 msgstr ""
18561
18562 # type: verbatim
18563 #: ../fish/guestfish-actions.pod:1431
18564 #, no-wrap
18565 msgid ""
18566 " glob-expand pattern\n"
18567 "\n"
18568 msgstr ""
18569
18570 # type: =head2
18571 #: ../fish/guestfish-actions.pod:1444
18572 msgid "grep"
18573 msgstr ""
18574
18575 # type: verbatim
18576 #: ../fish/guestfish-actions.pod:1446
18577 #, no-wrap
18578 msgid ""
18579 " grep regex path\n"
18580 "\n"
18581 msgstr ""
18582
18583 # type: =head2
18584 #: ../fish/guestfish-actions.pod:1454
18585 msgid "grepi"
18586 msgstr ""
18587
18588 # type: verbatim
18589 #: ../fish/guestfish-actions.pod:1456
18590 #, no-wrap
18591 msgid ""
18592 " grepi regex path\n"
18593 "\n"
18594 msgstr ""
18595
18596 # type: =head2
18597 #: ../fish/guestfish-actions.pod:1464
18598 msgid "grub-install"
18599 msgstr ""
18600
18601 # type: verbatim
18602 #: ../fish/guestfish-actions.pod:1466
18603 #, no-wrap
18604 msgid ""
18605 " grub-install root device\n"
18606 "\n"
18607 msgstr ""
18608
18609 # type: =head2
18610 #: ../fish/guestfish-actions.pod:1482
18611 msgid "head"
18612 msgstr ""
18613
18614 # type: verbatim
18615 #: ../fish/guestfish-actions.pod:1484
18616 #, no-wrap
18617 msgid ""
18618 " head path\n"
18619 "\n"
18620 msgstr ""
18621
18622 # type: =head2
18623 #: ../fish/guestfish-actions.pod:1492
18624 msgid "head-n"
18625 msgstr ""
18626
18627 # type: verbatim
18628 #: ../fish/guestfish-actions.pod:1494
18629 #, no-wrap
18630 msgid ""
18631 " head-n nrlines path\n"
18632 "\n"
18633 msgstr ""
18634
18635 # type: =head2
18636 #: ../fish/guestfish-actions.pod:1507
18637 msgid "hexdump"
18638 msgstr ""
18639
18640 # type: verbatim
18641 #: ../fish/guestfish-actions.pod:1509
18642 #, no-wrap
18643 msgid ""
18644 " hexdump path\n"
18645 "\n"
18646 msgstr ""
18647
18648 # type: =head2
18649 #: ../fish/guestfish-actions.pod:1517
18650 msgid "initrd-cat"
18651 msgstr ""
18652
18653 # type: verbatim
18654 #: ../fish/guestfish-actions.pod:1519
18655 #, no-wrap
18656 msgid ""
18657 " initrd-cat initrdpath filename\n"
18658 "\n"
18659 msgstr ""
18660
18661 # type: textblock
18662 #: ../fish/guestfish-actions.pod:1531
18663 msgid "See also L</initrd-list>."
18664 msgstr ""
18665
18666 # type: =head2
18667 #: ../fish/guestfish-actions.pod:1536
18668 msgid "initrd-list"
18669 msgstr ""
18670
18671 # type: verbatim
18672 #: ../fish/guestfish-actions.pod:1538
18673 #, no-wrap
18674 msgid ""
18675 " initrd-list path\n"
18676 "\n"
18677 msgstr ""
18678
18679 # type: =head2
18680 #: ../fish/guestfish-actions.pod:1550
18681 msgid "inotify-add-watch"
18682 msgstr ""
18683
18684 # type: verbatim
18685 #: ../fish/guestfish-actions.pod:1552
18686 #, no-wrap
18687 msgid ""
18688 " inotify-add-watch path mask\n"
18689 "\n"
18690 msgstr ""
18691
18692 # type: =head2
18693 #: ../fish/guestfish-actions.pod:1564
18694 msgid "inotify-close"
18695 msgstr ""
18696
18697 # type: verbatim
18698 #: ../fish/guestfish-actions.pod:1566
18699 #, no-wrap
18700 msgid ""
18701 " inotify-close\n"
18702 "\n"
18703 msgstr ""
18704
18705 # type: =head2
18706 #: ../fish/guestfish-actions.pod:1572
18707 msgid "inotify-files"
18708 msgstr ""
18709
18710 # type: verbatim
18711 #: ../fish/guestfish-actions.pod:1574
18712 #, no-wrap
18713 msgid ""
18714 " inotify-files\n"
18715 "\n"
18716 msgstr ""
18717
18718 # type: textblock
18719 #: ../fish/guestfish-actions.pod:1576
18720 msgid ""
18721 "This function is a helpful wrapper around L</inotify-read> which just "
18722 "returns a list of pathnames of objects that were touched.  The returned "
18723 "pathnames are sorted and deduplicated."
18724 msgstr ""
18725
18726 # type: =head2
18727 #: ../fish/guestfish-actions.pod:1580
18728 msgid "inotify-init"
18729 msgstr ""
18730
18731 # type: verbatim
18732 #: ../fish/guestfish-actions.pod:1582
18733 #, no-wrap
18734 msgid ""
18735 " inotify-init maxevents\n"
18736 "\n"
18737 msgstr ""
18738
18739 # type: textblock
18740 #: ../fish/guestfish-actions.pod:1588
18741 msgid ""
18742 "C<maxevents> is the maximum number of events which will be queued up between "
18743 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
18744 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
18745 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
18746 "but records the fact that it threw them away by setting a flag "
18747 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
18748 msgstr ""
18749
18750 # type: textblock
18751 #: ../fish/guestfish-actions.pod:1598
18752 msgid ""
18753 "Before any events are generated, you have to add some watches to the "
18754 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
18755 "L</inotify-watch-all>."
18756 msgstr ""
18757
18758 # type: textblock
18759 #: ../fish/guestfish-actions.pod:1604
18760 msgid ""
18761 "Queued up events should be read periodically by calling L</inotify-read> (or "
18762 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
18763 "If you don't read the events out often enough then you risk the internal "
18764 "queue overflowing."
18765 msgstr ""
18766
18767 # type: textblock
18768 #: ../fish/guestfish-actions.pod:1611
18769 msgid ""
18770 "The handle should be closed after use by calling L</inotify-close>.  This "
18771 "also removes any watches automatically."
18772 msgstr ""
18773
18774 # type: =head2
18775 #: ../fish/guestfish-actions.pod:1620
18776 msgid "inotify-read"
18777 msgstr ""
18778
18779 # type: verbatim
18780 #: ../fish/guestfish-actions.pod:1622
18781 #, no-wrap
18782 msgid ""
18783 " inotify-read\n"
18784 "\n"
18785 msgstr ""
18786
18787 # type: =head2
18788 #: ../fish/guestfish-actions.pod:1635
18789 msgid "inotify-rm-watch"
18790 msgstr ""
18791
18792 # type: verbatim
18793 #: ../fish/guestfish-actions.pod:1637
18794 #, no-wrap
18795 msgid ""
18796 " inotify-rm-watch wd\n"
18797 "\n"
18798 msgstr ""
18799
18800 # type: textblock
18801 #: ../fish/guestfish-actions.pod:1639
18802 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
18803 msgstr ""
18804
18805 # type: =head2
18806 #: ../fish/guestfish-actions.pod:1642
18807 msgid "inspect-get-arch"
18808 msgstr ""
18809
18810 # type: verbatim
18811 #: ../fish/guestfish-actions.pod:1644
18812 #, no-wrap
18813 msgid ""
18814 " inspect-get-arch root\n"
18815 "\n"
18816 msgstr ""
18817
18818 # type: textblock
18819 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1708 ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1762 ../fish/guestfish-actions.pod:1785 ../fish/guestfish-actions.pod:1802
18820 msgid ""
18821 "This function should only be called with a root device string as returned by "
18822 "L</inspect-os>."
18823 msgstr ""
18824
18825 # type: textblock
18826 #: ../fish/guestfish-actions.pod:1649
18827 msgid ""
18828 "This returns the architecture of the inspected operating system.  The "
18829 "possible return values are listed under L</file-architecture>."
18830 msgstr ""
18831
18832 # type: =head2
18833 #: ../fish/guestfish-actions.pod:1658
18834 msgid "inspect-get-distro"
18835 msgstr ""
18836
18837 # type: verbatim
18838 #: ../fish/guestfish-actions.pod:1660
18839 #, no-wrap
18840 msgid ""
18841 " inspect-get-distro root\n"
18842 "\n"
18843 msgstr ""
18844
18845 # type: =head2
18846 #: ../fish/guestfish-actions.pod:1704
18847 msgid "inspect-get-filesystems"
18848 msgstr ""
18849
18850 # type: verbatim
18851 #: ../fish/guestfish-actions.pod:1706
18852 #, no-wrap
18853 msgid ""
18854 " inspect-get-filesystems root\n"
18855 "\n"
18856 msgstr ""
18857
18858 # type: textblock
18859 #: ../fish/guestfish-actions.pod:1719
18860 msgid ""
18861 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18862 "L</inspect-get-mountpoints>."
18863 msgstr ""
18864
18865 # type: =head2
18866 #: ../fish/guestfish-actions.pod:1722
18867 msgid "inspect-get-major-version"
18868 msgstr ""
18869
18870 # type: verbatim
18871 #: ../fish/guestfish-actions.pod:1724
18872 #, no-wrap
18873 msgid ""
18874 " inspect-get-major-version root\n"
18875 "\n"
18876 msgstr ""
18877
18878 # type: =head2
18879 #: ../fish/guestfish-actions.pod:1743
18880 msgid "inspect-get-minor-version"
18881 msgstr ""
18882
18883 # type: verbatim
18884 #: ../fish/guestfish-actions.pod:1745
18885 #, no-wrap
18886 msgid ""
18887 " inspect-get-minor-version root\n"
18888 "\n"
18889 msgstr ""
18890
18891 # type: textblock
18892 #: ../fish/guestfish-actions.pod:1755
18893 msgid ""
18894 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18895 "L</inspect-get-major-version>."
18896 msgstr ""
18897
18898 # type: =head2
18899 #: ../fish/guestfish-actions.pod:1758
18900 msgid "inspect-get-mountpoints"
18901 msgstr ""
18902
18903 # type: verbatim
18904 #: ../fish/guestfish-actions.pod:1760
18905 #, no-wrap
18906 msgid ""
18907 " inspect-get-mountpoints root\n"
18908 "\n"
18909 msgstr ""
18910
18911 # type: textblock
18912 #: ../fish/guestfish-actions.pod:1778
18913 msgid ""
18914 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
18915 "L</inspect-get-filesystems>."
18916 msgstr ""
18917
18918 # type: =head2
18919 #: ../fish/guestfish-actions.pod:1781
18920 msgid "inspect-get-product-name"
18921 msgstr ""
18922
18923 # type: verbatim
18924 #: ../fish/guestfish-actions.pod:1783
18925 #, no-wrap
18926 msgid ""
18927 " inspect-get-product-name root\n"
18928 "\n"
18929 msgstr ""
18930
18931 # type: =head2
18932 #: ../fish/guestfish-actions.pod:1798
18933 msgid "inspect-get-type"
18934 msgstr ""
18935
18936 # type: verbatim
18937 #: ../fish/guestfish-actions.pod:1800
18938 #, no-wrap
18939 msgid ""
18940 " inspect-get-type root\n"
18941 "\n"
18942 msgstr ""
18943
18944 # type: =head2
18945 #: ../fish/guestfish-actions.pod:1829
18946 msgid "inspect-os"
18947 msgstr ""
18948
18949 # type: verbatim
18950 #: ../fish/guestfish-actions.pod:1831
18951 #, no-wrap
18952 msgid ""
18953 " inspect-os\n"
18954 "\n"
18955 msgstr ""
18956
18957 # type: textblock
18958 #: ../fish/guestfish-actions.pod:1846
18959 msgid ""
18960 "You can pass the root string(s) returned to other L</inspect-get-*> "
18961 "functions in order to query further information about each operating system, "
18962 "such as the name and version."
18963 msgstr ""
18964
18965 # type: textblock
18966 #: ../fish/guestfish-actions.pod:1851
18967 msgid ""
18968 "This function uses other libguestfs features such as L</mount-ro> and "
18969 "L</umount-all> in order to mount and unmount filesystems and look at the "
18970 "contents.  This should be called with no disks currently mounted.  The "
18971 "function may also use Augeas, so any existing Augeas handle will be closed."
18972 msgstr ""
18973
18974 # type: textblock
18975 #: ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2065
18976 msgid "See also L</list-filesystems>."
18977 msgstr ""
18978
18979 # type: =head2
18980 #: ../fish/guestfish-actions.pod:1865
18981 msgid "is-blockdev"
18982 msgstr ""
18983
18984 # type: verbatim
18985 #: ../fish/guestfish-actions.pod:1867
18986 #, no-wrap
18987 msgid ""
18988 " is-blockdev path\n"
18989 "\n"
18990 msgstr ""
18991
18992 # type: textblock
18993 #: ../fish/guestfish-actions.pod:1872 ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1909 ../fish/guestfish-actions.pod:1918 ../fish/guestfish-actions.pod:1928 ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1971
18994 msgid "See also L</stat>."
18995 msgstr ""
18996
18997 # type: =head2
18998 #: ../fish/guestfish-actions.pod:1874
18999 msgid "is-busy"
19000 msgstr ""
19001
19002 # type: verbatim
19003 #: ../fish/guestfish-actions.pod:1876
19004 #, no-wrap
19005 msgid ""
19006 " is-busy\n"
19007 "\n"
19008 msgstr ""
19009
19010 # type: =head2
19011 #: ../fish/guestfish-actions.pod:1883
19012 msgid "is-chardev"
19013 msgstr ""
19014
19015 # type: verbatim
19016 #: ../fish/guestfish-actions.pod:1885
19017 #, no-wrap
19018 msgid ""
19019 " is-chardev path\n"
19020 "\n"
19021 msgstr ""
19022
19023 # type: =head2
19024 #: ../fish/guestfish-actions.pod:1892
19025 msgid "is-config"
19026 msgstr ""
19027
19028 # type: verbatim
19029 #: ../fish/guestfish-actions.pod:1894
19030 #, no-wrap
19031 msgid ""
19032 " is-config\n"
19033 "\n"
19034 msgstr ""
19035
19036 # type: =head2
19037 #: ../fish/guestfish-actions.pod:1901
19038 msgid "is-dir"
19039 msgstr ""
19040
19041 # type: verbatim
19042 #: ../fish/guestfish-actions.pod:1903
19043 #, no-wrap
19044 msgid ""
19045 " is-dir path\n"
19046 "\n"
19047 msgstr ""
19048
19049 # type: =head2
19050 #: ../fish/guestfish-actions.pod:1911
19051 msgid "is-fifo"
19052 msgstr ""
19053
19054 # type: verbatim
19055 #: ../fish/guestfish-actions.pod:1913
19056 #, no-wrap
19057 msgid ""
19058 " is-fifo path\n"
19059 "\n"
19060 msgstr ""
19061
19062 # type: =head2
19063 #: ../fish/guestfish-actions.pod:1920
19064 msgid "is-file"
19065 msgstr ""
19066
19067 # type: verbatim
19068 #: ../fish/guestfish-actions.pod:1922
19069 #, no-wrap
19070 msgid ""
19071 " is-file path\n"
19072 "\n"
19073 msgstr ""
19074
19075 # type: =head2
19076 #: ../fish/guestfish-actions.pod:1930
19077 msgid "is-launching"
19078 msgstr ""
19079
19080 # type: verbatim
19081 #: ../fish/guestfish-actions.pod:1932
19082 #, no-wrap
19083 msgid ""
19084 " is-launching\n"
19085 "\n"
19086 msgstr ""
19087
19088 # type: =head2
19089 #: ../fish/guestfish-actions.pod:1939
19090 msgid "is-lv"
19091 msgstr ""
19092
19093 # type: verbatim
19094 #: ../fish/guestfish-actions.pod:1941
19095 #, no-wrap
19096 msgid ""
19097 " is-lv device\n"
19098 "\n"
19099 msgstr ""
19100
19101 # type: =head2
19102 #: ../fish/guestfish-actions.pod:1946
19103 msgid "is-ready"
19104 msgstr ""
19105
19106 # type: verbatim
19107 #: ../fish/guestfish-actions.pod:1948
19108 #, no-wrap
19109 msgid ""
19110 " is-ready\n"
19111 "\n"
19112 msgstr ""
19113
19114 # type: =head2
19115 #: ../fish/guestfish-actions.pod:1955
19116 msgid "is-socket"
19117 msgstr ""
19118
19119 # type: verbatim
19120 #: ../fish/guestfish-actions.pod:1957
19121 #, no-wrap
19122 msgid ""
19123 " is-socket path\n"
19124 "\n"
19125 msgstr ""
19126
19127 # type: =head2
19128 #: ../fish/guestfish-actions.pod:1964
19129 msgid "is-symlink"
19130 msgstr ""
19131
19132 # type: verbatim
19133 #: ../fish/guestfish-actions.pod:1966
19134 #, no-wrap
19135 msgid ""
19136 " is-symlink path\n"
19137 "\n"
19138 msgstr ""
19139
19140 # type: =head2
19141 #: ../fish/guestfish-actions.pod:1973
19142 msgid "kill-subprocess"
19143 msgstr ""
19144
19145 # type: verbatim
19146 #: ../fish/guestfish-actions.pod:1975
19147 #, no-wrap
19148 msgid ""
19149 " kill-subprocess\n"
19150 "\n"
19151 msgstr ""
19152
19153 # type: =head2
19154 #: ../fish/guestfish-actions.pod:1979
19155 msgid "launch"
19156 msgstr ""
19157
19158 # type: =head2
19159 #: ../fish/guestfish-actions.pod:1981
19160 msgid "run"
19161 msgstr ""
19162
19163 # type: verbatim
19164 #: ../fish/guestfish-actions.pod:1983
19165 #, no-wrap
19166 msgid ""
19167 " launch\n"
19168 "\n"
19169 msgstr ""
19170
19171 # type: =head2
19172 #: ../fish/guestfish-actions.pod:1991
19173 msgid "lchown"
19174 msgstr ""
19175
19176 # type: verbatim
19177 #: ../fish/guestfish-actions.pod:1993
19178 #, no-wrap
19179 msgid ""
19180 " lchown owner group path\n"
19181 "\n"
19182 msgstr ""
19183
19184 # type: textblock
19185 #: ../fish/guestfish-actions.pod:1995
19186 msgid ""
19187 "Change the file owner to C<owner> and group to C<group>.  This is like "
19188 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
19189 "the target."
19190 msgstr ""
19191
19192 # type: =head2
19193 #: ../fish/guestfish-actions.pod:2003
19194 msgid "lgetxattrs"
19195 msgstr ""
19196
19197 # type: verbatim
19198 #: ../fish/guestfish-actions.pod:2005
19199 #, no-wrap
19200 msgid ""
19201 " lgetxattrs path\n"
19202 "\n"
19203 msgstr ""
19204
19205 # type: textblock
19206 #: ../fish/guestfish-actions.pod:2007
19207 msgid ""
19208 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19209 "it returns the extended attributes of the link itself."
19210 msgstr ""
19211
19212 # type: =head2
19213 #: ../fish/guestfish-actions.pod:2011
19214 msgid "list-devices"
19215 msgstr ""
19216
19217 # type: verbatim
19218 #: ../fish/guestfish-actions.pod:2013
19219 #, no-wrap
19220 msgid ""
19221 " list-devices\n"
19222 "\n"
19223 msgstr ""
19224
19225 # type: =head2
19226 #: ../fish/guestfish-actions.pod:2021
19227 msgid "list-filesystems"
19228 msgstr ""
19229
19230 # type: verbatim
19231 #: ../fish/guestfish-actions.pod:2023
19232 #, no-wrap
19233 msgid ""
19234 " list-filesystems\n"
19235 "\n"
19236 msgstr ""
19237
19238 # type: textblock
19239 #: ../fish/guestfish-actions.pod:2042
19240 msgid ""
19241 "This command runs other libguestfs commands, which might include L</mount> "
19242 "and L</umount>, and therefore you should use this soon after launch and only "
19243 "when nothing is mounted."
19244 msgstr ""
19245
19246 # type: textblock
19247 #: ../fish/guestfish-actions.pod:2046
19248 msgid ""
19249 "Not all of the filesystems returned will be mountable.  In particular, swap "
19250 "partitions are returned in the list.  Also this command does not check that "
19251 "each filesystem found is valid and mountable, and some filesystems might be "
19252 "mountable but require special options.  Filesystems may not all belong to a "
19253 "single logical operating system (use L</inspect-os> to look for OSes)."
19254 msgstr ""
19255
19256 # type: =head2
19257 #: ../fish/guestfish-actions.pod:2054
19258 msgid "list-partitions"
19259 msgstr ""
19260
19261 # type: verbatim
19262 #: ../fish/guestfish-actions.pod:2056
19263 #, no-wrap
19264 msgid ""
19265 " list-partitions\n"
19266 "\n"
19267 msgstr ""
19268
19269 # type: textblock
19270 #: ../fish/guestfish-actions.pod:2062
19271 msgid ""
19272 "This does not return logical volumes.  For that you will need to call "
19273 "L</lvs>."
19274 msgstr ""
19275
19276 # type: =head2
19277 #: ../fish/guestfish-actions.pod:2067
19278 msgid "ll"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #: ../fish/guestfish-actions.pod:2069
19283 #, no-wrap
19284 msgid ""
19285 " ll directory\n"
19286 "\n"
19287 msgstr ""
19288
19289 # type: =head2
19290 #: ../fish/guestfish-actions.pod:2077
19291 msgid "ln"
19292 msgstr ""
19293
19294 # type: verbatim
19295 #: ../fish/guestfish-actions.pod:2079
19296 #, no-wrap
19297 msgid ""
19298 " ln target linkname\n"
19299 "\n"
19300 msgstr ""
19301
19302 # type: =head2
19303 #: ../fish/guestfish-actions.pod:2083
19304 msgid "ln-f"
19305 msgstr ""
19306
19307 # type: verbatim
19308 #: ../fish/guestfish-actions.pod:2085
19309 #, no-wrap
19310 msgid ""
19311 " ln-f target linkname\n"
19312 "\n"
19313 msgstr ""
19314
19315 # type: =head2
19316 #: ../fish/guestfish-actions.pod:2090
19317 msgid "ln-s"
19318 msgstr ""
19319
19320 # type: verbatim
19321 #: ../fish/guestfish-actions.pod:2092
19322 #, no-wrap
19323 msgid ""
19324 " ln-s target linkname\n"
19325 "\n"
19326 msgstr ""
19327
19328 # type: =head2
19329 #: ../fish/guestfish-actions.pod:2096
19330 msgid "ln-sf"
19331 msgstr ""
19332
19333 # type: verbatim
19334 #: ../fish/guestfish-actions.pod:2098
19335 #, no-wrap
19336 msgid ""
19337 " ln-sf target linkname\n"
19338 "\n"
19339 msgstr ""
19340
19341 # type: =head2
19342 #: ../fish/guestfish-actions.pod:2103
19343 msgid "lremovexattr"
19344 msgstr ""
19345
19346 # type: verbatim
19347 #: ../fish/guestfish-actions.pod:2105
19348 #, no-wrap
19349 msgid ""
19350 " lremovexattr xattr path\n"
19351 "\n"
19352 msgstr ""
19353
19354 # type: textblock
19355 #: ../fish/guestfish-actions.pod:2107
19356 msgid ""
19357 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19358 "it removes an extended attribute of the link itself."
19359 msgstr ""
19360
19361 # type: =head2
19362 #: ../fish/guestfish-actions.pod:2111
19363 msgid "ls"
19364 msgstr ""
19365
19366 # type: verbatim
19367 #: ../fish/guestfish-actions.pod:2113
19368 #, no-wrap
19369 msgid ""
19370 " ls directory\n"
19371 "\n"
19372 msgstr ""
19373
19374 # type: textblock
19375 #: ../fish/guestfish-actions.pod:2119
19376 msgid ""
19377 "This command is mostly useful for interactive sessions.  Programs should "
19378 "probably use L</readdir> instead."
19379 msgstr ""
19380
19381 # type: =head2
19382 #: ../fish/guestfish-actions.pod:2122
19383 msgid "lsetxattr"
19384 msgstr ""
19385
19386 # type: verbatim
19387 #: ../fish/guestfish-actions.pod:2124
19388 #, no-wrap
19389 msgid ""
19390 " lsetxattr xattr val vallen path\n"
19391 "\n"
19392 msgstr ""
19393
19394 # type: textblock
19395 #: ../fish/guestfish-actions.pod:2126
19396 msgid ""
19397 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
19398 "sets an extended attribute of the link itself."
19399 msgstr ""
19400
19401 # type: =head2
19402 #: ../fish/guestfish-actions.pod:2130
19403 msgid "lstat"
19404 msgstr ""
19405
19406 # type: verbatim
19407 #: ../fish/guestfish-actions.pod:2132
19408 #, no-wrap
19409 msgid ""
19410 " lstat path\n"
19411 "\n"
19412 msgstr ""
19413
19414 # type: textblock
19415 #: ../fish/guestfish-actions.pod:2136
19416 msgid ""
19417 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
19418 "the link is stat-ed, not the file it refers to."
19419 msgstr ""
19420
19421 # type: =head2
19422 #: ../fish/guestfish-actions.pod:2142
19423 msgid "lstatlist"
19424 msgstr ""
19425
19426 # type: verbatim
19427 #: ../fish/guestfish-actions.pod:2144
19428 #, no-wrap
19429 msgid ""
19430 " lstatlist path 'names ...'\n"
19431 "\n"
19432 msgstr ""
19433
19434 # type: textblock
19435 #: ../fish/guestfish-actions.pod:2146
19436 msgid ""
19437 "This call allows you to perform the L</lstat> operation on multiple files, "
19438 "where all files are in the directory C<path>.  C<names> is the list of files "
19439 "from this directory."
19440 msgstr ""
19441
19442 # type: textblock
19443 #: ../fish/guestfish-actions.pod:2155
19444 msgid ""
19445 "This call is intended for programs that want to efficiently list a directory "
19446 "contents without making many round-trips.  See also L</lxattrlist> for a "
19447 "similarly efficient call for getting extended attributes.  Very long "
19448 "directory listings might cause the protocol message size to be exceeded, "
19449 "causing this call to fail.  The caller must split up such requests into "
19450 "smaller groups of names."
19451 msgstr ""
19452
19453 # type: =head2
19454 #: ../fish/guestfish-actions.pod:2163
19455 msgid "luks-add-key"
19456 msgstr ""
19457
19458 # type: verbatim
19459 #: ../fish/guestfish-actions.pod:2165
19460 #, no-wrap
19461 msgid ""
19462 " luks-add-key device keyslot\n"
19463 "\n"
19464 msgstr ""
19465
19466 # type: textblock
19467 #: ../fish/guestfish-actions.pod:2172
19468 msgid ""
19469 "Note that if C<keyslot> already contains a key, then this command will "
19470 "fail.  You have to use L</luks-kill-slot> first to remove that key."
19471 msgstr ""
19472
19473 # type: textblock
19474 #: ../fish/guestfish-actions.pod:2176 ../fish/guestfish-actions.pod:2198 ../fish/guestfish-actions.pod:2211 ../fish/guestfish-actions.pod:2225 ../fish/guestfish-actions.pod:2248 ../fish/guestfish-actions.pod:2258
19475 msgid ""
19476 "This command has one or more key or passphrase parameters.  Guestfish will "
19477 "prompt for these separately."
19478 msgstr ""
19479
19480 # type: =head2
19481 #: ../fish/guestfish-actions.pod:2179
19482 msgid "luks-close"
19483 msgstr ""
19484
19485 # type: verbatim
19486 #: ../fish/guestfish-actions.pod:2181
19487 #, no-wrap
19488 msgid ""
19489 " luks-close device\n"
19490 "\n"
19491 msgstr ""
19492
19493 # type: textblock
19494 #: ../fish/guestfish-actions.pod:2183
19495 msgid ""
19496 "This closes a LUKS device that was created earlier by L</luks-open> or "
19497 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
19498 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
19499 "underlying block device."
19500 msgstr ""
19501
19502 # type: =head2
19503 #: ../fish/guestfish-actions.pod:2189
19504 msgid "luks-format"
19505 msgstr ""
19506
19507 # type: verbatim
19508 #: ../fish/guestfish-actions.pod:2191
19509 #, no-wrap
19510 msgid ""
19511 " luks-format device keyslot\n"
19512 "\n"
19513 msgstr ""
19514
19515 # type: =head2
19516 #: ../fish/guestfish-actions.pod:2204
19517 msgid "luks-format-cipher"
19518 msgstr ""
19519
19520 # type: verbatim
19521 #: ../fish/guestfish-actions.pod:2206
19522 #, no-wrap
19523 msgid ""
19524 " luks-format-cipher device keyslot cipher\n"
19525 "\n"
19526 msgstr ""
19527
19528 # type: textblock
19529 #: ../fish/guestfish-actions.pod:2208
19530 msgid ""
19531 "This command is the same as L</luks-format> but it also allows you to set "
19532 "the C<cipher> used."
19533 msgstr ""
19534
19535 # type: =head2
19536 #: ../fish/guestfish-actions.pod:2217
19537 msgid "luks-kill-slot"
19538 msgstr ""
19539
19540 # type: verbatim
19541 #: ../fish/guestfish-actions.pod:2219
19542 #, no-wrap
19543 msgid ""
19544 " luks-kill-slot device keyslot\n"
19545 "\n"
19546 msgstr ""
19547
19548 # type: =head2
19549 #: ../fish/guestfish-actions.pod:2228
19550 msgid "luks-open"
19551 msgstr ""
19552
19553 # type: verbatim
19554 #: ../fish/guestfish-actions.pod:2230
19555 #, no-wrap
19556 msgid ""
19557 " luks-open device mapname\n"
19558 "\n"
19559 msgstr ""
19560
19561 # type: textblock
19562 #: ../fish/guestfish-actions.pod:2244
19563 msgid ""
19564 "If this block device contains LVM volume groups, then calling L</vgscan> "
19565 "followed by L</vg-activate-all> will make them visible."
19566 msgstr ""
19567
19568 # type: =head2
19569 #: ../fish/guestfish-actions.pod:2251
19570 msgid "luks-open-ro"
19571 msgstr ""
19572
19573 # type: verbatim
19574 #: ../fish/guestfish-actions.pod:2253
19575 #, no-wrap
19576 msgid ""
19577 " luks-open-ro device mapname\n"
19578 "\n"
19579 msgstr ""
19580
19581 # type: textblock
19582 #: ../fish/guestfish-actions.pod:2255
19583 msgid ""
19584 "This is the same as L</luks-open> except that a read-only mapping is "
19585 "created."
19586 msgstr ""
19587
19588 # type: =head2
19589 #: ../fish/guestfish-actions.pod:2261
19590 msgid "lvcreate"
19591 msgstr ""
19592
19593 # type: verbatim
19594 #: ../fish/guestfish-actions.pod:2263
19595 #, no-wrap
19596 msgid ""
19597 " lvcreate logvol volgroup mbytes\n"
19598 "\n"
19599 msgstr ""
19600
19601 # type: =head2
19602 #: ../fish/guestfish-actions.pod:2268
19603 msgid "lvm-clear-filter"
19604 msgstr ""
19605
19606 # type: verbatim
19607 #: ../fish/guestfish-actions.pod:2270
19608 #, no-wrap
19609 msgid ""
19610 " lvm-clear-filter\n"
19611 "\n"
19612 msgstr ""
19613
19614 # type: textblock
19615 #: ../fish/guestfish-actions.pod:2272
19616 msgid ""
19617 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
19618 "block device."
19619 msgstr ""
19620
19621 # type: =head2
19622 #: ../fish/guestfish-actions.pod:2278
19623 msgid "lvm-remove-all"
19624 msgstr ""
19625
19626 # type: verbatim
19627 #: ../fish/guestfish-actions.pod:2280
19628 #, no-wrap
19629 msgid ""
19630 " lvm-remove-all\n"
19631 "\n"
19632 msgstr ""
19633
19634 # type: =head2
19635 #: ../fish/guestfish-actions.pod:2288
19636 msgid "lvm-set-filter"
19637 msgstr ""
19638
19639 # type: verbatim
19640 #: ../fish/guestfish-actions.pod:2290
19641 #, no-wrap
19642 msgid ""
19643 " lvm-set-filter 'devices ...'\n"
19644 "\n"
19645 msgstr ""
19646
19647 # type: =head2
19648 #: ../fish/guestfish-actions.pod:2315
19649 msgid "lvremove"
19650 msgstr ""
19651
19652 # type: verbatim
19653 #: ../fish/guestfish-actions.pod:2317
19654 #, no-wrap
19655 msgid ""
19656 " lvremove device\n"
19657 "\n"
19658 msgstr ""
19659
19660 # type: =head2
19661 #: ../fish/guestfish-actions.pod:2325
19662 msgid "lvrename"
19663 msgstr ""
19664
19665 # type: verbatim
19666 #: ../fish/guestfish-actions.pod:2327
19667 #, no-wrap
19668 msgid ""
19669 " lvrename logvol newlogvol\n"
19670 "\n"
19671 msgstr ""
19672
19673 # type: =head2
19674 #: ../fish/guestfish-actions.pod:2331
19675 msgid "lvresize"
19676 msgstr ""
19677
19678 # type: verbatim
19679 #: ../fish/guestfish-actions.pod:2333
19680 #, no-wrap
19681 msgid ""
19682 " lvresize device mbytes\n"
19683 "\n"
19684 msgstr ""
19685
19686 # type: =head2
19687 #: ../fish/guestfish-actions.pod:2339
19688 msgid "lvresize-free"
19689 msgstr ""
19690
19691 # type: verbatim
19692 #: ../fish/guestfish-actions.pod:2341
19693 #, no-wrap
19694 msgid ""
19695 " lvresize-free lv percent\n"
19696 "\n"
19697 msgstr ""
19698
19699 # type: =head2
19700 #: ../fish/guestfish-actions.pod:2349
19701 msgid "lvs"
19702 msgstr ""
19703
19704 # type: verbatim
19705 #: ../fish/guestfish-actions.pod:2351
19706 #, no-wrap
19707 msgid ""
19708 " lvs\n"
19709 "\n"
19710 msgstr ""
19711
19712 # type: textblock
19713 #: ../fish/guestfish-actions.pod:2359
19714 msgid "See also L</lvs-full>, L</list-filesystems>."
19715 msgstr ""
19716
19717 # type: =head2
19718 #: ../fish/guestfish-actions.pod:2361
19719 msgid "lvs-full"
19720 msgstr ""
19721
19722 # type: verbatim
19723 #: ../fish/guestfish-actions.pod:2363
19724 #, no-wrap
19725 msgid ""
19726 " lvs-full\n"
19727 "\n"
19728 msgstr ""
19729
19730 # type: =head2
19731 #: ../fish/guestfish-actions.pod:2368
19732 msgid "lvuuid"
19733 msgstr ""
19734
19735 # type: verbatim
19736 #: ../fish/guestfish-actions.pod:2370
19737 #, no-wrap
19738 msgid ""
19739 " lvuuid device\n"
19740 "\n"
19741 msgstr ""
19742
19743 # type: =head2
19744 #: ../fish/guestfish-actions.pod:2374
19745 msgid "lxattrlist"
19746 msgstr ""
19747
19748 # type: verbatim
19749 #: ../fish/guestfish-actions.pod:2376
19750 #, no-wrap
19751 msgid ""
19752 " lxattrlist path 'names ...'\n"
19753 "\n"
19754 msgstr ""
19755
19756 # type: textblock
19757 #: ../fish/guestfish-actions.pod:2392
19758 msgid ""
19759 "This call is intended for programs that want to efficiently list a directory "
19760 "contents without making many round-trips.  See also L</lstatlist> for a "
19761 "similarly efficient call for getting standard stats.  Very long directory "
19762 "listings might cause the protocol message size to be exceeded, causing this "
19763 "call to fail.  The caller must split up such requests into smaller groups of "
19764 "names."
19765 msgstr ""
19766
19767 # type: =head2
19768 #: ../fish/guestfish-actions.pod:2400
19769 msgid "mkdir"
19770 msgstr ""
19771
19772 # type: verbatim
19773 #: ../fish/guestfish-actions.pod:2402
19774 #, no-wrap
19775 msgid ""
19776 " mkdir path\n"
19777 "\n"
19778 msgstr ""
19779
19780 # type: =head2
19781 #: ../fish/guestfish-actions.pod:2406
19782 msgid "mkdir-mode"
19783 msgstr ""
19784
19785 # type: verbatim
19786 #: ../fish/guestfish-actions.pod:2408
19787 #, no-wrap
19788 msgid ""
19789 " mkdir-mode path mode\n"
19790 "\n"
19791 msgstr ""
19792
19793 # type: textblock
19794 #: ../fish/guestfish-actions.pod:2417
19795 msgid "See also L</mkdir>, L</umask>"
19796 msgstr ""
19797
19798 # type: =head2
19799 #: ../fish/guestfish-actions.pod:2419
19800 msgid "mkdir-p"
19801 msgstr ""
19802
19803 # type: verbatim
19804 #: ../fish/guestfish-actions.pod:2421
19805 #, no-wrap
19806 msgid ""
19807 " mkdir-p path\n"
19808 "\n"
19809 msgstr ""
19810
19811 # type: =head2
19812 #: ../fish/guestfish-actions.pod:2426
19813 msgid "mkdtemp"
19814 msgstr ""
19815
19816 # type: verbatim
19817 #: ../fish/guestfish-actions.pod:2428
19818 #, no-wrap
19819 msgid ""
19820 " mkdtemp template\n"
19821 "\n"
19822 msgstr ""
19823
19824 # type: =head2
19825 #: ../fish/guestfish-actions.pod:2449
19826 msgid "mke2fs-J"
19827 msgstr ""
19828
19829 # type: verbatim
19830 #: ../fish/guestfish-actions.pod:2451
19831 #, no-wrap
19832 msgid ""
19833 " mke2fs-J fstype blocksize device journal\n"
19834 "\n"
19835 msgstr ""
19836
19837 # type: textblock
19838 #: ../fish/guestfish-actions.pod:2459
19839 msgid "See also L</mke2journal>."
19840 msgstr ""
19841
19842 # type: =head2
19843 #: ../fish/guestfish-actions.pod:2461
19844 msgid "mke2fs-JL"
19845 msgstr ""
19846
19847 # type: verbatim
19848 #: ../fish/guestfish-actions.pod:2463
19849 #, no-wrap
19850 msgid ""
19851 " mke2fs-JL fstype blocksize device label\n"
19852 "\n"
19853 msgstr ""
19854
19855 # type: textblock
19856 #: ../fish/guestfish-actions.pod:2468
19857 msgid "See also L</mke2journal-L>."
19858 msgstr ""
19859
19860 # type: =head2
19861 #: ../fish/guestfish-actions.pod:2470
19862 msgid "mke2fs-JU"
19863 msgstr ""
19864
19865 # type: verbatim
19866 #: ../fish/guestfish-actions.pod:2472
19867 #, no-wrap
19868 msgid ""
19869 " mke2fs-JU fstype blocksize device uuid\n"
19870 "\n"
19871 msgstr ""
19872
19873 # type: textblock
19874 #: ../fish/guestfish-actions.pod:2477
19875 msgid "See also L</mke2journal-U>."
19876 msgstr ""
19877
19878 # type: =head2
19879 #: ../fish/guestfish-actions.pod:2479
19880 msgid "mke2journal"
19881 msgstr ""
19882
19883 # type: verbatim
19884 #: ../fish/guestfish-actions.pod:2481
19885 #, no-wrap
19886 msgid ""
19887 " mke2journal blocksize device\n"
19888 "\n"
19889 msgstr ""
19890
19891 # type: =head2
19892 #: ../fish/guestfish-actions.pod:2488
19893 msgid "mke2journal-L"
19894 msgstr ""
19895
19896 # type: verbatim
19897 #: ../fish/guestfish-actions.pod:2490
19898 #, no-wrap
19899 msgid ""
19900 " mke2journal-L blocksize label device\n"
19901 "\n"
19902 msgstr ""
19903
19904 # type: =head2
19905 #: ../fish/guestfish-actions.pod:2494
19906 msgid "mke2journal-U"
19907 msgstr ""
19908
19909 # type: verbatim
19910 #: ../fish/guestfish-actions.pod:2496
19911 #, no-wrap
19912 msgid ""
19913 " mke2journal-U blocksize uuid device\n"
19914 "\n"
19915 msgstr ""
19916
19917 # type: =head2
19918 #: ../fish/guestfish-actions.pod:2500
19919 msgid "mkfifo"
19920 msgstr ""
19921
19922 # type: verbatim
19923 #: ../fish/guestfish-actions.pod:2502
19924 #, no-wrap
19925 msgid ""
19926 " mkfifo mode path\n"
19927 "\n"
19928 msgstr ""
19929
19930 # type: textblock
19931 #: ../fish/guestfish-actions.pod:2504
19932 msgid ""
19933 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
19934 "is just a convenient wrapper around L</mknod>."
19935 msgstr ""
19936
19937 # type: =head2
19938 #: ../fish/guestfish-actions.pod:2510
19939 msgid "mkfs"
19940 msgstr ""
19941
19942 # type: verbatim
19943 #: ../fish/guestfish-actions.pod:2512
19944 #, no-wrap
19945 msgid ""
19946 " mkfs fstype device\n"
19947 "\n"
19948 msgstr ""
19949
19950 # type: =head2
19951 #: ../fish/guestfish-actions.pod:2518
19952 msgid "mkfs-b"
19953 msgstr ""
19954
19955 # type: verbatim
19956 #: ../fish/guestfish-actions.pod:2520
19957 #, no-wrap
19958 msgid ""
19959 " mkfs-b fstype blocksize device\n"
19960 "\n"
19961 msgstr ""
19962
19963 # type: textblock
19964 #: ../fish/guestfish-actions.pod:2522
19965 msgid ""
19966 "This call is similar to L</mkfs>, but it allows you to control the block "
19967 "size of the resulting filesystem.  Supported block sizes depend on the "
19968 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
19969 msgstr ""
19970
19971 # type: =head2
19972 #: ../fish/guestfish-actions.pod:2530
19973 msgid "mkmountpoint"
19974 msgstr ""
19975
19976 # type: verbatim
19977 #: ../fish/guestfish-actions.pod:2532
19978 #, no-wrap
19979 msgid ""
19980 " mkmountpoint exemptpath\n"
19981 "\n"
19982 msgstr ""
19983
19984 # type: textblock
19985 #: ../fish/guestfish-actions.pod:2534
19986 msgid ""
19987 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
19988 "to create extra mountpoints before mounting the first filesystem."
19989 msgstr ""
19990
19991 # type: =head2
19992 #: ../fish/guestfish-actions.pod:2558
19993 msgid "mknod"
19994 msgstr ""
19995
19996 # type: verbatim
19997 #: ../fish/guestfish-actions.pod:2560
19998 #, no-wrap
19999 msgid ""
20000 " mknod mode devmajor devminor path\n"
20001 "\n"
20002 msgstr ""
20003
20004 # type: textblock
20005 #: ../fish/guestfish-actions.pod:2570
20006 msgid ""
20007 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20008 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20009 "regular file).  These constants are available in the standard Linux header "
20010 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20011 "wrappers around this command which bitwise OR in the appropriate constant "
20012 "for you."
20013 msgstr ""
20014
20015 # type: =head2
20016 #: ../fish/guestfish-actions.pod:2580
20017 msgid "mknod-b"
20018 msgstr ""
20019
20020 # type: verbatim
20021 #: ../fish/guestfish-actions.pod:2582
20022 #, no-wrap
20023 msgid ""
20024 " mknod-b mode devmajor devminor path\n"
20025 "\n"
20026 msgstr ""
20027
20028 # type: textblock
20029 #: ../fish/guestfish-actions.pod:2584
20030 msgid ""
20031 "This call creates a block device node called C<path> with mode C<mode> and "
20032 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20033 "wrapper around L</mknod>."
20034 msgstr ""
20035
20036 # type: =head2
20037 #: ../fish/guestfish-actions.pod:2590
20038 msgid "mknod-c"
20039 msgstr ""
20040
20041 # type: verbatim
20042 #: ../fish/guestfish-actions.pod:2592
20043 #, no-wrap
20044 msgid ""
20045 " mknod-c mode devmajor devminor path\n"
20046 "\n"
20047 msgstr ""
20048
20049 # type: textblock
20050 #: ../fish/guestfish-actions.pod:2594
20051 msgid ""
20052 "This call creates a char device node called C<path> with mode C<mode> and "
20053 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20054 "wrapper around L</mknod>."
20055 msgstr ""
20056
20057 # type: =head2
20058 #: ../fish/guestfish-actions.pod:2600
20059 msgid "mkswap"
20060 msgstr ""
20061
20062 # type: verbatim
20063 #: ../fish/guestfish-actions.pod:2602
20064 #, no-wrap
20065 msgid ""
20066 " mkswap device\n"
20067 "\n"
20068 msgstr ""
20069
20070 # type: =head2
20071 #: ../fish/guestfish-actions.pod:2606
20072 msgid "mkswap-L"
20073 msgstr ""
20074
20075 # type: verbatim
20076 #: ../fish/guestfish-actions.pod:2608
20077 #, no-wrap
20078 msgid ""
20079 " mkswap-L label device\n"
20080 "\n"
20081 msgstr ""
20082
20083 # type: =head2
20084 #: ../fish/guestfish-actions.pod:2616
20085 msgid "mkswap-U"
20086 msgstr ""
20087
20088 # type: verbatim
20089 #: ../fish/guestfish-actions.pod:2618
20090 #, no-wrap
20091 msgid ""
20092 " mkswap-U uuid device\n"
20093 "\n"
20094 msgstr ""
20095
20096 # type: =head2
20097 #: ../fish/guestfish-actions.pod:2622
20098 msgid "mkswap-file"
20099 msgstr ""
20100
20101 # type: verbatim
20102 #: ../fish/guestfish-actions.pod:2624
20103 #, no-wrap
20104 msgid ""
20105 " mkswap-file path\n"
20106 "\n"
20107 msgstr ""
20108
20109 # type: textblock
20110 #: ../fish/guestfish-actions.pod:2628
20111 msgid ""
20112 "This command just writes a swap file signature to an existing file.  To "
20113 "create the file itself, use something like L</fallocate>."
20114 msgstr ""
20115
20116 # type: =head2
20117 #: ../fish/guestfish-actions.pod:2631
20118 msgid "modprobe"
20119 msgstr ""
20120
20121 # type: verbatim
20122 #: ../fish/guestfish-actions.pod:2633
20123 #, no-wrap
20124 msgid ""
20125 " modprobe modulename\n"
20126 "\n"
20127 msgstr ""
20128
20129 # type: =head2
20130 #: ../fish/guestfish-actions.pod:2640
20131 msgid "mount"
20132 msgstr ""
20133
20134 # type: verbatim
20135 #: ../fish/guestfish-actions.pod:2642
20136 #, no-wrap
20137 msgid ""
20138 " mount device mountpoint\n"
20139 "\n"
20140 msgstr ""
20141
20142 # type: textblock
20143 #: ../fish/guestfish-actions.pod:2658
20144 msgid ""
20145 "B<Important note:> When you use this call, the filesystem options C<sync> "
20146 "and C<noatime> are set implicitly.  This was originally done because we "
20147 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20148 "very large negative performance impact and negligible effect on "
20149 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20150 "code that needs performance, and instead use L</mount-options> (use an empty "
20151 "string for the first parameter if you don't want any options)."
20152 msgstr ""
20153
20154 # type: =head2
20155 #: ../fish/guestfish-actions.pod:2668
20156 msgid "mount-loop"
20157 msgstr ""
20158
20159 # type: verbatim
20160 #: ../fish/guestfish-actions.pod:2670
20161 #, no-wrap
20162 msgid ""
20163 " mount-loop file mountpoint\n"
20164 "\n"
20165 msgstr ""
20166
20167 # type: =head2
20168 #: ../fish/guestfish-actions.pod:2676
20169 msgid "mount-options"
20170 msgstr ""
20171
20172 # type: verbatim
20173 #: ../fish/guestfish-actions.pod:2678
20174 #, no-wrap
20175 msgid ""
20176 " mount-options options device mountpoint\n"
20177 "\n"
20178 msgstr ""
20179
20180 # type: textblock
20181 #: ../fish/guestfish-actions.pod:2680
20182 msgid ""
20183 "This is the same as the L</mount> command, but it allows you to set the "
20184 "mount options as for the L<mount(8)> I<-o> flag."
20185 msgstr ""
20186
20187 # type: =head2
20188 #: ../fish/guestfish-actions.pod:2688
20189 msgid "mount-ro"
20190 msgstr ""
20191
20192 # type: verbatim
20193 #: ../fish/guestfish-actions.pod:2690
20194 #, no-wrap
20195 msgid ""
20196 " mount-ro device mountpoint\n"
20197 "\n"
20198 msgstr ""
20199
20200 # type: textblock
20201 #: ../fish/guestfish-actions.pod:2692
20202 msgid ""
20203 "This is the same as the L</mount> command, but it mounts the filesystem with "
20204 "the read-only (I<-o ro>) flag."
20205 msgstr ""
20206
20207 # type: =head2
20208 #: ../fish/guestfish-actions.pod:2695
20209 msgid "mount-vfs"
20210 msgstr ""
20211
20212 # type: verbatim
20213 #: ../fish/guestfish-actions.pod:2697
20214 #, no-wrap
20215 msgid ""
20216 " mount-vfs options vfstype device mountpoint\n"
20217 "\n"
20218 msgstr ""
20219
20220 # type: textblock
20221 #: ../fish/guestfish-actions.pod:2699
20222 msgid ""
20223 "This is the same as the L</mount> command, but it allows you to set both the "
20224 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20225 msgstr ""
20226
20227 # type: =head2
20228 #: ../fish/guestfish-actions.pod:2703
20229 msgid "mountpoints"
20230 msgstr ""
20231
20232 # type: verbatim
20233 #: ../fish/guestfish-actions.pod:2705
20234 #, no-wrap
20235 msgid ""
20236 " mountpoints\n"
20237 "\n"
20238 msgstr ""
20239
20240 # type: textblock
20241 #: ../fish/guestfish-actions.pod:2707
20242 msgid ""
20243 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20244 "This one returns a hash table (map) of device name to directory where the "
20245 "device is mounted."
20246 msgstr ""
20247
20248 # type: =head2
20249 #: ../fish/guestfish-actions.pod:2711
20250 msgid "mounts"
20251 msgstr ""
20252
20253 # type: verbatim
20254 #: ../fish/guestfish-actions.pod:2713
20255 #, no-wrap
20256 msgid ""
20257 " mounts\n"
20258 "\n"
20259 msgstr ""
20260
20261 # type: textblock
20262 #: ../fish/guestfish-actions.pod:2720
20263 msgid "See also: L</mountpoints>"
20264 msgstr ""
20265
20266 # type: =head2
20267 #: ../fish/guestfish-actions.pod:2722
20268 msgid "mv"
20269 msgstr ""
20270
20271 # type: verbatim
20272 #: ../fish/guestfish-actions.pod:2724
20273 #, no-wrap
20274 msgid ""
20275 " mv src dest\n"
20276 "\n"
20277 msgstr ""
20278
20279 # type: =head2
20280 #: ../fish/guestfish-actions.pod:2729
20281 msgid "ntfs-3g-probe"
20282 msgstr ""
20283
20284 # type: verbatim
20285 #: ../fish/guestfish-actions.pod:2731
20286 #, no-wrap
20287 msgid ""
20288 " ntfs-3g-probe true|false device\n"
20289 "\n"
20290 msgstr ""
20291
20292 # type: =head2
20293 #: ../fish/guestfish-actions.pod:2745
20294 msgid "ntfsresize"
20295 msgstr ""
20296
20297 # type: verbatim
20298 #: ../fish/guestfish-actions.pod:2747
20299 #, no-wrap
20300 msgid ""
20301 " ntfsresize device\n"
20302 "\n"
20303 msgstr ""
20304
20305 # type: =head2
20306 #: ../fish/guestfish-actions.pod:2753
20307 msgid "ntfsresize-size"
20308 msgstr ""
20309
20310 # type: verbatim
20311 #: ../fish/guestfish-actions.pod:2755
20312 #, no-wrap
20313 msgid ""
20314 " ntfsresize-size device size\n"
20315 "\n"
20316 msgstr ""
20317
20318 # type: textblock
20319 #: ../fish/guestfish-actions.pod:2757
20320 msgid ""
20321 "This command is the same as L</ntfsresize> except that it allows you to "
20322 "specify the new size (in bytes) explicitly."
20323 msgstr ""
20324
20325 # type: =head2
20326 #: ../fish/guestfish-actions.pod:2760
20327 msgid "part-add"
20328 msgstr ""
20329
20330 # type: verbatim
20331 #: ../fish/guestfish-actions.pod:2762
20332 #, no-wrap
20333 msgid ""
20334 " part-add device prlogex startsect endsect\n"
20335 "\n"
20336 msgstr ""
20337
20338 # type: textblock
20339 #: ../fish/guestfish-actions.pod:2764
20340 msgid ""
20341 "This command adds a partition to C<device>.  If there is no partition table "
20342 "on the device, call L</part-init> first."
20343 msgstr ""
20344
20345 # type: textblock
20346 #: ../fish/guestfish-actions.pod:2776
20347 msgid ""
20348 "Creating a partition which covers the whole disk is not so easy.  Use "
20349 "L</part-disk> to do that."
20350 msgstr ""
20351
20352 # type: =head2
20353 #: ../fish/guestfish-actions.pod:2779
20354 msgid "part-del"
20355 msgstr ""
20356
20357 # type: verbatim
20358 #: ../fish/guestfish-actions.pod:2781
20359 #, no-wrap
20360 msgid ""
20361 " part-del device partnum\n"
20362 "\n"
20363 msgstr ""
20364
20365 # type: =head2
20366 #: ../fish/guestfish-actions.pod:2789
20367 msgid "part-disk"
20368 msgstr ""
20369
20370 # type: verbatim
20371 #: ../fish/guestfish-actions.pod:2791
20372 #, no-wrap
20373 msgid ""
20374 " part-disk device parttype\n"
20375 "\n"
20376 msgstr ""
20377
20378 # type: textblock
20379 #: ../fish/guestfish-actions.pod:2793
20380 msgid ""
20381 "This command is simply a combination of L</part-init> followed by "
20382 "L</part-add> to create a single primary partition covering the whole disk."
20383 msgstr ""
20384
20385 # type: textblock
20386 #: ../fish/guestfish-actions.pod:2797
20387 msgid ""
20388 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
20389 "possible values are described in L</part-init>."
20390 msgstr ""
20391
20392 # type: =head2
20393 #: ../fish/guestfish-actions.pod:2803
20394 msgid "part-get-bootable"
20395 msgstr ""
20396
20397 # type: verbatim
20398 #: ../fish/guestfish-actions.pod:2805
20399 #, no-wrap
20400 msgid ""
20401 " part-get-bootable device partnum\n"
20402 "\n"
20403 msgstr ""
20404
20405 # type: textblock
20406 #: ../fish/guestfish-actions.pod:2810
20407 msgid "See also L</part-set-bootable>."
20408 msgstr ""
20409
20410 # type: =head2
20411 #: ../fish/guestfish-actions.pod:2812
20412 msgid "part-get-mbr-id"
20413 msgstr ""
20414
20415 # type: verbatim
20416 #: ../fish/guestfish-actions.pod:2814
20417 #, no-wrap
20418 msgid ""
20419 " part-get-mbr-id device partnum\n"
20420 "\n"
20421 msgstr ""
20422
20423 # type: textblock
20424 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2957
20425 msgid ""
20426 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
20427 "undefined results for other partition table types (see "
20428 "L</part-get-parttype>)."
20429 msgstr ""
20430
20431 # type: =head2
20432 #: ../fish/guestfish-actions.pod:2823
20433 msgid "part-get-parttype"
20434 msgstr ""
20435
20436 # type: verbatim
20437 #: ../fish/guestfish-actions.pod:2825
20438 #, no-wrap
20439 msgid ""
20440 " part-get-parttype device\n"
20441 "\n"
20442 msgstr ""
20443
20444 # type: textblock
20445 #: ../fish/guestfish-actions.pod:2830
20446 msgid ""
20447 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
20448 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
20449 "possible, although unusual.  See L</part-init> for a full list."
20450 msgstr ""
20451
20452 # type: =head2
20453 #: ../fish/guestfish-actions.pod:2835
20454 msgid "part-init"
20455 msgstr ""
20456
20457 # type: verbatim
20458 #: ../fish/guestfish-actions.pod:2837
20459 #, no-wrap
20460 msgid ""
20461 " part-init device parttype\n"
20462 "\n"
20463 msgstr ""
20464
20465 # type: textblock
20466 #: ../fish/guestfish-actions.pod:2843
20467 msgid ""
20468 "Initially there are no partitions.  Following this, you should call "
20469 "L</part-add> for each partition required."
20470 msgstr ""
20471
20472 # type: =head2
20473 #: ../fish/guestfish-actions.pod:2906
20474 msgid "part-list"
20475 msgstr ""
20476
20477 # type: verbatim
20478 #: ../fish/guestfish-actions.pod:2908
20479 #, no-wrap
20480 msgid ""
20481 " part-list device\n"
20482 "\n"
20483 msgstr ""
20484
20485 # type: textblock
20486 #: ../fish/guestfish-actions.pod:2923
20487 msgid ""
20488 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
20489 "the device's sector size, see L</blockdev-getss>."
20490 msgstr ""
20491
20492 # type: =head2
20493 #: ../fish/guestfish-actions.pod:2936
20494 msgid "part-set-bootable"
20495 msgstr ""
20496
20497 # type: verbatim
20498 #: ../fish/guestfish-actions.pod:2938
20499 #, no-wrap
20500 msgid ""
20501 " part-set-bootable device partnum true|false\n"
20502 "\n"
20503 msgstr ""
20504
20505 # type: =head2
20506 #: ../fish/guestfish-actions.pod:2947
20507 msgid "part-set-mbr-id"
20508 msgstr ""
20509
20510 # type: verbatim
20511 #: ../fish/guestfish-actions.pod:2949
20512 #, no-wrap
20513 msgid ""
20514 " part-set-mbr-id device partnum idbyte\n"
20515 "\n"
20516 msgstr ""
20517
20518 # type: =head2
20519 #: ../fish/guestfish-actions.pod:2961
20520 msgid "part-set-name"
20521 msgstr ""
20522
20523 # type: verbatim
20524 #: ../fish/guestfish-actions.pod:2963
20525 #, no-wrap
20526 msgid ""
20527 " part-set-name device partnum name\n"
20528 "\n"
20529 msgstr ""
20530
20531 # type: =head2
20532 #: ../fish/guestfish-actions.pod:2971
20533 msgid "part-to-dev"
20534 msgstr ""
20535
20536 # type: verbatim
20537 #: ../fish/guestfish-actions.pod:2973
20538 #, no-wrap
20539 msgid ""
20540 " part-to-dev partition\n"
20541 "\n"
20542 msgstr ""
20543
20544 # type: textblock
20545 #: ../fish/guestfish-actions.pod:2979
20546 msgid ""
20547 "The named partition must exist, for example as a string returned from "
20548 "L</list-partitions>."
20549 msgstr ""
20550
20551 # type: =head2
20552 #: ../fish/guestfish-actions.pod:2982
20553 msgid "ping-daemon"
20554 msgstr ""
20555
20556 # type: verbatim
20557 #: ../fish/guestfish-actions.pod:2984
20558 #, no-wrap
20559 msgid ""
20560 " ping-daemon\n"
20561 "\n"
20562 msgstr ""
20563
20564 # type: =head2
20565 #: ../fish/guestfish-actions.pod:2991
20566 msgid "pread"
20567 msgstr ""
20568
20569 # type: verbatim
20570 #: ../fish/guestfish-actions.pod:2993
20571 #, no-wrap
20572 msgid ""
20573 " pread path count offset\n"
20574 "\n"
20575 msgstr ""
20576
20577 # type: textblock
20578 #: ../fish/guestfish-actions.pod:3001
20579 msgid "See also L</pwrite>, L</pread-device>."
20580 msgstr ""
20581
20582 # type: =head2
20583 #: ../fish/guestfish-actions.pod:3006
20584 msgid "pread-device"
20585 msgstr ""
20586
20587 # type: verbatim
20588 #: ../fish/guestfish-actions.pod:3008
20589 #, no-wrap
20590 msgid ""
20591 " pread-device device count offset\n"
20592 "\n"
20593 msgstr ""
20594
20595 # type: textblock
20596 #: ../fish/guestfish-actions.pod:3016
20597 msgid "See also L</pread>."
20598 msgstr ""
20599
20600 # type: =head2
20601 #: ../fish/guestfish-actions.pod:3021
20602 msgid "pvcreate"
20603 msgstr ""
20604
20605 # type: verbatim
20606 #: ../fish/guestfish-actions.pod:3023
20607 #, no-wrap
20608 msgid ""
20609 " pvcreate device\n"
20610 "\n"
20611 msgstr ""
20612
20613 # type: =head2
20614 #: ../fish/guestfish-actions.pod:3029
20615 msgid "pvremove"
20616 msgstr ""
20617
20618 # type: verbatim
20619 #: ../fish/guestfish-actions.pod:3031
20620 #, no-wrap
20621 msgid ""
20622 " pvremove device\n"
20623 "\n"
20624 msgstr ""
20625
20626 # type: =head2
20627 #: ../fish/guestfish-actions.pod:3040
20628 msgid "pvresize"
20629 msgstr ""
20630
20631 # type: verbatim
20632 #: ../fish/guestfish-actions.pod:3042
20633 #, no-wrap
20634 msgid ""
20635 " pvresize device\n"
20636 "\n"
20637 msgstr ""
20638
20639 # type: =head2
20640 #: ../fish/guestfish-actions.pod:3047
20641 msgid "pvresize-size"
20642 msgstr ""
20643
20644 # type: verbatim
20645 #: ../fish/guestfish-actions.pod:3049
20646 #, no-wrap
20647 msgid ""
20648 " pvresize-size device size\n"
20649 "\n"
20650 msgstr ""
20651
20652 # type: textblock
20653 #: ../fish/guestfish-actions.pod:3051
20654 msgid ""
20655 "This command is the same as L</pvresize> except that it allows you to "
20656 "specify the new size (in bytes) explicitly."
20657 msgstr ""
20658
20659 # type: =head2
20660 #: ../fish/guestfish-actions.pod:3054
20661 msgid "pvs"
20662 msgstr ""
20663
20664 # type: verbatim
20665 #: ../fish/guestfish-actions.pod:3056
20666 #, no-wrap
20667 msgid ""
20668 " pvs\n"
20669 "\n"
20670 msgstr ""
20671
20672 # type: textblock
20673 #: ../fish/guestfish-actions.pod:3064
20674 msgid "See also L</pvs-full>."
20675 msgstr ""
20676
20677 # type: =head2
20678 #: ../fish/guestfish-actions.pod:3066
20679 msgid "pvs-full"
20680 msgstr ""
20681
20682 # type: verbatim
20683 #: ../fish/guestfish-actions.pod:3068
20684 #, no-wrap
20685 msgid ""
20686 " pvs-full\n"
20687 "\n"
20688 msgstr ""
20689
20690 # type: =head2
20691 #: ../fish/guestfish-actions.pod:3073
20692 msgid "pvuuid"
20693 msgstr ""
20694
20695 # type: verbatim
20696 #: ../fish/guestfish-actions.pod:3075
20697 #, no-wrap
20698 msgid ""
20699 " pvuuid device\n"
20700 "\n"
20701 msgstr ""
20702
20703 # type: =head2
20704 #: ../fish/guestfish-actions.pod:3079
20705 msgid "pwrite"
20706 msgstr ""
20707
20708 # type: verbatim
20709 #: ../fish/guestfish-actions.pod:3081
20710 #, no-wrap
20711 msgid ""
20712 " pwrite path content offset\n"
20713 "\n"
20714 msgstr ""
20715
20716 # type: textblock
20717 #: ../fish/guestfish-actions.pod:3092
20718 msgid "See also L</pread>, L</pwrite-device>."
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:3097
20723 msgid "pwrite-device"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:3099
20728 #, no-wrap
20729 msgid ""
20730 " pwrite-device device content offset\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: textblock
20735 #: ../fish/guestfish-actions.pod:3109
20736 msgid "See also L</pwrite>."
20737 msgstr ""
20738
20739 # type: =head2
20740 #: ../fish/guestfish-actions.pod:3114
20741 msgid "read-file"
20742 msgstr ""
20743
20744 # type: verbatim
20745 #: ../fish/guestfish-actions.pod:3116
20746 #, no-wrap
20747 msgid ""
20748 " read-file path\n"
20749 "\n"
20750 msgstr ""
20751
20752 # type: textblock
20753 #: ../fish/guestfish-actions.pod:3121
20754 msgid ""
20755 "Unlike L</cat>, this function can correctly handle files that contain "
20756 "embedded ASCII NUL characters.  However unlike L</download>, this function "
20757 "is limited in the total size of file that can be handled."
20758 msgstr ""
20759
20760 # type: =head2
20761 #: ../fish/guestfish-actions.pod:3129
20762 msgid "read-lines"
20763 msgstr ""
20764
20765 # type: verbatim
20766 #: ../fish/guestfish-actions.pod:3131
20767 #, no-wrap
20768 msgid ""
20769 " read-lines path\n"
20770 "\n"
20771 msgstr ""
20772
20773 # type: textblock
20774 #: ../fish/guestfish-actions.pod:3138
20775 msgid ""
20776 "Note that this function cannot correctly handle binary files (specifically, "
20777 "files containing C<\\0> character which is treated as end of line).  For "
20778 "those you need to use the L</read-file> function which has a more complex "
20779 "interface."
20780 msgstr ""
20781
20782 # type: =head2
20783 #: ../fish/guestfish-actions.pod:3143
20784 msgid "readdir"
20785 msgstr ""
20786
20787 # type: verbatim
20788 #: ../fish/guestfish-actions.pod:3145
20789 #, no-wrap
20790 msgid ""
20791 " readdir dir\n"
20792 "\n"
20793 msgstr ""
20794
20795 # type: textblock
20796 #: ../fish/guestfish-actions.pod:3197
20797 msgid ""
20798 "This function is primarily intended for use by programs.  To get a simple "
20799 "list of names, use L</ls>.  To get a printable directory for human "
20800 "consumption, use L</ll>."
20801 msgstr ""
20802
20803 # type: =head2
20804 #: ../fish/guestfish-actions.pod:3201
20805 msgid "readlink"
20806 msgstr ""
20807
20808 # type: verbatim
20809 #: ../fish/guestfish-actions.pod:3203
20810 #, no-wrap
20811 msgid ""
20812 " readlink path\n"
20813 "\n"
20814 msgstr ""
20815
20816 # type: =head2
20817 #: ../fish/guestfish-actions.pod:3207
20818 msgid "readlinklist"
20819 msgstr ""
20820
20821 # type: verbatim
20822 #: ../fish/guestfish-actions.pod:3209
20823 #, no-wrap
20824 msgid ""
20825 " readlinklist path 'names ...'\n"
20826 "\n"
20827 msgstr ""
20828
20829 # type: =head2
20830 #: ../fish/guestfish-actions.pod:3233
20831 msgid "realpath"
20832 msgstr ""
20833
20834 # type: verbatim
20835 #: ../fish/guestfish-actions.pod:3235
20836 #, no-wrap
20837 msgid ""
20838 " realpath path\n"
20839 "\n"
20840 msgstr ""
20841
20842 # type: =head2
20843 #: ../fish/guestfish-actions.pod:3240
20844 msgid "removexattr"
20845 msgstr ""
20846
20847 # type: verbatim
20848 #: ../fish/guestfish-actions.pod:3242
20849 #, no-wrap
20850 msgid ""
20851 " removexattr xattr path\n"
20852 "\n"
20853 msgstr ""
20854
20855 # type: textblock
20856 #: ../fish/guestfish-actions.pod:3247
20857 msgid "See also: L</lremovexattr>, L<attr(5)>."
20858 msgstr ""
20859
20860 # type: =head2
20861 #: ../fish/guestfish-actions.pod:3249
20862 msgid "resize2fs"
20863 msgstr ""
20864
20865 # type: verbatim
20866 #: ../fish/guestfish-actions.pod:3251
20867 #, no-wrap
20868 msgid ""
20869 " resize2fs device\n"
20870 "\n"
20871 msgstr ""
20872
20873 # type: textblock
20874 #: ../fish/guestfish-actions.pod:3256
20875 msgid ""
20876 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
20877 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
20878 "gives an error about this and sometimes not.  In any case, it is always safe "
20879 "to call L</e2fsck-f> before calling this function."
20880 msgstr ""
20881
20882 # type: =head2
20883 #: ../fish/guestfish-actions.pod:3262
20884 msgid "resize2fs-size"
20885 msgstr ""
20886
20887 # type: verbatim
20888 #: ../fish/guestfish-actions.pod:3264
20889 #, no-wrap
20890 msgid ""
20891 " resize2fs-size device size\n"
20892 "\n"
20893 msgstr ""
20894
20895 # type: textblock
20896 #: ../fish/guestfish-actions.pod:3266
20897 msgid ""
20898 "This command is the same as L</resize2fs> except that it allows you to "
20899 "specify the new size (in bytes) explicitly."
20900 msgstr ""
20901
20902 # type: =head2
20903 #: ../fish/guestfish-actions.pod:3269
20904 msgid "rm"
20905 msgstr ""
20906
20907 # type: verbatim
20908 #: ../fish/guestfish-actions.pod:3271
20909 #, no-wrap
20910 msgid ""
20911 " rm path\n"
20912 "\n"
20913 msgstr ""
20914
20915 # type: =head2
20916 #: ../fish/guestfish-actions.pod:3275
20917 msgid "rm-rf"
20918 msgstr ""
20919
20920 # type: verbatim
20921 #: ../fish/guestfish-actions.pod:3277
20922 #, no-wrap
20923 msgid ""
20924 " rm-rf path\n"
20925 "\n"
20926 msgstr ""
20927
20928 # type: =head2
20929 #: ../fish/guestfish-actions.pod:3283
20930 msgid "rmdir"
20931 msgstr ""
20932
20933 # type: verbatim
20934 #: ../fish/guestfish-actions.pod:3285
20935 #, no-wrap
20936 msgid ""
20937 " rmdir path\n"
20938 "\n"
20939 msgstr ""
20940
20941 # type: =head2
20942 #: ../fish/guestfish-actions.pod:3289
20943 msgid "rmmountpoint"
20944 msgstr ""
20945
20946 # type: verbatim
20947 #: ../fish/guestfish-actions.pod:3291
20948 #, no-wrap
20949 msgid ""
20950 " rmmountpoint exemptpath\n"
20951 "\n"
20952 msgstr ""
20953
20954 # type: textblock
20955 #: ../fish/guestfish-actions.pod:3293
20956 msgid ""
20957 "This calls removes a mountpoint that was previously created with "
20958 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
20959 msgstr ""
20960
20961 # type: =head2
20962 #: ../fish/guestfish-actions.pod:3297
20963 msgid "scrub-device"
20964 msgstr ""
20965
20966 # type: verbatim
20967 #: ../fish/guestfish-actions.pod:3299
20968 #, no-wrap
20969 msgid ""
20970 " scrub-device device\n"
20971 "\n"
20972 msgstr ""
20973
20974 # type: =head2
20975 #: ../fish/guestfish-actions.pod:3310
20976 msgid "scrub-file"
20977 msgstr ""
20978
20979 # type: verbatim
20980 #: ../fish/guestfish-actions.pod:3312
20981 #, no-wrap
20982 msgid ""
20983 " scrub-file file\n"
20984 "\n"
20985 msgstr ""
20986
20987 # type: =head2
20988 #: ../fish/guestfish-actions.pod:3322
20989 msgid "scrub-freespace"
20990 msgstr ""
20991
20992 # type: verbatim
20993 #: ../fish/guestfish-actions.pod:3324
20994 #, no-wrap
20995 msgid ""
20996 " scrub-freespace dir\n"
20997 "\n"
20998 msgstr ""
20999
21000 # type: textblock
21001 #: ../fish/guestfish-actions.pod:3326
21002 msgid ""
21003 "This command creates the directory C<dir> and then fills it with files until "
21004 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21005 "deletes them.  The intention is to scrub any free space on the partition "
21006 "containing C<dir>."
21007 msgstr ""
21008
21009 # type: =head2
21010 #: ../fish/guestfish-actions.pod:3335
21011 msgid "set-append"
21012 msgstr ""
21013
21014 # type: =head2
21015 #: ../fish/guestfish-actions.pod:3337
21016 msgid "append"
21017 msgstr ""
21018
21019 # type: verbatim
21020 #: ../fish/guestfish-actions.pod:3339
21021 #, no-wrap
21022 msgid ""
21023 " set-append append\n"
21024 "\n"
21025 msgstr ""
21026
21027 # type: =head2
21028 #: ../fish/guestfish-actions.pod:3350
21029 msgid "set-autosync"
21030 msgstr ""
21031
21032 # type: =head2
21033 #: ../fish/guestfish-actions.pod:3352
21034 msgid "autosync"
21035 msgstr ""
21036
21037 # type: verbatim
21038 #: ../fish/guestfish-actions.pod:3354
21039 #, no-wrap
21040 msgid ""
21041 " set-autosync true|false\n"
21042 "\n"
21043 msgstr ""
21044
21045 # type: textblock
21046 #: ../fish/guestfish-actions.pod:3356
21047 msgid ""
21048 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21049 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21050 "closed (also if the program exits without closing handles)."
21051 msgstr ""
21052
21053 # type: =head2
21054 #: ../fish/guestfish-actions.pod:3364
21055 msgid "set-direct"
21056 msgstr ""
21057
21058 # type: =head2
21059 #: ../fish/guestfish-actions.pod:3366
21060 msgid "direct"
21061 msgstr ""
21062
21063 # type: verbatim
21064 #: ../fish/guestfish-actions.pod:3368
21065 #, no-wrap
21066 msgid ""
21067 " set-direct true|false\n"
21068 "\n"
21069 msgstr ""
21070
21071 # type: textblock
21072 #: ../fish/guestfish-actions.pod:3374
21073 msgid ""
21074 "One consequence of this is that log messages aren't caught by the library "
21075 "and handled by L</set-log-message-callback>, but go straight to stdout."
21076 msgstr ""
21077
21078 # type: =head2
21079 #: ../fish/guestfish-actions.pod:3383
21080 msgid "set-e2label"
21081 msgstr ""
21082
21083 # type: verbatim
21084 #: ../fish/guestfish-actions.pod:3385
21085 #, no-wrap
21086 msgid ""
21087 " set-e2label device label\n"
21088 "\n"
21089 msgstr ""
21090
21091 # type: textblock
21092 #: ../fish/guestfish-actions.pod:3391
21093 msgid ""
21094 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21095 "label on a filesystem."
21096 msgstr ""
21097
21098 # type: =head2
21099 #: ../fish/guestfish-actions.pod:3394
21100 msgid "set-e2uuid"
21101 msgstr ""
21102
21103 # type: verbatim
21104 #: ../fish/guestfish-actions.pod:3396
21105 #, no-wrap
21106 msgid ""
21107 " set-e2uuid device uuid\n"
21108 "\n"
21109 msgstr ""
21110
21111 # type: textblock
21112 #: ../fish/guestfish-actions.pod:3403
21113 msgid ""
21114 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21115 "UUID of a filesystem."
21116 msgstr ""
21117
21118 # type: =head2
21119 #: ../fish/guestfish-actions.pod:3406
21120 msgid "set-memsize"
21121 msgstr ""
21122
21123 # type: =head2
21124 #: ../fish/guestfish-actions.pod:3408
21125 msgid "memsize"
21126 msgstr ""
21127
21128 # type: verbatim
21129 #: ../fish/guestfish-actions.pod:3410
21130 #, no-wrap
21131 msgid ""
21132 " set-memsize memsize\n"
21133 "\n"
21134 msgstr ""
21135
21136 # type: textblock
21137 #: ../fish/guestfish-actions.pod:3412
21138 msgid ""
21139 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21140 "This only has any effect if called before L</launch>."
21141 msgstr ""
21142
21143 # type: =head2
21144 #: ../fish/guestfish-actions.pod:3423
21145 msgid "set-network"
21146 msgstr ""
21147
21148 # type: =head2
21149 #: ../fish/guestfish-actions.pod:3425
21150 msgid "network"
21151 msgstr ""
21152
21153 # type: verbatim
21154 #: ../fish/guestfish-actions.pod:3427
21155 #, no-wrap
21156 msgid ""
21157 " set-network true|false\n"
21158 "\n"
21159 msgstr ""
21160
21161 # type: textblock
21162 #: ../fish/guestfish-actions.pod:3435
21163 msgid "You must call this before calling L</launch>, otherwise it has no effect."
21164 msgstr ""
21165
21166 # type: =head2
21167 #: ../fish/guestfish-actions.pod:3438
21168 msgid "set-path"
21169 msgstr ""
21170
21171 # type: =head2
21172 #: ../fish/guestfish-actions.pod:3440
21173 msgid "path"
21174 msgstr ""
21175
21176 # type: verbatim
21177 #: ../fish/guestfish-actions.pod:3442
21178 #, no-wrap
21179 msgid ""
21180 " set-path searchpath\n"
21181 "\n"
21182 msgstr ""
21183
21184 # type: =head2
21185 #: ../fish/guestfish-actions.pod:3451
21186 msgid "set-qemu"
21187 msgstr ""
21188
21189 # type: =head2
21190 #: ../fish/guestfish-actions.pod:3453
21191 msgid "qemu"
21192 msgstr ""
21193
21194 # type: verbatim
21195 #: ../fish/guestfish-actions.pod:3455
21196 #, no-wrap
21197 msgid ""
21198 " set-qemu qemu\n"
21199 "\n"
21200 msgstr ""
21201
21202 # type: =head2
21203 #: ../fish/guestfish-actions.pod:3475
21204 msgid "set-recovery-proc"
21205 msgstr ""
21206
21207 # type: =head2
21208 #: ../fish/guestfish-actions.pod:3477
21209 msgid "recovery-proc"
21210 msgstr ""
21211
21212 # type: verbatim
21213 #: ../fish/guestfish-actions.pod:3479
21214 #, no-wrap
21215 msgid ""
21216 " set-recovery-proc true|false\n"
21217 "\n"
21218 msgstr ""
21219
21220 # type: textblock
21221 #: ../fish/guestfish-actions.pod:3481
21222 msgid ""
21223 "If this is called with the parameter C<false> then L</launch> does not "
21224 "create a recovery process.  The purpose of the recovery process is to stop "
21225 "runaway qemu processes in the case where the main program aborts abruptly."
21226 msgstr ""
21227
21228 # type: textblock
21229 #: ../fish/guestfish-actions.pod:3486
21230 msgid ""
21231 "This only has any effect if called before L</launch>, and the default is "
21232 "true."
21233 msgstr ""
21234
21235 # type: =head2
21236 #: ../fish/guestfish-actions.pod:3495
21237 msgid "set-selinux"
21238 msgstr ""
21239
21240 # type: =head2
21241 #: ../fish/guestfish-actions.pod:3497
21242 msgid "selinux"
21243 msgstr ""
21244
21245 # type: verbatim
21246 #: ../fish/guestfish-actions.pod:3499
21247 #, no-wrap
21248 msgid ""
21249 " set-selinux true|false\n"
21250 "\n"
21251 msgstr ""
21252
21253 # type: =head2
21254 #: ../fish/guestfish-actions.pod:3510
21255 msgid "set-trace"
21256 msgstr ""
21257
21258 # type: =head2
21259 #: ../fish/guestfish-actions.pod:3512
21260 msgid "trace"
21261 msgstr ""
21262
21263 # type: verbatim
21264 #: ../fish/guestfish-actions.pod:3514
21265 #, no-wrap
21266 msgid ""
21267 " set-trace true|false\n"
21268 "\n"
21269 msgstr ""
21270
21271 # type: =head2
21272 #: ../fish/guestfish-actions.pod:3530
21273 msgid "set-verbose"
21274 msgstr ""
21275
21276 # type: =head2
21277 #: ../fish/guestfish-actions.pod:3532
21278 msgid "verbose"
21279 msgstr ""
21280
21281 # type: verbatim
21282 #: ../fish/guestfish-actions.pod:3534
21283 #, no-wrap
21284 msgid ""
21285 " set-verbose true|false\n"
21286 "\n"
21287 msgstr ""
21288
21289 # type: =head2
21290 #: ../fish/guestfish-actions.pod:3541
21291 msgid "setcon"
21292 msgstr ""
21293
21294 # type: verbatim
21295 #: ../fish/guestfish-actions.pod:3543
21296 #, no-wrap
21297 msgid ""
21298 " setcon context\n"
21299 "\n"
21300 msgstr ""
21301
21302 # type: =head2
21303 #: ../fish/guestfish-actions.pod:3550
21304 msgid "setxattr"
21305 msgstr ""
21306
21307 # type: verbatim
21308 #: ../fish/guestfish-actions.pod:3552
21309 #, no-wrap
21310 msgid ""
21311 " setxattr xattr val vallen path\n"
21312 "\n"
21313 msgstr ""
21314
21315 # type: textblock
21316 #: ../fish/guestfish-actions.pod:3558
21317 msgid "See also: L</lsetxattr>, L<attr(5)>."
21318 msgstr ""
21319
21320 # type: =head2
21321 #: ../fish/guestfish-actions.pod:3560
21322 msgid "sfdisk"
21323 msgstr ""
21324
21325 # type: verbatim
21326 #: ../fish/guestfish-actions.pod:3562
21327 #, no-wrap
21328 msgid ""
21329 " sfdisk device cyls heads sectors 'lines ...'\n"
21330 "\n"
21331 msgstr ""
21332
21333 # type: textblock
21334 #: ../fish/guestfish-actions.pod:3584
21335 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
21336 msgstr ""
21337
21338 # type: =head2
21339 #: ../fish/guestfish-actions.pod:3590
21340 msgid "sfdiskM"
21341 msgstr ""
21342
21343 # type: verbatim
21344 #: ../fish/guestfish-actions.pod:3592
21345 #, no-wrap
21346 msgid ""
21347 " sfdiskM device 'lines ...'\n"
21348 "\n"
21349 msgstr ""
21350
21351 # type: textblock
21352 #: ../fish/guestfish-actions.pod:3594
21353 msgid ""
21354 "This is a simplified interface to the L</sfdisk> command, where partition "
21355 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
21356 "you don't need to specify the cyls, heads and sectors parameters which were "
21357 "rarely if ever used anyway."
21358 msgstr ""
21359
21360 # type: textblock
21361 #: ../fish/guestfish-actions.pod:3600
21362 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
21363 msgstr ""
21364
21365 # type: =head2
21366 #: ../fish/guestfish-actions.pod:3606
21367 msgid "sfdisk-N"
21368 msgstr ""
21369
21370 # type: verbatim
21371 #: ../fish/guestfish-actions.pod:3608
21372 #, no-wrap
21373 msgid ""
21374 " sfdisk-N device partnum cyls heads sectors line\n"
21375 "\n"
21376 msgstr ""
21377
21378 # type: textblock
21379 #: ../fish/guestfish-actions.pod:3613
21380 msgid ""
21381 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
21382 "cyls/heads/sectors parameters."
21383 msgstr ""
21384
21385 # type: textblock
21386 #: ../fish/guestfish-actions.pod:3616
21387 msgid "See also: L</part-add>"
21388 msgstr ""
21389
21390 # type: =head2
21391 #: ../fish/guestfish-actions.pod:3621
21392 msgid "sfdisk-disk-geometry"
21393 msgstr ""
21394
21395 # type: verbatim
21396 #: ../fish/guestfish-actions.pod:3623
21397 #, no-wrap
21398 msgid ""
21399 " sfdisk-disk-geometry device\n"
21400 "\n"
21401 msgstr ""
21402
21403 # type: textblock
21404 #: ../fish/guestfish-actions.pod:3625
21405 msgid ""
21406 "This displays the disk geometry of C<device> read from the partition table.  "
21407 "Especially in the case where the underlying block device has been resized, "
21408 "this can be different from the kernel's idea of the geometry (see "
21409 "L</sfdisk-kernel-geometry>)."
21410 msgstr ""
21411
21412 # type: =head2
21413 #: ../fish/guestfish-actions.pod:3633
21414 msgid "sfdisk-kernel-geometry"
21415 msgstr ""
21416
21417 # type: verbatim
21418 #: ../fish/guestfish-actions.pod:3635
21419 #, no-wrap
21420 msgid ""
21421 " sfdisk-kernel-geometry device\n"
21422 "\n"
21423 msgstr ""
21424
21425 # type: =head2
21426 #: ../fish/guestfish-actions.pod:3642
21427 msgid "sfdisk-l"
21428 msgstr ""
21429
21430 # type: verbatim
21431 #: ../fish/guestfish-actions.pod:3644
21432 #, no-wrap
21433 msgid ""
21434 " sfdisk-l device\n"
21435 "\n"
21436 msgstr ""
21437
21438 # type: textblock
21439 #: ../fish/guestfish-actions.pod:3650
21440 msgid "See also: L</part-list>"
21441 msgstr ""
21442
21443 # type: =head2
21444 #: ../fish/guestfish-actions.pod:3652
21445 msgid "sh"
21446 msgstr ""
21447
21448 # type: verbatim
21449 #: ../fish/guestfish-actions.pod:3654
21450 #, no-wrap
21451 msgid ""
21452 " sh command\n"
21453 "\n"
21454 msgstr ""
21455
21456 # type: textblock
21457 #: ../fish/guestfish-actions.pod:3659
21458 msgid "This is like L</command>, but passes the command to:"
21459 msgstr ""
21460
21461 # type: textblock
21462 #: ../fish/guestfish-actions.pod:3667
21463 msgid "All the provisos about L</command> apply to this call."
21464 msgstr ""
21465
21466 # type: =head2
21467 #: ../fish/guestfish-actions.pod:3669
21468 msgid "sh-lines"
21469 msgstr ""
21470
21471 # type: verbatim
21472 #: ../fish/guestfish-actions.pod:3671
21473 #, no-wrap
21474 msgid ""
21475 " sh-lines command\n"
21476 "\n"
21477 msgstr ""
21478
21479 # type: textblock
21480 #: ../fish/guestfish-actions.pod:3673
21481 msgid "This is the same as L</sh>, but splits the result into a list of lines."
21482 msgstr ""
21483
21484 # type: textblock
21485 #: ../fish/guestfish-actions.pod:3676
21486 msgid "See also: L</command-lines>"
21487 msgstr ""
21488
21489 # type: =head2
21490 #: ../fish/guestfish-actions.pod:3678
21491 msgid "sleep"
21492 msgstr ""
21493
21494 # type: verbatim
21495 #: ../fish/guestfish-actions.pod:3680
21496 #, no-wrap
21497 msgid ""
21498 " sleep secs\n"
21499 "\n"
21500 msgstr ""
21501
21502 # type: =head2
21503 #: ../fish/guestfish-actions.pod:3684
21504 msgid "stat"
21505 msgstr ""
21506
21507 # type: verbatim
21508 #: ../fish/guestfish-actions.pod:3686
21509 #, no-wrap
21510 msgid ""
21511 " stat path\n"
21512 "\n"
21513 msgstr ""
21514
21515 # type: =head2
21516 #: ../fish/guestfish-actions.pod:3692
21517 msgid "statvfs"
21518 msgstr ""
21519
21520 # type: verbatim
21521 #: ../fish/guestfish-actions.pod:3694
21522 #, no-wrap
21523 msgid ""
21524 " statvfs path\n"
21525 "\n"
21526 msgstr ""
21527
21528 # type: =head2
21529 #: ../fish/guestfish-actions.pod:3702
21530 msgid "strings"
21531 msgstr ""
21532
21533 # type: verbatim
21534 #: ../fish/guestfish-actions.pod:3704
21535 #, no-wrap
21536 msgid ""
21537 " strings path\n"
21538 "\n"
21539 msgstr ""
21540
21541 # type: =head2
21542 #: ../fish/guestfish-actions.pod:3712
21543 msgid "strings-e"
21544 msgstr ""
21545
21546 # type: verbatim
21547 #: ../fish/guestfish-actions.pod:3714
21548 #, no-wrap
21549 msgid ""
21550 " strings-e encoding path\n"
21551 "\n"
21552 msgstr ""
21553
21554 # type: textblock
21555 #: ../fish/guestfish-actions.pod:3716
21556 msgid ""
21557 "This is like the L</strings> command, but allows you to specify the encoding "
21558 "of strings that are looked for in the source file C<path>."
21559 msgstr ""
21560
21561 # type: textblock
21562 #: ../fish/guestfish-actions.pod:3726
21563 msgid ""
21564 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
21565 "ISO-8859-X (this is what L</strings> uses)."
21566 msgstr ""
21567
21568 # type: =head2
21569 #: ../fish/guestfish-actions.pod:3758
21570 msgid "swapoff-device"
21571 msgstr ""
21572
21573 # type: verbatim
21574 #: ../fish/guestfish-actions.pod:3760
21575 #, no-wrap
21576 msgid ""
21577 " swapoff-device device\n"
21578 "\n"
21579 msgstr ""
21580
21581 # type: textblock
21582 #: ../fish/guestfish-actions.pod:3762
21583 msgid ""
21584 "This command disables the libguestfs appliance swap device or partition "
21585 "named C<device>.  See L</swapon-device>."
21586 msgstr ""
21587
21588 # type: =head2
21589 #: ../fish/guestfish-actions.pod:3766
21590 msgid "swapoff-file"
21591 msgstr ""
21592
21593 # type: verbatim
21594 #: ../fish/guestfish-actions.pod:3768
21595 #, no-wrap
21596 msgid ""
21597 " swapoff-file file\n"
21598 "\n"
21599 msgstr ""
21600
21601 # type: =head2
21602 #: ../fish/guestfish-actions.pod:3772
21603 msgid "swapoff-label"
21604 msgstr ""
21605
21606 # type: verbatim
21607 #: ../fish/guestfish-actions.pod:3774
21608 #, no-wrap
21609 msgid ""
21610 " swapoff-label label\n"
21611 "\n"
21612 msgstr ""
21613
21614 # type: =head2
21615 #: ../fish/guestfish-actions.pod:3779
21616 msgid "swapoff-uuid"
21617 msgstr ""
21618
21619 # type: verbatim
21620 #: ../fish/guestfish-actions.pod:3781
21621 #, no-wrap
21622 msgid ""
21623 " swapoff-uuid uuid\n"
21624 "\n"
21625 msgstr ""
21626
21627 # type: =head2
21628 #: ../fish/guestfish-actions.pod:3786
21629 msgid "swapon-device"
21630 msgstr ""
21631
21632 # type: verbatim
21633 #: ../fish/guestfish-actions.pod:3788
21634 #, no-wrap
21635 msgid ""
21636 " swapon-device device\n"
21637 "\n"
21638 msgstr ""
21639
21640 # type: textblock
21641 #: ../fish/guestfish-actions.pod:3790
21642 msgid ""
21643 "This command enables the libguestfs appliance to use the swap device or "
21644 "partition named C<device>.  The increased memory is made available for all "
21645 "commands, for example those run using L</command> or L</sh>."
21646 msgstr ""
21647
21648 # type: =head2
21649 #: ../fish/guestfish-actions.pod:3802
21650 msgid "swapon-file"
21651 msgstr ""
21652
21653 # type: verbatim
21654 #: ../fish/guestfish-actions.pod:3804
21655 #, no-wrap
21656 msgid ""
21657 " swapon-file file\n"
21658 "\n"
21659 msgstr ""
21660
21661 # type: textblock
21662 #: ../fish/guestfish-actions.pod:3806
21663 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
21664 msgstr ""
21665
21666 # type: =head2
21667 #: ../fish/guestfish-actions.pod:3809
21668 msgid "swapon-label"
21669 msgstr ""
21670
21671 # type: verbatim
21672 #: ../fish/guestfish-actions.pod:3811
21673 #, no-wrap
21674 msgid ""
21675 " swapon-label label\n"
21676 "\n"
21677 msgstr ""
21678
21679 # type: textblock
21680 #: ../fish/guestfish-actions.pod:3813
21681 msgid ""
21682 "This command enables swap to a labeled swap partition.  See "
21683 "L</swapon-device> for other notes."
21684 msgstr ""
21685
21686 # type: =head2
21687 #: ../fish/guestfish-actions.pod:3816
21688 msgid "swapon-uuid"
21689 msgstr ""
21690
21691 # type: verbatim
21692 #: ../fish/guestfish-actions.pod:3818
21693 #, no-wrap
21694 msgid ""
21695 " swapon-uuid uuid\n"
21696 "\n"
21697 msgstr ""
21698
21699 # type: textblock
21700 #: ../fish/guestfish-actions.pod:3820
21701 msgid ""
21702 "This command enables swap to a swap partition with the given UUID.  See "
21703 "L</swapon-device> for other notes."
21704 msgstr ""
21705
21706 # type: =head2
21707 #: ../fish/guestfish-actions.pod:3823
21708 msgid "sync"
21709 msgstr ""
21710
21711 # type: verbatim
21712 #: ../fish/guestfish-actions.pod:3825
21713 #, no-wrap
21714 msgid ""
21715 " sync\n"
21716 "\n"
21717 msgstr ""
21718
21719 # type: =head2
21720 #: ../fish/guestfish-actions.pod:3833
21721 msgid "tail"
21722 msgstr ""
21723
21724 # type: verbatim
21725 #: ../fish/guestfish-actions.pod:3835
21726 #, no-wrap
21727 msgid ""
21728 " tail path\n"
21729 "\n"
21730 msgstr ""
21731
21732 # type: =head2
21733 #: ../fish/guestfish-actions.pod:3843
21734 msgid "tail-n"
21735 msgstr ""
21736
21737 # type: verbatim
21738 #: ../fish/guestfish-actions.pod:3845
21739 #, no-wrap
21740 msgid ""
21741 " tail-n nrlines path\n"
21742 "\n"
21743 msgstr ""
21744
21745 # type: =head2
21746 #: ../fish/guestfish-actions.pod:3858
21747 msgid "tar-in"
21748 msgstr ""
21749
21750 # type: verbatim
21751 #: ../fish/guestfish-actions.pod:3860
21752 #, no-wrap
21753 msgid ""
21754 " tar-in (tarfile|-) directory\n"
21755 "\n"
21756 msgstr ""
21757
21758 # type: textblock
21759 #: ../fish/guestfish-actions.pod:3865
21760 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
21761 msgstr ""
21762
21763 # type: =head2
21764 #: ../fish/guestfish-actions.pod:3870
21765 msgid "tar-out"
21766 msgstr ""
21767
21768 # type: verbatim
21769 #: ../fish/guestfish-actions.pod:3872
21770 #, no-wrap
21771 msgid ""
21772 " tar-out directory (tarfile|-)\n"
21773 "\n"
21774 msgstr ""
21775
21776 # type: textblock
21777 #: ../fish/guestfish-actions.pod:3877
21778 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
21779 msgstr ""
21780
21781 # type: =head2
21782 #: ../fish/guestfish-actions.pod:3882
21783 msgid "tgz-in"
21784 msgstr ""
21785
21786 # type: verbatim
21787 #: ../fish/guestfish-actions.pod:3884
21788 #, no-wrap
21789 msgid ""
21790 " tgz-in (tarball|-) directory\n"
21791 "\n"
21792 msgstr ""
21793
21794 # type: textblock
21795 #: ../fish/guestfish-actions.pod:3889
21796 msgid "To upload an uncompressed tarball, use L</tar-in>."
21797 msgstr ""
21798
21799 # type: =head2
21800 #: ../fish/guestfish-actions.pod:3893
21801 msgid "tgz-out"
21802 msgstr ""
21803
21804 # type: verbatim
21805 #: ../fish/guestfish-actions.pod:3895
21806 #, no-wrap
21807 msgid ""
21808 " tgz-out directory (tarball|-)\n"
21809 "\n"
21810 msgstr ""
21811
21812 # type: textblock
21813 #: ../fish/guestfish-actions.pod:3900
21814 msgid "To download an uncompressed tarball, use L</tar-out>."
21815 msgstr ""
21816
21817 # type: =head2
21818 #: ../fish/guestfish-actions.pod:3904
21819 msgid "touch"
21820 msgstr ""
21821
21822 # type: verbatim
21823 #: ../fish/guestfish-actions.pod:3906
21824 #, no-wrap
21825 msgid ""
21826 " touch path\n"
21827 "\n"
21828 msgstr ""
21829
21830 # type: =head2
21831 #: ../fish/guestfish-actions.pod:3915
21832 msgid "truncate"
21833 msgstr ""
21834
21835 # type: verbatim
21836 #: ../fish/guestfish-actions.pod:3917
21837 #, no-wrap
21838 msgid ""
21839 " truncate path\n"
21840 "\n"
21841 msgstr ""
21842
21843 # type: =head2
21844 #: ../fish/guestfish-actions.pod:3922
21845 msgid "truncate-size"
21846 msgstr ""
21847
21848 # type: verbatim
21849 #: ../fish/guestfish-actions.pod:3924
21850 #, no-wrap
21851 msgid ""
21852 " truncate-size path size\n"
21853 "\n"
21854 msgstr ""
21855
21856 # type: textblock
21857 #: ../fish/guestfish-actions.pod:3929
21858 msgid ""
21859 "If the current file size is less than C<size> then the file is extended to "
21860 "the required size with zero bytes.  This creates a sparse file (ie. disk "
21861 "blocks are not allocated for the file until you write to it).  To create a "
21862 "non-sparse file of zeroes, use L</fallocate64> instead."
21863 msgstr ""
21864
21865 # type: =head2
21866 #: ../fish/guestfish-actions.pod:3935
21867 msgid "tune2fs-l"
21868 msgstr ""
21869
21870 # type: verbatim
21871 #: ../fish/guestfish-actions.pod:3937
21872 #, no-wrap
21873 msgid ""
21874 " tune2fs-l device\n"
21875 "\n"
21876 msgstr ""
21877
21878 # type: =head2
21879 #: ../fish/guestfish-actions.pod:3947
21880 msgid "txz-in"
21881 msgstr ""
21882
21883 # type: verbatim
21884 #: ../fish/guestfish-actions.pod:3949
21885 #, no-wrap
21886 msgid ""
21887 " txz-in (tarball|-) directory\n"
21888 "\n"
21889 msgstr ""
21890
21891 # type: =head2
21892 #: ../fish/guestfish-actions.pod:3956
21893 msgid "txz-out"
21894 msgstr ""
21895
21896 # type: verbatim
21897 #: ../fish/guestfish-actions.pod:3958
21898 #, no-wrap
21899 msgid ""
21900 " txz-out directory (tarball|-)\n"
21901 "\n"
21902 msgstr ""
21903
21904 # type: =head2
21905 #: ../fish/guestfish-actions.pod:3965
21906 msgid "umask"
21907 msgstr ""
21908
21909 # type: verbatim
21910 #: ../fish/guestfish-actions.pod:3967
21911 #, no-wrap
21912 msgid ""
21913 " umask mask\n"
21914 "\n"
21915 msgstr ""
21916
21917 # type: textblock
21918 #: ../fish/guestfish-actions.pod:3981
21919 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
21920 msgstr ""
21921
21922 # type: =head2
21923 #: ../fish/guestfish-actions.pod:3986
21924 msgid "umount"
21925 msgstr ""
21926
21927 # type: =head2
21928 #: ../fish/guestfish-actions.pod:3988
21929 msgid "unmount"
21930 msgstr ""
21931
21932 # type: verbatim
21933 #: ../fish/guestfish-actions.pod:3990
21934 #, no-wrap
21935 msgid ""
21936 " umount pathordevice\n"
21937 "\n"
21938 msgstr ""
21939
21940 # type: =head2
21941 #: ../fish/guestfish-actions.pod:3996
21942 msgid "umount-all"
21943 msgstr ""
21944
21945 # type: =head2
21946 #: ../fish/guestfish-actions.pod:3998
21947 msgid "unmount-all"
21948 msgstr ""
21949
21950 # type: verbatim
21951 #: ../fish/guestfish-actions.pod:4000
21952 #, no-wrap
21953 msgid ""
21954 " umount-all\n"
21955 "\n"
21956 msgstr ""
21957
21958 # type: =head2
21959 #: ../fish/guestfish-actions.pod:4006
21960 msgid "upload"
21961 msgstr ""
21962
21963 # type: verbatim
21964 #: ../fish/guestfish-actions.pod:4008
21965 #, no-wrap
21966 msgid ""
21967 " upload (filename|-) remotefilename\n"
21968 "\n"
21969 msgstr ""
21970
21971 # type: textblock
21972 #: ../fish/guestfish-actions.pod:4015
21973 msgid "See also L</download>."
21974 msgstr ""
21975
21976 # type: =head2
21977 #: ../fish/guestfish-actions.pod:4019
21978 msgid "upload-offset"
21979 msgstr ""
21980
21981 # type: verbatim
21982 #: ../fish/guestfish-actions.pod:4021
21983 #, no-wrap
21984 msgid ""
21985 " upload-offset (filename|-) remotefilename offset\n"
21986 "\n"
21987 msgstr ""
21988
21989 # type: textblock
21990 #: ../fish/guestfish-actions.pod:4033
21991 msgid ""
21992 "Note that there is no limit on the amount of data that can be uploaded with "
21993 "this call, unlike with L</pwrite>, and this call always writes the full "
21994 "amount unless an error occurs."
21995 msgstr ""
21996
21997 # type: textblock
21998 #: ../fish/guestfish-actions.pod:4038
21999 msgid "See also L</upload>, L</pwrite>."
22000 msgstr ""
22001
22002 # type: =head2
22003 #: ../fish/guestfish-actions.pod:4042
22004 msgid "utimens"
22005 msgstr ""
22006
22007 # type: verbatim
22008 #: ../fish/guestfish-actions.pod:4044
22009 #, no-wrap
22010 msgid ""
22011 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22012 "\n"
22013 msgstr ""
22014
22015 # type: =head2
22016 #: ../fish/guestfish-actions.pod:4063
22017 msgid "version"
22018 msgstr ""
22019
22020 # type: verbatim
22021 #: ../fish/guestfish-actions.pod:4065
22022 #, no-wrap
22023 msgid ""
22024 " version\n"
22025 "\n"
22026 msgstr ""
22027
22028 # type: textblock
22029 #: ../fish/guestfish-actions.pod:4092
22030 msgid ""
22031 "I<Note:> Don't use this call to test for availability of features.  In "
22032 "enterprise distributions we backport features from later versions into "
22033 "earlier versions, making this an unreliable way to test for features.  Use "
22034 "L</available> instead."
22035 msgstr ""
22036
22037 # type: =head2
22038 #: ../fish/guestfish-actions.pod:4098
22039 msgid "vfs-label"
22040 msgstr ""
22041
22042 # type: verbatim
22043 #: ../fish/guestfish-actions.pod:4100
22044 #, no-wrap
22045 msgid ""
22046 " vfs-label device\n"
22047 "\n"
22048 msgstr ""
22049
22050 # type: textblock
22051 #: ../fish/guestfish-actions.pod:4107
22052 msgid "To find a filesystem from the label, use L</findfs-label>."
22053 msgstr ""
22054
22055 # type: =head2
22056 #: ../fish/guestfish-actions.pod:4109
22057 msgid "vfs-type"
22058 msgstr ""
22059
22060 # type: verbatim
22061 #: ../fish/guestfish-actions.pod:4111
22062 #, no-wrap
22063 msgid ""
22064 " vfs-type device\n"
22065 "\n"
22066 msgstr ""
22067
22068 # type: =head2
22069 #: ../fish/guestfish-actions.pod:4121
22070 msgid "vfs-uuid"
22071 msgstr ""
22072
22073 # type: verbatim
22074 #: ../fish/guestfish-actions.pod:4123
22075 #, no-wrap
22076 msgid ""
22077 " vfs-uuid device\n"
22078 "\n"
22079 msgstr ""
22080
22081 # type: textblock
22082 #: ../fish/guestfish-actions.pod:4130
22083 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22084 msgstr ""
22085
22086 # type: =head2
22087 #: ../fish/guestfish-actions.pod:4132
22088 msgid "vg-activate"
22089 msgstr ""
22090
22091 # type: verbatim
22092 #: ../fish/guestfish-actions.pod:4134
22093 #, no-wrap
22094 msgid ""
22095 " vg-activate true|false 'volgroups ...'\n"
22096 "\n"
22097 msgstr ""
22098
22099 # type: =head2
22100 #: ../fish/guestfish-actions.pod:4147
22101 msgid "vg-activate-all"
22102 msgstr ""
22103
22104 # type: verbatim
22105 #: ../fish/guestfish-actions.pod:4149
22106 #, no-wrap
22107 msgid ""
22108 " vg-activate-all true|false\n"
22109 "\n"
22110 msgstr ""
22111
22112 # type: =head2
22113 #: ../fish/guestfish-actions.pod:4159
22114 msgid "vgcreate"
22115 msgstr ""
22116
22117 # type: verbatim
22118 #: ../fish/guestfish-actions.pod:4161
22119 #, no-wrap
22120 msgid ""
22121 " vgcreate volgroup 'physvols ...'\n"
22122 "\n"
22123 msgstr ""
22124
22125 # type: =head2
22126 #: ../fish/guestfish-actions.pod:4166
22127 msgid "vglvuuids"
22128 msgstr ""
22129
22130 # type: verbatim
22131 #: ../fish/guestfish-actions.pod:4168
22132 #, no-wrap
22133 msgid ""
22134 " vglvuuids vgname\n"
22135 "\n"
22136 msgstr ""
22137
22138 # type: textblock
22139 #: ../fish/guestfish-actions.pod:4173
22140 msgid ""
22141 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22142 "logical volumes and volume groups."
22143 msgstr ""
22144
22145 # type: textblock
22146 #: ../fish/guestfish-actions.pod:4176
22147 msgid "See also L</vgpvuuids>."
22148 msgstr ""
22149
22150 # type: =head2
22151 #: ../fish/guestfish-actions.pod:4178
22152 msgid "vgpvuuids"
22153 msgstr ""
22154
22155 # type: verbatim
22156 #: ../fish/guestfish-actions.pod:4180
22157 #, no-wrap
22158 msgid ""
22159 " vgpvuuids vgname\n"
22160 "\n"
22161 msgstr ""
22162
22163 # type: textblock
22164 #: ../fish/guestfish-actions.pod:4185
22165 msgid ""
22166 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22167 "physical volumes and volume groups."
22168 msgstr ""
22169
22170 # type: textblock
22171 #: ../fish/guestfish-actions.pod:4188
22172 msgid "See also L</vglvuuids>."
22173 msgstr ""
22174
22175 # type: =head2
22176 #: ../fish/guestfish-actions.pod:4190
22177 msgid "vgremove"
22178 msgstr ""
22179
22180 # type: verbatim
22181 #: ../fish/guestfish-actions.pod:4192
22182 #, no-wrap
22183 msgid ""
22184 " vgremove vgname\n"
22185 "\n"
22186 msgstr ""
22187
22188 # type: =head2
22189 #: ../fish/guestfish-actions.pod:4199
22190 msgid "vgrename"
22191 msgstr ""
22192
22193 # type: verbatim
22194 #: ../fish/guestfish-actions.pod:4201
22195 #, no-wrap
22196 msgid ""
22197 " vgrename volgroup newvolgroup\n"
22198 "\n"
22199 msgstr ""
22200
22201 # type: =head2
22202 #: ../fish/guestfish-actions.pod:4205
22203 msgid "vgs"
22204 msgstr ""
22205
22206 # type: verbatim
22207 #: ../fish/guestfish-actions.pod:4207
22208 #, no-wrap
22209 msgid ""
22210 " vgs\n"
22211 "\n"
22212 msgstr ""
22213
22214 # type: textblock
22215 #: ../fish/guestfish-actions.pod:4215
22216 msgid "See also L</vgs-full>."
22217 msgstr ""
22218
22219 # type: =head2
22220 #: ../fish/guestfish-actions.pod:4217
22221 msgid "vgs-full"
22222 msgstr ""
22223
22224 # type: verbatim
22225 #: ../fish/guestfish-actions.pod:4219
22226 #, no-wrap
22227 msgid ""
22228 " vgs-full\n"
22229 "\n"
22230 msgstr ""
22231
22232 # type: =head2
22233 #: ../fish/guestfish-actions.pod:4224
22234 msgid "vgscan"
22235 msgstr ""
22236
22237 # type: verbatim
22238 #: ../fish/guestfish-actions.pod:4226
22239 #, no-wrap
22240 msgid ""
22241 " vgscan\n"
22242 "\n"
22243 msgstr ""
22244
22245 # type: =head2
22246 #: ../fish/guestfish-actions.pod:4231
22247 msgid "vguuid"
22248 msgstr ""
22249
22250 # type: verbatim
22251 #: ../fish/guestfish-actions.pod:4233
22252 #, no-wrap
22253 msgid ""
22254 " vguuid vgname\n"
22255 "\n"
22256 msgstr ""
22257
22258 # type: =head2
22259 #: ../fish/guestfish-actions.pod:4237
22260 msgid "wc-c"
22261 msgstr ""
22262
22263 # type: verbatim
22264 #: ../fish/guestfish-actions.pod:4239
22265 #, no-wrap
22266 msgid ""
22267 " wc-c path\n"
22268 "\n"
22269 msgstr ""
22270
22271 # type: =head2
22272 #: ../fish/guestfish-actions.pod:4244
22273 msgid "wc-l"
22274 msgstr ""
22275
22276 # type: verbatim
22277 #: ../fish/guestfish-actions.pod:4246
22278 #, no-wrap
22279 msgid ""
22280 " wc-l path\n"
22281 "\n"
22282 msgstr ""
22283
22284 # type: =head2
22285 #: ../fish/guestfish-actions.pod:4251
22286 msgid "wc-w"
22287 msgstr ""
22288
22289 # type: verbatim
22290 #: ../fish/guestfish-actions.pod:4253
22291 #, no-wrap
22292 msgid ""
22293 " wc-w path\n"
22294 "\n"
22295 msgstr ""
22296
22297 # type: =head2
22298 #: ../fish/guestfish-actions.pod:4258
22299 msgid "write"
22300 msgstr ""
22301
22302 # type: verbatim
22303 #: ../fish/guestfish-actions.pod:4260
22304 #, no-wrap
22305 msgid ""
22306 " write path content\n"
22307 "\n"
22308 msgstr ""
22309
22310 # type: =head2
22311 #: ../fish/guestfish-actions.pod:4268
22312 msgid "write-file"
22313 msgstr ""
22314
22315 # type: verbatim
22316 #: ../fish/guestfish-actions.pod:4270
22317 #, no-wrap
22318 msgid ""
22319 " write-file path content size\n"
22320 "\n"
22321 msgstr ""
22322
22323 # type: =head2
22324 #: ../fish/guestfish-actions.pod:4293
22325 msgid "zegrep"
22326 msgstr ""
22327
22328 # type: verbatim
22329 #: ../fish/guestfish-actions.pod:4295
22330 #, no-wrap
22331 msgid ""
22332 " zegrep regex path\n"
22333 "\n"
22334 msgstr ""
22335
22336 # type: =head2
22337 #: ../fish/guestfish-actions.pod:4303
22338 msgid "zegrepi"
22339 msgstr ""
22340
22341 # type: verbatim
22342 #: ../fish/guestfish-actions.pod:4305
22343 #, no-wrap
22344 msgid ""
22345 " zegrepi regex path\n"
22346 "\n"
22347 msgstr ""
22348
22349 # type: =head2
22350 #: ../fish/guestfish-actions.pod:4313
22351 msgid "zero"
22352 msgstr ""
22353
22354 # type: verbatim
22355 #: ../fish/guestfish-actions.pod:4315
22356 #, no-wrap
22357 msgid ""
22358 " zero device\n"
22359 "\n"
22360 msgstr ""
22361
22362 # type: textblock
22363 #: ../fish/guestfish-actions.pod:4323
22364 msgid "See also: L</zero-device>, L</scrub-device>."
22365 msgstr ""
22366
22367 # type: =head2
22368 #: ../fish/guestfish-actions.pod:4325
22369 msgid "zero-device"
22370 msgstr ""
22371
22372 # type: verbatim
22373 #: ../fish/guestfish-actions.pod:4327
22374 #, no-wrap
22375 msgid ""
22376 " zero-device device\n"
22377 "\n"
22378 msgstr ""
22379
22380 # type: textblock
22381 #: ../fish/guestfish-actions.pod:4329
22382 msgid ""
22383 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
22384 "which just zeroes the first few blocks of a device."
22385 msgstr ""
22386
22387 # type: =head2
22388 #: ../fish/guestfish-actions.pod:4336
22389 msgid "zerofree"
22390 msgstr ""
22391
22392 # type: verbatim
22393 #: ../fish/guestfish-actions.pod:4338
22394 #, no-wrap
22395 msgid ""
22396 " zerofree device\n"
22397 "\n"
22398 msgstr ""
22399
22400 # type: =head2
22401 #: ../fish/guestfish-actions.pod:4351
22402 msgid "zfgrep"
22403 msgstr ""
22404
22405 # type: verbatim
22406 #: ../fish/guestfish-actions.pod:4353
22407 #, no-wrap
22408 msgid ""
22409 " zfgrep pattern path\n"
22410 "\n"
22411 msgstr ""
22412
22413 # type: =head2
22414 #: ../fish/guestfish-actions.pod:4361
22415 msgid "zfgrepi"
22416 msgstr ""
22417
22418 # type: verbatim
22419 #: ../fish/guestfish-actions.pod:4363
22420 #, no-wrap
22421 msgid ""
22422 " zfgrepi pattern path\n"
22423 "\n"
22424 msgstr ""
22425
22426 # type: =head2
22427 #: ../fish/guestfish-actions.pod:4371
22428 msgid "zfile"
22429 msgstr ""
22430
22431 # type: verbatim
22432 #: ../fish/guestfish-actions.pod:4373
22433 #, no-wrap
22434 msgid ""
22435 " zfile meth path\n"
22436 "\n"
22437 msgstr ""
22438
22439 # type: textblock
22440 #: ../fish/guestfish-actions.pod:4380
22441 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
22442 msgstr ""
22443
22444 # type: =head2
22445 #: ../fish/guestfish-actions.pod:4390
22446 msgid "zgrep"
22447 msgstr ""
22448
22449 # type: verbatim
22450 #: ../fish/guestfish-actions.pod:4392
22451 #, no-wrap
22452 msgid ""
22453 " zgrep regex path\n"
22454 "\n"
22455 msgstr ""
22456
22457 # type: =head2
22458 #: ../fish/guestfish-actions.pod:4400
22459 msgid "zgrepi"
22460 msgstr ""
22461
22462 # type: verbatim
22463 #: ../fish/guestfish-actions.pod:4402
22464 #, no-wrap
22465 msgid ""
22466 " zgrepi regex path\n"
22467 "\n"
22468 msgstr ""
22469
22470 # type: =head2
22471 #: ../fish/guestfish-commands.pod:1
22472 msgid "alloc"
22473 msgstr ""
22474
22475 # type: =head2
22476 #: ../fish/guestfish-commands.pod:3
22477 msgid "allocate"
22478 msgstr ""
22479
22480 # type: verbatim
22481 #: ../fish/guestfish-commands.pod:5
22482 #, no-wrap
22483 msgid ""
22484 " alloc filename size\n"
22485 "\n"
22486 msgstr ""
22487
22488 # type: textblock
22489 #: ../fish/guestfish-commands.pod:7
22490 msgid ""
22491 "This creates an empty (zeroed) file of the given size, and then adds so it "
22492 "can be further examined."
22493 msgstr ""
22494
22495 # type: textblock
22496 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
22497 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
22498 msgstr ""
22499
22500 # type: textblock
22501 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
22502 msgid "Size can be specified using standard suffixes, eg. C<1M>."
22503 msgstr ""
22504
22505 # type: textblock
22506 #: ../fish/guestfish-commands.pod:14
22507 msgid ""
22508 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
22509 "image, see L</PREPARED DISK IMAGES>."
22510 msgstr ""
22511
22512 # type: =head2
22513 #: ../fish/guestfish-commands.pod:17
22514 msgid "copy-in"
22515 msgstr ""
22516
22517 # type: verbatim
22518 #: ../fish/guestfish-commands.pod:19
22519 #, no-wrap
22520 msgid ""
22521 " copy-in local [local ...] /remotedir\n"
22522 "\n"
22523 msgstr ""
22524
22525 # type: textblock
22526 #: ../fish/guestfish-commands.pod:21
22527 msgid ""
22528 "C<copy-in> copies local files or directories recursively into the disk "
22529 "image, placing them in the directory called C</remotedir> (which must "
22530 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
22531 "other commands as necessary."
22532 msgstr ""
22533
22534 # type: textblock
22535 #: ../fish/guestfish-commands.pod:26
22536 msgid ""
22537 "Multiple local files and directories can be specified, but the last "
22538 "parameter must always be a remote directory.  Wildcards cannot be used."
22539 msgstr ""
22540
22541 # type: =head2
22542 #: ../fish/guestfish-commands.pod:30
22543 msgid "copy-out"
22544 msgstr ""
22545
22546 # type: verbatim
22547 #: ../fish/guestfish-commands.pod:32
22548 #, no-wrap
22549 msgid ""
22550 " copy-out remote [remote ...] localdir\n"
22551 "\n"
22552 msgstr ""
22553
22554 # type: textblock
22555 #: ../fish/guestfish-commands.pod:34
22556 msgid ""
22557 "C<copy-out> copies remote files or directories recursively out of the disk "
22558 "image, placing them on the host disk in a local directory called C<localdir> "
22559 "(which must exist).  This guestfish meta-command turns into a sequence of "
22560 "L</download>, L</tar-out> and other commands as necessary."
22561 msgstr ""
22562
22563 # type: textblock
22564 #: ../fish/guestfish-commands.pod:40
22565 msgid ""
22566 "Multiple remote files and directories can be specified, but the last "
22567 "parameter must always be a local directory.  To download to the current "
22568 "directory, use C<.> as in:"
22569 msgstr ""
22570
22571 # type: verbatim
22572 #: ../fish/guestfish-commands.pod:44
22573 #, no-wrap
22574 msgid ""
22575 " copy-out /home .\n"
22576 "\n"
22577 msgstr ""
22578
22579 # type: textblock
22580 #: ../fish/guestfish-commands.pod:46
22581 msgid ""
22582 "Wildcards cannot be used in the ordinary command, but you can use them with "
22583 "the help of L</glob> like this:"
22584 msgstr ""
22585
22586 # type: verbatim
22587 #: ../fish/guestfish-commands.pod:49
22588 #, no-wrap
22589 msgid ""
22590 " glob copy-out /home/* .\n"
22591 "\n"
22592 msgstr ""
22593
22594 # type: =head2
22595 #: ../fish/guestfish-commands.pod:51
22596 msgid "echo"
22597 msgstr ""
22598
22599 # type: verbatim
22600 #: ../fish/guestfish-commands.pod:53
22601 #, no-wrap
22602 msgid ""
22603 " echo [params ...]\n"
22604 "\n"
22605 msgstr ""
22606
22607 # type: textblock
22608 #: ../fish/guestfish-commands.pod:55
22609 msgid "This echos the parameters to the terminal."
22610 msgstr ""
22611
22612 # type: =head2
22613 #: ../fish/guestfish-commands.pod:57
22614 msgid "edit"
22615 msgstr ""
22616
22617 # type: =head2
22618 #: ../fish/guestfish-commands.pod:59
22619 msgid "vi"
22620 msgstr ""
22621
22622 # type: =head2
22623 #: ../fish/guestfish-commands.pod:61
22624 msgid "emacs"
22625 msgstr ""
22626
22627 # type: verbatim
22628 #: ../fish/guestfish-commands.pod:63
22629 #, no-wrap
22630 msgid ""
22631 " edit filename\n"
22632 "\n"
22633 msgstr ""
22634
22635 # type: textblock
22636 #: ../fish/guestfish-commands.pod:65
22637 msgid ""
22638 "This is used to edit a file.  It downloads the file, edits it locally using "
22639 "your editor, then uploads the result."
22640 msgstr ""
22641
22642 # type: textblock
22643 #: ../fish/guestfish-commands.pod:68
22644 msgid ""
22645 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
22646 "or C<emacs> you will get those corresponding editors."
22647 msgstr ""
22648
22649 # type: =head2
22650 #: ../fish/guestfish-commands.pod:72
22651 msgid "glob"
22652 msgstr ""
22653
22654 # type: verbatim
22655 #: ../fish/guestfish-commands.pod:74
22656 #, no-wrap
22657 msgid ""
22658 " glob command args...\n"
22659 "\n"
22660 msgstr ""
22661
22662 # type: textblock
22663 #: ../fish/guestfish-commands.pod:76
22664 msgid ""
22665 "Expand wildcards in any paths in the args list, and run C<command> "
22666 "repeatedly on each matching path."
22667 msgstr ""
22668
22669 # type: textblock
22670 #: ../fish/guestfish-commands.pod:79
22671 msgid "See L</WILDCARDS AND GLOBBING>."
22672 msgstr ""
22673
22674 # type: =head2
22675 #: ../fish/guestfish-commands.pod:81
22676 msgid "hexedit"
22677 msgstr ""
22678
22679 # type: verbatim
22680 #: ../fish/guestfish-commands.pod:83
22681 #, no-wrap
22682 msgid ""
22683 " hexedit <filename|device>\n"
22684 " hexedit <filename|device> <max>\n"
22685 " hexedit <filename|device> <start> <max>\n"
22686 "\n"
22687 msgstr ""
22688
22689 # type: textblock
22690 #: ../fish/guestfish-commands.pod:87
22691 msgid ""
22692 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
22693 "device."
22694 msgstr ""
22695
22696 # type: textblock
22697 #: ../fish/guestfish-commands.pod:90
22698 msgid ""
22699 "This command works by downloading potentially the whole file or device, "
22700 "editing it locally, then uploading it.  If the file or device is large, you "
22701 "have to specify which part you wish to edit by using C<max> and/or C<start> "
22702 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
22703 "usual modifiers allowed such as C<1M> (1 megabyte)."
22704 msgstr ""
22705
22706 # type: textblock
22707 #: ../fish/guestfish-commands.pod:97
22708 msgid "For example to edit the first few sectors of a disk you might do:"
22709 msgstr ""
22710
22711 # type: verbatim
22712 #: ../fish/guestfish-commands.pod:100
22713 #, no-wrap
22714 msgid ""
22715 " hexedit /dev/sda 1M\n"
22716 "\n"
22717 msgstr ""
22718
22719 # type: textblock
22720 #: ../fish/guestfish-commands.pod:102
22721 msgid ""
22722 "which would allow you to edit anywhere within the first megabyte of the "
22723 "disk."
22724 msgstr ""
22725
22726 # type: textblock
22727 #: ../fish/guestfish-commands.pod:105
22728 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
22729 msgstr ""
22730
22731 # type: verbatim
22732 #: ../fish/guestfish-commands.pod:107
22733 #, no-wrap
22734 msgid ""
22735 " hexedit /dev/sda1 0x400 0x400\n"
22736 "\n"
22737 msgstr ""
22738
22739 # type: textblock
22740 #: ../fish/guestfish-commands.pod:109
22741 msgid "(assuming the superblock is in the standard location)."
22742 msgstr ""
22743
22744 # type: textblock
22745 #: ../fish/guestfish-commands.pod:111
22746 msgid ""
22747 "This command requires the external L<hexedit(1)> program.  You can specify "
22748 "another program to use by setting the C<HEXEDITOR> environment variable."
22749 msgstr ""
22750
22751 # type: textblock
22752 #: ../fish/guestfish-commands.pod:115
22753 msgid "See also L</hexdump>."
22754 msgstr ""
22755
22756 # type: =head2
22757 #: ../fish/guestfish-commands.pod:117
22758 msgid "lcd"
22759 msgstr ""
22760
22761 # type: verbatim
22762 #: ../fish/guestfish-commands.pod:119
22763 #, no-wrap
22764 msgid ""
22765 " lcd directory\n"
22766 "\n"
22767 msgstr ""
22768
22769 # type: textblock
22770 #: ../fish/guestfish-commands.pod:121
22771 msgid "Change the local directory, ie. the current directory of guestfish itself."
22772 msgstr ""
22773
22774 # type: textblock
22775 #: ../fish/guestfish-commands.pod:124
22776 msgid "Note that C<!cd> won't do what you might expect."
22777 msgstr ""
22778
22779 # type: =head2
22780 #: ../fish/guestfish-commands.pod:126
22781 msgid "man"
22782 msgstr ""
22783
22784 # type: =head2
22785 #: ../fish/guestfish-commands.pod:128
22786 msgid "manual"
22787 msgstr ""
22788
22789 # type: verbatim
22790 #: ../fish/guestfish-commands.pod:130
22791 #, no-wrap
22792 msgid ""
22793 "  man\n"
22794 "\n"
22795 msgstr ""
22796
22797 # type: textblock
22798 #: ../fish/guestfish-commands.pod:132
22799 msgid "Opens the manual page for guestfish."
22800 msgstr ""
22801
22802 # type: =head2
22803 #: ../fish/guestfish-commands.pod:134
22804 msgid "more"
22805 msgstr ""
22806
22807 # type: =head2
22808 #: ../fish/guestfish-commands.pod:136
22809 msgid "less"
22810 msgstr ""
22811
22812 # type: verbatim
22813 #: ../fish/guestfish-commands.pod:138
22814 #, no-wrap
22815 msgid ""
22816 " more filename\n"
22817 "\n"
22818 msgstr ""
22819
22820 # type: verbatim
22821 #: ../fish/guestfish-commands.pod:140
22822 #, no-wrap
22823 msgid ""
22824 " less filename\n"
22825 "\n"
22826 msgstr ""
22827
22828 # type: textblock
22829 #: ../fish/guestfish-commands.pod:142
22830 msgid "This is used to view a file."
22831 msgstr ""
22832
22833 # type: textblock
22834 #: ../fish/guestfish-commands.pod:144
22835 msgid ""
22836 "The default viewer is C<$PAGER>.  However if you use the alternate command "
22837 "C<less> you will get the C<less> command specifically."
22838 msgstr ""
22839
22840 # type: =head2
22841 #: ../fish/guestfish-commands.pod:147
22842 msgid "reopen"
22843 msgstr ""
22844
22845 # type: verbatim
22846 #: ../fish/guestfish-commands.pod:149
22847 #, no-wrap
22848 msgid ""
22849 "  reopen\n"
22850 "\n"
22851 msgstr ""
22852
22853 # type: textblock
22854 #: ../fish/guestfish-commands.pod:151
22855 msgid ""
22856 "Close and reopen the libguestfs handle.  It is not necessary to use this "
22857 "normally, because the handle is closed properly when guestfish exits.  "
22858 "However this is occasionally useful for testing."
22859 msgstr ""
22860
22861 # type: =head2
22862 #: ../fish/guestfish-commands.pod:155
22863 msgid "sparse"
22864 msgstr ""
22865
22866 # type: verbatim
22867 #: ../fish/guestfish-commands.pod:157
22868 #, no-wrap
22869 msgid ""
22870 " sparse filename size\n"
22871 "\n"
22872 msgstr ""
22873
22874 # type: textblock
22875 #: ../fish/guestfish-commands.pod:159
22876 msgid ""
22877 "This creates an empty sparse file of the given size, and then adds so it can "
22878 "be further examined."
22879 msgstr ""
22880
22881 # type: textblock
22882 #: ../fish/guestfish-commands.pod:162
22883 msgid ""
22884 "In all respects it works the same as the L</alloc> command, except that the "
22885 "image file is allocated sparsely, which means that disk blocks are not "
22886 "assigned to the file until they are needed.  Sparse disk files only use "
22887 "space when written to, but they are slower and there is a danger you could "
22888 "run out of real disk space during a write operation."
22889 msgstr ""
22890
22891 # type: =head2
22892 #: ../fish/guestfish-commands.pod:172
22893 msgid "supported"
22894 msgstr ""
22895
22896 # type: verbatim
22897 #: ../fish/guestfish-commands.pod:174
22898 #, no-wrap
22899 msgid ""
22900 " supported\n"
22901 "\n"
22902 msgstr ""
22903
22904 # type: textblock
22905 #: ../fish/guestfish-commands.pod:176
22906 msgid ""
22907 "This command returns a list of the optional groups known to the daemon, and "
22908 "indicates which ones are supported by this build of the libguestfs "
22909 "appliance."
22910 msgstr ""
22911
22912 # type: textblock
22913 #: ../fish/guestfish-commands.pod:180
22914 msgid "See also L<guestfs(3)/AVAILABILITY>."
22915 msgstr ""
22916
22917 # type: =head2
22918 #: ../fish/guestfish-commands.pod:182
22919 msgid "time"
22920 msgstr ""
22921
22922 # type: verbatim
22923 #: ../fish/guestfish-commands.pod:184
22924 #, no-wrap
22925 msgid ""
22926 " time command args...\n"
22927 "\n"
22928 msgstr ""
22929
22930 # type: textblock
22931 #: ../fish/guestfish-commands.pod:186
22932 msgid ""
22933 "Run the command as usual, but print the elapsed time afterwards.  This can "
22934 "be useful for benchmarking operations."
22935 msgstr ""
22936
22937 # type: textblock
22938 #: ../test-tool/libguestfs-test-tool.pod:5
22939 msgid "libguestfs-test-tool - End user tests for libguestfs"
22940 msgstr ""
22941
22942 # type: verbatim
22943 #: ../test-tool/libguestfs-test-tool.pod:9
22944 #, no-wrap
22945 msgid ""
22946 " libguestfs-test-tool [--options]\n"
22947 "\n"
22948 msgstr ""
22949
22950 # type: textblock
22951 #: ../test-tool/libguestfs-test-tool.pod:13
22952 msgid ""
22953 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
22954 "and developers, to allow them to check basic libguestfs functionality is "
22955 "working.  This is needed because libguestfs occasionally breaks for reasons "
22956 "beyond our control: usually because of changes in the underlying qemu or "
22957 "kernel packages, or the host environment."
22958 msgstr ""
22959
22960 # type: textblock
22961 #: ../test-tool/libguestfs-test-tool.pod:20
22962 msgid "If you suspect a problem in libguestfs, then just run:"
22963 msgstr ""
22964
22965 # type: verbatim
22966 #: ../test-tool/libguestfs-test-tool.pod:22
22967 #, no-wrap
22968 msgid ""
22969 " libguestfs-test-tool\n"
22970 "\n"
22971 msgstr ""
22972
22973 # type: textblock
22974 #: ../test-tool/libguestfs-test-tool.pod:24
22975 msgid "It will print lots of diagnostic messages."
22976 msgstr ""
22977
22978 # type: textblock
22979 #: ../test-tool/libguestfs-test-tool.pod:26
22980 msgid "If it runs to completion successfully, you will see this near the end:"
22981 msgstr ""
22982
22983 # type: verbatim
22984 #: ../test-tool/libguestfs-test-tool.pod:28
22985 #, no-wrap
22986 msgid ""
22987 " ===== TEST FINISHED OK =====\n"
22988 "\n"
22989 msgstr ""
22990
22991 # type: textblock
22992 #: ../test-tool/libguestfs-test-tool.pod:30
22993 msgid "and the test tool will exit with code 0."
22994 msgstr ""
22995
22996 # type: textblock
22997 #: ../test-tool/libguestfs-test-tool.pod:32
22998 msgid ""
22999 "If it fails (and/or exits with non-zero error code), please paste the "
23000 "B<complete, unedited> output of the test tool into a bug report.  More "
23001 "information about reporting bugs can be found on the "
23002 "L<http://libguestfs.org/> website."
23003 msgstr ""
23004
23005 # type: =item
23006 #: ../test-tool/libguestfs-test-tool.pod:41
23007 msgid "I<--help>"
23008 msgstr ""
23009
23010 # type: textblock
23011 #: ../test-tool/libguestfs-test-tool.pod:43
23012 msgid "Display short usage information and exit."
23013 msgstr ""
23014
23015 # type: =item
23016 #: ../test-tool/libguestfs-test-tool.pod:45
23017 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23018 msgstr ""
23019
23020 # type: textblock
23021 #: ../test-tool/libguestfs-test-tool.pod:47
23022 msgid ""
23023 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23024 "normally look in the C<$libexec> directory that was configured when the tool "
23025 "was built."
23026 msgstr ""
23027
23028 # type: =item
23029 #: ../test-tool/libguestfs-test-tool.pod:51
23030 msgid "I<--qemu qemu_binary>"
23031 msgstr ""
23032
23033 # type: textblock
23034 #: ../test-tool/libguestfs-test-tool.pod:53
23035 msgid ""
23036 "If you have downloaded another qemu binary, point this option at the full "
23037 "path of the binary to try it."
23038 msgstr ""
23039
23040 # type: =item
23041 #: ../test-tool/libguestfs-test-tool.pod:56
23042 msgid "I<--qemudir qemu_source_dir>"
23043 msgstr ""
23044
23045 # type: textblock
23046 #: ../test-tool/libguestfs-test-tool.pod:58
23047 msgid ""
23048 "If you have compiled qemu from source, point this option at the source "
23049 "directory to try it."
23050 msgstr ""
23051
23052 # type: =item
23053 #: ../test-tool/libguestfs-test-tool.pod:61
23054 msgid "I<--timeout N>"
23055 msgstr ""
23056
23057 # type: textblock
23058 #: ../test-tool/libguestfs-test-tool.pod:63
23059 msgid ""
23060 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23061 "does not usually need to be adjusted unless your machine is very slow."
23062 msgstr ""
23063
23064 # type: =head1
23065 #: ../test-tool/libguestfs-test-tool.pod:69
23066 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23067 msgstr ""
23068
23069 # type: textblock
23070 #: ../test-tool/libguestfs-test-tool.pod:71
23071 msgid ""
23072 "If you have compiled another version of qemu from source and would like to "
23073 "try that, then you can use the I<--qemudir> option to point to the qemu "
23074 "source directory."
23075 msgstr ""
23076
23077 # type: textblock
23078 #: ../test-tool/libguestfs-test-tool.pod:75
23079 msgid ""
23080 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23081 "option to point to the binary."
23082 msgstr ""
23083
23084 # type: textblock
23085 #: ../test-tool/libguestfs-test-tool.pod:78
23086 msgid ""
23087 "When using an alternate qemu with libguestfs, usually you would need to "
23088 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
23089 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
23090 "when you use either of the I<--qemudir> or I<--qemu> options."
23091 msgstr ""
23092
23093 # type: textblock
23094 #: ../test-tool/libguestfs-test-tool.pod:85
23095 msgid ""
23096 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23097 "I<1> if there was an error."
23098 msgstr ""
23099
23100 # type: =item
23101 #: ../test-tool/libguestfs-test-tool.pod:92
23102 msgid "/usr/libexec/libguestfs-test-tool-helper"
23103 msgstr ""
23104
23105 # type: textblock
23106 #: ../test-tool/libguestfs-test-tool.pod:94
23107 msgid ""
23108 "This helper program is run inside the appliance and provides additional "
23109 "tests."
23110 msgstr ""
23111
23112 # type: =item
23113 #: ../test-tool/libguestfs-test-tool.pod:97
23114 msgid "/usr/bin/mkisofs"
23115 msgstr ""
23116
23117 # type: textblock
23118 #: ../test-tool/libguestfs-test-tool.pod:99
23119 msgid ""
23120 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23121 "which is used as part of the tests."
23122 msgstr ""
23123
23124 # type: textblock
23125 #: ../test-tool/libguestfs-test-tool.pod:106
23126 msgid ""
23127 "For the full list of environment variables which may affect libguestfs, "
23128 "please see the L<guestfs(3)> manual page."
23129 msgstr ""
23130
23131 # type: textblock
23132 #: ../test-tool/libguestfs-test-tool.pod:111
23133 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23134 msgstr ""
23135
23136 # type: textblock
23137 #: ../test-tool/libguestfs-test-tool.pod:121 ../fuse/guestmount.pod:195
23138 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23139 msgstr ""
23140
23141 # type: textblock
23142 #: ../fuse/guestmount.pod:5
23143 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23144 msgstr ""
23145
23146 # type: verbatim
23147 #: ../fuse/guestmount.pod:9
23148 #, no-wrap
23149 msgid ""
23150 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23151 "\n"
23152 msgstr ""
23153
23154 # type: textblock
23155 #: ../fuse/guestmount.pod:13
23156 msgid ""
23157 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23158 "machines.  If you do this, you risk disk corruption in the VM."
23159 msgstr ""
23160
23161 # type: textblock
23162 #: ../fuse/guestmount.pod:18
23163 msgid ""
23164 "The guestmount program can be used to mount virtual machine filesystems and "
23165 "other disk images on the host.  It uses libguestfs for access to the guest "
23166 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23167 "a mountable device."
23168 msgstr ""
23169
23170 # type: textblock
23171 #: ../fuse/guestmount.pod:23
23172 msgid ""
23173 "Along with other options, you have to give at least one device (I<-a> "
23174 "option) and at least one mountpoint (I<-m> option).  How this works is "
23175 "better explained in the L<guestfish(1)> manual page, or you can use "
23176 "L<virt-inspector(1)> and/or the wrapper script C<guestmount-wrapper> to help "
23177 "you."
23178 msgstr ""
23179
23180 # type: textblock
23181 #: ../fuse/guestmount.pod:29
23182 msgid ""
23183 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23184 "by you, and the filesystem will not be visible to any other users unless you "
23185 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23186 "the filesystem, use the C<fusermount -u> command."
23187 msgstr ""
23188
23189 # type: textblock
23190 #: ../fuse/guestmount.pod:37
23191 msgid ""
23192 "For a typical Windows guest which has its main filesystem on the first "
23193 "partition:"
23194 msgstr ""
23195
23196 # type: verbatim
23197 #: ../fuse/guestmount.pod:40
23198 #, no-wrap
23199 msgid ""
23200 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23201 "\n"
23202 msgstr ""
23203
23204 # type: textblock
23205 #: ../fuse/guestmount.pod:42
23206 msgid ""
23207 "For a typical Linux guest which has a /boot filesystem on the first "
23208 "partition, and the root filesystem on a logical volume:"
23209 msgstr ""
23210
23211 # type: verbatim
23212 #: ../fuse/guestmount.pod:45
23213 #, no-wrap
23214 msgid ""
23215 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23216 "\n"
23217 msgstr ""
23218
23219 # type: textblock
23220 #: ../fuse/guestmount.pod:47
23221 msgid ""
23222 "To get L<virt-inspector(1)> to do the hard work of detecting guest "
23223 "mountpoints for you:"
23224 msgstr ""
23225
23226 # type: verbatim
23227 #: ../fuse/guestmount.pod:50
23228 #, no-wrap
23229 msgid ""
23230 " guestmount $(virt-inspector --ro-fish MyGuest) /mnt\n"
23231 "\n"
23232 msgstr ""
23233
23234 # type: textblock
23235 #: ../fuse/guestmount.pod:52
23236 msgid ""
23237 "(or use --fish if you don't want it to be a read only mount).  The option is "
23238 "called I<--ro-fish> or I<--fish> because these parameters are compatible "
23239 "with L<guestfish(1)>."
23240 msgstr ""
23241
23242 # type: textblock
23243 #: ../fuse/guestmount.pod:56
23244 msgid ""
23245 "If you don't know what filesystems are contained in a guest or disk image, "
23246 "use L<virt-list-filesystems(1)> first:"
23247 msgstr ""
23248
23249 # type: verbatim
23250 #: ../fuse/guestmount.pod:59
23251 #, no-wrap
23252 msgid ""
23253 " virt-list-filesystems MyGuest\n"
23254 "\n"
23255 msgstr ""
23256
23257 # type: textblock
23258 #: ../fuse/guestmount.pod:61
23259 msgid ""
23260 "If you want to trace the libguestfs calls but without excessive debugging, "
23261 "we recommend:"
23262 msgstr ""
23263
23264 # type: verbatim
23265 #: ../fuse/guestmount.pod:64
23266 #, no-wrap
23267 msgid ""
23268 " guestmount [-a ... -m ...] --trace /mnt\n"
23269 "\n"
23270 msgstr ""
23271
23272 # type: textblock
23273 #: ../fuse/guestmount.pod:66
23274 msgid "If you want to debug the program, we recommend:"
23275 msgstr ""
23276
23277 # type: verbatim
23278 #: ../fuse/guestmount.pod:68
23279 #, no-wrap
23280 msgid ""
23281 " guestmount [-a ... -m ...] --trace --verbose /mnt\n"
23282 "\n"
23283 msgstr ""
23284
23285 # type: textblock
23286 #: ../fuse/guestmount.pod:76
23287 msgid "Add a block device or virtual machine image."
23288 msgstr ""
23289
23290 # type: =item
23291 #: ../fuse/guestmount.pod:78
23292 msgid "B<--dir-cache-timeout N>"
23293 msgstr ""
23294
23295 # type: textblock
23296 #: ../fuse/guestmount.pod:80
23297 msgid ""
23298 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23299 "seconds.  The readdir cache [actually, there are several semi-independent "
23300 "caches] is populated after a readdir(2) call with the stat and extended "
23301 "attributes of the files in the directory, in anticipation that they will be "
23302 "requested soon after."
23303 msgstr ""
23304
23305 # type: textblock
23306 #: ../fuse/guestmount.pod:86
23307 msgid ""
23308 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23309 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23310 "requests, only cache existing ones."
23311 msgstr ""
23312
23313 # type: =item
23314 #: ../fuse/guestmount.pod:90
23315 msgid "B<--fuse-help>"
23316 msgstr ""
23317
23318 # type: textblock
23319 #: ../fuse/guestmount.pod:92
23320 msgid "Display help on special FUSE options (see I<-o> below)."
23321 msgstr ""
23322
23323 # type: textblock
23324 #: ../fuse/guestmount.pod:96
23325 msgid "Display brief help and exit."
23326 msgstr ""
23327
23328 # type: =item
23329 #: ../fuse/guestmount.pod:98
23330 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
23331 msgstr ""
23332
23333 # type: textblock
23334 #: ../fuse/guestmount.pod:100
23335 msgid ""
23336 "Mount the named partition or logical volume on the given mountpoint B<in the "
23337 "guest> (this has nothing to do with mountpoints in the host)."
23338 msgstr ""
23339
23340 # type: textblock
23341 #: ../fuse/guestmount.pod:103
23342 msgid ""
23343 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23344 "something on C</>."
23345 msgstr ""
23346
23347 # type: textblock
23348 #: ../fuse/guestmount.pod:108
23349 msgid ""
23350 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23351 "unmounted.  If you specify this option, then we don't attempt to sync the "
23352 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23353 msgstr ""
23354
23355 # type: =item
23356 #: ../fuse/guestmount.pod:113
23357 msgid "B<-o option> | B<--option option>"
23358 msgstr ""
23359
23360 # type: textblock
23361 #: ../fuse/guestmount.pod:115
23362 msgid "Pass extra options to FUSE."
23363 msgstr ""
23364
23365 # type: textblock
23366 #: ../fuse/guestmount.pod:117
23367 msgid ""
23368 "To get a list of all the extra options supported by FUSE, use the command "
23369 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
23370 "of them are a good idea."
23371 msgstr ""
23372
23373 # type: verbatim
23374 #: ../fuse/guestmount.pod:121
23375 #, no-wrap
23376 msgid ""
23377 " guestmount --fuse-help\n"
23378 "\n"
23379 msgstr ""
23380
23381 # type: textblock
23382 #: ../fuse/guestmount.pod:123
23383 msgid "Some potentially useful FUSE options:"
23384 msgstr ""
23385
23386 # type: =item
23387 #: ../fuse/guestmount.pod:127
23388 msgid "B<-o allow_other>"
23389 msgstr ""
23390
23391 # type: textblock
23392 #: ../fuse/guestmount.pod:129
23393 msgid "Allow other users to see the filesystem."
23394 msgstr ""
23395
23396 # type: =item
23397 #: ../fuse/guestmount.pod:131
23398 msgid "B<-o attr_timeout=N>"
23399 msgstr ""
23400
23401 # type: textblock
23402 #: ../fuse/guestmount.pod:133
23403 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23404 msgstr ""
23405
23406 # type: =item
23407 #: ../fuse/guestmount.pod:135
23408 msgid "B<-o kernel_cache>"
23409 msgstr ""
23410
23411 # type: textblock
23412 #: ../fuse/guestmount.pod:137
23413 msgid ""
23414 "Allow the kernel to cache files (reduces the number of reads that have to go "
23415 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
23416 "afford the extra memory usage."
23417 msgstr ""
23418
23419 # type: =item
23420 #: ../fuse/guestmount.pod:141
23421 msgid "B<-o uid=N> B<-o gid=N>"
23422 msgstr ""
23423
23424 # type: textblock
23425 #: ../fuse/guestmount.pod:143
23426 msgid ""
23427 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23428 "the chosen values."
23429 msgstr ""
23430
23431 # type: textblock
23432 #: ../fuse/guestmount.pod:150
23433 msgid ""
23434 "Add devices and mount everything read-only.  Also disallow writes and make "
23435 "the disk appear read-only to FUSE."
23436 msgstr ""
23437
23438 # type: textblock
23439 #: ../fuse/guestmount.pod:153
23440 msgid ""
23441 "This is highly recommended if you are not going to edit the guest disk.  If "
23442 "the guest is running and this option is I<not> supplied, then there is a "
23443 "strong risk of disk corruption in the guest.  We try to prevent this from "
23444 "happening, but it is not always possible."
23445 msgstr ""
23446
23447 # type: textblock
23448 #: ../fuse/guestmount.pod:160
23449 msgid "Enable SELinux support for the guest."
23450 msgstr ""
23451
23452 # type: =item
23453 #: ../fuse/guestmount.pod:162
23454 msgid "B<--trace>"
23455 msgstr ""
23456
23457 # type: textblock
23458 #: ../fuse/guestmount.pod:164
23459 msgid "Trace libguestfs calls (to stderr)."
23460 msgstr ""
23461
23462 # type: textblock
23463 #: ../fuse/guestmount.pod:166
23464 msgid "This also stops the daemon from forking into the background."
23465 msgstr ""
23466
23467 # type: textblock
23468 #: ../fuse/guestmount.pod:170
23469 msgid "Enable verbose messages from underlying libguestfs."
23470 msgstr ""
23471
23472 # type: textblock
23473 #: ../fuse/guestmount.pod:174
23474 msgid "Display the program version and exit."
23475 msgstr ""
23476
23477 # type: textblock
23478 #: ../fuse/guestmount.pod:180
23479 msgid ""
23480 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23481 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
23482 "L<http://fuse.sf.net/>."
23483 msgstr ""
23484
23485 # type: textblock
23486 #: ../inspector/virt-inspector.pl:40
23487 msgid ""
23488 "virt-inspector - Display OS version, kernel, drivers, mount points, "
23489 "applications, etc. in a virtual machine"
23490 msgstr ""
23491
23492 # type: verbatim
23493 #: ../inspector/virt-inspector.pl:44
23494 #, no-wrap
23495 msgid ""
23496 " virt-inspector [--connect URI] domname\n"
23497 "\n"
23498 msgstr ""
23499
23500 # type: verbatim
23501 #: ../inspector/virt-inspector.pl:46
23502 #, no-wrap
23503 msgid ""
23504 " virt-inspector guest.img [guest.img ...]\n"
23505 "\n"
23506 msgstr ""
23507
23508 # type: textblock
23509 #: ../inspector/virt-inspector.pl:50
23510 msgid ""
23511 "B<virt-inspector> examines a virtual machine and tries to determine the "
23512 "version of the OS, the kernel version, what drivers are installed, whether "
23513 "the virtual machine is fully virtualized (FV) or para-virtualized (PV), what "
23514 "applications are installed and more."
23515 msgstr ""
23516
23517 # type: textblock
23518 #: ../inspector/virt-inspector.pl:55
23519 msgid ""
23520 "Virt-inspector can produce output in several formats, including a readable "
23521 "text report, and XML for feeding into other programs."
23522 msgstr ""
23523
23524 # type: textblock
23525 #: ../inspector/virt-inspector.pl:58
23526 msgid ""
23527 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
23528 "libvirt domain (see: C<virsh list --all>)."
23529 msgstr ""
23530
23531 # type: textblock
23532 #: ../inspector/virt-inspector.pl:61
23533 msgid ""
23534 "You can also run virt-inspector directly on disk images from a single "
23535 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
23536 "has several block devices, in which case you should list them one after "
23537 "another, with the first corresponding to the guest's C</dev/sda>, the second "
23538 "to the guest's C</dev/sdb> and so on."
23539 msgstr ""
23540
23541 # type: textblock
23542 #: ../inspector/virt-inspector.pl:67
23543 msgid ""
23544 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23545 "inspect several virtual machines, you have to run virt-inspector several "
23546 "times (for example, from a shell script for-loop)."
23547 msgstr ""
23548
23549 # type: textblock
23550 #: ../inspector/virt-inspector.pl:72
23551 msgid ""
23552 "Because virt-inspector needs direct access to guest images, it won't "
23553 "normally work over remote libvirt connections."
23554 msgstr ""
23555
23556 # type: textblock
23557 #: ../inspector/virt-inspector.pl:85 ../tools/virt-edit.pl:83 ../tools/virt-win-reg.pl:182 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:89 ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:90 ../tools/virt-tar.pl:109 ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
23558 msgid "Display brief help."
23559 msgstr ""
23560
23561 # type: =item
23562 #: ../inspector/virt-inspector.pl:91 ../tools/virt-edit.pl:89 ../tools/virt-win-reg.pl:188 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:95 ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66 ../tools/virt-cat.pl:96 ../tools/virt-tar.pl:115 ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
23563 msgid "B<--version>"
23564 msgstr ""
23565
23566 # type: textblock
23567 #: ../inspector/virt-inspector.pl:93 ../tools/virt-edit.pl:91 ../tools/virt-win-reg.pl:190 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:97 ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68 ../tools/virt-cat.pl:98 ../tools/virt-tar.pl:117 ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
23568 msgid "Display version number and exit."
23569 msgstr ""
23570
23571 # type: =item
23572 #: ../inspector/virt-inspector.pl:99 ../tools/virt-edit.pl:113 ../tools/virt-win-reg.pl:204 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:103 ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:104 ../tools/virt-tar.pl:123 ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
23573 msgid "B<--connect URI> | B<-c URI>"
23574 msgstr ""
23575
23576 # type: textblock
23577 #: ../inspector/virt-inspector.pl:101 ../tools/virt-edit.pl:115 ../tools/virt-win-reg.pl:206 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:105 ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:106 ../tools/virt-tar.pl:125 ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
23578 msgid ""
23579 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
23580 "to the default libvirt hypervisor."
23581 msgstr ""
23582
23583 # type: textblock
23584 #: ../inspector/virt-inspector.pl:104
23585 msgid ""
23586 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23587 "you specify guest block devices directly, then libvirt is not used at all."
23588 msgstr ""
23589
23590 # type: =item
23591 #: ../inspector/virt-inspector.pl:112 ../tools/virt-edit.pl:125 ../tools/virt-win-reg.pl:216 ../tools/virt-df.pl:117 ../tools/virt-ls.pl:115 ../tools/virt-resize.pl:523 ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:116 ../tools/virt-tar.pl:135 ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
23592 msgid "B<--format> raw"
23593 msgstr ""
23594
23595 # type: textblock
23596 #: ../inspector/virt-inspector.pl:114 ../tools/virt-edit.pl:127 ../tools/virt-win-reg.pl:218 ../tools/virt-df.pl:119 ../tools/virt-ls.pl:117 ../tools/virt-list-filesystems.pl:88 ../tools/virt-cat.pl:118 ../tools/virt-tar.pl:137 ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
23597 msgid ""
23598 "Specify the format of disk images given on the command line.  If this is "
23599 "omitted then the format is autodetected from the content of the disk image."
23600 msgstr ""
23601
23602 # type: textblock
23603 #: ../inspector/virt-inspector.pl:118 ../tools/virt-edit.pl:131 ../tools/virt-win-reg.pl:222 ../tools/virt-df.pl:123 ../tools/virt-ls.pl:121 ../tools/virt-list-filesystems.pl:92 ../tools/virt-cat.pl:122 ../tools/virt-tar.pl:141 ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
23604 msgid ""
23605 "If disk images are requested from libvirt, then this program asks libvirt "
23606 "for this information.  In this case, the value of the format parameter is "
23607 "ignored."
23608 msgstr ""
23609
23610 # type: textblock
23611 #: ../inspector/virt-inspector.pl:122 ../tools/virt-edit.pl:135 ../tools/virt-win-reg.pl:226 ../tools/virt-df.pl:127 ../tools/virt-ls.pl:125 ../tools/virt-resize.pl:528 ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96 ../tools/virt-cat.pl:126 ../tools/virt-tar.pl:145 ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
23612 msgid ""
23613 "If working with untrusted raw-format guest disk images, you should ensure "
23614 "the format is always specified."
23615 msgstr ""
23616
23617 # type: textblock
23618 #: ../inspector/virt-inspector.pl:131
23619 msgid ""
23620 "The following options select the output format.  Use only one of them.  The "
23621 "default is a readable text report."
23622 msgstr ""
23623
23624 # type: =item
23625 #: ../inspector/virt-inspector.pl:136
23626 msgid "B<--text> (default)"
23627 msgstr ""
23628
23629 # type: textblock
23630 #: ../inspector/virt-inspector.pl:138
23631 msgid "Plain text report."
23632 msgstr ""
23633
23634 # type: =item
23635 #: ../inspector/virt-inspector.pl:140
23636 msgid "B<--none>"
23637 msgstr ""
23638
23639 # type: textblock
23640 #: ../inspector/virt-inspector.pl:142
23641 msgid "Produce no output at all."
23642 msgstr ""
23643
23644 # type: =item
23645 #: ../inspector/virt-inspector.pl:144
23646 msgid "B<--xml>"
23647 msgstr ""
23648
23649 # type: textblock
23650 #: ../inspector/virt-inspector.pl:146
23651 msgid ""
23652 "If you select I<--xml> then you get XML output which can be fed to other "
23653 "programs."
23654 msgstr ""
23655
23656 # type: =item
23657 #: ../inspector/virt-inspector.pl:149
23658 msgid "B<--yaml>"
23659 msgstr ""
23660
23661 # type: textblock
23662 #: ../inspector/virt-inspector.pl:151
23663 msgid ""
23664 "If you select I<--yaml> then you get YAML output which can be fed to other "
23665 "programs."
23666 msgstr ""
23667
23668 # type: =item
23669 #: ../inspector/virt-inspector.pl:154
23670 msgid "B<--perl>"
23671 msgstr ""
23672
23673 # type: textblock
23674 #: ../inspector/virt-inspector.pl:156
23675 msgid ""
23676 "If you select I<--perl> then you get Perl structures output which can be "
23677 "used directly in another Perl program."
23678 msgstr ""
23679
23680 # type: =item
23681 #: ../inspector/virt-inspector.pl:159
23682 msgid "B<--fish>"
23683 msgstr ""
23684
23685 # type: =item
23686 #: ../inspector/virt-inspector.pl:161
23687 msgid "B<--ro-fish>"
23688 msgstr ""
23689
23690 # type: textblock
23691 #: ../inspector/virt-inspector.pl:163
23692 msgid ""
23693 "If you select I<--fish> then we print a L<guestfish(1)> command line which "
23694 "will automatically mount up the filesystems on the correct mount points.  "
23695 "Try this for example:"
23696 msgstr ""
23697
23698 # type: verbatim
23699 #: ../inspector/virt-inspector.pl:167
23700 #, no-wrap
23701 msgid ""
23702 " guestfish $(virt-inspector --fish guest.img)\n"
23703 "\n"
23704 msgstr ""
23705
23706 # type: textblock
23707 #: ../inspector/virt-inspector.pl:169
23708 msgid ""
23709 "I<--ro-fish> is the same, but the I<--ro> option is passed to guestfish so "
23710 "that the filesystems are mounted read-only."
23711 msgstr ""
23712
23713 # type: =item
23714 #: ../inspector/virt-inspector.pl:172
23715 msgid "B<--query>"
23716 msgstr ""
23717
23718 # type: textblock
23719 #: ../inspector/virt-inspector.pl:174
23720 msgid ""
23721 "In \"query mode\" we answer common questions about the guest, such as "
23722 "whether it is fullvirt or needs a Xen hypervisor to run."
23723 msgstr ""
23724
23725 # type: textblock
23726 #: ../inspector/virt-inspector.pl:177
23727 msgid "See section I<QUERY MODE> below."
23728 msgstr ""
23729
23730 # type: =item
23731 #: ../inspector/virt-inspector.pl:183
23732 msgid "B<--windows-registry>"
23733 msgstr ""
23734
23735 # type: textblock
23736 #: ../inspector/virt-inspector.pl:185
23737 msgid ""
23738 "This flag is ignored for compatibility with earlier releases of the "
23739 "software."
23740 msgstr ""
23741
23742 # type: textblock
23743 #: ../inspector/virt-inspector.pl:188
23744 msgid ""
23745 "In this version, if L<Win::Hivex(3)> is available, then we attempt to parse "
23746 "information out of the Registry for any Windows guest."
23747 msgstr ""
23748
23749 # type: =head1
23750 #: ../inspector/virt-inspector.pl:244
23751 msgid "OUTPUT FORMAT"
23752 msgstr ""
23753
23754 # type: verbatim
23755 #: ../inspector/virt-inspector.pl:246
23756 #, no-wrap
23757 msgid ""
23758 " Operating system(s)\n"
23759 " -------------------\n"
23760 " Linux (distro + version)\n"
23761 " Windows (version)\n"
23762 "    |\n"
23763 "    |\n"
23764 "    +--- Filesystems ---------- Installed apps --- Kernel & drivers\n"
23765 "         -----------            --------------     ----------------\n"
23766 "         mount point => device  List of apps       Extra information\n"
23767 "         mount point => device  and versions       about kernel(s)\n"
23768 "              ...                                  and drivers\n"
23769 "         swap => swap device\n"
23770 "         (plus lots of extra information\n"
23771 "         about each filesystem)\n"
23772 "\n"
23773 msgstr ""
23774
23775 # type: textblock
23776 #: ../inspector/virt-inspector.pl:261
23777 msgid "The output of virt-inspector is a complex two-level data structure."
23778 msgstr ""
23779
23780 # type: textblock
23781 #: ../inspector/virt-inspector.pl:263
23782 msgid ""
23783 "At the top level is a list of the operating systems installed on the guest.  "
23784 "(For the vast majority of guests, only a single OS is installed.)  The data "
23785 "returned for the OS includes the name (Linux, Windows), the distribution and "
23786 "version."
23787 msgstr ""
23788
23789 # type: textblock
23790 #: ../inspector/virt-inspector.pl:268
23791 msgid "The diagram above shows what we return for each OS."
23792 msgstr ""
23793
23794 # type: textblock
23795 #: ../inspector/virt-inspector.pl:270
23796 msgid ""
23797 "With the I<--xml> option the output is mapped into an XML document.  There "
23798 "is a RELAX-NG schema for this XML in the file I<virt-inspector.rng> which "
23799 "normally ships with virt-inspector, or can be found in the source."
23800 msgstr ""
23801
23802 # type: textblock
23803 #: ../inspector/virt-inspector.pl:275
23804 msgid ""
23805 "With the I<--fish> or I<--ro-fish> option the mount points are mapped to "
23806 "L<guestfish(1)> command line parameters, so that you can go in afterwards "
23807 "and inspect the guest with everything mounted in the right place.  For "
23808 "example:"
23809 msgstr ""
23810
23811 # type: verbatim
23812 #: ../inspector/virt-inspector.pl:280
23813 #, no-wrap
23814 msgid ""
23815 " guestfish $(virt-inspector --ro-fish guest.img)\n"
23816 " ==> guestfish --ro -a guest.img -m /dev/VG/LV:/ -m /dev/sda1:/boot\n"
23817 "\n"
23818 msgstr ""
23819
23820 # type: =head1
23821 #: ../inspector/virt-inspector.pl:620
23822 msgid "QUERY MODE"
23823 msgstr ""
23824
23825 # type: textblock
23826 #: ../inspector/virt-inspector.pl:622
23827 msgid ""
23828 "When you use C<virt-inspector --query>, the output is a series of lines of "
23829 "the form:"
23830 msgstr ""
23831
23832 # type: verbatim
23833 #: ../inspector/virt-inspector.pl:625
23834 #, no-wrap
23835 msgid ""
23836 " windows=no\n"
23837 " linux=yes\n"
23838 " fullvirt=yes\n"
23839 " xen_pv_drivers=no\n"
23840 "\n"
23841 msgstr ""
23842
23843 # type: textblock
23844 #: ../inspector/virt-inspector.pl:630
23845 msgid ""
23846 "(each answer is usually C<yes> or C<no>, or the line is completely missing "
23847 "if we could not determine the answer at all)."
23848 msgstr ""
23849
23850 # type: textblock
23851 #: ../inspector/virt-inspector.pl:633
23852 msgid ""
23853 "If the guest is multiboot, you can get apparently conflicting answers "
23854 "(eg. C<windows=yes> and C<linux=yes>, or a guest which is both fullvirt and "
23855 "has a Xen PV kernel).  This is normal, and just means that the guest can do "
23856 "both things, although it might require operator intervention such as "
23857 "selecting a boot option when the guest is booting."
23858 msgstr ""
23859
23860 # type: textblock
23861 #: ../inspector/virt-inspector.pl:640
23862 msgid "This section describes the full range of answers possible."
23863 msgstr ""
23864
23865 # type: =item
23866 #: ../inspector/virt-inspector.pl:661
23867 msgid "windows=(yes|no)"
23868 msgstr ""
23869
23870 # type: textblock
23871 #: ../inspector/virt-inspector.pl:663
23872 msgid "Answer C<yes> if Microsoft Windows is installed in the guest."
23873 msgstr ""
23874
23875 # type: =item
23876 #: ../inspector/virt-inspector.pl:676
23877 msgid "linux=(yes|no)"
23878 msgstr ""
23879
23880 # type: textblock
23881 #: ../inspector/virt-inspector.pl:678
23882 msgid "Answer C<yes> if a Linux kernel is installed in the guest."
23883 msgstr ""
23884
23885 # type: =item
23886 #: ../inspector/virt-inspector.pl:691
23887 msgid "rhel=(yes|no)"
23888 msgstr ""
23889
23890 # type: textblock
23891 #: ../inspector/virt-inspector.pl:693
23892 msgid "Answer C<yes> if the guest contains Red Hat Enterprise Linux."
23893 msgstr ""
23894
23895 # type: =item
23896 #: ../inspector/virt-inspector.pl:707
23897 msgid "fedora=(yes|no)"
23898 msgstr ""
23899
23900 # type: textblock
23901 #: ../inspector/virt-inspector.pl:709
23902 msgid "Answer C<yes> if the guest contains the Fedora Linux distribution."
23903 msgstr ""
23904
23905 # type: =item
23906 #: ../inspector/virt-inspector.pl:722
23907 msgid "debian=(yes|no)"
23908 msgstr ""
23909
23910 # type: textblock
23911 #: ../inspector/virt-inspector.pl:724
23912 msgid "Answer C<yes> if the guest contains the Debian Linux distribution."
23913 msgstr ""
23914
23915 # type: =item
23916 #: ../inspector/virt-inspector.pl:737
23917 msgid "fullvirt=(yes|no)"
23918 msgstr ""
23919
23920 # type: textblock
23921 #: ../inspector/virt-inspector.pl:739
23922 msgid ""
23923 "Answer C<yes> if there is at least one operating system kernel installed in "
23924 "the guest which runs fully virtualized.  Such a guest would require a "
23925 "hypervisor which supports full system virtualization."
23926 msgstr ""
23927
23928 # type: =item
23929 #: ../inspector/virt-inspector.pl:762
23930 msgid "xen_domU_kernel=(yes|no)"
23931 msgstr ""
23932
23933 # type: textblock
23934 #: ../inspector/virt-inspector.pl:764
23935 msgid ""
23936 "Answer C<yes> if there is at least one Linux kernel installed in the guest "
23937 "which is compiled as a Xen DomU (a Xen paravirtualized guest)."
23938 msgstr ""
23939
23940 # type: =item
23941 #: ../inspector/virt-inspector.pl:784
23942 msgid "xen_pv_drivers=(yes|no)"
23943 msgstr ""
23944
23945 # type: textblock
23946 #: ../inspector/virt-inspector.pl:786
23947 msgid ""
23948 "Answer C<yes> if the guest has Xen paravirtualized drivers installed "
23949 "(usually the kernel itself will be fully virtualized, but the PV drivers "
23950 "have been installed by the administrator for performance reasons)."
23951 msgstr ""
23952
23953 # type: =item
23954 #: ../inspector/virt-inspector.pl:808
23955 msgid "virtio_drivers=(yes|no)"
23956 msgstr ""
23957
23958 # type: textblock
23959 #: ../inspector/virt-inspector.pl:810
23960 msgid ""
23961 "Answer C<yes> if the guest has virtio paravirtualized drivers installed.  "
23962 "Virtio drivers are commonly used to improve the performance of KVM."
23963 msgstr ""
23964
23965 # type: =item
23966 #: ../inspector/virt-inspector.pl:831
23967 msgid "userspace_arch=(x86_64|...)"
23968 msgstr ""
23969
23970 # type: textblock
23971 #: ../inspector/virt-inspector.pl:833
23972 msgid "Print the architecture of userspace."
23973 msgstr ""
23974
23975 # type: textblock
23976 #: ../inspector/virt-inspector.pl:835 ../inspector/virt-inspector.pl:856
23977 msgid "NB. For multi-boot VMs this can print several lines."
23978 msgstr ""
23979
23980 # type: =item
23981 #: ../inspector/virt-inspector.pl:852
23982 msgid "kernel_arch=(x86_64|...)"
23983 msgstr ""
23984
23985 # type: textblock
23986 #: ../inspector/virt-inspector.pl:854
23987 msgid "Print the architecture of the kernel."
23988 msgstr ""
23989
23990 # type: =head1
23991 #: ../inspector/virt-inspector.pl:877 ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:142 ../tools/virt-win-reg.pl:480 ../tools/virt-df.pl:607 ../tools/virt-ls.pl:228 ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:209 ../tools/virt-cat.pl:181 ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:250 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
23992 msgid "SHELL QUOTING"
23993 msgstr ""
23994
23995 # type: textblock
23996 #: ../inspector/virt-inspector.pl:879 ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:482 ../tools/virt-df.pl:609 ../tools/virt-ls.pl:230 ../tools/virt-resize.pl:1481 ../tools/virt-list-filesystems.pl:211 ../tools/virt-cat.pl:183 ../tools/virt-tar.pl:278 ../tools/virt-rescue.pl:252 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
23997 msgid ""
23998 "Libvirt guest names can contain arbitrary characters, some of which have "
23999 "meaning to the shell such as C<#> and space.  You may need to quote or "
24000 "escape these characters on the command line.  See the shell manual page "
24001 "L<sh(1)> for details."
24002 msgstr ""
24003
24004 # type: textblock
24005 #: ../inspector/virt-inspector.pl:886 ../tools/virt-df.pl:616
24006 msgid ""
24007 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24008 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24009 msgstr ""
24010
24011 # type: textblock
24012 #: ../inspector/virt-inspector.pl:895 ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:515 ../tools/virt-df.pl:625 ../tools/virt-ls.pl:248 ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:230 ../tools/virt-cat.pl:200 ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:269 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
24013 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24014 msgstr ""
24015
24016 # type: textblock
24017 #: ../inspector/virt-inspector.pl:897
24018 msgid "Matthew Booth L<mbooth@redhat.com>"
24019 msgstr ""
24020
24021 # type: textblock
24022 #: ../inspector/virt-inspector.pl:901 ../tools/virt-ls.pl:252 ../tools/virt-list-filesystems.pl:234 ../tools/virt-cat.pl:204 ../tools/virt-tar.pl:300
24023 msgid "Copyright (C) 2009 Red Hat Inc."
24024 msgstr ""
24025
24026 # type: textblock
24027 #: ../tools/virt-edit.pl:35
24028 msgid "virt-edit - Edit a file in a virtual machine"
24029 msgstr ""
24030
24031 # type: verbatim
24032 #: ../tools/virt-edit.pl:39
24033 #, no-wrap
24034 msgid ""
24035 " virt-edit [--options] domname file\n"
24036 "\n"
24037 msgstr ""
24038
24039 # type: verbatim
24040 #: ../tools/virt-edit.pl:41
24041 #, no-wrap
24042 msgid ""
24043 " virt-edit [--options] disk.img [disk.img ...] file\n"
24044 "\n"
24045 msgstr ""
24046
24047 # type: verbatim
24048 #: ../tools/virt-edit.pl:43
24049 #, no-wrap
24050 msgid ""
24051 " virt-edit [domname|disk.img] file -e 'expr'\n"
24052 "\n"
24053 msgstr ""
24054
24055 # type: textblock
24056 #: ../tools/virt-edit.pl:47
24057 msgid ""
24058 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24059 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24060 "doing this, but doesn't catch all cases."
24061 msgstr ""
24062
24063 # type: textblock
24064 #: ../tools/virt-edit.pl:53
24065 msgid ""
24066 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24067 "the named virtual machine (or disk image)."
24068 msgstr ""
24069
24070 # type: textblock
24071 #: ../tools/virt-edit.pl:56
24072 msgid ""
24073 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24074 "you should look at the L<guestfish(1)> tool."
24075 msgstr ""
24076
24077 # type: textblock
24078 #: ../tools/virt-edit.pl:61
24079 msgid "Edit the named files interactively:"
24080 msgstr ""
24081
24082 # type: verbatim
24083 #: ../tools/virt-edit.pl:63
24084 #, no-wrap
24085 msgid ""
24086 " virt-edit mydomain /boot/grub/grub.conf\n"
24087 "\n"
24088 msgstr ""
24089
24090 # type: verbatim
24091 #: ../tools/virt-edit.pl:65
24092 #, no-wrap
24093 msgid ""
24094 " virt-edit mydomain /etc/passwd\n"
24095 "\n"
24096 msgstr ""
24097
24098 # type: textblock
24099 #: ../tools/virt-edit.pl:67
24100 msgid ""
24101 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
24102 "below).  To change the init default level to 5:"
24103 msgstr ""
24104
24105 # type: verbatim
24106 #: ../tools/virt-edit.pl:71
24107 #, no-wrap
24108 msgid ""
24109 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
24110 "\n"
24111 msgstr ""
24112
24113 # type: =item
24114 #: ../tools/virt-edit.pl:97
24115 msgid "B<--backup extension> | B<-b extension>"
24116 msgstr ""
24117
24118 # type: textblock
24119 #: ../tools/virt-edit.pl:99
24120 msgid ""
24121 "Create a backup of the original file I<in the guest disk image>.  The backup "
24122 "has the original filename with C<extension> added."
24123 msgstr ""
24124
24125 # type: textblock
24126 #: ../tools/virt-edit.pl:102
24127 msgid ""
24128 "Usually the first character of C<extension> would be a dot C<.> so you would "
24129 "write:"
24130 msgstr ""
24131
24132 # type: verbatim
24133 #: ../tools/virt-edit.pl:105
24134 #, no-wrap
24135 msgid ""
24136 " virt-edit -b .orig [etc]\n"
24137 "\n"
24138 msgstr ""
24139
24140 # type: textblock
24141 #: ../tools/virt-edit.pl:107
24142 msgid "By default, no backup file is made."
24143 msgstr ""
24144
24145 # type: textblock
24146 #: ../tools/virt-edit.pl:118 ../tools/virt-win-reg.pl:209 ../tools/virt-df.pl:100 ../tools/virt-ls.pl:108 ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:109 ../tools/virt-tar.pl:128 ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
24147 msgid ""
24148 "If you specify guest block devices directly, then libvirt is not used at "
24149 "all."
24150 msgstr ""
24151
24152 # type: =item
24153 #: ../tools/virt-edit.pl:142
24154 msgid "B<--expr EXPR> | B<-e EXPR>"
24155 msgstr ""
24156
24157 # type: textblock
24158 #: ../tools/virt-edit.pl:144
24159 msgid ""
24160 "Instead of launching the external editor, non-interactively apply the Perl "
24161 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
24162 "EDITING> below."
24163 msgstr ""
24164
24165 # type: textblock
24166 #: ../tools/virt-edit.pl:148
24167 msgid ""
24168 "Be careful to properly quote the expression to prevent it from being altered "
24169 "by the shell."
24170 msgstr ""
24171
24172 # type: =head1
24173 #: ../tools/virt-edit.pl:268
24174 msgid "NON-INTERACTIVE EDITING"
24175 msgstr ""
24176
24177 # type: textblock
24178 #: ../tools/virt-edit.pl:270
24179 msgid ""
24180 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24181 "administrator can interactively edit the file."
24182 msgstr ""
24183
24184 # type: textblock
24185 #: ../tools/virt-edit.pl:273
24186 msgid ""
24187 "There are two ways also to use C<virt-edit> from scripts in order to make "
24188 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24189 "like this, it's less error-prone to write scripts directly using the "
24190 "libguestfs API and Augeas for configuration file editing.)"
24191 msgstr ""
24192
24193 # type: textblock
24194 #: ../tools/virt-edit.pl:279
24195 msgid ""
24196 "The first method is to temporarily set C<$EDITOR> to any script or program "
24197 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24198 "update C<tmpfile> in place however it likes."
24199 msgstr ""
24200
24201 # type: textblock
24202 #: ../tools/virt-edit.pl:283
24203 msgid ""
24204 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24205 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24206 "instances of C<foo> with C<bar> in a file:"
24207 msgstr ""
24208
24209 # type: verbatim
24210 #: ../tools/virt-edit.pl:287
24211 #, no-wrap
24212 msgid ""
24213 " virt-edit domname filename -e 's/foo/bar/'\n"
24214 "\n"
24215 msgstr ""
24216
24217 # type: textblock
24218 #: ../tools/virt-edit.pl:289
24219 msgid ""
24220 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24221 "For example to delete root's password you could do:"
24222 msgstr ""
24223
24224 # type: verbatim
24225 #: ../tools/virt-edit.pl:292
24226 #, no-wrap
24227 msgid ""
24228 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24229 "\n"
24230 msgstr ""
24231
24232 # type: textblock
24233 #: ../tools/virt-edit.pl:294
24234 msgid ""
24235 "What really happens is that the snippet is evaluated as a Perl expression "
24236 "for each line of the file.  The line, including the final C<\\n>, is passed "
24237 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24238 msgstr ""
24239
24240 # type: textblock
24241 #: ../tools/virt-edit.pl:299
24242 msgid ""
24243 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24244 "C<apache> user account from the password file you can do:"
24245 msgstr ""
24246
24247 # type: verbatim
24248 #: ../tools/virt-edit.pl:302
24249 #, no-wrap
24250 msgid ""
24251 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24252 "\n"
24253 msgstr ""
24254
24255 # type: textblock
24256 #: ../tools/virt-edit.pl:304
24257 msgid ""
24258 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24259 "the end of the file is rather difficult this way since there is no concept "
24260 "of \"last line of the file\" - your expression just doesn't get called "
24261 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24262 "want to do this."
24263 msgstr ""
24264
24265 # type: textblock
24266 #: ../tools/virt-edit.pl:310
24267 msgid ""
24268 "The variable C<$lineno> contains the current line number.  As is "
24269 "traditional, the first line in the file is number C<1>."
24270 msgstr ""
24271
24272 # type: textblock
24273 #: ../tools/virt-edit.pl:313
24274 msgid ""
24275 "The return value from the expression is ignored, but the expression may call "
24276 "C<die> in order to abort the whole program, leaving the original file "
24277 "untouched."
24278 msgstr ""
24279
24280 # type: textblock
24281 #: ../tools/virt-edit.pl:317
24282 msgid ""
24283 "Remember when matching the end of a line that C<$_> may contain the final "
24284 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24285 "newline then neither of these.  Thus to match or substitute some text at the "
24286 "end of a line, use this regular expression:"
24287 msgstr ""
24288
24289 # type: verbatim
24290 #: ../tools/virt-edit.pl:322
24291 #, no-wrap
24292 msgid ""
24293 " /some text(\\r?\\n)?$/\n"
24294 "\n"
24295 msgstr ""
24296
24297 # type: textblock
24298 #: ../tools/virt-edit.pl:324
24299 msgid ""
24300 "Alternately, use the perl C<chomp> function, being careful not to chomp "
24301 "C<$_> itself (since that would remove all newlines from the file):"
24302 msgstr ""
24303
24304 # type: verbatim
24305 #: ../tools/virt-edit.pl:328
24306 #, no-wrap
24307 msgid ""
24308 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24309 "\n"
24310 msgstr ""
24311
24312 # type: =item
24313 #: ../tools/virt-edit.pl:334
24314 msgid "C<EDITOR>"
24315 msgstr ""
24316
24317 # type: textblock
24318 #: ../tools/virt-edit.pl:336
24319 msgid ""
24320 "If set, this string is used as the editor.  It may contain arguments, "
24321 "eg. C<\"emacs -nw\">"
24322 msgstr ""
24323
24324 # type: textblock
24325 #: ../tools/virt-edit.pl:339
24326 msgid "If not set, C<vi> is used."
24327 msgstr ""
24328
24329 # type: textblock
24330 #: ../tools/virt-edit.pl:352
24331 msgid ""
24332 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24333 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
24334 "L<perl(1)>, L<perlre(1)>."
24335 msgstr ""
24336
24337 # type: =head1
24338 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:513 ../tools/virt-df.pl:623 ../tools/virt-ls.pl:246 ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:228 ../tools/virt-cat.pl:198 ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
24339 msgid "AUTHOR"
24340 msgstr ""
24341
24342 # type: textblock
24343 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:629 ../tools/virt-rescue.pl:273 ../tools/virt-list-partitions.pl:271
24344 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24345 msgstr ""
24346
24347 # type: textblock
24348 #: ../tools/virt-win-reg.pl:38
24349 msgid ""
24350 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
24351 "guest"
24352 msgstr ""
24353
24354 # type: verbatim
24355 #: ../tools/virt-win-reg.pl:42
24356 #, no-wrap
24357 msgid ""
24358 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24359 "\n"
24360 msgstr ""
24361
24362 # type: verbatim
24363 #: ../tools/virt-win-reg.pl:44
24364 #, no-wrap
24365 msgid ""
24366 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
24367 "\n"
24368 msgstr ""
24369
24370 # type: verbatim
24371 #: ../tools/virt-win-reg.pl:46
24372 #, no-wrap
24373 msgid ""
24374 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: verbatim
24379 #: ../tools/virt-win-reg.pl:48
24380 #, no-wrap
24381 msgid ""
24382 " virt-win-reg --merge domname [input.reg ...]\n"
24383 "\n"
24384 msgstr ""
24385
24386 # type: verbatim
24387 #: ../tools/virt-win-reg.pl:50
24388 #, no-wrap
24389 msgid ""
24390 " virt-win-reg [--options] disk.img ... # instead of domname\n"
24391 "\n"
24392 msgstr ""
24393
24394 # type: textblock
24395 #: ../tools/virt-win-reg.pl:54
24396 msgid ""
24397 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
24398 "virtual machines.  If you do this, you I<will> get irreversible disk "
24399 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
24400 "but doesn't catch all cases."
24401 msgstr ""
24402
24403 # type: textblock
24404 #: ../tools/virt-win-reg.pl:59
24405 msgid ""
24406 "Modifying the Windows Registry is an inherently risky operation.  The format "
24407 "is deliberately obscure and undocumented, and Registry changes can leave the "
24408 "system unbootable.  Therefore when using the C<--merge> option, make sure "
24409 "you have a reliable backup first."
24410 msgstr ""
24411
24412 # type: textblock
24413 #: ../tools/virt-win-reg.pl:66
24414 msgid ""
24415 "This program can export and merge Windows Registry entries from a Windows "
24416 "guest."
24417 msgstr ""
24418
24419 # type: textblock
24420 #: ../tools/virt-win-reg.pl:69
24421 msgid ""
24422 "The first parameter is the libvirt guest name or the raw disk image of a "
24423 "Windows guest."
24424 msgstr ""
24425
24426 # type: textblock
24427 #: ../tools/virt-win-reg.pl:72
24428 msgid ""
24429 "If C<--merge> is I<not> specified, then the chosen registry key is "
24430 "displayed/exported (recursively).  For example:"
24431 msgstr ""
24432
24433 # type: verbatim
24434 #: ../tools/virt-win-reg.pl:75
24435 #, no-wrap
24436 msgid ""
24437 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
24438 "\n"
24439 msgstr ""
24440
24441 # type: textblock
24442 #: ../tools/virt-win-reg.pl:77
24443 msgid "You can also display single values from within registry keys, for example:"
24444 msgstr ""
24445
24446 # type: verbatim
24447 #: ../tools/virt-win-reg.pl:80
24448 #, no-wrap
24449 msgid ""
24450 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
24451 " $ virt-win-reg Windows7 $cvkey ProductName\n"
24452 " Windows 7 Enterprise\n"
24453 "\n"
24454 msgstr ""
24455
24456 # type: textblock
24457 #: ../tools/virt-win-reg.pl:84
24458 msgid ""
24459 "With C<--merge>, you can merge a textual regedit file into the Windows "
24460 "Registry:"
24461 msgstr ""
24462
24463 # type: verbatim
24464 #: ../tools/virt-win-reg.pl:87
24465 #, no-wrap
24466 msgid ""
24467 " $ virt-win-reg --merge Windows7 changes.reg\n"
24468 "\n"
24469 msgstr ""
24470
24471 # type: =head2
24472 #: ../tools/virt-win-reg.pl:89
24473 msgid "SUPPORTED SYSTEMS"
24474 msgstr ""
24475
24476 # type: textblock
24477 #: ../tools/virt-win-reg.pl:91
24478 msgid ""
24479 "The program currently supports Windows NT-derived guests starting with "
24480 "Windows XP through to at least Windows 7."
24481 msgstr ""
24482
24483 # type: textblock
24484 #: ../tools/virt-win-reg.pl:94
24485 msgid ""
24486 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
24487 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
24488 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
24489 msgstr ""
24490
24491 # type: textblock
24492 #: ../tools/virt-win-reg.pl:98
24493 msgid ""
24494 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
24495 "C<HKEY_USERS>."
24496 msgstr ""
24497
24498 # type: textblock
24499 #: ../tools/virt-win-reg.pl:101
24500 msgid ""
24501 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
24502 "time."
24503 msgstr ""
24504
24505 # type: =head2
24506 #: ../tools/virt-win-reg.pl:104
24507 msgid "NOTE"
24508 msgstr ""
24509
24510 # type: textblock
24511 #: ../tools/virt-win-reg.pl:106
24512 msgid ""
24513 "This program is only meant for simple access to the registry.  If you want "
24514 "to do complicated things with the registry, we suggest you download the "
24515 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
24516 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
24517 "L<hivexregedit(1)>."
24518 msgstr ""
24519
24520 # type: =head2
24521 #: ../tools/virt-win-reg.pl:112
24522 msgid "ENCODING"
24523 msgstr ""
24524
24525 # type: textblock
24526 #: ../tools/virt-win-reg.pl:114
24527 msgid ""
24528 "C<virt-win-reg> expects that regedit files have already been reencoded in "
24529 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
24530 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
24531 "with Windows-style line endings, you may need to reencode the whole file "
24532 "before or after processing."
24533 msgstr ""
24534
24535 # type: textblock
24536 #: ../tools/virt-win-reg.pl:120
24537 msgid ""
24538 "To reencode a file from Windows format to Linux (before processing it with "
24539 "the C<--merge> option), you would do something like this:"
24540 msgstr ""
24541
24542 # type: verbatim
24543 #: ../tools/virt-win-reg.pl:123
24544 #, no-wrap
24545 msgid ""
24546 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
24547 "\n"
24548 msgstr ""
24549
24550 # type: textblock
24551 #: ../tools/virt-win-reg.pl:125
24552 msgid ""
24553 "To go in the opposite direction, after exporting and before sending the file "
24554 "to a Windows user, do something like this:"
24555 msgstr ""
24556
24557 # type: verbatim
24558 #: ../tools/virt-win-reg.pl:128
24559 #, no-wrap
24560 msgid ""
24561 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
24562 "\n"
24563 msgstr ""
24564
24565 # type: textblock
24566 #: ../tools/virt-win-reg.pl:130
24567 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
24568 msgstr ""
24569
24570 # type: textblock
24571 #: ../tools/virt-win-reg.pl:132
24572 msgid ""
24573 "If you are unsure about the current encoding, use the L<file(1)> command.  "
24574 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
24575 "Windows-style (CRLF) line endings, like this:"
24576 msgstr ""
24577
24578 # type: verbatim
24579 #: ../tools/virt-win-reg.pl:136
24580 #, no-wrap
24581 msgid ""
24582 " $ file software.reg\n"
24583 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
24584 " with CRLF line terminators\n"
24585 "\n"
24586 msgstr ""
24587
24588 # type: textblock
24589 #: ../tools/virt-win-reg.pl:140
24590 msgid "This file would need conversion before you could C<--merge> it."
24591 msgstr ""
24592
24593 # type: textblock
24594 #: ../tools/virt-win-reg.pl:144
24595 msgid ""
24596 "Be careful when passing parameters containing C<\\> (backslash) in the "
24597 "shell.  Usually you will have to use 'single quotes' or double backslashes "
24598 "(but not both) to protect them from the shell."
24599 msgstr ""
24600
24601 # type: textblock
24602 #: ../tools/virt-win-reg.pl:148
24603 msgid "Paths and value names are case-insensitive."
24604 msgstr ""
24605
24606 # type: =head2
24607 #: ../tools/virt-win-reg.pl:150
24608 msgid "CurrentControlSet etc."
24609 msgstr ""
24610
24611 # type: textblock
24612 #: ../tools/virt-win-reg.pl:152
24613 msgid ""
24614 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
24615 "Registry at the level of the hive file, and therefore you cannot modify "
24616 "these."
24617 msgstr ""
24618
24619 # type: textblock
24620 #: ../tools/virt-win-reg.pl:156
24621 msgid ""
24622 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
24623 "circumstances it might refer to another control set.  The way to find out is "
24624 "to look at the C<HKLM\\SYSTEM\\Select> key:"
24625 msgstr ""
24626
24627 # type: verbatim
24628 #: ../tools/virt-win-reg.pl:160
24629 #, no-wrap
24630 msgid ""
24631 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
24632 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
24633 " \"Current\"=dword:00000001\n"
24634 " \"Default\"=dword:00000001\n"
24635 " \"Failed\"=dword:00000000\n"
24636 " \"LastKnownGood\"=dword:00000002\n"
24637 "\n"
24638 msgstr ""
24639
24640 # type: textblock
24641 #: ../tools/virt-win-reg.pl:167
24642 msgid "\"Default\" is the one which Windows will choose when it boots."
24643 msgstr ""
24644
24645 # type: textblock
24646 #: ../tools/virt-win-reg.pl:169
24647 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
24648 msgstr ""
24649
24650 # type: =item
24651 #: ../tools/virt-win-reg.pl:196 ../tools/virt-make-fs.pl:177
24652 msgid "B<--debug>"
24653 msgstr ""
24654
24655 # type: textblock
24656 #: ../tools/virt-win-reg.pl:198 ../tools/virt-resize.pl:501
24657 msgid "Enable debugging messages."
24658 msgstr ""
24659
24660 # type: =item
24661 #: ../tools/virt-win-reg.pl:233
24662 msgid "B<--merge>"
24663 msgstr ""
24664
24665 # type: textblock
24666 #: ../tools/virt-win-reg.pl:235
24667 msgid ""
24668 "In merge mode, this merges a textual regedit file into the Windows Registry "
24669 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
24670 "displays or exports Registry entries instead."
24671 msgstr ""
24672
24673 # type: textblock
24674 #: ../tools/virt-win-reg.pl:239
24675 msgid ""
24676 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
24677 "result in disk corruption.  However exporting (without this flag)  is always "
24678 "safe."
24679 msgstr ""
24680
24681 # type: =item
24682 #: ../tools/virt-win-reg.pl:247
24683 msgid "B<--encoding> UTF-16LE|ASCII"
24684 msgstr ""
24685
24686 # type: textblock
24687 #: ../tools/virt-win-reg.pl:249
24688 msgid ""
24689 "When merging (only), you may need to specify the encoding for strings to be "
24690 "used in the hive file.  This is explained in detail in "
24691 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
24692 msgstr ""
24693
24694 # type: textblock
24695 #: ../tools/virt-win-reg.pl:253
24696 msgid ""
24697 "The default is to use UTF-16LE, which should work with recent versions of "
24698 "Windows."
24699 msgstr ""
24700
24701 # type: textblock
24702 #: ../tools/virt-win-reg.pl:489
24703 msgid ""
24704 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
24705 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24706 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
24707 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24708 msgstr ""
24709
24710 # type: textblock
24711 #: ../tools/virt-win-reg.pl:504 ../tools/virt-make-fs.pl:550
24712 msgid ""
24713 "When reporting bugs, please enable debugging and capture the I<complete> "
24714 "output:"
24715 msgstr ""
24716
24717 # type: verbatim
24718 #: ../tools/virt-win-reg.pl:507
24719 #, no-wrap
24720 msgid ""
24721 " export LIBGUESTFS_DEBUG=1\n"
24722 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
24723 "\n"
24724 msgstr ""
24725
24726 # type: textblock
24727 #: ../tools/virt-win-reg.pl:510
24728 msgid ""
24729 "Attach /tmp/virt-win-reg.log to a new bug report at "
24730 "L<https://bugzilla.redhat.com/>"
24731 msgstr ""
24732
24733 # type: textblock
24734 #: ../tools/virt-win-reg.pl:519 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
24735 msgid "Copyright (C) 2010 Red Hat Inc."
24736 msgstr ""
24737
24738 # type: textblock
24739 #: ../tools/virt-df.pl:36
24740 msgid "virt-df - Display free space on virtual filesystems"
24741 msgstr ""
24742
24743 # type: verbatim
24744 #: ../tools/virt-df.pl:40
24745 #, no-wrap
24746 msgid ""
24747 " virt-df [--options]\n"
24748 "\n"
24749 msgstr ""
24750
24751 # type: verbatim
24752 #: ../tools/virt-df.pl:42
24753 #, no-wrap
24754 msgid ""
24755 " virt-df [--options] domname\n"
24756 "\n"
24757 msgstr ""
24758
24759 # type: verbatim
24760 #: ../tools/virt-df.pl:44
24761 #, no-wrap
24762 msgid ""
24763 " virt-df [--options] disk.img [disk.img ...]\n"
24764 "\n"
24765 msgstr ""
24766
24767 # type: textblock
24768 #: ../tools/virt-df.pl:48
24769 msgid ""
24770 "C<virt-df> is a command line tool to display free space on virtual machine "
24771 "filesystems.  Unlike other tools, it doesn't just display the amount of "
24772 "space allocated to a virtual machine, but can look inside the virtual "
24773 "machine to see how much space is really being used."
24774 msgstr ""
24775
24776 # type: textblock
24777 #: ../tools/virt-df.pl:53
24778 msgid ""
24779 "It is like the L<df(1)> command, but for virtual machines, except that it "
24780 "also works for Windows virtual machines."
24781 msgstr ""
24782
24783 # type: textblock
24784 #: ../tools/virt-df.pl:56
24785 msgid ""
24786 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
24787 "of all active and inactive guests, and performs a C<df>-type operation on "
24788 "each one in turn, printing out the results."
24789 msgstr ""
24790
24791 # type: textblock
24792 #: ../tools/virt-df.pl:60
24793 msgid ""
24794 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
24795 "either the single named libvirt domain, or on the disk image(s) listed on "
24796 "the command line (which must all belong to a single VM).  In this mode (with "
24797 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
24798 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
24799 msgstr ""
24800
24801 # type: textblock
24802 #: ../tools/virt-df.pl:67
24803 msgid ""
24804 "Use the C<--csv> option to get a format which can be easily parsed by other "
24805 "programs.  Other options are mostly similar to standard C<df> options.  See "
24806 "below for the complete list."
24807 msgstr ""
24808
24809 # type: =item
24810 #: ../tools/virt-df.pl:107
24811 msgid "B<--csv>"
24812 msgstr ""
24813
24814 # type: textblock
24815 #: ../tools/virt-df.pl:109
24816 msgid ""
24817 "Write out the results in CSV format (comma-separated values).  This format "
24818 "can be imported easily into databases and spreadsheets, but read L</NOTE "
24819 "ABOUT CSV FORMAT> below."
24820 msgstr ""
24821
24822 # type: =item
24823 #: ../tools/virt-df.pl:134
24824 msgid "B<--human-readable> | B<-h>"
24825 msgstr ""
24826
24827 # type: textblock
24828 #: ../tools/virt-df.pl:136
24829 msgid "Print sizes in human-readable format."
24830 msgstr ""
24831
24832 # type: textblock
24833 #: ../tools/virt-df.pl:138
24834 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
24835 msgstr ""
24836
24837 # type: =item
24838 #: ../tools/virt-df.pl:144
24839 msgid "B<--inodes> | B<-i>"
24840 msgstr ""
24841
24842 # type: textblock
24843 #: ../tools/virt-df.pl:146
24844 msgid "Print inodes instead of blocks."
24845 msgstr ""
24846
24847 # type: =item
24848 #: ../tools/virt-df.pl:152
24849 msgid "B<--one-per-guest>"
24850 msgstr ""
24851
24852 # type: textblock
24853 #: ../tools/virt-df.pl:154
24854 msgid ""
24855 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
24856 "disks from several guests to a single libguestfs appliance."
24857 msgstr ""
24858
24859 # type: textblock
24860 #: ../tools/virt-df.pl:157
24861 msgid "You might use this option in the following circumstances:"
24862 msgstr ""
24863
24864 # type: textblock
24865 #: ../tools/virt-df.pl:163
24866 msgid ""
24867 "If you think an untrusted guest might actively try to exploit the libguestfs "
24868 "appliance kernel, then this prevents one guest from interfering with the "
24869 "stats printed for another guest."
24870 msgstr ""
24871
24872 # type: textblock
24873 #: ../tools/virt-df.pl:169
24874 msgid ""
24875 "If the kernel has a bug which stops it from accessing a filesystem in one "
24876 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
24877 "and report stats for further guests."
24878 msgstr ""
24879
24880 # type: =head1
24881 #: ../tools/virt-df.pl:583
24882 msgid "NOTE ABOUT CSV FORMAT"
24883 msgstr ""
24884
24885 # type: textblock
24886 #: ../tools/virt-df.pl:585
24887 msgid ""
24888 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
24889 "should be easy to parse, but it is definitely not easy to parse."
24890 msgstr ""
24891
24892 # type: textblock
24893 #: ../tools/virt-df.pl:588
24894 msgid ""
24895 "Myth: Just split fields at commas.  Reality: This does I<not> work "
24896 "reliably.  This example has two columns:"
24897 msgstr ""
24898
24899 # type: verbatim
24900 #: ../tools/virt-df.pl:591
24901 #, no-wrap
24902 msgid ""
24903 " \"foo,bar\",baz\n"
24904 "\n"
24905 msgstr ""
24906
24907 # type: textblock
24908 #: ../tools/virt-df.pl:593
24909 msgid ""
24910 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
24911 "reliably.  This example has one row:"
24912 msgstr ""
24913
24914 # type: verbatim
24915 #: ../tools/virt-df.pl:596
24916 #, no-wrap
24917 msgid ""
24918 " \"foo\n"
24919 " bar\",baz\n"
24920 "\n"
24921 msgstr ""
24922
24923 # type: textblock
24924 #: ../tools/virt-df.pl:599
24925 msgid ""
24926 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
24927 "packaged in major Linux distributions)."
24928 msgstr ""
24929
24930 # type: textblock
24931 #: ../tools/virt-df.pl:602
24932 msgid ""
24933 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
24934 "or Python's built-in csv library)."
24935 msgstr ""
24936
24937 # type: textblock
24938 #: ../tools/virt-df.pl:605
24939 msgid "Most spreadsheets and databases can import CSV directly."
24940 msgstr ""
24941
24942 # type: textblock
24943 #: ../tools/virt-ls.pl:35
24944 msgid "virt-ls - List files in a virtual machine"
24945 msgstr ""
24946
24947 # type: verbatim
24948 #: ../tools/virt-ls.pl:39
24949 #, no-wrap
24950 msgid ""
24951 " virt-ls [--options] domname directory\n"
24952 "\n"
24953 msgstr ""
24954
24955 # type: verbatim
24956 #: ../tools/virt-ls.pl:41
24957 #, no-wrap
24958 msgid ""
24959 " virt-ls [--options] disk.img [disk.img ...] directory\n"
24960 "\n"
24961 msgstr ""
24962
24963 # type: textblock
24964 #: ../tools/virt-ls.pl:45
24965 msgid ""
24966 "C<virt-ls> is a command line tool to list the names of files in a directory "
24967 "inside a virtual machine or disk image."
24968 msgstr ""
24969
24970 # type: textblock
24971 #: ../tools/virt-ls.pl:48
24972 msgid ""
24973 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
24974 "For more complex cases you should look at the L<guestfish(1)> tool."
24975 msgstr ""
24976
24977 # type: textblock
24978 #: ../tools/virt-ls.pl:52
24979 msgid ""
24980 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
24981 "simple listing is like the ordinary L<ls(1)> command:"
24982 msgstr ""
24983
24984 # type: verbatim
24985 #: ../tools/virt-ls.pl:55
24986 #, no-wrap
24987 msgid ""
24988 " $ virt-ls myguest /\n"
24989 " bin\n"
24990 " boot\n"
24991 " [etc.]\n"
24992 "\n"
24993 msgstr ""
24994
24995 # type: textblock
24996 #: ../tools/virt-ls.pl:60
24997 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
24998 msgstr ""
24999
25000 # type: verbatim
25001 #: ../tools/virt-ls.pl:62
25002 #, no-wrap
25003 msgid ""
25004 " $ virt-ls -l myguest /\n"
25005 " total 204\n"
25006 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25007 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25008 " [etc.]\n"
25009 "\n"
25010 msgstr ""
25011
25012 # type: textblock
25013 #: ../tools/virt-ls.pl:68
25014 msgid ""
25015 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25016 "and directories recursively:"
25017 msgstr ""
25018
25019 # type: verbatim
25020 #: ../tools/virt-ls.pl:71
25021 #, no-wrap
25022 msgid ""
25023 " $ virt-ls -R myguest /tmp\n"
25024 " foo\n"
25025 " foo/bar\n"
25026 " [etc.]\n"
25027 "\n"
25028 msgstr ""
25029
25030 # type: textblock
25031 #: ../tools/virt-ls.pl:76
25032 msgid ""
25033 "You I<cannot> combine these options.  To do more complicated things, use "
25034 "L<guestfish(1)>."
25035 msgstr ""
25036
25037 # type: =item
25038 #: ../tools/virt-ls.pl:132 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
25039 msgid "B<-l> | B<--long>"
25040 msgstr ""
25041
25042 # type: =item
25043 #: ../tools/virt-ls.pl:134
25044 msgid "B<-R> | B<--recursive>"
25045 msgstr ""
25046
25047 # type: textblock
25048 #: ../tools/virt-ls.pl:136
25049 msgid ""
25050 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25051 "simple, flat list of the files in the named directory."
25052 msgstr ""
25053
25054 # type: textblock
25055 #: ../tools/virt-ls.pl:139
25056 msgid ""
25057 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
25058 "like the plain C<ls -l> command)."
25059 msgstr ""
25060
25061 # type: textblock
25062 #: ../tools/virt-ls.pl:142
25063 msgid ""
25064 "C<virt-ls -R> produces a recursive list of files starting at the named "
25065 "directory.  See the documentation for the C<guestfs_find> command "
25066 "L<guestfs(3)> for precise details."
25067 msgstr ""
25068
25069 # type: textblock
25070 #: ../tools/virt-ls.pl:146
25071 msgid "You cannot combine these options."
25072 msgstr ""
25073
25074 # type: textblock
25075 #: ../tools/virt-ls.pl:237
25076 msgid ""
25077 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
25078 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
25079 "L<http://libguestfs.org/>."
25080 msgstr ""
25081
25082 # type: textblock
25083 #: ../tools/virt-resize.pl:42
25084 msgid "virt-resize - Resize a virtual machine disk"
25085 msgstr ""
25086
25087 # type: verbatim
25088 #: ../tools/virt-resize.pl:46
25089 #, no-wrap
25090 msgid ""
25091 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25092 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25093 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25094 "\n"
25095 msgstr ""
25096
25097 # type: textblock
25098 #: ../tools/virt-resize.pl:52
25099 msgid ""
25100 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25101 "larger or smaller overall, and resizing or deleting any partitions contained "
25102 "within."
25103 msgstr ""
25104
25105 # type: textblock
25106 #: ../tools/virt-resize.pl:56
25107 msgid ""
25108 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25109 "not> be used on live virtual machines - for consistent results, shut the "
25110 "virtual machine down before resizing it."
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../tools/virt-resize.pl:60
25115 msgid ""
25116 "If you are not familiar with the associated tools: "
25117 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
25118 "we recommend you go and read those manual pages first."
25119 msgstr ""
25120
25121 # type: textblock
25122 #: ../tools/virt-resize.pl:68
25123 msgid ""
25124 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25125 "fill the extra 5GB of space."
25126 msgstr ""
25127
25128 # type: verbatim
25129 #: ../tools/virt-resize.pl:71
25130 #, no-wrap
25131 msgid ""
25132 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
25133 " virt-list-partitions -lht olddisk\n"
25134 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25135 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25136 "\n"
25137 msgstr ""
25138
25139 # type: textblock
25140 #: ../tools/virt-resize.pl:76
25141 msgid ""
25142 "As above, but make the /boot partition 200MB bigger, while giving the "
25143 "remaining space to /dev/sda2:"
25144 msgstr ""
25145
25146 # type: verbatim
25147 #: ../tools/virt-resize.pl:79
25148 #, no-wrap
25149 msgid ""
25150 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25151 "\n"
25152 msgstr ""
25153
25154 # type: textblock
25155 #: ../tools/virt-resize.pl:81
25156 msgid "As above, but the output format will be uncompressed qcow2:"
25157 msgstr ""
25158
25159 # type: verbatim
25160 #: ../tools/virt-resize.pl:83
25161 #, no-wrap
25162 msgid ""
25163 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25164 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25165 "\n"
25166 msgstr ""
25167
25168 # type: =head1
25169 #: ../tools/virt-resize.pl:86
25170 msgid "DETAILED USAGE"
25171 msgstr ""
25172
25173 # type: =head2
25174 #: ../tools/virt-resize.pl:88
25175 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25176 msgstr ""
25177
25178 # type: =item
25179 #: ../tools/virt-resize.pl:92
25180 msgid "1. Shut down the virtual machine"
25181 msgstr ""
25182
25183 # type: =item
25184 #: ../tools/virt-resize.pl:94
25185 msgid "2. Locate input disk image"
25186 msgstr ""
25187
25188 # type: textblock
25189 #: ../tools/virt-resize.pl:96
25190 msgid ""
25191 "Locate the input disk image (ie. the file or device on the host containing "
25192 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25193 "dumpxml> like this to find the disk image name:"
25194 msgstr ""
25195
25196 # type: verbatim
25197 #: ../tools/virt-resize.pl:100
25198 #, no-wrap
25199 msgid ""
25200 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25201 " Found 1 nodes:\n"
25202 " -- NODE --\n"
25203 " <source dev=\"/dev/vg/lv_guest\" />\n"
25204 "\n"
25205 msgstr ""
25206
25207 # type: =item
25208 #: ../tools/virt-resize.pl:105
25209 msgid "3. Look at current sizing"
25210 msgstr ""
25211
25212 # type: textblock
25213 #: ../tools/virt-resize.pl:107
25214 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25215 msgstr ""
25216
25217 # type: verbatim
25218 #: ../tools/virt-resize.pl:110
25219 #, no-wrap
25220 msgid ""
25221 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25222 " /dev/sda1 ext3 101.9M\n"
25223 " /dev/sda2 pv 7.9G\n"
25224 " /dev/sda device 8.0G\n"
25225 "\n"
25226 msgstr ""
25227
25228 # type: textblock
25229 #: ../tools/virt-resize.pl:115
25230 msgid ""
25231 "(This example is a virtual machine with an 8 GB disk which we would like to "
25232 "expand up to 10 GB)."
25233 msgstr ""
25234
25235 # type: =item
25236 #: ../tools/virt-resize.pl:118
25237 msgid "4. Create output disk"
25238 msgstr ""
25239
25240 # type: textblock
25241 #: ../tools/virt-resize.pl:120
25242 msgid ""
25243 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25244 "to store the resized output disk."
25245 msgstr ""
25246
25247 # type: textblock
25248 #: ../tools/virt-resize.pl:123
25249 msgid "To store the resized disk image in a file, create a file of a suitable size:"
25250 msgstr ""
25251
25252 # type: verbatim
25253 #: ../tools/virt-resize.pl:126
25254 #, no-wrap
25255 msgid ""
25256 " # rm -f outdisk\n"
25257 " # truncate -s 10G outdisk\n"
25258 "\n"
25259 msgstr ""
25260
25261 # type: textblock
25262 #: ../tools/virt-resize.pl:129
25263 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25264 msgstr ""
25265
25266 # type: verbatim
25267 #: ../tools/virt-resize.pl:131
25268 #, no-wrap
25269 msgid ""
25270 " # lvcreate -L 10G -n lv_name vg_name\n"
25271 "\n"
25272 msgstr ""
25273
25274 # type: textblock
25275 #: ../tools/virt-resize.pl:133
25276 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25277 msgstr ""
25278
25279 # type: verbatim
25280 #: ../tools/virt-resize.pl:135
25281 #, no-wrap
25282 msgid ""
25283 " # virsh pool-list\n"
25284 " # virsh vol-create-as poolname newvol 10G\n"
25285 "\n"
25286 msgstr ""
25287
25288 # type: =item
25289 #: ../tools/virt-resize.pl:138
25290 msgid "5. Resize"
25291 msgstr ""
25292
25293 # type: textblock
25294 #: ../tools/virt-resize.pl:140
25295 msgid ""
25296 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25297 "file) and the output disk.  The output disk is the one created in the "
25298 "previous step."
25299 msgstr ""
25300
25301 # type: verbatim
25302 #: ../tools/virt-resize.pl:144
25303 #, no-wrap
25304 msgid ""
25305 " # virt-resize indisk outdisk\n"
25306 "\n"
25307 msgstr ""
25308
25309 # type: textblock
25310 #: ../tools/virt-resize.pl:146
25311 msgid ""
25312 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25313 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25314 "larger, then an extra, empty partition is created at the end of the disk "
25315 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25316 "error."
25317 msgstr ""
25318
25319 # type: textblock
25320 #: ../tools/virt-resize.pl:152
25321 msgid ""
25322 "More realistically you'd want to expand existing partitions in the disk "
25323 "image by passing extra options (for the full list see the L</OPTIONS> "
25324 "section below)."
25325 msgstr ""
25326
25327 # type: textblock
25328 #: ../tools/virt-resize.pl:156
25329 msgid ""
25330 "L</--expand> is the most useful option.  It expands the named partition "
25331 "within the disk to fill any extra space:"
25332 msgstr ""
25333
25334 # type: verbatim
25335 #: ../tools/virt-resize.pl:159
25336 #, no-wrap
25337 msgid ""
25338 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25339 "\n"
25340 msgstr ""
25341
25342 # type: textblock
25343 #: ../tools/virt-resize.pl:161
25344 msgid ""
25345 "(In this case, an extra partition is I<not> created at the end of the disk, "
25346 "because there will be no unused space)."
25347 msgstr ""
25348
25349 # type: textblock
25350 #: ../tools/virt-resize.pl:164
25351 msgid ""
25352 "L</--resize> is the other commonly used option.  The following would "
25353 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25354 "rest of the available space:"
25355 msgstr ""
25356
25357 # type: verbatim
25358 #: ../tools/virt-resize.pl:168
25359 #, no-wrap
25360 msgid ""
25361 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25362 "     indisk outdisk\n"
25363 "\n"
25364 msgstr ""
25365
25366 # type: textblock
25367 #: ../tools/virt-resize.pl:171
25368 msgid ""
25369 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25370 "if virt-resize knows how, it will resize the contents, the equivalent of "
25371 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
25372 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
25373 "filesystems, so you would have to online resize them after booting the "
25374 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
25375 "just resizes the PV itself and leaves the user to resize any LVs inside that "
25376 "PV as desired."
25377 msgstr ""
25378
25379 # type: textblock
25380 #: ../tools/virt-resize.pl:180
25381 msgid "Other options are covered below."
25382 msgstr ""
25383
25384 # type: =item
25385 #: ../tools/virt-resize.pl:182
25386 msgid "6. Test"
25387 msgstr ""
25388
25389 # type: textblock
25390 #: ../tools/virt-resize.pl:184
25391 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25392 msgstr ""
25393
25394 # type: textblock
25395 #: ../tools/virt-resize.pl:186
25396 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25397 msgstr ""
25398
25399 # type: verbatim
25400 #: ../tools/virt-resize.pl:188
25401 #, no-wrap
25402 msgid ""
25403 " # virsh edit guestname\n"
25404 "\n"
25405 msgstr ""
25406
25407 # type: textblock
25408 #: ../tools/virt-resize.pl:190
25409 msgid ""
25410 "Change E<lt>source ...E<gt>, see "
25411 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
25412 msgstr ""
25413
25414 # type: textblock
25415 #: ../tools/virt-resize.pl:193
25416 msgid "Then start up the domain with the new, resized disk:"
25417 msgstr ""
25418
25419 # type: verbatim
25420 #: ../tools/virt-resize.pl:195
25421 #, no-wrap
25422 msgid ""
25423 " # virsh start guestname\n"
25424 "\n"
25425 msgstr ""
25426
25427 # type: textblock
25428 #: ../tools/virt-resize.pl:197
25429 msgid ""
25430 "and check that it still works.  See also the L</NOTES> section below for "
25431 "additional information."
25432 msgstr ""
25433
25434 # type: =item
25435 #: ../tools/virt-resize.pl:200
25436 msgid "7. Resize LVs etc inside the guest"
25437 msgstr ""
25438
25439 # type: textblock
25440 #: ../tools/virt-resize.pl:202
25441 msgid "(This can also be done offline using L<guestfish(1)>)"
25442 msgstr ""
25443
25444 # type: textblock
25445 #: ../tools/virt-resize.pl:204
25446 msgid ""
25447 "Once the guest has booted you should see the new space available, at least "
25448 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25449 "may need to resize LVs inside PVs, and also resize filesystem types that "
25450 "virt-resize does not know how to expand."
25451 msgstr ""
25452
25453 # type: =head2
25454 #: ../tools/virt-resize.pl:211
25455 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25456 msgstr ""
25457
25458 # type: textblock
25459 #: ../tools/virt-resize.pl:213
25460 msgid ""
25461 "Shrinking is somewhat more complex than expanding, and only an overview is "
25462 "given here."
25463 msgstr ""
25464
25465 # type: textblock
25466 #: ../tools/virt-resize.pl:216
25467 msgid ""
25468 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25469 "filesystems).  The user has to shrink content before passing the disk image "
25470 "to virt-resize, and virt-resize will check that the content has been shrunk "
25471 "properly."
25472 msgstr ""
25473
25474 # type: textblock
25475 #: ../tools/virt-resize.pl:221
25476 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25477 msgstr ""
25478
25479 # type: textblock
25480 #: ../tools/virt-resize.pl:223
25481 msgid ""
25482 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25483 "steps 3 and 4 above to allocate a new disk image."
25484 msgstr ""
25485
25486 # type: textblock
25487 #: ../tools/virt-resize.pl:226
25488 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
25489 msgstr ""
25490
25491 # type: =head2
25492 #: ../tools/virt-resize.pl:229
25493 msgid "IGNORING OR DELETING PARTITIONS"
25494 msgstr ""
25495
25496 # type: textblock
25497 #: ../tools/virt-resize.pl:231
25498 msgid ""
25499 "virt-resize also gives a convenient way to ignore or delete partitions when "
25500 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25501 "up the copy where you don't care about the existing contents of a "
25502 "partition.  Deleting a partition removes it completely, but note that it "
25503 "also renumbers any partitions after the one which is deleted, which can "
25504 "leave some guests unbootable."
25505 msgstr ""
25506
25507 # type: =head2
25508 #: ../tools/virt-resize.pl:238
25509 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25510 msgstr ""
25511
25512 # type: textblock
25513 #: ../tools/virt-resize.pl:240
25514 msgid ""
25515 "If the input disk is in qcow2 format, then you may prefer that the output is "
25516 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
25517 "the fly.  The output format is simply determined by the format of the empty "
25518 "output container that you provide.  Thus to create qcow2 output, use:"
25519 msgstr ""
25520
25521 # type: verbatim
25522 #: ../tools/virt-resize.pl:246
25523 #, no-wrap
25524 msgid ""
25525 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25526 "\n"
25527 msgstr ""
25528
25529 # type: textblock
25530 #: ../tools/virt-resize.pl:248
25531 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
25532 msgstr ""
25533
25534 # type: textblock
25535 #: ../tools/virt-resize.pl:250
25536 msgid "Similarly, to get non-sparse raw output use:"
25537 msgstr ""
25538
25539 # type: verbatim
25540 #: ../tools/virt-resize.pl:252
25541 #, no-wrap
25542 msgid ""
25543 " fallocate -l size outdisk\n"
25544 "\n"
25545 msgstr ""
25546
25547 # type: textblock
25548 #: ../tools/virt-resize.pl:254
25549 msgid ""
25550 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
25551 "if=/dev/zero of=outdisk bs=1M count=..>)"
25552 msgstr ""
25553
25554 # type: textblock
25555 #: ../tools/virt-resize.pl:267
25556 msgid "Display help."
25557 msgstr ""
25558
25559 # type: =item
25560 #: ../tools/virt-resize.pl:281
25561 msgid "B<--resize part=size>"
25562 msgstr ""
25563
25564 # type: textblock
25565 #: ../tools/virt-resize.pl:283
25566 msgid ""
25567 "Resize the named partition (expanding or shrinking it) so that it has the "
25568 "given size."
25569 msgstr ""
25570
25571 # type: textblock
25572 #: ../tools/virt-resize.pl:286
25573 msgid ""
25574 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
25575 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
25576 "Exabytes; or as a percentage of the current size; or as a relative number or "
25577 "percentage.  For example:"
25578 msgstr ""
25579
25580 # type: verbatim
25581 #: ../tools/virt-resize.pl:291
25582 #, no-wrap
25583 msgid ""
25584 " --resize /dev/sda2=10G\n"
25585 "\n"
25586 msgstr ""
25587
25588 # type: verbatim
25589 #: ../tools/virt-resize.pl:293
25590 #, no-wrap
25591 msgid ""
25592 " --resize /dev/sda4=90%\n"
25593 "\n"
25594 msgstr ""
25595
25596 # type: verbatim
25597 #: ../tools/virt-resize.pl:295
25598 #, no-wrap
25599 msgid ""
25600 " --resize /dev/sda2=+1G\n"
25601 "\n"
25602 msgstr ""
25603
25604 # type: verbatim
25605 #: ../tools/virt-resize.pl:297
25606 #, no-wrap
25607 msgid ""
25608 " --resize /dev/sda2=-200M\n"
25609 "\n"
25610 msgstr ""
25611
25612 # type: verbatim
25613 #: ../tools/virt-resize.pl:299
25614 #, no-wrap
25615 msgid ""
25616 " --resize /dev/sda1=+128K\n"
25617 "\n"
25618 msgstr ""
25619
25620 # type: verbatim
25621 #: ../tools/virt-resize.pl:301
25622 #, no-wrap
25623 msgid ""
25624 " --resize /dev/sda1=+10%\n"
25625 "\n"
25626 msgstr ""
25627
25628 # type: verbatim
25629 #: ../tools/virt-resize.pl:303
25630 #, no-wrap
25631 msgid ""
25632 " --resize /dev/sda1=-10%\n"
25633 "\n"
25634 msgstr ""
25635
25636 # type: textblock
25637 #: ../tools/virt-resize.pl:305
25638 msgid ""
25639 "You can increase the size of any partition.  Virt-resize will expand the "
25640 "direct content of the partition if it knows how (see C<--expand> below)."
25641 msgstr ""
25642
25643 # type: textblock
25644 #: ../tools/virt-resize.pl:309
25645 msgid ""
25646 "You can only I<decrease> the size of partitions that contain filesystems or "
25647 "PVs which have already been shrunk.  Virt-resize will check this has been "
25648 "done before proceeding, or else will print an error (see also "
25649 "C<--resize-force>)."
25650 msgstr ""
25651
25652 # type: textblock
25653 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
25654 msgid "You can give this option multiple times."
25655 msgstr ""
25656
25657 # type: =item
25658 #: ../tools/virt-resize.pl:320
25659 msgid "B<--resize-force part=size>"
25660 msgstr ""
25661
25662 # type: textblock
25663 #: ../tools/virt-resize.pl:322
25664 msgid ""
25665 "This is the same as C<--resize> except that it will let you decrease the "
25666 "size of any partition.  Generally this means you will lose any data which "
25667 "was at the end of the partition you shrink, but you may not care about that "
25668 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25669 "as a swap partition)."
25670 msgstr ""
25671
25672 # type: textblock
25673 #: ../tools/virt-resize.pl:328
25674 msgid "See also the C<--ignore> option."
25675 msgstr ""
25676
25677 # type: =item
25678 #: ../tools/virt-resize.pl:334
25679 msgid "B<--expand part>"
25680 msgstr ""
25681
25682 # type: textblock
25683 #: ../tools/virt-resize.pl:336
25684 msgid ""
25685 "Expand the named partition so it uses up all extra space (space left over "
25686 "after any other resize changes that you request have been done)."
25687 msgstr ""
25688
25689 # type: textblock
25690 #: ../tools/virt-resize.pl:339
25691 msgid ""
25692 "If virt-resize knows how, it will expand the direct content of the "
25693 "partition.  For example, if the partition is an LVM PV, it will expand the "
25694 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25695 "content it doesn't know about alone."
25696 msgstr ""
25697
25698 # type: textblock
25699 #: ../tools/virt-resize.pl:344
25700 msgid "Currently virt-resize can resize:"
25701 msgstr ""
25702
25703 # type: textblock
25704 #: ../tools/virt-resize.pl:350
25705 msgid ""
25706 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25707 "partition."
25708 msgstr ""
25709
25710 # type: textblock
25711 #: ../tools/virt-resize.pl:355
25712 msgid ""
25713 "NTFS filesystems contained directly in a partition, if libguestfs was "
25714 "compiled with support for NTFS."
25715 msgstr ""
25716
25717 # type: textblock
25718 #: ../tools/virt-resize.pl:358
25719 msgid ""
25720 "The filesystem must have been shut down consistently last time it was used.  "
25721 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25722 "consistency check, so at the first boot after resizing Windows will check "
25723 "the disk."
25724 msgstr ""
25725
25726 # type: textblock
25727 #: ../tools/virt-resize.pl:365
25728 msgid ""
25729 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25730 "inside the PV.  The user will have to resize LVs as desired."
25731 msgstr ""
25732
25733 # type: textblock
25734 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
25735 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25736 msgstr ""
25737
25738 # type: =item
25739 #: ../tools/virt-resize.pl:377
25740 msgid "B<--shrink part>"
25741 msgstr ""
25742
25743 # type: textblock
25744 #: ../tools/virt-resize.pl:379
25745 msgid ""
25746 "Shrink the named partition until the overall disk image fits in the "
25747 "destination.  The named partition B<must> contain a filesystem or PV which "
25748 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25749 "online tools).  Virt-resize will check this and give an error if it has not "
25750 "been done."
25751 msgstr ""
25752
25753 # type: textblock
25754 #: ../tools/virt-resize.pl:385
25755 msgid ""
25756 "The amount by which the overall disk must be shrunk (after carrying out all "
25757 "other operations requested by the user) is called the \"deficit\".  For "
25758 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25759 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25760 "would give an error unless the user specified a partition to shrink and that "
25761 "partition had more than a gigabyte of free space."
25762 msgstr ""
25763
25764 # type: =item
25765 #: ../tools/virt-resize.pl:399
25766 msgid "B<--ignore part>"
25767 msgstr ""
25768
25769 # type: textblock
25770 #: ../tools/virt-resize.pl:401
25771 msgid ""
25772 "Ignore the named partition.  Effectively this means the partition is "
25773 "allocated on the destination disk, but the content is not copied across from "
25774 "the source disk.  The content of the partition will be blank (all zero "
25775 "bytes)."
25776 msgstr ""
25777
25778 # type: =item
25779 #: ../tools/virt-resize.pl:412
25780 msgid "B<--delete part>"
25781 msgstr ""
25782
25783 # type: textblock
25784 #: ../tools/virt-resize.pl:414
25785 msgid ""
25786 "Delete the named partition.  It would be more accurate to describe this as "
25787 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25788 "the original disk image is left intact."
25789 msgstr ""
25790
25791 # type: textblock
25792 #: ../tools/virt-resize.pl:418
25793 msgid ""
25794 "Note that when you delete a partition, then anything contained in the "
25795 "partition is also deleted.  Furthermore, this causes any partitions that "
25796 "come after to be I<renumbered>, which can easily make your guest unbootable."
25797 msgstr ""
25798
25799 # type: =item
25800 #: ../tools/virt-resize.pl:429
25801 msgid "B<--LV-expand logvol>"
25802 msgstr ""
25803
25804 # type: textblock
25805 #: ../tools/virt-resize.pl:431
25806 msgid ""
25807 "This takes the logical volume and, as a final step, expands it to fill all "
25808 "the space available in its volume group.  A typical usage, assuming a Linux "
25809 "guest with a single PV C</dev/sda2> and a root device called "
25810 "C</dev/vg_guest/lv_root> would be:"
25811 msgstr ""
25812
25813 # type: verbatim
25814 #: ../tools/virt-resize.pl:436
25815 #, no-wrap
25816 msgid ""
25817 " virt-resize indisk outdisk \\\n"
25818 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25819 "\n"
25820 msgstr ""
25821
25822 # type: textblock
25823 #: ../tools/virt-resize.pl:439
25824 msgid ""
25825 "This would first expand the partition (and PV), and then expand the root "
25826 "device to fill the extra space in the PV."
25827 msgstr ""
25828
25829 # type: textblock
25830 #: ../tools/virt-resize.pl:442
25831 msgid ""
25832 "The contents of the LV are also resized if virt-resize knows how to do "
25833 "that.  You can stop virt-resize from trying to expand the content by using "
25834 "the option C<--no-expand-content>."
25835 msgstr ""
25836
25837 # type: textblock
25838 #: ../tools/virt-resize.pl:446
25839 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25840 msgstr ""
25841
25842 # type: textblock
25843 #: ../tools/virt-resize.pl:449
25844 msgid ""
25845 "You can give this option multiple times, I<but> it doesn't make sense to do "
25846 "this unless the logical volumes you specify are all in different volume "
25847 "groups."
25848 msgstr ""
25849
25850 # type: =item
25851 #: ../tools/virt-resize.pl:457
25852 msgid "B<--no-copy-boot-loader>"
25853 msgstr ""
25854
25855 # type: textblock
25856 #: ../tools/virt-resize.pl:459
25857 msgid ""
25858 "By default, virt-resize copies over some sectors at the start of the disk "
25859 "(up to the beginning of the first partition).  Commonly these sectors "
25860 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25861 "in order for the guest to boot correctly."
25862 msgstr ""
25863
25864 # type: textblock
25865 #: ../tools/virt-resize.pl:464
25866 msgid ""
25867 "If you specify this flag, then this initial copy is not done.  You may need "
25868 "to reinstall the boot loader in this case."
25869 msgstr ""
25870
25871 # type: =item
25872 #: ../tools/virt-resize.pl:472
25873 msgid "B<--no-extra-partition>"
25874 msgstr ""
25875
25876 # type: textblock
25877 #: ../tools/virt-resize.pl:474
25878 msgid ""
25879 "By default, virt-resize creates an extra partition if there is any extra, "
25880 "unused space after all resizing has happened.  Use this option to prevent "
25881 "the extra partition from being created.  If you do this then the extra space "
25882 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25883 "tool in the guest."
25884 msgstr ""
25885
25886 # type: textblock
25887 #: ../tools/virt-resize.pl:480
25888 msgid ""
25889 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25890 "will be created."
25891 msgstr ""
25892
25893 # type: =item
25894 #: ../tools/virt-resize.pl:487
25895 msgid "B<--no-expand-content>"
25896 msgstr ""
25897
25898 # type: textblock
25899 #: ../tools/virt-resize.pl:489
25900 msgid ""
25901 "By default, virt-resize will try to expand the direct contents of "
25902 "partitions, if it knows how (see C<--expand> option above)."
25903 msgstr ""
25904
25905 # type: textblock
25906 #: ../tools/virt-resize.pl:492
25907 msgid ""
25908 "If you give the C<--no-expand-content> option then virt-resize will not "
25909 "attempt this."
25910 msgstr ""
25911
25912 # type: =item
25913 #: ../tools/virt-resize.pl:499
25914 msgid "B<-d> | B<--debug>"
25915 msgstr ""
25916
25917 # type: =item
25918 #: ../tools/virt-resize.pl:507
25919 msgid "B<-n> | B<--dryrun>"
25920 msgstr ""
25921
25922 # type: textblock
25923 #: ../tools/virt-resize.pl:509
25924 msgid "Print a summary of what would be done, but don't do anything."
25925 msgstr ""
25926
25927 # type: =item
25928 #: ../tools/virt-resize.pl:515
25929 msgid "B<-q> | B<--quiet>"
25930 msgstr ""
25931
25932 # type: textblock
25933 #: ../tools/virt-resize.pl:517
25934 msgid "Don't print the summary."
25935 msgstr ""
25936
25937 # type: textblock
25938 #: ../tools/virt-resize.pl:525
25939 msgid ""
25940 "Specify the format of the input disk image.  If this flag is not given then "
25941 "it is auto-detected from the image itself."
25942 msgstr ""
25943
25944 # type: textblock
25945 #: ../tools/virt-resize.pl:531
25946 msgid ""
25947 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
25948 "AND NON-SPARSE RAW FORMATS>."
25949 msgstr ""
25950
25951 # type: =item
25952 #: ../tools/virt-resize.pl:538
25953 msgid "B<--output-format> raw"
25954 msgstr ""
25955
25956 # type: textblock
25957 #: ../tools/virt-resize.pl:540
25958 msgid ""
25959 "Specify the format of the output disk image.  If this flag is not given then "
25960 "it is auto-detected from the image itself."
25961 msgstr ""
25962
25963 # type: textblock
25964 #: ../tools/virt-resize.pl:546
25965 msgid ""
25966 "Note that you still need to create the output disk with the right format.  "
25967 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
25968 msgstr ""
25969
25970 # type: =head2
25971 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
25972 msgid "NOTES"
25973 msgstr ""
25974
25975 # type: =head2
25976 #: ../tools/virt-resize.pl:1424
25977 msgid "\"Partition 1 does not end on cylinder boundary.\""
25978 msgstr ""
25979
25980 # type: textblock
25981 #: ../tools/virt-resize.pl:1426
25982 msgid ""
25983 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
25984 "means the partitions will not be aligned to the ancient CHS geometry.  "
25985 "However CHS geometry is meaningless for disks manufactured since the early "
25986 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
25987 "cylinders is not required by any modern operating system."
25988 msgstr ""
25989
25990 # type: =head2
25991 #: ../tools/virt-resize.pl:1433
25992 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25993 msgstr ""
25994
25995 # type: textblock
25996 #: ../tools/virt-resize.pl:1435
25997 msgid ""
25998 "In Windows Vista and later versions, Microsoft switched to using a separate "
25999 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26000 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26001 "the boot partition.  Doing so seems to break the guest completely.  However "
26002 "expanding the second partition (ie. C: drive) should work."
26003 msgstr ""
26004
26005 # type: textblock
26006 #: ../tools/virt-resize.pl:1442
26007 msgid ""
26008 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26009 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26010 "it find errors) is nothing to worry about."
26011 msgstr ""
26012
26013 # type: =head2
26014 #: ../tools/virt-resize.pl:1446
26015 msgid "GUEST BOOT STUCK AT \"GRUB\""
26016 msgstr ""
26017
26018 # type: textblock
26019 #: ../tools/virt-resize.pl:1448
26020 msgid ""
26021 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26022 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26023 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26024 "although we think is to do with partition alignment."
26025 msgstr ""
26026
26027 # type: verbatim
26028 #: ../tools/virt-resize.pl:1453
26029 #, no-wrap
26030 msgid ""
26031 " guestfish -i -a newdisk\n"
26032 " ><fs> cat /boot/grub/device.map\n"
26033 " # check the contents of this file are sensible or\n"
26034 " # edit the file if necessary\n"
26035 " ><fs> grub-install / /dev/vda\n"
26036 " ><fs> exit\n"
26037 "\n"
26038 msgstr ""
26039
26040 # type: textblock
26041 #: ../tools/virt-resize.pl:1460
26042 msgid ""
26043 "For more flexible guest reconfiguration, including if you need to specify "
26044 "other parameters to grub-install, use L<virt-rescue(1)>."
26045 msgstr ""
26046
26047 # type: =head1
26048 #: ../tools/virt-resize.pl:1463
26049 msgid "ALTERNATIVE TOOLS"
26050 msgstr ""
26051
26052 # type: textblock
26053 #: ../tools/virt-resize.pl:1465
26054 msgid ""
26055 "There are several proprietary tools for resizing partitions.  We won't "
26056 "mention any here."
26057 msgstr ""
26058
26059 # type: textblock
26060 #: ../tools/virt-resize.pl:1468
26061 msgid ""
26062 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26063 "operations on disk images.  They can resize and move partitions, but I don't "
26064 "think they can do anything with the contents, and they certainly don't "
26065 "understand LVM."
26066 msgstr ""
26067
26068 # type: textblock
26069 #: ../tools/virt-resize.pl:1473
26070 msgid ""
26071 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26072 "but at a much lower level.  You will probably end up hand-calculating sector "
26073 "offsets, which is something that virt-resize was designed to avoid.  If you "
26074 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26075 "C<--debug> flag."
26076 msgstr ""
26077
26078 # type: textblock
26079 #: ../tools/virt-resize.pl:1488
26080 msgid ""
26081 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
26082 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
26083 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
26084 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
26085 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26086 msgstr ""
26087
26088 # type: textblock
26089 #: ../tools/virt-list-filesystems.pl:32
26090 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
26091 msgstr ""
26092
26093 # type: verbatim
26094 #: ../tools/virt-list-filesystems.pl:36
26095 #, no-wrap
26096 msgid ""
26097 " virt-list-filesystems [--options] domname\n"
26098 "\n"
26099 msgstr ""
26100
26101 # type: verbatim
26102 #: ../tools/virt-list-filesystems.pl:38
26103 #, no-wrap
26104 msgid ""
26105 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
26106 "\n"
26107 msgstr ""
26108
26109 # type: textblock
26110 #: ../tools/virt-list-filesystems.pl:42
26111 msgid ""
26112 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
26113 "are contained in a virtual machine or disk image."
26114 msgstr ""
26115
26116 # type: textblock
26117 #: ../tools/virt-list-filesystems.pl:46
26118 msgid ""
26119 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
26120 "functionality.  For more complex cases you should look at the "
26121 "L<guestfish(1)> tool."
26122 msgstr ""
26123
26124 # type: textblock
26125 #: ../tools/virt-list-filesystems.pl:105
26126 msgid ""
26127 "With this option, C<virt-list-filesystems> displays the type of each "
26128 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
26129 msgstr ""
26130
26131 # type: =item
26132 #: ../tools/virt-list-filesystems.pl:112
26133 msgid "B<-a> | B<--all>"
26134 msgstr ""
26135
26136 # type: textblock
26137 #: ../tools/virt-list-filesystems.pl:114
26138 msgid ""
26139 "Normally we only show mountable filesystems.  If this option is given then "
26140 "swap devices are shown too."
26141 msgstr ""
26142
26143 # type: textblock
26144 #: ../tools/virt-list-filesystems.pl:218
26145 msgid ""
26146 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26147 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26148 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26149 msgstr ""
26150
26151 # type: textblock
26152 #: ../tools/virt-cat.pl:34
26153 msgid "virt-cat - Display a file in a virtual machine"
26154 msgstr ""
26155
26156 # type: verbatim
26157 #: ../tools/virt-cat.pl:38
26158 #, no-wrap
26159 msgid ""
26160 " virt-cat [--options] domname file\n"
26161 "\n"
26162 msgstr ""
26163
26164 # type: verbatim
26165 #: ../tools/virt-cat.pl:40
26166 #, no-wrap
26167 msgid ""
26168 " virt-cat [--options] disk.img [disk.img ...] file\n"
26169 "\n"
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../tools/virt-cat.pl:44
26174 msgid ""
26175 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26176 "C<file> exists in the named virtual machine (or disk image)."
26177 msgstr ""
26178
26179 # type: textblock
26180 #: ../tools/virt-cat.pl:47
26181 msgid ""
26182 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26183 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26184 "tool."
26185 msgstr ""
26186
26187 # type: textblock
26188 #: ../tools/virt-cat.pl:53
26189 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26190 msgstr ""
26191
26192 # type: verbatim
26193 #: ../tools/virt-cat.pl:56
26194 #, no-wrap
26195 msgid ""
26196 " virt-cat mydomain /etc/fstab\n"
26197 "\n"
26198 msgstr ""
26199
26200 # type: textblock
26201 #: ../tools/virt-cat.pl:58
26202 msgid "List syslog messages from a VM:"
26203 msgstr ""
26204
26205 # type: verbatim
26206 #: ../tools/virt-cat.pl:60
26207 #, no-wrap
26208 msgid ""
26209 " virt-cat mydomain /var/log/messages | tail\n"
26210 "\n"
26211 msgstr ""
26212
26213 # type: textblock
26214 #: ../tools/virt-cat.pl:62
26215 msgid "Find out what DHCP IP address a VM acquired:"
26216 msgstr ""
26217
26218 # type: verbatim
26219 #: ../tools/virt-cat.pl:64
26220 #, no-wrap
26221 msgid ""
26222 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26223 "\n"
26224 msgstr ""
26225
26226 # type: textblock
26227 #: ../tools/virt-cat.pl:66
26228 msgid "Find out what packages were recently installed:"
26229 msgstr ""
26230
26231 # type: verbatim
26232 #: ../tools/virt-cat.pl:68
26233 #, no-wrap
26234 msgid ""
26235 " virt-cat mydomain /var/log/yum.log | tail\n"
26236 "\n"
26237 msgstr ""
26238
26239 # type: textblock
26240 #: ../tools/virt-cat.pl:70
26241 msgid "Find out who is logged on inside a virtual machine:"
26242 msgstr ""
26243
26244 # type: verbatim
26245 #: ../tools/virt-cat.pl:72
26246 #, no-wrap
26247 msgid ""
26248 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26249 " who /tmp/utmp\n"
26250 "\n"
26251 msgstr ""
26252
26253 # type: textblock
26254 #: ../tools/virt-cat.pl:75
26255 msgid "or who was logged on:"
26256 msgstr ""
26257
26258 # type: verbatim
26259 #: ../tools/virt-cat.pl:77
26260 #, no-wrap
26261 msgid ""
26262 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26263 " last -f /tmp/wtmp\n"
26264 "\n"
26265 msgstr ""
26266
26267 # type: textblock
26268 #: ../tools/virt-cat.pl:190
26269 msgid ""
26270 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
26271 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26272 msgstr ""
26273
26274 # type: textblock
26275 #: ../tools/virt-tar.pl:34
26276 msgid "virt-tar - Extract or upload files to a virtual machine"
26277 msgstr ""
26278
26279 # type: verbatim
26280 #: ../tools/virt-tar.pl:38
26281 #, no-wrap
26282 msgid ""
26283 " virt-tar [--options] -x domname directory tarball\n"
26284 "\n"
26285 msgstr ""
26286
26287 # type: verbatim
26288 #: ../tools/virt-tar.pl:40
26289 #, no-wrap
26290 msgid ""
26291 " virt-tar [--options] -u domname tarball directory\n"
26292 "\n"
26293 msgstr ""
26294
26295 # type: verbatim
26296 #: ../tools/virt-tar.pl:42
26297 #, no-wrap
26298 msgid ""
26299 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26300 "\n"
26301 msgstr ""
26302
26303 # type: verbatim
26304 #: ../tools/virt-tar.pl:44
26305 #, no-wrap
26306 msgid ""
26307 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26308 "\n"
26309 msgstr ""
26310
26311 # type: textblock
26312 #: ../tools/virt-tar.pl:48
26313 msgid "Download C</home> from the VM into a local tarball:"
26314 msgstr ""
26315
26316 # type: verbatim
26317 #: ../tools/virt-tar.pl:50
26318 #, no-wrap
26319 msgid ""
26320 " virt-tar -x domname /home home.tar\n"
26321 "\n"
26322 msgstr ""
26323
26324 # type: verbatim
26325 #: ../tools/virt-tar.pl:52
26326 #, no-wrap
26327 msgid ""
26328 " virt-tar -zx domname /home home.tar.gz\n"
26329 "\n"
26330 msgstr ""
26331
26332 # type: textblock
26333 #: ../tools/virt-tar.pl:54
26334 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
26335 msgstr ""
26336
26337 # type: verbatim
26338 #: ../tools/virt-tar.pl:56
26339 #, no-wrap
26340 msgid ""
26341 " virt-tar -u domname uploadstuff.tar /tmp\n"
26342 "\n"
26343 msgstr ""
26344
26345 # type: verbatim
26346 #: ../tools/virt-tar.pl:58
26347 #, no-wrap
26348 msgid ""
26349 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
26350 "\n"
26351 msgstr ""
26352
26353 # type: textblock
26354 #: ../tools/virt-tar.pl:62
26355 msgid ""
26356 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
26357 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
26358 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
26359 msgstr ""
26360
26361 # type: textblock
26362 #: ../tools/virt-tar.pl:67
26363 msgid ""
26364 "You can use C<-x> (extract) on live virtual machines, but you might get "
26365 "inconsistent results or errors if there is filesystem activity inside the "
26366 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
26367 "work, but the only way to guarantee consistent results is if the virtual "
26368 "machine is shut down."
26369 msgstr ""
26370
26371 # type: textblock
26372 #: ../tools/virt-tar.pl:75
26373 msgid ""
26374 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
26375 "parts of a guest filesystem.  There are many possibilities: making backups, "
26376 "uploading data files, snooping on guest activity, fixing or customizing "
26377 "guests, etc."
26378 msgstr ""
26379
26380 # type: textblock
26381 #: ../tools/virt-tar.pl:80
26382 msgid ""
26383 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
26384 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
26385 "should look at the L<guestfish(1)> tool."
26386 msgstr ""
26387
26388 # type: textblock
26389 #: ../tools/virt-tar.pl:84
26390 msgid ""
26391 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
26392 "its contents (recursively) from the virtual machine into a local tarball.  "
26393 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
26394 "virtual machine.  You cannot use these two options together."
26395 msgstr ""
26396
26397 # type: textblock
26398 #: ../tools/virt-tar.pl:90
26399 msgid ""
26400 "In addition, you may need to use the C<-z> (gZip) option to enable "
26401 "compression.  When uploading, you have to specify C<-z> if the upload file "
26402 "is compressed because virt-tar won't detect this on its own."
26403 msgstr ""
26404
26405 # type: textblock
26406 #: ../tools/virt-tar.pl:94
26407 msgid ""
26408 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
26409 "example it cannot do PKZip files or bzip2 compression.  If you want that "
26410 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
26411 "the L<libguestfs(3)> API)."
26412 msgstr ""
26413
26414 # type: =item
26415 #: ../tools/virt-tar.pl:152
26416 msgid "B<-x> | B<--extract> | B<--download>"
26417 msgstr ""
26418
26419 # type: =item
26420 #: ../tools/virt-tar.pl:154
26421 msgid "B<-u> | B<--upload>"
26422 msgstr ""
26423
26424 # type: textblock
26425 #: ../tools/virt-tar.pl:156
26426 msgid ""
26427 "Use C<-x> to extract (download) a directory from a virtual machine to a "
26428 "local tarball."
26429 msgstr ""
26430
26431 # type: textblock
26432 #: ../tools/virt-tar.pl:159
26433 msgid ""
26434 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
26435 "Please read the L</WARNING> section above before using this option."
26436 msgstr ""
26437
26438 # type: textblock
26439 #: ../tools/virt-tar.pl:163
26440 msgid "You must specify exactly one of these options."
26441 msgstr ""
26442
26443 # type: =item
26444 #: ../tools/virt-tar.pl:169
26445 msgid "B<-z> | B<--gzip>"
26446 msgstr ""
26447
26448 # type: textblock
26449 #: ../tools/virt-tar.pl:171
26450 msgid "Specify that the input or output tarball is gzip-compressed."
26451 msgstr ""
26452
26453 # type: textblock
26454 #: ../tools/virt-tar.pl:285
26455 msgid ""
26456 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26457 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26458 "L<http://libguestfs.org/>."
26459 msgstr ""
26460
26461 # type: textblock
26462 #: ../tools/virt-rescue.pl:33
26463 msgid "virt-rescue - Run a rescue shell on a virtual machine"
26464 msgstr ""
26465
26466 # type: verbatim
26467 #: ../tools/virt-rescue.pl:37
26468 #, no-wrap
26469 msgid ""
26470 " virt-rescue [--options] domname\n"
26471 "\n"
26472 msgstr ""
26473
26474 # type: verbatim
26475 #: ../tools/virt-rescue.pl:39
26476 #, no-wrap
26477 msgid ""
26478 " virt-rescue [--options] disk.img [disk.img ...]\n"
26479 "\n"
26480 msgstr ""
26481
26482 # type: textblock
26483 #: ../tools/virt-rescue.pl:43
26484 msgid ""
26485 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
26486 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
26487 "you from doing this, but doesn't catch all cases."
26488 msgstr ""
26489
26490 # type: textblock
26491 #: ../tools/virt-rescue.pl:47
26492 msgid ""
26493 "However if you use the I<--ro> (read only) option, then you can attach a "
26494 "shell to a live virtual machine.  The results might be strange or "
26495 "inconsistent at times but you won't get disk corruption."
26496 msgstr ""
26497
26498 # type: textblock
26499 #: ../tools/virt-rescue.pl:53
26500 msgid ""
26501 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
26502 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
26503 "recovery tools which you can use to examine or rescue a virtual machine or "
26504 "disk image."
26505 msgstr ""
26506
26507 # type: textblock
26508 #: ../tools/virt-rescue.pl:58
26509 msgid ""
26510 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
26511 "on disk image(s):"
26512 msgstr ""
26513
26514 # type: verbatim
26515 #: ../tools/virt-rescue.pl:61
26516 #, no-wrap
26517 msgid ""
26518 " virt-rescue GuestName\n"
26519 "\n"
26520 msgstr ""
26521
26522 # type: verbatim
26523 #: ../tools/virt-rescue.pl:63
26524 #, no-wrap
26525 msgid ""
26526 " virt-rescue --ro /path/to/disk.img\n"
26527 "\n"
26528 msgstr ""
26529
26530 # type: verbatim
26531 #: ../tools/virt-rescue.pl:65
26532 #, no-wrap
26533 msgid ""
26534 " virt-rescue /dev/sdc\n"
26535 "\n"
26536 msgstr ""
26537
26538 # type: textblock
26539 #: ../tools/virt-rescue.pl:67
26540 msgid "For live VMs you I<must> use the --ro option."
26541 msgstr ""
26542
26543 # type: textblock
26544 #: ../tools/virt-rescue.pl:69
26545 msgid ""
26546 "When you run virt-rescue on a virtual machine or disk image, you are placed "
26547 "in an interactive bash shell where you can use many ordinary Linux "
26548 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
26549 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
26550 "is an empty directory called C</sysroot> where you can mount filesystems."
26551 msgstr ""
26552
26553 # type: textblock
26554 #: ../tools/virt-rescue.pl:76
26555 msgid ""
26556 "In the example below, we list logical volumes, then choose one to mount "
26557 "under C</sysroot>:"
26558 msgstr ""
26559
26560 # type: verbatim
26561 #: ../tools/virt-rescue.pl:79
26562 #, no-wrap
26563 msgid ""
26564 " ><rescue> lvs\n"
26565 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
26566 " lv_root vg_f11x64 -wi-a-   8.83G\n"
26567 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
26568 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
26569 " ><rescue> ls /sysroot\n"
26570 "\n"
26571 msgstr ""
26572
26573 # type: textblock
26574 #: ../tools/virt-rescue.pl:86
26575 msgid ""
26576 "If you don't know what filesystems are available on the virtual machine then "
26577 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
26578 msgstr ""
26579
26580 # type: textblock
26581 #: ../tools/virt-rescue.pl:92
26582 msgid ""
26583 "Virt-rescue can be used on I<any> disk image file or device, not just a "
26584 "virtual machine.  For example you can use it on a blank file if you want to "
26585 "partition that file (although we would recommend using L<guestfish(1)> "
26586 "instead as it is more suitable for this purpose).  You can even use "
26587 "virt-rescue on things like SD cards."
26588 msgstr ""
26589
26590 # type: textblock
26591 #: ../tools/virt-rescue.pl:98
26592 msgid ""
26593 "This tool is just designed for quick interactive hacking on a virtual "
26594 "machine.  For more structured access to a virtual machine disk image, you "
26595 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
26596 "make scripted changes to guests, use L<guestfish(1)>."
26597 msgstr ""
26598
26599 # type: =item
26600 #: ../tools/virt-rescue.pl:127
26601 msgid "B<--append kernelopts>"
26602 msgstr ""
26603
26604 # type: textblock
26605 #: ../tools/virt-rescue.pl:129
26606 msgid "Pass additional options to the rescue kernel."
26607 msgstr ""
26608
26609 # type: =item
26610 #: ../tools/virt-rescue.pl:164
26611 msgid "B<--memsize MB> | B<-m MB>"
26612 msgstr ""
26613
26614 # type: textblock
26615 #: ../tools/virt-rescue.pl:166
26616 msgid ""
26617 "Change the amount of memory allocated to the rescue system.  The default is "
26618 "set by libguestfs and is small but adequate for running system tools.  The "
26619 "occasional program might need more memory.  The parameter is specified in "
26620 "megabytes."
26621 msgstr ""
26622
26623 # type: =item
26624 #: ../tools/virt-rescue.pl:175
26625 msgid "B<--ro> | B<-r>"
26626 msgstr ""
26627
26628 # type: textblock
26629 #: ../tools/virt-rescue.pl:177
26630 msgid "Open the image read-only."
26631 msgstr ""
26632
26633 # type: textblock
26634 #: ../tools/virt-rescue.pl:189
26635 msgid ""
26636 "Enable SELinux in the rescue appliance.  You should read "
26637 "L<guestfs(3)/SELINUX> before using this option."
26638 msgstr ""
26639
26640 # type: textblock
26641 #: ../tools/virt-rescue.pl:247
26642 msgid ""
26643 "Several environment variables affect virt-rescue.  See "
26644 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
26645 msgstr ""
26646
26647 # type: textblock
26648 #: ../tools/virt-rescue.pl:259
26649 msgid ""
26650 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26651 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26652 msgstr ""
26653
26654 # type: textblock
26655 #: ../tools/virt-make-fs.pl:37
26656 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
26657 msgstr ""
26658
26659 # type: verbatim
26660 #: ../tools/virt-make-fs.pl:41
26661 #, no-wrap
26662 msgid ""
26663 " virt-make-fs [--options] input.tar output.img\n"
26664 "\n"
26665 msgstr ""
26666
26667 # type: verbatim
26668 #: ../tools/virt-make-fs.pl:43
26669 #, no-wrap
26670 msgid ""
26671 " virt-make-fs [--options] input.tar.gz output.img\n"
26672 "\n"
26673 msgstr ""
26674
26675 # type: verbatim
26676 #: ../tools/virt-make-fs.pl:45
26677 #, no-wrap
26678 msgid ""
26679 " virt-make-fs [--options] directory output.img\n"
26680 "\n"
26681 msgstr ""
26682
26683 # type: textblock
26684 #: ../tools/virt-make-fs.pl:49
26685 msgid ""
26686 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
26687 "archive or some files in a directory.  It is similar to tools like "
26688 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
26689 "it can create common filesystem types like ext2/3 or NTFS, which can be "
26690 "useful if you want to attach these filesystems to existing virtual machines "
26691 "(eg. to import large amounts of read-only data to a VM)."
26692 msgstr ""
26693
26694 # type: textblock
26695 #: ../tools/virt-make-fs.pl:57
26696 msgid "Basic usage is:"
26697 msgstr ""
26698
26699 # type: verbatim
26700 #: ../tools/virt-make-fs.pl:59
26701 #, no-wrap
26702 msgid ""
26703 " virt-make-fs input output\n"
26704 "\n"
26705 msgstr ""
26706
26707 # type: textblock
26708 #: ../tools/virt-make-fs.pl:61
26709 msgid ""
26710 "where C<input> is either a directory containing files that you want to add, "
26711 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
26712 "C<output> is a disk image.  The input type is detected automatically.  The "
26713 "output disk image defaults to a raw ext2 image unless you specify extra "
26714 "flags (see L</OPTIONS> below)."
26715 msgstr ""
26716
26717 # type: =head2
26718 #: ../tools/virt-make-fs.pl:67
26719 msgid "EXTRA SPACE"
26720 msgstr ""
26721
26722 # type: textblock
26723 #: ../tools/virt-make-fs.pl:69
26724 msgid ""
26725 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
26726 "the files that it contains, but might have extra space.  Depending on how "
26727 "you are going to use the output, you might think this extra space is wasted "
26728 "and want to minimize it, or you might want to leave space so that more files "
26729 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
26730 "but you can use the C<--size> flag to leave space in the filesystem if you "
26731 "want it."
26732 msgstr ""
26733
26734 # type: textblock
26735 #: ../tools/virt-make-fs.pl:77
26736 msgid ""
26737 "An alternative way to leave extra space but not make the output image any "
26738 "bigger is to use an alternative disk image format (instead of the default "
26739 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
26740 "image format (check your hypervisor supports this before using it).  This "
26741 "allows you to choose a large C<--size> but the extra space won't actually be "
26742 "allocated in the image until you try to store something in it."
26743 msgstr ""
26744
26745 # type: textblock
26746 #: ../tools/virt-make-fs.pl:85
26747 msgid ""
26748 "Don't forget that you can also use local commands including L<resize2fs(8)> "
26749 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
26750 "virt-make-resize to build another image from scratch."
26751 msgstr ""
26752
26753 # type: =head3
26754 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
26755 msgid "EXAMPLE"
26756 msgstr ""
26757
26758 # type: verbatim
26759 #: ../tools/virt-make-fs.pl:91
26760 #, no-wrap
26761 msgid ""
26762 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
26763 "\n"
26764 msgstr ""
26765
26766 # type: =head2
26767 #: ../tools/virt-make-fs.pl:93
26768 msgid "FILESYSTEM TYPE"
26769 msgstr ""
26770
26771 # type: textblock
26772 #: ../tools/virt-make-fs.pl:95
26773 msgid ""
26774 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
26775 "libguestfs supports can be used (but I<not> read-only formats like "
26776 "ISO9660).  Here are some of the more common choices:"
26777 msgstr ""
26778
26779 # type: =item
26780 #: ../tools/virt-make-fs.pl:101
26781 msgid "I<ext3>"
26782 msgstr ""
26783
26784 # type: textblock
26785 #: ../tools/virt-make-fs.pl:103
26786 msgid ""
26787 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
26788 "you are not going to use the filesystem in a way that requires the journal, "
26789 "then this is just wasted overhead."
26790 msgstr ""
26791
26792 # type: =item
26793 #: ../tools/virt-make-fs.pl:107
26794 msgid "I<ntfs> or I<vfat>"
26795 msgstr ""
26796
26797 # type: textblock
26798 #: ../tools/virt-make-fs.pl:109
26799 msgid "Useful if exporting data to a Windows guest."
26800 msgstr ""
26801
26802 # type: textblock
26803 #: ../tools/virt-make-fs.pl:111
26804 msgid ""
26805 "I<Note for vfat>: The tar archive or local directory must only contain files "
26806 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
26807 "program running within libguestfs is unable to change the ownership of "
26808 "non-root files, since vfat itself does not support this."
26809 msgstr ""
26810
26811 # type: =item
26812 #: ../tools/virt-make-fs.pl:116
26813 msgid "I<minix>"
26814 msgstr ""
26815
26816 # type: textblock
26817 #: ../tools/virt-make-fs.pl:118
26818 msgid ""
26819 "Lower overhead than C<ext2>, but certain limitations on filename length and "
26820 "total filesystem size."
26821 msgstr ""
26822
26823 # type: verbatim
26824 #: ../tools/virt-make-fs.pl:125
26825 #, no-wrap
26826 msgid ""
26827 " virt-make-fs --type=minix input minixfs.img\n"
26828 "\n"
26829 msgstr ""
26830
26831 # type: =head2
26832 #: ../tools/virt-make-fs.pl:127
26833 msgid "TO PARTITION OR NOT TO PARTITION"
26834 msgstr ""
26835
26836 # type: textblock
26837 #: ../tools/virt-make-fs.pl:129
26838 msgid "Optionally virt-make-fs can add a partition table to the output disk."
26839 msgstr ""
26840
26841 # type: textblock
26842 #: ../tools/virt-make-fs.pl:131
26843 msgid ""
26844 "Adding a partition can make the disk image more compatible with certain "
26845 "virtualized operating systems which don't expect to see a filesystem "
26846 "directly located on a block device (Linux doesn't care and will happily "
26847 "handle both types)."
26848 msgstr ""
26849
26850 # type: textblock
26851 #: ../tools/virt-make-fs.pl:136
26852 msgid ""
26853 "On the other hand, if you have a partition table then the output image is no "
26854 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
26855 "directly on a partitioned disk image.  (However libguestfs tools such as "
26856 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
26857 msgstr ""
26858
26859 # type: textblock
26860 #: ../tools/virt-make-fs.pl:144
26861 msgid "Add an MBR partition:"
26862 msgstr ""
26863
26864 # type: verbatim
26865 #: ../tools/virt-make-fs.pl:146
26866 #, no-wrap
26867 msgid ""
26868 " virt-make-fs --partition -- input disk.img\n"
26869 "\n"
26870 msgstr ""
26871
26872 # type: textblock
26873 #: ../tools/virt-make-fs.pl:148
26874 msgid ""
26875 "If the output disk image could be terabyte-sized or larger, it's better to "
26876 "use an EFI/GPT-compatible partition table:"
26877 msgstr ""
26878
26879 # type: verbatim
26880 #: ../tools/virt-make-fs.pl:151
26881 #, no-wrap
26882 msgid ""
26883 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
26884 "\n"
26885 msgstr ""
26886
26887 # type: textblock
26888 #: ../tools/virt-make-fs.pl:179
26889 msgid "Enable debugging information."
26890 msgstr ""
26891
26892 # type: =item
26893 #: ../tools/virt-make-fs.pl:185
26894 msgid "B<--size=E<lt>NE<gt>>"
26895 msgstr ""
26896
26897 # type: =item
26898 #: ../tools/virt-make-fs.pl:187
26899 msgid "B<--size=+E<lt>NE<gt>>"
26900 msgstr ""
26901
26902 # type: =item
26903 #: ../tools/virt-make-fs.pl:189
26904 msgid "B<-s E<lt>NE<gt>>"
26905 msgstr ""
26906
26907 # type: =item
26908 #: ../tools/virt-make-fs.pl:191
26909 msgid "B<-s +E<lt>NE<gt>>"
26910 msgstr ""
26911
26912 # type: textblock
26913 #: ../tools/virt-make-fs.pl:193
26914 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
26915 msgstr ""
26916
26917 # type: textblock
26918 #: ../tools/virt-make-fs.pl:196
26919 msgid ""
26920 "If this option is I<not> given, then the output image will be just large "
26921 "enough to contain all the files, with not much wasted space."
26922 msgstr ""
26923
26924 # type: textblock
26925 #: ../tools/virt-make-fs.pl:199
26926 msgid ""
26927 "To choose a fixed size output disk, specify an absolute number followed by "
26928 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
26929 "Petabytes or Exabytes.  This must be large enough to contain all the input "
26930 "files, else you will get an error."
26931 msgstr ""
26932
26933 # type: textblock
26934 #: ../tools/virt-make-fs.pl:204
26935 msgid ""
26936 "To leave extra space, specify C<+> (plus sign) and a number followed by "
26937 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
26938 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
26939 "the input files, and (approximately) an extra 200 MB free space."
26940 msgstr ""
26941
26942 # type: textblock
26943 #: ../tools/virt-make-fs.pl:210
26944 msgid ""
26945 "Note that virt-make-fs estimates free space, and therefore will not produce "
26946 "filesystems containing precisely the free space requested.  (It is much more "
26947 "expensive and time-consuming to produce a filesystem which has precisely the "
26948 "desired free space)."
26949 msgstr ""
26950
26951 # type: =item
26952 #: ../tools/virt-make-fs.pl:219
26953 msgid "B<--format=E<lt>fmtE<gt>>"
26954 msgstr ""
26955
26956 # type: =item
26957 #: ../tools/virt-make-fs.pl:221
26958 msgid "B<-F E<lt>fmtE<gt>>"
26959 msgstr ""
26960
26961 # type: textblock
26962 #: ../tools/virt-make-fs.pl:223
26963 msgid "Choose the output disk image format."
26964 msgstr ""
26965
26966 # type: textblock
26967 #: ../tools/virt-make-fs.pl:225
26968 msgid "The default is C<raw> (raw disk image)."
26969 msgstr ""
26970
26971 # type: textblock
26972 #: ../tools/virt-make-fs.pl:227
26973 msgid ""
26974 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
26975 "that would really make sense here is C<qcow2>."
26976 msgstr ""
26977
26978 # type: =item
26979 #: ../tools/virt-make-fs.pl:234
26980 msgid "B<--type=E<lt>fsE<gt>>"
26981 msgstr ""
26982
26983 # type: =item
26984 #: ../tools/virt-make-fs.pl:236
26985 msgid "B<-t E<lt>fsE<gt>>"
26986 msgstr ""
26987
26988 # type: textblock
26989 #: ../tools/virt-make-fs.pl:238
26990 msgid "Choose the output filesystem type."
26991 msgstr ""
26992
26993 # type: textblock
26994 #: ../tools/virt-make-fs.pl:240
26995 msgid "The default is C<ext2>."
26996 msgstr ""
26997
26998 # type: textblock
26999 #: ../tools/virt-make-fs.pl:242
27000 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
27001 msgstr ""
27002
27003 # type: =item
27004 #: ../tools/virt-make-fs.pl:249
27005 msgid "B<--partition>"
27006 msgstr ""
27007
27008 # type: =item
27009 #: ../tools/virt-make-fs.pl:251
27010 msgid "B<--partition=E<lt>parttypeE<gt>>"
27011 msgstr ""
27012
27013 # type: textblock
27014 #: ../tools/virt-make-fs.pl:253
27015 msgid ""
27016 "If specified, this flag adds an MBR partition table to the output disk "
27017 "image."
27018 msgstr ""
27019
27020 # type: textblock
27021 #: ../tools/virt-make-fs.pl:256
27022 msgid ""
27023 "You can change the partition table type, eg. C<--partition=gpt> for large "
27024 "disks."
27025 msgstr ""
27026
27027 # type: textblock
27028 #: ../tools/virt-make-fs.pl:259
27029 msgid ""
27030 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27031 "might consider the next parameter to be the partition type.  For example:"
27032 msgstr ""
27033
27034 # type: verbatim
27035 #: ../tools/virt-make-fs.pl:263
27036 #, no-wrap
27037 msgid ""
27038 " virt-make-fs --partition input.tar ...\n"
27039 "\n"
27040 msgstr ""
27041
27042 # type: textblock
27043 #: ../tools/virt-make-fs.pl:265
27044 msgid ""
27045 "would cause virt-make-fs to think you wanted to use a partition type of "
27046 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27047 "dash) between options and the input file argument:"
27048 msgstr ""
27049
27050 # type: verbatim
27051 #: ../tools/virt-make-fs.pl:269
27052 #, no-wrap
27053 msgid ""
27054 " virt-make-fs --partition -- input.tar ...\n"
27055 "\n"
27056 msgstr ""
27057
27058 # type: textblock
27059 #: ../tools/virt-make-fs.pl:536
27060 msgid ""
27061 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27062 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
27063 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27064 msgstr ""
27065
27066 # type: verbatim
27067 #: ../tools/virt-make-fs.pl:553
27068 #, no-wrap
27069 msgid ""
27070 " export LIBGUESTFS_DEBUG=1\n"
27071 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
27072 "\n"
27073 msgstr ""
27074
27075 # type: textblock
27076 #: ../tools/virt-make-fs.pl:556
27077 msgid ""
27078 "Attach /tmp/virt-make-fs.log to a new bug report at "
27079 "L<https://bugzilla.redhat.com/>"
27080 msgstr ""
27081
27082 # type: textblock
27083 #: ../tools/virt-list-partitions.pl:32
27084 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
27085 msgstr ""
27086
27087 # type: verbatim
27088 #: ../tools/virt-list-partitions.pl:36
27089 #, no-wrap
27090 msgid ""
27091 " virt-list-partitions [--options] domname\n"
27092 "\n"
27093 msgstr ""
27094
27095 # type: verbatim
27096 #: ../tools/virt-list-partitions.pl:38
27097 #, no-wrap
27098 msgid ""
27099 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
27100 "\n"
27101 msgstr ""
27102
27103 # type: textblock
27104 #: ../tools/virt-list-partitions.pl:42
27105 msgid ""
27106 "C<virt-list-partitions> is a command line tool to list the partitions that "
27107 "are contained in a virtual machine or disk image.  It is mainly useful as a "
27108 "first step to using L<virt-resize(1)>."
27109 msgstr ""
27110
27111 # type: textblock
27112 #: ../tools/virt-list-partitions.pl:47
27113 msgid ""
27114 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
27115 "functionality.  For more complex cases you should look at the "
27116 "L<guestfish(1)> tool."
27117 msgstr ""
27118
27119 # type: =item
27120 #: ../tools/virt-list-partitions.pl:104
27121 msgid "B<-h> | B<--human-readable>"
27122 msgstr ""
27123
27124 # type: textblock
27125 #: ../tools/virt-list-partitions.pl:106
27126 msgid "Show sizes in human-readable form (eg. \"1G\")."
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-list-partitions.pl:114
27131 msgid ""
27132 "With this option, C<virt-list-partitions> displays the type and size of each "
27133 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
27134 msgstr ""
27135
27136 # type: =item
27137 #: ../tools/virt-list-partitions.pl:121
27138 msgid "B<-t> | B<--total>"
27139 msgstr ""
27140
27141 # type: textblock
27142 #: ../tools/virt-list-partitions.pl:123
27143 msgid "Display the total size of each block device (as a separate row or rows)."
27144 msgstr ""
27145
27146 # type: textblock
27147 #: ../tools/virt-list-partitions.pl:256
27148 msgid ""
27149 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
27150 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27151 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27152 msgstr ""