Version 1.7.3.
[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.7.3\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-08 15:50+0000\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:31 ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-cat.pl:29 ../tools/virt-tar.pl:29 ../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:33 ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../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:37 ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../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:20 ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../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:393 ../src/guestfs.pod:1224 ../src/guestfs.pod:1229 ../src/guestfs.pod:1233 ../src/guestfs.pod:1449 ../src/guestfs.pod:1454 ../src/guestfs.pod:1458 ../src/guestfs.pod:1560 ../src/guestfs.pod:1564 ../src/guestfs.pod:1568 ../src/guestfs.pod:1573 ../src/guestfs.pod:1581 ../src/guestfs.pod:1600 ../src/guestfs.pod:1608 ../src/guestfs.pod:1838 ../src/guestfs.pod:1844 ../src/guestfs.pod:1849 ../src/guestfs.pod:1855 ../src/guestfs.pod:1962 ../src/guestfs.pod:1966 ../src/guestfs.pod:1970 ../src/guestfs.pod:1974 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:509 ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:1562 ../src/guestfs-actions.pod:1566 ../src/guestfs-actions.pod:1570 ../src/guestfs-actions.pod:1578 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1600 ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1742 ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:1756 ../src/guestfs-actions.pod:1817 ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:1826 ../fish/guestfish.pod:376 ../fish/guestfish.pod:380 ../fish/guestfish.pod:384 ../fish/guestfish.pod:388 ../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 ../inspector/virt-inspector.pl:584 ../inspector/virt-inspector.pl:588 ../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 "I<Security:> It is not safe to run commands from untrusted, possibly "
807 "malicious guests.  These commands may attempt to exploit your program by "
808 "sending unexpected output.  They could also try to exploit the Linux kernel "
809 "or qemu provided by the libguestfs appliance.  They could use the network "
810 "provided by the libguestfs appliance to bypass ordinary network partitions "
811 "and firewalls.  They could use the elevated privileges or different SELinux "
812 "context of your program to their advantage."
813 msgstr ""
814
815 # type: textblock
816 #: ../src/guestfs.pod:404
817 msgid ""
818 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
819 "(a script which runs when the guest next boots normally), and to have this "
820 "script run the commands you want in the normal context of the running guest, "
821 "network security and so on."
822 msgstr ""
823
824 # type: textblock
825 #: ../src/guestfs.pod:411
826 msgid ""
827 "The two main API calls to run commands are L</guestfs_command> and "
828 "L</guestfs_sh> (there are also variations)."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:414
833 msgid ""
834 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
835 "shell globs, redirections, etc will work."
836 msgstr ""
837
838 # type: =head2
839 #: ../src/guestfs.pod:417
840 msgid "CONFIGURATION FILES"
841 msgstr ""
842
843 # type: textblock
844 #: ../src/guestfs.pod:419
845 msgid ""
846 "To read and write configuration files in Linux guest filesystems, we "
847 "strongly recommend using Augeas.  For example, Augeas understands how to "
848 "read and write, say, a Linux shadow password file or X.org configuration "
849 "file, and so avoids you having to write that code."
850 msgstr ""
851
852 # type: textblock
853 #: ../src/guestfs.pod:424
854 msgid ""
855 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
856 "document Augeas itself here because there is excellent documentation on the "
857 "L<http://augeas.net/> website."
858 msgstr ""
859
860 # type: textblock
861 #: ../src/guestfs.pod:428
862 msgid ""
863 "If you don't want to use Augeas (you fool!) then try calling "
864 "L</guestfs_read_lines> to get the file as a list of lines which you can "
865 "iterate over."
866 msgstr ""
867
868 # type: =head2
869 #: ../src/guestfs.pod:432
870 msgid "SELINUX"
871 msgstr ""
872
873 # type: textblock
874 #: ../src/guestfs.pod:434
875 msgid ""
876 "We support SELinux guests.  To ensure that labeling happens correctly in "
877 "SELinux guests, you need to enable SELinux and load the guest's policy:"
878 msgstr ""
879
880 # type: =item
881 #: ../src/guestfs.pod:440 ../src/guestfs.pod:953
882 msgid "1."
883 msgstr ""
884
885 # type: textblock
886 #: ../src/guestfs.pod:442
887 msgid "Before launching, do:"
888 msgstr ""
889
890 # type: verbatim
891 #: ../src/guestfs.pod:444
892 #, no-wrap
893 msgid ""
894 " guestfs_set_selinux (g, 1);\n"
895 "\n"
896 msgstr ""
897
898 # type: =item
899 #: ../src/guestfs.pod:446 ../src/guestfs.pod:957
900 msgid "2."
901 msgstr ""
902
903 # type: textblock
904 #: ../src/guestfs.pod:448
905 msgid ""
906 "After mounting the guest's filesystem(s), load the policy.  This is best "
907 "done by running the L<load_policy(8)> command in the guest itself:"
908 msgstr ""
909
910 # type: verbatim
911 #: ../src/guestfs.pod:452
912 #, no-wrap
913 msgid ""
914 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
915 "\n"
916 msgstr ""
917
918 # type: textblock
919 #: ../src/guestfs.pod:454
920 msgid ""
921 "(Older versions of C<load_policy> require you to specify the name of the "
922 "policy file)."
923 msgstr ""
924
925 # type: =item
926 #: ../src/guestfs.pod:457 ../src/guestfs.pod:963
927 msgid "3."
928 msgstr ""
929
930 # type: textblock
931 #: ../src/guestfs.pod:459
932 msgid ""
933 "Optionally, set the security context for the API.  The correct security "
934 "context to use can only be known by inspecting the guest.  As an example:"
935 msgstr ""
936
937 # type: verbatim
938 #: ../src/guestfs.pod:463
939 #, no-wrap
940 msgid ""
941 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
942 "\n"
943 msgstr ""
944
945 # type: textblock
946 #: ../src/guestfs.pod:467
947 msgid "This will work for running commands and editing existing files."
948 msgstr ""
949
950 # type: textblock
951 #: ../src/guestfs.pod:469
952 msgid ""
953 "When new files are created, you may need to label them explicitly, for "
954 "example by running the external command C<restorecon pathname>."
955 msgstr ""
956
957 # type: =head2
958 #: ../src/guestfs.pod:473
959 msgid "UMASK"
960 msgstr ""
961
962 # type: textblock
963 #: ../src/guestfs.pod:475
964 msgid ""
965 "Certain calls are affected by the current file mode creation mask (the "
966 "\"umask\").  In particular ones which create files or directories, such as "
967 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
968 "either the default mode that the file is created with or modifies the mode "
969 "that you supply."
970 msgstr ""
971
972 # type: textblock
973 #: ../src/guestfs.pod:481
974 msgid ""
975 "The default umask is C<022>, so files are created with modes such as C<0644> "
976 "and directories with C<0755>."
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:484
981 msgid ""
982 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
983 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
984 "L</guestfs_chmod> after creating each file or directory."
985 msgstr ""
986
987 # type: textblock
988 #: ../src/guestfs.pod:488
989 msgid "For more information about umask, see L<umask(2)>."
990 msgstr ""
991
992 # type: =head1
993 #: ../src/guestfs.pod:490 ../fish/guestfish.pod:669
994 msgid "ENCRYPTED DISKS"
995 msgstr ""
996
997 # type: textblock
998 #: ../src/guestfs.pod:492
999 msgid ""
1000 "Libguestfs allows you to access Linux guests which have been encrypted using "
1001 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1002 "standard.  This includes nearly all whole disk encryption systems used by "
1003 "modern Linux guests."
1004 msgstr ""
1005
1006 # type: textblock
1007 #: ../src/guestfs.pod:498
1008 msgid ""
1009 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1010 "returns the string C<crypto_LUKS>)."
1011 msgstr ""
1012
1013 # type: textblock
1014 #: ../src/guestfs.pod:501
1015 msgid ""
1016 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1017 "will require the passphrase!"
1018 msgstr ""
1019
1020 # type: textblock
1021 #: ../src/guestfs.pod:504
1022 msgid ""
1023 "Opening a LUKS device creates a new device mapper device called "
1024 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1025 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1026 "decrypted from and encrypted to the underlying block device respectively."
1027 msgstr ""
1028
1029 # type: textblock
1030 #: ../src/guestfs.pod:510
1031 msgid ""
1032 "LVM volume groups on the device can be made visible by calling "
1033 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1034 "volume(s) can now be mounted in the usual way."
1035 msgstr ""
1036
1037 # type: textblock
1038 #: ../src/guestfs.pod:514
1039 msgid ""
1040 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1041 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1042 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1043 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1044 "underlying encrypted block device)."
1045 msgstr ""
1046
1047 # type: =head2
1048 #: ../src/guestfs.pod:521
1049 msgid "INSPECTION"
1050 msgstr ""
1051
1052 # type: textblock
1053 #: ../src/guestfs.pod:523
1054 msgid ""
1055 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1056 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1057 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1058 "frequently used part of this library has been rewritten in C and moved into "
1059 "the core code)."
1060 msgstr ""
1061
1062 # type: textblock
1063 #: ../src/guestfs.pod:529
1064 msgid ""
1065 "Add all disks belonging to the unknown virtual machine and call "
1066 "L</guestfs_launch> in the usual way."
1067 msgstr ""
1068
1069 # type: textblock
1070 #: ../src/guestfs.pod:532
1071 msgid ""
1072 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1073 "and certain heuristics, and returns a list of operating systems that were "
1074 "found.  An empty list means none were found.  A single element is the root "
1075 "filesystem of the operating system.  For dual- or multi-boot guests, "
1076 "multiple roots can be returned, each one corresponding to a separate "
1077 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1078 "world of virtualization, but since this scenario can happen, we have built "
1079 "libguestfs to deal with it.)"
1080 msgstr ""
1081
1082 # type: textblock
1083 #: ../src/guestfs.pod:541
1084 msgid ""
1085 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1086 "to get additional details about that operating system.  For example, call "
1087 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1088 "Windows and Linux-based operating systems respectively."
1089 msgstr ""
1090
1091 # type: textblock
1092 #: ../src/guestfs.pod:547
1093 msgid ""
1094 "Un*x-like and Linux-based operating systems usually consist of several "
1095 "filesystems which are mounted at boot time (for example, a separate boot "
1096 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1097 "filesystems correspond to mount points.  Call "
1098 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1099 "hash table like this example:"
1100 msgstr ""
1101
1102 # type: verbatim
1103 #: ../src/guestfs.pod:554
1104 #, no-wrap
1105 msgid ""
1106 " /boot => /dev/sda1\n"
1107 " /     => /dev/vg_guest/lv_root\n"
1108 " /usr  => /dev/vg_guest/lv_usr\n"
1109 "\n"
1110 msgstr ""
1111
1112 # type: textblock
1113 #: ../src/guestfs.pod:558
1114 msgid ""
1115 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1116 "filesystems as suggested."
1117 msgstr ""
1118
1119 # type: textblock
1120 #: ../src/guestfs.pod:561
1121 msgid ""
1122 "Be careful to mount filesystems in the right order (eg. C</> before "
1123 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1124 "work."
1125 msgstr ""
1126
1127 # type: textblock
1128 #: ../src/guestfs.pod:565
1129 msgid ""
1130 "Inspection currently only works for some common operating systems.  "
1131 "Contributors are welcome to send patches for other operating systems that we "
1132 "currently cannot detect."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:569
1137 msgid ""
1138 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1139 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1140 "encrypted devices."
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:573
1145 msgid ""
1146 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1147 "inspection and caches the results in the guest handle.  Subsequent calls to "
1148 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1149 "re-read the disks.  If you change the content of the guest disks, you can "
1150 "redo inspection by calling L</guestfs_inspect_os> again."
1151 msgstr ""
1152
1153 # type: =head2
1154 #: ../src/guestfs.pod:580
1155 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1156 msgstr ""
1157
1158 # type: textblock
1159 #: ../src/guestfs.pod:582
1160 msgid ""
1161 "Libguestfs can mount NTFS partitions.  It does this using the "
1162 "L<http://www.ntfs-3g.org/> driver."
1163 msgstr ""
1164
1165 # type: textblock
1166 #: ../src/guestfs.pod:585
1167 msgid ""
1168 "DOS and Windows still use drive letters, and the filesystems are always "
1169 "treated as case insensitive by Windows itself, and therefore you might find "
1170 "a Windows configuration file referring to a path like "
1171 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1172 "that directory might be referred to as C</WINDOWS/System32>."
1173 msgstr ""
1174
1175 # type: textblock
1176 #: ../src/guestfs.pod:591
1177 msgid ""
1178 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1179 "libguestfs to read the appropriate Windows Registry and configuration files, "
1180 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1181 "L<virt-inspector(1)>)."
1182 msgstr ""
1183
1184 # type: textblock
1185 #: ../src/guestfs.pod:596
1186 msgid ""
1187 "Replacing backslash characters with forward slash characters is also outside "
1188 "the scope of libguestfs, but something that you can easily do."
1189 msgstr ""
1190
1191 # type: textblock
1192 #: ../src/guestfs.pod:599
1193 msgid ""
1194 "Where we can help is in resolving the case insensitivity of paths.  For "
1195 "this, call L</guestfs_case_sensitive_path>."
1196 msgstr ""
1197
1198 # type: textblock
1199 #: ../src/guestfs.pod:602
1200 msgid ""
1201 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1202 "files, through the library C<hivex> which is part of the libguestfs project "
1203 "although ships as a separate tarball.  You have to locate and download the "
1204 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1205 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1206 "L<virt-win-reg(1)> for more help on this issue."
1207 msgstr ""
1208
1209 # type: =head2
1210 #: ../src/guestfs.pod:610
1211 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1212 msgstr ""
1213
1214 # type: textblock
1215 #: ../src/guestfs.pod:612
1216 msgid ""
1217 "Although we don't want to discourage you from using the C API, we will "
1218 "mention here that the same API is also available in other languages."
1219 msgstr ""
1220
1221 # type: textblock
1222 #: ../src/guestfs.pod:615
1223 msgid ""
1224 "The API is broadly identical in all supported languages.  This means that "
1225 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1226 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1227 "words, a straightforward, predictable isomorphism between each language."
1228 msgstr ""
1229
1230 # type: textblock
1231 #: ../src/guestfs.pod:621
1232 msgid ""
1233 "Error messages are automatically transformed into exceptions if the language "
1234 "supports it."
1235 msgstr ""
1236
1237 # type: textblock
1238 #: ../src/guestfs.pod:624
1239 msgid ""
1240 "We don't try to \"object orientify\" parts of the API in OO languages, "
1241 "although contributors are welcome to write higher level APIs above what we "
1242 "provide in their favourite languages if they wish."
1243 msgstr ""
1244
1245 # type: =item
1246 #: ../src/guestfs.pod:630
1247 msgid "B<C++>"
1248 msgstr ""
1249
1250 # type: textblock
1251 #: ../src/guestfs.pod:632
1252 msgid ""
1253 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1254 "identical to the C API.  C++ classes and exceptions are not used."
1255 msgstr ""
1256
1257 # type: =item
1258 #: ../src/guestfs.pod:636
1259 msgid "B<C#>"
1260 msgstr ""
1261
1262 # type: textblock
1263 #: ../src/guestfs.pod:638
1264 msgid ""
1265 "The C# bindings are highly experimental.  Please read the warnings at the "
1266 "top of C<csharp/Libguestfs.cs>."
1267 msgstr ""
1268
1269 # type: =item
1270 #: ../src/guestfs.pod:641
1271 msgid "B<Haskell>"
1272 msgstr ""
1273
1274 # type: textblock
1275 #: ../src/guestfs.pod:643
1276 msgid ""
1277 "This is the only language binding that is working but incomplete.  Only "
1278 "calls which return simple integers have been bound in Haskell, and we are "
1279 "looking for help to complete this binding."
1280 msgstr ""
1281
1282 # type: =item
1283 #: ../src/guestfs.pod:647
1284 msgid "B<Java>"
1285 msgstr ""
1286
1287 # type: textblock
1288 #: ../src/guestfs.pod:649
1289 msgid ""
1290 "Full documentation is contained in the Javadoc which is distributed with "
1291 "libguestfs."
1292 msgstr ""
1293
1294 # type: =item
1295 #: ../src/guestfs.pod:652
1296 msgid "B<OCaml>"
1297 msgstr ""
1298
1299 # type: textblock
1300 #: ../src/guestfs.pod:654
1301 msgid "For documentation see the file C<guestfs.mli>."
1302 msgstr ""
1303
1304 # type: =item
1305 #: ../src/guestfs.pod:656
1306 msgid "B<Perl>"
1307 msgstr ""
1308
1309 # type: textblock
1310 #: ../src/guestfs.pod:658
1311 msgid "For documentation see L<Sys::Guestfs(3)>."
1312 msgstr ""
1313
1314 # type: =item
1315 #: ../src/guestfs.pod:660
1316 msgid "B<PHP>"
1317 msgstr ""
1318
1319 # type: textblock
1320 #: ../src/guestfs.pod:662
1321 msgid ""
1322 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1323 "the php-libguestfs package for your distribution."
1324 msgstr ""
1325
1326 # type: textblock
1327 #: ../src/guestfs.pod:665
1328 msgid "The PHP binding only works correctly on 64 bit machines."
1329 msgstr ""
1330
1331 # type: =item
1332 #: ../src/guestfs.pod:667
1333 msgid "B<Python>"
1334 msgstr ""
1335
1336 # type: textblock
1337 #: ../src/guestfs.pod:669
1338 msgid "For documentation do:"
1339 msgstr ""
1340
1341 # type: verbatim
1342 #: ../src/guestfs.pod:671
1343 #, no-wrap
1344 msgid ""
1345 " $ python\n"
1346 " >>> import guestfs\n"
1347 " >>> help (guestfs)\n"
1348 "\n"
1349 msgstr ""
1350
1351 # type: =item
1352 #: ../src/guestfs.pod:675
1353 msgid "B<Ruby>"
1354 msgstr ""
1355
1356 # type: textblock
1357 #: ../src/guestfs.pod:677
1358 msgid ""
1359 "Use the Guestfs module.  There is no Ruby-specific documentation, but you "
1360 "can find examples written in Ruby in the libguestfs source."
1361 msgstr ""
1362
1363 # type: =item
1364 #: ../src/guestfs.pod:680
1365 msgid "B<shell scripts>"
1366 msgstr ""
1367
1368 # type: textblock
1369 #: ../src/guestfs.pod:682
1370 msgid "For documentation see L<guestfish(1)>."
1371 msgstr ""
1372
1373 # type: =head2
1374 #: ../src/guestfs.pod:686
1375 msgid "LIBGUESTFS GOTCHAS"
1376 msgstr ""
1377
1378 # type: textblock
1379 #: ../src/guestfs.pod:688
1380 msgid ""
1381 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1382 "system [...] that works in the way it is documented but is counterintuitive "
1383 "and almost invites mistakes.\""
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:692
1388 msgid ""
1389 "Since we developed libguestfs and the associated tools, there are several "
1390 "things we would have designed differently, but are now stuck with for "
1391 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1392 "release, you can expect these to change.  Beware of them."
1393 msgstr ""
1394
1395 # type: =item
1396 #: ../src/guestfs.pod:700
1397 msgid "Autosync / forgetting to sync."
1398 msgstr ""
1399
1400 # type: textblock
1401 #: ../src/guestfs.pod:702
1402 msgid ""
1403 "When modifying a filesystem from C or another language, you B<must> unmount "
1404 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1405 "libguestfs handle.  You can also call:"
1406 msgstr ""
1407
1408 # type: verbatim
1409 #: ../src/guestfs.pod:706
1410 #, no-wrap
1411 msgid ""
1412 " guestfs_set_autosync (g, 1);\n"
1413 "\n"
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:708
1418 msgid ""
1419 "to have the unmount/sync done automatically for you when the handle 'g' is "
1420 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1421 "q.v.)"
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:712
1426 msgid ""
1427 "If you forget to do this, then it is entirely possible that your changes "
1428 "won't be written out, or will be partially written, or (very rarely) that "
1429 "you'll get disk corruption."
1430 msgstr ""
1431
1432 # type: textblock
1433 #: ../src/guestfs.pod:716
1434 msgid ""
1435 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1436 "guestfish scripts that forget to sync will work just fine, which can make "
1437 "this very puzzling if you are trying to debug a problem."
1438 msgstr ""
1439
1440 # type: textblock
1441 #: ../src/guestfs.pod:720
1442 msgid ""
1443 "Update: Autosync is enabled by default for all API users starting from "
1444 "libguestfs 1.5.24."
1445 msgstr ""
1446
1447 # type: =item
1448 #: ../src/guestfs.pod:723
1449 msgid "Mount option C<-o sync> should not be the default."
1450 msgstr ""
1451
1452 # type: textblock
1453 #: ../src/guestfs.pod:725
1454 msgid ""
1455 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1456 "However C<-o sync> does not add any reliability benefit, but does have a "
1457 "very large performance impact."
1458 msgstr ""
1459
1460 # type: textblock
1461 #: ../src/guestfs.pod:729
1462 msgid ""
1463 "The work around is to use L</guestfs_mount_options> and set the mount "
1464 "options that you actually want to use."
1465 msgstr ""
1466
1467 # type: =item
1468 #: ../src/guestfs.pod:732
1469 msgid "Read-only should be the default."
1470 msgstr ""
1471
1472 # type: textblock
1473 #: ../src/guestfs.pod:734
1474 msgid ""
1475 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1476 "specify I<--rw> if you want to make changes to the image."
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:737
1481 msgid "This would reduce the potential to corrupt live VM images."
1482 msgstr ""
1483
1484 # type: textblock
1485 #: ../src/guestfs.pod:739
1486 msgid ""
1487 "Note that many filesystems change the disk when you just mount and unmount, "
1488 "even if you didn't perform any writes.  You need to use "
1489 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1490 msgstr ""
1491
1492 # type: =item
1493 #: ../src/guestfs.pod:743
1494 msgid "guestfish command line is hard to use."
1495 msgstr ""
1496
1497 # type: textblock
1498 #: ../src/guestfs.pod:745
1499 msgid ""
1500 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1501 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1502 "exist, so it fails.  In earlier versions of guestfish the error message was "
1503 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1504 "we should have used C<guestfish -c command> to run commands."
1505 msgstr ""
1506
1507 # type: =item
1508 #: ../src/guestfs.pod:752
1509 msgid "guestfish megabyte modifiers don't work right on all commands"
1510 msgstr ""
1511
1512 # type: textblock
1513 #: ../src/guestfs.pod:754
1514 msgid ""
1515 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1516 "other modifiers).  What guestfish actually does is to multiply the number "
1517 "part by the modifier part and pass the result to the C API.  However this "
1518 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1519 "expecting some other unit (eg. megabytes)."
1520 msgstr ""
1521
1522 # type: textblock
1523 #: ../src/guestfs.pod:761
1524 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1525 msgstr ""
1526
1527 # type: verbatim
1528 #: ../src/guestfs.pod:763
1529 #, no-wrap
1530 msgid ""
1531 " lvcreate LV VG 100M\n"
1532 "\n"
1533 msgstr ""
1534
1535 # type: textblock
1536 #: ../src/guestfs.pod:765
1537 msgid ""
1538 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1539 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1540 "megabytes * megabytes) logical volume.  The error message you get from this "
1541 "is also a little obscure."
1542 msgstr ""
1543
1544 # type: textblock
1545 #: ../src/guestfs.pod:770
1546 msgid ""
1547 "This could be fixed in the generator by specially marking parameters and "
1548 "return values which take bytes or other units."
1549 msgstr ""
1550
1551 # type: =item
1552 #: ../src/guestfs.pod:773
1553 msgid "Ambiguity between devices and paths"
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:775
1558 msgid ""
1559 "There is a subtle ambiguity in the API between a device name "
1560 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1561 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1562 msgstr ""
1563
1564 # type: textblock
1565 #: ../src/guestfs.pod:780
1566 msgid ""
1567 "In the current API we usually resolve this ambiguity by having two separate "
1568 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1569 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1570 "detecting if the path supplied begins with C</dev/>."
1571 msgstr ""
1572
1573 # type: textblock
1574 #: ../src/guestfs.pod:786
1575 msgid ""
1576 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1577 "make paths/devices into structured names.  One way to do this would be to "
1578 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1579 "aspect of grub.  Another way would be to use a structured type, equivalent "
1580 "to this OCaml type:"
1581 msgstr ""
1582
1583 # type: verbatim
1584 #: ../src/guestfs.pod:792
1585 #, no-wrap
1586 msgid ""
1587 " type path = Path of string | Device of int | Partition of int * int\n"
1588 "\n"
1589 msgstr ""
1590
1591 # type: textblock
1592 #: ../src/guestfs.pod:794
1593 msgid "which would allow you to pass arguments like:"
1594 msgstr ""
1595
1596 # type: verbatim
1597 #: ../src/guestfs.pod:796
1598 #, no-wrap
1599 msgid ""
1600 " Path \"/foo/bar\"\n"
1601 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1602 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1603 " Path \"/dev/sdb2\"    (* not a device *)\n"
1604 "\n"
1605 msgstr ""
1606
1607 # type: textblock
1608 #: ../src/guestfs.pod:801
1609 msgid ""
1610 "As you can see there are still problems to resolve even with this "
1611 "representation.  Also consider how it might work in guestfish."
1612 msgstr ""
1613
1614 # type: =head2
1615 #: ../src/guestfs.pod:806
1616 msgid "PROTOCOL LIMITS"
1617 msgstr ""
1618
1619 # type: textblock
1620 #: ../src/guestfs.pod:808
1621 msgid ""
1622 "Internally libguestfs uses a message-based protocol to pass API calls and "
1623 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1624 "plenty more detail about this).  The maximum message size used by the "
1625 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1626 "aware of this limit.  The API calls which may be affected are individually "
1627 "documented, with a link back to this section of the documentation."
1628 msgstr ""
1629
1630 # type: textblock
1631 #: ../src/guestfs.pod:816
1632 msgid ""
1633 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1634 "a simple string.  Because this string is at some point internally encoded as "
1635 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1636 "the requested file is larger than this then you will get an error."
1637 msgstr ""
1638
1639 # type: textblock
1640 #: ../src/guestfs.pod:822
1641 msgid ""
1642 "In order to transfer large files into and out of the guest filesystem, you "
1643 "need to use particular calls that support this.  The sections L</UPLOADING> "
1644 "and L</DOWNLOADING> document how to do this."
1645 msgstr ""
1646
1647 # type: textblock
1648 #: ../src/guestfs.pod:826
1649 msgid ""
1650 "You might also consider mounting the disk image using our FUSE filesystem "
1651 "support (L<guestmount(1)>)."
1652 msgstr ""
1653
1654 # type: =head2
1655 #: ../src/guestfs.pod:829
1656 msgid "KEYS AND PASSPHRASES"
1657 msgstr ""
1658
1659 # type: textblock
1660 #: ../src/guestfs.pod:831
1661 msgid ""
1662 "Certain libguestfs calls take a parameter that contains sensitive key "
1663 "material, passed in as a C string."
1664 msgstr ""
1665
1666 # type: textblock
1667 #: ../src/guestfs.pod:834
1668 msgid ""
1669 "In the future we would hope to change the libguestfs implementation so that "
1670 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1671 "swap.  However this is I<not> done at the moment, because of the complexity "
1672 "of such an implementation."
1673 msgstr ""
1674
1675 # type: textblock
1676 #: ../src/guestfs.pod:839
1677 msgid ""
1678 "Therefore you should be aware that any key parameter you pass to libguestfs "
1679 "might end up being written out to the swap partition.  If this is a concern, "
1680 "scrub the swap partition or don't use libguestfs on encrypted devices."
1681 msgstr ""
1682
1683 # type: =head1
1684 #: ../src/guestfs.pod:844
1685 msgid "CONNECTION MANAGEMENT"
1686 msgstr ""
1687
1688 # type: =head2
1689 #: ../src/guestfs.pod:846
1690 msgid "guestfs_h *"
1691 msgstr ""
1692
1693 # type: textblock
1694 #: ../src/guestfs.pod:848
1695 msgid ""
1696 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1697 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1698 "handle and release all resources used."
1699 msgstr ""
1700
1701 # type: textblock
1702 #: ../src/guestfs.pod:852
1703 msgid ""
1704 "For information on using multiple handles and threads, see the section "
1705 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1706 msgstr ""
1707
1708 # type: =head2
1709 #: ../src/guestfs.pod:855
1710 msgid "guestfs_create"
1711 msgstr ""
1712
1713 # type: verbatim
1714 #: ../src/guestfs.pod:857
1715 #, no-wrap
1716 msgid ""
1717 " guestfs_h *guestfs_create (void);\n"
1718 "\n"
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:859
1723 msgid "Create a connection handle."
1724 msgstr ""
1725
1726 # type: textblock
1727 #: ../src/guestfs.pod:861
1728 msgid ""
1729 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1730 "on the handle at least once."
1731 msgstr ""
1732
1733 # type: textblock
1734 #: ../src/guestfs.pod:864
1735 msgid ""
1736 "This function returns a non-NULL pointer to a handle on success or NULL on "
1737 "error."
1738 msgstr ""
1739
1740 # type: textblock
1741 #: ../src/guestfs.pod:867
1742 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1743 msgstr ""
1744
1745 # type: textblock
1746 #: ../src/guestfs.pod:869
1747 msgid ""
1748 "You may also want to configure error handling for the handle.  See L</ERROR "
1749 "HANDLING> section below."
1750 msgstr ""
1751
1752 # type: =head2
1753 #: ../src/guestfs.pod:872
1754 msgid "guestfs_close"
1755 msgstr ""
1756
1757 # type: verbatim
1758 #: ../src/guestfs.pod:874
1759 #, no-wrap
1760 msgid ""
1761 " void guestfs_close (guestfs_h *g);\n"
1762 "\n"
1763 msgstr ""
1764
1765 # type: textblock
1766 #: ../src/guestfs.pod:876
1767 msgid "This closes the connection handle and frees up all resources used."
1768 msgstr ""
1769
1770 # type: =head1
1771 #: ../src/guestfs.pod:878
1772 msgid "ERROR HANDLING"
1773 msgstr ""
1774
1775 # type: textblock
1776 #: ../src/guestfs.pod:880
1777 msgid ""
1778 "API functions can return errors.  For example, almost all functions that "
1779 "return C<int> will return C<-1> to indicate an error."
1780 msgstr ""
1781
1782 # type: textblock
1783 #: ../src/guestfs.pod:883
1784 msgid ""
1785 "Additional information is available for errors: an error message string and "
1786 "optionally an error number (errno) if the thing that failed was a system "
1787 "call."
1788 msgstr ""
1789
1790 # type: textblock
1791 #: ../src/guestfs.pod:887
1792 msgid ""
1793 "You can get at the additional information about the last error on the handle "
1794 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
1795 "up an error handler with L</guestfs_set_error_handler>."
1796 msgstr ""
1797
1798 # type: textblock
1799 #: ../src/guestfs.pod:892
1800 msgid ""
1801 "When the handle is created, a default error handler is installed which "
1802 "prints the error message string to C<stderr>.  For small short-running "
1803 "command line programs it is sufficient to do:"
1804 msgstr ""
1805
1806 # type: verbatim
1807 #: ../src/guestfs.pod:896
1808 #, no-wrap
1809 msgid ""
1810 " if (guestfs_launch (g) == -1)\n"
1811 "   exit (EXIT_FAILURE);\n"
1812 "\n"
1813 msgstr ""
1814
1815 # type: textblock
1816 #: ../src/guestfs.pod:899
1817 msgid ""
1818 "since the default error handler will ensure that an error message has been "
1819 "printed to C<stderr> before the program exits."
1820 msgstr ""
1821
1822 # type: textblock
1823 #: ../src/guestfs.pod:902
1824 msgid ""
1825 "For other programs the caller will almost certainly want to install an "
1826 "alternate error handler or do error handling in-line like this:"
1827 msgstr ""
1828
1829 # type: verbatim
1830 #: ../src/guestfs.pod:905
1831 #, no-wrap
1832 msgid ""
1833 " g = guestfs_create ();\n"
1834 " \n"
1835 msgstr ""
1836
1837 # type: verbatim
1838 #: ../src/guestfs.pod:907
1839 #, no-wrap
1840 msgid ""
1841 " /* This disables the default behaviour of printing errors\n"
1842 "    on stderr. */\n"
1843 " guestfs_set_error_handler (g, NULL, NULL);\n"
1844 " \n"
1845 msgstr ""
1846
1847 # type: verbatim
1848 #: ../src/guestfs.pod:911
1849 #, no-wrap
1850 msgid ""
1851 " if (guestfs_launch (g) == -1) {\n"
1852 "   /* Examine the error message and print it etc. */\n"
1853 "   char *msg = guestfs_last_error (g);\n"
1854 "   int errnum = guestfs_last_errno (g);\n"
1855 "   fprintf (stderr, \"%s\\n\", msg);\n"
1856 "   /* ... */\n"
1857 "  }\n"
1858 "\n"
1859 msgstr ""
1860
1861 # type: textblock
1862 #: ../src/guestfs.pod:919
1863 msgid ""
1864 "Out of memory errors are handled differently.  The default action is to call "
1865 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
1866 "L</guestfs_set_out_of_memory_handler>."
1867 msgstr ""
1868
1869 # type: textblock
1870 #: ../src/guestfs.pod:923
1871 msgid ""
1872 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
1873 "because there is no handle if this happens there is no way to get additional "
1874 "error information.  However L</guestfs_create> is supposed to be a "
1875 "lightweight operation which can only fail because of insufficient memory (it "
1876 "returns NULL in this case)."
1877 msgstr ""
1878
1879 # type: =head2
1880 #: ../src/guestfs.pod:929
1881 msgid "guestfs_last_error"
1882 msgstr ""
1883
1884 # type: verbatim
1885 #: ../src/guestfs.pod:931
1886 #, no-wrap
1887 msgid ""
1888 " const char *guestfs_last_error (guestfs_h *g);\n"
1889 "\n"
1890 msgstr ""
1891
1892 # type: textblock
1893 #: ../src/guestfs.pod:933
1894 msgid ""
1895 "This returns the last error message that happened on C<g>.  If there has not "
1896 "been an error since the handle was created, then this returns C<NULL>."
1897 msgstr ""
1898
1899 # type: textblock
1900 #: ../src/guestfs.pod:937
1901 msgid ""
1902 "The lifetime of the returned string is until the next error occurs, or "
1903 "L</guestfs_close> is called."
1904 msgstr ""
1905
1906 # type: =head2
1907 #: ../src/guestfs.pod:940
1908 msgid "guestfs_last_errno"
1909 msgstr ""
1910
1911 # type: verbatim
1912 #: ../src/guestfs.pod:942
1913 #, no-wrap
1914 msgid ""
1915 " int guestfs_last_errno (guestfs_h *g);\n"
1916 "\n"
1917 msgstr ""
1918
1919 # type: textblock
1920 #: ../src/guestfs.pod:944
1921 msgid "This returns the last error number (errno) that happened on C<g>."
1922 msgstr ""
1923
1924 # type: textblock
1925 #: ../src/guestfs.pod:946
1926 msgid "If successful, an errno integer not equal to zero is returned."
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:948
1931 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
1932 msgstr ""
1933
1934 # type: textblock
1935 #: ../src/guestfs.pod:955
1936 msgid "There has not been any error on the handle."
1937 msgstr ""
1938
1939 # type: textblock
1940 #: ../src/guestfs.pod:959
1941 msgid ""
1942 "There has been an error but the errno was meaningless.  This corresponds to "
1943 "the case where the error did not come from a failed system call, but for "
1944 "some other reason."
1945 msgstr ""
1946
1947 # type: textblock
1948 #: ../src/guestfs.pod:965
1949 msgid ""
1950 "There was an error from a failed system call, but for some reason the errno "
1951 "was not captured and returned.  This usually indicates a bug in libguestfs."
1952 msgstr ""
1953
1954 # type: textblock
1955 #: ../src/guestfs.pod:971
1956 msgid ""
1957 "Libguestfs tries to convert the errno from inside the applicance into a "
1958 "corresponding errno for the caller (not entirely trivial: the appliance "
1959 "might be running a completely different operating system from the library "
1960 "and error numbers are not standardized across Un*xen).  If this could not be "
1961 "done, then the error is translated to C<EINVAL>.  In practice this should "
1962 "only happen in very rare circumstances."
1963 msgstr ""
1964
1965 # type: =head2
1966 #: ../src/guestfs.pod:979
1967 msgid "guestfs_set_error_handler"
1968 msgstr ""
1969
1970 # type: verbatim
1971 #: ../src/guestfs.pod:981
1972 #, no-wrap
1973 msgid ""
1974 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1975 "                                           void *opaque,\n"
1976 "                                           const char *msg);\n"
1977 " void guestfs_set_error_handler (guestfs_h *g,\n"
1978 "                                 guestfs_error_handler_cb cb,\n"
1979 "                                 void *opaque);\n"
1980 "\n"
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:988
1985 msgid ""
1986 "The callback C<cb> will be called if there is an error.  The parameters "
1987 "passed to the callback are an opaque data pointer and the error message "
1988 "string."
1989 msgstr ""
1990
1991 # type: textblock
1992 #: ../src/guestfs.pod:992
1993 msgid ""
1994 "C<errno> is not passed to the callback.  To get that the callback must call "
1995 "L</guestfs_last_errno>."
1996 msgstr ""
1997
1998 # type: textblock
1999 #: ../src/guestfs.pod:995
2000 msgid ""
2001 "Note that the message string C<msg> is freed as soon as the callback "
2002 "function returns, so if you want to stash it somewhere you must make your "
2003 "own copy."
2004 msgstr ""
2005
2006 # type: textblock
2007 #: ../src/guestfs.pod:999
2008 msgid "The default handler prints messages on C<stderr>."
2009 msgstr ""
2010
2011 # type: textblock
2012 #: ../src/guestfs.pod:1001
2013 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2014 msgstr ""
2015
2016 # type: =head2
2017 #: ../src/guestfs.pod:1003
2018 msgid "guestfs_get_error_handler"
2019 msgstr ""
2020
2021 # type: verbatim
2022 #: ../src/guestfs.pod:1005
2023 #, no-wrap
2024 msgid ""
2025 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2026 "                                                     void **opaque_rtn);\n"
2027 "\n"
2028 msgstr ""
2029
2030 # type: textblock
2031 #: ../src/guestfs.pod:1008
2032 msgid "Returns the current error handler callback."
2033 msgstr ""
2034
2035 # type: =head2
2036 #: ../src/guestfs.pod:1010
2037 msgid "guestfs_set_out_of_memory_handler"
2038 msgstr ""
2039
2040 # type: verbatim
2041 #: ../src/guestfs.pod:1012
2042 #, no-wrap
2043 msgid ""
2044 " typedef void (*guestfs_abort_cb) (void);\n"
2045 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2046 "                                        guestfs_abort_cb);\n"
2047 "\n"
2048 msgstr ""
2049
2050 # type: textblock
2051 #: ../src/guestfs.pod:1016
2052 msgid ""
2053 "The callback C<cb> will be called if there is an out of memory situation.  "
2054 "I<Note this callback must not return>."
2055 msgstr ""
2056
2057 # type: textblock
2058 #: ../src/guestfs.pod:1019
2059 msgid "The default is to call L<abort(3)>."
2060 msgstr ""
2061
2062 # type: textblock
2063 #: ../src/guestfs.pod:1021
2064 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2065 msgstr ""
2066
2067 # type: =head2
2068 #: ../src/guestfs.pod:1024
2069 msgid "guestfs_get_out_of_memory_handler"
2070 msgstr ""
2071
2072 # type: verbatim
2073 #: ../src/guestfs.pod:1026
2074 #, no-wrap
2075 msgid ""
2076 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2077 "\n"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1028
2082 msgid "This returns the current out of memory handler."
2083 msgstr ""
2084
2085 # type: =head1
2086 #: ../src/guestfs.pod:1030
2087 msgid "PATH"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1032
2092 msgid ""
2093 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2094 "internal path."
2095 msgstr ""
2096
2097 # type: textblock
2098 #: ../src/guestfs.pod:1035
2099 msgid ""
2100 "By default it looks for these in the directory C<$libdir/guestfs> "
2101 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2102 msgstr ""
2103
2104 # type: textblock
2105 #: ../src/guestfs.pod:1038
2106 msgid ""
2107 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2108 "to change the directories that libguestfs will search in.  The value is a "
2109 "colon-separated list of paths.  The current directory is I<not> searched "
2110 "unless the path contains an empty element or C<.>.  For example "
2111 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2112 "then C</usr/lib/guestfs>."
2113 msgstr ""
2114
2115 # type: =head1
2116 #: ../src/guestfs.pod:1045
2117 msgid "HIGH-LEVEL API ACTIONS"
2118 msgstr ""
2119
2120 # type: =head2
2121 #: ../src/guestfs.pod:1047
2122 msgid "ABI GUARANTEE"
2123 msgstr ""
2124
2125 # type: textblock
2126 #: ../src/guestfs.pod:1049
2127 msgid ""
2128 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2129 "actions as outlined in this section.  Although we will deprecate some "
2130 "actions, for example if they get replaced by newer calls, we will keep the "
2131 "old actions forever.  This allows you the developer to program in confidence "
2132 "against the libguestfs API."
2133 msgstr ""
2134
2135 # type: textblock
2136 #: ../src/guestfs.pod:1055 ../fish/guestfish.pod:907
2137 msgid "@ACTIONS@"
2138 msgstr ""
2139
2140 # type: =head1
2141 #: ../src/guestfs.pod:1057
2142 msgid "STRUCTURES"
2143 msgstr ""
2144
2145 # type: textblock
2146 #: ../src/guestfs.pod:1059
2147 msgid "@STRUCTS@"
2148 msgstr ""
2149
2150 # type: =head1
2151 #: ../src/guestfs.pod:1061
2152 msgid "AVAILABILITY"
2153 msgstr ""
2154
2155 # type: =head2
2156 #: ../src/guestfs.pod:1063
2157 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2158 msgstr ""
2159
2160 # type: textblock
2161 #: ../src/guestfs.pod:1065
2162 msgid ""
2163 "Using L</guestfs_available> you can test availability of the following "
2164 "groups of functions.  This test queries the appliance to see if the "
2165 "appliance you are currently using supports the functionality."
2166 msgstr ""
2167
2168 # type: textblock
2169 #: ../src/guestfs.pod:1070
2170 msgid "@AVAILABILITY@"
2171 msgstr ""
2172
2173 # type: =head2
2174 #: ../src/guestfs.pod:1072
2175 msgid "GUESTFISH supported COMMAND"
2176 msgstr ""
2177
2178 # type: textblock
2179 #: ../src/guestfs.pod:1074
2180 msgid ""
2181 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2182 "prints out the available groups and whether they are supported by this build "
2183 "of libguestfs.  Note however that you have to do C<run> first."
2184 msgstr ""
2185
2186 # type: =head2
2187 #: ../src/guestfs.pod:1079
2188 msgid "SINGLE CALLS AT COMPILE TIME"
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1081
2193 msgid ""
2194 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2195 "function, such as:"
2196 msgstr ""
2197
2198 # type: verbatim
2199 #: ../src/guestfs.pod:1084
2200 #, no-wrap
2201 msgid ""
2202 " #define LIBGUESTFS_HAVE_DD 1\n"
2203 "\n"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1086
2208 msgid "if L</guestfs_dd> is available."
2209 msgstr ""
2210
2211 # type: textblock
2212 #: ../src/guestfs.pod:1088
2213 msgid ""
2214 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2215 "function is available at compile time, we recommended using build tools such "
2216 "as autoconf or cmake.  For example in autotools you could use:"
2217 msgstr ""
2218
2219 # type: verbatim
2220 #: ../src/guestfs.pod:1093
2221 #, no-wrap
2222 msgid ""
2223 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2224 " AC_CHECK_FUNCS([guestfs_dd])\n"
2225 "\n"
2226 msgstr ""
2227
2228 # type: textblock
2229 #: ../src/guestfs.pod:1096
2230 msgid ""
2231 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2232 "in your program."
2233 msgstr ""
2234
2235 # type: =head2
2236 #: ../src/guestfs.pod:1099
2237 msgid "SINGLE CALLS AT RUN TIME"
2238 msgstr ""
2239
2240 # type: textblock
2241 #: ../src/guestfs.pod:1101
2242 msgid ""
2243 "Testing at compile time doesn't guarantee that a function really exists in "
2244 "the library.  The reason is that you might be dynamically linked against a "
2245 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2246 "This situation unfortunately results in a segmentation fault, which is a "
2247 "shortcoming of the C dynamic linking system itself."
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1108
2252 msgid ""
2253 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2254 "in this example program (note that you still need the compile time check as "
2255 "well):"
2256 msgstr ""
2257
2258 # type: verbatim
2259 #: ../src/guestfs.pod:1112
2260 #, no-wrap
2261 msgid ""
2262 " #include <stdio.h>\n"
2263 " #include <stdlib.h>\n"
2264 " #include <unistd.h>\n"
2265 " #include <dlfcn.h>\n"
2266 " #include <guestfs.h>\n"
2267 " \n"
2268 msgstr ""
2269
2270 # type: verbatim
2271 #: ../src/guestfs.pod:1118
2272 #, no-wrap
2273 msgid ""
2274 " main ()\n"
2275 " {\n"
2276 " #ifdef LIBGUESTFS_HAVE_DD\n"
2277 "   void *dl;\n"
2278 "   int has_function;\n"
2279 " \n"
2280 msgstr ""
2281
2282 # type: verbatim
2283 #: ../src/guestfs.pod:1124
2284 #, no-wrap
2285 msgid ""
2286 "   /* Test if the function guestfs_dd is really available. */\n"
2287 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2288 "   if (!dl) {\n"
2289 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2290 "     exit (EXIT_FAILURE);\n"
2291 "   }\n"
2292 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2293 "   dlclose (dl);\n"
2294 " \n"
2295 msgstr ""
2296
2297 # type: verbatim
2298 #: ../src/guestfs.pod:1133
2299 #, no-wrap
2300 msgid ""
2301 "   if (!has_function)\n"
2302 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2303 "   else {\n"
2304 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2305 "     /* Now it's safe to call\n"
2306 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2307 "     */\n"
2308 "   }\n"
2309 " #else\n"
2310 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2311 " #endif\n"
2312 "  }\n"
2313 "\n"
2314 msgstr ""
2315
2316 # type: textblock
2317 #: ../src/guestfs.pod:1146
2318 msgid ""
2319 "You may think the above is an awful lot of hassle, and it is.  There are "
2320 "other ways outside of the C linking system to ensure that this kind of "
2321 "incompatibility never arises, such as using package versioning:"
2322 msgstr ""
2323
2324 # type: verbatim
2325 #: ../src/guestfs.pod:1151
2326 #, no-wrap
2327 msgid ""
2328 " Requires: libguestfs >= 1.0.80\n"
2329 "\n"
2330 msgstr ""
2331
2332 # type: =head1
2333 #: ../src/guestfs.pod:1153
2334 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1155
2339 msgid ""
2340 "A recent feature of the API is the introduction of calls which take optional "
2341 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2342 "takes variable arguments (ie. C<...>), as in this example:"
2343 msgstr ""
2344
2345 # type: verbatim
2346 #: ../src/guestfs.pod:1160
2347 #, no-wrap
2348 msgid ""
2349 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2350 "\n"
2351 msgstr ""
2352
2353 # type: textblock
2354 #: ../src/guestfs.pod:1162
2355 msgid ""
2356 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2357 "call with no optional arguments specified:"
2358 msgstr ""
2359
2360 # type: verbatim
2361 #: ../src/guestfs.pod:1165
2362 #, no-wrap
2363 msgid ""
2364 " guestfs_add_drive_opts (g, filename, -1);\n"
2365 "\n"
2366 msgstr ""
2367
2368 # type: textblock
2369 #: ../src/guestfs.pod:1167
2370 msgid "With a single optional argument:"
2371 msgstr ""
2372
2373 # type: verbatim
2374 #: ../src/guestfs.pod:1169
2375 #, no-wrap
2376 msgid ""
2377 " guestfs_add_drive_opts (g, filename,\n"
2378 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2379 "                         -1);\n"
2380 "\n"
2381 msgstr ""
2382
2383 # type: textblock
2384 #: ../src/guestfs.pod:1173
2385 msgid "With two:"
2386 msgstr ""
2387
2388 # type: verbatim
2389 #: ../src/guestfs.pod:1175
2390 #, no-wrap
2391 msgid ""
2392 " guestfs_add_drive_opts (g, filename,\n"
2393 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2394 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2395 "                         -1);\n"
2396 "\n"
2397 msgstr ""
2398
2399 # type: textblock
2400 #: ../src/guestfs.pod:1180
2401 msgid ""
2402 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2403 "happen!"
2404 msgstr ""
2405
2406 # type: =head2
2407 #: ../src/guestfs.pod:1183
2408 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2409 msgstr ""
2410
2411 # type: textblock
2412 #: ../src/guestfs.pod:1185
2413 msgid ""
2414 "The second variant has the same name with the suffix C<_va>, which works the "
2415 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2416 "example function, this is declared:"
2417 msgstr ""
2418
2419 # type: verbatim
2420 #: ../src/guestfs.pod:1189
2421 #, no-wrap
2422 msgid ""
2423 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2424 "                                va_list args);\n"
2425 "\n"
2426 msgstr ""
2427
2428 # type: =head2
2429 #: ../src/guestfs.pod:1192
2430 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2431 msgstr ""
2432
2433 # type: textblock
2434 #: ../src/guestfs.pod:1194
2435 msgid ""
2436 "The third variant is useful where you need to construct these calls.  You "
2437 "pass in a structure where you fill in the optional fields.  The structure "
2438 "has a bitmask as the first element which you must set to indicate which "
2439 "fields you have filled in.  For our example function the structure and call "
2440 "are declared:"
2441 msgstr ""
2442
2443 # type: verbatim
2444 #: ../src/guestfs.pod:1200
2445 #, no-wrap
2446 msgid ""
2447 " struct guestfs_add_drive_opts_argv {\n"
2448 "   uint64_t bitmask;\n"
2449 "   int readonly;\n"
2450 "   const char *format;\n"
2451 "   /* ... */\n"
2452 " };\n"
2453 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2454 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2455 "\n"
2456 msgstr ""
2457
2458 # type: textblock
2459 #: ../src/guestfs.pod:1209
2460 msgid "You could call it like this:"
2461 msgstr ""
2462
2463 # type: verbatim
2464 #: ../src/guestfs.pod:1211
2465 #, no-wrap
2466 msgid ""
2467 " struct guestfs_add_drive_opts_argv optargs = {\n"
2468 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2469 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2470 "   .readonly = 1,\n"
2471 "   .format = \"qcow2\"\n"
2472 " };\n"
2473 " \n"
2474 msgstr ""
2475
2476 # type: verbatim
2477 #: ../src/guestfs.pod:1218
2478 #, no-wrap
2479 msgid ""
2480 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2481 "\n"
2482 msgstr ""
2483
2484 # type: textblock
2485 #: ../src/guestfs.pod:1220 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1813 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1244
2486 msgid "Notes:"
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1226
2491 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2492 msgstr ""
2493
2494 # type: textblock
2495 #: ../src/guestfs.pod:1231
2496 msgid "You do not need to fill in all fields of the structure."
2497 msgstr ""
2498
2499 # type: textblock
2500 #: ../src/guestfs.pod:1235
2501 msgid ""
2502 "There must be a one-to-one correspondence between fields of the structure "
2503 "that are filled in, and bits set in the bitmask."
2504 msgstr ""
2505
2506 # type: =head2
2507 #: ../src/guestfs.pod:1240
2508 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2509 msgstr ""
2510
2511 # type: textblock
2512 #: ../src/guestfs.pod:1242
2513 msgid ""
2514 "In other languages, optional arguments are expressed in the way that is "
2515 "natural for that language.  We refer you to the language-specific "
2516 "documentation for more details on that."
2517 msgstr ""
2518
2519 # type: textblock
2520 #: ../src/guestfs.pod:1246
2521 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2522 msgstr ""
2523
2524 # type: =end
2525 #: ../src/guestfs.pod:1248 ../src/guestfs.pod:1253
2526 msgid "html"
2527 msgstr ""
2528
2529 # type: textblock
2530 #: ../src/guestfs.pod:1250
2531 msgid ""
2532 "<!-- old anchor for the next section --> <a "
2533 "name=\"state_machine_and_low_level_event_api\"/>"
2534 msgstr ""
2535
2536 # type: =head1
2537 #: ../src/guestfs.pod:1255
2538 msgid "ARCHITECTURE"
2539 msgstr ""
2540
2541 # type: textblock
2542 #: ../src/guestfs.pod:1257
2543 msgid ""
2544 "Internally, libguestfs is implemented by running an appliance (a special "
2545 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2546 "process of the main program."
2547 msgstr ""
2548
2549 # type: verbatim
2550 #: ../src/guestfs.pod:1261
2551 #, no-wrap
2552 msgid ""
2553 "  ___________________\n"
2554 " /                   \\\n"
2555 " | main program      |\n"
2556 " |                   |\n"
2557 " |                   |           child process / appliance\n"
2558 " |                   |           __________________________\n"
2559 " |                   |          / qemu                     \\\n"
2560 " +-------------------+   RPC    |      +-----------------+ |\n"
2561 " | libguestfs     <--------------------> guestfsd        | |\n"
2562 " |                   |          |      +-----------------+ |\n"
2563 " \\___________________/          |      | Linux kernel    | |\n"
2564 "                                |      +--^--------------+ |\n"
2565 "                                \\_________|________________/\n"
2566 "                                          |\n"
2567 "                                   _______v______\n"
2568 "                                  /              \\\n"
2569 "                                  | Device or    |\n"
2570 "                                  | disk image   |\n"
2571 "                                  \\______________/\n"
2572 "\n"
2573 msgstr ""
2574
2575 # type: textblock
2576 #: ../src/guestfs.pod:1281
2577 msgid ""
2578 "The library, linked to the main program, creates the child process and hence "
2579 "the appliance in the L</guestfs_launch> function."
2580 msgstr ""
2581
2582 # type: textblock
2583 #: ../src/guestfs.pod:1284
2584 msgid ""
2585 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2586 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2587 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2588 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2589 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2590 "attached to the qemu process which translates device access by the "
2591 "appliance's Linux kernel into accesses to the image."
2592 msgstr ""
2593
2594 # type: textblock
2595 #: ../src/guestfs.pod:1293
2596 msgid ""
2597 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2598 "Although the disk image you are attached to might also be used by some "
2599 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2600 "care if both libguestfs's qemu process and your virtual machine are trying "
2601 "to update the disk image at the same time, since these usually results in "
2602 "massive disk corruption)."
2603 msgstr ""
2604
2605 # type: =head1
2606 #: ../src/guestfs.pod:1300
2607 msgid "STATE MACHINE"
2608 msgstr ""
2609
2610 # type: textblock
2611 #: ../src/guestfs.pod:1302
2612 msgid "libguestfs uses a state machine to model the child process:"
2613 msgstr ""
2614
2615 # type: verbatim
2616 #: ../src/guestfs.pod:1304
2617 #, no-wrap
2618 msgid ""
2619 "                         |\n"
2620 "                    guestfs_create\n"
2621 "                         |\n"
2622 "                         |\n"
2623 "                     ____V_____\n"
2624 "                    /          \\\n"
2625 "                    |  CONFIG  |\n"
2626 "                    \\__________/\n"
2627 "                     ^ ^   ^  \\\n"
2628 "                    /  |    \\  \\ guestfs_launch\n"
2629 "                   /   |    _\\__V______\n"
2630 "                  /    |   /           \\\n"
2631 "                 /     |   | LAUNCHING |\n"
2632 "                /      |   \\___________/\n"
2633 "               /       |       /\n"
2634 "              /        |  guestfs_launch\n"
2635 "             /         |     /\n"
2636 "    ______  /        __|____V\n"
2637 "   /      \\ ------> /        \\\n"
2638 "   | BUSY |         | READY  |\n"
2639 "   \\______/ <------ \\________/\n"
2640 "\n"
2641 msgstr ""
2642
2643 # type: textblock
2644 #: ../src/guestfs.pod:1326
2645 msgid ""
2646 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2647 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2648 "(3) alternating between READY and BUSY as commands are issued to, and "
2649 "carried out by, the child process."
2650 msgstr ""
2651
2652 # type: textblock
2653 #: ../src/guestfs.pod:1331
2654 msgid ""
2655 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2656 "asynchronously at any time (eg. due to some internal error), and that causes "
2657 "the state to transition back to CONFIG."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1335
2662 msgid ""
2663 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2664 "issued when in the CONFIG state."
2665 msgstr ""
2666
2667 # type: textblock
2668 #: ../src/guestfs.pod:1338
2669 msgid ""
2670 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2671 "L</guestfs_launch> blocks until the child process is READY to accept "
2672 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2673 "moves the state from CONFIG to LAUNCHING while it is running."
2674 msgstr ""
2675
2676 # type: textblock
2677 #: ../src/guestfs.pod:1344
2678 msgid ""
2679 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2680 "state.  These API calls block waiting for the command to be carried out "
2681 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2682 "non-blocking versions, and no way to issue more than one command per handle "
2683 "at the same time."
2684 msgstr ""
2685
2686 # type: textblock
2687 #: ../src/guestfs.pod:1350
2688 msgid ""
2689 "Finally, the child process sends asynchronous messages back to the main "
2690 "program, such as kernel log messages.  You can register a callback to "
2691 "receive these messages."
2692 msgstr ""
2693
2694 # type: =head2
2695 #: ../src/guestfs.pod:1354
2696 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1356
2701 msgid ""
2702 "The child process generates events in some situations.  Current events "
2703 "include: receiving a log message, the child process exits."
2704 msgstr ""
2705
2706 # type: textblock
2707 #: ../src/guestfs.pod:1359
2708 msgid ""
2709 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2710 "types of events."
2711 msgstr ""
2712
2713 # type: textblock
2714 #: ../src/guestfs.pod:1362
2715 msgid ""
2716 "Only I<one callback of each type> can be registered for each handle.  "
2717 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2718 "that type.  Cancel all callbacks of this type by calling this function with "
2719 "C<cb> set to C<NULL>."
2720 msgstr ""
2721
2722 # type: =head2
2723 #: ../src/guestfs.pod:1367
2724 msgid "guestfs_set_log_message_callback"
2725 msgstr ""
2726
2727 # type: verbatim
2728 #: ../src/guestfs.pod:1369
2729 #, no-wrap
2730 msgid ""
2731 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2732 "                                         char *buf, int len);\n"
2733 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2734 "                                        guestfs_log_message_cb cb,\n"
2735 "                                        void *opaque);\n"
2736 "\n"
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1375
2741 msgid ""
2742 "The callback function C<cb> will be called whenever qemu or the guest writes "
2743 "anything to the console."
2744 msgstr ""
2745
2746 # type: textblock
2747 #: ../src/guestfs.pod:1378
2748 msgid "Use this function to capture kernel messages and similar."
2749 msgstr ""
2750
2751 # type: textblock
2752 #: ../src/guestfs.pod:1380
2753 msgid ""
2754 "Normally there is no log message handler, and log messages are just "
2755 "discarded."
2756 msgstr ""
2757
2758 # type: =head2
2759 #: ../src/guestfs.pod:1383
2760 msgid "guestfs_set_subprocess_quit_callback"
2761 msgstr ""
2762
2763 # type: verbatim
2764 #: ../src/guestfs.pod:1385
2765 #, no-wrap
2766 msgid ""
2767 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2768 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2769 "                                            guestfs_subprocess_quit_cb cb,\n"
2770 "                                            void *opaque);\n"
2771 "\n"
2772 msgstr ""
2773
2774 # type: textblock
2775 #: ../src/guestfs.pod:1390
2776 msgid ""
2777 "The callback function C<cb> will be called when the child process quits, "
2778 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2779 "corresponds to a transition from any state to the CONFIG state)."
2780 msgstr ""
2781
2782 # type: =head2
2783 #: ../src/guestfs.pod:1395
2784 msgid "guestfs_set_launch_done_callback"
2785 msgstr ""
2786
2787 # type: verbatim
2788 #: ../src/guestfs.pod:1397
2789 #, no-wrap
2790 msgid ""
2791 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2792 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2793 "                                        guestfs_launch_done_cb cb,\n"
2794 "                                        void *opaque);\n"
2795 "\n"
2796 msgstr ""
2797
2798 # type: textblock
2799 #: ../src/guestfs.pod:1402
2800 msgid ""
2801 "The callback function C<cb> will be called when the child process becomes "
2802 "ready first time after it has been launched.  (This corresponds to a "
2803 "transition from LAUNCHING to the READY state)."
2804 msgstr ""
2805
2806 # type: =head2
2807 #: ../src/guestfs.pod:1406
2808 msgid "guestfs_set_close_callback"
2809 msgstr ""
2810
2811 # type: verbatim
2812 #: ../src/guestfs.pod:1408
2813 #, no-wrap
2814 msgid ""
2815 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2816 " void guestfs_set_close_callback (guestfs_h *g,\n"
2817 "                                  guestfs_close_cb cb,\n"
2818 "                                  void *opaque);\n"
2819 "\n"
2820 msgstr ""
2821
2822 # type: textblock
2823 #: ../src/guestfs.pod:1413
2824 msgid ""
2825 "The callback function C<cb> will be called while the handle is being closed "
2826 "(synchronously from L</guestfs_close>)."
2827 msgstr ""
2828
2829 # type: textblock
2830 #: ../src/guestfs.pod:1416
2831 msgid ""
2832 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2833 "handles that are open when the program exits.  This means that this callback "
2834 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2835 "problems in higher-level languages (eg. if your HLL interpreter has already "
2836 "been cleaned up by the time this is called, and if your callback then jumps "
2837 "into some HLL function)."
2838 msgstr ""
2839
2840 # type: =head2
2841 #: ../src/guestfs.pod:1424
2842 msgid "guestfs_set_progress_callback"
2843 msgstr ""
2844
2845 # type: verbatim
2846 #: ../src/guestfs.pod:1426
2847 #, no-wrap
2848 msgid ""
2849 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2850 "                                      int proc_nr, int serial,\n"
2851 "                                      uint64_t position, uint64_t total);\n"
2852 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2853 "                                     guestfs_progress_cb cb,\n"
2854 "                                     void *opaque);\n"
2855 "\n"
2856 msgstr ""
2857
2858 # type: textblock
2859 #: ../src/guestfs.pod:1433
2860 msgid ""
2861 "Some long-running operations can generate progress messages.  If this "
2862 "callback is registered, then it will be called each time a progress message "
2863 "is generated (usually two seconds after the operation started, and three "
2864 "times per second thereafter until it completes, although the frequency may "
2865 "change in future versions)."
2866 msgstr ""
2867
2868 # type: textblock
2869 #: ../src/guestfs.pod:1439
2870 msgid ""
2871 "The callback receives two numbers: C<position> and C<total>.  The units of "
2872 "C<total> are not defined, although for some operations C<total> may relate "
2873 "in some way to the amount of data to be transferred (eg. in bytes or "
2874 "megabytes), and C<position> may be the portion which has been transferred."
2875 msgstr ""
2876
2877 # type: textblock
2878 #: ../src/guestfs.pod:1445
2879 msgid "The only defined and stable parts of the API are:"
2880 msgstr ""
2881
2882 # type: textblock
2883 #: ../src/guestfs.pod:1451
2884 msgid ""
2885 "The callback can display to the user some type of progress bar or indicator "
2886 "which shows the ratio of C<position>:C<total>."
2887 msgstr ""
2888
2889 # type: textblock
2890 #: ../src/guestfs.pod:1456
2891 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2892 msgstr ""
2893
2894 # type: textblock
2895 #: ../src/guestfs.pod:1460
2896 msgid ""
2897 "If any progress notification is sent during a call, then a final progress "
2898 "notification is always sent when C<position> = C<total>."
2899 msgstr ""
2900
2901 # type: textblock
2902 #: ../src/guestfs.pod:1463
2903 msgid ""
2904 "This is to simplify caller code, so callers can easily set the progress "
2905 "indicator to \"100%\" at the end of the operation, without requiring special "
2906 "code to detect this case."
2907 msgstr ""
2908
2909 # type: textblock
2910 #: ../src/guestfs.pod:1469
2911 msgid ""
2912 "The callback also receives the procedure number and serial number of the "
2913 "call.  These are only useful for debugging protocol issues, and the callback "
2914 "can normally ignore them.  The callback may want to print these numbers in "
2915 "error messages or debugging messages."
2916 msgstr ""
2917
2918 # type: =head1
2919 #: ../src/guestfs.pod:1474
2920 msgid "PRIVATE DATA AREA"
2921 msgstr ""
2922
2923 # type: textblock
2924 #: ../src/guestfs.pod:1476
2925 msgid ""
2926 "You can attach named pieces of private data to the libguestfs handle, and "
2927 "fetch them by name for the lifetime of the handle.  This is called the "
2928 "private data area and is only available from the C API."
2929 msgstr ""
2930
2931 # type: textblock
2932 #: ../src/guestfs.pod:1480
2933 msgid "To attach a named piece of data, use the following call:"
2934 msgstr ""
2935
2936 # type: verbatim
2937 #: ../src/guestfs.pod:1482
2938 #, no-wrap
2939 msgid ""
2940 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2941 "\n"
2942 msgstr ""
2943
2944 # type: textblock
2945 #: ../src/guestfs.pod:1484
2946 msgid ""
2947 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2948 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2949 "overwritten."
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1488
2954 msgid ""
2955 "You can use any C<key> you want, but names beginning with an underscore "
2956 "character are reserved for internal libguestfs purposes (for implementing "
2957 "language bindings).  It is recommended to prefix the name with some unique "
2958 "string to avoid collisions with other users."
2959 msgstr ""
2960
2961 # type: textblock
2962 #: ../src/guestfs.pod:1493
2963 msgid "To retrieve the pointer, use:"
2964 msgstr ""
2965
2966 # type: verbatim
2967 #: ../src/guestfs.pod:1495
2968 #, no-wrap
2969 msgid ""
2970 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2971 "\n"
2972 msgstr ""
2973
2974 # type: textblock
2975 #: ../src/guestfs.pod:1497
2976 msgid ""
2977 "This function returns C<NULL> if either no data is found associated with "
2978 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2979 "C<NULL>."
2980 msgstr ""
2981
2982 # type: textblock
2983 #: ../src/guestfs.pod:1501
2984 msgid ""
2985 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2986 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2987 "all.  In particular, libguestfs does I<not> try to free the data when the "
2988 "handle is closed.  If the data must be freed, then the caller must either "
2989 "free it before calling L</guestfs_close> or must set up a close callback to "
2990 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2991 "can be registered for a handle)."
2992 msgstr ""
2993
2994 # type: textblock
2995 #: ../src/guestfs.pod:1509
2996 msgid ""
2997 "The private data area is implemented using a hash table, and should be "
2998 "reasonably efficient for moderate numbers of keys."
2999 msgstr ""
3000
3001 # type: =head1
3002 #: ../src/guestfs.pod:1512
3003 msgid "BLOCK DEVICE NAMING"
3004 msgstr ""
3005
3006 # type: textblock
3007 #: ../src/guestfs.pod:1514
3008 msgid ""
3009 "In the kernel there is now quite a profusion of schemata for naming block "
3010 "devices (in this context, by I<block device> I mean a physical or virtual "
3011 "hard drive).  The original Linux IDE driver used names starting with "
3012 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
3013 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
3014 "replacement for the old IDE driver (particularly for SATA devices) those "
3015 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
3016 "machines with paravirtualized drivers.  This has created several different "
3017 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
3018 "Xen PV disks."
3019 msgstr ""
3020
3021 # type: textblock
3022 #: ../src/guestfs.pod:1526
3023 msgid ""
3024 "As discussed above, libguestfs uses a qemu appliance running an embedded "
3025 "Linux kernel to access block devices.  We can run a variety of appliances "
3026 "based on a variety of Linux kernels."
3027 msgstr ""
3028
3029 # type: textblock
3030 #: ../src/guestfs.pod:1530
3031 msgid ""
3032 "This causes a problem for libguestfs because many API calls use device or "
3033 "partition names.  Working scripts and the recipe (example) scripts that we "
3034 "make available over the internet could fail if the naming scheme changes."
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1535
3039 msgid ""
3040 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
3041 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
3042 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
3043 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
3044 msgstr ""
3045
3046 # type: textblock
3047 #: ../src/guestfs.pod:1541
3048 msgid ""
3049 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
3050 "L</guestfs_list_partitions> and similar calls return the true names of the "
3051 "devices and partitions as known to the appliance."
3052 msgstr ""
3053
3054 # type: =head2
3055 #: ../src/guestfs.pod:1546
3056 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
3057 msgstr ""
3058
3059 # type: textblock
3060 #: ../src/guestfs.pod:1548
3061 msgid ""
3062 "Usually this translation is transparent.  However in some (very rare)  cases "
3063 "you may need to know the exact algorithm.  Such cases include where you use "
3064 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
3065 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
3066 "devices."
3067 msgstr ""
3068
3069 # type: textblock
3070 #: ../src/guestfs.pod:1554
3071 msgid ""
3072 "The algorithm is applied only to I<parameters> which are known to be either "
3073 "device or partition names.  Return values from functions such as "
3074 "L</guestfs_list_devices> are never changed."
3075 msgstr ""
3076
3077 # type: textblock
3078 #: ../src/guestfs.pod:1562
3079 msgid "Is the string a parameter which is a device or partition name?"
3080 msgstr ""
3081
3082 # type: textblock
3083 #: ../src/guestfs.pod:1566
3084 msgid "Does the string begin with C</dev/sd>?"
3085 msgstr ""
3086
3087 # type: textblock
3088 #: ../src/guestfs.pod:1570
3089 msgid ""
3090 "Does the named device exist? If so, we use that device.  However if I<not> "
3091 "then we continue with this algorithm."
3092 msgstr ""
3093
3094 # type: textblock
3095 #: ../src/guestfs.pod:1575
3096 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1577
3101 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3102 msgstr ""
3103
3104 # type: textblock
3105 #: ../src/guestfs.pod:1579
3106 msgid "If that named device exists, use it.  If not, continue."
3107 msgstr ""
3108
3109 # type: textblock
3110 #: ../src/guestfs.pod:1583
3111 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3112 msgstr ""
3113
3114 # type: textblock
3115 #: ../src/guestfs.pod:1585
3116 msgid "If that named device exists, use it.  If not, return an error."
3117 msgstr ""
3118
3119 # type: =head2
3120 #: ../src/guestfs.pod:1589
3121 msgid "PORTABILITY CONCERNS"
3122 msgstr ""
3123
3124 # type: textblock
3125 #: ../src/guestfs.pod:1591
3126 msgid ""
3127 "Although the standard naming scheme and automatic translation is useful for "
3128 "simple programs and guestfish scripts, for larger programs it is best not to "
3129 "rely on this mechanism."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1595
3134 msgid ""
3135 "Where possible for maximum future portability programs using libguestfs "
3136 "should use these future-proof techniques:"
3137 msgstr ""
3138
3139 # type: textblock
3140 #: ../src/guestfs.pod:1602
3141 msgid ""
3142 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3143 "device names, and then use those names directly."
3144 msgstr ""
3145
3146 # type: textblock
3147 #: ../src/guestfs.pod:1605
3148 msgid "Since those device names exist by definition, they will never be translated."
3149 msgstr ""
3150
3151 # type: textblock
3152 #: ../src/guestfs.pod:1610
3153 msgid ""
3154 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3155 "filesystem labels."
3156 msgstr ""
3157
3158 # type: =head1
3159 #: ../src/guestfs.pod:1615
3160 msgid "INTERNALS"
3161 msgstr ""
3162
3163 # type: =head2
3164 #: ../src/guestfs.pod:1617
3165 msgid "COMMUNICATION PROTOCOL"
3166 msgstr ""
3167
3168 # type: textblock
3169 #: ../src/guestfs.pod:1619
3170 msgid ""
3171 "Don't rely on using this protocol directly.  This section documents how it "
3172 "currently works, but it may change at any time."
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1622
3177 msgid ""
3178 "The protocol used to talk between the library and the daemon running inside "
3179 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3180 "1014, RFC 1832, RFC 4506)."
3181 msgstr ""
3182
3183 # type: textblock
3184 #: ../src/guestfs.pod:1626
3185 msgid ""
3186 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3187 "this file is automatically generated)."
3188 msgstr ""
3189
3190 # type: textblock
3191 #: ../src/guestfs.pod:1629
3192 msgid ""
3193 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3194 "and C<FileOut> parameters, which are handled with very simple request/reply "
3195 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3196 "parameters, which use the same request and reply messages, but they may also "
3197 "be followed by files sent using a chunked encoding."
3198 msgstr ""
3199
3200 # type: =head3
3201 #: ../src/guestfs.pod:1636
3202 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3203 msgstr ""
3204
3205 # type: textblock
3206 #: ../src/guestfs.pod:1638
3207 msgid "For ordinary functions, the request message is:"
3208 msgstr ""
3209
3210 # type: verbatim
3211 #: ../src/guestfs.pod:1640
3212 #, no-wrap
3213 msgid ""
3214 " total length (header + arguments,\n"
3215 "      but not including the length word itself)\n"
3216 " struct guestfs_message_header (encoded as XDR)\n"
3217 " struct guestfs_<foo>_args (encoded as XDR)\n"
3218 "\n"
3219 msgstr ""
3220
3221 # type: textblock
3222 #: ../src/guestfs.pod:1645
3223 msgid ""
3224 "The total length field allows the daemon to allocate a fixed size buffer "
3225 "into which it slurps the rest of the message.  As a result, the total length "
3226 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3227 "effective size of any request is limited to somewhere under this size."
3228 msgstr ""
3229
3230 # type: textblock
3231 #: ../src/guestfs.pod:1651
3232 msgid ""
3233 "Note also that many functions don't take any arguments, in which case the "
3234 "C<guestfs_I<foo>_args> is completely omitted."
3235 msgstr ""
3236
3237 # type: textblock
3238 #: ../src/guestfs.pod:1654
3239 msgid ""
3240 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3241 "receiver knows what type of args structure to expect, or none at all."
3242 msgstr ""
3243
3244 # type: textblock
3245 #: ../src/guestfs.pod:1658
3246 msgid "The reply message for ordinary functions is:"
3247 msgstr ""
3248
3249 # type: verbatim
3250 #: ../src/guestfs.pod:1660
3251 #, no-wrap
3252 msgid ""
3253 " total length (header + ret,\n"
3254 "      but not including the length word itself)\n"
3255 " struct guestfs_message_header (encoded as XDR)\n"
3256 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3257 "\n"
3258 msgstr ""
3259
3260 # type: textblock
3261 #: ../src/guestfs.pod:1665
3262 msgid ""
3263 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3264 "functions that return no formal return values."
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1668
3269 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3270 msgstr ""
3271
3272 # type: textblock
3273 #: ../src/guestfs.pod:1671
3274 msgid ""
3275 "In the case of an error, a flag is set in the header, and the reply message "
3276 "is slightly changed:"
3277 msgstr ""
3278
3279 # type: verbatim
3280 #: ../src/guestfs.pod:1674
3281 #, no-wrap
3282 msgid ""
3283 " total length (header + error,\n"
3284 "      but not including the length word itself)\n"
3285 " struct guestfs_message_header (encoded as XDR)\n"
3286 " struct guestfs_message_error (encoded as XDR)\n"
3287 "\n"
3288 msgstr ""
3289
3290 # type: textblock
3291 #: ../src/guestfs.pod:1679
3292 msgid ""
3293 "The C<guestfs_message_error> structure contains the error message as a "
3294 "string."
3295 msgstr ""
3296
3297 # type: =head3
3298 #: ../src/guestfs.pod:1682
3299 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3300 msgstr ""
3301
3302 # type: textblock
3303 #: ../src/guestfs.pod:1684
3304 msgid ""
3305 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3306 "The normal request message is sent (see above).  However this is followed by "
3307 "a sequence of file chunks."
3308 msgstr ""
3309
3310 # type: verbatim
3311 #: ../src/guestfs.pod:1688
3312 #, no-wrap
3313 msgid ""
3314 " total length (header + arguments,\n"
3315 "      but not including the length word itself,\n"
3316 "      and not including the chunks)\n"
3317 " struct guestfs_message_header (encoded as XDR)\n"
3318 " struct guestfs_<foo>_args (encoded as XDR)\n"
3319 " sequence of chunks for FileIn param #0\n"
3320 " sequence of chunks for FileIn param #1 etc.\n"
3321 "\n"
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1696
3326 msgid "The \"sequence of chunks\" is:"
3327 msgstr ""
3328
3329 # type: verbatim
3330 #: ../src/guestfs.pod:1698
3331 #, no-wrap
3332 msgid ""
3333 " length of chunk (not including length word itself)\n"
3334 " struct guestfs_chunk (encoded as XDR)\n"
3335 " length of chunk\n"
3336 " struct guestfs_chunk (encoded as XDR)\n"
3337 "   ...\n"
3338 " length of chunk\n"
3339 " struct guestfs_chunk (with data.data_len == 0)\n"
3340 "\n"
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1706
3345 msgid ""
3346 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3347 "is set in the final chunk to indicate either successful completion or early "
3348 "cancellation."
3349 msgstr ""
3350
3351 # type: textblock
3352 #: ../src/guestfs.pod:1710
3353 msgid ""
3354 "At time of writing there are no functions that have more than one FileIn "
3355 "parameter.  However this is (theoretically) supported, by sending the "
3356 "sequence of chunks for each FileIn parameter one after another (from left to "
3357 "right)."
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1715
3362 msgid ""
3363 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3364 "transfer.  The library does this by sending a chunk with a special flag set "
3365 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3366 "RPC, does I<not> send any reply, and goes back to reading the next request."
3367 msgstr ""
3368
3369 # type: textblock
3370 #: ../src/guestfs.pod:1721
3371 msgid ""
3372 "The daemon may also cancel.  It does this by writing a special word "
3373 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3374 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3375 "cancel chunk).  The special word is chosen so that even if cancellation "
3376 "happens right at the end of the transfer (after the library has finished "
3377 "writing and has started listening for the reply), the \"spurious\" cancel "
3378 "flag will not be confused with the reply message."
3379 msgstr ""
3380
3381 # type: textblock
3382 #: ../src/guestfs.pod:1730
3383 msgid ""
3384 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3385 "limit), and also files where the size is not known in advance (eg. from "
3386 "pipes or sockets).  However the chunks are rather small "
3387 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3388 "to keep much in memory."
3389 msgstr ""
3390
3391 # type: =head3
3392 #: ../src/guestfs.pod:1736
3393 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3394 msgstr ""
3395
3396 # type: textblock
3397 #: ../src/guestfs.pod:1738
3398 msgid ""
3399 "The protocol for FileOut parameters is exactly the same as for FileIn "
3400 "parameters, but with the roles of daemon and library reversed."
3401 msgstr ""
3402
3403 # type: verbatim
3404 #: ../src/guestfs.pod:1741
3405 #, no-wrap
3406 msgid ""
3407 " total length (header + ret,\n"
3408 "      but not including the length word itself,\n"
3409 "      and not including the chunks)\n"
3410 " struct guestfs_message_header (encoded as XDR)\n"
3411 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3412 " sequence of chunks for FileOut param #0\n"
3413 " sequence of chunks for FileOut param #1 etc.\n"
3414 "\n"
3415 msgstr ""
3416
3417 # type: =head3
3418 #: ../src/guestfs.pod:1749
3419 msgid "INITIAL MESSAGE"
3420 msgstr ""
3421
3422 # type: textblock
3423 #: ../src/guestfs.pod:1751
3424 msgid ""
3425 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3426 "which indicates that the guest and daemon is alive.  This is what "
3427 "L</guestfs_launch> waits for."
3428 msgstr ""
3429
3430 # type: =head3
3431 #: ../src/guestfs.pod:1755
3432 msgid "PROGRESS NOTIFICATION MESSAGES"
3433 msgstr ""
3434
3435 # type: textblock
3436 #: ../src/guestfs.pod:1757
3437 msgid ""
3438 "The daemon may send progress notification messages at any time.  These are "
3439 "distinguished by the normal length word being replaced by "
3440 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3441 msgstr ""
3442
3443 # type: textblock
3444 #: ../src/guestfs.pod:1761
3445 msgid ""
3446 "The library turns them into progress callbacks (see "
3447 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3448 "discards them if not."
3449 msgstr ""
3450
3451 # type: textblock
3452 #: ../src/guestfs.pod:1765
3453 msgid ""
3454 "The daemon self-limits the frequency of progress messages it sends (see "
3455 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3456 "messages."
3457 msgstr ""
3458
3459 # type: =head1
3460 #: ../src/guestfs.pod:1769
3461 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3462 msgstr ""
3463
3464 # type: textblock
3465 #: ../src/guestfs.pod:1771
3466 msgid ""
3467 "All high-level libguestfs actions are synchronous.  If you want to use "
3468 "libguestfs asynchronously then you must create a thread."
3469 msgstr ""
3470
3471 # type: textblock
3472 #: ../src/guestfs.pod:1774
3473 msgid ""
3474 "Only use the handle from a single thread.  Either use the handle exclusively "
3475 "from one thread, or provide your own mutex so that two threads cannot issue "
3476 "calls on the same handle at the same time."
3477 msgstr ""
3478
3479 # type: textblock
3480 #: ../src/guestfs.pod:1778
3481 msgid ""
3482 "See the graphical program guestfs-browser for one possible architecture for "
3483 "multithreaded programs using libvirt and libguestfs."
3484 msgstr ""
3485
3486 # type: =head1
3487 #: ../src/guestfs.pod:1781
3488 msgid "QEMU WRAPPERS"
3489 msgstr ""
3490
3491 # type: textblock
3492 #: ../src/guestfs.pod:1783
3493 msgid ""
3494 "If you want to compile your own qemu, run qemu from a non-standard location, "
3495 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3496 "around qemu."
3497 msgstr ""
3498
3499 # type: textblock
3500 #: ../src/guestfs.pod:1787
3501 msgid ""
3502 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3503 "last command in the shell script (so that qemu replaces the shell and "
3504 "becomes the direct child of the libguestfs-using program).  If you don't do "
3505 "this, then the qemu process won't be cleaned up correctly."
3506 msgstr ""
3507
3508 # type: textblock
3509 #: ../src/guestfs.pod:1792
3510 msgid ""
3511 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3512 "source:"
3513 msgstr ""
3514
3515 # type: verbatim
3516 #: ../src/guestfs.pod:1795
3517 #, no-wrap
3518 msgid ""
3519 " #!/bin/sh -\n"
3520 " qemudir=/home/rjones/d/qemu\n"
3521 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3522 "\"$@\"\n"
3523 "\n"
3524 msgstr ""
3525
3526 # type: textblock
3527 #: ../src/guestfs.pod:1799
3528 msgid ""
3529 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3530 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3531 "example:"
3532 msgstr ""
3533
3534 # type: verbatim
3535 #: ../src/guestfs.pod:1803
3536 #, no-wrap
3537 msgid ""
3538 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3539 "\n"
3540 msgstr ""
3541
3542 # type: textblock
3543 #: ../src/guestfs.pod:1805
3544 msgid ""
3545 "Note that libguestfs also calls qemu with the -help and -version options in "
3546 "order to determine features."
3547 msgstr ""
3548
3549 # type: =head1
3550 #: ../src/guestfs.pod:1808
3551 msgid "LIBGUESTFS VERSION NUMBERS"
3552 msgstr ""
3553
3554 # type: textblock
3555 #: ../src/guestfs.pod:1810
3556 msgid ""
3557 "Since April 2010, libguestfs has started to make separate development and "
3558 "stable releases, along with corresponding branches in our git repository.  "
3559 "These separate releases can be identified by version number:"
3560 msgstr ""
3561
3562 # type: verbatim
3563 #: ../src/guestfs.pod:1815
3564 #, no-wrap
3565 msgid ""
3566 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3567 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3568 "       |\n"
3569 "       v\n"
3570 " 1  .  3  .  5\n"
3571 " ^           ^\n"
3572 " |           |\n"
3573 " |           `-------- sub-version\n"
3574 " |\n"
3575 " `------ always '1' because we don't change the ABI\n"
3576 "\n"
3577 msgstr ""
3578
3579 # type: textblock
3580 #: ../src/guestfs.pod:1826
3581 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3582 msgstr ""
3583
3584 # type: textblock
3585 #: ../src/guestfs.pod:1828
3586 msgid ""
3587 "As time passes we cherry pick fixes from the development branch and backport "
3588 "those into the stable branch, the effect being that the stable branch should "
3589 "get more stable and less buggy over time.  So the stable releases are ideal "
3590 "for people who don't need new features but would just like the software to "
3591 "work."
3592 msgstr ""
3593
3594 # type: textblock
3595 #: ../src/guestfs.pod:1834
3596 msgid "Our criteria for backporting changes are:"
3597 msgstr ""
3598
3599 # type: textblock
3600 #: ../src/guestfs.pod:1840
3601 msgid ""
3602 "Documentation changes which don't affect any code are backported unless the "
3603 "documentation refers to a future feature which is not in stable."
3604 msgstr ""
3605
3606 # type: textblock
3607 #: ../src/guestfs.pod:1846
3608 msgid ""
3609 "Bug fixes which are not controversial, fix obvious problems, and have been "
3610 "well tested are backported."
3611 msgstr ""
3612
3613 # type: textblock
3614 #: ../src/guestfs.pod:1851
3615 msgid ""
3616 "Simple rearrangements of code which shouldn't affect how it works get "
3617 "backported.  This is so that the code in the two branches doesn't get too "
3618 "far out of step, allowing us to backport future fixes more easily."
3619 msgstr ""
3620
3621 # type: textblock
3622 #: ../src/guestfs.pod:1857
3623 msgid ""
3624 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3625 "exceptional case: the new feature is required in order to implement an "
3626 "important bug fix."
3627 msgstr ""
3628
3629 # type: textblock
3630 #: ../src/guestfs.pod:1863
3631 msgid ""
3632 "A new stable branch starts when we think the new features in development are "
3633 "substantial and compelling enough over the current stable branch to warrant "
3634 "it.  When that happens we create new stable and development versions 1.N.0 "
3635 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3636 "stable at this point, but by backporting fixes from development, that branch "
3637 "will stabilize over time."
3638 msgstr ""
3639
3640 # type: =head1
3641 #: ../src/guestfs.pod:1871 ../fish/guestfish.pod:914 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3642 msgid "ENVIRONMENT VARIABLES"
3643 msgstr ""
3644
3645 # type: =item
3646 #: ../src/guestfs.pod:1875 ../fish/guestfish.pod:940
3647 msgid "LIBGUESTFS_APPEND"
3648 msgstr ""
3649
3650 # type: textblock
3651 #: ../src/guestfs.pod:1877 ../fish/guestfish.pod:942
3652 msgid "Pass additional options to the guest kernel."
3653 msgstr ""
3654
3655 # type: =item
3656 #: ../src/guestfs.pod:1879 ../fish/guestfish.pod:944
3657 msgid "LIBGUESTFS_DEBUG"
3658 msgstr ""
3659
3660 # type: textblock
3661 #: ../src/guestfs.pod:1881
3662 msgid ""
3663 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3664 "effect as calling C<guestfs_set_verbose (g, 1)>."
3665 msgstr ""
3666
3667 # type: =item
3668 #: ../src/guestfs.pod:1884 ../fish/guestfish.pod:949
3669 msgid "LIBGUESTFS_MEMSIZE"
3670 msgstr ""
3671
3672 # type: textblock
3673 #: ../src/guestfs.pod:1886 ../fish/guestfish.pod:951
3674 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3675 msgstr ""
3676
3677 # type: verbatim
3678 #: ../src/guestfs.pod:1889 ../fish/guestfish.pod:954
3679 #, no-wrap
3680 msgid ""
3681 " LIBGUESTFS_MEMSIZE=700\n"
3682 "\n"
3683 msgstr ""
3684
3685 # type: =item
3686 #: ../src/guestfs.pod:1891 ../fish/guestfish.pod:956
3687 msgid "LIBGUESTFS_PATH"
3688 msgstr ""
3689
3690 # type: textblock
3691 #: ../src/guestfs.pod:1893
3692 msgid ""
3693 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3694 "the discussion of paths in section PATH above."
3695 msgstr ""
3696
3697 # type: =item
3698 #: ../src/guestfs.pod:1896 ../fish/guestfish.pod:961
3699 msgid "LIBGUESTFS_QEMU"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1898 ../fish/guestfish.pod:963
3704 msgid ""
3705 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3706 "which was found at compile time by the configure script is used."
3707 msgstr ""
3708
3709 # type: textblock
3710 #: ../src/guestfs.pod:1902
3711 msgid "See also L</QEMU WRAPPERS> above."
3712 msgstr ""
3713
3714 # type: =item
3715 #: ../src/guestfs.pod:1904 ../fish/guestfish.pod:967
3716 msgid "LIBGUESTFS_TRACE"
3717 msgstr ""
3718
3719 # type: textblock
3720 #: ../src/guestfs.pod:1906
3721 msgid ""
3722 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3723 "effect as calling C<guestfs_set_trace (g, 1)>."
3724 msgstr ""
3725
3726 # type: =item
3727 #: ../src/guestfs.pod:1909 ../fish/guestfish.pod:976
3728 msgid "TMPDIR"
3729 msgstr ""
3730
3731 # type: textblock
3732 #: ../src/guestfs.pod:1911 ../fish/guestfish.pod:978
3733 msgid "Location of temporary directory, defaults to C</tmp>."
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1913 ../fish/guestfish.pod:980
3738 msgid ""
3739 "If libguestfs was compiled to use the supermin appliance then the real "
3740 "appliance is cached in this directory, shared between all handles belonging "
3741 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3742 "use in case C</tmp> is not large enough."
3743 msgstr ""
3744
3745 # type: =head1
3746 #: ../src/guestfs.pod:1921 ../fish/guestfish.pod:1038 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../inspector/virt-inspector.pl:570 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484 ../tools/virt-df.pl:640 ../tools/virt-ls.pl:232 ../tools/virt-resize.pl:1486 ../tools/virt-list-filesystems.pl:186 ../tools/virt-cat.pl:185 ../tools/virt-tar.pl:281 ../tools/virt-rescue.pl:267 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:254
3747 msgid "SEE ALSO"
3748 msgstr ""
3749
3750 # type: textblock
3751 #: ../src/guestfs.pod:1923
3752 msgid ""
3753 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3754 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3755 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3756 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3757 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3758 msgstr ""
3759
3760 # type: textblock
3761 #: ../src/guestfs.pod:1941
3762 msgid ""
3763 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
3764 "L<lvm(8)>, L<disktype(1)>."
3765 msgstr ""
3766
3767 # type: =head1
3768 #: ../src/guestfs.pod:1948 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
3769 msgid "BUGS"
3770 msgstr ""
3771
3772 # type: textblock
3773 #: ../src/guestfs.pod:1950
3774 msgid "To get a list of bugs against libguestfs use this link:"
3775 msgstr ""
3776
3777 # type: textblock
3778 #: ../src/guestfs.pod:1952
3779 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
3780 msgstr ""
3781
3782 # type: textblock
3783 #: ../src/guestfs.pod:1954
3784 msgid "To report a new bug against libguestfs use this link:"
3785 msgstr ""
3786
3787 # type: textblock
3788 #: ../src/guestfs.pod:1956
3789 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
3790 msgstr ""
3791
3792 # type: textblock
3793 #: ../src/guestfs.pod:1958
3794 msgid "When reporting a bug, please check:"
3795 msgstr ""
3796
3797 # type: textblock
3798 #: ../src/guestfs.pod:1964
3799 msgid "That the bug hasn't been reported already."
3800 msgstr ""
3801
3802 # type: textblock
3803 #: ../src/guestfs.pod:1968
3804 msgid "That you are testing a recent version."
3805 msgstr ""
3806
3807 # type: textblock
3808 #: ../src/guestfs.pod:1972
3809 msgid "Describe the bug accurately, and give a way to reproduce it."
3810 msgstr ""
3811
3812 # type: textblock
3813 #: ../src/guestfs.pod:1976
3814 msgid ""
3815 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3816 "bug report."
3817 msgstr ""
3818
3819 # type: =head1
3820 #: ../src/guestfs.pod:1981 ../fish/guestfish.pod:1055 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244 ../inspector/virt-inspector.pl:580
3821 msgid "AUTHORS"
3822 msgstr ""
3823
3824 # type: textblock
3825 #: ../src/guestfs.pod:1983 ../fish/guestfish.pod:1057 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
3826 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3827 msgstr ""
3828
3829 # type: =head1
3830 #: ../src/guestfs.pod:1985 ../fish/guestfish.pod:1059 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../inspector/virt-inspector.pl:594 ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514 ../tools/virt-df.pl:653 ../tools/virt-ls.pl:247 ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:202 ../tools/virt-cat.pl:199 ../tools/virt-tar.pl:296 ../tools/virt-rescue.pl:281 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:269
3831 msgid "COPYRIGHT"
3832 msgstr ""
3833
3834 # type: textblock
3835 #: ../src/guestfs.pod:1987 ../fish/guestfish.pod:1061 ../fuse/guestmount.pod:250
3836 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3837 msgstr ""
3838
3839 # type: textblock
3840 #: ../src/guestfs.pod:1990
3841 msgid ""
3842 "This library is free software; you can redistribute it and/or modify it "
3843 "under the terms of the GNU Lesser General Public License as published by the "
3844 "Free Software Foundation; either version 2 of the License, or (at your "
3845 "option) any later version."
3846 msgstr ""
3847
3848 # type: textblock
3849 #: ../src/guestfs.pod:1995
3850 msgid ""
3851 "This library is distributed in the hope that it will be useful, but WITHOUT "
3852 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3853 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3854 "for more details."
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs.pod:2000
3859 msgid ""
3860 "You should have received a copy of the GNU Lesser General Public License "
3861 "along with this library; if not, write to the Free Software Foundation, "
3862 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3863 msgstr ""
3864
3865 # type: =head2
3866 #: ../src/guestfs-actions.pod:1
3867 msgid "guestfs_add_cdrom"
3868 msgstr ""
3869
3870 # type: verbatim
3871 #: ../src/guestfs-actions.pod:3
3872 #, no-wrap
3873 msgid ""
3874 " int\n"
3875 " guestfs_add_cdrom (guestfs_h *g,\n"
3876 "                    const char *filename);\n"
3877 "\n"
3878 msgstr ""
3879
3880 # type: textblock
3881 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
3882 msgid "This function adds a virtual CD-ROM disk image to the guest."
3883 msgstr ""
3884
3885 # type: textblock
3886 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
3887 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3888 msgstr ""
3889
3890 # type: textblock
3891 #: ../src/guestfs-actions.pod:17
3892 msgid ""
3893 "This call checks for the existence of C<filename>.  This stops you from "
3894 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3895 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3896 "instead."
3897 msgstr ""
3898
3899 # type: textblock
3900 #: ../src/guestfs-actions.pod:24
3901 msgid ""
3902 "If you just want to add an ISO file (often you use this as an efficient way "
3903 "to transfer large files into the guest), then you should probably use "
3904 "C<guestfs_add_drive_ro> instead."
3905 msgstr ""
3906
3907 # type: textblock
3908 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:58 ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:156 ../src/guestfs-actions.pod:170 ../src/guestfs-actions.pod:191 ../src/guestfs-actions.pod:211 ../src/guestfs-actions.pod:225 ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:360 ../src/guestfs-actions.pod:374 ../src/guestfs-actions.pod:419 ../src/guestfs-actions.pod:447 ../src/guestfs-actions.pod:465 ../src/guestfs-actions.pod:532 ../src/guestfs-actions.pod:565 ../src/guestfs-actions.pod:579 ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:725 ../src/guestfs-actions.pod:739 ../src/guestfs-actions.pod:900 ../src/guestfs-actions.pod:920 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1059 ../src/guestfs-actions.pod:1073 ../src/guestfs-actions.pod:1093 ../src/guestfs-actions.pod:1132 ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1258 ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1653 ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:2329 ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:2977 ../src/guestfs-actions.pod:2997 ../src/guestfs-actions.pod:3123 ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3164 ../src/guestfs-actions.pod:3179 ../src/guestfs-actions.pod:3215 ../src/guestfs-actions.pod:3288 ../src/guestfs-actions.pod:3308 ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:3371 ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3476 ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3585 ../src/guestfs-actions.pod:3680 ../src/guestfs-actions.pod:3700 ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3782 ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:3830 ../src/guestfs-actions.pod:3844 ../src/guestfs-actions.pod:3861 ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3945 ../src/guestfs-actions.pod:3976 ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4056 ../src/guestfs-actions.pod:4071 ../src/guestfs-actions.pod:4086 ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4315 ../src/guestfs-actions.pod:4332 ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:4542 ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4697 ../src/guestfs-actions.pod:4710 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5060 ../src/guestfs-actions.pod:5074 ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5116 ../src/guestfs-actions.pod:5137 ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5175 ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5216 ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5338 ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5420 ../src/guestfs-actions.pod:5435 ../src/guestfs-actions.pod:5454 ../src/guestfs-actions.pod:5491 ../src/guestfs-actions.pod:5514 ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5648 ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5781 ../src/guestfs-actions.pod:5794 ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5829 ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:5855 ../src/guestfs-actions.pod:5868 ../src/guestfs-actions.pod:5883 ../src/guestfs-actions.pod:5942 ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:5991 ../src/guestfs-actions.pod:6008 ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6041 ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6091 ../src/guestfs-actions.pod:6132 ../src/guestfs-actions.pod:6145 ../src/guestfs-actions.pod:6163 ../src/guestfs-actions.pod:6192 ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6374 ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6442 ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6601 ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6686 ../src/guestfs-actions.pod:6715
3909 msgid "This function returns 0 on success or -1 on error."
3910 msgstr ""
3911
3912 # type: textblock
3913 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:172 ../src/guestfs-actions.pod:193 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3914 msgid ""
3915 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3916 "instead."
3917 msgstr ""
3918
3919 # type: textblock
3920 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:175 ../src/guestfs-actions.pod:196 ../src/guestfs-actions.pod:1406 ../src/guestfs-actions.pod:1892 ../src/guestfs-actions.pod:1913 ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6778 ../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:4366 ../fish/guestfish-actions.pod:4463
3921 msgid ""
3922 "Deprecated functions will not be removed from the API, but the fact that "
3923 "they are deprecated indicates that there are problems with correct use of "
3924 "these functions."
3925 msgstr ""
3926
3927 # type: textblock
3928 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:60 ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:1864 ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2065 ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:4123 ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5422 ../src/guestfs-actions.pod:5885 ../src/guestfs-actions.pod:6010 ../src/guestfs-actions.pod:6523
3929 msgid "(Added in 0.3)"
3930 msgstr ""
3931
3932 # type: =head2
3933 #: ../src/guestfs-actions.pod:41
3934 msgid "guestfs_add_drive"
3935 msgstr ""
3936
3937 # type: verbatim
3938 #: ../src/guestfs-actions.pod:43
3939 #, no-wrap
3940 msgid ""
3941 " int\n"
3942 " guestfs_add_drive (guestfs_h *g,\n"
3943 "                    const char *filename);\n"
3944 "\n"
3945 msgstr ""
3946
3947 # type: textblock
3948 #: ../src/guestfs-actions.pod:47
3949 msgid ""
3950 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
3951 "optional parameters, so the disk is added writable, with the format being "
3952 "detected automatically."
3953 msgstr ""
3954
3955 # type: textblock
3956 #: ../src/guestfs-actions.pod:51
3957 msgid ""
3958 "Automatic detection of the format opens you up to a potential security hole "
3959 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3960 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3961 "you should think about replacing calls to this function with calls to "
3962 "C<guestfs_add_drive_opts>, and specifying the format."
3963 msgstr ""
3964
3965 # type: =head2
3966 #: ../src/guestfs-actions.pod:62
3967 msgid "guestfs_add_drive_opts"
3968 msgstr ""
3969
3970 # type: verbatim
3971 #: ../src/guestfs-actions.pod:64
3972 #, no-wrap
3973 msgid ""
3974 " int\n"
3975 " guestfs_add_drive_opts (guestfs_h *g,\n"
3976 "                         const char *filename,\n"
3977 "                         ...);\n"
3978 "\n"
3979 msgstr ""
3980
3981 # type: textblock
3982 #: ../src/guestfs-actions.pod:69
3983 msgid ""
3984 "You may supply a list of optional arguments to this call.  Use zero or more "
3985 "of the following pairs of parameters, and terminate the list with C<-1> on "
3986 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
3987 msgstr ""
3988
3989 # type: verbatim
3990 #: ../src/guestfs-actions.pod:74
3991 #, no-wrap
3992 msgid ""
3993 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
3994 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
3995 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
3996 "\n"
3997 msgstr ""
3998
3999 # type: textblock
4000 #: ../src/guestfs-actions.pod:78 ../fish/guestfish-actions.pod:56
4001 msgid ""
4002 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4003 "The first time you call this function, the disk appears as C</dev/sda>, the "
4004 "second time as C</dev/sdb>, and so on."
4005 msgstr ""
4006
4007 # type: textblock
4008 #: ../src/guestfs-actions.pod:83 ../fish/guestfish-actions.pod:61
4009 msgid ""
4010 "You don't necessarily need to be root when using libguestfs.  However you "
4011 "obviously do need sufficient permissions to access the filename for whatever "
4012 "operations you want to perform (ie. read access if you just want to read the "
4013 "image or write access if you want to modify the image)."
4014 msgstr ""
4015
4016 # type: textblock
4017 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:67
4018 msgid "This call checks that C<filename> exists."
4019 msgstr ""
4020
4021 # type: textblock
4022 #: ../src/guestfs-actions.pod:91 ../fish/guestfish-actions.pod:69
4023 msgid "The optional arguments are:"
4024 msgstr ""
4025
4026 # type: =item
4027 #: ../src/guestfs-actions.pod:95 ../fish/guestfish-actions.pod:73
4028 msgid "C<readonly>"
4029 msgstr ""
4030
4031 # type: textblock
4032 #: ../src/guestfs-actions.pod:97 ../fish/guestfish-actions.pod:75
4033 msgid ""
4034 "If true then the image is treated as read-only.  Writes are still allowed, "
4035 "but they are stored in a temporary snapshot overlay which is discarded at "
4036 "the end.  The disk that you add is not modified."
4037 msgstr ""
4038
4039 # type: =item
4040 #: ../src/guestfs-actions.pod:101 ../fish/guestfish-actions.pod:79
4041 msgid "C<format>"
4042 msgstr ""
4043
4044 # type: textblock
4045 #: ../src/guestfs-actions.pod:103
4046 msgid ""
4047 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4048 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4049 "Possible formats include C<raw> and C<qcow2>."
4050 msgstr ""
4051
4052 # type: textblock
4053 #: ../src/guestfs-actions.pod:107 ../fish/guestfish-actions.pod:85
4054 msgid ""
4055 "Automatic detection of the format opens you up to a potential security hole "
4056 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4057 "RHBZ#642934.  Specifying the format closes this security hole."
4058 msgstr ""
4059
4060 # type: =item
4061 #: ../src/guestfs-actions.pod:112 ../fish/guestfish-actions.pod:90
4062 msgid "C<iface>"
4063 msgstr ""
4064
4065 # type: textblock
4066 #: ../src/guestfs-actions.pod:114
4067 msgid ""
4068 "This rarely-used option lets you emulate the behaviour of the deprecated "
4069 "C<guestfs_add_drive_with_if> call (q.v.)"
4070 msgstr ""
4071
4072 # type: textblock
4073 #: ../src/guestfs-actions.pod:121
4074 msgid "(Added in 1.5.23)"
4075 msgstr ""
4076
4077 # type: =head2
4078 #: ../src/guestfs-actions.pod:123
4079 msgid "guestfs_add_drive_opts_va"
4080 msgstr ""
4081
4082 # type: verbatim
4083 #: ../src/guestfs-actions.pod:125
4084 #, no-wrap
4085 msgid ""
4086 " int\n"
4087 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4088 "                            const char *filename,\n"
4089 "                            va_list args);\n"
4090 "\n"
4091 msgstr ""
4092
4093 # type: textblock
4094 #: ../src/guestfs-actions.pod:130
4095 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4096 msgstr ""
4097
4098 # type: textblock
4099 #: ../src/guestfs-actions.pod:132 ../src/guestfs-actions.pod:143
4100 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4101 msgstr ""
4102
4103 # type: =head2
4104 #: ../src/guestfs-actions.pod:134
4105 msgid "guestfs_add_drive_opts_argv"
4106 msgstr ""
4107
4108 # type: verbatim
4109 #: ../src/guestfs-actions.pod:136
4110 #, no-wrap
4111 msgid ""
4112 " int\n"
4113 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4114 "                              const char *filename,\n"
4115 "                              const struct guestfs_add_drive_opts_argv "
4116 "*optargs);\n"
4117 "\n"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs-actions.pod:141
4122 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4123 msgstr ""
4124
4125 # type: =head2
4126 #: ../src/guestfs-actions.pod:145
4127 msgid "guestfs_add_drive_ro"
4128 msgstr ""
4129
4130 # type: verbatim
4131 #: ../src/guestfs-actions.pod:147
4132 #, no-wrap
4133 msgid ""
4134 " int\n"
4135 " guestfs_add_drive_ro (guestfs_h *g,\n"
4136 "                       const char *filename);\n"
4137 "\n"
4138 msgstr ""
4139
4140 # type: textblock
4141 #: ../src/guestfs-actions.pod:151
4142 msgid ""
4143 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4144 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4145 "disk is added read-only, with the format being detected automatically."
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../src/guestfs-actions.pod:158
4150 msgid "(Added in 1.0.38)"
4151 msgstr ""
4152
4153 # type: =head2
4154 #: ../src/guestfs-actions.pod:160
4155 msgid "guestfs_add_drive_ro_with_if"
4156 msgstr ""
4157
4158 # type: verbatim
4159 #: ../src/guestfs-actions.pod:162
4160 #, no-wrap
4161 msgid ""
4162 " int\n"
4163 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4164 "                               const char *filename,\n"
4165 "                               const char *iface);\n"
4166 "\n"
4167 msgstr ""
4168
4169 # type: textblock
4170 #: ../src/guestfs-actions.pod:167
4171 msgid ""
4172 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4173 "QEMU interface emulation to use at run time."
4174 msgstr ""
4175
4176 # type: textblock
4177 #: ../src/guestfs-actions.pod:179 ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:2275
4178 msgid "(Added in 1.0.84)"
4179 msgstr ""
4180
4181 # type: =head2
4182 #: ../src/guestfs-actions.pod:181
4183 msgid "guestfs_add_drive_with_if"
4184 msgstr ""
4185
4186 # type: verbatim
4187 #: ../src/guestfs-actions.pod:183
4188 #, no-wrap
4189 msgid ""
4190 " int\n"
4191 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4192 "                            const char *filename,\n"
4193 "                            const char *iface);\n"
4194 "\n"
4195 msgstr ""
4196
4197 # type: textblock
4198 #: ../src/guestfs-actions.pod:188
4199 msgid ""
4200 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4201 "QEMU interface emulation to use at run time."
4202 msgstr ""
4203
4204 # type: =head2
4205 #: ../src/guestfs-actions.pod:202
4206 msgid "guestfs_aug_clear"
4207 msgstr ""
4208
4209 # type: verbatim
4210 #: ../src/guestfs-actions.pod:204
4211 #, no-wrap
4212 msgid ""
4213 " int\n"
4214 " guestfs_aug_clear (guestfs_h *g,\n"
4215 "                    const char *augpath);\n"
4216 "\n"
4217 msgstr ""
4218
4219 # type: textblock
4220 #: ../src/guestfs-actions.pod:208 ../fish/guestfish-actions.pod:142
4221 msgid ""
4222 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4223 "L<augtool(1)> C<clear> command."
4224 msgstr ""
4225
4226 # type: textblock
4227 #: ../src/guestfs-actions.pod:213 ../src/guestfs-actions.pod:2054
4228 msgid "(Added in 1.3.4)"
4229 msgstr ""
4230
4231 # type: =head2
4232 #: ../src/guestfs-actions.pod:215
4233 msgid "guestfs_aug_close"
4234 msgstr ""
4235
4236 # type: verbatim
4237 #: ../src/guestfs-actions.pod:217
4238 #, no-wrap
4239 msgid ""
4240 " int\n"
4241 " guestfs_aug_close (guestfs_h *g);\n"
4242 "\n"
4243 msgstr ""
4244
4245 # type: textblock
4246 #: ../src/guestfs-actions.pod:220
4247 msgid ""
4248 "Close the current Augeas handle and free up any resources used by it.  After "
4249 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4250 "any other Augeas functions."
4251 msgstr ""
4252
4253 # type: textblock
4254 #: ../src/guestfs-actions.pod:227 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:270 ../src/guestfs-actions.pod:284 ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:376 ../src/guestfs-actions.pod:407 ../src/guestfs-actions.pod:421 ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:449 ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:4872
4255 msgid "(Added in 0.7)"
4256 msgstr ""
4257
4258 # type: =head2
4259 #: ../src/guestfs-actions.pod:229
4260 msgid "guestfs_aug_defnode"
4261 msgstr ""
4262
4263 # type: verbatim
4264 #: ../src/guestfs-actions.pod:231
4265 #, no-wrap
4266 msgid ""
4267 " struct guestfs_int_bool *\n"
4268 " guestfs_aug_defnode (guestfs_h *g,\n"
4269 "                      const char *name,\n"
4270 "                      const char *expr,\n"
4271 "                      const char *val);\n"
4272 "\n"
4273 msgstr ""
4274
4275 # type: textblock
4276 #: ../src/guestfs-actions.pod:237 ../fish/guestfish-actions.pod:158
4277 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4278 msgstr ""
4279
4280 # type: textblock
4281 #: ../src/guestfs-actions.pod:240
4282 msgid ""
4283 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4284 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4285 "containing that single node."
4286 msgstr ""
4287
4288 # type: textblock
4289 #: ../src/guestfs-actions.pod:244 ../fish/guestfish-actions.pod:165
4290 msgid ""
4291 "On success this returns a pair containing the number of nodes in the "
4292 "nodeset, and a boolean flag if a node was created."
4293 msgstr ""
4294
4295 # type: textblock
4296 #: ../src/guestfs-actions.pod:248
4297 msgid ""
4298 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4299 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4300 msgstr ""
4301
4302 # type: =head2
4303 #: ../src/guestfs-actions.pod:254
4304 msgid "guestfs_aug_defvar"
4305 msgstr ""
4306
4307 # type: verbatim
4308 #: ../src/guestfs-actions.pod:256
4309 #, no-wrap
4310 msgid ""
4311 " int\n"
4312 " guestfs_aug_defvar (guestfs_h *g,\n"
4313 "                     const char *name,\n"
4314 "                     const char *expr);\n"
4315 "\n"
4316 msgstr ""
4317
4318 # type: textblock
4319 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:173
4320 msgid ""
4321 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4322 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4323 msgstr ""
4324
4325 # type: textblock
4326 #: ../src/guestfs-actions.pod:265 ../fish/guestfish-actions.pod:177
4327 msgid ""
4328 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4329 "evaluates to something which is not a nodeset."
4330 msgstr ""
4331
4332 # type: textblock
4333 #: ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:611 ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1632 ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:4259 ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6534 ../src/guestfs-actions.pod:6547 ../src/guestfs-actions.pod:6560
4334 msgid "On error this function returns -1."
4335 msgstr ""
4336
4337 # type: =head2
4338 #: ../src/guestfs-actions.pod:272
4339 msgid "guestfs_aug_get"
4340 msgstr ""
4341
4342 # type: verbatim
4343 #: ../src/guestfs-actions.pod:274
4344 #, no-wrap
4345 msgid ""
4346 " char *\n"
4347 " guestfs_aug_get (guestfs_h *g,\n"
4348 "                  const char *augpath);\n"
4349 "\n"
4350 msgstr ""
4351
4352 # type: textblock
4353 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:184
4354 msgid ""
4355 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4356 "node, the C<value> is returned."
4357 msgstr ""
4358
4359 # type: textblock
4360 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:781 ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:859 ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:978 ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1164 ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1795 ../src/guestfs-actions.pod:1886 ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2077 ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:2448 ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2652 ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:2731 ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4770 ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5561 ../src/guestfs-actions.pod:5577 ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:6282 ../src/guestfs-actions.pod:6301 ../src/guestfs-actions.pod:6319 ../src/guestfs-actions.pod:6500 ../src/guestfs-actions.pod:6772
4361 msgid ""
4362 "This function returns a string, or NULL on error.  I<The caller must free "
4363 "the returned string after use>."
4364 msgstr ""
4365
4366 # type: =head2
4367 #: ../src/guestfs-actions.pod:286
4368 msgid "guestfs_aug_init"
4369 msgstr ""
4370
4371 # type: verbatim
4372 #: ../src/guestfs-actions.pod:288
4373 #, no-wrap
4374 msgid ""
4375 " int\n"
4376 " guestfs_aug_init (guestfs_h *g,\n"
4377 "                   const char *root,\n"
4378 "                   int flags);\n"
4379 "\n"
4380 msgstr ""
4381
4382 # type: textblock
4383 #: ../src/guestfs-actions.pod:293 ../fish/guestfish-actions.pod:191
4384 msgid ""
4385 "Create a new Augeas handle for editing configuration files.  If there was "
4386 "any previous Augeas handle associated with this guestfs session, then it is "
4387 "closed."
4388 msgstr ""
4389
4390 # type: textblock
4391 #: ../src/guestfs-actions.pod:297
4392 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4393 msgstr ""
4394
4395 # type: textblock
4396 #: ../src/guestfs-actions.pod:300 ../fish/guestfish-actions.pod:198
4397 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4398 msgstr ""
4399
4400 # type: textblock
4401 #: ../src/guestfs-actions.pod:303 ../fish/guestfish-actions.pod:201
4402 msgid ""
4403 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4404 "logical I<or> of the following integers:"
4405 msgstr ""
4406
4407 # type: =item
4408 #: ../src/guestfs-actions.pod:309 ../fish/guestfish-actions.pod:207
4409 msgid "C<AUG_SAVE_BACKUP> = 1"
4410 msgstr ""
4411
4412 # type: textblock
4413 #: ../src/guestfs-actions.pod:311 ../fish/guestfish-actions.pod:209
4414 msgid "Keep the original file with a C<.augsave> extension."
4415 msgstr ""
4416
4417 # type: =item
4418 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:211
4419 msgid "C<AUG_SAVE_NEWFILE> = 2"
4420 msgstr ""
4421
4422 # type: textblock
4423 #: ../src/guestfs-actions.pod:315 ../fish/guestfish-actions.pod:213
4424 msgid ""
4425 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4426 "original.  Overrides C<AUG_SAVE_BACKUP>."
4427 msgstr ""
4428
4429 # type: =item
4430 #: ../src/guestfs-actions.pod:318 ../fish/guestfish-actions.pod:216
4431 msgid "C<AUG_TYPE_CHECK> = 4"
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:218
4436 msgid "Typecheck lenses (can be expensive)."
4437 msgstr ""
4438
4439 # type: =item
4440 #: ../src/guestfs-actions.pod:322 ../fish/guestfish-actions.pod:220
4441 msgid "C<AUG_NO_STDINC> = 8"
4442 msgstr ""
4443
4444 # type: textblock
4445 #: ../src/guestfs-actions.pod:324 ../fish/guestfish-actions.pod:222
4446 msgid "Do not use standard load path for modules."
4447 msgstr ""
4448
4449 # type: =item
4450 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:224
4451 msgid "C<AUG_SAVE_NOOP> = 16"
4452 msgstr ""
4453
4454 # type: textblock
4455 #: ../src/guestfs-actions.pod:328 ../fish/guestfish-actions.pod:226
4456 msgid "Make save a no-op, just record what would have been changed."
4457 msgstr ""
4458
4459 # type: =item
4460 #: ../src/guestfs-actions.pod:330 ../fish/guestfish-actions.pod:228
4461 msgid "C<AUG_NO_LOAD> = 32"
4462 msgstr ""
4463
4464 # type: textblock
4465 #: ../src/guestfs-actions.pod:332
4466 msgid "Do not load the tree in C<guestfs_aug_init>."
4467 msgstr ""
4468
4469 # type: textblock
4470 #: ../src/guestfs-actions.pod:336
4471 msgid "To close the handle, you can call C<guestfs_aug_close>."
4472 msgstr ""
4473
4474 # type: textblock
4475 #: ../src/guestfs-actions.pod:338 ../fish/guestfish-actions.pod:236
4476 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4477 msgstr ""
4478
4479 # type: =head2
4480 #: ../src/guestfs-actions.pod:344
4481 msgid "guestfs_aug_insert"
4482 msgstr ""
4483
4484 # type: verbatim
4485 #: ../src/guestfs-actions.pod:346
4486 #, no-wrap
4487 msgid ""
4488 " int\n"
4489 " guestfs_aug_insert (guestfs_h *g,\n"
4490 "                     const char *augpath,\n"
4491 "                     const char *label,\n"
4492 "                     int before);\n"
4493 "\n"
4494 msgstr ""
4495
4496 # type: textblock
4497 #: ../src/guestfs-actions.pod:352 ../fish/guestfish-actions.pod:242
4498 msgid ""
4499 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4500 "or after C<path> (depending on the boolean flag C<before>)."
4501 msgstr ""
4502
4503 # type: textblock
4504 #: ../src/guestfs-actions.pod:356 ../fish/guestfish-actions.pod:246
4505 msgid ""
4506 "C<path> must match exactly one existing node in the tree, and C<label> must "
4507 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4508 msgstr ""
4509
4510 # type: =head2
4511 #: ../src/guestfs-actions.pod:364
4512 msgid "guestfs_aug_load"
4513 msgstr ""
4514
4515 # type: verbatim
4516 #: ../src/guestfs-actions.pod:366
4517 #, no-wrap
4518 msgid ""
4519 " int\n"
4520 " guestfs_aug_load (guestfs_h *g);\n"
4521 "\n"
4522 msgstr ""
4523
4524 # type: textblock
4525 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:254
4526 msgid "Load files into the tree."
4527 msgstr ""
4528
4529 # type: textblock
4530 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:256
4531 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4532 msgstr ""
4533
4534 # type: =head2
4535 #: ../src/guestfs-actions.pod:378
4536 msgid "guestfs_aug_ls"
4537 msgstr ""
4538
4539 # type: verbatim
4540 #: ../src/guestfs-actions.pod:380
4541 #, no-wrap
4542 msgid ""
4543 " char **\n"
4544 " guestfs_aug_ls (guestfs_h *g,\n"
4545 "                 const char *augpath);\n"
4546 "\n"
4547 msgstr ""
4548
4549 # type: textblock
4550 #: ../src/guestfs-actions.pod:384
4551 msgid ""
4552 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4553 "sorting the resulting nodes into alphabetical order."
4554 msgstr ""
4555
4556 # type: textblock
4557 #: ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:403 ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:997 ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1468 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:2120 ../src/guestfs-actions.pod:2136 ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2222 ../src/guestfs-actions.pod:2293 ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2671 ../src/guestfs-actions.pod:2773 ../src/guestfs-actions.pod:3029 ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3602 ../src/guestfs-actions.pod:4220 ../src/guestfs-actions.pod:4741 ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4983 ../src/guestfs-actions.pod:5634 ../src/guestfs-actions.pod:5695 ../src/guestfs-actions.pod:5750 ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:5920 ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6412 ../src/guestfs-actions.pod:6459 ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6644 ../src/guestfs-actions.pod:6729 ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6813
4558 msgid ""
4559 "This function returns a NULL-terminated array of strings (like "
4560 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4561 "strings and the array after use>."
4562 msgstr ""
4563
4564 # type: textblock
4565 #: ../src/guestfs-actions.pod:391 ../src/guestfs-actions.pod:922 ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1384 ../src/guestfs-actions.pod:2851 ../src/guestfs-actions.pod:2882 ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3878 ../src/guestfs-actions.pod:4224 ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5076 ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:6134 ../src/guestfs-actions.pod:6147 ../src/guestfs-actions.pod:6376 ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6613
4566 msgid "(Added in 0.8)"
4567 msgstr ""
4568
4569 # type: =head2
4570 #: ../src/guestfs-actions.pod:393
4571 msgid "guestfs_aug_match"
4572 msgstr ""
4573
4574 # type: verbatim
4575 #: ../src/guestfs-actions.pod:395
4576 #, no-wrap
4577 msgid ""
4578 " char **\n"
4579 " guestfs_aug_match (guestfs_h *g,\n"
4580 "                    const char *augpath);\n"
4581 "\n"
4582 msgstr ""
4583
4584 # type: textblock
4585 #: ../src/guestfs-actions.pod:399 ../fish/guestfish-actions.pod:270
4586 msgid ""
4587 "Returns a list of paths which match the path expression C<path>.  The "
4588 "returned paths are sufficiently qualified so that they match exactly one "
4589 "node in the current tree."
4590 msgstr ""
4591
4592 # type: =head2
4593 #: ../src/guestfs-actions.pod:409
4594 msgid "guestfs_aug_mv"
4595 msgstr ""
4596
4597 # type: verbatim
4598 #: ../src/guestfs-actions.pod:411
4599 #, no-wrap
4600 msgid ""
4601 " int\n"
4602 " guestfs_aug_mv (guestfs_h *g,\n"
4603 "                 const char *src,\n"
4604 "                 const char *dest);\n"
4605 "\n"
4606 msgstr ""
4607
4608 # type: textblock
4609 #: ../src/guestfs-actions.pod:416 ../fish/guestfish-actions.pod:278
4610 msgid ""
4611 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4612 "C<dest> is overwritten if it exists."
4613 msgstr ""
4614
4615 # type: =head2
4616 #: ../src/guestfs-actions.pod:423
4617 msgid "guestfs_aug_rm"
4618 msgstr ""
4619
4620 # type: verbatim
4621 #: ../src/guestfs-actions.pod:425
4622 #, no-wrap
4623 msgid ""
4624 " int\n"
4625 " guestfs_aug_rm (guestfs_h *g,\n"
4626 "                 const char *augpath);\n"
4627 "\n"
4628 msgstr ""
4629
4630 # type: textblock
4631 #: ../src/guestfs-actions.pod:429 ../fish/guestfish-actions.pod:285
4632 msgid "Remove C<path> and all of its children."
4633 msgstr ""
4634
4635 # type: textblock
4636 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:287
4637 msgid "On success this returns the number of entries which were removed."
4638 msgstr ""
4639
4640 # type: =head2
4641 #: ../src/guestfs-actions.pod:437
4642 msgid "guestfs_aug_save"
4643 msgstr ""
4644
4645 # type: verbatim
4646 #: ../src/guestfs-actions.pod:439
4647 #, no-wrap
4648 msgid ""
4649 " int\n"
4650 " guestfs_aug_save (guestfs_h *g);\n"
4651 "\n"
4652 msgstr ""
4653
4654 # type: textblock
4655 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:293
4656 msgid "This writes all pending changes to disk."
4657 msgstr ""
4658
4659 # type: textblock
4660 #: ../src/guestfs-actions.pod:444
4661 msgid ""
4662 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4663 "are saved."
4664 msgstr ""
4665
4666 # type: =head2
4667 #: ../src/guestfs-actions.pod:451
4668 msgid "guestfs_aug_set"
4669 msgstr ""
4670
4671 # type: verbatim
4672 #: ../src/guestfs-actions.pod:453
4673 #, no-wrap
4674 msgid ""
4675 " int\n"
4676 " guestfs_aug_set (guestfs_h *g,\n"
4677 "                  const char *augpath,\n"
4678 "                  const char *val);\n"
4679 "\n"
4680 msgstr ""
4681
4682 # type: textblock
4683 #: ../src/guestfs-actions.pod:458 ../fish/guestfish-actions.pod:302
4684 msgid "Set the value associated with C<path> to C<val>."
4685 msgstr ""
4686
4687 # type: textblock
4688 #: ../src/guestfs-actions.pod:460
4689 msgid ""
4690 "In the Augeas API, it is possible to clear a node by setting the value to "
4691 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4692 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4693 msgstr ""
4694
4695 # type: =head2
4696 #: ../src/guestfs-actions.pod:469
4697 msgid "guestfs_available"
4698 msgstr ""
4699
4700 # type: verbatim
4701 #: ../src/guestfs-actions.pod:471
4702 #, no-wrap
4703 msgid ""
4704 " int\n"
4705 " guestfs_available (guestfs_h *g,\n"
4706 "                    char *const *groups);\n"
4707 "\n"
4708 msgstr ""
4709
4710 # type: textblock
4711 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:313
4712 msgid ""
4713 "This command is used to check the availability of some groups of "
4714 "functionality in the appliance, which not all builds of the libguestfs "
4715 "appliance will be able to provide."
4716 msgstr ""
4717
4718 # type: textblock
4719 #: ../src/guestfs-actions.pod:479
4720 msgid ""
4721 "The libguestfs groups, and the functions that those groups correspond to, "
4722 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4723 "runtime by calling C<guestfs_available_all_groups>."
4724 msgstr ""
4725
4726 # type: textblock
4727 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:322
4728 msgid ""
4729 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4730 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4731 "and Augeas (configuration file editing) functions."
4732 msgstr ""
4733
4734 # type: textblock
4735 #: ../src/guestfs-actions.pod:489 ../fish/guestfish-actions.pod:327
4736 msgid "The command returns no error if I<all> requested groups are available."
4737 msgstr ""
4738
4739 # type: textblock
4740 #: ../src/guestfs-actions.pod:491 ../fish/guestfish-actions.pod:329
4741 msgid ""
4742 "It fails with an error if one or more of the requested groups is unavailable "
4743 "in the appliance."
4744 msgstr ""
4745
4746 # type: textblock
4747 #: ../src/guestfs-actions.pod:494 ../fish/guestfish-actions.pod:332
4748 msgid ""
4749 "If an unknown group name is included in the list of groups then an error is "
4750 "always returned."
4751 msgstr ""
4752
4753 # type: textblock
4754 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:335
4755 msgid "I<Notes:>"
4756 msgstr ""
4757
4758 # type: textblock
4759 #: ../src/guestfs-actions.pod:503
4760 msgid "You must call C<guestfs_launch> before calling this function."
4761 msgstr ""
4762
4763 # type: textblock
4764 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:343
4765 msgid ""
4766 "The reason is because we don't know what groups are supported by the "
4767 "appliance/daemon until it is running and can be queried."
4768 msgstr ""
4769
4770 # type: textblock
4771 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:349
4772 msgid ""
4773 "If a group of functions is available, this does not necessarily mean that "
4774 "they will work.  You still have to check for errors when calling individual "
4775 "API functions even if they are available."
4776 msgstr ""
4777
4778 # type: textblock
4779 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:356
4780 msgid ""
4781 "It is usually the job of distro packagers to build complete functionality "
4782 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4783 "with all requirements satisfied, will support everything."
4784 msgstr ""
4785
4786 # type: textblock
4787 #: ../src/guestfs-actions.pod:525
4788 msgid ""
4789 "This call was added in version C<1.0.80>.  In previous versions of "
4790 "libguestfs all you could do would be to speculatively execute a command to "
4791 "find out if the daemon implemented it.  See also C<guestfs_version>."
4792 msgstr ""
4793
4794 # type: textblock
4795 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:1095
4796 msgid "(Added in 1.0.80)"
4797 msgstr ""
4798
4799 # type: =head2
4800 #: ../src/guestfs-actions.pod:536
4801 msgid "guestfs_available_all_groups"
4802 msgstr ""
4803
4804 # type: verbatim
4805 #: ../src/guestfs-actions.pod:538
4806 #, no-wrap
4807 msgid ""
4808 " char **\n"
4809 " guestfs_available_all_groups (guestfs_h *g);\n"
4810 "\n"
4811 msgstr ""
4812
4813 # type: textblock
4814 #: ../src/guestfs-actions.pod:541
4815 msgid ""
4816 "This command returns a list of all optional groups that this daemon knows "
4817 "about.  Note this returns both supported and unsupported groups.  To find "
4818 "out which ones the daemon can actually support you have to call "
4819 "C<guestfs_available> on each member of the returned list."
4820 msgstr ""
4821
4822 # type: textblock
4823 #: ../src/guestfs-actions.pod:547
4824 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4825 msgstr ""
4826
4827 # type: textblock
4828 #: ../src/guestfs-actions.pod:553
4829 msgid "(Added in 1.3.15)"
4830 msgstr ""
4831
4832 # type: =head2
4833 #: ../src/guestfs-actions.pod:555
4834 msgid "guestfs_base64_in"
4835 msgstr ""
4836
4837 # type: verbatim
4838 #: ../src/guestfs-actions.pod:557
4839 #, no-wrap
4840 msgid ""
4841 " int\n"
4842 " guestfs_base64_in (guestfs_h *g,\n"
4843 "                    const char *base64file,\n"
4844 "                    const char *filename);\n"
4845 "\n"
4846 msgstr ""
4847
4848 # type: textblock
4849 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:386
4850 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4851 msgstr ""
4852
4853 # type: textblock
4854 #: ../src/guestfs-actions.pod:567 ../src/guestfs-actions.pod:581 ../src/guestfs-actions.pod:1134
4855 msgid "(Added in 1.3.5)"
4856 msgstr ""
4857
4858 # type: =head2
4859 #: ../src/guestfs-actions.pod:569
4860 msgid "guestfs_base64_out"
4861 msgstr ""
4862
4863 # type: verbatim
4864 #: ../src/guestfs-actions.pod:571
4865 #, no-wrap
4866 msgid ""
4867 " int\n"
4868 " guestfs_base64_out (guestfs_h *g,\n"
4869 "                     const char *filename,\n"
4870 "                     const char *base64file);\n"
4871 "\n"
4872 msgstr ""
4873
4874 # type: textblock
4875 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:395
4876 msgid ""
4877 "This command downloads the contents of C<filename>, writing it out to local "
4878 "file C<base64file> encoded as base64."
4879 msgstr ""
4880
4881 # type: =head2
4882 #: ../src/guestfs-actions.pod:583
4883 msgid "guestfs_blockdev_flushbufs"
4884 msgstr ""
4885
4886 # type: verbatim
4887 #: ../src/guestfs-actions.pod:585
4888 #, no-wrap
4889 msgid ""
4890 " int\n"
4891 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4892 "                             const char *device);\n"
4893 "\n"
4894 msgstr ""
4895
4896 # type: textblock
4897 #: ../src/guestfs-actions.pod:589 ../fish/guestfish-actions.pod:404
4898 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4899 msgstr ""
4900
4901 # type: textblock
4902 #: ../src/guestfs-actions.pod:592 ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:640 ../src/guestfs-actions.pod:658 ../src/guestfs-actions.pod:677 ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:709 ../src/guestfs-actions.pod:723 ../src/guestfs-actions.pod:737 ../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
4903 msgid "This uses the L<blockdev(8)> command."
4904 msgstr ""
4905
4906 # type: textblock
4907 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:613 ../src/guestfs-actions.pod:628 ../src/guestfs-actions.pod:644 ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:727 ../src/guestfs-actions.pod:741
4908 msgid "(Added in 0.9.3)"
4909 msgstr ""
4910
4911 # type: =head2
4912 #: ../src/guestfs-actions.pod:598
4913 msgid "guestfs_blockdev_getbsz"
4914 msgstr ""
4915
4916 # type: verbatim
4917 #: ../src/guestfs-actions.pod:600
4918 #, no-wrap
4919 msgid ""
4920 " int\n"
4921 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
4922 "                          const char *device);\n"
4923 "\n"
4924 msgstr ""
4925
4926 # type: textblock
4927 #: ../src/guestfs-actions.pod:604 ../fish/guestfish-actions.pod:413
4928 msgid "This returns the block size of a device."
4929 msgstr ""
4930
4931 # type: textblock
4932 #: ../src/guestfs-actions.pod:606 ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4933 msgid ""
4934 "(Note this is different from both I<size in blocks> and I<filesystem block "
4935 "size>)."
4936 msgstr ""
4937
4938 # type: =head2
4939 #: ../src/guestfs-actions.pod:615
4940 msgid "guestfs_blockdev_getro"
4941 msgstr ""
4942
4943 # type: verbatim
4944 #: ../src/guestfs-actions.pod:617
4945 #, no-wrap
4946 msgid ""
4947 " int\n"
4948 " guestfs_blockdev_getro (guestfs_h *g,\n"
4949 "                         const char *device);\n"
4950 "\n"
4951 msgstr ""
4952
4953 # type: textblock
4954 #: ../src/guestfs-actions.pod:621 ../fish/guestfish-actions.pod:424
4955 msgid ""
4956 "Returns a boolean indicating if the block device is read-only (true if "
4957 "read-only, false if not)."
4958 msgstr ""
4959
4960 # type: textblock
4961 #: ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1862 ../src/guestfs-actions.pod:1873 ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2000 ../src/guestfs-actions.pod:2015 ../src/guestfs-actions.pod:2040 ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2819 ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2894 ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:4369
4962 msgid "This function returns a C truth value on success or -1 on error."
4963 msgstr ""
4964
4965 # type: =head2
4966 #: ../src/guestfs-actions.pod:630
4967 msgid "guestfs_blockdev_getsize64"
4968 msgstr ""
4969
4970 # type: verbatim
4971 #: ../src/guestfs-actions.pod:632
4972 #, no-wrap
4973 msgid ""
4974 " int64_t\n"
4975 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4976 "                             const char *device);\n"
4977 "\n"
4978 msgstr ""
4979
4980 # type: textblock
4981 #: ../src/guestfs-actions.pod:636 ../fish/guestfish-actions.pod:433
4982 msgid "This returns the size of the device in bytes."
4983 msgstr ""
4984
4985 # type: textblock
4986 #: ../src/guestfs-actions.pod:638
4987 msgid "See also C<guestfs_blockdev_getsz>."
4988 msgstr ""
4989
4990 # type: =head2
4991 #: ../src/guestfs-actions.pod:646
4992 msgid "guestfs_blockdev_getss"
4993 msgstr ""
4994
4995 # type: verbatim
4996 #: ../src/guestfs-actions.pod:648
4997 #, no-wrap
4998 msgid ""
4999 " int\n"
5000 " guestfs_blockdev_getss (guestfs_h *g,\n"
5001 "                         const char *device);\n"
5002 "\n"
5003 msgstr ""
5004
5005 # type: textblock
5006 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:443
5007 msgid ""
5008 "This returns the size of sectors on a block device.  Usually 512, but can be "
5009 "larger for modern devices."
5010 msgstr ""
5011
5012 # type: textblock
5013 #: ../src/guestfs-actions.pod:655
5014 msgid ""
5015 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5016 "that)."
5017 msgstr ""
5018
5019 # type: =head2
5020 #: ../src/guestfs-actions.pod:664
5021 msgid "guestfs_blockdev_getsz"
5022 msgstr ""
5023
5024 # type: verbatim
5025 #: ../src/guestfs-actions.pod:666
5026 #, no-wrap
5027 msgid ""
5028 " int64_t\n"
5029 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5030 "                         const char *device);\n"
5031 "\n"
5032 msgstr ""
5033
5034 # type: textblock
5035 #: ../src/guestfs-actions.pod:670 ../fish/guestfish-actions.pod:455
5036 msgid ""
5037 "This returns the size of the device in units of 512-byte sectors (even if "
5038 "the sectorsize isn't 512 bytes ... weird)."
5039 msgstr ""
5040
5041 # type: textblock
5042 #: ../src/guestfs-actions.pod:673
5043 msgid ""
5044 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5045 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5046 msgstr ""
5047
5048 # type: =head2
5049 #: ../src/guestfs-actions.pod:683
5050 msgid "guestfs_blockdev_rereadpt"
5051 msgstr ""
5052
5053 # type: verbatim
5054 #: ../src/guestfs-actions.pod:685
5055 #, no-wrap
5056 msgid ""
5057 " int\n"
5058 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5059 "                            const char *device);\n"
5060 "\n"
5061 msgstr ""
5062
5063 # type: textblock
5064 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:468
5065 msgid "Reread the partition table on C<device>."
5066 msgstr ""
5067
5068 # type: =head2
5069 #: ../src/guestfs-actions.pod:697
5070 msgid "guestfs_blockdev_setbsz"
5071 msgstr ""
5072
5073 # type: verbatim
5074 #: ../src/guestfs-actions.pod:699
5075 #, no-wrap
5076 msgid ""
5077 " int\n"
5078 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5079 "                          const char *device,\n"
5080 "                          int blocksize);\n"
5081 "\n"
5082 msgstr ""
5083
5084 # type: textblock
5085 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:476
5086 msgid "This sets the block size of a device."
5087 msgstr ""
5088
5089 # type: =head2
5090 #: ../src/guestfs-actions.pod:715
5091 msgid "guestfs_blockdev_setro"
5092 msgstr ""
5093
5094 # type: verbatim
5095 #: ../src/guestfs-actions.pod:717
5096 #, no-wrap
5097 msgid ""
5098 " int\n"
5099 " guestfs_blockdev_setro (guestfs_h *g,\n"
5100 "                         const char *device);\n"
5101 "\n"
5102 msgstr ""
5103
5104 # type: textblock
5105 #: ../src/guestfs-actions.pod:721 ../fish/guestfish-actions.pod:487
5106 msgid "Sets the block device named C<device> to read-only."
5107 msgstr ""
5108
5109 # type: =head2
5110 #: ../src/guestfs-actions.pod:729
5111 msgid "guestfs_blockdev_setrw"
5112 msgstr ""
5113
5114 # type: verbatim
5115 #: ../src/guestfs-actions.pod:731
5116 #, no-wrap
5117 msgid ""
5118 " int\n"
5119 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5120 "                         const char *device);\n"
5121 "\n"
5122 msgstr ""
5123
5124 # type: textblock
5125 #: ../src/guestfs-actions.pod:735 ../fish/guestfish-actions.pod:495
5126 msgid "Sets the block device named C<device> to read-write."
5127 msgstr ""
5128
5129 # type: =head2
5130 #: ../src/guestfs-actions.pod:743
5131 msgid "guestfs_case_sensitive_path"
5132 msgstr ""
5133
5134 # type: verbatim
5135 #: ../src/guestfs-actions.pod:745
5136 #, no-wrap
5137 msgid ""
5138 " char *\n"
5139 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5140 "                              const char *path);\n"
5141 "\n"
5142 msgstr ""
5143
5144 # type: textblock
5145 #: ../src/guestfs-actions.pod:749 ../fish/guestfish-actions.pod:503
5146 msgid ""
5147 "This can be used to resolve case insensitive paths on a filesystem which is "
5148 "case sensitive.  The use case is to resolve paths which you have read from "
5149 "Windows configuration files or the Windows Registry, to the true path."
5150 msgstr ""
5151
5152 # type: textblock
5153 #: ../src/guestfs-actions.pod:754 ../fish/guestfish-actions.pod:508
5154 msgid ""
5155 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5156 "(and probably others), which is that although the underlying filesystem is "
5157 "case-insensitive, the driver exports the filesystem to Linux as "
5158 "case-sensitive."
5159 msgstr ""
5160
5161 # type: textblock
5162 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:513
5163 msgid ""
5164 "One consequence of this is that special directories such as C<c:\\windows> "
5165 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5166 "precise details of how they were created.  In Windows itself this would not "
5167 "be a problem."
5168 msgstr ""
5169
5170 # type: textblock
5171 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:519
5172 msgid ""
5173 "Bug or feature? You decide: "
5174 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5175 msgstr ""
5176
5177 # type: textblock
5178 #: ../src/guestfs-actions.pod:768 ../fish/guestfish-actions.pod:522
5179 msgid ""
5180 "This function resolves the true case of each element in the path and returns "
5181 "the case-sensitive path."
5182 msgstr ""
5183
5184 # type: textblock
5185 #: ../src/guestfs-actions.pod:771
5186 msgid ""
5187 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5188 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5189 "how the directories were originally created under Windows)."
5190 msgstr ""
5191
5192 # type: textblock
5193 #: ../src/guestfs-actions.pod:776 ../fish/guestfish-actions.pod:530
5194 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5195 msgstr ""
5196
5197 # type: textblock
5198 #: ../src/guestfs-actions.pod:779
5199 msgid "See also C<guestfs_realpath>."
5200 msgstr ""
5201
5202 # type: textblock
5203 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:6304
5204 msgid "(Added in 1.0.75)"
5205 msgstr ""
5206
5207 # type: =head2
5208 #: ../src/guestfs-actions.pod:786
5209 msgid "guestfs_cat"
5210 msgstr ""
5211
5212 # type: verbatim
5213 #: ../src/guestfs-actions.pod:788
5214 #, no-wrap
5215 msgid ""
5216 " char *\n"
5217 " guestfs_cat (guestfs_h *g,\n"
5218 "              const char *path);\n"
5219 "\n"
5220 msgstr ""
5221
5222 # type: textblock
5223 #: ../src/guestfs-actions.pod:792 ../src/guestfs-actions.pod:4858 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3210
5224 msgid "Return the contents of the file named C<path>."
5225 msgstr ""
5226
5227 # type: textblock
5228 #: ../src/guestfs-actions.pod:794
5229 msgid ""
5230 "Note that this function cannot correctly handle binary files (specifically, "
5231 "files containing C<\\0> character which is treated as end of string).  For "
5232 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5233 "functions which have a more complex interface."
5234 msgstr ""
5235
5236 # type: textblock
5237 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:981 ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1331 ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1472 ../src/guestfs-actions.pod:1721 ../src/guestfs-actions.pod:2140 ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:2202 ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4823 ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:5699 ../src/guestfs-actions.pod:5754 ../src/guestfs-actions.pod:5900 ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:6577 ../src/guestfs-actions.pod:6603 ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6752 ../src/guestfs-actions.pod:6798 ../src/guestfs-actions.pod:6817 ../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:3080 ../fish/guestfish-actions.pod:3095 ../fish/guestfish-actions.pod:3171 ../fish/guestfish-actions.pod:3188 ../fish/guestfish-actions.pod:3203 ../fish/guestfish-actions.pod:3786 ../fish/guestfish-actions.pod:3832 ../fish/guestfish-actions.pod:3917 ../fish/guestfish-actions.pod:3932 ../fish/guestfish-actions.pod:4342 ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4387 ../fish/guestfish-actions.pod:4435 ../fish/guestfish-actions.pod:4445 ../fish/guestfish-actions.pod:4474 ../fish/guestfish-actions.pod:4484
5238 msgid ""
5239 "Because of the message protocol, there is a transfer limit of somewhere "
5240 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5241 msgstr ""
5242
5243 # type: textblock
5244 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3200 ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:4745 ../src/guestfs-actions.pod:4760 ../src/guestfs-actions.pod:6463 ../src/guestfs-actions.pod:6478
5245 msgid "(Added in 0.4)"
5246 msgstr ""
5247
5248 # type: =head2
5249 #: ../src/guestfs-actions.pod:807
5250 msgid "guestfs_checksum"
5251 msgstr ""
5252
5253 # type: verbatim
5254 #: ../src/guestfs-actions.pod:809
5255 #, no-wrap
5256 msgid ""
5257 " char *\n"
5258 " guestfs_checksum (guestfs_h *g,\n"
5259 "                   const char *csumtype,\n"
5260 "                   const char *path);\n"
5261 "\n"
5262 msgstr ""
5263
5264 # type: textblock
5265 #: ../src/guestfs-actions.pod:814 ../fish/guestfish-actions.pod:553
5266 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5267 msgstr ""
5268
5269 # type: textblock
5270 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:556
5271 msgid ""
5272 "The type of checksum to compute is given by the C<csumtype> parameter which "
5273 "must have one of the following values:"
5274 msgstr ""
5275
5276 # type: =item
5277 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:561
5278 msgid "C<crc>"
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:563
5283 msgid ""
5284 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5285 "C<cksum> command."
5286 msgstr ""
5287
5288 # type: =item
5289 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:566
5290 msgid "C<md5>"
5291 msgstr ""
5292
5293 # type: textblock
5294 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:568
5295 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5296 msgstr ""
5297
5298 # type: =item
5299 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:570
5300 msgid "C<sha1>"
5301 msgstr ""
5302
5303 # type: textblock
5304 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:572
5305 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5306 msgstr ""
5307
5308 # type: =item
5309 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:574
5310 msgid "C<sha224>"
5311 msgstr ""
5312
5313 # type: textblock
5314 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:576
5315 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5316 msgstr ""
5317
5318 # type: =item
5319 #: ../src/guestfs-actions.pod:839 ../fish/guestfish-actions.pod:578
5320 msgid "C<sha256>"
5321 msgstr ""
5322
5323 # type: textblock
5324 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:580
5325 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5326 msgstr ""
5327
5328 # type: =item
5329 #: ../src/guestfs-actions.pod:843 ../fish/guestfish-actions.pod:582
5330 msgid "C<sha384>"
5331 msgstr ""
5332
5333 # type: textblock
5334 #: ../src/guestfs-actions.pod:845 ../fish/guestfish-actions.pod:584
5335 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5336 msgstr ""
5337
5338 # type: =item
5339 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:586
5340 msgid "C<sha512>"
5341 msgstr ""
5342
5343 # type: textblock
5344 #: ../src/guestfs-actions.pod:849 ../fish/guestfish-actions.pod:588
5345 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5346 msgstr ""
5347
5348 # type: textblock
5349 #: ../src/guestfs-actions.pod:853 ../fish/guestfish-actions.pod:592
5350 msgid "The checksum is returned as a printable string."
5351 msgstr ""
5352
5353 # type: textblock
5354 #: ../src/guestfs-actions.pod:855
5355 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5356 msgstr ""
5357
5358 # type: textblock
5359 #: ../src/guestfs-actions.pod:857
5360 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5361 msgstr ""
5362
5363 # type: textblock
5364 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:1209 ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2806 ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2896 ../src/guestfs-actions.pod:2923 ../src/guestfs-actions.pod:6165
5365 msgid "(Added in 1.0.2)"
5366 msgstr ""
5367
5368 # type: =head2
5369 #: ../src/guestfs-actions.pod:864
5370 msgid "guestfs_checksum_device"
5371 msgstr ""
5372
5373 # type: verbatim
5374 #: ../src/guestfs-actions.pod:866
5375 #, no-wrap
5376 msgid ""
5377 " char *\n"
5378 " guestfs_checksum_device (guestfs_h *g,\n"
5379 "                          const char *csumtype,\n"
5380 "                          const char *device);\n"
5381 "\n"
5382 msgstr ""
5383
5384 # type: textblock
5385 #: ../src/guestfs-actions.pod:871
5386 msgid ""
5387 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5388 "device named C<device>.  For the types of checksums supported see the "
5389 "C<guestfs_checksum> command."
5390 msgstr ""
5391
5392 # type: textblock
5393 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:4275 ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6490
5394 msgid "(Added in 1.3.2)"
5395 msgstr ""
5396
5397 # type: =head2
5398 #: ../src/guestfs-actions.pod:880
5399 msgid "guestfs_checksums_out"
5400 msgstr ""
5401
5402 # type: verbatim
5403 #: ../src/guestfs-actions.pod:882
5404 #, no-wrap
5405 msgid ""
5406 " int\n"
5407 " guestfs_checksums_out (guestfs_h *g,\n"
5408 "                        const char *csumtype,\n"
5409 "                        const char *directory,\n"
5410 "                        const char *sumsfile);\n"
5411 "\n"
5412 msgstr ""
5413
5414 # type: textblock
5415 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:610
5416 msgid ""
5417 "This command computes the checksums of all regular files in C<directory> and "
5418 "then emits a list of those checksums to the local output file C<sumsfile>."
5419 msgstr ""
5420
5421 # type: textblock
5422 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:614
5423 msgid ""
5424 "This can be used for verifying the integrity of a virtual machine.  However "
5425 "to be properly secure you should pay attention to the output of the checksum "
5426 "command (it uses the ones from GNU coreutils).  In particular when the "
5427 "filename is not printable, coreutils uses a special backslash syntax.  For "
5428 "more information, see the GNU coreutils info file."
5429 msgstr ""
5430
5431 # type: textblock
5432 #: ../src/guestfs-actions.pod:902
5433 msgid "(Added in 1.3.7)"
5434 msgstr ""
5435
5436 # type: =head2
5437 #: ../src/guestfs-actions.pod:904
5438 msgid "guestfs_chmod"
5439 msgstr ""
5440
5441 # type: verbatim
5442 #: ../src/guestfs-actions.pod:906
5443 #, no-wrap
5444 msgid ""
5445 " int\n"
5446 " guestfs_chmod (guestfs_h *g,\n"
5447 "                int mode,\n"
5448 "                const char *path);\n"
5449 "\n"
5450 msgstr ""
5451
5452 # type: textblock
5453 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:628
5454 msgid ""
5455 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5456 "supported."
5457 msgstr ""
5458
5459 # type: textblock
5460 #: ../src/guestfs-actions.pod:914 ../fish/guestfish-actions.pod:631
5461 msgid ""
5462 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5463 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5464 "C<700>."
5465 msgstr ""
5466
5467 # type: textblock
5468 #: ../src/guestfs-actions.pod:918 ../src/guestfs-actions.pod:3859 ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:635 ../fish/guestfish-actions.pod:2570 ../fish/guestfish-actions.pod:2655 ../fish/guestfish-actions.pod:2665 ../fish/guestfish-actions.pod:2675
5469 msgid "The mode actually set is affected by the umask."
5470 msgstr ""
5471
5472 # type: =head2
5473 #: ../src/guestfs-actions.pod:924
5474 msgid "guestfs_chown"
5475 msgstr ""
5476
5477 # type: verbatim
5478 #: ../src/guestfs-actions.pod:926
5479 #, no-wrap
5480 msgid ""
5481 " int\n"
5482 " guestfs_chown (guestfs_h *g,\n"
5483 "                int owner,\n"
5484 "                int group,\n"
5485 "                const char *path);\n"
5486 "\n"
5487 msgstr ""
5488
5489 # type: textblock
5490 #: ../src/guestfs-actions.pod:932 ../fish/guestfish-actions.pod:641
5491 msgid "Change the file owner to C<owner> and group to C<group>."
5492 msgstr ""
5493
5494 # type: textblock
5495 #: ../src/guestfs-actions.pod:934 ../src/guestfs-actions.pod:2993 ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2048
5496 msgid ""
5497 "Only numeric uid and gid are supported.  If you want to use names, you will "
5498 "need to locate and parse the password file yourself (Augeas support makes "
5499 "this relatively easy)."
5500 msgstr ""
5501
5502 # type: =head2
5503 #: ../src/guestfs-actions.pod:942
5504 msgid "guestfs_command"
5505 msgstr ""
5506
5507 # type: verbatim
5508 #: ../src/guestfs-actions.pod:944
5509 #, no-wrap
5510 msgid ""
5511 " char *\n"
5512 " guestfs_command (guestfs_h *g,\n"
5513 "                  char *const *arguments);\n"
5514 "\n"
5515 msgstr ""
5516
5517 # type: textblock
5518 #: ../src/guestfs-actions.pod:948 ../fish/guestfish-actions.pod:651
5519 msgid ""
5520 "This call runs a command from the guest filesystem.  The filesystem must be "
5521 "mounted, and must contain a compatible operating system (ie. something "
5522 "Linux, with the same or compatible processor architecture)."
5523 msgstr ""
5524
5525 # type: textblock
5526 #: ../src/guestfs-actions.pod:953
5527 msgid ""
5528 "The single parameter is an argv-style list of arguments.  The first element "
5529 "is the name of the program to run.  Subsequent elements are parameters.  The "
5530 "list must be non-empty (ie. must contain a program name).  Note that the "
5531 "command runs directly, and is I<not> invoked via the shell (see "
5532 "C<guestfs_sh>)."
5533 msgstr ""
5534
5535 # type: textblock
5536 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:663
5537 msgid "The return value is anything printed to I<stdout> by the command."
5538 msgstr ""
5539
5540 # type: textblock
5541 #: ../src/guestfs-actions.pod:963 ../fish/guestfish-actions.pod:666
5542 msgid ""
5543 "If the command returns a non-zero exit status, then this function returns an "
5544 "error message.  The error message string is the content of I<stderr> from "
5545 "the command."
5546 msgstr ""
5547
5548 # type: textblock
5549 #: ../src/guestfs-actions.pod:967 ../fish/guestfish-actions.pod:670
5550 msgid ""
5551 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5552 "C</bin>.  If you require a program from another location, you should provide "
5553 "the full path in the first parameter."
5554 msgstr ""
5555
5556 # type: textblock
5557 #: ../src/guestfs-actions.pod:972 ../fish/guestfish-actions.pod:675
5558 msgid ""
5559 "Shared libraries and data files required by the program must be available on "
5560 "filesystems which are mounted in the correct places.  It is the caller's "
5561 "responsibility to ensure all filesystems that are needed are mounted at the "
5562 "right locations."
5563 msgstr ""
5564
5565 # type: textblock
5566 #: ../src/guestfs-actions.pod:984 ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:1506
5567 msgid "(Added in 0.9.1)"
5568 msgstr ""
5569
5570 # type: =head2
5571 #: ../src/guestfs-actions.pod:986
5572 msgid "guestfs_command_lines"
5573 msgstr ""
5574
5575 # type: verbatim
5576 #: ../src/guestfs-actions.pod:988
5577 #, no-wrap
5578 msgid ""
5579 " char **\n"
5580 " guestfs_command_lines (guestfs_h *g,\n"
5581 "                        char *const *arguments);\n"
5582 "\n"
5583 msgstr ""
5584
5585 # type: textblock
5586 #: ../src/guestfs-actions.pod:992
5587 msgid ""
5588 "This is the same as C<guestfs_command>, but splits the result into a list of "
5589 "lines."
5590 msgstr ""
5591
5592 # type: textblock
5593 #: ../src/guestfs-actions.pod:995
5594 msgid "See also: C<guestfs_sh_lines>"
5595 msgstr ""
5596
5597 # type: =head2
5598 #: ../src/guestfs-actions.pod:1006
5599 msgid "guestfs_config"
5600 msgstr ""
5601
5602 # type: verbatim
5603 #: ../src/guestfs-actions.pod:1008
5604 #, no-wrap
5605 msgid ""
5606 " int\n"
5607 " guestfs_config (guestfs_h *g,\n"
5608 "                 const char *qemuparam,\n"
5609 "                 const char *qemuvalue);\n"
5610 "\n"
5611 msgstr ""
5612
5613 # type: textblock
5614 #: ../src/guestfs-actions.pod:1013 ../fish/guestfish-actions.pod:700
5615 msgid ""
5616 "This can be used to add arbitrary qemu command line parameters of the form "
5617 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5618 "setting some parameters which would interfere with parameters that we use."
5619 msgstr ""
5620
5621 # type: textblock
5622 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:705
5623 msgid "The first character of C<param> string must be a C<-> (dash)."
5624 msgstr ""
5625
5626 # type: textblock
5627 #: ../src/guestfs-actions.pod:1020 ../fish/guestfish-actions.pod:707
5628 msgid "C<value> can be NULL."
5629 msgstr ""
5630
5631 # type: =head2
5632 #: ../src/guestfs-actions.pod:1026
5633 msgid "guestfs_copy_size"
5634 msgstr ""
5635
5636 # type: verbatim
5637 #: ../src/guestfs-actions.pod:1028
5638 #, no-wrap
5639 msgid ""
5640 " int\n"
5641 " guestfs_copy_size (guestfs_h *g,\n"
5642 "                    const char *src,\n"
5643 "                    const char *dest,\n"
5644 "                    int64_t size);\n"
5645 "\n"
5646 msgstr ""
5647
5648 # type: textblock
5649 #: ../src/guestfs-actions.pod:1034 ../fish/guestfish-actions.pod:713
5650 msgid ""
5651 "This command copies exactly C<size> bytes from one source device or file "
5652 "C<src> to another destination device or file C<dest>."
5653 msgstr ""
5654
5655 # type: textblock
5656 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:716
5657 msgid ""
5658 "Note this will fail if the source is too short or if the destination is not "
5659 "large enough."
5660 msgstr ""
5661
5662 # type: textblock
5663 #: ../src/guestfs-actions.pod:1042 ../src/guestfs-actions.pod:1204 ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:1655 ../src/guestfs-actions.pod:1677 ../src/guestfs-actions.pod:6669 ../src/guestfs-actions.pod:6688
5664 msgid ""
5665 "This long-running command can generate progress notification messages so "
5666 "that the caller can display a progress bar or indicator.  To receive these "
5667 "messages, the caller must register a progress callback.  See "
5668 "L<guestfs(3)/guestfs_set_progress_callback>."
5669 msgstr ""
5670
5671 # type: textblock
5672 #: ../src/guestfs-actions.pod:1047 ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:6396 ../src/guestfs-actions.pod:6416 ../src/guestfs-actions.pod:6503
5673 msgid "(Added in 1.0.87)"
5674 msgstr ""
5675
5676 # type: =head2
5677 #: ../src/guestfs-actions.pod:1049
5678 msgid "guestfs_cp"
5679 msgstr ""
5680
5681 # type: verbatim
5682 #: ../src/guestfs-actions.pod:1051
5683 #, no-wrap
5684 msgid ""
5685 " int\n"
5686 " guestfs_cp (guestfs_h *g,\n"
5687 "             const char *src,\n"
5688 "             const char *dest);\n"
5689 "\n"
5690 msgstr ""
5691
5692 # type: textblock
5693 #: ../src/guestfs-actions.pod:1056 ../fish/guestfish-actions.pod:723
5694 msgid ""
5695 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5696 "destination filename or destination directory."
5697 msgstr ""
5698
5699 # type: textblock
5700 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1260 ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:4238 ../src/guestfs-actions.pod:4616
5701 msgid "(Added in 1.0.18)"
5702 msgstr ""
5703
5704 # type: =head2
5705 #: ../src/guestfs-actions.pod:1063
5706 msgid "guestfs_cp_a"
5707 msgstr ""
5708
5709 # type: verbatim
5710 #: ../src/guestfs-actions.pod:1065
5711 #, no-wrap
5712 msgid ""
5713 " int\n"
5714 " guestfs_cp_a (guestfs_h *g,\n"
5715 "               const char *src,\n"
5716 "               const char *dest);\n"
5717 "\n"
5718 msgstr ""
5719
5720 # type: textblock
5721 #: ../src/guestfs-actions.pod:1070 ../fish/guestfish-actions.pod:730
5722 msgid ""
5723 "This copies a file or directory from C<src> to C<dest> recursively using the "
5724 "C<cp -a> command."
5725 msgstr ""
5726
5727 # type: =head2
5728 #: ../src/guestfs-actions.pod:1077
5729 msgid "guestfs_dd"
5730 msgstr ""
5731
5732 # type: verbatim
5733 #: ../src/guestfs-actions.pod:1079
5734 #, no-wrap
5735 msgid ""
5736 " int\n"
5737 " guestfs_dd (guestfs_h *g,\n"
5738 "             const char *src,\n"
5739 "             const char *dest);\n"
5740 "\n"
5741 msgstr ""
5742
5743 # type: textblock
5744 #: ../src/guestfs-actions.pod:1084 ../fish/guestfish-actions.pod:737
5745 msgid ""
5746 "This command copies from one source device or file C<src> to another "
5747 "destination device or file C<dest>.  Normally you would use this to copy to "
5748 "or from a device or partition, for example to duplicate a filesystem."
5749 msgstr ""
5750
5751 # type: textblock
5752 #: ../src/guestfs-actions.pod:1089
5753 msgid ""
5754 "If the destination is a device, it must be as large or larger than the "
5755 "source file or device, otherwise the copy will fail.  This command cannot do "
5756 "partial copies (see C<guestfs_copy_size>)."
5757 msgstr ""
5758
5759 # type: =head2
5760 #: ../src/guestfs-actions.pod:1097
5761 msgid "guestfs_debug"
5762 msgstr ""
5763
5764 # type: verbatim
5765 #: ../src/guestfs-actions.pod:1099
5766 #, no-wrap
5767 msgid ""
5768 " char *\n"
5769 " guestfs_debug (guestfs_h *g,\n"
5770 "                const char *subcmd,\n"
5771 "                char *const *extraargs);\n"
5772 "\n"
5773 msgstr ""
5774
5775 # type: textblock
5776 #: ../src/guestfs-actions.pod:1104
5777 msgid ""
5778 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5779 "guestfs daemon) that runs inside the qemu subprocess."
5780 msgstr ""
5781
5782 # type: textblock
5783 #: ../src/guestfs-actions.pod:1108 ../fish/guestfish-actions.pod:754
5784 msgid ""
5785 "There is no comprehensive help for this command.  You have to look at the "
5786 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5787 msgstr ""
5788
5789 # type: textblock
5790 #: ../src/guestfs-actions.pod:1115
5791 msgid "(Added in 1.0.11)"
5792 msgstr ""
5793
5794 # type: =head2
5795 #: ../src/guestfs-actions.pod:1117
5796 msgid "guestfs_debug_upload"
5797 msgstr ""
5798
5799 # type: verbatim
5800 #: ../src/guestfs-actions.pod:1119
5801 #, no-wrap
5802 msgid ""
5803 " int\n"
5804 " guestfs_debug_upload (guestfs_h *g,\n"
5805 "                       const char *filename,\n"
5806 "                       const char *tmpname,\n"
5807 "                       int mode);\n"
5808 "\n"
5809 msgstr ""
5810
5811 # type: textblock
5812 #: ../src/guestfs-actions.pod:1125
5813 msgid ""
5814 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5815 "appliance."
5816 msgstr ""
5817
5818 # type: textblock
5819 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:765
5820 msgid ""
5821 "There is no comprehensive help for this command.  You have to look at the "
5822 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5823 msgstr ""
5824
5825 # type: =head2
5826 #: ../src/guestfs-actions.pod:1136
5827 msgid "guestfs_df"
5828 msgstr ""
5829
5830 # type: verbatim
5831 #: ../src/guestfs-actions.pod:1138
5832 #, no-wrap
5833 msgid ""
5834 " char *\n"
5835 " guestfs_df (guestfs_h *g);\n"
5836 "\n"
5837 msgstr ""
5838
5839 # type: textblock
5840 #: ../src/guestfs-actions.pod:1141 ../fish/guestfish-actions.pod:775
5841 msgid "This command runs the C<df> command to report disk space used."
5842 msgstr ""
5843
5844 # type: textblock
5845 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5846 msgid ""
5847 "This command is mostly useful for interactive sessions.  It is I<not> "
5848 "intended that you try to parse the output string.  Use C<statvfs> from "
5849 "programs."
5850 msgstr ""
5851
5852 # type: textblock
5853 #: ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1280 ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:2229 ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:4138 ../src/guestfs-actions.pod:5903 ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6562
5854 msgid "(Added in 1.0.54)"
5855 msgstr ""
5856
5857 # type: =head2
5858 #: ../src/guestfs-actions.pod:1152
5859 msgid "guestfs_df_h"
5860 msgstr ""
5861
5862 # type: verbatim
5863 #: ../src/guestfs-actions.pod:1154
5864 #, no-wrap
5865 msgid ""
5866 " char *\n"
5867 " guestfs_df_h (guestfs_h *g);\n"
5868 "\n"
5869 msgstr ""
5870
5871 # type: textblock
5872 #: ../src/guestfs-actions.pod:1157 ../fish/guestfish-actions.pod:785
5873 msgid ""
5874 "This command runs the C<df -h> command to report disk space used in "
5875 "human-readable format."
5876 msgstr ""
5877
5878 # type: =head2
5879 #: ../src/guestfs-actions.pod:1169
5880 msgid "guestfs_dmesg"
5881 msgstr ""
5882
5883 # type: verbatim
5884 #: ../src/guestfs-actions.pod:1171
5885 #, no-wrap
5886 msgid ""
5887 " char *\n"
5888 " guestfs_dmesg (guestfs_h *g);\n"
5889 "\n"
5890 msgstr ""
5891
5892 # type: textblock
5893 #: ../src/guestfs-actions.pod:1174 ../fish/guestfish-actions.pod:796
5894 msgid ""
5895 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5896 "This is sometimes useful for extended debugging of problems."
5897 msgstr ""
5898
5899 # type: textblock
5900 #: ../src/guestfs-actions.pod:1178
5901 msgid ""
5902 "Another way to get the same information is to enable verbose messages with "
5903 "C<guestfs_set_verbose> or by setting the environment variable "
5904 "C<LIBGUESTFS_DEBUG=1> before running the program."
5905 msgstr ""
5906
5907 # type: =head2
5908 #: ../src/guestfs-actions.pod:1188
5909 msgid "guestfs_download"
5910 msgstr ""
5911
5912 # type: verbatim
5913 #: ../src/guestfs-actions.pod:1190
5914 #, no-wrap
5915 msgid ""
5916 " int\n"
5917 " guestfs_download (guestfs_h *g,\n"
5918 "                   const char *remotefilename,\n"
5919 "                   const char *filename);\n"
5920 "\n"
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1220 ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5925 msgid ""
5926 "Download file C<remotefilename> and save it as C<filename> on the local "
5927 "machine."
5928 msgstr ""
5929
5930 # type: textblock
5931 #: ../src/guestfs-actions.pod:1198 ../src/guestfs-actions.pod:6159 ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4090
5932 msgid "C<filename> can also be a named pipe."
5933 msgstr ""
5934
5935 # type: textblock
5936 #: ../src/guestfs-actions.pod:1200
5937 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5938 msgstr ""
5939
5940 # type: =head2
5941 #: ../src/guestfs-actions.pod:1211
5942 msgid "guestfs_download_offset"
5943 msgstr ""
5944
5945 # type: verbatim
5946 #: ../src/guestfs-actions.pod:1213
5947 #, no-wrap
5948 msgid ""
5949 " int\n"
5950 " guestfs_download_offset (guestfs_h *g,\n"
5951 "                          const char *remotefilename,\n"
5952 "                          const char *filename,\n"
5953 "                          int64_t offset,\n"
5954 "                          int64_t size);\n"
5955 "\n"
5956 msgstr ""
5957
5958 # type: textblock
5959 #: ../src/guestfs-actions.pod:1223 ../fish/guestfish-actions.pod:825
5960 msgid ""
5961 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5962 "region must be within the file or device)."
5963 msgstr ""
5964
5965 # type: textblock
5966 #: ../src/guestfs-actions.pod:1226
5967 msgid ""
5968 "Note that there is no limit on the amount of data that can be downloaded "
5969 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5970 "full amount unless an error occurs."
5971 msgstr ""
5972
5973 # type: textblock
5974 #: ../src/guestfs-actions.pod:1231
5975 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5976 msgstr ""
5977
5978 # type: textblock
5979 #: ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:6194
5980 msgid "(Added in 1.5.17)"
5981 msgstr ""
5982
5983 # type: =head2
5984 #: ../src/guestfs-actions.pod:1242
5985 msgid "guestfs_drop_caches"
5986 msgstr ""
5987
5988 # type: verbatim
5989 #: ../src/guestfs-actions.pod:1244
5990 #, no-wrap
5991 msgid ""
5992 " int\n"
5993 " guestfs_drop_caches (guestfs_h *g,\n"
5994 "                      int whattodrop);\n"
5995 "\n"
5996 msgstr ""
5997
5998 # type: textblock
5999 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:841
6000 msgid ""
6001 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6002 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6003 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6004 msgstr ""
6005
6006 # type: textblock
6007 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:846
6008 msgid "Setting C<whattodrop> to 3 should drop everything."
6009 msgstr ""
6010
6011 # type: textblock
6012 #: ../src/guestfs-actions.pod:1255 ../fish/guestfish-actions.pod:848
6013 msgid ""
6014 "This automatically calls L<sync(2)> before the operation, so that the "
6015 "maximum guest memory is freed."
6016 msgstr ""
6017
6018 # type: =head2
6019 #: ../src/guestfs-actions.pod:1262
6020 msgid "guestfs_du"
6021 msgstr ""
6022
6023 # type: verbatim
6024 #: ../src/guestfs-actions.pod:1264
6025 #, no-wrap
6026 msgid ""
6027 " int64_t\n"
6028 " guestfs_du (guestfs_h *g,\n"
6029 "             const char *path);\n"
6030 "\n"
6031 msgstr ""
6032
6033 # type: textblock
6034 #: ../src/guestfs-actions.pod:1268 ../fish/guestfish-actions.pod:855
6035 msgid ""
6036 "This command runs the C<du -s> command to estimate file space usage for "
6037 "C<path>."
6038 msgstr ""
6039
6040 # type: textblock
6041 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:858
6042 msgid ""
6043 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6044 "estimate includes the contents of the directory and all subdirectories "
6045 "(recursively)."
6046 msgstr ""
6047
6048 # type: textblock
6049 #: ../src/guestfs-actions.pod:1275 ../fish/guestfish-actions.pod:862
6050 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6051 msgstr ""
6052
6053 # type: =head2
6054 #: ../src/guestfs-actions.pod:1282
6055 msgid "guestfs_e2fsck_f"
6056 msgstr ""
6057
6058 # type: verbatim
6059 #: ../src/guestfs-actions.pod:1284
6060 #, no-wrap
6061 msgid ""
6062 " int\n"
6063 " guestfs_e2fsck_f (guestfs_h *g,\n"
6064 "                   const char *device);\n"
6065 "\n"
6066 msgstr ""
6067
6068 # type: textblock
6069 #: ../src/guestfs-actions.pod:1288 ../fish/guestfish-actions.pod:869
6070 msgid ""
6071 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6072 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6073 "clean (C<-f>)."
6074 msgstr ""
6075
6076 # type: textblock
6077 #: ../src/guestfs-actions.pod:1292
6078 msgid ""
6079 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6080 "Normally you should use C<guestfs_fsck>."
6081 msgstr ""
6082
6083 # type: textblock
6084 #: ../src/guestfs-actions.pod:1297
6085 msgid "(Added in 1.0.29)"
6086 msgstr ""
6087
6088 # type: =head2
6089 #: ../src/guestfs-actions.pod:1299
6090 msgid "guestfs_echo_daemon"
6091 msgstr ""
6092
6093 # type: verbatim
6094 #: ../src/guestfs-actions.pod:1301
6095 #, no-wrap
6096 msgid ""
6097 " char *\n"
6098 " guestfs_echo_daemon (guestfs_h *g,\n"
6099 "                      char *const *words);\n"
6100 "\n"
6101 msgstr ""
6102
6103 # type: textblock
6104 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:880
6105 msgid ""
6106 "This command concatenates the list of C<words> passed with single spaces "
6107 "between them and returns the resulting string."
6108 msgstr ""
6109
6110 # type: textblock
6111 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:883
6112 msgid "You can use this command to test the connection through to the daemon."
6113 msgstr ""
6114
6115 # type: textblock
6116 #: ../src/guestfs-actions.pod:1310
6117 msgid "See also C<guestfs_ping_daemon>."
6118 msgstr ""
6119
6120 # type: textblock
6121 #: ../src/guestfs-actions.pod:1315 ../src/guestfs-actions.pod:2042 ../src/guestfs-actions.pod:5407
6122 msgid "(Added in 1.0.69)"
6123 msgstr ""
6124
6125 # type: =head2
6126 #: ../src/guestfs-actions.pod:1317
6127 msgid "guestfs_egrep"
6128 msgstr ""
6129
6130 # type: verbatim
6131 #: ../src/guestfs-actions.pod:1319
6132 #, no-wrap
6133 msgid ""
6134 " char **\n"
6135 " guestfs_egrep (guestfs_h *g,\n"
6136 "                const char *regex,\n"
6137 "                const char *path);\n"
6138 "\n"
6139 msgstr ""
6140
6141 # type: textblock
6142 #: ../src/guestfs-actions.pod:1324 ../fish/guestfish-actions.pod:891
6143 msgid "This calls the external C<egrep> program and returns the matching lines."
6144 msgstr ""
6145
6146 # type: textblock
6147 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:1353 ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1456 ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:2143 ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2415 ../src/guestfs-actions.pod:2428 ../src/guestfs-actions.pod:3125 ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3166 ../src/guestfs-actions.pod:4073 ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5783 ../src/guestfs-actions.pod:5796 ../src/guestfs-actions.pod:5809 ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:5844 ../src/guestfs-actions.pod:5857 ../src/guestfs-actions.pod:5870 ../src/guestfs-actions.pod:6632 ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6736 ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6820
6148 msgid "(Added in 1.0.66)"
6149 msgstr ""
6150
6151 # type: =head2
6152 #: ../src/guestfs-actions.pod:1336
6153 msgid "guestfs_egrepi"
6154 msgstr ""
6155
6156 # type: verbatim
6157 #: ../src/guestfs-actions.pod:1338
6158 #, no-wrap
6159 msgid ""
6160 " char **\n"
6161 " guestfs_egrepi (guestfs_h *g,\n"
6162 "                 const char *regex,\n"
6163 "                 const char *path);\n"
6164 "\n"
6165 msgstr ""
6166
6167 # type: textblock
6168 #: ../src/guestfs-actions.pod:1343 ../fish/guestfish-actions.pod:901
6169 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6170 msgstr ""
6171
6172 # type: =head2
6173 #: ../src/guestfs-actions.pod:1355
6174 msgid "guestfs_equal"
6175 msgstr ""
6176
6177 # type: verbatim
6178 #: ../src/guestfs-actions.pod:1357
6179 #, no-wrap
6180 msgid ""
6181 " int\n"
6182 " guestfs_equal (guestfs_h *g,\n"
6183 "                const char *file1,\n"
6184 "                const char *file2);\n"
6185 "\n"
6186 msgstr ""
6187
6188 # type: textblock
6189 #: ../src/guestfs-actions.pod:1362 ../fish/guestfish-actions.pod:911
6190 msgid ""
6191 "This compares the two files C<file1> and C<file2> and returns true if their "
6192 "content is exactly equal, or false otherwise."
6193 msgstr ""
6194
6195 # type: textblock
6196 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:914
6197 msgid "The external L<cmp(1)> program is used for the comparison."
6198 msgstr ""
6199
6200 # type: =head2
6201 #: ../src/guestfs-actions.pod:1371
6202 msgid "guestfs_exists"
6203 msgstr ""
6204
6205 # type: verbatim
6206 #: ../src/guestfs-actions.pod:1373
6207 #, no-wrap
6208 msgid ""
6209 " int\n"
6210 " guestfs_exists (guestfs_h *g,\n"
6211 "                 const char *path);\n"
6212 "\n"
6213 msgstr ""
6214
6215 # type: textblock
6216 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:920
6217 msgid ""
6218 "This returns C<true> if and only if there is a file, directory (or anything) "
6219 "with the given C<path> name."
6220 msgstr ""
6221
6222 # type: textblock
6223 #: ../src/guestfs-actions.pod:1380
6224 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6225 msgstr ""
6226
6227 # type: =head2
6228 #: ../src/guestfs-actions.pod:1386
6229 msgid "guestfs_fallocate"
6230 msgstr ""
6231
6232 # type: verbatim
6233 #: ../src/guestfs-actions.pod:1388
6234 #, no-wrap
6235 msgid ""
6236 " int\n"
6237 " guestfs_fallocate (guestfs_h *g,\n"
6238 "                    const char *path,\n"
6239 "                    int len);\n"
6240 "\n"
6241 msgstr ""
6242
6243 # type: textblock
6244 #: ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1419 ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6245 msgid ""
6246 "This command preallocates a file (containing zero bytes) named C<path> of "
6247 "size C<len> bytes.  If the file exists already, it is overwritten."
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1397 ../fish/guestfish-actions.pod:933
6252 msgid ""
6253 "Do not confuse this with the guestfish-specific C<alloc> command which "
6254 "allocates a file in the host and attaches it as a device."
6255 msgstr ""
6256
6257 # type: textblock
6258 #: ../src/guestfs-actions.pod:1403 ../fish/guestfish-actions.pod:937
6259 msgid ""
6260 "This function is deprecated.  In new code, use the C<fallocate64> call "
6261 "instead."
6262 msgstr ""
6263
6264 # type: =head2
6265 #: ../src/guestfs-actions.pod:1412
6266 msgid "guestfs_fallocate64"
6267 msgstr ""
6268
6269 # type: verbatim
6270 #: ../src/guestfs-actions.pod:1414
6271 #, no-wrap
6272 msgid ""
6273 " int\n"
6274 " guestfs_fallocate64 (guestfs_h *g,\n"
6275 "                      const char *path,\n"
6276 "                      int64_t len);\n"
6277 "\n"
6278 msgstr ""
6279
6280 # type: textblock
6281 #: ../src/guestfs-actions.pod:1423
6282 msgid ""
6283 "Note that this call allocates disk blocks for the file.  To create a sparse "
6284 "file use C<guestfs_truncate_size> instead."
6285 msgstr ""
6286
6287 # type: textblock
6288 #: ../src/guestfs-actions.pod:1426
6289 msgid ""
6290 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6291 "oversight it only allowed 30 bit lengths to be specified, effectively "
6292 "limiting the maximum size of files created through that call to 1GB."
6293 msgstr ""
6294
6295 # type: textblock
6296 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:960
6297 msgid ""
6298 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6299 "commands which create a file in the host and attach it as a device."
6300 msgstr ""
6301
6302 # type: textblock
6303 #: ../src/guestfs-actions.pod:1437
6304 msgid "(Added in 1.3.17)"
6305 msgstr ""
6306
6307 # type: =head2
6308 #: ../src/guestfs-actions.pod:1439
6309 msgid "guestfs_fgrep"
6310 msgstr ""
6311
6312 # type: verbatim
6313 #: ../src/guestfs-actions.pod:1441
6314 #, no-wrap
6315 msgid ""
6316 " char **\n"
6317 " guestfs_fgrep (guestfs_h *g,\n"
6318 "                const char *pattern,\n"
6319 "                const char *path);\n"
6320 "\n"
6321 msgstr ""
6322
6323 # type: textblock
6324 #: ../src/guestfs-actions.pod:1446 ../fish/guestfish-actions.pod:968
6325 msgid "This calls the external C<fgrep> program and returns the matching lines."
6326 msgstr ""
6327
6328 # type: =head2
6329 #: ../src/guestfs-actions.pod:1458
6330 msgid "guestfs_fgrepi"
6331 msgstr ""
6332
6333 # type: verbatim
6334 #: ../src/guestfs-actions.pod:1460
6335 #, no-wrap
6336 msgid ""
6337 " char **\n"
6338 " guestfs_fgrepi (guestfs_h *g,\n"
6339 "                 const char *pattern,\n"
6340 "                 const char *path);\n"
6341 "\n"
6342 msgstr ""
6343
6344 # type: textblock
6345 #: ../src/guestfs-actions.pod:1465 ../fish/guestfish-actions.pod:978
6346 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6347 msgstr ""
6348
6349 # type: =head2
6350 #: ../src/guestfs-actions.pod:1477
6351 msgid "guestfs_file"
6352 msgstr ""
6353
6354 # type: verbatim
6355 #: ../src/guestfs-actions.pod:1479
6356 #, no-wrap
6357 msgid ""
6358 " char *\n"
6359 " guestfs_file (guestfs_h *g,\n"
6360 "               const char *path);\n"
6361 "\n"
6362 msgstr ""
6363
6364 # type: textblock
6365 #: ../src/guestfs-actions.pod:1483 ../fish/guestfish-actions.pod:988
6366 msgid ""
6367 "This call uses the standard L<file(1)> command to determine the type or "
6368 "contents of the file."
6369 msgstr ""
6370
6371 # type: textblock
6372 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:991
6373 msgid ""
6374 "This call will also transparently look inside various types of compressed "
6375 "file."
6376 msgstr ""
6377
6378 # type: textblock
6379 #: ../src/guestfs-actions.pod:1489 ../fish/guestfish-actions.pod:994
6380 msgid ""
6381 "The exact command which runs is C<file -zb path>.  Note in particular that "
6382 "the filename is not prepended to the output (the C<-b> option)."
6383 msgstr ""
6384
6385 # type: textblock
6386 #: ../src/guestfs-actions.pod:1493
6387 msgid ""
6388 "This command can also be used on C</dev/> devices (and partitions, LV "
6389 "names).  You can for example use this to determine if a device contains a "
6390 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6391 msgstr ""
6392
6393 # type: textblock
6394 #: ../src/guestfs-actions.pod:1498 ../fish/guestfish-actions.pod:1003
6395 msgid ""
6396 "If the C<path> does not begin with C</dev/> then this command only works for "
6397 "the content of regular files.  For other file types (directory, symbolic "
6398 "link etc) it will just return the string C<directory> etc."
6399 msgstr ""
6400
6401 # type: =head2
6402 #: ../src/guestfs-actions.pod:1508
6403 msgid "guestfs_file_architecture"
6404 msgstr ""
6405
6406 # type: verbatim
6407 #: ../src/guestfs-actions.pod:1510
6408 #, no-wrap
6409 msgid ""
6410 " char *\n"
6411 " guestfs_file_architecture (guestfs_h *g,\n"
6412 "                            const char *filename);\n"
6413 "\n"
6414 msgstr ""
6415
6416 # type: textblock
6417 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:1012
6418 msgid ""
6419 "This detects the architecture of the binary C<filename>, and returns it if "
6420 "known."
6421 msgstr ""
6422
6423 # type: textblock
6424 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1015
6425 msgid "Currently defined architectures are:"
6426 msgstr ""
6427
6428 # type: =item
6429 #: ../src/guestfs-actions.pod:1521 ../fish/guestfish-actions.pod:1019
6430 msgid "\"i386\""
6431 msgstr ""
6432
6433 # type: textblock
6434 #: ../src/guestfs-actions.pod:1523 ../fish/guestfish-actions.pod:1021
6435 msgid ""
6436 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6437 "irrespective of the precise processor requirements of the binary."
6438 msgstr ""
6439
6440 # type: =item
6441 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1024
6442 msgid "\"x86_64\""
6443 msgstr ""
6444
6445 # type: textblock
6446 #: ../src/guestfs-actions.pod:1528 ../fish/guestfish-actions.pod:1026
6447 msgid "64 bit x86-64."
6448 msgstr ""
6449
6450 # type: =item
6451 #: ../src/guestfs-actions.pod:1530 ../fish/guestfish-actions.pod:1028
6452 msgid "\"sparc\""
6453 msgstr ""
6454
6455 # type: textblock
6456 #: ../src/guestfs-actions.pod:1532 ../fish/guestfish-actions.pod:1030
6457 msgid "32 bit SPARC."
6458 msgstr ""
6459
6460 # type: =item
6461 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1032
6462 msgid "\"sparc64\""
6463 msgstr ""
6464
6465 # type: textblock
6466 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1034
6467 msgid "64 bit SPARC V9 and above."
6468 msgstr ""
6469
6470 # type: =item
6471 #: ../src/guestfs-actions.pod:1538 ../fish/guestfish-actions.pod:1036
6472 msgid "\"ia64\""
6473 msgstr ""
6474
6475 # type: textblock
6476 #: ../src/guestfs-actions.pod:1540 ../fish/guestfish-actions.pod:1038
6477 msgid "Intel Itanium."
6478 msgstr ""
6479
6480 # type: =item
6481 #: ../src/guestfs-actions.pod:1542 ../fish/guestfish-actions.pod:1040
6482 msgid "\"ppc\""
6483 msgstr ""
6484
6485 # type: textblock
6486 #: ../src/guestfs-actions.pod:1544 ../fish/guestfish-actions.pod:1042
6487 msgid "32 bit Power PC."
6488 msgstr ""
6489
6490 # type: =item
6491 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1044
6492 msgid "\"ppc64\""
6493 msgstr ""
6494
6495 # type: textblock
6496 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1046
6497 msgid "64 bit Power PC."
6498 msgstr ""
6499
6500 # type: textblock
6501 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1050
6502 msgid "Libguestfs may return other architecture strings in future."
6503 msgstr ""
6504
6505 # type: textblock
6506 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1052
6507 msgid "The function works on at least the following types of files:"
6508 msgstr ""
6509
6510 # type: textblock
6511 #: ../src/guestfs-actions.pod:1560 ../fish/guestfish-actions.pod:1058
6512 msgid "many types of Un*x and Linux binary"
6513 msgstr ""
6514
6515 # type: textblock
6516 #: ../src/guestfs-actions.pod:1564 ../fish/guestfish-actions.pod:1062
6517 msgid "many types of Un*x and Linux shared library"
6518 msgstr ""
6519
6520 # type: textblock
6521 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1066
6522 msgid "Windows Win32 and Win64 binaries"
6523 msgstr ""
6524
6525 # type: textblock
6526 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1070
6527 msgid "Windows Win32 and Win64 DLLs"
6528 msgstr ""
6529
6530 # type: textblock
6531 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1072
6532 msgid "Win32 binaries and DLLs return C<i386>."
6533 msgstr ""
6534
6535 # type: textblock
6536 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1074
6537 msgid "Win64 binaries and DLLs return C<x86_64>."
6538 msgstr ""
6539
6540 # type: textblock
6541 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1078
6542 msgid "Linux kernel modules"
6543 msgstr ""
6544
6545 # type: textblock
6546 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1082
6547 msgid "Linux new-style initrd images"
6548 msgstr ""
6549
6550 # type: textblock
6551 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1086
6552 msgid "some non-x86 Linux vmlinuz kernels"
6553 msgstr ""
6554
6555 # type: textblock
6556 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1090
6557 msgid "What it can't do currently:"
6558 msgstr ""
6559
6560 # type: textblock
6561 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1096
6562 msgid "static libraries (libfoo.a)"
6563 msgstr ""
6564
6565 # type: textblock
6566 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1100
6567 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6568 msgstr ""
6569
6570 # type: textblock
6571 #: ../src/guestfs-actions.pod:1606 ../fish/guestfish-actions.pod:1104
6572 msgid "x86 Linux vmlinuz kernels"
6573 msgstr ""
6574
6575 # type: textblock
6576 #: ../src/guestfs-actions.pod:1608 ../fish/guestfish-actions.pod:1106
6577 msgid ""
6578 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6579 "compressed code, and are horribly hard to unpack.  If you want to find the "
6580 "architecture of a kernel, use the architecture of the associated initrd or "
6581 "kernel module(s) instead."
6582 msgstr ""
6583
6584 # type: textblock
6585 #: ../src/guestfs-actions.pod:1618 ../src/guestfs-actions.pod:1781 ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2524 ../src/guestfs-actions.pod:2550 ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2631 ../src/guestfs-actions.pod:2655 ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2777 ../src/guestfs-actions.pod:2909
6586 msgid "(Added in 1.5.3)"
6587 msgstr ""
6588
6589 # type: =head2
6590 #: ../src/guestfs-actions.pod:1620
6591 msgid "guestfs_filesize"
6592 msgstr ""
6593
6594 # type: verbatim
6595 #: ../src/guestfs-actions.pod:1622
6596 #, no-wrap
6597 msgid ""
6598 " int64_t\n"
6599 " guestfs_filesize (guestfs_h *g,\n"
6600 "                   const char *file);\n"
6601 "\n"
6602 msgstr ""
6603
6604 # type: textblock
6605 #: ../src/guestfs-actions.pod:1626 ../fish/guestfish-actions.pod:1117
6606 msgid "This command returns the size of C<file> in bytes."
6607 msgstr ""
6608
6609 # type: textblock
6610 #: ../src/guestfs-actions.pod:1628
6611 msgid ""
6612 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6613 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6614 "devices, use C<guestfs_blockdev_getsize64>."
6615 msgstr ""
6616
6617 # type: textblock
6618 #: ../src/guestfs-actions.pod:1634
6619 msgid "(Added in 1.0.82)"
6620 msgstr ""
6621
6622 # type: =head2
6623 #: ../src/guestfs-actions.pod:1636
6624 msgid "guestfs_fill"
6625 msgstr ""
6626
6627 # type: verbatim
6628 #: ../src/guestfs-actions.pod:1638
6629 #, no-wrap
6630 msgid ""
6631 " int\n"
6632 " guestfs_fill (guestfs_h *g,\n"
6633 "               int c,\n"
6634 "               int len,\n"
6635 "               const char *path);\n"
6636 "\n"
6637 msgstr ""
6638
6639 # type: textblock
6640 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1127
6641 msgid ""
6642 "This command creates a new file called C<path>.  The initial content of the "
6643 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6644 "C<[0..255]>."
6645 msgstr ""
6646
6647 # type: textblock
6648 #: ../src/guestfs-actions.pod:1648
6649 msgid ""
6650 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6651 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6652 "bytes use C<guestfs_fill_pattern>."
6653 msgstr ""
6654
6655 # type: textblock
6656 #: ../src/guestfs-actions.pod:1660
6657 msgid "(Added in 1.0.79)"
6658 msgstr ""
6659
6660 # type: =head2
6661 #: ../src/guestfs-actions.pod:1662
6662 msgid "guestfs_fill_pattern"
6663 msgstr ""
6664
6665 # type: verbatim
6666 #: ../src/guestfs-actions.pod:1664
6667 #, no-wrap
6668 msgid ""
6669 " int\n"
6670 " guestfs_fill_pattern (guestfs_h *g,\n"
6671 "                       const char *pattern,\n"
6672 "                       int len,\n"
6673 "                       const char *path);\n"
6674 "\n"
6675 msgstr ""
6676
6677 # type: textblock
6678 #: ../src/guestfs-actions.pod:1670
6679 msgid ""
6680 "This function is like C<guestfs_fill> except that it creates a new file of "
6681 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6682 "pattern is truncated if necessary to ensure the length of the file is "
6683 "exactly C<len> bytes."
6684 msgstr ""
6685
6686 # type: textblock
6687 #: ../src/guestfs-actions.pod:1682
6688 msgid "(Added in 1.3.12)"
6689 msgstr ""
6690
6691 # type: =head2
6692 #: ../src/guestfs-actions.pod:1684
6693 msgid "guestfs_find"
6694 msgstr ""
6695
6696 # type: verbatim
6697 #: ../src/guestfs-actions.pod:1686
6698 #, no-wrap
6699 msgid ""
6700 " char **\n"
6701 " guestfs_find (guestfs_h *g,\n"
6702 "               const char *directory);\n"
6703 "\n"
6704 msgstr ""
6705
6706 # type: textblock
6707 #: ../src/guestfs-actions.pod:1690 ../fish/guestfish-actions.pod:1149
6708 msgid ""
6709 "This command lists out all files and directories, recursively, starting at "
6710 "C<directory>.  It is essentially equivalent to running the shell command "
6711 "C<find directory -print> but some post-processing happens on the output, "
6712 "described below."
6713 msgstr ""
6714
6715 # type: textblock
6716 #: ../src/guestfs-actions.pod:1695 ../fish/guestfish-actions.pod:1154
6717 msgid ""
6718 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6719 "structure was:"
6720 msgstr ""
6721
6722 # type: verbatim
6723 #: ../src/guestfs-actions.pod:1698 ../fish/guestfish-actions.pod:1157
6724 #, no-wrap
6725 msgid ""
6726 " /tmp/a\n"
6727 " /tmp/b\n"
6728 " /tmp/c/d\n"
6729 "\n"
6730 msgstr ""
6731
6732 # type: textblock
6733 #: ../src/guestfs-actions.pod:1702
6734 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6735 msgstr ""
6736
6737 # type: verbatim
6738 #: ../src/guestfs-actions.pod:1705 ../fish/guestfish-actions.pod:1164
6739 #, no-wrap
6740 msgid ""
6741 " a\n"
6742 " b\n"
6743 " c\n"
6744 " c/d\n"
6745 "\n"
6746 msgstr ""
6747
6748 # type: textblock
6749 #: ../src/guestfs-actions.pod:1710 ../fish/guestfish-actions.pod:1169
6750 msgid "If C<directory> is not a directory, then this command returns an error."
6751 msgstr ""
6752
6753 # type: textblock
6754 #: ../src/guestfs-actions.pod:1713 ../fish/guestfish-actions.pod:1172
6755 msgid "The returned list is sorted."
6756 msgstr ""
6757
6758 # type: textblock
6759 #: ../src/guestfs-actions.pod:1715
6760 msgid "See also C<guestfs_find0>."
6761 msgstr ""
6762
6763 # type: textblock
6764 #: ../src/guestfs-actions.pod:1724 ../src/guestfs-actions.pod:3570 ../src/guestfs-actions.pod:5036
6765 msgid "(Added in 1.0.27)"
6766 msgstr ""
6767
6768 # type: =head2
6769 #: ../src/guestfs-actions.pod:1726
6770 msgid "guestfs_find0"
6771 msgstr ""
6772
6773 # type: verbatim
6774 #: ../src/guestfs-actions.pod:1728
6775 #, no-wrap
6776 msgid ""
6777 " int\n"
6778 " guestfs_find0 (guestfs_h *g,\n"
6779 "                const char *directory,\n"
6780 "                const char *files);\n"
6781 "\n"
6782 msgstr ""
6783
6784 # type: textblock
6785 #: ../src/guestfs-actions.pod:1733 ../fish/guestfish-actions.pod:1183
6786 msgid ""
6787 "This command lists out all files and directories, recursively, starting at "
6788 "C<directory>, placing the resulting list in the external file called "
6789 "C<files>."
6790 msgstr ""
6791
6792 # type: textblock
6793 #: ../src/guestfs-actions.pod:1737
6794 msgid ""
6795 "This command works the same way as C<guestfs_find> with the following "
6796 "exceptions:"
6797 msgstr ""
6798
6799 # type: textblock
6800 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1194
6801 msgid "The resulting list is written to an external file."
6802 msgstr ""
6803
6804 # type: textblock
6805 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1198
6806 msgid ""
6807 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6808 "L<find(1)> option I<-print0>."
6809 msgstr ""
6810
6811 # type: textblock
6812 #: ../src/guestfs-actions.pod:1753 ../fish/guestfish-actions.pod:1203
6813 msgid "This command is not limited in the number of names that it can return."
6814 msgstr ""
6815
6816 # type: textblock
6817 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1208
6818 msgid "The result list is not sorted."
6819 msgstr ""
6820
6821 # type: textblock
6822 #: ../src/guestfs-actions.pod:1764
6823 msgid "(Added in 1.0.74)"
6824 msgstr ""
6825
6826 # type: =head2
6827 #: ../src/guestfs-actions.pod:1766
6828 msgid "guestfs_findfs_label"
6829 msgstr ""
6830
6831 # type: verbatim
6832 #: ../src/guestfs-actions.pod:1768
6833 #, no-wrap
6834 msgid ""
6835 " char *\n"
6836 " guestfs_findfs_label (guestfs_h *g,\n"
6837 "                       const char *label);\n"
6838 "\n"
6839 msgstr ""
6840
6841 # type: textblock
6842 #: ../src/guestfs-actions.pod:1772 ../fish/guestfish-actions.pod:1218
6843 msgid ""
6844 "This command searches the filesystems and returns the one which has the "
6845 "given label.  An error is returned if no such filesystem can be found."
6846 msgstr ""
6847
6848 # type: textblock
6849 #: ../src/guestfs-actions.pod:1776
6850 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6851 msgstr ""
6852
6853 # type: =head2
6854 #: ../src/guestfs-actions.pod:1783
6855 msgid "guestfs_findfs_uuid"
6856 msgstr ""
6857
6858 # type: verbatim
6859 #: ../src/guestfs-actions.pod:1785
6860 #, no-wrap
6861 msgid ""
6862 " char *\n"
6863 " guestfs_findfs_uuid (guestfs_h *g,\n"
6864 "                      const char *uuid);\n"
6865 "\n"
6866 msgstr ""
6867
6868 # type: textblock
6869 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1228
6870 msgid ""
6871 "This command searches the filesystems and returns the one which has the "
6872 "given UUID.  An error is returned if no such filesystem can be found."
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1793
6877 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6878 msgstr ""
6879
6880 # type: =head2
6881 #: ../src/guestfs-actions.pod:1800
6882 msgid "guestfs_fsck"
6883 msgstr ""
6884
6885 # type: verbatim
6886 #: ../src/guestfs-actions.pod:1802
6887 #, no-wrap
6888 msgid ""
6889 " int\n"
6890 " guestfs_fsck (guestfs_h *g,\n"
6891 "               const char *fstype,\n"
6892 "               const char *device);\n"
6893 "\n"
6894 msgstr ""
6895
6896 # type: textblock
6897 #: ../src/guestfs-actions.pod:1807 ../fish/guestfish-actions.pod:1238
6898 msgid ""
6899 "This runs the filesystem checker (fsck) on C<device> which should have "
6900 "filesystem type C<fstype>."
6901 msgstr ""
6902
6903 # type: textblock
6904 #: ../src/guestfs-actions.pod:1810 ../fish/guestfish-actions.pod:1241
6905 msgid ""
6906 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6907 "codes from C<fsck>."
6908 msgstr ""
6909
6910 # type: textblock
6911 #: ../src/guestfs-actions.pod:1819 ../fish/guestfish-actions.pod:1250
6912 msgid "Multiple status codes can be summed together."
6913 msgstr ""
6914
6915 # type: textblock
6916 #: ../src/guestfs-actions.pod:1823 ../fish/guestfish-actions.pod:1254
6917 msgid ""
6918 "A non-zero return code can mean \"success\", for example if errors have been "
6919 "corrected on the filesystem."
6920 msgstr ""
6921
6922 # type: textblock
6923 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1259
6924 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6925 msgstr ""
6926
6927 # type: textblock
6928 #: ../src/guestfs-actions.pod:1833 ../fish/guestfish-actions.pod:1264
6929 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6930 msgstr ""
6931
6932 # type: textblock
6933 #: ../src/guestfs-actions.pod:1837 ../src/guestfs-actions.pod:6674
6934 msgid "(Added in 1.0.16)"
6935 msgstr ""
6936
6937 # type: =head2
6938 #: ../src/guestfs-actions.pod:1839
6939 msgid "guestfs_get_append"
6940 msgstr ""
6941
6942 # type: verbatim
6943 #: ../src/guestfs-actions.pod:1841
6944 #, no-wrap
6945 msgid ""
6946 " const char *\n"
6947 " guestfs_get_append (guestfs_h *g);\n"
6948 "\n"
6949 msgstr ""
6950
6951 # type: textblock
6952 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:1270
6953 msgid ""
6954 "Return the additional kernel options which are added to the guest kernel "
6955 "command line."
6956 msgstr ""
6957
6958 # type: textblock
6959 #: ../src/guestfs-actions.pod:1847 ../fish/guestfish-actions.pod:1273
6960 msgid "If C<NULL> then no options are added."
6961 msgstr ""
6962
6963 # type: textblock
6964 #: ../src/guestfs-actions.pod:1849
6965 msgid ""
6966 "This function returns a string which may be NULL.  There is no way to return "
6967 "an error from this function.  The string is owned by the guest handle and "
6968 "must I<not> be freed."
6969 msgstr ""
6970
6971 # type: textblock
6972 #: ../src/guestfs-actions.pod:1853 ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5545 ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:5580 ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:6344 ../src/guestfs-actions.pod:6362 ../src/guestfs-actions.pod:6717
6973 msgid "(Added in 1.0.26)"
6974 msgstr ""
6975
6976 # type: =head2
6977 #: ../src/guestfs-actions.pod:1855
6978 msgid "guestfs_get_autosync"
6979 msgstr ""
6980
6981 # type: verbatim
6982 #: ../src/guestfs-actions.pod:1857
6983 #, no-wrap
6984 msgid ""
6985 " int\n"
6986 " guestfs_get_autosync (guestfs_h *g);\n"
6987 "\n"
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1860 ../fish/guestfish-actions.pod:1279
6992 msgid "Get the autosync flag."
6993 msgstr ""
6994
6995 # type: =head2
6996 #: ../src/guestfs-actions.pod:1866
6997 msgid "guestfs_get_direct"
6998 msgstr ""
6999
7000 # type: verbatim
7001 #: ../src/guestfs-actions.pod:1868
7002 #, no-wrap
7003 msgid ""
7004 " int\n"
7005 " guestfs_get_direct (guestfs_h *g);\n"
7006 "\n"
7007 msgstr ""
7008
7009 # type: textblock
7010 #: ../src/guestfs-actions.pod:1871 ../fish/guestfish-actions.pod:1285
7011 msgid "Return the direct appliance mode flag."
7012 msgstr ""
7013
7014 # type: textblock
7015 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:5218
7016 msgid "(Added in 1.0.72)"
7017 msgstr ""
7018
7019 # type: =head2
7020 #: ../src/guestfs-actions.pod:1877
7021 msgid "guestfs_get_e2label"
7022 msgstr ""
7023
7024 # type: verbatim
7025 #: ../src/guestfs-actions.pod:1879
7026 #, no-wrap
7027 msgid ""
7028 " char *\n"
7029 " guestfs_get_e2label (guestfs_h *g,\n"
7030 "                      const char *device);\n"
7031 "\n"
7032 msgstr ""
7033
7034 # type: textblock
7035 #: ../src/guestfs-actions.pod:1883 ../fish/guestfish-actions.pod:1291
7036 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7037 msgstr ""
7038
7039 # type: textblock
7040 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1294
7041 msgid ""
7042 "This function is deprecated.  In new code, use the C<vfs_label> call "
7043 "instead."
7044 msgstr ""
7045
7046 # type: textblock
7047 #: ../src/guestfs-actions.pod:1896 ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:5236 ../src/guestfs-actions.pod:5255
7048 msgid "(Added in 1.0.15)"
7049 msgstr ""
7050
7051 # type: =head2
7052 #: ../src/guestfs-actions.pod:1898
7053 msgid "guestfs_get_e2uuid"
7054 msgstr ""
7055
7056 # type: verbatim
7057 #: ../src/guestfs-actions.pod:1900
7058 #, no-wrap
7059 msgid ""
7060 " char *\n"
7061 " guestfs_get_e2uuid (guestfs_h *g,\n"
7062 "                     const char *device);\n"
7063 "\n"
7064 msgstr ""
7065
7066 # type: textblock
7067 #: ../src/guestfs-actions.pod:1904 ../fish/guestfish-actions.pod:1305
7068 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7069 msgstr ""
7070
7071 # type: textblock
7072 #: ../src/guestfs-actions.pod:1910 ../fish/guestfish-actions.pod:1308
7073 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7074 msgstr ""
7075
7076 # type: =head2
7077 #: ../src/guestfs-actions.pod:1919
7078 msgid "guestfs_get_memsize"
7079 msgstr ""
7080
7081 # type: verbatim
7082 #: ../src/guestfs-actions.pod:1921
7083 #, no-wrap
7084 msgid ""
7085 " int\n"
7086 " guestfs_get_memsize (guestfs_h *g);\n"
7087 "\n"
7088 msgstr ""
7089
7090 # type: textblock
7091 #: ../src/guestfs-actions.pod:1924 ../fish/guestfish-actions.pod:1319
7092 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7093 msgstr ""
7094
7095 # type: textblock
7096 #: ../src/guestfs-actions.pod:1927
7097 msgid ""
7098 "If C<guestfs_set_memsize> was not called on this handle, and if "
7099 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7100 "value for memsize."
7101 msgstr ""
7102
7103 # type: textblock
7104 #: ../src/guestfs-actions.pod:1931 ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:5271 ../src/guestfs-actions.pod:5378 ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377 ../fish/guestfish-actions.pod:3497 ../fish/guestfish-actions.pod:3584
7105 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7106 msgstr ""
7107
7108 # type: textblock
7109 #: ../src/guestfs-actions.pod:1936 ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:3978 ../src/guestfs-actions.pod:3997 ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4045 ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4939 ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5519 ../src/guestfs-actions.pod:6120
7110 msgid "(Added in 1.0.55)"
7111 msgstr ""
7112
7113 # type: =head2
7114 #: ../src/guestfs-actions.pod:1938
7115 msgid "guestfs_get_network"
7116 msgstr ""
7117
7118 # type: verbatim
7119 #: ../src/guestfs-actions.pod:1940
7120 #, no-wrap
7121 msgid ""
7122 " int\n"
7123 " guestfs_get_network (guestfs_h *g);\n"
7124 "\n"
7125 msgstr ""
7126
7127 # type: textblock
7128 #: ../src/guestfs-actions.pod:1943 ../fish/guestfish-actions.pod:1333
7129 msgid "This returns the enable network flag."
7130 msgstr ""
7131
7132 # type: textblock
7133 #: ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:5295
7134 msgid "(Added in 1.5.4)"
7135 msgstr ""
7136
7137 # type: =head2
7138 #: ../src/guestfs-actions.pod:1949
7139 msgid "guestfs_get_path"
7140 msgstr ""
7141
7142 # type: verbatim
7143 #: ../src/guestfs-actions.pod:1951
7144 #, no-wrap
7145 msgid ""
7146 " const char *\n"
7147 " guestfs_get_path (guestfs_h *g);\n"
7148 "\n"
7149 msgstr ""
7150
7151 # type: textblock
7152 #: ../src/guestfs-actions.pod:1954 ../fish/guestfish-actions.pod:1339
7153 msgid "Return the current search path."
7154 msgstr ""
7155
7156 # type: textblock
7157 #: ../src/guestfs-actions.pod:1956 ../fish/guestfish-actions.pod:1341
7158 msgid ""
7159 "This is always non-NULL.  If it wasn't set already, then this will return "
7160 "the default path."
7161 msgstr ""
7162
7163 # type: textblock
7164 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:1988
7165 msgid ""
7166 "This function returns a string, or NULL on error.  The string is owned by "
7167 "the guest handle and must I<not> be freed."
7168 msgstr ""
7169
7170 # type: =head2
7171 #: ../src/guestfs-actions.pod:1964
7172 msgid "guestfs_get_pid"
7173 msgstr ""
7174
7175 # type: verbatim
7176 #: ../src/guestfs-actions.pod:1966
7177 #, no-wrap
7178 msgid ""
7179 " int\n"
7180 " guestfs_get_pid (guestfs_h *g);\n"
7181 "\n"
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1969 ../fish/guestfish-actions.pod:1350
7186 msgid ""
7187 "Return the process ID of the qemu subprocess.  If there is no qemu "
7188 "subprocess, then this will return an error."
7189 msgstr ""
7190
7191 # type: textblock
7192 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1353
7193 msgid "This is an internal call used for debugging and testing."
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1976
7198 msgid "(Added in 1.0.56)"
7199 msgstr ""
7200
7201 # type: =head2
7202 #: ../src/guestfs-actions.pod:1978
7203 msgid "guestfs_get_qemu"
7204 msgstr ""
7205
7206 # type: verbatim
7207 #: ../src/guestfs-actions.pod:1980
7208 #, no-wrap
7209 msgid ""
7210 " const char *\n"
7211 " guestfs_get_qemu (guestfs_h *g);\n"
7212 "\n"
7213 msgstr ""
7214
7215 # type: textblock
7216 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1359
7217 msgid "Return the current qemu binary."
7218 msgstr ""
7219
7220 # type: textblock
7221 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1361
7222 msgid ""
7223 "This is always non-NULL.  If it wasn't set already, then this will return "
7224 "the default qemu binary name."
7225 msgstr ""
7226
7227 # type: textblock
7228 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:5340
7229 msgid "(Added in 1.0.6)"
7230 msgstr ""
7231
7232 # type: =head2
7233 #: ../src/guestfs-actions.pod:1993
7234 msgid "guestfs_get_recovery_proc"
7235 msgstr ""
7236
7237 # type: verbatim
7238 #: ../src/guestfs-actions.pod:1995
7239 #, no-wrap
7240 msgid ""
7241 " int\n"
7242 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7243 "\n"
7244 msgstr ""
7245
7246 # type: textblock
7247 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1368
7248 msgid "Return the recovery process enabled flag."
7249 msgstr ""
7250
7251 # type: textblock
7252 #: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2999 ../src/guestfs-actions.pod:3268 ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:6023 ../src/guestfs-actions.pod:6043 ../src/guestfs-actions.pod:6225
7253 msgid "(Added in 1.0.77)"
7254 msgstr ""
7255
7256 # type: =head2
7257 #: ../src/guestfs-actions.pod:2004
7258 msgid "guestfs_get_selinux"
7259 msgstr ""
7260
7261 # type: verbatim
7262 #: ../src/guestfs-actions.pod:2006
7263 #, no-wrap
7264 msgid ""
7265 " int\n"
7266 " guestfs_get_selinux (guestfs_h *g);\n"
7267 "\n"
7268 msgstr ""
7269
7270 # type: textblock
7271 #: ../src/guestfs-actions.pod:2009
7272 msgid ""
7273 "This returns the current setting of the selinux flag which is passed to the "
7274 "appliance at boot time.  See C<guestfs_set_selinux>."
7275 msgstr ""
7276
7277 # type: textblock
7278 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5437
7279 msgid "(Added in 1.0.67)"
7280 msgstr ""
7281
7282 # type: =head2
7283 #: ../src/guestfs-actions.pod:2019
7284 msgid "guestfs_get_state"
7285 msgstr ""
7286
7287 # type: verbatim
7288 #: ../src/guestfs-actions.pod:2021
7289 #, no-wrap
7290 msgid ""
7291 " int\n"
7292 " guestfs_get_state (guestfs_h *g);\n"
7293 "\n"
7294 msgstr ""
7295
7296 # type: textblock
7297 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1384
7298 msgid ""
7299 "This returns the current state as an opaque integer.  This is only useful "
7300 "for printing debug and internal error messages."
7301 msgstr ""
7302
7303 # type: textblock
7304 #: ../src/guestfs-actions.pod:2027 ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:1387 ../fish/guestfish-actions.pod:1930 ../fish/guestfish-actions.pod:1948 ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2002
7305 msgid "For more information on states, see L<guestfs(3)>."
7306 msgstr ""
7307
7308 # type: =head2
7309 #: ../src/guestfs-actions.pod:2033
7310 msgid "guestfs_get_trace"
7311 msgstr ""
7312
7313 # type: verbatim
7314 #: ../src/guestfs-actions.pod:2035
7315 #, no-wrap
7316 msgid ""
7317 " int\n"
7318 " guestfs_get_trace (guestfs_h *g);\n"
7319 "\n"
7320 msgstr ""
7321
7322 # type: textblock
7323 #: ../src/guestfs-actions.pod:2038 ../fish/guestfish-actions.pod:1393
7324 msgid "Return the command trace flag."
7325 msgstr ""
7326
7327 # type: =head2
7328 #: ../src/guestfs-actions.pod:2044
7329 msgid "guestfs_get_umask"
7330 msgstr ""
7331
7332 # type: verbatim
7333 #: ../src/guestfs-actions.pod:2046
7334 #, no-wrap
7335 msgid ""
7336 " int\n"
7337 " guestfs_get_umask (guestfs_h *g);\n"
7338 "\n"
7339 msgstr ""
7340
7341 # type: textblock
7342 #: ../src/guestfs-actions.pod:2049
7343 msgid ""
7344 "Return the current umask.  By default the umask is C<022> unless it has been "
7345 "set by calling C<guestfs_umask>."
7346 msgstr ""
7347
7348 # type: =head2
7349 #: ../src/guestfs-actions.pod:2056
7350 msgid "guestfs_get_verbose"
7351 msgstr ""
7352
7353 # type: verbatim
7354 #: ../src/guestfs-actions.pod:2058
7355 #, no-wrap
7356 msgid ""
7357 " int\n"
7358 " guestfs_get_verbose (guestfs_h *g);\n"
7359 "\n"
7360 msgstr ""
7361
7362 # type: textblock
7363 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1406
7364 msgid "This returns the verbose messages flag."
7365 msgstr ""
7366
7367 # type: =head2
7368 #: ../src/guestfs-actions.pod:2067
7369 msgid "guestfs_getcon"
7370 msgstr ""
7371
7372 # type: verbatim
7373 #: ../src/guestfs-actions.pod:2069
7374 #, no-wrap
7375 msgid ""
7376 " char *\n"
7377 " guestfs_getcon (guestfs_h *g);\n"
7378 "\n"
7379 msgstr ""
7380
7381 # type: textblock
7382 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1412
7383 msgid "This gets the SELinux security context of the daemon."
7384 msgstr ""
7385
7386 # type: textblock
7387 #: ../src/guestfs-actions.pod:2074
7388 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7389 msgstr ""
7390
7391 # type: =head2
7392 #: ../src/guestfs-actions.pod:2082
7393 msgid "guestfs_getxattrs"
7394 msgstr ""
7395
7396 # type: verbatim
7397 #: ../src/guestfs-actions.pod:2084
7398 #, no-wrap
7399 msgid ""
7400 " struct guestfs_xattr_list *\n"
7401 " guestfs_getxattrs (guestfs_h *g,\n"
7402 "                    const char *path);\n"
7403 "\n"
7404 msgstr ""
7405
7406 # type: textblock
7407 #: ../src/guestfs-actions.pod:2088 ../fish/guestfish-actions.pod:1421
7408 msgid "This call lists the extended attributes of the file or directory C<path>."
7409 msgstr ""
7410
7411 # type: textblock
7412 #: ../src/guestfs-actions.pod:2091 ../fish/guestfish-actions.pod:1424
7413 msgid ""
7414 "At the system call level, this is a combination of the L<listxattr(2)> and "
7415 "L<getxattr(2)> calls."
7416 msgstr ""
7417
7418 # type: textblock
7419 #: ../src/guestfs-actions.pod:2094
7420 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7421 msgstr ""
7422
7423 # type: textblock
7424 #: ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:3011 ../src/guestfs-actions.pod:3665
7425 msgid ""
7426 "This function returns a C<struct guestfs_xattr_list *> (see "
7427 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7428 "must call C<guestfs_free_xattr_list> after use>."
7429 msgstr ""
7430
7431 # type: textblock
7432 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:3016 ../src/guestfs-actions.pod:3181 ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5456 ../src/guestfs-actions.pod:6782
7433 msgid "(Added in 1.0.59)"
7434 msgstr ""
7435
7436 # type: =head2
7437 #: ../src/guestfs-actions.pod:2103
7438 msgid "guestfs_glob_expand"
7439 msgstr ""
7440
7441 # type: verbatim
7442 #: ../src/guestfs-actions.pod:2105
7443 #, no-wrap
7444 msgid ""
7445 " char **\n"
7446 " guestfs_glob_expand (guestfs_h *g,\n"
7447 "                      const char *pattern);\n"
7448 "\n"
7449 msgstr ""
7450
7451 # type: textblock
7452 #: ../src/guestfs-actions.pod:2109 ../fish/guestfish-actions.pod:1433
7453 msgid ""
7454 "This command searches for all the pathnames matching C<pattern> according to "
7455 "the wildcard expansion rules used by the shell."
7456 msgstr ""
7457
7458 # type: textblock
7459 #: ../src/guestfs-actions.pod:2113 ../fish/guestfish-actions.pod:1437
7460 msgid "If no paths match, then this returns an empty list (note: not an error)."
7461 msgstr ""
7462
7463 # type: textblock
7464 #: ../src/guestfs-actions.pod:2116 ../fish/guestfish-actions.pod:1440
7465 msgid ""
7466 "It is just a wrapper around the C L<glob(3)> function with flags "
7467 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7468 msgstr ""
7469
7470 # type: textblock
7471 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:5621 ../src/guestfs-actions.pod:5638
7472 msgid "(Added in 1.0.50)"
7473 msgstr ""
7474
7475 # type: =head2
7476 #: ../src/guestfs-actions.pod:2126
7477 msgid "guestfs_grep"
7478 msgstr ""
7479
7480 # type: verbatim
7481 #: ../src/guestfs-actions.pod:2128
7482 #, no-wrap
7483 msgid ""
7484 " char **\n"
7485 " guestfs_grep (guestfs_h *g,\n"
7486 "               const char *regex,\n"
7487 "               const char *path);\n"
7488 "\n"
7489 msgstr ""
7490
7491 # type: textblock
7492 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1448
7493 msgid "This calls the external C<grep> program and returns the matching lines."
7494 msgstr ""
7495
7496 # type: =head2
7497 #: ../src/guestfs-actions.pod:2145
7498 msgid "guestfs_grepi"
7499 msgstr ""
7500
7501 # type: verbatim
7502 #: ../src/guestfs-actions.pod:2147
7503 #, no-wrap
7504 msgid ""
7505 " char **\n"
7506 " guestfs_grepi (guestfs_h *g,\n"
7507 "                const char *regex,\n"
7508 "                const char *path);\n"
7509 "\n"
7510 msgstr ""
7511
7512 # type: textblock
7513 #: ../src/guestfs-actions.pod:2152 ../fish/guestfish-actions.pod:1458
7514 msgid "This calls the external C<grep -i> program and returns the matching lines."
7515 msgstr ""
7516
7517 # type: =head2
7518 #: ../src/guestfs-actions.pod:2164
7519 msgid "guestfs_grub_install"
7520 msgstr ""
7521
7522 # type: verbatim
7523 #: ../src/guestfs-actions.pod:2166
7524 #, no-wrap
7525 msgid ""
7526 " int\n"
7527 " guestfs_grub_install (guestfs_h *g,\n"
7528 "                       const char *root,\n"
7529 "                       const char *device);\n"
7530 "\n"
7531 msgstr ""
7532
7533 # type: textblock
7534 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1468
7535 msgid ""
7536 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7537 "the root directory being C<root>."
7538 msgstr ""
7539
7540 # type: textblock
7541 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1471
7542 msgid ""
7543 "Note: If grub-install reports the error \"No suitable drive was found in the "
7544 "generated device map.\" it may be that you need to create a "
7545 "C</boot/grub/device.map> file first that contains the mapping between grub "
7546 "device names and Linux device names.  It is usually sufficient to create a "
7547 "file containing:"
7548 msgstr ""
7549
7550 # type: verbatim
7551 #: ../src/guestfs-actions.pod:2181 ../fish/guestfish-actions.pod:1478
7552 #, no-wrap
7553 msgid ""
7554 " (hd0) /dev/vda\n"
7555 "\n"
7556 msgstr ""
7557
7558 # type: textblock
7559 #: ../src/guestfs-actions.pod:2183 ../fish/guestfish-actions.pod:1480
7560 msgid "replacing C</dev/vda> with the name of the installation device."
7561 msgstr ""
7562
7563 # type: textblock
7564 #: ../src/guestfs-actions.pod:2187
7565 msgid "(Added in 1.0.17)"
7566 msgstr ""
7567
7568 # type: =head2
7569 #: ../src/guestfs-actions.pod:2189
7570 msgid "guestfs_head"
7571 msgstr ""
7572
7573 # type: verbatim
7574 #: ../src/guestfs-actions.pod:2191
7575 #, no-wrap
7576 msgid ""
7577 " char **\n"
7578 " guestfs_head (guestfs_h *g,\n"
7579 "               const char *path);\n"
7580 "\n"
7581 msgstr ""
7582
7583 # type: textblock
7584 #: ../src/guestfs-actions.pod:2195 ../fish/guestfish-actions.pod:1486
7585 msgid ""
7586 "This command returns up to the first 10 lines of a file as a list of "
7587 "strings."
7588 msgstr ""
7589
7590 # type: =head2
7591 #: ../src/guestfs-actions.pod:2207
7592 msgid "guestfs_head_n"
7593 msgstr ""
7594
7595 # type: verbatim
7596 #: ../src/guestfs-actions.pod:2209
7597 #, no-wrap
7598 msgid ""
7599 " char **\n"
7600 " guestfs_head_n (guestfs_h *g,\n"
7601 "                 int nrlines,\n"
7602 "                 const char *path);\n"
7603 "\n"
7604 msgstr ""
7605
7606 # type: textblock
7607 #: ../src/guestfs-actions.pod:2214 ../fish/guestfish-actions.pod:1496
7608 msgid ""
7609 "If the parameter C<nrlines> is a positive number, this returns the first "
7610 "C<nrlines> lines of the file C<path>."
7611 msgstr ""
7612
7613 # type: textblock
7614 #: ../src/guestfs-actions.pod:2217 ../fish/guestfish-actions.pod:1499
7615 msgid ""
7616 "If the parameter C<nrlines> is a negative number, this returns lines from "
7617 "the file C<path>, excluding the last C<nrlines> lines."
7618 msgstr ""
7619
7620 # type: textblock
7621 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:5918 ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3930
7622 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7623 msgstr ""
7624
7625 # type: =head2
7626 #: ../src/guestfs-actions.pod:2231
7627 msgid "guestfs_hexdump"
7628 msgstr ""
7629
7630 # type: verbatim
7631 #: ../src/guestfs-actions.pod:2233
7632 #, no-wrap
7633 msgid ""
7634 " char *\n"
7635 " guestfs_hexdump (guestfs_h *g,\n"
7636 "                  const char *path);\n"
7637 "\n"
7638 msgstr ""
7639
7640 # type: textblock
7641 #: ../src/guestfs-actions.pod:2237 ../fish/guestfish-actions.pod:1511
7642 msgid ""
7643 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7644 "human-readable, canonical hex dump of the file."
7645 msgstr ""
7646
7647 # type: textblock
7648 #: ../src/guestfs-actions.pod:2246 ../src/guestfs-actions.pod:5702 ../src/guestfs-actions.pod:5757
7649 msgid "(Added in 1.0.22)"
7650 msgstr ""
7651
7652 # type: =head2
7653 #: ../src/guestfs-actions.pod:2248
7654 msgid "guestfs_initrd_cat"
7655 msgstr ""
7656
7657 # type: verbatim
7658 #: ../src/guestfs-actions.pod:2250
7659 #, no-wrap
7660 msgid ""
7661 " char *\n"
7662 " guestfs_initrd_cat (guestfs_h *g,\n"
7663 "                     const char *initrdpath,\n"
7664 "                     const char *filename,\n"
7665 "                     size_t *size_r);\n"
7666 "\n"
7667 msgstr ""
7668
7669 # type: textblock
7670 #: ../src/guestfs-actions.pod:2256 ../fish/guestfish-actions.pod:1521
7671 msgid ""
7672 "This command unpacks the file C<filename> from the initrd file called "
7673 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7674 "character."
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:2260 ../fish/guestfish-actions.pod:1525
7679 msgid ""
7680 "For example, in guestfish you could use the following command to examine the "
7681 "boot script (usually called C</init>)  contained in a Linux initrd or "
7682 "initramfs image:"
7683 msgstr ""
7684
7685 # type: verbatim
7686 #: ../src/guestfs-actions.pod:2264 ../fish/guestfish-actions.pod:1529
7687 #, no-wrap
7688 msgid ""
7689 " initrd-cat /boot/initrd-<version>.img init\n"
7690 "\n"
7691 msgstr ""
7692
7693 # type: textblock
7694 #: ../src/guestfs-actions.pod:2266
7695 msgid "See also C<guestfs_initrd_list>."
7696 msgstr ""
7697
7698 # type: textblock
7699 #: ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4843
7700 msgid ""
7701 "This function returns a buffer, or NULL on error.  The size of the returned "
7702 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7703 "after use>."
7704 msgstr ""
7705
7706 # type: =head2
7707 #: ../src/guestfs-actions.pod:2277
7708 msgid "guestfs_initrd_list"
7709 msgstr ""
7710
7711 # type: verbatim
7712 #: ../src/guestfs-actions.pod:2279
7713 #, no-wrap
7714 msgid ""
7715 " char **\n"
7716 " guestfs_initrd_list (guestfs_h *g,\n"
7717 "                      const char *path);\n"
7718 "\n"
7719 msgstr ""
7720
7721 # type: textblock
7722 #: ../src/guestfs-actions.pod:2283 ../fish/guestfish-actions.pod:1540
7723 msgid "This command lists out files contained in an initrd."
7724 msgstr ""
7725
7726 # type: textblock
7727 #: ../src/guestfs-actions.pod:2285 ../fish/guestfish-actions.pod:1542
7728 msgid ""
7729 "The files are listed without any initial C</> character.  The files are "
7730 "listed in the order they appear (not necessarily alphabetical).  Directory "
7731 "names are listed as separate items."
7732 msgstr ""
7733
7734 # type: textblock
7735 #: ../src/guestfs-actions.pod:2289 ../fish/guestfish-actions.pod:1546
7736 msgid ""
7737 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7738 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7739 "files)."
7740 msgstr ""
7741
7742 # type: =head2
7743 #: ../src/guestfs-actions.pod:2299
7744 msgid "guestfs_inotify_add_watch"
7745 msgstr ""
7746
7747 # type: verbatim
7748 #: ../src/guestfs-actions.pod:2301
7749 #, no-wrap
7750 msgid ""
7751 " int64_t\n"
7752 " guestfs_inotify_add_watch (guestfs_h *g,\n"
7753 "                            const char *path,\n"
7754 "                            int mask);\n"
7755 "\n"
7756 msgstr ""
7757
7758 # type: textblock
7759 #: ../src/guestfs-actions.pod:2306 ../fish/guestfish-actions.pod:1554
7760 msgid "Watch C<path> for the events listed in C<mask>."
7761 msgstr ""
7762
7763 # type: textblock
7764 #: ../src/guestfs-actions.pod:2308 ../fish/guestfish-actions.pod:1556
7765 msgid ""
7766 "Note that if C<path> is a directory then events within that directory are "
7767 "watched, but this does I<not> happen recursively (in subdirectories)."
7768 msgstr ""
7769
7770 # type: textblock
7771 #: ../src/guestfs-actions.pod:2312 ../fish/guestfish-actions.pod:1560
7772 msgid ""
7773 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7774 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7775 msgstr ""
7776
7777 # type: =head2
7778 #: ../src/guestfs-actions.pod:2320
7779 msgid "guestfs_inotify_close"
7780 msgstr ""
7781
7782 # type: verbatim
7783 #: ../src/guestfs-actions.pod:2322
7784 #, no-wrap
7785 msgid ""
7786 " int\n"
7787 " guestfs_inotify_close (guestfs_h *g);\n"
7788 "\n"
7789 msgstr ""
7790
7791 # type: textblock
7792 #: ../src/guestfs-actions.pod:2325 ../fish/guestfish-actions.pod:1568
7793 msgid ""
7794 "This closes the inotify handle which was previously opened by inotify_init.  "
7795 "It removes all watches, throws away any pending events, and deallocates all "
7796 "resources."
7797 msgstr ""
7798
7799 # type: =head2
7800 #: ../src/guestfs-actions.pod:2333
7801 msgid "guestfs_inotify_files"
7802 msgstr ""
7803
7804 # type: verbatim
7805 #: ../src/guestfs-actions.pod:2335
7806 #, no-wrap
7807 msgid ""
7808 " char **\n"
7809 " guestfs_inotify_files (guestfs_h *g);\n"
7810 "\n"
7811 msgstr ""
7812
7813 # type: textblock
7814 #: ../src/guestfs-actions.pod:2338
7815 msgid ""
7816 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7817 "returns a list of pathnames of objects that were touched.  The returned "
7818 "pathnames are sorted and deduplicated."
7819 msgstr ""
7820
7821 # type: =head2
7822 #: ../src/guestfs-actions.pod:2348
7823 msgid "guestfs_inotify_init"
7824 msgstr ""
7825
7826 # type: verbatim
7827 #: ../src/guestfs-actions.pod:2350
7828 #, no-wrap
7829 msgid ""
7830 " int\n"
7831 " guestfs_inotify_init (guestfs_h *g,\n"
7832 "                       int maxevents);\n"
7833 "\n"
7834 msgstr ""
7835
7836 # type: textblock
7837 #: ../src/guestfs-actions.pod:2354 ../fish/guestfish-actions.pod:1584
7838 msgid ""
7839 "This command creates a new inotify handle.  The inotify subsystem can be "
7840 "used to notify events which happen to objects in the guest filesystem."
7841 msgstr ""
7842
7843 # type: textblock
7844 #: ../src/guestfs-actions.pod:2358
7845 msgid ""
7846 "C<maxevents> is the maximum number of events which will be queued up between "
7847 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7848 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7849 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7850 "throws away events, but records the fact that it threw them away by setting "
7851 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7852 "C<guestfs_inotify_read>)."
7853 msgstr ""
7854
7855 # type: textblock
7856 #: ../src/guestfs-actions.pod:2368
7857 msgid ""
7858 "Before any events are generated, you have to add some watches to the "
7859 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7860 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7861 msgstr ""
7862
7863 # type: textblock
7864 #: ../src/guestfs-actions.pod:2374
7865 msgid ""
7866 "Queued up events should be read periodically by calling "
7867 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7868 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7869 "often enough then you risk the internal queue overflowing."
7870 msgstr ""
7871
7872 # type: textblock
7873 #: ../src/guestfs-actions.pod:2381
7874 msgid ""
7875 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7876 "This also removes any watches automatically."
7877 msgstr ""
7878
7879 # type: textblock
7880 #: ../src/guestfs-actions.pod:2385 ../fish/guestfish-actions.pod:1615
7881 msgid ""
7882 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7883 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7884 "that there is one global inotify handle per libguestfs instance."
7885 msgstr ""
7886
7887 # type: =head2
7888 #: ../src/guestfs-actions.pod:2394
7889 msgid "guestfs_inotify_read"
7890 msgstr ""
7891
7892 # type: verbatim
7893 #: ../src/guestfs-actions.pod:2396
7894 #, no-wrap
7895 msgid ""
7896 " struct guestfs_inotify_event_list *\n"
7897 " guestfs_inotify_read (guestfs_h *g);\n"
7898 "\n"
7899 msgstr ""
7900
7901 # type: textblock
7902 #: ../src/guestfs-actions.pod:2399 ../fish/guestfish-actions.pod:1624
7903 msgid ""
7904 "Return the complete queue of events that have happened since the previous "
7905 "read call."
7906 msgstr ""
7907
7908 # type: textblock
7909 #: ../src/guestfs-actions.pod:2402 ../fish/guestfish-actions.pod:1627
7910 msgid "If no events have happened, this returns an empty list."
7911 msgstr ""
7912
7913 # type: textblock
7914 #: ../src/guestfs-actions.pod:2404 ../fish/guestfish-actions.pod:1629
7915 msgid ""
7916 "I<Note>: In order to make sure that all events have been read, you must call "
7917 "this function repeatedly until it returns an empty list.  The reason is that "
7918 "the call will read events up to the maximum appliance-to-host message size "
7919 "and leave remaining events in the queue."
7920 msgstr ""
7921
7922 # type: textblock
7923 #: ../src/guestfs-actions.pod:2410
7924 msgid ""
7925 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7926 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7927 "must call C<guestfs_free_inotify_event_list> after use>."
7928 msgstr ""
7929
7930 # type: =head2
7931 #: ../src/guestfs-actions.pod:2417
7932 msgid "guestfs_inotify_rm_watch"
7933 msgstr ""
7934
7935 # type: verbatim
7936 #: ../src/guestfs-actions.pod:2419
7937 #, no-wrap
7938 msgid ""
7939 " int\n"
7940 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
7941 "                           int wd);\n"
7942 "\n"
7943 msgstr ""
7944
7945 # type: textblock
7946 #: ../src/guestfs-actions.pod:2423
7947 msgid ""
7948 "Remove a previously defined inotify watch.  See "
7949 "C<guestfs_inotify_add_watch>."
7950 msgstr ""
7951
7952 # type: =head2
7953 #: ../src/guestfs-actions.pod:2430
7954 msgid "guestfs_inspect_get_arch"
7955 msgstr ""
7956
7957 # type: verbatim
7958 #: ../src/guestfs-actions.pod:2432
7959 #, no-wrap
7960 msgid ""
7961 " char *\n"
7962 " guestfs_inspect_get_arch (guestfs_h *g,\n"
7963 "                           const char *root);\n"
7964 "\n"
7965 msgstr ""
7966
7967 # type: textblock
7968 #: ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2558 ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2639 ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:2719
7969 msgid ""
7970 "This function should only be called with a root device string as returned by "
7971 "C<guestfs_inspect_os>."
7972 msgstr ""
7973
7974 # type: textblock
7975 #: ../src/guestfs-actions.pod:2439
7976 msgid ""
7977 "This returns the architecture of the inspected operating system.  The "
7978 "possible return values are listed under C<guestfs_file_architecture>."
7979 msgstr ""
7980
7981 # type: textblock
7982 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1653
7983 msgid ""
7984 "If the architecture could not be determined, then the string C<unknown> is "
7985 "returned."
7986 msgstr ""
7987
7988 # type: textblock
7989 #: ../src/guestfs-actions.pod:2446 ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2650 ../src/guestfs-actions.pod:2669 ../src/guestfs-actions.pod:2706 ../src/guestfs-actions.pod:2729 ../src/guestfs-actions.pod:2769 ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:1761 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1829 ../fish/guestfish-actions.pod:1860 ../fish/guestfish-actions.pod:1876 ../fish/guestfish-actions.pod:1910
7990 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7991 msgstr ""
7992
7993 # type: =head2
7994 #: ../src/guestfs-actions.pod:2453
7995 msgid "guestfs_inspect_get_distro"
7996 msgstr ""
7997
7998 # type: verbatim
7999 #: ../src/guestfs-actions.pod:2455
8000 #, no-wrap
8001 msgid ""
8002 " char *\n"
8003 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8004 "                             const char *root);\n"
8005 "\n"
8006 msgstr ""
8007
8008 # type: textblock
8009 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1665
8010 msgid "This returns the distro (distribution) of the inspected operating system."
8011 msgstr ""
8012
8013 # type: textblock
8014 #: ../src/guestfs-actions.pod:2465 ../fish/guestfish-actions.pod:1668
8015 msgid "Currently defined distros are:"
8016 msgstr ""
8017
8018 # type: =item
8019 #: ../src/guestfs-actions.pod:2469 ../fish/guestfish-actions.pod:1672
8020 msgid "\"archlinux\""
8021 msgstr ""
8022
8023 # type: textblock
8024 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1674
8025 msgid "Arch Linux."
8026 msgstr ""
8027
8028 # type: =item
8029 #: ../src/guestfs-actions.pod:2473 ../fish/guestfish-actions.pod:1676
8030 msgid "\"debian\""
8031 msgstr ""
8032
8033 # type: textblock
8034 #: ../src/guestfs-actions.pod:2475 ../fish/guestfish-actions.pod:1678
8035 msgid "Debian or a Debian-derived distro such as Ubuntu."
8036 msgstr ""
8037
8038 # type: =item
8039 #: ../src/guestfs-actions.pod:2477 ../fish/guestfish-actions.pod:1680
8040 msgid "\"fedora\""
8041 msgstr ""
8042
8043 # type: textblock
8044 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1682
8045 msgid "Fedora."
8046 msgstr ""
8047
8048 # type: =item
8049 #: ../src/guestfs-actions.pod:2481 ../fish/guestfish-actions.pod:1684
8050 msgid "\"gentoo\""
8051 msgstr ""
8052
8053 # type: textblock
8054 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1686
8055 msgid "Gentoo."
8056 msgstr ""
8057
8058 # type: =item
8059 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1688
8060 msgid "\"meego\""
8061 msgstr ""
8062
8063 # type: textblock
8064 #: ../src/guestfs-actions.pod:2487 ../fish/guestfish-actions.pod:1690
8065 msgid "MeeGo."
8066 msgstr ""
8067
8068 # type: =item
8069 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1692
8070 msgid "\"pardus\""
8071 msgstr ""
8072
8073 # type: textblock
8074 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1694
8075 msgid "Pardus."
8076 msgstr ""
8077
8078 # type: =item
8079 #: ../src/guestfs-actions.pod:2493 ../fish/guestfish-actions.pod:1696
8080 msgid "\"redhat-based\""
8081 msgstr ""
8082
8083 # type: textblock
8084 #: ../src/guestfs-actions.pod:2495 ../fish/guestfish-actions.pod:1698
8085 msgid "Some Red Hat-derived distro."
8086 msgstr ""
8087
8088 # type: =item
8089 #: ../src/guestfs-actions.pod:2497 ../fish/guestfish-actions.pod:1700
8090 msgid "\"rhel\""
8091 msgstr ""
8092
8093 # type: textblock
8094 #: ../src/guestfs-actions.pod:2499 ../fish/guestfish-actions.pod:1702
8095 msgid "Red Hat Enterprise Linux and some derivatives."
8096 msgstr ""
8097
8098 # type: =item
8099 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2693 ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1847
8100 msgid "\"windows\""
8101 msgstr ""
8102
8103 # type: textblock
8104 #: ../src/guestfs-actions.pod:2503 ../fish/guestfish-actions.pod:1706
8105 msgid ""
8106 "Windows does not have distributions.  This string is returned if the OS type "
8107 "is Windows."
8108 msgstr ""
8109
8110 # type: =item
8111 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1709
8112 msgid "\"ubuntu\""
8113 msgstr ""
8114
8115 # type: textblock
8116 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1711
8117 msgid "Ubuntu."
8118 msgstr ""
8119
8120 # type: =item
8121 #: ../src/guestfs-actions.pod:2510 ../src/guestfs-actions.pod:2697 ../fish/guestfish-actions.pod:1713 ../fish/guestfish-actions.pod:1851
8122 msgid "\"unknown\""
8123 msgstr ""
8124
8125 # type: textblock
8126 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1715
8127 msgid "The distro could not be determined."
8128 msgstr ""
8129
8130 # type: textblock
8131 #: ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2703 ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1857
8132 msgid ""
8133 "Future versions of libguestfs may return other strings here.  The caller "
8134 "should be prepared to handle any string."
8135 msgstr ""
8136
8137 # type: =head2
8138 #: ../src/guestfs-actions.pod:2526
8139 msgid "guestfs_inspect_get_filesystems"
8140 msgstr ""
8141
8142 # type: verbatim
8143 #: ../src/guestfs-actions.pod:2528
8144 #, no-wrap
8145 msgid ""
8146 " char **\n"
8147 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8148 "                                  const char *root);\n"
8149 "\n"
8150 msgstr ""
8151
8152 # type: textblock
8153 #: ../src/guestfs-actions.pod:2535 ../fish/guestfish-actions.pod:1731
8154 msgid ""
8155 "This returns a list of all the filesystems that we think are associated with "
8156 "this operating system.  This includes the root filesystem, other ordinary "
8157 "filesystems, and non-mounted devices like swap partitions."
8158 msgstr ""
8159
8160 # type: textblock
8161 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1736
8162 msgid ""
8163 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8164 "to be shared between operating systems."
8165 msgstr ""
8166
8167 # type: textblock
8168 #: ../src/guestfs-actions.pod:2543
8169 msgid ""
8170 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8171 "C<guestfs_inspect_get_mountpoints>."
8172 msgstr ""
8173
8174 # type: =head2
8175 #: ../src/guestfs-actions.pod:2552
8176 msgid "guestfs_inspect_get_major_version"
8177 msgstr ""
8178
8179 # type: verbatim
8180 #: ../src/guestfs-actions.pod:2554
8181 #, no-wrap
8182 msgid ""
8183 " int\n"
8184 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8185 "                                    const char *root);\n"
8186 "\n"
8187 msgstr ""
8188
8189 # type: textblock
8190 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1749
8191 msgid "This returns the major version number of the inspected operating system."
8192 msgstr ""
8193
8194 # type: textblock
8195 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1752
8196 msgid ""
8197 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8198 "popular public names used by the operating system.  Notably the operating "
8199 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8200 "1).  You can find out the real versions corresponding to releases of Windows "
8201 "by consulting Wikipedia or MSDN."
8202 msgstr ""
8203
8204 # type: textblock
8205 #: ../src/guestfs-actions.pod:2571 ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1773
8206 msgid "If the version could not be determined, then C<0> is returned."
8207 msgstr ""
8208
8209 # type: =head2
8210 #: ../src/guestfs-actions.pod:2579
8211 msgid "guestfs_inspect_get_minor_version"
8212 msgstr ""
8213
8214 # type: verbatim
8215 #: ../src/guestfs-actions.pod:2581
8216 #, no-wrap
8217 msgid ""
8218 " int\n"
8219 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8220 "                                    const char *root);\n"
8221 "\n"
8222 msgstr ""
8223
8224 # type: textblock
8225 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1770
8226 msgid "This returns the minor version number of the inspected operating system."
8227 msgstr ""
8228
8229 # type: textblock
8230 #: ../src/guestfs-actions.pod:2593
8231 msgid ""
8232 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8233 "C<guestfs_inspect_get_major_version>."
8234 msgstr ""
8235
8236 # type: =head2
8237 #: ../src/guestfs-actions.pod:2600
8238 msgid "guestfs_inspect_get_mountpoints"
8239 msgstr ""
8240
8241 # type: verbatim
8242 #: ../src/guestfs-actions.pod:2602
8243 #, no-wrap
8244 msgid ""
8245 " char **\n"
8246 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8247 "                                  const char *root);\n"
8248 "\n"
8249 msgstr ""
8250
8251 # type: textblock
8252 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1785
8253 msgid ""
8254 "This returns a hash of where we think the filesystems associated with this "
8255 "operating system should be mounted.  Callers should note that this is at "
8256 "best an educated guess made by reading configuration files such as "
8257 "C</etc/fstab>."
8258 msgstr ""
8259
8260 # type: textblock
8261 #: ../src/guestfs-actions.pod:2614 ../fish/guestfish-actions.pod:1790
8262 msgid ""
8263 "Each element in the returned hashtable has a key which is the path of the "
8264 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8265 "mounted there (eg. C</dev/sda1>)."
8266 msgstr ""
8267
8268 # type: textblock
8269 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1795
8270 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8271 msgstr ""
8272
8273 # type: textblock
8274 #: ../src/guestfs-actions.pod:2622
8275 msgid ""
8276 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8277 "C<guestfs_inspect_get_filesystems>."
8278 msgstr ""
8279
8280 # type: textblock
8281 #: ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:6059
8282 msgid ""
8283 "This function returns a NULL-terminated array of strings, or NULL if there "
8284 "was an error.  The array of strings will always have length C<2n+1>, where "
8285 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8286 "caller must free the strings and the array after use>."
8287 msgstr ""
8288
8289 # type: =head2
8290 #: ../src/guestfs-actions.pod:2633
8291 msgid "guestfs_inspect_get_product_name"
8292 msgstr ""
8293
8294 # type: verbatim
8295 #: ../src/guestfs-actions.pod:2635
8296 #, no-wrap
8297 msgid ""
8298 " char *\n"
8299 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8300 "                                   const char *root);\n"
8301 "\n"
8302 msgstr ""
8303
8304 # type: textblock
8305 #: ../src/guestfs-actions.pod:2642 ../fish/guestfish-actions.pod:1808
8306 msgid ""
8307 "This returns the product name of the inspected operating system.  The "
8308 "product name is generally some freeform string which can be displayed to the "
8309 "user, but should not be parsed by programs."
8310 msgstr ""
8311
8312 # type: textblock
8313 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1813
8314 msgid ""
8315 "If the product name could not be determined, then the string C<unknown> is "
8316 "returned."
8317 msgstr ""
8318
8319 # type: =head2
8320 #: ../src/guestfs-actions.pod:2657
8321 msgid "guestfs_inspect_get_roots"
8322 msgstr ""
8323
8324 # type: verbatim
8325 #: ../src/guestfs-actions.pod:2659
8326 #, no-wrap
8327 msgid ""
8328 " char **\n"
8329 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8330 "\n"
8331 msgstr ""
8332
8333 # type: textblock
8334 #: ../src/guestfs-actions.pod:2662
8335 msgid ""
8336 "This function is a convenient way to get the list of root devices, as "
8337 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8338 "the whole inspection process."
8339 msgstr ""
8340
8341 # type: textblock
8342 #: ../src/guestfs-actions.pod:2666
8343 msgid ""
8344 "This returns an empty list if either no root devices were found or the "
8345 "caller has not called C<guestfs_inspect_os>."
8346 msgstr ""
8347
8348 # type: =head2
8349 #: ../src/guestfs-actions.pod:2675
8350 msgid "guestfs_inspect_get_type"
8351 msgstr ""
8352
8353 # type: verbatim
8354 #: ../src/guestfs-actions.pod:2677
8355 #, no-wrap
8356 msgid ""
8357 " char *\n"
8358 " guestfs_inspect_get_type (guestfs_h *g,\n"
8359 "                           const char *root);\n"
8360 "\n"
8361 msgstr ""
8362
8363 # type: textblock
8364 #: ../src/guestfs-actions.pod:2684 ../fish/guestfish-actions.pod:1838
8365 msgid ""
8366 "This returns the type of the inspected operating system.  Currently defined "
8367 "types are:"
8368 msgstr ""
8369
8370 # type: =item
8371 #: ../src/guestfs-actions.pod:2689 ../fish/guestfish-actions.pod:1843
8372 msgid "\"linux\""
8373 msgstr ""
8374
8375 # type: textblock
8376 #: ../src/guestfs-actions.pod:2691 ../fish/guestfish-actions.pod:1845
8377 msgid "Any Linux-based operating system."
8378 msgstr ""
8379
8380 # type: textblock
8381 #: ../src/guestfs-actions.pod:2695 ../fish/guestfish-actions.pod:1849
8382 msgid "Any Microsoft Windows operating system."
8383 msgstr ""
8384
8385 # type: textblock
8386 #: ../src/guestfs-actions.pod:2699 ../fish/guestfish-actions.pod:1853
8387 msgid "The operating system type could not be determined."
8388 msgstr ""
8389
8390 # type: =head2
8391 #: ../src/guestfs-actions.pod:2713
8392 msgid "guestfs_inspect_get_windows_systemroot"
8393 msgstr ""
8394
8395 # type: verbatim
8396 #: ../src/guestfs-actions.pod:2715
8397 #, no-wrap
8398 msgid ""
8399 " char *\n"
8400 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8401 "                                         const char *root);\n"
8402 "\n"
8403 msgstr ""
8404
8405 # type: textblock
8406 #: ../src/guestfs-actions.pod:2722 ../fish/guestfish-actions.pod:1869
8407 msgid ""
8408 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8409 "is a directory path such as C</WINDOWS>."
8410 msgstr ""
8411
8412 # type: textblock
8413 #: ../src/guestfs-actions.pod:2725 ../fish/guestfish-actions.pod:1872
8414 msgid ""
8415 "This call assumes that the guest is Windows and that the systemroot could be "
8416 "determined by inspection.  If this is not the case then an error is "
8417 "returned."
8418 msgstr ""
8419
8420 # type: textblock
8421 #: ../src/guestfs-actions.pod:2734
8422 msgid "(Added in 1.5.25)"
8423 msgstr ""
8424
8425 # type: =head2
8426 #: ../src/guestfs-actions.pod:2736
8427 msgid "guestfs_inspect_os"
8428 msgstr ""
8429
8430 # type: verbatim
8431 #: ../src/guestfs-actions.pod:2738
8432 #, no-wrap
8433 msgid ""
8434 " char **\n"
8435 " guestfs_inspect_os (guestfs_h *g);\n"
8436 "\n"
8437 msgstr ""
8438
8439 # type: textblock
8440 #: ../src/guestfs-actions.pod:2741 ../fish/guestfish-actions.pod:1882
8441 msgid ""
8442 "This function uses other libguestfs functions and certain heuristics to "
8443 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8444 "for operating systems."
8445 msgstr ""
8446
8447 # type: textblock
8448 #: ../src/guestfs-actions.pod:2745 ../fish/guestfish-actions.pod:1886
8449 msgid "The list returned is empty if no operating systems were found."
8450 msgstr ""
8451
8452 # type: textblock
8453 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1888
8454 msgid ""
8455 "If one operating system was found, then this returns a list with a single "
8456 "element, which is the name of the root filesystem of this operating system.  "
8457 "It is also possible for this function to return a list containing more than "
8458 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8459 "element being the root filesystem of one of the operating systems."
8460 msgstr ""
8461
8462 # type: textblock
8463 #: ../src/guestfs-actions.pod:2754
8464 msgid ""
8465 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8466 "functions in order to query further information about each operating system, "
8467 "such as the name and version."
8468 msgstr ""
8469
8470 # type: textblock
8471 #: ../src/guestfs-actions.pod:2759
8472 msgid ""
8473 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8474 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8475 "the contents.  This should be called with no disks currently mounted.  The "
8476 "function may also use Augeas, so any existing Augeas handle will be closed."
8477 msgstr ""
8478
8479 # type: textblock
8480 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:1906
8481 msgid ""
8482 "This function cannot decrypt encrypted disks.  The caller must do that first "
8483 "(supplying the necessary keys) if the disk is encrypted."
8484 msgstr ""
8485
8486 # type: textblock
8487 #: ../src/guestfs-actions.pod:2771 ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3089
8488 msgid "See also C<guestfs_list_filesystems>."
8489 msgstr ""
8490
8491 # type: =head2
8492 #: ../src/guestfs-actions.pod:2779
8493 msgid "guestfs_is_blockdev"
8494 msgstr ""
8495
8496 # type: verbatim
8497 #: ../src/guestfs-actions.pod:2781
8498 #, no-wrap
8499 msgid ""
8500 " int\n"
8501 " guestfs_is_blockdev (guestfs_h *g,\n"
8502 "                      const char *path);\n"
8503 "\n"
8504 msgstr ""
8505
8506 # type: textblock
8507 #: ../src/guestfs-actions.pod:2785 ../fish/guestfish-actions.pod:1918
8508 msgid ""
8509 "This returns C<true> if and only if there is a block device with the given "
8510 "C<path> name."
8511 msgstr ""
8512
8513 # type: textblock
8514 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2862 ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:2934 ../src/guestfs-actions.pod:2949
8515 msgid "See also C<guestfs_stat>."
8516 msgstr ""
8517
8518 # type: textblock
8519 #: ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2866 ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2953
8520 msgid "(Added in 1.5.10)"
8521 msgstr ""
8522
8523 # type: =head2
8524 #: ../src/guestfs-actions.pod:2794
8525 msgid "guestfs_is_busy"
8526 msgstr ""
8527
8528 # type: verbatim
8529 #: ../src/guestfs-actions.pod:2796
8530 #, no-wrap
8531 msgid ""
8532 " int\n"
8533 " guestfs_is_busy (guestfs_h *g);\n"
8534 "\n"
8535 msgstr ""
8536
8537 # type: textblock
8538 #: ../src/guestfs-actions.pod:2799 ../fish/guestfish-actions.pod:1927
8539 msgid ""
8540 "This returns true iff this handle is busy processing a command (in the "
8541 "C<BUSY> state)."
8542 msgstr ""
8543
8544 # type: =head2
8545 #: ../src/guestfs-actions.pod:2808
8546 msgid "guestfs_is_chardev"
8547 msgstr ""
8548
8549 # type: verbatim
8550 #: ../src/guestfs-actions.pod:2810
8551 #, no-wrap
8552 msgid ""
8553 " int\n"
8554 " guestfs_is_chardev (guestfs_h *g,\n"
8555 "                     const char *path);\n"
8556 "\n"
8557 msgstr ""
8558
8559 # type: textblock
8560 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1936
8561 msgid ""
8562 "This returns C<true> if and only if there is a character device with the "
8563 "given C<path> name."
8564 msgstr ""
8565
8566 # type: =head2
8567 #: ../src/guestfs-actions.pod:2823
8568 msgid "guestfs_is_config"
8569 msgstr ""
8570
8571 # type: verbatim
8572 #: ../src/guestfs-actions.pod:2825
8573 #, no-wrap
8574 msgid ""
8575 " int\n"
8576 " guestfs_is_config (guestfs_h *g);\n"
8577 "\n"
8578 msgstr ""
8579
8580 # type: textblock
8581 #: ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1945
8582 msgid ""
8583 "This returns true iff this handle is being configured (in the C<CONFIG> "
8584 "state)."
8585 msgstr ""
8586
8587 # type: =head2
8588 #: ../src/guestfs-actions.pod:2837
8589 msgid "guestfs_is_dir"
8590 msgstr ""
8591
8592 # type: verbatim
8593 #: ../src/guestfs-actions.pod:2839
8594 #, no-wrap
8595 msgid ""
8596 " int\n"
8597 " guestfs_is_dir (guestfs_h *g,\n"
8598 "                 const char *path);\n"
8599 "\n"
8600 msgstr ""
8601
8602 # type: textblock
8603 #: ../src/guestfs-actions.pod:2843 ../fish/guestfish-actions.pod:1954
8604 msgid ""
8605 "This returns C<true> if and only if there is a directory with the given "
8606 "C<path> name.  Note that it returns false for other objects like files."
8607 msgstr ""
8608
8609 # type: =head2
8610 #: ../src/guestfs-actions.pod:2853
8611 msgid "guestfs_is_fifo"
8612 msgstr ""
8613
8614 # type: verbatim
8615 #: ../src/guestfs-actions.pod:2855
8616 #, no-wrap
8617 msgid ""
8618 " int\n"
8619 " guestfs_is_fifo (guestfs_h *g,\n"
8620 "                  const char *path);\n"
8621 "\n"
8622 msgstr ""
8623
8624 # type: textblock
8625 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1964
8626 msgid ""
8627 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8628 "given C<path> name."
8629 msgstr ""
8630
8631 # type: =head2
8632 #: ../src/guestfs-actions.pod:2868
8633 msgid "guestfs_is_file"
8634 msgstr ""
8635
8636 # type: verbatim
8637 #: ../src/guestfs-actions.pod:2870
8638 #, no-wrap
8639 msgid ""
8640 " int\n"
8641 " guestfs_is_file (guestfs_h *g,\n"
8642 "                  const char *path);\n"
8643 "\n"
8644 msgstr ""
8645
8646 # type: textblock
8647 #: ../src/guestfs-actions.pod:2874 ../fish/guestfish-actions.pod:1973
8648 msgid ""
8649 "This returns C<true> if and only if there is a regular file with the given "
8650 "C<path> name.  Note that it returns false for other objects like "
8651 "directories."
8652 msgstr ""
8653
8654 # type: =head2
8655 #: ../src/guestfs-actions.pod:2884
8656 msgid "guestfs_is_launching"
8657 msgstr ""
8658
8659 # type: verbatim
8660 #: ../src/guestfs-actions.pod:2886
8661 #, no-wrap
8662 msgid ""
8663 " int\n"
8664 " guestfs_is_launching (guestfs_h *g);\n"
8665 "\n"
8666 msgstr ""
8667
8668 # type: textblock
8669 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1983
8670 msgid ""
8671 "This returns true iff this handle is launching the subprocess (in the "
8672 "C<LAUNCHING> state)."
8673 msgstr ""
8674
8675 # type: =head2
8676 #: ../src/guestfs-actions.pod:2898
8677 msgid "guestfs_is_lv"
8678 msgstr ""
8679
8680 # type: verbatim
8681 #: ../src/guestfs-actions.pod:2900
8682 #, no-wrap
8683 msgid ""
8684 " int\n"
8685 " guestfs_is_lv (guestfs_h *g,\n"
8686 "                const char *device);\n"
8687 "\n"
8688 msgstr ""
8689
8690 # type: textblock
8691 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:1992
8692 msgid ""
8693 "This command tests whether C<device> is a logical volume, and returns true "
8694 "iff this is the case."
8695 msgstr ""
8696
8697 # type: =head2
8698 #: ../src/guestfs-actions.pod:2911
8699 msgid "guestfs_is_ready"
8700 msgstr ""
8701
8702 # type: verbatim
8703 #: ../src/guestfs-actions.pod:2913
8704 #, no-wrap
8705 msgid ""
8706 " int\n"
8707 " guestfs_is_ready (guestfs_h *g);\n"
8708 "\n"
8709 msgstr ""
8710
8711 # type: textblock
8712 #: ../src/guestfs-actions.pod:2916 ../fish/guestfish-actions.pod:1999
8713 msgid ""
8714 "This returns true iff this handle is ready to accept commands (in the "
8715 "C<READY> state)."
8716 msgstr ""
8717
8718 # type: =head2
8719 #: ../src/guestfs-actions.pod:2925
8720 msgid "guestfs_is_socket"
8721 msgstr ""
8722
8723 # type: verbatim
8724 #: ../src/guestfs-actions.pod:2927
8725 #, no-wrap
8726 msgid ""
8727 " int\n"
8728 " guestfs_is_socket (guestfs_h *g,\n"
8729 "                    const char *path);\n"
8730 "\n"
8731 msgstr ""
8732
8733 # type: textblock
8734 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:2008
8735 msgid ""
8736 "This returns C<true> if and only if there is a Unix domain socket with the "
8737 "given C<path> name."
8738 msgstr ""
8739
8740 # type: =head2
8741 #: ../src/guestfs-actions.pod:2940
8742 msgid "guestfs_is_symlink"
8743 msgstr ""
8744
8745 # type: verbatim
8746 #: ../src/guestfs-actions.pod:2942
8747 #, no-wrap
8748 msgid ""
8749 " int\n"
8750 " guestfs_is_symlink (guestfs_h *g,\n"
8751 "                     const char *path);\n"
8752 "\n"
8753 msgstr ""
8754
8755 # type: textblock
8756 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2017
8757 msgid ""
8758 "This returns C<true> if and only if there is a symbolic link with the given "
8759 "C<path> name."
8760 msgstr ""
8761
8762 # type: =head2
8763 #: ../src/guestfs-actions.pod:2955
8764 msgid "guestfs_kill_subprocess"
8765 msgstr ""
8766
8767 # type: verbatim
8768 #: ../src/guestfs-actions.pod:2957
8769 #, no-wrap
8770 msgid ""
8771 " int\n"
8772 " guestfs_kill_subprocess (guestfs_h *g);\n"
8773 "\n"
8774 msgstr ""
8775
8776 # type: textblock
8777 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2026
8778 msgid "This kills the qemu subprocess.  You should never need to call this."
8779 msgstr ""
8780
8781 # type: =head2
8782 #: ../src/guestfs-actions.pod:2966
8783 msgid "guestfs_launch"
8784 msgstr ""
8785
8786 # type: verbatim
8787 #: ../src/guestfs-actions.pod:2968
8788 #, no-wrap
8789 msgid ""
8790 " int\n"
8791 " guestfs_launch (guestfs_h *g);\n"
8792 "\n"
8793 msgstr ""
8794
8795 # type: textblock
8796 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2034
8797 msgid ""
8798 "Internally libguestfs is implemented by running a virtual machine using "
8799 "L<qemu(1)>."
8800 msgstr ""
8801
8802 # type: textblock
8803 #: ../src/guestfs-actions.pod:2974 ../fish/guestfish-actions.pod:2037
8804 msgid ""
8805 "You should call this after configuring the handle (eg. adding drives) but "
8806 "before performing any actions."
8807 msgstr ""
8808
8809 # type: =head2
8810 #: ../src/guestfs-actions.pod:2981
8811 msgid "guestfs_lchown"
8812 msgstr ""
8813
8814 # type: verbatim
8815 #: ../src/guestfs-actions.pod:2983
8816 #, no-wrap
8817 msgid ""
8818 " int\n"
8819 " guestfs_lchown (guestfs_h *g,\n"
8820 "                 int owner,\n"
8821 "                 int group,\n"
8822 "                 const char *path);\n"
8823 "\n"
8824 msgstr ""
8825
8826 # type: textblock
8827 #: ../src/guestfs-actions.pod:2989
8828 msgid ""
8829 "Change the file owner to C<owner> and group to C<group>.  This is like "
8830 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8831 "changed, not the target."
8832 msgstr ""
8833
8834 # type: =head2
8835 #: ../src/guestfs-actions.pod:3001
8836 msgid "guestfs_lgetxattrs"
8837 msgstr ""
8838
8839 # type: verbatim
8840 #: ../src/guestfs-actions.pod:3003
8841 #, no-wrap
8842 msgid ""
8843 " struct guestfs_xattr_list *\n"
8844 " guestfs_lgetxattrs (guestfs_h *g,\n"
8845 "                     const char *path);\n"
8846 "\n"
8847 msgstr ""
8848
8849 # type: textblock
8850 #: ../src/guestfs-actions.pod:3007
8851 msgid ""
8852 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8853 "then it returns the extended attributes of the link itself."
8854 msgstr ""
8855
8856 # type: =head2
8857 #: ../src/guestfs-actions.pod:3018
8858 msgid "guestfs_list_devices"
8859 msgstr ""
8860
8861 # type: verbatim
8862 #: ../src/guestfs-actions.pod:3020
8863 #, no-wrap
8864 msgid ""
8865 " char **\n"
8866 " guestfs_list_devices (guestfs_h *g);\n"
8867 "\n"
8868 msgstr ""
8869
8870 # type: textblock
8871 #: ../src/guestfs-actions.pod:3023 ../fish/guestfish-actions.pod:2064
8872 msgid "List all the block devices."
8873 msgstr ""
8874
8875 # type: textblock
8876 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2066
8877 msgid "The full block device names are returned, eg. C</dev/sda>."
8878 msgstr ""
8879
8880 # type: =head2
8881 #: ../src/guestfs-actions.pod:3035
8882 msgid "guestfs_list_filesystems"
8883 msgstr ""
8884
8885 # type: verbatim
8886 #: ../src/guestfs-actions.pod:3037
8887 #, no-wrap
8888 msgid ""
8889 " char **\n"
8890 " guestfs_list_filesystems (guestfs_h *g);\n"
8891 "\n"
8892 msgstr ""
8893
8894 # type: textblock
8895 #: ../src/guestfs-actions.pod:3040 ../fish/guestfish-actions.pod:2074
8896 msgid ""
8897 "This inspection command looks for filesystems on partitions, block devices "
8898 "and logical volumes, returning a list of devices containing filesystems and "
8899 "their type."
8900 msgstr ""
8901
8902 # type: textblock
8903 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2078
8904 msgid ""
8905 "The return value is a hash, where the keys are the devices containing "
8906 "filesystems, and the values are the filesystem types.  For example:"
8907 msgstr ""
8908
8909 # type: verbatim
8910 #: ../src/guestfs-actions.pod:3048 ../fish/guestfish-actions.pod:2082
8911 #, no-wrap
8912 msgid ""
8913 " \"/dev/sda1\" => \"ntfs\"\n"
8914 " \"/dev/sda2\" => \"ext2\"\n"
8915 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8916 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8917 "\n"
8918 msgstr ""
8919
8920 # type: textblock
8921 #: ../src/guestfs-actions.pod:3053 ../fish/guestfish-actions.pod:2087
8922 msgid ""
8923 "The value can have the special value \"unknown\", meaning the content of the "
8924 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8925 msgstr ""
8926
8927 # type: textblock
8928 #: ../src/guestfs-actions.pod:3057
8929 msgid ""
8930 "This command runs other libguestfs commands, which might include "
8931 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8932 "soon after launch and only when nothing is mounted."
8933 msgstr ""
8934
8935 # type: textblock
8936 #: ../src/guestfs-actions.pod:3061
8937 msgid ""
8938 "Not all of the filesystems returned will be mountable.  In particular, swap "
8939 "partitions are returned in the list.  Also this command does not check that "
8940 "each filesystem found is valid and mountable, and some filesystems might be "
8941 "mountable but require special options.  Filesystems may not all belong to a "
8942 "single logical operating system (use C<guestfs_inspect_os> to look for "
8943 "OSes)."
8944 msgstr ""
8945
8946 # type: textblock
8947 #: ../src/guestfs-actions.pod:3075 ../src/guestfs-actions.pod:4602
8948 msgid "(Added in 1.5.15)"
8949 msgstr ""
8950
8951 # type: =head2
8952 #: ../src/guestfs-actions.pod:3077
8953 msgid "guestfs_list_partitions"
8954 msgstr ""
8955
8956 # type: verbatim
8957 #: ../src/guestfs-actions.pod:3079
8958 #, no-wrap
8959 msgid ""
8960 " char **\n"
8961 " guestfs_list_partitions (guestfs_h *g);\n"
8962 "\n"
8963 msgstr ""
8964
8965 # type: textblock
8966 #: ../src/guestfs-actions.pod:3082 ../fish/guestfish-actions.pod:2107
8967 msgid "List all the partitions detected on all block devices."
8968 msgstr ""
8969
8970 # type: textblock
8971 #: ../src/guestfs-actions.pod:3084 ../fish/guestfish-actions.pod:2109
8972 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8973 msgstr ""
8974
8975 # type: textblock
8976 #: ../src/guestfs-actions.pod:3086
8977 msgid ""
8978 "This does not return logical volumes.  For that you will need to call "
8979 "C<guestfs_lvs>."
8980 msgstr ""
8981
8982 # type: =head2
8983 #: ../src/guestfs-actions.pod:3097
8984 msgid "guestfs_ll"
8985 msgstr ""
8986
8987 # type: verbatim
8988 #: ../src/guestfs-actions.pod:3099
8989 #, no-wrap
8990 msgid ""
8991 " char *\n"
8992 " guestfs_ll (guestfs_h *g,\n"
8993 "             const char *directory);\n"
8994 "\n"
8995 msgstr ""
8996
8997 # type: textblock
8998 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2120
8999 msgid ""
9000 "List the files in C<directory> (relative to the root directory, there is no "
9001 "cwd) in the format of 'ls -la'."
9002 msgstr ""
9003
9004 # type: textblock
9005 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2123
9006 msgid ""
9007 "This command is mostly useful for interactive sessions.  It is I<not> "
9008 "intended that you try to parse the output string."
9009 msgstr ""
9010
9011 # type: =head2
9012 #: ../src/guestfs-actions.pod:3114
9013 msgid "guestfs_ln"
9014 msgstr ""
9015
9016 # type: verbatim
9017 #: ../src/guestfs-actions.pod:3116
9018 #, no-wrap
9019 msgid ""
9020 " int\n"
9021 " guestfs_ln (guestfs_h *g,\n"
9022 "             const char *target,\n"
9023 "             const char *linkname);\n"
9024 "\n"
9025 msgstr ""
9026
9027 # type: textblock
9028 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2130
9029 msgid "This command creates a hard link using the C<ln> command."
9030 msgstr ""
9031
9032 # type: =head2
9033 #: ../src/guestfs-actions.pod:3127
9034 msgid "guestfs_ln_f"
9035 msgstr ""
9036
9037 # type: verbatim
9038 #: ../src/guestfs-actions.pod:3129
9039 #, no-wrap
9040 msgid ""
9041 " int\n"
9042 " guestfs_ln_f (guestfs_h *g,\n"
9043 "               const char *target,\n"
9044 "               const char *linkname);\n"
9045 "\n"
9046 msgstr ""
9047
9048 # type: textblock
9049 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2136
9050 msgid ""
9051 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9052 "option removes the link (C<linkname>) if it exists already."
9053 msgstr ""
9054
9055 # type: =head2
9056 #: ../src/guestfs-actions.pod:3141
9057 msgid "guestfs_ln_s"
9058 msgstr ""
9059
9060 # type: verbatim
9061 #: ../src/guestfs-actions.pod:3143
9062 #, no-wrap
9063 msgid ""
9064 " int\n"
9065 " guestfs_ln_s (guestfs_h *g,\n"
9066 "               const char *target,\n"
9067 "               const char *linkname);\n"
9068 "\n"
9069 msgstr ""
9070
9071 # type: textblock
9072 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2143
9073 msgid "This command creates a symbolic link using the C<ln -s> command."
9074 msgstr ""
9075
9076 # type: =head2
9077 #: ../src/guestfs-actions.pod:3154
9078 msgid "guestfs_ln_sf"
9079 msgstr ""
9080
9081 # type: verbatim
9082 #: ../src/guestfs-actions.pod:3156
9083 #, no-wrap
9084 msgid ""
9085 " int\n"
9086 " guestfs_ln_sf (guestfs_h *g,\n"
9087 "                const char *target,\n"
9088 "                const char *linkname);\n"
9089 "\n"
9090 msgstr ""
9091
9092 # type: textblock
9093 #: ../src/guestfs-actions.pod:3161 ../fish/guestfish-actions.pod:2149
9094 msgid ""
9095 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9096 "option removes the link (C<linkname>) if it exists already."
9097 msgstr ""
9098
9099 # type: =head2
9100 #: ../src/guestfs-actions.pod:3168
9101 msgid "guestfs_lremovexattr"
9102 msgstr ""
9103
9104 # type: verbatim
9105 #: ../src/guestfs-actions.pod:3170
9106 #, no-wrap
9107 msgid ""
9108 " int\n"
9109 " guestfs_lremovexattr (guestfs_h *g,\n"
9110 "                       const char *xattr,\n"
9111 "                       const char *path);\n"
9112 "\n"
9113 msgstr ""
9114
9115 # type: textblock
9116 #: ../src/guestfs-actions.pod:3175
9117 msgid ""
9118 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9119 "link, then it removes an extended attribute of the link itself."
9120 msgstr ""
9121
9122 # type: =head2
9123 #: ../src/guestfs-actions.pod:3183
9124 msgid "guestfs_ls"
9125 msgstr ""
9126
9127 # type: verbatim
9128 #: ../src/guestfs-actions.pod:3185
9129 #, no-wrap
9130 msgid ""
9131 " char **\n"
9132 " guestfs_ls (guestfs_h *g,\n"
9133 "             const char *directory);\n"
9134 "\n"
9135 msgstr ""
9136
9137 # type: textblock
9138 #: ../src/guestfs-actions.pod:3189 ../fish/guestfish-actions.pod:2164
9139 msgid ""
9140 "List the files in C<directory> (relative to the root directory, there is no "
9141 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9142 "shown."
9143 msgstr ""
9144
9145 # type: textblock
9146 #: ../src/guestfs-actions.pod:3193
9147 msgid ""
9148 "This command is mostly useful for interactive sessions.  Programs should "
9149 "probably use C<guestfs_readdir> instead."
9150 msgstr ""
9151
9152 # type: =head2
9153 #: ../src/guestfs-actions.pod:3202
9154 msgid "guestfs_lsetxattr"
9155 msgstr ""
9156
9157 # type: verbatim
9158 #: ../src/guestfs-actions.pod:3204
9159 #, no-wrap
9160 msgid ""
9161 " int\n"
9162 " guestfs_lsetxattr (guestfs_h *g,\n"
9163 "                    const char *xattr,\n"
9164 "                    const char *val,\n"
9165 "                    int vallen,\n"
9166 "                    const char *path);\n"
9167 "\n"
9168 msgstr ""
9169
9170 # type: textblock
9171 #: ../src/guestfs-actions.pod:3211
9172 msgid ""
9173 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9174 "then it sets an extended attribute of the link itself."
9175 msgstr ""
9176
9177 # type: =head2
9178 #: ../src/guestfs-actions.pod:3219
9179 msgid "guestfs_lstat"
9180 msgstr ""
9181
9182 # type: verbatim
9183 #: ../src/guestfs-actions.pod:3221
9184 #, no-wrap
9185 msgid ""
9186 " struct guestfs_stat *\n"
9187 " guestfs_lstat (guestfs_h *g,\n"
9188 "                const char *path);\n"
9189 "\n"
9190 msgstr ""
9191
9192 # type: textblock
9193 #: ../src/guestfs-actions.pod:3225 ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:2183 ../fish/guestfish-actions.pod:3765
9194 msgid "Returns file information for the given C<path>."
9195 msgstr ""
9196
9197 # type: textblock
9198 #: ../src/guestfs-actions.pod:3227
9199 msgid ""
9200 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9201 "link, then the link is stat-ed, not the file it refers to."
9202 msgstr ""
9203
9204 # type: textblock
9205 #: ../src/guestfs-actions.pod:3231 ../fish/guestfish-actions.pod:2189
9206 msgid "This is the same as the C<lstat(2)> system call."
9207 msgstr ""
9208
9209 # type: textblock
9210 #: ../src/guestfs-actions.pod:3233 ../src/guestfs-actions.pod:5662
9211 msgid ""
9212 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9213 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9214 msgstr ""
9215
9216 # type: textblock
9217 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:6065
9218 msgid "(Added in 0.9.2)"
9219 msgstr ""
9220
9221 # type: =head2
9222 #: ../src/guestfs-actions.pod:3239
9223 msgid "guestfs_lstatlist"
9224 msgstr ""
9225
9226 # type: verbatim
9227 #: ../src/guestfs-actions.pod:3241
9228 #, no-wrap
9229 msgid ""
9230 " struct guestfs_stat_list *\n"
9231 " guestfs_lstatlist (guestfs_h *g,\n"
9232 "                    const char *path,\n"
9233 "                    char *const *names);\n"
9234 "\n"
9235 msgstr ""
9236
9237 # type: textblock
9238 #: ../src/guestfs-actions.pod:3246
9239 msgid ""
9240 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9241 "files, where all files are in the directory C<path>.  C<names> is the list "
9242 "of files from this directory."
9243 msgstr ""
9244
9245 # type: textblock
9246 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2199
9247 msgid ""
9248 "On return you get a list of stat structs, with a one-to-one correspondence "
9249 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9250 "then the C<ino> field of that structure is set to C<-1>."
9251 msgstr ""
9252
9253 # type: textblock
9254 #: ../src/guestfs-actions.pod:3255
9255 msgid ""
9256 "This call is intended for programs that want to efficiently list a directory "
9257 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9258 "for a similarly efficient call for getting extended attributes.  Very long "
9259 "directory listings might cause the protocol message size to be exceeded, "
9260 "causing this call to fail.  The caller must split up such requests into "
9261 "smaller groups of names."
9262 msgstr ""
9263
9264 # type: textblock
9265 #: ../src/guestfs-actions.pod:3263
9266 msgid ""
9267 "This function returns a C<struct guestfs_stat_list *> (see "
9268 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
9269 "must call C<guestfs_free_stat_list> after use>."
9270 msgstr ""
9271
9272 # type: =head2
9273 #: ../src/guestfs-actions.pod:3270
9274 msgid "guestfs_luks_add_key"
9275 msgstr ""
9276
9277 # type: verbatim
9278 #: ../src/guestfs-actions.pod:3272
9279 #, no-wrap
9280 msgid ""
9281 " int\n"
9282 " guestfs_luks_add_key (guestfs_h *g,\n"
9283 "                       const char *device,\n"
9284 "                       const char *key,\n"
9285 "                       const char *newkey,\n"
9286 "                       int keyslot);\n"
9287 "\n"
9288 msgstr ""
9289
9290 # type: textblock
9291 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2216
9292 msgid ""
9293 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9294 "existing key, and is used to access the device.  C<newkey> is the new key to "
9295 "add.  C<keyslot> is the key slot that will be replaced."
9296 msgstr ""
9297
9298 # type: textblock
9299 #: ../src/guestfs-actions.pod:3284
9300 msgid ""
9301 "Note that if C<keyslot> already contains a key, then this command will "
9302 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9303 msgstr ""
9304
9305 # type: textblock
9306 #: ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3330 ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3424
9307 msgid ""
9308 "This function takes a key or passphrase parameter which could contain "
9309 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9310 "information."
9311 msgstr ""
9312
9313 # type: textblock
9314 #: ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:3334 ../src/guestfs-actions.pod:3357 ../src/guestfs-actions.pod:3377
9315 msgid "(Added in 1.5.2)"
9316 msgstr ""
9317
9318 # type: =head2
9319 #: ../src/guestfs-actions.pod:3296
9320 msgid "guestfs_luks_close"
9321 msgstr ""
9322
9323 # type: verbatim
9324 #: ../src/guestfs-actions.pod:3298
9325 #, no-wrap
9326 msgid ""
9327 " int\n"
9328 " guestfs_luks_close (guestfs_h *g,\n"
9329 "                     const char *device);\n"
9330 "\n"
9331 msgstr ""
9332
9333 # type: textblock
9334 #: ../src/guestfs-actions.pod:3302
9335 msgid ""
9336 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9337 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9338 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9339 "underlying block device."
9340 msgstr ""
9341
9342 # type: textblock
9343 #: ../src/guestfs-actions.pod:3310 ../src/guestfs-actions.pod:3409 ../src/guestfs-actions.pod:3428 ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:3526
9344 msgid "(Added in 1.5.1)"
9345 msgstr ""
9346
9347 # type: =head2
9348 #: ../src/guestfs-actions.pod:3312
9349 msgid "guestfs_luks_format"
9350 msgstr ""
9351
9352 # type: verbatim
9353 #: ../src/guestfs-actions.pod:3314
9354 #, no-wrap
9355 msgid ""
9356 " int\n"
9357 " guestfs_luks_format (guestfs_h *g,\n"
9358 "                      const char *device,\n"
9359 "                      const char *key,\n"
9360 "                      int keyslot);\n"
9361 "\n"
9362 msgstr ""
9363
9364 # type: textblock
9365 #: ../src/guestfs-actions.pod:3320 ../fish/guestfish-actions.pod:2242
9366 msgid ""
9367 "This command erases existing data on C<device> and formats the device as a "
9368 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9369 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9370 msgstr ""
9371
9372 # type: textblock
9373 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3350 ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5493 ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5542 ../src/guestfs-actions.pod:6693 ../fish/guestfish-actions.pod:2250 ../fish/guestfish-actions.pod:2263 ../fish/guestfish-actions.pod:2347 ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:3384 ../fish/guestfish-actions.pod:3664 ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3695 ../fish/guestfish-actions.pod:4410
9374 msgid ""
9375 "B<This command is dangerous.  Without careful use you can easily destroy all "
9376 "your data>."
9377 msgstr ""
9378
9379 # type: =head2
9380 #: ../src/guestfs-actions.pod:3336
9381 msgid "guestfs_luks_format_cipher"
9382 msgstr ""
9383
9384 # type: verbatim
9385 #: ../src/guestfs-actions.pod:3338
9386 #, no-wrap
9387 msgid ""
9388 " int\n"
9389 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9390 "                             const char *device,\n"
9391 "                             const char *key,\n"
9392 "                             int keyslot,\n"
9393 "                             const char *cipher);\n"
9394 "\n"
9395 msgstr ""
9396
9397 # type: textblock
9398 #: ../src/guestfs-actions.pod:3345
9399 msgid ""
9400 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9401 "set the C<cipher> used."
9402 msgstr ""
9403
9404 # type: =head2
9405 #: ../src/guestfs-actions.pod:3359
9406 msgid "guestfs_luks_kill_slot"
9407 msgstr ""
9408
9409 # type: verbatim
9410 #: ../src/guestfs-actions.pod:3361
9411 #, no-wrap
9412 msgid ""
9413 " int\n"
9414 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9415 "                         const char *device,\n"
9416 "                         const char *key,\n"
9417 "                         int keyslot);\n"
9418 "\n"
9419 msgstr ""
9420
9421 # type: textblock
9422 #: ../src/guestfs-actions.pod:3367 ../fish/guestfish-actions.pod:2270
9423 msgid ""
9424 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9425 "device C<device>.  C<key> must be one of the I<other> keys."
9426 msgstr ""
9427
9428 # type: =head2
9429 #: ../src/guestfs-actions.pod:3379
9430 msgid "guestfs_luks_open"
9431 msgstr ""
9432
9433 # type: verbatim
9434 #: ../src/guestfs-actions.pod:3381
9435 #, no-wrap
9436 msgid ""
9437 " int\n"
9438 " guestfs_luks_open (guestfs_h *g,\n"
9439 "                    const char *device,\n"
9440 "                    const char *key,\n"
9441 "                    const char *mapname);\n"
9442 "\n"
9443 msgstr ""
9444
9445 # type: textblock
9446 #: ../src/guestfs-actions.pod:3387 ../fish/guestfish-actions.pod:2281
9447 msgid ""
9448 "This command opens a block device which has been encrypted according to the "
9449 "Linux Unified Key Setup (LUKS) standard."
9450 msgstr ""
9451
9452 # type: textblock
9453 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2284
9454 msgid "C<device> is the encrypted block device or partition."
9455 msgstr ""
9456
9457 # type: textblock
9458 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2286
9459 msgid ""
9460 "The caller must supply one of the keys associated with the LUKS block "
9461 "device, in the C<key> parameter."
9462 msgstr ""
9463
9464 # type: textblock
9465 #: ../src/guestfs-actions.pod:3395 ../fish/guestfish-actions.pod:2289
9466 msgid ""
9467 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9468 "writes to this block device are decrypted from and encrypted to the "
9469 "underlying C<device> respectively."
9470 msgstr ""
9471
9472 # type: textblock
9473 #: ../src/guestfs-actions.pod:3399
9474 msgid ""
9475 "If this block device contains LVM volume groups, then calling "
9476 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9477 "visible."
9478 msgstr ""
9479
9480 # type: =head2
9481 #: ../src/guestfs-actions.pod:3411
9482 msgid "guestfs_luks_open_ro"
9483 msgstr ""
9484
9485 # type: verbatim
9486 #: ../src/guestfs-actions.pod:3413
9487 #, no-wrap
9488 msgid ""
9489 " int\n"
9490 " guestfs_luks_open_ro (guestfs_h *g,\n"
9491 "                       const char *device,\n"
9492 "                       const char *key,\n"
9493 "                       const char *mapname);\n"
9494 "\n"
9495 msgstr ""
9496
9497 # type: textblock
9498 #: ../src/guestfs-actions.pod:3419
9499 msgid ""
9500 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9501 "created."
9502 msgstr ""
9503
9504 # type: =head2
9505 #: ../src/guestfs-actions.pod:3430
9506 msgid "guestfs_lvcreate"
9507 msgstr ""
9508
9509 # type: verbatim
9510 #: ../src/guestfs-actions.pod:3432
9511 #, no-wrap
9512 msgid ""
9513 " int\n"
9514 " guestfs_lvcreate (guestfs_h *g,\n"
9515 "                   const char *logvol,\n"
9516 "                   const char *volgroup,\n"
9517 "                   int mbytes);\n"
9518 "\n"
9519 msgstr ""
9520
9521 # type: textblock
9522 #: ../src/guestfs-actions.pod:3438 ../fish/guestfish-actions.pod:2314
9523 msgid ""
9524 "This creates an LVM logical volume called C<logvol> on the volume group "
9525 "C<volgroup>, with C<size> megabytes."
9526 msgstr ""
9527
9528 # type: =head2
9529 #: ../src/guestfs-actions.pod:3445
9530 msgid "guestfs_lvm_canonical_lv_name"
9531 msgstr ""
9532
9533 # type: verbatim
9534 #: ../src/guestfs-actions.pod:3447
9535 #, no-wrap
9536 msgid ""
9537 " char *\n"
9538 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9539 "                                const char *lvname);\n"
9540 "\n"
9541 msgstr ""
9542
9543 # type: textblock
9544 #: ../src/guestfs-actions.pod:3451 ../fish/guestfish-actions.pod:2321
9545 msgid ""
9546 "This converts alternative naming schemes for LVs that you might find to the "
9547 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9548 "C</dev/VG/LV>."
9549 msgstr ""
9550
9551 # type: textblock
9552 #: ../src/guestfs-actions.pod:3455 ../fish/guestfish-actions.pod:2325
9553 msgid ""
9554 "This command returns an error if the C<lvname> parameter does not refer to a "
9555 "logical volume."
9556 msgstr ""
9557
9558 # type: textblock
9559 #: ../src/guestfs-actions.pod:3458
9560 msgid "See also C<guestfs_is_lv>."
9561 msgstr ""
9562
9563 # type: textblock
9564 #: ../src/guestfs-actions.pod:3463
9565 msgid "(Added in 1.5.24)"
9566 msgstr ""
9567
9568 # type: =head2
9569 #: ../src/guestfs-actions.pod:3465
9570 msgid "guestfs_lvm_clear_filter"
9571 msgstr ""
9572
9573 # type: verbatim
9574 #: ../src/guestfs-actions.pod:3467
9575 #, no-wrap
9576 msgid ""
9577 " int\n"
9578 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
9579 "\n"
9580 msgstr ""
9581
9582 # type: textblock
9583 #: ../src/guestfs-actions.pod:3470
9584 msgid ""
9585 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9586 "see every block device."
9587 msgstr ""
9588
9589 # type: textblock
9590 #: ../src/guestfs-actions.pod:3473 ../src/guestfs-actions.pod:3515 ../fish/guestfish-actions.pod:2337 ../fish/guestfish-actions.pod:2368
9591 msgid "This command also clears the LVM cache and performs a volume group scan."
9592 msgstr ""
9593
9594 # type: =head2
9595 #: ../src/guestfs-actions.pod:3480
9596 msgid "guestfs_lvm_remove_all"
9597 msgstr ""
9598
9599 # type: verbatim
9600 #: ../src/guestfs-actions.pod:3482
9601 #, no-wrap
9602 msgid ""
9603 " int\n"
9604 " guestfs_lvm_remove_all (guestfs_h *g);\n"
9605 "\n"
9606 msgstr ""
9607
9608 # type: textblock
9609 #: ../src/guestfs-actions.pod:3485 ../fish/guestfish-actions.pod:2344
9610 msgid ""
9611 "This command removes all LVM logical volumes, volume groups and physical "
9612 "volumes."
9613 msgstr ""
9614
9615 # type: =head2
9616 #: ../src/guestfs-actions.pod:3495
9617 msgid "guestfs_lvm_set_filter"
9618 msgstr ""
9619
9620 # type: verbatim
9621 #: ../src/guestfs-actions.pod:3497
9622 #, no-wrap
9623 msgid ""
9624 " int\n"
9625 " guestfs_lvm_set_filter (guestfs_h *g,\n"
9626 "                         char *const *devices);\n"
9627 "\n"
9628 msgstr ""
9629
9630 # type: textblock
9631 #: ../src/guestfs-actions.pod:3501 ../fish/guestfish-actions.pod:2354
9632 msgid ""
9633 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9634 "block devices in the list C<devices>, and will ignore all other attached "
9635 "block devices."
9636 msgstr ""
9637
9638 # type: textblock
9639 #: ../src/guestfs-actions.pod:3505 ../fish/guestfish-actions.pod:2358
9640 msgid ""
9641 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9642 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9643 "there are two types of duplication possible: either cloned PVs/VGs which "
9644 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9645 "same name.  In normal operation you cannot create this situation, but you "
9646 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9647 "inside the LVM metadata."
9648 msgstr ""
9649
9650 # type: textblock
9651 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2371
9652 msgid "You can filter whole block devices or individual partitions."
9653 msgstr ""
9654
9655 # type: textblock
9656 #: ../src/guestfs-actions.pod:3520 ../fish/guestfish-actions.pod:2373
9657 msgid ""
9658 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9659 "filesystem), even if you are not filtering out that VG."
9660 msgstr ""
9661
9662 # type: =head2
9663 #: ../src/guestfs-actions.pod:3528
9664 msgid "guestfs_lvremove"
9665 msgstr ""
9666
9667 # type: verbatim
9668 #: ../src/guestfs-actions.pod:3530
9669 #, no-wrap
9670 msgid ""
9671 " int\n"
9672 " guestfs_lvremove (guestfs_h *g,\n"
9673 "                   const char *device);\n"
9674 "\n"
9675 msgstr ""
9676
9677 # type: textblock
9678 #: ../src/guestfs-actions.pod:3534 ../fish/guestfish-actions.pod:2381
9679 msgid ""
9680 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9681 "LV, such as C</dev/VG/LV>."
9682 msgstr ""
9683
9684 # type: textblock
9685 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2384
9686 msgid ""
9687 "You can also remove all LVs in a volume group by specifying the VG name, "
9688 "C</dev/VG>."
9689 msgstr ""
9690
9691 # type: textblock
9692 #: ../src/guestfs-actions.pod:3542 ../src/guestfs-actions.pod:4699 ../src/guestfs-actions.pod:6431
9693 msgid "(Added in 1.0.13)"
9694 msgstr ""
9695
9696 # type: =head2
9697 #: ../src/guestfs-actions.pod:3544
9698 msgid "guestfs_lvrename"
9699 msgstr ""
9700
9701 # type: verbatim
9702 #: ../src/guestfs-actions.pod:3546
9703 #, no-wrap
9704 msgid ""
9705 " int\n"
9706 " guestfs_lvrename (guestfs_h *g,\n"
9707 "                   const char *logvol,\n"
9708 "                   const char *newlogvol);\n"
9709 "\n"
9710 msgstr ""
9711
9712 # type: textblock
9713 #: ../src/guestfs-actions.pod:3551 ../fish/guestfish-actions.pod:2391
9714 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9715 msgstr ""
9716
9717 # type: textblock
9718 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:6444
9719 msgid "(Added in 1.0.83)"
9720 msgstr ""
9721
9722 # type: =head2
9723 #: ../src/guestfs-actions.pod:3557
9724 msgid "guestfs_lvresize"
9725 msgstr ""
9726
9727 # type: verbatim
9728 #: ../src/guestfs-actions.pod:3559
9729 #, no-wrap
9730 msgid ""
9731 " int\n"
9732 " guestfs_lvresize (guestfs_h *g,\n"
9733 "                   const char *device,\n"
9734 "                   int mbytes);\n"
9735 "\n"
9736 msgstr ""
9737
9738 # type: textblock
9739 #: ../src/guestfs-actions.pod:3564 ../fish/guestfish-actions.pod:2397
9740 msgid ""
9741 "This resizes (expands or shrinks) an existing LVM logical volume to "
9742 "C<mbytes>.  When reducing, data in the reduced part is lost."
9743 msgstr ""
9744
9745 # type: =head2
9746 #: ../src/guestfs-actions.pod:3572
9747 msgid "guestfs_lvresize_free"
9748 msgstr ""
9749
9750 # type: verbatim
9751 #: ../src/guestfs-actions.pod:3574
9752 #, no-wrap
9753 msgid ""
9754 " int\n"
9755 " guestfs_lvresize_free (guestfs_h *g,\n"
9756 "                        const char *lv,\n"
9757 "                        int percent);\n"
9758 "\n"
9759 msgstr ""
9760
9761 # type: textblock
9762 #: ../src/guestfs-actions.pod:3579 ../fish/guestfish-actions.pod:2405
9763 msgid ""
9764 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9765 "remaining free space in the volume group.  Commonly you would call this with "
9766 "pc = 100 which expands the logical volume as much as possible, using all "
9767 "remaining free space in the volume group."
9768 msgstr ""
9769
9770 # type: textblock
9771 #: ../src/guestfs-actions.pod:3587
9772 msgid "(Added in 1.3.3)"
9773 msgstr ""
9774
9775 # type: =head2
9776 #: ../src/guestfs-actions.pod:3589
9777 msgid "guestfs_lvs"
9778 msgstr ""
9779
9780 # type: verbatim
9781 #: ../src/guestfs-actions.pod:3591
9782 #, no-wrap
9783 msgid ""
9784 " char **\n"
9785 " guestfs_lvs (guestfs_h *g);\n"
9786 "\n"
9787 msgstr ""
9788
9789 # type: textblock
9790 #: ../src/guestfs-actions.pod:3594 ../fish/guestfish-actions.pod:2415
9791 msgid ""
9792 "List all the logical volumes detected.  This is the equivalent of the "
9793 "L<lvs(8)> command."
9794 msgstr ""
9795
9796 # type: textblock
9797 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2418
9798 msgid ""
9799 "This returns a list of the logical volume device names "
9800 "(eg. C</dev/VolGroup00/LogVol00>)."
9801 msgstr ""
9802
9803 # type: textblock
9804 #: ../src/guestfs-actions.pod:3600
9805 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9806 msgstr ""
9807
9808 # type: =head2
9809 #: ../src/guestfs-actions.pod:3608
9810 msgid "guestfs_lvs_full"
9811 msgstr ""
9812
9813 # type: verbatim
9814 #: ../src/guestfs-actions.pod:3610
9815 #, no-wrap
9816 msgid ""
9817 " struct guestfs_lvm_lv_list *\n"
9818 " guestfs_lvs_full (guestfs_h *g);\n"
9819 "\n"
9820 msgstr ""
9821
9822 # type: textblock
9823 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2427
9824 msgid ""
9825 "List all the logical volumes detected.  This is the equivalent of the "
9826 "L<lvs(8)> command.  The \"full\" version includes all fields."
9827 msgstr ""
9828
9829 # type: textblock
9830 #: ../src/guestfs-actions.pod:3616
9831 msgid ""
9832 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
9833 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
9834 "must call C<guestfs_free_lvm_lv_list> after use>."
9835 msgstr ""
9836
9837 # type: =head2
9838 #: ../src/guestfs-actions.pod:3623
9839 msgid "guestfs_lvuuid"
9840 msgstr ""
9841
9842 # type: verbatim
9843 #: ../src/guestfs-actions.pod:3625
9844 #, no-wrap
9845 msgid ""
9846 " char *\n"
9847 " guestfs_lvuuid (guestfs_h *g,\n"
9848 "                 const char *device);\n"
9849 "\n"
9850 msgstr ""
9851
9852 # type: textblock
9853 #: ../src/guestfs-actions.pod:3629 ../fish/guestfish-actions.pod:2434
9854 msgid "This command returns the UUID of the LVM LV C<device>."
9855 msgstr ""
9856
9857 # type: =head2
9858 #: ../src/guestfs-actions.pod:3636
9859 msgid "guestfs_lxattrlist"
9860 msgstr ""
9861
9862 # type: verbatim
9863 #: ../src/guestfs-actions.pod:3638
9864 #, no-wrap
9865 msgid ""
9866 " struct guestfs_xattr_list *\n"
9867 " guestfs_lxattrlist (guestfs_h *g,\n"
9868 "                     const char *path,\n"
9869 "                     char *const *names);\n"
9870 "\n"
9871 msgstr ""
9872
9873 # type: textblock
9874 #: ../src/guestfs-actions.pod:3643 ../fish/guestfish-actions.pod:2440
9875 msgid ""
9876 "This call allows you to get the extended attributes of multiple files, where "
9877 "all files are in the directory C<path>.  C<names> is the list of files from "
9878 "this directory."
9879 msgstr ""
9880
9881 # type: textblock
9882 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2444
9883 msgid ""
9884 "On return you get a flat list of xattr structs which must be interpreted "
9885 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9886 "C<attrval> in this struct is zero-length to indicate there was an error "
9887 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9888 "number (the number of following attributes for this file, which could be "
9889 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9890 "attributes for the first named file.  This repeats for the second and "
9891 "subsequent files."
9892 msgstr ""
9893
9894 # type: textblock
9895 #: ../src/guestfs-actions.pod:3657
9896 msgid ""
9897 "This call is intended for programs that want to efficiently list a directory "
9898 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9899 "a similarly efficient call for getting standard stats.  Very long directory "
9900 "listings might cause the protocol message size to be exceeded, causing this "
9901 "call to fail.  The caller must split up such requests into smaller groups of "
9902 "names."
9903 msgstr ""
9904
9905 # type: =head2
9906 #: ../src/guestfs-actions.pod:3672
9907 msgid "guestfs_mkdir"
9908 msgstr ""
9909
9910 # type: verbatim
9911 #: ../src/guestfs-actions.pod:3674
9912 #, no-wrap
9913 msgid ""
9914 " int\n"
9915 " guestfs_mkdir (guestfs_h *g,\n"
9916 "                const char *path);\n"
9917 "\n"
9918 msgstr ""
9919
9920 # type: textblock
9921 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2466
9922 msgid "Create a directory named C<path>."
9923 msgstr ""
9924
9925 # type: =head2
9926 #: ../src/guestfs-actions.pod:3684
9927 msgid "guestfs_mkdir_mode"
9928 msgstr ""
9929
9930 # type: verbatim
9931 #: ../src/guestfs-actions.pod:3686
9932 #, no-wrap
9933 msgid ""
9934 " int\n"
9935 " guestfs_mkdir_mode (guestfs_h *g,\n"
9936 "                     const char *path,\n"
9937 "                     int mode);\n"
9938 "\n"
9939 msgstr ""
9940
9941 # type: textblock
9942 #: ../src/guestfs-actions.pod:3691 ../fish/guestfish-actions.pod:2472
9943 msgid ""
9944 "This command creates a directory, setting the initial permissions of the "
9945 "directory to C<mode>."
9946 msgstr ""
9947
9948 # type: textblock
9949 #: ../src/guestfs-actions.pod:3694 ../fish/guestfish-actions.pod:2475
9950 msgid ""
9951 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9952 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9953 "other ways."
9954 msgstr ""
9955
9956 # type: textblock
9957 #: ../src/guestfs-actions.pod:3698
9958 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9959 msgstr ""
9960
9961 # type: =head2
9962 #: ../src/guestfs-actions.pod:3704
9963 msgid "guestfs_mkdir_p"
9964 msgstr ""
9965
9966 # type: verbatim
9967 #: ../src/guestfs-actions.pod:3706
9968 #, no-wrap
9969 msgid ""
9970 " int\n"
9971 " guestfs_mkdir_p (guestfs_h *g,\n"
9972 "                  const char *path);\n"
9973 "\n"
9974 msgstr ""
9975
9976 # type: textblock
9977 #: ../src/guestfs-actions.pod:3710 ../fish/guestfish-actions.pod:2485
9978 msgid ""
9979 "Create a directory named C<path>, creating any parent directories as "
9980 "necessary.  This is like the C<mkdir -p> shell command."
9981 msgstr ""
9982
9983 # type: =head2
9984 #: ../src/guestfs-actions.pod:3717
9985 msgid "guestfs_mkdtemp"
9986 msgstr ""
9987
9988 # type: verbatim
9989 #: ../src/guestfs-actions.pod:3719
9990 #, no-wrap
9991 msgid ""
9992 " char *\n"
9993 " guestfs_mkdtemp (guestfs_h *g,\n"
9994 "                  const char *template);\n"
9995 "\n"
9996 msgstr ""
9997
9998 # type: textblock
9999 #: ../src/guestfs-actions.pod:3723 ../fish/guestfish-actions.pod:2492
10000 msgid ""
10001 "This command creates a temporary directory.  The C<template> parameter "
10002 "should be a full pathname for the temporary directory name with the final "
10003 "six characters being \"XXXXXX\"."
10004 msgstr ""
10005
10006 # type: textblock
10007 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2497
10008 msgid ""
10009 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10010 "being suitable for Windows filesystems."
10011 msgstr ""
10012
10013 # type: textblock
10014 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2500
10015 msgid "The name of the temporary directory that was created is returned."
10016 msgstr ""
10017
10018 # type: textblock
10019 #: ../src/guestfs-actions.pod:3734 ../fish/guestfish-actions.pod:2503
10020 msgid "The temporary directory is created with mode 0700 and is owned by root."
10021 msgstr ""
10022
10023 # type: textblock
10024 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2506
10025 msgid ""
10026 "The caller is responsible for deleting the temporary directory and its "
10027 "contents after use."
10028 msgstr ""
10029
10030 # type: textblock
10031 #: ../src/guestfs-actions.pod:3740 ../fish/guestfish-actions.pod:2509
10032 msgid "See also: L<mkdtemp(3)>"
10033 msgstr ""
10034
10035 # type: =head2
10036 #: ../src/guestfs-actions.pod:3747
10037 msgid "guestfs_mke2fs_J"
10038 msgstr ""
10039
10040 # type: verbatim
10041 #: ../src/guestfs-actions.pod:3749
10042 #, no-wrap
10043 msgid ""
10044 " int\n"
10045 " guestfs_mke2fs_J (guestfs_h *g,\n"
10046 "                   const char *fstype,\n"
10047 "                   int blocksize,\n"
10048 "                   const char *device,\n"
10049 "                   const char *journal);\n"
10050 "\n"
10051 msgstr ""
10052
10053 # type: textblock
10054 #: ../src/guestfs-actions.pod:3756 ../fish/guestfish-actions.pod:2515
10055 msgid ""
10056 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10057 "C<journal>.  It is equivalent to the command:"
10058 msgstr ""
10059
10060 # type: verbatim
10061 #: ../src/guestfs-actions.pod:3760 ../fish/guestfish-actions.pod:2519
10062 #, no-wrap
10063 msgid ""
10064 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10065 "\n"
10066 msgstr ""
10067
10068 # type: textblock
10069 #: ../src/guestfs-actions.pod:3762
10070 msgid "See also C<guestfs_mke2journal>."
10071 msgstr ""
10072
10073 # type: textblock
10074 #: ../src/guestfs-actions.pod:3766 ../src/guestfs-actions.pod:3784 ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4088
10075 msgid "(Added in 1.0.68)"
10076 msgstr ""
10077
10078 # type: =head2
10079 #: ../src/guestfs-actions.pod:3768
10080 msgid "guestfs_mke2fs_JL"
10081 msgstr ""
10082
10083 # type: verbatim
10084 #: ../src/guestfs-actions.pod:3770
10085 #, no-wrap
10086 msgid ""
10087 " int\n"
10088 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10089 "                    const char *fstype,\n"
10090 "                    int blocksize,\n"
10091 "                    const char *device,\n"
10092 "                    const char *label);\n"
10093 "\n"
10094 msgstr ""
10095
10096 # type: textblock
10097 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2527
10098 msgid ""
10099 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10100 "the journal labeled C<label>."
10101 msgstr ""
10102
10103 # type: textblock
10104 #: ../src/guestfs-actions.pod:3780
10105 msgid "See also C<guestfs_mke2journal_L>."
10106 msgstr ""
10107
10108 # type: =head2
10109 #: ../src/guestfs-actions.pod:3786
10110 msgid "guestfs_mke2fs_JU"
10111 msgstr ""
10112
10113 # type: verbatim
10114 #: ../src/guestfs-actions.pod:3788
10115 #, no-wrap
10116 msgid ""
10117 " int\n"
10118 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10119 "                    const char *fstype,\n"
10120 "                    int blocksize,\n"
10121 "                    const char *device,\n"
10122 "                    const char *uuid);\n"
10123 "\n"
10124 msgstr ""
10125
10126 # type: textblock
10127 #: ../src/guestfs-actions.pod:3795 ../fish/guestfish-actions.pod:2536
10128 msgid ""
10129 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10130 "the journal with UUID C<uuid>."
10131 msgstr ""
10132
10133 # type: textblock
10134 #: ../src/guestfs-actions.pod:3798
10135 msgid "See also C<guestfs_mke2journal_U>."
10136 msgstr ""
10137
10138 # type: =head2
10139 #: ../src/guestfs-actions.pod:3804
10140 msgid "guestfs_mke2journal"
10141 msgstr ""
10142
10143 # type: verbatim
10144 #: ../src/guestfs-actions.pod:3806
10145 #, no-wrap
10146 msgid ""
10147 " int\n"
10148 " guestfs_mke2journal (guestfs_h *g,\n"
10149 "                      int blocksize,\n"
10150 "                      const char *device);\n"
10151 "\n"
10152 msgstr ""
10153
10154 # type: textblock
10155 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2545
10156 msgid ""
10157 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10158 "command:"
10159 msgstr ""
10160
10161 # type: verbatim
10162 #: ../src/guestfs-actions.pod:3814 ../fish/guestfish-actions.pod:2548
10163 #, no-wrap
10164 msgid ""
10165 " mke2fs -O journal_dev -b blocksize device\n"
10166 "\n"
10167 msgstr ""
10168
10169 # type: =head2
10170 #: ../src/guestfs-actions.pod:3820
10171 msgid "guestfs_mke2journal_L"
10172 msgstr ""
10173
10174 # type: verbatim
10175 #: ../src/guestfs-actions.pod:3822
10176 #, no-wrap
10177 msgid ""
10178 " int\n"
10179 " guestfs_mke2journal_L (guestfs_h *g,\n"
10180 "                        int blocksize,\n"
10181 "                        const char *label,\n"
10182 "                        const char *device);\n"
10183 "\n"
10184 msgstr ""
10185
10186 # type: textblock
10187 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2554
10188 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10189 msgstr ""
10190
10191 # type: =head2
10192 #: ../src/guestfs-actions.pod:3834
10193 msgid "guestfs_mke2journal_U"
10194 msgstr ""
10195
10196 # type: verbatim
10197 #: ../src/guestfs-actions.pod:3836
10198 #, no-wrap
10199 msgid ""
10200 " int\n"
10201 " guestfs_mke2journal_U (guestfs_h *g,\n"
10202 "                        int blocksize,\n"
10203 "                        const char *uuid,\n"
10204 "                        const char *device);\n"
10205 "\n"
10206 msgstr ""
10207
10208 # type: textblock
10209 #: ../src/guestfs-actions.pod:3842 ../fish/guestfish-actions.pod:2560
10210 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10211 msgstr ""
10212
10213 # type: =head2
10214 #: ../src/guestfs-actions.pod:3848
10215 msgid "guestfs_mkfifo"
10216 msgstr ""
10217
10218 # type: verbatim
10219 #: ../src/guestfs-actions.pod:3850
10220 #, no-wrap
10221 msgid ""
10222 " int\n"
10223 " guestfs_mkfifo (guestfs_h *g,\n"
10224 "                 int mode,\n"
10225 "                 const char *path);\n"
10226 "\n"
10227 msgstr ""
10228
10229 # type: textblock
10230 #: ../src/guestfs-actions.pod:3855
10231 msgid ""
10232 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10233 "is just a convenient wrapper around C<guestfs_mknod>."
10234 msgstr ""
10235
10236 # type: =head2
10237 #: ../src/guestfs-actions.pod:3865
10238 msgid "guestfs_mkfs"
10239 msgstr ""
10240
10241 # type: verbatim
10242 #: ../src/guestfs-actions.pod:3867
10243 #, no-wrap
10244 msgid ""
10245 " int\n"
10246 " guestfs_mkfs (guestfs_h *g,\n"
10247 "               const char *fstype,\n"
10248 "               const char *device);\n"
10249 "\n"
10250 msgstr ""
10251
10252 # type: textblock
10253 #: ../src/guestfs-actions.pod:3872 ../fish/guestfish-actions.pod:2576
10254 msgid ""
10255 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10256 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10257 msgstr ""
10258
10259 # type: =head2
10260 #: ../src/guestfs-actions.pod:3880
10261 msgid "guestfs_mkfs_b"
10262 msgstr ""
10263
10264 # type: verbatim
10265 #: ../src/guestfs-actions.pod:3882
10266 #, no-wrap
10267 msgid ""
10268 " int\n"
10269 " guestfs_mkfs_b (guestfs_h *g,\n"
10270 "                 const char *fstype,\n"
10271 "                 int blocksize,\n"
10272 "                 const char *device);\n"
10273 "\n"
10274 msgstr ""
10275
10276 # type: textblock
10277 #: ../src/guestfs-actions.pod:3888
10278 msgid ""
10279 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10280 "block size of the resulting filesystem.  Supported block sizes depend on the "
10281 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10282 msgstr ""
10283
10284 # type: textblock
10285 #: ../src/guestfs-actions.pod:3893 ../fish/guestfish-actions.pod:2589
10286 msgid ""
10287 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10288 "cluster size."
10289 msgstr ""
10290
10291 # type: =head2
10292 #: ../src/guestfs-actions.pod:3900
10293 msgid "guestfs_mkmountpoint"
10294 msgstr ""
10295
10296 # type: verbatim
10297 #: ../src/guestfs-actions.pod:3902
10298 #, no-wrap
10299 msgid ""
10300 " int\n"
10301 " guestfs_mkmountpoint (guestfs_h *g,\n"
10302 "                       const char *exemptpath);\n"
10303 "\n"
10304 msgstr ""
10305
10306 # type: textblock
10307 #: ../src/guestfs-actions.pod:3906
10308 msgid ""
10309 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10310 "that can be used to create extra mountpoints before mounting the first "
10311 "filesystem."
10312 msgstr ""
10313
10314 # type: textblock
10315 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2600
10316 msgid ""
10317 "These calls are I<only> necessary in some very limited circumstances, mainly "
10318 "the case where you want to mount a mix of unrelated and/or read-only "
10319 "filesystems together."
10320 msgstr ""
10321
10322 # type: textblock
10323 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2604
10324 msgid ""
10325 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10326 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10327 "inside that.  You can unpack this as follows in guestfish:"
10328 msgstr ""
10329
10330 # type: verbatim
10331 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2609
10332 #, no-wrap
10333 msgid ""
10334 " add-ro Fedora-11-i686-Live.iso\n"
10335 " run\n"
10336 " mkmountpoint /cd\n"
10337 " mkmountpoint /sqsh\n"
10338 " mkmountpoint /ext3fs\n"
10339 " mount /dev/sda /cd\n"
10340 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10341 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10342 "\n"
10343 msgstr ""
10344
10345 # type: textblock
10346 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2618
10347 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10348 msgstr ""
10349
10350 # type: textblock
10351 #: ../src/guestfs-actions.pod:3930
10352 msgid ""
10353 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10354 "may get unexpected errors if you try to mix these calls.  It is safest to "
10355 "manually unmount filesystems and remove mountpoints after use."
10356 msgstr ""
10357
10358 # type: textblock
10359 #: ../src/guestfs-actions.pod:3934
10360 msgid ""
10361 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10362 "first, so for this to work for manual mountpoints, you must ensure that the "
10363 "innermost mountpoints have the longest pathnames, as in the example code "
10364 "above."
10365 msgstr ""
10366
10367 # type: textblock
10368 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2629
10369 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10370 msgstr ""
10371
10372 # type: textblock
10373 #: ../src/guestfs-actions.pod:3941
10374 msgid ""
10375 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10376 "means that C<guestfs_umount_all> is called when the handle is closed which "
10377 "can also trigger these issues."
10378 msgstr ""
10379
10380 # type: textblock
10381 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:5102
10382 msgid "(Added in 1.0.62)"
10383 msgstr ""
10384
10385 # type: =head2
10386 #: ../src/guestfs-actions.pod:3949
10387 msgid "guestfs_mknod"
10388 msgstr ""
10389
10390 # type: verbatim
10391 #: ../src/guestfs-actions.pod:3951
10392 #, no-wrap
10393 msgid ""
10394 " int\n"
10395 " guestfs_mknod (guestfs_h *g,\n"
10396 "                int mode,\n"
10397 "                int devmajor,\n"
10398 "                int devminor,\n"
10399 "                const char *path);\n"
10400 "\n"
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3958 ../fish/guestfish-actions.pod:2639
10405 msgid ""
10406 "This call creates block or character special devices, or named pipes "
10407 "(FIFOs)."
10408 msgstr ""
10409
10410 # type: textblock
10411 #: ../src/guestfs-actions.pod:3961 ../fish/guestfish-actions.pod:2642
10412 msgid ""
10413 "The C<mode> parameter should be the mode, using the standard constants.  "
10414 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10415 "used when creating block and character special devices."
10416 msgstr ""
10417
10418 # type: textblock
10419 #: ../src/guestfs-actions.pod:3966
10420 msgid ""
10421 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10422 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10423 "regular file).  These constants are available in the standard Linux header "
10424 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10425 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10426 "the appropriate constant for you."
10427 msgstr ""
10428
10429 # type: =head2
10430 #: ../src/guestfs-actions.pod:3980
10431 msgid "guestfs_mknod_b"
10432 msgstr ""
10433
10434 # type: verbatim
10435 #: ../src/guestfs-actions.pod:3982
10436 #, no-wrap
10437 msgid ""
10438 " int\n"
10439 " guestfs_mknod_b (guestfs_h *g,\n"
10440 "                  int mode,\n"
10441 "                  int devmajor,\n"
10442 "                  int devminor,\n"
10443 "                  const char *path);\n"
10444 "\n"
10445 msgstr ""
10446
10447 # type: textblock
10448 #: ../src/guestfs-actions.pod:3989
10449 msgid ""
10450 "This call creates a block device node called C<path> with mode C<mode> and "
10451 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10452 "wrapper around C<guestfs_mknod>."
10453 msgstr ""
10454
10455 # type: =head2
10456 #: ../src/guestfs-actions.pod:3999
10457 msgid "guestfs_mknod_c"
10458 msgstr ""
10459
10460 # type: verbatim
10461 #: ../src/guestfs-actions.pod:4001
10462 #, no-wrap
10463 msgid ""
10464 " int\n"
10465 " guestfs_mknod_c (guestfs_h *g,\n"
10466 "                  int mode,\n"
10467 "                  int devmajor,\n"
10468 "                  int devminor,\n"
10469 "                  const char *path);\n"
10470 "\n"
10471 msgstr ""
10472
10473 # type: textblock
10474 #: ../src/guestfs-actions.pod:4008
10475 msgid ""
10476 "This call creates a char device node called C<path> with mode C<mode> and "
10477 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10478 "wrapper around C<guestfs_mknod>."
10479 msgstr ""
10480
10481 # type: =head2
10482 #: ../src/guestfs-actions.pod:4018
10483 msgid "guestfs_mkswap"
10484 msgstr ""
10485
10486 # type: verbatim
10487 #: ../src/guestfs-actions.pod:4020
10488 #, no-wrap
10489 msgid ""
10490 " int\n"
10491 " guestfs_mkswap (guestfs_h *g,\n"
10492 "                 const char *device);\n"
10493 "\n"
10494 msgstr ""
10495
10496 # type: textblock
10497 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2681
10498 msgid "Create a swap partition on C<device>."
10499 msgstr ""
10500
10501 # type: =head2
10502 #: ../src/guestfs-actions.pod:4030
10503 msgid "guestfs_mkswap_L"
10504 msgstr ""
10505
10506 # type: verbatim
10507 #: ../src/guestfs-actions.pod:4032
10508 #, no-wrap
10509 msgid ""
10510 " int\n"
10511 " guestfs_mkswap_L (guestfs_h *g,\n"
10512 "                   const char *label,\n"
10513 "                   const char *device);\n"
10514 "\n"
10515 msgstr ""
10516
10517 # type: textblock
10518 #: ../src/guestfs-actions.pod:4037 ../fish/guestfish-actions.pod:2687
10519 msgid "Create a swap partition on C<device> with label C<label>."
10520 msgstr ""
10521
10522 # type: textblock
10523 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:2689
10524 msgid ""
10525 "Note that you cannot attach a swap label to a block device "
10526 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10527 "the kernel or swap tools."
10528 msgstr ""
10529
10530 # type: =head2
10531 #: ../src/guestfs-actions.pod:4047
10532 msgid "guestfs_mkswap_U"
10533 msgstr ""
10534
10535 # type: verbatim
10536 #: ../src/guestfs-actions.pod:4049
10537 #, no-wrap
10538 msgid ""
10539 " int\n"
10540 " guestfs_mkswap_U (guestfs_h *g,\n"
10541 "                   const char *uuid,\n"
10542 "                   const char *device);\n"
10543 "\n"
10544 msgstr ""
10545
10546 # type: textblock
10547 #: ../src/guestfs-actions.pod:4054 ../fish/guestfish-actions.pod:2697
10548 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10549 msgstr ""
10550
10551 # type: =head2
10552 #: ../src/guestfs-actions.pod:4060
10553 msgid "guestfs_mkswap_file"
10554 msgstr ""
10555
10556 # type: verbatim
10557 #: ../src/guestfs-actions.pod:4062
10558 #, no-wrap
10559 msgid ""
10560 " int\n"
10561 " guestfs_mkswap_file (guestfs_h *g,\n"
10562 "                      const char *path);\n"
10563 "\n"
10564 msgstr ""
10565
10566 # type: textblock
10567 #: ../src/guestfs-actions.pod:4066 ../fish/guestfish-actions.pod:2703
10568 msgid "Create a swap file."
10569 msgstr ""
10570
10571 # type: textblock
10572 #: ../src/guestfs-actions.pod:4068
10573 msgid ""
10574 "This command just writes a swap file signature to an existing file.  To "
10575 "create the file itself, use something like C<guestfs_fallocate>."
10576 msgstr ""
10577
10578 # type: =head2
10579 #: ../src/guestfs-actions.pod:4075
10580 msgid "guestfs_modprobe"
10581 msgstr ""
10582
10583 # type: verbatim
10584 #: ../src/guestfs-actions.pod:4077
10585 #, no-wrap
10586 msgid ""
10587 " int\n"
10588 " guestfs_modprobe (guestfs_h *g,\n"
10589 "                   const char *modulename);\n"
10590 "\n"
10591 msgstr ""
10592
10593 # type: textblock
10594 #: ../src/guestfs-actions.pod:4081 ../fish/guestfish-actions.pod:2712
10595 msgid "This loads a kernel module in the appliance."
10596 msgstr ""
10597
10598 # type: textblock
10599 #: ../src/guestfs-actions.pod:4083 ../fish/guestfish-actions.pod:2714
10600 msgid ""
10601 "The kernel module must have been whitelisted when libguestfs was built (see "
10602 "C<appliance/kmod.whitelist.in> in the source)."
10603 msgstr ""
10604
10605 # type: =head2
10606 #: ../src/guestfs-actions.pod:4090
10607 msgid "guestfs_mount"
10608 msgstr ""
10609
10610 # type: verbatim
10611 #: ../src/guestfs-actions.pod:4092
10612 #, no-wrap
10613 msgid ""
10614 " int\n"
10615 " guestfs_mount (guestfs_h *g,\n"
10616 "                const char *device,\n"
10617 "                const char *mountpoint);\n"
10618 "\n"
10619 msgstr ""
10620
10621 # type: textblock
10622 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:2721
10623 msgid ""
10624 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10625 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10626 "those block devices contain partitions, they will have the usual names "
10627 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10628 msgstr ""
10629
10630 # type: textblock
10631 #: ../src/guestfs-actions.pod:4103 ../fish/guestfish-actions.pod:2727
10632 msgid ""
10633 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10634 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10635 "mounted on directories which already exist."
10636 msgstr ""
10637
10638 # type: textblock
10639 #: ../src/guestfs-actions.pod:4108 ../fish/guestfish-actions.pod:2732
10640 msgid ""
10641 "The mounted filesystem is writable, if we have sufficient permissions on the "
10642 "underlying device."
10643 msgstr ""
10644
10645 # type: textblock
10646 #: ../src/guestfs-actions.pod:4111
10647 msgid ""
10648 "B<Important note:> When you use this call, the filesystem options C<sync> "
10649 "and C<noatime> are set implicitly.  This was originally done because we "
10650 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10651 "very large negative performance impact and negligible effect on "
10652 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10653 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10654 "(use an empty string for the first parameter if you don't want any options)."
10655 msgstr ""
10656
10657 # type: =head2
10658 #: ../src/guestfs-actions.pod:4125
10659 msgid "guestfs_mount_loop"
10660 msgstr ""
10661
10662 # type: verbatim
10663 #: ../src/guestfs-actions.pod:4127
10664 #, no-wrap
10665 msgid ""
10666 " int\n"
10667 " guestfs_mount_loop (guestfs_h *g,\n"
10668 "                     const char *file,\n"
10669 "                     const char *mountpoint);\n"
10670 "\n"
10671 msgstr ""
10672
10673 # type: textblock
10674 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:2749
10675 msgid ""
10676 "This command lets you mount C<file> (a filesystem image in a file) on a "
10677 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10678 "mountpoint>."
10679 msgstr ""
10680
10681 # type: =head2
10682 #: ../src/guestfs-actions.pod:4140
10683 msgid "guestfs_mount_options"
10684 msgstr ""
10685
10686 # type: verbatim
10687 #: ../src/guestfs-actions.pod:4142
10688 #, no-wrap
10689 msgid ""
10690 " int\n"
10691 " guestfs_mount_options (guestfs_h *g,\n"
10692 "                        const char *options,\n"
10693 "                        const char *device,\n"
10694 "                        const char *mountpoint);\n"
10695 "\n"
10696 msgstr ""
10697
10698 # type: textblock
10699 #: ../src/guestfs-actions.pod:4148
10700 msgid ""
10701 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10702 "the mount options as for the L<mount(8)> I<-o> flag."
10703 msgstr ""
10704
10705 # type: textblock
10706 #: ../src/guestfs-actions.pod:4152 ../fish/guestfish-actions.pod:2761
10707 msgid ""
10708 "If the C<options> parameter is an empty string, then no options are passed "
10709 "(all options default to whatever the filesystem uses)."
10710 msgstr ""
10711
10712 # type: textblock
10713 #: ../src/guestfs-actions.pod:4158 ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4189
10714 msgid "(Added in 1.0.10)"
10715 msgstr ""
10716
10717 # type: =head2
10718 #: ../src/guestfs-actions.pod:4160
10719 msgid "guestfs_mount_ro"
10720 msgstr ""
10721
10722 # type: verbatim
10723 #: ../src/guestfs-actions.pod:4162
10724 #, no-wrap
10725 msgid ""
10726 " int\n"
10727 " guestfs_mount_ro (guestfs_h *g,\n"
10728 "                   const char *device,\n"
10729 "                   const char *mountpoint);\n"
10730 "\n"
10731 msgstr ""
10732
10733 # type: textblock
10734 #: ../src/guestfs-actions.pod:4167
10735 msgid ""
10736 "This is the same as the C<guestfs_mount> command, but it mounts the "
10737 "filesystem with the read-only (I<-o ro>) flag."
10738 msgstr ""
10739
10740 # type: =head2
10741 #: ../src/guestfs-actions.pod:4174
10742 msgid "guestfs_mount_vfs"
10743 msgstr ""
10744
10745 # type: verbatim
10746 #: ../src/guestfs-actions.pod:4176
10747 #, no-wrap
10748 msgid ""
10749 " int\n"
10750 " guestfs_mount_vfs (guestfs_h *g,\n"
10751 "                    const char *options,\n"
10752 "                    const char *vfstype,\n"
10753 "                    const char *device,\n"
10754 "                    const char *mountpoint);\n"
10755 "\n"
10756 msgstr ""
10757
10758 # type: textblock
10759 #: ../src/guestfs-actions.pod:4183
10760 msgid ""
10761 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10762 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
10763 "I<-t> flags."
10764 msgstr ""
10765
10766 # type: =head2
10767 #: ../src/guestfs-actions.pod:4191
10768 msgid "guestfs_mountpoints"
10769 msgstr ""
10770
10771 # type: verbatim
10772 #: ../src/guestfs-actions.pod:4193
10773 #, no-wrap
10774 msgid ""
10775 " char **\n"
10776 " guestfs_mountpoints (guestfs_h *g);\n"
10777 "\n"
10778 msgstr ""
10779
10780 # type: textblock
10781 #: ../src/guestfs-actions.pod:4196
10782 msgid ""
10783 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10784 "devices.  This one returns a hash table (map) of device name to directory "
10785 "where the device is mounted."
10786 msgstr ""
10787
10788 # type: =head2
10789 #: ../src/guestfs-actions.pod:4208
10790 msgid "guestfs_mounts"
10791 msgstr ""
10792
10793 # type: verbatim
10794 #: ../src/guestfs-actions.pod:4210
10795 #, no-wrap
10796 msgid ""
10797 " char **\n"
10798 " guestfs_mounts (guestfs_h *g);\n"
10799 "\n"
10800 msgstr ""
10801
10802 # type: textblock
10803 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2792
10804 msgid ""
10805 "This returns the list of currently mounted filesystems.  It returns the list "
10806 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10807 msgstr ""
10808
10809 # type: textblock
10810 #: ../src/guestfs-actions.pod:4216 ../fish/guestfish-actions.pod:2795
10811 msgid "Some internal mounts are not shown."
10812 msgstr ""
10813
10814 # type: textblock
10815 #: ../src/guestfs-actions.pod:4218
10816 msgid "See also: C<guestfs_mountpoints>"
10817 msgstr ""
10818
10819 # type: =head2
10820 #: ../src/guestfs-actions.pod:4226
10821 msgid "guestfs_mv"
10822 msgstr ""
10823
10824 # type: verbatim
10825 #: ../src/guestfs-actions.pod:4228
10826 #, no-wrap
10827 msgid ""
10828 " int\n"
10829 " guestfs_mv (guestfs_h *g,\n"
10830 "             const char *src,\n"
10831 "             const char *dest);\n"
10832 "\n"
10833 msgstr ""
10834
10835 # type: textblock
10836 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2803
10837 msgid ""
10838 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10839 "destination filename or destination directory."
10840 msgstr ""
10841
10842 # type: =head2
10843 #: ../src/guestfs-actions.pod:4240
10844 msgid "guestfs_ntfs_3g_probe"
10845 msgstr ""
10846
10847 # type: verbatim
10848 #: ../src/guestfs-actions.pod:4242
10849 #, no-wrap
10850 msgid ""
10851 " int\n"
10852 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10853 "                        int rw,\n"
10854 "                        const char *device);\n"
10855 "\n"
10856 msgstr ""
10857
10858 # type: textblock
10859 #: ../src/guestfs-actions.pod:4247 ../fish/guestfish-actions.pod:2810
10860 msgid ""
10861 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10862 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10863 "read-write, and some cannot be mounted at all)."
10864 msgstr ""
10865
10866 # type: textblock
10867 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:2814
10868 msgid ""
10869 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10870 "can be mounted read-write.  Set it to false if you want to test if the "
10871 "volume can be mounted read-only."
10872 msgstr ""
10873
10874 # type: textblock
10875 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2818
10876 msgid ""
10877 "The return value is an integer which C<0> if the operation would succeed, or "
10878 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10879 msgstr ""
10880
10881 # type: textblock
10882 #: ../src/guestfs-actions.pod:4261
10883 msgid "(Added in 1.0.43)"
10884 msgstr ""
10885
10886 # type: =head2
10887 #: ../src/guestfs-actions.pod:4263
10888 msgid "guestfs_ntfsresize"
10889 msgstr ""
10890
10891 # type: verbatim
10892 #: ../src/guestfs-actions.pod:4265
10893 #, no-wrap
10894 msgid ""
10895 " int\n"
10896 " guestfs_ntfsresize (guestfs_h *g,\n"
10897 "                     const char *device);\n"
10898 "\n"
10899 msgstr ""
10900
10901 # type: textblock
10902 #: ../src/guestfs-actions.pod:4269 ../fish/guestfish-actions.pod:2826
10903 msgid ""
10904 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10905 "size of the underlying device.  See also L<ntfsresize(8)>."
10906 msgstr ""
10907
10908 # type: =head2
10909 #: ../src/guestfs-actions.pod:4277
10910 msgid "guestfs_ntfsresize_size"
10911 msgstr ""
10912
10913 # type: verbatim
10914 #: ../src/guestfs-actions.pod:4279
10915 #, no-wrap
10916 msgid ""
10917 " int\n"
10918 " guestfs_ntfsresize_size (guestfs_h *g,\n"
10919 "                          const char *device,\n"
10920 "                          int64_t size);\n"
10921 "\n"
10922 msgstr ""
10923
10924 # type: textblock
10925 #: ../src/guestfs-actions.pod:4284
10926 msgid ""
10927 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10928 "to specify the new size (in bytes) explicitly."
10929 msgstr ""
10930
10931 # type: textblock
10932 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4726 ../src/guestfs-actions.pod:4800 ../src/guestfs-actions.pod:5050
10933 msgid "(Added in 1.3.14)"
10934 msgstr ""
10935
10936 # type: =head2
10937 #: ../src/guestfs-actions.pod:4291
10938 msgid "guestfs_part_add"
10939 msgstr ""
10940
10941 # type: verbatim
10942 #: ../src/guestfs-actions.pod:4293
10943 #, no-wrap
10944 msgid ""
10945 " int\n"
10946 " guestfs_part_add (guestfs_h *g,\n"
10947 "                   const char *device,\n"
10948 "                   const char *prlogex,\n"
10949 "                   int64_t startsect,\n"
10950 "                   int64_t endsect);\n"
10951 "\n"
10952 msgstr ""
10953
10954 # type: textblock
10955 #: ../src/guestfs-actions.pod:4300
10956 msgid ""
10957 "This command adds a partition to C<device>.  If there is no partition table "
10958 "on the device, call C<guestfs_part_init> first."
10959 msgstr ""
10960
10961 # type: textblock
10962 #: ../src/guestfs-actions.pod:4303 ../fish/guestfish-actions.pod:2844
10963 msgid ""
10964 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10965 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10966 "C<logical>) and C<e> (or C<extended>) partition types."
10967 msgstr ""
10968
10969 # type: textblock
10970 #: ../src/guestfs-actions.pod:4308 ../fish/guestfish-actions.pod:2849
10971 msgid ""
10972 "C<startsect> and C<endsect> are the start and end of the partition in "
10973 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10974 "from the end of the disk (C<-1> is the last sector)."
10975 msgstr ""
10976
10977 # type: textblock
10978 #: ../src/guestfs-actions.pod:4312
10979 msgid ""
10980 "Creating a partition which covers the whole disk is not so easy.  Use "
10981 "C<guestfs_part_disk> to do that."
10982 msgstr ""
10983
10984 # type: textblock
10985 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4408 ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4525 ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4584
10986 msgid "(Added in 1.0.78)"
10987 msgstr ""
10988
10989 # type: =head2
10990 #: ../src/guestfs-actions.pod:4319
10991 msgid "guestfs_part_del"
10992 msgstr ""
10993
10994 # type: verbatim
10995 #: ../src/guestfs-actions.pod:4321
10996 #, no-wrap
10997 msgid ""
10998 " int\n"
10999 " guestfs_part_del (guestfs_h *g,\n"
11000 "                   const char *device,\n"
11001 "                   int partnum);\n"
11002 "\n"
11003 msgstr ""
11004
11005 # type: textblock
11006 #: ../src/guestfs-actions.pod:4326 ../fish/guestfish-actions.pod:2860
11007 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11008 msgstr ""
11009
11010 # type: textblock
11011 #: ../src/guestfs-actions.pod:4328 ../fish/guestfish-actions.pod:2862
11012 msgid ""
11013 "Note that in the case of MBR partitioning, deleting an extended partition "
11014 "also deletes any logical partitions it contains."
11015 msgstr ""
11016
11017 # type: =head2
11018 #: ../src/guestfs-actions.pod:4336
11019 msgid "guestfs_part_disk"
11020 msgstr ""
11021
11022 # type: verbatim
11023 #: ../src/guestfs-actions.pod:4338
11024 #, no-wrap
11025 msgid ""
11026 " int\n"
11027 " guestfs_part_disk (guestfs_h *g,\n"
11028 "                    const char *device,\n"
11029 "                    const char *parttype);\n"
11030 "\n"
11031 msgstr ""
11032
11033 # type: textblock
11034 #: ../src/guestfs-actions.pod:4343
11035 msgid ""
11036 "This command is simply a combination of C<guestfs_part_init> followed by "
11037 "C<guestfs_part_add> to create a single primary partition covering the whole "
11038 "disk."
11039 msgstr ""
11040
11041 # type: textblock
11042 #: ../src/guestfs-actions.pod:4347
11043 msgid ""
11044 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11045 "possible values are described in C<guestfs_part_init>."
11046 msgstr ""
11047
11048 # type: =head2
11049 #: ../src/guestfs-actions.pod:4357
11050 msgid "guestfs_part_get_bootable"
11051 msgstr ""
11052
11053 # type: verbatim
11054 #: ../src/guestfs-actions.pod:4359
11055 #, no-wrap
11056 msgid ""
11057 " int\n"
11058 " guestfs_part_get_bootable (guestfs_h *g,\n"
11059 "                            const char *device,\n"
11060 "                            int partnum);\n"
11061 "\n"
11062 msgstr ""
11063
11064 # type: textblock
11065 #: ../src/guestfs-actions.pod:4364 ../fish/guestfish-actions.pod:2884
11066 msgid ""
11067 "This command returns true if the partition C<partnum> on C<device> has the "
11068 "bootable flag set."
11069 msgstr ""
11070
11071 # type: textblock
11072 #: ../src/guestfs-actions.pod:4367
11073 msgid "See also C<guestfs_part_set_bootable>."
11074 msgstr ""
11075
11076 # type: =head2
11077 #: ../src/guestfs-actions.pod:4373
11078 msgid "guestfs_part_get_mbr_id"
11079 msgstr ""
11080
11081 # type: verbatim
11082 #: ../src/guestfs-actions.pod:4375
11083 #, no-wrap
11084 msgid ""
11085 " int\n"
11086 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11087 "                          const char *device,\n"
11088 "                          int partnum);\n"
11089 "\n"
11090 msgstr ""
11091
11092 # type: textblock
11093 #: ../src/guestfs-actions.pod:4380 ../fish/guestfish-actions.pod:2893
11094 msgid ""
11095 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11096 "partition C<partnum>."
11097 msgstr ""
11098
11099 # type: textblock
11100 #: ../src/guestfs-actions.pod:4383 ../src/guestfs-actions.pod:4560
11101 msgid ""
11102 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11103 "undefined results for other partition table types (see "
11104 "C<guestfs_part_get_parttype>)."
11105 msgstr ""
11106
11107 # type: =head2
11108 #: ../src/guestfs-actions.pod:4391
11109 msgid "guestfs_part_get_parttype"
11110 msgstr ""
11111
11112 # type: verbatim
11113 #: ../src/guestfs-actions.pod:4393
11114 #, no-wrap
11115 msgid ""
11116 " char *\n"
11117 " guestfs_part_get_parttype (guestfs_h *g,\n"
11118 "                            const char *device);\n"
11119 "\n"
11120 msgstr ""
11121
11122 # type: textblock
11123 #: ../src/guestfs-actions.pod:4397 ../fish/guestfish-actions.pod:2904
11124 msgid ""
11125 "This command examines the partition table on C<device> and returns the "
11126 "partition table type (format) being used."
11127 msgstr ""
11128
11129 # type: textblock
11130 #: ../src/guestfs-actions.pod:4400
11131 msgid ""
11132 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11133 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11134 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11135 msgstr ""
11136
11137 # type: =head2
11138 #: ../src/guestfs-actions.pod:4410
11139 msgid "guestfs_part_init"
11140 msgstr ""
11141
11142 # type: verbatim
11143 #: ../src/guestfs-actions.pod:4412
11144 #, no-wrap
11145 msgid ""
11146 " int\n"
11147 " guestfs_part_init (guestfs_h *g,\n"
11148 "                    const char *device,\n"
11149 "                    const char *parttype);\n"
11150 "\n"
11151 msgstr ""
11152
11153 # type: textblock
11154 #: ../src/guestfs-actions.pod:4417 ../fish/guestfish-actions.pod:2916
11155 msgid ""
11156 "This creates an empty partition table on C<device> of one of the partition "
11157 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11158 "(for large disks)."
11159 msgstr ""
11160
11161 # type: textblock
11162 #: ../src/guestfs-actions.pod:4421
11163 msgid ""
11164 "Initially there are no partitions.  Following this, you should call "
11165 "C<guestfs_part_add> for each partition required."
11166 msgstr ""
11167
11168 # type: textblock
11169 #: ../src/guestfs-actions.pod:4424 ../fish/guestfish-actions.pod:2923
11170 msgid "Possible values for C<parttype> are:"
11171 msgstr ""
11172
11173 # type: =item
11174 #: ../src/guestfs-actions.pod:4428 ../fish/guestfish-actions.pod:2927
11175 msgid "B<efi> | B<gpt>"
11176 msgstr ""
11177
11178 # type: textblock
11179 #: ../src/guestfs-actions.pod:4430 ../fish/guestfish-actions.pod:2929
11180 msgid "Intel EFI / GPT partition table."
11181 msgstr ""
11182
11183 # type: textblock
11184 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2931
11185 msgid ""
11186 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11187 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11188 "the C<mbr> format."
11189 msgstr ""
11190
11191 # type: =item
11192 #: ../src/guestfs-actions.pod:4436 ../fish/guestfish-actions.pod:2935
11193 msgid "B<mbr> | B<msdos>"
11194 msgstr ""
11195
11196 # type: textblock
11197 #: ../src/guestfs-actions.pod:4438 ../fish/guestfish-actions.pod:2937
11198 msgid ""
11199 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11200 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11201 "TB.  For large disks we recommend using C<gpt>."
11202 msgstr ""
11203
11204 # type: textblock
11205 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:2944
11206 msgid "Other partition table types that may work but are not supported include:"
11207 msgstr ""
11208
11209 # type: =item
11210 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:2949
11211 msgid "B<aix>"
11212 msgstr ""
11213
11214 # type: textblock
11215 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:2951
11216 msgid "AIX disk labels."
11217 msgstr ""
11218
11219 # type: =item
11220 #: ../src/guestfs-actions.pod:4454 ../fish/guestfish-actions.pod:2953
11221 msgid "B<amiga> | B<rdb>"
11222 msgstr ""
11223
11224 # type: textblock
11225 #: ../src/guestfs-actions.pod:4456 ../fish/guestfish-actions.pod:2955
11226 msgid "Amiga \"Rigid Disk Block\" format."
11227 msgstr ""
11228
11229 # type: =item
11230 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:2957
11231 msgid "B<bsd>"
11232 msgstr ""
11233
11234 # type: textblock
11235 #: ../src/guestfs-actions.pod:4460 ../fish/guestfish-actions.pod:2959
11236 msgid "BSD disk labels."
11237 msgstr ""
11238
11239 # type: =item
11240 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2961
11241 msgid "B<dasd>"
11242 msgstr ""
11243
11244 # type: textblock
11245 #: ../src/guestfs-actions.pod:4464 ../fish/guestfish-actions.pod:2963
11246 msgid "DASD, used on IBM mainframes."
11247 msgstr ""
11248
11249 # type: =item
11250 #: ../src/guestfs-actions.pod:4466 ../fish/guestfish-actions.pod:2965
11251 msgid "B<dvh>"
11252 msgstr ""
11253
11254 # type: textblock
11255 #: ../src/guestfs-actions.pod:4468 ../fish/guestfish-actions.pod:2967
11256 msgid "MIPS/SGI volumes."
11257 msgstr ""
11258
11259 # type: =item
11260 #: ../src/guestfs-actions.pod:4470 ../fish/guestfish-actions.pod:2969
11261 msgid "B<mac>"
11262 msgstr ""
11263
11264 # type: textblock
11265 #: ../src/guestfs-actions.pod:4472 ../fish/guestfish-actions.pod:2971
11266 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11267 msgstr ""
11268
11269 # type: =item
11270 #: ../src/guestfs-actions.pod:4474 ../fish/guestfish-actions.pod:2973
11271 msgid "B<pc98>"
11272 msgstr ""
11273
11274 # type: textblock
11275 #: ../src/guestfs-actions.pod:4476 ../fish/guestfish-actions.pod:2975
11276 msgid "NEC PC-98 format, common in Japan apparently."
11277 msgstr ""
11278
11279 # type: =item
11280 #: ../src/guestfs-actions.pod:4478 ../fish/guestfish-actions.pod:2977
11281 msgid "B<sun>"
11282 msgstr ""
11283
11284 # type: textblock
11285 #: ../src/guestfs-actions.pod:4480 ../fish/guestfish-actions.pod:2979
11286 msgid "Sun disk labels."
11287 msgstr ""
11288
11289 # type: =head2
11290 #: ../src/guestfs-actions.pod:4488
11291 msgid "guestfs_part_list"
11292 msgstr ""
11293
11294 # type: verbatim
11295 #: ../src/guestfs-actions.pod:4490
11296 #, no-wrap
11297 msgid ""
11298 " struct guestfs_partition_list *\n"
11299 " guestfs_part_list (guestfs_h *g,\n"
11300 "                    const char *device);\n"
11301 "\n"
11302 msgstr ""
11303
11304 # type: textblock
11305 #: ../src/guestfs-actions.pod:4494 ../fish/guestfish-actions.pod:2987
11306 msgid ""
11307 "This command parses the partition table on C<device> and returns the list of "
11308 "partitions found."
11309 msgstr ""
11310
11311 # type: textblock
11312 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:2990
11313 msgid "The fields in the returned structure are:"
11314 msgstr ""
11315
11316 # type: =item
11317 #: ../src/guestfs-actions.pod:4501 ../fish/guestfish-actions.pod:2994
11318 msgid "B<part_num>"
11319 msgstr ""
11320
11321 # type: textblock
11322 #: ../src/guestfs-actions.pod:4503 ../fish/guestfish-actions.pod:2996
11323 msgid "Partition number, counting from 1."
11324 msgstr ""
11325
11326 # type: =item
11327 #: ../src/guestfs-actions.pod:4505 ../fish/guestfish-actions.pod:2998
11328 msgid "B<part_start>"
11329 msgstr ""
11330
11331 # type: textblock
11332 #: ../src/guestfs-actions.pod:4507
11333 msgid ""
11334 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11335 "the device's sector size, see C<guestfs_blockdev_getss>."
11336 msgstr ""
11337
11338 # type: =item
11339 #: ../src/guestfs-actions.pod:4510 ../fish/guestfish-actions.pod:3003
11340 msgid "B<part_end>"
11341 msgstr ""
11342
11343 # type: textblock
11344 #: ../src/guestfs-actions.pod:4512 ../fish/guestfish-actions.pod:3005
11345 msgid "End of the partition in bytes."
11346 msgstr ""
11347
11348 # type: =item
11349 #: ../src/guestfs-actions.pod:4514 ../fish/guestfish-actions.pod:3007
11350 msgid "B<part_size>"
11351 msgstr ""
11352
11353 # type: textblock
11354 #: ../src/guestfs-actions.pod:4516 ../fish/guestfish-actions.pod:3009
11355 msgid "Size of the partition in bytes."
11356 msgstr ""
11357
11358 # type: textblock
11359 #: ../src/guestfs-actions.pod:4520
11360 msgid ""
11361 "This function returns a C<struct guestfs_partition_list *> (see "
11362 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11363 "must call C<guestfs_free_partition_list> after use>."
11364 msgstr ""
11365
11366 # type: =head2
11367 #: ../src/guestfs-actions.pod:4527
11368 msgid "guestfs_part_set_bootable"
11369 msgstr ""
11370
11371 # type: verbatim
11372 #: ../src/guestfs-actions.pod:4529
11373 #, no-wrap
11374 msgid ""
11375 " int\n"
11376 " guestfs_part_set_bootable (guestfs_h *g,\n"
11377 "                            const char *device,\n"
11378 "                            int partnum,\n"
11379 "                            int bootable);\n"
11380 "\n"
11381 msgstr ""
11382
11383 # type: textblock
11384 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3017
11385 msgid ""
11386 "This sets the bootable flag on partition numbered C<partnum> on device "
11387 "C<device>.  Note that partitions are numbered from 1."
11388 msgstr ""
11389
11390 # type: textblock
11391 #: ../src/guestfs-actions.pod:4538 ../fish/guestfish-actions.pod:3020
11392 msgid ""
11393 "The bootable flag is used by some operating systems (notably Windows) to "
11394 "determine which partition to boot from.  It is by no means universally "
11395 "recognized."
11396 msgstr ""
11397
11398 # type: =head2
11399 #: ../src/guestfs-actions.pod:4546
11400 msgid "guestfs_part_set_mbr_id"
11401 msgstr ""
11402
11403 # type: verbatim
11404 #: ../src/guestfs-actions.pod:4548
11405 #, no-wrap
11406 msgid ""
11407 " int\n"
11408 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11409 "                          const char *device,\n"
11410 "                          int partnum,\n"
11411 "                          int idbyte);\n"
11412 "\n"
11413 msgstr ""
11414
11415 # type: textblock
11416 #: ../src/guestfs-actions.pod:4554 ../fish/guestfish-actions.pod:3028
11417 msgid ""
11418 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11419 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11420 "documentation are in fact hexadecimal numbers, but usually documented "
11421 "without any leading \"0x\" which might be confusing."
11422 msgstr ""
11423
11424 # type: =head2
11425 #: ../src/guestfs-actions.pod:4568
11426 msgid "guestfs_part_set_name"
11427 msgstr ""
11428
11429 # type: verbatim
11430 #: ../src/guestfs-actions.pod:4570
11431 #, no-wrap
11432 msgid ""
11433 " int\n"
11434 " guestfs_part_set_name (guestfs_h *g,\n"
11435 "                        const char *device,\n"
11436 "                        int partnum,\n"
11437 "                        const char *name);\n"
11438 "\n"
11439 msgstr ""
11440
11441 # type: textblock
11442 #: ../src/guestfs-actions.pod:4576 ../fish/guestfish-actions.pod:3042
11443 msgid ""
11444 "This sets the partition name on partition numbered C<partnum> on device "
11445 "C<device>.  Note that partitions are numbered from 1."
11446 msgstr ""
11447
11448 # type: textblock
11449 #: ../src/guestfs-actions.pod:4579 ../fish/guestfish-actions.pod:3045
11450 msgid ""
11451 "The partition name can only be set on certain types of partition table.  "
11452 "This works on C<gpt> but not on C<mbr> partitions."
11453 msgstr ""
11454
11455 # type: =head2
11456 #: ../src/guestfs-actions.pod:4586
11457 msgid "guestfs_part_to_dev"
11458 msgstr ""
11459
11460 # type: verbatim
11461 #: ../src/guestfs-actions.pod:4588
11462 #, no-wrap
11463 msgid ""
11464 " char *\n"
11465 " guestfs_part_to_dev (guestfs_h *g,\n"
11466 "                      const char *partition);\n"
11467 "\n"
11468 msgstr ""
11469
11470 # type: textblock
11471 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3052
11472 msgid ""
11473 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11474 "partition number, returning the device name (eg. \"/dev/sdb\")."
11475 msgstr ""
11476
11477 # type: textblock
11478 #: ../src/guestfs-actions.pod:4596
11479 msgid ""
11480 "The named partition must exist, for example as a string returned from "
11481 "C<guestfs_list_partitions>."
11482 msgstr ""
11483
11484 # type: =head2
11485 #: ../src/guestfs-actions.pod:4604
11486 msgid "guestfs_ping_daemon"
11487 msgstr ""
11488
11489 # type: verbatim
11490 #: ../src/guestfs-actions.pod:4606
11491 #, no-wrap
11492 msgid ""
11493 " int\n"
11494 " guestfs_ping_daemon (guestfs_h *g);\n"
11495 "\n"
11496 msgstr ""
11497
11498 # type: textblock
11499 #: ../src/guestfs-actions.pod:4609 ../fish/guestfish-actions.pod:3063
11500 msgid ""
11501 "This is a test probe into the guestfs daemon running inside the qemu "
11502 "subprocess.  Calling this function checks that the daemon responds to the "
11503 "ping message, without affecting the daemon or attached block device(s) in "
11504 "any other way."
11505 msgstr ""
11506
11507 # type: =head2
11508 #: ../src/guestfs-actions.pod:4618
11509 msgid "guestfs_pread"
11510 msgstr ""
11511
11512 # type: verbatim
11513 #: ../src/guestfs-actions.pod:4620
11514 #, no-wrap
11515 msgid ""
11516 " char *\n"
11517 " guestfs_pread (guestfs_h *g,\n"
11518 "                const char *path,\n"
11519 "                int count,\n"
11520 "                int64_t offset,\n"
11521 "                size_t *size_r);\n"
11522 "\n"
11523 msgstr ""
11524
11525 # type: textblock
11526 #: ../src/guestfs-actions.pod:4627 ../fish/guestfish-actions.pod:3072
11527 msgid ""
11528 "This command lets you read part of a file.  It reads C<count> bytes of the "
11529 "file, starting at C<offset>, from file C<path>."
11530 msgstr ""
11531
11532 # type: textblock
11533 #: ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3075 ../fish/guestfish-actions.pod:3090
11534 msgid ""
11535 "This may read fewer bytes than requested.  For further details see the "
11536 "L<pread(2)> system call."
11537 msgstr ""
11538
11539 # type: textblock
11540 #: ../src/guestfs-actions.pod:4633
11541 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11542 msgstr ""
11543
11544 # type: =head2
11545 #: ../src/guestfs-actions.pod:4644
11546 msgid "guestfs_pread_device"
11547 msgstr ""
11548
11549 # type: verbatim
11550 #: ../src/guestfs-actions.pod:4646
11551 #, no-wrap
11552 msgid ""
11553 " char *\n"
11554 " guestfs_pread_device (guestfs_h *g,\n"
11555 "                       const char *device,\n"
11556 "                       int count,\n"
11557 "                       int64_t offset,\n"
11558 "                       size_t *size_r);\n"
11559 "\n"
11560 msgstr ""
11561
11562 # type: textblock
11563 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3087
11564 msgid ""
11565 "This command lets you read part of a file.  It reads C<count> bytes of "
11566 "C<device>, starting at C<offset>."
11567 msgstr ""
11568
11569 # type: textblock
11570 #: ../src/guestfs-actions.pod:4659
11571 msgid "See also C<guestfs_pread>."
11572 msgstr ""
11573
11574 # type: textblock
11575 #: ../src/guestfs-actions.pod:4668
11576 msgid "(Added in 1.5.21)"
11577 msgstr ""
11578
11579 # type: =head2
11580 #: ../src/guestfs-actions.pod:4670
11581 msgid "guestfs_pvcreate"
11582 msgstr ""
11583
11584 # type: verbatim
11585 #: ../src/guestfs-actions.pod:4672
11586 #, no-wrap
11587 msgid ""
11588 " int\n"
11589 " guestfs_pvcreate (guestfs_h *g,\n"
11590 "                   const char *device);\n"
11591 "\n"
11592 msgstr ""
11593
11594 # type: textblock
11595 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3102
11596 msgid ""
11597 "This creates an LVM physical volume on the named C<device>, where C<device> "
11598 "should usually be a partition name such as C</dev/sda1>."
11599 msgstr ""
11600
11601 # type: =head2
11602 #: ../src/guestfs-actions.pod:4684
11603 msgid "guestfs_pvremove"
11604 msgstr ""
11605
11606 # type: verbatim
11607 #: ../src/guestfs-actions.pod:4686
11608 #, no-wrap
11609 msgid ""
11610 " int\n"
11611 " guestfs_pvremove (guestfs_h *g,\n"
11612 "                   const char *device);\n"
11613 "\n"
11614 msgstr ""
11615
11616 # type: textblock
11617 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3110
11618 msgid ""
11619 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11620 "it."
11621 msgstr ""
11622
11623 # type: textblock
11624 #: ../src/guestfs-actions.pod:4693 ../fish/guestfish-actions.pod:3113
11625 msgid ""
11626 "The implementation uses the C<pvremove> command which refuses to wipe "
11627 "physical volumes that contain any volume groups, so you have to remove those "
11628 "first."
11629 msgstr ""
11630
11631 # type: =head2
11632 #: ../src/guestfs-actions.pod:4701
11633 msgid "guestfs_pvresize"
11634 msgstr ""
11635
11636 # type: verbatim
11637 #: ../src/guestfs-actions.pod:4703
11638 #, no-wrap
11639 msgid ""
11640 " int\n"
11641 " guestfs_pvresize (guestfs_h *g,\n"
11642 "                   const char *device);\n"
11643 "\n"
11644 msgstr ""
11645
11646 # type: textblock
11647 #: ../src/guestfs-actions.pod:4707 ../fish/guestfish-actions.pod:3121
11648 msgid ""
11649 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11650 "the new size of the underlying device."
11651 msgstr ""
11652
11653 # type: =head2
11654 #: ../src/guestfs-actions.pod:4714
11655 msgid "guestfs_pvresize_size"
11656 msgstr ""
11657
11658 # type: verbatim
11659 #: ../src/guestfs-actions.pod:4716
11660 #, no-wrap
11661 msgid ""
11662 " int\n"
11663 " guestfs_pvresize_size (guestfs_h *g,\n"
11664 "                        const char *device,\n"
11665 "                        int64_t size);\n"
11666 "\n"
11667 msgstr ""
11668
11669 # type: textblock
11670 #: ../src/guestfs-actions.pod:4721
11671 msgid ""
11672 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11673 "specify the new size (in bytes) explicitly."
11674 msgstr ""
11675
11676 # type: =head2
11677 #: ../src/guestfs-actions.pod:4728
11678 msgid "guestfs_pvs"
11679 msgstr ""
11680
11681 # type: verbatim
11682 #: ../src/guestfs-actions.pod:4730
11683 #, no-wrap
11684 msgid ""
11685 " char **\n"
11686 " guestfs_pvs (guestfs_h *g);\n"
11687 "\n"
11688 msgstr ""
11689
11690 # type: textblock
11691 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3135
11692 msgid ""
11693 "List all the physical volumes detected.  This is the equivalent of the "
11694 "L<pvs(8)> command."
11695 msgstr ""
11696
11697 # type: textblock
11698 #: ../src/guestfs-actions.pod:4736 ../fish/guestfish-actions.pod:3138
11699 msgid ""
11700 "This returns a list of just the device names that contain PVs "
11701 "(eg. C</dev/sda2>)."
11702 msgstr ""
11703
11704 # type: textblock
11705 #: ../src/guestfs-actions.pod:4739
11706 msgid "See also C<guestfs_pvs_full>."
11707 msgstr ""
11708
11709 # type: =head2
11710 #: ../src/guestfs-actions.pod:4747
11711 msgid "guestfs_pvs_full"
11712 msgstr ""
11713
11714 # type: verbatim
11715 #: ../src/guestfs-actions.pod:4749
11716 #, no-wrap
11717 msgid ""
11718 " struct guestfs_lvm_pv_list *\n"
11719 " guestfs_pvs_full (guestfs_h *g);\n"
11720 "\n"
11721 msgstr ""
11722
11723 # type: textblock
11724 #: ../src/guestfs-actions.pod:4752 ../fish/guestfish-actions.pod:3147
11725 msgid ""
11726 "List all the physical volumes detected.  This is the equivalent of the "
11727 "L<pvs(8)> command.  The \"full\" version includes all fields."
11728 msgstr ""
11729
11730 # type: textblock
11731 #: ../src/guestfs-actions.pod:4755
11732 msgid ""
11733 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
11734 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11735 "must call C<guestfs_free_lvm_pv_list> after use>."
11736 msgstr ""
11737
11738 # type: =head2
11739 #: ../src/guestfs-actions.pod:4762
11740 msgid "guestfs_pvuuid"
11741 msgstr ""
11742
11743 # type: verbatim
11744 #: ../src/guestfs-actions.pod:4764
11745 #, no-wrap
11746 msgid ""
11747 " char *\n"
11748 " guestfs_pvuuid (guestfs_h *g,\n"
11749 "                 const char *device);\n"
11750 "\n"
11751 msgstr ""
11752
11753 # type: textblock
11754 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3154
11755 msgid "This command returns the UUID of the LVM PV C<device>."
11756 msgstr ""
11757
11758 # type: =head2
11759 #: ../src/guestfs-actions.pod:4775
11760 msgid "guestfs_pwrite"
11761 msgstr ""
11762
11763 # type: verbatim
11764 #: ../src/guestfs-actions.pod:4777
11765 #, no-wrap
11766 msgid ""
11767 " int\n"
11768 " guestfs_pwrite (guestfs_h *g,\n"
11769 "                 const char *path,\n"
11770 "                 const char *content,\n"
11771 "                 size_t content_size,\n"
11772 "                 int64_t offset);\n"
11773 "\n"
11774 msgstr ""
11775
11776 # type: textblock
11777 #: ../src/guestfs-actions.pod:4784 ../fish/guestfish-actions.pod:3160
11778 msgid ""
11779 "This command writes to part of a file.  It writes the data buffer C<content> "
11780 "to the file C<path> starting at offset C<offset>."
11781 msgstr ""
11782
11783 # type: textblock
11784 #: ../src/guestfs-actions.pod:4787 ../fish/guestfish-actions.pod:3163
11785 msgid ""
11786 "This command implements the L<pwrite(2)> system call, and like that system "
11787 "call it may not write the full data requested.  The return value is the "
11788 "number of bytes that were actually written to the file.  This could even be "
11789 "0, although short writes are unlikely for regular files in ordinary "
11790 "circumstances."
11791 msgstr ""
11792
11793 # type: textblock
11794 #: ../src/guestfs-actions.pod:4793
11795 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11796 msgstr ""
11797
11798 # type: =head2
11799 #: ../src/guestfs-actions.pod:4802
11800 msgid "guestfs_pwrite_device"
11801 msgstr ""
11802
11803 # type: verbatim
11804 #: ../src/guestfs-actions.pod:4804
11805 #, no-wrap
11806 msgid ""
11807 " int\n"
11808 " guestfs_pwrite_device (guestfs_h *g,\n"
11809 "                        const char *device,\n"
11810 "                        const char *content,\n"
11811 "                        size_t content_size,\n"
11812 "                        int64_t offset);\n"
11813 "\n"
11814 msgstr ""
11815
11816 # type: textblock
11817 #: ../src/guestfs-actions.pod:4811 ../fish/guestfish-actions.pod:3178
11818 msgid ""
11819 "This command writes to part of a device.  It writes the data buffer "
11820 "C<content> to C<device> starting at offset C<offset>."
11821 msgstr ""
11822
11823 # type: textblock
11824 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3181
11825 msgid ""
11826 "This command implements the L<pwrite(2)> system call, and like that system "
11827 "call it may not write the full data requested (although short writes to disk "
11828 "devices and partitions are probably impossible with standard Linux kernels)."
11829 msgstr ""
11830
11831 # type: textblock
11832 #: ../src/guestfs-actions.pod:4819
11833 msgid "See also C<guestfs_pwrite>."
11834 msgstr ""
11835
11836 # type: textblock
11837 #: ../src/guestfs-actions.pod:4826
11838 msgid "(Added in 1.5.20)"
11839 msgstr ""
11840
11841 # type: =head2
11842 #: ../src/guestfs-actions.pod:4828
11843 msgid "guestfs_read_file"
11844 msgstr ""
11845
11846 # type: verbatim
11847 #: ../src/guestfs-actions.pod:4830
11848 #, no-wrap
11849 msgid ""
11850 " char *\n"
11851 " guestfs_read_file (guestfs_h *g,\n"
11852 "                    const char *path,\n"
11853 "                    size_t *size_r);\n"
11854 "\n"
11855 msgstr ""
11856
11857 # type: textblock
11858 #: ../src/guestfs-actions.pod:4835 ../fish/guestfish-actions.pod:3195
11859 msgid "This calls returns the contents of the file C<path> as a buffer."
11860 msgstr ""
11861
11862 # type: textblock
11863 #: ../src/guestfs-actions.pod:4838
11864 msgid ""
11865 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11866 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11867 "function is limited in the total size of file that can be handled."
11868 msgstr ""
11869
11870 # type: textblock
11871 #: ../src/guestfs-actions.pod:4850
11872 msgid "(Added in 1.0.63)"
11873 msgstr ""
11874
11875 # type: =head2
11876 #: ../src/guestfs-actions.pod:4852
11877 msgid "guestfs_read_lines"
11878 msgstr ""
11879
11880 # type: verbatim
11881 #: ../src/guestfs-actions.pod:4854
11882 #, no-wrap
11883 msgid ""
11884 " char **\n"
11885 " guestfs_read_lines (guestfs_h *g,\n"
11886 "                     const char *path);\n"
11887 "\n"
11888 msgstr ""
11889
11890 # type: textblock
11891 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3212
11892 msgid ""
11893 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11894 "C<CRLF> character sequences are I<not> returned."
11895 msgstr ""
11896
11897 # type: textblock
11898 #: ../src/guestfs-actions.pod:4863
11899 msgid ""
11900 "Note that this function cannot correctly handle binary files (specifically, "
11901 "files containing C<\\0> character which is treated as end of line).  For "
11902 "those you need to use the C<guestfs_read_file> function which has a more "
11903 "complex interface."
11904 msgstr ""
11905
11906 # type: =head2
11907 #: ../src/guestfs-actions.pod:4874
11908 msgid "guestfs_readdir"
11909 msgstr ""
11910
11911 # type: verbatim
11912 #: ../src/guestfs-actions.pod:4876
11913 #, no-wrap
11914 msgid ""
11915 " struct guestfs_dirent_list *\n"
11916 " guestfs_readdir (guestfs_h *g,\n"
11917 "                  const char *dir);\n"
11918 "\n"
11919 msgstr ""
11920
11921 # type: textblock
11922 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3224
11923 msgid "This returns the list of directory entries in directory C<dir>."
11924 msgstr ""
11925
11926 # type: textblock
11927 #: ../src/guestfs-actions.pod:4882 ../fish/guestfish-actions.pod:3226
11928 msgid ""
11929 "All entries in the directory are returned, including C<.> and C<..>.  The "
11930 "entries are I<not> sorted, but returned in the same order as the underlying "
11931 "filesystem."
11932 msgstr ""
11933
11934 # type: textblock
11935 #: ../src/guestfs-actions.pod:4886 ../fish/guestfish-actions.pod:3230
11936 msgid ""
11937 "Also this call returns basic file type information about each file.  The "
11938 "C<ftyp> field will contain one of the following characters:"
11939 msgstr ""
11940
11941 # type: =item
11942 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3235
11943 msgid "'b'"
11944 msgstr ""
11945
11946 # type: textblock
11947 #: ../src/guestfs-actions.pod:4893 ../fish/guestfish-actions.pod:3237
11948 msgid "Block special"
11949 msgstr ""
11950
11951 # type: =item
11952 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3239
11953 msgid "'c'"
11954 msgstr ""
11955
11956 # type: textblock
11957 #: ../src/guestfs-actions.pod:4897 ../fish/guestfish-actions.pod:3241
11958 msgid "Char special"
11959 msgstr ""
11960
11961 # type: =item
11962 #: ../src/guestfs-actions.pod:4899 ../fish/guestfish-actions.pod:3243
11963 msgid "'d'"
11964 msgstr ""
11965
11966 # type: textblock
11967 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3245
11968 msgid "Directory"
11969 msgstr ""
11970
11971 # type: =item
11972 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3247
11973 msgid "'f'"
11974 msgstr ""
11975
11976 # type: textblock
11977 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3249
11978 msgid "FIFO (named pipe)"
11979 msgstr ""
11980
11981 # type: =item
11982 #: ../src/guestfs-actions.pod:4907 ../fish/guestfish-actions.pod:3251
11983 msgid "'l'"
11984 msgstr ""
11985
11986 # type: textblock
11987 #: ../src/guestfs-actions.pod:4909 ../fish/guestfish-actions.pod:3253
11988 msgid "Symbolic link"
11989 msgstr ""
11990
11991 # type: =item
11992 #: ../src/guestfs-actions.pod:4911 ../fish/guestfish-actions.pod:3255
11993 msgid "'r'"
11994 msgstr ""
11995
11996 # type: textblock
11997 #: ../src/guestfs-actions.pod:4913 ../fish/guestfish-actions.pod:3257
11998 msgid "Regular file"
11999 msgstr ""
12000
12001 # type: =item
12002 #: ../src/guestfs-actions.pod:4915 ../fish/guestfish-actions.pod:3259
12003 msgid "'s'"
12004 msgstr ""
12005
12006 # type: textblock
12007 #: ../src/guestfs-actions.pod:4917 ../fish/guestfish-actions.pod:3261
12008 msgid "Socket"
12009 msgstr ""
12010
12011 # type: =item
12012 #: ../src/guestfs-actions.pod:4919 ../fish/guestfish-actions.pod:3263
12013 msgid "'u'"
12014 msgstr ""
12015
12016 # type: textblock
12017 #: ../src/guestfs-actions.pod:4921 ../fish/guestfish-actions.pod:3265
12018 msgid "Unknown file type"
12019 msgstr ""
12020
12021 # type: =item
12022 #: ../src/guestfs-actions.pod:4923 ../fish/guestfish-actions.pod:3267
12023 msgid "'?'"
12024 msgstr ""
12025
12026 # type: textblock
12027 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3269
12028 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12029 msgstr ""
12030
12031 # type: textblock
12032 #: ../src/guestfs-actions.pod:4930
12033 msgid ""
12034 "This function is primarily intended for use by programs.  To get a simple "
12035 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12036 "consumption, use C<guestfs_ll>."
12037 msgstr ""
12038
12039 # type: textblock
12040 #: ../src/guestfs-actions.pod:4934
12041 msgid ""
12042 "This function returns a C<struct guestfs_dirent_list *> (see "
12043 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
12044 "must call C<guestfs_free_dirent_list> after use>."
12045 msgstr ""
12046
12047 # type: =head2
12048 #: ../src/guestfs-actions.pod:4941
12049 msgid "guestfs_readlink"
12050 msgstr ""
12051
12052 # type: verbatim
12053 #: ../src/guestfs-actions.pod:4943
12054 #, no-wrap
12055 msgid ""
12056 " char *\n"
12057 " guestfs_readlink (guestfs_h *g,\n"
12058 "                   const char *path);\n"
12059 "\n"
12060 msgstr ""
12061
12062 # type: textblock
12063 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3282
12064 msgid "This command reads the target of a symbolic link."
12065 msgstr ""
12066
12067 # type: =head2
12068 #: ../src/guestfs-actions.pod:4954
12069 msgid "guestfs_readlinklist"
12070 msgstr ""
12071
12072 # type: verbatim
12073 #: ../src/guestfs-actions.pod:4956
12074 #, no-wrap
12075 msgid ""
12076 " char **\n"
12077 " guestfs_readlinklist (guestfs_h *g,\n"
12078 "                       const char *path,\n"
12079 "                       char *const *names);\n"
12080 "\n"
12081 msgstr ""
12082
12083 # type: textblock
12084 #: ../src/guestfs-actions.pod:4961 ../fish/guestfish-actions.pod:3288
12085 msgid ""
12086 "This call allows you to do a C<readlink> operation on multiple files, where "
12087 "all files are in the directory C<path>.  C<names> is the list of files from "
12088 "this directory."
12089 msgstr ""
12090
12091 # type: textblock
12092 #: ../src/guestfs-actions.pod:4965 ../fish/guestfish-actions.pod:3292
12093 msgid ""
12094 "On return you get a list of strings, with a one-to-one correspondence to the "
12095 "C<names> list.  Each string is the value of the symbolic link."
12096 msgstr ""
12097
12098 # type: textblock
12099 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3296
12100 msgid ""
12101 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12102 "result string is the empty string C<\"\">.  However the whole operation is "
12103 "completed even if there were C<readlink(2)> errors, and so you can call this "
12104 "function with names where you don't know if they are symbolic links already "
12105 "(albeit slightly less efficient)."
12106 msgstr ""
12107
12108 # type: textblock
12109 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3303
12110 msgid ""
12111 "This call is intended for programs that want to efficiently list a directory "
12112 "contents without making many round-trips.  Very long directory listings "
12113 "might cause the protocol message size to be exceeded, causing this call to "
12114 "fail.  The caller must split up such requests into smaller groups of names."
12115 msgstr ""
12116
12117 # type: =head2
12118 #: ../src/guestfs-actions.pod:4989
12119 msgid "guestfs_realpath"
12120 msgstr ""
12121
12122 # type: verbatim
12123 #: ../src/guestfs-actions.pod:4991
12124 #, no-wrap
12125 msgid ""
12126 " char *\n"
12127 " guestfs_realpath (guestfs_h *g,\n"
12128 "                   const char *path);\n"
12129 "\n"
12130 msgstr ""
12131
12132 # type: textblock
12133 #: ../src/guestfs-actions.pod:4995 ../fish/guestfish-actions.pod:3314
12134 msgid ""
12135 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12136 "has no C<.>, C<..> or symbolic link path elements."
12137 msgstr ""
12138
12139 # type: =head2
12140 #: ../src/guestfs-actions.pod:5003
12141 msgid "guestfs_removexattr"
12142 msgstr ""
12143
12144 # type: verbatim
12145 #: ../src/guestfs-actions.pod:5005
12146 #, no-wrap
12147 msgid ""
12148 " int\n"
12149 " guestfs_removexattr (guestfs_h *g,\n"
12150 "                      const char *xattr,\n"
12151 "                      const char *path);\n"
12152 "\n"
12153 msgstr ""
12154
12155 # type: textblock
12156 #: ../src/guestfs-actions.pod:5010 ../fish/guestfish-actions.pod:3321
12157 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12158 msgstr ""
12159
12160 # type: textblock
12161 #: ../src/guestfs-actions.pod:5013
12162 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12163 msgstr ""
12164
12165 # type: =head2
12166 #: ../src/guestfs-actions.pod:5019
12167 msgid "guestfs_resize2fs"
12168 msgstr ""
12169
12170 # type: verbatim
12171 #: ../src/guestfs-actions.pod:5021
12172 #, no-wrap
12173 msgid ""
12174 " int\n"
12175 " guestfs_resize2fs (guestfs_h *g,\n"
12176 "                    const char *device);\n"
12177 "\n"
12178 msgstr ""
12179
12180 # type: textblock
12181 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3330
12182 msgid ""
12183 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12184 "underlying device."
12185 msgstr ""
12186
12187 # type: textblock
12188 #: ../src/guestfs-actions.pod:5028
12189 msgid ""
12190 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12191 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12192 "sometimes gives an error about this and sometimes not.  In any case, it is "
12193 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12194 msgstr ""
12195
12196 # type: =head2
12197 #: ../src/guestfs-actions.pod:5038
12198 msgid "guestfs_resize2fs_size"
12199 msgstr ""
12200
12201 # type: verbatim
12202 #: ../src/guestfs-actions.pod:5040
12203 #, no-wrap
12204 msgid ""
12205 " int\n"
12206 " guestfs_resize2fs_size (guestfs_h *g,\n"
12207 "                         const char *device,\n"
12208 "                         int64_t size);\n"
12209 "\n"
12210 msgstr ""
12211
12212 # type: textblock
12213 #: ../src/guestfs-actions.pod:5045
12214 msgid ""
12215 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12216 "to specify the new size (in bytes) explicitly."
12217 msgstr ""
12218
12219 # type: =head2
12220 #: ../src/guestfs-actions.pod:5052
12221 msgid "guestfs_rm"
12222 msgstr ""
12223
12224 # type: verbatim
12225 #: ../src/guestfs-actions.pod:5054
12226 #, no-wrap
12227 msgid ""
12228 " int\n"
12229 " guestfs_rm (guestfs_h *g,\n"
12230 "             const char *path);\n"
12231 "\n"
12232 msgstr ""
12233
12234 # type: textblock
12235 #: ../src/guestfs-actions.pod:5058 ../fish/guestfish-actions.pod:3350
12236 msgid "Remove the single file C<path>."
12237 msgstr ""
12238
12239 # type: =head2
12240 #: ../src/guestfs-actions.pod:5064
12241 msgid "guestfs_rm_rf"
12242 msgstr ""
12243
12244 # type: verbatim
12245 #: ../src/guestfs-actions.pod:5066
12246 #, no-wrap
12247 msgid ""
12248 " int\n"
12249 " guestfs_rm_rf (guestfs_h *g,\n"
12250 "                const char *path);\n"
12251 "\n"
12252 msgstr ""
12253
12254 # type: textblock
12255 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3356
12256 msgid ""
12257 "Remove the file or directory C<path>, recursively removing the contents if "
12258 "its a directory.  This is like the C<rm -rf> shell command."
12259 msgstr ""
12260
12261 # type: =head2
12262 #: ../src/guestfs-actions.pod:5078
12263 msgid "guestfs_rmdir"
12264 msgstr ""
12265
12266 # type: verbatim
12267 #: ../src/guestfs-actions.pod:5080
12268 #, no-wrap
12269 msgid ""
12270 " int\n"
12271 " guestfs_rmdir (guestfs_h *g,\n"
12272 "                const char *path);\n"
12273 "\n"
12274 msgstr ""
12275
12276 # type: textblock
12277 #: ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:3364
12278 msgid "Remove the single directory C<path>."
12279 msgstr ""
12280
12281 # type: =head2
12282 #: ../src/guestfs-actions.pod:5090
12283 msgid "guestfs_rmmountpoint"
12284 msgstr ""
12285
12286 # type: verbatim
12287 #: ../src/guestfs-actions.pod:5092
12288 #, no-wrap
12289 msgid ""
12290 " int\n"
12291 " guestfs_rmmountpoint (guestfs_h *g,\n"
12292 "                       const char *exemptpath);\n"
12293 "\n"
12294 msgstr ""
12295
12296 # type: textblock
12297 #: ../src/guestfs-actions.pod:5096
12298 msgid ""
12299 "This calls removes a mountpoint that was previously created with "
12300 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12301 msgstr ""
12302
12303 # type: =head2
12304 #: ../src/guestfs-actions.pod:5104
12305 msgid "guestfs_scrub_device"
12306 msgstr ""
12307
12308 # type: verbatim
12309 #: ../src/guestfs-actions.pod:5106
12310 #, no-wrap
12311 msgid ""
12312 " int\n"
12313 " guestfs_scrub_device (guestfs_h *g,\n"
12314 "                       const char *device);\n"
12315 "\n"
12316 msgstr ""
12317
12318 # type: textblock
12319 #: ../src/guestfs-actions.pod:5110 ../fish/guestfish-actions.pod:3378
12320 msgid ""
12321 "This command writes patterns over C<device> to make data retrieval more "
12322 "difficult."
12323 msgstr ""
12324
12325 # type: textblock
12326 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5153 ../fish/guestfish-actions.pod:3381 ../fish/guestfish-actions.pod:3396 ../fish/guestfish-actions.pod:3409
12327 msgid ""
12328 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12329 "more details."
12330 msgstr ""
12331
12332 # type: textblock
12333 #: ../src/guestfs-actions.pod:5121 ../src/guestfs-actions.pod:5139 ../src/guestfs-actions.pod:5158
12334 msgid "(Added in 1.0.52)"
12335 msgstr ""
12336
12337 # type: =head2
12338 #: ../src/guestfs-actions.pod:5123
12339 msgid "guestfs_scrub_file"
12340 msgstr ""
12341
12342 # type: verbatim
12343 #: ../src/guestfs-actions.pod:5125
12344 #, no-wrap
12345 msgid ""
12346 " int\n"
12347 " guestfs_scrub_file (guestfs_h *g,\n"
12348 "                     const char *file);\n"
12349 "\n"
12350 msgstr ""
12351
12352 # type: textblock
12353 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3391
12354 msgid ""
12355 "This command writes patterns over a file to make data retrieval more "
12356 "difficult."
12357 msgstr ""
12358
12359 # type: textblock
12360 #: ../src/guestfs-actions.pod:5132 ../fish/guestfish-actions.pod:3394
12361 msgid "The file is I<removed> after scrubbing."
12362 msgstr ""
12363
12364 # type: =head2
12365 #: ../src/guestfs-actions.pod:5141
12366 msgid "guestfs_scrub_freespace"
12367 msgstr ""
12368
12369 # type: verbatim
12370 #: ../src/guestfs-actions.pod:5143
12371 #, no-wrap
12372 msgid ""
12373 " int\n"
12374 " guestfs_scrub_freespace (guestfs_h *g,\n"
12375 "                          const char *dir);\n"
12376 "\n"
12377 msgstr ""
12378
12379 # type: textblock
12380 #: ../src/guestfs-actions.pod:5147
12381 msgid ""
12382 "This command creates the directory C<dir> and then fills it with files until "
12383 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12384 "and deletes them.  The intention is to scrub any free space on the partition "
12385 "containing C<dir>."
12386 msgstr ""
12387
12388 # type: =head2
12389 #: ../src/guestfs-actions.pod:5160
12390 msgid "guestfs_set_append"
12391 msgstr ""
12392
12393 # type: verbatim
12394 #: ../src/guestfs-actions.pod:5162
12395 #, no-wrap
12396 msgid ""
12397 " int\n"
12398 " guestfs_set_append (guestfs_h *g,\n"
12399 "                     const char *append);\n"
12400 "\n"
12401 msgstr ""
12402
12403 # type: textblock
12404 #: ../src/guestfs-actions.pod:5166 ../fish/guestfish-actions.pod:3418
12405 msgid ""
12406 "This function is used to add additional options to the guest kernel command "
12407 "line."
12408 msgstr ""
12409
12410 # type: textblock
12411 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:3421
12412 msgid ""
12413 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12414 "environment variable."
12415 msgstr ""
12416
12417 # type: textblock
12418 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3424
12419 msgid ""
12420 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12421 "(libguestfs always adds a few of its own)."
12422 msgstr ""
12423
12424 # type: =head2
12425 #: ../src/guestfs-actions.pod:5179
12426 msgid "guestfs_set_autosync"
12427 msgstr ""
12428
12429 # type: verbatim
12430 #: ../src/guestfs-actions.pod:5181
12431 #, no-wrap
12432 msgid ""
12433 " int\n"
12434 " guestfs_set_autosync (guestfs_h *g,\n"
12435 "                       int autosync);\n"
12436 "\n"
12437 msgstr ""
12438
12439 # type: textblock
12440 #: ../src/guestfs-actions.pod:5185
12441 msgid ""
12442 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12443 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12444 "the handle is closed (also if the program exits without closing handles)."
12445 msgstr ""
12446
12447 # type: textblock
12448 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:3438
12449 msgid ""
12450 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12451 "disabled by default)."
12452 msgstr ""
12453
12454 # type: =head2
12455 #: ../src/guestfs-actions.pod:5197
12456 msgid "guestfs_set_direct"
12457 msgstr ""
12458
12459 # type: verbatim
12460 #: ../src/guestfs-actions.pod:5199
12461 #, no-wrap
12462 msgid ""
12463 " int\n"
12464 " guestfs_set_direct (guestfs_h *g,\n"
12465 "                     int direct);\n"
12466 "\n"
12467 msgstr ""
12468
12469 # type: textblock
12470 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3447
12471 msgid ""
12472 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12473 "passed directly through to the appliance once it is launched."
12474 msgstr ""
12475
12476 # type: textblock
12477 #: ../src/guestfs-actions.pod:5207
12478 msgid ""
12479 "One consequence of this is that log messages aren't caught by the library "
12480 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12481 "stdout."
12482 msgstr ""
12483
12484 # type: textblock
12485 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:3455
12486 msgid "You probably don't want to use this unless you know what you are doing."
12487 msgstr ""
12488
12489 # type: textblock
12490 #: ../src/guestfs-actions.pod:5214 ../fish/guestfish-actions.pod:3458
12491 msgid "The default is disabled."
12492 msgstr ""
12493
12494 # type: =head2
12495 #: ../src/guestfs-actions.pod:5220
12496 msgid "guestfs_set_e2label"
12497 msgstr ""
12498
12499 # type: verbatim
12500 #: ../src/guestfs-actions.pod:5222
12501 #, no-wrap
12502 msgid ""
12503 " int\n"
12504 " guestfs_set_e2label (guestfs_h *g,\n"
12505 "                      const char *device,\n"
12506 "                      const char *label);\n"
12507 "\n"
12508 msgstr ""
12509
12510 # type: textblock
12511 #: ../src/guestfs-actions.pod:5227 ../fish/guestfish-actions.pod:3464
12512 msgid ""
12513 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12514 "C<label>.  Filesystem labels are limited to 16 characters."
12515 msgstr ""
12516
12517 # type: textblock
12518 #: ../src/guestfs-actions.pod:5231
12519 msgid ""
12520 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12521 "the existing label on a filesystem."
12522 msgstr ""
12523
12524 # type: =head2
12525 #: ../src/guestfs-actions.pod:5238
12526 msgid "guestfs_set_e2uuid"
12527 msgstr ""
12528
12529 # type: verbatim
12530 #: ../src/guestfs-actions.pod:5240
12531 #, no-wrap
12532 msgid ""
12533 " int\n"
12534 " guestfs_set_e2uuid (guestfs_h *g,\n"
12535 "                     const char *device,\n"
12536 "                     const char *uuid);\n"
12537 "\n"
12538 msgstr ""
12539
12540 # type: textblock
12541 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3475
12542 msgid ""
12543 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12544 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12545 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12546 msgstr ""
12547
12548 # type: textblock
12549 #: ../src/guestfs-actions.pod:5250
12550 msgid ""
12551 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12552 "the existing UUID of a filesystem."
12553 msgstr ""
12554
12555 # type: =head2
12556 #: ../src/guestfs-actions.pod:5257
12557 msgid "guestfs_set_memsize"
12558 msgstr ""
12559
12560 # type: verbatim
12561 #: ../src/guestfs-actions.pod:5259
12562 #, no-wrap
12563 msgid ""
12564 " int\n"
12565 " guestfs_set_memsize (guestfs_h *g,\n"
12566 "                      int memsize);\n"
12567 "\n"
12568 msgstr ""
12569
12570 # type: textblock
12571 #: ../src/guestfs-actions.pod:5263
12572 msgid ""
12573 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12574 "This only has any effect if called before C<guestfs_launch>."
12575 msgstr ""
12576
12577 # type: textblock
12578 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3493
12579 msgid ""
12580 "You can also change this by setting the environment variable "
12581 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12582 msgstr ""
12583
12584 # type: =head2
12585 #: ../src/guestfs-actions.pod:5278
12586 msgid "guestfs_set_network"
12587 msgstr ""
12588
12589 # type: verbatim
12590 #: ../src/guestfs-actions.pod:5280
12591 #, no-wrap
12592 msgid ""
12593 " int\n"
12594 " guestfs_set_network (guestfs_h *g,\n"
12595 "                      int network);\n"
12596 "\n"
12597 msgstr ""
12598
12599 # type: textblock
12600 #: ../src/guestfs-actions.pod:5284 ../fish/guestfish-actions.pod:3506
12601 msgid ""
12602 "If C<network> is true, then the network is enabled in the libguestfs "
12603 "appliance.  The default is false."
12604 msgstr ""
12605
12606 # type: textblock
12607 #: ../src/guestfs-actions.pod:5287 ../fish/guestfish-actions.pod:3509
12608 msgid ""
12609 "This affects whether commands are able to access the network (see "
12610 "L<guestfs(3)/RUNNING COMMANDS>)."
12611 msgstr ""
12612
12613 # type: textblock
12614 #: ../src/guestfs-actions.pod:5290
12615 msgid ""
12616 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12617 "effect."
12618 msgstr ""
12619
12620 # type: =head2
12621 #: ../src/guestfs-actions.pod:5297
12622 msgid "guestfs_set_path"
12623 msgstr ""
12624
12625 # type: verbatim
12626 #: ../src/guestfs-actions.pod:5299
12627 #, no-wrap
12628 msgid ""
12629 " int\n"
12630 " guestfs_set_path (guestfs_h *g,\n"
12631 "                   const char *searchpath);\n"
12632 "\n"
12633 msgstr ""
12634
12635 # type: textblock
12636 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3521
12637 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12638 msgstr ""
12639
12640 # type: textblock
12641 #: ../src/guestfs-actions.pod:5305 ../fish/guestfish-actions.pod:3523
12642 msgid ""
12643 "The default is C<$libdir/guestfs> unless overridden by setting "
12644 "C<LIBGUESTFS_PATH> environment variable."
12645 msgstr ""
12646
12647 # type: textblock
12648 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3526
12649 msgid "Setting C<path> to C<NULL> restores the default path."
12650 msgstr ""
12651
12652 # type: =head2
12653 #: ../src/guestfs-actions.pod:5314
12654 msgid "guestfs_set_qemu"
12655 msgstr ""
12656
12657 # type: verbatim
12658 #: ../src/guestfs-actions.pod:5316
12659 #, no-wrap
12660 msgid ""
12661 " int\n"
12662 " guestfs_set_qemu (guestfs_h *g,\n"
12663 "                   const char *qemu);\n"
12664 "\n"
12665 msgstr ""
12666
12667 # type: textblock
12668 #: ../src/guestfs-actions.pod:5320 ../fish/guestfish-actions.pod:3534
12669 msgid "Set the qemu binary that we will use."
12670 msgstr ""
12671
12672 # type: textblock
12673 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3536
12674 msgid "The default is chosen when the library was compiled by the configure script."
12675 msgstr ""
12676
12677 # type: textblock
12678 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:3539
12679 msgid ""
12680 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12681 "variable."
12682 msgstr ""
12683
12684 # type: textblock
12685 #: ../src/guestfs-actions.pod:5328 ../fish/guestfish-actions.pod:3542
12686 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12687 msgstr ""
12688
12689 # type: textblock
12690 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:3544
12691 msgid ""
12692 "Note that you should call this function as early as possible after creating "
12693 "the handle.  This is because some pre-launch operations depend on testing "
12694 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12695 "don't retest features, and so you might see inconsistent results.  Using the "
12696 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12697 "the qemu binary at the same time as the handle is created."
12698 msgstr ""
12699
12700 # type: =head2
12701 #: ../src/guestfs-actions.pod:5342
12702 msgid "guestfs_set_recovery_proc"
12703 msgstr ""
12704
12705 # type: verbatim
12706 #: ../src/guestfs-actions.pod:5344
12707 #, no-wrap
12708 msgid ""
12709 " int\n"
12710 " guestfs_set_recovery_proc (guestfs_h *g,\n"
12711 "                            int recoveryproc);\n"
12712 "\n"
12713 msgstr ""
12714
12715 # type: textblock
12716 #: ../src/guestfs-actions.pod:5348
12717 msgid ""
12718 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12719 "not create a recovery process.  The purpose of the recovery process is to "
12720 "stop runaway qemu processes in the case where the main program aborts "
12721 "abruptly."
12722 msgstr ""
12723
12724 # type: textblock
12725 #: ../src/guestfs-actions.pod:5353
12726 msgid ""
12727 "This only has any effect if called before C<guestfs_launch>, and the default "
12728 "is true."
12729 msgstr ""
12730
12731 # type: textblock
12732 #: ../src/guestfs-actions.pod:5356 ../fish/guestfish-actions.pod:3566
12733 msgid ""
12734 "About the only time when you would want to disable this is if the main "
12735 "process will fork itself into the background (\"daemonize\" itself).  In "
12736 "this case the recovery process thinks that the main program has disappeared "
12737 "and so kills qemu, which is not very helpful."
12738 msgstr ""
12739
12740 # type: =head2
12741 #: ../src/guestfs-actions.pod:5366
12742 msgid "guestfs_set_selinux"
12743 msgstr ""
12744
12745 # type: verbatim
12746 #: ../src/guestfs-actions.pod:5368
12747 #, no-wrap
12748 msgid ""
12749 " int\n"
12750 " guestfs_set_selinux (guestfs_h *g,\n"
12751 "                      int selinux);\n"
12752 "\n"
12753 msgstr ""
12754
12755 # type: textblock
12756 #: ../src/guestfs-actions.pod:5372 ../fish/guestfish-actions.pod:3578
12757 msgid ""
12758 "This sets the selinux flag that is passed to the appliance at boot time.  "
12759 "The default is C<selinux=0> (disabled)."
12760 msgstr ""
12761
12762 # type: textblock
12763 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3581
12764 msgid ""
12765 "Note that if SELinux is enabled, it is always in Permissive mode "
12766 "(C<enforcing=0>)."
12767 msgstr ""
12768
12769 # type: =head2
12770 #: ../src/guestfs-actions.pod:5385
12771 msgid "guestfs_set_trace"
12772 msgstr ""
12773
12774 # type: verbatim
12775 #: ../src/guestfs-actions.pod:5387
12776 #, no-wrap
12777 msgid ""
12778 " int\n"
12779 " guestfs_set_trace (guestfs_h *g,\n"
12780 "                    int trace);\n"
12781 "\n"
12782 msgstr ""
12783
12784 # type: textblock
12785 #: ../src/guestfs-actions.pod:5391 ../fish/guestfish-actions.pod:3593
12786 msgid ""
12787 "If the command trace flag is set to 1, then commands are printed on stderr "
12788 "before they are executed in a format which is very similar to the one used "
12789 "by guestfish.  In other words, you can run a program with this enabled, and "
12790 "you will get out a script which you can feed to guestfish to perform the "
12791 "same set of actions."
12792 msgstr ""
12793
12794 # type: textblock
12795 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3600
12796 msgid ""
12797 "If you want to trace C API calls into libguestfs (and other libraries) then "
12798 "possibly a better way is to use the external ltrace(1) command."
12799 msgstr ""
12800
12801 # type: textblock
12802 #: ../src/guestfs-actions.pod:5402 ../fish/guestfish-actions.pod:3604
12803 msgid ""
12804 "Command traces are disabled unless the environment variable "
12805 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12806 msgstr ""
12807
12808 # type: =head2
12809 #: ../src/guestfs-actions.pod:5409
12810 msgid "guestfs_set_verbose"
12811 msgstr ""
12812
12813 # type: verbatim
12814 #: ../src/guestfs-actions.pod:5411
12815 #, no-wrap
12816 msgid ""
12817 " int\n"
12818 " guestfs_set_verbose (guestfs_h *g,\n"
12819 "                      int verbose);\n"
12820 "\n"
12821 msgstr ""
12822
12823 # type: textblock
12824 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3613
12825 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12826 msgstr ""
12827
12828 # type: textblock
12829 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3615
12830 msgid ""
12831 "Verbose messages are disabled unless the environment variable "
12832 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12833 msgstr ""
12834
12835 # type: =head2
12836 #: ../src/guestfs-actions.pod:5424
12837 msgid "guestfs_setcon"
12838 msgstr ""
12839
12840 # type: verbatim
12841 #: ../src/guestfs-actions.pod:5426
12842 #, no-wrap
12843 msgid ""
12844 " int\n"
12845 " guestfs_setcon (guestfs_h *g,\n"
12846 "                 const char *context);\n"
12847 "\n"
12848 msgstr ""
12849
12850 # type: textblock
12851 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3622
12852 msgid ""
12853 "This sets the SELinux security context of the daemon to the string "
12854 "C<context>."
12855 msgstr ""
12856
12857 # type: textblock
12858 #: ../src/guestfs-actions.pod:5433 ../fish/guestfish-actions.pod:3625
12859 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12860 msgstr ""
12861
12862 # type: =head2
12863 #: ../src/guestfs-actions.pod:5439
12864 msgid "guestfs_setxattr"
12865 msgstr ""
12866
12867 # type: verbatim
12868 #: ../src/guestfs-actions.pod:5441
12869 #, no-wrap
12870 msgid ""
12871 " int\n"
12872 " guestfs_setxattr (guestfs_h *g,\n"
12873 "                   const char *xattr,\n"
12874 "                   const char *val,\n"
12875 "                   int vallen,\n"
12876 "                   const char *path);\n"
12877 "\n"
12878 msgstr ""
12879
12880 # type: textblock
12881 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3631
12882 msgid ""
12883 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12884 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12885 msgstr ""
12886
12887 # type: textblock
12888 #: ../src/guestfs-actions.pod:5452
12889 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12890 msgstr ""
12891
12892 # type: =head2
12893 #: ../src/guestfs-actions.pod:5458
12894 msgid "guestfs_sfdisk"
12895 msgstr ""
12896
12897 # type: verbatim
12898 #: ../src/guestfs-actions.pod:5460
12899 #, no-wrap
12900 msgid ""
12901 " int\n"
12902 " guestfs_sfdisk (guestfs_h *g,\n"
12903 "                 const char *device,\n"
12904 "                 int cyls,\n"
12905 "                 int heads,\n"
12906 "                 int sectors,\n"
12907 "                 char *const *lines);\n"
12908 "\n"
12909 msgstr ""
12910
12911 # type: textblock
12912 #: ../src/guestfs-actions.pod:5468 ../fish/guestfish-actions.pod:3641
12913 msgid ""
12914 "This is a direct interface to the L<sfdisk(8)> program for creating "
12915 "partitions on block devices."
12916 msgstr ""
12917
12918 # type: textblock
12919 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3644
12920 msgid "C<device> should be a block device, for example C</dev/sda>."
12921 msgstr ""
12922
12923 # type: textblock
12924 #: ../src/guestfs-actions.pod:5473 ../fish/guestfish-actions.pod:3646
12925 msgid ""
12926 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12927 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12928 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12929 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12930 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12931 "the kernel) cannot work out the right geometry and you will need to tell it."
12932 msgstr ""
12933
12934 # type: textblock
12935 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:3654
12936 msgid ""
12937 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12938 "refer to the L<sfdisk(8)> manpage."
12939 msgstr ""
12940
12941 # type: textblock
12942 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:3657
12943 msgid ""
12944 "To create a single partition occupying the whole disk, you would pass "
12945 "C<lines> as a single element list, when the single element being the string "
12946 "C<,> (comma)."
12947 msgstr ""
12948
12949 # type: textblock
12950 #: ../src/guestfs-actions.pod:5488
12951 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12952 msgstr ""
12953
12954 # type: =head2
12955 #: ../src/guestfs-actions.pod:5498
12956 msgid "guestfs_sfdiskM"
12957 msgstr ""
12958
12959 # type: verbatim
12960 #: ../src/guestfs-actions.pod:5500
12961 #, no-wrap
12962 msgid ""
12963 " int\n"
12964 " guestfs_sfdiskM (guestfs_h *g,\n"
12965 "                  const char *device,\n"
12966 "                  char *const *lines);\n"
12967 "\n"
12968 msgstr ""
12969
12970 # type: textblock
12971 #: ../src/guestfs-actions.pod:5505
12972 msgid ""
12973 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12974 "partition sizes are specified in megabytes only (rounded to the nearest "
12975 "cylinder) and you don't need to specify the cyls, heads and sectors "
12976 "parameters which were rarely if ever used anyway."
12977 msgstr ""
12978
12979 # type: textblock
12980 #: ../src/guestfs-actions.pod:5511
12981 msgid ""
12982 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12983 "C<guestfs_part_disk>"
12984 msgstr ""
12985
12986 # type: =head2
12987 #: ../src/guestfs-actions.pod:5521
12988 msgid "guestfs_sfdisk_N"
12989 msgstr ""
12990
12991 # type: verbatim
12992 #: ../src/guestfs-actions.pod:5523
12993 #, no-wrap
12994 msgid ""
12995 " int\n"
12996 " guestfs_sfdisk_N (guestfs_h *g,\n"
12997 "                   const char *device,\n"
12998 "                   int partnum,\n"
12999 "                   int cyls,\n"
13000 "                   int heads,\n"
13001 "                   int sectors,\n"
13002 "                   const char *line);\n"
13003 "\n"
13004 msgstr ""
13005
13006 # type: textblock
13007 #: ../src/guestfs-actions.pod:5532 ../fish/guestfish-actions.pod:3687
13008 msgid ""
13009 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13010 "(note: C<n> counts from 1)."
13011 msgstr ""
13012
13013 # type: textblock
13014 #: ../src/guestfs-actions.pod:5535
13015 msgid ""
13016 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13017 "for the cyls/heads/sectors parameters."
13018 msgstr ""
13019
13020 # type: textblock
13021 #: ../src/guestfs-actions.pod:5538
13022 msgid "See also: C<guestfs_part_add>"
13023 msgstr ""
13024
13025 # type: =head2
13026 #: ../src/guestfs-actions.pod:5547
13027 msgid "guestfs_sfdisk_disk_geometry"
13028 msgstr ""
13029
13030 # type: verbatim
13031 #: ../src/guestfs-actions.pod:5549
13032 #, no-wrap
13033 msgid ""
13034 " char *\n"
13035 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13036 "                               const char *device);\n"
13037 "\n"
13038 msgstr ""
13039
13040 # type: textblock
13041 #: ../src/guestfs-actions.pod:5553
13042 msgid ""
13043 "This displays the disk geometry of C<device> read from the partition table.  "
13044 "Especially in the case where the underlying block device has been resized, "
13045 "this can be different from the kernel's idea of the geometry (see "
13046 "C<guestfs_sfdisk_kernel_geometry>)."
13047 msgstr ""
13048
13049 # type: textblock
13050 #: ../src/guestfs-actions.pod:5558 ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3716
13051 msgid "The result is in human-readable format, and not designed to be parsed."
13052 msgstr ""
13053
13054 # type: =head2
13055 #: ../src/guestfs-actions.pod:5566
13056 msgid "guestfs_sfdisk_kernel_geometry"
13057 msgstr ""
13058
13059 # type: verbatim
13060 #: ../src/guestfs-actions.pod:5568
13061 #, no-wrap
13062 msgid ""
13063 " char *\n"
13064 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13065 "                                 const char *device);\n"
13066 "\n"
13067 msgstr ""
13068
13069 # type: textblock
13070 #: ../src/guestfs-actions.pod:5572 ../fish/guestfish-actions.pod:3714
13071 msgid "This displays the kernel's idea of the geometry of C<device>."
13072 msgstr ""
13073
13074 # type: =head2
13075 #: ../src/guestfs-actions.pod:5582
13076 msgid "guestfs_sfdisk_l"
13077 msgstr ""
13078
13079 # type: verbatim
13080 #: ../src/guestfs-actions.pod:5584
13081 #, no-wrap
13082 msgid ""
13083 " char *\n"
13084 " guestfs_sfdisk_l (guestfs_h *g,\n"
13085 "                   const char *device);\n"
13086 "\n"
13087 msgstr ""
13088
13089 # type: textblock
13090 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3723
13091 msgid ""
13092 "This displays the partition table on C<device>, in the human-readable output "
13093 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13094 msgstr ""
13095
13096 # type: textblock
13097 #: ../src/guestfs-actions.pod:5592
13098 msgid "See also: C<guestfs_part_list>"
13099 msgstr ""
13100
13101 # type: =head2
13102 #: ../src/guestfs-actions.pod:5599
13103 msgid "guestfs_sh"
13104 msgstr ""
13105
13106 # type: verbatim
13107 #: ../src/guestfs-actions.pod:5601
13108 #, no-wrap
13109 msgid ""
13110 " char *\n"
13111 " guestfs_sh (guestfs_h *g,\n"
13112 "             const char *command);\n"
13113 "\n"
13114 msgstr ""
13115
13116 # type: textblock
13117 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:3733
13118 msgid ""
13119 "This call runs a command from the guest filesystem via the guest's "
13120 "C</bin/sh>."
13121 msgstr ""
13122
13123 # type: textblock
13124 #: ../src/guestfs-actions.pod:5608
13125 msgid "This is like C<guestfs_command>, but passes the command to:"
13126 msgstr ""
13127
13128 # type: verbatim
13129 #: ../src/guestfs-actions.pod:5610 ../fish/guestfish-actions.pod:3738
13130 #, no-wrap
13131 msgid ""
13132 " /bin/sh -c \"command\"\n"
13133 "\n"
13134 msgstr ""
13135
13136 # type: textblock
13137 #: ../src/guestfs-actions.pod:5612 ../fish/guestfish-actions.pod:3740
13138 msgid ""
13139 "Depending on the guest's shell, this usually results in wildcards being "
13140 "expanded, shell expressions being interpolated and so on."
13141 msgstr ""
13142
13143 # type: textblock
13144 #: ../src/guestfs-actions.pod:5616
13145 msgid "All the provisos about C<guestfs_command> apply to this call."
13146 msgstr ""
13147
13148 # type: =head2
13149 #: ../src/guestfs-actions.pod:5623
13150 msgid "guestfs_sh_lines"
13151 msgstr ""
13152
13153 # type: verbatim
13154 #: ../src/guestfs-actions.pod:5625
13155 #, no-wrap
13156 msgid ""
13157 " char **\n"
13158 " guestfs_sh_lines (guestfs_h *g,\n"
13159 "                   const char *command);\n"
13160 "\n"
13161 msgstr ""
13162
13163 # type: textblock
13164 #: ../src/guestfs-actions.pod:5629
13165 msgid ""
13166 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13167 "lines."
13168 msgstr ""
13169
13170 # type: textblock
13171 #: ../src/guestfs-actions.pod:5632
13172 msgid "See also: C<guestfs_command_lines>"
13173 msgstr ""
13174
13175 # type: =head2
13176 #: ../src/guestfs-actions.pod:5640
13177 msgid "guestfs_sleep"
13178 msgstr ""
13179
13180 # type: verbatim
13181 #: ../src/guestfs-actions.pod:5642
13182 #, no-wrap
13183 msgid ""
13184 " int\n"
13185 " guestfs_sleep (guestfs_h *g,\n"
13186 "                int secs);\n"
13187 "\n"
13188 msgstr ""
13189
13190 # type: textblock
13191 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3759
13192 msgid "Sleep for C<secs> seconds."
13193 msgstr ""
13194
13195 # type: textblock
13196 #: ../src/guestfs-actions.pod:5650
13197 msgid "(Added in 1.0.41)"
13198 msgstr ""
13199
13200 # type: =head2
13201 #: ../src/guestfs-actions.pod:5652 ../src/guestfs-structs.pod:109
13202 msgid "guestfs_stat"
13203 msgstr ""
13204
13205 # type: verbatim
13206 #: ../src/guestfs-actions.pod:5654
13207 #, no-wrap
13208 msgid ""
13209 " struct guestfs_stat *\n"
13210 " guestfs_stat (guestfs_h *g,\n"
13211 "               const char *path);\n"
13212 "\n"
13213 msgstr ""
13214
13215 # type: textblock
13216 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3767
13217 msgid "This is the same as the C<stat(2)> system call."
13218 msgstr ""
13219
13220 # type: =head2
13221 #: ../src/guestfs-actions.pod:5668 ../src/guestfs-structs.pod:135
13222 msgid "guestfs_statvfs"
13223 msgstr ""
13224
13225 # type: verbatim
13226 #: ../src/guestfs-actions.pod:5670
13227 #, no-wrap
13228 msgid ""
13229 " struct guestfs_statvfs *\n"
13230 " guestfs_statvfs (guestfs_h *g,\n"
13231 "                  const char *path);\n"
13232 "\n"
13233 msgstr ""
13234
13235 # type: textblock
13236 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3773
13237 msgid ""
13238 "Returns file system statistics for any mounted file system.  C<path> should "
13239 "be a file or directory in the mounted file system (typically it is the mount "
13240 "point itself, but it doesn't need to be)."
13241 msgstr ""
13242
13243 # type: textblock
13244 #: ../src/guestfs-actions.pod:5678 ../fish/guestfish-actions.pod:3777
13245 msgid "This is the same as the C<statvfs(2)> system call."
13246 msgstr ""
13247
13248 # type: textblock
13249 #: ../src/guestfs-actions.pod:5680
13250 msgid ""
13251 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13252 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13253 msgstr ""
13254
13255 # type: =head2
13256 #: ../src/guestfs-actions.pod:5686
13257 msgid "guestfs_strings"
13258 msgstr ""
13259
13260 # type: verbatim
13261 #: ../src/guestfs-actions.pod:5688
13262 #, no-wrap
13263 msgid ""
13264 " char **\n"
13265 " guestfs_strings (guestfs_h *g,\n"
13266 "                  const char *path);\n"
13267 "\n"
13268 msgstr ""
13269
13270 # type: textblock
13271 #: ../src/guestfs-actions.pod:5692 ../fish/guestfish-actions.pod:3783
13272 msgid ""
13273 "This runs the L<strings(1)> command on a file and returns the list of "
13274 "printable strings found."
13275 msgstr ""
13276
13277 # type: =head2
13278 #: ../src/guestfs-actions.pod:5704
13279 msgid "guestfs_strings_e"
13280 msgstr ""
13281
13282 # type: verbatim
13283 #: ../src/guestfs-actions.pod:5706
13284 #, no-wrap
13285 msgid ""
13286 " char **\n"
13287 " guestfs_strings_e (guestfs_h *g,\n"
13288 "                    const char *encoding,\n"
13289 "                    const char *path);\n"
13290 "\n"
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5711
13295 msgid ""
13296 "This is like the C<guestfs_strings> command, but allows you to specify the "
13297 "encoding of strings that are looked for in the source file C<path>."
13298 msgstr ""
13299
13300 # type: textblock
13301 #: ../src/guestfs-actions.pod:5715 ../fish/guestfish-actions.pod:3797
13302 msgid "Allowed encodings are:"
13303 msgstr ""
13304
13305 # type: =item
13306 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3801
13307 msgid "s"
13308 msgstr ""
13309
13310 # type: textblock
13311 #: ../src/guestfs-actions.pod:5721
13312 msgid ""
13313 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13314 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13315 msgstr ""
13316
13317 # type: =item
13318 #: ../src/guestfs-actions.pod:5724 ../fish/guestfish-actions.pod:3806
13319 msgid "S"
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3808
13324 msgid "Single 8-bit-byte characters."
13325 msgstr ""
13326
13327 # type: =item
13328 #: ../src/guestfs-actions.pod:5728 ../fish/guestfish-actions.pod:3810
13329 msgid "b"
13330 msgstr ""
13331
13332 # type: textblock
13333 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:3812
13334 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13335 msgstr ""
13336
13337 # type: =item
13338 #: ../src/guestfs-actions.pod:5733 ../fish/guestfish-actions.pod:3815
13339 msgid "l (lower case letter L)"
13340 msgstr ""
13341
13342 # type: textblock
13343 #: ../src/guestfs-actions.pod:5735 ../fish/guestfish-actions.pod:3817
13344 msgid ""
13345 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13346 "examining binaries in Windows guests."
13347 msgstr ""
13348
13349 # type: =item
13350 #: ../src/guestfs-actions.pod:5738 ../fish/guestfish-actions.pod:3820
13351 msgid "B"
13352 msgstr ""
13353
13354 # type: textblock
13355 #: ../src/guestfs-actions.pod:5740 ../fish/guestfish-actions.pod:3822
13356 msgid "32-bit big endian such as UCS-4BE."
13357 msgstr ""
13358
13359 # type: =item
13360 #: ../src/guestfs-actions.pod:5742 ../fish/guestfish-actions.pod:3824
13361 msgid "L"
13362 msgstr ""
13363
13364 # type: textblock
13365 #: ../src/guestfs-actions.pod:5744 ../fish/guestfish-actions.pod:3826
13366 msgid "32-bit little endian such as UCS-4LE."
13367 msgstr ""
13368
13369 # type: textblock
13370 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:3830
13371 msgid "The returned strings are transcoded to UTF-8."
13372 msgstr ""
13373
13374 # type: =head2
13375 #: ../src/guestfs-actions.pod:5759
13376 msgid "guestfs_swapoff_device"
13377 msgstr ""
13378
13379 # type: verbatim
13380 #: ../src/guestfs-actions.pod:5761
13381 #, no-wrap
13382 msgid ""
13383 " int\n"
13384 " guestfs_swapoff_device (guestfs_h *g,\n"
13385 "                         const char *device);\n"
13386 "\n"
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5765
13391 msgid ""
13392 "This command disables the libguestfs appliance swap device or partition "
13393 "named C<device>.  See C<guestfs_swapon_device>."
13394 msgstr ""
13395
13396 # type: =head2
13397 #: ../src/guestfs-actions.pod:5773
13398 msgid "guestfs_swapoff_file"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #: ../src/guestfs-actions.pod:5775
13403 #, no-wrap
13404 msgid ""
13405 " int\n"
13406 " guestfs_swapoff_file (guestfs_h *g,\n"
13407 "                       const char *file);\n"
13408 "\n"
13409 msgstr ""
13410
13411 # type: textblock
13412 #: ../src/guestfs-actions.pod:5779 ../fish/guestfish-actions.pod:3847
13413 msgid "This command disables the libguestfs appliance swap on file."
13414 msgstr ""
13415
13416 # type: =head2
13417 #: ../src/guestfs-actions.pod:5785
13418 msgid "guestfs_swapoff_label"
13419 msgstr ""
13420
13421 # type: verbatim
13422 #: ../src/guestfs-actions.pod:5787
13423 #, no-wrap
13424 msgid ""
13425 " int\n"
13426 " guestfs_swapoff_label (guestfs_h *g,\n"
13427 "                        const char *label);\n"
13428 "\n"
13429 msgstr ""
13430
13431 # type: textblock
13432 #: ../src/guestfs-actions.pod:5791 ../fish/guestfish-actions.pod:3853
13433 msgid ""
13434 "This command disables the libguestfs appliance swap on labeled swap "
13435 "partition."
13436 msgstr ""
13437
13438 # type: =head2
13439 #: ../src/guestfs-actions.pod:5798
13440 msgid "guestfs_swapoff_uuid"
13441 msgstr ""
13442
13443 # type: verbatim
13444 #: ../src/guestfs-actions.pod:5800
13445 #, no-wrap
13446 msgid ""
13447 " int\n"
13448 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13449 "                       const char *uuid);\n"
13450 "\n"
13451 msgstr ""
13452
13453 # type: textblock
13454 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:3860
13455 msgid ""
13456 "This command disables the libguestfs appliance swap partition with the given "
13457 "UUID."
13458 msgstr ""
13459
13460 # type: =head2
13461 #: ../src/guestfs-actions.pod:5811
13462 msgid "guestfs_swapon_device"
13463 msgstr ""
13464
13465 # type: verbatim
13466 #: ../src/guestfs-actions.pod:5813
13467 #, no-wrap
13468 msgid ""
13469 " int\n"
13470 " guestfs_swapon_device (guestfs_h *g,\n"
13471 "                        const char *device);\n"
13472 "\n"
13473 msgstr ""
13474
13475 # type: textblock
13476 #: ../src/guestfs-actions.pod:5817
13477 msgid ""
13478 "This command enables the libguestfs appliance to use the swap device or "
13479 "partition named C<device>.  The increased memory is made available for all "
13480 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13481 msgstr ""
13482
13483 # type: textblock
13484 #: ../src/guestfs-actions.pod:5822 ../fish/guestfish-actions.pod:3872
13485 msgid ""
13486 "Note that you should not swap to existing guest swap partitions unless you "
13487 "know what you are doing.  They may contain hibernation information, or other "
13488 "information that the guest doesn't want you to trash.  You also risk leaking "
13489 "information about the host to the guest this way.  Instead, attach a new "
13490 "host device to the guest and swap on that."
13491 msgstr ""
13492
13493 # type: =head2
13494 #: ../src/guestfs-actions.pod:5833
13495 msgid "guestfs_swapon_file"
13496 msgstr ""
13497
13498 # type: verbatim
13499 #: ../src/guestfs-actions.pod:5835
13500 #, no-wrap
13501 msgid ""
13502 " int\n"
13503 " guestfs_swapon_file (guestfs_h *g,\n"
13504 "                      const char *file);\n"
13505 "\n"
13506 msgstr ""
13507
13508 # type: textblock
13509 #: ../src/guestfs-actions.pod:5839
13510 msgid ""
13511 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13512 "notes."
13513 msgstr ""
13514
13515 # type: =head2
13516 #: ../src/guestfs-actions.pod:5846
13517 msgid "guestfs_swapon_label"
13518 msgstr ""
13519
13520 # type: verbatim
13521 #: ../src/guestfs-actions.pod:5848
13522 #, no-wrap
13523 msgid ""
13524 " int\n"
13525 " guestfs_swapon_label (guestfs_h *g,\n"
13526 "                       const char *label);\n"
13527 "\n"
13528 msgstr ""
13529
13530 # type: textblock
13531 #: ../src/guestfs-actions.pod:5852
13532 msgid ""
13533 "This command enables swap to a labeled swap partition.  See "
13534 "C<guestfs_swapon_device> for other notes."
13535 msgstr ""
13536
13537 # type: =head2
13538 #: ../src/guestfs-actions.pod:5859
13539 msgid "guestfs_swapon_uuid"
13540 msgstr ""
13541
13542 # type: verbatim
13543 #: ../src/guestfs-actions.pod:5861
13544 #, no-wrap
13545 msgid ""
13546 " int\n"
13547 " guestfs_swapon_uuid (guestfs_h *g,\n"
13548 "                      const char *uuid);\n"
13549 "\n"
13550 msgstr ""
13551
13552 # type: textblock
13553 #: ../src/guestfs-actions.pod:5865
13554 msgid ""
13555 "This command enables swap to a swap partition with the given UUID.  See "
13556 "C<guestfs_swapon_device> for other notes."
13557 msgstr ""
13558
13559 # type: =head2
13560 #: ../src/guestfs-actions.pod:5872
13561 msgid "guestfs_sync"
13562 msgstr ""
13563
13564 # type: verbatim
13565 #: ../src/guestfs-actions.pod:5874
13566 #, no-wrap
13567 msgid ""
13568 " int\n"
13569 " guestfs_sync (guestfs_h *g);\n"
13570 "\n"
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5877 ../fish/guestfish-actions.pod:3904
13575 msgid ""
13576 "This syncs the disk, so that any writes are flushed through to the "
13577 "underlying disk image."
13578 msgstr ""
13579
13580 # type: textblock
13581 #: ../src/guestfs-actions.pod:5880 ../fish/guestfish-actions.pod:3907
13582 msgid ""
13583 "You should always call this if you have modified a disk image, before "
13584 "closing the handle."
13585 msgstr ""
13586
13587 # type: =head2
13588 #: ../src/guestfs-actions.pod:5887
13589 msgid "guestfs_tail"
13590 msgstr ""
13591
13592 # type: verbatim
13593 #: ../src/guestfs-actions.pod:5889
13594 #, no-wrap
13595 msgid ""
13596 " char **\n"
13597 " guestfs_tail (guestfs_h *g,\n"
13598 "               const char *path);\n"
13599 "\n"
13600 msgstr ""
13601
13602 # type: textblock
13603 #: ../src/guestfs-actions.pod:5893 ../fish/guestfish-actions.pod:3914
13604 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13605 msgstr ""
13606
13607 # type: =head2
13608 #: ../src/guestfs-actions.pod:5905
13609 msgid "guestfs_tail_n"
13610 msgstr ""
13611
13612 # type: verbatim
13613 #: ../src/guestfs-actions.pod:5907
13614 #, no-wrap
13615 msgid ""
13616 " char **\n"
13617 " guestfs_tail_n (guestfs_h *g,\n"
13618 "                 int nrlines,\n"
13619 "                 const char *path);\n"
13620 "\n"
13621 msgstr ""
13622
13623 # type: textblock
13624 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3924
13625 msgid ""
13626 "If the parameter C<nrlines> is a positive number, this returns the last "
13627 "C<nrlines> lines of the file C<path>."
13628 msgstr ""
13629
13630 # type: textblock
13631 #: ../src/guestfs-actions.pod:5915 ../fish/guestfish-actions.pod:3927
13632 msgid ""
13633 "If the parameter C<nrlines> is a negative number, this returns lines from "
13634 "the file C<path>, starting with the C<-nrlines>th line."
13635 msgstr ""
13636
13637 # type: =head2
13638 #: ../src/guestfs-actions.pod:5929
13639 msgid "guestfs_tar_in"
13640 msgstr ""
13641
13642 # type: verbatim
13643 #: ../src/guestfs-actions.pod:5931
13644 #, no-wrap
13645 msgid ""
13646 " int\n"
13647 " guestfs_tar_in (guestfs_h *g,\n"
13648 "                 const char *tarfile,\n"
13649 "                 const char *directory);\n"
13650 "\n"
13651 msgstr ""
13652
13653 # type: textblock
13654 #: ../src/guestfs-actions.pod:5936 ../fish/guestfish-actions.pod:3939
13655 msgid ""
13656 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13657 "tar file) into C<directory>."
13658 msgstr ""
13659
13660 # type: textblock
13661 #: ../src/guestfs-actions.pod:5939
13662 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13663 msgstr ""
13664
13665 # type: textblock
13666 #: ../src/guestfs-actions.pod:5944 ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:5977 ../src/guestfs-actions.pod:5993
13667 msgid "(Added in 1.0.3)"
13668 msgstr ""
13669
13670 # type: =head2
13671 #: ../src/guestfs-actions.pod:5946
13672 msgid "guestfs_tar_out"
13673 msgstr ""
13674
13675 # type: verbatim
13676 #: ../src/guestfs-actions.pod:5948
13677 #, no-wrap
13678 msgid ""
13679 " int\n"
13680 " guestfs_tar_out (guestfs_h *g,\n"
13681 "                  const char *directory,\n"
13682 "                  const char *tarfile);\n"
13683 "\n"
13684 msgstr ""
13685
13686 # type: textblock
13687 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3951
13688 msgid ""
13689 "This command packs the contents of C<directory> and downloads it to local "
13690 "file C<tarfile>."
13691 msgstr ""
13692
13693 # type: textblock
13694 #: ../src/guestfs-actions.pod:5956
13695 msgid ""
13696 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13697 "C<guestfs_txz_out>."
13698 msgstr ""
13699
13700 # type: =head2
13701 #: ../src/guestfs-actions.pod:5963
13702 msgid "guestfs_tgz_in"
13703 msgstr ""
13704
13705 # type: verbatim
13706 #: ../src/guestfs-actions.pod:5965
13707 #, no-wrap
13708 msgid ""
13709 " int\n"
13710 " guestfs_tgz_in (guestfs_h *g,\n"
13711 "                 const char *tarball,\n"
13712 "                 const char *directory);\n"
13713 "\n"
13714 msgstr ""
13715
13716 # type: textblock
13717 #: ../src/guestfs-actions.pod:5970 ../fish/guestfish-actions.pod:3963
13718 msgid ""
13719 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13720 "tar file) into C<directory>."
13721 msgstr ""
13722
13723 # type: textblock
13724 #: ../src/guestfs-actions.pod:5973
13725 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13726 msgstr ""
13727
13728 # type: =head2
13729 #: ../src/guestfs-actions.pod:5979
13730 msgid "guestfs_tgz_out"
13731 msgstr ""
13732
13733 # type: verbatim
13734 #: ../src/guestfs-actions.pod:5981
13735 #, no-wrap
13736 msgid ""
13737 " int\n"
13738 " guestfs_tgz_out (guestfs_h *g,\n"
13739 "                  const char *directory,\n"
13740 "                  const char *tarball);\n"
13741 "\n"
13742 msgstr ""
13743
13744 # type: textblock
13745 #: ../src/guestfs-actions.pod:5986 ../fish/guestfish-actions.pod:3974
13746 msgid ""
13747 "This command packs the contents of C<directory> and downloads it to local "
13748 "file C<tarball>."
13749 msgstr ""
13750
13751 # type: textblock
13752 #: ../src/guestfs-actions.pod:5989
13753 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13754 msgstr ""
13755
13756 # type: =head2
13757 #: ../src/guestfs-actions.pod:5995
13758 msgid "guestfs_touch"
13759 msgstr ""
13760
13761 # type: verbatim
13762 #: ../src/guestfs-actions.pod:5997
13763 #, no-wrap
13764 msgid ""
13765 " int\n"
13766 " guestfs_touch (guestfs_h *g,\n"
13767 "                const char *path);\n"
13768 "\n"
13769 msgstr ""
13770
13771 # type: textblock
13772 #: ../src/guestfs-actions.pod:6001 ../fish/guestfish-actions.pod:3985
13773 msgid ""
13774 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13775 "timestamps on a file, or, if the file does not exist, to create a new "
13776 "zero-length file."
13777 msgstr ""
13778
13779 # type: textblock
13780 #: ../src/guestfs-actions.pod:6005 ../fish/guestfish-actions.pod:3989
13781 msgid ""
13782 "This command only works on regular files, and will fail on other file types "
13783 "such as directories, symbolic links, block special etc."
13784 msgstr ""
13785
13786 # type: =head2
13787 #: ../src/guestfs-actions.pod:6012
13788 msgid "guestfs_truncate"
13789 msgstr ""
13790
13791 # type: verbatim
13792 #: ../src/guestfs-actions.pod:6014
13793 #, no-wrap
13794 msgid ""
13795 " int\n"
13796 " guestfs_truncate (guestfs_h *g,\n"
13797 "                   const char *path);\n"
13798 "\n"
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:6018 ../fish/guestfish-actions.pod:3996
13803 msgid ""
13804 "This command truncates C<path> to a zero-length file.  The file must exist "
13805 "already."
13806 msgstr ""
13807
13808 # type: =head2
13809 #: ../src/guestfs-actions.pod:6025
13810 msgid "guestfs_truncate_size"
13811 msgstr ""
13812
13813 # type: verbatim
13814 #: ../src/guestfs-actions.pod:6027
13815 #, no-wrap
13816 msgid ""
13817 " int\n"
13818 " guestfs_truncate_size (guestfs_h *g,\n"
13819 "                        const char *path,\n"
13820 "                        int64_t size);\n"
13821 "\n"
13822 msgstr ""
13823
13824 # type: textblock
13825 #: ../src/guestfs-actions.pod:6032 ../fish/guestfish-actions.pod:4003
13826 msgid ""
13827 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13828 "already."
13829 msgstr ""
13830
13831 # type: textblock
13832 #: ../src/guestfs-actions.pod:6035
13833 msgid ""
13834 "If the current file size is less than C<size> then the file is extended to "
13835 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13836 "blocks are not allocated for the file until you write to it).  To create a "
13837 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13838 msgstr ""
13839
13840 # type: =head2
13841 #: ../src/guestfs-actions.pod:6045
13842 msgid "guestfs_tune2fs_l"
13843 msgstr ""
13844
13845 # type: verbatim
13846 #: ../src/guestfs-actions.pod:6047
13847 #, no-wrap
13848 msgid ""
13849 " char **\n"
13850 " guestfs_tune2fs_l (guestfs_h *g,\n"
13851 "                    const char *device);\n"
13852 "\n"
13853 msgstr ""
13854
13855 # type: textblock
13856 #: ../src/guestfs-actions.pod:6051 ../fish/guestfish-actions.pod:4016
13857 msgid ""
13858 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13859 "C<device>."
13860 msgstr ""
13861
13862 # type: textblock
13863 #: ../src/guestfs-actions.pod:6054 ../fish/guestfish-actions.pod:4019
13864 msgid ""
13865 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13866 "for more details.  The list of fields returned isn't clearly defined, and "
13867 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13868 "and the filesystem itself."
13869 msgstr ""
13870
13871 # type: =head2
13872 #: ../src/guestfs-actions.pod:6067
13873 msgid "guestfs_txz_in"
13874 msgstr ""
13875
13876 # type: verbatim
13877 #: ../src/guestfs-actions.pod:6069
13878 #, no-wrap
13879 msgid ""
13880 " int\n"
13881 " guestfs_txz_in (guestfs_h *g,\n"
13882 "                 const char *tarball,\n"
13883 "                 const char *directory);\n"
13884 "\n"
13885 msgstr ""
13886
13887 # type: textblock
13888 #: ../src/guestfs-actions.pod:6074 ../fish/guestfish-actions.pod:4028
13889 msgid ""
13890 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13891 "tar file) into C<directory>."
13892 msgstr ""
13893
13894 # type: =head2
13895 #: ../src/guestfs-actions.pod:6081
13896 msgid "guestfs_txz_out"
13897 msgstr ""
13898
13899 # type: verbatim
13900 #: ../src/guestfs-actions.pod:6083
13901 #, no-wrap
13902 msgid ""
13903 " int\n"
13904 " guestfs_txz_out (guestfs_h *g,\n"
13905 "                  const char *directory,\n"
13906 "                  const char *tarball);\n"
13907 "\n"
13908 msgstr ""
13909
13910 # type: textblock
13911 #: ../src/guestfs-actions.pod:6088 ../fish/guestfish-actions.pod:4037
13912 msgid ""
13913 "This command packs the contents of C<directory> and downloads it to local "
13914 "file C<tarball> (as an xz compressed tar archive)."
13915 msgstr ""
13916
13917 # type: =head2
13918 #: ../src/guestfs-actions.pod:6095
13919 msgid "guestfs_umask"
13920 msgstr ""
13921
13922 # type: verbatim
13923 #: ../src/guestfs-actions.pod:6097
13924 #, no-wrap
13925 msgid ""
13926 " int\n"
13927 " guestfs_umask (guestfs_h *g,\n"
13928 "                int mask);\n"
13929 "\n"
13930 msgstr ""
13931
13932 # type: textblock
13933 #: ../src/guestfs-actions.pod:6101 ../fish/guestfish-actions.pod:4046
13934 msgid ""
13935 "This function sets the mask used for creating new files and device nodes to "
13936 "C<mask & 0777>."
13937 msgstr ""
13938
13939 # type: textblock
13940 #: ../src/guestfs-actions.pod:6104 ../fish/guestfish-actions.pod:4049
13941 msgid ""
13942 "Typical umask values would be C<022> which creates new files with "
13943 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13944 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13945 msgstr ""
13946
13947 # type: textblock
13948 #: ../src/guestfs-actions.pod:6109 ../fish/guestfish-actions.pod:4054
13949 msgid ""
13950 "The default umask is C<022>.  This is important because it means that "
13951 "directories and device nodes will be created with C<0644> or C<0755> mode "
13952 "even if you specify C<0777>."
13953 msgstr ""
13954
13955 # type: textblock
13956 #: ../src/guestfs-actions.pod:6113
13957 msgid ""
13958 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13959 "C<guestfs_mkdir>."
13960 msgstr ""
13961
13962 # type: textblock
13963 #: ../src/guestfs-actions.pod:6116 ../fish/guestfish-actions.pod:4061
13964 msgid "This call returns the previous umask."
13965 msgstr ""
13966
13967 # type: =head2
13968 #: ../src/guestfs-actions.pod:6122
13969 msgid "guestfs_umount"
13970 msgstr ""
13971
13972 # type: verbatim
13973 #: ../src/guestfs-actions.pod:6124
13974 #, no-wrap
13975 msgid ""
13976 " int\n"
13977 " guestfs_umount (guestfs_h *g,\n"
13978 "                 const char *pathordevice);\n"
13979 "\n"
13980 msgstr ""
13981
13982 # type: textblock
13983 #: ../src/guestfs-actions.pod:6128 ../fish/guestfish-actions.pod:4069
13984 msgid ""
13985 "This unmounts the given filesystem.  The filesystem may be specified either "
13986 "by its mountpoint (path) or the device which contains the filesystem."
13987 msgstr ""
13988
13989 # type: =head2
13990 #: ../src/guestfs-actions.pod:6136
13991 msgid "guestfs_umount_all"
13992 msgstr ""
13993
13994 # type: verbatim
13995 #: ../src/guestfs-actions.pod:6138
13996 #, no-wrap
13997 msgid ""
13998 " int\n"
13999 " guestfs_umount_all (guestfs_h *g);\n"
14000 "\n"
14001 msgstr ""
14002
14003 # type: textblock
14004 #: ../src/guestfs-actions.pod:6141 ../fish/guestfish-actions.pod:4079
14005 msgid "This unmounts all mounted filesystems."
14006 msgstr ""
14007
14008 # type: textblock
14009 #: ../src/guestfs-actions.pod:6143 ../fish/guestfish-actions.pod:4081
14010 msgid "Some internal mounts are not unmounted by this call."
14011 msgstr ""
14012
14013 # type: =head2
14014 #: ../src/guestfs-actions.pod:6149
14015 msgid "guestfs_upload"
14016 msgstr ""
14017
14018 # type: verbatim
14019 #: ../src/guestfs-actions.pod:6151
14020 #, no-wrap
14021 msgid ""
14022 " int\n"
14023 " guestfs_upload (guestfs_h *g,\n"
14024 "                 const char *filename,\n"
14025 "                 const char *remotefilename);\n"
14026 "\n"
14027 msgstr ""
14028
14029 # type: textblock
14030 #: ../src/guestfs-actions.pod:6156 ../src/guestfs-actions.pod:6175 ../fish/guestfish-actions.pod:4087 ../fish/guestfish-actions.pod:4100
14031 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14032 msgstr ""
14033
14034 # type: textblock
14035 #: ../src/guestfs-actions.pod:6161
14036 msgid "See also C<guestfs_download>."
14037 msgstr ""
14038
14039 # type: =head2
14040 #: ../src/guestfs-actions.pod:6167
14041 msgid "guestfs_upload_offset"
14042 msgstr ""
14043
14044 # type: verbatim
14045 #: ../src/guestfs-actions.pod:6169
14046 #, no-wrap
14047 msgid ""
14048 " int\n"
14049 " guestfs_upload_offset (guestfs_h *g,\n"
14050 "                        const char *filename,\n"
14051 "                        const char *remotefilename,\n"
14052 "                        int64_t offset);\n"
14053 "\n"
14054 msgstr ""
14055
14056 # type: textblock
14057 #: ../src/guestfs-actions.pod:6178 ../fish/guestfish-actions.pod:4103
14058 msgid ""
14059 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14060 "The intention is to overwrite parts of existing files or devices, although "
14061 "if a non-existant file is specified then it is created with a \"hole\" "
14062 "before C<offset>.  The size of the data written is implicit in the size of "
14063 "the source C<filename>."
14064 msgstr ""
14065
14066 # type: textblock
14067 #: ../src/guestfs-actions.pod:6185
14068 msgid ""
14069 "Note that there is no limit on the amount of data that can be uploaded with "
14070 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14071 "full amount unless an error occurs."
14072 msgstr ""
14073
14074 # type: textblock
14075 #: ../src/guestfs-actions.pod:6190
14076 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14077 msgstr ""
14078
14079 # type: =head2
14080 #: ../src/guestfs-actions.pod:6196
14081 msgid "guestfs_utimens"
14082 msgstr ""
14083
14084 # type: verbatim
14085 #: ../src/guestfs-actions.pod:6198
14086 #, no-wrap
14087 msgid ""
14088 " int\n"
14089 " guestfs_utimens (guestfs_h *g,\n"
14090 "                  const char *path,\n"
14091 "                  int64_t atsecs,\n"
14092 "                  int64_t atnsecs,\n"
14093 "                  int64_t mtsecs,\n"
14094 "                  int64_t mtnsecs);\n"
14095 "\n"
14096 msgstr ""
14097
14098 # type: textblock
14099 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4123
14100 msgid "This command sets the timestamps of a file with nanosecond precision."
14101 msgstr ""
14102
14103 # type: textblock
14104 #: ../src/guestfs-actions.pod:6209 ../fish/guestfish-actions.pod:4126
14105 msgid ""
14106 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14107 "from the epoch."
14108 msgstr ""
14109
14110 # type: textblock
14111 #: ../src/guestfs-actions.pod:6212 ../fish/guestfish-actions.pod:4129
14112 msgid ""
14113 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14114 "nanoseconds from the epoch."
14115 msgstr ""
14116
14117 # type: textblock
14118 #: ../src/guestfs-actions.pod:6215 ../fish/guestfish-actions.pod:4132
14119 msgid ""
14120 "If the C<*nsecs> field contains the special value C<-1> then the "
14121 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14122 "ignored in this case)."
14123 msgstr ""
14124
14125 # type: textblock
14126 #: ../src/guestfs-actions.pod:6219 ../fish/guestfish-actions.pod:4136
14127 msgid ""
14128 "If the C<*nsecs> field contains the special value C<-2> then the "
14129 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14130 "in this case)."
14131 msgstr ""
14132
14133 # type: =head2
14134 #: ../src/guestfs-actions.pod:6227 ../src/guestfs-structs.pod:175
14135 msgid "guestfs_version"
14136 msgstr ""
14137
14138 # type: verbatim
14139 #: ../src/guestfs-actions.pod:6229
14140 #, no-wrap
14141 msgid ""
14142 " struct guestfs_version *\n"
14143 " guestfs_version (guestfs_h *g);\n"
14144 "\n"
14145 msgstr ""
14146
14147 # type: textblock
14148 #: ../src/guestfs-actions.pod:6232 ../fish/guestfish-actions.pod:4144
14149 msgid "Return the libguestfs version number that the program is linked against."
14150 msgstr ""
14151
14152 # type: textblock
14153 #: ../src/guestfs-actions.pod:6235 ../fish/guestfish-actions.pod:4147
14154 msgid ""
14155 "Note that because of dynamic linking this is not necessarily the version of "
14156 "libguestfs that you compiled against.  You can compile the program, and then "
14157 "at runtime dynamically link against a completely different C<libguestfs.so> "
14158 "library."
14159 msgstr ""
14160
14161 # type: textblock
14162 #: ../src/guestfs-actions.pod:6240 ../fish/guestfish-actions.pod:4152
14163 msgid ""
14164 "This call was added in version C<1.0.58>.  In previous versions of "
14165 "libguestfs there was no way to get the version number.  From C code you can "
14166 "use dynamic linker functions to find out if this symbol exists (if it "
14167 "doesn't, then it's an earlier version)."
14168 msgstr ""
14169
14170 # type: textblock
14171 #: ../src/guestfs-actions.pod:6246 ../fish/guestfish-actions.pod:4158
14172 msgid ""
14173 "The call returns a structure with four elements.  The first three (C<major>, "
14174 "C<minor> and C<release>) are numbers and correspond to the usual version "
14175 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14176 "but may be used for distro-specific information."
14177 msgstr ""
14178
14179 # type: textblock
14180 #: ../src/guestfs-actions.pod:6252 ../fish/guestfish-actions.pod:4164
14181 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14182 msgstr ""
14183
14184 # type: textblock
14185 #: ../src/guestfs-actions.pod:6255 ../fish/guestfish-actions.pod:4167
14186 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14187 msgstr ""
14188
14189 # type: textblock
14190 #: ../src/guestfs-actions.pod:6257
14191 msgid ""
14192 "I<Note:> Don't use this call to test for availability of features.  In "
14193 "enterprise distributions we backport features from later versions into "
14194 "earlier versions, making this an unreliable way to test for features.  Use "
14195 "C<guestfs_available> instead."
14196 msgstr ""
14197
14198 # type: textblock
14199 #: ../src/guestfs-actions.pod:6263
14200 msgid ""
14201 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14202 "error.  I<The caller must call C<guestfs_free_version> after use>."
14203 msgstr ""
14204
14205 # type: textblock
14206 #: ../src/guestfs-actions.pod:6267
14207 msgid "(Added in 1.0.58)"
14208 msgstr ""
14209
14210 # type: =head2
14211 #: ../src/guestfs-actions.pod:6269
14212 msgid "guestfs_vfs_label"
14213 msgstr ""
14214
14215 # type: verbatim
14216 #: ../src/guestfs-actions.pod:6271
14217 #, no-wrap
14218 msgid ""
14219 " char *\n"
14220 " guestfs_vfs_label (guestfs_h *g,\n"
14221 "                    const char *device);\n"
14222 "\n"
14223 msgstr ""
14224
14225 # type: textblock
14226 #: ../src/guestfs-actions.pod:6275 ../fish/guestfish-actions.pod:4179
14227 msgid "This returns the filesystem label of the filesystem on C<device>."
14228 msgstr ""
14229
14230 # type: textblock
14231 #: ../src/guestfs-actions.pod:6278 ../fish/guestfish-actions.pod:4182
14232 msgid "If the filesystem is unlabeled, this returns the empty string."
14233 msgstr ""
14234
14235 # type: textblock
14236 #: ../src/guestfs-actions.pod:6280
14237 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14238 msgstr ""
14239
14240 # type: textblock
14241 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6322
14242 msgid "(Added in 1.3.18)"
14243 msgstr ""
14244
14245 # type: =head2
14246 #: ../src/guestfs-actions.pod:6287
14247 msgid "guestfs_vfs_type"
14248 msgstr ""
14249
14250 # type: verbatim
14251 #: ../src/guestfs-actions.pod:6289
14252 #, no-wrap
14253 msgid ""
14254 " char *\n"
14255 " guestfs_vfs_type (guestfs_h *g,\n"
14256 "                   const char *device);\n"
14257 "\n"
14258 msgstr ""
14259
14260 # type: textblock
14261 #: ../src/guestfs-actions.pod:6293 ../fish/guestfish-actions.pod:4190
14262 msgid ""
14263 "This command gets the filesystem type corresponding to the filesystem on "
14264 "C<device>."
14265 msgstr ""
14266
14267 # type: textblock
14268 #: ../src/guestfs-actions.pod:6296 ../fish/guestfish-actions.pod:4193
14269 msgid ""
14270 "For most filesystems, the result is the name of the Linux VFS module which "
14271 "would be used to mount this filesystem if you mounted it without specifying "
14272 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14273 msgstr ""
14274
14275 # type: =head2
14276 #: ../src/guestfs-actions.pod:6306
14277 msgid "guestfs_vfs_uuid"
14278 msgstr ""
14279
14280 # type: verbatim
14281 #: ../src/guestfs-actions.pod:6308
14282 #, no-wrap
14283 msgid ""
14284 " char *\n"
14285 " guestfs_vfs_uuid (guestfs_h *g,\n"
14286 "                   const char *device);\n"
14287 "\n"
14288 msgstr ""
14289
14290 # type: textblock
14291 #: ../src/guestfs-actions.pod:6312 ../fish/guestfish-actions.pod:4202
14292 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14293 msgstr ""
14294
14295 # type: textblock
14296 #: ../src/guestfs-actions.pod:6315 ../fish/guestfish-actions.pod:4205
14297 msgid "If the filesystem does not have a UUID, this returns the empty string."
14298 msgstr ""
14299
14300 # type: textblock
14301 #: ../src/guestfs-actions.pod:6317
14302 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14303 msgstr ""
14304
14305 # type: =head2
14306 #: ../src/guestfs-actions.pod:6324
14307 msgid "guestfs_vg_activate"
14308 msgstr ""
14309
14310 # type: verbatim
14311 #: ../src/guestfs-actions.pod:6326
14312 #, no-wrap
14313 msgid ""
14314 " int\n"
14315 " guestfs_vg_activate (guestfs_h *g,\n"
14316 "                      int activate,\n"
14317 "                      char *const *volgroups);\n"
14318 "\n"
14319 msgstr ""
14320
14321 # type: textblock
14322 #: ../src/guestfs-actions.pod:6331 ../fish/guestfish-actions.pod:4213
14323 msgid ""
14324 "This command activates or (if C<activate> is false) deactivates all logical "
14325 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14326 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14327 "deactivated, then those devices disappear."
14328 msgstr ""
14329
14330 # type: textblock
14331 #: ../src/guestfs-actions.pod:6337 ../fish/guestfish-actions.pod:4219
14332 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14333 msgstr ""
14334
14335 # type: textblock
14336 #: ../src/guestfs-actions.pod:6339 ../fish/guestfish-actions.pod:4221
14337 msgid ""
14338 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14339 "activated or deactivated."
14340 msgstr ""
14341
14342 # type: =head2
14343 #: ../src/guestfs-actions.pod:6346
14344 msgid "guestfs_vg_activate_all"
14345 msgstr ""
14346
14347 # type: verbatim
14348 #: ../src/guestfs-actions.pod:6348
14349 #, no-wrap
14350 msgid ""
14351 " int\n"
14352 " guestfs_vg_activate_all (guestfs_h *g,\n"
14353 "                          int activate);\n"
14354 "\n"
14355 msgstr ""
14356
14357 # type: textblock
14358 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4228
14359 msgid ""
14360 "This command activates or (if C<activate> is false) deactivates all logical "
14361 "volumes in all volume groups.  If activated, then they are made known to the "
14362 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14363 "those devices disappear."
14364 msgstr ""
14365
14366 # type: textblock
14367 #: ../src/guestfs-actions.pod:6358 ../fish/guestfish-actions.pod:4234
14368 msgid "This command is the same as running C<vgchange -a y|n>"
14369 msgstr ""
14370
14371 # type: =head2
14372 #: ../src/guestfs-actions.pod:6364
14373 msgid "guestfs_vgcreate"
14374 msgstr ""
14375
14376 # type: verbatim
14377 #: ../src/guestfs-actions.pod:6366
14378 #, no-wrap
14379 msgid ""
14380 " int\n"
14381 " guestfs_vgcreate (guestfs_h *g,\n"
14382 "                   const char *volgroup,\n"
14383 "                   char *const *physvols);\n"
14384 "\n"
14385 msgstr ""
14386
14387 # type: textblock
14388 #: ../src/guestfs-actions.pod:6371 ../fish/guestfish-actions.pod:4240
14389 msgid ""
14390 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14391 "of physical volumes C<physvols>."
14392 msgstr ""
14393
14394 # type: =head2
14395 #: ../src/guestfs-actions.pod:6378
14396 msgid "guestfs_vglvuuids"
14397 msgstr ""
14398
14399 # type: verbatim
14400 #: ../src/guestfs-actions.pod:6380
14401 #, no-wrap
14402 msgid ""
14403 " char **\n"
14404 " guestfs_vglvuuids (guestfs_h *g,\n"
14405 "                    const char *vgname);\n"
14406 "\n"
14407 msgstr ""
14408
14409 # type: textblock
14410 #: ../src/guestfs-actions.pod:6384 ../fish/guestfish-actions.pod:4247
14411 msgid ""
14412 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14413 "volumes created in this volume group."
14414 msgstr ""
14415
14416 # type: textblock
14417 #: ../src/guestfs-actions.pod:6387
14418 msgid ""
14419 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14420 "associate logical volumes and volume groups."
14421 msgstr ""
14422
14423 # type: textblock
14424 #: ../src/guestfs-actions.pod:6390
14425 msgid "See also C<guestfs_vgpvuuids>."
14426 msgstr ""
14427
14428 # type: =head2
14429 #: ../src/guestfs-actions.pod:6398
14430 msgid "guestfs_vgpvuuids"
14431 msgstr ""
14432
14433 # type: verbatim
14434 #: ../src/guestfs-actions.pod:6400
14435 #, no-wrap
14436 msgid ""
14437 " char **\n"
14438 " guestfs_vgpvuuids (guestfs_h *g,\n"
14439 "                    const char *vgname);\n"
14440 "\n"
14441 msgstr ""
14442
14443 # type: textblock
14444 #: ../src/guestfs-actions.pod:6404 ../fish/guestfish-actions.pod:4259
14445 msgid ""
14446 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14447 "volumes that this volume group resides on."
14448 msgstr ""
14449
14450 # type: textblock
14451 #: ../src/guestfs-actions.pod:6407
14452 msgid ""
14453 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14454 "associate physical volumes and volume groups."
14455 msgstr ""
14456
14457 # type: textblock
14458 #: ../src/guestfs-actions.pod:6410
14459 msgid "See also C<guestfs_vglvuuids>."
14460 msgstr ""
14461
14462 # type: =head2
14463 #: ../src/guestfs-actions.pod:6418
14464 msgid "guestfs_vgremove"
14465 msgstr ""
14466
14467 # type: verbatim
14468 #: ../src/guestfs-actions.pod:6420
14469 #, no-wrap
14470 msgid ""
14471 " int\n"
14472 " guestfs_vgremove (guestfs_h *g,\n"
14473 "                   const char *vgname);\n"
14474 "\n"
14475 msgstr ""
14476
14477 # type: textblock
14478 #: ../src/guestfs-actions.pod:6424 ../fish/guestfish-actions.pod:4271
14479 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14480 msgstr ""
14481
14482 # type: textblock
14483 #: ../src/guestfs-actions.pod:6426 ../fish/guestfish-actions.pod:4273
14484 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14485 msgstr ""
14486
14487 # type: =head2
14488 #: ../src/guestfs-actions.pod:6433
14489 msgid "guestfs_vgrename"
14490 msgstr ""
14491
14492 # type: verbatim
14493 #: ../src/guestfs-actions.pod:6435
14494 #, no-wrap
14495 msgid ""
14496 " int\n"
14497 " guestfs_vgrename (guestfs_h *g,\n"
14498 "                   const char *volgroup,\n"
14499 "                   const char *newvolgroup);\n"
14500 "\n"
14501 msgstr ""
14502
14503 # type: textblock
14504 #: ../src/guestfs-actions.pod:6440 ../fish/guestfish-actions.pod:4280
14505 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14506 msgstr ""
14507
14508 # type: =head2
14509 #: ../src/guestfs-actions.pod:6446
14510 msgid "guestfs_vgs"
14511 msgstr ""
14512
14513 # type: verbatim
14514 #: ../src/guestfs-actions.pod:6448
14515 #, no-wrap
14516 msgid ""
14517 " char **\n"
14518 " guestfs_vgs (guestfs_h *g);\n"
14519 "\n"
14520 msgstr ""
14521
14522 # type: textblock
14523 #: ../src/guestfs-actions.pod:6451 ../fish/guestfish-actions.pod:4286
14524 msgid ""
14525 "List all the volumes groups detected.  This is the equivalent of the "
14526 "L<vgs(8)> command."
14527 msgstr ""
14528
14529 # type: textblock
14530 #: ../src/guestfs-actions.pod:6454 ../fish/guestfish-actions.pod:4289
14531 msgid ""
14532 "This returns a list of just the volume group names that were detected "
14533 "(eg. C<VolGroup00>)."
14534 msgstr ""
14535
14536 # type: textblock
14537 #: ../src/guestfs-actions.pod:6457
14538 msgid "See also C<guestfs_vgs_full>."
14539 msgstr ""
14540
14541 # type: =head2
14542 #: ../src/guestfs-actions.pod:6465
14543 msgid "guestfs_vgs_full"
14544 msgstr ""
14545
14546 # type: verbatim
14547 #: ../src/guestfs-actions.pod:6467
14548 #, no-wrap
14549 msgid ""
14550 " struct guestfs_lvm_vg_list *\n"
14551 " guestfs_vgs_full (guestfs_h *g);\n"
14552 "\n"
14553 msgstr ""
14554
14555 # type: textblock
14556 #: ../src/guestfs-actions.pod:6470 ../fish/guestfish-actions.pod:4298
14557 msgid ""
14558 "List all the volumes groups detected.  This is the equivalent of the "
14559 "L<vgs(8)> command.  The \"full\" version includes all fields."
14560 msgstr ""
14561
14562 # type: textblock
14563 #: ../src/guestfs-actions.pod:6473
14564 msgid ""
14565 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
14566 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
14567 "must call C<guestfs_free_lvm_vg_list> after use>."
14568 msgstr ""
14569
14570 # type: =head2
14571 #: ../src/guestfs-actions.pod:6480
14572 msgid "guestfs_vgscan"
14573 msgstr ""
14574
14575 # type: verbatim
14576 #: ../src/guestfs-actions.pod:6482
14577 #, no-wrap
14578 msgid ""
14579 " int\n"
14580 " guestfs_vgscan (guestfs_h *g);\n"
14581 "\n"
14582 msgstr ""
14583
14584 # type: textblock
14585 #: ../src/guestfs-actions.pod:6485 ../fish/guestfish-actions.pod:4305
14586 msgid ""
14587 "This rescans all block devices and rebuilds the list of LVM physical "
14588 "volumes, volume groups and logical volumes."
14589 msgstr ""
14590
14591 # type: =head2
14592 #: ../src/guestfs-actions.pod:6492
14593 msgid "guestfs_vguuid"
14594 msgstr ""
14595
14596 # type: verbatim
14597 #: ../src/guestfs-actions.pod:6494
14598 #, no-wrap
14599 msgid ""
14600 " char *\n"
14601 " guestfs_vguuid (guestfs_h *g,\n"
14602 "                 const char *vgname);\n"
14603 "\n"
14604 msgstr ""
14605
14606 # type: textblock
14607 #: ../src/guestfs-actions.pod:6498 ../fish/guestfish-actions.pod:4312
14608 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14609 msgstr ""
14610
14611 # type: =head2
14612 #: ../src/guestfs-actions.pod:6505
14613 msgid "guestfs_wait_ready"
14614 msgstr ""
14615
14616 # type: verbatim
14617 #: ../src/guestfs-actions.pod:6507
14618 #, no-wrap
14619 msgid ""
14620 " int\n"
14621 " guestfs_wait_ready (guestfs_h *g);\n"
14622 "\n"
14623 msgstr ""
14624
14625 # type: textblock
14626 #: ../src/guestfs-actions.pod:6510
14627 msgid "This function is a no op."
14628 msgstr ""
14629
14630 # type: textblock
14631 #: ../src/guestfs-actions.pod:6512
14632 msgid ""
14633 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14634 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14635 "is no longer necessary because C<guestfs_launch> now does the waiting."
14636 msgstr ""
14637
14638 # type: textblock
14639 #: ../src/guestfs-actions.pod:6517
14640 msgid ""
14641 "If you see any calls to this function in code then you can just remove them, "
14642 "unless you want to retain compatibility with older versions of the API."
14643 msgstr ""
14644
14645 # type: =head2
14646 #: ../src/guestfs-actions.pod:6525
14647 msgid "guestfs_wc_c"
14648 msgstr ""
14649
14650 # type: verbatim
14651 #: ../src/guestfs-actions.pod:6527
14652 #, no-wrap
14653 msgid ""
14654 " int\n"
14655 " guestfs_wc_c (guestfs_h *g,\n"
14656 "               const char *path);\n"
14657 "\n"
14658 msgstr ""
14659
14660 # type: textblock
14661 #: ../src/guestfs-actions.pod:6531 ../fish/guestfish-actions.pod:4318
14662 msgid ""
14663 "This command counts the characters in a file, using the C<wc -c> external "
14664 "command."
14665 msgstr ""
14666
14667 # type: =head2
14668 #: ../src/guestfs-actions.pod:6538
14669 msgid "guestfs_wc_l"
14670 msgstr ""
14671
14672 # type: verbatim
14673 #: ../src/guestfs-actions.pod:6540
14674 #, no-wrap
14675 msgid ""
14676 " int\n"
14677 " guestfs_wc_l (guestfs_h *g,\n"
14678 "               const char *path);\n"
14679 "\n"
14680 msgstr ""
14681
14682 # type: textblock
14683 #: ../src/guestfs-actions.pod:6544 ../fish/guestfish-actions.pod:4325
14684 msgid ""
14685 "This command counts the lines in a file, using the C<wc -l> external "
14686 "command."
14687 msgstr ""
14688
14689 # type: =head2
14690 #: ../src/guestfs-actions.pod:6551
14691 msgid "guestfs_wc_w"
14692 msgstr ""
14693
14694 # type: verbatim
14695 #: ../src/guestfs-actions.pod:6553
14696 #, no-wrap
14697 msgid ""
14698 " int\n"
14699 " guestfs_wc_w (guestfs_h *g,\n"
14700 "               const char *path);\n"
14701 "\n"
14702 msgstr ""
14703
14704 # type: textblock
14705 #: ../src/guestfs-actions.pod:6557 ../fish/guestfish-actions.pod:4332
14706 msgid ""
14707 "This command counts the words in a file, using the C<wc -w> external "
14708 "command."
14709 msgstr ""
14710
14711 # type: =head2
14712 #: ../src/guestfs-actions.pod:6564
14713 msgid "guestfs_write"
14714 msgstr ""
14715
14716 # type: verbatim
14717 #: ../src/guestfs-actions.pod:6566
14718 #, no-wrap
14719 msgid ""
14720 " int\n"
14721 " guestfs_write (guestfs_h *g,\n"
14722 "                const char *path,\n"
14723 "                const char *content,\n"
14724 "                size_t content_size);\n"
14725 "\n"
14726 msgstr ""
14727
14728 # type: textblock
14729 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4339
14730 msgid ""
14731 "This call creates a file called C<path>.  The content of the file is the "
14732 "string C<content> (which can contain any 8 bit data)."
14733 msgstr ""
14734
14735 # type: =head2
14736 #: ../src/guestfs-actions.pod:6582
14737 msgid "guestfs_write_file"
14738 msgstr ""
14739
14740 # type: verbatim
14741 #: ../src/guestfs-actions.pod:6584
14742 #, no-wrap
14743 msgid ""
14744 " int\n"
14745 " guestfs_write_file (guestfs_h *g,\n"
14746 "                     const char *path,\n"
14747 "                     const char *content,\n"
14748 "                     int size);\n"
14749 "\n"
14750 msgstr ""
14751
14752 # type: textblock
14753 #: ../src/guestfs-actions.pod:6590 ../fish/guestfish-actions.pod:4349
14754 msgid ""
14755 "This call creates a file called C<path>.  The contents of the file is the "
14756 "string C<content> (which can contain any 8 bit data), with length C<size>."
14757 msgstr ""
14758
14759 # type: textblock
14760 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4353
14761 msgid ""
14762 "As a special case, if C<size> is C<0> then the length is calculated using "
14763 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14764 msgstr ""
14765
14766 # type: textblock
14767 #: ../src/guestfs-actions.pod:6598 ../fish/guestfish-actions.pod:4357
14768 msgid ""
14769 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14770 "I<not> work, even if the length is specified."
14771 msgstr ""
14772
14773 # type: textblock
14774 #: ../src/guestfs-actions.pod:6606 ../fish/guestfish-actions.pod:4363
14775 msgid "This function is deprecated.  In new code, use the C<write> call instead."
14776 msgstr ""
14777
14778 # type: =head2
14779 #: ../src/guestfs-actions.pod:6615
14780 msgid "guestfs_zegrep"
14781 msgstr ""
14782
14783 # type: verbatim
14784 #: ../src/guestfs-actions.pod:6617
14785 #, no-wrap
14786 msgid ""
14787 " char **\n"
14788 " guestfs_zegrep (guestfs_h *g,\n"
14789 "                 const char *regex,\n"
14790 "                 const char *path);\n"
14791 "\n"
14792 msgstr ""
14793
14794 # type: textblock
14795 #: ../src/guestfs-actions.pod:6622 ../fish/guestfish-actions.pod:4374
14796 msgid "This calls the external C<zegrep> program and returns the matching lines."
14797 msgstr ""
14798
14799 # type: =head2
14800 #: ../src/guestfs-actions.pod:6634
14801 msgid "guestfs_zegrepi"
14802 msgstr ""
14803
14804 # type: verbatim
14805 #: ../src/guestfs-actions.pod:6636
14806 #, no-wrap
14807 msgid ""
14808 " char **\n"
14809 " guestfs_zegrepi (guestfs_h *g,\n"
14810 "                  const char *regex,\n"
14811 "                  const char *path);\n"
14812 "\n"
14813 msgstr ""
14814
14815 # type: textblock
14816 #: ../src/guestfs-actions.pod:6641 ../fish/guestfish-actions.pod:4384
14817 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14818 msgstr ""
14819
14820 # type: =head2
14821 #: ../src/guestfs-actions.pod:6653
14822 msgid "guestfs_zero"
14823 msgstr ""
14824
14825 # type: verbatim
14826 #: ../src/guestfs-actions.pod:6655
14827 #, no-wrap
14828 msgid ""
14829 " int\n"
14830 " guestfs_zero (guestfs_h *g,\n"
14831 "               const char *device);\n"
14832 "\n"
14833 msgstr ""
14834
14835 # type: textblock
14836 #: ../src/guestfs-actions.pod:6659 ../fish/guestfish-actions.pod:4394
14837 msgid "This command writes zeroes over the first few blocks of C<device>."
14838 msgstr ""
14839
14840 # type: textblock
14841 #: ../src/guestfs-actions.pod:6661 ../fish/guestfish-actions.pod:4396
14842 msgid ""
14843 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14844 "securely wipe the device).  It should be sufficient to remove any partition "
14845 "tables, filesystem superblocks and so on."
14846 msgstr ""
14847
14848 # type: textblock
14849 #: ../src/guestfs-actions.pod:6665
14850 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14851 msgstr ""
14852
14853 # type: =head2
14854 #: ../src/guestfs-actions.pod:6676
14855 msgid "guestfs_zero_device"
14856 msgstr ""
14857
14858 # type: verbatim
14859 #: ../src/guestfs-actions.pod:6678
14860 #, no-wrap
14861 msgid ""
14862 " int\n"
14863 " guestfs_zero_device (guestfs_h *g,\n"
14864 "                      const char *device);\n"
14865 "\n"
14866 msgstr ""
14867
14868 # type: textblock
14869 #: ../src/guestfs-actions.pod:6682
14870 msgid ""
14871 "This command writes zeroes over the entire C<device>.  Compare with "
14872 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14873 msgstr ""
14874
14875 # type: textblock
14876 #: ../src/guestfs-actions.pod:6696
14877 msgid "(Added in 1.3.1)"
14878 msgstr ""
14879
14880 # type: =head2
14881 #: ../src/guestfs-actions.pod:6698
14882 msgid "guestfs_zerofree"
14883 msgstr ""
14884
14885 # type: verbatim
14886 #: ../src/guestfs-actions.pod:6700
14887 #, no-wrap
14888 msgid ""
14889 " int\n"
14890 " guestfs_zerofree (guestfs_h *g,\n"
14891 "                   const char *device);\n"
14892 "\n"
14893 msgstr ""
14894
14895 # type: textblock
14896 #: ../src/guestfs-actions.pod:6704 ../fish/guestfish-actions.pod:4417
14897 msgid ""
14898 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14899 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14900 "possible to compress the filesystem more effectively."
14901 msgstr ""
14902
14903 # type: textblock
14904 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4422
14905 msgid "You should B<not> run this program if the filesystem is mounted."
14906 msgstr ""
14907
14908 # type: textblock
14909 #: ../src/guestfs-actions.pod:6712 ../fish/guestfish-actions.pod:4425
14910 msgid ""
14911 "It is possible that using this program can damage the filesystem or data on "
14912 "the filesystem."
14913 msgstr ""
14914
14915 # type: =head2
14916 #: ../src/guestfs-actions.pod:6719
14917 msgid "guestfs_zfgrep"
14918 msgstr ""
14919
14920 # type: verbatim
14921 #: ../src/guestfs-actions.pod:6721
14922 #, no-wrap
14923 msgid ""
14924 " char **\n"
14925 " guestfs_zfgrep (guestfs_h *g,\n"
14926 "                 const char *pattern,\n"
14927 "                 const char *path);\n"
14928 "\n"
14929 msgstr ""
14930
14931 # type: textblock
14932 #: ../src/guestfs-actions.pod:6726 ../fish/guestfish-actions.pod:4432
14933 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14934 msgstr ""
14935
14936 # type: =head2
14937 #: ../src/guestfs-actions.pod:6738
14938 msgid "guestfs_zfgrepi"
14939 msgstr ""
14940
14941 # type: verbatim
14942 #: ../src/guestfs-actions.pod:6740
14943 #, no-wrap
14944 msgid ""
14945 " char **\n"
14946 " guestfs_zfgrepi (guestfs_h *g,\n"
14947 "                  const char *pattern,\n"
14948 "                  const char *path);\n"
14949 "\n"
14950 msgstr ""
14951
14952 # type: textblock
14953 #: ../src/guestfs-actions.pod:6745 ../fish/guestfish-actions.pod:4442
14954 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14955 msgstr ""
14956
14957 # type: =head2
14958 #: ../src/guestfs-actions.pod:6757
14959 msgid "guestfs_zfile"
14960 msgstr ""
14961
14962 # type: verbatim
14963 #: ../src/guestfs-actions.pod:6759
14964 #, no-wrap
14965 msgid ""
14966 " char *\n"
14967 " guestfs_zfile (guestfs_h *g,\n"
14968 "                const char *meth,\n"
14969 "                const char *path);\n"
14970 "\n"
14971 msgstr ""
14972
14973 # type: textblock
14974 #: ../src/guestfs-actions.pod:6764 ../fish/guestfish-actions.pod:4452
14975 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14976 msgstr ""
14977
14978 # type: textblock
14979 #: ../src/guestfs-actions.pod:6767 ../fish/guestfish-actions.pod:4455
14980 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14981 msgstr ""
14982
14983 # type: textblock
14984 #: ../src/guestfs-actions.pod:6769
14985 msgid ""
14986 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14987 "files."
14988 msgstr ""
14989
14990 # type: textblock
14991 #: ../src/guestfs-actions.pod:6775 ../fish/guestfish-actions.pod:4460
14992 msgid "This function is deprecated.  In new code, use the C<file> call instead."
14993 msgstr ""
14994
14995 # type: =head2
14996 #: ../src/guestfs-actions.pod:6784
14997 msgid "guestfs_zgrep"
14998 msgstr ""
14999
15000 # type: verbatim
15001 #: ../src/guestfs-actions.pod:6786
15002 #, no-wrap
15003 msgid ""
15004 " char **\n"
15005 " guestfs_zgrep (guestfs_h *g,\n"
15006 "                const char *regex,\n"
15007 "                const char *path);\n"
15008 "\n"
15009 msgstr ""
15010
15011 # type: textblock
15012 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4471
15013 msgid "This calls the external C<zgrep> program and returns the matching lines."
15014 msgstr ""
15015
15016 # type: =head2
15017 #: ../src/guestfs-actions.pod:6803
15018 msgid "guestfs_zgrepi"
15019 msgstr ""
15020
15021 # type: verbatim
15022 #: ../src/guestfs-actions.pod:6805
15023 #, no-wrap
15024 msgid ""
15025 " char **\n"
15026 " guestfs_zgrepi (guestfs_h *g,\n"
15027 "                 const char *regex,\n"
15028 "                 const char *path);\n"
15029 "\n"
15030 msgstr ""
15031
15032 # type: textblock
15033 #: ../src/guestfs-actions.pod:6810 ../fish/guestfish-actions.pod:4481
15034 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15035 msgstr ""
15036
15037 # type: =item
15038 #: ../src/guestfs-availability.pod:3
15039 msgid "B<augeas>"
15040 msgstr ""
15041
15042 # type: textblock
15043 #: ../src/guestfs-availability.pod:5
15044 msgid ""
15045 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15046 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15047 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15048 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15049 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15050 msgstr ""
15051
15052 # type: =item
15053 #: ../src/guestfs-availability.pod:21
15054 msgid "B<inotify>"
15055 msgstr ""
15056
15057 # type: textblock
15058 #: ../src/guestfs-availability.pod:23
15059 msgid ""
15060 "The following functions: L</guestfs_inotify_add_watch> "
15061 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15062 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15063 msgstr ""
15064
15065 # type: =item
15066 #: ../src/guestfs-availability.pod:31
15067 msgid "B<linuxfsuuid>"
15068 msgstr ""
15069
15070 # type: textblock
15071 #: ../src/guestfs-availability.pod:33
15072 msgid ""
15073 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15074 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15075 msgstr ""
15076
15077 # type: =item
15078 #: ../src/guestfs-availability.pod:40
15079 msgid "B<linuxmodules>"
15080 msgstr ""
15081
15082 # type: textblock
15083 #: ../src/guestfs-availability.pod:42
15084 msgid "The following functions: L</guestfs_modprobe>"
15085 msgstr ""
15086
15087 # type: =item
15088 #: ../src/guestfs-availability.pod:45
15089 msgid "B<linuxxattrs>"
15090 msgstr ""
15091
15092 # type: textblock
15093 #: ../src/guestfs-availability.pod:47
15094 msgid ""
15095 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15096 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15097 "L</guestfs_removexattr> L</guestfs_setxattr>"
15098 msgstr ""
15099
15100 # type: =item
15101 #: ../src/guestfs-availability.pod:56
15102 msgid "B<luks>"
15103 msgstr ""
15104
15105 # type: textblock
15106 #: ../src/guestfs-availability.pod:58
15107 msgid ""
15108 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15109 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15110 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15111 msgstr ""
15112
15113 # type: =item
15114 #: ../src/guestfs-availability.pod:67
15115 msgid "B<lvm2>"
15116 msgstr ""
15117
15118 # type: textblock
15119 #: ../src/guestfs-availability.pod:69
15120 msgid ""
15121 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15122 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15123 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15124 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15125 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15126 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15127 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15128 "L</guestfs_vgs_full>"
15129 msgstr ""
15130
15131 # type: =item
15132 #: ../src/guestfs-availability.pod:92
15133 msgid "B<mknod>"
15134 msgstr ""
15135
15136 # type: textblock
15137 #: ../src/guestfs-availability.pod:94
15138 msgid ""
15139 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15140 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15141 msgstr ""
15142
15143 # type: =item
15144 #: ../src/guestfs-availability.pod:100
15145 msgid "B<ntfs3g>"
15146 msgstr ""
15147
15148 # type: textblock
15149 #: ../src/guestfs-availability.pod:102
15150 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15151 msgstr ""
15152
15153 # type: =item
15154 #: ../src/guestfs-availability.pod:105
15155 msgid "B<ntfsprogs>"
15156 msgstr ""
15157
15158 # type: textblock
15159 #: ../src/guestfs-availability.pod:107
15160 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15161 msgstr ""
15162
15163 # type: =item
15164 #: ../src/guestfs-availability.pod:111
15165 msgid "B<realpath>"
15166 msgstr ""
15167
15168 # type: textblock
15169 #: ../src/guestfs-availability.pod:113
15170 msgid "The following functions: L</guestfs_realpath>"
15171 msgstr ""
15172
15173 # type: =item
15174 #: ../src/guestfs-availability.pod:116
15175 msgid "B<scrub>"
15176 msgstr ""
15177
15178 # type: textblock
15179 #: ../src/guestfs-availability.pod:118
15180 msgid ""
15181 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15182 "L</guestfs_scrub_freespace>"
15183 msgstr ""
15184
15185 # type: =item
15186 #: ../src/guestfs-availability.pod:123
15187 msgid "B<selinux>"
15188 msgstr ""
15189
15190 # type: textblock
15191 #: ../src/guestfs-availability.pod:125
15192 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15193 msgstr ""
15194
15195 # type: =item
15196 #: ../src/guestfs-availability.pod:129
15197 msgid "B<xz>"
15198 msgstr ""
15199
15200 # type: textblock
15201 #: ../src/guestfs-availability.pod:131
15202 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15203 msgstr ""
15204
15205 # type: =item
15206 #: ../src/guestfs-availability.pod:135
15207 msgid "B<zerofree>"
15208 msgstr ""
15209
15210 # type: textblock
15211 #: ../src/guestfs-availability.pod:137
15212 msgid "The following functions: L</guestfs_zerofree>"
15213 msgstr ""
15214
15215 # type: =head2
15216 #: ../src/guestfs-structs.pod:1
15217 msgid "guestfs_int_bool"
15218 msgstr ""
15219
15220 # type: verbatim
15221 #: ../src/guestfs-structs.pod:3
15222 #, no-wrap
15223 msgid ""
15224 " struct guestfs_int_bool {\n"
15225 "   int32_t i;\n"
15226 "   int32_t b;\n"
15227 " };\n"
15228 " \n"
15229 msgstr ""
15230
15231 # type: verbatim
15232 #: ../src/guestfs-structs.pod:8
15233 #, no-wrap
15234 msgid ""
15235 " struct guestfs_int_bool_list {\n"
15236 "   uint32_t len; /* Number of elements in list. */\n"
15237 "   struct guestfs_int_bool *val; /* Elements. */\n"
15238 " };\n"
15239 " \n"
15240 msgstr ""
15241
15242 # type: verbatim
15243 #: ../src/guestfs-structs.pod:13
15244 #, no-wrap
15245 msgid ""
15246 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15247 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15248 "\n"
15249 msgstr ""
15250
15251 # type: =head2
15252 #: ../src/guestfs-structs.pod:16
15253 msgid "guestfs_lvm_pv"
15254 msgstr ""
15255
15256 # type: verbatim
15257 #: ../src/guestfs-structs.pod:18
15258 #, no-wrap
15259 msgid ""
15260 " struct guestfs_lvm_pv {\n"
15261 "   char *pv_name;\n"
15262 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15263 "*/\n"
15264 "   char pv_uuid[32];\n"
15265 "   char *pv_fmt;\n"
15266 "   uint64_t pv_size;\n"
15267 "   uint64_t dev_size;\n"
15268 "   uint64_t pv_free;\n"
15269 "   uint64_t pv_used;\n"
15270 "   char *pv_attr;\n"
15271 "   int64_t pv_pe_count;\n"
15272 "   int64_t pv_pe_alloc_count;\n"
15273 "   char *pv_tags;\n"
15274 "   uint64_t pe_start;\n"
15275 "   int64_t pv_mda_count;\n"
15276 "   uint64_t pv_mda_free;\n"
15277 " };\n"
15278 " \n"
15279 msgstr ""
15280
15281 # type: verbatim
15282 #: ../src/guestfs-structs.pod:36
15283 #, no-wrap
15284 msgid ""
15285 " struct guestfs_lvm_pv_list {\n"
15286 "   uint32_t len; /* Number of elements in list. */\n"
15287 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15288 " };\n"
15289 " \n"
15290 msgstr ""
15291
15292 # type: verbatim
15293 #: ../src/guestfs-structs.pod:41
15294 #, no-wrap
15295 msgid ""
15296 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15297 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15298 "\n"
15299 msgstr ""
15300
15301 # type: =head2
15302 #: ../src/guestfs-structs.pod:44
15303 msgid "guestfs_lvm_vg"
15304 msgstr ""
15305
15306 # type: verbatim
15307 #: ../src/guestfs-structs.pod:46
15308 #, no-wrap
15309 msgid ""
15310 " struct guestfs_lvm_vg {\n"
15311 "   char *vg_name;\n"
15312 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15313 "*/\n"
15314 "   char vg_uuid[32];\n"
15315 "   char *vg_fmt;\n"
15316 "   char *vg_attr;\n"
15317 "   uint64_t vg_size;\n"
15318 "   uint64_t vg_free;\n"
15319 "   char *vg_sysid;\n"
15320 "   uint64_t vg_extent_size;\n"
15321 "   int64_t vg_extent_count;\n"
15322 "   int64_t vg_free_count;\n"
15323 "   int64_t max_lv;\n"
15324 "   int64_t max_pv;\n"
15325 "   int64_t pv_count;\n"
15326 "   int64_t lv_count;\n"
15327 "   int64_t snap_count;\n"
15328 "   int64_t vg_seqno;\n"
15329 "   char *vg_tags;\n"
15330 "   int64_t vg_mda_count;\n"
15331 "   uint64_t vg_mda_free;\n"
15332 " };\n"
15333 " \n"
15334 msgstr ""
15335
15336 # type: verbatim
15337 #: ../src/guestfs-structs.pod:69
15338 #, no-wrap
15339 msgid ""
15340 " struct guestfs_lvm_vg_list {\n"
15341 "   uint32_t len; /* Number of elements in list. */\n"
15342 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15343 " };\n"
15344 " \n"
15345 msgstr ""
15346
15347 # type: verbatim
15348 #: ../src/guestfs-structs.pod:74
15349 #, no-wrap
15350 msgid ""
15351 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15352 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15353 "\n"
15354 msgstr ""
15355
15356 # type: =head2
15357 #: ../src/guestfs-structs.pod:77
15358 msgid "guestfs_lvm_lv"
15359 msgstr ""
15360
15361 # type: verbatim
15362 #: ../src/guestfs-structs.pod:79
15363 #, no-wrap
15364 msgid ""
15365 " struct guestfs_lvm_lv {\n"
15366 "   char *lv_name;\n"
15367 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15368 "*/\n"
15369 "   char lv_uuid[32];\n"
15370 "   char *lv_attr;\n"
15371 "   int64_t lv_major;\n"
15372 "   int64_t lv_minor;\n"
15373 "   int64_t lv_kernel_major;\n"
15374 "   int64_t lv_kernel_minor;\n"
15375 "   uint64_t lv_size;\n"
15376 "   int64_t seg_count;\n"
15377 "   char *origin;\n"
15378 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15379 "   float snap_percent;\n"
15380 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15381 "   float copy_percent;\n"
15382 "   char *move_pv;\n"
15383 "   char *lv_tags;\n"
15384 "   char *mirror_log;\n"
15385 "   char *modules;\n"
15386 " };\n"
15387 " \n"
15388 msgstr ""
15389
15390 # type: verbatim
15391 #: ../src/guestfs-structs.pod:101
15392 #, no-wrap
15393 msgid ""
15394 " struct guestfs_lvm_lv_list {\n"
15395 "   uint32_t len; /* Number of elements in list. */\n"
15396 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15397 " };\n"
15398 " \n"
15399 msgstr ""
15400
15401 # type: verbatim
15402 #: ../src/guestfs-structs.pod:106
15403 #, no-wrap
15404 msgid ""
15405 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15406 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15407 "\n"
15408 msgstr ""
15409
15410 # type: verbatim
15411 #: ../src/guestfs-structs.pod:111
15412 #, no-wrap
15413 msgid ""
15414 " struct guestfs_stat {\n"
15415 "   int64_t dev;\n"
15416 "   int64_t ino;\n"
15417 "   int64_t mode;\n"
15418 "   int64_t nlink;\n"
15419 "   int64_t uid;\n"
15420 "   int64_t gid;\n"
15421 "   int64_t rdev;\n"
15422 "   int64_t size;\n"
15423 "   int64_t blksize;\n"
15424 "   int64_t blocks;\n"
15425 "   int64_t atime;\n"
15426 "   int64_t mtime;\n"
15427 "   int64_t ctime;\n"
15428 " };\n"
15429 " \n"
15430 msgstr ""
15431
15432 # type: verbatim
15433 #: ../src/guestfs-structs.pod:127
15434 #, no-wrap
15435 msgid ""
15436 " struct guestfs_stat_list {\n"
15437 "   uint32_t len; /* Number of elements in list. */\n"
15438 "   struct guestfs_stat *val; /* Elements. */\n"
15439 " };\n"
15440 " \n"
15441 msgstr ""
15442
15443 # type: verbatim
15444 #: ../src/guestfs-structs.pod:132
15445 #, no-wrap
15446 msgid ""
15447 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15448 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15449 "\n"
15450 msgstr ""
15451
15452 # type: verbatim
15453 #: ../src/guestfs-structs.pod:137
15454 #, no-wrap
15455 msgid ""
15456 " struct guestfs_statvfs {\n"
15457 "   int64_t bsize;\n"
15458 "   int64_t frsize;\n"
15459 "   int64_t blocks;\n"
15460 "   int64_t bfree;\n"
15461 "   int64_t bavail;\n"
15462 "   int64_t files;\n"
15463 "   int64_t ffree;\n"
15464 "   int64_t favail;\n"
15465 "   int64_t fsid;\n"
15466 "   int64_t flag;\n"
15467 "   int64_t namemax;\n"
15468 " };\n"
15469 " \n"
15470 msgstr ""
15471
15472 # type: verbatim
15473 #: ../src/guestfs-structs.pod:151
15474 #, no-wrap
15475 msgid ""
15476 " struct guestfs_statvfs_list {\n"
15477 "   uint32_t len; /* Number of elements in list. */\n"
15478 "   struct guestfs_statvfs *val; /* Elements. */\n"
15479 " };\n"
15480 " \n"
15481 msgstr ""
15482
15483 # type: verbatim
15484 #: ../src/guestfs-structs.pod:156
15485 #, no-wrap
15486 msgid ""
15487 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15488 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15489 "\n"
15490 msgstr ""
15491
15492 # type: =head2
15493 #: ../src/guestfs-structs.pod:159
15494 msgid "guestfs_dirent"
15495 msgstr ""
15496
15497 # type: verbatim
15498 #: ../src/guestfs-structs.pod:161
15499 #, no-wrap
15500 msgid ""
15501 " struct guestfs_dirent {\n"
15502 "   int64_t ino;\n"
15503 "   char ftyp;\n"
15504 "   char *name;\n"
15505 " };\n"
15506 " \n"
15507 msgstr ""
15508
15509 # type: verbatim
15510 #: ../src/guestfs-structs.pod:167
15511 #, no-wrap
15512 msgid ""
15513 " struct guestfs_dirent_list {\n"
15514 "   uint32_t len; /* Number of elements in list. */\n"
15515 "   struct guestfs_dirent *val; /* Elements. */\n"
15516 " };\n"
15517 " \n"
15518 msgstr ""
15519
15520 # type: verbatim
15521 #: ../src/guestfs-structs.pod:172
15522 #, no-wrap
15523 msgid ""
15524 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15525 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15526 "\n"
15527 msgstr ""
15528
15529 # type: verbatim
15530 #: ../src/guestfs-structs.pod:177
15531 #, no-wrap
15532 msgid ""
15533 " struct guestfs_version {\n"
15534 "   int64_t major;\n"
15535 "   int64_t minor;\n"
15536 "   int64_t release;\n"
15537 "   char *extra;\n"
15538 " };\n"
15539 " \n"
15540 msgstr ""
15541
15542 # type: verbatim
15543 #: ../src/guestfs-structs.pod:184
15544 #, no-wrap
15545 msgid ""
15546 " struct guestfs_version_list {\n"
15547 "   uint32_t len; /* Number of elements in list. */\n"
15548 "   struct guestfs_version *val; /* Elements. */\n"
15549 " };\n"
15550 " \n"
15551 msgstr ""
15552
15553 # type: verbatim
15554 #: ../src/guestfs-structs.pod:189
15555 #, no-wrap
15556 msgid ""
15557 " void guestfs_free_version (struct guestfs_free_version *);\n"
15558 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15559 "\n"
15560 msgstr ""
15561
15562 # type: =head2
15563 #: ../src/guestfs-structs.pod:192
15564 msgid "guestfs_xattr"
15565 msgstr ""
15566
15567 # type: verbatim
15568 #: ../src/guestfs-structs.pod:194
15569 #, no-wrap
15570 msgid ""
15571 " struct guestfs_xattr {\n"
15572 "   char *attrname;\n"
15573 "   /* The next two fields describe a byte array. */\n"
15574 "   uint32_t attrval_len;\n"
15575 "   char *attrval;\n"
15576 " };\n"
15577 " \n"
15578 msgstr ""
15579
15580 # type: verbatim
15581 #: ../src/guestfs-structs.pod:201
15582 #, no-wrap
15583 msgid ""
15584 " struct guestfs_xattr_list {\n"
15585 "   uint32_t len; /* Number of elements in list. */\n"
15586 "   struct guestfs_xattr *val; /* Elements. */\n"
15587 " };\n"
15588 " \n"
15589 msgstr ""
15590
15591 # type: verbatim
15592 #: ../src/guestfs-structs.pod:206
15593 #, no-wrap
15594 msgid ""
15595 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15596 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15597 "\n"
15598 msgstr ""
15599
15600 # type: =head2
15601 #: ../src/guestfs-structs.pod:209
15602 msgid "guestfs_inotify_event"
15603 msgstr ""
15604
15605 # type: verbatim
15606 #: ../src/guestfs-structs.pod:211
15607 #, no-wrap
15608 msgid ""
15609 " struct guestfs_inotify_event {\n"
15610 "   int64_t in_wd;\n"
15611 "   uint32_t in_mask;\n"
15612 "   uint32_t in_cookie;\n"
15613 "   char *in_name;\n"
15614 " };\n"
15615 " \n"
15616 msgstr ""
15617
15618 # type: verbatim
15619 #: ../src/guestfs-structs.pod:218
15620 #, no-wrap
15621 msgid ""
15622 " struct guestfs_inotify_event_list {\n"
15623 "   uint32_t len; /* Number of elements in list. */\n"
15624 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15625 " };\n"
15626 " \n"
15627 msgstr ""
15628
15629 # type: verbatim
15630 #: ../src/guestfs-structs.pod:223
15631 #, no-wrap
15632 msgid ""
15633 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15634 " void guestfs_free_inotify_event_list (struct "
15635 "guestfs_free_inotify_event_list *);\n"
15636 "\n"
15637 msgstr ""
15638
15639 # type: =head2
15640 #: ../src/guestfs-structs.pod:226
15641 msgid "guestfs_partition"
15642 msgstr ""
15643
15644 # type: verbatim
15645 #: ../src/guestfs-structs.pod:228
15646 #, no-wrap
15647 msgid ""
15648 " struct guestfs_partition {\n"
15649 "   int32_t part_num;\n"
15650 "   uint64_t part_start;\n"
15651 "   uint64_t part_end;\n"
15652 "   uint64_t part_size;\n"
15653 " };\n"
15654 " \n"
15655 msgstr ""
15656
15657 # type: verbatim
15658 #: ../src/guestfs-structs.pod:235
15659 #, no-wrap
15660 msgid ""
15661 " struct guestfs_partition_list {\n"
15662 "   uint32_t len; /* Number of elements in list. */\n"
15663 "   struct guestfs_partition *val; /* Elements. */\n"
15664 " };\n"
15665 " \n"
15666 msgstr ""
15667
15668 # type: verbatim
15669 #: ../src/guestfs-structs.pod:240
15670 #, no-wrap
15671 msgid ""
15672 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15673 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15674 "\n"
15675 msgstr ""
15676
15677 # type: textblock
15678 #: ../fish/guestfish.pod:5
15679 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15680 msgstr ""
15681
15682 # type: verbatim
15683 #: ../fish/guestfish.pod:9
15684 #, no-wrap
15685 msgid ""
15686 " guestfish [--options] [commands]\n"
15687 "\n"
15688 msgstr ""
15689
15690 # type: verbatim
15691 #: ../fish/guestfish.pod:11
15692 #, no-wrap
15693 msgid ""
15694 " guestfish\n"
15695 "\n"
15696 msgstr ""
15697
15698 # type: verbatim
15699 #: ../fish/guestfish.pod:13
15700 #, no-wrap
15701 msgid ""
15702 " guestfish [--ro|--rw] -a disk.img\n"
15703 "\n"
15704 msgstr ""
15705
15706 # type: verbatim
15707 #: ../fish/guestfish.pod:15
15708 #, no-wrap
15709 msgid ""
15710 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15711 "\n"
15712 msgstr ""
15713
15714 # type: verbatim
15715 #: ../fish/guestfish.pod:17
15716 #, no-wrap
15717 msgid ""
15718 " guestfish -d libvirt-domain\n"
15719 "\n"
15720 msgstr ""
15721
15722 # type: verbatim
15723 #: ../fish/guestfish.pod:19
15724 #, no-wrap
15725 msgid ""
15726 " guestfish [--ro|--rw] -a disk.img -i\n"
15727 "\n"
15728 msgstr ""
15729
15730 # type: verbatim
15731 #: ../fish/guestfish.pod:21
15732 #, no-wrap
15733 msgid ""
15734 " guestfish -d libvirt-domain -i\n"
15735 "\n"
15736 msgstr ""
15737
15738 # type: =head1
15739 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59 ../tools/virt-rescue.pl:41
15740 msgid "WARNING"
15741 msgstr ""
15742
15743 # type: textblock
15744 #: ../fish/guestfish.pod:25
15745 msgid ""
15746 "Using guestfish in read/write mode on live virtual machines can be "
15747 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15748 "option to use guestfish safely if the disk image or virtual machine might be "
15749 "live."
15750 msgstr ""
15751
15752 # type: textblock
15753 #: ../fish/guestfish.pod:32
15754 msgid ""
15755 "Guestfish is a shell and command-line tool for examining and modifying "
15756 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15757 "functionality of the guestfs API, see L<guestfs(3)>."
15758 msgstr ""
15759
15760 # type: textblock
15761 #: ../fish/guestfish.pod:36
15762 msgid ""
15763 "Guestfish gives you structured access to the libguestfs API, from shell "
15764 "scripts or the command line or interactively.  If you want to rescue a "
15765 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15766 "command."
15767 msgstr ""
15768
15769 # type: =head1
15770 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:846 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
15771 msgid "EXAMPLES"
15772 msgstr ""
15773
15774 # type: =head2
15775 #: ../fish/guestfish.pod:43
15776 msgid "As an interactive shell"
15777 msgstr ""
15778
15779 # type: verbatim
15780 #: ../fish/guestfish.pod:45
15781 #, no-wrap
15782 msgid ""
15783 " $ guestfish\n"
15784 " \n"
15785 msgstr ""
15786
15787 # type: verbatim
15788 #: ../fish/guestfish.pod:47
15789 #, no-wrap
15790 msgid ""
15791 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15792 " editing virtual machine filesystems.\n"
15793 " \n"
15794 msgstr ""
15795
15796 # type: verbatim
15797 #: ../fish/guestfish.pod:50
15798 #, no-wrap
15799 msgid ""
15800 " Type: 'help' for a list of commands\n"
15801 "       'man' to read the manual\n"
15802 "       'quit' to quit the shell\n"
15803 " \n"
15804 msgstr ""
15805
15806 # type: verbatim
15807 #: ../fish/guestfish.pod:54
15808 #, no-wrap
15809 msgid ""
15810 " ><fs> add-ro disk.img\n"
15811 " ><fs> run\n"
15812 " ><fs> list-filesystems\n"
15813 " /dev/sda1: ext4\n"
15814 " /dev/vg_guest/lv_root: ext4\n"
15815 " /dev/vg_guest/lv_swap: swap\n"
15816 " ><fs> mount /dev/vg_guest/lv_root /\n"
15817 " ><fs> cat /etc/fstab\n"
15818 " # /etc/fstab\n"
15819 " # Created by anaconda\n"
15820 " [...]\n"
15821 " ><fs> exit\n"
15822 "\n"
15823 msgstr ""
15824
15825 # type: =head2
15826 #: ../fish/guestfish.pod:67
15827 msgid "From shell scripts"
15828 msgstr ""
15829
15830 # type: textblock
15831 #: ../fish/guestfish.pod:69
15832 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15833 msgstr ""
15834
15835 # type: verbatim
15836 #: ../fish/guestfish.pod:71
15837 #, no-wrap
15838 msgid ""
15839 " guestfish <<_EOF_\n"
15840 " add disk.img\n"
15841 " run\n"
15842 " mount /dev/vg_guest/lv_root /\n"
15843 " write /etc/motd \"Welcome, new users\"\n"
15844 " _EOF_\n"
15845 "\n"
15846 msgstr ""
15847
15848 # type: textblock
15849 #: ../fish/guestfish.pod:78
15850 msgid "List the LVM logical volumes in a disk image:"
15851 msgstr ""
15852
15853 # type: verbatim
15854 #: ../fish/guestfish.pod:80
15855 #, no-wrap
15856 msgid ""
15857 " guestfish -a disk.img --ro <<_EOF_\n"
15858 " run\n"
15859 " lvs\n"
15860 " _EOF_\n"
15861 "\n"
15862 msgstr ""
15863
15864 # type: textblock
15865 #: ../fish/guestfish.pod:85
15866 msgid "List all the filesystems in a disk image:"
15867 msgstr ""
15868
15869 # type: verbatim
15870 #: ../fish/guestfish.pod:87
15871 #, no-wrap
15872 msgid ""
15873 " guestfish -a disk.img --ro <<_EOF_\n"
15874 " run\n"
15875 " list-filesystems\n"
15876 " _EOF_\n"
15877 "\n"
15878 msgstr ""
15879
15880 # type: =head2
15881 #: ../fish/guestfish.pod:92
15882 msgid "On one command line"
15883 msgstr ""
15884
15885 # type: textblock
15886 #: ../fish/guestfish.pod:94
15887 msgid "Update C</etc/resolv.conf> in a guest:"
15888 msgstr ""
15889
15890 # type: verbatim
15891 #: ../fish/guestfish.pod:96
15892 #, no-wrap
15893 msgid ""
15894 " guestfish \\\n"
15895 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15896 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15897 "\n"
15898 msgstr ""
15899
15900 # type: textblock
15901 #: ../fish/guestfish.pod:100
15902 msgid "Edit C</boot/grub/grub.conf> interactively:"
15903 msgstr ""
15904
15905 # type: verbatim
15906 #: ../fish/guestfish.pod:102
15907 #, no-wrap
15908 msgid ""
15909 " guestfish --rw --add disk.img \\\n"
15910 "   --mount /dev/vg_guest/lv_root \\\n"
15911 "   --mount /dev/sda1:/boot \\\n"
15912 "   edit /boot/grub/grub.conf\n"
15913 "\n"
15914 msgstr ""
15915
15916 # type: =head2
15917 #: ../fish/guestfish.pod:107
15918 msgid "Mount disks automatically"
15919 msgstr ""
15920
15921 # type: textblock
15922 #: ../fish/guestfish.pod:109
15923 msgid ""
15924 "Use the I<-i> option to automatically mount the disks from a virtual "
15925 "machine:"
15926 msgstr ""
15927
15928 # type: verbatim
15929 #: ../fish/guestfish.pod:112
15930 #, no-wrap
15931 msgid ""
15932 " guestfish --ro -a disk.img -i cat /etc/group\n"
15933 "\n"
15934 msgstr ""
15935
15936 # type: verbatim
15937 #: ../fish/guestfish.pod:114
15938 #, no-wrap
15939 msgid ""
15940 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15941 "\n"
15942 msgstr ""
15943
15944 # type: textblock
15945 #: ../fish/guestfish.pod:116
15946 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15947 msgstr ""
15948
15949 # type: verbatim
15950 #: ../fish/guestfish.pod:118
15951 #, no-wrap
15952 msgid ""
15953 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
15954 "\n"
15955 msgstr ""
15956
15957 # type: =head2
15958 #: ../fish/guestfish.pod:120
15959 msgid "As a script interpreter"
15960 msgstr ""
15961
15962 # type: textblock
15963 #: ../fish/guestfish.pod:122
15964 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15965 msgstr ""
15966
15967 # type: verbatim
15968 #: ../fish/guestfish.pod:124
15969 #, no-wrap
15970 msgid ""
15971 " #!/usr/bin/guestfish -f\n"
15972 " sparse test1.img 100M\n"
15973 " run\n"
15974 " part-disk /dev/sda mbr\n"
15975 " mkfs ext2 /dev/sda1\n"
15976 "\n"
15977 msgstr ""
15978
15979 # type: =head2
15980 #: ../fish/guestfish.pod:130
15981 msgid "Start with a prepared disk"
15982 msgstr ""
15983
15984 # type: textblock
15985 #: ../fish/guestfish.pod:132
15986 msgid ""
15987 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15988 "single ext2-formatted partition:"
15989 msgstr ""
15990
15991 # type: verbatim
15992 #: ../fish/guestfish.pod:135
15993 #, no-wrap
15994 msgid ""
15995 " guestfish -N fs\n"
15996 "\n"
15997 msgstr ""
15998
15999 # type: textblock
16000 #: ../fish/guestfish.pod:137
16001 msgid "To list what is available do:"
16002 msgstr ""
16003
16004 # type: verbatim
16005 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:837
16006 #, no-wrap
16007 msgid ""
16008 " guestfish -N help | less\n"
16009 "\n"
16010 msgstr ""
16011
16012 # type: =head2
16013 #: ../fish/guestfish.pod:141
16014 msgid "Remote control"
16015 msgstr ""
16016
16017 # type: verbatim
16018 #: ../fish/guestfish.pod:143
16019 #, no-wrap
16020 msgid ""
16021 " eval \"`guestfish --listen`\"\n"
16022 " guestfish --remote add-ro disk.img\n"
16023 " guestfish --remote run\n"
16024 " guestfish --remote lvs\n"
16025 "\n"
16026 msgstr ""
16027
16028 # type: =head1
16029 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../inspector/virt-inspector.pl:68 ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171 ../tools/virt-df.pl:71 ../tools/virt-ls.pl:78 ../tools/virt-resize.pl:257 ../tools/virt-list-filesystems.pl:50 ../tools/virt-cat.pl:79 ../tools/virt-tar.pl:98 ../tools/virt-rescue.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:51
16030 msgid "OPTIONS"
16031 msgstr ""
16032
16033 # type: =item
16034 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86 ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58 ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
16035 msgid "B<--help>"
16036 msgstr ""
16037
16038 # type: textblock
16039 #: ../fish/guestfish.pod:154
16040 msgid "Displays general help on options."
16041 msgstr ""
16042
16043 # type: =item
16044 #: ../fish/guestfish.pod:156
16045 msgid "B<-h> | B<--cmd-help>"
16046 msgstr ""
16047
16048 # type: textblock
16049 #: ../fish/guestfish.pod:158
16050 msgid "Lists all available guestfish commands."
16051 msgstr ""
16052
16053 # type: =item
16054 #: ../fish/guestfish.pod:160
16055 msgid "B<-h cmd> | B<--cmd-help cmd>"
16056 msgstr ""
16057
16058 # type: textblock
16059 #: ../fish/guestfish.pod:162
16060 msgid "Displays detailed help on a single command C<cmd>."
16061 msgstr ""
16062
16063 # type: =item
16064 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16065 msgid "B<-a image> | B<--add image>"
16066 msgstr ""
16067
16068 # type: textblock
16069 #: ../fish/guestfish.pod:166
16070 msgid "Add a block device or virtual machine image to the shell."
16071 msgstr ""
16072
16073 # type: textblock
16074 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16075 msgid ""
16076 "The format of the disk image is auto-detected.  To override this and force a "
16077 "particular format use the I<--format=..> option."
16078 msgstr ""
16079
16080 # type: =item
16081 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16082 msgid "B<-c URI> | B<--connect URI>"
16083 msgstr ""
16084
16085 # type: textblock
16086 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16087 msgid ""
16088 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16089 "URI to use.  The default is to use the default libvirt connection."
16090 msgstr ""
16091
16092 # type: =item
16093 #: ../fish/guestfish.pod:177
16094 msgid "B<--csh>"
16095 msgstr ""
16096
16097 # type: textblock
16098 #: ../fish/guestfish.pod:179
16099 msgid ""
16100 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16101 "section L</REMOTE CONTROL AND CSH> below."
16102 msgstr ""
16103
16104 # type: =item
16105 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16106 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16107 msgstr ""
16108
16109 # type: textblock
16110 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16111 msgid ""
16112 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16113 "used, then any libvirt domain can be used.  However in write mode, only "
16114 "libvirt domains which are shut down can be named here."
16115 msgstr ""
16116
16117 # type: =item
16118 #: ../fish/guestfish.pod:188
16119 msgid "B<-D> | B<--no-dest-paths>"
16120 msgstr ""
16121
16122 # type: textblock
16123 #: ../fish/guestfish.pod:190
16124 msgid ""
16125 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16126 "to hit the tab key to complete paths on the guest filesystem, but this "
16127 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16128 "allow this feature to be disabled."
16129 msgstr ""
16130
16131 # type: =item
16132 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16133 msgid "B<--echo-keys>"
16134 msgstr ""
16135
16136 # type: textblock
16137 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16138 msgid ""
16139 "When prompting for keys and passphrases, guestfish normally turns echoing "
16140 "off so you cannot see what you are typing.  If you are not worried about "
16141 "Tempest attacks and there is no one else in the room you can specify this "
16142 "flag to see what you are typing."
16143 msgstr ""
16144
16145 # type: =item
16146 #: ../fish/guestfish.pod:202
16147 msgid "B<-f file> | B<--file file>"
16148 msgstr ""
16149
16150 # type: textblock
16151 #: ../fish/guestfish.pod:204
16152 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16153 msgstr ""
16154
16155 # type: verbatim
16156 #: ../fish/guestfish.pod:207
16157 #, no-wrap
16158 msgid ""
16159 " #!/usr/bin/guestfish -f\n"
16160 "\n"
16161 msgstr ""
16162
16163 # type: =item
16164 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16165 msgid "B<--format=raw|qcow2|..> | B<--format>"
16166 msgstr ""
16167
16168 # type: textblock
16169 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16170 msgid ""
16171 "The default for the I<-a> option is to auto-detect the format of the disk "
16172 "image.  Using this forces the disk format for I<-a> options which follow on "
16173 "the command line.  Using I<--format> with no argument switches back to "
16174 "auto-detection for subsequent I<-a> options."
16175 msgstr ""
16176
16177 # type: textblock
16178 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:543 ../inspector/virt-inspector.pl:549
16179 msgid "For example:"
16180 msgstr ""
16181
16182 # type: verbatim
16183 #: ../fish/guestfish.pod:218
16184 #, no-wrap
16185 msgid ""
16186 " guestfish --format=raw -a disk.img\n"
16187 "\n"
16188 msgstr ""
16189
16190 # type: textblock
16191 #: ../fish/guestfish.pod:220
16192 msgid "forces raw format (no auto-detection) for C<disk.img>."
16193 msgstr ""
16194
16195 # type: verbatim
16196 #: ../fish/guestfish.pod:222
16197 #, no-wrap
16198 msgid ""
16199 " guestfish --format=raw -a disk.img --format -a another.img\n"
16200 "\n"
16201 msgstr ""
16202
16203 # type: textblock
16204 #: ../fish/guestfish.pod:224
16205 msgid ""
16206 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
16207 "auto-detection for C<another.img>."
16208 msgstr ""
16209
16210 # type: textblock
16211 #: ../fish/guestfish.pod:227
16212 msgid ""
16213 "If you have untrusted raw-format guest disk images, you should use this "
16214 "option to specify the disk format.  This avoids a possible security problem "
16215 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16216 msgstr ""
16217
16218 # type: =item
16219 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16220 msgid "B<-i> | B<--inspector>"
16221 msgstr ""
16222
16223 # type: textblock
16224 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16225 msgid ""
16226 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16227 "system and mount filesystems as they would be mounted on the real virtual "
16228 "machine."
16229 msgstr ""
16230
16231 # type: textblock
16232 #: ../fish/guestfish.pod:238
16233 msgid "Typical usage is either:"
16234 msgstr ""
16235
16236 # type: verbatim
16237 #: ../fish/guestfish.pod:240
16238 #, no-wrap
16239 msgid ""
16240 " guestfish -d myguest -i\n"
16241 "\n"
16242 msgstr ""
16243
16244 # type: textblock
16245 #: ../fish/guestfish.pod:242
16246 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16247 msgstr ""
16248
16249 # type: verbatim
16250 #: ../fish/guestfish.pod:244
16251 #, no-wrap
16252 msgid ""
16253 " guestfish --ro -d myguest -i\n"
16254 "\n"
16255 msgstr ""
16256
16257 # type: textblock
16258 #: ../fish/guestfish.pod:246
16259 msgid "(for active domains, readonly), or specify the block device directly:"
16260 msgstr ""
16261
16262 # type: verbatim
16263 #: ../fish/guestfish.pod:248
16264 #, no-wrap
16265 msgid ""
16266 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16267 "\n"
16268 msgstr ""
16269
16270 # type: textblock
16271 #: ../fish/guestfish.pod:250
16272 msgid ""
16273 "Note that the command line syntax changed slightly over older versions of "
16274 "guestfish.  You can still use the old syntax:"
16275 msgstr ""
16276
16277 # type: verbatim
16278 #: ../fish/guestfish.pod:253
16279 #, no-wrap
16280 msgid ""
16281 " guestfish [--ro] -i disk.img\n"
16282 "\n"
16283 msgstr ""
16284
16285 # type: verbatim
16286 #: ../fish/guestfish.pod:255
16287 #, no-wrap
16288 msgid ""
16289 " guestfish [--ro] -i libvirt-domain\n"
16290 "\n"
16291 msgstr ""
16292
16293 # type: =item
16294 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
16295 msgid "B<--keys-from-stdin>"
16296 msgstr ""
16297
16298 # type: textblock
16299 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
16300 msgid ""
16301 "Read key or passphrase parameters from stdin.  The default is to try to read "
16302 "passphrases from the user by opening C</dev/tty>."
16303 msgstr ""
16304
16305 # type: =item
16306 #: ../fish/guestfish.pod:262
16307 msgid "B<--listen>"
16308 msgstr ""
16309
16310 # type: textblock
16311 #: ../fish/guestfish.pod:264
16312 msgid ""
16313 "Fork into the background and listen for remote commands.  See section "
16314 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16315 msgstr ""
16316
16317 # type: =item
16318 #: ../fish/guestfish.pod:267
16319 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16320 msgstr ""
16321
16322 # type: textblock
16323 #: ../fish/guestfish.pod:269
16324 msgid "Mount the named partition or logical volume on the given mountpoint."
16325 msgstr ""
16326
16327 # type: textblock
16328 #: ../fish/guestfish.pod:271
16329 msgid "If the mountpoint is omitted, it defaults to C</>."
16330 msgstr ""
16331
16332 # type: textblock
16333 #: ../fish/guestfish.pod:273
16334 msgid "You have to mount something on C</> before most commands will work."
16335 msgstr ""
16336
16337 # type: textblock
16338 #: ../fish/guestfish.pod:275
16339 msgid ""
16340 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16341 "launched."
16342 msgstr ""
16343
16344 # type: textblock
16345 #: ../fish/guestfish.pod:278
16346 msgid ""
16347 "If you don't know what filesystems a disk image contains, you can either run "
16348 "guestfish without this option, then list the partitions and LVs available "
16349 "(see L</list-partitions> and L</lvs> commands), or you can use the "
16350 "L<virt-list-filesystems(1)> program."
16351 msgstr ""
16352
16353 # type: =item
16354 #: ../fish/guestfish.pod:283 ../fuse/guestmount.pod:154
16355 msgid "B<-n> | B<--no-sync>"
16356 msgstr ""
16357
16358 # type: textblock
16359 #: ../fish/guestfish.pod:285
16360 msgid ""
16361 "Disable autosync.  This is enabled by default.  See the discussion of "
16362 "autosync in the L<guestfs(3)> manpage."
16363 msgstr ""
16364
16365 # type: =item
16366 #: ../fish/guestfish.pod:288
16367 msgid "B<-N type> | B<--new type> | B<-N help>"
16368 msgstr ""
16369
16370 # type: textblock
16371 #: ../fish/guestfish.pod:290
16372 msgid ""
16373 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16374 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16375 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16376 "IMAGES> below."
16377 msgstr ""
16378
16379 # type: =item
16380 #: ../fish/guestfish.pod:295
16381 msgid "B<--progress-bars>"
16382 msgstr ""
16383
16384 # type: textblock
16385 #: ../fish/guestfish.pod:297
16386 msgid "Enable progress bars, even when guestfish is used non-interactively."
16387 msgstr ""
16388
16389 # type: textblock
16390 #: ../fish/guestfish.pod:299
16391 msgid ""
16392 "Progress bars are enabled by default when guestfish is used as an "
16393 "interactive shell."
16394 msgstr ""
16395
16396 # type: =item
16397 #: ../fish/guestfish.pod:302
16398 msgid "B<--no-progress-bars>"
16399 msgstr ""
16400
16401 # type: textblock
16402 #: ../fish/guestfish.pod:304
16403 msgid "Disable progress bars."
16404 msgstr ""
16405
16406 # type: =item
16407 #: ../fish/guestfish.pod:306
16408 msgid "B<--remote[=pid]>"
16409 msgstr ""
16410
16411 # type: textblock
16412 #: ../fish/guestfish.pod:308
16413 msgid ""
16414 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16415 "CONTROL GUESTFISH OVER A SOCKET> below."
16416 msgstr ""
16417
16418 # type: =item
16419 #: ../fish/guestfish.pod:311 ../fuse/guestmount.pod:196
16420 msgid "B<-r> | B<--ro>"
16421 msgstr ""
16422
16423 # type: textblock
16424 #: ../fish/guestfish.pod:313
16425 msgid ""
16426 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16427 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16428 msgstr ""
16429
16430 # type: textblock
16431 #: ../fish/guestfish.pod:316 ../tools/virt-rescue.pl:187
16432 msgid ""
16433 "The option must always be used if the disk image or virtual machine might be "
16434 "running, and is generally recommended in cases where you don't need write "
16435 "access to the disk."
16436 msgstr ""
16437
16438 # type: textblock
16439 #: ../fish/guestfish.pod:320
16440 msgid ""
16441 "Note that prepared disk images created with I<-N> are not affected by the "
16442 "I<--ro> option."
16443 msgstr ""
16444
16445 # type: textblock
16446 #: ../fish/guestfish.pod:323
16447 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16448 msgstr ""
16449
16450 # type: =item
16451 #: ../fish/guestfish.pod:325 ../fuse/guestmount.pod:208 ../tools/virt-rescue.pl:195
16452 msgid "B<--selinux>"
16453 msgstr ""
16454
16455 # type: textblock
16456 #: ../fish/guestfish.pod:327
16457 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16458 msgstr ""
16459
16460 # type: =item
16461 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:212
16462 msgid "B<-v> | B<--verbose>"
16463 msgstr ""
16464
16465 # type: textblock
16466 #: ../fish/guestfish.pod:331
16467 msgid ""
16468 "Enable very verbose messages.  This is particularly useful if you find a "
16469 "bug."
16470 msgstr ""
16471
16472 # type: =item
16473 #: ../fish/guestfish.pod:334 ../fuse/guestmount.pod:216
16474 msgid "B<-V> | B<--version>"
16475 msgstr ""
16476
16477 # type: textblock
16478 #: ../fish/guestfish.pod:336
16479 msgid "Display the guestfish / libguestfs version number and exit."
16480 msgstr ""
16481
16482 # type: =item
16483 #: ../fish/guestfish.pod:338 ../fuse/guestmount.pod:220
16484 msgid "B<-w> | B<--rw>"
16485 msgstr ""
16486
16487 # type: textblock
16488 #: ../fish/guestfish.pod:340
16489 msgid ""
16490 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
16491 "WRITE> below."
16492 msgstr ""
16493
16494 # type: =item
16495 #: ../fish/guestfish.pod:343
16496 msgid "B<-x>"
16497 msgstr ""
16498
16499 # type: textblock
16500 #: ../fish/guestfish.pod:345
16501 msgid "Echo each command before executing it."
16502 msgstr ""
16503
16504 # type: =head1
16505 #: ../fish/guestfish.pod:349
16506 msgid "COMMANDS ON COMMAND LINE"
16507 msgstr ""
16508
16509 # type: textblock
16510 #: ../fish/guestfish.pod:351
16511 msgid "Any additional (non-option) arguments are treated as commands to execute."
16512 msgstr ""
16513
16514 # type: textblock
16515 #: ../fish/guestfish.pod:354
16516 msgid ""
16517 "Commands to execute should be separated by a colon (C<:>), where the colon "
16518 "is a separate parameter.  Thus:"
16519 msgstr ""
16520
16521 # type: verbatim
16522 #: ../fish/guestfish.pod:357
16523 #, no-wrap
16524 msgid ""
16525 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16526 "\n"
16527 msgstr ""
16528
16529 # type: textblock
16530 #: ../fish/guestfish.pod:359
16531 msgid ""
16532 "If there are no additional arguments, then we enter a shell, either an "
16533 "interactive shell with a prompt (if the input is a terminal) or a "
16534 "non-interactive shell."
16535 msgstr ""
16536
16537 # type: textblock
16538 #: ../fish/guestfish.pod:363
16539 msgid ""
16540 "In either command line mode or non-interactive shell, the first command that "
16541 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16542 "prompt) if a command fails, you can continue to enter commands."
16543 msgstr ""
16544
16545 # type: =head1
16546 #: ../fish/guestfish.pod:368
16547 msgid "USING launch (OR run)"
16548 msgstr ""
16549
16550 # type: textblock
16551 #: ../fish/guestfish.pod:370
16552 msgid ""
16553 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16554 "then launch it, then mount any disks you need, and finally issue "
16555 "actions/commands.  So the general order of the day is:"
16556 msgstr ""
16557
16558 # type: textblock
16559 #: ../fish/guestfish.pod:378
16560 msgid "add or -a/--add"
16561 msgstr ""
16562
16563 # type: textblock
16564 #: ../fish/guestfish.pod:382
16565 msgid "launch (aka run)"
16566 msgstr ""
16567
16568 # type: textblock
16569 #: ../fish/guestfish.pod:386
16570 msgid "mount or -m/--mount"
16571 msgstr ""
16572
16573 # type: textblock
16574 #: ../fish/guestfish.pod:390
16575 msgid "any other commands"
16576 msgstr ""
16577
16578 # type: textblock
16579 #: ../fish/guestfish.pod:394
16580 msgid ""
16581 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16582 "guest before mounting or performing any other commands."
16583 msgstr ""
16584
16585 # type: textblock
16586 #: ../fish/guestfish.pod:397
16587 msgid ""
16588 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16589 "I<--new> options were given then C<run> is done automatically, simply "
16590 "because guestfish can't perform the action you asked for without doing this."
16591 msgstr ""
16592
16593 # type: =head1
16594 #: ../fish/guestfish.pod:402
16595 msgid "OPENING DISKS FOR READ AND WRITE"
16596 msgstr ""
16597
16598 # type: textblock
16599 #: ../fish/guestfish.pod:404
16600 msgid ""
16601 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
16602 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
16603 "open disk images read-only or for writing."
16604 msgstr ""
16605
16606 # type: textblock
16607 #: ../fish/guestfish.pod:408
16608 msgid ""
16609 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
16610 "disk images supplied on the command line for write.  To open a disk image "
16611 "read-only you have to do I<-a image --ro>."
16612 msgstr ""
16613
16614 # type: textblock
16615 #: ../fish/guestfish.pod:412
16616 msgid ""
16617 "This matters: If you accidentally open a live VM disk image writable then "
16618 "you will cause irreversible disk corruption."
16619 msgstr ""
16620
16621 # type: textblock
16622 #: ../fish/guestfish.pod:415
16623 msgid ""
16624 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
16625 "images will be opened read-only.  You will have to either specify "
16626 "I<guestfish --rw> or change a configuration file in order to get write "
16627 "access for disk images specified by those other command line options."
16628 msgstr ""
16629
16630 # type: textblock
16631 #: ../fish/guestfish.pod:420
16632 msgid ""
16633 "This version of guestfish has a I<--rw> option which does nothing (it is "
16634 "already the default).  However it is highly recommended that you use this "
16635 "option to indicate that guestfish needs write access, and to prepare your "
16636 "scripts for the day when this option will be required for write access."
16637 msgstr ""
16638
16639 # type: textblock
16640 #: ../fish/guestfish.pod:426
16641 msgid ""
16642 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16643 "other libguestfs program apart from guestfish and guestmount."
16644 msgstr ""
16645
16646 # type: =head1
16647 #: ../fish/guestfish.pod:429
16648 msgid "QUOTING"
16649 msgstr ""
16650
16651 # type: textblock
16652 #: ../fish/guestfish.pod:431
16653 msgid ""
16654 "You can quote ordinary parameters using either single or double quotes.  For "
16655 "example:"
16656 msgstr ""
16657
16658 # type: verbatim
16659 #: ../fish/guestfish.pod:434
16660 #, no-wrap
16661 msgid ""
16662 " add \"file with a space.img\"\n"
16663 "\n"
16664 msgstr ""
16665
16666 # type: verbatim
16667 #: ../fish/guestfish.pod:436
16668 #, no-wrap
16669 msgid ""
16670 " rm '/file name'\n"
16671 "\n"
16672 msgstr ""
16673
16674 # type: verbatim
16675 #: ../fish/guestfish.pod:438
16676 #, no-wrap
16677 msgid ""
16678 " rm '/\"'\n"
16679 "\n"
16680 msgstr ""
16681
16682 # type: textblock
16683 #: ../fish/guestfish.pod:440
16684 msgid ""
16685 "A few commands require a list of strings to be passed.  For these, use a "
16686 "whitespace-separated list, enclosed in quotes.  Strings containing "
16687 "whitespace to be passed through must be enclosed in single quotes.  A "
16688 "literal single quote must be escaped with a backslash."
16689 msgstr ""
16690
16691 # type: verbatim
16692 #: ../fish/guestfish.pod:445
16693 #, no-wrap
16694 msgid ""
16695 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16696 " command \"/bin/echo 'foo      bar'\"\n"
16697 " command \"/bin/echo \\'foo\\'\"\n"
16698 "\n"
16699 msgstr ""
16700
16701 # type: =head1
16702 #: ../fish/guestfish.pod:449
16703 msgid "OPTIONAL ARGUMENTS"
16704 msgstr ""
16705
16706 # type: textblock
16707 #: ../fish/guestfish.pod:451
16708 msgid ""
16709 "Some commands take optional arguments.  These arguments appear in this "
16710 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16711 msgstr ""
16712
16713 # type: verbatim
16714 #: ../fish/guestfish.pod:455
16715 #, no-wrap
16716 msgid ""
16717 " add-drive-opts filename\n"
16718 "\n"
16719 msgstr ""
16720
16721 # type: verbatim
16722 #: ../fish/guestfish.pod:457
16723 #, no-wrap
16724 msgid ""
16725 " add-drive-opts filename readonly:true\n"
16726 "\n"
16727 msgstr ""
16728
16729 # type: verbatim
16730 #: ../fish/guestfish.pod:459
16731 #, no-wrap
16732 msgid ""
16733 " add-drive-opts filename format:qcow2 readonly:false\n"
16734 "\n"
16735 msgstr ""
16736
16737 # type: textblock
16738 #: ../fish/guestfish.pod:461
16739 msgid ""
16740 "Each optional argument can appear at most once.  All optional arguments must "
16741 "appear after the required ones."
16742 msgstr ""
16743
16744 # type: =head1
16745 #: ../fish/guestfish.pod:464
16746 msgid "NUMBERS"
16747 msgstr ""
16748
16749 # type: textblock
16750 #: ../fish/guestfish.pod:466
16751 msgid "This section applies to all commands which can take integers as parameters."
16752 msgstr ""
16753
16754 # type: =head2
16755 #: ../fish/guestfish.pod:469
16756 msgid "SIZE SUFFIX"
16757 msgstr ""
16758
16759 # type: textblock
16760 #: ../fish/guestfish.pod:471
16761 msgid ""
16762 "When the command takes a parameter measured in bytes, you can use one of the "
16763 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16764 msgstr ""
16765
16766 # type: =item
16767 #: ../fish/guestfish.pod:477
16768 msgid "B<k> or B<K> or B<KiB>"
16769 msgstr ""
16770
16771 # type: textblock
16772 #: ../fish/guestfish.pod:479
16773 msgid "The size in kilobytes (multiplied by 1024)."
16774 msgstr ""
16775
16776 # type: =item
16777 #: ../fish/guestfish.pod:481
16778 msgid "B<KB>"
16779 msgstr ""
16780
16781 # type: textblock
16782 #: ../fish/guestfish.pod:483
16783 msgid "The size in SI 1000 byte units."
16784 msgstr ""
16785
16786 # type: =item
16787 #: ../fish/guestfish.pod:485
16788 msgid "B<M> or B<MiB>"
16789 msgstr ""
16790
16791 # type: textblock
16792 #: ../fish/guestfish.pod:487
16793 msgid "The size in megabytes (multiplied by 1048576)."
16794 msgstr ""
16795
16796 # type: =item
16797 #: ../fish/guestfish.pod:489
16798 msgid "B<MB>"
16799 msgstr ""
16800
16801 # type: textblock
16802 #: ../fish/guestfish.pod:491
16803 msgid "The size in SI 1000000 byte units."
16804 msgstr ""
16805
16806 # type: =item
16807 #: ../fish/guestfish.pod:493
16808 msgid "B<G> or B<GiB>"
16809 msgstr ""
16810
16811 # type: textblock
16812 #: ../fish/guestfish.pod:495
16813 msgid "The size in gigabytes (multiplied by 2**30)."
16814 msgstr ""
16815
16816 # type: =item
16817 #: ../fish/guestfish.pod:497
16818 msgid "B<GB>"
16819 msgstr ""
16820
16821 # type: textblock
16822 #: ../fish/guestfish.pod:499
16823 msgid "The size in SI 10**9 byte units."
16824 msgstr ""
16825
16826 # type: =item
16827 #: ../fish/guestfish.pod:501
16828 msgid "B<T> or B<TiB>"
16829 msgstr ""
16830
16831 # type: textblock
16832 #: ../fish/guestfish.pod:503
16833 msgid "The size in terabytes (multiplied by 2**40)."
16834 msgstr ""
16835
16836 # type: =item
16837 #: ../fish/guestfish.pod:505
16838 msgid "B<TB>"
16839 msgstr ""
16840
16841 # type: textblock
16842 #: ../fish/guestfish.pod:507
16843 msgid "The size in SI 10**12 byte units."
16844 msgstr ""
16845
16846 # type: =item
16847 #: ../fish/guestfish.pod:509
16848 msgid "B<P> or B<PiB>"
16849 msgstr ""
16850
16851 # type: textblock
16852 #: ../fish/guestfish.pod:511
16853 msgid "The size in petabytes (multiplied by 2**50)."
16854 msgstr ""
16855
16856 # type: =item
16857 #: ../fish/guestfish.pod:513
16858 msgid "B<PB>"
16859 msgstr ""
16860
16861 # type: textblock
16862 #: ../fish/guestfish.pod:515
16863 msgid "The size in SI 10**15 byte units."
16864 msgstr ""
16865
16866 # type: =item
16867 #: ../fish/guestfish.pod:517
16868 msgid "B<E> or B<EiB>"
16869 msgstr ""
16870
16871 # type: textblock
16872 #: ../fish/guestfish.pod:519
16873 msgid "The size in exabytes (multiplied by 2**60)."
16874 msgstr ""
16875
16876 # type: =item
16877 #: ../fish/guestfish.pod:521
16878 msgid "B<EB>"
16879 msgstr ""
16880
16881 # type: textblock
16882 #: ../fish/guestfish.pod:523
16883 msgid "The size in SI 10**18 byte units."
16884 msgstr ""
16885
16886 # type: =item
16887 #: ../fish/guestfish.pod:525
16888 msgid "B<Z> or B<ZiB>"
16889 msgstr ""
16890
16891 # type: textblock
16892 #: ../fish/guestfish.pod:527
16893 msgid "The size in zettabytes (multiplied by 2**70)."
16894 msgstr ""
16895
16896 # type: =item
16897 #: ../fish/guestfish.pod:529
16898 msgid "B<ZB>"
16899 msgstr ""
16900
16901 # type: textblock
16902 #: ../fish/guestfish.pod:531
16903 msgid "The size in SI 10**21 byte units."
16904 msgstr ""
16905
16906 # type: =item
16907 #: ../fish/guestfish.pod:533
16908 msgid "B<Y> or B<YiB>"
16909 msgstr ""
16910
16911 # type: textblock
16912 #: ../fish/guestfish.pod:535
16913 msgid "The size in yottabytes (multiplied by 2**80)."
16914 msgstr ""
16915
16916 # type: =item
16917 #: ../fish/guestfish.pod:537
16918 msgid "B<YB>"
16919 msgstr ""
16920
16921 # type: textblock
16922 #: ../fish/guestfish.pod:539
16923 msgid "The size in SI 10**24 byte units."
16924 msgstr ""
16925
16926 # type: verbatim
16927 #: ../fish/guestfish.pod:545
16928 #, no-wrap
16929 msgid ""
16930 " truncate-size /file 1G\n"
16931 "\n"
16932 msgstr ""
16933
16934 # type: textblock
16935 #: ../fish/guestfish.pod:547
16936 msgid "would truncate the file to 1 gigabyte."
16937 msgstr ""
16938
16939 # type: textblock
16940 #: ../fish/guestfish.pod:549
16941 msgid ""
16942 "Be careful because a few commands take sizes in kilobytes or megabytes "
16943 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16944 "Adding a suffix will probably not do what you expect."
16945 msgstr ""
16946
16947 # type: =head2
16948 #: ../fish/guestfish.pod:553
16949 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16950 msgstr ""
16951
16952 # type: textblock
16953 #: ../fish/guestfish.pod:555
16954 msgid ""
16955 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16956 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16957 msgstr ""
16958
16959 # type: verbatim
16960 #: ../fish/guestfish.pod:558
16961 #, no-wrap
16962 msgid ""
16963 " 1234      decimal number 1234\n"
16964 " 02322     octal number, equivalent to decimal 1234\n"
16965 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16966 "\n"
16967 msgstr ""
16968
16969 # type: textblock
16970 #: ../fish/guestfish.pod:562
16971 msgid ""
16972 "When using the C<chmod> command, you almost always want to specify an octal "
16973 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16974 "L<chmod(1)> program):"
16975 msgstr ""
16976
16977 # type: verbatim
16978 #: ../fish/guestfish.pod:566
16979 #, no-wrap
16980 msgid ""
16981 " chmod 0777 /public  # OK\n"
16982 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16983 "\n"
16984 msgstr ""
16985
16986 # type: textblock
16987 #: ../fish/guestfish.pod:569
16988 msgid ""
16989 "Commands that return numbers usually print them in decimal, but some "
16990 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16991 "octal, preceeded by C<0>)."
16992 msgstr ""
16993
16994 # type: =head1
16995 #: ../fish/guestfish.pod:573
16996 msgid "WILDCARDS AND GLOBBING"
16997 msgstr ""
16998
16999 # type: textblock
17000 #: ../fish/guestfish.pod:575
17001 msgid ""
17002 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17003 "(globbing) by default.  So for example the following will not do what you "
17004 "expect:"
17005 msgstr ""
17006
17007 # type: verbatim
17008 #: ../fish/guestfish.pod:579
17009 #, no-wrap
17010 msgid ""
17011 " rm-rf /home/*\n"
17012 "\n"
17013 msgstr ""
17014
17015 # type: textblock
17016 #: ../fish/guestfish.pod:581
17017 msgid ""
17018 "Assuming you don't have a directory called literally C</home/*> then the "
17019 "above command will return an error."
17020 msgstr ""
17021
17022 # type: textblock
17023 #: ../fish/guestfish.pod:584
17024 msgid "To perform wildcard expansion, use the C<glob> command."
17025 msgstr ""
17026
17027 # type: verbatim
17028 #: ../fish/guestfish.pod:586
17029 #, no-wrap
17030 msgid ""
17031 " glob rm-rf /home/*\n"
17032 "\n"
17033 msgstr ""
17034
17035 # type: textblock
17036 #: ../fish/guestfish.pod:588
17037 msgid ""
17038 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17039 "many times), equivalent to:"
17040 msgstr ""
17041
17042 # type: verbatim
17043 #: ../fish/guestfish.pod:591
17044 #, no-wrap
17045 msgid ""
17046 " rm-rf /home/jim\n"
17047 " rm-rf /home/joe\n"
17048 " rm-rf /home/mary\n"
17049 "\n"
17050 msgstr ""
17051
17052 # type: textblock
17053 #: ../fish/guestfish.pod:595
17054 msgid "C<glob> only works on simple guest paths and not on device names."
17055 msgstr ""
17056
17057 # type: textblock
17058 #: ../fish/guestfish.pod:597
17059 msgid ""
17060 "If you have several parameters, each containing a wildcard, then glob will "
17061 "perform a Cartesian product."
17062 msgstr ""
17063
17064 # type: =head1
17065 #: ../fish/guestfish.pod:600
17066 msgid "COMMENTS"
17067 msgstr ""
17068
17069 # type: textblock
17070 #: ../fish/guestfish.pod:602
17071 msgid ""
17072 "Any line which starts with a I<#> character is treated as a comment and "
17073 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17074 "a command.  For example:"
17075 msgstr ""
17076
17077 # type: verbatim
17078 #: ../fish/guestfish.pod:606
17079 #, no-wrap
17080 msgid ""
17081 " # this is a comment\n"
17082 "         # this is a comment\n"
17083 " foo # NOT a comment\n"
17084 "\n"
17085 msgstr ""
17086
17087 # type: textblock
17088 #: ../fish/guestfish.pod:610
17089 msgid "Blank lines are also ignored."
17090 msgstr ""
17091
17092 # type: =head1
17093 #: ../fish/guestfish.pod:612
17094 msgid "RUNNING COMMANDS LOCALLY"
17095 msgstr ""
17096
17097 # type: textblock
17098 #: ../fish/guestfish.pod:614
17099 msgid ""
17100 "Any line which starts with a I<!> character is treated as a command sent to "
17101 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17102 msgstr ""
17103
17104 # type: verbatim
17105 #: ../fish/guestfish.pod:618
17106 #, no-wrap
17107 msgid ""
17108 " !mkdir local\n"
17109 " tgz-out /remote local/remote-data.tar.gz\n"
17110 "\n"
17111 msgstr ""
17112
17113 # type: textblock
17114 #: ../fish/guestfish.pod:621
17115 msgid ""
17116 "will create a directory C<local> on the host, and then export the contents "
17117 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17118 "(See C<tgz-out>)."
17119 msgstr ""
17120
17121 # type: textblock
17122 #: ../fish/guestfish.pod:625
17123 msgid ""
17124 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17125 "effect, due to the way that subprocesses work in Unix."
17126 msgstr ""
17127
17128 # type: =head1
17129 #: ../fish/guestfish.pod:628
17130 msgid "PIPES"
17131 msgstr ""
17132
17133 # type: textblock
17134 #: ../fish/guestfish.pod:630
17135 msgid ""
17136 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17137 "command (a guestfish command) to the second command (any host command).  For "
17138 "example:"
17139 msgstr ""
17140
17141 # type: verbatim
17142 #: ../fish/guestfish.pod:634
17143 #, no-wrap
17144 msgid ""
17145 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17146 "\n"
17147 msgstr ""
17148
17149 # type: textblock
17150 #: ../fish/guestfish.pod:636
17151 msgid ""
17152 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17153 "program).  The above command would list all accounts in the guest filesystem "
17154 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17155 msgstr ""
17156
17157 # type: verbatim
17158 #: ../fish/guestfish.pod:641
17159 #, no-wrap
17160 msgid ""
17161 " hexdump /bin/ls | head\n"
17162 " list-devices | tail -1\n"
17163 " tgz-out / - | tar ztf -\n"
17164 "\n"
17165 msgstr ""
17166
17167 # type: textblock
17168 #: ../fish/guestfish.pod:645
17169 msgid ""
17170 "The space before the pipe symbol is required, any space after the pipe "
17171 "symbol is optional.  Everything after the pipe symbol is just passed "
17172 "straight to the host shell, so it can contain redirections, globs and "
17173 "anything else that makes sense on the host side."
17174 msgstr ""
17175
17176 # type: textblock
17177 #: ../fish/guestfish.pod:650
17178 msgid ""
17179 "To use a literal argument which begins with a pipe symbol, you have to quote "
17180 "it, eg:"
17181 msgstr ""
17182
17183 # type: verbatim
17184 #: ../fish/guestfish.pod:653
17185 #, no-wrap
17186 msgid ""
17187 " echo \"|\"\n"
17188 "\n"
17189 msgstr ""
17190
17191 # type: =head1
17192 #: ../fish/guestfish.pod:655
17193 msgid "HOME DIRECTORIES"
17194 msgstr ""
17195
17196 # type: textblock
17197 #: ../fish/guestfish.pod:657
17198 msgid ""
17199 "If a parameter starts with the character C<~> then the tilde may be expanded "
17200 "as a home directory path (either C<~> for the current user's home directory, "
17201 "or C<~user> for another user)."
17202 msgstr ""
17203
17204 # type: textblock
17205 #: ../fish/guestfish.pod:661
17206 msgid ""
17207 "Note that home directory expansion happens for users known I<on the host>, "
17208 "not in the guest filesystem."
17209 msgstr ""
17210
17211 # type: textblock
17212 #: ../fish/guestfish.pod:664
17213 msgid ""
17214 "To use a literal argument which begins with a tilde, you have to quote it, "
17215 "eg:"
17216 msgstr ""
17217
17218 # type: verbatim
17219 #: ../fish/guestfish.pod:667
17220 #, no-wrap
17221 msgid ""
17222 " echo \"~\"\n"
17223 "\n"
17224 msgstr ""
17225
17226 # type: textblock
17227 #: ../fish/guestfish.pod:671
17228 msgid ""
17229 "Libguestfs has some support for Linux guests encrypted according to the "
17230 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17231 "disk encryption systems used by modern Linux guests.  Currently only "
17232 "LVM-on-LUKS is supported."
17233 msgstr ""
17234
17235 # type: textblock
17236 #: ../fish/guestfish.pod:676
17237 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17238 msgstr ""
17239
17240 # type: verbatim
17241 #: ../fish/guestfish.pod:678
17242 #, no-wrap
17243 msgid ""
17244 " ><fs> vfs-type /dev/sda2\n"
17245 " crypto_LUKS\n"
17246 "\n"
17247 msgstr ""
17248
17249 # type: textblock
17250 #: ../fish/guestfish.pod:681
17251 msgid ""
17252 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17253 "device called C</dev/mapper/luksdev>."
17254 msgstr ""
17255
17256 # type: verbatim
17257 #: ../fish/guestfish.pod:684
17258 #, no-wrap
17259 msgid ""
17260 " ><fs> luks-open /dev/sda2 luksdev\n"
17261 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17262 "\n"
17263 msgstr ""
17264
17265 # type: textblock
17266 #: ../fish/guestfish.pod:687
17267 msgid ""
17268 "Finally you have to tell LVM to scan for volume groups on the newly created "
17269 "mapper device:"
17270 msgstr ""
17271
17272 # type: verbatim
17273 #: ../fish/guestfish.pod:690
17274 #, no-wrap
17275 msgid ""
17276 " vgscan\n"
17277 " vg-activate-all true\n"
17278 "\n"
17279 msgstr ""
17280
17281 # type: textblock
17282 #: ../fish/guestfish.pod:693
17283 msgid "The logical volume(s) can now be mounted in the usual way."
17284 msgstr ""
17285
17286 # type: textblock
17287 #: ../fish/guestfish.pod:695
17288 msgid ""
17289 "Before closing a LUKS device you must unmount any logical volumes on it and "
17290 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17291 "one.  Then you can close the mapper device:"
17292 msgstr ""
17293
17294 # type: verbatim
17295 #: ../fish/guestfish.pod:699
17296 #, no-wrap
17297 msgid ""
17298 " vg-activate false /dev/VG\n"
17299 " luks-close /dev/mapper/luksdev\n"
17300 "\n"
17301 msgstr ""
17302
17303 # type: =head1
17304 #: ../fish/guestfish.pod:702
17305 msgid "WINDOWS PATHS"
17306 msgstr ""
17307
17308 # type: textblock
17309 #: ../fish/guestfish.pod:704
17310 msgid ""
17311 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17312 "(with some limitations).  The following commands are equivalent:"
17313 msgstr ""
17314
17315 # type: verbatim
17316 #: ../fish/guestfish.pod:707
17317 #, no-wrap
17318 msgid ""
17319 " file /WINDOWS/system32/config/system.LOG\n"
17320 "\n"
17321 msgstr ""
17322
17323 # type: verbatim
17324 #: ../fish/guestfish.pod:709
17325 #, no-wrap
17326 msgid ""
17327 " file win:/windows/system32/config/system.log\n"
17328 "\n"
17329 msgstr ""
17330
17331 # type: verbatim
17332 #: ../fish/guestfish.pod:711
17333 #, no-wrap
17334 msgid ""
17335 " file win:\\windows\\system32\\config\\system.log\n"
17336 "\n"
17337 msgstr ""
17338
17339 # type: verbatim
17340 #: ../fish/guestfish.pod:713
17341 #, no-wrap
17342 msgid ""
17343 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17344 "\n"
17345 msgstr ""
17346
17347 # type: textblock
17348 #: ../fish/guestfish.pod:715
17349 msgid ""
17350 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17351 "handles case insensitivity like Windows would.  This only works in argument "
17352 "positions that expect a path."
17353 msgstr ""
17354
17355 # type: =head1
17356 #: ../fish/guestfish.pod:719
17357 msgid "UPLOADING AND DOWNLOADING FILES"
17358 msgstr ""
17359
17360 # type: textblock
17361 #: ../fish/guestfish.pod:721
17362 msgid ""
17363 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17364 "others which upload from or download to a local file, you can use the "
17365 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17366 msgstr ""
17367
17368 # type: verbatim
17369 #: ../fish/guestfish.pod:725
17370 #, no-wrap
17371 msgid ""
17372 " upload - /foo\n"
17373 "\n"
17374 msgstr ""
17375
17376 # type: textblock
17377 #: ../fish/guestfish.pod:727
17378 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17379 msgstr ""
17380
17381 # type: verbatim
17382 #: ../fish/guestfish.pod:730
17383 #, no-wrap
17384 msgid ""
17385 " tar-out /etc - | tar tf -\n"
17386 "\n"
17387 msgstr ""
17388
17389 # type: textblock
17390 #: ../fish/guestfish.pod:732
17391 msgid ""
17392 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17393 "command (see L</PIPES>)."
17394 msgstr ""
17395
17396 # type: textblock
17397 #: ../fish/guestfish.pod:735
17398 msgid ""
17399 "When using C<-> to read from stdin, the input is read up to the end of "
17400 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17401 "some arbitrary end marker:"
17402 msgstr ""
17403
17404 # type: verbatim
17405 #: ../fish/guestfish.pod:739
17406 #, no-wrap
17407 msgid ""
17408 " upload -<<END /foo\n"
17409 " input line 1\n"
17410 " input line 2\n"
17411 " input line 3\n"
17412 " END\n"
17413 "\n"
17414 msgstr ""
17415
17416 # type: textblock
17417 #: ../fish/guestfish.pod:745
17418 msgid ""
17419 "Any string of characters can be used instead of C<END>.  The end marker must "
17420 "appear on a line of its own, without any preceeding or following characters "
17421 "(not even spaces)."
17422 msgstr ""
17423
17424 # type: textblock
17425 #: ../fish/guestfish.pod:749
17426 msgid ""
17427 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17428 "upload local files (so-called \"FileIn\" parameters in the generator)."
17429 msgstr ""
17430
17431 # type: =head1
17432 #: ../fish/guestfish.pod:752
17433 msgid "EXIT ON ERROR BEHAVIOUR"
17434 msgstr ""
17435
17436 # type: textblock
17437 #: ../fish/guestfish.pod:754
17438 msgid ""
17439 "By default, guestfish will ignore any errors when in interactive mode "
17440 "(ie. taking commands from a human over a tty), and will exit on the first "
17441 "error in non-interactive mode (scripts, commands given on the command line)."
17442 msgstr ""
17443
17444 # type: textblock
17445 #: ../fish/guestfish.pod:759
17446 msgid ""
17447 "If you prefix a command with a I<-> character, then that command will not "
17448 "cause guestfish to exit, even if that (one) command returns an error."
17449 msgstr ""
17450
17451 # type: =head1
17452 #: ../fish/guestfish.pod:763
17453 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17454 msgstr ""
17455
17456 # type: textblock
17457 #: ../fish/guestfish.pod:765
17458 msgid ""
17459 "Guestfish can be remote-controlled over a socket.  This is useful "
17460 "particularly in shell scripts where you want to make several different "
17461 "changes to a filesystem, but you don't want the overhead of starting up a "
17462 "guestfish process each time."
17463 msgstr ""
17464
17465 # type: textblock
17466 #: ../fish/guestfish.pod:770
17467 msgid "Start a guestfish server process using:"
17468 msgstr ""
17469
17470 # type: verbatim
17471 #: ../fish/guestfish.pod:772
17472 #, no-wrap
17473 msgid ""
17474 " eval \"`guestfish --listen`\"\n"
17475 "\n"
17476 msgstr ""
17477
17478 # type: textblock
17479 #: ../fish/guestfish.pod:774
17480 msgid "and then send it commands by doing:"
17481 msgstr ""
17482
17483 # type: verbatim
17484 #: ../fish/guestfish.pod:776
17485 #, no-wrap
17486 msgid ""
17487 " guestfish --remote cmd [...]\n"
17488 "\n"
17489 msgstr ""
17490
17491 # type: textblock
17492 #: ../fish/guestfish.pod:778
17493 msgid "To cause the server to exit, send it the exit command:"
17494 msgstr ""
17495
17496 # type: verbatim
17497 #: ../fish/guestfish.pod:780
17498 #, no-wrap
17499 msgid ""
17500 " guestfish --remote exit\n"
17501 "\n"
17502 msgstr ""
17503
17504 # type: textblock
17505 #: ../fish/guestfish.pod:782
17506 msgid ""
17507 "Note that the server will normally exit if there is an error in a command.  "
17508 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17509 "BEHAVIOUR>."
17510 msgstr ""
17511
17512 # type: =head2
17513 #: ../fish/guestfish.pod:786
17514 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17515 msgstr ""
17516
17517 # type: textblock
17518 #: ../fish/guestfish.pod:788
17519 msgid ""
17520 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17521 "is how the I<--remote> option knows where to send the commands.  You can "
17522 "have several guestfish listener processes running using:"
17523 msgstr ""
17524
17525 # type: verbatim
17526 #: ../fish/guestfish.pod:792
17527 #, no-wrap
17528 msgid ""
17529 " eval \"`guestfish --listen`\"\n"
17530 " pid1=$GUESTFISH_PID\n"
17531 " eval \"`guestfish --listen`\"\n"
17532 " pid2=$GUESTFISH_PID\n"
17533 " ...\n"
17534 " guestfish --remote=$pid1 cmd\n"
17535 " guestfish --remote=$pid2 cmd\n"
17536 "\n"
17537 msgstr ""
17538
17539 # type: =head2
17540 #: ../fish/guestfish.pod:800
17541 msgid "REMOTE CONTROL AND CSH"
17542 msgstr ""
17543
17544 # type: textblock
17545 #: ../fish/guestfish.pod:802
17546 msgid ""
17547 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17548 "option:"
17549 msgstr ""
17550
17551 # type: verbatim
17552 #: ../fish/guestfish.pod:805
17553 #, no-wrap
17554 msgid ""
17555 " eval \"`guestfish --listen --csh`\"\n"
17556 "\n"
17557 msgstr ""
17558
17559 # type: =head2
17560 #: ../fish/guestfish.pod:807
17561 msgid "REMOTE CONTROL DETAILS"
17562 msgstr ""
17563
17564 # type: textblock
17565 #: ../fish/guestfish.pod:809
17566 msgid ""
17567 "Remote control happens over a Unix domain socket called "
17568 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17569 "of the process, and C<$PID> is the process ID of the server."
17570 msgstr ""
17571
17572 # type: textblock
17573 #: ../fish/guestfish.pod:813
17574 msgid "Guestfish client and server versions must match exactly."
17575 msgstr ""
17576
17577 # type: =head1
17578 #: ../fish/guestfish.pod:815
17579 msgid "PREPARED DISK IMAGES"
17580 msgstr ""
17581
17582 # type: textblock
17583 #: ../fish/guestfish.pod:817
17584 msgid ""
17585 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17586 "preformatted disk images that guestfish can make for you to save typing.  "
17587 "This is particularly useful for testing purposes.  This option is used "
17588 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17589 "can be mixed with I<-a>)."
17590 msgstr ""
17591
17592 # type: textblock
17593 #: ../fish/guestfish.pod:823
17594 msgid ""
17595 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17596 "the second and so on.  Existing files in the current directory are "
17597 "I<overwritten>."
17598 msgstr ""
17599
17600 # type: textblock
17601 #: ../fish/guestfish.pod:827
17602 msgid ""
17603 "The type briefly describes how the disk should be sized, partitioned, how "
17604 "filesystem(s) should be created, and how content should be added.  "
17605 "Optionally the type can be followed by extra parameters, separated by C<:> "
17606 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17607 "sparsely-allocated disk, containing a single partition, with the partition "
17608 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17609 "on a 1GB disk instead."
17610 msgstr ""
17611
17612 # type: textblock
17613 #: ../fish/guestfish.pod:835
17614 msgid "To list the available types and any extra parameters they take, run:"
17615 msgstr ""
17616
17617 # type: textblock
17618 #: ../fish/guestfish.pod:839
17619 msgid ""
17620 "Note that the prepared filesystem is not mounted.  You would usually have to "
17621 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17622 msgstr ""
17623
17624 # type: textblock
17625 #: ../fish/guestfish.pod:843
17626 msgid ""
17627 "If any I<-N> or I<--new> options are given, the guest is automatically "
17628 "launched."
17629 msgstr ""
17630
17631 # type: textblock
17632 #: ../fish/guestfish.pod:848
17633 msgid "Create a 100MB disk with an ext4-formatted partition:"
17634 msgstr ""
17635
17636 # type: verbatim
17637 #: ../fish/guestfish.pod:850
17638 #, no-wrap
17639 msgid ""
17640 " guestfish -N fs:ext4\n"
17641 "\n"
17642 msgstr ""
17643
17644 # type: textblock
17645 #: ../fish/guestfish.pod:852
17646 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17647 msgstr ""
17648
17649 # type: verbatim
17650 #: ../fish/guestfish.pod:854
17651 #, no-wrap
17652 msgid ""
17653 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17654 "\n"
17655 msgstr ""
17656
17657 # type: textblock
17658 #: ../fish/guestfish.pod:856
17659 msgid "Create a blank 200MB disk:"
17660 msgstr ""
17661
17662 # type: verbatim
17663 #: ../fish/guestfish.pod:858
17664 #, no-wrap
17665 msgid ""
17666 " guestfish -N disk:200M\n"
17667 "\n"
17668 msgstr ""
17669
17670 # type: =head1
17671 #: ../fish/guestfish.pod:860
17672 msgid "PROGRESS BARS"
17673 msgstr ""
17674
17675 # type: textblock
17676 #: ../fish/guestfish.pod:862
17677 msgid ""
17678 "Some (not all) long-running commands send progress notification messages as "
17679 "they are running.  Guestfish turns these messages into progress bars."
17680 msgstr ""
17681
17682 # type: textblock
17683 #: ../fish/guestfish.pod:866
17684 msgid ""
17685 "When a command that supports progress bars takes longer than two seconds to "
17686 "run, and if progress bars are enabled, then you will see one appearing below "
17687 "the command:"
17688 msgstr ""
17689
17690 # type: verbatim
17691 #: ../fish/guestfish.pod:870
17692 #, no-wrap
17693 msgid ""
17694 " ><fs> copy-size /large-file /another-file 2048M\n"
17695 " / 10% [#####-----------------------------------------] 00:30\n"
17696 "\n"
17697 msgstr ""
17698
17699 # type: textblock
17700 #: ../fish/guestfish.pod:873
17701 msgid ""
17702 "The spinner on the left hand side moves round once for every progress "
17703 "notification received from the backend.  This is a (reasonably) golden "
17704 "assurance that the command is \"doing something\" even if the progress bar "
17705 "is not moving, because the command is able to send the progress "
17706 "notifications.  When the bar reaches 100% and the command finishes, the "
17707 "spinner disappears."
17708 msgstr ""
17709
17710 # type: textblock
17711 #: ../fish/guestfish.pod:880
17712 msgid ""
17713 "Progress bars are enabled by default when guestfish is used interactively.  "
17714 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17715 "and you can disable them completely using I<--no-progress-bars>."
17716 msgstr ""
17717
17718 # type: =head1
17719 #: ../fish/guestfish.pod:885
17720 msgid "GUESTFISH COMMANDS"
17721 msgstr ""
17722
17723 # type: textblock
17724 #: ../fish/guestfish.pod:887
17725 msgid ""
17726 "The commands in this section are guestfish convenience commands, in other "
17727 "words, they are not part of the L<guestfs(3)> API."
17728 msgstr ""
17729
17730 # type: =head2
17731 #: ../fish/guestfish.pod:890
17732 msgid "help"
17733 msgstr ""
17734
17735 # type: verbatim
17736 #: ../fish/guestfish.pod:892
17737 #, no-wrap
17738 msgid ""
17739 " help\n"
17740 " help cmd\n"
17741 "\n"
17742 msgstr ""
17743
17744 # type: textblock
17745 #: ../fish/guestfish.pod:895
17746 msgid "Without any parameter, this provides general help."
17747 msgstr ""
17748
17749 # type: textblock
17750 #: ../fish/guestfish.pod:897
17751 msgid "With a C<cmd> parameter, this displays detailed help for that command."
17752 msgstr ""
17753
17754 # type: =head2
17755 #: ../fish/guestfish.pod:899
17756 msgid "quit | exit"
17757 msgstr ""
17758
17759 # type: textblock
17760 #: ../fish/guestfish.pod:901
17761 msgid "This exits guestfish.  You can also use C<^D> key."
17762 msgstr ""
17763
17764 # type: textblock
17765 #: ../fish/guestfish.pod:903
17766 msgid "@FISH_COMMANDS@"
17767 msgstr ""
17768
17769 # type: =head1
17770 #: ../fish/guestfish.pod:905
17771 msgid "COMMANDS"
17772 msgstr ""
17773
17774 # type: =head1
17775 #: ../fish/guestfish.pod:909 ../test-tool/libguestfs-test-tool.pod:83
17776 msgid "EXIT CODE"
17777 msgstr ""
17778
17779 # type: textblock
17780 #: ../fish/guestfish.pod:911
17781 msgid ""
17782 "guestfish returns 0 if the commands completed without error, or 1 if there "
17783 "was an error."
17784 msgstr ""
17785
17786 # type: =item
17787 #: ../fish/guestfish.pod:918
17788 msgid "EDITOR"
17789 msgstr ""
17790
17791 # type: textblock
17792 #: ../fish/guestfish.pod:920
17793 msgid ""
17794 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17795 "C<vi>."
17796 msgstr ""
17797
17798 # type: =item
17799 #: ../fish/guestfish.pod:923
17800 msgid "GUESTFISH_PID"
17801 msgstr ""
17802
17803 # type: textblock
17804 #: ../fish/guestfish.pod:925
17805 msgid ""
17806 "Used with the I<--remote> option to specify the remote guestfish process to "
17807 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17808 msgstr ""
17809
17810 # type: =item
17811 #: ../fish/guestfish.pod:929
17812 msgid "HEXEDITOR"
17813 msgstr ""
17814
17815 # type: textblock
17816 #: ../fish/guestfish.pod:931
17817 msgid ""
17818 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17819 "not specified, the external L<hexedit(1)> program is used."
17820 msgstr ""
17821
17822 # type: =item
17823 #: ../fish/guestfish.pod:935
17824 msgid "HOME"
17825 msgstr ""
17826
17827 # type: textblock
17828 #: ../fish/guestfish.pod:937
17829 msgid ""
17830 "If compiled with GNU readline support, various files in the home directory "
17831 "can be used.  See L</FILES>."
17832 msgstr ""
17833
17834 # type: textblock
17835 #: ../fish/guestfish.pod:946
17836 msgid ""
17837 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17838 "effect as using the B<-v> option."
17839 msgstr ""
17840
17841 # type: textblock
17842 #: ../fish/guestfish.pod:958
17843 msgid ""
17844 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17845 "the discussion of paths in L<guestfs(3)>."
17846 msgstr ""
17847
17848 # type: textblock
17849 #: ../fish/guestfish.pod:969
17850 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17851 msgstr ""
17852
17853 # type: =item
17854 #: ../fish/guestfish.pod:971
17855 msgid "PAGER"
17856 msgstr ""
17857
17858 # type: textblock
17859 #: ../fish/guestfish.pod:973
17860 msgid ""
17861 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17862 "C<more>."
17863 msgstr ""
17864
17865 # type: =head1
17866 #: ../fish/guestfish.pod:988 ../test-tool/libguestfs-test-tool.pod:88
17867 msgid "FILES"
17868 msgstr ""
17869
17870 # type: =item
17871 #: ../fish/guestfish.pod:992
17872 msgid "$HOME/.guestfish"
17873 msgstr ""
17874
17875 # type: textblock
17876 #: ../fish/guestfish.pod:994
17877 msgid ""
17878 "If compiled with GNU readline support, then the command history is saved in "
17879 "this file."
17880 msgstr ""
17881
17882 # type: =item
17883 #: ../fish/guestfish.pod:997
17884 msgid "$HOME/.inputrc"
17885 msgstr ""
17886
17887 # type: =item
17888 #: ../fish/guestfish.pod:999
17889 msgid "/etc/inputrc"
17890 msgstr ""
17891
17892 # type: textblock
17893 #: ../fish/guestfish.pod:1001
17894 msgid ""
17895 "If compiled with GNU readline support, then these files can be used to "
17896 "configure readline.  For further information, please see "
17897 "L<readline(3)/INITIALIZATION FILE>."
17898 msgstr ""
17899
17900 # type: textblock
17901 #: ../fish/guestfish.pod:1005
17902 msgid "To write rules which only apply to guestfish, use:"
17903 msgstr ""
17904
17905 # type: verbatim
17906 #: ../fish/guestfish.pod:1007
17907 #, no-wrap
17908 msgid ""
17909 " $if guestfish\n"
17910 " ...\n"
17911 " $endif\n"
17912 "\n"
17913 msgstr ""
17914
17915 # type: textblock
17916 #: ../fish/guestfish.pod:1011
17917 msgid ""
17918 "Variables that you can set in inputrc that change the behaviour of guestfish "
17919 "in useful ways include:"
17920 msgstr ""
17921
17922 # type: =item
17923 #: ../fish/guestfish.pod:1016
17924 msgid "completion-ignore-case (default: on)"
17925 msgstr ""
17926
17927 # type: textblock
17928 #: ../fish/guestfish.pod:1018
17929 msgid ""
17930 "By default, guestfish will ignore case when tab-completing paths on the "
17931 "disk.  Use:"
17932 msgstr ""
17933
17934 # type: verbatim
17935 #: ../fish/guestfish.pod:1021
17936 #, no-wrap
17937 msgid ""
17938 " set completion-ignore-case off\n"
17939 "\n"
17940 msgstr ""
17941
17942 # type: textblock
17943 #: ../fish/guestfish.pod:1023
17944 msgid "to make guestfish case sensitive."
17945 msgstr ""
17946
17947 # type: =item
17948 #: ../fish/guestfish.pod:1027
17949 msgid "test1.img"
17950 msgstr ""
17951
17952 # type: =item
17953 #: ../fish/guestfish.pod:1029
17954 msgid "test2.img (etc)"
17955 msgstr ""
17956
17957 # type: textblock
17958 #: ../fish/guestfish.pod:1031
17959 msgid ""
17960 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17961 "will be created in the file C<test1.img> in the current directory.  The "
17962 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17963 "the same name will be overwritten."
17964 msgstr ""
17965
17966 # type: textblock
17967 #: ../fish/guestfish.pod:1040
17968 msgid ""
17969 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17970 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17971 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17972 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17973 msgstr ""
17974
17975 # type: textblock
17976 #: ../fish/guestfish.pod:1064 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../inspector/virt-inspector.pl:598 ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518 ../tools/virt-df.pl:657 ../tools/virt-ls.pl:251 ../tools/virt-resize.pl:1516 ../tools/virt-list-filesystems.pl:206 ../tools/virt-cat.pl:203 ../tools/virt-tar.pl:300 ../tools/virt-rescue.pl:285 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:273
17977 msgid ""
17978 "This program is free software; you can redistribute it and/or modify it "
17979 "under the terms of the GNU General Public License as published by the Free "
17980 "Software Foundation; either version 2 of the License, or (at your option) "
17981 "any later version."
17982 msgstr ""
17983
17984 # type: textblock
17985 #: ../fish/guestfish.pod:1069 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../inspector/virt-inspector.pl:603 ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523 ../tools/virt-df.pl:662 ../tools/virt-ls.pl:256 ../tools/virt-resize.pl:1521 ../tools/virt-list-filesystems.pl:211 ../tools/virt-cat.pl:208 ../tools/virt-tar.pl:305 ../tools/virt-rescue.pl:290 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:278
17986 msgid ""
17987 "This program is distributed in the hope that it will be useful, but WITHOUT "
17988 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17989 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17990 "more details."
17991 msgstr ""
17992
17993 # type: textblock
17994 #: ../fish/guestfish.pod:1074 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pl:608 ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528 ../tools/virt-df.pl:667 ../tools/virt-ls.pl:261 ../tools/virt-resize.pl:1526 ../tools/virt-list-filesystems.pl:216 ../tools/virt-cat.pl:213 ../tools/virt-tar.pl:310 ../tools/virt-rescue.pl:295 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:283
17995 msgid ""
17996 "You should have received a copy of the GNU General Public License along with "
17997 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17998 "Ave, Cambridge, MA 02139, USA."
17999 msgstr ""
18000
18001 # type: =head2
18002 #: ../fish/guestfish-actions.pod:1
18003 msgid "add-cdrom"
18004 msgstr ""
18005
18006 # type: verbatim
18007 #: ../fish/guestfish-actions.pod:3
18008 #, no-wrap
18009 msgid ""
18010 " add-cdrom filename\n"
18011 "\n"
18012 msgstr ""
18013
18014 # type: textblock
18015 #: ../fish/guestfish-actions.pod:15
18016 msgid ""
18017 "This call checks for the existence of C<filename>.  This stops you from "
18018 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18019 "and C<http:> URLs.  To specify those, use the general L</config> call "
18020 "instead."
18021 msgstr ""
18022
18023 # type: textblock
18024 #: ../fish/guestfish-actions.pod:22
18025 msgid ""
18026 "If you just want to add an ISO file (often you use this as an efficient way "
18027 "to transfer large files into the guest), then you should probably use "
18028 "L</add-drive-ro> instead."
18029 msgstr ""
18030
18031 # type: =head2
18032 #: ../fish/guestfish-actions.pod:35
18033 msgid "add-drive"
18034 msgstr ""
18035
18036 # type: verbatim
18037 #: ../fish/guestfish-actions.pod:37
18038 #, no-wrap
18039 msgid ""
18040 " add-drive filename\n"
18041 "\n"
18042 msgstr ""
18043
18044 # type: textblock
18045 #: ../fish/guestfish-actions.pod:39
18046 msgid ""
18047 "This function is the equivalent of calling L</add-drive-opts> with no "
18048 "optional parameters, so the disk is added writable, with the format being "
18049 "detected automatically."
18050 msgstr ""
18051
18052 # type: textblock
18053 #: ../fish/guestfish-actions.pod:43
18054 msgid ""
18055 "Automatic detection of the format opens you up to a potential security hole "
18056 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18057 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18058 "you should think about replacing calls to this function with calls to "
18059 "L</add-drive-opts>, and specifying the format."
18060 msgstr ""
18061
18062 # type: =head2
18063 #: ../fish/guestfish-actions.pod:50
18064 msgid "add-drive-opts"
18065 msgstr ""
18066
18067 # type: =head2
18068 #: ../fish/guestfish-actions.pod:52
18069 msgid "add"
18070 msgstr ""
18071
18072 # type: verbatim
18073 #: ../fish/guestfish-actions.pod:54
18074 #, no-wrap
18075 msgid ""
18076 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18077 "\n"
18078 msgstr ""
18079
18080 # type: textblock
18081 #: ../fish/guestfish-actions.pod:81
18082 msgid ""
18083 "This forces the image format.  If you omit this (or use L</add-drive> or "
18084 "L</add-drive-ro>) then the format is automatically detected.  Possible "
18085 "formats include C<raw> and C<qcow2>."
18086 msgstr ""
18087
18088 # type: textblock
18089 #: ../fish/guestfish-actions.pod:92
18090 msgid ""
18091 "This rarely-used option lets you emulate the behaviour of the deprecated "
18092 "L</add-drive-with-if> call (q.v.)"
18093 msgstr ""
18094
18095 # type: textblock
18096 #: ../fish/guestfish-actions.pod:97
18097 msgid ""
18098 "This command has one or more optional arguments.  See L</OPTIONAL "
18099 "ARGUMENTS>."
18100 msgstr ""
18101
18102 # type: =head2
18103 #: ../fish/guestfish-actions.pod:99
18104 msgid "add-drive-ro"
18105 msgstr ""
18106
18107 # type: =head2
18108 #: ../fish/guestfish-actions.pod:101
18109 msgid "add-ro"
18110 msgstr ""
18111
18112 # type: verbatim
18113 #: ../fish/guestfish-actions.pod:103
18114 #, no-wrap
18115 msgid ""
18116 " add-drive-ro filename\n"
18117 "\n"
18118 msgstr ""
18119
18120 # type: textblock
18121 #: ../fish/guestfish-actions.pod:105
18122 msgid ""
18123 "This function is the equivalent of calling L</add-drive-opts> with the "
18124 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18125 "is added read-only, with the format being detected automatically."
18126 msgstr ""
18127
18128 # type: =head2
18129 #: ../fish/guestfish-actions.pod:110
18130 msgid "add-drive-ro-with-if"
18131 msgstr ""
18132
18133 # type: verbatim
18134 #: ../fish/guestfish-actions.pod:112
18135 #, no-wrap
18136 msgid ""
18137 " add-drive-ro-with-if filename iface\n"
18138 "\n"
18139 msgstr ""
18140
18141 # type: textblock
18142 #: ../fish/guestfish-actions.pod:114
18143 msgid ""
18144 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18145 "interface emulation to use at run time."
18146 msgstr ""
18147
18148 # type: =head2
18149 #: ../fish/guestfish-actions.pod:124
18150 msgid "add-drive-with-if"
18151 msgstr ""
18152
18153 # type: verbatim
18154 #: ../fish/guestfish-actions.pod:126
18155 #, no-wrap
18156 msgid ""
18157 " add-drive-with-if filename iface\n"
18158 "\n"
18159 msgstr ""
18160
18161 # type: textblock
18162 #: ../fish/guestfish-actions.pod:128
18163 msgid ""
18164 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18165 "interface emulation to use at run time."
18166 msgstr ""
18167
18168 # type: =head2
18169 #: ../fish/guestfish-actions.pod:138
18170 msgid "aug-clear"
18171 msgstr ""
18172
18173 # type: verbatim
18174 #: ../fish/guestfish-actions.pod:140
18175 #, no-wrap
18176 msgid ""
18177 " aug-clear augpath\n"
18178 "\n"
18179 msgstr ""
18180
18181 # type: =head2
18182 #: ../fish/guestfish-actions.pod:145
18183 msgid "aug-close"
18184 msgstr ""
18185
18186 # type: verbatim
18187 #: ../fish/guestfish-actions.pod:147
18188 #, no-wrap
18189 msgid ""
18190 " aug-close\n"
18191 "\n"
18192 msgstr ""
18193
18194 # type: textblock
18195 #: ../fish/guestfish-actions.pod:149
18196 msgid ""
18197 "Close the current Augeas handle and free up any resources used by it.  After "
18198 "calling this, you have to call L</aug-init> again before you can use any "
18199 "other Augeas functions."
18200 msgstr ""
18201
18202 # type: =head2
18203 #: ../fish/guestfish-actions.pod:154
18204 msgid "aug-defnode"
18205 msgstr ""
18206
18207 # type: verbatim
18208 #: ../fish/guestfish-actions.pod:156
18209 #, no-wrap
18210 msgid ""
18211 " aug-defnode name expr val\n"
18212 "\n"
18213 msgstr ""
18214
18215 # type: textblock
18216 #: ../fish/guestfish-actions.pod:161
18217 msgid ""
18218 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18219 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18220 "containing that single node."
18221 msgstr ""
18222
18223 # type: =head2
18224 #: ../fish/guestfish-actions.pod:169
18225 msgid "aug-defvar"
18226 msgstr ""
18227
18228 # type: verbatim
18229 #: ../fish/guestfish-actions.pod:171
18230 #, no-wrap
18231 msgid ""
18232 " aug-defvar name expr\n"
18233 "\n"
18234 msgstr ""
18235
18236 # type: =head2
18237 #: ../fish/guestfish-actions.pod:180
18238 msgid "aug-get"
18239 msgstr ""
18240
18241 # type: verbatim
18242 #: ../fish/guestfish-actions.pod:182
18243 #, no-wrap
18244 msgid ""
18245 " aug-get augpath\n"
18246 "\n"
18247 msgstr ""
18248
18249 # type: =head2
18250 #: ../fish/guestfish-actions.pod:187
18251 msgid "aug-init"
18252 msgstr ""
18253
18254 # type: verbatim
18255 #: ../fish/guestfish-actions.pod:189
18256 #, no-wrap
18257 msgid ""
18258 " aug-init root flags\n"
18259 "\n"
18260 msgstr ""
18261
18262 # type: textblock
18263 #: ../fish/guestfish-actions.pod:195
18264 msgid "You must call this before using any other L</aug-*> commands."
18265 msgstr ""
18266
18267 # type: textblock
18268 #: ../fish/guestfish-actions.pod:230
18269 msgid "Do not load the tree in L</aug-init>."
18270 msgstr ""
18271
18272 # type: textblock
18273 #: ../fish/guestfish-actions.pod:234
18274 msgid "To close the handle, you can call L</aug-close>."
18275 msgstr ""
18276
18277 # type: =head2
18278 #: ../fish/guestfish-actions.pod:238
18279 msgid "aug-insert"
18280 msgstr ""
18281
18282 # type: verbatim
18283 #: ../fish/guestfish-actions.pod:240
18284 #, no-wrap
18285 msgid ""
18286 " aug-insert augpath label true|false\n"
18287 "\n"
18288 msgstr ""
18289
18290 # type: =head2
18291 #: ../fish/guestfish-actions.pod:250
18292 msgid "aug-load"
18293 msgstr ""
18294
18295 # type: verbatim
18296 #: ../fish/guestfish-actions.pod:252
18297 #, no-wrap
18298 msgid ""
18299 " aug-load\n"
18300 "\n"
18301 msgstr ""
18302
18303 # type: =head2
18304 #: ../fish/guestfish-actions.pod:259
18305 msgid "aug-ls"
18306 msgstr ""
18307
18308 # type: verbatim
18309 #: ../fish/guestfish-actions.pod:261
18310 #, no-wrap
18311 msgid ""
18312 " aug-ls augpath\n"
18313 "\n"
18314 msgstr ""
18315
18316 # type: textblock
18317 #: ../fish/guestfish-actions.pod:263
18318 msgid ""
18319 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
18320 "resulting nodes into alphabetical order."
18321 msgstr ""
18322
18323 # type: =head2
18324 #: ../fish/guestfish-actions.pod:266
18325 msgid "aug-match"
18326 msgstr ""
18327
18328 # type: verbatim
18329 #: ../fish/guestfish-actions.pod:268
18330 #, no-wrap
18331 msgid ""
18332 " aug-match augpath\n"
18333 "\n"
18334 msgstr ""
18335
18336 # type: =head2
18337 #: ../fish/guestfish-actions.pod:274
18338 msgid "aug-mv"
18339 msgstr ""
18340
18341 # type: verbatim
18342 #: ../fish/guestfish-actions.pod:276
18343 #, no-wrap
18344 msgid ""
18345 " aug-mv src dest\n"
18346 "\n"
18347 msgstr ""
18348
18349 # type: =head2
18350 #: ../fish/guestfish-actions.pod:281
18351 msgid "aug-rm"
18352 msgstr ""
18353
18354 # type: verbatim
18355 #: ../fish/guestfish-actions.pod:283
18356 #, no-wrap
18357 msgid ""
18358 " aug-rm augpath\n"
18359 "\n"
18360 msgstr ""
18361
18362 # type: =head2
18363 #: ../fish/guestfish-actions.pod:289
18364 msgid "aug-save"
18365 msgstr ""
18366
18367 # type: verbatim
18368 #: ../fish/guestfish-actions.pod:291
18369 #, no-wrap
18370 msgid ""
18371 " aug-save\n"
18372 "\n"
18373 msgstr ""
18374
18375 # type: textblock
18376 #: ../fish/guestfish-actions.pod:295
18377 msgid ""
18378 "The flags which were passed to L</aug-init> affect exactly how files are "
18379 "saved."
18380 msgstr ""
18381
18382 # type: =head2
18383 #: ../fish/guestfish-actions.pod:298
18384 msgid "aug-set"
18385 msgstr ""
18386
18387 # type: verbatim
18388 #: ../fish/guestfish-actions.pod:300
18389 #, no-wrap
18390 msgid ""
18391 " aug-set augpath val\n"
18392 "\n"
18393 msgstr ""
18394
18395 # type: textblock
18396 #: ../fish/guestfish-actions.pod:304
18397 msgid ""
18398 "In the Augeas API, it is possible to clear a node by setting the value to "
18399 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
18400 "this call.  Instead you must use the L</aug-clear> call."
18401 msgstr ""
18402
18403 # type: =head2
18404 #: ../fish/guestfish-actions.pod:309
18405 msgid "available"
18406 msgstr ""
18407
18408 # type: verbatim
18409 #: ../fish/guestfish-actions.pod:311
18410 #, no-wrap
18411 msgid ""
18412 " available 'groups ...'\n"
18413 "\n"
18414 msgstr ""
18415
18416 # type: textblock
18417 #: ../fish/guestfish-actions.pod:317
18418 msgid ""
18419 "The libguestfs groups, and the functions that those groups correspond to, "
18420 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
18421 "runtime by calling L</available-all-groups>."
18422 msgstr ""
18423
18424 # type: textblock
18425 #: ../fish/guestfish-actions.pod:341
18426 msgid "You must call L</launch> before calling this function."
18427 msgstr ""
18428
18429 # type: textblock
18430 #: ../fish/guestfish-actions.pod:363
18431 msgid ""
18432 "This call was added in version C<1.0.80>.  In previous versions of "
18433 "libguestfs all you could do would be to speculatively execute a command to "
18434 "find out if the daemon implemented it.  See also L</version>."
18435 msgstr ""
18436
18437 # type: =head2
18438 #: ../fish/guestfish-actions.pod:370
18439 msgid "available-all-groups"
18440 msgstr ""
18441
18442 # type: verbatim
18443 #: ../fish/guestfish-actions.pod:372
18444 #, no-wrap
18445 msgid ""
18446 " available-all-groups\n"
18447 "\n"
18448 msgstr ""
18449
18450 # type: textblock
18451 #: ../fish/guestfish-actions.pod:374
18452 msgid ""
18453 "This command returns a list of all optional groups that this daemon knows "
18454 "about.  Note this returns both supported and unsupported groups.  To find "
18455 "out which ones the daemon can actually support you have to call "
18456 "L</available> on each member of the returned list."
18457 msgstr ""
18458
18459 # type: textblock
18460 #: ../fish/guestfish-actions.pod:380
18461 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
18462 msgstr ""
18463
18464 # type: =head2
18465 #: ../fish/guestfish-actions.pod:382
18466 msgid "base64-in"
18467 msgstr ""
18468
18469 # type: verbatim
18470 #: ../fish/guestfish-actions.pod:384
18471 #, no-wrap
18472 msgid ""
18473 " base64-in (base64file|-) filename\n"
18474 "\n"
18475 msgstr ""
18476
18477 # type: textblock
18478 #: ../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:3945 ../fish/guestfish-actions.pod:3957 ../fish/guestfish-actions.pod:3968 ../fish/guestfish-actions.pod:3979 ../fish/guestfish-actions.pod:4031 ../fish/guestfish-actions.pod:4040 ../fish/guestfish-actions.pod:4094 ../fish/guestfish-actions.pod:4117
18479 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
18480 msgstr ""
18481
18482 # type: =head2
18483 #: ../fish/guestfish-actions.pod:391
18484 msgid "base64-out"
18485 msgstr ""
18486
18487 # type: verbatim
18488 #: ../fish/guestfish-actions.pod:393
18489 #, no-wrap
18490 msgid ""
18491 " base64-out filename (base64file|-)\n"
18492 "\n"
18493 msgstr ""
18494
18495 # type: =head2
18496 #: ../fish/guestfish-actions.pod:400
18497 msgid "blockdev-flushbufs"
18498 msgstr ""
18499
18500 # type: verbatim
18501 #: ../fish/guestfish-actions.pod:402
18502 #, no-wrap
18503 msgid ""
18504 " blockdev-flushbufs device\n"
18505 "\n"
18506 msgstr ""
18507
18508 # type: =head2
18509 #: ../fish/guestfish-actions.pod:409
18510 msgid "blockdev-getbsz"
18511 msgstr ""
18512
18513 # type: verbatim
18514 #: ../fish/guestfish-actions.pod:411
18515 #, no-wrap
18516 msgid ""
18517 " blockdev-getbsz device\n"
18518 "\n"
18519 msgstr ""
18520
18521 # type: =head2
18522 #: ../fish/guestfish-actions.pod:420
18523 msgid "blockdev-getro"
18524 msgstr ""
18525
18526 # type: verbatim
18527 #: ../fish/guestfish-actions.pod:422
18528 #, no-wrap
18529 msgid ""
18530 " blockdev-getro device\n"
18531 "\n"
18532 msgstr ""
18533
18534 # type: =head2
18535 #: ../fish/guestfish-actions.pod:429
18536 msgid "blockdev-getsize64"
18537 msgstr ""
18538
18539 # type: verbatim
18540 #: ../fish/guestfish-actions.pod:431
18541 #, no-wrap
18542 msgid ""
18543 " blockdev-getsize64 device\n"
18544 "\n"
18545 msgstr ""
18546
18547 # type: textblock
18548 #: ../fish/guestfish-actions.pod:435
18549 msgid "See also L</blockdev-getsz>."
18550 msgstr ""
18551
18552 # type: =head2
18553 #: ../fish/guestfish-actions.pod:439
18554 msgid "blockdev-getss"
18555 msgstr ""
18556
18557 # type: verbatim
18558 #: ../fish/guestfish-actions.pod:441
18559 #, no-wrap
18560 msgid ""
18561 " blockdev-getss device\n"
18562 "\n"
18563 msgstr ""
18564
18565 # type: textblock
18566 #: ../fish/guestfish-actions.pod:446
18567 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18568 msgstr ""
18569
18570 # type: =head2
18571 #: ../fish/guestfish-actions.pod:451
18572 msgid "blockdev-getsz"
18573 msgstr ""
18574
18575 # type: verbatim
18576 #: ../fish/guestfish-actions.pod:453
18577 #, no-wrap
18578 msgid ""
18579 " blockdev-getsz device\n"
18580 "\n"
18581 msgstr ""
18582
18583 # type: textblock
18584 #: ../fish/guestfish-actions.pod:458
18585 msgid ""
18586 "See also L</blockdev-getss> for the real sector size of the device, and "
18587 "L</blockdev-getsize64> for the more useful I<size in bytes>."
18588 msgstr ""
18589
18590 # type: =head2
18591 #: ../fish/guestfish-actions.pod:464
18592 msgid "blockdev-rereadpt"
18593 msgstr ""
18594
18595 # type: verbatim
18596 #: ../fish/guestfish-actions.pod:466
18597 #, no-wrap
18598 msgid ""
18599 " blockdev-rereadpt device\n"
18600 "\n"
18601 msgstr ""
18602
18603 # type: =head2
18604 #: ../fish/guestfish-actions.pod:472
18605 msgid "blockdev-setbsz"
18606 msgstr ""
18607
18608 # type: verbatim
18609 #: ../fish/guestfish-actions.pod:474
18610 #, no-wrap
18611 msgid ""
18612 " blockdev-setbsz device blocksize\n"
18613 "\n"
18614 msgstr ""
18615
18616 # type: =head2
18617 #: ../fish/guestfish-actions.pod:483
18618 msgid "blockdev-setro"
18619 msgstr ""
18620
18621 # type: verbatim
18622 #: ../fish/guestfish-actions.pod:485
18623 #, no-wrap
18624 msgid ""
18625 " blockdev-setro device\n"
18626 "\n"
18627 msgstr ""
18628
18629 # type: =head2
18630 #: ../fish/guestfish-actions.pod:491
18631 msgid "blockdev-setrw"
18632 msgstr ""
18633
18634 # type: verbatim
18635 #: ../fish/guestfish-actions.pod:493
18636 #, no-wrap
18637 msgid ""
18638 " blockdev-setrw device\n"
18639 "\n"
18640 msgstr ""
18641
18642 # type: =head2
18643 #: ../fish/guestfish-actions.pod:499
18644 msgid "case-sensitive-path"
18645 msgstr ""
18646
18647 # type: verbatim
18648 #: ../fish/guestfish-actions.pod:501
18649 #, no-wrap
18650 msgid ""
18651 " case-sensitive-path path\n"
18652 "\n"
18653 msgstr ""
18654
18655 # type: textblock
18656 #: ../fish/guestfish-actions.pod:525
18657 msgid ""
18658 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
18659 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
18660 "how the directories were originally created under Windows)."
18661 msgstr ""
18662
18663 # type: textblock
18664 #: ../fish/guestfish-actions.pod:533
18665 msgid "See also L</realpath>."
18666 msgstr ""
18667
18668 # type: =head2
18669 #: ../fish/guestfish-actions.pod:535
18670 msgid "cat"
18671 msgstr ""
18672
18673 # type: verbatim
18674 #: ../fish/guestfish-actions.pod:537
18675 #, no-wrap
18676 msgid ""
18677 " cat path\n"
18678 "\n"
18679 msgstr ""
18680
18681 # type: textblock
18682 #: ../fish/guestfish-actions.pod:541
18683 msgid ""
18684 "Note that this function cannot correctly handle binary files (specifically, "
18685 "files containing C<\\0> character which is treated as end of string).  For "
18686 "those you need to use the L</read-file> or L</download> functions which have "
18687 "a more complex interface."
18688 msgstr ""
18689
18690 # type: =head2
18691 #: ../fish/guestfish-actions.pod:549
18692 msgid "checksum"
18693 msgstr ""
18694
18695 # type: verbatim
18696 #: ../fish/guestfish-actions.pod:551
18697 #, no-wrap
18698 msgid ""
18699 " checksum csumtype path\n"
18700 "\n"
18701 msgstr ""
18702
18703 # type: textblock
18704 #: ../fish/guestfish-actions.pod:594
18705 msgid "To get the checksum for a device, use L</checksum-device>."
18706 msgstr ""
18707
18708 # type: textblock
18709 #: ../fish/guestfish-actions.pod:596
18710 msgid "To get the checksums for many files, use L</checksums-out>."
18711 msgstr ""
18712
18713 # type: =head2
18714 #: ../fish/guestfish-actions.pod:598
18715 msgid "checksum-device"
18716 msgstr ""
18717
18718 # type: verbatim
18719 #: ../fish/guestfish-actions.pod:600
18720 #, no-wrap
18721 msgid ""
18722 " checksum-device csumtype device\n"
18723 "\n"
18724 msgstr ""
18725
18726 # type: textblock
18727 #: ../fish/guestfish-actions.pod:602
18728 msgid ""
18729 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18730 "device named C<device>.  For the types of checksums supported see the "
18731 "L</checksum> command."
18732 msgstr ""
18733
18734 # type: =head2
18735 #: ../fish/guestfish-actions.pod:606
18736 msgid "checksums-out"
18737 msgstr ""
18738
18739 # type: verbatim
18740 #: ../fish/guestfish-actions.pod:608
18741 #, no-wrap
18742 msgid ""
18743 " checksums-out csumtype directory (sumsfile|-)\n"
18744 "\n"
18745 msgstr ""
18746
18747 # type: =head2
18748 #: ../fish/guestfish-actions.pod:624
18749 msgid "chmod"
18750 msgstr ""
18751
18752 # type: verbatim
18753 #: ../fish/guestfish-actions.pod:626
18754 #, no-wrap
18755 msgid ""
18756 " chmod mode path\n"
18757 "\n"
18758 msgstr ""
18759
18760 # type: =head2
18761 #: ../fish/guestfish-actions.pod:637
18762 msgid "chown"
18763 msgstr ""
18764
18765 # type: verbatim
18766 #: ../fish/guestfish-actions.pod:639
18767 #, no-wrap
18768 msgid ""
18769 " chown owner group path\n"
18770 "\n"
18771 msgstr ""
18772
18773 # type: =head2
18774 #: ../fish/guestfish-actions.pod:647
18775 msgid "command"
18776 msgstr ""
18777
18778 # type: verbatim
18779 #: ../fish/guestfish-actions.pod:649
18780 #, no-wrap
18781 msgid ""
18782 " command 'arguments ...'\n"
18783 "\n"
18784 msgstr ""
18785
18786 # type: textblock
18787 #: ../fish/guestfish-actions.pod:656
18788 msgid ""
18789 "The single parameter is an argv-style list of arguments.  The first element "
18790 "is the name of the program to run.  Subsequent elements are parameters.  The "
18791 "list must be non-empty (ie. must contain a program name).  Note that the "
18792 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18793 msgstr ""
18794
18795 # type: =head2
18796 #: ../fish/guestfish-actions.pod:684
18797 msgid "command-lines"
18798 msgstr ""
18799
18800 # type: verbatim
18801 #: ../fish/guestfish-actions.pod:686
18802 #, no-wrap
18803 msgid ""
18804 " command-lines 'arguments ...'\n"
18805 "\n"
18806 msgstr ""
18807
18808 # type: textblock
18809 #: ../fish/guestfish-actions.pod:688
18810 msgid "This is the same as L</command>, but splits the result into a list of lines."
18811 msgstr ""
18812
18813 # type: textblock
18814 #: ../fish/guestfish-actions.pod:691
18815 msgid "See also: L</sh-lines>"
18816 msgstr ""
18817
18818 # type: =head2
18819 #: ../fish/guestfish-actions.pod:696
18820 msgid "config"
18821 msgstr ""
18822
18823 # type: verbatim
18824 #: ../fish/guestfish-actions.pod:698
18825 #, no-wrap
18826 msgid ""
18827 " config qemuparam qemuvalue\n"
18828 "\n"
18829 msgstr ""
18830
18831 # type: =head2
18832 #: ../fish/guestfish-actions.pod:709
18833 msgid "copy-size"
18834 msgstr ""
18835
18836 # type: verbatim
18837 #: ../fish/guestfish-actions.pod:711
18838 #, no-wrap
18839 msgid ""
18840 " copy-size src dest size\n"
18841 "\n"
18842 msgstr ""
18843
18844 # type: =head2
18845 #: ../fish/guestfish-actions.pod:719
18846 msgid "cp"
18847 msgstr ""
18848
18849 # type: verbatim
18850 #: ../fish/guestfish-actions.pod:721
18851 #, no-wrap
18852 msgid ""
18853 " cp src dest\n"
18854 "\n"
18855 msgstr ""
18856
18857 # type: =head2
18858 #: ../fish/guestfish-actions.pod:726
18859 msgid "cp-a"
18860 msgstr ""
18861
18862 # type: verbatim
18863 #: ../fish/guestfish-actions.pod:728
18864 #, no-wrap
18865 msgid ""
18866 " cp-a src dest\n"
18867 "\n"
18868 msgstr ""
18869
18870 # type: =head2
18871 #: ../fish/guestfish-actions.pod:733
18872 msgid "dd"
18873 msgstr ""
18874
18875 # type: verbatim
18876 #: ../fish/guestfish-actions.pod:735
18877 #, no-wrap
18878 msgid ""
18879 " dd src dest\n"
18880 "\n"
18881 msgstr ""
18882
18883 # type: textblock
18884 #: ../fish/guestfish-actions.pod:742
18885 msgid ""
18886 "If the destination is a device, it must be as large or larger than the "
18887 "source file or device, otherwise the copy will fail.  This command cannot do "
18888 "partial copies (see L</copy-size>)."
18889 msgstr ""
18890
18891 # type: =head2
18892 #: ../fish/guestfish-actions.pod:746
18893 msgid "debug"
18894 msgstr ""
18895
18896 # type: verbatim
18897 #: ../fish/guestfish-actions.pod:748
18898 #, no-wrap
18899 msgid ""
18900 " debug subcmd 'extraargs ...'\n"
18901 "\n"
18902 msgstr ""
18903
18904 # type: textblock
18905 #: ../fish/guestfish-actions.pod:750
18906 msgid ""
18907 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18908 "daemon) that runs inside the qemu subprocess."
18909 msgstr ""
18910
18911 # type: =head2
18912 #: ../fish/guestfish-actions.pod:758
18913 msgid "debug-upload"
18914 msgstr ""
18915
18916 # type: verbatim
18917 #: ../fish/guestfish-actions.pod:760
18918 #, no-wrap
18919 msgid ""
18920 " debug-upload (filename|-) tmpname mode\n"
18921 "\n"
18922 msgstr ""
18923
18924 # type: textblock
18925 #: ../fish/guestfish-actions.pod:762
18926 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
18927 msgstr ""
18928
18929 # type: =head2
18930 #: ../fish/guestfish-actions.pod:771
18931 msgid "df"
18932 msgstr ""
18933
18934 # type: verbatim
18935 #: ../fish/guestfish-actions.pod:773
18936 #, no-wrap
18937 msgid ""
18938 " df\n"
18939 "\n"
18940 msgstr ""
18941
18942 # type: =head2
18943 #: ../fish/guestfish-actions.pod:781
18944 msgid "df-h"
18945 msgstr ""
18946
18947 # type: verbatim
18948 #: ../fish/guestfish-actions.pod:783
18949 #, no-wrap
18950 msgid ""
18951 " df-h\n"
18952 "\n"
18953 msgstr ""
18954
18955 # type: =head2
18956 #: ../fish/guestfish-actions.pod:792
18957 msgid "dmesg"
18958 msgstr ""
18959
18960 # type: verbatim
18961 #: ../fish/guestfish-actions.pod:794
18962 #, no-wrap
18963 msgid ""
18964 " dmesg\n"
18965 "\n"
18966 msgstr ""
18967
18968 # type: textblock
18969 #: ../fish/guestfish-actions.pod:800
18970 msgid ""
18971 "Another way to get the same information is to enable verbose messages with "
18972 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18973 "before running the program."
18974 msgstr ""
18975
18976 # type: =head2
18977 #: ../fish/guestfish-actions.pod:805
18978 msgid "download"
18979 msgstr ""
18980
18981 # type: verbatim
18982 #: ../fish/guestfish-actions.pod:807
18983 #, no-wrap
18984 msgid ""
18985 " download remotefilename (filename|-)\n"
18986 "\n"
18987 msgstr ""
18988
18989 # type: textblock
18990 #: ../fish/guestfish-actions.pod:814
18991 msgid "See also L</upload>, L</cat>."
18992 msgstr ""
18993
18994 # type: =head2
18995 #: ../fish/guestfish-actions.pod:818
18996 msgid "download-offset"
18997 msgstr ""
18998
18999 # type: verbatim
19000 #: ../fish/guestfish-actions.pod:820
19001 #, no-wrap
19002 msgid ""
19003 " download-offset remotefilename (filename|-) offset size\n"
19004 "\n"
19005 msgstr ""
19006
19007 # type: textblock
19008 #: ../fish/guestfish-actions.pod:828
19009 msgid ""
19010 "Note that there is no limit on the amount of data that can be downloaded "
19011 "with this call, unlike with L</pread>, and this call always reads the full "
19012 "amount unless an error occurs."
19013 msgstr ""
19014
19015 # type: textblock
19016 #: ../fish/guestfish-actions.pod:833
19017 msgid "See also L</download>, L</pread>."
19018 msgstr ""
19019
19020 # type: =head2
19021 #: ../fish/guestfish-actions.pod:837
19022 msgid "drop-caches"
19023 msgstr ""
19024
19025 # type: verbatim
19026 #: ../fish/guestfish-actions.pod:839
19027 #, no-wrap
19028 msgid ""
19029 " drop-caches whattodrop\n"
19030 "\n"
19031 msgstr ""
19032
19033 # type: =head2
19034 #: ../fish/guestfish-actions.pod:851
19035 msgid "du"
19036 msgstr ""
19037
19038 # type: verbatim
19039 #: ../fish/guestfish-actions.pod:853
19040 #, no-wrap
19041 msgid ""
19042 " du path\n"
19043 "\n"
19044 msgstr ""
19045
19046 # type: =head2
19047 #: ../fish/guestfish-actions.pod:865
19048 msgid "e2fsck-f"
19049 msgstr ""
19050
19051 # type: verbatim
19052 #: ../fish/guestfish-actions.pod:867
19053 #, no-wrap
19054 msgid ""
19055 " e2fsck-f device\n"
19056 "\n"
19057 msgstr ""
19058
19059 # type: textblock
19060 #: ../fish/guestfish-actions.pod:873
19061 msgid ""
19062 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19063 "should use L</fsck>."
19064 msgstr ""
19065
19066 # type: =head2
19067 #: ../fish/guestfish-actions.pod:876
19068 msgid "echo-daemon"
19069 msgstr ""
19070
19071 # type: verbatim
19072 #: ../fish/guestfish-actions.pod:878
19073 #, no-wrap
19074 msgid ""
19075 " echo-daemon 'words ...'\n"
19076 "\n"
19077 msgstr ""
19078
19079 # type: textblock
19080 #: ../fish/guestfish-actions.pod:885
19081 msgid "See also L</ping-daemon>."
19082 msgstr ""
19083
19084 # type: =head2
19085 #: ../fish/guestfish-actions.pod:887
19086 msgid "egrep"
19087 msgstr ""
19088
19089 # type: verbatim
19090 #: ../fish/guestfish-actions.pod:889
19091 #, no-wrap
19092 msgid ""
19093 " egrep regex path\n"
19094 "\n"
19095 msgstr ""
19096
19097 # type: =head2
19098 #: ../fish/guestfish-actions.pod:897
19099 msgid "egrepi"
19100 msgstr ""
19101
19102 # type: verbatim
19103 #: ../fish/guestfish-actions.pod:899
19104 #, no-wrap
19105 msgid ""
19106 " egrepi regex path\n"
19107 "\n"
19108 msgstr ""
19109
19110 # type: =head2
19111 #: ../fish/guestfish-actions.pod:907
19112 msgid "equal"
19113 msgstr ""
19114
19115 # type: verbatim
19116 #: ../fish/guestfish-actions.pod:909
19117 #, no-wrap
19118 msgid ""
19119 " equal file1 file2\n"
19120 "\n"
19121 msgstr ""
19122
19123 # type: =head2
19124 #: ../fish/guestfish-actions.pod:916
19125 msgid "exists"
19126 msgstr ""
19127
19128 # type: verbatim
19129 #: ../fish/guestfish-actions.pod:918
19130 #, no-wrap
19131 msgid ""
19132 " exists path\n"
19133 "\n"
19134 msgstr ""
19135
19136 # type: textblock
19137 #: ../fish/guestfish-actions.pod:923
19138 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19139 msgstr ""
19140
19141 # type: =head2
19142 #: ../fish/guestfish-actions.pod:925
19143 msgid "fallocate"
19144 msgstr ""
19145
19146 # type: verbatim
19147 #: ../fish/guestfish-actions.pod:927
19148 #, no-wrap
19149 msgid ""
19150 " fallocate path len\n"
19151 "\n"
19152 msgstr ""
19153
19154 # type: =head2
19155 #: ../fish/guestfish-actions.pod:944
19156 msgid "fallocate64"
19157 msgstr ""
19158
19159 # type: verbatim
19160 #: ../fish/guestfish-actions.pod:946
19161 #, no-wrap
19162 msgid ""
19163 " fallocate64 path len\n"
19164 "\n"
19165 msgstr ""
19166
19167 # type: textblock
19168 #: ../fish/guestfish-actions.pod:952
19169 msgid ""
19170 "Note that this call allocates disk blocks for the file.  To create a sparse "
19171 "file use L</truncate-size> instead."
19172 msgstr ""
19173
19174 # type: textblock
19175 #: ../fish/guestfish-actions.pod:955
19176 msgid ""
19177 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19178 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19179 "maximum size of files created through that call to 1GB."
19180 msgstr ""
19181
19182 # type: =head2
19183 #: ../fish/guestfish-actions.pod:964
19184 msgid "fgrep"
19185 msgstr ""
19186
19187 # type: verbatim
19188 #: ../fish/guestfish-actions.pod:966
19189 #, no-wrap
19190 msgid ""
19191 " fgrep pattern path\n"
19192 "\n"
19193 msgstr ""
19194
19195 # type: =head2
19196 #: ../fish/guestfish-actions.pod:974
19197 msgid "fgrepi"
19198 msgstr ""
19199
19200 # type: verbatim
19201 #: ../fish/guestfish-actions.pod:976
19202 #, no-wrap
19203 msgid ""
19204 " fgrepi pattern path\n"
19205 "\n"
19206 msgstr ""
19207
19208 # type: =head2
19209 #: ../fish/guestfish-actions.pod:984
19210 msgid "file"
19211 msgstr ""
19212
19213 # type: verbatim
19214 #: ../fish/guestfish-actions.pod:986
19215 #, no-wrap
19216 msgid ""
19217 " file path\n"
19218 "\n"
19219 msgstr ""
19220
19221 # type: textblock
19222 #: ../fish/guestfish-actions.pod:998
19223 msgid ""
19224 "This command can also be used on C</dev/> devices (and partitions, LV "
19225 "names).  You can for example use this to determine if a device contains a "
19226 "filesystem, although it's usually better to use L</vfs-type>."
19227 msgstr ""
19228
19229 # type: =head2
19230 #: ../fish/guestfish-actions.pod:1008
19231 msgid "file-architecture"
19232 msgstr ""
19233
19234 # type: verbatim
19235 #: ../fish/guestfish-actions.pod:1010
19236 #, no-wrap
19237 msgid ""
19238 " file-architecture filename\n"
19239 "\n"
19240 msgstr ""
19241
19242 # type: =head2
19243 #: ../fish/guestfish-actions.pod:1113
19244 msgid "filesize"
19245 msgstr ""
19246
19247 # type: verbatim
19248 #: ../fish/guestfish-actions.pod:1115
19249 #, no-wrap
19250 msgid ""
19251 " filesize file\n"
19252 "\n"
19253 msgstr ""
19254
19255 # type: textblock
19256 #: ../fish/guestfish-actions.pod:1119
19257 msgid ""
19258 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
19259 "L</is-file> etc.  To get the size of block devices, use "
19260 "L</blockdev-getsize64>."
19261 msgstr ""
19262
19263 # type: =head2
19264 #: ../fish/guestfish-actions.pod:1123
19265 msgid "fill"
19266 msgstr ""
19267
19268 # type: verbatim
19269 #: ../fish/guestfish-actions.pod:1125
19270 #, no-wrap
19271 msgid ""
19272 " fill c len path\n"
19273 "\n"
19274 msgstr ""
19275
19276 # type: textblock
19277 #: ../fish/guestfish-actions.pod:1131
19278 msgid ""
19279 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19280 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19281 "L</fill-pattern>."
19282 msgstr ""
19283
19284 # type: =head2
19285 #: ../fish/guestfish-actions.pod:1136
19286 msgid "fill-pattern"
19287 msgstr ""
19288
19289 # type: verbatim
19290 #: ../fish/guestfish-actions.pod:1138
19291 #, no-wrap
19292 msgid ""
19293 " fill-pattern pattern len path\n"
19294 "\n"
19295 msgstr ""
19296
19297 # type: textblock
19298 #: ../fish/guestfish-actions.pod:1140
19299 msgid ""
19300 "This function is like L</fill> except that it creates a new file of length "
19301 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19302 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19303 "bytes."
19304 msgstr ""
19305
19306 # type: =head2
19307 #: ../fish/guestfish-actions.pod:1145
19308 msgid "find"
19309 msgstr ""
19310
19311 # type: verbatim
19312 #: ../fish/guestfish-actions.pod:1147
19313 #, no-wrap
19314 msgid ""
19315 " find directory\n"
19316 "\n"
19317 msgstr ""
19318
19319 # type: textblock
19320 #: ../fish/guestfish-actions.pod:1161
19321 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19322 msgstr ""
19323
19324 # type: textblock
19325 #: ../fish/guestfish-actions.pod:1174
19326 msgid "See also L</find0>."
19327 msgstr ""
19328
19329 # type: =head2
19330 #: ../fish/guestfish-actions.pod:1179
19331 msgid "find0"
19332 msgstr ""
19333
19334 # type: verbatim
19335 #: ../fish/guestfish-actions.pod:1181
19336 #, no-wrap
19337 msgid ""
19338 " find0 directory (files|-)\n"
19339 "\n"
19340 msgstr ""
19341
19342 # type: textblock
19343 #: ../fish/guestfish-actions.pod:1187
19344 msgid "This command works the same way as L</find> with the following exceptions:"
19345 msgstr ""
19346
19347 # type: =head2
19348 #: ../fish/guestfish-actions.pod:1214
19349 msgid "findfs-label"
19350 msgstr ""
19351
19352 # type: verbatim
19353 #: ../fish/guestfish-actions.pod:1216
19354 #, no-wrap
19355 msgid ""
19356 " findfs-label label\n"
19357 "\n"
19358 msgstr ""
19359
19360 # type: textblock
19361 #: ../fish/guestfish-actions.pod:1222
19362 msgid "To find the label of a filesystem, use L</vfs-label>."
19363 msgstr ""
19364
19365 # type: =head2
19366 #: ../fish/guestfish-actions.pod:1224
19367 msgid "findfs-uuid"
19368 msgstr ""
19369
19370 # type: verbatim
19371 #: ../fish/guestfish-actions.pod:1226
19372 #, no-wrap
19373 msgid ""
19374 " findfs-uuid uuid\n"
19375 "\n"
19376 msgstr ""
19377
19378 # type: textblock
19379 #: ../fish/guestfish-actions.pod:1232
19380 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
19381 msgstr ""
19382
19383 # type: =head2
19384 #: ../fish/guestfish-actions.pod:1234
19385 msgid "fsck"
19386 msgstr ""
19387
19388 # type: verbatim
19389 #: ../fish/guestfish-actions.pod:1236
19390 #, no-wrap
19391 msgid ""
19392 " fsck fstype device\n"
19393 "\n"
19394 msgstr ""
19395
19396 # type: =head2
19397 #: ../fish/guestfish-actions.pod:1266
19398 msgid "get-append"
19399 msgstr ""
19400
19401 # type: verbatim
19402 #: ../fish/guestfish-actions.pod:1268
19403 #, no-wrap
19404 msgid ""
19405 " get-append\n"
19406 "\n"
19407 msgstr ""
19408
19409 # type: =head2
19410 #: ../fish/guestfish-actions.pod:1275
19411 msgid "get-autosync"
19412 msgstr ""
19413
19414 # type: verbatim
19415 #: ../fish/guestfish-actions.pod:1277
19416 #, no-wrap
19417 msgid ""
19418 " get-autosync\n"
19419 "\n"
19420 msgstr ""
19421
19422 # type: =head2
19423 #: ../fish/guestfish-actions.pod:1281
19424 msgid "get-direct"
19425 msgstr ""
19426
19427 # type: verbatim
19428 #: ../fish/guestfish-actions.pod:1283
19429 #, no-wrap
19430 msgid ""
19431 " get-direct\n"
19432 "\n"
19433 msgstr ""
19434
19435 # type: =head2
19436 #: ../fish/guestfish-actions.pod:1287
19437 msgid "get-e2label"
19438 msgstr ""
19439
19440 # type: verbatim
19441 #: ../fish/guestfish-actions.pod:1289
19442 #, no-wrap
19443 msgid ""
19444 " get-e2label device\n"
19445 "\n"
19446 msgstr ""
19447
19448 # type: =head2
19449 #: ../fish/guestfish-actions.pod:1301
19450 msgid "get-e2uuid"
19451 msgstr ""
19452
19453 # type: verbatim
19454 #: ../fish/guestfish-actions.pod:1303
19455 #, no-wrap
19456 msgid ""
19457 " get-e2uuid device\n"
19458 "\n"
19459 msgstr ""
19460
19461 # type: =head2
19462 #: ../fish/guestfish-actions.pod:1315
19463 msgid "get-memsize"
19464 msgstr ""
19465
19466 # type: verbatim
19467 #: ../fish/guestfish-actions.pod:1317
19468 #, no-wrap
19469 msgid ""
19470 " get-memsize\n"
19471 "\n"
19472 msgstr ""
19473
19474 # type: textblock
19475 #: ../fish/guestfish-actions.pod:1322
19476 msgid ""
19477 "If L</set-memsize> was not called on this handle, and if "
19478 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
19479 "value for memsize."
19480 msgstr ""
19481
19482 # type: =head2
19483 #: ../fish/guestfish-actions.pod:1329
19484 msgid "get-network"
19485 msgstr ""
19486
19487 # type: verbatim
19488 #: ../fish/guestfish-actions.pod:1331
19489 #, no-wrap
19490 msgid ""
19491 " get-network\n"
19492 "\n"
19493 msgstr ""
19494
19495 # type: =head2
19496 #: ../fish/guestfish-actions.pod:1335
19497 msgid "get-path"
19498 msgstr ""
19499
19500 # type: verbatim
19501 #: ../fish/guestfish-actions.pod:1337
19502 #, no-wrap
19503 msgid ""
19504 " get-path\n"
19505 "\n"
19506 msgstr ""
19507
19508 # type: =head2
19509 #: ../fish/guestfish-actions.pod:1344
19510 msgid "get-pid"
19511 msgstr ""
19512
19513 # type: =head2
19514 #: ../fish/guestfish-actions.pod:1346
19515 msgid "pid"
19516 msgstr ""
19517
19518 # type: verbatim
19519 #: ../fish/guestfish-actions.pod:1348
19520 #, no-wrap
19521 msgid ""
19522 " get-pid\n"
19523 "\n"
19524 msgstr ""
19525
19526 # type: =head2
19527 #: ../fish/guestfish-actions.pod:1355
19528 msgid "get-qemu"
19529 msgstr ""
19530
19531 # type: verbatim
19532 #: ../fish/guestfish-actions.pod:1357
19533 #, no-wrap
19534 msgid ""
19535 " get-qemu\n"
19536 "\n"
19537 msgstr ""
19538
19539 # type: =head2
19540 #: ../fish/guestfish-actions.pod:1364
19541 msgid "get-recovery-proc"
19542 msgstr ""
19543
19544 # type: verbatim
19545 #: ../fish/guestfish-actions.pod:1366
19546 #, no-wrap
19547 msgid ""
19548 " get-recovery-proc\n"
19549 "\n"
19550 msgstr ""
19551
19552 # type: =head2
19553 #: ../fish/guestfish-actions.pod:1370
19554 msgid "get-selinux"
19555 msgstr ""
19556
19557 # type: verbatim
19558 #: ../fish/guestfish-actions.pod:1372
19559 #, no-wrap
19560 msgid ""
19561 " get-selinux\n"
19562 "\n"
19563 msgstr ""
19564
19565 # type: textblock
19566 #: ../fish/guestfish-actions.pod:1374
19567 msgid ""
19568 "This returns the current setting of the selinux flag which is passed to the "
19569 "appliance at boot time.  See L</set-selinux>."
19570 msgstr ""
19571
19572 # type: =head2
19573 #: ../fish/guestfish-actions.pod:1380
19574 msgid "get-state"
19575 msgstr ""
19576
19577 # type: verbatim
19578 #: ../fish/guestfish-actions.pod:1382
19579 #, no-wrap
19580 msgid ""
19581 " get-state\n"
19582 "\n"
19583 msgstr ""
19584
19585 # type: =head2
19586 #: ../fish/guestfish-actions.pod:1389
19587 msgid "get-trace"
19588 msgstr ""
19589
19590 # type: verbatim
19591 #: ../fish/guestfish-actions.pod:1391
19592 #, no-wrap
19593 msgid ""
19594 " get-trace\n"
19595 "\n"
19596 msgstr ""
19597
19598 # type: =head2
19599 #: ../fish/guestfish-actions.pod:1395
19600 msgid "get-umask"
19601 msgstr ""
19602
19603 # type: verbatim
19604 #: ../fish/guestfish-actions.pod:1397
19605 #, no-wrap
19606 msgid ""
19607 " get-umask\n"
19608 "\n"
19609 msgstr ""
19610
19611 # type: textblock
19612 #: ../fish/guestfish-actions.pod:1399
19613 msgid ""
19614 "Return the current umask.  By default the umask is C<022> unless it has been "
19615 "set by calling L</umask>."
19616 msgstr ""
19617
19618 # type: =head2
19619 #: ../fish/guestfish-actions.pod:1402
19620 msgid "get-verbose"
19621 msgstr ""
19622
19623 # type: verbatim
19624 #: ../fish/guestfish-actions.pod:1404
19625 #, no-wrap
19626 msgid ""
19627 " get-verbose\n"
19628 "\n"
19629 msgstr ""
19630
19631 # type: =head2
19632 #: ../fish/guestfish-actions.pod:1408
19633 msgid "getcon"
19634 msgstr ""
19635
19636 # type: verbatim
19637 #: ../fish/guestfish-actions.pod:1410
19638 #, no-wrap
19639 msgid ""
19640 " getcon\n"
19641 "\n"
19642 msgstr ""
19643
19644 # type: textblock
19645 #: ../fish/guestfish-actions.pod:1414
19646 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19647 msgstr ""
19648
19649 # type: =head2
19650 #: ../fish/guestfish-actions.pod:1417
19651 msgid "getxattrs"
19652 msgstr ""
19653
19654 # type: verbatim
19655 #: ../fish/guestfish-actions.pod:1419
19656 #, no-wrap
19657 msgid ""
19658 " getxattrs path\n"
19659 "\n"
19660 msgstr ""
19661
19662 # type: textblock
19663 #: ../fish/guestfish-actions.pod:1427
19664 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19665 msgstr ""
19666
19667 # type: =head2
19668 #: ../fish/guestfish-actions.pod:1429
19669 msgid "glob-expand"
19670 msgstr ""
19671
19672 # type: verbatim
19673 #: ../fish/guestfish-actions.pod:1431
19674 #, no-wrap
19675 msgid ""
19676 " glob-expand pattern\n"
19677 "\n"
19678 msgstr ""
19679
19680 # type: =head2
19681 #: ../fish/guestfish-actions.pod:1444
19682 msgid "grep"
19683 msgstr ""
19684
19685 # type: verbatim
19686 #: ../fish/guestfish-actions.pod:1446
19687 #, no-wrap
19688 msgid ""
19689 " grep regex path\n"
19690 "\n"
19691 msgstr ""
19692
19693 # type: =head2
19694 #: ../fish/guestfish-actions.pod:1454
19695 msgid "grepi"
19696 msgstr ""
19697
19698 # type: verbatim
19699 #: ../fish/guestfish-actions.pod:1456
19700 #, no-wrap
19701 msgid ""
19702 " grepi regex path\n"
19703 "\n"
19704 msgstr ""
19705
19706 # type: =head2
19707 #: ../fish/guestfish-actions.pod:1464
19708 msgid "grub-install"
19709 msgstr ""
19710
19711 # type: verbatim
19712 #: ../fish/guestfish-actions.pod:1466
19713 #, no-wrap
19714 msgid ""
19715 " grub-install root device\n"
19716 "\n"
19717 msgstr ""
19718
19719 # type: =head2
19720 #: ../fish/guestfish-actions.pod:1482
19721 msgid "head"
19722 msgstr ""
19723
19724 # type: verbatim
19725 #: ../fish/guestfish-actions.pod:1484
19726 #, no-wrap
19727 msgid ""
19728 " head path\n"
19729 "\n"
19730 msgstr ""
19731
19732 # type: =head2
19733 #: ../fish/guestfish-actions.pod:1492
19734 msgid "head-n"
19735 msgstr ""
19736
19737 # type: verbatim
19738 #: ../fish/guestfish-actions.pod:1494
19739 #, no-wrap
19740 msgid ""
19741 " head-n nrlines path\n"
19742 "\n"
19743 msgstr ""
19744
19745 # type: =head2
19746 #: ../fish/guestfish-actions.pod:1507
19747 msgid "hexdump"
19748 msgstr ""
19749
19750 # type: verbatim
19751 #: ../fish/guestfish-actions.pod:1509
19752 #, no-wrap
19753 msgid ""
19754 " hexdump path\n"
19755 "\n"
19756 msgstr ""
19757
19758 # type: =head2
19759 #: ../fish/guestfish-actions.pod:1517
19760 msgid "initrd-cat"
19761 msgstr ""
19762
19763 # type: verbatim
19764 #: ../fish/guestfish-actions.pod:1519
19765 #, no-wrap
19766 msgid ""
19767 " initrd-cat initrdpath filename\n"
19768 "\n"
19769 msgstr ""
19770
19771 # type: textblock
19772 #: ../fish/guestfish-actions.pod:1531
19773 msgid "See also L</initrd-list>."
19774 msgstr ""
19775
19776 # type: =head2
19777 #: ../fish/guestfish-actions.pod:1536
19778 msgid "initrd-list"
19779 msgstr ""
19780
19781 # type: verbatim
19782 #: ../fish/guestfish-actions.pod:1538
19783 #, no-wrap
19784 msgid ""
19785 " initrd-list path\n"
19786 "\n"
19787 msgstr ""
19788
19789 # type: =head2
19790 #: ../fish/guestfish-actions.pod:1550
19791 msgid "inotify-add-watch"
19792 msgstr ""
19793
19794 # type: verbatim
19795 #: ../fish/guestfish-actions.pod:1552
19796 #, no-wrap
19797 msgid ""
19798 " inotify-add-watch path mask\n"
19799 "\n"
19800 msgstr ""
19801
19802 # type: =head2
19803 #: ../fish/guestfish-actions.pod:1564
19804 msgid "inotify-close"
19805 msgstr ""
19806
19807 # type: verbatim
19808 #: ../fish/guestfish-actions.pod:1566
19809 #, no-wrap
19810 msgid ""
19811 " inotify-close\n"
19812 "\n"
19813 msgstr ""
19814
19815 # type: =head2
19816 #: ../fish/guestfish-actions.pod:1572
19817 msgid "inotify-files"
19818 msgstr ""
19819
19820 # type: verbatim
19821 #: ../fish/guestfish-actions.pod:1574
19822 #, no-wrap
19823 msgid ""
19824 " inotify-files\n"
19825 "\n"
19826 msgstr ""
19827
19828 # type: textblock
19829 #: ../fish/guestfish-actions.pod:1576
19830 msgid ""
19831 "This function is a helpful wrapper around L</inotify-read> which just "
19832 "returns a list of pathnames of objects that were touched.  The returned "
19833 "pathnames are sorted and deduplicated."
19834 msgstr ""
19835
19836 # type: =head2
19837 #: ../fish/guestfish-actions.pod:1580
19838 msgid "inotify-init"
19839 msgstr ""
19840
19841 # type: verbatim
19842 #: ../fish/guestfish-actions.pod:1582
19843 #, no-wrap
19844 msgid ""
19845 " inotify-init maxevents\n"
19846 "\n"
19847 msgstr ""
19848
19849 # type: textblock
19850 #: ../fish/guestfish-actions.pod:1588
19851 msgid ""
19852 "C<maxevents> is the maximum number of events which will be queued up between "
19853 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19854 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19855 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19856 "but records the fact that it threw them away by setting a flag "
19857 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19858 msgstr ""
19859
19860 # type: textblock
19861 #: ../fish/guestfish-actions.pod:1598
19862 msgid ""
19863 "Before any events are generated, you have to add some watches to the "
19864 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19865 "L</inotify-watch-all>."
19866 msgstr ""
19867
19868 # type: textblock
19869 #: ../fish/guestfish-actions.pod:1604
19870 msgid ""
19871 "Queued up events should be read periodically by calling L</inotify-read> (or "
19872 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19873 "If you don't read the events out often enough then you risk the internal "
19874 "queue overflowing."
19875 msgstr ""
19876
19877 # type: textblock
19878 #: ../fish/guestfish-actions.pod:1611
19879 msgid ""
19880 "The handle should be closed after use by calling L</inotify-close>.  This "
19881 "also removes any watches automatically."
19882 msgstr ""
19883
19884 # type: =head2
19885 #: ../fish/guestfish-actions.pod:1620
19886 msgid "inotify-read"
19887 msgstr ""
19888
19889 # type: verbatim
19890 #: ../fish/guestfish-actions.pod:1622
19891 #, no-wrap
19892 msgid ""
19893 " inotify-read\n"
19894 "\n"
19895 msgstr ""
19896
19897 # type: =head2
19898 #: ../fish/guestfish-actions.pod:1635
19899 msgid "inotify-rm-watch"
19900 msgstr ""
19901
19902 # type: verbatim
19903 #: ../fish/guestfish-actions.pod:1637
19904 #, no-wrap
19905 msgid ""
19906 " inotify-rm-watch wd\n"
19907 "\n"
19908 msgstr ""
19909
19910 # type: textblock
19911 #: ../fish/guestfish-actions.pod:1639
19912 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19913 msgstr ""
19914
19915 # type: =head2
19916 #: ../fish/guestfish-actions.pod:1642
19917 msgid "inspect-get-arch"
19918 msgstr ""
19919
19920 # type: verbatim
19921 #: ../fish/guestfish-actions.pod:1644
19922 #, no-wrap
19923 msgid ""
19924 " inspect-get-arch root\n"
19925 "\n"
19926 msgstr ""
19927
19928 # type: textblock
19929 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1746 ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1782 ../fish/guestfish-actions.pod:1805 ../fish/guestfish-actions.pod:1835 ../fish/guestfish-actions.pod:1866
19930 msgid ""
19931 "This function should only be called with a root device string as returned by "
19932 "L</inspect-os>."
19933 msgstr ""
19934
19935 # type: textblock
19936 #: ../fish/guestfish-actions.pod:1649
19937 msgid ""
19938 "This returns the architecture of the inspected operating system.  The "
19939 "possible return values are listed under L</file-architecture>."
19940 msgstr ""
19941
19942 # type: =head2
19943 #: ../fish/guestfish-actions.pod:1658
19944 msgid "inspect-get-distro"
19945 msgstr ""
19946
19947 # type: verbatim
19948 #: ../fish/guestfish-actions.pod:1660
19949 #, no-wrap
19950 msgid ""
19951 " inspect-get-distro root\n"
19952 "\n"
19953 msgstr ""
19954
19955 # type: =head2
19956 #: ../fish/guestfish-actions.pod:1724
19957 msgid "inspect-get-filesystems"
19958 msgstr ""
19959
19960 # type: verbatim
19961 #: ../fish/guestfish-actions.pod:1726
19962 #, no-wrap
19963 msgid ""
19964 " inspect-get-filesystems root\n"
19965 "\n"
19966 msgstr ""
19967
19968 # type: textblock
19969 #: ../fish/guestfish-actions.pod:1739
19970 msgid ""
19971 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19972 "L</inspect-get-mountpoints>."
19973 msgstr ""
19974
19975 # type: =head2
19976 #: ../fish/guestfish-actions.pod:1742
19977 msgid "inspect-get-major-version"
19978 msgstr ""
19979
19980 # type: verbatim
19981 #: ../fish/guestfish-actions.pod:1744
19982 #, no-wrap
19983 msgid ""
19984 " inspect-get-major-version root\n"
19985 "\n"
19986 msgstr ""
19987
19988 # type: =head2
19989 #: ../fish/guestfish-actions.pod:1763
19990 msgid "inspect-get-minor-version"
19991 msgstr ""
19992
19993 # type: verbatim
19994 #: ../fish/guestfish-actions.pod:1765
19995 #, no-wrap
19996 msgid ""
19997 " inspect-get-minor-version root\n"
19998 "\n"
19999 msgstr ""
20000
20001 # type: textblock
20002 #: ../fish/guestfish-actions.pod:1775
20003 msgid ""
20004 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20005 "L</inspect-get-major-version>."
20006 msgstr ""
20007
20008 # type: =head2
20009 #: ../fish/guestfish-actions.pod:1778
20010 msgid "inspect-get-mountpoints"
20011 msgstr ""
20012
20013 # type: verbatim
20014 #: ../fish/guestfish-actions.pod:1780
20015 #, no-wrap
20016 msgid ""
20017 " inspect-get-mountpoints root\n"
20018 "\n"
20019 msgstr ""
20020
20021 # type: textblock
20022 #: ../fish/guestfish-actions.pod:1798
20023 msgid ""
20024 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20025 "L</inspect-get-filesystems>."
20026 msgstr ""
20027
20028 # type: =head2
20029 #: ../fish/guestfish-actions.pod:1801
20030 msgid "inspect-get-product-name"
20031 msgstr ""
20032
20033 # type: verbatim
20034 #: ../fish/guestfish-actions.pod:1803
20035 #, no-wrap
20036 msgid ""
20037 " inspect-get-product-name root\n"
20038 "\n"
20039 msgstr ""
20040
20041 # type: =head2
20042 #: ../fish/guestfish-actions.pod:1818
20043 msgid "inspect-get-roots"
20044 msgstr ""
20045
20046 # type: verbatim
20047 #: ../fish/guestfish-actions.pod:1820
20048 #, no-wrap
20049 msgid ""
20050 " inspect-get-roots\n"
20051 "\n"
20052 msgstr ""
20053
20054 # type: textblock
20055 #: ../fish/guestfish-actions.pod:1822
20056 msgid ""
20057 "This function is a convenient way to get the list of root devices, as "
20058 "returned from a previous call to L</inspect-os>, but without redoing the "
20059 "whole inspection process."
20060 msgstr ""
20061
20062 # type: textblock
20063 #: ../fish/guestfish-actions.pod:1826
20064 msgid ""
20065 "This returns an empty list if either no root devices were found or the "
20066 "caller has not called L</inspect-os>."
20067 msgstr ""
20068
20069 # type: =head2
20070 #: ../fish/guestfish-actions.pod:1831
20071 msgid "inspect-get-type"
20072 msgstr ""
20073
20074 # type: verbatim
20075 #: ../fish/guestfish-actions.pod:1833
20076 #, no-wrap
20077 msgid ""
20078 " inspect-get-type root\n"
20079 "\n"
20080 msgstr ""
20081
20082 # type: =head2
20083 #: ../fish/guestfish-actions.pod:1862
20084 msgid "inspect-get-windows-systemroot"
20085 msgstr ""
20086
20087 # type: verbatim
20088 #: ../fish/guestfish-actions.pod:1864
20089 #, no-wrap
20090 msgid ""
20091 " inspect-get-windows-systemroot root\n"
20092 "\n"
20093 msgstr ""
20094
20095 # type: =head2
20096 #: ../fish/guestfish-actions.pod:1878
20097 msgid "inspect-os"
20098 msgstr ""
20099
20100 # type: verbatim
20101 #: ../fish/guestfish-actions.pod:1880
20102 #, no-wrap
20103 msgid ""
20104 " inspect-os\n"
20105 "\n"
20106 msgstr ""
20107
20108 # type: textblock
20109 #: ../fish/guestfish-actions.pod:1895
20110 msgid ""
20111 "You can pass the root string(s) returned to other L</inspect-get-*> "
20112 "functions in order to query further information about each operating system, "
20113 "such as the name and version."
20114 msgstr ""
20115
20116 # type: textblock
20117 #: ../fish/guestfish-actions.pod:1900
20118 msgid ""
20119 "This function uses other libguestfs features such as L</mount-ro> and "
20120 "L</umount-all> in order to mount and unmount filesystems and look at the "
20121 "contents.  This should be called with no disks currently mounted.  The "
20122 "function may also use Augeas, so any existing Augeas handle will be closed."
20123 msgstr ""
20124
20125 # type: textblock
20126 #: ../fish/guestfish-actions.pod:1912 ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2114
20127 msgid "See also L</list-filesystems>."
20128 msgstr ""
20129
20130 # type: =head2
20131 #: ../fish/guestfish-actions.pod:1914
20132 msgid "is-blockdev"
20133 msgstr ""
20134
20135 # type: verbatim
20136 #: ../fish/guestfish-actions.pod:1916
20137 #, no-wrap
20138 msgid ""
20139 " is-blockdev path\n"
20140 "\n"
20141 msgstr ""
20142
20143 # type: textblock
20144 #: ../fish/guestfish-actions.pod:1921 ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1958 ../fish/guestfish-actions.pod:1967 ../fish/guestfish-actions.pod:1977 ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2020
20145 msgid "See also L</stat>."
20146 msgstr ""
20147
20148 # type: =head2
20149 #: ../fish/guestfish-actions.pod:1923
20150 msgid "is-busy"
20151 msgstr ""
20152
20153 # type: verbatim
20154 #: ../fish/guestfish-actions.pod:1925
20155 #, no-wrap
20156 msgid ""
20157 " is-busy\n"
20158 "\n"
20159 msgstr ""
20160
20161 # type: =head2
20162 #: ../fish/guestfish-actions.pod:1932
20163 msgid "is-chardev"
20164 msgstr ""
20165
20166 # type: verbatim
20167 #: ../fish/guestfish-actions.pod:1934
20168 #, no-wrap
20169 msgid ""
20170 " is-chardev path\n"
20171 "\n"
20172 msgstr ""
20173
20174 # type: =head2
20175 #: ../fish/guestfish-actions.pod:1941
20176 msgid "is-config"
20177 msgstr ""
20178
20179 # type: verbatim
20180 #: ../fish/guestfish-actions.pod:1943
20181 #, no-wrap
20182 msgid ""
20183 " is-config\n"
20184 "\n"
20185 msgstr ""
20186
20187 # type: =head2
20188 #: ../fish/guestfish-actions.pod:1950
20189 msgid "is-dir"
20190 msgstr ""
20191
20192 # type: verbatim
20193 #: ../fish/guestfish-actions.pod:1952
20194 #, no-wrap
20195 msgid ""
20196 " is-dir path\n"
20197 "\n"
20198 msgstr ""
20199
20200 # type: =head2
20201 #: ../fish/guestfish-actions.pod:1960
20202 msgid "is-fifo"
20203 msgstr ""
20204
20205 # type: verbatim
20206 #: ../fish/guestfish-actions.pod:1962
20207 #, no-wrap
20208 msgid ""
20209 " is-fifo path\n"
20210 "\n"
20211 msgstr ""
20212
20213 # type: =head2
20214 #: ../fish/guestfish-actions.pod:1969
20215 msgid "is-file"
20216 msgstr ""
20217
20218 # type: verbatim
20219 #: ../fish/guestfish-actions.pod:1971
20220 #, no-wrap
20221 msgid ""
20222 " is-file path\n"
20223 "\n"
20224 msgstr ""
20225
20226 # type: =head2
20227 #: ../fish/guestfish-actions.pod:1979
20228 msgid "is-launching"
20229 msgstr ""
20230
20231 # type: verbatim
20232 #: ../fish/guestfish-actions.pod:1981
20233 #, no-wrap
20234 msgid ""
20235 " is-launching\n"
20236 "\n"
20237 msgstr ""
20238
20239 # type: =head2
20240 #: ../fish/guestfish-actions.pod:1988
20241 msgid "is-lv"
20242 msgstr ""
20243
20244 # type: verbatim
20245 #: ../fish/guestfish-actions.pod:1990
20246 #, no-wrap
20247 msgid ""
20248 " is-lv device\n"
20249 "\n"
20250 msgstr ""
20251
20252 # type: =head2
20253 #: ../fish/guestfish-actions.pod:1995
20254 msgid "is-ready"
20255 msgstr ""
20256
20257 # type: verbatim
20258 #: ../fish/guestfish-actions.pod:1997
20259 #, no-wrap
20260 msgid ""
20261 " is-ready\n"
20262 "\n"
20263 msgstr ""
20264
20265 # type: =head2
20266 #: ../fish/guestfish-actions.pod:2004
20267 msgid "is-socket"
20268 msgstr ""
20269
20270 # type: verbatim
20271 #: ../fish/guestfish-actions.pod:2006
20272 #, no-wrap
20273 msgid ""
20274 " is-socket path\n"
20275 "\n"
20276 msgstr ""
20277
20278 # type: =head2
20279 #: ../fish/guestfish-actions.pod:2013
20280 msgid "is-symlink"
20281 msgstr ""
20282
20283 # type: verbatim
20284 #: ../fish/guestfish-actions.pod:2015
20285 #, no-wrap
20286 msgid ""
20287 " is-symlink path\n"
20288 "\n"
20289 msgstr ""
20290
20291 # type: =head2
20292 #: ../fish/guestfish-actions.pod:2022
20293 msgid "kill-subprocess"
20294 msgstr ""
20295
20296 # type: verbatim
20297 #: ../fish/guestfish-actions.pod:2024
20298 #, no-wrap
20299 msgid ""
20300 " kill-subprocess\n"
20301 "\n"
20302 msgstr ""
20303
20304 # type: =head2
20305 #: ../fish/guestfish-actions.pod:2028
20306 msgid "launch"
20307 msgstr ""
20308
20309 # type: =head2
20310 #: ../fish/guestfish-actions.pod:2030
20311 msgid "run"
20312 msgstr ""
20313
20314 # type: verbatim
20315 #: ../fish/guestfish-actions.pod:2032
20316 #, no-wrap
20317 msgid ""
20318 " launch\n"
20319 "\n"
20320 msgstr ""
20321
20322 # type: =head2
20323 #: ../fish/guestfish-actions.pod:2040
20324 msgid "lchown"
20325 msgstr ""
20326
20327 # type: verbatim
20328 #: ../fish/guestfish-actions.pod:2042
20329 #, no-wrap
20330 msgid ""
20331 " lchown owner group path\n"
20332 "\n"
20333 msgstr ""
20334
20335 # type: textblock
20336 #: ../fish/guestfish-actions.pod:2044
20337 msgid ""
20338 "Change the file owner to C<owner> and group to C<group>.  This is like "
20339 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
20340 "the target."
20341 msgstr ""
20342
20343 # type: =head2
20344 #: ../fish/guestfish-actions.pod:2052
20345 msgid "lgetxattrs"
20346 msgstr ""
20347
20348 # type: verbatim
20349 #: ../fish/guestfish-actions.pod:2054
20350 #, no-wrap
20351 msgid ""
20352 " lgetxattrs path\n"
20353 "\n"
20354 msgstr ""
20355
20356 # type: textblock
20357 #: ../fish/guestfish-actions.pod:2056
20358 msgid ""
20359 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
20360 "it returns the extended attributes of the link itself."
20361 msgstr ""
20362
20363 # type: =head2
20364 #: ../fish/guestfish-actions.pod:2060
20365 msgid "list-devices"
20366 msgstr ""
20367
20368 # type: verbatim
20369 #: ../fish/guestfish-actions.pod:2062
20370 #, no-wrap
20371 msgid ""
20372 " list-devices\n"
20373 "\n"
20374 msgstr ""
20375
20376 # type: =head2
20377 #: ../fish/guestfish-actions.pod:2070
20378 msgid "list-filesystems"
20379 msgstr ""
20380
20381 # type: verbatim
20382 #: ../fish/guestfish-actions.pod:2072
20383 #, no-wrap
20384 msgid ""
20385 " list-filesystems\n"
20386 "\n"
20387 msgstr ""
20388
20389 # type: textblock
20390 #: ../fish/guestfish-actions.pod:2091
20391 msgid ""
20392 "This command runs other libguestfs commands, which might include L</mount> "
20393 "and L</umount>, and therefore you should use this soon after launch and only "
20394 "when nothing is mounted."
20395 msgstr ""
20396
20397 # type: textblock
20398 #: ../fish/guestfish-actions.pod:2095
20399 msgid ""
20400 "Not all of the filesystems returned will be mountable.  In particular, swap "
20401 "partitions are returned in the list.  Also this command does not check that "
20402 "each filesystem found is valid and mountable, and some filesystems might be "
20403 "mountable but require special options.  Filesystems may not all belong to a "
20404 "single logical operating system (use L</inspect-os> to look for OSes)."
20405 msgstr ""
20406
20407 # type: =head2
20408 #: ../fish/guestfish-actions.pod:2103
20409 msgid "list-partitions"
20410 msgstr ""
20411
20412 # type: verbatim
20413 #: ../fish/guestfish-actions.pod:2105
20414 #, no-wrap
20415 msgid ""
20416 " list-partitions\n"
20417 "\n"
20418 msgstr ""
20419
20420 # type: textblock
20421 #: ../fish/guestfish-actions.pod:2111
20422 msgid ""
20423 "This does not return logical volumes.  For that you will need to call "
20424 "L</lvs>."
20425 msgstr ""
20426
20427 # type: =head2
20428 #: ../fish/guestfish-actions.pod:2116
20429 msgid "ll"
20430 msgstr ""
20431
20432 # type: verbatim
20433 #: ../fish/guestfish-actions.pod:2118
20434 #, no-wrap
20435 msgid ""
20436 " ll directory\n"
20437 "\n"
20438 msgstr ""
20439
20440 # type: =head2
20441 #: ../fish/guestfish-actions.pod:2126
20442 msgid "ln"
20443 msgstr ""
20444
20445 # type: verbatim
20446 #: ../fish/guestfish-actions.pod:2128
20447 #, no-wrap
20448 msgid ""
20449 " ln target linkname\n"
20450 "\n"
20451 msgstr ""
20452
20453 # type: =head2
20454 #: ../fish/guestfish-actions.pod:2132
20455 msgid "ln-f"
20456 msgstr ""
20457
20458 # type: verbatim
20459 #: ../fish/guestfish-actions.pod:2134
20460 #, no-wrap
20461 msgid ""
20462 " ln-f target linkname\n"
20463 "\n"
20464 msgstr ""
20465
20466 # type: =head2
20467 #: ../fish/guestfish-actions.pod:2139
20468 msgid "ln-s"
20469 msgstr ""
20470
20471 # type: verbatim
20472 #: ../fish/guestfish-actions.pod:2141
20473 #, no-wrap
20474 msgid ""
20475 " ln-s target linkname\n"
20476 "\n"
20477 msgstr ""
20478
20479 # type: =head2
20480 #: ../fish/guestfish-actions.pod:2145
20481 msgid "ln-sf"
20482 msgstr ""
20483
20484 # type: verbatim
20485 #: ../fish/guestfish-actions.pod:2147
20486 #, no-wrap
20487 msgid ""
20488 " ln-sf target linkname\n"
20489 "\n"
20490 msgstr ""
20491
20492 # type: =head2
20493 #: ../fish/guestfish-actions.pod:2152
20494 msgid "lremovexattr"
20495 msgstr ""
20496
20497 # type: verbatim
20498 #: ../fish/guestfish-actions.pod:2154
20499 #, no-wrap
20500 msgid ""
20501 " lremovexattr xattr path\n"
20502 "\n"
20503 msgstr ""
20504
20505 # type: textblock
20506 #: ../fish/guestfish-actions.pod:2156
20507 msgid ""
20508 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
20509 "it removes an extended attribute of the link itself."
20510 msgstr ""
20511
20512 # type: =head2
20513 #: ../fish/guestfish-actions.pod:2160
20514 msgid "ls"
20515 msgstr ""
20516
20517 # type: verbatim
20518 #: ../fish/guestfish-actions.pod:2162
20519 #, no-wrap
20520 msgid ""
20521 " ls directory\n"
20522 "\n"
20523 msgstr ""
20524
20525 # type: textblock
20526 #: ../fish/guestfish-actions.pod:2168
20527 msgid ""
20528 "This command is mostly useful for interactive sessions.  Programs should "
20529 "probably use L</readdir> instead."
20530 msgstr ""
20531
20532 # type: =head2
20533 #: ../fish/guestfish-actions.pod:2171
20534 msgid "lsetxattr"
20535 msgstr ""
20536
20537 # type: verbatim
20538 #: ../fish/guestfish-actions.pod:2173
20539 #, no-wrap
20540 msgid ""
20541 " lsetxattr xattr val vallen path\n"
20542 "\n"
20543 msgstr ""
20544
20545 # type: textblock
20546 #: ../fish/guestfish-actions.pod:2175
20547 msgid ""
20548 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20549 "sets an extended attribute of the link itself."
20550 msgstr ""
20551
20552 # type: =head2
20553 #: ../fish/guestfish-actions.pod:2179
20554 msgid "lstat"
20555 msgstr ""
20556
20557 # type: verbatim
20558 #: ../fish/guestfish-actions.pod:2181
20559 #, no-wrap
20560 msgid ""
20561 " lstat path\n"
20562 "\n"
20563 msgstr ""
20564
20565 # type: textblock
20566 #: ../fish/guestfish-actions.pod:2185
20567 msgid ""
20568 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20569 "the link is stat-ed, not the file it refers to."
20570 msgstr ""
20571
20572 # type: =head2
20573 #: ../fish/guestfish-actions.pod:2191
20574 msgid "lstatlist"
20575 msgstr ""
20576
20577 # type: verbatim
20578 #: ../fish/guestfish-actions.pod:2193
20579 #, no-wrap
20580 msgid ""
20581 " lstatlist path 'names ...'\n"
20582 "\n"
20583 msgstr ""
20584
20585 # type: textblock
20586 #: ../fish/guestfish-actions.pod:2195
20587 msgid ""
20588 "This call allows you to perform the L</lstat> operation on multiple files, "
20589 "where all files are in the directory C<path>.  C<names> is the list of files "
20590 "from this directory."
20591 msgstr ""
20592
20593 # type: textblock
20594 #: ../fish/guestfish-actions.pod:2204
20595 msgid ""
20596 "This call is intended for programs that want to efficiently list a directory "
20597 "contents without making many round-trips.  See also L</lxattrlist> for a "
20598 "similarly efficient call for getting extended attributes.  Very long "
20599 "directory listings might cause the protocol message size to be exceeded, "
20600 "causing this call to fail.  The caller must split up such requests into "
20601 "smaller groups of names."
20602 msgstr ""
20603
20604 # type: =head2
20605 #: ../fish/guestfish-actions.pod:2212
20606 msgid "luks-add-key"
20607 msgstr ""
20608
20609 # type: verbatim
20610 #: ../fish/guestfish-actions.pod:2214
20611 #, no-wrap
20612 msgid ""
20613 " luks-add-key device keyslot\n"
20614 "\n"
20615 msgstr ""
20616
20617 # type: textblock
20618 #: ../fish/guestfish-actions.pod:2221
20619 msgid ""
20620 "Note that if C<keyslot> already contains a key, then this command will "
20621 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20622 msgstr ""
20623
20624 # type: textblock
20625 #: ../fish/guestfish-actions.pod:2225 ../fish/guestfish-actions.pod:2247 ../fish/guestfish-actions.pod:2260 ../fish/guestfish-actions.pod:2274 ../fish/guestfish-actions.pod:2297 ../fish/guestfish-actions.pod:2307
20626 msgid ""
20627 "This command has one or more key or passphrase parameters.  Guestfish will "
20628 "prompt for these separately."
20629 msgstr ""
20630
20631 # type: =head2
20632 #: ../fish/guestfish-actions.pod:2228
20633 msgid "luks-close"
20634 msgstr ""
20635
20636 # type: verbatim
20637 #: ../fish/guestfish-actions.pod:2230
20638 #, no-wrap
20639 msgid ""
20640 " luks-close device\n"
20641 "\n"
20642 msgstr ""
20643
20644 # type: textblock
20645 #: ../fish/guestfish-actions.pod:2232
20646 msgid ""
20647 "This closes a LUKS device that was created earlier by L</luks-open> or "
20648 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
20649 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
20650 "underlying block device."
20651 msgstr ""
20652
20653 # type: =head2
20654 #: ../fish/guestfish-actions.pod:2238
20655 msgid "luks-format"
20656 msgstr ""
20657
20658 # type: verbatim
20659 #: ../fish/guestfish-actions.pod:2240
20660 #, no-wrap
20661 msgid ""
20662 " luks-format device keyslot\n"
20663 "\n"
20664 msgstr ""
20665
20666 # type: =head2
20667 #: ../fish/guestfish-actions.pod:2253
20668 msgid "luks-format-cipher"
20669 msgstr ""
20670
20671 # type: verbatim
20672 #: ../fish/guestfish-actions.pod:2255
20673 #, no-wrap
20674 msgid ""
20675 " luks-format-cipher device keyslot cipher\n"
20676 "\n"
20677 msgstr ""
20678
20679 # type: textblock
20680 #: ../fish/guestfish-actions.pod:2257
20681 msgid ""
20682 "This command is the same as L</luks-format> but it also allows you to set "
20683 "the C<cipher> used."
20684 msgstr ""
20685
20686 # type: =head2
20687 #: ../fish/guestfish-actions.pod:2266
20688 msgid "luks-kill-slot"
20689 msgstr ""
20690
20691 # type: verbatim
20692 #: ../fish/guestfish-actions.pod:2268
20693 #, no-wrap
20694 msgid ""
20695 " luks-kill-slot device keyslot\n"
20696 "\n"
20697 msgstr ""
20698
20699 # type: =head2
20700 #: ../fish/guestfish-actions.pod:2277
20701 msgid "luks-open"
20702 msgstr ""
20703
20704 # type: verbatim
20705 #: ../fish/guestfish-actions.pod:2279
20706 #, no-wrap
20707 msgid ""
20708 " luks-open device mapname\n"
20709 "\n"
20710 msgstr ""
20711
20712 # type: textblock
20713 #: ../fish/guestfish-actions.pod:2293
20714 msgid ""
20715 "If this block device contains LVM volume groups, then calling L</vgscan> "
20716 "followed by L</vg-activate-all> will make them visible."
20717 msgstr ""
20718
20719 # type: =head2
20720 #: ../fish/guestfish-actions.pod:2300
20721 msgid "luks-open-ro"
20722 msgstr ""
20723
20724 # type: verbatim
20725 #: ../fish/guestfish-actions.pod:2302
20726 #, no-wrap
20727 msgid ""
20728 " luks-open-ro device mapname\n"
20729 "\n"
20730 msgstr ""
20731
20732 # type: textblock
20733 #: ../fish/guestfish-actions.pod:2304
20734 msgid ""
20735 "This is the same as L</luks-open> except that a read-only mapping is "
20736 "created."
20737 msgstr ""
20738
20739 # type: =head2
20740 #: ../fish/guestfish-actions.pod:2310
20741 msgid "lvcreate"
20742 msgstr ""
20743
20744 # type: verbatim
20745 #: ../fish/guestfish-actions.pod:2312
20746 #, no-wrap
20747 msgid ""
20748 " lvcreate logvol volgroup mbytes\n"
20749 "\n"
20750 msgstr ""
20751
20752 # type: =head2
20753 #: ../fish/guestfish-actions.pod:2317
20754 msgid "lvm-canonical-lv-name"
20755 msgstr ""
20756
20757 # type: verbatim
20758 #: ../fish/guestfish-actions.pod:2319
20759 #, no-wrap
20760 msgid ""
20761 " lvm-canonical-lv-name lvname\n"
20762 "\n"
20763 msgstr ""
20764
20765 # type: textblock
20766 #: ../fish/guestfish-actions.pod:2328
20767 msgid "See also L</is-lv>."
20768 msgstr ""
20769
20770 # type: =head2
20771 #: ../fish/guestfish-actions.pod:2330
20772 msgid "lvm-clear-filter"
20773 msgstr ""
20774
20775 # type: verbatim
20776 #: ../fish/guestfish-actions.pod:2332
20777 #, no-wrap
20778 msgid ""
20779 " lvm-clear-filter\n"
20780 "\n"
20781 msgstr ""
20782
20783 # type: textblock
20784 #: ../fish/guestfish-actions.pod:2334
20785 msgid ""
20786 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20787 "block device."
20788 msgstr ""
20789
20790 # type: =head2
20791 #: ../fish/guestfish-actions.pod:2340
20792 msgid "lvm-remove-all"
20793 msgstr ""
20794
20795 # type: verbatim
20796 #: ../fish/guestfish-actions.pod:2342
20797 #, no-wrap
20798 msgid ""
20799 " lvm-remove-all\n"
20800 "\n"
20801 msgstr ""
20802
20803 # type: =head2
20804 #: ../fish/guestfish-actions.pod:2350
20805 msgid "lvm-set-filter"
20806 msgstr ""
20807
20808 # type: verbatim
20809 #: ../fish/guestfish-actions.pod:2352
20810 #, no-wrap
20811 msgid ""
20812 " lvm-set-filter 'devices ...'\n"
20813 "\n"
20814 msgstr ""
20815
20816 # type: =head2
20817 #: ../fish/guestfish-actions.pod:2377
20818 msgid "lvremove"
20819 msgstr ""
20820
20821 # type: verbatim
20822 #: ../fish/guestfish-actions.pod:2379
20823 #, no-wrap
20824 msgid ""
20825 " lvremove device\n"
20826 "\n"
20827 msgstr ""
20828
20829 # type: =head2
20830 #: ../fish/guestfish-actions.pod:2387
20831 msgid "lvrename"
20832 msgstr ""
20833
20834 # type: verbatim
20835 #: ../fish/guestfish-actions.pod:2389
20836 #, no-wrap
20837 msgid ""
20838 " lvrename logvol newlogvol\n"
20839 "\n"
20840 msgstr ""
20841
20842 # type: =head2
20843 #: ../fish/guestfish-actions.pod:2393
20844 msgid "lvresize"
20845 msgstr ""
20846
20847 # type: verbatim
20848 #: ../fish/guestfish-actions.pod:2395
20849 #, no-wrap
20850 msgid ""
20851 " lvresize device mbytes\n"
20852 "\n"
20853 msgstr ""
20854
20855 # type: =head2
20856 #: ../fish/guestfish-actions.pod:2401
20857 msgid "lvresize-free"
20858 msgstr ""
20859
20860 # type: verbatim
20861 #: ../fish/guestfish-actions.pod:2403
20862 #, no-wrap
20863 msgid ""
20864 " lvresize-free lv percent\n"
20865 "\n"
20866 msgstr ""
20867
20868 # type: =head2
20869 #: ../fish/guestfish-actions.pod:2411
20870 msgid "lvs"
20871 msgstr ""
20872
20873 # type: verbatim
20874 #: ../fish/guestfish-actions.pod:2413
20875 #, no-wrap
20876 msgid ""
20877 " lvs\n"
20878 "\n"
20879 msgstr ""
20880
20881 # type: textblock
20882 #: ../fish/guestfish-actions.pod:2421
20883 msgid "See also L</lvs-full>, L</list-filesystems>."
20884 msgstr ""
20885
20886 # type: =head2
20887 #: ../fish/guestfish-actions.pod:2423
20888 msgid "lvs-full"
20889 msgstr ""
20890
20891 # type: verbatim
20892 #: ../fish/guestfish-actions.pod:2425
20893 #, no-wrap
20894 msgid ""
20895 " lvs-full\n"
20896 "\n"
20897 msgstr ""
20898
20899 # type: =head2
20900 #: ../fish/guestfish-actions.pod:2430
20901 msgid "lvuuid"
20902 msgstr ""
20903
20904 # type: verbatim
20905 #: ../fish/guestfish-actions.pod:2432
20906 #, no-wrap
20907 msgid ""
20908 " lvuuid device\n"
20909 "\n"
20910 msgstr ""
20911
20912 # type: =head2
20913 #: ../fish/guestfish-actions.pod:2436
20914 msgid "lxattrlist"
20915 msgstr ""
20916
20917 # type: verbatim
20918 #: ../fish/guestfish-actions.pod:2438
20919 #, no-wrap
20920 msgid ""
20921 " lxattrlist path 'names ...'\n"
20922 "\n"
20923 msgstr ""
20924
20925 # type: textblock
20926 #: ../fish/guestfish-actions.pod:2454
20927 msgid ""
20928 "This call is intended for programs that want to efficiently list a directory "
20929 "contents without making many round-trips.  See also L</lstatlist> for a "
20930 "similarly efficient call for getting standard stats.  Very long directory "
20931 "listings might cause the protocol message size to be exceeded, causing this "
20932 "call to fail.  The caller must split up such requests into smaller groups of "
20933 "names."
20934 msgstr ""
20935
20936 # type: =head2
20937 #: ../fish/guestfish-actions.pod:2462
20938 msgid "mkdir"
20939 msgstr ""
20940
20941 # type: verbatim
20942 #: ../fish/guestfish-actions.pod:2464
20943 #, no-wrap
20944 msgid ""
20945 " mkdir path\n"
20946 "\n"
20947 msgstr ""
20948
20949 # type: =head2
20950 #: ../fish/guestfish-actions.pod:2468
20951 msgid "mkdir-mode"
20952 msgstr ""
20953
20954 # type: verbatim
20955 #: ../fish/guestfish-actions.pod:2470
20956 #, no-wrap
20957 msgid ""
20958 " mkdir-mode path mode\n"
20959 "\n"
20960 msgstr ""
20961
20962 # type: textblock
20963 #: ../fish/guestfish-actions.pod:2479
20964 msgid "See also L</mkdir>, L</umask>"
20965 msgstr ""
20966
20967 # type: =head2
20968 #: ../fish/guestfish-actions.pod:2481
20969 msgid "mkdir-p"
20970 msgstr ""
20971
20972 # type: verbatim
20973 #: ../fish/guestfish-actions.pod:2483
20974 #, no-wrap
20975 msgid ""
20976 " mkdir-p path\n"
20977 "\n"
20978 msgstr ""
20979
20980 # type: =head2
20981 #: ../fish/guestfish-actions.pod:2488
20982 msgid "mkdtemp"
20983 msgstr ""
20984
20985 # type: verbatim
20986 #: ../fish/guestfish-actions.pod:2490
20987 #, no-wrap
20988 msgid ""
20989 " mkdtemp template\n"
20990 "\n"
20991 msgstr ""
20992
20993 # type: =head2
20994 #: ../fish/guestfish-actions.pod:2511
20995 msgid "mke2fs-J"
20996 msgstr ""
20997
20998 # type: verbatim
20999 #: ../fish/guestfish-actions.pod:2513
21000 #, no-wrap
21001 msgid ""
21002 " mke2fs-J fstype blocksize device journal\n"
21003 "\n"
21004 msgstr ""
21005
21006 # type: textblock
21007 #: ../fish/guestfish-actions.pod:2521
21008 msgid "See also L</mke2journal>."
21009 msgstr ""
21010
21011 # type: =head2
21012 #: ../fish/guestfish-actions.pod:2523
21013 msgid "mke2fs-JL"
21014 msgstr ""
21015
21016 # type: verbatim
21017 #: ../fish/guestfish-actions.pod:2525
21018 #, no-wrap
21019 msgid ""
21020 " mke2fs-JL fstype blocksize device label\n"
21021 "\n"
21022 msgstr ""
21023
21024 # type: textblock
21025 #: ../fish/guestfish-actions.pod:2530
21026 msgid "See also L</mke2journal-L>."
21027 msgstr ""
21028
21029 # type: =head2
21030 #: ../fish/guestfish-actions.pod:2532
21031 msgid "mke2fs-JU"
21032 msgstr ""
21033
21034 # type: verbatim
21035 #: ../fish/guestfish-actions.pod:2534
21036 #, no-wrap
21037 msgid ""
21038 " mke2fs-JU fstype blocksize device uuid\n"
21039 "\n"
21040 msgstr ""
21041
21042 # type: textblock
21043 #: ../fish/guestfish-actions.pod:2539
21044 msgid "See also L</mke2journal-U>."
21045 msgstr ""
21046
21047 # type: =head2
21048 #: ../fish/guestfish-actions.pod:2541
21049 msgid "mke2journal"
21050 msgstr ""
21051
21052 # type: verbatim
21053 #: ../fish/guestfish-actions.pod:2543
21054 #, no-wrap
21055 msgid ""
21056 " mke2journal blocksize device\n"
21057 "\n"
21058 msgstr ""
21059
21060 # type: =head2
21061 #: ../fish/guestfish-actions.pod:2550
21062 msgid "mke2journal-L"
21063 msgstr ""
21064
21065 # type: verbatim
21066 #: ../fish/guestfish-actions.pod:2552
21067 #, no-wrap
21068 msgid ""
21069 " mke2journal-L blocksize label device\n"
21070 "\n"
21071 msgstr ""
21072
21073 # type: =head2
21074 #: ../fish/guestfish-actions.pod:2556
21075 msgid "mke2journal-U"
21076 msgstr ""
21077
21078 # type: verbatim
21079 #: ../fish/guestfish-actions.pod:2558
21080 #, no-wrap
21081 msgid ""
21082 " mke2journal-U blocksize uuid device\n"
21083 "\n"
21084 msgstr ""
21085
21086 # type: =head2
21087 #: ../fish/guestfish-actions.pod:2562
21088 msgid "mkfifo"
21089 msgstr ""
21090
21091 # type: verbatim
21092 #: ../fish/guestfish-actions.pod:2564
21093 #, no-wrap
21094 msgid ""
21095 " mkfifo mode path\n"
21096 "\n"
21097 msgstr ""
21098
21099 # type: textblock
21100 #: ../fish/guestfish-actions.pod:2566
21101 msgid ""
21102 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21103 "is just a convenient wrapper around L</mknod>."
21104 msgstr ""
21105
21106 # type: =head2
21107 #: ../fish/guestfish-actions.pod:2572
21108 msgid "mkfs"
21109 msgstr ""
21110
21111 # type: verbatim
21112 #: ../fish/guestfish-actions.pod:2574
21113 #, no-wrap
21114 msgid ""
21115 " mkfs fstype device\n"
21116 "\n"
21117 msgstr ""
21118
21119 # type: =head2
21120 #: ../fish/guestfish-actions.pod:2580
21121 msgid "mkfs-b"
21122 msgstr ""
21123
21124 # type: verbatim
21125 #: ../fish/guestfish-actions.pod:2582
21126 #, no-wrap
21127 msgid ""
21128 " mkfs-b fstype blocksize device\n"
21129 "\n"
21130 msgstr ""
21131
21132 # type: textblock
21133 #: ../fish/guestfish-actions.pod:2584
21134 msgid ""
21135 "This call is similar to L</mkfs>, but it allows you to control the block "
21136 "size of the resulting filesystem.  Supported block sizes depend on the "
21137 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21138 msgstr ""
21139
21140 # type: =head2
21141 #: ../fish/guestfish-actions.pod:2592
21142 msgid "mkmountpoint"
21143 msgstr ""
21144
21145 # type: verbatim
21146 #: ../fish/guestfish-actions.pod:2594
21147 #, no-wrap
21148 msgid ""
21149 " mkmountpoint exemptpath\n"
21150 "\n"
21151 msgstr ""
21152
21153 # type: textblock
21154 #: ../fish/guestfish-actions.pod:2596
21155 msgid ""
21156 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21157 "to create extra mountpoints before mounting the first filesystem."
21158 msgstr ""
21159
21160 # type: textblock
21161 #: ../fish/guestfish-actions.pod:2620
21162 msgid ""
21163 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21164 "unexpected errors if you try to mix these calls.  It is safest to manually "
21165 "unmount filesystems and remove mountpoints after use."
21166 msgstr ""
21167
21168 # type: textblock
21169 #: ../fish/guestfish-actions.pod:2624
21170 msgid ""
21171 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21172 "for this to work for manual mountpoints, you must ensure that the innermost "
21173 "mountpoints have the longest pathnames, as in the example code above."
21174 msgstr ""
21175
21176 # type: textblock
21177 #: ../fish/guestfish-actions.pod:2631
21178 msgid ""
21179 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21180 "that L</umount-all> is called when the handle is closed which can also "
21181 "trigger these issues."
21182 msgstr ""
21183
21184 # type: =head2
21185 #: ../fish/guestfish-actions.pod:2635
21186 msgid "mknod"
21187 msgstr ""
21188
21189 # type: verbatim
21190 #: ../fish/guestfish-actions.pod:2637
21191 #, no-wrap
21192 msgid ""
21193 " mknod mode devmajor devminor path\n"
21194 "\n"
21195 msgstr ""
21196
21197 # type: textblock
21198 #: ../fish/guestfish-actions.pod:2647
21199 msgid ""
21200 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21201 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21202 "regular file).  These constants are available in the standard Linux header "
21203 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21204 "wrappers around this command which bitwise OR in the appropriate constant "
21205 "for you."
21206 msgstr ""
21207
21208 # type: =head2
21209 #: ../fish/guestfish-actions.pod:2657
21210 msgid "mknod-b"
21211 msgstr ""
21212
21213 # type: verbatim
21214 #: ../fish/guestfish-actions.pod:2659
21215 #, no-wrap
21216 msgid ""
21217 " mknod-b mode devmajor devminor path\n"
21218 "\n"
21219 msgstr ""
21220
21221 # type: textblock
21222 #: ../fish/guestfish-actions.pod:2661
21223 msgid ""
21224 "This call creates a block device node called C<path> with mode C<mode> and "
21225 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21226 "wrapper around L</mknod>."
21227 msgstr ""
21228
21229 # type: =head2
21230 #: ../fish/guestfish-actions.pod:2667
21231 msgid "mknod-c"
21232 msgstr ""
21233
21234 # type: verbatim
21235 #: ../fish/guestfish-actions.pod:2669
21236 #, no-wrap
21237 msgid ""
21238 " mknod-c mode devmajor devminor path\n"
21239 "\n"
21240 msgstr ""
21241
21242 # type: textblock
21243 #: ../fish/guestfish-actions.pod:2671
21244 msgid ""
21245 "This call creates a char device node called C<path> with mode C<mode> and "
21246 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21247 "wrapper around L</mknod>."
21248 msgstr ""
21249
21250 # type: =head2
21251 #: ../fish/guestfish-actions.pod:2677
21252 msgid "mkswap"
21253 msgstr ""
21254
21255 # type: verbatim
21256 #: ../fish/guestfish-actions.pod:2679
21257 #, no-wrap
21258 msgid ""
21259 " mkswap device\n"
21260 "\n"
21261 msgstr ""
21262
21263 # type: =head2
21264 #: ../fish/guestfish-actions.pod:2683
21265 msgid "mkswap-L"
21266 msgstr ""
21267
21268 # type: verbatim
21269 #: ../fish/guestfish-actions.pod:2685
21270 #, no-wrap
21271 msgid ""
21272 " mkswap-L label device\n"
21273 "\n"
21274 msgstr ""
21275
21276 # type: =head2
21277 #: ../fish/guestfish-actions.pod:2693
21278 msgid "mkswap-U"
21279 msgstr ""
21280
21281 # type: verbatim
21282 #: ../fish/guestfish-actions.pod:2695
21283 #, no-wrap
21284 msgid ""
21285 " mkswap-U uuid device\n"
21286 "\n"
21287 msgstr ""
21288
21289 # type: =head2
21290 #: ../fish/guestfish-actions.pod:2699
21291 msgid "mkswap-file"
21292 msgstr ""
21293
21294 # type: verbatim
21295 #: ../fish/guestfish-actions.pod:2701
21296 #, no-wrap
21297 msgid ""
21298 " mkswap-file path\n"
21299 "\n"
21300 msgstr ""
21301
21302 # type: textblock
21303 #: ../fish/guestfish-actions.pod:2705
21304 msgid ""
21305 "This command just writes a swap file signature to an existing file.  To "
21306 "create the file itself, use something like L</fallocate>."
21307 msgstr ""
21308
21309 # type: =head2
21310 #: ../fish/guestfish-actions.pod:2708
21311 msgid "modprobe"
21312 msgstr ""
21313
21314 # type: verbatim
21315 #: ../fish/guestfish-actions.pod:2710
21316 #, no-wrap
21317 msgid ""
21318 " modprobe modulename\n"
21319 "\n"
21320 msgstr ""
21321
21322 # type: =head2
21323 #: ../fish/guestfish-actions.pod:2717
21324 msgid "mount"
21325 msgstr ""
21326
21327 # type: verbatim
21328 #: ../fish/guestfish-actions.pod:2719
21329 #, no-wrap
21330 msgid ""
21331 " mount device mountpoint\n"
21332 "\n"
21333 msgstr ""
21334
21335 # type: textblock
21336 #: ../fish/guestfish-actions.pod:2735
21337 msgid ""
21338 "B<Important note:> When you use this call, the filesystem options C<sync> "
21339 "and C<noatime> are set implicitly.  This was originally done because we "
21340 "thought it would improve reliability, but it turns out that I<-o sync> has a "
21341 "very large negative performance impact and negligible effect on "
21342 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
21343 "code that needs performance, and instead use L</mount-options> (use an empty "
21344 "string for the first parameter if you don't want any options)."
21345 msgstr ""
21346
21347 # type: =head2
21348 #: ../fish/guestfish-actions.pod:2745
21349 msgid "mount-loop"
21350 msgstr ""
21351
21352 # type: verbatim
21353 #: ../fish/guestfish-actions.pod:2747
21354 #, no-wrap
21355 msgid ""
21356 " mount-loop file mountpoint\n"
21357 "\n"
21358 msgstr ""
21359
21360 # type: =head2
21361 #: ../fish/guestfish-actions.pod:2753
21362 msgid "mount-options"
21363 msgstr ""
21364
21365 # type: verbatim
21366 #: ../fish/guestfish-actions.pod:2755
21367 #, no-wrap
21368 msgid ""
21369 " mount-options options device mountpoint\n"
21370 "\n"
21371 msgstr ""
21372
21373 # type: textblock
21374 #: ../fish/guestfish-actions.pod:2757
21375 msgid ""
21376 "This is the same as the L</mount> command, but it allows you to set the "
21377 "mount options as for the L<mount(8)> I<-o> flag."
21378 msgstr ""
21379
21380 # type: =head2
21381 #: ../fish/guestfish-actions.pod:2765
21382 msgid "mount-ro"
21383 msgstr ""
21384
21385 # type: verbatim
21386 #: ../fish/guestfish-actions.pod:2767
21387 #, no-wrap
21388 msgid ""
21389 " mount-ro device mountpoint\n"
21390 "\n"
21391 msgstr ""
21392
21393 # type: textblock
21394 #: ../fish/guestfish-actions.pod:2769
21395 msgid ""
21396 "This is the same as the L</mount> command, but it mounts the filesystem with "
21397 "the read-only (I<-o ro>) flag."
21398 msgstr ""
21399
21400 # type: =head2
21401 #: ../fish/guestfish-actions.pod:2772
21402 msgid "mount-vfs"
21403 msgstr ""
21404
21405 # type: verbatim
21406 #: ../fish/guestfish-actions.pod:2774
21407 #, no-wrap
21408 msgid ""
21409 " mount-vfs options vfstype device mountpoint\n"
21410 "\n"
21411 msgstr ""
21412
21413 # type: textblock
21414 #: ../fish/guestfish-actions.pod:2776
21415 msgid ""
21416 "This is the same as the L</mount> command, but it allows you to set both the "
21417 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
21418 msgstr ""
21419
21420 # type: =head2
21421 #: ../fish/guestfish-actions.pod:2780
21422 msgid "mountpoints"
21423 msgstr ""
21424
21425 # type: verbatim
21426 #: ../fish/guestfish-actions.pod:2782
21427 #, no-wrap
21428 msgid ""
21429 " mountpoints\n"
21430 "\n"
21431 msgstr ""
21432
21433 # type: textblock
21434 #: ../fish/guestfish-actions.pod:2784
21435 msgid ""
21436 "This call is similar to L</mounts>.  That call returns a list of devices.  "
21437 "This one returns a hash table (map) of device name to directory where the "
21438 "device is mounted."
21439 msgstr ""
21440
21441 # type: =head2
21442 #: ../fish/guestfish-actions.pod:2788
21443 msgid "mounts"
21444 msgstr ""
21445
21446 # type: verbatim
21447 #: ../fish/guestfish-actions.pod:2790
21448 #, no-wrap
21449 msgid ""
21450 " mounts\n"
21451 "\n"
21452 msgstr ""
21453
21454 # type: textblock
21455 #: ../fish/guestfish-actions.pod:2797
21456 msgid "See also: L</mountpoints>"
21457 msgstr ""
21458
21459 # type: =head2
21460 #: ../fish/guestfish-actions.pod:2799
21461 msgid "mv"
21462 msgstr ""
21463
21464 # type: verbatim
21465 #: ../fish/guestfish-actions.pod:2801
21466 #, no-wrap
21467 msgid ""
21468 " mv src dest\n"
21469 "\n"
21470 msgstr ""
21471
21472 # type: =head2
21473 #: ../fish/guestfish-actions.pod:2806
21474 msgid "ntfs-3g-probe"
21475 msgstr ""
21476
21477 # type: verbatim
21478 #: ../fish/guestfish-actions.pod:2808
21479 #, no-wrap
21480 msgid ""
21481 " ntfs-3g-probe true|false device\n"
21482 "\n"
21483 msgstr ""
21484
21485 # type: =head2
21486 #: ../fish/guestfish-actions.pod:2822
21487 msgid "ntfsresize"
21488 msgstr ""
21489
21490 # type: verbatim
21491 #: ../fish/guestfish-actions.pod:2824
21492 #, no-wrap
21493 msgid ""
21494 " ntfsresize device\n"
21495 "\n"
21496 msgstr ""
21497
21498 # type: =head2
21499 #: ../fish/guestfish-actions.pod:2830
21500 msgid "ntfsresize-size"
21501 msgstr ""
21502
21503 # type: verbatim
21504 #: ../fish/guestfish-actions.pod:2832
21505 #, no-wrap
21506 msgid ""
21507 " ntfsresize-size device size\n"
21508 "\n"
21509 msgstr ""
21510
21511 # type: textblock
21512 #: ../fish/guestfish-actions.pod:2834
21513 msgid ""
21514 "This command is the same as L</ntfsresize> except that it allows you to "
21515 "specify the new size (in bytes) explicitly."
21516 msgstr ""
21517
21518 # type: =head2
21519 #: ../fish/guestfish-actions.pod:2837
21520 msgid "part-add"
21521 msgstr ""
21522
21523 # type: verbatim
21524 #: ../fish/guestfish-actions.pod:2839
21525 #, no-wrap
21526 msgid ""
21527 " part-add device prlogex startsect endsect\n"
21528 "\n"
21529 msgstr ""
21530
21531 # type: textblock
21532 #: ../fish/guestfish-actions.pod:2841
21533 msgid ""
21534 "This command adds a partition to C<device>.  If there is no partition table "
21535 "on the device, call L</part-init> first."
21536 msgstr ""
21537
21538 # type: textblock
21539 #: ../fish/guestfish-actions.pod:2853
21540 msgid ""
21541 "Creating a partition which covers the whole disk is not so easy.  Use "
21542 "L</part-disk> to do that."
21543 msgstr ""
21544
21545 # type: =head2
21546 #: ../fish/guestfish-actions.pod:2856
21547 msgid "part-del"
21548 msgstr ""
21549
21550 # type: verbatim
21551 #: ../fish/guestfish-actions.pod:2858
21552 #, no-wrap
21553 msgid ""
21554 " part-del device partnum\n"
21555 "\n"
21556 msgstr ""
21557
21558 # type: =head2
21559 #: ../fish/guestfish-actions.pod:2866
21560 msgid "part-disk"
21561 msgstr ""
21562
21563 # type: verbatim
21564 #: ../fish/guestfish-actions.pod:2868
21565 #, no-wrap
21566 msgid ""
21567 " part-disk device parttype\n"
21568 "\n"
21569 msgstr ""
21570
21571 # type: textblock
21572 #: ../fish/guestfish-actions.pod:2870
21573 msgid ""
21574 "This command is simply a combination of L</part-init> followed by "
21575 "L</part-add> to create a single primary partition covering the whole disk."
21576 msgstr ""
21577
21578 # type: textblock
21579 #: ../fish/guestfish-actions.pod:2874
21580 msgid ""
21581 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21582 "possible values are described in L</part-init>."
21583 msgstr ""
21584
21585 # type: =head2
21586 #: ../fish/guestfish-actions.pod:2880
21587 msgid "part-get-bootable"
21588 msgstr ""
21589
21590 # type: verbatim
21591 #: ../fish/guestfish-actions.pod:2882
21592 #, no-wrap
21593 msgid ""
21594 " part-get-bootable device partnum\n"
21595 "\n"
21596 msgstr ""
21597
21598 # type: textblock
21599 #: ../fish/guestfish-actions.pod:2887
21600 msgid "See also L</part-set-bootable>."
21601 msgstr ""
21602
21603 # type: =head2
21604 #: ../fish/guestfish-actions.pod:2889
21605 msgid "part-get-mbr-id"
21606 msgstr ""
21607
21608 # type: verbatim
21609 #: ../fish/guestfish-actions.pod:2891
21610 #, no-wrap
21611 msgid ""
21612 " part-get-mbr-id device partnum\n"
21613 "\n"
21614 msgstr ""
21615
21616 # type: textblock
21617 #: ../fish/guestfish-actions.pod:2896 ../fish/guestfish-actions.pod:3034
21618 msgid ""
21619 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21620 "undefined results for other partition table types (see "
21621 "L</part-get-parttype>)."
21622 msgstr ""
21623
21624 # type: =head2
21625 #: ../fish/guestfish-actions.pod:2900
21626 msgid "part-get-parttype"
21627 msgstr ""
21628
21629 # type: verbatim
21630 #: ../fish/guestfish-actions.pod:2902
21631 #, no-wrap
21632 msgid ""
21633 " part-get-parttype device\n"
21634 "\n"
21635 msgstr ""
21636
21637 # type: textblock
21638 #: ../fish/guestfish-actions.pod:2907
21639 msgid ""
21640 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21641 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21642 "possible, although unusual.  See L</part-init> for a full list."
21643 msgstr ""
21644
21645 # type: =head2
21646 #: ../fish/guestfish-actions.pod:2912
21647 msgid "part-init"
21648 msgstr ""
21649
21650 # type: verbatim
21651 #: ../fish/guestfish-actions.pod:2914
21652 #, no-wrap
21653 msgid ""
21654 " part-init device parttype\n"
21655 "\n"
21656 msgstr ""
21657
21658 # type: textblock
21659 #: ../fish/guestfish-actions.pod:2920
21660 msgid ""
21661 "Initially there are no partitions.  Following this, you should call "
21662 "L</part-add> for each partition required."
21663 msgstr ""
21664
21665 # type: =head2
21666 #: ../fish/guestfish-actions.pod:2983
21667 msgid "part-list"
21668 msgstr ""
21669
21670 # type: verbatim
21671 #: ../fish/guestfish-actions.pod:2985
21672 #, no-wrap
21673 msgid ""
21674 " part-list device\n"
21675 "\n"
21676 msgstr ""
21677
21678 # type: textblock
21679 #: ../fish/guestfish-actions.pod:3000
21680 msgid ""
21681 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21682 "the device's sector size, see L</blockdev-getss>."
21683 msgstr ""
21684
21685 # type: =head2
21686 #: ../fish/guestfish-actions.pod:3013
21687 msgid "part-set-bootable"
21688 msgstr ""
21689
21690 # type: verbatim
21691 #: ../fish/guestfish-actions.pod:3015
21692 #, no-wrap
21693 msgid ""
21694 " part-set-bootable device partnum true|false\n"
21695 "\n"
21696 msgstr ""
21697
21698 # type: =head2
21699 #: ../fish/guestfish-actions.pod:3024
21700 msgid "part-set-mbr-id"
21701 msgstr ""
21702
21703 # type: verbatim
21704 #: ../fish/guestfish-actions.pod:3026
21705 #, no-wrap
21706 msgid ""
21707 " part-set-mbr-id device partnum idbyte\n"
21708 "\n"
21709 msgstr ""
21710
21711 # type: =head2
21712 #: ../fish/guestfish-actions.pod:3038
21713 msgid "part-set-name"
21714 msgstr ""
21715
21716 # type: verbatim
21717 #: ../fish/guestfish-actions.pod:3040
21718 #, no-wrap
21719 msgid ""
21720 " part-set-name device partnum name\n"
21721 "\n"
21722 msgstr ""
21723
21724 # type: =head2
21725 #: ../fish/guestfish-actions.pod:3048
21726 msgid "part-to-dev"
21727 msgstr ""
21728
21729 # type: verbatim
21730 #: ../fish/guestfish-actions.pod:3050
21731 #, no-wrap
21732 msgid ""
21733 " part-to-dev partition\n"
21734 "\n"
21735 msgstr ""
21736
21737 # type: textblock
21738 #: ../fish/guestfish-actions.pod:3056
21739 msgid ""
21740 "The named partition must exist, for example as a string returned from "
21741 "L</list-partitions>."
21742 msgstr ""
21743
21744 # type: =head2
21745 #: ../fish/guestfish-actions.pod:3059
21746 msgid "ping-daemon"
21747 msgstr ""
21748
21749 # type: verbatim
21750 #: ../fish/guestfish-actions.pod:3061
21751 #, no-wrap
21752 msgid ""
21753 " ping-daemon\n"
21754 "\n"
21755 msgstr ""
21756
21757 # type: =head2
21758 #: ../fish/guestfish-actions.pod:3068
21759 msgid "pread"
21760 msgstr ""
21761
21762 # type: verbatim
21763 #: ../fish/guestfish-actions.pod:3070
21764 #, no-wrap
21765 msgid ""
21766 " pread path count offset\n"
21767 "\n"
21768 msgstr ""
21769
21770 # type: textblock
21771 #: ../fish/guestfish-actions.pod:3078
21772 msgid "See also L</pwrite>, L</pread-device>."
21773 msgstr ""
21774
21775 # type: =head2
21776 #: ../fish/guestfish-actions.pod:3083
21777 msgid "pread-device"
21778 msgstr ""
21779
21780 # type: verbatim
21781 #: ../fish/guestfish-actions.pod:3085
21782 #, no-wrap
21783 msgid ""
21784 " pread-device device count offset\n"
21785 "\n"
21786 msgstr ""
21787
21788 # type: textblock
21789 #: ../fish/guestfish-actions.pod:3093
21790 msgid "See also L</pread>."
21791 msgstr ""
21792
21793 # type: =head2
21794 #: ../fish/guestfish-actions.pod:3098
21795 msgid "pvcreate"
21796 msgstr ""
21797
21798 # type: verbatim
21799 #: ../fish/guestfish-actions.pod:3100
21800 #, no-wrap
21801 msgid ""
21802 " pvcreate device\n"
21803 "\n"
21804 msgstr ""
21805
21806 # type: =head2
21807 #: ../fish/guestfish-actions.pod:3106
21808 msgid "pvremove"
21809 msgstr ""
21810
21811 # type: verbatim
21812 #: ../fish/guestfish-actions.pod:3108
21813 #, no-wrap
21814 msgid ""
21815 " pvremove device\n"
21816 "\n"
21817 msgstr ""
21818
21819 # type: =head2
21820 #: ../fish/guestfish-actions.pod:3117
21821 msgid "pvresize"
21822 msgstr ""
21823
21824 # type: verbatim
21825 #: ../fish/guestfish-actions.pod:3119
21826 #, no-wrap
21827 msgid ""
21828 " pvresize device\n"
21829 "\n"
21830 msgstr ""
21831
21832 # type: =head2
21833 #: ../fish/guestfish-actions.pod:3124
21834 msgid "pvresize-size"
21835 msgstr ""
21836
21837 # type: verbatim
21838 #: ../fish/guestfish-actions.pod:3126
21839 #, no-wrap
21840 msgid ""
21841 " pvresize-size device size\n"
21842 "\n"
21843 msgstr ""
21844
21845 # type: textblock
21846 #: ../fish/guestfish-actions.pod:3128
21847 msgid ""
21848 "This command is the same as L</pvresize> except that it allows you to "
21849 "specify the new size (in bytes) explicitly."
21850 msgstr ""
21851
21852 # type: =head2
21853 #: ../fish/guestfish-actions.pod:3131
21854 msgid "pvs"
21855 msgstr ""
21856
21857 # type: verbatim
21858 #: ../fish/guestfish-actions.pod:3133
21859 #, no-wrap
21860 msgid ""
21861 " pvs\n"
21862 "\n"
21863 msgstr ""
21864
21865 # type: textblock
21866 #: ../fish/guestfish-actions.pod:3141
21867 msgid "See also L</pvs-full>."
21868 msgstr ""
21869
21870 # type: =head2
21871 #: ../fish/guestfish-actions.pod:3143
21872 msgid "pvs-full"
21873 msgstr ""
21874
21875 # type: verbatim
21876 #: ../fish/guestfish-actions.pod:3145
21877 #, no-wrap
21878 msgid ""
21879 " pvs-full\n"
21880 "\n"
21881 msgstr ""
21882
21883 # type: =head2
21884 #: ../fish/guestfish-actions.pod:3150
21885 msgid "pvuuid"
21886 msgstr ""
21887
21888 # type: verbatim
21889 #: ../fish/guestfish-actions.pod:3152
21890 #, no-wrap
21891 msgid ""
21892 " pvuuid device\n"
21893 "\n"
21894 msgstr ""
21895
21896 # type: =head2
21897 #: ../fish/guestfish-actions.pod:3156
21898 msgid "pwrite"
21899 msgstr ""
21900
21901 # type: verbatim
21902 #: ../fish/guestfish-actions.pod:3158
21903 #, no-wrap
21904 msgid ""
21905 " pwrite path content offset\n"
21906 "\n"
21907 msgstr ""
21908
21909 # type: textblock
21910 #: ../fish/guestfish-actions.pod:3169
21911 msgid "See also L</pread>, L</pwrite-device>."
21912 msgstr ""
21913
21914 # type: =head2
21915 #: ../fish/guestfish-actions.pod:3174
21916 msgid "pwrite-device"
21917 msgstr ""
21918
21919 # type: verbatim
21920 #: ../fish/guestfish-actions.pod:3176
21921 #, no-wrap
21922 msgid ""
21923 " pwrite-device device content offset\n"
21924 "\n"
21925 msgstr ""
21926
21927 # type: textblock
21928 #: ../fish/guestfish-actions.pod:3186
21929 msgid "See also L</pwrite>."
21930 msgstr ""
21931
21932 # type: =head2
21933 #: ../fish/guestfish-actions.pod:3191
21934 msgid "read-file"
21935 msgstr ""
21936
21937 # type: verbatim
21938 #: ../fish/guestfish-actions.pod:3193
21939 #, no-wrap
21940 msgid ""
21941 " read-file path\n"
21942 "\n"
21943 msgstr ""
21944
21945 # type: textblock
21946 #: ../fish/guestfish-actions.pod:3198
21947 msgid ""
21948 "Unlike L</cat>, this function can correctly handle files that contain "
21949 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21950 "is limited in the total size of file that can be handled."
21951 msgstr ""
21952
21953 # type: =head2
21954 #: ../fish/guestfish-actions.pod:3206
21955 msgid "read-lines"
21956 msgstr ""
21957
21958 # type: verbatim
21959 #: ../fish/guestfish-actions.pod:3208
21960 #, no-wrap
21961 msgid ""
21962 " read-lines path\n"
21963 "\n"
21964 msgstr ""
21965
21966 # type: textblock
21967 #: ../fish/guestfish-actions.pod:3215
21968 msgid ""
21969 "Note that this function cannot correctly handle binary files (specifically, "
21970 "files containing C<\\0> character which is treated as end of line).  For "
21971 "those you need to use the L</read-file> function which has a more complex "
21972 "interface."
21973 msgstr ""
21974
21975 # type: =head2
21976 #: ../fish/guestfish-actions.pod:3220
21977 msgid "readdir"
21978 msgstr ""
21979
21980 # type: verbatim
21981 #: ../fish/guestfish-actions.pod:3222
21982 #, no-wrap
21983 msgid ""
21984 " readdir dir\n"
21985 "\n"
21986 msgstr ""
21987
21988 # type: textblock
21989 #: ../fish/guestfish-actions.pod:3274
21990 msgid ""
21991 "This function is primarily intended for use by programs.  To get a simple "
21992 "list of names, use L</ls>.  To get a printable directory for human "
21993 "consumption, use L</ll>."
21994 msgstr ""
21995
21996 # type: =head2
21997 #: ../fish/guestfish-actions.pod:3278
21998 msgid "readlink"
21999 msgstr ""
22000
22001 # type: verbatim
22002 #: ../fish/guestfish-actions.pod:3280
22003 #, no-wrap
22004 msgid ""
22005 " readlink path\n"
22006 "\n"
22007 msgstr ""
22008
22009 # type: =head2
22010 #: ../fish/guestfish-actions.pod:3284
22011 msgid "readlinklist"
22012 msgstr ""
22013
22014 # type: verbatim
22015 #: ../fish/guestfish-actions.pod:3286
22016 #, no-wrap
22017 msgid ""
22018 " readlinklist path 'names ...'\n"
22019 "\n"
22020 msgstr ""
22021
22022 # type: =head2
22023 #: ../fish/guestfish-actions.pod:3310
22024 msgid "realpath"
22025 msgstr ""
22026
22027 # type: verbatim
22028 #: ../fish/guestfish-actions.pod:3312
22029 #, no-wrap
22030 msgid ""
22031 " realpath path\n"
22032 "\n"
22033 msgstr ""
22034
22035 # type: =head2
22036 #: ../fish/guestfish-actions.pod:3317
22037 msgid "removexattr"
22038 msgstr ""
22039
22040 # type: verbatim
22041 #: ../fish/guestfish-actions.pod:3319
22042 #, no-wrap
22043 msgid ""
22044 " removexattr xattr path\n"
22045 "\n"
22046 msgstr ""
22047
22048 # type: textblock
22049 #: ../fish/guestfish-actions.pod:3324
22050 msgid "See also: L</lremovexattr>, L<attr(5)>."
22051 msgstr ""
22052
22053 # type: =head2
22054 #: ../fish/guestfish-actions.pod:3326
22055 msgid "resize2fs"
22056 msgstr ""
22057
22058 # type: verbatim
22059 #: ../fish/guestfish-actions.pod:3328
22060 #, no-wrap
22061 msgid ""
22062 " resize2fs device\n"
22063 "\n"
22064 msgstr ""
22065
22066 # type: textblock
22067 #: ../fish/guestfish-actions.pod:3333
22068 msgid ""
22069 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22070 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22071 "gives an error about this and sometimes not.  In any case, it is always safe "
22072 "to call L</e2fsck-f> before calling this function."
22073 msgstr ""
22074
22075 # type: =head2
22076 #: ../fish/guestfish-actions.pod:3339
22077 msgid "resize2fs-size"
22078 msgstr ""
22079
22080 # type: verbatim
22081 #: ../fish/guestfish-actions.pod:3341
22082 #, no-wrap
22083 msgid ""
22084 " resize2fs-size device size\n"
22085 "\n"
22086 msgstr ""
22087
22088 # type: textblock
22089 #: ../fish/guestfish-actions.pod:3343
22090 msgid ""
22091 "This command is the same as L</resize2fs> except that it allows you to "
22092 "specify the new size (in bytes) explicitly."
22093 msgstr ""
22094
22095 # type: =head2
22096 #: ../fish/guestfish-actions.pod:3346
22097 msgid "rm"
22098 msgstr ""
22099
22100 # type: verbatim
22101 #: ../fish/guestfish-actions.pod:3348
22102 #, no-wrap
22103 msgid ""
22104 " rm path\n"
22105 "\n"
22106 msgstr ""
22107
22108 # type: =head2
22109 #: ../fish/guestfish-actions.pod:3352
22110 msgid "rm-rf"
22111 msgstr ""
22112
22113 # type: verbatim
22114 #: ../fish/guestfish-actions.pod:3354
22115 #, no-wrap
22116 msgid ""
22117 " rm-rf path\n"
22118 "\n"
22119 msgstr ""
22120
22121 # type: =head2
22122 #: ../fish/guestfish-actions.pod:3360
22123 msgid "rmdir"
22124 msgstr ""
22125
22126 # type: verbatim
22127 #: ../fish/guestfish-actions.pod:3362
22128 #, no-wrap
22129 msgid ""
22130 " rmdir path\n"
22131 "\n"
22132 msgstr ""
22133
22134 # type: =head2
22135 #: ../fish/guestfish-actions.pod:3366
22136 msgid "rmmountpoint"
22137 msgstr ""
22138
22139 # type: verbatim
22140 #: ../fish/guestfish-actions.pod:3368
22141 #, no-wrap
22142 msgid ""
22143 " rmmountpoint exemptpath\n"
22144 "\n"
22145 msgstr ""
22146
22147 # type: textblock
22148 #: ../fish/guestfish-actions.pod:3370
22149 msgid ""
22150 "This calls removes a mountpoint that was previously created with "
22151 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
22152 msgstr ""
22153
22154 # type: =head2
22155 #: ../fish/guestfish-actions.pod:3374
22156 msgid "scrub-device"
22157 msgstr ""
22158
22159 # type: verbatim
22160 #: ../fish/guestfish-actions.pod:3376
22161 #, no-wrap
22162 msgid ""
22163 " scrub-device device\n"
22164 "\n"
22165 msgstr ""
22166
22167 # type: =head2
22168 #: ../fish/guestfish-actions.pod:3387
22169 msgid "scrub-file"
22170 msgstr ""
22171
22172 # type: verbatim
22173 #: ../fish/guestfish-actions.pod:3389
22174 #, no-wrap
22175 msgid ""
22176 " scrub-file file\n"
22177 "\n"
22178 msgstr ""
22179
22180 # type: =head2
22181 #: ../fish/guestfish-actions.pod:3399
22182 msgid "scrub-freespace"
22183 msgstr ""
22184
22185 # type: verbatim
22186 #: ../fish/guestfish-actions.pod:3401
22187 #, no-wrap
22188 msgid ""
22189 " scrub-freespace dir\n"
22190 "\n"
22191 msgstr ""
22192
22193 # type: textblock
22194 #: ../fish/guestfish-actions.pod:3403
22195 msgid ""
22196 "This command creates the directory C<dir> and then fills it with files until "
22197 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22198 "deletes them.  The intention is to scrub any free space on the partition "
22199 "containing C<dir>."
22200 msgstr ""
22201
22202 # type: =head2
22203 #: ../fish/guestfish-actions.pod:3412
22204 msgid "set-append"
22205 msgstr ""
22206
22207 # type: =head2
22208 #: ../fish/guestfish-actions.pod:3414
22209 msgid "append"
22210 msgstr ""
22211
22212 # type: verbatim
22213 #: ../fish/guestfish-actions.pod:3416
22214 #, no-wrap
22215 msgid ""
22216 " set-append append\n"
22217 "\n"
22218 msgstr ""
22219
22220 # type: =head2
22221 #: ../fish/guestfish-actions.pod:3427
22222 msgid "set-autosync"
22223 msgstr ""
22224
22225 # type: =head2
22226 #: ../fish/guestfish-actions.pod:3429
22227 msgid "autosync"
22228 msgstr ""
22229
22230 # type: verbatim
22231 #: ../fish/guestfish-actions.pod:3431
22232 #, no-wrap
22233 msgid ""
22234 " set-autosync true|false\n"
22235 "\n"
22236 msgstr ""
22237
22238 # type: textblock
22239 #: ../fish/guestfish-actions.pod:3433
22240 msgid ""
22241 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22242 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22243 "closed (also if the program exits without closing handles)."
22244 msgstr ""
22245
22246 # type: =head2
22247 #: ../fish/guestfish-actions.pod:3441
22248 msgid "set-direct"
22249 msgstr ""
22250
22251 # type: =head2
22252 #: ../fish/guestfish-actions.pod:3443
22253 msgid "direct"
22254 msgstr ""
22255
22256 # type: verbatim
22257 #: ../fish/guestfish-actions.pod:3445
22258 #, no-wrap
22259 msgid ""
22260 " set-direct true|false\n"
22261 "\n"
22262 msgstr ""
22263
22264 # type: textblock
22265 #: ../fish/guestfish-actions.pod:3451
22266 msgid ""
22267 "One consequence of this is that log messages aren't caught by the library "
22268 "and handled by L</set-log-message-callback>, but go straight to stdout."
22269 msgstr ""
22270
22271 # type: =head2
22272 #: ../fish/guestfish-actions.pod:3460
22273 msgid "set-e2label"
22274 msgstr ""
22275
22276 # type: verbatim
22277 #: ../fish/guestfish-actions.pod:3462
22278 #, no-wrap
22279 msgid ""
22280 " set-e2label device label\n"
22281 "\n"
22282 msgstr ""
22283
22284 # type: textblock
22285 #: ../fish/guestfish-actions.pod:3468
22286 msgid ""
22287 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
22288 "label on a filesystem."
22289 msgstr ""
22290
22291 # type: =head2
22292 #: ../fish/guestfish-actions.pod:3471
22293 msgid "set-e2uuid"
22294 msgstr ""
22295
22296 # type: verbatim
22297 #: ../fish/guestfish-actions.pod:3473
22298 #, no-wrap
22299 msgid ""
22300 " set-e2uuid device uuid\n"
22301 "\n"
22302 msgstr ""
22303
22304 # type: textblock
22305 #: ../fish/guestfish-actions.pod:3480
22306 msgid ""
22307 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
22308 "UUID of a filesystem."
22309 msgstr ""
22310
22311 # type: =head2
22312 #: ../fish/guestfish-actions.pod:3483
22313 msgid "set-memsize"
22314 msgstr ""
22315
22316 # type: =head2
22317 #: ../fish/guestfish-actions.pod:3485
22318 msgid "memsize"
22319 msgstr ""
22320
22321 # type: verbatim
22322 #: ../fish/guestfish-actions.pod:3487
22323 #, no-wrap
22324 msgid ""
22325 " set-memsize memsize\n"
22326 "\n"
22327 msgstr ""
22328
22329 # type: textblock
22330 #: ../fish/guestfish-actions.pod:3489
22331 msgid ""
22332 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
22333 "This only has any effect if called before L</launch>."
22334 msgstr ""
22335
22336 # type: =head2
22337 #: ../fish/guestfish-actions.pod:3500
22338 msgid "set-network"
22339 msgstr ""
22340
22341 # type: =head2
22342 #: ../fish/guestfish-actions.pod:3502
22343 msgid "network"
22344 msgstr ""
22345
22346 # type: verbatim
22347 #: ../fish/guestfish-actions.pod:3504
22348 #, no-wrap
22349 msgid ""
22350 " set-network true|false\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: textblock
22355 #: ../fish/guestfish-actions.pod:3512
22356 msgid "You must call this before calling L</launch>, otherwise it has no effect."
22357 msgstr ""
22358
22359 # type: =head2
22360 #: ../fish/guestfish-actions.pod:3515
22361 msgid "set-path"
22362 msgstr ""
22363
22364 # type: =head2
22365 #: ../fish/guestfish-actions.pod:3517
22366 msgid "path"
22367 msgstr ""
22368
22369 # type: verbatim
22370 #: ../fish/guestfish-actions.pod:3519
22371 #, no-wrap
22372 msgid ""
22373 " set-path searchpath\n"
22374 "\n"
22375 msgstr ""
22376
22377 # type: =head2
22378 #: ../fish/guestfish-actions.pod:3528
22379 msgid "set-qemu"
22380 msgstr ""
22381
22382 # type: =head2
22383 #: ../fish/guestfish-actions.pod:3530
22384 msgid "qemu"
22385 msgstr ""
22386
22387 # type: verbatim
22388 #: ../fish/guestfish-actions.pod:3532
22389 #, no-wrap
22390 msgid ""
22391 " set-qemu qemu\n"
22392 "\n"
22393 msgstr ""
22394
22395 # type: =head2
22396 #: ../fish/guestfish-actions.pod:3552
22397 msgid "set-recovery-proc"
22398 msgstr ""
22399
22400 # type: =head2
22401 #: ../fish/guestfish-actions.pod:3554
22402 msgid "recovery-proc"
22403 msgstr ""
22404
22405 # type: verbatim
22406 #: ../fish/guestfish-actions.pod:3556
22407 #, no-wrap
22408 msgid ""
22409 " set-recovery-proc true|false\n"
22410 "\n"
22411 msgstr ""
22412
22413 # type: textblock
22414 #: ../fish/guestfish-actions.pod:3558
22415 msgid ""
22416 "If this is called with the parameter C<false> then L</launch> does not "
22417 "create a recovery process.  The purpose of the recovery process is to stop "
22418 "runaway qemu processes in the case where the main program aborts abruptly."
22419 msgstr ""
22420
22421 # type: textblock
22422 #: ../fish/guestfish-actions.pod:3563
22423 msgid ""
22424 "This only has any effect if called before L</launch>, and the default is "
22425 "true."
22426 msgstr ""
22427
22428 # type: =head2
22429 #: ../fish/guestfish-actions.pod:3572
22430 msgid "set-selinux"
22431 msgstr ""
22432
22433 # type: =head2
22434 #: ../fish/guestfish-actions.pod:3574
22435 msgid "selinux"
22436 msgstr ""
22437
22438 # type: verbatim
22439 #: ../fish/guestfish-actions.pod:3576
22440 #, no-wrap
22441 msgid ""
22442 " set-selinux true|false\n"
22443 "\n"
22444 msgstr ""
22445
22446 # type: =head2
22447 #: ../fish/guestfish-actions.pod:3587
22448 msgid "set-trace"
22449 msgstr ""
22450
22451 # type: =head2
22452 #: ../fish/guestfish-actions.pod:3589
22453 msgid "trace"
22454 msgstr ""
22455
22456 # type: verbatim
22457 #: ../fish/guestfish-actions.pod:3591
22458 #, no-wrap
22459 msgid ""
22460 " set-trace true|false\n"
22461 "\n"
22462 msgstr ""
22463
22464 # type: =head2
22465 #: ../fish/guestfish-actions.pod:3607
22466 msgid "set-verbose"
22467 msgstr ""
22468
22469 # type: =head2
22470 #: ../fish/guestfish-actions.pod:3609
22471 msgid "verbose"
22472 msgstr ""
22473
22474 # type: verbatim
22475 #: ../fish/guestfish-actions.pod:3611
22476 #, no-wrap
22477 msgid ""
22478 " set-verbose true|false\n"
22479 "\n"
22480 msgstr ""
22481
22482 # type: =head2
22483 #: ../fish/guestfish-actions.pod:3618
22484 msgid "setcon"
22485 msgstr ""
22486
22487 # type: verbatim
22488 #: ../fish/guestfish-actions.pod:3620
22489 #, no-wrap
22490 msgid ""
22491 " setcon context\n"
22492 "\n"
22493 msgstr ""
22494
22495 # type: =head2
22496 #: ../fish/guestfish-actions.pod:3627
22497 msgid "setxattr"
22498 msgstr ""
22499
22500 # type: verbatim
22501 #: ../fish/guestfish-actions.pod:3629
22502 #, no-wrap
22503 msgid ""
22504 " setxattr xattr val vallen path\n"
22505 "\n"
22506 msgstr ""
22507
22508 # type: textblock
22509 #: ../fish/guestfish-actions.pod:3635
22510 msgid "See also: L</lsetxattr>, L<attr(5)>."
22511 msgstr ""
22512
22513 # type: =head2
22514 #: ../fish/guestfish-actions.pod:3637
22515 msgid "sfdisk"
22516 msgstr ""
22517
22518 # type: verbatim
22519 #: ../fish/guestfish-actions.pod:3639
22520 #, no-wrap
22521 msgid ""
22522 " sfdisk device cyls heads sectors 'lines ...'\n"
22523 "\n"
22524 msgstr ""
22525
22526 # type: textblock
22527 #: ../fish/guestfish-actions.pod:3661
22528 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
22529 msgstr ""
22530
22531 # type: =head2
22532 #: ../fish/guestfish-actions.pod:3667
22533 msgid "sfdiskM"
22534 msgstr ""
22535
22536 # type: verbatim
22537 #: ../fish/guestfish-actions.pod:3669
22538 #, no-wrap
22539 msgid ""
22540 " sfdiskM device 'lines ...'\n"
22541 "\n"
22542 msgstr ""
22543
22544 # type: textblock
22545 #: ../fish/guestfish-actions.pod:3671
22546 msgid ""
22547 "This is a simplified interface to the L</sfdisk> command, where partition "
22548 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22549 "you don't need to specify the cyls, heads and sectors parameters which were "
22550 "rarely if ever used anyway."
22551 msgstr ""
22552
22553 # type: textblock
22554 #: ../fish/guestfish-actions.pod:3677
22555 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22556 msgstr ""
22557
22558 # type: =head2
22559 #: ../fish/guestfish-actions.pod:3683
22560 msgid "sfdisk-N"
22561 msgstr ""
22562
22563 # type: verbatim
22564 #: ../fish/guestfish-actions.pod:3685
22565 #, no-wrap
22566 msgid ""
22567 " sfdisk-N device partnum cyls heads sectors line\n"
22568 "\n"
22569 msgstr ""
22570
22571 # type: textblock
22572 #: ../fish/guestfish-actions.pod:3690
22573 msgid ""
22574 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
22575 "cyls/heads/sectors parameters."
22576 msgstr ""
22577
22578 # type: textblock
22579 #: ../fish/guestfish-actions.pod:3693
22580 msgid "See also: L</part-add>"
22581 msgstr ""
22582
22583 # type: =head2
22584 #: ../fish/guestfish-actions.pod:3698
22585 msgid "sfdisk-disk-geometry"
22586 msgstr ""
22587
22588 # type: verbatim
22589 #: ../fish/guestfish-actions.pod:3700
22590 #, no-wrap
22591 msgid ""
22592 " sfdisk-disk-geometry device\n"
22593 "\n"
22594 msgstr ""
22595
22596 # type: textblock
22597 #: ../fish/guestfish-actions.pod:3702
22598 msgid ""
22599 "This displays the disk geometry of C<device> read from the partition table.  "
22600 "Especially in the case where the underlying block device has been resized, "
22601 "this can be different from the kernel's idea of the geometry (see "
22602 "L</sfdisk-kernel-geometry>)."
22603 msgstr ""
22604
22605 # type: =head2
22606 #: ../fish/guestfish-actions.pod:3710
22607 msgid "sfdisk-kernel-geometry"
22608 msgstr ""
22609
22610 # type: verbatim
22611 #: ../fish/guestfish-actions.pod:3712
22612 #, no-wrap
22613 msgid ""
22614 " sfdisk-kernel-geometry device\n"
22615 "\n"
22616 msgstr ""
22617
22618 # type: =head2
22619 #: ../fish/guestfish-actions.pod:3719
22620 msgid "sfdisk-l"
22621 msgstr ""
22622
22623 # type: verbatim
22624 #: ../fish/guestfish-actions.pod:3721
22625 #, no-wrap
22626 msgid ""
22627 " sfdisk-l device\n"
22628 "\n"
22629 msgstr ""
22630
22631 # type: textblock
22632 #: ../fish/guestfish-actions.pod:3727
22633 msgid "See also: L</part-list>"
22634 msgstr ""
22635
22636 # type: =head2
22637 #: ../fish/guestfish-actions.pod:3729
22638 msgid "sh"
22639 msgstr ""
22640
22641 # type: verbatim
22642 #: ../fish/guestfish-actions.pod:3731
22643 #, no-wrap
22644 msgid ""
22645 " sh command\n"
22646 "\n"
22647 msgstr ""
22648
22649 # type: textblock
22650 #: ../fish/guestfish-actions.pod:3736
22651 msgid "This is like L</command>, but passes the command to:"
22652 msgstr ""
22653
22654 # type: textblock
22655 #: ../fish/guestfish-actions.pod:3744
22656 msgid "All the provisos about L</command> apply to this call."
22657 msgstr ""
22658
22659 # type: =head2
22660 #: ../fish/guestfish-actions.pod:3746
22661 msgid "sh-lines"
22662 msgstr ""
22663
22664 # type: verbatim
22665 #: ../fish/guestfish-actions.pod:3748
22666 #, no-wrap
22667 msgid ""
22668 " sh-lines command\n"
22669 "\n"
22670 msgstr ""
22671
22672 # type: textblock
22673 #: ../fish/guestfish-actions.pod:3750
22674 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22675 msgstr ""
22676
22677 # type: textblock
22678 #: ../fish/guestfish-actions.pod:3753
22679 msgid "See also: L</command-lines>"
22680 msgstr ""
22681
22682 # type: =head2
22683 #: ../fish/guestfish-actions.pod:3755
22684 msgid "sleep"
22685 msgstr ""
22686
22687 # type: verbatim
22688 #: ../fish/guestfish-actions.pod:3757
22689 #, no-wrap
22690 msgid ""
22691 " sleep secs\n"
22692 "\n"
22693 msgstr ""
22694
22695 # type: =head2
22696 #: ../fish/guestfish-actions.pod:3761
22697 msgid "stat"
22698 msgstr ""
22699
22700 # type: verbatim
22701 #: ../fish/guestfish-actions.pod:3763
22702 #, no-wrap
22703 msgid ""
22704 " stat path\n"
22705 "\n"
22706 msgstr ""
22707
22708 # type: =head2
22709 #: ../fish/guestfish-actions.pod:3769
22710 msgid "statvfs"
22711 msgstr ""
22712
22713 # type: verbatim
22714 #: ../fish/guestfish-actions.pod:3771
22715 #, no-wrap
22716 msgid ""
22717 " statvfs path\n"
22718 "\n"
22719 msgstr ""
22720
22721 # type: =head2
22722 #: ../fish/guestfish-actions.pod:3779
22723 msgid "strings"
22724 msgstr ""
22725
22726 # type: verbatim
22727 #: ../fish/guestfish-actions.pod:3781
22728 #, no-wrap
22729 msgid ""
22730 " strings path\n"
22731 "\n"
22732 msgstr ""
22733
22734 # type: =head2
22735 #: ../fish/guestfish-actions.pod:3789
22736 msgid "strings-e"
22737 msgstr ""
22738
22739 # type: verbatim
22740 #: ../fish/guestfish-actions.pod:3791
22741 #, no-wrap
22742 msgid ""
22743 " strings-e encoding path\n"
22744 "\n"
22745 msgstr ""
22746
22747 # type: textblock
22748 #: ../fish/guestfish-actions.pod:3793
22749 msgid ""
22750 "This is like the L</strings> command, but allows you to specify the encoding "
22751 "of strings that are looked for in the source file C<path>."
22752 msgstr ""
22753
22754 # type: textblock
22755 #: ../fish/guestfish-actions.pod:3803
22756 msgid ""
22757 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22758 "ISO-8859-X (this is what L</strings> uses)."
22759 msgstr ""
22760
22761 # type: =head2
22762 #: ../fish/guestfish-actions.pod:3835
22763 msgid "swapoff-device"
22764 msgstr ""
22765
22766 # type: verbatim
22767 #: ../fish/guestfish-actions.pod:3837
22768 #, no-wrap
22769 msgid ""
22770 " swapoff-device device\n"
22771 "\n"
22772 msgstr ""
22773
22774 # type: textblock
22775 #: ../fish/guestfish-actions.pod:3839
22776 msgid ""
22777 "This command disables the libguestfs appliance swap device or partition "
22778 "named C<device>.  See L</swapon-device>."
22779 msgstr ""
22780
22781 # type: =head2
22782 #: ../fish/guestfish-actions.pod:3843
22783 msgid "swapoff-file"
22784 msgstr ""
22785
22786 # type: verbatim
22787 #: ../fish/guestfish-actions.pod:3845
22788 #, no-wrap
22789 msgid ""
22790 " swapoff-file file\n"
22791 "\n"
22792 msgstr ""
22793
22794 # type: =head2
22795 #: ../fish/guestfish-actions.pod:3849
22796 msgid "swapoff-label"
22797 msgstr ""
22798
22799 # type: verbatim
22800 #: ../fish/guestfish-actions.pod:3851
22801 #, no-wrap
22802 msgid ""
22803 " swapoff-label label\n"
22804 "\n"
22805 msgstr ""
22806
22807 # type: =head2
22808 #: ../fish/guestfish-actions.pod:3856
22809 msgid "swapoff-uuid"
22810 msgstr ""
22811
22812 # type: verbatim
22813 #: ../fish/guestfish-actions.pod:3858
22814 #, no-wrap
22815 msgid ""
22816 " swapoff-uuid uuid\n"
22817 "\n"
22818 msgstr ""
22819
22820 # type: =head2
22821 #: ../fish/guestfish-actions.pod:3863
22822 msgid "swapon-device"
22823 msgstr ""
22824
22825 # type: verbatim
22826 #: ../fish/guestfish-actions.pod:3865
22827 #, no-wrap
22828 msgid ""
22829 " swapon-device device\n"
22830 "\n"
22831 msgstr ""
22832
22833 # type: textblock
22834 #: ../fish/guestfish-actions.pod:3867
22835 msgid ""
22836 "This command enables the libguestfs appliance to use the swap device or "
22837 "partition named C<device>.  The increased memory is made available for all "
22838 "commands, for example those run using L</command> or L</sh>."
22839 msgstr ""
22840
22841 # type: =head2
22842 #: ../fish/guestfish-actions.pod:3879
22843 msgid "swapon-file"
22844 msgstr ""
22845
22846 # type: verbatim
22847 #: ../fish/guestfish-actions.pod:3881
22848 #, no-wrap
22849 msgid ""
22850 " swapon-file file\n"
22851 "\n"
22852 msgstr ""
22853
22854 # type: textblock
22855 #: ../fish/guestfish-actions.pod:3883
22856 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
22857 msgstr ""
22858
22859 # type: =head2
22860 #: ../fish/guestfish-actions.pod:3886
22861 msgid "swapon-label"
22862 msgstr ""
22863
22864 # type: verbatim
22865 #: ../fish/guestfish-actions.pod:3888
22866 #, no-wrap
22867 msgid ""
22868 " swapon-label label\n"
22869 "\n"
22870 msgstr ""
22871
22872 # type: textblock
22873 #: ../fish/guestfish-actions.pod:3890
22874 msgid ""
22875 "This command enables swap to a labeled swap partition.  See "
22876 "L</swapon-device> for other notes."
22877 msgstr ""
22878
22879 # type: =head2
22880 #: ../fish/guestfish-actions.pod:3893
22881 msgid "swapon-uuid"
22882 msgstr ""
22883
22884 # type: verbatim
22885 #: ../fish/guestfish-actions.pod:3895
22886 #, no-wrap
22887 msgid ""
22888 " swapon-uuid uuid\n"
22889 "\n"
22890 msgstr ""
22891
22892 # type: textblock
22893 #: ../fish/guestfish-actions.pod:3897
22894 msgid ""
22895 "This command enables swap to a swap partition with the given UUID.  See "
22896 "L</swapon-device> for other notes."
22897 msgstr ""
22898
22899 # type: =head2
22900 #: ../fish/guestfish-actions.pod:3900
22901 msgid "sync"
22902 msgstr ""
22903
22904 # type: verbatim
22905 #: ../fish/guestfish-actions.pod:3902
22906 #, no-wrap
22907 msgid ""
22908 " sync\n"
22909 "\n"
22910 msgstr ""
22911
22912 # type: =head2
22913 #: ../fish/guestfish-actions.pod:3910
22914 msgid "tail"
22915 msgstr ""
22916
22917 # type: verbatim
22918 #: ../fish/guestfish-actions.pod:3912
22919 #, no-wrap
22920 msgid ""
22921 " tail path\n"
22922 "\n"
22923 msgstr ""
22924
22925 # type: =head2
22926 #: ../fish/guestfish-actions.pod:3920
22927 msgid "tail-n"
22928 msgstr ""
22929
22930 # type: verbatim
22931 #: ../fish/guestfish-actions.pod:3922
22932 #, no-wrap
22933 msgid ""
22934 " tail-n nrlines path\n"
22935 "\n"
22936 msgstr ""
22937
22938 # type: =head2
22939 #: ../fish/guestfish-actions.pod:3935
22940 msgid "tar-in"
22941 msgstr ""
22942
22943 # type: verbatim
22944 #: ../fish/guestfish-actions.pod:3937
22945 #, no-wrap
22946 msgid ""
22947 " tar-in (tarfile|-) directory\n"
22948 "\n"
22949 msgstr ""
22950
22951 # type: textblock
22952 #: ../fish/guestfish-actions.pod:3942
22953 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22954 msgstr ""
22955
22956 # type: =head2
22957 #: ../fish/guestfish-actions.pod:3947
22958 msgid "tar-out"
22959 msgstr ""
22960
22961 # type: verbatim
22962 #: ../fish/guestfish-actions.pod:3949
22963 #, no-wrap
22964 msgid ""
22965 " tar-out directory (tarfile|-)\n"
22966 "\n"
22967 msgstr ""
22968
22969 # type: textblock
22970 #: ../fish/guestfish-actions.pod:3954
22971 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22972 msgstr ""
22973
22974 # type: =head2
22975 #: ../fish/guestfish-actions.pod:3959
22976 msgid "tgz-in"
22977 msgstr ""
22978
22979 # type: verbatim
22980 #: ../fish/guestfish-actions.pod:3961
22981 #, no-wrap
22982 msgid ""
22983 " tgz-in (tarball|-) directory\n"
22984 "\n"
22985 msgstr ""
22986
22987 # type: textblock
22988 #: ../fish/guestfish-actions.pod:3966
22989 msgid "To upload an uncompressed tarball, use L</tar-in>."
22990 msgstr ""
22991
22992 # type: =head2
22993 #: ../fish/guestfish-actions.pod:3970
22994 msgid "tgz-out"
22995 msgstr ""
22996
22997 # type: verbatim
22998 #: ../fish/guestfish-actions.pod:3972
22999 #, no-wrap
23000 msgid ""
23001 " tgz-out directory (tarball|-)\n"
23002 "\n"
23003 msgstr ""
23004
23005 # type: textblock
23006 #: ../fish/guestfish-actions.pod:3977
23007 msgid "To download an uncompressed tarball, use L</tar-out>."
23008 msgstr ""
23009
23010 # type: =head2
23011 #: ../fish/guestfish-actions.pod:3981
23012 msgid "touch"
23013 msgstr ""
23014
23015 # type: verbatim
23016 #: ../fish/guestfish-actions.pod:3983
23017 #, no-wrap
23018 msgid ""
23019 " touch path\n"
23020 "\n"
23021 msgstr ""
23022
23023 # type: =head2
23024 #: ../fish/guestfish-actions.pod:3992
23025 msgid "truncate"
23026 msgstr ""
23027
23028 # type: verbatim
23029 #: ../fish/guestfish-actions.pod:3994
23030 #, no-wrap
23031 msgid ""
23032 " truncate path\n"
23033 "\n"
23034 msgstr ""
23035
23036 # type: =head2
23037 #: ../fish/guestfish-actions.pod:3999
23038 msgid "truncate-size"
23039 msgstr ""
23040
23041 # type: verbatim
23042 #: ../fish/guestfish-actions.pod:4001
23043 #, no-wrap
23044 msgid ""
23045 " truncate-size path size\n"
23046 "\n"
23047 msgstr ""
23048
23049 # type: textblock
23050 #: ../fish/guestfish-actions.pod:4006
23051 msgid ""
23052 "If the current file size is less than C<size> then the file is extended to "
23053 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23054 "blocks are not allocated for the file until you write to it).  To create a "
23055 "non-sparse file of zeroes, use L</fallocate64> instead."
23056 msgstr ""
23057
23058 # type: =head2
23059 #: ../fish/guestfish-actions.pod:4012
23060 msgid "tune2fs-l"
23061 msgstr ""
23062
23063 # type: verbatim
23064 #: ../fish/guestfish-actions.pod:4014
23065 #, no-wrap
23066 msgid ""
23067 " tune2fs-l device\n"
23068 "\n"
23069 msgstr ""
23070
23071 # type: =head2
23072 #: ../fish/guestfish-actions.pod:4024
23073 msgid "txz-in"
23074 msgstr ""
23075
23076 # type: verbatim
23077 #: ../fish/guestfish-actions.pod:4026
23078 #, no-wrap
23079 msgid ""
23080 " txz-in (tarball|-) directory\n"
23081 "\n"
23082 msgstr ""
23083
23084 # type: =head2
23085 #: ../fish/guestfish-actions.pod:4033
23086 msgid "txz-out"
23087 msgstr ""
23088
23089 # type: verbatim
23090 #: ../fish/guestfish-actions.pod:4035
23091 #, no-wrap
23092 msgid ""
23093 " txz-out directory (tarball|-)\n"
23094 "\n"
23095 msgstr ""
23096
23097 # type: =head2
23098 #: ../fish/guestfish-actions.pod:4042
23099 msgid "umask"
23100 msgstr ""
23101
23102 # type: verbatim
23103 #: ../fish/guestfish-actions.pod:4044
23104 #, no-wrap
23105 msgid ""
23106 " umask mask\n"
23107 "\n"
23108 msgstr ""
23109
23110 # type: textblock
23111 #: ../fish/guestfish-actions.pod:4058
23112 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23113 msgstr ""
23114
23115 # type: =head2
23116 #: ../fish/guestfish-actions.pod:4063
23117 msgid "umount"
23118 msgstr ""
23119
23120 # type: =head2
23121 #: ../fish/guestfish-actions.pod:4065
23122 msgid "unmount"
23123 msgstr ""
23124
23125 # type: verbatim
23126 #: ../fish/guestfish-actions.pod:4067
23127 #, no-wrap
23128 msgid ""
23129 " umount pathordevice\n"
23130 "\n"
23131 msgstr ""
23132
23133 # type: =head2
23134 #: ../fish/guestfish-actions.pod:4073
23135 msgid "umount-all"
23136 msgstr ""
23137
23138 # type: =head2
23139 #: ../fish/guestfish-actions.pod:4075
23140 msgid "unmount-all"
23141 msgstr ""
23142
23143 # type: verbatim
23144 #: ../fish/guestfish-actions.pod:4077
23145 #, no-wrap
23146 msgid ""
23147 " umount-all\n"
23148 "\n"
23149 msgstr ""
23150
23151 # type: =head2
23152 #: ../fish/guestfish-actions.pod:4083
23153 msgid "upload"
23154 msgstr ""
23155
23156 # type: verbatim
23157 #: ../fish/guestfish-actions.pod:4085
23158 #, no-wrap
23159 msgid ""
23160 " upload (filename|-) remotefilename\n"
23161 "\n"
23162 msgstr ""
23163
23164 # type: textblock
23165 #: ../fish/guestfish-actions.pod:4092
23166 msgid "See also L</download>."
23167 msgstr ""
23168
23169 # type: =head2
23170 #: ../fish/guestfish-actions.pod:4096
23171 msgid "upload-offset"
23172 msgstr ""
23173
23174 # type: verbatim
23175 #: ../fish/guestfish-actions.pod:4098
23176 #, no-wrap
23177 msgid ""
23178 " upload-offset (filename|-) remotefilename offset\n"
23179 "\n"
23180 msgstr ""
23181
23182 # type: textblock
23183 #: ../fish/guestfish-actions.pod:4110
23184 msgid ""
23185 "Note that there is no limit on the amount of data that can be uploaded with "
23186 "this call, unlike with L</pwrite>, and this call always writes the full "
23187 "amount unless an error occurs."
23188 msgstr ""
23189
23190 # type: textblock
23191 #: ../fish/guestfish-actions.pod:4115
23192 msgid "See also L</upload>, L</pwrite>."
23193 msgstr ""
23194
23195 # type: =head2
23196 #: ../fish/guestfish-actions.pod:4119
23197 msgid "utimens"
23198 msgstr ""
23199
23200 # type: verbatim
23201 #: ../fish/guestfish-actions.pod:4121
23202 #, no-wrap
23203 msgid ""
23204 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23205 "\n"
23206 msgstr ""
23207
23208 # type: =head2
23209 #: ../fish/guestfish-actions.pod:4140
23210 msgid "version"
23211 msgstr ""
23212
23213 # type: verbatim
23214 #: ../fish/guestfish-actions.pod:4142
23215 #, no-wrap
23216 msgid ""
23217 " version\n"
23218 "\n"
23219 msgstr ""
23220
23221 # type: textblock
23222 #: ../fish/guestfish-actions.pod:4169
23223 msgid ""
23224 "I<Note:> Don't use this call to test for availability of features.  In "
23225 "enterprise distributions we backport features from later versions into "
23226 "earlier versions, making this an unreliable way to test for features.  Use "
23227 "L</available> instead."
23228 msgstr ""
23229
23230 # type: =head2
23231 #: ../fish/guestfish-actions.pod:4175
23232 msgid "vfs-label"
23233 msgstr ""
23234
23235 # type: verbatim
23236 #: ../fish/guestfish-actions.pod:4177
23237 #, no-wrap
23238 msgid ""
23239 " vfs-label device\n"
23240 "\n"
23241 msgstr ""
23242
23243 # type: textblock
23244 #: ../fish/guestfish-actions.pod:4184
23245 msgid "To find a filesystem from the label, use L</findfs-label>."
23246 msgstr ""
23247
23248 # type: =head2
23249 #: ../fish/guestfish-actions.pod:4186
23250 msgid "vfs-type"
23251 msgstr ""
23252
23253 # type: verbatim
23254 #: ../fish/guestfish-actions.pod:4188
23255 #, no-wrap
23256 msgid ""
23257 " vfs-type device\n"
23258 "\n"
23259 msgstr ""
23260
23261 # type: =head2
23262 #: ../fish/guestfish-actions.pod:4198
23263 msgid "vfs-uuid"
23264 msgstr ""
23265
23266 # type: verbatim
23267 #: ../fish/guestfish-actions.pod:4200
23268 #, no-wrap
23269 msgid ""
23270 " vfs-uuid device\n"
23271 "\n"
23272 msgstr ""
23273
23274 # type: textblock
23275 #: ../fish/guestfish-actions.pod:4207
23276 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
23277 msgstr ""
23278
23279 # type: =head2
23280 #: ../fish/guestfish-actions.pod:4209
23281 msgid "vg-activate"
23282 msgstr ""
23283
23284 # type: verbatim
23285 #: ../fish/guestfish-actions.pod:4211
23286 #, no-wrap
23287 msgid ""
23288 " vg-activate true|false 'volgroups ...'\n"
23289 "\n"
23290 msgstr ""
23291
23292 # type: =head2
23293 #: ../fish/guestfish-actions.pod:4224
23294 msgid "vg-activate-all"
23295 msgstr ""
23296
23297 # type: verbatim
23298 #: ../fish/guestfish-actions.pod:4226
23299 #, no-wrap
23300 msgid ""
23301 " vg-activate-all true|false\n"
23302 "\n"
23303 msgstr ""
23304
23305 # type: =head2
23306 #: ../fish/guestfish-actions.pod:4236
23307 msgid "vgcreate"
23308 msgstr ""
23309
23310 # type: verbatim
23311 #: ../fish/guestfish-actions.pod:4238
23312 #, no-wrap
23313 msgid ""
23314 " vgcreate volgroup 'physvols ...'\n"
23315 "\n"
23316 msgstr ""
23317
23318 # type: =head2
23319 #: ../fish/guestfish-actions.pod:4243
23320 msgid "vglvuuids"
23321 msgstr ""
23322
23323 # type: verbatim
23324 #: ../fish/guestfish-actions.pod:4245
23325 #, no-wrap
23326 msgid ""
23327 " vglvuuids vgname\n"
23328 "\n"
23329 msgstr ""
23330
23331 # type: textblock
23332 #: ../fish/guestfish-actions.pod:4250
23333 msgid ""
23334 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
23335 "logical volumes and volume groups."
23336 msgstr ""
23337
23338 # type: textblock
23339 #: ../fish/guestfish-actions.pod:4253
23340 msgid "See also L</vgpvuuids>."
23341 msgstr ""
23342
23343 # type: =head2
23344 #: ../fish/guestfish-actions.pod:4255
23345 msgid "vgpvuuids"
23346 msgstr ""
23347
23348 # type: verbatim
23349 #: ../fish/guestfish-actions.pod:4257
23350 #, no-wrap
23351 msgid ""
23352 " vgpvuuids vgname\n"
23353 "\n"
23354 msgstr ""
23355
23356 # type: textblock
23357 #: ../fish/guestfish-actions.pod:4262
23358 msgid ""
23359 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
23360 "physical volumes and volume groups."
23361 msgstr ""
23362
23363 # type: textblock
23364 #: ../fish/guestfish-actions.pod:4265
23365 msgid "See also L</vglvuuids>."
23366 msgstr ""
23367
23368 # type: =head2
23369 #: ../fish/guestfish-actions.pod:4267
23370 msgid "vgremove"
23371 msgstr ""
23372
23373 # type: verbatim
23374 #: ../fish/guestfish-actions.pod:4269
23375 #, no-wrap
23376 msgid ""
23377 " vgremove vgname\n"
23378 "\n"
23379 msgstr ""
23380
23381 # type: =head2
23382 #: ../fish/guestfish-actions.pod:4276
23383 msgid "vgrename"
23384 msgstr ""
23385
23386 # type: verbatim
23387 #: ../fish/guestfish-actions.pod:4278
23388 #, no-wrap
23389 msgid ""
23390 " vgrename volgroup newvolgroup\n"
23391 "\n"
23392 msgstr ""
23393
23394 # type: =head2
23395 #: ../fish/guestfish-actions.pod:4282
23396 msgid "vgs"
23397 msgstr ""
23398
23399 # type: verbatim
23400 #: ../fish/guestfish-actions.pod:4284
23401 #, no-wrap
23402 msgid ""
23403 " vgs\n"
23404 "\n"
23405 msgstr ""
23406
23407 # type: textblock
23408 #: ../fish/guestfish-actions.pod:4292
23409 msgid "See also L</vgs-full>."
23410 msgstr ""
23411
23412 # type: =head2
23413 #: ../fish/guestfish-actions.pod:4294
23414 msgid "vgs-full"
23415 msgstr ""
23416
23417 # type: verbatim
23418 #: ../fish/guestfish-actions.pod:4296
23419 #, no-wrap
23420 msgid ""
23421 " vgs-full\n"
23422 "\n"
23423 msgstr ""
23424
23425 # type: =head2
23426 #: ../fish/guestfish-actions.pod:4301
23427 msgid "vgscan"
23428 msgstr ""
23429
23430 # type: verbatim
23431 #: ../fish/guestfish-actions.pod:4303
23432 #, no-wrap
23433 msgid ""
23434 " vgscan\n"
23435 "\n"
23436 msgstr ""
23437
23438 # type: =head2
23439 #: ../fish/guestfish-actions.pod:4308
23440 msgid "vguuid"
23441 msgstr ""
23442
23443 # type: verbatim
23444 #: ../fish/guestfish-actions.pod:4310
23445 #, no-wrap
23446 msgid ""
23447 " vguuid vgname\n"
23448 "\n"
23449 msgstr ""
23450
23451 # type: =head2
23452 #: ../fish/guestfish-actions.pod:4314
23453 msgid "wc-c"
23454 msgstr ""
23455
23456 # type: verbatim
23457 #: ../fish/guestfish-actions.pod:4316
23458 #, no-wrap
23459 msgid ""
23460 " wc-c path\n"
23461 "\n"
23462 msgstr ""
23463
23464 # type: =head2
23465 #: ../fish/guestfish-actions.pod:4321
23466 msgid "wc-l"
23467 msgstr ""
23468
23469 # type: verbatim
23470 #: ../fish/guestfish-actions.pod:4323
23471 #, no-wrap
23472 msgid ""
23473 " wc-l path\n"
23474 "\n"
23475 msgstr ""
23476
23477 # type: =head2
23478 #: ../fish/guestfish-actions.pod:4328
23479 msgid "wc-w"
23480 msgstr ""
23481
23482 # type: verbatim
23483 #: ../fish/guestfish-actions.pod:4330
23484 #, no-wrap
23485 msgid ""
23486 " wc-w path\n"
23487 "\n"
23488 msgstr ""
23489
23490 # type: =head2
23491 #: ../fish/guestfish-actions.pod:4335
23492 msgid "write"
23493 msgstr ""
23494
23495 # type: verbatim
23496 #: ../fish/guestfish-actions.pod:4337
23497 #, no-wrap
23498 msgid ""
23499 " write path content\n"
23500 "\n"
23501 msgstr ""
23502
23503 # type: =head2
23504 #: ../fish/guestfish-actions.pod:4345
23505 msgid "write-file"
23506 msgstr ""
23507
23508 # type: verbatim
23509 #: ../fish/guestfish-actions.pod:4347
23510 #, no-wrap
23511 msgid ""
23512 " write-file path content size\n"
23513 "\n"
23514 msgstr ""
23515
23516 # type: =head2
23517 #: ../fish/guestfish-actions.pod:4370
23518 msgid "zegrep"
23519 msgstr ""
23520
23521 # type: verbatim
23522 #: ../fish/guestfish-actions.pod:4372
23523 #, no-wrap
23524 msgid ""
23525 " zegrep regex path\n"
23526 "\n"
23527 msgstr ""
23528
23529 # type: =head2
23530 #: ../fish/guestfish-actions.pod:4380
23531 msgid "zegrepi"
23532 msgstr ""
23533
23534 # type: verbatim
23535 #: ../fish/guestfish-actions.pod:4382
23536 #, no-wrap
23537 msgid ""
23538 " zegrepi regex path\n"
23539 "\n"
23540 msgstr ""
23541
23542 # type: =head2
23543 #: ../fish/guestfish-actions.pod:4390
23544 msgid "zero"
23545 msgstr ""
23546
23547 # type: verbatim
23548 #: ../fish/guestfish-actions.pod:4392
23549 #, no-wrap
23550 msgid ""
23551 " zero device\n"
23552 "\n"
23553 msgstr ""
23554
23555 # type: textblock
23556 #: ../fish/guestfish-actions.pod:4400
23557 msgid "See also: L</zero-device>, L</scrub-device>."
23558 msgstr ""
23559
23560 # type: =head2
23561 #: ../fish/guestfish-actions.pod:4402
23562 msgid "zero-device"
23563 msgstr ""
23564
23565 # type: verbatim
23566 #: ../fish/guestfish-actions.pod:4404
23567 #, no-wrap
23568 msgid ""
23569 " zero-device device\n"
23570 "\n"
23571 msgstr ""
23572
23573 # type: textblock
23574 #: ../fish/guestfish-actions.pod:4406
23575 msgid ""
23576 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23577 "which just zeroes the first few blocks of a device."
23578 msgstr ""
23579
23580 # type: =head2
23581 #: ../fish/guestfish-actions.pod:4413
23582 msgid "zerofree"
23583 msgstr ""
23584
23585 # type: verbatim
23586 #: ../fish/guestfish-actions.pod:4415
23587 #, no-wrap
23588 msgid ""
23589 " zerofree device\n"
23590 "\n"
23591 msgstr ""
23592
23593 # type: =head2
23594 #: ../fish/guestfish-actions.pod:4428
23595 msgid "zfgrep"
23596 msgstr ""
23597
23598 # type: verbatim
23599 #: ../fish/guestfish-actions.pod:4430
23600 #, no-wrap
23601 msgid ""
23602 " zfgrep pattern path\n"
23603 "\n"
23604 msgstr ""
23605
23606 # type: =head2
23607 #: ../fish/guestfish-actions.pod:4438
23608 msgid "zfgrepi"
23609 msgstr ""
23610
23611 # type: verbatim
23612 #: ../fish/guestfish-actions.pod:4440
23613 #, no-wrap
23614 msgid ""
23615 " zfgrepi pattern path\n"
23616 "\n"
23617 msgstr ""
23618
23619 # type: =head2
23620 #: ../fish/guestfish-actions.pod:4448
23621 msgid "zfile"
23622 msgstr ""
23623
23624 # type: verbatim
23625 #: ../fish/guestfish-actions.pod:4450
23626 #, no-wrap
23627 msgid ""
23628 " zfile meth path\n"
23629 "\n"
23630 msgstr ""
23631
23632 # type: textblock
23633 #: ../fish/guestfish-actions.pod:4457
23634 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
23635 msgstr ""
23636
23637 # type: =head2
23638 #: ../fish/guestfish-actions.pod:4467
23639 msgid "zgrep"
23640 msgstr ""
23641
23642 # type: verbatim
23643 #: ../fish/guestfish-actions.pod:4469
23644 #, no-wrap
23645 msgid ""
23646 " zgrep regex path\n"
23647 "\n"
23648 msgstr ""
23649
23650 # type: =head2
23651 #: ../fish/guestfish-actions.pod:4477
23652 msgid "zgrepi"
23653 msgstr ""
23654
23655 # type: verbatim
23656 #: ../fish/guestfish-actions.pod:4479
23657 #, no-wrap
23658 msgid ""
23659 " zgrepi regex path\n"
23660 "\n"
23661 msgstr ""
23662
23663 # type: =head2
23664 #: ../fish/guestfish-commands.pod:1
23665 msgid "alloc"
23666 msgstr ""
23667
23668 # type: =head2
23669 #: ../fish/guestfish-commands.pod:3
23670 msgid "allocate"
23671 msgstr ""
23672
23673 # type: verbatim
23674 #: ../fish/guestfish-commands.pod:5
23675 #, no-wrap
23676 msgid ""
23677 " alloc filename size\n"
23678 "\n"
23679 msgstr ""
23680
23681 # type: textblock
23682 #: ../fish/guestfish-commands.pod:7
23683 msgid ""
23684 "This creates an empty (zeroed) file of the given size, and then adds so it "
23685 "can be further examined."
23686 msgstr ""
23687
23688 # type: textblock
23689 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23690 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23691 msgstr ""
23692
23693 # type: textblock
23694 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23695 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23696 msgstr ""
23697
23698 # type: textblock
23699 #: ../fish/guestfish-commands.pod:14
23700 msgid ""
23701 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23702 "image, see L</PREPARED DISK IMAGES>."
23703 msgstr ""
23704
23705 # type: =head2
23706 #: ../fish/guestfish-commands.pod:17
23707 msgid "copy-in"
23708 msgstr ""
23709
23710 # type: verbatim
23711 #: ../fish/guestfish-commands.pod:19
23712 #, no-wrap
23713 msgid ""
23714 " copy-in local [local ...] /remotedir\n"
23715 "\n"
23716 msgstr ""
23717
23718 # type: textblock
23719 #: ../fish/guestfish-commands.pod:21
23720 msgid ""
23721 "C<copy-in> copies local files or directories recursively into the disk "
23722 "image, placing them in the directory called C</remotedir> (which must "
23723 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23724 "other commands as necessary."
23725 msgstr ""
23726
23727 # type: textblock
23728 #: ../fish/guestfish-commands.pod:26
23729 msgid ""
23730 "Multiple local files and directories can be specified, but the last "
23731 "parameter must always be a remote directory.  Wildcards cannot be used."
23732 msgstr ""
23733
23734 # type: =head2
23735 #: ../fish/guestfish-commands.pod:30
23736 msgid "copy-out"
23737 msgstr ""
23738
23739 # type: verbatim
23740 #: ../fish/guestfish-commands.pod:32
23741 #, no-wrap
23742 msgid ""
23743 " copy-out remote [remote ...] localdir\n"
23744 "\n"
23745 msgstr ""
23746
23747 # type: textblock
23748 #: ../fish/guestfish-commands.pod:34
23749 msgid ""
23750 "C<copy-out> copies remote files or directories recursively out of the disk "
23751 "image, placing them on the host disk in a local directory called C<localdir> "
23752 "(which must exist).  This guestfish meta-command turns into a sequence of "
23753 "L</download>, L</tar-out> and other commands as necessary."
23754 msgstr ""
23755
23756 # type: textblock
23757 #: ../fish/guestfish-commands.pod:40
23758 msgid ""
23759 "Multiple remote files and directories can be specified, but the last "
23760 "parameter must always be a local directory.  To download to the current "
23761 "directory, use C<.> as in:"
23762 msgstr ""
23763
23764 # type: verbatim
23765 #: ../fish/guestfish-commands.pod:44
23766 #, no-wrap
23767 msgid ""
23768 " copy-out /home .\n"
23769 "\n"
23770 msgstr ""
23771
23772 # type: textblock
23773 #: ../fish/guestfish-commands.pod:46
23774 msgid ""
23775 "Wildcards cannot be used in the ordinary command, but you can use them with "
23776 "the help of L</glob> like this:"
23777 msgstr ""
23778
23779 # type: verbatim
23780 #: ../fish/guestfish-commands.pod:49
23781 #, no-wrap
23782 msgid ""
23783 " glob copy-out /home/* .\n"
23784 "\n"
23785 msgstr ""
23786
23787 # type: =head2
23788 #: ../fish/guestfish-commands.pod:51
23789 msgid "echo"
23790 msgstr ""
23791
23792 # type: verbatim
23793 #: ../fish/guestfish-commands.pod:53
23794 #, no-wrap
23795 msgid ""
23796 " echo [params ...]\n"
23797 "\n"
23798 msgstr ""
23799
23800 # type: textblock
23801 #: ../fish/guestfish-commands.pod:55
23802 msgid "This echos the parameters to the terminal."
23803 msgstr ""
23804
23805 # type: =head2
23806 #: ../fish/guestfish-commands.pod:57
23807 msgid "edit"
23808 msgstr ""
23809
23810 # type: =head2
23811 #: ../fish/guestfish-commands.pod:59
23812 msgid "vi"
23813 msgstr ""
23814
23815 # type: =head2
23816 #: ../fish/guestfish-commands.pod:61
23817 msgid "emacs"
23818 msgstr ""
23819
23820 # type: verbatim
23821 #: ../fish/guestfish-commands.pod:63
23822 #, no-wrap
23823 msgid ""
23824 " edit filename\n"
23825 "\n"
23826 msgstr ""
23827
23828 # type: textblock
23829 #: ../fish/guestfish-commands.pod:65
23830 msgid ""
23831 "This is used to edit a file.  It downloads the file, edits it locally using "
23832 "your editor, then uploads the result."
23833 msgstr ""
23834
23835 # type: textblock
23836 #: ../fish/guestfish-commands.pod:68
23837 msgid ""
23838 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23839 "or C<emacs> you will get those corresponding editors."
23840 msgstr ""
23841
23842 # type: =head2
23843 #: ../fish/guestfish-commands.pod:72
23844 msgid "glob"
23845 msgstr ""
23846
23847 # type: verbatim
23848 #: ../fish/guestfish-commands.pod:74
23849 #, no-wrap
23850 msgid ""
23851 " glob command args...\n"
23852 "\n"
23853 msgstr ""
23854
23855 # type: textblock
23856 #: ../fish/guestfish-commands.pod:76
23857 msgid ""
23858 "Expand wildcards in any paths in the args list, and run C<command> "
23859 "repeatedly on each matching path."
23860 msgstr ""
23861
23862 # type: textblock
23863 #: ../fish/guestfish-commands.pod:79
23864 msgid "See L</WILDCARDS AND GLOBBING>."
23865 msgstr ""
23866
23867 # type: =head2
23868 #: ../fish/guestfish-commands.pod:81
23869 msgid "hexedit"
23870 msgstr ""
23871
23872 # type: verbatim
23873 #: ../fish/guestfish-commands.pod:83
23874 #, no-wrap
23875 msgid ""
23876 " hexedit <filename|device>\n"
23877 " hexedit <filename|device> <max>\n"
23878 " hexedit <filename|device> <start> <max>\n"
23879 "\n"
23880 msgstr ""
23881
23882 # type: textblock
23883 #: ../fish/guestfish-commands.pod:87
23884 msgid ""
23885 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23886 "device."
23887 msgstr ""
23888
23889 # type: textblock
23890 #: ../fish/guestfish-commands.pod:90
23891 msgid ""
23892 "This command works by downloading potentially the whole file or device, "
23893 "editing it locally, then uploading it.  If the file or device is large, you "
23894 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23895 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23896 "usual modifiers allowed such as C<1M> (1 megabyte)."
23897 msgstr ""
23898
23899 # type: textblock
23900 #: ../fish/guestfish-commands.pod:97
23901 msgid "For example to edit the first few sectors of a disk you might do:"
23902 msgstr ""
23903
23904 # type: verbatim
23905 #: ../fish/guestfish-commands.pod:100
23906 #, no-wrap
23907 msgid ""
23908 " hexedit /dev/sda 1M\n"
23909 "\n"
23910 msgstr ""
23911
23912 # type: textblock
23913 #: ../fish/guestfish-commands.pod:102
23914 msgid ""
23915 "which would allow you to edit anywhere within the first megabyte of the "
23916 "disk."
23917 msgstr ""
23918
23919 # type: textblock
23920 #: ../fish/guestfish-commands.pod:105
23921 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23922 msgstr ""
23923
23924 # type: verbatim
23925 #: ../fish/guestfish-commands.pod:107
23926 #, no-wrap
23927 msgid ""
23928 " hexedit /dev/sda1 0x400 0x400\n"
23929 "\n"
23930 msgstr ""
23931
23932 # type: textblock
23933 #: ../fish/guestfish-commands.pod:109
23934 msgid "(assuming the superblock is in the standard location)."
23935 msgstr ""
23936
23937 # type: textblock
23938 #: ../fish/guestfish-commands.pod:111
23939 msgid ""
23940 "This command requires the external L<hexedit(1)> program.  You can specify "
23941 "another program to use by setting the C<HEXEDITOR> environment variable."
23942 msgstr ""
23943
23944 # type: textblock
23945 #: ../fish/guestfish-commands.pod:115
23946 msgid "See also L</hexdump>."
23947 msgstr ""
23948
23949 # type: =head2
23950 #: ../fish/guestfish-commands.pod:117
23951 msgid "lcd"
23952 msgstr ""
23953
23954 # type: verbatim
23955 #: ../fish/guestfish-commands.pod:119
23956 #, no-wrap
23957 msgid ""
23958 " lcd directory\n"
23959 "\n"
23960 msgstr ""
23961
23962 # type: textblock
23963 #: ../fish/guestfish-commands.pod:121
23964 msgid "Change the local directory, ie. the current directory of guestfish itself."
23965 msgstr ""
23966
23967 # type: textblock
23968 #: ../fish/guestfish-commands.pod:124
23969 msgid "Note that C<!cd> won't do what you might expect."
23970 msgstr ""
23971
23972 # type: =head2
23973 #: ../fish/guestfish-commands.pod:126
23974 msgid "man"
23975 msgstr ""
23976
23977 # type: =head2
23978 #: ../fish/guestfish-commands.pod:128
23979 msgid "manual"
23980 msgstr ""
23981
23982 # type: verbatim
23983 #: ../fish/guestfish-commands.pod:130
23984 #, no-wrap
23985 msgid ""
23986 "  man\n"
23987 "\n"
23988 msgstr ""
23989
23990 # type: textblock
23991 #: ../fish/guestfish-commands.pod:132
23992 msgid "Opens the manual page for guestfish."
23993 msgstr ""
23994
23995 # type: =head2
23996 #: ../fish/guestfish-commands.pod:134
23997 msgid "more"
23998 msgstr ""
23999
24000 # type: =head2
24001 #: ../fish/guestfish-commands.pod:136
24002 msgid "less"
24003 msgstr ""
24004
24005 # type: verbatim
24006 #: ../fish/guestfish-commands.pod:138
24007 #, no-wrap
24008 msgid ""
24009 " more filename\n"
24010 "\n"
24011 msgstr ""
24012
24013 # type: verbatim
24014 #: ../fish/guestfish-commands.pod:140
24015 #, no-wrap
24016 msgid ""
24017 " less filename\n"
24018 "\n"
24019 msgstr ""
24020
24021 # type: textblock
24022 #: ../fish/guestfish-commands.pod:142
24023 msgid "This is used to view a file."
24024 msgstr ""
24025
24026 # type: textblock
24027 #: ../fish/guestfish-commands.pod:144
24028 msgid ""
24029 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24030 "C<less> you will get the C<less> command specifically."
24031 msgstr ""
24032
24033 # type: =head2
24034 #: ../fish/guestfish-commands.pod:147
24035 msgid "reopen"
24036 msgstr ""
24037
24038 # type: verbatim
24039 #: ../fish/guestfish-commands.pod:149
24040 #, no-wrap
24041 msgid ""
24042 "  reopen\n"
24043 "\n"
24044 msgstr ""
24045
24046 # type: textblock
24047 #: ../fish/guestfish-commands.pod:151
24048 msgid ""
24049 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24050 "normally, because the handle is closed properly when guestfish exits.  "
24051 "However this is occasionally useful for testing."
24052 msgstr ""
24053
24054 # type: =head2
24055 #: ../fish/guestfish-commands.pod:155
24056 msgid "sparse"
24057 msgstr ""
24058
24059 # type: verbatim
24060 #: ../fish/guestfish-commands.pod:157
24061 #, no-wrap
24062 msgid ""
24063 " sparse filename size\n"
24064 "\n"
24065 msgstr ""
24066
24067 # type: textblock
24068 #: ../fish/guestfish-commands.pod:159
24069 msgid ""
24070 "This creates an empty sparse file of the given size, and then adds so it can "
24071 "be further examined."
24072 msgstr ""
24073
24074 # type: textblock
24075 #: ../fish/guestfish-commands.pod:162
24076 msgid ""
24077 "In all respects it works the same as the L</alloc> command, except that the "
24078 "image file is allocated sparsely, which means that disk blocks are not "
24079 "assigned to the file until they are needed.  Sparse disk files only use "
24080 "space when written to, but they are slower and there is a danger you could "
24081 "run out of real disk space during a write operation."
24082 msgstr ""
24083
24084 # type: =head2
24085 #: ../fish/guestfish-commands.pod:172
24086 msgid "supported"
24087 msgstr ""
24088
24089 # type: verbatim
24090 #: ../fish/guestfish-commands.pod:174
24091 #, no-wrap
24092 msgid ""
24093 " supported\n"
24094 "\n"
24095 msgstr ""
24096
24097 # type: textblock
24098 #: ../fish/guestfish-commands.pod:176
24099 msgid ""
24100 "This command returns a list of the optional groups known to the daemon, and "
24101 "indicates which ones are supported by this build of the libguestfs "
24102 "appliance."
24103 msgstr ""
24104
24105 # type: textblock
24106 #: ../fish/guestfish-commands.pod:180
24107 msgid "See also L<guestfs(3)/AVAILABILITY>."
24108 msgstr ""
24109
24110 # type: =head2
24111 #: ../fish/guestfish-commands.pod:182
24112 msgid "time"
24113 msgstr ""
24114
24115 # type: verbatim
24116 #: ../fish/guestfish-commands.pod:184
24117 #, no-wrap
24118 msgid ""
24119 " time command args...\n"
24120 "\n"
24121 msgstr ""
24122
24123 # type: textblock
24124 #: ../fish/guestfish-commands.pod:186
24125 msgid ""
24126 "Run the command as usual, but print the elapsed time afterwards.  This can "
24127 "be useful for benchmarking operations."
24128 msgstr ""
24129
24130 # type: textblock
24131 #: ../test-tool/libguestfs-test-tool.pod:5
24132 msgid "libguestfs-test-tool - End user tests for libguestfs"
24133 msgstr ""
24134
24135 # type: verbatim
24136 #: ../test-tool/libguestfs-test-tool.pod:9
24137 #, no-wrap
24138 msgid ""
24139 " libguestfs-test-tool [--options]\n"
24140 "\n"
24141 msgstr ""
24142
24143 # type: textblock
24144 #: ../test-tool/libguestfs-test-tool.pod:13
24145 msgid ""
24146 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24147 "and developers, to allow them to check basic libguestfs functionality is "
24148 "working.  This is needed because libguestfs occasionally breaks for reasons "
24149 "beyond our control: usually because of changes in the underlying qemu or "
24150 "kernel packages, or the host environment."
24151 msgstr ""
24152
24153 # type: textblock
24154 #: ../test-tool/libguestfs-test-tool.pod:20
24155 msgid "If you suspect a problem in libguestfs, then just run:"
24156 msgstr ""
24157
24158 # type: verbatim
24159 #: ../test-tool/libguestfs-test-tool.pod:22
24160 #, no-wrap
24161 msgid ""
24162 " libguestfs-test-tool\n"
24163 "\n"
24164 msgstr ""
24165
24166 # type: textblock
24167 #: ../test-tool/libguestfs-test-tool.pod:24
24168 msgid "It will print lots of diagnostic messages."
24169 msgstr ""
24170
24171 # type: textblock
24172 #: ../test-tool/libguestfs-test-tool.pod:26
24173 msgid "If it runs to completion successfully, you will see this near the end:"
24174 msgstr ""
24175
24176 # type: verbatim
24177 #: ../test-tool/libguestfs-test-tool.pod:28
24178 #, no-wrap
24179 msgid ""
24180 " ===== TEST FINISHED OK =====\n"
24181 "\n"
24182 msgstr ""
24183
24184 # type: textblock
24185 #: ../test-tool/libguestfs-test-tool.pod:30
24186 msgid "and the test tool will exit with code 0."
24187 msgstr ""
24188
24189 # type: textblock
24190 #: ../test-tool/libguestfs-test-tool.pod:32
24191 msgid ""
24192 "If it fails (and/or exits with non-zero error code), please paste the "
24193 "B<complete, unedited> output of the test tool into a bug report.  More "
24194 "information about reporting bugs can be found on the "
24195 "L<http://libguestfs.org/> website."
24196 msgstr ""
24197
24198 # type: =item
24199 #: ../test-tool/libguestfs-test-tool.pod:41
24200 msgid "I<--help>"
24201 msgstr ""
24202
24203 # type: textblock
24204 #: ../test-tool/libguestfs-test-tool.pod:43
24205 msgid "Display short usage information and exit."
24206 msgstr ""
24207
24208 # type: =item
24209 #: ../test-tool/libguestfs-test-tool.pod:45
24210 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24211 msgstr ""
24212
24213 # type: textblock
24214 #: ../test-tool/libguestfs-test-tool.pod:47
24215 msgid ""
24216 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24217 "normally look in the C<$libexec> directory that was configured when the tool "
24218 "was built."
24219 msgstr ""
24220
24221 # type: =item
24222 #: ../test-tool/libguestfs-test-tool.pod:51
24223 msgid "I<--qemu qemu_binary>"
24224 msgstr ""
24225
24226 # type: textblock
24227 #: ../test-tool/libguestfs-test-tool.pod:53
24228 msgid ""
24229 "If you have downloaded another qemu binary, point this option at the full "
24230 "path of the binary to try it."
24231 msgstr ""
24232
24233 # type: =item
24234 #: ../test-tool/libguestfs-test-tool.pod:56
24235 msgid "I<--qemudir qemu_source_dir>"
24236 msgstr ""
24237
24238 # type: textblock
24239 #: ../test-tool/libguestfs-test-tool.pod:58
24240 msgid ""
24241 "If you have compiled qemu from source, point this option at the source "
24242 "directory to try it."
24243 msgstr ""
24244
24245 # type: =item
24246 #: ../test-tool/libguestfs-test-tool.pod:61
24247 msgid "I<--timeout N>"
24248 msgstr ""
24249
24250 # type: textblock
24251 #: ../test-tool/libguestfs-test-tool.pod:63
24252 msgid ""
24253 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24254 "does not usually need to be adjusted unless your machine is very slow."
24255 msgstr ""
24256
24257 # type: =head1
24258 #: ../test-tool/libguestfs-test-tool.pod:69
24259 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24260 msgstr ""
24261
24262 # type: textblock
24263 #: ../test-tool/libguestfs-test-tool.pod:71
24264 msgid ""
24265 "If you have compiled another version of qemu from source and would like to "
24266 "try that, then you can use the I<--qemudir> option to point to the qemu "
24267 "source directory."
24268 msgstr ""
24269
24270 # type: textblock
24271 #: ../test-tool/libguestfs-test-tool.pod:75
24272 msgid ""
24273 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24274 "option to point to the binary."
24275 msgstr ""
24276
24277 # type: textblock
24278 #: ../test-tool/libguestfs-test-tool.pod:78
24279 msgid ""
24280 "When using an alternate qemu with libguestfs, usually you would need to "
24281 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
24282 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
24283 "when you use either of the I<--qemudir> or I<--qemu> options."
24284 msgstr ""
24285
24286 # type: textblock
24287 #: ../test-tool/libguestfs-test-tool.pod:85
24288 msgid ""
24289 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
24290 "I<1> if there was an error."
24291 msgstr ""
24292
24293 # type: =item
24294 #: ../test-tool/libguestfs-test-tool.pod:92
24295 msgid "/usr/libexec/libguestfs-test-tool-helper"
24296 msgstr ""
24297
24298 # type: textblock
24299 #: ../test-tool/libguestfs-test-tool.pod:94
24300 msgid ""
24301 "This helper program is run inside the appliance and provides additional "
24302 "tests."
24303 msgstr ""
24304
24305 # type: =item
24306 #: ../test-tool/libguestfs-test-tool.pod:97
24307 msgid "/usr/bin/mkisofs"
24308 msgstr ""
24309
24310 # type: textblock
24311 #: ../test-tool/libguestfs-test-tool.pod:99
24312 msgid ""
24313 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
24314 "which is used as part of the tests."
24315 msgstr ""
24316
24317 # type: textblock
24318 #: ../test-tool/libguestfs-test-tool.pod:106
24319 msgid ""
24320 "For the full list of environment variables which may affect libguestfs, "
24321 "please see the L<guestfs(3)> manual page."
24322 msgstr ""
24323
24324 # type: textblock
24325 #: ../test-tool/libguestfs-test-tool.pod:111
24326 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
24327 msgstr ""
24328
24329 # type: textblock
24330 #: ../test-tool/libguestfs-test-tool.pod:121
24331 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
24332 msgstr ""
24333
24334 # type: textblock
24335 #: ../fuse/guestmount.pod:5
24336 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
24337 msgstr ""
24338
24339 # type: verbatim
24340 #: ../fuse/guestmount.pod:9
24341 #, no-wrap
24342 msgid ""
24343 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
24344 "\n"
24345 msgstr ""
24346
24347 # type: verbatim
24348 #: ../fuse/guestmount.pod:11
24349 #, no-wrap
24350 msgid ""
24351 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
24352 "\n"
24353 msgstr ""
24354
24355 # type: verbatim
24356 #: ../fuse/guestmount.pod:13
24357 #, no-wrap
24358 msgid ""
24359 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
24360 "\n"
24361 msgstr ""
24362
24363 # type: textblock
24364 #: ../fuse/guestmount.pod:17
24365 msgid ""
24366 "You must I<not> use C<guestmount> in read-write mode on live virtual "
24367 "machines.  If you do this, you risk disk corruption in the VM."
24368 msgstr ""
24369
24370 # type: textblock
24371 #: ../fuse/guestmount.pod:22
24372 msgid ""
24373 "The guestmount program can be used to mount virtual machine filesystems and "
24374 "other disk images on the host.  It uses libguestfs for access to the guest "
24375 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
24376 "a mountable device."
24377 msgstr ""
24378
24379 # type: textblock
24380 #: ../fuse/guestmount.pod:27
24381 msgid ""
24382 "Along with other options, you have to give at least one device (I<-a> "
24383 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
24384 "option) or use the I<-i> inspection option.  How this works is better "
24385 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
24386 "below."
24387 msgstr ""
24388
24389 # type: textblock
24390 #: ../fuse/guestmount.pod:33
24391 msgid ""
24392 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
24393 "by you, and the filesystem will not be visible to any other users unless you "
24394 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
24395 "the filesystem, use the C<fusermount -u> command."
24396 msgstr ""
24397
24398 # type: textblock
24399 #: ../fuse/guestmount.pod:41
24400 msgid ""
24401 "For a typical Windows guest which has its main filesystem on the first "
24402 "partition:"
24403 msgstr ""
24404
24405 # type: verbatim
24406 #: ../fuse/guestmount.pod:44
24407 #, no-wrap
24408 msgid ""
24409 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
24410 "\n"
24411 msgstr ""
24412
24413 # type: textblock
24414 #: ../fuse/guestmount.pod:46
24415 msgid ""
24416 "For a typical Linux guest which has a /boot filesystem on the first "
24417 "partition, and the root filesystem on a logical volume:"
24418 msgstr ""
24419
24420 # type: verbatim
24421 #: ../fuse/guestmount.pod:49
24422 #, no-wrap
24423 msgid ""
24424 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
24425 "\n"
24426 msgstr ""
24427
24428 # type: textblock
24429 #: ../fuse/guestmount.pod:51
24430 msgid "To get libguestfs to detect guest mountpoints for you:"
24431 msgstr ""
24432
24433 # type: verbatim
24434 #: ../fuse/guestmount.pod:53
24435 #, no-wrap
24436 msgid ""
24437 " guestmount -a guest.img -i --ro /mnt\n"
24438 "\n"
24439 msgstr ""
24440
24441 # type: textblock
24442 #: ../fuse/guestmount.pod:55
24443 msgid "For a libvirt guest called \"Guest\" you could do:"
24444 msgstr ""
24445
24446 # type: verbatim
24447 #: ../fuse/guestmount.pod:57
24448 #, no-wrap
24449 msgid ""
24450 " guestmount -d Guest -i --ro /mnt\n"
24451 "\n"
24452 msgstr ""
24453
24454 # type: textblock
24455 #: ../fuse/guestmount.pod:59
24456 msgid ""
24457 "If you don't know what filesystems are contained in a guest or disk image, "
24458 "use L<virt-list-filesystems(1)> first:"
24459 msgstr ""
24460
24461 # type: verbatim
24462 #: ../fuse/guestmount.pod:62
24463 #, no-wrap
24464 msgid ""
24465 " virt-list-filesystems MyGuest\n"
24466 "\n"
24467 msgstr ""
24468
24469 # type: textblock
24470 #: ../fuse/guestmount.pod:64
24471 msgid ""
24472 "If you want to trace the libguestfs calls but without excessive debugging "
24473 "information, we recommend:"
24474 msgstr ""
24475
24476 # type: verbatim
24477 #: ../fuse/guestmount.pod:67
24478 #, no-wrap
24479 msgid ""
24480 " guestmount [...] --trace /mnt\n"
24481 "\n"
24482 msgstr ""
24483
24484 # type: textblock
24485 #: ../fuse/guestmount.pod:69
24486 msgid "If you want to debug the program, we recommend:"
24487 msgstr ""
24488
24489 # type: verbatim
24490 #: ../fuse/guestmount.pod:71
24491 #, no-wrap
24492 msgid ""
24493 " guestmount [...] --trace --verbose /mnt\n"
24494 "\n"
24495 msgstr ""
24496
24497 # type: textblock
24498 #: ../fuse/guestmount.pod:79
24499 msgid "Add a block device or virtual machine image."
24500 msgstr ""
24501
24502 # type: =item
24503 #: ../fuse/guestmount.pod:96
24504 msgid "B<--dir-cache-timeout N>"
24505 msgstr ""
24506
24507 # type: textblock
24508 #: ../fuse/guestmount.pod:98
24509 msgid ""
24510 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
24511 "seconds.  The readdir cache [actually, there are several semi-independent "
24512 "caches] is populated after a readdir(2) call with the stat and extended "
24513 "attributes of the files in the directory, in anticipation that they will be "
24514 "requested soon after."
24515 msgstr ""
24516
24517 # type: textblock
24518 #: ../fuse/guestmount.pod:104
24519 msgid ""
24520 "There is also a different attribute cache implemented by FUSE (see the FUSE "
24521 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
24522 "requests, only cache existing ones."
24523 msgstr ""
24524
24525 # type: textblock
24526 #: ../fuse/guestmount.pod:122
24527 msgid ""
24528 "If you have untrusted raw-format guest disk images, you should use this "
24529 "option to specify the disk format.  This avoids a possible security problem "
24530 "with malicious guests (CVE-2010-3851).  See also "
24531 "L<guestfs(3)/guestfs_add_drive_opts>."
24532 msgstr ""
24533
24534 # type: =item
24535 #: ../fuse/guestmount.pod:127
24536 msgid "B<--fuse-help>"
24537 msgstr ""
24538
24539 # type: textblock
24540 #: ../fuse/guestmount.pod:129
24541 msgid "Display help on special FUSE options (see I<-o> below)."
24542 msgstr ""
24543
24544 # type: textblock
24545 #: ../fuse/guestmount.pod:133
24546 msgid "Display brief help and exit."
24547 msgstr ""
24548
24549 # type: =item
24550 #: ../fuse/guestmount.pod:146
24551 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24552 msgstr ""
24553
24554 # type: textblock
24555 #: ../fuse/guestmount.pod:148
24556 msgid ""
24557 "Mount the named partition or logical volume on the given mountpoint B<in the "
24558 "guest> (this has nothing to do with mountpoints in the host)."
24559 msgstr ""
24560
24561 # type: textblock
24562 #: ../fuse/guestmount.pod:151
24563 msgid ""
24564 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24565 "something on C</>."
24566 msgstr ""
24567
24568 # type: textblock
24569 #: ../fuse/guestmount.pod:156
24570 msgid ""
24571 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
24572 "unmounted.  If you specify this option, then we don't attempt to sync the "
24573 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
24574 msgstr ""
24575
24576 # type: =item
24577 #: ../fuse/guestmount.pod:161
24578 msgid "B<-o option> | B<--option option>"
24579 msgstr ""
24580
24581 # type: textblock
24582 #: ../fuse/guestmount.pod:163
24583 msgid "Pass extra options to FUSE."
24584 msgstr ""
24585
24586 # type: textblock
24587 #: ../fuse/guestmount.pod:165
24588 msgid ""
24589 "To get a list of all the extra options supported by FUSE, use the command "
24590 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24591 "of them are a good idea."
24592 msgstr ""
24593
24594 # type: verbatim
24595 #: ../fuse/guestmount.pod:169
24596 #, no-wrap
24597 msgid ""
24598 " guestmount --fuse-help\n"
24599 "\n"
24600 msgstr ""
24601
24602 # type: textblock
24603 #: ../fuse/guestmount.pod:171
24604 msgid "Some potentially useful FUSE options:"
24605 msgstr ""
24606
24607 # type: =item
24608 #: ../fuse/guestmount.pod:175
24609 msgid "B<-o allow_other>"
24610 msgstr ""
24611
24612 # type: textblock
24613 #: ../fuse/guestmount.pod:177
24614 msgid "Allow other users to see the filesystem."
24615 msgstr ""
24616
24617 # type: =item
24618 #: ../fuse/guestmount.pod:179
24619 msgid "B<-o attr_timeout=N>"
24620 msgstr ""
24621
24622 # type: textblock
24623 #: ../fuse/guestmount.pod:181
24624 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24625 msgstr ""
24626
24627 # type: =item
24628 #: ../fuse/guestmount.pod:183
24629 msgid "B<-o kernel_cache>"
24630 msgstr ""
24631
24632 # type: textblock
24633 #: ../fuse/guestmount.pod:185
24634 msgid ""
24635 "Allow the kernel to cache files (reduces the number of reads that have to go "
24636 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24637 "afford the extra memory usage."
24638 msgstr ""
24639
24640 # type: =item
24641 #: ../fuse/guestmount.pod:189
24642 msgid "B<-o uid=N> B<-o gid=N>"
24643 msgstr ""
24644
24645 # type: textblock
24646 #: ../fuse/guestmount.pod:191
24647 msgid ""
24648 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24649 "the chosen values."
24650 msgstr ""
24651
24652 # type: textblock
24653 #: ../fuse/guestmount.pod:198
24654 msgid ""
24655 "Add devices and mount everything read-only.  Also disallow writes and make "
24656 "the disk appear read-only to FUSE."
24657 msgstr ""
24658
24659 # type: textblock
24660 #: ../fuse/guestmount.pod:201
24661 msgid ""
24662 "This is highly recommended if you are not going to edit the guest disk.  If "
24663 "the guest is running and this option is I<not> supplied, then there is a "
24664 "strong risk of disk corruption in the guest.  We try to prevent this from "
24665 "happening, but it is not always possible."
24666 msgstr ""
24667
24668 # type: textblock
24669 #: ../fuse/guestmount.pod:206
24670 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
24671 msgstr ""
24672
24673 # type: textblock
24674 #: ../fuse/guestmount.pod:210
24675 msgid "Enable SELinux support for the guest."
24676 msgstr ""
24677
24678 # type: textblock
24679 #: ../fuse/guestmount.pod:214
24680 msgid "Enable verbose messages from underlying libguestfs."
24681 msgstr ""
24682
24683 # type: textblock
24684 #: ../fuse/guestmount.pod:218
24685 msgid "Display the program version and exit."
24686 msgstr ""
24687
24688 # type: textblock
24689 #: ../fuse/guestmount.pod:222
24690 msgid ""
24691 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
24692 "FOR READ AND WRITE>."
24693 msgstr ""
24694
24695 # type: =item
24696 #: ../fuse/guestmount.pod:225
24697 msgid "B<-x> | B<--trace>"
24698 msgstr ""
24699
24700 # type: textblock
24701 #: ../fuse/guestmount.pod:227
24702 msgid "Trace libguestfs calls."
24703 msgstr ""
24704
24705 # type: textblock
24706 #: ../fuse/guestmount.pod:229
24707 msgid "This also stops the daemon from forking into the background."
24708 msgstr ""
24709
24710 # type: textblock
24711 #: ../fuse/guestmount.pod:235
24712 msgid ""
24713 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24714 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
24715 "L<http://fuse.sf.net/>."
24716 msgstr ""
24717
24718 # type: textblock
24719 #: ../inspector/virt-inspector.pl:35
24720 msgid ""
24721 "virt-inspector - Display operating system version and other information "
24722 "about a virtual machine"
24723 msgstr ""
24724
24725 # type: verbatim
24726 #: ../inspector/virt-inspector.pl:39
24727 #, no-wrap
24728 msgid ""
24729 " virt-inspector [--connect URI] domname\n"
24730 "\n"
24731 msgstr ""
24732
24733 # type: verbatim
24734 #: ../inspector/virt-inspector.pl:41
24735 #, no-wrap
24736 msgid ""
24737 " virt-inspector guest.img [guest.img ...]\n"
24738 "\n"
24739 msgstr ""
24740
24741 # type: textblock
24742 #: ../inspector/virt-inspector.pl:45
24743 msgid ""
24744 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24745 "determine the version of the operating system and other information about "
24746 "the virtual machine."
24747 msgstr ""
24748
24749 # type: textblock
24750 #: ../inspector/virt-inspector.pl:49
24751 msgid "Virt-inspector produces XML output for feeding into other programs."
24752 msgstr ""
24753
24754 # type: textblock
24755 #: ../inspector/virt-inspector.pl:51
24756 msgid ""
24757 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24758 "libvirt domain (see: C<virsh list --all>)."
24759 msgstr ""
24760
24761 # type: textblock
24762 #: ../inspector/virt-inspector.pl:54
24763 msgid ""
24764 "You can also run virt-inspector directly on disk images from a single "
24765 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24766 "has several block devices, in which case you should list them one after "
24767 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24768 "to the guest's C</dev/sdb> and so on."
24769 msgstr ""
24770
24771 # type: textblock
24772 #: ../inspector/virt-inspector.pl:60
24773 msgid ""
24774 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24775 "inspect several virtual machines, you have to run virt-inspector several "
24776 "times (for example, from a shell script for-loop)."
24777 msgstr ""
24778
24779 # type: textblock
24780 #: ../inspector/virt-inspector.pl:65
24781 msgid ""
24782 "Because virt-inspector needs direct access to guest images, it won't "
24783 "normally work over remote libvirt connections."
24784 msgstr ""
24785
24786 # type: textblock
24787 #: ../inspector/virt-inspector.pl:78 ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181 ../tools/virt-df.pl:81 ../tools/virt-ls.pl:88 ../tools/virt-list-filesystems.pl:60 ../tools/virt-cat.pl:89 ../tools/virt-tar.pl:108 ../tools/virt-rescue.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:61
24788 msgid "Display brief help."
24789 msgstr ""
24790
24791 # type: =item
24792 #: ../inspector/virt-inspector.pl:84 ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187 ../tools/virt-df.pl:87 ../tools/virt-ls.pl:94 ../tools/virt-resize.pl:273 ../tools/virt-list-filesystems.pl:66 ../tools/virt-cat.pl:95 ../tools/virt-tar.pl:114 ../tools/virt-rescue.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:67
24793 msgid "B<--version>"
24794 msgstr ""
24795
24796 # type: textblock
24797 #: ../inspector/virt-inspector.pl:86 ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189 ../tools/virt-df.pl:89 ../tools/virt-ls.pl:96 ../tools/virt-resize.pl:275 ../tools/virt-list-filesystems.pl:68 ../tools/virt-cat.pl:97 ../tools/virt-tar.pl:116 ../tools/virt-rescue.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:69
24798 msgid "Display version number and exit."
24799 msgstr ""
24800
24801 # type: =item
24802 #: ../inspector/virt-inspector.pl:92 ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203 ../tools/virt-df.pl:95 ../tools/virt-ls.pl:102 ../tools/virt-list-filesystems.pl:74 ../tools/virt-cat.pl:103 ../tools/virt-tar.pl:122 ../tools/virt-rescue.pl:135 ../tools/virt-list-partitions.pl:75
24803 msgid "B<--connect URI> | B<-c URI>"
24804 msgstr ""
24805
24806 # type: textblock
24807 #: ../inspector/virt-inspector.pl:94 ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205 ../tools/virt-df.pl:97 ../tools/virt-ls.pl:104 ../tools/virt-list-filesystems.pl:76 ../tools/virt-cat.pl:105 ../tools/virt-tar.pl:124 ../tools/virt-rescue.pl:137 ../tools/virt-list-partitions.pl:77
24808 msgid ""
24809 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24810 "to the default libvirt hypervisor."
24811 msgstr ""
24812
24813 # type: textblock
24814 #: ../inspector/virt-inspector.pl:97
24815 msgid ""
24816 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24817 "you specify guest block devices directly, then libvirt is not used at all."
24818 msgstr ""
24819
24820 # type: =item
24821 #: ../inspector/virt-inspector.pl:105 ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215 ../tools/virt-df.pl:117 ../tools/virt-ls.pl:114 ../tools/virt-resize.pl:523 ../tools/virt-list-filesystems.pl:86 ../tools/virt-cat.pl:115 ../tools/virt-tar.pl:134 ../tools/virt-rescue.pl:147 ../tools/virt-list-partitions.pl:87
24822 msgid "B<--format> raw"
24823 msgstr ""
24824
24825 # type: textblock
24826 #: ../inspector/virt-inspector.pl:107 ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217 ../tools/virt-df.pl:119 ../tools/virt-ls.pl:116 ../tools/virt-list-filesystems.pl:88 ../tools/virt-cat.pl:117 ../tools/virt-tar.pl:136 ../tools/virt-rescue.pl:149 ../tools/virt-list-partitions.pl:89
24827 msgid ""
24828 "Specify the format of disk images given on the command line.  If this is "
24829 "omitted then the format is autodetected from the content of the disk image."
24830 msgstr ""
24831
24832 # type: textblock
24833 #: ../inspector/virt-inspector.pl:111 ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221 ../tools/virt-df.pl:123 ../tools/virt-ls.pl:120 ../tools/virt-list-filesystems.pl:92 ../tools/virt-cat.pl:121 ../tools/virt-tar.pl:140 ../tools/virt-rescue.pl:153 ../tools/virt-list-partitions.pl:93
24834 msgid ""
24835 "If disk images are requested from libvirt, then this program asks libvirt "
24836 "for this information.  In this case, the value of the format parameter is "
24837 "ignored."
24838 msgstr ""
24839
24840 # type: textblock
24841 #: ../inspector/virt-inspector.pl:115 ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225 ../tools/virt-df.pl:127 ../tools/virt-ls.pl:124 ../tools/virt-resize.pl:528 ../tools/virt-resize.pl:543 ../tools/virt-list-filesystems.pl:96 ../tools/virt-cat.pl:125 ../tools/virt-tar.pl:144 ../tools/virt-rescue.pl:157 ../tools/virt-list-partitions.pl:97
24842 msgid ""
24843 "If working with untrusted raw-format guest disk images, you should ensure "
24844 "the format is always specified."
24845 msgstr ""
24846
24847 # type: =head1
24848 #: ../inspector/virt-inspector.pl:149
24849 msgid "XML FORMAT"
24850 msgstr ""
24851
24852 # type: textblock
24853 #: ../inspector/virt-inspector.pl:151
24854 msgid ""
24855 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
24856 "supplied with libguestfs.  This section is just an overview."
24857 msgstr ""
24858
24859 # type: textblock
24860 #: ../inspector/virt-inspector.pl:154
24861 msgid ""
24862 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
24863 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
24864 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
24865 "which is vanishingly rare in real world VMs."
24866 msgstr ""
24867
24868 # type: =head2
24869 #: ../inspector/virt-inspector.pl:159
24870 msgid "E<lt>operatingsystemE<gt>"
24871 msgstr ""
24872
24873 # type: textblock
24874 #: ../inspector/virt-inspector.pl:161
24875 msgid ""
24876 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
24877 "describe the operating system, its architecture, the descriptive \"product "
24878 "name\" string, the type of OS and so on, as in this example:"
24879 msgstr ""
24880
24881 # type: verbatim
24882 #: ../inspector/virt-inspector.pl:165
24883 #, no-wrap
24884 msgid ""
24885 " <operatingsystems>\n"
24886 "   <operatingsystem>\n"
24887 "     <root>/dev/sda2</root>\n"
24888 "     <name>windows</name>\n"
24889 "     <arch>i386</arch>\n"
24890 "     <distro>windows</distro>\n"
24891 "     <product_name>Windows 7 Enterprise</product_name>\n"
24892 "     <major_version>6</major_version>\n"
24893 "     <minor_version>1</minor_version>\n"
24894 "     <windows_systemroot>/Windows</windows_systemroot>\n"
24895 "\n"
24896 msgstr ""
24897
24898 # type: textblock
24899 #: ../inspector/virt-inspector.pl:176
24900 msgid ""
24901 "These fields are derived from the libguestfs inspection API, and you can "
24902 "find more details in L<guestfs(3)/INSPECTION>."
24903 msgstr ""
24904
24905 # type: textblock
24906 #: ../inspector/virt-inspector.pl:179
24907 msgid ""
24908 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
24909 "of view of libguestfs (block devices may have completely different names "
24910 "inside the VM itself)."
24911 msgstr ""
24912
24913 # type: =head2
24914 #: ../inspector/virt-inspector.pl:240
24915 msgid "E<lt>mountpointsE<gt>"
24916 msgstr ""
24917
24918 # type: textblock
24919 #: ../inspector/virt-inspector.pl:242
24920 msgid ""
24921 "Un*x-like guests typically have multiple filesystems which are mounted at "
24922 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
24923 "element which looks like this:"
24924 msgstr ""
24925
24926 # type: verbatim
24927 #: ../inspector/virt-inspector.pl:246
24928 #, no-wrap
24929 msgid ""
24930 " <operatingsystems>\n"
24931 "   <operatingsystem>\n"
24932 "     ...\n"
24933 "     <mountpoints>\n"
24934 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
24935 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
24936 "     </mountpoints>\n"
24937 "\n"
24938 msgstr ""
24939
24940 # type: textblock
24941 #: ../inspector/virt-inspector.pl:254
24942 msgid ""
24943 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
24944 "and may have completely different names inside the guest.  Only mountable "
24945 "filesystems appear in this list, not things like swap devices."
24946 msgstr ""
24947
24948 # type: =head2
24949 #: ../inspector/virt-inspector.pl:276
24950 msgid "E<lt>filesystemsE<gt>"
24951 msgstr ""
24952
24953 # type: textblock
24954 #: ../inspector/virt-inspector.pl:278
24955 msgid ""
24956 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
24957 "filesystems belonging to the guest, including swap and empty partitions.  "
24958 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
24959 "this OS or shared by this OS and other OSes)."
24960 msgstr ""
24961
24962 # type: textblock
24963 #: ../inspector/virt-inspector.pl:283
24964 msgid "You might see something like this:"
24965 msgstr ""
24966
24967 # type: verbatim
24968 #: ../inspector/virt-inspector.pl:285
24969 #, no-wrap
24970 msgid ""
24971 " <operatingsystems>\n"
24972 "   <operatingsystem>\n"
24973 "     ...\n"
24974 "     <filesystems>\n"
24975 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24976 "         <type>ext4</type>\n"
24977 "         <label>Fedora-13-x86_64</label>\n"
24978 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24979 "       </filesystem>\n"
24980 "\n"
24981 msgstr ""
24982
24983 # type: textblock
24984 #: ../inspector/virt-inspector.pl:295
24985 msgid ""
24986 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24987 "the label, and the UUID."
24988 msgstr ""
24989
24990 # type: =head2
24991 #: ../inspector/virt-inspector.pl:337
24992 msgid "E<lt>applicationsE<gt>"
24993 msgstr ""
24994
24995 # type: textblock
24996 #: ../inspector/virt-inspector.pl:339
24997 msgid ""
24998 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24999 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
25000 "machine.  At the moment we are only able to list RPMs and Debian packages "
25001 "installed, but in future we will support other Linux distros and Windows."
25002 msgstr ""
25003
25004 # type: textblock
25005 #: ../inspector/virt-inspector.pl:345
25006 msgid ""
25007 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
25008 "Typical values would be C<rpm> and C<deb>."
25009 msgstr ""
25010
25011 # type: textblock
25012 #: ../inspector/virt-inspector.pl:348
25013 msgid ""
25014 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
25015 "Typical values include C<yum>, C<up2date> and C<apt>"
25016 msgstr ""
25017
25018 # type: textblock
25019 #: ../inspector/virt-inspector.pl:351
25020 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
25021 msgstr ""
25022
25023 # type: verbatim
25024 #: ../inspector/virt-inspector.pl:354
25025 #, no-wrap
25026 msgid ""
25027 " <operatingsystems>\n"
25028 "   <operatingsystem>\n"
25029 "     ...\n"
25030 "     <applications>\n"
25031 "       <application>\n"
25032 "         <name>coreutils</name>\n"
25033 "         <version>8.5</version>\n"
25034 "         <release>1</release>\n"
25035 "       </application>\n"
25036 "\n"
25037 msgstr ""
25038
25039 # type: textblock
25040 #: ../inspector/virt-inspector.pl:364
25041 msgid ""
25042 "(The version and release fields may not be available for some package "
25043 "types)."
25044 msgstr ""
25045
25046 # type: =head1
25047 #: ../inspector/virt-inspector.pl:544
25048 msgid "USING XPATH"
25049 msgstr ""
25050
25051 # type: textblock
25052 #: ../inspector/virt-inspector.pl:546
25053 msgid ""
25054 "You can use the XPath query language, and/or the xpath tool, in order to "
25055 "select parts of the XML."
25056 msgstr ""
25057
25058 # type: verbatim
25059 #: ../inspector/virt-inspector.pl:551
25060 #, no-wrap
25061 msgid ""
25062 " $ virt-inspector Guest | xpath //filesystems\n"
25063 " Found 1 nodes:\n"
25064 " -- NODE --\n"
25065 " <filesystems>\n"
25066 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
25067 "        <type>ext4</type>\n"
25068 " [etc]\n"
25069 "\n"
25070 msgstr ""
25071
25072 # type: verbatim
25073 #: ../inspector/virt-inspector.pl:559
25074 #, no-wrap
25075 msgid ""
25076 " $ virt-inspector Guest | \\\n"
25077 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
25078 " Query didn't return a nodeset. Value: ext4\n"
25079 "\n"
25080 msgstr ""
25081
25082 # type: =head1
25083 #: ../inspector/virt-inspector.pl:563 ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477 ../tools/virt-df.pl:633 ../tools/virt-ls.pl:225 ../tools/virt-resize.pl:1479 ../tools/virt-list-filesystems.pl:179 ../tools/virt-cat.pl:178 ../tools/virt-tar.pl:274 ../tools/virt-rescue.pl:260 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:247
25084 msgid "SHELL QUOTING"
25085 msgstr ""
25086
25087 # type: textblock
25088 #: ../inspector/virt-inspector.pl:565 ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479 ../tools/virt-df.pl:635 ../tools/virt-ls.pl:227 ../tools/virt-resize.pl:1481 ../tools/virt-list-filesystems.pl:181 ../tools/virt-cat.pl:180 ../tools/virt-tar.pl:276 ../tools/virt-rescue.pl:262 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:249
25089 msgid ""
25090 "Libvirt guest names can contain arbitrary characters, some of which have "
25091 "meaning to the shell such as C<#> and space.  You may need to quote or "
25092 "escape these characters on the command line.  See the shell manual page "
25093 "L<sh(1)> for details."
25094 msgstr ""
25095
25096 # type: textblock
25097 #: ../inspector/virt-inspector.pl:572
25098 msgid ""
25099 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25100 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
25101 msgstr ""
25102
25103 # type: textblock
25104 #: ../inspector/virt-inspector.pl:586 ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512 ../tools/virt-df.pl:651 ../tools/virt-ls.pl:245 ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:200 ../tools/virt-cat.pl:197 ../tools/virt-tar.pl:294 ../tools/virt-rescue.pl:279 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:267
25105 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25106 msgstr ""
25107
25108 # type: textblock
25109 #: ../inspector/virt-inspector.pl:590
25110 msgid "Matthew Booth L<mbooth@redhat.com>"
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
25115 msgid "Copyright (C) 2010 Red Hat Inc."
25116 msgstr ""
25117
25118 # type: textblock
25119 #: ../tools/virt-edit.pl:34
25120 msgid "virt-edit - Edit a file in a virtual machine"
25121 msgstr ""
25122
25123 # type: verbatim
25124 #: ../tools/virt-edit.pl:38
25125 #, no-wrap
25126 msgid ""
25127 " virt-edit [--options] domname file\n"
25128 "\n"
25129 msgstr ""
25130
25131 # type: verbatim
25132 #: ../tools/virt-edit.pl:40
25133 #, no-wrap
25134 msgid ""
25135 " virt-edit [--options] disk.img [disk.img ...] file\n"
25136 "\n"
25137 msgstr ""
25138
25139 # type: verbatim
25140 #: ../tools/virt-edit.pl:42
25141 #, no-wrap
25142 msgid ""
25143 " virt-edit [domname|disk.img] file -e 'expr'\n"
25144 "\n"
25145 msgstr ""
25146
25147 # type: textblock
25148 #: ../tools/virt-edit.pl:46
25149 msgid ""
25150 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25151 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25152 "doing this, but doesn't catch all cases."
25153 msgstr ""
25154
25155 # type: textblock
25156 #: ../tools/virt-edit.pl:52
25157 msgid ""
25158 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25159 "the named virtual machine (or disk image)."
25160 msgstr ""
25161
25162 # type: textblock
25163 #: ../tools/virt-edit.pl:55
25164 msgid ""
25165 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25166 "you should look at the L<guestfish(1)> tool."
25167 msgstr ""
25168
25169 # type: textblock
25170 #: ../tools/virt-edit.pl:60
25171 msgid "Edit the named files interactively:"
25172 msgstr ""
25173
25174 # type: verbatim
25175 #: ../tools/virt-edit.pl:62
25176 #, no-wrap
25177 msgid ""
25178 " virt-edit mydomain /boot/grub/grub.conf\n"
25179 "\n"
25180 msgstr ""
25181
25182 # type: verbatim
25183 #: ../tools/virt-edit.pl:64
25184 #, no-wrap
25185 msgid ""
25186 " virt-edit mydomain /etc/passwd\n"
25187 "\n"
25188 msgstr ""
25189
25190 # type: textblock
25191 #: ../tools/virt-edit.pl:66
25192 msgid ""
25193 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25194 "below).  To change the init default level to 5:"
25195 msgstr ""
25196
25197 # type: verbatim
25198 #: ../tools/virt-edit.pl:70
25199 #, no-wrap
25200 msgid ""
25201 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25202 "\n"
25203 msgstr ""
25204
25205 # type: =item
25206 #: ../tools/virt-edit.pl:96
25207 msgid "B<--backup extension> | B<-b extension>"
25208 msgstr ""
25209
25210 # type: textblock
25211 #: ../tools/virt-edit.pl:98
25212 msgid ""
25213 "Create a backup of the original file I<in the guest disk image>.  The backup "
25214 "has the original filename with C<extension> added."
25215 msgstr ""
25216
25217 # type: textblock
25218 #: ../tools/virt-edit.pl:101
25219 msgid ""
25220 "Usually the first character of C<extension> would be a dot C<.> so you would "
25221 "write:"
25222 msgstr ""
25223
25224 # type: verbatim
25225 #: ../tools/virt-edit.pl:104
25226 #, no-wrap
25227 msgid ""
25228 " virt-edit -b .orig [etc]\n"
25229 "\n"
25230 msgstr ""
25231
25232 # type: textblock
25233 #: ../tools/virt-edit.pl:106
25234 msgid "By default, no backup file is made."
25235 msgstr ""
25236
25237 # type: textblock
25238 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208 ../tools/virt-df.pl:100 ../tools/virt-ls.pl:107 ../tools/virt-list-filesystems.pl:79 ../tools/virt-cat.pl:108 ../tools/virt-tar.pl:127 ../tools/virt-rescue.pl:140 ../tools/virt-list-partitions.pl:80
25239 msgid ""
25240 "If you specify guest block devices directly, then libvirt is not used at "
25241 "all."
25242 msgstr ""
25243
25244 # type: =item
25245 #: ../tools/virt-edit.pl:141
25246 msgid "B<--expr EXPR> | B<-e EXPR>"
25247 msgstr ""
25248
25249 # type: textblock
25250 #: ../tools/virt-edit.pl:143
25251 msgid ""
25252 "Instead of launching the external editor, non-interactively apply the Perl "
25253 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25254 "EDITING> below."
25255 msgstr ""
25256
25257 # type: textblock
25258 #: ../tools/virt-edit.pl:147
25259 msgid ""
25260 "Be careful to properly quote the expression to prevent it from being altered "
25261 "by the shell."
25262 msgstr ""
25263
25264 # type: =head1
25265 #: ../tools/virt-edit.pl:268
25266 msgid "NON-INTERACTIVE EDITING"
25267 msgstr ""
25268
25269 # type: textblock
25270 #: ../tools/virt-edit.pl:270
25271 msgid ""
25272 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25273 "administrator can interactively edit the file."
25274 msgstr ""
25275
25276 # type: textblock
25277 #: ../tools/virt-edit.pl:273
25278 msgid ""
25279 "There are two ways also to use C<virt-edit> from scripts in order to make "
25280 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25281 "like this, it's less error-prone to write scripts directly using the "
25282 "libguestfs API and Augeas for configuration file editing.)"
25283 msgstr ""
25284
25285 # type: textblock
25286 #: ../tools/virt-edit.pl:279
25287 msgid ""
25288 "The first method is to temporarily set C<$EDITOR> to any script or program "
25289 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25290 "update C<tmpfile> in place however it likes."
25291 msgstr ""
25292
25293 # type: textblock
25294 #: ../tools/virt-edit.pl:283
25295 msgid ""
25296 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25297 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25298 "instances of C<foo> with C<bar> in a file:"
25299 msgstr ""
25300
25301 # type: verbatim
25302 #: ../tools/virt-edit.pl:287
25303 #, no-wrap
25304 msgid ""
25305 " virt-edit domname filename -e 's/foo/bar/'\n"
25306 "\n"
25307 msgstr ""
25308
25309 # type: textblock
25310 #: ../tools/virt-edit.pl:289
25311 msgid ""
25312 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25313 "For example to delete root's password you could do:"
25314 msgstr ""
25315
25316 # type: verbatim
25317 #: ../tools/virt-edit.pl:292
25318 #, no-wrap
25319 msgid ""
25320 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25321 "\n"
25322 msgstr ""
25323
25324 # type: textblock
25325 #: ../tools/virt-edit.pl:294
25326 msgid ""
25327 "What really happens is that the snippet is evaluated as a Perl expression "
25328 "for each line of the file.  The line, including the final C<\\n>, is passed "
25329 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25330 msgstr ""
25331
25332 # type: textblock
25333 #: ../tools/virt-edit.pl:299
25334 msgid ""
25335 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25336 "C<apache> user account from the password file you can do:"
25337 msgstr ""
25338
25339 # type: verbatim
25340 #: ../tools/virt-edit.pl:302
25341 #, no-wrap
25342 msgid ""
25343 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25344 "\n"
25345 msgstr ""
25346
25347 # type: textblock
25348 #: ../tools/virt-edit.pl:304
25349 msgid ""
25350 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25351 "the end of the file is rather difficult this way since there is no concept "
25352 "of \"last line of the file\" - your expression just doesn't get called "
25353 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25354 "want to do this."
25355 msgstr ""
25356
25357 # type: textblock
25358 #: ../tools/virt-edit.pl:310
25359 msgid ""
25360 "The variable C<$lineno> contains the current line number.  As is "
25361 "traditional, the first line in the file is number C<1>."
25362 msgstr ""
25363
25364 # type: textblock
25365 #: ../tools/virt-edit.pl:313
25366 msgid ""
25367 "The return value from the expression is ignored, but the expression may call "
25368 "C<die> in order to abort the whole program, leaving the original file "
25369 "untouched."
25370 msgstr ""
25371
25372 # type: textblock
25373 #: ../tools/virt-edit.pl:317
25374 msgid ""
25375 "Remember when matching the end of a line that C<$_> may contain the final "
25376 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25377 "newline then neither of these.  Thus to match or substitute some text at the "
25378 "end of a line, use this regular expression:"
25379 msgstr ""
25380
25381 # type: verbatim
25382 #: ../tools/virt-edit.pl:322
25383 #, no-wrap
25384 msgid ""
25385 " /some text(\\r?\\n)?$/\n"
25386 "\n"
25387 msgstr ""
25388
25389 # type: textblock
25390 #: ../tools/virt-edit.pl:324
25391 msgid ""
25392 "Alternately, use the perl C<chomp> function, being careful not to chomp "
25393 "C<$_> itself (since that would remove all newlines from the file):"
25394 msgstr ""
25395
25396 # type: verbatim
25397 #: ../tools/virt-edit.pl:328
25398 #, no-wrap
25399 msgid ""
25400 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25401 "\n"
25402 msgstr ""
25403
25404 # type: =item
25405 #: ../tools/virt-edit.pl:334
25406 msgid "C<EDITOR>"
25407 msgstr ""
25408
25409 # type: textblock
25410 #: ../tools/virt-edit.pl:336
25411 msgid ""
25412 "If set, this string is used as the editor.  It may contain arguments, "
25413 "eg. C<\"emacs -nw\">"
25414 msgstr ""
25415
25416 # type: textblock
25417 #: ../tools/virt-edit.pl:339
25418 msgid "If not set, C<vi> is used."
25419 msgstr ""
25420
25421 # type: textblock
25422 #: ../tools/virt-edit.pl:352
25423 msgid ""
25424 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25425 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
25426 "L<perl(1)>, L<perlre(1)>."
25427 msgstr ""
25428
25429 # type: =head1
25430 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510 ../tools/virt-df.pl:649 ../tools/virt-ls.pl:243 ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:198 ../tools/virt-cat.pl:195 ../tools/virt-tar.pl:292 ../tools/virt-rescue.pl:277 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:265
25431 msgid "AUTHOR"
25432 msgstr ""
25433
25434 # type: textblock
25435 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
25436 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25437 msgstr ""
25438
25439 # type: textblock
25440 #: ../tools/virt-win-reg.pl:37
25441 msgid ""
25442 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25443 "guest"
25444 msgstr ""
25445
25446 # type: verbatim
25447 #: ../tools/virt-win-reg.pl:41
25448 #, no-wrap
25449 msgid ""
25450 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25451 "\n"
25452 msgstr ""
25453
25454 # type: verbatim
25455 #: ../tools/virt-win-reg.pl:43
25456 #, no-wrap
25457 msgid ""
25458 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25459 "\n"
25460 msgstr ""
25461
25462 # type: verbatim
25463 #: ../tools/virt-win-reg.pl:45
25464 #, no-wrap
25465 msgid ""
25466 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25467 "\n"
25468 msgstr ""
25469
25470 # type: verbatim
25471 #: ../tools/virt-win-reg.pl:47
25472 #, no-wrap
25473 msgid ""
25474 " virt-win-reg --merge domname [input.reg ...]\n"
25475 "\n"
25476 msgstr ""
25477
25478 # type: verbatim
25479 #: ../tools/virt-win-reg.pl:49
25480 #, no-wrap
25481 msgid ""
25482 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25483 "\n"
25484 msgstr ""
25485
25486 # type: textblock
25487 #: ../tools/virt-win-reg.pl:53
25488 msgid ""
25489 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25490 "virtual machines.  If you do this, you I<will> get irreversible disk "
25491 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25492 "but doesn't catch all cases."
25493 msgstr ""
25494
25495 # type: textblock
25496 #: ../tools/virt-win-reg.pl:58
25497 msgid ""
25498 "Modifying the Windows Registry is an inherently risky operation.  The format "
25499 "is deliberately obscure and undocumented, and Registry changes can leave the "
25500 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25501 "you have a reliable backup first."
25502 msgstr ""
25503
25504 # type: textblock
25505 #: ../tools/virt-win-reg.pl:65
25506 msgid ""
25507 "This program can export and merge Windows Registry entries from a Windows "
25508 "guest."
25509 msgstr ""
25510
25511 # type: textblock
25512 #: ../tools/virt-win-reg.pl:68
25513 msgid ""
25514 "The first parameter is the libvirt guest name or the raw disk image of a "
25515 "Windows guest."
25516 msgstr ""
25517
25518 # type: textblock
25519 #: ../tools/virt-win-reg.pl:71
25520 msgid ""
25521 "If C<--merge> is I<not> specified, then the chosen registry key is "
25522 "displayed/exported (recursively).  For example:"
25523 msgstr ""
25524
25525 # type: verbatim
25526 #: ../tools/virt-win-reg.pl:74
25527 #, no-wrap
25528 msgid ""
25529 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25530 "\n"
25531 msgstr ""
25532
25533 # type: textblock
25534 #: ../tools/virt-win-reg.pl:76
25535 msgid "You can also display single values from within registry keys, for example:"
25536 msgstr ""
25537
25538 # type: verbatim
25539 #: ../tools/virt-win-reg.pl:79
25540 #, no-wrap
25541 msgid ""
25542 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25543 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25544 " Windows 7 Enterprise\n"
25545 "\n"
25546 msgstr ""
25547
25548 # type: textblock
25549 #: ../tools/virt-win-reg.pl:83
25550 msgid ""
25551 "With C<--merge>, you can merge a textual regedit file into the Windows "
25552 "Registry:"
25553 msgstr ""
25554
25555 # type: verbatim
25556 #: ../tools/virt-win-reg.pl:86
25557 #, no-wrap
25558 msgid ""
25559 " $ virt-win-reg --merge Windows7 changes.reg\n"
25560 "\n"
25561 msgstr ""
25562
25563 # type: =head2
25564 #: ../tools/virt-win-reg.pl:88
25565 msgid "SUPPORTED SYSTEMS"
25566 msgstr ""
25567
25568 # type: textblock
25569 #: ../tools/virt-win-reg.pl:90
25570 msgid ""
25571 "The program currently supports Windows NT-derived guests starting with "
25572 "Windows XP through to at least Windows 7."
25573 msgstr ""
25574
25575 # type: textblock
25576 #: ../tools/virt-win-reg.pl:93
25577 msgid ""
25578 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
25579 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
25580 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
25581 msgstr ""
25582
25583 # type: textblock
25584 #: ../tools/virt-win-reg.pl:97
25585 msgid ""
25586 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25587 "C<HKEY_USERS>."
25588 msgstr ""
25589
25590 # type: textblock
25591 #: ../tools/virt-win-reg.pl:100
25592 msgid ""
25593 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25594 "time."
25595 msgstr ""
25596
25597 # type: =head2
25598 #: ../tools/virt-win-reg.pl:103
25599 msgid "NOTE"
25600 msgstr ""
25601
25602 # type: textblock
25603 #: ../tools/virt-win-reg.pl:105
25604 msgid ""
25605 "This program is only meant for simple access to the registry.  If you want "
25606 "to do complicated things with the registry, we suggest you download the "
25607 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25608 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25609 "L<hivexregedit(1)>."
25610 msgstr ""
25611
25612 # type: =head2
25613 #: ../tools/virt-win-reg.pl:111
25614 msgid "ENCODING"
25615 msgstr ""
25616
25617 # type: textblock
25618 #: ../tools/virt-win-reg.pl:113
25619 msgid ""
25620 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25621 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
25622 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
25623 "with Windows-style line endings, you may need to reencode the whole file "
25624 "before or after processing."
25625 msgstr ""
25626
25627 # type: textblock
25628 #: ../tools/virt-win-reg.pl:119
25629 msgid ""
25630 "To reencode a file from Windows format to Linux (before processing it with "
25631 "the C<--merge> option), you would do something like this:"
25632 msgstr ""
25633
25634 # type: verbatim
25635 #: ../tools/virt-win-reg.pl:122
25636 #, no-wrap
25637 msgid ""
25638 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25639 "\n"
25640 msgstr ""
25641
25642 # type: textblock
25643 #: ../tools/virt-win-reg.pl:124
25644 msgid ""
25645 "To go in the opposite direction, after exporting and before sending the file "
25646 "to a Windows user, do something like this:"
25647 msgstr ""
25648
25649 # type: verbatim
25650 #: ../tools/virt-win-reg.pl:127
25651 #, no-wrap
25652 msgid ""
25653 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25654 "\n"
25655 msgstr ""
25656
25657 # type: textblock
25658 #: ../tools/virt-win-reg.pl:129
25659 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25660 msgstr ""
25661
25662 # type: textblock
25663 #: ../tools/virt-win-reg.pl:131
25664 msgid ""
25665 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25666 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
25667 "Windows-style (CRLF) line endings, like this:"
25668 msgstr ""
25669
25670 # type: verbatim
25671 #: ../tools/virt-win-reg.pl:135
25672 #, no-wrap
25673 msgid ""
25674 " $ file software.reg\n"
25675 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25676 " with CRLF line terminators\n"
25677 "\n"
25678 msgstr ""
25679
25680 # type: textblock
25681 #: ../tools/virt-win-reg.pl:139
25682 msgid "This file would need conversion before you could C<--merge> it."
25683 msgstr ""
25684
25685 # type: textblock
25686 #: ../tools/virt-win-reg.pl:143
25687 msgid ""
25688 "Be careful when passing parameters containing C<\\> (backslash) in the "
25689 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25690 "(but not both) to protect them from the shell."
25691 msgstr ""
25692
25693 # type: textblock
25694 #: ../tools/virt-win-reg.pl:147
25695 msgid "Paths and value names are case-insensitive."
25696 msgstr ""
25697
25698 # type: =head2
25699 #: ../tools/virt-win-reg.pl:149
25700 msgid "CurrentControlSet etc."
25701 msgstr ""
25702
25703 # type: textblock
25704 #: ../tools/virt-win-reg.pl:151
25705 msgid ""
25706 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25707 "Registry at the level of the hive file, and therefore you cannot modify "
25708 "these."
25709 msgstr ""
25710
25711 # type: textblock
25712 #: ../tools/virt-win-reg.pl:155
25713 msgid ""
25714 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25715 "circumstances it might refer to another control set.  The way to find out is "
25716 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25717 msgstr ""
25718
25719 # type: verbatim
25720 #: ../tools/virt-win-reg.pl:159
25721 #, no-wrap
25722 msgid ""
25723 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25724 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25725 " \"Current\"=dword:00000001\n"
25726 " \"Default\"=dword:00000001\n"
25727 " \"Failed\"=dword:00000000\n"
25728 " \"LastKnownGood\"=dword:00000002\n"
25729 "\n"
25730 msgstr ""
25731
25732 # type: textblock
25733 #: ../tools/virt-win-reg.pl:166
25734 msgid "\"Current\" is the one which Windows will choose when it boots."
25735 msgstr ""
25736
25737 # type: textblock
25738 #: ../tools/virt-win-reg.pl:168
25739 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
25740 msgstr ""
25741
25742 # type: =item
25743 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
25744 msgid "B<--debug>"
25745 msgstr ""
25746
25747 # type: textblock
25748 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
25749 msgid "Enable debugging messages."
25750 msgstr ""
25751
25752 # type: =item
25753 #: ../tools/virt-win-reg.pl:232
25754 msgid "B<--merge>"
25755 msgstr ""
25756
25757 # type: textblock
25758 #: ../tools/virt-win-reg.pl:234
25759 msgid ""
25760 "In merge mode, this merges a textual regedit file into the Windows Registry "
25761 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25762 "displays or exports Registry entries instead."
25763 msgstr ""
25764
25765 # type: textblock
25766 #: ../tools/virt-win-reg.pl:238
25767 msgid ""
25768 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25769 "result in disk corruption.  However exporting (without this flag)  is always "
25770 "safe."
25771 msgstr ""
25772
25773 # type: =item
25774 #: ../tools/virt-win-reg.pl:246
25775 msgid "B<--encoding> UTF-16LE|ASCII"
25776 msgstr ""
25777
25778 # type: textblock
25779 #: ../tools/virt-win-reg.pl:248
25780 msgid ""
25781 "When merging (only), you may need to specify the encoding for strings to be "
25782 "used in the hive file.  This is explained in detail in "
25783 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
25784 msgstr ""
25785
25786 # type: textblock
25787 #: ../tools/virt-win-reg.pl:252
25788 msgid ""
25789 "The default is to use UTF-16LE, which should work with recent versions of "
25790 "Windows."
25791 msgstr ""
25792
25793 # type: textblock
25794 #: ../tools/virt-win-reg.pl:486
25795 msgid ""
25796 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
25797 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25798 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
25799 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25800 msgstr ""
25801
25802 # type: textblock
25803 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25804 msgid ""
25805 "When reporting bugs, please enable debugging and capture the I<complete> "
25806 "output:"
25807 msgstr ""
25808
25809 # type: verbatim
25810 #: ../tools/virt-win-reg.pl:504
25811 #, no-wrap
25812 msgid ""
25813 " export LIBGUESTFS_DEBUG=1\n"
25814 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25815 "\n"
25816 msgstr ""
25817
25818 # type: textblock
25819 #: ../tools/virt-win-reg.pl:507
25820 msgid ""
25821 "Attach /tmp/virt-win-reg.log to a new bug report at "
25822 "L<https://bugzilla.redhat.com/>"
25823 msgstr ""
25824
25825 # type: textblock
25826 #: ../tools/virt-df.pl:36
25827 msgid "virt-df - Display free space on virtual filesystems"
25828 msgstr ""
25829
25830 # type: verbatim
25831 #: ../tools/virt-df.pl:40
25832 #, no-wrap
25833 msgid ""
25834 " virt-df [--options]\n"
25835 "\n"
25836 msgstr ""
25837
25838 # type: verbatim
25839 #: ../tools/virt-df.pl:42
25840 #, no-wrap
25841 msgid ""
25842 " virt-df [--options] domname\n"
25843 "\n"
25844 msgstr ""
25845
25846 # type: verbatim
25847 #: ../tools/virt-df.pl:44
25848 #, no-wrap
25849 msgid ""
25850 " virt-df [--options] disk.img [disk.img ...]\n"
25851 "\n"
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../tools/virt-df.pl:48
25856 msgid ""
25857 "C<virt-df> is a command line tool to display free space on virtual machine "
25858 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25859 "space allocated to a virtual machine, but can look inside the virtual "
25860 "machine to see how much space is really being used."
25861 msgstr ""
25862
25863 # type: textblock
25864 #: ../tools/virt-df.pl:53
25865 msgid ""
25866 "It is like the L<df(1)> command, but for virtual machines, except that it "
25867 "also works for Windows virtual machines."
25868 msgstr ""
25869
25870 # type: textblock
25871 #: ../tools/virt-df.pl:56
25872 msgid ""
25873 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25874 "of all active and inactive guests, and performs a C<df>-type operation on "
25875 "each one in turn, printing out the results."
25876 msgstr ""
25877
25878 # type: textblock
25879 #: ../tools/virt-df.pl:60
25880 msgid ""
25881 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25882 "either the single named libvirt domain, or on the disk image(s) listed on "
25883 "the command line (which must all belong to a single VM).  In this mode (with "
25884 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25885 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25886 msgstr ""
25887
25888 # type: textblock
25889 #: ../tools/virt-df.pl:67
25890 msgid ""
25891 "Use the C<--csv> option to get a format which can be easily parsed by other "
25892 "programs.  Other options are mostly similar to standard C<df> options.  See "
25893 "below for the complete list."
25894 msgstr ""
25895
25896 # type: =item
25897 #: ../tools/virt-df.pl:107
25898 msgid "B<--csv>"
25899 msgstr ""
25900
25901 # type: textblock
25902 #: ../tools/virt-df.pl:109
25903 msgid ""
25904 "Write out the results in CSV format (comma-separated values).  This format "
25905 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25906 "ABOUT CSV FORMAT> below."
25907 msgstr ""
25908
25909 # type: =item
25910 #: ../tools/virt-df.pl:134
25911 msgid "B<--human-readable> | B<-h>"
25912 msgstr ""
25913
25914 # type: textblock
25915 #: ../tools/virt-df.pl:136
25916 msgid "Print sizes in human-readable format."
25917 msgstr ""
25918
25919 # type: textblock
25920 #: ../tools/virt-df.pl:138
25921 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25922 msgstr ""
25923
25924 # type: =item
25925 #: ../tools/virt-df.pl:144
25926 msgid "B<--inodes> | B<-i>"
25927 msgstr ""
25928
25929 # type: textblock
25930 #: ../tools/virt-df.pl:146
25931 msgid "Print inodes instead of blocks."
25932 msgstr ""
25933
25934 # type: =item
25935 #: ../tools/virt-df.pl:152
25936 msgid "B<--one-per-guest>"
25937 msgstr ""
25938
25939 # type: textblock
25940 #: ../tools/virt-df.pl:154
25941 msgid ""
25942 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25943 "disks from several guests to a single libguestfs appliance."
25944 msgstr ""
25945
25946 # type: textblock
25947 #: ../tools/virt-df.pl:157
25948 msgid "You might use this option in the following circumstances:"
25949 msgstr ""
25950
25951 # type: textblock
25952 #: ../tools/virt-df.pl:163
25953 msgid ""
25954 "If you think an untrusted guest might actively try to exploit the libguestfs "
25955 "appliance kernel, then this prevents one guest from interfering with the "
25956 "stats printed for another guest."
25957 msgstr ""
25958
25959 # type: textblock
25960 #: ../tools/virt-df.pl:169
25961 msgid ""
25962 "If the kernel has a bug which stops it from accessing a filesystem in one "
25963 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25964 "and report stats for further guests."
25965 msgstr ""
25966
25967 # type: =item
25968 #: ../tools/virt-df.pl:180
25969 msgid "B<--uuid>"
25970 msgstr ""
25971
25972 # type: textblock
25973 #: ../tools/virt-df.pl:182
25974 msgid ""
25975 "Print UUIDs instead of names.  This is useful for following a guest even "
25976 "when the guest is migrated or renamed, or when two guests happen to have the "
25977 "same name."
25978 msgstr ""
25979
25980 # type: textblock
25981 #: ../tools/virt-df.pl:186
25982 msgid ""
25983 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25984 "images, we still print the disk image name even when this option is "
25985 "specified."
25986 msgstr ""
25987
25988 # type: =head1
25989 #: ../tools/virt-df.pl:609
25990 msgid "NOTE ABOUT CSV FORMAT"
25991 msgstr ""
25992
25993 # type: textblock
25994 #: ../tools/virt-df.pl:611
25995 msgid ""
25996 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25997 "should be easy to parse, but it is definitely not easy to parse."
25998 msgstr ""
25999
26000 # type: textblock
26001 #: ../tools/virt-df.pl:614
26002 msgid ""
26003 "Myth: Just split fields at commas.  Reality: This does I<not> work "
26004 "reliably.  This example has two columns:"
26005 msgstr ""
26006
26007 # type: verbatim
26008 #: ../tools/virt-df.pl:617
26009 #, no-wrap
26010 msgid ""
26011 " \"foo,bar\",baz\n"
26012 "\n"
26013 msgstr ""
26014
26015 # type: textblock
26016 #: ../tools/virt-df.pl:619
26017 msgid ""
26018 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
26019 "reliably.  This example has one row:"
26020 msgstr ""
26021
26022 # type: verbatim
26023 #: ../tools/virt-df.pl:622
26024 #, no-wrap
26025 msgid ""
26026 " \"foo\n"
26027 " bar\",baz\n"
26028 "\n"
26029 msgstr ""
26030
26031 # type: textblock
26032 #: ../tools/virt-df.pl:625
26033 msgid ""
26034 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
26035 "packaged in major Linux distributions)."
26036 msgstr ""
26037
26038 # type: textblock
26039 #: ../tools/virt-df.pl:628
26040 msgid ""
26041 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
26042 "or Python's built-in csv library)."
26043 msgstr ""
26044
26045 # type: textblock
26046 #: ../tools/virt-df.pl:631
26047 msgid "Most spreadsheets and databases can import CSV directly."
26048 msgstr ""
26049
26050 # type: textblock
26051 #: ../tools/virt-df.pl:642
26052 msgid ""
26053 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26054 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26055 msgstr ""
26056
26057 # type: textblock
26058 #: ../tools/virt-ls.pl:34
26059 msgid "virt-ls - List files in a virtual machine"
26060 msgstr ""
26061
26062 # type: verbatim
26063 #: ../tools/virt-ls.pl:38
26064 #, no-wrap
26065 msgid ""
26066 " virt-ls [--options] domname directory\n"
26067 "\n"
26068 msgstr ""
26069
26070 # type: verbatim
26071 #: ../tools/virt-ls.pl:40
26072 #, no-wrap
26073 msgid ""
26074 " virt-ls [--options] disk.img [disk.img ...] directory\n"
26075 "\n"
26076 msgstr ""
26077
26078 # type: textblock
26079 #: ../tools/virt-ls.pl:44
26080 msgid ""
26081 "C<virt-ls> is a command line tool to list the names of files in a directory "
26082 "inside a virtual machine or disk image."
26083 msgstr ""
26084
26085 # type: textblock
26086 #: ../tools/virt-ls.pl:47
26087 msgid ""
26088 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
26089 "For more complex cases you should look at the L<guestfish(1)> tool."
26090 msgstr ""
26091
26092 # type: textblock
26093 #: ../tools/virt-ls.pl:51
26094 msgid ""
26095 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
26096 "simple listing is like the ordinary L<ls(1)> command:"
26097 msgstr ""
26098
26099 # type: verbatim
26100 #: ../tools/virt-ls.pl:54
26101 #, no-wrap
26102 msgid ""
26103 " $ virt-ls myguest /\n"
26104 " bin\n"
26105 " boot\n"
26106 " [etc.]\n"
26107 "\n"
26108 msgstr ""
26109
26110 # type: textblock
26111 #: ../tools/virt-ls.pl:59
26112 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
26113 msgstr ""
26114
26115 # type: verbatim
26116 #: ../tools/virt-ls.pl:61
26117 #, no-wrap
26118 msgid ""
26119 " $ virt-ls -l myguest /\n"
26120 " total 204\n"
26121 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
26122 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
26123 " [etc.]\n"
26124 "\n"
26125 msgstr ""
26126
26127 # type: textblock
26128 #: ../tools/virt-ls.pl:67
26129 msgid ""
26130 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
26131 "and directories recursively:"
26132 msgstr ""
26133
26134 # type: verbatim
26135 #: ../tools/virt-ls.pl:70
26136 #, no-wrap
26137 msgid ""
26138 " $ virt-ls -R myguest /tmp\n"
26139 " foo\n"
26140 " foo/bar\n"
26141 " [etc.]\n"
26142 "\n"
26143 msgstr ""
26144
26145 # type: textblock
26146 #: ../tools/virt-ls.pl:75
26147 msgid ""
26148 "You I<cannot> combine these options.  To do more complicated things, use "
26149 "L<guestfish(1)>."
26150 msgstr ""
26151
26152 # type: =item
26153 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
26154 msgid "B<-l> | B<--long>"
26155 msgstr ""
26156
26157 # type: =item
26158 #: ../tools/virt-ls.pl:133
26159 msgid "B<-R> | B<--recursive>"
26160 msgstr ""
26161
26162 # type: textblock
26163 #: ../tools/virt-ls.pl:135
26164 msgid ""
26165 "Select the mode.  With neither of these options, C<virt-ls> produces a "
26166 "simple, flat list of the files in the named directory."
26167 msgstr ""
26168
26169 # type: textblock
26170 #: ../tools/virt-ls.pl:138
26171 msgid ""
26172 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26173 "like the plain C<ls -l> command)."
26174 msgstr ""
26175
26176 # type: textblock
26177 #: ../tools/virt-ls.pl:141
26178 msgid ""
26179 "C<virt-ls -R> produces a recursive list of files starting at the named "
26180 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26181 "details."
26182 msgstr ""
26183
26184 # type: textblock
26185 #: ../tools/virt-ls.pl:145
26186 msgid "You cannot combine these options."
26187 msgstr ""
26188
26189 # type: textblock
26190 #: ../tools/virt-ls.pl:234
26191 msgid ""
26192 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26193 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26194 "L<http://libguestfs.org/>."
26195 msgstr ""
26196
26197 # type: textblock
26198 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
26199 msgid "Copyright (C) 2009 Red Hat Inc."
26200 msgstr ""
26201
26202 # type: textblock
26203 #: ../tools/virt-resize.pl:42
26204 msgid "virt-resize - Resize a virtual machine disk"
26205 msgstr ""
26206
26207 # type: verbatim
26208 #: ../tools/virt-resize.pl:46
26209 #, no-wrap
26210 msgid ""
26211 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26212 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26213 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26214 "\n"
26215 msgstr ""
26216
26217 # type: textblock
26218 #: ../tools/virt-resize.pl:52
26219 msgid ""
26220 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26221 "larger or smaller overall, and resizing or deleting any partitions contained "
26222 "within."
26223 msgstr ""
26224
26225 # type: textblock
26226 #: ../tools/virt-resize.pl:56
26227 msgid ""
26228 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26229 "not> be used on live virtual machines - for consistent results, shut the "
26230 "virtual machine down before resizing it."
26231 msgstr ""
26232
26233 # type: textblock
26234 #: ../tools/virt-resize.pl:60
26235 msgid ""
26236 "If you are not familiar with the associated tools: "
26237 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
26238 "we recommend you go and read those manual pages first."
26239 msgstr ""
26240
26241 # type: textblock
26242 #: ../tools/virt-resize.pl:68
26243 msgid ""
26244 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26245 "fill the extra 5GB of space."
26246 msgstr ""
26247
26248 # type: verbatim
26249 #: ../tools/virt-resize.pl:71
26250 #, no-wrap
26251 msgid ""
26252 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26253 " virt-list-partitions -lht olddisk\n"
26254 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26255 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26256 "\n"
26257 msgstr ""
26258
26259 # type: textblock
26260 #: ../tools/virt-resize.pl:76
26261 msgid ""
26262 "As above, but make the /boot partition 200MB bigger, while giving the "
26263 "remaining space to /dev/sda2:"
26264 msgstr ""
26265
26266 # type: verbatim
26267 #: ../tools/virt-resize.pl:79
26268 #, no-wrap
26269 msgid ""
26270 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26271 "\n"
26272 msgstr ""
26273
26274 # type: textblock
26275 #: ../tools/virt-resize.pl:81
26276 msgid "As above, but the output format will be uncompressed qcow2:"
26277 msgstr ""
26278
26279 # type: verbatim
26280 #: ../tools/virt-resize.pl:83
26281 #, no-wrap
26282 msgid ""
26283 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26284 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26285 "\n"
26286 msgstr ""
26287
26288 # type: =head1
26289 #: ../tools/virt-resize.pl:86
26290 msgid "DETAILED USAGE"
26291 msgstr ""
26292
26293 # type: =head2
26294 #: ../tools/virt-resize.pl:88
26295 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26296 msgstr ""
26297
26298 # type: =item
26299 #: ../tools/virt-resize.pl:92
26300 msgid "1. Shut down the virtual machine"
26301 msgstr ""
26302
26303 # type: =item
26304 #: ../tools/virt-resize.pl:94
26305 msgid "2. Locate input disk image"
26306 msgstr ""
26307
26308 # type: textblock
26309 #: ../tools/virt-resize.pl:96
26310 msgid ""
26311 "Locate the input disk image (ie. the file or device on the host containing "
26312 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26313 "dumpxml> like this to find the disk image name:"
26314 msgstr ""
26315
26316 # type: verbatim
26317 #: ../tools/virt-resize.pl:100
26318 #, no-wrap
26319 msgid ""
26320 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26321 " Found 1 nodes:\n"
26322 " -- NODE --\n"
26323 " <source dev=\"/dev/vg/lv_guest\" />\n"
26324 "\n"
26325 msgstr ""
26326
26327 # type: =item
26328 #: ../tools/virt-resize.pl:105
26329 msgid "3. Look at current sizing"
26330 msgstr ""
26331
26332 # type: textblock
26333 #: ../tools/virt-resize.pl:107
26334 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26335 msgstr ""
26336
26337 # type: verbatim
26338 #: ../tools/virt-resize.pl:110
26339 #, no-wrap
26340 msgid ""
26341 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
26342 " /dev/sda1 ext3 101.9M\n"
26343 " /dev/sda2 pv 7.9G\n"
26344 " /dev/sda device 8.0G\n"
26345 "\n"
26346 msgstr ""
26347
26348 # type: textblock
26349 #: ../tools/virt-resize.pl:115
26350 msgid ""
26351 "(This example is a virtual machine with an 8 GB disk which we would like to "
26352 "expand up to 10 GB)."
26353 msgstr ""
26354
26355 # type: =item
26356 #: ../tools/virt-resize.pl:118
26357 msgid "4. Create output disk"
26358 msgstr ""
26359
26360 # type: textblock
26361 #: ../tools/virt-resize.pl:120
26362 msgid ""
26363 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26364 "to store the resized output disk."
26365 msgstr ""
26366
26367 # type: textblock
26368 #: ../tools/virt-resize.pl:123
26369 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26370 msgstr ""
26371
26372 # type: verbatim
26373 #: ../tools/virt-resize.pl:126
26374 #, no-wrap
26375 msgid ""
26376 " # rm -f outdisk\n"
26377 " # truncate -s 10G outdisk\n"
26378 "\n"
26379 msgstr ""
26380
26381 # type: textblock
26382 #: ../tools/virt-resize.pl:129
26383 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26384 msgstr ""
26385
26386 # type: verbatim
26387 #: ../tools/virt-resize.pl:131
26388 #, no-wrap
26389 msgid ""
26390 " # lvcreate -L 10G -n lv_name vg_name\n"
26391 "\n"
26392 msgstr ""
26393
26394 # type: textblock
26395 #: ../tools/virt-resize.pl:133
26396 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26397 msgstr ""
26398
26399 # type: verbatim
26400 #: ../tools/virt-resize.pl:135
26401 #, no-wrap
26402 msgid ""
26403 " # virsh pool-list\n"
26404 " # virsh vol-create-as poolname newvol 10G\n"
26405 "\n"
26406 msgstr ""
26407
26408 # type: =item
26409 #: ../tools/virt-resize.pl:138
26410 msgid "5. Resize"
26411 msgstr ""
26412
26413 # type: textblock
26414 #: ../tools/virt-resize.pl:140
26415 msgid ""
26416 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26417 "file) and the output disk.  The output disk is the one created in the "
26418 "previous step."
26419 msgstr ""
26420
26421 # type: verbatim
26422 #: ../tools/virt-resize.pl:144
26423 #, no-wrap
26424 msgid ""
26425 " # virt-resize indisk outdisk\n"
26426 "\n"
26427 msgstr ""
26428
26429 # type: textblock
26430 #: ../tools/virt-resize.pl:146
26431 msgid ""
26432 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26433 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26434 "larger, then an extra, empty partition is created at the end of the disk "
26435 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26436 "error."
26437 msgstr ""
26438
26439 # type: textblock
26440 #: ../tools/virt-resize.pl:152
26441 msgid ""
26442 "More realistically you'd want to expand existing partitions in the disk "
26443 "image by passing extra options (for the full list see the L</OPTIONS> "
26444 "section below)."
26445 msgstr ""
26446
26447 # type: textblock
26448 #: ../tools/virt-resize.pl:156
26449 msgid ""
26450 "L</--expand> is the most useful option.  It expands the named partition "
26451 "within the disk to fill any extra space:"
26452 msgstr ""
26453
26454 # type: verbatim
26455 #: ../tools/virt-resize.pl:159
26456 #, no-wrap
26457 msgid ""
26458 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26459 "\n"
26460 msgstr ""
26461
26462 # type: textblock
26463 #: ../tools/virt-resize.pl:161
26464 msgid ""
26465 "(In this case, an extra partition is I<not> created at the end of the disk, "
26466 "because there will be no unused space)."
26467 msgstr ""
26468
26469 # type: textblock
26470 #: ../tools/virt-resize.pl:164
26471 msgid ""
26472 "L</--resize> is the other commonly used option.  The following would "
26473 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26474 "rest of the available space:"
26475 msgstr ""
26476
26477 # type: verbatim
26478 #: ../tools/virt-resize.pl:168
26479 #, no-wrap
26480 msgid ""
26481 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26482 "     indisk outdisk\n"
26483 "\n"
26484 msgstr ""
26485
26486 # type: textblock
26487 #: ../tools/virt-resize.pl:171
26488 msgid ""
26489 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26490 "if virt-resize knows how, it will resize the contents, the equivalent of "
26491 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
26492 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
26493 "filesystems, so you would have to online resize them after booting the "
26494 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
26495 "just resizes the PV itself and leaves the user to resize any LVs inside that "
26496 "PV as desired."
26497 msgstr ""
26498
26499 # type: textblock
26500 #: ../tools/virt-resize.pl:180
26501 msgid "Other options are covered below."
26502 msgstr ""
26503
26504 # type: =item
26505 #: ../tools/virt-resize.pl:182
26506 msgid "6. Test"
26507 msgstr ""
26508
26509 # type: textblock
26510 #: ../tools/virt-resize.pl:184
26511 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26512 msgstr ""
26513
26514 # type: textblock
26515 #: ../tools/virt-resize.pl:186
26516 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26517 msgstr ""
26518
26519 # type: verbatim
26520 #: ../tools/virt-resize.pl:188
26521 #, no-wrap
26522 msgid ""
26523 " # virsh edit guestname\n"
26524 "\n"
26525 msgstr ""
26526
26527 # type: textblock
26528 #: ../tools/virt-resize.pl:190
26529 msgid ""
26530 "Change E<lt>source ...E<gt>, see "
26531 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26532 msgstr ""
26533
26534 # type: textblock
26535 #: ../tools/virt-resize.pl:193
26536 msgid "Then start up the domain with the new, resized disk:"
26537 msgstr ""
26538
26539 # type: verbatim
26540 #: ../tools/virt-resize.pl:195
26541 #, no-wrap
26542 msgid ""
26543 " # virsh start guestname\n"
26544 "\n"
26545 msgstr ""
26546
26547 # type: textblock
26548 #: ../tools/virt-resize.pl:197
26549 msgid ""
26550 "and check that it still works.  See also the L</NOTES> section below for "
26551 "additional information."
26552 msgstr ""
26553
26554 # type: =item
26555 #: ../tools/virt-resize.pl:200
26556 msgid "7. Resize LVs etc inside the guest"
26557 msgstr ""
26558
26559 # type: textblock
26560 #: ../tools/virt-resize.pl:202
26561 msgid "(This can also be done offline using L<guestfish(1)>)"
26562 msgstr ""
26563
26564 # type: textblock
26565 #: ../tools/virt-resize.pl:204
26566 msgid ""
26567 "Once the guest has booted you should see the new space available, at least "
26568 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26569 "may need to resize LVs inside PVs, and also resize filesystem types that "
26570 "virt-resize does not know how to expand."
26571 msgstr ""
26572
26573 # type: =head2
26574 #: ../tools/virt-resize.pl:211
26575 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26576 msgstr ""
26577
26578 # type: textblock
26579 #: ../tools/virt-resize.pl:213
26580 msgid ""
26581 "Shrinking is somewhat more complex than expanding, and only an overview is "
26582 "given here."
26583 msgstr ""
26584
26585 # type: textblock
26586 #: ../tools/virt-resize.pl:216
26587 msgid ""
26588 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26589 "filesystems).  The user has to shrink content before passing the disk image "
26590 "to virt-resize, and virt-resize will check that the content has been shrunk "
26591 "properly."
26592 msgstr ""
26593
26594 # type: textblock
26595 #: ../tools/virt-resize.pl:221
26596 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26597 msgstr ""
26598
26599 # type: textblock
26600 #: ../tools/virt-resize.pl:223
26601 msgid ""
26602 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26603 "steps 3 and 4 above to allocate a new disk image."
26604 msgstr ""
26605
26606 # type: textblock
26607 #: ../tools/virt-resize.pl:226
26608 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26609 msgstr ""
26610
26611 # type: =head2
26612 #: ../tools/virt-resize.pl:229
26613 msgid "IGNORING OR DELETING PARTITIONS"
26614 msgstr ""
26615
26616 # type: textblock
26617 #: ../tools/virt-resize.pl:231
26618 msgid ""
26619 "virt-resize also gives a convenient way to ignore or delete partitions when "
26620 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26621 "up the copy where you don't care about the existing contents of a "
26622 "partition.  Deleting a partition removes it completely, but note that it "
26623 "also renumbers any partitions after the one which is deleted, which can "
26624 "leave some guests unbootable."
26625 msgstr ""
26626
26627 # type: =head2
26628 #: ../tools/virt-resize.pl:238
26629 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26630 msgstr ""
26631
26632 # type: textblock
26633 #: ../tools/virt-resize.pl:240
26634 msgid ""
26635 "If the input disk is in qcow2 format, then you may prefer that the output is "
26636 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26637 "the fly.  The output format is simply determined by the format of the empty "
26638 "output container that you provide.  Thus to create qcow2 output, use:"
26639 msgstr ""
26640
26641 # type: verbatim
26642 #: ../tools/virt-resize.pl:246
26643 #, no-wrap
26644 msgid ""
26645 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26646 "\n"
26647 msgstr ""
26648
26649 # type: textblock
26650 #: ../tools/virt-resize.pl:248
26651 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26652 msgstr ""
26653
26654 # type: textblock
26655 #: ../tools/virt-resize.pl:250
26656 msgid "Similarly, to get non-sparse raw output use:"
26657 msgstr ""
26658
26659 # type: verbatim
26660 #: ../tools/virt-resize.pl:252
26661 #, no-wrap
26662 msgid ""
26663 " fallocate -l size outdisk\n"
26664 "\n"
26665 msgstr ""
26666
26667 # type: textblock
26668 #: ../tools/virt-resize.pl:254
26669 msgid ""
26670 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
26671 "if=/dev/zero of=outdisk bs=1M count=..>)"
26672 msgstr ""
26673
26674 # type: textblock
26675 #: ../tools/virt-resize.pl:267
26676 msgid "Display help."
26677 msgstr ""
26678
26679 # type: =item
26680 #: ../tools/virt-resize.pl:281
26681 msgid "B<--resize part=size>"
26682 msgstr ""
26683
26684 # type: textblock
26685 #: ../tools/virt-resize.pl:283
26686 msgid ""
26687 "Resize the named partition (expanding or shrinking it) so that it has the "
26688 "given size."
26689 msgstr ""
26690
26691 # type: textblock
26692 #: ../tools/virt-resize.pl:286
26693 msgid ""
26694 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26695 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26696 "Exabytes; or as a percentage of the current size; or as a relative number or "
26697 "percentage.  For example:"
26698 msgstr ""
26699
26700 # type: verbatim
26701 #: ../tools/virt-resize.pl:291
26702 #, no-wrap
26703 msgid ""
26704 " --resize /dev/sda2=10G\n"
26705 "\n"
26706 msgstr ""
26707
26708 # type: verbatim
26709 #: ../tools/virt-resize.pl:293
26710 #, no-wrap
26711 msgid ""
26712 " --resize /dev/sda4=90%\n"
26713 "\n"
26714 msgstr ""
26715
26716 # type: verbatim
26717 #: ../tools/virt-resize.pl:295
26718 #, no-wrap
26719 msgid ""
26720 " --resize /dev/sda2=+1G\n"
26721 "\n"
26722 msgstr ""
26723
26724 # type: verbatim
26725 #: ../tools/virt-resize.pl:297
26726 #, no-wrap
26727 msgid ""
26728 " --resize /dev/sda2=-200M\n"
26729 "\n"
26730 msgstr ""
26731
26732 # type: verbatim
26733 #: ../tools/virt-resize.pl:299
26734 #, no-wrap
26735 msgid ""
26736 " --resize /dev/sda1=+128K\n"
26737 "\n"
26738 msgstr ""
26739
26740 # type: verbatim
26741 #: ../tools/virt-resize.pl:301
26742 #, no-wrap
26743 msgid ""
26744 " --resize /dev/sda1=+10%\n"
26745 "\n"
26746 msgstr ""
26747
26748 # type: verbatim
26749 #: ../tools/virt-resize.pl:303
26750 #, no-wrap
26751 msgid ""
26752 " --resize /dev/sda1=-10%\n"
26753 "\n"
26754 msgstr ""
26755
26756 # type: textblock
26757 #: ../tools/virt-resize.pl:305
26758 msgid ""
26759 "You can increase the size of any partition.  Virt-resize will expand the "
26760 "direct content of the partition if it knows how (see C<--expand> below)."
26761 msgstr ""
26762
26763 # type: textblock
26764 #: ../tools/virt-resize.pl:309
26765 msgid ""
26766 "You can only I<decrease> the size of partitions that contain filesystems or "
26767 "PVs which have already been shrunk.  Virt-resize will check this has been "
26768 "done before proceeding, or else will print an error (see also "
26769 "C<--resize-force>)."
26770 msgstr ""
26771
26772 # type: textblock
26773 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
26774 msgid "You can give this option multiple times."
26775 msgstr ""
26776
26777 # type: =item
26778 #: ../tools/virt-resize.pl:320
26779 msgid "B<--resize-force part=size>"
26780 msgstr ""
26781
26782 # type: textblock
26783 #: ../tools/virt-resize.pl:322
26784 msgid ""
26785 "This is the same as C<--resize> except that it will let you decrease the "
26786 "size of any partition.  Generally this means you will lose any data which "
26787 "was at the end of the partition you shrink, but you may not care about that "
26788 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26789 "as a swap partition)."
26790 msgstr ""
26791
26792 # type: textblock
26793 #: ../tools/virt-resize.pl:328
26794 msgid "See also the C<--ignore> option."
26795 msgstr ""
26796
26797 # type: =item
26798 #: ../tools/virt-resize.pl:334
26799 msgid "B<--expand part>"
26800 msgstr ""
26801
26802 # type: textblock
26803 #: ../tools/virt-resize.pl:336
26804 msgid ""
26805 "Expand the named partition so it uses up all extra space (space left over "
26806 "after any other resize changes that you request have been done)."
26807 msgstr ""
26808
26809 # type: textblock
26810 #: ../tools/virt-resize.pl:339
26811 msgid ""
26812 "If virt-resize knows how, it will expand the direct content of the "
26813 "partition.  For example, if the partition is an LVM PV, it will expand the "
26814 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26815 "content it doesn't know about alone."
26816 msgstr ""
26817
26818 # type: textblock
26819 #: ../tools/virt-resize.pl:344
26820 msgid "Currently virt-resize can resize:"
26821 msgstr ""
26822
26823 # type: textblock
26824 #: ../tools/virt-resize.pl:350
26825 msgid ""
26826 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26827 "partition."
26828 msgstr ""
26829
26830 # type: textblock
26831 #: ../tools/virt-resize.pl:355
26832 msgid ""
26833 "NTFS filesystems contained directly in a partition, if libguestfs was "
26834 "compiled with support for NTFS."
26835 msgstr ""
26836
26837 # type: textblock
26838 #: ../tools/virt-resize.pl:358
26839 msgid ""
26840 "The filesystem must have been shut down consistently last time it was used.  "
26841 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26842 "consistency check, so at the first boot after resizing Windows will check "
26843 "the disk."
26844 msgstr ""
26845
26846 # type: textblock
26847 #: ../tools/virt-resize.pl:365
26848 msgid ""
26849 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26850 "inside the PV.  The user will have to resize LVs as desired."
26851 msgstr ""
26852
26853 # type: textblock
26854 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26855 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26856 msgstr ""
26857
26858 # type: =item
26859 #: ../tools/virt-resize.pl:377
26860 msgid "B<--shrink part>"
26861 msgstr ""
26862
26863 # type: textblock
26864 #: ../tools/virt-resize.pl:379
26865 msgid ""
26866 "Shrink the named partition until the overall disk image fits in the "
26867 "destination.  The named partition B<must> contain a filesystem or PV which "
26868 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26869 "online tools).  Virt-resize will check this and give an error if it has not "
26870 "been done."
26871 msgstr ""
26872
26873 # type: textblock
26874 #: ../tools/virt-resize.pl:385
26875 msgid ""
26876 "The amount by which the overall disk must be shrunk (after carrying out all "
26877 "other operations requested by the user) is called the \"deficit\".  For "
26878 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26879 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26880 "would give an error unless the user specified a partition to shrink and that "
26881 "partition had more than a gigabyte of free space."
26882 msgstr ""
26883
26884 # type: =item
26885 #: ../tools/virt-resize.pl:399
26886 msgid "B<--ignore part>"
26887 msgstr ""
26888
26889 # type: textblock
26890 #: ../tools/virt-resize.pl:401
26891 msgid ""
26892 "Ignore the named partition.  Effectively this means the partition is "
26893 "allocated on the destination disk, but the content is not copied across from "
26894 "the source disk.  The content of the partition will be blank (all zero "
26895 "bytes)."
26896 msgstr ""
26897
26898 # type: =item
26899 #: ../tools/virt-resize.pl:412
26900 msgid "B<--delete part>"
26901 msgstr ""
26902
26903 # type: textblock
26904 #: ../tools/virt-resize.pl:414
26905 msgid ""
26906 "Delete the named partition.  It would be more accurate to describe this as "
26907 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26908 "the original disk image is left intact."
26909 msgstr ""
26910
26911 # type: textblock
26912 #: ../tools/virt-resize.pl:418
26913 msgid ""
26914 "Note that when you delete a partition, then anything contained in the "
26915 "partition is also deleted.  Furthermore, this causes any partitions that "
26916 "come after to be I<renumbered>, which can easily make your guest unbootable."
26917 msgstr ""
26918
26919 # type: =item
26920 #: ../tools/virt-resize.pl:429
26921 msgid "B<--LV-expand logvol>"
26922 msgstr ""
26923
26924 # type: textblock
26925 #: ../tools/virt-resize.pl:431
26926 msgid ""
26927 "This takes the logical volume and, as a final step, expands it to fill all "
26928 "the space available in its volume group.  A typical usage, assuming a Linux "
26929 "guest with a single PV C</dev/sda2> and a root device called "
26930 "C</dev/vg_guest/lv_root> would be:"
26931 msgstr ""
26932
26933 # type: verbatim
26934 #: ../tools/virt-resize.pl:436
26935 #, no-wrap
26936 msgid ""
26937 " virt-resize indisk outdisk \\\n"
26938 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26939 "\n"
26940 msgstr ""
26941
26942 # type: textblock
26943 #: ../tools/virt-resize.pl:439
26944 msgid ""
26945 "This would first expand the partition (and PV), and then expand the root "
26946 "device to fill the extra space in the PV."
26947 msgstr ""
26948
26949 # type: textblock
26950 #: ../tools/virt-resize.pl:442
26951 msgid ""
26952 "The contents of the LV are also resized if virt-resize knows how to do "
26953 "that.  You can stop virt-resize from trying to expand the content by using "
26954 "the option C<--no-expand-content>."
26955 msgstr ""
26956
26957 # type: textblock
26958 #: ../tools/virt-resize.pl:446
26959 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26960 msgstr ""
26961
26962 # type: textblock
26963 #: ../tools/virt-resize.pl:449
26964 msgid ""
26965 "You can give this option multiple times, I<but> it doesn't make sense to do "
26966 "this unless the logical volumes you specify are all in different volume "
26967 "groups."
26968 msgstr ""
26969
26970 # type: =item
26971 #: ../tools/virt-resize.pl:457
26972 msgid "B<--no-copy-boot-loader>"
26973 msgstr ""
26974
26975 # type: textblock
26976 #: ../tools/virt-resize.pl:459
26977 msgid ""
26978 "By default, virt-resize copies over some sectors at the start of the disk "
26979 "(up to the beginning of the first partition).  Commonly these sectors "
26980 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26981 "in order for the guest to boot correctly."
26982 msgstr ""
26983
26984 # type: textblock
26985 #: ../tools/virt-resize.pl:464
26986 msgid ""
26987 "If you specify this flag, then this initial copy is not done.  You may need "
26988 "to reinstall the boot loader in this case."
26989 msgstr ""
26990
26991 # type: =item
26992 #: ../tools/virt-resize.pl:472
26993 msgid "B<--no-extra-partition>"
26994 msgstr ""
26995
26996 # type: textblock
26997 #: ../tools/virt-resize.pl:474
26998 msgid ""
26999 "By default, virt-resize creates an extra partition if there is any extra, "
27000 "unused space after all resizing has happened.  Use this option to prevent "
27001 "the extra partition from being created.  If you do this then the extra space "
27002 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27003 "tool in the guest."
27004 msgstr ""
27005
27006 # type: textblock
27007 #: ../tools/virt-resize.pl:480
27008 msgid ""
27009 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27010 "will be created."
27011 msgstr ""
27012
27013 # type: =item
27014 #: ../tools/virt-resize.pl:487
27015 msgid "B<--no-expand-content>"
27016 msgstr ""
27017
27018 # type: textblock
27019 #: ../tools/virt-resize.pl:489
27020 msgid ""
27021 "By default, virt-resize will try to expand the direct contents of "
27022 "partitions, if it knows how (see C<--expand> option above)."
27023 msgstr ""
27024
27025 # type: textblock
27026 #: ../tools/virt-resize.pl:492
27027 msgid ""
27028 "If you give the C<--no-expand-content> option then virt-resize will not "
27029 "attempt this."
27030 msgstr ""
27031
27032 # type: =item
27033 #: ../tools/virt-resize.pl:499
27034 msgid "B<-d> | B<--debug>"
27035 msgstr ""
27036
27037 # type: =item
27038 #: ../tools/virt-resize.pl:507
27039 msgid "B<-n> | B<--dryrun>"
27040 msgstr ""
27041
27042 # type: textblock
27043 #: ../tools/virt-resize.pl:509
27044 msgid "Print a summary of what would be done, but don't do anything."
27045 msgstr ""
27046
27047 # type: =item
27048 #: ../tools/virt-resize.pl:515
27049 msgid "B<-q> | B<--quiet>"
27050 msgstr ""
27051
27052 # type: textblock
27053 #: ../tools/virt-resize.pl:517
27054 msgid "Don't print the summary."
27055 msgstr ""
27056
27057 # type: textblock
27058 #: ../tools/virt-resize.pl:525
27059 msgid ""
27060 "Specify the format of the input disk image.  If this flag is not given then "
27061 "it is auto-detected from the image itself."
27062 msgstr ""
27063
27064 # type: textblock
27065 #: ../tools/virt-resize.pl:531
27066 msgid ""
27067 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27068 "AND NON-SPARSE RAW FORMATS>."
27069 msgstr ""
27070
27071 # type: =item
27072 #: ../tools/virt-resize.pl:538
27073 msgid "B<--output-format> raw"
27074 msgstr ""
27075
27076 # type: textblock
27077 #: ../tools/virt-resize.pl:540
27078 msgid ""
27079 "Specify the format of the output disk image.  If this flag is not given then "
27080 "it is auto-detected from the image itself."
27081 msgstr ""
27082
27083 # type: textblock
27084 #: ../tools/virt-resize.pl:546
27085 msgid ""
27086 "Note that you still need to create the output disk with the right format.  "
27087 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27088 msgstr ""
27089
27090 # type: =head2
27091 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
27092 msgid "NOTES"
27093 msgstr ""
27094
27095 # type: =head2
27096 #: ../tools/virt-resize.pl:1424
27097 msgid "\"Partition 1 does not end on cylinder boundary.\""
27098 msgstr ""
27099
27100 # type: textblock
27101 #: ../tools/virt-resize.pl:1426
27102 msgid ""
27103 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27104 "means the partitions will not be aligned to the ancient CHS geometry.  "
27105 "However CHS geometry is meaningless for disks manufactured since the early "
27106 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27107 "cylinders is not required by any modern operating system."
27108 msgstr ""
27109
27110 # type: =head2
27111 #: ../tools/virt-resize.pl:1433
27112 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27113 msgstr ""
27114
27115 # type: textblock
27116 #: ../tools/virt-resize.pl:1435
27117 msgid ""
27118 "In Windows Vista and later versions, Microsoft switched to using a separate "
27119 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27120 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27121 "the boot partition.  Doing so seems to break the guest completely.  However "
27122 "expanding the second partition (ie. C: drive) should work."
27123 msgstr ""
27124
27125 # type: textblock
27126 #: ../tools/virt-resize.pl:1442
27127 msgid ""
27128 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27129 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27130 "it find errors) is nothing to worry about."
27131 msgstr ""
27132
27133 # type: =head2
27134 #: ../tools/virt-resize.pl:1446
27135 msgid "GUEST BOOT STUCK AT \"GRUB\""
27136 msgstr ""
27137
27138 # type: textblock
27139 #: ../tools/virt-resize.pl:1448
27140 msgid ""
27141 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27142 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27143 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27144 "although we think is to do with partition alignment."
27145 msgstr ""
27146
27147 # type: verbatim
27148 #: ../tools/virt-resize.pl:1453
27149 #, no-wrap
27150 msgid ""
27151 " guestfish -i -a newdisk\n"
27152 " ><fs> cat /boot/grub/device.map\n"
27153 " # check the contents of this file are sensible or\n"
27154 " # edit the file if necessary\n"
27155 " ><fs> grub-install / /dev/vda\n"
27156 " ><fs> exit\n"
27157 "\n"
27158 msgstr ""
27159
27160 # type: textblock
27161 #: ../tools/virt-resize.pl:1460
27162 msgid ""
27163 "For more flexible guest reconfiguration, including if you need to specify "
27164 "other parameters to grub-install, use L<virt-rescue(1)>."
27165 msgstr ""
27166
27167 # type: =head1
27168 #: ../tools/virt-resize.pl:1463
27169 msgid "ALTERNATIVE TOOLS"
27170 msgstr ""
27171
27172 # type: textblock
27173 #: ../tools/virt-resize.pl:1465
27174 msgid ""
27175 "There are several proprietary tools for resizing partitions.  We won't "
27176 "mention any here."
27177 msgstr ""
27178
27179 # type: textblock
27180 #: ../tools/virt-resize.pl:1468
27181 msgid ""
27182 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27183 "operations on disk images.  They can resize and move partitions, but I don't "
27184 "think they can do anything with the contents, and they certainly don't "
27185 "understand LVM."
27186 msgstr ""
27187
27188 # type: textblock
27189 #: ../tools/virt-resize.pl:1473
27190 msgid ""
27191 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27192 "but at a much lower level.  You will probably end up hand-calculating sector "
27193 "offsets, which is something that virt-resize was designed to avoid.  If you "
27194 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27195 "C<--debug> flag."
27196 msgstr ""
27197
27198 # type: textblock
27199 #: ../tools/virt-resize.pl:1488
27200 msgid ""
27201 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27202 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27203 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
27204 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
27205 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27206 msgstr ""
27207
27208 # type: textblock
27209 #: ../tools/virt-list-filesystems.pl:32
27210 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27211 msgstr ""
27212
27213 # type: verbatim
27214 #: ../tools/virt-list-filesystems.pl:36
27215 #, no-wrap
27216 msgid ""
27217 " virt-list-filesystems [--options] domname\n"
27218 "\n"
27219 msgstr ""
27220
27221 # type: verbatim
27222 #: ../tools/virt-list-filesystems.pl:38
27223 #, no-wrap
27224 msgid ""
27225 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27226 "\n"
27227 msgstr ""
27228
27229 # type: textblock
27230 #: ../tools/virt-list-filesystems.pl:42
27231 msgid ""
27232 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27233 "are contained in a virtual machine or disk image."
27234 msgstr ""
27235
27236 # type: textblock
27237 #: ../tools/virt-list-filesystems.pl:46
27238 msgid ""
27239 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27240 "functionality.  For more complex cases you should look at the "
27241 "L<guestfish(1)> tool."
27242 msgstr ""
27243
27244 # type: textblock
27245 #: ../tools/virt-list-filesystems.pl:105
27246 msgid ""
27247 "With this option, C<virt-list-filesystems> displays the type of each "
27248 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27249 msgstr ""
27250
27251 # type: =item
27252 #: ../tools/virt-list-filesystems.pl:112
27253 msgid "B<-a> | B<--all>"
27254 msgstr ""
27255
27256 # type: textblock
27257 #: ../tools/virt-list-filesystems.pl:114
27258 msgid ""
27259 "Normally we only show mountable filesystems.  If this option is given then "
27260 "swap devices are shown too."
27261 msgstr ""
27262
27263 # type: textblock
27264 #: ../tools/virt-list-filesystems.pl:188
27265 msgid ""
27266 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27267 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27268 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27269 msgstr ""
27270
27271 # type: textblock
27272 #: ../tools/virt-cat.pl:33
27273 msgid "virt-cat - Display a file in a virtual machine"
27274 msgstr ""
27275
27276 # type: verbatim
27277 #: ../tools/virt-cat.pl:37
27278 #, no-wrap
27279 msgid ""
27280 " virt-cat [--options] domname file\n"
27281 "\n"
27282 msgstr ""
27283
27284 # type: verbatim
27285 #: ../tools/virt-cat.pl:39
27286 #, no-wrap
27287 msgid ""
27288 " virt-cat [--options] disk.img [disk.img ...] file\n"
27289 "\n"
27290 msgstr ""
27291
27292 # type: textblock
27293 #: ../tools/virt-cat.pl:43
27294 msgid ""
27295 "C<virt-cat> is a command line tool to display the contents of C<file> where "
27296 "C<file> exists in the named virtual machine (or disk image)."
27297 msgstr ""
27298
27299 # type: textblock
27300 #: ../tools/virt-cat.pl:46
27301 msgid ""
27302 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
27303 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
27304 "tool."
27305 msgstr ""
27306
27307 # type: textblock
27308 #: ../tools/virt-cat.pl:52
27309 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
27310 msgstr ""
27311
27312 # type: verbatim
27313 #: ../tools/virt-cat.pl:55
27314 #, no-wrap
27315 msgid ""
27316 " virt-cat mydomain /etc/fstab\n"
27317 "\n"
27318 msgstr ""
27319
27320 # type: textblock
27321 #: ../tools/virt-cat.pl:57
27322 msgid "List syslog messages from a VM:"
27323 msgstr ""
27324
27325 # type: verbatim
27326 #: ../tools/virt-cat.pl:59
27327 #, no-wrap
27328 msgid ""
27329 " virt-cat mydomain /var/log/messages | tail\n"
27330 "\n"
27331 msgstr ""
27332
27333 # type: textblock
27334 #: ../tools/virt-cat.pl:61
27335 msgid "Find out what DHCP IP address a VM acquired:"
27336 msgstr ""
27337
27338 # type: verbatim
27339 #: ../tools/virt-cat.pl:63
27340 #, no-wrap
27341 msgid ""
27342 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
27343 "\n"
27344 msgstr ""
27345
27346 # type: textblock
27347 #: ../tools/virt-cat.pl:65
27348 msgid "Find out what packages were recently installed:"
27349 msgstr ""
27350
27351 # type: verbatim
27352 #: ../tools/virt-cat.pl:67
27353 #, no-wrap
27354 msgid ""
27355 " virt-cat mydomain /var/log/yum.log | tail\n"
27356 "\n"
27357 msgstr ""
27358
27359 # type: textblock
27360 #: ../tools/virt-cat.pl:69
27361 msgid "Find out who is logged on inside a virtual machine:"
27362 msgstr ""
27363
27364 # type: verbatim
27365 #: ../tools/virt-cat.pl:71
27366 #, no-wrap
27367 msgid ""
27368 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
27369 " who /tmp/utmp\n"
27370 "\n"
27371 msgstr ""
27372
27373 # type: textblock
27374 #: ../tools/virt-cat.pl:74
27375 msgid "or who was logged on:"
27376 msgstr ""
27377
27378 # type: verbatim
27379 #: ../tools/virt-cat.pl:76
27380 #, no-wrap
27381 msgid ""
27382 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
27383 " last -f /tmp/wtmp\n"
27384 "\n"
27385 msgstr ""
27386
27387 # type: textblock
27388 #: ../tools/virt-cat.pl:187
27389 msgid ""
27390 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
27391 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27392 msgstr ""
27393
27394 # type: textblock
27395 #: ../tools/virt-tar.pl:33
27396 msgid "virt-tar - Extract or upload files to a virtual machine"
27397 msgstr ""
27398
27399 # type: verbatim
27400 #: ../tools/virt-tar.pl:37
27401 #, no-wrap
27402 msgid ""
27403 " virt-tar [--options] -x domname directory tarball\n"
27404 "\n"
27405 msgstr ""
27406
27407 # type: verbatim
27408 #: ../tools/virt-tar.pl:39
27409 #, no-wrap
27410 msgid ""
27411 " virt-tar [--options] -u domname tarball directory\n"
27412 "\n"
27413 msgstr ""
27414
27415 # type: verbatim
27416 #: ../tools/virt-tar.pl:41
27417 #, no-wrap
27418 msgid ""
27419 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27420 "\n"
27421 msgstr ""
27422
27423 # type: verbatim
27424 #: ../tools/virt-tar.pl:43
27425 #, no-wrap
27426 msgid ""
27427 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27428 "\n"
27429 msgstr ""
27430
27431 # type: textblock
27432 #: ../tools/virt-tar.pl:47
27433 msgid "Download C</home> from the VM into a local tarball:"
27434 msgstr ""
27435
27436 # type: verbatim
27437 #: ../tools/virt-tar.pl:49
27438 #, no-wrap
27439 msgid ""
27440 " virt-tar -x domname /home home.tar\n"
27441 "\n"
27442 msgstr ""
27443
27444 # type: verbatim
27445 #: ../tools/virt-tar.pl:51
27446 #, no-wrap
27447 msgid ""
27448 " virt-tar -zx domname /home home.tar.gz\n"
27449 "\n"
27450 msgstr ""
27451
27452 # type: textblock
27453 #: ../tools/virt-tar.pl:53
27454 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27455 msgstr ""
27456
27457 # type: verbatim
27458 #: ../tools/virt-tar.pl:55
27459 #, no-wrap
27460 msgid ""
27461 " virt-tar -u domname uploadstuff.tar /tmp\n"
27462 "\n"
27463 msgstr ""
27464
27465 # type: verbatim
27466 #: ../tools/virt-tar.pl:57
27467 #, no-wrap
27468 msgid ""
27469 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27470 "\n"
27471 msgstr ""
27472
27473 # type: textblock
27474 #: ../tools/virt-tar.pl:61
27475 msgid ""
27476 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27477 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27478 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27479 msgstr ""
27480
27481 # type: textblock
27482 #: ../tools/virt-tar.pl:66
27483 msgid ""
27484 "You can use C<-x> (extract) on live virtual machines, but you might get "
27485 "inconsistent results or errors if there is filesystem activity inside the "
27486 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27487 "work, but the only way to guarantee consistent results is if the virtual "
27488 "machine is shut down."
27489 msgstr ""
27490
27491 # type: textblock
27492 #: ../tools/virt-tar.pl:74
27493 msgid ""
27494 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27495 "parts of a guest filesystem.  There are many possibilities: making backups, "
27496 "uploading data files, snooping on guest activity, fixing or customizing "
27497 "guests, etc."
27498 msgstr ""
27499
27500 # type: textblock
27501 #: ../tools/virt-tar.pl:79
27502 msgid ""
27503 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27504 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27505 "should look at the L<guestfish(1)> tool."
27506 msgstr ""
27507
27508 # type: textblock
27509 #: ../tools/virt-tar.pl:83
27510 msgid ""
27511 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27512 "its contents (recursively) from the virtual machine into a local tarball.  "
27513 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27514 "virtual machine.  You cannot use these two options together."
27515 msgstr ""
27516
27517 # type: textblock
27518 #: ../tools/virt-tar.pl:89
27519 msgid ""
27520 "In addition, you may need to use the C<-z> (gZip) option to enable "
27521 "compression.  When uploading, you have to specify C<-z> if the upload file "
27522 "is compressed because virt-tar won't detect this on its own."
27523 msgstr ""
27524
27525 # type: textblock
27526 #: ../tools/virt-tar.pl:93
27527 msgid ""
27528 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27529 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27530 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27531 "the L<libguestfs(3)> API)."
27532 msgstr ""
27533
27534 # type: =item
27535 #: ../tools/virt-tar.pl:151
27536 msgid "B<-x> | B<--extract> | B<--download>"
27537 msgstr ""
27538
27539 # type: =item
27540 #: ../tools/virt-tar.pl:153
27541 msgid "B<-u> | B<--upload>"
27542 msgstr ""
27543
27544 # type: textblock
27545 #: ../tools/virt-tar.pl:155
27546 msgid ""
27547 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27548 "local tarball."
27549 msgstr ""
27550
27551 # type: textblock
27552 #: ../tools/virt-tar.pl:158
27553 msgid ""
27554 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27555 "Please read the L</WARNING> section above before using this option."
27556 msgstr ""
27557
27558 # type: textblock
27559 #: ../tools/virt-tar.pl:162
27560 msgid "You must specify exactly one of these options."
27561 msgstr ""
27562
27563 # type: =item
27564 #: ../tools/virt-tar.pl:168
27565 msgid "B<-z> | B<--gzip>"
27566 msgstr ""
27567
27568 # type: textblock
27569 #: ../tools/virt-tar.pl:170
27570 msgid "Specify that the input or output tarball is gzip-compressed."
27571 msgstr ""
27572
27573 # type: textblock
27574 #: ../tools/virt-tar.pl:283
27575 msgid ""
27576 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27577 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27578 "L<http://libguestfs.org/>."
27579 msgstr ""
27580
27581 # type: textblock
27582 #: ../tools/virt-rescue.pl:33
27583 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27584 msgstr ""
27585
27586 # type: verbatim
27587 #: ../tools/virt-rescue.pl:37
27588 #, no-wrap
27589 msgid ""
27590 " virt-rescue [--options] domname\n"
27591 "\n"
27592 msgstr ""
27593
27594 # type: verbatim
27595 #: ../tools/virt-rescue.pl:39
27596 #, no-wrap
27597 msgid ""
27598 " virt-rescue [--options] disk.img [disk.img ...]\n"
27599 "\n"
27600 msgstr ""
27601
27602 # type: textblock
27603 #: ../tools/virt-rescue.pl:43
27604 msgid ""
27605 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27606 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27607 "you from doing this, but doesn't catch all cases."
27608 msgstr ""
27609
27610 # type: textblock
27611 #: ../tools/virt-rescue.pl:47
27612 msgid ""
27613 "However if you use the I<--ro> (read only) option, then you can attach a "
27614 "shell to a live virtual machine.  The results might be strange or "
27615 "inconsistent at times but you won't get disk corruption."
27616 msgstr ""
27617
27618 # type: textblock
27619 #: ../tools/virt-rescue.pl:53
27620 msgid ""
27621 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27622 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27623 "recovery tools which you can use to examine or rescue a virtual machine or "
27624 "disk image."
27625 msgstr ""
27626
27627 # type: textblock
27628 #: ../tools/virt-rescue.pl:58
27629 msgid ""
27630 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27631 "on disk image(s):"
27632 msgstr ""
27633
27634 # type: verbatim
27635 #: ../tools/virt-rescue.pl:61
27636 #, no-wrap
27637 msgid ""
27638 " virt-rescue GuestName\n"
27639 "\n"
27640 msgstr ""
27641
27642 # type: verbatim
27643 #: ../tools/virt-rescue.pl:63
27644 #, no-wrap
27645 msgid ""
27646 " virt-rescue --ro /path/to/disk.img\n"
27647 "\n"
27648 msgstr ""
27649
27650 # type: verbatim
27651 #: ../tools/virt-rescue.pl:65
27652 #, no-wrap
27653 msgid ""
27654 " virt-rescue /dev/sdc\n"
27655 "\n"
27656 msgstr ""
27657
27658 # type: textblock
27659 #: ../tools/virt-rescue.pl:67
27660 msgid "For live VMs you I<must> use the --ro option."
27661 msgstr ""
27662
27663 # type: textblock
27664 #: ../tools/virt-rescue.pl:69
27665 msgid ""
27666 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27667 "in an interactive bash shell where you can use many ordinary Linux "
27668 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27669 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27670 "is an empty directory called C</sysroot> where you can mount filesystems."
27671 msgstr ""
27672
27673 # type: textblock
27674 #: ../tools/virt-rescue.pl:76
27675 msgid ""
27676 "In the example below, we list logical volumes, then choose one to mount "
27677 "under C</sysroot>:"
27678 msgstr ""
27679
27680 # type: verbatim
27681 #: ../tools/virt-rescue.pl:79
27682 #, no-wrap
27683 msgid ""
27684 " ><rescue> lvs\n"
27685 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27686 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27687 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27688 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27689 " ><rescue> ls /sysroot\n"
27690 "\n"
27691 msgstr ""
27692
27693 # type: textblock
27694 #: ../tools/virt-rescue.pl:86
27695 msgid ""
27696 "If you don't know what filesystems are available on the virtual machine then "
27697 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27698 msgstr ""
27699
27700 # type: textblock
27701 #: ../tools/virt-rescue.pl:92
27702 msgid ""
27703 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27704 "virtual machine.  For example you can use it on a blank file if you want to "
27705 "partition that file (although we would recommend using L<guestfish(1)> "
27706 "instead as it is more suitable for this purpose).  You can even use "
27707 "virt-rescue on things like SD cards."
27708 msgstr ""
27709
27710 # type: textblock
27711 #: ../tools/virt-rescue.pl:98
27712 msgid ""
27713 "This tool is just designed for quick interactive hacking on a virtual "
27714 "machine.  For more structured access to a virtual machine disk image, you "
27715 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27716 "make scripted changes to guests, use L<guestfish(1)>."
27717 msgstr ""
27718
27719 # type: =item
27720 #: ../tools/virt-rescue.pl:127
27721 msgid "B<--append kernelopts>"
27722 msgstr ""
27723
27724 # type: textblock
27725 #: ../tools/virt-rescue.pl:129
27726 msgid "Pass additional options to the rescue kernel."
27727 msgstr ""
27728
27729 # type: =item
27730 #: ../tools/virt-rescue.pl:164
27731 msgid "B<--memsize MB> | B<-m MB>"
27732 msgstr ""
27733
27734 # type: textblock
27735 #: ../tools/virt-rescue.pl:166
27736 msgid ""
27737 "Change the amount of memory allocated to the rescue system.  The default is "
27738 "set by libguestfs and is small but adequate for running system tools.  The "
27739 "occasional program might need more memory.  The parameter is specified in "
27740 "megabytes."
27741 msgstr ""
27742
27743 # type: =item
27744 #: ../tools/virt-rescue.pl:175
27745 msgid "B<--network MB>"
27746 msgstr ""
27747
27748 # type: textblock
27749 #: ../tools/virt-rescue.pl:177
27750 msgid "Enable QEMU user networking in the guest."
27751 msgstr ""
27752
27753 # type: =item
27754 #: ../tools/virt-rescue.pl:183
27755 msgid "B<--ro> | B<-r>"
27756 msgstr ""
27757
27758 # type: textblock
27759 #: ../tools/virt-rescue.pl:185
27760 msgid "Open the image read-only."
27761 msgstr ""
27762
27763 # type: textblock
27764 #: ../tools/virt-rescue.pl:197
27765 msgid ""
27766 "Enable SELinux in the rescue appliance.  You should read "
27767 "L<guestfs(3)/SELINUX> before using this option."
27768 msgstr ""
27769
27770 # type: textblock
27771 #: ../tools/virt-rescue.pl:257
27772 msgid ""
27773 "Several environment variables affect virt-rescue.  See "
27774 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
27775 msgstr ""
27776
27777 # type: textblock
27778 #: ../tools/virt-rescue.pl:269
27779 msgid ""
27780 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
27781 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27782 msgstr ""
27783
27784 # type: textblock
27785 #: ../tools/virt-make-fs.pl:37
27786 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27787 msgstr ""
27788
27789 # type: verbatim
27790 #: ../tools/virt-make-fs.pl:41
27791 #, no-wrap
27792 msgid ""
27793 " virt-make-fs [--options] input.tar output.img\n"
27794 "\n"
27795 msgstr ""
27796
27797 # type: verbatim
27798 #: ../tools/virt-make-fs.pl:43
27799 #, no-wrap
27800 msgid ""
27801 " virt-make-fs [--options] input.tar.gz output.img\n"
27802 "\n"
27803 msgstr ""
27804
27805 # type: verbatim
27806 #: ../tools/virt-make-fs.pl:45
27807 #, no-wrap
27808 msgid ""
27809 " virt-make-fs [--options] directory output.img\n"
27810 "\n"
27811 msgstr ""
27812
27813 # type: textblock
27814 #: ../tools/virt-make-fs.pl:49
27815 msgid ""
27816 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27817 "archive or some files in a directory.  It is similar to tools like "
27818 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
27819 "it can create common filesystem types like ext2/3 or NTFS, which can be "
27820 "useful if you want to attach these filesystems to existing virtual machines "
27821 "(eg. to import large amounts of read-only data to a VM)."
27822 msgstr ""
27823
27824 # type: textblock
27825 #: ../tools/virt-make-fs.pl:57
27826 msgid "Basic usage is:"
27827 msgstr ""
27828
27829 # type: verbatim
27830 #: ../tools/virt-make-fs.pl:59
27831 #, no-wrap
27832 msgid ""
27833 " virt-make-fs input output\n"
27834 "\n"
27835 msgstr ""
27836
27837 # type: textblock
27838 #: ../tools/virt-make-fs.pl:61
27839 msgid ""
27840 "where C<input> is either a directory containing files that you want to add, "
27841 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27842 "C<output> is a disk image.  The input type is detected automatically.  The "
27843 "output disk image defaults to a raw ext2 image unless you specify extra "
27844 "flags (see L</OPTIONS> below)."
27845 msgstr ""
27846
27847 # type: =head2
27848 #: ../tools/virt-make-fs.pl:67
27849 msgid "EXTRA SPACE"
27850 msgstr ""
27851
27852 # type: textblock
27853 #: ../tools/virt-make-fs.pl:69
27854 msgid ""
27855 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27856 "the files that it contains, but might have extra space.  Depending on how "
27857 "you are going to use the output, you might think this extra space is wasted "
27858 "and want to minimize it, or you might want to leave space so that more files "
27859 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27860 "but you can use the C<--size> flag to leave space in the filesystem if you "
27861 "want it."
27862 msgstr ""
27863
27864 # type: textblock
27865 #: ../tools/virt-make-fs.pl:77
27866 msgid ""
27867 "An alternative way to leave extra space but not make the output image any "
27868 "bigger is to use an alternative disk image format (instead of the default "
27869 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27870 "image format (check your hypervisor supports this before using it).  This "
27871 "allows you to choose a large C<--size> but the extra space won't actually be "
27872 "allocated in the image until you try to store something in it."
27873 msgstr ""
27874
27875 # type: textblock
27876 #: ../tools/virt-make-fs.pl:85
27877 msgid ""
27878 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27879 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
27880 "virt-make-resize to build another image from scratch."
27881 msgstr ""
27882
27883 # type: =head3
27884 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
27885 msgid "EXAMPLE"
27886 msgstr ""
27887
27888 # type: verbatim
27889 #: ../tools/virt-make-fs.pl:91
27890 #, no-wrap
27891 msgid ""
27892 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27893 "\n"
27894 msgstr ""
27895
27896 # type: =head2
27897 #: ../tools/virt-make-fs.pl:93
27898 msgid "FILESYSTEM TYPE"
27899 msgstr ""
27900
27901 # type: textblock
27902 #: ../tools/virt-make-fs.pl:95
27903 msgid ""
27904 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27905 "libguestfs supports can be used (but I<not> read-only formats like "
27906 "ISO9660).  Here are some of the more common choices:"
27907 msgstr ""
27908
27909 # type: =item
27910 #: ../tools/virt-make-fs.pl:101
27911 msgid "I<ext3>"
27912 msgstr ""
27913
27914 # type: textblock
27915 #: ../tools/virt-make-fs.pl:103
27916 msgid ""
27917 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27918 "you are not going to use the filesystem in a way that requires the journal, "
27919 "then this is just wasted overhead."
27920 msgstr ""
27921
27922 # type: =item
27923 #: ../tools/virt-make-fs.pl:107
27924 msgid "I<ntfs> or I<vfat>"
27925 msgstr ""
27926
27927 # type: textblock
27928 #: ../tools/virt-make-fs.pl:109
27929 msgid "Useful if exporting data to a Windows guest."
27930 msgstr ""
27931
27932 # type: textblock
27933 #: ../tools/virt-make-fs.pl:111
27934 msgid ""
27935 "I<Note for vfat>: The tar archive or local directory must only contain files "
27936 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27937 "program running within libguestfs is unable to change the ownership of "
27938 "non-root files, since vfat itself does not support this."
27939 msgstr ""
27940
27941 # type: =item
27942 #: ../tools/virt-make-fs.pl:116
27943 msgid "I<minix>"
27944 msgstr ""
27945
27946 # type: textblock
27947 #: ../tools/virt-make-fs.pl:118
27948 msgid ""
27949 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27950 "total filesystem size."
27951 msgstr ""
27952
27953 # type: verbatim
27954 #: ../tools/virt-make-fs.pl:125
27955 #, no-wrap
27956 msgid ""
27957 " virt-make-fs --type=minix input minixfs.img\n"
27958 "\n"
27959 msgstr ""
27960
27961 # type: =head2
27962 #: ../tools/virt-make-fs.pl:127
27963 msgid "TO PARTITION OR NOT TO PARTITION"
27964 msgstr ""
27965
27966 # type: textblock
27967 #: ../tools/virt-make-fs.pl:129
27968 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27969 msgstr ""
27970
27971 # type: textblock
27972 #: ../tools/virt-make-fs.pl:131
27973 msgid ""
27974 "Adding a partition can make the disk image more compatible with certain "
27975 "virtualized operating systems which don't expect to see a filesystem "
27976 "directly located on a block device (Linux doesn't care and will happily "
27977 "handle both types)."
27978 msgstr ""
27979
27980 # type: textblock
27981 #: ../tools/virt-make-fs.pl:136
27982 msgid ""
27983 "On the other hand, if you have a partition table then the output image is no "
27984 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27985 "directly on a partitioned disk image.  (However libguestfs tools such as "
27986 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27987 msgstr ""
27988
27989 # type: textblock
27990 #: ../tools/virt-make-fs.pl:144
27991 msgid "Add an MBR partition:"
27992 msgstr ""
27993
27994 # type: verbatim
27995 #: ../tools/virt-make-fs.pl:146
27996 #, no-wrap
27997 msgid ""
27998 " virt-make-fs --partition -- input disk.img\n"
27999 "\n"
28000 msgstr ""
28001
28002 # type: textblock
28003 #: ../tools/virt-make-fs.pl:148
28004 msgid ""
28005 "If the output disk image could be terabyte-sized or larger, it's better to "
28006 "use an EFI/GPT-compatible partition table:"
28007 msgstr ""
28008
28009 # type: verbatim
28010 #: ../tools/virt-make-fs.pl:151
28011 #, no-wrap
28012 msgid ""
28013 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28014 "\n"
28015 msgstr ""
28016
28017 # type: textblock
28018 #: ../tools/virt-make-fs.pl:179
28019 msgid "Enable debugging information."
28020 msgstr ""
28021
28022 # type: =item
28023 #: ../tools/virt-make-fs.pl:185
28024 msgid "B<--size=E<lt>NE<gt>>"
28025 msgstr ""
28026
28027 # type: =item
28028 #: ../tools/virt-make-fs.pl:187
28029 msgid "B<--size=+E<lt>NE<gt>>"
28030 msgstr ""
28031
28032 # type: =item
28033 #: ../tools/virt-make-fs.pl:189
28034 msgid "B<-s E<lt>NE<gt>>"
28035 msgstr ""
28036
28037 # type: =item
28038 #: ../tools/virt-make-fs.pl:191
28039 msgid "B<-s +E<lt>NE<gt>>"
28040 msgstr ""
28041
28042 # type: textblock
28043 #: ../tools/virt-make-fs.pl:193
28044 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28045 msgstr ""
28046
28047 # type: textblock
28048 #: ../tools/virt-make-fs.pl:196
28049 msgid ""
28050 "If this option is I<not> given, then the output image will be just large "
28051 "enough to contain all the files, with not much wasted space."
28052 msgstr ""
28053
28054 # type: textblock
28055 #: ../tools/virt-make-fs.pl:199
28056 msgid ""
28057 "To choose a fixed size output disk, specify an absolute number followed by "
28058 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28059 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28060 "files, else you will get an error."
28061 msgstr ""
28062
28063 # type: textblock
28064 #: ../tools/virt-make-fs.pl:204
28065 msgid ""
28066 "To leave extra space, specify C<+> (plus sign) and a number followed by "
28067 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28068 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28069 "the input files, and (approximately) an extra 200 MB free space."
28070 msgstr ""
28071
28072 # type: textblock
28073 #: ../tools/virt-make-fs.pl:210
28074 msgid ""
28075 "Note that virt-make-fs estimates free space, and therefore will not produce "
28076 "filesystems containing precisely the free space requested.  (It is much more "
28077 "expensive and time-consuming to produce a filesystem which has precisely the "
28078 "desired free space)."
28079 msgstr ""
28080
28081 # type: =item
28082 #: ../tools/virt-make-fs.pl:219
28083 msgid "B<--format=E<lt>fmtE<gt>>"
28084 msgstr ""
28085
28086 # type: =item
28087 #: ../tools/virt-make-fs.pl:221
28088 msgid "B<-F E<lt>fmtE<gt>>"
28089 msgstr ""
28090
28091 # type: textblock
28092 #: ../tools/virt-make-fs.pl:223
28093 msgid "Choose the output disk image format."
28094 msgstr ""
28095
28096 # type: textblock
28097 #: ../tools/virt-make-fs.pl:225
28098 msgid "The default is C<raw> (raw disk image)."
28099 msgstr ""
28100
28101 # type: textblock
28102 #: ../tools/virt-make-fs.pl:227
28103 msgid ""
28104 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28105 "that would really make sense here is C<qcow2>."
28106 msgstr ""
28107
28108 # type: =item
28109 #: ../tools/virt-make-fs.pl:234
28110 msgid "B<--type=E<lt>fsE<gt>>"
28111 msgstr ""
28112
28113 # type: =item
28114 #: ../tools/virt-make-fs.pl:236
28115 msgid "B<-t E<lt>fsE<gt>>"
28116 msgstr ""
28117
28118 # type: textblock
28119 #: ../tools/virt-make-fs.pl:238
28120 msgid "Choose the output filesystem type."
28121 msgstr ""
28122
28123 # type: textblock
28124 #: ../tools/virt-make-fs.pl:240
28125 msgid "The default is C<ext2>."
28126 msgstr ""
28127
28128 # type: textblock
28129 #: ../tools/virt-make-fs.pl:242
28130 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28131 msgstr ""
28132
28133 # type: =item
28134 #: ../tools/virt-make-fs.pl:249
28135 msgid "B<--partition>"
28136 msgstr ""
28137
28138 # type: =item
28139 #: ../tools/virt-make-fs.pl:251
28140 msgid "B<--partition=E<lt>parttypeE<gt>>"
28141 msgstr ""
28142
28143 # type: textblock
28144 #: ../tools/virt-make-fs.pl:253
28145 msgid ""
28146 "If specified, this flag adds an MBR partition table to the output disk "
28147 "image."
28148 msgstr ""
28149
28150 # type: textblock
28151 #: ../tools/virt-make-fs.pl:256
28152 msgid ""
28153 "You can change the partition table type, eg. C<--partition=gpt> for large "
28154 "disks."
28155 msgstr ""
28156
28157 # type: textblock
28158 #: ../tools/virt-make-fs.pl:259
28159 msgid ""
28160 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28161 "might consider the next parameter to be the partition type.  For example:"
28162 msgstr ""
28163
28164 # type: verbatim
28165 #: ../tools/virt-make-fs.pl:263
28166 #, no-wrap
28167 msgid ""
28168 " virt-make-fs --partition input.tar ...\n"
28169 "\n"
28170 msgstr ""
28171
28172 # type: textblock
28173 #: ../tools/virt-make-fs.pl:265
28174 msgid ""
28175 "would cause virt-make-fs to think you wanted to use a partition type of "
28176 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28177 "dash) between options and the input file argument:"
28178 msgstr ""
28179
28180 # type: verbatim
28181 #: ../tools/virt-make-fs.pl:269
28182 #, no-wrap
28183 msgid ""
28184 " virt-make-fs --partition -- input.tar ...\n"
28185 "\n"
28186 msgstr ""
28187
28188 # type: textblock
28189 #: ../tools/virt-make-fs.pl:536
28190 msgid ""
28191 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28192 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28193 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28194 msgstr ""
28195
28196 # type: verbatim
28197 #: ../tools/virt-make-fs.pl:553
28198 #, no-wrap
28199 msgid ""
28200 " export LIBGUESTFS_DEBUG=1\n"
28201 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28202 "\n"
28203 msgstr ""
28204
28205 # type: textblock
28206 #: ../tools/virt-make-fs.pl:556
28207 msgid ""
28208 "Attach /tmp/virt-make-fs.log to a new bug report at "
28209 "L<https://bugzilla.redhat.com/>"
28210 msgstr ""
28211
28212 # type: textblock
28213 #: ../tools/virt-list-partitions.pl:32
28214 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28215 msgstr ""
28216
28217 # type: verbatim
28218 #: ../tools/virt-list-partitions.pl:36
28219 #, no-wrap
28220 msgid ""
28221 " virt-list-partitions [--options] domname\n"
28222 "\n"
28223 msgstr ""
28224
28225 # type: verbatim
28226 #: ../tools/virt-list-partitions.pl:38
28227 #, no-wrap
28228 msgid ""
28229 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28230 "\n"
28231 msgstr ""
28232
28233 # type: textblock
28234 #: ../tools/virt-list-partitions.pl:42
28235 msgid ""
28236 "C<virt-list-partitions> is a command line tool to list the partitions that "
28237 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28238 "first step to using L<virt-resize(1)>."
28239 msgstr ""
28240
28241 # type: textblock
28242 #: ../tools/virt-list-partitions.pl:47
28243 msgid ""
28244 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28245 "functionality.  For more complex cases you should look at the "
28246 "L<guestfish(1)> tool."
28247 msgstr ""
28248
28249 # type: =item
28250 #: ../tools/virt-list-partitions.pl:104
28251 msgid "B<-h> | B<--human-readable>"
28252 msgstr ""
28253
28254 # type: textblock
28255 #: ../tools/virt-list-partitions.pl:106
28256 msgid "Show sizes in human-readable form (eg. \"1G\")."
28257 msgstr ""
28258
28259 # type: textblock
28260 #: ../tools/virt-list-partitions.pl:114
28261 msgid ""
28262 "With this option, C<virt-list-partitions> displays the type and size of each "
28263 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28264 msgstr ""
28265
28266 # type: =item
28267 #: ../tools/virt-list-partitions.pl:121
28268 msgid "B<-t> | B<--total>"
28269 msgstr ""
28270
28271 # type: textblock
28272 #: ../tools/virt-list-partitions.pl:123
28273 msgid "Display the total size of each block device (as a separate row or rows)."
28274 msgstr ""
28275
28276 # type: textblock
28277 #: ../tools/virt-list-partitions.pl:256
28278 msgid ""
28279 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
28280 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
28281 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28282 msgstr ""