Version 1.5.26.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.5.26\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-10-29 15:47+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: ENCODING"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../inspector/virt-inspector.pl: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:1159 ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1384 ../src/guestfs.pod:1389 ../src/guestfs.pod:1393 ../src/guestfs.pod:1495 ../src/guestfs.pod:1499 ../src/guestfs.pod:1503 ../src/guestfs.pod:1508 ../src/guestfs.pod:1516 ../src/guestfs.pod:1535 ../src/guestfs.pod:1543 ../src/guestfs.pod:1773 ../src/guestfs.pod:1779 ../src/guestfs.pod:1784 ../src/guestfs.pod:1790 ../src/guestfs.pod:1897 ../src/guestfs.pod:1901 ../src/guestfs.pod:1905 ../src/guestfs.pod:1909 ../src/guestfs-actions.pod:14 ../src/guestfs-actions.pod:21 ../src/guestfs-actions.pod:438 ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:460 ../src/guestfs-actions.pod:1351 ../src/guestfs-actions.pod:1355 ../src/guestfs-actions.pod:1359 ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1529 ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1595 ../fish/guestfish.pod:364 ../fish/guestfish.pod:368 ../fish/guestfish.pod:372 ../fish/guestfish.pod:376 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:339 ../fish/guestfish-actions.pod:347 ../fish/guestfish-actions.pod:354 ../fish/guestfish-actions.pod:361 ../fish/guestfish-actions.pod:1056 ../fish/guestfish-actions.pod:1060 ../fish/guestfish-actions.pod:1064 ../fish/guestfish-actions.pod:1068 ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1094 ../fish/guestfish-actions.pod:1098 ../fish/guestfish-actions.pod:1102 ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1196 ../fish/guestfish-actions.pod:1201 ../fish/guestfish-actions.pod:1206 ../fish/guestfish-actions.pod:1248 ../fish/guestfish-actions.pod:1252 ../fish/guestfish-actions.pod:1257 ../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
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
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
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:630
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 "Library should return errno with error messages."
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:775
1558 msgid ""
1559 "It would be a nice-to-have to be able to get the original value of 'errno' "
1560 "from inside the appliance along error paths (where set).  Currently "
1561 "L<guestmount(1)> goes through hoops to try to reverse the error message "
1562 "string into an errno, see the function error() in fuse/guestmount.c."
1563 msgstr ""
1564
1565 # type: textblock
1566 #: ../src/guestfs.pod:781
1567 msgid ""
1568 "In libguestfs 1.5.4, the protocol was changed so that the Linux errno is "
1569 "sent back from the daemon."
1570 msgstr ""
1571
1572 # type: =item
1573 #: ../src/guestfs.pod:784
1574 msgid "Ambiguity between devices and paths"
1575 msgstr ""
1576
1577 # type: textblock
1578 #: ../src/guestfs.pod:786
1579 msgid ""
1580 "There is a subtle ambiguity in the API between a device name "
1581 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1582 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1583 msgstr ""
1584
1585 # type: textblock
1586 #: ../src/guestfs.pod:791
1587 msgid ""
1588 "In the current API we usually resolve this ambiguity by having two separate "
1589 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1590 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1591 "detecting if the path supplied begins with C</dev/>."
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:797
1596 msgid ""
1597 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1598 "make paths/devices into structured names.  One way to do this would be to "
1599 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1600 "aspect of grub.  Another way would be to use a structured type, equivalent "
1601 "to this OCaml type:"
1602 msgstr ""
1603
1604 # type: verbatim
1605 #: ../src/guestfs.pod:803
1606 #, no-wrap
1607 msgid ""
1608 " type path = Path of string | Device of int | Partition of int * int\n"
1609 "\n"
1610 msgstr ""
1611
1612 # type: textblock
1613 #: ../src/guestfs.pod:805
1614 msgid "which would allow you to pass arguments like:"
1615 msgstr ""
1616
1617 # type: verbatim
1618 #: ../src/guestfs.pod:807
1619 #, no-wrap
1620 msgid ""
1621 " Path \"/foo/bar\"\n"
1622 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1623 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1624 " Path \"/dev/sdb2\"    (* not a device *)\n"
1625 "\n"
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:812
1630 msgid ""
1631 "As you can see there are still problems to resolve even with this "
1632 "representation.  Also consider how it might work in guestfish."
1633 msgstr ""
1634
1635 # type: =head2
1636 #: ../src/guestfs.pod:817
1637 msgid "PROTOCOL LIMITS"
1638 msgstr ""
1639
1640 # type: textblock
1641 #: ../src/guestfs.pod:819
1642 msgid ""
1643 "Internally libguestfs uses a message-based protocol to pass API calls and "
1644 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1645 "plenty more detail about this).  The maximum message size used by the "
1646 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1647 "aware of this limit.  The API calls which may be affected are individually "
1648 "documented, with a link back to this section of the documentation."
1649 msgstr ""
1650
1651 # type: textblock
1652 #: ../src/guestfs.pod:827
1653 msgid ""
1654 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1655 "a simple string.  Because this string is at some point internally encoded as "
1656 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1657 "the requested file is larger than this then you will get an error."
1658 msgstr ""
1659
1660 # type: textblock
1661 #: ../src/guestfs.pod:833
1662 msgid ""
1663 "In order to transfer large files into and out of the guest filesystem, you "
1664 "need to use particular calls that support this.  The sections L</UPLOADING> "
1665 "and L</DOWNLOADING> document how to do this."
1666 msgstr ""
1667
1668 # type: textblock
1669 #: ../src/guestfs.pod:837
1670 msgid ""
1671 "You might also consider mounting the disk image using our FUSE filesystem "
1672 "support (L<guestmount(1)>)."
1673 msgstr ""
1674
1675 # type: =head2
1676 #: ../src/guestfs.pod:840
1677 msgid "KEYS AND PASSPHRASES"
1678 msgstr ""
1679
1680 # type: textblock
1681 #: ../src/guestfs.pod:842
1682 msgid ""
1683 "Certain libguestfs calls take a parameter that contains sensitive key "
1684 "material, passed in as a C string."
1685 msgstr ""
1686
1687 # type: textblock
1688 #: ../src/guestfs.pod:845
1689 msgid ""
1690 "In the future we would hope to change the libguestfs implementation so that "
1691 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1692 "swap.  However this is I<not> done at the moment, because of the complexity "
1693 "of such an implementation."
1694 msgstr ""
1695
1696 # type: textblock
1697 #: ../src/guestfs.pod:850
1698 msgid ""
1699 "Therefore you should be aware that any key parameter you pass to libguestfs "
1700 "might end up being written out to the swap partition.  If this is a concern, "
1701 "scrub the swap partition or don't use libguestfs on encrypted devices."
1702 msgstr ""
1703
1704 # type: =head1
1705 #: ../src/guestfs.pod:855
1706 msgid "CONNECTION MANAGEMENT"
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:857
1711 msgid "guestfs_h *"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:859
1716 msgid ""
1717 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1718 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1719 "handle and release all resources used."
1720 msgstr ""
1721
1722 # type: textblock
1723 #: ../src/guestfs.pod:863
1724 msgid ""
1725 "For information on using multiple handles and threads, see the section "
1726 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1727 msgstr ""
1728
1729 # type: =head2
1730 #: ../src/guestfs.pod:866
1731 msgid "guestfs_create"
1732 msgstr ""
1733
1734 # type: verbatim
1735 #: ../src/guestfs.pod:868
1736 #, no-wrap
1737 msgid ""
1738 " guestfs_h *guestfs_create (void);\n"
1739 "\n"
1740 msgstr ""
1741
1742 # type: textblock
1743 #: ../src/guestfs.pod:870
1744 msgid "Create a connection handle."
1745 msgstr ""
1746
1747 # type: textblock
1748 #: ../src/guestfs.pod:872
1749 msgid ""
1750 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1751 "on the handle at least once."
1752 msgstr ""
1753
1754 # type: textblock
1755 #: ../src/guestfs.pod:875
1756 msgid ""
1757 "This function returns a non-NULL pointer to a handle on success or NULL on "
1758 "error."
1759 msgstr ""
1760
1761 # type: textblock
1762 #: ../src/guestfs.pod:878
1763 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1764 msgstr ""
1765
1766 # type: textblock
1767 #: ../src/guestfs.pod:880
1768 msgid ""
1769 "You may also want to configure error handling for the handle.  See L</ERROR "
1770 "HANDLING> section below."
1771 msgstr ""
1772
1773 # type: =head2
1774 #: ../src/guestfs.pod:883
1775 msgid "guestfs_close"
1776 msgstr ""
1777
1778 # type: verbatim
1779 #: ../src/guestfs.pod:885
1780 #, no-wrap
1781 msgid ""
1782 " void guestfs_close (guestfs_h *g);\n"
1783 "\n"
1784 msgstr ""
1785
1786 # type: textblock
1787 #: ../src/guestfs.pod:887
1788 msgid "This closes the connection handle and frees up all resources used."
1789 msgstr ""
1790
1791 # type: =head1
1792 #: ../src/guestfs.pod:889
1793 msgid "ERROR HANDLING"
1794 msgstr ""
1795
1796 # type: textblock
1797 #: ../src/guestfs.pod:891
1798 msgid ""
1799 "The convention in all functions that return C<int> is that they return C<-1> "
1800 "to indicate an error.  You can get additional information on errors by "
1801 "calling L</guestfs_last_error> and/or by setting up an error handler with "
1802 "L</guestfs_set_error_handler>."
1803 msgstr ""
1804
1805 # type: textblock
1806 #: ../src/guestfs.pod:896
1807 msgid "The default error handler prints the information string to C<stderr>."
1808 msgstr ""
1809
1810 # type: textblock
1811 #: ../src/guestfs.pod:898
1812 msgid ""
1813 "Out of memory errors are handled differently.  The default action is to call "
1814 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
1815 "L</guestfs_set_out_of_memory_handler>."
1816 msgstr ""
1817
1818 # type: =head2
1819 #: ../src/guestfs.pod:902
1820 msgid "guestfs_last_error"
1821 msgstr ""
1822
1823 # type: verbatim
1824 #: ../src/guestfs.pod:904
1825 #, no-wrap
1826 msgid ""
1827 " const char *guestfs_last_error (guestfs_h *g);\n"
1828 "\n"
1829 msgstr ""
1830
1831 # type: textblock
1832 #: ../src/guestfs.pod:906
1833 msgid ""
1834 "This returns the last error message that happened on C<g>.  If there has not "
1835 "been an error since the handle was created, then this returns C<NULL>."
1836 msgstr ""
1837
1838 # type: textblock
1839 #: ../src/guestfs.pod:910
1840 msgid ""
1841 "The lifetime of the returned string is until the next error occurs, or "
1842 "L</guestfs_close> is called."
1843 msgstr ""
1844
1845 # type: textblock
1846 #: ../src/guestfs.pod:913
1847 msgid ""
1848 "The error string is not localized (ie. is always in English), because this "
1849 "makes searching for error messages in search engines give the largest number "
1850 "of results."
1851 msgstr ""
1852
1853 # type: =head2
1854 #: ../src/guestfs.pod:917
1855 msgid "guestfs_set_error_handler"
1856 msgstr ""
1857
1858 # type: verbatim
1859 #: ../src/guestfs.pod:919
1860 #, no-wrap
1861 msgid ""
1862 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1863 "                                           void *opaque,\n"
1864 "                                           const char *msg);\n"
1865 " void guestfs_set_error_handler (guestfs_h *g,\n"
1866 "                                 guestfs_error_handler_cb cb,\n"
1867 "                                 void *opaque);\n"
1868 "\n"
1869 msgstr ""
1870
1871 # type: textblock
1872 #: ../src/guestfs.pod:926
1873 msgid ""
1874 "The callback C<cb> will be called if there is an error.  The parameters "
1875 "passed to the callback are an opaque data pointer and the error message "
1876 "string."
1877 msgstr ""
1878
1879 # type: textblock
1880 #: ../src/guestfs.pod:930
1881 msgid ""
1882 "Note that the message string C<msg> is freed as soon as the callback "
1883 "function returns, so if you want to stash it somewhere you must make your "
1884 "own copy."
1885 msgstr ""
1886
1887 # type: textblock
1888 #: ../src/guestfs.pod:934
1889 msgid "The default handler prints messages on C<stderr>."
1890 msgstr ""
1891
1892 # type: textblock
1893 #: ../src/guestfs.pod:936
1894 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
1895 msgstr ""
1896
1897 # type: =head2
1898 #: ../src/guestfs.pod:938
1899 msgid "guestfs_get_error_handler"
1900 msgstr ""
1901
1902 # type: verbatim
1903 #: ../src/guestfs.pod:940
1904 #, no-wrap
1905 msgid ""
1906 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
1907 "                                                     void **opaque_rtn);\n"
1908 "\n"
1909 msgstr ""
1910
1911 # type: textblock
1912 #: ../src/guestfs.pod:943
1913 msgid "Returns the current error handler callback."
1914 msgstr ""
1915
1916 # type: =head2
1917 #: ../src/guestfs.pod:945
1918 msgid "guestfs_set_out_of_memory_handler"
1919 msgstr ""
1920
1921 # type: verbatim
1922 #: ../src/guestfs.pod:947
1923 #, no-wrap
1924 msgid ""
1925 " typedef void (*guestfs_abort_cb) (void);\n"
1926 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
1927 "                                        guestfs_abort_cb);\n"
1928 "\n"
1929 msgstr ""
1930
1931 # type: textblock
1932 #: ../src/guestfs.pod:951
1933 msgid ""
1934 "The callback C<cb> will be called if there is an out of memory situation.  "
1935 "I<Note this callback must not return>."
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:954
1940 msgid "The default is to call L<abort(3)>."
1941 msgstr ""
1942
1943 # type: textblock
1944 #: ../src/guestfs.pod:956
1945 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
1946 msgstr ""
1947
1948 # type: =head2
1949 #: ../src/guestfs.pod:959
1950 msgid "guestfs_get_out_of_memory_handler"
1951 msgstr ""
1952
1953 # type: verbatim
1954 #: ../src/guestfs.pod:961
1955 #, no-wrap
1956 msgid ""
1957 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
1958 "\n"
1959 msgstr ""
1960
1961 # type: textblock
1962 #: ../src/guestfs.pod:963
1963 msgid "This returns the current out of memory handler."
1964 msgstr ""
1965
1966 # type: =head1
1967 #: ../src/guestfs.pod:965
1968 msgid "PATH"
1969 msgstr ""
1970
1971 # type: textblock
1972 #: ../src/guestfs.pod:967
1973 msgid ""
1974 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1975 "internal path."
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:970
1980 msgid ""
1981 "By default it looks for these in the directory C<$libdir/guestfs> "
1982 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1983 msgstr ""
1984
1985 # type: textblock
1986 #: ../src/guestfs.pod:973
1987 msgid ""
1988 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1989 "to change the directories that libguestfs will search in.  The value is a "
1990 "colon-separated list of paths.  The current directory is I<not> searched "
1991 "unless the path contains an empty element or C<.>.  For example "
1992 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1993 "then C</usr/lib/guestfs>."
1994 msgstr ""
1995
1996 # type: =head1
1997 #: ../src/guestfs.pod:980
1998 msgid "HIGH-LEVEL API ACTIONS"
1999 msgstr ""
2000
2001 # type: =head2
2002 #: ../src/guestfs.pod:982
2003 msgid "ABI GUARANTEE"
2004 msgstr ""
2005
2006 # type: textblock
2007 #: ../src/guestfs.pod:984
2008 msgid ""
2009 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2010 "actions as outlined in this section.  Although we will deprecate some "
2011 "actions, for example if they get replaced by newer calls, we will keep the "
2012 "old actions forever.  This allows you the developer to program in confidence "
2013 "against the libguestfs API."
2014 msgstr ""
2015
2016 # type: textblock
2017 #: ../src/guestfs.pod:990 ../fish/guestfish.pod:860
2018 msgid "@ACTIONS@"
2019 msgstr ""
2020
2021 # type: =head1
2022 #: ../src/guestfs.pod:992
2023 msgid "STRUCTURES"
2024 msgstr ""
2025
2026 # type: textblock
2027 #: ../src/guestfs.pod:994
2028 msgid "@STRUCTS@"
2029 msgstr ""
2030
2031 # type: =head1
2032 #: ../src/guestfs.pod:996
2033 msgid "AVAILABILITY"
2034 msgstr ""
2035
2036 # type: =head2
2037 #: ../src/guestfs.pod:998
2038 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2039 msgstr ""
2040
2041 # type: textblock
2042 #: ../src/guestfs.pod:1000
2043 msgid ""
2044 "Using L</guestfs_available> you can test availability of the following "
2045 "groups of functions.  This test queries the appliance to see if the "
2046 "appliance you are currently using supports the functionality."
2047 msgstr ""
2048
2049 # type: textblock
2050 #: ../src/guestfs.pod:1005
2051 msgid "@AVAILABILITY@"
2052 msgstr ""
2053
2054 # type: =head2
2055 #: ../src/guestfs.pod:1007
2056 msgid "GUESTFISH supported COMMAND"
2057 msgstr ""
2058
2059 # type: textblock
2060 #: ../src/guestfs.pod:1009
2061 msgid ""
2062 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2063 "prints out the available groups and whether they are supported by this build "
2064 "of libguestfs.  Note however that you have to do C<run> first."
2065 msgstr ""
2066
2067 # type: =head2
2068 #: ../src/guestfs.pod:1014
2069 msgid "SINGLE CALLS AT COMPILE TIME"
2070 msgstr ""
2071
2072 # type: textblock
2073 #: ../src/guestfs.pod:1016
2074 msgid ""
2075 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2076 "function, such as:"
2077 msgstr ""
2078
2079 # type: verbatim
2080 #: ../src/guestfs.pod:1019
2081 #, no-wrap
2082 msgid ""
2083 " #define LIBGUESTFS_HAVE_DD 1\n"
2084 "\n"
2085 msgstr ""
2086
2087 # type: textblock
2088 #: ../src/guestfs.pod:1021
2089 msgid "if L</guestfs_dd> is available."
2090 msgstr ""
2091
2092 # type: textblock
2093 #: ../src/guestfs.pod:1023
2094 msgid ""
2095 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2096 "function is available at compile time, we recommended using build tools such "
2097 "as autoconf or cmake.  For example in autotools you could use:"
2098 msgstr ""
2099
2100 # type: verbatim
2101 #: ../src/guestfs.pod:1028
2102 #, no-wrap
2103 msgid ""
2104 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2105 " AC_CHECK_FUNCS([guestfs_dd])\n"
2106 "\n"
2107 msgstr ""
2108
2109 # type: textblock
2110 #: ../src/guestfs.pod:1031
2111 msgid ""
2112 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2113 "in your program."
2114 msgstr ""
2115
2116 # type: =head2
2117 #: ../src/guestfs.pod:1034
2118 msgid "SINGLE CALLS AT RUN TIME"
2119 msgstr ""
2120
2121 # type: textblock
2122 #: ../src/guestfs.pod:1036
2123 msgid ""
2124 "Testing at compile time doesn't guarantee that a function really exists in "
2125 "the library.  The reason is that you might be dynamically linked against a "
2126 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2127 "This situation unfortunately results in a segmentation fault, which is a "
2128 "shortcoming of the C dynamic linking system itself."
2129 msgstr ""
2130
2131 # type: textblock
2132 #: ../src/guestfs.pod:1043
2133 msgid ""
2134 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2135 "in this example program (note that you still need the compile time check as "
2136 "well):"
2137 msgstr ""
2138
2139 # type: verbatim
2140 #: ../src/guestfs.pod:1047
2141 #, no-wrap
2142 msgid ""
2143 " #include <stdio.h>\n"
2144 " #include <stdlib.h>\n"
2145 " #include <unistd.h>\n"
2146 " #include <dlfcn.h>\n"
2147 " #include <guestfs.h>\n"
2148 " \n"
2149 msgstr ""
2150
2151 # type: verbatim
2152 #: ../src/guestfs.pod:1053
2153 #, no-wrap
2154 msgid ""
2155 " main ()\n"
2156 " {\n"
2157 " #ifdef LIBGUESTFS_HAVE_DD\n"
2158 "   void *dl;\n"
2159 "   int has_function;\n"
2160 " \n"
2161 msgstr ""
2162
2163 # type: verbatim
2164 #: ../src/guestfs.pod:1059
2165 #, no-wrap
2166 msgid ""
2167 "   /* Test if the function guestfs_dd is really available. */\n"
2168 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2169 "   if (!dl) {\n"
2170 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2171 "     exit (EXIT_FAILURE);\n"
2172 "   }\n"
2173 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2174 "   dlclose (dl);\n"
2175 " \n"
2176 msgstr ""
2177
2178 # type: verbatim
2179 #: ../src/guestfs.pod:1068
2180 #, no-wrap
2181 msgid ""
2182 "   if (!has_function)\n"
2183 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2184 "   else {\n"
2185 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2186 "     /* Now it's safe to call\n"
2187 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2188 "     */\n"
2189 "   }\n"
2190 " #else\n"
2191 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2192 " #endif\n"
2193 "  }\n"
2194 "\n"
2195 msgstr ""
2196
2197 # type: textblock
2198 #: ../src/guestfs.pod:1081
2199 msgid ""
2200 "You may think the above is an awful lot of hassle, and it is.  There are "
2201 "other ways outside of the C linking system to ensure that this kind of "
2202 "incompatibility never arises, such as using package versioning:"
2203 msgstr ""
2204
2205 # type: verbatim
2206 #: ../src/guestfs.pod:1086
2207 #, no-wrap
2208 msgid ""
2209 " Requires: libguestfs >= 1.0.80\n"
2210 "\n"
2211 msgstr ""
2212
2213 # type: =head1
2214 #: ../src/guestfs.pod:1088
2215 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1090
2220 msgid ""
2221 "A recent feature of the API is the introduction of calls which take optional "
2222 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2223 "takes variable arguments (ie. C<...>), as in this example:"
2224 msgstr ""
2225
2226 # type: verbatim
2227 #: ../src/guestfs.pod:1095
2228 #, no-wrap
2229 msgid ""
2230 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2231 "\n"
2232 msgstr ""
2233
2234 # type: textblock
2235 #: ../src/guestfs.pod:1097
2236 msgid ""
2237 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2238 "call with no optional arguments specified:"
2239 msgstr ""
2240
2241 # type: verbatim
2242 #: ../src/guestfs.pod:1100
2243 #, no-wrap
2244 msgid ""
2245 " guestfs_add_drive_opts (g, filename, -1);\n"
2246 "\n"
2247 msgstr ""
2248
2249 # type: textblock
2250 #: ../src/guestfs.pod:1102
2251 msgid "With a single optional argument:"
2252 msgstr ""
2253
2254 # type: verbatim
2255 #: ../src/guestfs.pod:1104
2256 #, no-wrap
2257 msgid ""
2258 " guestfs_add_drive_opts (g, filename,\n"
2259 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2260 "                         -1);\n"
2261 "\n"
2262 msgstr ""
2263
2264 # type: textblock
2265 #: ../src/guestfs.pod:1108
2266 msgid "With two:"
2267 msgstr ""
2268
2269 # type: verbatim
2270 #: ../src/guestfs.pod:1110
2271 #, no-wrap
2272 msgid ""
2273 " guestfs_add_drive_opts (g, filename,\n"
2274 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2275 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2276 "                         -1);\n"
2277 "\n"
2278 msgstr ""
2279
2280 # type: textblock
2281 #: ../src/guestfs.pod:1115
2282 msgid ""
2283 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2284 "happen!"
2285 msgstr ""
2286
2287 # type: =head2
2288 #: ../src/guestfs.pod:1118
2289 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2290 msgstr ""
2291
2292 # type: textblock
2293 #: ../src/guestfs.pod:1120
2294 msgid ""
2295 "The second variant has the same name with the suffix C<_va>, which works the "
2296 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2297 "example function, this is declared:"
2298 msgstr ""
2299
2300 # type: verbatim
2301 #: ../src/guestfs.pod:1124
2302 #, no-wrap
2303 msgid ""
2304 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2305 "                                va_list args);\n"
2306 "\n"
2307 msgstr ""
2308
2309 # type: =head2
2310 #: ../src/guestfs.pod:1127
2311 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2312 msgstr ""
2313
2314 # type: textblock
2315 #: ../src/guestfs.pod:1129
2316 msgid ""
2317 "The third variant is useful where you need to construct these calls.  You "
2318 "pass in a structure where you fill in the optional fields.  The structure "
2319 "has a bitmask as the first element which you must set to indicate which "
2320 "fields you have filled in.  For our example function the structure and call "
2321 "are declared:"
2322 msgstr ""
2323
2324 # type: verbatim
2325 #: ../src/guestfs.pod:1135
2326 #, no-wrap
2327 msgid ""
2328 " struct guestfs_add_drive_opts_argv {\n"
2329 "   uint64_t bitmask;\n"
2330 "   int readonly;\n"
2331 "   const char *format;\n"
2332 "   /* ... */\n"
2333 " };\n"
2334 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2335 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2336 "\n"
2337 msgstr ""
2338
2339 # type: textblock
2340 #: ../src/guestfs.pod:1144
2341 msgid "You could call it like this:"
2342 msgstr ""
2343
2344 # type: verbatim
2345 #: ../src/guestfs.pod:1146
2346 #, no-wrap
2347 msgid ""
2348 " struct guestfs_add_drive_opts_argv optargs = {\n"
2349 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2350 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2351 "   .readonly = 1,\n"
2352 "   .format = \"qcow2\"\n"
2353 " };\n"
2354 " \n"
2355 msgstr ""
2356
2357 # type: verbatim
2358 #: ../src/guestfs.pod:1153
2359 #, no-wrap
2360 msgid ""
2361 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2362 "\n"
2363 msgstr ""
2364
2365 # type: textblock
2366 #: ../src/guestfs.pod:1155 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1244
2367 msgid "Notes:"
2368 msgstr ""
2369
2370 # type: textblock
2371 #: ../src/guestfs.pod:1161
2372 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2373 msgstr ""
2374
2375 # type: textblock
2376 #: ../src/guestfs.pod:1166
2377 msgid "You do not need to fill in all fields of the structure."
2378 msgstr ""
2379
2380 # type: textblock
2381 #: ../src/guestfs.pod:1170
2382 msgid ""
2383 "There must be a one-to-one correspondence between fields of the structure "
2384 "that are filled in, and bits set in the bitmask."
2385 msgstr ""
2386
2387 # type: =head2
2388 #: ../src/guestfs.pod:1175
2389 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2390 msgstr ""
2391
2392 # type: textblock
2393 #: ../src/guestfs.pod:1177
2394 msgid ""
2395 "In other languages, optional arguments are expressed in the way that is "
2396 "natural for that language.  We refer you to the language-specific "
2397 "documentation for more details on that."
2398 msgstr ""
2399
2400 # type: textblock
2401 #: ../src/guestfs.pod:1181
2402 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2403 msgstr ""
2404
2405 # type: =end
2406 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1188
2407 msgid "html"
2408 msgstr ""
2409
2410 # type: textblock
2411 #: ../src/guestfs.pod:1185
2412 msgid ""
2413 "<!-- old anchor for the next section --> <a "
2414 "name=\"state_machine_and_low_level_event_api\"/>"
2415 msgstr ""
2416
2417 # type: =head1
2418 #: ../src/guestfs.pod:1190
2419 msgid "ARCHITECTURE"
2420 msgstr ""
2421
2422 # type: textblock
2423 #: ../src/guestfs.pod:1192
2424 msgid ""
2425 "Internally, libguestfs is implemented by running an appliance (a special "
2426 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2427 "process of the main program."
2428 msgstr ""
2429
2430 # type: verbatim
2431 #: ../src/guestfs.pod:1196
2432 #, no-wrap
2433 msgid ""
2434 "  ___________________\n"
2435 " /                   \\\n"
2436 " | main program      |\n"
2437 " |                   |\n"
2438 " |                   |           child process / appliance\n"
2439 " |                   |           __________________________\n"
2440 " |                   |          / qemu                     \\\n"
2441 " +-------------------+   RPC    |      +-----------------+ |\n"
2442 " | libguestfs     <--------------------> guestfsd        | |\n"
2443 " |                   |          |      +-----------------+ |\n"
2444 " \\___________________/          |      | Linux kernel    | |\n"
2445 "                                |      +--^--------------+ |\n"
2446 "                                \\_________|________________/\n"
2447 "                                          |\n"
2448 "                                   _______v______\n"
2449 "                                  /              \\\n"
2450 "                                  | Device or    |\n"
2451 "                                  | disk image   |\n"
2452 "                                  \\______________/\n"
2453 "\n"
2454 msgstr ""
2455
2456 # type: textblock
2457 #: ../src/guestfs.pod:1216
2458 msgid ""
2459 "The library, linked to the main program, creates the child process and hence "
2460 "the appliance in the L</guestfs_launch> function."
2461 msgstr ""
2462
2463 # type: textblock
2464 #: ../src/guestfs.pod:1219
2465 msgid ""
2466 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2467 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2468 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2469 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2470 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2471 "attached to the qemu process which translates device access by the "
2472 "appliance's Linux kernel into accesses to the image."
2473 msgstr ""
2474
2475 # type: textblock
2476 #: ../src/guestfs.pod:1228
2477 msgid ""
2478 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2479 "Although the disk image you are attached to might also be used by some "
2480 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2481 "care if both libguestfs's qemu process and your virtual machine are trying "
2482 "to update the disk image at the same time, since these usually results in "
2483 "massive disk corruption)."
2484 msgstr ""
2485
2486 # type: =head1
2487 #: ../src/guestfs.pod:1235
2488 msgid "STATE MACHINE"
2489 msgstr ""
2490
2491 # type: textblock
2492 #: ../src/guestfs.pod:1237
2493 msgid "libguestfs uses a state machine to model the child process:"
2494 msgstr ""
2495
2496 # type: verbatim
2497 #: ../src/guestfs.pod:1239
2498 #, no-wrap
2499 msgid ""
2500 "                         |\n"
2501 "                    guestfs_create\n"
2502 "                         |\n"
2503 "                         |\n"
2504 "                     ____V_____\n"
2505 "                    /          \\\n"
2506 "                    |  CONFIG  |\n"
2507 "                    \\__________/\n"
2508 "                     ^ ^   ^  \\\n"
2509 "                    /  |    \\  \\ guestfs_launch\n"
2510 "                   /   |    _\\__V______\n"
2511 "                  /    |   /           \\\n"
2512 "                 /     |   | LAUNCHING |\n"
2513 "                /      |   \\___________/\n"
2514 "               /       |       /\n"
2515 "              /        |  guestfs_launch\n"
2516 "             /         |     /\n"
2517 "    ______  /        __|____V\n"
2518 "   /      \\ ------> /        \\\n"
2519 "   | BUSY |         | READY  |\n"
2520 "   \\______/ <------ \\________/\n"
2521 "\n"
2522 msgstr ""
2523
2524 # type: textblock
2525 #: ../src/guestfs.pod:1261
2526 msgid ""
2527 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2528 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2529 "(3) alternating between READY and BUSY as commands are issued to, and "
2530 "carried out by, the child process."
2531 msgstr ""
2532
2533 # type: textblock
2534 #: ../src/guestfs.pod:1266
2535 msgid ""
2536 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2537 "asynchronously at any time (eg. due to some internal error), and that causes "
2538 "the state to transition back to CONFIG."
2539 msgstr ""
2540
2541 # type: textblock
2542 #: ../src/guestfs.pod:1270
2543 msgid ""
2544 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2545 "issued when in the CONFIG state."
2546 msgstr ""
2547
2548 # type: textblock
2549 #: ../src/guestfs.pod:1273
2550 msgid ""
2551 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2552 "L</guestfs_launch> blocks until the child process is READY to accept "
2553 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2554 "moves the state from CONFIG to LAUNCHING while it is running."
2555 msgstr ""
2556
2557 # type: textblock
2558 #: ../src/guestfs.pod:1279
2559 msgid ""
2560 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2561 "state.  These API calls block waiting for the command to be carried out "
2562 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2563 "non-blocking versions, and no way to issue more than one command per handle "
2564 "at the same time."
2565 msgstr ""
2566
2567 # type: textblock
2568 #: ../src/guestfs.pod:1285
2569 msgid ""
2570 "Finally, the child process sends asynchronous messages back to the main "
2571 "program, such as kernel log messages.  You can register a callback to "
2572 "receive these messages."
2573 msgstr ""
2574
2575 # type: =head2
2576 #: ../src/guestfs.pod:1289
2577 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2578 msgstr ""
2579
2580 # type: textblock
2581 #: ../src/guestfs.pod:1291
2582 msgid ""
2583 "The child process generates events in some situations.  Current events "
2584 "include: receiving a log message, the child process exits."
2585 msgstr ""
2586
2587 # type: textblock
2588 #: ../src/guestfs.pod:1294
2589 msgid ""
2590 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2591 "types of events."
2592 msgstr ""
2593
2594 # type: textblock
2595 #: ../src/guestfs.pod:1297
2596 msgid ""
2597 "Only I<one callback of each type> can be registered for each handle.  "
2598 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2599 "that type.  Cancel all callbacks of this type by calling this function with "
2600 "C<cb> set to C<NULL>."
2601 msgstr ""
2602
2603 # type: =head2
2604 #: ../src/guestfs.pod:1302
2605 msgid "guestfs_set_log_message_callback"
2606 msgstr ""
2607
2608 # type: verbatim
2609 #: ../src/guestfs.pod:1304
2610 #, no-wrap
2611 msgid ""
2612 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2613 "                                         char *buf, int len);\n"
2614 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2615 "                                        guestfs_log_message_cb cb,\n"
2616 "                                        void *opaque);\n"
2617 "\n"
2618 msgstr ""
2619
2620 # type: textblock
2621 #: ../src/guestfs.pod:1310
2622 msgid ""
2623 "The callback function C<cb> will be called whenever qemu or the guest writes "
2624 "anything to the console."
2625 msgstr ""
2626
2627 # type: textblock
2628 #: ../src/guestfs.pod:1313
2629 msgid "Use this function to capture kernel messages and similar."
2630 msgstr ""
2631
2632 # type: textblock
2633 #: ../src/guestfs.pod:1315
2634 msgid ""
2635 "Normally there is no log message handler, and log messages are just "
2636 "discarded."
2637 msgstr ""
2638
2639 # type: =head2
2640 #: ../src/guestfs.pod:1318
2641 msgid "guestfs_set_subprocess_quit_callback"
2642 msgstr ""
2643
2644 # type: verbatim
2645 #: ../src/guestfs.pod:1320
2646 #, no-wrap
2647 msgid ""
2648 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2649 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2650 "                                            guestfs_subprocess_quit_cb cb,\n"
2651 "                                            void *opaque);\n"
2652 "\n"
2653 msgstr ""
2654
2655 # type: textblock
2656 #: ../src/guestfs.pod:1325
2657 msgid ""
2658 "The callback function C<cb> will be called when the child process quits, "
2659 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2660 "corresponds to a transition from any state to the CONFIG state)."
2661 msgstr ""
2662
2663 # type: =head2
2664 #: ../src/guestfs.pod:1330
2665 msgid "guestfs_set_launch_done_callback"
2666 msgstr ""
2667
2668 # type: verbatim
2669 #: ../src/guestfs.pod:1332
2670 #, no-wrap
2671 msgid ""
2672 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2673 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2674 "                                        guestfs_launch_done_cb cb,\n"
2675 "                                        void *opaque);\n"
2676 "\n"
2677 msgstr ""
2678
2679 # type: textblock
2680 #: ../src/guestfs.pod:1337
2681 msgid ""
2682 "The callback function C<cb> will be called when the child process becomes "
2683 "ready first time after it has been launched.  (This corresponds to a "
2684 "transition from LAUNCHING to the READY state)."
2685 msgstr ""
2686
2687 # type: =head2
2688 #: ../src/guestfs.pod:1341
2689 msgid "guestfs_set_close_callback"
2690 msgstr ""
2691
2692 # type: verbatim
2693 #: ../src/guestfs.pod:1343
2694 #, no-wrap
2695 msgid ""
2696 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2697 " void guestfs_set_close_callback (guestfs_h *g,\n"
2698 "                                  guestfs_close_cb cb,\n"
2699 "                                  void *opaque);\n"
2700 "\n"
2701 msgstr ""
2702
2703 # type: textblock
2704 #: ../src/guestfs.pod:1348
2705 msgid ""
2706 "The callback function C<cb> will be called while the handle is being closed "
2707 "(synchronously from L</guestfs_close>)."
2708 msgstr ""
2709
2710 # type: textblock
2711 #: ../src/guestfs.pod:1351
2712 msgid ""
2713 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2714 "handles that are open when the program exits.  This means that this callback "
2715 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2716 "problems in higher-level languages (eg. if your HLL interpreter has already "
2717 "been cleaned up by the time this is called, and if your callback then jumps "
2718 "into some HLL function)."
2719 msgstr ""
2720
2721 # type: =head2
2722 #: ../src/guestfs.pod:1359
2723 msgid "guestfs_set_progress_callback"
2724 msgstr ""
2725
2726 # type: verbatim
2727 #: ../src/guestfs.pod:1361
2728 #, no-wrap
2729 msgid ""
2730 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2731 "                                      int proc_nr, int serial,\n"
2732 "                                      uint64_t position, uint64_t total);\n"
2733 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2734 "                                     guestfs_progress_cb cb,\n"
2735 "                                     void *opaque);\n"
2736 "\n"
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1368
2741 msgid ""
2742 "Some long-running operations can generate progress messages.  If this "
2743 "callback is registered, then it will be called each time a progress message "
2744 "is generated (usually two seconds after the operation started, and three "
2745 "times per second thereafter until it completes, although the frequency may "
2746 "change in future versions)."
2747 msgstr ""
2748
2749 # type: textblock
2750 #: ../src/guestfs.pod:1374
2751 msgid ""
2752 "The callback receives two numbers: C<position> and C<total>.  The units of "
2753 "C<total> are not defined, although for some operations C<total> may relate "
2754 "in some way to the amount of data to be transferred (eg. in bytes or "
2755 "megabytes), and C<position> may be the portion which has been transferred."
2756 msgstr ""
2757
2758 # type: textblock
2759 #: ../src/guestfs.pod:1380
2760 msgid "The only defined and stable parts of the API are:"
2761 msgstr ""
2762
2763 # type: textblock
2764 #: ../src/guestfs.pod:1386
2765 msgid ""
2766 "The callback can display to the user some type of progress bar or indicator "
2767 "which shows the ratio of C<position>:C<total>."
2768 msgstr ""
2769
2770 # type: textblock
2771 #: ../src/guestfs.pod:1391
2772 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2773 msgstr ""
2774
2775 # type: textblock
2776 #: ../src/guestfs.pod:1395
2777 msgid ""
2778 "If any progress notification is sent during a call, then a final progress "
2779 "notification is always sent when C<position> = C<total>."
2780 msgstr ""
2781
2782 # type: textblock
2783 #: ../src/guestfs.pod:1398
2784 msgid ""
2785 "This is to simplify caller code, so callers can easily set the progress "
2786 "indicator to \"100%\" at the end of the operation, without requiring special "
2787 "code to detect this case."
2788 msgstr ""
2789
2790 # type: textblock
2791 #: ../src/guestfs.pod:1404
2792 msgid ""
2793 "The callback also receives the procedure number and serial number of the "
2794 "call.  These are only useful for debugging protocol issues, and the callback "
2795 "can normally ignore them.  The callback may want to print these numbers in "
2796 "error messages or debugging messages."
2797 msgstr ""
2798
2799 # type: =head1
2800 #: ../src/guestfs.pod:1409
2801 msgid "PRIVATE DATA AREA"
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1411
2806 msgid ""
2807 "You can attach named pieces of private data to the libguestfs handle, and "
2808 "fetch them by name for the lifetime of the handle.  This is called the "
2809 "private data area and is only available from the C API."
2810 msgstr ""
2811
2812 # type: textblock
2813 #: ../src/guestfs.pod:1415
2814 msgid "To attach a named piece of data, use the following call:"
2815 msgstr ""
2816
2817 # type: verbatim
2818 #: ../src/guestfs.pod:1417
2819 #, no-wrap
2820 msgid ""
2821 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2822 "\n"
2823 msgstr ""
2824
2825 # type: textblock
2826 #: ../src/guestfs.pod:1419
2827 msgid ""
2828 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2829 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2830 "overwritten."
2831 msgstr ""
2832
2833 # type: textblock
2834 #: ../src/guestfs.pod:1423
2835 msgid ""
2836 "You can use any C<key> you want, but names beginning with an underscore "
2837 "character are reserved for internal libguestfs purposes (for implementing "
2838 "language bindings).  It is recommended to prefix the name with some unique "
2839 "string to avoid collisions with other users."
2840 msgstr ""
2841
2842 # type: textblock
2843 #: ../src/guestfs.pod:1428
2844 msgid "To retrieve the pointer, use:"
2845 msgstr ""
2846
2847 # type: verbatim
2848 #: ../src/guestfs.pod:1430
2849 #, no-wrap
2850 msgid ""
2851 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2852 "\n"
2853 msgstr ""
2854
2855 # type: textblock
2856 #: ../src/guestfs.pod:1432
2857 msgid ""
2858 "This function returns C<NULL> if either no data is found associated with "
2859 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2860 "C<NULL>."
2861 msgstr ""
2862
2863 # type: textblock
2864 #: ../src/guestfs.pod:1436
2865 msgid ""
2866 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2867 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2868 "all.  In particular, libguestfs does I<not> try to free the data when the "
2869 "handle is closed.  If the data must be freed, then the caller must either "
2870 "free it before calling L</guestfs_close> or must set up a close callback to "
2871 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2872 "can be registered for a handle)."
2873 msgstr ""
2874
2875 # type: textblock
2876 #: ../src/guestfs.pod:1444
2877 msgid ""
2878 "The private data area is implemented using a hash table, and should be "
2879 "reasonably efficient for moderate numbers of keys."
2880 msgstr ""
2881
2882 # type: =head1
2883 #: ../src/guestfs.pod:1447
2884 msgid "BLOCK DEVICE NAMING"
2885 msgstr ""
2886
2887 # type: textblock
2888 #: ../src/guestfs.pod:1449
2889 msgid ""
2890 "In the kernel there is now quite a profusion of schemata for naming block "
2891 "devices (in this context, by I<block device> I mean a physical or virtual "
2892 "hard drive).  The original Linux IDE driver used names starting with "
2893 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
2894 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
2895 "replacement for the old IDE driver (particularly for SATA devices) those "
2896 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
2897 "machines with paravirtualized drivers.  This has created several different "
2898 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
2899 "Xen PV disks."
2900 msgstr ""
2901
2902 # type: textblock
2903 #: ../src/guestfs.pod:1461
2904 msgid ""
2905 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2906 "Linux kernel to access block devices.  We can run a variety of appliances "
2907 "based on a variety of Linux kernels."
2908 msgstr ""
2909
2910 # type: textblock
2911 #: ../src/guestfs.pod:1465
2912 msgid ""
2913 "This causes a problem for libguestfs because many API calls use device or "
2914 "partition names.  Working scripts and the recipe (example) scripts that we "
2915 "make available over the internet could fail if the naming scheme changes."
2916 msgstr ""
2917
2918 # type: textblock
2919 #: ../src/guestfs.pod:1470
2920 msgid ""
2921 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2922 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2923 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2924 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2925 msgstr ""
2926
2927 # type: textblock
2928 #: ../src/guestfs.pod:1476
2929 msgid ""
2930 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2931 "L</guestfs_list_partitions> and similar calls return the true names of the "
2932 "devices and partitions as known to the appliance."
2933 msgstr ""
2934
2935 # type: =head2
2936 #: ../src/guestfs.pod:1481
2937 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2938 msgstr ""
2939
2940 # type: textblock
2941 #: ../src/guestfs.pod:1483
2942 msgid ""
2943 "Usually this translation is transparent.  However in some (very rare)  cases "
2944 "you may need to know the exact algorithm.  Such cases include where you use "
2945 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
2946 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
2947 "devices."
2948 msgstr ""
2949
2950 # type: textblock
2951 #: ../src/guestfs.pod:1489
2952 msgid ""
2953 "The algorithm is applied only to I<parameters> which are known to be either "
2954 "device or partition names.  Return values from functions such as "
2955 "L</guestfs_list_devices> are never changed."
2956 msgstr ""
2957
2958 # type: textblock
2959 #: ../src/guestfs.pod:1497
2960 msgid "Is the string a parameter which is a device or partition name?"
2961 msgstr ""
2962
2963 # type: textblock
2964 #: ../src/guestfs.pod:1501
2965 msgid "Does the string begin with C</dev/sd>?"
2966 msgstr ""
2967
2968 # type: textblock
2969 #: ../src/guestfs.pod:1505
2970 msgid ""
2971 "Does the named device exist? If so, we use that device.  However if I<not> "
2972 "then we continue with this algorithm."
2973 msgstr ""
2974
2975 # type: textblock
2976 #: ../src/guestfs.pod:1510
2977 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2978 msgstr ""
2979
2980 # type: textblock
2981 #: ../src/guestfs.pod:1512
2982 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2983 msgstr ""
2984
2985 # type: textblock
2986 #: ../src/guestfs.pod:1514
2987 msgid "If that named device exists, use it.  If not, continue."
2988 msgstr ""
2989
2990 # type: textblock
2991 #: ../src/guestfs.pod:1518
2992 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2993 msgstr ""
2994
2995 # type: textblock
2996 #: ../src/guestfs.pod:1520
2997 msgid "If that named device exists, use it.  If not, return an error."
2998 msgstr ""
2999
3000 # type: =head2
3001 #: ../src/guestfs.pod:1524
3002 msgid "PORTABILITY CONCERNS"
3003 msgstr ""
3004
3005 # type: textblock
3006 #: ../src/guestfs.pod:1526
3007 msgid ""
3008 "Although the standard naming scheme and automatic translation is useful for "
3009 "simple programs and guestfish scripts, for larger programs it is best not to "
3010 "rely on this mechanism."
3011 msgstr ""
3012
3013 # type: textblock
3014 #: ../src/guestfs.pod:1530
3015 msgid ""
3016 "Where possible for maximum future portability programs using libguestfs "
3017 "should use these future-proof techniques:"
3018 msgstr ""
3019
3020 # type: textblock
3021 #: ../src/guestfs.pod:1537
3022 msgid ""
3023 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3024 "device names, and then use those names directly."
3025 msgstr ""
3026
3027 # type: textblock
3028 #: ../src/guestfs.pod:1540
3029 msgid "Since those device names exist by definition, they will never be translated."
3030 msgstr ""
3031
3032 # type: textblock
3033 #: ../src/guestfs.pod:1545
3034 msgid ""
3035 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3036 "filesystem labels."
3037 msgstr ""
3038
3039 # type: =head1
3040 #: ../src/guestfs.pod:1550
3041 msgid "INTERNALS"
3042 msgstr ""
3043
3044 # type: =head2
3045 #: ../src/guestfs.pod:1552
3046 msgid "COMMUNICATION PROTOCOL"
3047 msgstr ""
3048
3049 # type: textblock
3050 #: ../src/guestfs.pod:1554
3051 msgid ""
3052 "Don't rely on using this protocol directly.  This section documents how it "
3053 "currently works, but it may change at any time."
3054 msgstr ""
3055
3056 # type: textblock
3057 #: ../src/guestfs.pod:1557
3058 msgid ""
3059 "The protocol used to talk between the library and the daemon running inside "
3060 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3061 "1014, RFC 1832, RFC 4506)."
3062 msgstr ""
3063
3064 # type: textblock
3065 #: ../src/guestfs.pod:1561
3066 msgid ""
3067 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3068 "this file is automatically generated)."
3069 msgstr ""
3070
3071 # type: textblock
3072 #: ../src/guestfs.pod:1564
3073 msgid ""
3074 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3075 "and C<FileOut> parameters, which are handled with very simple request/reply "
3076 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3077 "parameters, which use the same request and reply messages, but they may also "
3078 "be followed by files sent using a chunked encoding."
3079 msgstr ""
3080
3081 # type: =head3
3082 #: ../src/guestfs.pod:1571
3083 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3084 msgstr ""
3085
3086 # type: textblock
3087 #: ../src/guestfs.pod:1573
3088 msgid "For ordinary functions, the request message is:"
3089 msgstr ""
3090
3091 # type: verbatim
3092 #: ../src/guestfs.pod:1575
3093 #, no-wrap
3094 msgid ""
3095 " total length (header + arguments,\n"
3096 "      but not including the length word itself)\n"
3097 " struct guestfs_message_header (encoded as XDR)\n"
3098 " struct guestfs_<foo>_args (encoded as XDR)\n"
3099 "\n"
3100 msgstr ""
3101
3102 # type: textblock
3103 #: ../src/guestfs.pod:1580
3104 msgid ""
3105 "The total length field allows the daemon to allocate a fixed size buffer "
3106 "into which it slurps the rest of the message.  As a result, the total length "
3107 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3108 "effective size of any request is limited to somewhere under this size."
3109 msgstr ""
3110
3111 # type: textblock
3112 #: ../src/guestfs.pod:1586
3113 msgid ""
3114 "Note also that many functions don't take any arguments, in which case the "
3115 "C<guestfs_I<foo>_args> is completely omitted."
3116 msgstr ""
3117
3118 # type: textblock
3119 #: ../src/guestfs.pod:1589
3120 msgid ""
3121 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3122 "receiver knows what type of args structure to expect, or none at all."
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1593
3127 msgid "The reply message for ordinary functions is:"
3128 msgstr ""
3129
3130 # type: verbatim
3131 #: ../src/guestfs.pod:1595
3132 #, no-wrap
3133 msgid ""
3134 " total length (header + ret,\n"
3135 "      but not including the length word itself)\n"
3136 " struct guestfs_message_header (encoded as XDR)\n"
3137 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3138 "\n"
3139 msgstr ""
3140
3141 # type: textblock
3142 #: ../src/guestfs.pod:1600
3143 msgid ""
3144 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3145 "functions that return no formal return values."
3146 msgstr ""
3147
3148 # type: textblock
3149 #: ../src/guestfs.pod:1603
3150 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3151 msgstr ""
3152
3153 # type: textblock
3154 #: ../src/guestfs.pod:1606
3155 msgid ""
3156 "In the case of an error, a flag is set in the header, and the reply message "
3157 "is slightly changed:"
3158 msgstr ""
3159
3160 # type: verbatim
3161 #: ../src/guestfs.pod:1609
3162 #, no-wrap
3163 msgid ""
3164 " total length (header + error,\n"
3165 "      but not including the length word itself)\n"
3166 " struct guestfs_message_header (encoded as XDR)\n"
3167 " struct guestfs_message_error (encoded as XDR)\n"
3168 "\n"
3169 msgstr ""
3170
3171 # type: textblock
3172 #: ../src/guestfs.pod:1614
3173 msgid ""
3174 "The C<guestfs_message_error> structure contains the error message as a "
3175 "string."
3176 msgstr ""
3177
3178 # type: =head3
3179 #: ../src/guestfs.pod:1617
3180 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3181 msgstr ""
3182
3183 # type: textblock
3184 #: ../src/guestfs.pod:1619
3185 msgid ""
3186 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3187 "The normal request message is sent (see above).  However this is followed by "
3188 "a sequence of file chunks."
3189 msgstr ""
3190
3191 # type: verbatim
3192 #: ../src/guestfs.pod:1623
3193 #, no-wrap
3194 msgid ""
3195 " total length (header + arguments,\n"
3196 "      but not including the length word itself,\n"
3197 "      and not including the chunks)\n"
3198 " struct guestfs_message_header (encoded as XDR)\n"
3199 " struct guestfs_<foo>_args (encoded as XDR)\n"
3200 " sequence of chunks for FileIn param #0\n"
3201 " sequence of chunks for FileIn param #1 etc.\n"
3202 "\n"
3203 msgstr ""
3204
3205 # type: textblock
3206 #: ../src/guestfs.pod:1631
3207 msgid "The \"sequence of chunks\" is:"
3208 msgstr ""
3209
3210 # type: verbatim
3211 #: ../src/guestfs.pod:1633
3212 #, no-wrap
3213 msgid ""
3214 " length of chunk (not including length word itself)\n"
3215 " struct guestfs_chunk (encoded as XDR)\n"
3216 " length of chunk\n"
3217 " struct guestfs_chunk (encoded as XDR)\n"
3218 "   ...\n"
3219 " length of chunk\n"
3220 " struct guestfs_chunk (with data.data_len == 0)\n"
3221 "\n"
3222 msgstr ""
3223
3224 # type: textblock
3225 #: ../src/guestfs.pod:1641
3226 msgid ""
3227 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3228 "is set in the final chunk to indicate either successful completion or early "
3229 "cancellation."
3230 msgstr ""
3231
3232 # type: textblock
3233 #: ../src/guestfs.pod:1645
3234 msgid ""
3235 "At time of writing there are no functions that have more than one FileIn "
3236 "parameter.  However this is (theoretically) supported, by sending the "
3237 "sequence of chunks for each FileIn parameter one after another (from left to "
3238 "right)."
3239 msgstr ""
3240
3241 # type: textblock
3242 #: ../src/guestfs.pod:1650
3243 msgid ""
3244 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3245 "transfer.  The library does this by sending a chunk with a special flag set "
3246 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3247 "RPC, does I<not> send any reply, and goes back to reading the next request."
3248 msgstr ""
3249
3250 # type: textblock
3251 #: ../src/guestfs.pod:1656
3252 msgid ""
3253 "The daemon may also cancel.  It does this by writing a special word "
3254 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3255 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3256 "cancel chunk).  The special word is chosen so that even if cancellation "
3257 "happens right at the end of the transfer (after the library has finished "
3258 "writing and has started listening for the reply), the \"spurious\" cancel "
3259 "flag will not be confused with the reply message."
3260 msgstr ""
3261
3262 # type: textblock
3263 #: ../src/guestfs.pod:1665
3264 msgid ""
3265 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3266 "limit), and also files where the size is not known in advance (eg. from "
3267 "pipes or sockets).  However the chunks are rather small "
3268 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3269 "to keep much in memory."
3270 msgstr ""
3271
3272 # type: =head3
3273 #: ../src/guestfs.pod:1671
3274 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3275 msgstr ""
3276
3277 # type: textblock
3278 #: ../src/guestfs.pod:1673
3279 msgid ""
3280 "The protocol for FileOut parameters is exactly the same as for FileIn "
3281 "parameters, but with the roles of daemon and library reversed."
3282 msgstr ""
3283
3284 # type: verbatim
3285 #: ../src/guestfs.pod:1676
3286 #, no-wrap
3287 msgid ""
3288 " total length (header + ret,\n"
3289 "      but not including the length word itself,\n"
3290 "      and not including the chunks)\n"
3291 " struct guestfs_message_header (encoded as XDR)\n"
3292 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3293 " sequence of chunks for FileOut param #0\n"
3294 " sequence of chunks for FileOut param #1 etc.\n"
3295 "\n"
3296 msgstr ""
3297
3298 # type: =head3
3299 #: ../src/guestfs.pod:1684
3300 msgid "INITIAL MESSAGE"
3301 msgstr ""
3302
3303 # type: textblock
3304 #: ../src/guestfs.pod:1686
3305 msgid ""
3306 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3307 "which indicates that the guest and daemon is alive.  This is what "
3308 "L</guestfs_launch> waits for."
3309 msgstr ""
3310
3311 # type: =head3
3312 #: ../src/guestfs.pod:1690
3313 msgid "PROGRESS NOTIFICATION MESSAGES"
3314 msgstr ""
3315
3316 # type: textblock
3317 #: ../src/guestfs.pod:1692
3318 msgid ""
3319 "The daemon may send progress notification messages at any time.  These are "
3320 "distinguished by the normal length word being replaced by "
3321 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1696
3326 msgid ""
3327 "The library turns them into progress callbacks (see "
3328 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3329 "discards them if not."
3330 msgstr ""
3331
3332 # type: textblock
3333 #: ../src/guestfs.pod:1700
3334 msgid ""
3335 "The daemon self-limits the frequency of progress messages it sends (see "
3336 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3337 "messages."
3338 msgstr ""
3339
3340 # type: =head1
3341 #: ../src/guestfs.pod:1704
3342 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3343 msgstr ""
3344
3345 # type: textblock
3346 #: ../src/guestfs.pod:1706
3347 msgid ""
3348 "All high-level libguestfs actions are synchronous.  If you want to use "
3349 "libguestfs asynchronously then you must create a thread."
3350 msgstr ""
3351
3352 # type: textblock
3353 #: ../src/guestfs.pod:1709
3354 msgid ""
3355 "Only use the handle from a single thread.  Either use the handle exclusively "
3356 "from one thread, or provide your own mutex so that two threads cannot issue "
3357 "calls on the same handle at the same time."
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1713
3362 msgid ""
3363 "See the graphical program guestfs-browser for one possible architecture for "
3364 "multithreaded programs using libvirt and libguestfs."
3365 msgstr ""
3366
3367 # type: =head1
3368 #: ../src/guestfs.pod:1716
3369 msgid "QEMU WRAPPERS"
3370 msgstr ""
3371
3372 # type: textblock
3373 #: ../src/guestfs.pod:1718
3374 msgid ""
3375 "If you want to compile your own qemu, run qemu from a non-standard location, "
3376 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3377 "around qemu."
3378 msgstr ""
3379
3380 # type: textblock
3381 #: ../src/guestfs.pod:1722
3382 msgid ""
3383 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3384 "last command in the shell script (so that qemu replaces the shell and "
3385 "becomes the direct child of the libguestfs-using program).  If you don't do "
3386 "this, then the qemu process won't be cleaned up correctly."
3387 msgstr ""
3388
3389 # type: textblock
3390 #: ../src/guestfs.pod:1727
3391 msgid ""
3392 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3393 "source:"
3394 msgstr ""
3395
3396 # type: verbatim
3397 #: ../src/guestfs.pod:1730
3398 #, no-wrap
3399 msgid ""
3400 " #!/bin/sh -\n"
3401 " qemudir=/home/rjones/d/qemu\n"
3402 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3403 "\"$@\"\n"
3404 "\n"
3405 msgstr ""
3406
3407 # type: textblock
3408 #: ../src/guestfs.pod:1734
3409 msgid ""
3410 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3411 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3412 "example:"
3413 msgstr ""
3414
3415 # type: verbatim
3416 #: ../src/guestfs.pod:1738
3417 #, no-wrap
3418 msgid ""
3419 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3420 "\n"
3421 msgstr ""
3422
3423 # type: textblock
3424 #: ../src/guestfs.pod:1740
3425 msgid ""
3426 "Note that libguestfs also calls qemu with the -help and -version options in "
3427 "order to determine features."
3428 msgstr ""
3429
3430 # type: =head1
3431 #: ../src/guestfs.pod:1743
3432 msgid "LIBGUESTFS VERSION NUMBERS"
3433 msgstr ""
3434
3435 # type: textblock
3436 #: ../src/guestfs.pod:1745
3437 msgid ""
3438 "Since April 2010, libguestfs has started to make separate development and "
3439 "stable releases, along with corresponding branches in our git repository.  "
3440 "These separate releases can be identified by version number:"
3441 msgstr ""
3442
3443 # type: verbatim
3444 #: ../src/guestfs.pod:1750
3445 #, no-wrap
3446 msgid ""
3447 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3448 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3449 "       |\n"
3450 "       v\n"
3451 " 1  .  3  .  5\n"
3452 " ^           ^\n"
3453 " |           |\n"
3454 " |           `-------- sub-version\n"
3455 " |\n"
3456 " `------ always '1' because we don't change the ABI\n"
3457 "\n"
3458 msgstr ""
3459
3460 # type: textblock
3461 #: ../src/guestfs.pod:1761
3462 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3463 msgstr ""
3464
3465 # type: textblock
3466 #: ../src/guestfs.pod:1763
3467 msgid ""
3468 "As time passes we cherry pick fixes from the development branch and backport "
3469 "those into the stable branch, the effect being that the stable branch should "
3470 "get more stable and less buggy over time.  So the stable releases are ideal "
3471 "for people who don't need new features but would just like the software to "
3472 "work."
3473 msgstr ""
3474
3475 # type: textblock
3476 #: ../src/guestfs.pod:1769
3477 msgid "Our criteria for backporting changes are:"
3478 msgstr ""
3479
3480 # type: textblock
3481 #: ../src/guestfs.pod:1775
3482 msgid ""
3483 "Documentation changes which don't affect any code are backported unless the "
3484 "documentation refers to a future feature which is not in stable."
3485 msgstr ""
3486
3487 # type: textblock
3488 #: ../src/guestfs.pod:1781
3489 msgid ""
3490 "Bug fixes which are not controversial, fix obvious problems, and have been "
3491 "well tested are backported."
3492 msgstr ""
3493
3494 # type: textblock
3495 #: ../src/guestfs.pod:1786
3496 msgid ""
3497 "Simple rearrangements of code which shouldn't affect how it works get "
3498 "backported.  This is so that the code in the two branches doesn't get too "
3499 "far out of step, allowing us to backport future fixes more easily."
3500 msgstr ""
3501
3502 # type: textblock
3503 #: ../src/guestfs.pod:1792
3504 msgid ""
3505 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3506 "exceptional case: the new feature is required in order to implement an "
3507 "important bug fix."
3508 msgstr ""
3509
3510 # type: textblock
3511 #: ../src/guestfs.pod:1798
3512 msgid ""
3513 "A new stable branch starts when we think the new features in development are "
3514 "substantial and compelling enough over the current stable branch to warrant "
3515 "it.  When that happens we create new stable and development versions 1.N.0 "
3516 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3517 "stable at this point, but by backporting fixes from development, that branch "
3518 "will stabilize over time."
3519 msgstr ""
3520
3521 # type: =head1
3522 #: ../src/guestfs.pod:1806 ../fish/guestfish.pod:867 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3523 msgid "ENVIRONMENT VARIABLES"
3524 msgstr ""
3525
3526 # type: =item
3527 #: ../src/guestfs.pod:1810 ../fish/guestfish.pod:893
3528 msgid "LIBGUESTFS_APPEND"
3529 msgstr ""
3530
3531 # type: textblock
3532 #: ../src/guestfs.pod:1812 ../fish/guestfish.pod:895
3533 msgid "Pass additional options to the guest kernel."
3534 msgstr ""
3535
3536 # type: =item
3537 #: ../src/guestfs.pod:1814 ../fish/guestfish.pod:897
3538 msgid "LIBGUESTFS_DEBUG"
3539 msgstr ""
3540
3541 # type: textblock
3542 #: ../src/guestfs.pod:1816
3543 msgid ""
3544 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3545 "effect as calling C<guestfs_set_verbose (g, 1)>."
3546 msgstr ""
3547
3548 # type: =item
3549 #: ../src/guestfs.pod:1819 ../fish/guestfish.pod:902
3550 msgid "LIBGUESTFS_MEMSIZE"
3551 msgstr ""
3552
3553 # type: textblock
3554 #: ../src/guestfs.pod:1821 ../fish/guestfish.pod:904
3555 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3556 msgstr ""
3557
3558 # type: verbatim
3559 #: ../src/guestfs.pod:1824 ../fish/guestfish.pod:907
3560 #, no-wrap
3561 msgid ""
3562 " LIBGUESTFS_MEMSIZE=700\n"
3563 "\n"
3564 msgstr ""
3565
3566 # type: =item
3567 #: ../src/guestfs.pod:1826 ../fish/guestfish.pod:909
3568 msgid "LIBGUESTFS_PATH"
3569 msgstr ""
3570
3571 # type: textblock
3572 #: ../src/guestfs.pod:1828
3573 msgid ""
3574 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3575 "the discussion of paths in section PATH above."
3576 msgstr ""
3577
3578 # type: =item
3579 #: ../src/guestfs.pod:1831 ../fish/guestfish.pod:914
3580 msgid "LIBGUESTFS_QEMU"
3581 msgstr ""
3582
3583 # type: textblock
3584 #: ../src/guestfs.pod:1833 ../fish/guestfish.pod:916
3585 msgid ""
3586 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3587 "which was found at compile time by the configure script is used."
3588 msgstr ""
3589
3590 # type: textblock
3591 #: ../src/guestfs.pod:1837
3592 msgid "See also L</QEMU WRAPPERS> above."
3593 msgstr ""
3594
3595 # type: =item
3596 #: ../src/guestfs.pod:1839 ../fish/guestfish.pod:920
3597 msgid "LIBGUESTFS_TRACE"
3598 msgstr ""
3599
3600 # type: textblock
3601 #: ../src/guestfs.pod:1841
3602 msgid ""
3603 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3604 "effect as calling C<guestfs_set_trace (g, 1)>."
3605 msgstr ""
3606
3607 # type: =item
3608 #: ../src/guestfs.pod:1844 ../fish/guestfish.pod:929
3609 msgid "TMPDIR"
3610 msgstr ""
3611
3612 # type: textblock
3613 #: ../src/guestfs.pod:1846 ../fish/guestfish.pod:931
3614 msgid "Location of temporary directory, defaults to C</tmp>."
3615 msgstr ""
3616
3617 # type: textblock
3618 #: ../src/guestfs.pod:1848 ../fish/guestfish.pod:933
3619 msgid ""
3620 "If libguestfs was compiled to use the supermin appliance then the real "
3621 "appliance is cached in this directory, shared between all handles belonging "
3622 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3623 "use in case C</tmp> is not large enough."
3624 msgstr ""
3625
3626 # type: =head1
3627 #: ../src/guestfs.pod:1856 ../fish/guestfish.pod:991 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:214 ../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
3628 msgid "SEE ALSO"
3629 msgstr ""
3630
3631 # type: textblock
3632 #: ../src/guestfs.pod:1858
3633 msgid ""
3634 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3635 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3636 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3637 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3638 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1876
3643 msgid ""
3644 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
3645 "L<lvm(8)>, L<disktype(1)>."
3646 msgstr ""
3647
3648 # type: =head1
3649 #: ../src/guestfs.pod:1883 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
3650 msgid "BUGS"
3651 msgstr ""
3652
3653 # type: textblock
3654 #: ../src/guestfs.pod:1885
3655 msgid "To get a list of bugs against libguestfs use this link:"
3656 msgstr ""
3657
3658 # type: textblock
3659 #: ../src/guestfs.pod:1887
3660 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
3661 msgstr ""
3662
3663 # type: textblock
3664 #: ../src/guestfs.pod:1889
3665 msgid "To report a new bug against libguestfs use this link:"
3666 msgstr ""
3667
3668 # type: textblock
3669 #: ../src/guestfs.pod:1891
3670 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
3671 msgstr ""
3672
3673 # type: textblock
3674 #: ../src/guestfs.pod:1893
3675 msgid "When reporting a bug, please check:"
3676 msgstr ""
3677
3678 # type: textblock
3679 #: ../src/guestfs.pod:1899
3680 msgid "That the bug hasn't been reported already."
3681 msgstr ""
3682
3683 # type: textblock
3684 #: ../src/guestfs.pod:1903
3685 msgid "That you are testing a recent version."
3686 msgstr ""
3687
3688 # type: textblock
3689 #: ../src/guestfs.pod:1907
3690 msgid "Describe the bug accurately, and give a way to reproduce it."
3691 msgstr ""
3692
3693 # type: textblock
3694 #: ../src/guestfs.pod:1911
3695 msgid ""
3696 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3697 "bug report."
3698 msgstr ""
3699
3700 # type: =head1
3701 #: ../src/guestfs.pod:1916 ../fish/guestfish.pod:1008 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:225 ../inspector/virt-inspector.pl:580
3702 msgid "AUTHORS"
3703 msgstr ""
3704
3705 # type: textblock
3706 #: ../src/guestfs.pod:1918 ../fish/guestfish.pod:1010 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:227
3707 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3708 msgstr ""
3709
3710 # type: =head1
3711 #: ../src/guestfs.pod:1920 ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:229 ../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
3712 msgid "COPYRIGHT"
3713 msgstr ""
3714
3715 # type: textblock
3716 #: ../src/guestfs.pod:1922 ../fish/guestfish.pod:1014 ../fuse/guestmount.pod:231
3717 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3718 msgstr ""
3719
3720 # type: textblock
3721 #: ../src/guestfs.pod:1925
3722 msgid ""
3723 "This library is free software; you can redistribute it and/or modify it "
3724 "under the terms of the GNU Lesser General Public License as published by the "
3725 "Free Software Foundation; either version 2 of the License, or (at your "
3726 "option) any later version."
3727 msgstr ""
3728
3729 # type: textblock
3730 #: ../src/guestfs.pod:1930
3731 msgid ""
3732 "This library is distributed in the hope that it will be useful, but WITHOUT "
3733 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3734 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3735 "for more details."
3736 msgstr ""
3737
3738 # type: textblock
3739 #: ../src/guestfs.pod:1935
3740 msgid ""
3741 "You should have received a copy of the GNU Lesser General Public License "
3742 "along with this library; if not, write to the Free Software Foundation, "
3743 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3744 msgstr ""
3745
3746 # type: =head2
3747 #: ../src/guestfs-actions.pod:1
3748 msgid "guestfs_add_cdrom"
3749 msgstr ""
3750
3751 # type: verbatim
3752 #: ../src/guestfs-actions.pod:3
3753 #, no-wrap
3754 msgid ""
3755 " int guestfs_add_cdrom (guestfs_h *g,\n"
3756 "\t\tconst char *filename);\n"
3757 "\n"
3758 msgstr ""
3759
3760 # type: textblock
3761 #: ../src/guestfs-actions.pod:6 ../fish/guestfish-actions.pod:5
3762 msgid "This function adds a virtual CD-ROM disk image to the guest."
3763 msgstr ""
3764
3765 # type: textblock
3766 #: ../src/guestfs-actions.pod:8 ../fish/guestfish-actions.pod:7
3767 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3768 msgstr ""
3769
3770 # type: textblock
3771 #: ../src/guestfs-actions.pod:16
3772 msgid ""
3773 "This call checks for the existence of C<filename>.  This stops you from "
3774 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3775 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3776 "instead."
3777 msgstr ""
3778
3779 # type: textblock
3780 #: ../src/guestfs-actions.pod:23
3781 msgid ""
3782 "If you just want to add an ISO file (often you use this as an efficient way "
3783 "to transfer large files into the guest), then you should probably use "
3784 "C<guestfs_add_drive_ro> instead."
3785 msgstr ""
3786
3787 # type: textblock
3788 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:54 ../src/guestfs-actions.pod:112 ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:155 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:190 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:304 ../src/guestfs-actions.pod:321 ../src/guestfs-actions.pod:332 ../src/guestfs-actions.pod:368 ../src/guestfs-actions.pod:390 ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:496 ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:615 ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:783 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:815 ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:905 ../src/guestfs-actions.pod:921 ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:949 ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1090 ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1209 ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1540 ../src/guestfs-actions.pod:1888 ../src/guestfs-actions.pod:2011 ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:2541 ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2699 ../src/guestfs-actions.pod:2710 ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2867 ../src/guestfs-actions.pod:2887 ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:2932 ../src/guestfs-actions.pod:2948 ../src/guestfs-actions.pod:2977 ../src/guestfs-actions.pod:2986 ../src/guestfs-actions.pod:3019 ../src/guestfs-actions.pod:3032 ../src/guestfs-actions.pod:3042 ../src/guestfs-actions.pod:3054 ../src/guestfs-actions.pod:3068 ../src/guestfs-actions.pod:3148 ../src/guestfs-actions.pod:3165 ../src/guestfs-actions.pod:3175 ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3235 ../src/guestfs-actions.pod:3250 ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3274 ../src/guestfs-actions.pod:3285 ../src/guestfs-actions.pod:3299 ../src/guestfs-actions.pod:3311 ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3374 ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3457 ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3491 ../src/guestfs-actions.pod:3523 ../src/guestfs-actions.pod:3535 ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3563 ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3617 ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698 ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3835 ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3921 ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4004 ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4294 ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4321 ../src/guestfs-actions.pod:4330 ../src/guestfs-actions.pod:4341 ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4361 ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4408 ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:4439 ../src/guestfs-actions.pod:4459 ../src/guestfs-actions.pod:4474 ../src/guestfs-actions.pod:4490 ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:4524 ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4563 ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4645 ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4943 ../src/guestfs-actions.pod:4953 ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:4992 ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5012 ../src/guestfs-actions.pod:5024 ../src/guestfs-actions.pod:5074 ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5101 ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5128 ../src/guestfs-actions.pod:5138 ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5231 ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5282 ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5414 ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5440 ../src/guestfs-actions.pod:5486 ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5533 ../src/guestfs-actions.pod:5560 ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5625 ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:5724
3789 msgid "This function returns 0 on success or -1 on error."
3790 msgstr ""
3791
3792 # type: textblock
3793 #: ../src/guestfs-actions.pod:31 ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3794 msgid ""
3795 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3796 "instead."
3797 msgstr ""
3798
3799 # type: textblock
3800 #: ../src/guestfs-actions.pod:34 ../src/guestfs-actions.pod:160 ../src/guestfs-actions.pod:178 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5778 ../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:4349 ../fish/guestfish-actions.pod:4446
3801 msgid ""
3802 "Deprecated functions will not be removed from the API, but the fact that "
3803 "they are deprecated indicates that there are problems with correct use of "
3804 "these functions."
3805 msgstr ""
3806
3807 # type: =head2
3808 #: ../src/guestfs-actions.pod:38
3809 msgid "guestfs_add_drive"
3810 msgstr ""
3811
3812 # type: verbatim
3813 #: ../src/guestfs-actions.pod:40
3814 #, no-wrap
3815 msgid ""
3816 " int guestfs_add_drive (guestfs_h *g,\n"
3817 "\t\tconst char *filename);\n"
3818 "\n"
3819 msgstr ""
3820
3821 # type: textblock
3822 #: ../src/guestfs-actions.pod:43
3823 msgid ""
3824 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
3825 "optional parameters, so the disk is added writable, with the format being "
3826 "detected automatically."
3827 msgstr ""
3828
3829 # type: textblock
3830 #: ../src/guestfs-actions.pod:47
3831 msgid ""
3832 "Automatic detection of the format opens you up to a potential security hole "
3833 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3834 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3835 "you should think about replacing calls to this function with calls to "
3836 "C<guestfs_add_drive_opts>, and specifying the format."
3837 msgstr ""
3838
3839 # type: =head2
3840 #: ../src/guestfs-actions.pod:56
3841 msgid "guestfs_add_drive_opts"
3842 msgstr ""
3843
3844 # type: verbatim
3845 #: ../src/guestfs-actions.pod:58
3846 #, no-wrap
3847 msgid ""
3848 " int guestfs_add_drive_opts (guestfs_h *g,\n"
3849 "\t\tconst char *filename,\n"
3850 "\t\t...);\n"
3851 "\n"
3852 msgstr ""
3853
3854 # type: textblock
3855 #: ../src/guestfs-actions.pod:62
3856 msgid ""
3857 "You may supply a list of optional arguments to this call.  Use zero or more "
3858 "of the following pairs of parameters, and terminate the list with C<-1> on "
3859 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
3860 msgstr ""
3861
3862 # type: verbatim
3863 #: ../src/guestfs-actions.pod:67
3864 #, no-wrap
3865 msgid ""
3866 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
3867 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
3868 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
3869 "\n"
3870 msgstr ""
3871
3872 # type: textblock
3873 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:56
3874 msgid ""
3875 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
3876 "The first time you call this function, the disk appears as C</dev/sda>, the "
3877 "second time as C</dev/sdb>, and so on."
3878 msgstr ""
3879
3880 # type: textblock
3881 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:61
3882 msgid ""
3883 "You don't necessarily need to be root when using libguestfs.  However you "
3884 "obviously do need sufficient permissions to access the filename for whatever "
3885 "operations you want to perform (ie. read access if you just want to read the "
3886 "image or write access if you want to modify the image)."
3887 msgstr ""
3888
3889 # type: textblock
3890 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:67
3891 msgid "This call checks that C<filename> exists."
3892 msgstr ""
3893
3894 # type: textblock
3895 #: ../src/guestfs-actions.pod:84 ../fish/guestfish-actions.pod:69
3896 msgid "The optional arguments are:"
3897 msgstr ""
3898
3899 # type: =item
3900 #: ../src/guestfs-actions.pod:88 ../fish/guestfish-actions.pod:73
3901 msgid "C<readonly>"
3902 msgstr ""
3903
3904 # type: textblock
3905 #: ../src/guestfs-actions.pod:90 ../fish/guestfish-actions.pod:75
3906 msgid ""
3907 "If true then the image is treated as read-only.  Writes are still allowed, "
3908 "but they are stored in a temporary snapshot overlay which is discarded at "
3909 "the end.  The disk that you add is not modified."
3910 msgstr ""
3911
3912 # type: =item
3913 #: ../src/guestfs-actions.pod:94 ../fish/guestfish-actions.pod:79
3914 msgid "C<format>"
3915 msgstr ""
3916
3917 # type: textblock
3918 #: ../src/guestfs-actions.pod:96
3919 msgid ""
3920 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
3921 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
3922 "Possible formats include C<raw> and C<qcow2>."
3923 msgstr ""
3924
3925 # type: textblock
3926 #: ../src/guestfs-actions.pod:100 ../fish/guestfish-actions.pod:85
3927 msgid ""
3928 "Automatic detection of the format opens you up to a potential security hole "
3929 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3930 "RHBZ#642934.  Specifying the format closes this security hole."
3931 msgstr ""
3932
3933 # type: =item
3934 #: ../src/guestfs-actions.pod:105 ../fish/guestfish-actions.pod:90
3935 msgid "C<iface>"
3936 msgstr ""
3937
3938 # type: textblock
3939 #: ../src/guestfs-actions.pod:107
3940 msgid ""
3941 "This rarely-used option lets you emulate the behaviour of the deprecated "
3942 "C<guestfs_add_drive_with_if> call (q.v.)"
3943 msgstr ""
3944
3945 # type: =head2
3946 #: ../src/guestfs-actions.pod:114
3947 msgid "guestfs_add_drive_opts_va"
3948 msgstr ""
3949
3950 # type: verbatim
3951 #: ../src/guestfs-actions.pod:116
3952 #, no-wrap
3953 msgid ""
3954 " int guestfs_add_drive_opts_va (guestfs_h *g,\n"
3955 "\t\tconst char *filename,\n"
3956 "\t\tva_list args);\n"
3957 "\n"
3958 msgstr ""
3959
3960 # type: textblock
3961 #: ../src/guestfs-actions.pod:120
3962 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
3963 msgstr ""
3964
3965 # type: textblock
3966 #: ../src/guestfs-actions.pod:122 ../src/guestfs-actions.pod:132
3967 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3968 msgstr ""
3969
3970 # type: =head2
3971 #: ../src/guestfs-actions.pod:124
3972 msgid "guestfs_add_drive_opts_argv"
3973 msgstr ""
3974
3975 # type: verbatim
3976 #: ../src/guestfs-actions.pod:126
3977 #, no-wrap
3978 msgid ""
3979 " int guestfs_add_drive_opts_argv (guestfs_h *g,\n"
3980 "\t\tconst char *filename,\n"
3981 "\t\tconst struct guestfs_add_drive_opts_argv *optargs);\n"
3982 "\n"
3983 msgstr ""
3984
3985 # type: textblock
3986 #: ../src/guestfs-actions.pod:130
3987 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
3988 msgstr ""
3989
3990 # type: =head2
3991 #: ../src/guestfs-actions.pod:134
3992 msgid "guestfs_add_drive_ro"
3993 msgstr ""
3994
3995 # type: verbatim
3996 #: ../src/guestfs-actions.pod:136
3997 #, no-wrap
3998 msgid ""
3999 " int guestfs_add_drive_ro (guestfs_h *g,\n"
4000 "\t\tconst char *filename);\n"
4001 "\n"
4002 msgstr ""
4003
4004 # type: textblock
4005 #: ../src/guestfs-actions.pod:139
4006 msgid ""
4007 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4008 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4009 "disk is added read-only, with the format being detected automatically."
4010 msgstr ""
4011
4012 # type: =head2
4013 #: ../src/guestfs-actions.pod:146
4014 msgid "guestfs_add_drive_ro_with_if"
4015 msgstr ""
4016
4017 # type: verbatim
4018 #: ../src/guestfs-actions.pod:148
4019 #, no-wrap
4020 msgid ""
4021 " int guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4022 "\t\tconst char *filename,\n"
4023 "\t\tconst char *iface);\n"
4024 "\n"
4025 msgstr ""
4026
4027 # type: textblock
4028 #: ../src/guestfs-actions.pod:152
4029 msgid ""
4030 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4031 "QEMU interface emulation to use at run time."
4032 msgstr ""
4033
4034 # type: =head2
4035 #: ../src/guestfs-actions.pod:164
4036 msgid "guestfs_add_drive_with_if"
4037 msgstr ""
4038
4039 # type: verbatim
4040 #: ../src/guestfs-actions.pod:166
4041 #, no-wrap
4042 msgid ""
4043 " int guestfs_add_drive_with_if (guestfs_h *g,\n"
4044 "\t\tconst char *filename,\n"
4045 "\t\tconst char *iface);\n"
4046 "\n"
4047 msgstr ""
4048
4049 # type: textblock
4050 #: ../src/guestfs-actions.pod:170
4051 msgid ""
4052 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4053 "QEMU interface emulation to use at run time."
4054 msgstr ""
4055
4056 # type: =head2
4057 #: ../src/guestfs-actions.pod:182
4058 msgid "guestfs_aug_clear"
4059 msgstr ""
4060
4061 # type: verbatim
4062 #: ../src/guestfs-actions.pod:184
4063 #, no-wrap
4064 msgid ""
4065 " int guestfs_aug_clear (guestfs_h *g,\n"
4066 "\t\tconst char *augpath);\n"
4067 "\n"
4068 msgstr ""
4069
4070 # type: textblock
4071 #: ../src/guestfs-actions.pod:187 ../fish/guestfish-actions.pod:142
4072 msgid ""
4073 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4074 "L<augtool(1)> C<clear> command."
4075 msgstr ""
4076
4077 # type: =head2
4078 #: ../src/guestfs-actions.pod:192
4079 msgid "guestfs_aug_close"
4080 msgstr ""
4081
4082 # type: verbatim
4083 #: ../src/guestfs-actions.pod:194
4084 #, no-wrap
4085 msgid ""
4086 " int guestfs_aug_close (guestfs_h *g);\n"
4087 "\n"
4088 msgstr ""
4089
4090 # type: textblock
4091 #: ../src/guestfs-actions.pod:196
4092 msgid ""
4093 "Close the current Augeas handle and free up any resources used by it.  After "
4094 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4095 "any other Augeas functions."
4096 msgstr ""
4097
4098 # type: =head2
4099 #: ../src/guestfs-actions.pod:203
4100 msgid "guestfs_aug_defnode"
4101 msgstr ""
4102
4103 # type: verbatim
4104 #: ../src/guestfs-actions.pod:205
4105 #, no-wrap
4106 msgid ""
4107 " struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *g,\n"
4108 "\t\tconst char *name,\n"
4109 "\t\tconst char *expr,\n"
4110 "\t\tconst char *val);\n"
4111 "\n"
4112 msgstr ""
4113
4114 # type: textblock
4115 #: ../src/guestfs-actions.pod:210 ../fish/guestfish-actions.pod:158
4116 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4117 msgstr ""
4118
4119 # type: textblock
4120 #: ../src/guestfs-actions.pod:213
4121 msgid ""
4122 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4123 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4124 "containing that single node."
4125 msgstr ""
4126
4127 # type: textblock
4128 #: ../src/guestfs-actions.pod:217 ../fish/guestfish-actions.pod:165
4129 msgid ""
4130 "On success this returns a pair containing the number of nodes in the "
4131 "nodeset, and a boolean flag if a node was created."
4132 msgstr ""
4133
4134 # type: textblock
4135 #: ../src/guestfs-actions.pod:221
4136 msgid ""
4137 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4138 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4139 msgstr ""
4140
4141 # type: =head2
4142 #: ../src/guestfs-actions.pod:225
4143 msgid "guestfs_aug_defvar"
4144 msgstr ""
4145
4146 # type: verbatim
4147 #: ../src/guestfs-actions.pod:227
4148 #, no-wrap
4149 msgid ""
4150 " int guestfs_aug_defvar (guestfs_h *g,\n"
4151 "\t\tconst char *name,\n"
4152 "\t\tconst char *expr);\n"
4153 "\n"
4154 msgstr ""
4155
4156 # type: textblock
4157 #: ../src/guestfs-actions.pod:231 ../fish/guestfish-actions.pod:173
4158 msgid ""
4159 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4160 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4161 msgstr ""
4162
4163 # type: textblock
4164 #: ../src/guestfs-actions.pod:235 ../fish/guestfish-actions.pod:177
4165 msgid ""
4166 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4167 "evaluates to something which is not a nodeset."
4168 msgstr ""
4169
4170 # type: textblock
4171 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:379 ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:558 ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:1107 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1685 ../src/guestfs-actions.pod:1716 ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1776 ../src/guestfs-actions.pod:2001 ../src/guestfs-actions.pod:2229 ../src/guestfs-actions.pod:2247 ../src/guestfs-actions.pod:3637 ../src/guestfs-actions.pod:3744 ../src/guestfs-actions.pod:4098 ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:5220 ../src/guestfs-actions.pod:5570 ../src/guestfs-actions.pod:5580 ../src/guestfs-actions.pod:5590
4172 msgid "On error this function returns -1."
4173 msgstr ""
4174
4175 # type: =head2
4176 #: ../src/guestfs-actions.pod:240
4177 msgid "guestfs_aug_get"
4178 msgstr ""
4179
4180 # type: verbatim
4181 #: ../src/guestfs-actions.pod:242
4182 #, no-wrap
4183 msgid ""
4184 " char *guestfs_aug_get (guestfs_h *g,\n"
4185 "\t\tconst char *augpath);\n"
4186 "\n"
4187 msgstr ""
4188
4189 # type: textblock
4190 #: ../src/guestfs-actions.pod:245 ../fish/guestfish-actions.pod:184
4191 msgid ""
4192 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4193 "node, the C<value> is returned."
4194 msgstr ""
4195
4196 # type: textblock
4197 #: ../src/guestfs-actions.pod:248 ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:748 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:965 ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1408 ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:1643 ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1795 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:2115 ../src/guestfs-actions.pod:2181 ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2332 ../src/guestfs-actions.pod:2352 ../src/guestfs-actions.pod:2667 ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3201 ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3935 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4237 ../src/guestfs-actions.pod:4280 ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4769 ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5363 ../src/guestfs-actions.pod:5379 ../src/guestfs-actions.pod:5394 ../src/guestfs-actions.pod:5542 ../src/guestfs-actions.pod:5772
4198 msgid ""
4199 "This function returns a string, or NULL on error.  I<The caller must free "
4200 "the returned string after use>."
4201 msgstr ""
4202
4203 # type: =head2
4204 #: ../src/guestfs-actions.pod:251
4205 msgid "guestfs_aug_init"
4206 msgstr ""
4207
4208 # type: verbatim
4209 #: ../src/guestfs-actions.pod:253
4210 #, no-wrap
4211 msgid ""
4212 " int guestfs_aug_init (guestfs_h *g,\n"
4213 "\t\tconst char *root,\n"
4214 "\t\tint flags);\n"
4215 "\n"
4216 msgstr ""
4217
4218 # type: textblock
4219 #: ../src/guestfs-actions.pod:257 ../fish/guestfish-actions.pod:191
4220 msgid ""
4221 "Create a new Augeas handle for editing configuration files.  If there was "
4222 "any previous Augeas handle associated with this guestfs session, then it is "
4223 "closed."
4224 msgstr ""
4225
4226 # type: textblock
4227 #: ../src/guestfs-actions.pod:261
4228 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs-actions.pod:264 ../fish/guestfish-actions.pod:198
4233 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4234 msgstr ""
4235
4236 # type: textblock
4237 #: ../src/guestfs-actions.pod:267 ../fish/guestfish-actions.pod:201
4238 msgid ""
4239 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4240 "logical I<or> of the following integers:"
4241 msgstr ""
4242
4243 # type: =item
4244 #: ../src/guestfs-actions.pod:273 ../fish/guestfish-actions.pod:207
4245 msgid "C<AUG_SAVE_BACKUP> = 1"
4246 msgstr ""
4247
4248 # type: textblock
4249 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:209
4250 msgid "Keep the original file with a C<.augsave> extension."
4251 msgstr ""
4252
4253 # type: =item
4254 #: ../src/guestfs-actions.pod:277 ../fish/guestfish-actions.pod:211
4255 msgid "C<AUG_SAVE_NEWFILE> = 2"
4256 msgstr ""
4257
4258 # type: textblock
4259 #: ../src/guestfs-actions.pod:279 ../fish/guestfish-actions.pod:213
4260 msgid ""
4261 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4262 "original.  Overrides C<AUG_SAVE_BACKUP>."
4263 msgstr ""
4264
4265 # type: =item
4266 #: ../src/guestfs-actions.pod:282 ../fish/guestfish-actions.pod:216
4267 msgid "C<AUG_TYPE_CHECK> = 4"
4268 msgstr ""
4269
4270 # type: textblock
4271 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:218
4272 msgid "Typecheck lenses (can be expensive)."
4273 msgstr ""
4274
4275 # type: =item
4276 #: ../src/guestfs-actions.pod:286 ../fish/guestfish-actions.pod:220
4277 msgid "C<AUG_NO_STDINC> = 8"
4278 msgstr ""
4279
4280 # type: textblock
4281 #: ../src/guestfs-actions.pod:288 ../fish/guestfish-actions.pod:222
4282 msgid "Do not use standard load path for modules."
4283 msgstr ""
4284
4285 # type: =item
4286 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:224
4287 msgid "C<AUG_SAVE_NOOP> = 16"
4288 msgstr ""
4289
4290 # type: textblock
4291 #: ../src/guestfs-actions.pod:292 ../fish/guestfish-actions.pod:226
4292 msgid "Make save a no-op, just record what would have been changed."
4293 msgstr ""
4294
4295 # type: =item
4296 #: ../src/guestfs-actions.pod:294 ../fish/guestfish-actions.pod:228
4297 msgid "C<AUG_NO_LOAD> = 32"
4298 msgstr ""
4299
4300 # type: textblock
4301 #: ../src/guestfs-actions.pod:296
4302 msgid "Do not load the tree in C<guestfs_aug_init>."
4303 msgstr ""
4304
4305 # type: textblock
4306 #: ../src/guestfs-actions.pod:300
4307 msgid "To close the handle, you can call C<guestfs_aug_close>."
4308 msgstr ""
4309
4310 # type: textblock
4311 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:236
4312 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4313 msgstr ""
4314
4315 # type: =head2
4316 #: ../src/guestfs-actions.pod:306
4317 msgid "guestfs_aug_insert"
4318 msgstr ""
4319
4320 # type: verbatim
4321 #: ../src/guestfs-actions.pod:308
4322 #, no-wrap
4323 msgid ""
4324 " int guestfs_aug_insert (guestfs_h *g,\n"
4325 "\t\tconst char *augpath,\n"
4326 "\t\tconst char *label,\n"
4327 "\t\tint before);\n"
4328 "\n"
4329 msgstr ""
4330
4331 # type: textblock
4332 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:242
4333 msgid ""
4334 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4335 "or after C<path> (depending on the boolean flag C<before>)."
4336 msgstr ""
4337
4338 # type: textblock
4339 #: ../src/guestfs-actions.pod:317 ../fish/guestfish-actions.pod:246
4340 msgid ""
4341 "C<path> must match exactly one existing node in the tree, and C<label> must "
4342 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4343 msgstr ""
4344
4345 # type: =head2
4346 #: ../src/guestfs-actions.pod:323
4347 msgid "guestfs_aug_load"
4348 msgstr ""
4349
4350 # type: verbatim
4351 #: ../src/guestfs-actions.pod:325
4352 #, no-wrap
4353 msgid ""
4354 " int guestfs_aug_load (guestfs_h *g);\n"
4355 "\n"
4356 msgstr ""
4357
4358 # type: textblock
4359 #: ../src/guestfs-actions.pod:327 ../fish/guestfish-actions.pod:254
4360 msgid "Load files into the tree."
4361 msgstr ""
4362
4363 # type: textblock
4364 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:256
4365 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4366 msgstr ""
4367
4368 # type: =head2
4369 #: ../src/guestfs-actions.pod:334
4370 msgid "guestfs_aug_ls"
4371 msgstr ""
4372
4373 # type: verbatim
4374 #: ../src/guestfs-actions.pod:336
4375 #, no-wrap
4376 msgid ""
4377 " char **guestfs_aug_ls (guestfs_h *g,\n"
4378 "\t\tconst char *augpath);\n"
4379 "\n"
4380 msgstr ""
4381
4382 # type: textblock
4383 #: ../src/guestfs-actions.pod:339
4384 msgid ""
4385 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4386 "sorting the resulting nodes into alphabetical order."
4387 msgstr ""
4388
4389 # type: textblock
4390 #: ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:355 ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1251 ../src/guestfs-actions.pod:1267 ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1832 ../src/guestfs-actions.pod:1845 ../src/guestfs-actions.pod:1861 ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:1919 ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021 ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2391 ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:2652 ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:4053 ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4268 ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4918 ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5055 ../src/guestfs-actions.pod:5455 ../src/guestfs-actions.pod:5472 ../src/guestfs-actions.pod:5510 ../src/guestfs-actions.pod:5646 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5791 ../src/guestfs-actions.pod:5807
4391 msgid ""
4392 "This function returns a NULL-terminated array of strings (like "
4393 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4394 "strings and the array after use>."
4395 msgstr ""
4396
4397 # type: =head2
4398 #: ../src/guestfs-actions.pod:346
4399 msgid "guestfs_aug_match"
4400 msgstr ""
4401
4402 # type: verbatim
4403 #: ../src/guestfs-actions.pod:348
4404 #, no-wrap
4405 msgid ""
4406 " char **guestfs_aug_match (guestfs_h *g,\n"
4407 "\t\tconst char *augpath);\n"
4408 "\n"
4409 msgstr ""
4410
4411 # type: textblock
4412 #: ../src/guestfs-actions.pod:351 ../fish/guestfish-actions.pod:270
4413 msgid ""
4414 "Returns a list of paths which match the path expression C<path>.  The "
4415 "returned paths are sufficiently qualified so that they match exactly one "
4416 "node in the current tree."
4417 msgstr ""
4418
4419 # type: =head2
4420 #: ../src/guestfs-actions.pod:359
4421 msgid "guestfs_aug_mv"
4422 msgstr ""
4423
4424 # type: verbatim
4425 #: ../src/guestfs-actions.pod:361
4426 #, no-wrap
4427 msgid ""
4428 " int guestfs_aug_mv (guestfs_h *g,\n"
4429 "\t\tconst char *src,\n"
4430 "\t\tconst char *dest);\n"
4431 "\n"
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:365 ../fish/guestfish-actions.pod:278
4436 msgid ""
4437 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4438 "C<dest> is overwritten if it exists."
4439 msgstr ""
4440
4441 # type: =head2
4442 #: ../src/guestfs-actions.pod:370
4443 msgid "guestfs_aug_rm"
4444 msgstr ""
4445
4446 # type: verbatim
4447 #: ../src/guestfs-actions.pod:372
4448 #, no-wrap
4449 msgid ""
4450 " int guestfs_aug_rm (guestfs_h *g,\n"
4451 "\t\tconst char *augpath);\n"
4452 "\n"
4453 msgstr ""
4454
4455 # type: textblock
4456 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:285
4457 msgid "Remove C<path> and all of its children."
4458 msgstr ""
4459
4460 # type: textblock
4461 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:287
4462 msgid "On success this returns the number of entries which were removed."
4463 msgstr ""
4464
4465 # type: =head2
4466 #: ../src/guestfs-actions.pod:381
4467 msgid "guestfs_aug_save"
4468 msgstr ""
4469
4470 # type: verbatim
4471 #: ../src/guestfs-actions.pod:383
4472 #, no-wrap
4473 msgid ""
4474 " int guestfs_aug_save (guestfs_h *g);\n"
4475 "\n"
4476 msgstr ""
4477
4478 # type: textblock
4479 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:293
4480 msgid "This writes all pending changes to disk."
4481 msgstr ""
4482
4483 # type: textblock
4484 #: ../src/guestfs-actions.pod:387
4485 msgid ""
4486 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4487 "are saved."
4488 msgstr ""
4489
4490 # type: =head2
4491 #: ../src/guestfs-actions.pod:392
4492 msgid "guestfs_aug_set"
4493 msgstr ""
4494
4495 # type: verbatim
4496 #: ../src/guestfs-actions.pod:394
4497 #, no-wrap
4498 msgid ""
4499 " int guestfs_aug_set (guestfs_h *g,\n"
4500 "\t\tconst char *augpath,\n"
4501 "\t\tconst char *val);\n"
4502 "\n"
4503 msgstr ""
4504
4505 # type: textblock
4506 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:302
4507 msgid "Set the value associated with C<path> to C<val>."
4508 msgstr ""
4509
4510 # type: textblock
4511 #: ../src/guestfs-actions.pod:400
4512 msgid ""
4513 "In the Augeas API, it is possible to clear a node by setting the value to "
4514 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4515 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4516 msgstr ""
4517
4518 # type: =head2
4519 #: ../src/guestfs-actions.pod:407
4520 msgid "guestfs_available"
4521 msgstr ""
4522
4523 # type: verbatim
4524 #: ../src/guestfs-actions.pod:409
4525 #, no-wrap
4526 msgid ""
4527 " int guestfs_available (guestfs_h *g,\n"
4528 "\t\tchar *const *groups);\n"
4529 "\n"
4530 msgstr ""
4531
4532 # type: textblock
4533 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:313
4534 msgid ""
4535 "This command is used to check the availability of some groups of "
4536 "functionality in the appliance, which not all builds of the libguestfs "
4537 "appliance will be able to provide."
4538 msgstr ""
4539
4540 # type: textblock
4541 #: ../src/guestfs-actions.pod:416
4542 msgid ""
4543 "The libguestfs groups, and the functions that those groups correspond to, "
4544 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4545 "runtime by calling C<guestfs_available_all_groups>."
4546 msgstr ""
4547
4548 # type: textblock
4549 #: ../src/guestfs-actions.pod:421 ../fish/guestfish-actions.pod:322
4550 msgid ""
4551 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4552 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4553 "and Augeas (configuration file editing) functions."
4554 msgstr ""
4555
4556 # type: textblock
4557 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:327
4558 msgid "The command returns no error if I<all> requested groups are available."
4559 msgstr ""
4560
4561 # type: textblock
4562 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:329
4563 msgid ""
4564 "It fails with an error if one or more of the requested groups is unavailable "
4565 "in the appliance."
4566 msgstr ""
4567
4568 # type: textblock
4569 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:332
4570 msgid ""
4571 "If an unknown group name is included in the list of groups then an error is "
4572 "always returned."
4573 msgstr ""
4574
4575 # type: textblock
4576 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:335
4577 msgid "I<Notes:>"
4578 msgstr ""
4579
4580 # type: textblock
4581 #: ../src/guestfs-actions.pod:440
4582 msgid "You must call C<guestfs_launch> before calling this function."
4583 msgstr ""
4584
4585 # type: textblock
4586 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:343
4587 msgid ""
4588 "The reason is because we don't know what groups are supported by the "
4589 "appliance/daemon until it is running and can be queried."
4590 msgstr ""
4591
4592 # type: textblock
4593 #: ../src/guestfs-actions.pod:448 ../fish/guestfish-actions.pod:349
4594 msgid ""
4595 "If a group of functions is available, this does not necessarily mean that "
4596 "they will work.  You still have to check for errors when calling individual "
4597 "API functions even if they are available."
4598 msgstr ""
4599
4600 # type: textblock
4601 #: ../src/guestfs-actions.pod:455 ../fish/guestfish-actions.pod:356
4602 msgid ""
4603 "It is usually the job of distro packagers to build complete functionality "
4604 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4605 "with all requirements satisfied, will support everything."
4606 msgstr ""
4607
4608 # type: textblock
4609 #: ../src/guestfs-actions.pod:462
4610 msgid ""
4611 "This call was added in version C<1.0.80>.  In previous versions of "
4612 "libguestfs all you could do would be to speculatively execute a command to "
4613 "find out if the daemon implemented it.  See also C<guestfs_version>."
4614 msgstr ""
4615
4616 # type: =head2
4617 #: ../src/guestfs-actions.pod:471
4618 msgid "guestfs_available_all_groups"
4619 msgstr ""
4620
4621 # type: verbatim
4622 #: ../src/guestfs-actions.pod:473
4623 #, no-wrap
4624 msgid ""
4625 " char **guestfs_available_all_groups (guestfs_h *g);\n"
4626 "\n"
4627 msgstr ""
4628
4629 # type: textblock
4630 #: ../src/guestfs-actions.pod:475
4631 msgid ""
4632 "This command returns a list of all optional groups that this daemon knows "
4633 "about.  Note this returns both supported and unsupported groups.  To find "
4634 "out which ones the daemon can actually support you have to call "
4635 "C<guestfs_available> on each member of the returned list."
4636 msgstr ""
4637
4638 # type: textblock
4639 #: ../src/guestfs-actions.pod:481
4640 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4641 msgstr ""
4642
4643 # type: =head2
4644 #: ../src/guestfs-actions.pod:487
4645 msgid "guestfs_base64_in"
4646 msgstr ""
4647
4648 # type: verbatim
4649 #: ../src/guestfs-actions.pod:489
4650 #, no-wrap
4651 msgid ""
4652 " int guestfs_base64_in (guestfs_h *g,\n"
4653 "\t\tconst char *base64file,\n"
4654 "\t\tconst char *filename);\n"
4655 "\n"
4656 msgstr ""
4657
4658 # type: textblock
4659 #: ../src/guestfs-actions.pod:493 ../fish/guestfish-actions.pod:386
4660 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4661 msgstr ""
4662
4663 # type: =head2
4664 #: ../src/guestfs-actions.pod:498
4665 msgid "guestfs_base64_out"
4666 msgstr ""
4667
4668 # type: verbatim
4669 #: ../src/guestfs-actions.pod:500
4670 #, no-wrap
4671 msgid ""
4672 " int guestfs_base64_out (guestfs_h *g,\n"
4673 "\t\tconst char *filename,\n"
4674 "\t\tconst char *base64file);\n"
4675 "\n"
4676 msgstr ""
4677
4678 # type: textblock
4679 #: ../src/guestfs-actions.pod:504 ../fish/guestfish-actions.pod:395
4680 msgid ""
4681 "This command downloads the contents of C<filename>, writing it out to local "
4682 "file C<base64file> encoded as base64."
4683 msgstr ""
4684
4685 # type: =head2
4686 #: ../src/guestfs-actions.pod:509
4687 msgid "guestfs_blockdev_flushbufs"
4688 msgstr ""
4689
4690 # type: verbatim
4691 #: ../src/guestfs-actions.pod:511
4692 #, no-wrap
4693 msgid ""
4694 " int guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4695 "\t\tconst char *device);\n"
4696 "\n"
4697 msgstr ""
4698
4699 # type: textblock
4700 #: ../src/guestfs-actions.pod:514 ../fish/guestfish-actions.pod:404
4701 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4702 msgstr ""
4703
4704 # type: textblock
4705 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:556 ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:613 ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:635 ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418 ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462 ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481 ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
4706 msgid "This uses the L<blockdev(8)> command."
4707 msgstr ""
4708
4709 # type: =head2
4710 #: ../src/guestfs-actions.pod:521
4711 msgid "guestfs_blockdev_getbsz"
4712 msgstr ""
4713
4714 # type: verbatim
4715 #: ../src/guestfs-actions.pod:523
4716 #, no-wrap
4717 msgid ""
4718 " int guestfs_blockdev_getbsz (guestfs_h *g,\n"
4719 "\t\tconst char *device);\n"
4720 "\n"
4721 msgstr ""
4722
4723 # type: textblock
4724 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:413
4725 msgid "This returns the block size of a device."
4726 msgstr ""
4727
4728 # type: textblock
4729 #: ../src/guestfs-actions.pod:528 ../src/guestfs-actions.pod:610 ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4730 msgid ""
4731 "(Note this is different from both I<size in blocks> and I<filesystem block "
4732 "size>)."
4733 msgstr ""
4734
4735 # type: =head2
4736 #: ../src/guestfs-actions.pod:535
4737 msgid "guestfs_blockdev_getro"
4738 msgstr ""
4739
4740 # type: verbatim
4741 #: ../src/guestfs-actions.pod:537
4742 #, no-wrap
4743 msgid ""
4744 " int guestfs_blockdev_getro (guestfs_h *g,\n"
4745 "\t\tconst char *device);\n"
4746 "\n"
4747 msgstr ""
4748
4749 # type: textblock
4750 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:424
4751 msgid ""
4752 "Returns a boolean indicating if the block device is read-only (true if "
4753 "read-only, false if not)."
4754 msgstr ""
4755
4756 # type: textblock
4757 #: ../src/guestfs-actions.pod:545 ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1693 ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:2405 ../src/guestfs-actions.pod:2416 ../src/guestfs-actions.pod:2428 ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2452 ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2488 ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2533 ../src/guestfs-actions.pod:3729
4758 msgid "This function returns a C truth value on success or -1 on error."
4759 msgstr ""
4760
4761 # type: =head2
4762 #: ../src/guestfs-actions.pod:547
4763 msgid "guestfs_blockdev_getsize64"
4764 msgstr ""
4765
4766 # type: verbatim
4767 #: ../src/guestfs-actions.pod:549
4768 #, no-wrap
4769 msgid ""
4770 " int64_t guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4771 "\t\tconst char *device);\n"
4772 "\n"
4773 msgstr ""
4774
4775 # type: textblock
4776 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:433
4777 msgid "This returns the size of the device in bytes."
4778 msgstr ""
4779
4780 # type: textblock
4781 #: ../src/guestfs-actions.pod:554
4782 msgid "See also C<guestfs_blockdev_getsz>."
4783 msgstr ""
4784
4785 # type: =head2
4786 #: ../src/guestfs-actions.pod:560
4787 msgid "guestfs_blockdev_getss"
4788 msgstr ""
4789
4790 # type: verbatim
4791 #: ../src/guestfs-actions.pod:562
4792 #, no-wrap
4793 msgid ""
4794 " int guestfs_blockdev_getss (guestfs_h *g,\n"
4795 "\t\tconst char *device);\n"
4796 "\n"
4797 msgstr ""
4798
4799 # type: textblock
4800 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:443
4801 msgid ""
4802 "This returns the size of sectors on a block device.  Usually 512, but can be "
4803 "larger for modern devices."
4804 msgstr ""
4805
4806 # type: textblock
4807 #: ../src/guestfs-actions.pod:568
4808 msgid ""
4809 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
4810 "that)."
4811 msgstr ""
4812
4813 # type: =head2
4814 #: ../src/guestfs-actions.pod:575
4815 msgid "guestfs_blockdev_getsz"
4816 msgstr ""
4817
4818 # type: verbatim
4819 #: ../src/guestfs-actions.pod:577
4820 #, no-wrap
4821 msgid ""
4822 " int64_t guestfs_blockdev_getsz (guestfs_h *g,\n"
4823 "\t\tconst char *device);\n"
4824 "\n"
4825 msgstr ""
4826
4827 # type: textblock
4828 #: ../src/guestfs-actions.pod:580 ../fish/guestfish-actions.pod:455
4829 msgid ""
4830 "This returns the size of the device in units of 512-byte sectors (even if "
4831 "the sectorsize isn't 512 bytes ... weird)."
4832 msgstr ""
4833
4834 # type: textblock
4835 #: ../src/guestfs-actions.pod:583
4836 msgid ""
4837 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
4838 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
4839 msgstr ""
4840
4841 # type: =head2
4842 #: ../src/guestfs-actions.pod:591
4843 msgid "guestfs_blockdev_rereadpt"
4844 msgstr ""
4845
4846 # type: verbatim
4847 #: ../src/guestfs-actions.pod:593
4848 #, no-wrap
4849 msgid ""
4850 " int guestfs_blockdev_rereadpt (guestfs_h *g,\n"
4851 "\t\tconst char *device);\n"
4852 "\n"
4853 msgstr ""
4854
4855 # type: textblock
4856 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:468
4857 msgid "Reread the partition table on C<device>."
4858 msgstr ""
4859
4860 # type: =head2
4861 #: ../src/guestfs-actions.pod:602
4862 msgid "guestfs_blockdev_setbsz"
4863 msgstr ""
4864
4865 # type: verbatim
4866 #: ../src/guestfs-actions.pod:604
4867 #, no-wrap
4868 msgid ""
4869 " int guestfs_blockdev_setbsz (guestfs_h *g,\n"
4870 "\t\tconst char *device,\n"
4871 "\t\tint blocksize);\n"
4872 "\n"
4873 msgstr ""
4874
4875 # type: textblock
4876 #: ../src/guestfs-actions.pod:608 ../fish/guestfish-actions.pod:476
4877 msgid "This sets the block size of a device."
4878 msgstr ""
4879
4880 # type: =head2
4881 #: ../src/guestfs-actions.pod:617
4882 msgid "guestfs_blockdev_setro"
4883 msgstr ""
4884
4885 # type: verbatim
4886 #: ../src/guestfs-actions.pod:619
4887 #, no-wrap
4888 msgid ""
4889 " int guestfs_blockdev_setro (guestfs_h *g,\n"
4890 "\t\tconst char *device);\n"
4891 "\n"
4892 msgstr ""
4893
4894 # type: textblock
4895 #: ../src/guestfs-actions.pod:622 ../fish/guestfish-actions.pod:487
4896 msgid "Sets the block device named C<device> to read-only."
4897 msgstr ""
4898
4899 # type: =head2
4900 #: ../src/guestfs-actions.pod:628
4901 msgid "guestfs_blockdev_setrw"
4902 msgstr ""
4903
4904 # type: verbatim
4905 #: ../src/guestfs-actions.pod:630
4906 #, no-wrap
4907 msgid ""
4908 " int guestfs_blockdev_setrw (guestfs_h *g,\n"
4909 "\t\tconst char *device);\n"
4910 "\n"
4911 msgstr ""
4912
4913 # type: textblock
4914 #: ../src/guestfs-actions.pod:633 ../fish/guestfish-actions.pod:495
4915 msgid "Sets the block device named C<device> to read-write."
4916 msgstr ""
4917
4918 # type: =head2
4919 #: ../src/guestfs-actions.pod:639
4920 msgid "guestfs_case_sensitive_path"
4921 msgstr ""
4922
4923 # type: verbatim
4924 #: ../src/guestfs-actions.pod:641
4925 #, no-wrap
4926 msgid ""
4927 " char *guestfs_case_sensitive_path (guestfs_h *g,\n"
4928 "\t\tconst char *path);\n"
4929 "\n"
4930 msgstr ""
4931
4932 # type: textblock
4933 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:503
4934 msgid ""
4935 "This can be used to resolve case insensitive paths on a filesystem which is "
4936 "case sensitive.  The use case is to resolve paths which you have read from "
4937 "Windows configuration files or the Windows Registry, to the true path."
4938 msgstr ""
4939
4940 # type: textblock
4941 #: ../src/guestfs-actions.pod:649 ../fish/guestfish-actions.pod:508
4942 msgid ""
4943 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4944 "(and probably others), which is that although the underlying filesystem is "
4945 "case-insensitive, the driver exports the filesystem to Linux as "
4946 "case-sensitive."
4947 msgstr ""
4948
4949 # type: textblock
4950 #: ../src/guestfs-actions.pod:654 ../fish/guestfish-actions.pod:513
4951 msgid ""
4952 "One consequence of this is that special directories such as C<c:\\windows> "
4953 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4954 "precise details of how they were created.  In Windows itself this would not "
4955 "be a problem."
4956 msgstr ""
4957
4958 # type: textblock
4959 #: ../src/guestfs-actions.pod:660 ../fish/guestfish-actions.pod:519
4960 msgid ""
4961 "Bug or feature? You decide: "
4962 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4963 msgstr ""
4964
4965 # type: textblock
4966 #: ../src/guestfs-actions.pod:663 ../fish/guestfish-actions.pod:522
4967 msgid ""
4968 "This function resolves the true case of each element in the path and returns "
4969 "the case-sensitive path."
4970 msgstr ""
4971
4972 # type: textblock
4973 #: ../src/guestfs-actions.pod:666
4974 msgid ""
4975 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
4976 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4977 "how the directories were originally created under Windows)."
4978 msgstr ""
4979
4980 # type: textblock
4981 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:530
4982 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4983 msgstr ""
4984
4985 # type: textblock
4986 #: ../src/guestfs-actions.pod:674
4987 msgid "See also C<guestfs_realpath>."
4988 msgstr ""
4989
4990 # type: =head2
4991 #: ../src/guestfs-actions.pod:679
4992 msgid "guestfs_cat"
4993 msgstr ""
4994
4995 # type: verbatim
4996 #: ../src/guestfs-actions.pod:681
4997 #, no-wrap
4998 msgid ""
4999 " char *guestfs_cat (guestfs_h *g,\n"
5000 "\t\tconst char *path);\n"
5001 "\n"
5002 msgstr ""
5003
5004 # type: textblock
5005 #: ../src/guestfs-actions.pod:684 ../src/guestfs-actions.pod:4152 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3193
5006 msgid "Return the contents of the file named C<path>."
5007 msgstr ""
5008
5009 # type: textblock
5010 #: ../src/guestfs-actions.pod:686
5011 msgid ""
5012 "Note that this function cannot correctly handle binary files (specifically, "
5013 "files containing C<\\0> character which is treated as end of string).  For "
5014 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5015 "functions which have a more complex interface."
5016 msgstr ""
5017
5018 # type: textblock
5019 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:855 ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1151 ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1255 ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1502 ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4100 ../src/guestfs-actions.pod:4123 ../src/guestfs-actions.pod:4144 ../src/guestfs-actions.pod:4870 ../src/guestfs-actions.pod:4922 ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:5604 ../src/guestfs-actions.pod:5627 ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:5811 ../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:3063 ../fish/guestfish-actions.pod:3078 ../fish/guestfish-actions.pod:3154 ../fish/guestfish-actions.pod:3171 ../fish/guestfish-actions.pod:3186 ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3815 ../fish/guestfish-actions.pod:3900 ../fish/guestfish-actions.pod:3915 ../fish/guestfish-actions.pod:4325 ../fish/guestfish-actions.pod:4343 ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4370 ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4428 ../fish/guestfish-actions.pod:4457 ../fish/guestfish-actions.pod:4467
5020 msgid ""
5021 "Because of the message protocol, there is a transfer limit of somewhere "
5022 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5023 msgstr ""
5024
5025 # type: =head2
5026 #: ../src/guestfs-actions.pod:697
5027 msgid "guestfs_checksum"
5028 msgstr ""
5029
5030 # type: verbatim
5031 #: ../src/guestfs-actions.pod:699
5032 #, no-wrap
5033 msgid ""
5034 " char *guestfs_checksum (guestfs_h *g,\n"
5035 "\t\tconst char *csumtype,\n"
5036 "\t\tconst char *path);\n"
5037 "\n"
5038 msgstr ""
5039
5040 # type: textblock
5041 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:553
5042 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5043 msgstr ""
5044
5045 # type: textblock
5046 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:556
5047 msgid ""
5048 "The type of checksum to compute is given by the C<csumtype> parameter which "
5049 "must have one of the following values:"
5050 msgstr ""
5051
5052 # type: =item
5053 #: ../src/guestfs-actions.pod:711 ../fish/guestfish-actions.pod:561
5054 msgid "C<crc>"
5055 msgstr ""
5056
5057 # type: textblock
5058 #: ../src/guestfs-actions.pod:713 ../fish/guestfish-actions.pod:563
5059 msgid ""
5060 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5061 "C<cksum> command."
5062 msgstr ""
5063
5064 # type: =item
5065 #: ../src/guestfs-actions.pod:716 ../fish/guestfish-actions.pod:566
5066 msgid "C<md5>"
5067 msgstr ""
5068
5069 # type: textblock
5070 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:568
5071 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5072 msgstr ""
5073
5074 # type: =item
5075 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:570
5076 msgid "C<sha1>"
5077 msgstr ""
5078
5079 # type: textblock
5080 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:572
5081 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5082 msgstr ""
5083
5084 # type: =item
5085 #: ../src/guestfs-actions.pod:724 ../fish/guestfish-actions.pod:574
5086 msgid "C<sha224>"
5087 msgstr ""
5088
5089 # type: textblock
5090 #: ../src/guestfs-actions.pod:726 ../fish/guestfish-actions.pod:576
5091 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5092 msgstr ""
5093
5094 # type: =item
5095 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:578
5096 msgid "C<sha256>"
5097 msgstr ""
5098
5099 # type: textblock
5100 #: ../src/guestfs-actions.pod:730 ../fish/guestfish-actions.pod:580
5101 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5102 msgstr ""
5103
5104 # type: =item
5105 #: ../src/guestfs-actions.pod:732 ../fish/guestfish-actions.pod:582
5106 msgid "C<sha384>"
5107 msgstr ""
5108
5109 # type: textblock
5110 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:584
5111 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5112 msgstr ""
5113
5114 # type: =item
5115 #: ../src/guestfs-actions.pod:736 ../fish/guestfish-actions.pod:586
5116 msgid "C<sha512>"
5117 msgstr ""
5118
5119 # type: textblock
5120 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:588
5121 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5122 msgstr ""
5123
5124 # type: textblock
5125 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:592
5126 msgid "The checksum is returned as a printable string."
5127 msgstr ""
5128
5129 # type: textblock
5130 #: ../src/guestfs-actions.pod:744
5131 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5132 msgstr ""
5133
5134 # type: textblock
5135 #: ../src/guestfs-actions.pod:746
5136 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5137 msgstr ""
5138
5139 # type: =head2
5140 #: ../src/guestfs-actions.pod:751
5141 msgid "guestfs_checksum_device"
5142 msgstr ""
5143
5144 # type: verbatim
5145 #: ../src/guestfs-actions.pod:753
5146 #, no-wrap
5147 msgid ""
5148 " char *guestfs_checksum_device (guestfs_h *g,\n"
5149 "\t\tconst char *csumtype,\n"
5150 "\t\tconst char *device);\n"
5151 "\n"
5152 msgstr ""
5153
5154 # type: textblock
5155 #: ../src/guestfs-actions.pod:757
5156 msgid ""
5157 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5158 "device named C<device>.  For the types of checksums supported see the "
5159 "C<guestfs_checksum> command."
5160 msgstr ""
5161
5162 # type: =head2
5163 #: ../src/guestfs-actions.pod:764
5164 msgid "guestfs_checksums_out"
5165 msgstr ""
5166
5167 # type: verbatim
5168 #: ../src/guestfs-actions.pod:766
5169 #, no-wrap
5170 msgid ""
5171 " int guestfs_checksums_out (guestfs_h *g,\n"
5172 "\t\tconst char *csumtype,\n"
5173 "\t\tconst char *directory,\n"
5174 "\t\tconst char *sumsfile);\n"
5175 "\n"
5176 msgstr ""
5177
5178 # type: textblock
5179 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:610
5180 msgid ""
5181 "This command computes the checksums of all regular files in C<directory> and "
5182 "then emits a list of those checksums to the local output file C<sumsfile>."
5183 msgstr ""
5184
5185 # type: textblock
5186 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:614
5187 msgid ""
5188 "This can be used for verifying the integrity of a virtual machine.  However "
5189 "to be properly secure you should pay attention to the output of the checksum "
5190 "command (it uses the ones from GNU coreutils).  In particular when the "
5191 "filename is not printable, coreutils uses a special backslash syntax.  For "
5192 "more information, see the GNU coreutils info file."
5193 msgstr ""
5194
5195 # type: =head2
5196 #: ../src/guestfs-actions.pod:785
5197 msgid "guestfs_chmod"
5198 msgstr ""
5199
5200 # type: verbatim
5201 #: ../src/guestfs-actions.pod:787
5202 #, no-wrap
5203 msgid ""
5204 " int guestfs_chmod (guestfs_h *g,\n"
5205 "\t\tint mode,\n"
5206 "\t\tconst char *path);\n"
5207 "\n"
5208 msgstr ""
5209
5210 # type: textblock
5211 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:628
5212 msgid ""
5213 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5214 "supported."
5215 msgstr ""
5216
5217 # type: textblock
5218 #: ../src/guestfs-actions.pod:794 ../fish/guestfish-actions.pod:631
5219 msgid ""
5220 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5221 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5222 "C<700>."
5223 msgstr ""
5224
5225 # type: textblock
5226 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:3297 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3432 ../fish/guestfish-actions.pod:635 ../fish/guestfish-actions.pod:2553 ../fish/guestfish-actions.pod:2638 ../fish/guestfish-actions.pod:2648 ../fish/guestfish-actions.pod:2658
5227 msgid "The mode actually set is affected by the umask."
5228 msgstr ""
5229
5230 # type: =head2
5231 #: ../src/guestfs-actions.pod:802
5232 msgid "guestfs_chown"
5233 msgstr ""
5234
5235 # type: verbatim
5236 #: ../src/guestfs-actions.pod:804
5237 #, no-wrap
5238 msgid ""
5239 " int guestfs_chown (guestfs_h *g,\n"
5240 "\t\tint owner,\n"
5241 "\t\tint group,\n"
5242 "\t\tconst char *path);\n"
5243 "\n"
5244 msgstr ""
5245
5246 # type: textblock
5247 #: ../src/guestfs-actions.pod:809 ../fish/guestfish-actions.pod:641
5248 msgid "Change the file owner to C<owner> and group to C<group>."
5249 msgstr ""
5250
5251 # type: textblock
5252 #: ../src/guestfs-actions.pod:811 ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2031
5253 msgid ""
5254 "Only numeric uid and gid are supported.  If you want to use names, you will "
5255 "need to locate and parse the password file yourself (Augeas support makes "
5256 "this relatively easy)."
5257 msgstr ""
5258
5259 # type: =head2
5260 #: ../src/guestfs-actions.pod:817
5261 msgid "guestfs_command"
5262 msgstr ""
5263
5264 # type: verbatim
5265 #: ../src/guestfs-actions.pod:819
5266 #, no-wrap
5267 msgid ""
5268 " char *guestfs_command (guestfs_h *g,\n"
5269 "\t\tchar *const *arguments);\n"
5270 "\n"
5271 msgstr ""
5272
5273 # type: textblock
5274 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:651
5275 msgid ""
5276 "This call runs a command from the guest filesystem.  The filesystem must be "
5277 "mounted, and must contain a compatible operating system (ie. something "
5278 "Linux, with the same or compatible processor architecture)."
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:827
5283 msgid ""
5284 "The single parameter is an argv-style list of arguments.  The first element "
5285 "is the name of the program to run.  Subsequent elements are parameters.  The "
5286 "list must be non-empty (ie. must contain a program name).  Note that the "
5287 "command runs directly, and is I<not> invoked via the shell (see "
5288 "C<guestfs_sh>)."
5289 msgstr ""
5290
5291 # type: textblock
5292 #: ../src/guestfs-actions.pod:834 ../fish/guestfish-actions.pod:663
5293 msgid "The return value is anything printed to I<stdout> by the command."
5294 msgstr ""
5295
5296 # type: textblock
5297 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:666
5298 msgid ""
5299 "If the command returns a non-zero exit status, then this function returns an "
5300 "error message.  The error message string is the content of I<stderr> from "
5301 "the command."
5302 msgstr ""
5303
5304 # type: textblock
5305 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:670
5306 msgid ""
5307 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5308 "C</bin>.  If you require a program from another location, you should provide "
5309 "the full path in the first parameter."
5310 msgstr ""
5311
5312 # type: textblock
5313 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:675
5314 msgid ""
5315 "Shared libraries and data files required by the program must be available on "
5316 "filesystems which are mounted in the correct places.  It is the caller's "
5317 "responsibility to ensure all filesystems that are needed are mounted at the "
5318 "right locations."
5319 msgstr ""
5320
5321 # type: =head2
5322 #: ../src/guestfs-actions.pod:858
5323 msgid "guestfs_command_lines"
5324 msgstr ""
5325
5326 # type: verbatim
5327 #: ../src/guestfs-actions.pod:860
5328 #, no-wrap
5329 msgid ""
5330 " char **guestfs_command_lines (guestfs_h *g,\n"
5331 "\t\tchar *const *arguments);\n"
5332 "\n"
5333 msgstr ""
5334
5335 # type: textblock
5336 #: ../src/guestfs-actions.pod:863
5337 msgid ""
5338 "This is the same as C<guestfs_command>, but splits the result into a list of "
5339 "lines."
5340 msgstr ""
5341
5342 # type: textblock
5343 #: ../src/guestfs-actions.pod:866
5344 msgid "See also: C<guestfs_sh_lines>"
5345 msgstr ""
5346
5347 # type: =head2
5348 #: ../src/guestfs-actions.pod:875
5349 msgid "guestfs_config"
5350 msgstr ""
5351
5352 # type: verbatim
5353 #: ../src/guestfs-actions.pod:877
5354 #, no-wrap
5355 msgid ""
5356 " int guestfs_config (guestfs_h *g,\n"
5357 "\t\tconst char *qemuparam,\n"
5358 "\t\tconst char *qemuvalue);\n"
5359 "\n"
5360 msgstr ""
5361
5362 # type: textblock
5363 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:700
5364 msgid ""
5365 "This can be used to add arbitrary qemu command line parameters of the form "
5366 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5367 "setting some parameters which would interfere with parameters that we use."
5368 msgstr ""
5369
5370 # type: textblock
5371 #: ../src/guestfs-actions.pod:886 ../fish/guestfish-actions.pod:705
5372 msgid "The first character of C<param> string must be a C<-> (dash)."
5373 msgstr ""
5374
5375 # type: textblock
5376 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:707
5377 msgid "C<value> can be NULL."
5378 msgstr ""
5379
5380 # type: =head2
5381 #: ../src/guestfs-actions.pod:892
5382 msgid "guestfs_copy_size"
5383 msgstr ""
5384
5385 # type: verbatim
5386 #: ../src/guestfs-actions.pod:894
5387 #, no-wrap
5388 msgid ""
5389 " int guestfs_copy_size (guestfs_h *g,\n"
5390 "\t\tconst char *src,\n"
5391 "\t\tconst char *dest,\n"
5392 "\t\tint64_t size);\n"
5393 "\n"
5394 msgstr ""
5395
5396 # type: textblock
5397 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:713
5398 msgid ""
5399 "This command copies exactly C<size> bytes from one source device or file "
5400 "C<src> to another destination device or file C<dest>."
5401 msgstr ""
5402
5403 # type: textblock
5404 #: ../src/guestfs-actions.pod:902 ../fish/guestfish-actions.pod:716
5405 msgid ""
5406 "Note this will fail if the source is too short or if the destination is not "
5407 "large enough."
5408 msgstr ""
5409
5410 # type: textblock
5411 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:1042 ../src/guestfs-actions.pod:1070 ../src/guestfs-actions.pod:1442 ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:5700
5412 msgid ""
5413 "This long-running command can generate progress notification messages so "
5414 "that the caller can display a progress bar or indicator.  To receive these "
5415 "messages, the caller must register a progress callback.  See "
5416 "L<guestfs(3)/guestfs_set_progress_callback>."
5417 msgstr ""
5418
5419 # type: =head2
5420 #: ../src/guestfs-actions.pod:912
5421 msgid "guestfs_cp"
5422 msgstr ""
5423
5424 # type: verbatim
5425 #: ../src/guestfs-actions.pod:914
5426 #, no-wrap
5427 msgid ""
5428 " int guestfs_cp (guestfs_h *g,\n"
5429 "\t\tconst char *src,\n"
5430 "\t\tconst char *dest);\n"
5431 "\n"
5432 msgstr ""
5433
5434 # type: textblock
5435 #: ../src/guestfs-actions.pod:918 ../fish/guestfish-actions.pod:723
5436 msgid ""
5437 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5438 "destination filename or destination directory."
5439 msgstr ""
5440
5441 # type: =head2
5442 #: ../src/guestfs-actions.pod:923
5443 msgid "guestfs_cp_a"
5444 msgstr ""
5445
5446 # type: verbatim
5447 #: ../src/guestfs-actions.pod:925
5448 #, no-wrap
5449 msgid ""
5450 " int guestfs_cp_a (guestfs_h *g,\n"
5451 "\t\tconst char *src,\n"
5452 "\t\tconst char *dest);\n"
5453 "\n"
5454 msgstr ""
5455
5456 # type: textblock
5457 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:730
5458 msgid ""
5459 "This copies a file or directory from C<src> to C<dest> recursively using the "
5460 "C<cp -a> command."
5461 msgstr ""
5462
5463 # type: =head2
5464 #: ../src/guestfs-actions.pod:934
5465 msgid "guestfs_dd"
5466 msgstr ""
5467
5468 # type: verbatim
5469 #: ../src/guestfs-actions.pod:936
5470 #, no-wrap
5471 msgid ""
5472 " int guestfs_dd (guestfs_h *g,\n"
5473 "\t\tconst char *src,\n"
5474 "\t\tconst char *dest);\n"
5475 "\n"
5476 msgstr ""
5477
5478 # type: textblock
5479 #: ../src/guestfs-actions.pod:940 ../fish/guestfish-actions.pod:737
5480 msgid ""
5481 "This command copies from one source device or file C<src> to another "
5482 "destination device or file C<dest>.  Normally you would use this to copy to "
5483 "or from a device or partition, for example to duplicate a filesystem."
5484 msgstr ""
5485
5486 # type: textblock
5487 #: ../src/guestfs-actions.pod:945
5488 msgid ""
5489 "If the destination is a device, it must be as large or larger than the "
5490 "source file or device, otherwise the copy will fail.  This command cannot do "
5491 "partial copies (see C<guestfs_copy_size>)."
5492 msgstr ""
5493
5494 # type: =head2
5495 #: ../src/guestfs-actions.pod:951
5496 msgid "guestfs_debug"
5497 msgstr ""
5498
5499 # type: verbatim
5500 #: ../src/guestfs-actions.pod:953
5501 #, no-wrap
5502 msgid ""
5503 " char *guestfs_debug (guestfs_h *g,\n"
5504 "\t\tconst char *subcmd,\n"
5505 "\t\tchar *const *extraargs);\n"
5506 "\n"
5507 msgstr ""
5508
5509 # type: textblock
5510 #: ../src/guestfs-actions.pod:957
5511 msgid ""
5512 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5513 "guestfs daemon) that runs inside the qemu subprocess."
5514 msgstr ""
5515
5516 # type: textblock
5517 #: ../src/guestfs-actions.pod:961 ../fish/guestfish-actions.pod:754
5518 msgid ""
5519 "There is no comprehensive help for this command.  You have to look at the "
5520 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5521 msgstr ""
5522
5523 # type: =head2
5524 #: ../src/guestfs-actions.pod:968
5525 msgid "guestfs_debug_upload"
5526 msgstr ""
5527
5528 # type: verbatim
5529 #: ../src/guestfs-actions.pod:970
5530 #, no-wrap
5531 msgid ""
5532 " int guestfs_debug_upload (guestfs_h *g,\n"
5533 "\t\tconst char *filename,\n"
5534 "\t\tconst char *tmpname,\n"
5535 "\t\tint mode);\n"
5536 "\n"
5537 msgstr ""
5538
5539 # type: textblock
5540 #: ../src/guestfs-actions.pod:975
5541 msgid ""
5542 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5543 "appliance."
5544 msgstr ""
5545
5546 # type: textblock
5547 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:765
5548 msgid ""
5549 "There is no comprehensive help for this command.  You have to look at the "
5550 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5551 msgstr ""
5552
5553 # type: =head2
5554 #: ../src/guestfs-actions.pod:984
5555 msgid "guestfs_df"
5556 msgstr ""
5557
5558 # type: verbatim
5559 #: ../src/guestfs-actions.pod:986
5560 #, no-wrap
5561 msgid ""
5562 " char *guestfs_df (guestfs_h *g);\n"
5563 "\n"
5564 msgstr ""
5565
5566 # type: textblock
5567 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:775
5568 msgid "This command runs the C<df> command to report disk space used."
5569 msgstr ""
5570
5571 # type: textblock
5572 #: ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1004 ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5573 msgid ""
5574 "This command is mostly useful for interactive sessions.  It is I<not> "
5575 "intended that you try to parse the output string.  Use C<statvfs> from "
5576 "programs."
5577 msgstr ""
5578
5579 # type: =head2
5580 #: ../src/guestfs-actions.pod:997
5581 msgid "guestfs_df_h"
5582 msgstr ""
5583
5584 # type: verbatim
5585 #: ../src/guestfs-actions.pod:999
5586 #, no-wrap
5587 msgid ""
5588 " char *guestfs_df_h (guestfs_h *g);\n"
5589 "\n"
5590 msgstr ""
5591
5592 # type: textblock
5593 #: ../src/guestfs-actions.pod:1001 ../fish/guestfish-actions.pod:785
5594 msgid ""
5595 "This command runs the C<df -h> command to report disk space used in "
5596 "human-readable format."
5597 msgstr ""
5598
5599 # type: =head2
5600 #: ../src/guestfs-actions.pod:1011
5601 msgid "guestfs_dmesg"
5602 msgstr ""
5603
5604 # type: verbatim
5605 #: ../src/guestfs-actions.pod:1013
5606 #, no-wrap
5607 msgid ""
5608 " char *guestfs_dmesg (guestfs_h *g);\n"
5609 "\n"
5610 msgstr ""
5611
5612 # type: textblock
5613 #: ../src/guestfs-actions.pod:1015 ../fish/guestfish-actions.pod:796
5614 msgid ""
5615 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5616 "This is sometimes useful for extended debugging of problems."
5617 msgstr ""
5618
5619 # type: textblock
5620 #: ../src/guestfs-actions.pod:1019
5621 msgid ""
5622 "Another way to get the same information is to enable verbose messages with "
5623 "C<guestfs_set_verbose> or by setting the environment variable "
5624 "C<LIBGUESTFS_DEBUG=1> before running the program."
5625 msgstr ""
5626
5627 # type: =head2
5628 #: ../src/guestfs-actions.pod:1027
5629 msgid "guestfs_download"
5630 msgstr ""
5631
5632 # type: verbatim
5633 #: ../src/guestfs-actions.pod:1029
5634 #, no-wrap
5635 msgid ""
5636 " int guestfs_download (guestfs_h *g,\n"
5637 "\t\tconst char *remotefilename,\n"
5638 "\t\tconst char *filename);\n"
5639 "\n"
5640 msgstr ""
5641
5642 # type: textblock
5643 #: ../src/guestfs-actions.pod:1033 ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5644 msgid ""
5645 "Download file C<remotefilename> and save it as C<filename> on the local "
5646 "machine."
5647 msgstr ""
5648
5649 # type: textblock
5650 #: ../src/guestfs-actions.pod:1036 ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4073
5651 msgid "C<filename> can also be a named pipe."
5652 msgstr ""
5653
5654 # type: textblock
5655 #: ../src/guestfs-actions.pod:1038
5656 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5657 msgstr ""
5658
5659 # type: =head2
5660 #: ../src/guestfs-actions.pod:1047
5661 msgid "guestfs_download_offset"
5662 msgstr ""
5663
5664 # type: verbatim
5665 #: ../src/guestfs-actions.pod:1049
5666 #, no-wrap
5667 msgid ""
5668 " int guestfs_download_offset (guestfs_h *g,\n"
5669 "\t\tconst char *remotefilename,\n"
5670 "\t\tconst char *filename,\n"
5671 "\t\tint64_t offset,\n"
5672 "\t\tint64_t size);\n"
5673 "\n"
5674 msgstr ""
5675
5676 # type: textblock
5677 #: ../src/guestfs-actions.pod:1058 ../fish/guestfish-actions.pod:825
5678 msgid ""
5679 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5680 "region must be within the file or device)."
5681 msgstr ""
5682
5683 # type: textblock
5684 #: ../src/guestfs-actions.pod:1061
5685 msgid ""
5686 "Note that there is no limit on the amount of data that can be downloaded "
5687 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5688 "full amount unless an error occurs."
5689 msgstr ""
5690
5691 # type: textblock
5692 #: ../src/guestfs-actions.pod:1066
5693 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5694 msgstr ""
5695
5696 # type: =head2
5697 #: ../src/guestfs-actions.pod:1075
5698 msgid "guestfs_drop_caches"
5699 msgstr ""
5700
5701 # type: verbatim
5702 #: ../src/guestfs-actions.pod:1077
5703 #, no-wrap
5704 msgid ""
5705 " int guestfs_drop_caches (guestfs_h *g,\n"
5706 "\t\tint whattodrop);\n"
5707 "\n"
5708 msgstr ""
5709
5710 # type: textblock
5711 #: ../src/guestfs-actions.pod:1080 ../fish/guestfish-actions.pod:841
5712 msgid ""
5713 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5714 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5715 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5716 msgstr ""
5717
5718 # type: textblock
5719 #: ../src/guestfs-actions.pod:1085 ../fish/guestfish-actions.pod:846
5720 msgid "Setting C<whattodrop> to 3 should drop everything."
5721 msgstr ""
5722
5723 # type: textblock
5724 #: ../src/guestfs-actions.pod:1087 ../fish/guestfish-actions.pod:848
5725 msgid ""
5726 "This automatically calls L<sync(2)> before the operation, so that the "
5727 "maximum guest memory is freed."
5728 msgstr ""
5729
5730 # type: =head2
5731 #: ../src/guestfs-actions.pod:1092
5732 msgid "guestfs_du"
5733 msgstr ""
5734
5735 # type: verbatim
5736 #: ../src/guestfs-actions.pod:1094
5737 #, no-wrap
5738 msgid ""
5739 " int64_t guestfs_du (guestfs_h *g,\n"
5740 "\t\tconst char *path);\n"
5741 "\n"
5742 msgstr ""
5743
5744 # type: textblock
5745 #: ../src/guestfs-actions.pod:1097 ../fish/guestfish-actions.pod:855
5746 msgid ""
5747 "This command runs the C<du -s> command to estimate file space usage for "
5748 "C<path>."
5749 msgstr ""
5750
5751 # type: textblock
5752 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:858
5753 msgid ""
5754 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5755 "estimate includes the contents of the directory and all subdirectories "
5756 "(recursively)."
5757 msgstr ""
5758
5759 # type: textblock
5760 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:862
5761 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5762 msgstr ""
5763
5764 # type: =head2
5765 #: ../src/guestfs-actions.pod:1109
5766 msgid "guestfs_e2fsck_f"
5767 msgstr ""
5768
5769 # type: verbatim
5770 #: ../src/guestfs-actions.pod:1111
5771 #, no-wrap
5772 msgid ""
5773 " int guestfs_e2fsck_f (guestfs_h *g,\n"
5774 "\t\tconst char *device);\n"
5775 "\n"
5776 msgstr ""
5777
5778 # type: textblock
5779 #: ../src/guestfs-actions.pod:1114 ../fish/guestfish-actions.pod:869
5780 msgid ""
5781 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5782 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5783 "clean (C<-f>)."
5784 msgstr ""
5785
5786 # type: textblock
5787 #: ../src/guestfs-actions.pod:1118
5788 msgid ""
5789 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5790 "Normally you should use C<guestfs_fsck>."
5791 msgstr ""
5792
5793 # type: =head2
5794 #: ../src/guestfs-actions.pod:1123
5795 msgid "guestfs_echo_daemon"
5796 msgstr ""
5797
5798 # type: verbatim
5799 #: ../src/guestfs-actions.pod:1125
5800 #, no-wrap
5801 msgid ""
5802 " char *guestfs_echo_daemon (guestfs_h *g,\n"
5803 "\t\tchar *const *words);\n"
5804 "\n"
5805 msgstr ""
5806
5807 # type: textblock
5808 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:880
5809 msgid ""
5810 "This command concatenates the list of C<words> passed with single spaces "
5811 "between them and returns the resulting string."
5812 msgstr ""
5813
5814 # type: textblock
5815 #: ../src/guestfs-actions.pod:1131 ../fish/guestfish-actions.pod:883
5816 msgid "You can use this command to test the connection through to the daemon."
5817 msgstr ""
5818
5819 # type: textblock
5820 #: ../src/guestfs-actions.pod:1133
5821 msgid "See also C<guestfs_ping_daemon>."
5822 msgstr ""
5823
5824 # type: =head2
5825 #: ../src/guestfs-actions.pod:1138
5826 msgid "guestfs_egrep"
5827 msgstr ""
5828
5829 # type: verbatim
5830 #: ../src/guestfs-actions.pod:1140
5831 #, no-wrap
5832 msgid ""
5833 " char **guestfs_egrep (guestfs_h *g,\n"
5834 "\t\tconst char *regex,\n"
5835 "\t\tconst char *path);\n"
5836 "\n"
5837 msgstr ""
5838
5839 # type: textblock
5840 #: ../src/guestfs-actions.pod:1144 ../fish/guestfish-actions.pod:891
5841 msgid "This calls the external C<egrep> program and returns the matching lines."
5842 msgstr ""
5843
5844 # type: =head2
5845 #: ../src/guestfs-actions.pod:1154
5846 msgid "guestfs_egrepi"
5847 msgstr ""
5848
5849 # type: verbatim
5850 #: ../src/guestfs-actions.pod:1156
5851 #, no-wrap
5852 msgid ""
5853 " char **guestfs_egrepi (guestfs_h *g,\n"
5854 "\t\tconst char *regex,\n"
5855 "\t\tconst char *path);\n"
5856 "\n"
5857 msgstr ""
5858
5859 # type: textblock
5860 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:901
5861 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5862 msgstr ""
5863
5864 # type: =head2
5865 #: ../src/guestfs-actions.pod:1170
5866 msgid "guestfs_equal"
5867 msgstr ""
5868
5869 # type: verbatim
5870 #: ../src/guestfs-actions.pod:1172
5871 #, no-wrap
5872 msgid ""
5873 " int guestfs_equal (guestfs_h *g,\n"
5874 "\t\tconst char *file1,\n"
5875 "\t\tconst char *file2);\n"
5876 "\n"
5877 msgstr ""
5878
5879 # type: textblock
5880 #: ../src/guestfs-actions.pod:1176 ../fish/guestfish-actions.pod:911
5881 msgid ""
5882 "This compares the two files C<file1> and C<file2> and returns true if their "
5883 "content is exactly equal, or false otherwise."
5884 msgstr ""
5885
5886 # type: textblock
5887 #: ../src/guestfs-actions.pod:1179 ../fish/guestfish-actions.pod:914
5888 msgid "The external L<cmp(1)> program is used for the comparison."
5889 msgstr ""
5890
5891 # type: =head2
5892 #: ../src/guestfs-actions.pod:1183
5893 msgid "guestfs_exists"
5894 msgstr ""
5895
5896 # type: verbatim
5897 #: ../src/guestfs-actions.pod:1185
5898 #, no-wrap
5899 msgid ""
5900 " int guestfs_exists (guestfs_h *g,\n"
5901 "\t\tconst char *path);\n"
5902 "\n"
5903 msgstr ""
5904
5905 # type: textblock
5906 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:920
5907 msgid ""
5908 "This returns C<true> if and only if there is a file, directory (or anything) "
5909 "with the given C<path> name."
5910 msgstr ""
5911
5912 # type: textblock
5913 #: ../src/guestfs-actions.pod:1191
5914 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
5915 msgstr ""
5916
5917 # type: =head2
5918 #: ../src/guestfs-actions.pod:1195
5919 msgid "guestfs_fallocate"
5920 msgstr ""
5921
5922 # type: verbatim
5923 #: ../src/guestfs-actions.pod:1197
5924 #, no-wrap
5925 msgid ""
5926 " int guestfs_fallocate (guestfs_h *g,\n"
5927 "\t\tconst char *path,\n"
5928 "\t\tint len);\n"
5929 "\n"
5930 msgstr ""
5931
5932 # type: textblock
5933 #: ../src/guestfs-actions.pod:1201 ../src/guestfs-actions.pod:1224 ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
5934 msgid ""
5935 "This command preallocates a file (containing zero bytes) named C<path> of "
5936 "size C<len> bytes.  If the file exists already, it is overwritten."
5937 msgstr ""
5938
5939 # type: textblock
5940 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:933
5941 msgid ""
5942 "Do not confuse this with the guestfish-specific C<alloc> command which "
5943 "allocates a file in the host and attaches it as a device."
5944 msgstr ""
5945
5946 # type: textblock
5947 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:937
5948 msgid ""
5949 "This function is deprecated.  In new code, use the C<fallocate64> call "
5950 "instead."
5951 msgstr ""
5952
5953 # type: =head2
5954 #: ../src/guestfs-actions.pod:1218
5955 msgid "guestfs_fallocate64"
5956 msgstr ""
5957
5958 # type: verbatim
5959 #: ../src/guestfs-actions.pod:1220
5960 #, no-wrap
5961 msgid ""
5962 " int guestfs_fallocate64 (guestfs_h *g,\n"
5963 "\t\tconst char *path,\n"
5964 "\t\tint64_t len);\n"
5965 "\n"
5966 msgstr ""
5967
5968 # type: textblock
5969 #: ../src/guestfs-actions.pod:1228
5970 msgid ""
5971 "Note that this call allocates disk blocks for the file.  To create a sparse "
5972 "file use C<guestfs_truncate_size> instead."
5973 msgstr ""
5974
5975 # type: textblock
5976 #: ../src/guestfs-actions.pod:1231
5977 msgid ""
5978 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
5979 "oversight it only allowed 30 bit lengths to be specified, effectively "
5980 "limiting the maximum size of files created through that call to 1GB."
5981 msgstr ""
5982
5983 # type: textblock
5984 #: ../src/guestfs-actions.pod:1236 ../fish/guestfish-actions.pod:960
5985 msgid ""
5986 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5987 "commands which create a file in the host and attach it as a device."
5988 msgstr ""
5989
5990 # type: =head2
5991 #: ../src/guestfs-actions.pod:1242
5992 msgid "guestfs_fgrep"
5993 msgstr ""
5994
5995 # type: verbatim
5996 #: ../src/guestfs-actions.pod:1244
5997 #, no-wrap
5998 msgid ""
5999 " char **guestfs_fgrep (guestfs_h *g,\n"
6000 "\t\tconst char *pattern,\n"
6001 "\t\tconst char *path);\n"
6002 "\n"
6003 msgstr ""
6004
6005 # type: textblock
6006 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:968
6007 msgid "This calls the external C<fgrep> program and returns the matching lines."
6008 msgstr ""
6009
6010 # type: =head2
6011 #: ../src/guestfs-actions.pod:1258
6012 msgid "guestfs_fgrepi"
6013 msgstr ""
6014
6015 # type: verbatim
6016 #: ../src/guestfs-actions.pod:1260
6017 #, no-wrap
6018 msgid ""
6019 " char **guestfs_fgrepi (guestfs_h *g,\n"
6020 "\t\tconst char *pattern,\n"
6021 "\t\tconst char *path);\n"
6022 "\n"
6023 msgstr ""
6024
6025 # type: textblock
6026 #: ../src/guestfs-actions.pod:1264 ../fish/guestfish-actions.pod:978
6027 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6028 msgstr ""
6029
6030 # type: =head2
6031 #: ../src/guestfs-actions.pod:1274
6032 msgid "guestfs_file"
6033 msgstr ""
6034
6035 # type: verbatim
6036 #: ../src/guestfs-actions.pod:1276
6037 #, no-wrap
6038 msgid ""
6039 " char *guestfs_file (guestfs_h *g,\n"
6040 "\t\tconst char *path);\n"
6041 "\n"
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:988
6046 msgid ""
6047 "This call uses the standard L<file(1)> command to determine the type or "
6048 "contents of the file."
6049 msgstr ""
6050
6051 # type: textblock
6052 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:991
6053 msgid ""
6054 "This call will also transparently look inside various types of compressed "
6055 "file."
6056 msgstr ""
6057
6058 # type: textblock
6059 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:994
6060 msgid ""
6061 "The exact command which runs is C<file -zb path>.  Note in particular that "
6062 "the filename is not prepended to the output (the C<-b> option)."
6063 msgstr ""
6064
6065 # type: textblock
6066 #: ../src/guestfs-actions.pod:1289
6067 msgid ""
6068 "This command can also be used on C</dev/> devices (and partitions, LV "
6069 "names).  You can for example use this to determine if a device contains a "
6070 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6071 msgstr ""
6072
6073 # type: textblock
6074 #: ../src/guestfs-actions.pod:1294 ../fish/guestfish-actions.pod:1003
6075 msgid ""
6076 "If the C<path> does not begin with C</dev/> then this command only works for "
6077 "the content of regular files.  For other file types (directory, symbolic "
6078 "link etc) it will just return the string C<directory> etc."
6079 msgstr ""
6080
6081 # type: =head2
6082 #: ../src/guestfs-actions.pod:1302
6083 msgid "guestfs_file_architecture"
6084 msgstr ""
6085
6086 # type: verbatim
6087 #: ../src/guestfs-actions.pod:1304
6088 #, no-wrap
6089 msgid ""
6090 " char *guestfs_file_architecture (guestfs_h *g,\n"
6091 "\t\tconst char *filename);\n"
6092 "\n"
6093 msgstr ""
6094
6095 # type: textblock
6096 #: ../src/guestfs-actions.pod:1307 ../fish/guestfish-actions.pod:1012
6097 msgid ""
6098 "This detects the architecture of the binary C<filename>, and returns it if "
6099 "known."
6100 msgstr ""
6101
6102 # type: textblock
6103 #: ../src/guestfs-actions.pod:1310 ../fish/guestfish-actions.pod:1015
6104 msgid "Currently defined architectures are:"
6105 msgstr ""
6106
6107 # type: =item
6108 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:1019
6109 msgid "\"i386\""
6110 msgstr ""
6111
6112 # type: textblock
6113 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:1021
6114 msgid ""
6115 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6116 "irrespective of the precise processor requirements of the binary."
6117 msgstr ""
6118
6119 # type: =item
6120 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:1024
6121 msgid "\"x86_64\""
6122 msgstr ""
6123
6124 # type: textblock
6125 #: ../src/guestfs-actions.pod:1321 ../fish/guestfish-actions.pod:1026
6126 msgid "64 bit x86-64."
6127 msgstr ""
6128
6129 # type: =item
6130 #: ../src/guestfs-actions.pod:1323 ../fish/guestfish-actions.pod:1028
6131 msgid "\"sparc\""
6132 msgstr ""
6133
6134 # type: textblock
6135 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:1030
6136 msgid "32 bit SPARC."
6137 msgstr ""
6138
6139 # type: =item
6140 #: ../src/guestfs-actions.pod:1327 ../fish/guestfish-actions.pod:1032
6141 msgid "\"sparc64\""
6142 msgstr ""
6143
6144 # type: textblock
6145 #: ../src/guestfs-actions.pod:1329 ../fish/guestfish-actions.pod:1034
6146 msgid "64 bit SPARC V9 and above."
6147 msgstr ""
6148
6149 # type: =item
6150 #: ../src/guestfs-actions.pod:1331 ../fish/guestfish-actions.pod:1036
6151 msgid "\"ia64\""
6152 msgstr ""
6153
6154 # type: textblock
6155 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:1038
6156 msgid "Intel Itanium."
6157 msgstr ""
6158
6159 # type: =item
6160 #: ../src/guestfs-actions.pod:1335 ../fish/guestfish-actions.pod:1040
6161 msgid "\"ppc\""
6162 msgstr ""
6163
6164 # type: textblock
6165 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:1042
6166 msgid "32 bit Power PC."
6167 msgstr ""
6168
6169 # type: =item
6170 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:1044
6171 msgid "\"ppc64\""
6172 msgstr ""
6173
6174 # type: textblock
6175 #: ../src/guestfs-actions.pod:1341 ../fish/guestfish-actions.pod:1046
6176 msgid "64 bit Power PC."
6177 msgstr ""
6178
6179 # type: textblock
6180 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:1050
6181 msgid "Libguestfs may return other architecture strings in future."
6182 msgstr ""
6183
6184 # type: textblock
6185 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:1052
6186 msgid "The function works on at least the following types of files:"
6187 msgstr ""
6188
6189 # type: textblock
6190 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:1058
6191 msgid "many types of Un*x and Linux binary"
6192 msgstr ""
6193
6194 # type: textblock
6195 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:1062
6196 msgid "many types of Un*x and Linux shared library"
6197 msgstr ""
6198
6199 # type: textblock
6200 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:1066
6201 msgid "Windows Win32 and Win64 binaries"
6202 msgstr ""
6203
6204 # type: textblock
6205 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:1070
6206 msgid "Windows Win32 and Win64 DLLs"
6207 msgstr ""
6208
6209 # type: textblock
6210 #: ../src/guestfs-actions.pod:1367 ../fish/guestfish-actions.pod:1072
6211 msgid "Win32 binaries and DLLs return C<i386>."
6212 msgstr ""
6213
6214 # type: textblock
6215 #: ../src/guestfs-actions.pod:1369 ../fish/guestfish-actions.pod:1074
6216 msgid "Win64 binaries and DLLs return C<x86_64>."
6217 msgstr ""
6218
6219 # type: textblock
6220 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:1078
6221 msgid "Linux kernel modules"
6222 msgstr ""
6223
6224 # type: textblock
6225 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:1082
6226 msgid "Linux new-style initrd images"
6227 msgstr ""
6228
6229 # type: textblock
6230 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1086
6231 msgid "some non-x86 Linux vmlinuz kernels"
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1090
6236 msgid "What it can't do currently:"
6237 msgstr ""
6238
6239 # type: textblock
6240 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:1096
6241 msgid "static libraries (libfoo.a)"
6242 msgstr ""
6243
6244 # type: textblock
6245 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:1100
6246 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6247 msgstr ""
6248
6249 # type: textblock
6250 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:1104
6251 msgid "x86 Linux vmlinuz kernels"
6252 msgstr ""
6253
6254 # type: textblock
6255 #: ../src/guestfs-actions.pod:1401 ../fish/guestfish-actions.pod:1106
6256 msgid ""
6257 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6258 "compressed code, and are horribly hard to unpack.  If you want to find the "
6259 "architecture of a kernel, use the architecture of the associated initrd or "
6260 "kernel module(s) instead."
6261 msgstr ""
6262
6263 # type: =head2
6264 #: ../src/guestfs-actions.pod:1411
6265 msgid "guestfs_filesize"
6266 msgstr ""
6267
6268 # type: verbatim
6269 #: ../src/guestfs-actions.pod:1413
6270 #, no-wrap
6271 msgid ""
6272 " int64_t guestfs_filesize (guestfs_h *g,\n"
6273 "\t\tconst char *file);\n"
6274 "\n"
6275 msgstr ""
6276
6277 # type: textblock
6278 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1117
6279 msgid "This command returns the size of C<file> in bytes."
6280 msgstr ""
6281
6282 # type: textblock
6283 #: ../src/guestfs-actions.pod:1418
6284 msgid ""
6285 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6286 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6287 "devices, use C<guestfs_blockdev_getsize64>."
6288 msgstr ""
6289
6290 # type: =head2
6291 #: ../src/guestfs-actions.pod:1424
6292 msgid "guestfs_fill"
6293 msgstr ""
6294
6295 # type: verbatim
6296 #: ../src/guestfs-actions.pod:1426
6297 #, no-wrap
6298 msgid ""
6299 " int guestfs_fill (guestfs_h *g,\n"
6300 "\t\tint c,\n"
6301 "\t\tint len,\n"
6302 "\t\tconst char *path);\n"
6303 "\n"
6304 msgstr ""
6305
6306 # type: textblock
6307 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:1127
6308 msgid ""
6309 "This command creates a new file called C<path>.  The initial content of the "
6310 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6311 "C<[0..255]>."
6312 msgstr ""
6313
6314 # type: textblock
6315 #: ../src/guestfs-actions.pod:1435
6316 msgid ""
6317 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6318 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6319 "bytes use C<guestfs_fill_pattern>."
6320 msgstr ""
6321
6322 # type: =head2
6323 #: ../src/guestfs-actions.pod:1447
6324 msgid "guestfs_fill_pattern"
6325 msgstr ""
6326
6327 # type: verbatim
6328 #: ../src/guestfs-actions.pod:1449
6329 #, no-wrap
6330 msgid ""
6331 " int guestfs_fill_pattern (guestfs_h *g,\n"
6332 "\t\tconst char *pattern,\n"
6333 "\t\tint len,\n"
6334 "\t\tconst char *path);\n"
6335 "\n"
6336 msgstr ""
6337
6338 # type: textblock
6339 #: ../src/guestfs-actions.pod:1454
6340 msgid ""
6341 "This function is like C<guestfs_fill> except that it creates a new file of "
6342 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6343 "pattern is truncated if necessary to ensure the length of the file is "
6344 "exactly C<len> bytes."
6345 msgstr ""
6346
6347 # type: =head2
6348 #: ../src/guestfs-actions.pod:1466
6349 msgid "guestfs_find"
6350 msgstr ""
6351
6352 # type: verbatim
6353 #: ../src/guestfs-actions.pod:1468
6354 #, no-wrap
6355 msgid ""
6356 " char **guestfs_find (guestfs_h *g,\n"
6357 "\t\tconst char *directory);\n"
6358 "\n"
6359 msgstr ""
6360
6361 # type: textblock
6362 #: ../src/guestfs-actions.pod:1471 ../fish/guestfish-actions.pod:1149
6363 msgid ""
6364 "This command lists out all files and directories, recursively, starting at "
6365 "C<directory>.  It is essentially equivalent to running the shell command "
6366 "C<find directory -print> but some post-processing happens on the output, "
6367 "described below."
6368 msgstr ""
6369
6370 # type: textblock
6371 #: ../src/guestfs-actions.pod:1476 ../fish/guestfish-actions.pod:1154
6372 msgid ""
6373 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6374 "structure was:"
6375 msgstr ""
6376
6377 # type: verbatim
6378 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:1157
6379 #, no-wrap
6380 msgid ""
6381 " /tmp/a\n"
6382 " /tmp/b\n"
6383 " /tmp/c/d\n"
6384 "\n"
6385 msgstr ""
6386
6387 # type: textblock
6388 #: ../src/guestfs-actions.pod:1483
6389 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6390 msgstr ""
6391
6392 # type: verbatim
6393 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:1164
6394 #, no-wrap
6395 msgid ""
6396 " a\n"
6397 " b\n"
6398 " c\n"
6399 " c/d\n"
6400 "\n"
6401 msgstr ""
6402
6403 # type: textblock
6404 #: ../src/guestfs-actions.pod:1491 ../fish/guestfish-actions.pod:1169
6405 msgid "If C<directory> is not a directory, then this command returns an error."
6406 msgstr ""
6407
6408 # type: textblock
6409 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:1172
6410 msgid "The returned list is sorted."
6411 msgstr ""
6412
6413 # type: textblock
6414 #: ../src/guestfs-actions.pod:1496
6415 msgid "See also C<guestfs_find0>."
6416 msgstr ""
6417
6418 # type: =head2
6419 #: ../src/guestfs-actions.pod:1505
6420 msgid "guestfs_find0"
6421 msgstr ""
6422
6423 # type: verbatim
6424 #: ../src/guestfs-actions.pod:1507
6425 #, no-wrap
6426 msgid ""
6427 " int guestfs_find0 (guestfs_h *g,\n"
6428 "\t\tconst char *directory,\n"
6429 "\t\tconst char *files);\n"
6430 "\n"
6431 msgstr ""
6432
6433 # type: textblock
6434 #: ../src/guestfs-actions.pod:1511 ../fish/guestfish-actions.pod:1183
6435 msgid ""
6436 "This command lists out all files and directories, recursively, starting at "
6437 "C<directory>, placing the resulting list in the external file called "
6438 "C<files>."
6439 msgstr ""
6440
6441 # type: textblock
6442 #: ../src/guestfs-actions.pod:1515
6443 msgid ""
6444 "This command works the same way as C<guestfs_find> with the following "
6445 "exceptions:"
6446 msgstr ""
6447
6448 # type: textblock
6449 #: ../src/guestfs-actions.pod:1522 ../fish/guestfish-actions.pod:1194
6450 msgid "The resulting list is written to an external file."
6451 msgstr ""
6452
6453 # type: textblock
6454 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1198
6455 msgid ""
6456 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6457 "L<find(1)> option I<-print0>."
6458 msgstr ""
6459
6460 # type: textblock
6461 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1203
6462 msgid "This command is not limited in the number of names that it can return."
6463 msgstr ""
6464
6465 # type: textblock
6466 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1208
6467 msgid "The result list is not sorted."
6468 msgstr ""
6469
6470 # type: =head2
6471 #: ../src/guestfs-actions.pod:1542
6472 msgid "guestfs_findfs_label"
6473 msgstr ""
6474
6475 # type: verbatim
6476 #: ../src/guestfs-actions.pod:1544
6477 #, no-wrap
6478 msgid ""
6479 " char *guestfs_findfs_label (guestfs_h *g,\n"
6480 "\t\tconst char *label);\n"
6481 "\n"
6482 msgstr ""
6483
6484 # type: textblock
6485 #: ../src/guestfs-actions.pod:1547 ../fish/guestfish-actions.pod:1218
6486 msgid ""
6487 "This command searches the filesystems and returns the one which has the "
6488 "given label.  An error is returned if no such filesystem can be found."
6489 msgstr ""
6490
6491 # type: textblock
6492 #: ../src/guestfs-actions.pod:1551
6493 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6494 msgstr ""
6495
6496 # type: =head2
6497 #: ../src/guestfs-actions.pod:1556
6498 msgid "guestfs_findfs_uuid"
6499 msgstr ""
6500
6501 # type: verbatim
6502 #: ../src/guestfs-actions.pod:1558
6503 #, no-wrap
6504 msgid ""
6505 " char *guestfs_findfs_uuid (guestfs_h *g,\n"
6506 "\t\tconst char *uuid);\n"
6507 "\n"
6508 msgstr ""
6509
6510 # type: textblock
6511 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1228
6512 msgid ""
6513 "This command searches the filesystems and returns the one which has the "
6514 "given UUID.  An error is returned if no such filesystem can be found."
6515 msgstr ""
6516
6517 # type: textblock
6518 #: ../src/guestfs-actions.pod:1565
6519 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6520 msgstr ""
6521
6522 # type: =head2
6523 #: ../src/guestfs-actions.pod:1570
6524 msgid "guestfs_fsck"
6525 msgstr ""
6526
6527 # type: verbatim
6528 #: ../src/guestfs-actions.pod:1572
6529 #, no-wrap
6530 msgid ""
6531 " int guestfs_fsck (guestfs_h *g,\n"
6532 "\t\tconst char *fstype,\n"
6533 "\t\tconst char *device);\n"
6534 "\n"
6535 msgstr ""
6536
6537 # type: textblock
6538 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1238
6539 msgid ""
6540 "This runs the filesystem checker (fsck) on C<device> which should have "
6541 "filesystem type C<fstype>."
6542 msgstr ""
6543
6544 # type: textblock
6545 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1241
6546 msgid ""
6547 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6548 "codes from C<fsck>."
6549 msgstr ""
6550
6551 # type: textblock
6552 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1250
6553 msgid "Multiple status codes can be summed together."
6554 msgstr ""
6555
6556 # type: textblock
6557 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1254
6558 msgid ""
6559 "A non-zero return code can mean \"success\", for example if errors have been "
6560 "corrected on the filesystem."
6561 msgstr ""
6562
6563 # type: textblock
6564 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1259
6565 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6566 msgstr ""
6567
6568 # type: textblock
6569 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1264
6570 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6571 msgstr ""
6572
6573 # type: =head2
6574 #: ../src/guestfs-actions.pod:1606
6575 msgid "guestfs_get_append"
6576 msgstr ""
6577
6578 # type: verbatim
6579 #: ../src/guestfs-actions.pod:1608
6580 #, no-wrap
6581 msgid ""
6582 " const char *guestfs_get_append (guestfs_h *g);\n"
6583 "\n"
6584 msgstr ""
6585
6586 # type: textblock
6587 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1270
6588 msgid ""
6589 "Return the additional kernel options which are added to the guest kernel "
6590 "command line."
6591 msgstr ""
6592
6593 # type: textblock
6594 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1273
6595 msgid "If C<NULL> then no options are added."
6596 msgstr ""
6597
6598 # type: textblock
6599 #: ../src/guestfs-actions.pod:1615
6600 msgid ""
6601 "This function returns a string which may be NULL.  There is no way to return "
6602 "an error from this function.  The string is owned by the guest handle and "
6603 "must I<not> be freed."
6604 msgstr ""
6605
6606 # type: =head2
6607 #: ../src/guestfs-actions.pod:1619
6608 msgid "guestfs_get_autosync"
6609 msgstr ""
6610
6611 # type: verbatim
6612 #: ../src/guestfs-actions.pod:1621
6613 #, no-wrap
6614 msgid ""
6615 " int guestfs_get_autosync (guestfs_h *g);\n"
6616 "\n"
6617 msgstr ""
6618
6619 # type: textblock
6620 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1279
6621 msgid "Get the autosync flag."
6622 msgstr ""
6623
6624 # type: =head2
6625 #: ../src/guestfs-actions.pod:1627
6626 msgid "guestfs_get_direct"
6627 msgstr ""
6628
6629 # type: verbatim
6630 #: ../src/guestfs-actions.pod:1629
6631 #, no-wrap
6632 msgid ""
6633 " int guestfs_get_direct (guestfs_h *g);\n"
6634 "\n"
6635 msgstr ""
6636
6637 # type: textblock
6638 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1285
6639 msgid "Return the direct appliance mode flag."
6640 msgstr ""
6641
6642 # type: =head2
6643 #: ../src/guestfs-actions.pod:1635
6644 msgid "guestfs_get_e2label"
6645 msgstr ""
6646
6647 # type: verbatim
6648 #: ../src/guestfs-actions.pod:1637
6649 #, no-wrap
6650 msgid ""
6651 " char *guestfs_get_e2label (guestfs_h *g,\n"
6652 "\t\tconst char *device);\n"
6653 "\n"
6654 msgstr ""
6655
6656 # type: textblock
6657 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1291
6658 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1294
6663 msgid ""
6664 "This function is deprecated.  In new code, use the C<vfs_label> call "
6665 "instead."
6666 msgstr ""
6667
6668 # type: =head2
6669 #: ../src/guestfs-actions.pod:1653
6670 msgid "guestfs_get_e2uuid"
6671 msgstr ""
6672
6673 # type: verbatim
6674 #: ../src/guestfs-actions.pod:1655
6675 #, no-wrap
6676 msgid ""
6677 " char *guestfs_get_e2uuid (guestfs_h *g,\n"
6678 "\t\tconst char *device);\n"
6679 "\n"
6680 msgstr ""
6681
6682 # type: textblock
6683 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1305
6684 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6685 msgstr ""
6686
6687 # type: textblock
6688 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1308
6689 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6690 msgstr ""
6691
6692 # type: =head2
6693 #: ../src/guestfs-actions.pod:1671
6694 msgid "guestfs_get_memsize"
6695 msgstr ""
6696
6697 # type: verbatim
6698 #: ../src/guestfs-actions.pod:1673
6699 #, no-wrap
6700 msgid ""
6701 " int guestfs_get_memsize (guestfs_h *g);\n"
6702 "\n"
6703 msgstr ""
6704
6705 # type: textblock
6706 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1319
6707 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6708 msgstr ""
6709
6710 # type: textblock
6711 #: ../src/guestfs-actions.pod:1678
6712 msgid ""
6713 "If C<guestfs_set_memsize> was not called on this handle, and if "
6714 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6715 "value for memsize."
6716 msgstr ""
6717
6718 # type: textblock
6719 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377 ../fish/guestfish-actions.pod:3480 ../fish/guestfish-actions.pod:3567
6720 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6721 msgstr ""
6722
6723 # type: =head2
6724 #: ../src/guestfs-actions.pod:1687
6725 msgid "guestfs_get_network"
6726 msgstr ""
6727
6728 # type: verbatim
6729 #: ../src/guestfs-actions.pod:1689
6730 #, no-wrap
6731 msgid ""
6732 " int guestfs_get_network (guestfs_h *g);\n"
6733 "\n"
6734 msgstr ""
6735
6736 # type: textblock
6737 #: ../src/guestfs-actions.pod:1691 ../fish/guestfish-actions.pod:1333
6738 msgid "This returns the enable network flag."
6739 msgstr ""
6740
6741 # type: =head2
6742 #: ../src/guestfs-actions.pod:1695
6743 msgid "guestfs_get_path"
6744 msgstr ""
6745
6746 # type: verbatim
6747 #: ../src/guestfs-actions.pod:1697
6748 #, no-wrap
6749 msgid ""
6750 " const char *guestfs_get_path (guestfs_h *g);\n"
6751 "\n"
6752 msgstr ""
6753
6754 # type: textblock
6755 #: ../src/guestfs-actions.pod:1699 ../fish/guestfish-actions.pod:1339
6756 msgid "Return the current search path."
6757 msgstr ""
6758
6759 # type: textblock
6760 #: ../src/guestfs-actions.pod:1701 ../fish/guestfish-actions.pod:1341
6761 msgid ""
6762 "This is always non-NULL.  If it wasn't set already, then this will return "
6763 "the default path."
6764 msgstr ""
6765
6766 # type: textblock
6767 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1727
6768 msgid ""
6769 "This function returns a string, or NULL on error.  The string is owned by "
6770 "the guest handle and must I<not> be freed."
6771 msgstr ""
6772
6773 # type: =head2
6774 #: ../src/guestfs-actions.pod:1707
6775 msgid "guestfs_get_pid"
6776 msgstr ""
6777
6778 # type: verbatim
6779 #: ../src/guestfs-actions.pod:1709
6780 #, no-wrap
6781 msgid ""
6782 " int guestfs_get_pid (guestfs_h *g);\n"
6783 "\n"
6784 msgstr ""
6785
6786 # type: textblock
6787 #: ../src/guestfs-actions.pod:1711 ../fish/guestfish-actions.pod:1350
6788 msgid ""
6789 "Return the process ID of the qemu subprocess.  If there is no qemu "
6790 "subprocess, then this will return an error."
6791 msgstr ""
6792
6793 # type: textblock
6794 #: ../src/guestfs-actions.pod:1714 ../fish/guestfish-actions.pod:1353
6795 msgid "This is an internal call used for debugging and testing."
6796 msgstr ""
6797
6798 # type: =head2
6799 #: ../src/guestfs-actions.pod:1718
6800 msgid "guestfs_get_qemu"
6801 msgstr ""
6802
6803 # type: verbatim
6804 #: ../src/guestfs-actions.pod:1720
6805 #, no-wrap
6806 msgid ""
6807 " const char *guestfs_get_qemu (guestfs_h *g);\n"
6808 "\n"
6809 msgstr ""
6810
6811 # type: textblock
6812 #: ../src/guestfs-actions.pod:1722 ../fish/guestfish-actions.pod:1359
6813 msgid "Return the current qemu binary."
6814 msgstr ""
6815
6816 # type: textblock
6817 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1361
6818 msgid ""
6819 "This is always non-NULL.  If it wasn't set already, then this will return "
6820 "the default qemu binary name."
6821 msgstr ""
6822
6823 # type: =head2
6824 #: ../src/guestfs-actions.pod:1730
6825 msgid "guestfs_get_recovery_proc"
6826 msgstr ""
6827
6828 # type: verbatim
6829 #: ../src/guestfs-actions.pod:1732
6830 #, no-wrap
6831 msgid ""
6832 " int guestfs_get_recovery_proc (guestfs_h *g);\n"
6833 "\n"
6834 msgstr ""
6835
6836 # type: textblock
6837 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1368
6838 msgid "Return the recovery process enabled flag."
6839 msgstr ""
6840
6841 # type: =head2
6842 #: ../src/guestfs-actions.pod:1738
6843 msgid "guestfs_get_selinux"
6844 msgstr ""
6845
6846 # type: verbatim
6847 #: ../src/guestfs-actions.pod:1740
6848 #, no-wrap
6849 msgid ""
6850 " int guestfs_get_selinux (guestfs_h *g);\n"
6851 "\n"
6852 msgstr ""
6853
6854 # type: textblock
6855 #: ../src/guestfs-actions.pod:1742
6856 msgid ""
6857 "This returns the current setting of the selinux flag which is passed to the "
6858 "appliance at boot time.  See C<guestfs_set_selinux>."
6859 msgstr ""
6860
6861 # type: =head2
6862 #: ../src/guestfs-actions.pod:1750
6863 msgid "guestfs_get_state"
6864 msgstr ""
6865
6866 # type: verbatim
6867 #: ../src/guestfs-actions.pod:1752
6868 #, no-wrap
6869 msgid ""
6870 " int guestfs_get_state (guestfs_h *g);\n"
6871 "\n"
6872 msgstr ""
6873
6874 # type: textblock
6875 #: ../src/guestfs-actions.pod:1754 ../fish/guestfish-actions.pod:1384
6876 msgid ""
6877 "This returns the current state as an opaque integer.  This is only useful "
6878 "for printing debug and internal error messages."
6879 msgstr ""
6880
6881 # type: textblock
6882 #: ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:2414 ../src/guestfs-actions.pod:2437 ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2507 ../fish/guestfish-actions.pod:1387 ../fish/guestfish-actions.pod:1913 ../fish/guestfish-actions.pod:1931 ../fish/guestfish-actions.pod:1969 ../fish/guestfish-actions.pod:1985
6883 msgid "For more information on states, see L<guestfs(3)>."
6884 msgstr ""
6885
6886 # type: =head2
6887 #: ../src/guestfs-actions.pod:1761
6888 msgid "guestfs_get_trace"
6889 msgstr ""
6890
6891 # type: verbatim
6892 #: ../src/guestfs-actions.pod:1763
6893 #, no-wrap
6894 msgid ""
6895 " int guestfs_get_trace (guestfs_h *g);\n"
6896 "\n"
6897 msgstr ""
6898
6899 # type: textblock
6900 #: ../src/guestfs-actions.pod:1765 ../fish/guestfish-actions.pod:1393
6901 msgid "Return the command trace flag."
6902 msgstr ""
6903
6904 # type: =head2
6905 #: ../src/guestfs-actions.pod:1769
6906 msgid "guestfs_get_umask"
6907 msgstr ""
6908
6909 # type: verbatim
6910 #: ../src/guestfs-actions.pod:1771
6911 #, no-wrap
6912 msgid ""
6913 " int guestfs_get_umask (guestfs_h *g);\n"
6914 "\n"
6915 msgstr ""
6916
6917 # type: textblock
6918 #: ../src/guestfs-actions.pod:1773
6919 msgid ""
6920 "Return the current umask.  By default the umask is C<022> unless it has been "
6921 "set by calling C<guestfs_umask>."
6922 msgstr ""
6923
6924 # type: =head2
6925 #: ../src/guestfs-actions.pod:1778
6926 msgid "guestfs_get_verbose"
6927 msgstr ""
6928
6929 # type: verbatim
6930 #: ../src/guestfs-actions.pod:1780
6931 #, no-wrap
6932 msgid ""
6933 " int guestfs_get_verbose (guestfs_h *g);\n"
6934 "\n"
6935 msgstr ""
6936
6937 # type: textblock
6938 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1406
6939 msgid "This returns the verbose messages flag."
6940 msgstr ""
6941
6942 # type: =head2
6943 #: ../src/guestfs-actions.pod:1786
6944 msgid "guestfs_getcon"
6945 msgstr ""
6946
6947 # type: verbatim
6948 #: ../src/guestfs-actions.pod:1788
6949 #, no-wrap
6950 msgid ""
6951 " char *guestfs_getcon (guestfs_h *g);\n"
6952 "\n"
6953 msgstr ""
6954
6955 # type: textblock
6956 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1412
6957 msgid "This gets the SELinux security context of the daemon."
6958 msgstr ""
6959
6960 # type: textblock
6961 #: ../src/guestfs-actions.pod:1792
6962 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
6963 msgstr ""
6964
6965 # type: =head2
6966 #: ../src/guestfs-actions.pod:1798
6967 msgid "guestfs_getxattrs"
6968 msgstr ""
6969
6970 # type: verbatim
6971 #: ../src/guestfs-actions.pod:1800
6972 #, no-wrap
6973 msgid ""
6974 " struct guestfs_xattr_list *guestfs_getxattrs (guestfs_h *g,\n"
6975 "\t\tconst char *path);\n"
6976 "\n"
6977 msgstr ""
6978
6979 # type: textblock
6980 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1421
6981 msgid "This call lists the extended attributes of the file or directory C<path>."
6982 msgstr ""
6983
6984 # type: textblock
6985 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1424
6986 msgid ""
6987 "At the system call level, this is a combination of the L<listxattr(2)> and "
6988 "L<getxattr(2)> calls."
6989 msgstr ""
6990
6991 # type: textblock
6992 #: ../src/guestfs-actions.pod:1809
6993 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
6994 msgstr ""
6995
6996 # type: textblock
6997 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:3136
6998 msgid ""
6999 "This function returns a C<struct guestfs_xattr_list *> (see "
7000 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7001 "must call C<guestfs_free_xattr_list> after use>."
7002 msgstr ""
7003
7004 # type: =head2
7005 #: ../src/guestfs-actions.pod:1816
7006 msgid "guestfs_glob_expand"
7007 msgstr ""
7008
7009 # type: verbatim
7010 #: ../src/guestfs-actions.pod:1818
7011 #, no-wrap
7012 msgid ""
7013 " char **guestfs_glob_expand (guestfs_h *g,\n"
7014 "\t\tconst char *pattern);\n"
7015 "\n"
7016 msgstr ""
7017
7018 # type: textblock
7019 #: ../src/guestfs-actions.pod:1821 ../fish/guestfish-actions.pod:1433
7020 msgid ""
7021 "This command searches for all the pathnames matching C<pattern> according to "
7022 "the wildcard expansion rules used by the shell."
7023 msgstr ""
7024
7025 # type: textblock
7026 #: ../src/guestfs-actions.pod:1825 ../fish/guestfish-actions.pod:1437
7027 msgid "If no paths match, then this returns an empty list (note: not an error)."
7028 msgstr ""
7029
7030 # type: textblock
7031 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1440
7032 msgid ""
7033 "It is just a wrapper around the C L<glob(3)> function with flags "
7034 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7035 msgstr ""
7036
7037 # type: =head2
7038 #: ../src/guestfs-actions.pod:1836
7039 msgid "guestfs_grep"
7040 msgstr ""
7041
7042 # type: verbatim
7043 #: ../src/guestfs-actions.pod:1838
7044 #, no-wrap
7045 msgid ""
7046 " char **guestfs_grep (guestfs_h *g,\n"
7047 "\t\tconst char *regex,\n"
7048 "\t\tconst char *path);\n"
7049 "\n"
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:1448
7054 msgid "This calls the external C<grep> program and returns the matching lines."
7055 msgstr ""
7056
7057 # type: =head2
7058 #: ../src/guestfs-actions.pod:1852
7059 msgid "guestfs_grepi"
7060 msgstr ""
7061
7062 # type: verbatim
7063 #: ../src/guestfs-actions.pod:1854
7064 #, no-wrap
7065 msgid ""
7066 " char **guestfs_grepi (guestfs_h *g,\n"
7067 "\t\tconst char *regex,\n"
7068 "\t\tconst char *path);\n"
7069 "\n"
7070 msgstr ""
7071
7072 # type: textblock
7073 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1458
7074 msgid "This calls the external C<grep -i> program and returns the matching lines."
7075 msgstr ""
7076
7077 # type: =head2
7078 #: ../src/guestfs-actions.pod:1868
7079 msgid "guestfs_grub_install"
7080 msgstr ""
7081
7082 # type: verbatim
7083 #: ../src/guestfs-actions.pod:1870
7084 #, no-wrap
7085 msgid ""
7086 " int guestfs_grub_install (guestfs_h *g,\n"
7087 "\t\tconst char *root,\n"
7088 "\t\tconst char *device);\n"
7089 "\n"
7090 msgstr ""
7091
7092 # type: textblock
7093 #: ../src/guestfs-actions.pod:1874 ../fish/guestfish-actions.pod:1468
7094 msgid ""
7095 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7096 "the root directory being C<root>."
7097 msgstr ""
7098
7099 # type: textblock
7100 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1471
7101 msgid ""
7102 "Note: If grub-install reports the error \"No suitable drive was found in the "
7103 "generated device map.\" it may be that you need to create a "
7104 "C</boot/grub/device.map> file first that contains the mapping between grub "
7105 "device names and Linux device names.  It is usually sufficient to create a "
7106 "file containing:"
7107 msgstr ""
7108
7109 # type: verbatim
7110 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1478
7111 #, no-wrap
7112 msgid ""
7113 " (hd0) /dev/vda\n"
7114 "\n"
7115 msgstr ""
7116
7117 # type: textblock
7118 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1480
7119 msgid "replacing C</dev/vda> with the name of the installation device."
7120 msgstr ""
7121
7122 # type: =head2
7123 #: ../src/guestfs-actions.pod:1890
7124 msgid "guestfs_head"
7125 msgstr ""
7126
7127 # type: verbatim
7128 #: ../src/guestfs-actions.pod:1892
7129 #, no-wrap
7130 msgid ""
7131 " char **guestfs_head (guestfs_h *g,\n"
7132 "\t\tconst char *path);\n"
7133 "\n"
7134 msgstr ""
7135
7136 # type: textblock
7137 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1486
7138 msgid ""
7139 "This command returns up to the first 10 lines of a file as a list of "
7140 "strings."
7141 msgstr ""
7142
7143 # type: =head2
7144 #: ../src/guestfs-actions.pod:1905
7145 msgid "guestfs_head_n"
7146 msgstr ""
7147
7148 # type: verbatim
7149 #: ../src/guestfs-actions.pod:1907
7150 #, no-wrap
7151 msgid ""
7152 " char **guestfs_head_n (guestfs_h *g,\n"
7153 "\t\tint nrlines,\n"
7154 "\t\tconst char *path);\n"
7155 "\n"
7156 msgstr ""
7157
7158 # type: textblock
7159 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1496
7160 msgid ""
7161 "If the parameter C<nrlines> is a positive number, this returns the first "
7162 "C<nrlines> lines of the file C<path>."
7163 msgstr ""
7164
7165 # type: textblock
7166 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1499
7167 msgid ""
7168 "If the parameter C<nrlines> is a negative number, this returns lines from "
7169 "the file C<path>, excluding the last C<nrlines> lines."
7170 msgstr ""
7171
7172 # type: textblock
7173 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:5053 ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3913
7174 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7175 msgstr ""
7176
7177 # type: =head2
7178 #: ../src/guestfs-actions.pod:1926
7179 msgid "guestfs_hexdump"
7180 msgstr ""
7181
7182 # type: verbatim
7183 #: ../src/guestfs-actions.pod:1928
7184 #, no-wrap
7185 msgid ""
7186 " char *guestfs_hexdump (guestfs_h *g,\n"
7187 "\t\tconst char *path);\n"
7188 "\n"
7189 msgstr ""
7190
7191 # type: textblock
7192 #: ../src/guestfs-actions.pod:1931 ../fish/guestfish-actions.pod:1511
7193 msgid ""
7194 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7195 "human-readable, canonical hex dump of the file."
7196 msgstr ""
7197
7198 # type: =head2
7199 #: ../src/guestfs-actions.pod:1940
7200 msgid "guestfs_initrd_cat"
7201 msgstr ""
7202
7203 # type: verbatim
7204 #: ../src/guestfs-actions.pod:1942
7205 #, no-wrap
7206 msgid ""
7207 " char *guestfs_initrd_cat (guestfs_h *g,\n"
7208 "\t\tconst char *initrdpath,\n"
7209 "\t\tconst char *filename,\n"
7210 "\t\tsize_t *size_r);\n"
7211 "\n"
7212 msgstr ""
7213
7214 # type: textblock
7215 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1521
7216 msgid ""
7217 "This command unpacks the file C<filename> from the initrd file called "
7218 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7219 "character."
7220 msgstr ""
7221
7222 # type: textblock
7223 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1525
7224 msgid ""
7225 "For example, in guestfish you could use the following command to examine the "
7226 "boot script (usually called C</init>)  contained in a Linux initrd or "
7227 "initramfs image:"
7228 msgstr ""
7229
7230 # type: verbatim
7231 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1529
7232 #, no-wrap
7233 msgid ""
7234 " initrd-cat /boot/initrd-<version>.img init\n"
7235 "\n"
7236 msgstr ""
7237
7238 # type: textblock
7239 #: ../src/guestfs-actions.pod:1957
7240 msgid "See also C<guestfs_initrd_list>."
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:3988 ../src/guestfs-actions.pod:4140
7245 msgid ""
7246 "This function returns a buffer, or NULL on error.  The size of the returned "
7247 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7248 "after use>."
7249 msgstr ""
7250
7251 # type: =head2
7252 #: ../src/guestfs-actions.pod:1966
7253 msgid "guestfs_initrd_list"
7254 msgstr ""
7255
7256 # type: verbatim
7257 #: ../src/guestfs-actions.pod:1968
7258 #, no-wrap
7259 msgid ""
7260 " char **guestfs_initrd_list (guestfs_h *g,\n"
7261 "\t\tconst char *path);\n"
7262 "\n"
7263 msgstr ""
7264
7265 # type: textblock
7266 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1540
7267 msgid "This command lists out files contained in an initrd."
7268 msgstr ""
7269
7270 # type: textblock
7271 #: ../src/guestfs-actions.pod:1973 ../fish/guestfish-actions.pod:1542
7272 msgid ""
7273 "The files are listed without any initial C</> character.  The files are "
7274 "listed in the order they appear (not necessarily alphabetical).  Directory "
7275 "names are listed as separate items."
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:1977 ../fish/guestfish-actions.pod:1546
7280 msgid ""
7281 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7282 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7283 "files)."
7284 msgstr ""
7285
7286 # type: =head2
7287 #: ../src/guestfs-actions.pod:1985
7288 msgid "guestfs_inotify_add_watch"
7289 msgstr ""
7290
7291 # type: verbatim
7292 #: ../src/guestfs-actions.pod:1987
7293 #, no-wrap
7294 msgid ""
7295 " int64_t guestfs_inotify_add_watch (guestfs_h *g,\n"
7296 "\t\tconst char *path,\n"
7297 "\t\tint mask);\n"
7298 "\n"
7299 msgstr ""
7300
7301 # type: textblock
7302 #: ../src/guestfs-actions.pod:1991 ../fish/guestfish-actions.pod:1554
7303 msgid "Watch C<path> for the events listed in C<mask>."
7304 msgstr ""
7305
7306 # type: textblock
7307 #: ../src/guestfs-actions.pod:1993 ../fish/guestfish-actions.pod:1556
7308 msgid ""
7309 "Note that if C<path> is a directory then events within that directory are "
7310 "watched, but this does I<not> happen recursively (in subdirectories)."
7311 msgstr ""
7312
7313 # type: textblock
7314 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1560
7315 msgid ""
7316 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7317 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7318 msgstr ""
7319
7320 # type: =head2
7321 #: ../src/guestfs-actions.pod:2003
7322 msgid "guestfs_inotify_close"
7323 msgstr ""
7324
7325 # type: verbatim
7326 #: ../src/guestfs-actions.pod:2005
7327 #, no-wrap
7328 msgid ""
7329 " int guestfs_inotify_close (guestfs_h *g);\n"
7330 "\n"
7331 msgstr ""
7332
7333 # type: textblock
7334 #: ../src/guestfs-actions.pod:2007 ../fish/guestfish-actions.pod:1568
7335 msgid ""
7336 "This closes the inotify handle which was previously opened by inotify_init.  "
7337 "It removes all watches, throws away any pending events, and deallocates all "
7338 "resources."
7339 msgstr ""
7340
7341 # type: =head2
7342 #: ../src/guestfs-actions.pod:2013
7343 msgid "guestfs_inotify_files"
7344 msgstr ""
7345
7346 # type: verbatim
7347 #: ../src/guestfs-actions.pod:2015
7348 #, no-wrap
7349 msgid ""
7350 " char **guestfs_inotify_files (guestfs_h *g);\n"
7351 "\n"
7352 msgstr ""
7353
7354 # type: textblock
7355 #: ../src/guestfs-actions.pod:2017
7356 msgid ""
7357 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7358 "returns a list of pathnames of objects that were touched.  The returned "
7359 "pathnames are sorted and deduplicated."
7360 msgstr ""
7361
7362 # type: =head2
7363 #: ../src/guestfs-actions.pod:2025
7364 msgid "guestfs_inotify_init"
7365 msgstr ""
7366
7367 # type: verbatim
7368 #: ../src/guestfs-actions.pod:2027
7369 #, no-wrap
7370 msgid ""
7371 " int guestfs_inotify_init (guestfs_h *g,\n"
7372 "\t\tint maxevents);\n"
7373 "\n"
7374 msgstr ""
7375
7376 # type: textblock
7377 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1584
7378 msgid ""
7379 "This command creates a new inotify handle.  The inotify subsystem can be "
7380 "used to notify events which happen to objects in the guest filesystem."
7381 msgstr ""
7382
7383 # type: textblock
7384 #: ../src/guestfs-actions.pod:2034
7385 msgid ""
7386 "C<maxevents> is the maximum number of events which will be queued up between "
7387 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7388 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7389 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7390 "throws away events, but records the fact that it threw them away by setting "
7391 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7392 "C<guestfs_inotify_read>)."
7393 msgstr ""
7394
7395 # type: textblock
7396 #: ../src/guestfs-actions.pod:2044
7397 msgid ""
7398 "Before any events are generated, you have to add some watches to the "
7399 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7400 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7401 msgstr ""
7402
7403 # type: textblock
7404 #: ../src/guestfs-actions.pod:2050
7405 msgid ""
7406 "Queued up events should be read periodically by calling "
7407 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7408 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7409 "often enough then you risk the internal queue overflowing."
7410 msgstr ""
7411
7412 # type: textblock
7413 #: ../src/guestfs-actions.pod:2057
7414 msgid ""
7415 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7416 "This also removes any watches automatically."
7417 msgstr ""
7418
7419 # type: textblock
7420 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1615
7421 msgid ""
7422 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7423 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7424 "that there is one global inotify handle per libguestfs instance."
7425 msgstr ""
7426
7427 # type: =head2
7428 #: ../src/guestfs-actions.pod:2068
7429 msgid "guestfs_inotify_read"
7430 msgstr ""
7431
7432 # type: verbatim
7433 #: ../src/guestfs-actions.pod:2070
7434 #, no-wrap
7435 msgid ""
7436 " struct guestfs_inotify_event_list *guestfs_inotify_read (guestfs_h *g);\n"
7437 "\n"
7438 msgstr ""
7439
7440 # type: textblock
7441 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1624
7442 msgid ""
7443 "Return the complete queue of events that have happened since the previous "
7444 "read call."
7445 msgstr ""
7446
7447 # type: textblock
7448 #: ../src/guestfs-actions.pod:2075 ../fish/guestfish-actions.pod:1627
7449 msgid "If no events have happened, this returns an empty list."
7450 msgstr ""
7451
7452 # type: textblock
7453 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1629
7454 msgid ""
7455 "I<Note>: In order to make sure that all events have been read, you must call "
7456 "this function repeatedly until it returns an empty list.  The reason is that "
7457 "the call will read events up to the maximum appliance-to-host message size "
7458 "and leave remaining events in the queue."
7459 msgstr ""
7460
7461 # type: textblock
7462 #: ../src/guestfs-actions.pod:2083
7463 msgid ""
7464 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7465 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7466 "must call C<guestfs_free_inotify_event_list> after use>."
7467 msgstr ""
7468
7469 # type: =head2
7470 #: ../src/guestfs-actions.pod:2088
7471 msgid "guestfs_inotify_rm_watch"
7472 msgstr ""
7473
7474 # type: verbatim
7475 #: ../src/guestfs-actions.pod:2090
7476 #, no-wrap
7477 msgid ""
7478 " int guestfs_inotify_rm_watch (guestfs_h *g,\n"
7479 "\t\tint wd);\n"
7480 "\n"
7481 msgstr ""
7482
7483 # type: textblock
7484 #: ../src/guestfs-actions.pod:2093
7485 msgid ""
7486 "Remove a previously defined inotify watch.  See "
7487 "C<guestfs_inotify_add_watch>."
7488 msgstr ""
7489
7490 # type: =head2
7491 #: ../src/guestfs-actions.pod:2098
7492 msgid "guestfs_inspect_get_arch"
7493 msgstr ""
7494
7495 # type: verbatim
7496 #: ../src/guestfs-actions.pod:2100
7497 #, no-wrap
7498 msgid ""
7499 " char *guestfs_inspect_get_arch (guestfs_h *g,\n"
7500 "\t\tconst char *root);\n"
7501 "\n"
7502 msgstr ""
7503
7504 # type: textblock
7505 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:2189 ../src/guestfs-actions.pod:2212 ../src/guestfs-actions.pod:2236 ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:2305 ../src/guestfs-actions.pod:2340
7506 msgid ""
7507 "This function should only be called with a root device string as returned by "
7508 "C<guestfs_inspect_os>."
7509 msgstr ""
7510
7511 # type: textblock
7512 #: ../src/guestfs-actions.pod:2106
7513 msgid ""
7514 "This returns the architecture of the inspected operating system.  The "
7515 "possible return values are listed under C<guestfs_file_architecture>."
7516 msgstr ""
7517
7518 # type: textblock
7519 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1653
7520 msgid ""
7521 "If the architecture could not be determined, then the string C<unknown> is "
7522 "returned."
7523 msgstr ""
7524
7525 # type: textblock
7526 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:2227 ../src/guestfs-actions.pod:2295 ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2350 ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:1718 ../fish/guestfish-actions.pod:1757 ../fish/guestfish-actions.pod:1812 ../fish/guestfish-actions.pod:1843 ../fish/guestfish-actions.pod:1859 ../fish/guestfish-actions.pod:1893
7527 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7528 msgstr ""
7529
7530 # type: =head2
7531 #: ../src/guestfs-actions.pod:2118
7532 msgid "guestfs_inspect_get_distro"
7533 msgstr ""
7534
7535 # type: verbatim
7536 #: ../src/guestfs-actions.pod:2120
7537 #, no-wrap
7538 msgid ""
7539 " char *guestfs_inspect_get_distro (guestfs_h *g,\n"
7540 "\t\tconst char *root);\n"
7541 "\n"
7542 msgstr ""
7543
7544 # type: textblock
7545 #: ../src/guestfs-actions.pod:2126 ../fish/guestfish-actions.pod:1665
7546 msgid "This returns the distro (distribution) of the inspected operating system."
7547 msgstr ""
7548
7549 # type: textblock
7550 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1668
7551 msgid "Currently defined distros are:"
7552 msgstr ""
7553
7554 # type: =item
7555 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1672
7556 msgid "\"archlinux\""
7557 msgstr ""
7558
7559 # type: textblock
7560 #: ../src/guestfs-actions.pod:2135 ../fish/guestfish-actions.pod:1674
7561 msgid "Arch Linux."
7562 msgstr ""
7563
7564 # type: =item
7565 #: ../src/guestfs-actions.pod:2137 ../fish/guestfish-actions.pod:1676
7566 msgid "\"debian\""
7567 msgstr ""
7568
7569 # type: textblock
7570 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1678
7571 msgid "Debian or a Debian-derived distro such as Ubuntu."
7572 msgstr ""
7573
7574 # type: =item
7575 #: ../src/guestfs-actions.pod:2141 ../fish/guestfish-actions.pod:1680
7576 msgid "\"fedora\""
7577 msgstr ""
7578
7579 # type: textblock
7580 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1682
7581 msgid "Fedora."
7582 msgstr ""
7583
7584 # type: =item
7585 #: ../src/guestfs-actions.pod:2145 ../fish/guestfish-actions.pod:1684
7586 msgid "\"gentoo\""
7587 msgstr ""
7588
7589 # type: textblock
7590 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1686
7591 msgid "Gentoo."
7592 msgstr ""
7593
7594 # type: =item
7595 #: ../src/guestfs-actions.pod:2149 ../fish/guestfish-actions.pod:1688
7596 msgid "\"pardus\""
7597 msgstr ""
7598
7599 # type: textblock
7600 #: ../src/guestfs-actions.pod:2151 ../fish/guestfish-actions.pod:1690
7601 msgid "Pardus."
7602 msgstr ""
7603
7604 # type: =item
7605 #: ../src/guestfs-actions.pod:2153 ../fish/guestfish-actions.pod:1692
7606 msgid "\"redhat-based\""
7607 msgstr ""
7608
7609 # type: textblock
7610 #: ../src/guestfs-actions.pod:2155 ../fish/guestfish-actions.pod:1694
7611 msgid "Some Red Hat-derived distro."
7612 msgstr ""
7613
7614 # type: =item
7615 #: ../src/guestfs-actions.pod:2157 ../fish/guestfish-actions.pod:1696
7616 msgid "\"rhel\""
7617 msgstr ""
7618
7619 # type: textblock
7620 #: ../src/guestfs-actions.pod:2159 ../fish/guestfish-actions.pod:1698
7621 msgid "Red Hat Enterprise Linux and some derivatives."
7622 msgstr ""
7623
7624 # type: =item
7625 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1700 ../fish/guestfish-actions.pod:1830
7626 msgid "\"windows\""
7627 msgstr ""
7628
7629 # type: textblock
7630 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1702
7631 msgid ""
7632 "Windows does not have distributions.  This string is returned if the OS type "
7633 "is Windows."
7634 msgstr ""
7635
7636 # type: =item
7637 #: ../src/guestfs-actions.pod:2166 ../fish/guestfish-actions.pod:1705
7638 msgid "\"ubuntu\""
7639 msgstr ""
7640
7641 # type: textblock
7642 #: ../src/guestfs-actions.pod:2168 ../fish/guestfish-actions.pod:1707
7643 msgid "Ubuntu."
7644 msgstr ""
7645
7646 # type: =item
7647 #: ../src/guestfs-actions.pod:2170 ../src/guestfs-actions.pod:2321 ../fish/guestfish-actions.pod:1709 ../fish/guestfish-actions.pod:1834
7648 msgid "\"unknown\""
7649 msgstr ""
7650
7651 # type: textblock
7652 #: ../src/guestfs-actions.pod:2172 ../fish/guestfish-actions.pod:1711
7653 msgid "The distro could not be determined."
7654 msgstr ""
7655
7656 # type: textblock
7657 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2327 ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:1840
7658 msgid ""
7659 "Future versions of libguestfs may return other strings here.  The caller "
7660 "should be prepared to handle any string."
7661 msgstr ""
7662
7663 # type: =head2
7664 #: ../src/guestfs-actions.pod:2184
7665 msgid "guestfs_inspect_get_filesystems"
7666 msgstr ""
7667
7668 # type: verbatim
7669 #: ../src/guestfs-actions.pod:2186
7670 #, no-wrap
7671 msgid ""
7672 " char **guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7673 "\t\tconst char *root);\n"
7674 "\n"
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:2192 ../fish/guestfish-actions.pod:1727
7679 msgid ""
7680 "This returns a list of all the filesystems that we think are associated with "
7681 "this operating system.  This includes the root filesystem, other ordinary "
7682 "filesystems, and non-mounted devices like swap partitions."
7683 msgstr ""
7684
7685 # type: textblock
7686 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1732
7687 msgid ""
7688 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7689 "to be shared between operating systems."
7690 msgstr ""
7691
7692 # type: textblock
7693 #: ../src/guestfs-actions.pod:2200
7694 msgid ""
7695 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7696 "C<guestfs_inspect_get_mountpoints>."
7697 msgstr ""
7698
7699 # type: =head2
7700 #: ../src/guestfs-actions.pod:2207
7701 msgid "guestfs_inspect_get_major_version"
7702 msgstr ""
7703
7704 # type: verbatim
7705 #: ../src/guestfs-actions.pod:2209
7706 #, no-wrap
7707 msgid ""
7708 " int guestfs_inspect_get_major_version (guestfs_h *g,\n"
7709 "\t\tconst char *root);\n"
7710 "\n"
7711 msgstr ""
7712
7713 # type: textblock
7714 #: ../src/guestfs-actions.pod:2215 ../fish/guestfish-actions.pod:1745
7715 msgid "This returns the major version number of the inspected operating system."
7716 msgstr ""
7717
7718 # type: textblock
7719 #: ../src/guestfs-actions.pod:2218 ../fish/guestfish-actions.pod:1748
7720 msgid ""
7721 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7722 "popular public names used by the operating system.  Notably the operating "
7723 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7724 "1).  You can find out the real versions corresponding to releases of Windows "
7725 "by consulting Wikipedia or MSDN."
7726 msgstr ""
7727
7728 # type: textblock
7729 #: ../src/guestfs-actions.pod:2225 ../src/guestfs-actions.pod:2242 ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1769
7730 msgid "If the version could not be determined, then C<0> is returned."
7731 msgstr ""
7732
7733 # type: =head2
7734 #: ../src/guestfs-actions.pod:2231
7735 msgid "guestfs_inspect_get_minor_version"
7736 msgstr ""
7737
7738 # type: verbatim
7739 #: ../src/guestfs-actions.pod:2233
7740 #, no-wrap
7741 msgid ""
7742 " int guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7743 "\t\tconst char *root);\n"
7744 "\n"
7745 msgstr ""
7746
7747 # type: textblock
7748 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1766
7749 msgid "This returns the minor version number of the inspected operating system."
7750 msgstr ""
7751
7752 # type: textblock
7753 #: ../src/guestfs-actions.pod:2244
7754 msgid ""
7755 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7756 "C<guestfs_inspect_get_major_version>."
7757 msgstr ""
7758
7759 # type: =head2
7760 #: ../src/guestfs-actions.pod:2249
7761 msgid "guestfs_inspect_get_mountpoints"
7762 msgstr ""
7763
7764 # type: verbatim
7765 #: ../src/guestfs-actions.pod:2251
7766 #, no-wrap
7767 msgid ""
7768 " char **guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
7769 "\t\tconst char *root);\n"
7770 "\n"
7771 msgstr ""
7772
7773 # type: textblock
7774 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1781
7775 msgid ""
7776 "This returns a hash of where we think the filesystems associated with this "
7777 "operating system should be mounted.  Callers should note that this is at "
7778 "best an educated guess made by reading configuration files such as "
7779 "C</etc/fstab>."
7780 msgstr ""
7781
7782 # type: textblock
7783 #: ../src/guestfs-actions.pod:2262 ../fish/guestfish-actions.pod:1786
7784 msgid ""
7785 "Each element in the returned hashtable has a key which is the path of the "
7786 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7787 "mounted there (eg. C</dev/sda1>)."
7788 msgstr ""
7789
7790 # type: textblock
7791 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1791
7792 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7793 msgstr ""
7794
7795 # type: textblock
7796 #: ../src/guestfs-actions.pod:2270
7797 msgid ""
7798 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7799 "C<guestfs_inspect_get_filesystems>."
7800 msgstr ""
7801
7802 # type: textblock
7803 #: ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2633 ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:5170
7804 msgid ""
7805 "This function returns a NULL-terminated array of strings, or NULL if there "
7806 "was an error.  The array of strings will always have length C<2n+1>, where "
7807 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
7808 "caller must free the strings and the array after use>."
7809 msgstr ""
7810
7811 # type: =head2
7812 #: ../src/guestfs-actions.pod:2279
7813 msgid "guestfs_inspect_get_product_name"
7814 msgstr ""
7815
7816 # type: verbatim
7817 #: ../src/guestfs-actions.pod:2281
7818 #, no-wrap
7819 msgid ""
7820 " char *guestfs_inspect_get_product_name (guestfs_h *g,\n"
7821 "\t\tconst char *root);\n"
7822 "\n"
7823 msgstr ""
7824
7825 # type: textblock
7826 #: ../src/guestfs-actions.pod:2287 ../fish/guestfish-actions.pod:1804
7827 msgid ""
7828 "This returns the product name of the inspected operating system.  The "
7829 "product name is generally some freeform string which can be displayed to the "
7830 "user, but should not be parsed by programs."
7831 msgstr ""
7832
7833 # type: textblock
7834 #: ../src/guestfs-actions.pod:2292 ../fish/guestfish-actions.pod:1809
7835 msgid ""
7836 "If the product name could not be determined, then the string C<unknown> is "
7837 "returned."
7838 msgstr ""
7839
7840 # type: =head2
7841 #: ../src/guestfs-actions.pod:2300
7842 msgid "guestfs_inspect_get_type"
7843 msgstr ""
7844
7845 # type: verbatim
7846 #: ../src/guestfs-actions.pod:2302
7847 #, no-wrap
7848 msgid ""
7849 " char *guestfs_inspect_get_type (guestfs_h *g,\n"
7850 "\t\tconst char *root);\n"
7851 "\n"
7852 msgstr ""
7853
7854 # type: textblock
7855 #: ../src/guestfs-actions.pod:2308 ../fish/guestfish-actions.pod:1821
7856 msgid ""
7857 "This returns the type of the inspected operating system.  Currently defined "
7858 "types are:"
7859 msgstr ""
7860
7861 # type: =item
7862 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1826
7863 msgid "\"linux\""
7864 msgstr ""
7865
7866 # type: textblock
7867 #: ../src/guestfs-actions.pod:2315 ../fish/guestfish-actions.pod:1828
7868 msgid "Any Linux-based operating system."
7869 msgstr ""
7870
7871 # type: textblock
7872 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1832
7873 msgid "Any Microsoft Windows operating system."
7874 msgstr ""
7875
7876 # type: textblock
7877 #: ../src/guestfs-actions.pod:2323 ../fish/guestfish-actions.pod:1836
7878 msgid "The operating system type could not be determined."
7879 msgstr ""
7880
7881 # type: =head2
7882 #: ../src/guestfs-actions.pod:2335
7883 msgid "guestfs_inspect_get_windows_systemroot"
7884 msgstr ""
7885
7886 # type: verbatim
7887 #: ../src/guestfs-actions.pod:2337
7888 #, no-wrap
7889 msgid ""
7890 " char *guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
7891 "\t\tconst char *root);\n"
7892 "\n"
7893 msgstr ""
7894
7895 # type: textblock
7896 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1852
7897 msgid ""
7898 "This returns the Windows systemroot of the inspected guest.  The systemroot "
7899 "is a directory path such as C</WINDOWS>."
7900 msgstr ""
7901
7902 # type: textblock
7903 #: ../src/guestfs-actions.pod:2346 ../fish/guestfish-actions.pod:1855
7904 msgid ""
7905 "This call assumes that the guest is Windows and that the systemroot could be "
7906 "determined by inspection.  If this is not the case then an error is "
7907 "returned."
7908 msgstr ""
7909
7910 # type: =head2
7911 #: ../src/guestfs-actions.pod:2355
7912 msgid "guestfs_inspect_os"
7913 msgstr ""
7914
7915 # type: verbatim
7916 #: ../src/guestfs-actions.pod:2357
7917 #, no-wrap
7918 msgid ""
7919 " char **guestfs_inspect_os (guestfs_h *g);\n"
7920 "\n"
7921 msgstr ""
7922
7923 # type: textblock
7924 #: ../src/guestfs-actions.pod:2359 ../fish/guestfish-actions.pod:1865
7925 msgid ""
7926 "This function uses other libguestfs functions and certain heuristics to "
7927 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
7928 "for operating systems."
7929 msgstr ""
7930
7931 # type: textblock
7932 #: ../src/guestfs-actions.pod:2363 ../fish/guestfish-actions.pod:1869
7933 msgid "The list returned is empty if no operating systems were found."
7934 msgstr ""
7935
7936 # type: textblock
7937 #: ../src/guestfs-actions.pod:2365 ../fish/guestfish-actions.pod:1871
7938 msgid ""
7939 "If one operating system was found, then this returns a list with a single "
7940 "element, which is the name of the root filesystem of this operating system.  "
7941 "It is also possible for this function to return a list containing more than "
7942 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
7943 "element being the root filesystem of one of the operating systems."
7944 msgstr ""
7945
7946 # type: textblock
7947 #: ../src/guestfs-actions.pod:2372
7948 msgid ""
7949 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
7950 "functions in order to query further information about each operating system, "
7951 "such as the name and version."
7952 msgstr ""
7953
7954 # type: textblock
7955 #: ../src/guestfs-actions.pod:2377
7956 msgid ""
7957 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
7958 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
7959 "the contents.  This should be called with no disks currently mounted.  The "
7960 "function may also use Augeas, so any existing Augeas handle will be closed."
7961 msgstr ""
7962
7963 # type: textblock
7964 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1889
7965 msgid ""
7966 "This function cannot decrypt encrypted disks.  The caller must do that first "
7967 "(supplying the necessary keys) if the disk is encrypted."
7968 msgstr ""
7969
7970 # type: textblock
7971 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2594 ../src/guestfs-actions.pod:2650
7972 msgid "See also C<guestfs_list_filesystems>."
7973 msgstr ""
7974
7975 # type: =head2
7976 #: ../src/guestfs-actions.pod:2395
7977 msgid "guestfs_is_blockdev"
7978 msgstr ""
7979
7980 # type: verbatim
7981 #: ../src/guestfs-actions.pod:2397
7982 #, no-wrap
7983 msgid ""
7984 " int guestfs_is_blockdev (guestfs_h *g,\n"
7985 "\t\tconst char *path);\n"
7986 "\n"
7987 msgstr ""
7988
7989 # type: textblock
7990 #: ../src/guestfs-actions.pod:2400 ../fish/guestfish-actions.pod:1901
7991 msgid ""
7992 "This returns C<true> if and only if there is a block device with the given "
7993 "C<path> name."
7994 msgstr ""
7995
7996 # type: textblock
7997 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2462 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:2531
7998 msgid "See also C<guestfs_stat>."
7999 msgstr ""
8000
8001 # type: =head2
8002 #: ../src/guestfs-actions.pod:2407
8003 msgid "guestfs_is_busy"
8004 msgstr ""
8005
8006 # type: verbatim
8007 #: ../src/guestfs-actions.pod:2409
8008 #, no-wrap
8009 msgid ""
8010 " int guestfs_is_busy (guestfs_h *g);\n"
8011 "\n"
8012 msgstr ""
8013
8014 # type: textblock
8015 #: ../src/guestfs-actions.pod:2411 ../fish/guestfish-actions.pod:1910
8016 msgid ""
8017 "This returns true iff this handle is busy processing a command (in the "
8018 "C<BUSY> state)."
8019 msgstr ""
8020
8021 # type: =head2
8022 #: ../src/guestfs-actions.pod:2418
8023 msgid "guestfs_is_chardev"
8024 msgstr ""
8025
8026 # type: verbatim
8027 #: ../src/guestfs-actions.pod:2420
8028 #, no-wrap
8029 msgid ""
8030 " int guestfs_is_chardev (guestfs_h *g,\n"
8031 "\t\tconst char *path);\n"
8032 "\n"
8033 msgstr ""
8034
8035 # type: textblock
8036 #: ../src/guestfs-actions.pod:2423 ../fish/guestfish-actions.pod:1919
8037 msgid ""
8038 "This returns C<true> if and only if there is a character device with the "
8039 "given C<path> name."
8040 msgstr ""
8041
8042 # type: =head2
8043 #: ../src/guestfs-actions.pod:2430
8044 msgid "guestfs_is_config"
8045 msgstr ""
8046
8047 # type: verbatim
8048 #: ../src/guestfs-actions.pod:2432
8049 #, no-wrap
8050 msgid ""
8051 " int guestfs_is_config (guestfs_h *g);\n"
8052 "\n"
8053 msgstr ""
8054
8055 # type: textblock
8056 #: ../src/guestfs-actions.pod:2434 ../fish/guestfish-actions.pod:1928
8057 msgid ""
8058 "This returns true iff this handle is being configured (in the C<CONFIG> "
8059 "state)."
8060 msgstr ""
8061
8062 # type: =head2
8063 #: ../src/guestfs-actions.pod:2441
8064 msgid "guestfs_is_dir"
8065 msgstr ""
8066
8067 # type: verbatim
8068 #: ../src/guestfs-actions.pod:2443
8069 #, no-wrap
8070 msgid ""
8071 " int guestfs_is_dir (guestfs_h *g,\n"
8072 "\t\tconst char *path);\n"
8073 "\n"
8074 msgstr ""
8075
8076 # type: textblock
8077 #: ../src/guestfs-actions.pod:2446 ../fish/guestfish-actions.pod:1937
8078 msgid ""
8079 "This returns C<true> if and only if there is a directory with the given "
8080 "C<path> name.  Note that it returns false for other objects like files."
8081 msgstr ""
8082
8083 # type: =head2
8084 #: ../src/guestfs-actions.pod:2454
8085 msgid "guestfs_is_fifo"
8086 msgstr ""
8087
8088 # type: verbatim
8089 #: ../src/guestfs-actions.pod:2456
8090 #, no-wrap
8091 msgid ""
8092 " int guestfs_is_fifo (guestfs_h *g,\n"
8093 "\t\tconst char *path);\n"
8094 "\n"
8095 msgstr ""
8096
8097 # type: textblock
8098 #: ../src/guestfs-actions.pod:2459 ../fish/guestfish-actions.pod:1947
8099 msgid ""
8100 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8101 "given C<path> name."
8102 msgstr ""
8103
8104 # type: =head2
8105 #: ../src/guestfs-actions.pod:2466
8106 msgid "guestfs_is_file"
8107 msgstr ""
8108
8109 # type: verbatim
8110 #: ../src/guestfs-actions.pod:2468
8111 #, no-wrap
8112 msgid ""
8113 " int guestfs_is_file (guestfs_h *g,\n"
8114 "\t\tconst char *path);\n"
8115 "\n"
8116 msgstr ""
8117
8118 # type: textblock
8119 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1956
8120 msgid ""
8121 "This returns C<true> if and only if there is a regular file with the given "
8122 "C<path> name.  Note that it returns false for other objects like "
8123 "directories."
8124 msgstr ""
8125
8126 # type: =head2
8127 #: ../src/guestfs-actions.pod:2479
8128 msgid "guestfs_is_launching"
8129 msgstr ""
8130
8131 # type: verbatim
8132 #: ../src/guestfs-actions.pod:2481
8133 #, no-wrap
8134 msgid ""
8135 " int guestfs_is_launching (guestfs_h *g);\n"
8136 "\n"
8137 msgstr ""
8138
8139 # type: textblock
8140 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1966
8141 msgid ""
8142 "This returns true iff this handle is launching the subprocess (in the "
8143 "C<LAUNCHING> state)."
8144 msgstr ""
8145
8146 # type: =head2
8147 #: ../src/guestfs-actions.pod:2490
8148 msgid "guestfs_is_lv"
8149 msgstr ""
8150
8151 # type: verbatim
8152 #: ../src/guestfs-actions.pod:2492
8153 #, no-wrap
8154 msgid ""
8155 " int guestfs_is_lv (guestfs_h *g,\n"
8156 "\t\tconst char *device);\n"
8157 "\n"
8158 msgstr ""
8159
8160 # type: textblock
8161 #: ../src/guestfs-actions.pod:2495 ../fish/guestfish-actions.pod:1975
8162 msgid ""
8163 "This command tests whether C<device> is a logical volume, and returns true "
8164 "iff this is the case."
8165 msgstr ""
8166
8167 # type: =head2
8168 #: ../src/guestfs-actions.pod:2500
8169 msgid "guestfs_is_ready"
8170 msgstr ""
8171
8172 # type: verbatim
8173 #: ../src/guestfs-actions.pod:2502
8174 #, no-wrap
8175 msgid ""
8176 " int guestfs_is_ready (guestfs_h *g);\n"
8177 "\n"
8178 msgstr ""
8179
8180 # type: textblock
8181 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1982
8182 msgid ""
8183 "This returns true iff this handle is ready to accept commands (in the "
8184 "C<READY> state)."
8185 msgstr ""
8186
8187 # type: =head2
8188 #: ../src/guestfs-actions.pod:2511
8189 msgid "guestfs_is_socket"
8190 msgstr ""
8191
8192 # type: verbatim
8193 #: ../src/guestfs-actions.pod:2513
8194 #, no-wrap
8195 msgid ""
8196 " int guestfs_is_socket (guestfs_h *g,\n"
8197 "\t\tconst char *path);\n"
8198 "\n"
8199 msgstr ""
8200
8201 # type: textblock
8202 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1991
8203 msgid ""
8204 "This returns C<true> if and only if there is a Unix domain socket with the "
8205 "given C<path> name."
8206 msgstr ""
8207
8208 # type: =head2
8209 #: ../src/guestfs-actions.pod:2523
8210 msgid "guestfs_is_symlink"
8211 msgstr ""
8212
8213 # type: verbatim
8214 #: ../src/guestfs-actions.pod:2525
8215 #, no-wrap
8216 msgid ""
8217 " int guestfs_is_symlink (guestfs_h *g,\n"
8218 "\t\tconst char *path);\n"
8219 "\n"
8220 msgstr ""
8221
8222 # type: textblock
8223 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:2000
8224 msgid ""
8225 "This returns C<true> if and only if there is a symbolic link with the given "
8226 "C<path> name."
8227 msgstr ""
8228
8229 # type: =head2
8230 #: ../src/guestfs-actions.pod:2535
8231 msgid "guestfs_kill_subprocess"
8232 msgstr ""
8233
8234 # type: verbatim
8235 #: ../src/guestfs-actions.pod:2537
8236 #, no-wrap
8237 msgid ""
8238 " int guestfs_kill_subprocess (guestfs_h *g);\n"
8239 "\n"
8240 msgstr ""
8241
8242 # type: textblock
8243 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:2009
8244 msgid "This kills the qemu subprocess.  You should never need to call this."
8245 msgstr ""
8246
8247 # type: =head2
8248 #: ../src/guestfs-actions.pod:2543
8249 msgid "guestfs_launch"
8250 msgstr ""
8251
8252 # type: verbatim
8253 #: ../src/guestfs-actions.pod:2545
8254 #, no-wrap
8255 msgid ""
8256 " int guestfs_launch (guestfs_h *g);\n"
8257 "\n"
8258 msgstr ""
8259
8260 # type: textblock
8261 #: ../src/guestfs-actions.pod:2547 ../fish/guestfish-actions.pod:2017
8262 msgid ""
8263 "Internally libguestfs is implemented by running a virtual machine using "
8264 "L<qemu(1)>."
8265 msgstr ""
8266
8267 # type: textblock
8268 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:2020
8269 msgid ""
8270 "You should call this after configuring the handle (eg. adding drives) but "
8271 "before performing any actions."
8272 msgstr ""
8273
8274 # type: =head2
8275 #: ../src/guestfs-actions.pod:2555
8276 msgid "guestfs_lchown"
8277 msgstr ""
8278
8279 # type: verbatim
8280 #: ../src/guestfs-actions.pod:2557
8281 #, no-wrap
8282 msgid ""
8283 " int guestfs_lchown (guestfs_h *g,\n"
8284 "\t\tint owner,\n"
8285 "\t\tint group,\n"
8286 "\t\tconst char *path);\n"
8287 "\n"
8288 msgstr ""
8289
8290 # type: textblock
8291 #: ../src/guestfs-actions.pod:2562
8292 msgid ""
8293 "Change the file owner to C<owner> and group to C<group>.  This is like "
8294 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8295 "changed, not the target."
8296 msgstr ""
8297
8298 # type: =head2
8299 #: ../src/guestfs-actions.pod:2572
8300 msgid "guestfs_lgetxattrs"
8301 msgstr ""
8302
8303 # type: verbatim
8304 #: ../src/guestfs-actions.pod:2574
8305 #, no-wrap
8306 msgid ""
8307 " struct guestfs_xattr_list *guestfs_lgetxattrs (guestfs_h *g,\n"
8308 "\t\tconst char *path);\n"
8309 "\n"
8310 msgstr ""
8311
8312 # type: textblock
8313 #: ../src/guestfs-actions.pod:2577
8314 msgid ""
8315 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8316 "then it returns the extended attributes of the link itself."
8317 msgstr ""
8318
8319 # type: =head2
8320 #: ../src/guestfs-actions.pod:2586
8321 msgid "guestfs_list_devices"
8322 msgstr ""
8323
8324 # type: verbatim
8325 #: ../src/guestfs-actions.pod:2588
8326 #, no-wrap
8327 msgid ""
8328 " char **guestfs_list_devices (guestfs_h *g);\n"
8329 "\n"
8330 msgstr ""
8331
8332 # type: textblock
8333 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:2047
8334 msgid "List all the block devices."
8335 msgstr ""
8336
8337 # type: textblock
8338 #: ../src/guestfs-actions.pod:2592 ../fish/guestfish-actions.pod:2049
8339 msgid "The full block device names are returned, eg. C</dev/sda>."
8340 msgstr ""
8341
8342 # type: =head2
8343 #: ../src/guestfs-actions.pod:2600
8344 msgid "guestfs_list_filesystems"
8345 msgstr ""
8346
8347 # type: verbatim
8348 #: ../src/guestfs-actions.pod:2602
8349 #, no-wrap
8350 msgid ""
8351 " char **guestfs_list_filesystems (guestfs_h *g);\n"
8352 "\n"
8353 msgstr ""
8354
8355 # type: textblock
8356 #: ../src/guestfs-actions.pod:2604 ../fish/guestfish-actions.pod:2057
8357 msgid ""
8358 "This inspection command looks for filesystems on partitions, block devices "
8359 "and logical volumes, returning a list of devices containing filesystems and "
8360 "their type."
8361 msgstr ""
8362
8363 # type: textblock
8364 #: ../src/guestfs-actions.pod:2608 ../fish/guestfish-actions.pod:2061
8365 msgid ""
8366 "The return value is a hash, where the keys are the devices containing "
8367 "filesystems, and the values are the filesystem types.  For example:"
8368 msgstr ""
8369
8370 # type: verbatim
8371 #: ../src/guestfs-actions.pod:2612 ../fish/guestfish-actions.pod:2065
8372 #, no-wrap
8373 msgid ""
8374 " \"/dev/sda1\" => \"ntfs\"\n"
8375 " \"/dev/sda2\" => \"ext2\"\n"
8376 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8377 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8378 "\n"
8379 msgstr ""
8380
8381 # type: textblock
8382 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:2070
8383 msgid ""
8384 "The value can have the special value \"unknown\", meaning the content of the "
8385 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8386 msgstr ""
8387
8388 # type: textblock
8389 #: ../src/guestfs-actions.pod:2621
8390 msgid ""
8391 "This command runs other libguestfs commands, which might include "
8392 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8393 "soon after launch and only when nothing is mounted."
8394 msgstr ""
8395
8396 # type: textblock
8397 #: ../src/guestfs-actions.pod:2625
8398 msgid ""
8399 "Not all of the filesystems returned will be mountable.  In particular, swap "
8400 "partitions are returned in the list.  Also this command does not check that "
8401 "each filesystem found is valid and mountable, and some filesystems might be "
8402 "mountable but require special options.  Filesystems may not all belong to a "
8403 "single logical operating system (use C<guestfs_inspect_os> to look for "
8404 "OSes)."
8405 msgstr ""
8406
8407 # type: =head2
8408 #: ../src/guestfs-actions.pod:2639
8409 msgid "guestfs_list_partitions"
8410 msgstr ""
8411
8412 # type: verbatim
8413 #: ../src/guestfs-actions.pod:2641
8414 #, no-wrap
8415 msgid ""
8416 " char **guestfs_list_partitions (guestfs_h *g);\n"
8417 "\n"
8418 msgstr ""
8419
8420 # type: textblock
8421 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:2090
8422 msgid "List all the partitions detected on all block devices."
8423 msgstr ""
8424
8425 # type: textblock
8426 #: ../src/guestfs-actions.pod:2645 ../fish/guestfish-actions.pod:2092
8427 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8428 msgstr ""
8429
8430 # type: textblock
8431 #: ../src/guestfs-actions.pod:2647
8432 msgid ""
8433 "This does not return logical volumes.  For that you will need to call "
8434 "C<guestfs_lvs>."
8435 msgstr ""
8436
8437 # type: =head2
8438 #: ../src/guestfs-actions.pod:2656
8439 msgid "guestfs_ll"
8440 msgstr ""
8441
8442 # type: verbatim
8443 #: ../src/guestfs-actions.pod:2658
8444 #, no-wrap
8445 msgid ""
8446 " char *guestfs_ll (guestfs_h *g,\n"
8447 "\t\tconst char *directory);\n"
8448 "\n"
8449 msgstr ""
8450
8451 # type: textblock
8452 #: ../src/guestfs-actions.pod:2661 ../fish/guestfish-actions.pod:2103
8453 msgid ""
8454 "List the files in C<directory> (relative to the root directory, there is no "
8455 "cwd) in the format of 'ls -la'."
8456 msgstr ""
8457
8458 # type: textblock
8459 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:2106
8460 msgid ""
8461 "This command is mostly useful for interactive sessions.  It is I<not> "
8462 "intended that you try to parse the output string."
8463 msgstr ""
8464
8465 # type: =head2
8466 #: ../src/guestfs-actions.pod:2670
8467 msgid "guestfs_ln"
8468 msgstr ""
8469
8470 # type: verbatim
8471 #: ../src/guestfs-actions.pod:2672
8472 #, no-wrap
8473 msgid ""
8474 " int guestfs_ln (guestfs_h *g,\n"
8475 "\t\tconst char *target,\n"
8476 "\t\tconst char *linkname);\n"
8477 "\n"
8478 msgstr ""
8479
8480 # type: textblock
8481 #: ../src/guestfs-actions.pod:2676 ../fish/guestfish-actions.pod:2113
8482 msgid "This command creates a hard link using the C<ln> command."
8483 msgstr ""
8484
8485 # type: =head2
8486 #: ../src/guestfs-actions.pod:2680
8487 msgid "guestfs_ln_f"
8488 msgstr ""
8489
8490 # type: verbatim
8491 #: ../src/guestfs-actions.pod:2682
8492 #, no-wrap
8493 msgid ""
8494 " int guestfs_ln_f (guestfs_h *g,\n"
8495 "\t\tconst char *target,\n"
8496 "\t\tconst char *linkname);\n"
8497 "\n"
8498 msgstr ""
8499
8500 # type: textblock
8501 #: ../src/guestfs-actions.pod:2686 ../fish/guestfish-actions.pod:2119
8502 msgid ""
8503 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8504 "option removes the link (C<linkname>) if it exists already."
8505 msgstr ""
8506
8507 # type: =head2
8508 #: ../src/guestfs-actions.pod:2691
8509 msgid "guestfs_ln_s"
8510 msgstr ""
8511
8512 # type: verbatim
8513 #: ../src/guestfs-actions.pod:2693
8514 #, no-wrap
8515 msgid ""
8516 " int guestfs_ln_s (guestfs_h *g,\n"
8517 "\t\tconst char *target,\n"
8518 "\t\tconst char *linkname);\n"
8519 "\n"
8520 msgstr ""
8521
8522 # type: textblock
8523 #: ../src/guestfs-actions.pod:2697 ../fish/guestfish-actions.pod:2126
8524 msgid "This command creates a symbolic link using the C<ln -s> command."
8525 msgstr ""
8526
8527 # type: =head2
8528 #: ../src/guestfs-actions.pod:2701
8529 msgid "guestfs_ln_sf"
8530 msgstr ""
8531
8532 # type: verbatim
8533 #: ../src/guestfs-actions.pod:2703
8534 #, no-wrap
8535 msgid ""
8536 " int guestfs_ln_sf (guestfs_h *g,\n"
8537 "\t\tconst char *target,\n"
8538 "\t\tconst char *linkname);\n"
8539 "\n"
8540 msgstr ""
8541
8542 # type: textblock
8543 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:2132
8544 msgid ""
8545 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8546 "option removes the link (C<linkname>) if it exists already."
8547 msgstr ""
8548
8549 # type: =head2
8550 #: ../src/guestfs-actions.pod:2712
8551 msgid "guestfs_lremovexattr"
8552 msgstr ""
8553
8554 # type: verbatim
8555 #: ../src/guestfs-actions.pod:2714
8556 #, no-wrap
8557 msgid ""
8558 " int guestfs_lremovexattr (guestfs_h *g,\n"
8559 "\t\tconst char *xattr,\n"
8560 "\t\tconst char *path);\n"
8561 "\n"
8562 msgstr ""
8563
8564 # type: textblock
8565 #: ../src/guestfs-actions.pod:2718
8566 msgid ""
8567 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8568 "link, then it removes an extended attribute of the link itself."
8569 msgstr ""
8570
8571 # type: =head2
8572 #: ../src/guestfs-actions.pod:2724
8573 msgid "guestfs_ls"
8574 msgstr ""
8575
8576 # type: verbatim
8577 #: ../src/guestfs-actions.pod:2726
8578 #, no-wrap
8579 msgid ""
8580 " char **guestfs_ls (guestfs_h *g,\n"
8581 "\t\tconst char *directory);\n"
8582 "\n"
8583 msgstr ""
8584
8585 # type: textblock
8586 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:2147
8587 msgid ""
8588 "List the files in C<directory> (relative to the root directory, there is no "
8589 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
8590 "shown."
8591 msgstr ""
8592
8593 # type: textblock
8594 #: ../src/guestfs-actions.pod:2733
8595 msgid ""
8596 "This command is mostly useful for interactive sessions.  Programs should "
8597 "probably use C<guestfs_readdir> instead."
8598 msgstr ""
8599
8600 # type: =head2
8601 #: ../src/guestfs-actions.pod:2740
8602 msgid "guestfs_lsetxattr"
8603 msgstr ""
8604
8605 # type: verbatim
8606 #: ../src/guestfs-actions.pod:2742
8607 #, no-wrap
8608 msgid ""
8609 " int guestfs_lsetxattr (guestfs_h *g,\n"
8610 "\t\tconst char *xattr,\n"
8611 "\t\tconst char *val,\n"
8612 "\t\tint vallen,\n"
8613 "\t\tconst char *path);\n"
8614 "\n"
8615 msgstr ""
8616
8617 # type: textblock
8618 #: ../src/guestfs-actions.pod:2748
8619 msgid ""
8620 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8621 "then it sets an extended attribute of the link itself."
8622 msgstr ""
8623
8624 # type: =head2
8625 #: ../src/guestfs-actions.pod:2754
8626 msgid "guestfs_lstat"
8627 msgstr ""
8628
8629 # type: verbatim
8630 #: ../src/guestfs-actions.pod:2756
8631 #, no-wrap
8632 msgid ""
8633 " struct guestfs_stat *guestfs_lstat (guestfs_h *g,\n"
8634 "\t\tconst char *path);\n"
8635 "\n"
8636 msgstr ""
8637
8638 # type: textblock
8639 #: ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:4835 ../fish/guestfish-actions.pod:2166 ../fish/guestfish-actions.pod:3748
8640 msgid "Returns file information for the given C<path>."
8641 msgstr ""
8642
8643 # type: textblock
8644 #: ../src/guestfs-actions.pod:2761
8645 msgid ""
8646 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8647 "link, then the link is stat-ed, not the file it refers to."
8648 msgstr ""
8649
8650 # type: textblock
8651 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:2172
8652 msgid "This is the same as the C<lstat(2)> system call."
8653 msgstr ""
8654
8655 # type: textblock
8656 #: ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:4839
8657 msgid ""
8658 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8659 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8660 msgstr ""
8661
8662 # type: =head2
8663 #: ../src/guestfs-actions.pod:2771
8664 msgid "guestfs_lstatlist"
8665 msgstr ""
8666
8667 # type: verbatim
8668 #: ../src/guestfs-actions.pod:2773
8669 #, no-wrap
8670 msgid ""
8671 " struct guestfs_stat_list *guestfs_lstatlist (guestfs_h *g,\n"
8672 "\t\tconst char *path,\n"
8673 "\t\tchar *const *names);\n"
8674 "\n"
8675 msgstr ""
8676
8677 # type: textblock
8678 #: ../src/guestfs-actions.pod:2777
8679 msgid ""
8680 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8681 "files, where all files are in the directory C<path>.  C<names> is the list "
8682 "of files from this directory."
8683 msgstr ""
8684
8685 # type: textblock
8686 #: ../src/guestfs-actions.pod:2781 ../fish/guestfish-actions.pod:2182
8687 msgid ""
8688 "On return you get a list of stat structs, with a one-to-one correspondence "
8689 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8690 "then the C<ino> field of that structure is set to C<-1>."
8691 msgstr ""
8692
8693 # type: textblock
8694 #: ../src/guestfs-actions.pod:2786
8695 msgid ""
8696 "This call is intended for programs that want to efficiently list a directory "
8697 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8698 "for a similarly efficient call for getting extended attributes.  Very long "
8699 "directory listings might cause the protocol message size to be exceeded, "
8700 "causing this call to fail.  The caller must split up such requests into "
8701 "smaller groups of names."
8702 msgstr ""
8703
8704 # type: textblock
8705 #: ../src/guestfs-actions.pod:2794
8706 msgid ""
8707 "This function returns a C<struct guestfs_stat_list *> (see "
8708 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8709 "must call C<guestfs_free_stat_list> after use>."
8710 msgstr ""
8711
8712 # type: =head2
8713 #: ../src/guestfs-actions.pod:2799
8714 msgid "guestfs_luks_add_key"
8715 msgstr ""
8716
8717 # type: verbatim
8718 #: ../src/guestfs-actions.pod:2801
8719 #, no-wrap
8720 msgid ""
8721 " int guestfs_luks_add_key (guestfs_h *g,\n"
8722 "\t\tconst char *device,\n"
8723 "\t\tconst char *key,\n"
8724 "\t\tconst char *newkey,\n"
8725 "\t\tint keyslot);\n"
8726 "\n"
8727 msgstr ""
8728
8729 # type: textblock
8730 #: ../src/guestfs-actions.pod:2807 ../fish/guestfish-actions.pod:2199
8731 msgid ""
8732 "This command adds a new key on LUKS device C<device>.  C<key> is any "
8733 "existing key, and is used to access the device.  C<newkey> is the new key to "
8734 "add.  C<keyslot> is the key slot that will be replaced."
8735 msgstr ""
8736
8737 # type: textblock
8738 #: ../src/guestfs-actions.pod:2812
8739 msgid ""
8740 "Note that if C<keyslot> already contains a key, then this command will "
8741 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
8742 msgstr ""
8743
8744 # type: textblock
8745 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:2872 ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:2918 ../src/guestfs-actions.pod:2934
8746 msgid ""
8747 "This function takes a key or passphrase parameter which could contain "
8748 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
8749 "information."
8750 msgstr ""
8751
8752 # type: =head2
8753 #: ../src/guestfs-actions.pod:2822
8754 msgid "guestfs_luks_close"
8755 msgstr ""
8756
8757 # type: verbatim
8758 #: ../src/guestfs-actions.pod:2824
8759 #, no-wrap
8760 msgid ""
8761 " int guestfs_luks_close (guestfs_h *g,\n"
8762 "\t\tconst char *device);\n"
8763 "\n"
8764 msgstr ""
8765
8766 # type: textblock
8767 #: ../src/guestfs-actions.pod:2827
8768 msgid ""
8769 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
8770 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
8771 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
8772 "underlying block device."
8773 msgstr ""
8774
8775 # type: =head2
8776 #: ../src/guestfs-actions.pod:2835
8777 msgid "guestfs_luks_format"
8778 msgstr ""
8779
8780 # type: verbatim
8781 #: ../src/guestfs-actions.pod:2837
8782 #, no-wrap
8783 msgid ""
8784 " int guestfs_luks_format (guestfs_h *g,\n"
8785 "\t\tconst char *device,\n"
8786 "\t\tconst char *key,\n"
8787 "\t\tint keyslot);\n"
8788 "\n"
8789 msgstr ""
8790
8791 # type: textblock
8792 #: ../src/guestfs-actions.pod:2842 ../fish/guestfish-actions.pod:2225
8793 msgid ""
8794 "This command erases existing data on C<device> and formats the device as a "
8795 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
8796 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
8797 msgstr ""
8798
8799 # type: textblock
8800 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2869 ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4697 ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:5705 ../fish/guestfish-actions.pod:2233 ../fish/guestfish-actions.pod:2246 ../fish/guestfish-actions.pod:2330 ../fish/guestfish-actions.pod:2860 ../fish/guestfish-actions.pod:3367 ../fish/guestfish-actions.pod:3647 ../fish/guestfish-actions.pod:3663 ../fish/guestfish-actions.pod:3678 ../fish/guestfish-actions.pod:4393
8801 msgid ""
8802 "B<This command is dangerous.  Without careful use you can easily destroy all "
8803 "your data>."
8804 msgstr ""
8805
8806 # type: =head2
8807 #: ../src/guestfs-actions.pod:2856
8808 msgid "guestfs_luks_format_cipher"
8809 msgstr ""
8810
8811 # type: verbatim
8812 #: ../src/guestfs-actions.pod:2858
8813 #, no-wrap
8814 msgid ""
8815 " int guestfs_luks_format_cipher (guestfs_h *g,\n"
8816 "\t\tconst char *device,\n"
8817 "\t\tconst char *key,\n"
8818 "\t\tint keyslot,\n"
8819 "\t\tconst char *cipher);\n"
8820 "\n"
8821 msgstr ""
8822
8823 # type: textblock
8824 #: ../src/guestfs-actions.pod:2864
8825 msgid ""
8826 "This command is the same as C<guestfs_luks_format> but it also allows you to "
8827 "set the C<cipher> used."
8828 msgstr ""
8829
8830 # type: =head2
8831 #: ../src/guestfs-actions.pod:2876
8832 msgid "guestfs_luks_kill_slot"
8833 msgstr ""
8834
8835 # type: verbatim
8836 #: ../src/guestfs-actions.pod:2878
8837 #, no-wrap
8838 msgid ""
8839 " int guestfs_luks_kill_slot (guestfs_h *g,\n"
8840 "\t\tconst char *device,\n"
8841 "\t\tconst char *key,\n"
8842 "\t\tint keyslot);\n"
8843 "\n"
8844 msgstr ""
8845
8846 # type: textblock
8847 #: ../src/guestfs-actions.pod:2883 ../fish/guestfish-actions.pod:2253
8848 msgid ""
8849 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
8850 "device C<device>.  C<key> must be one of the I<other> keys."
8851 msgstr ""
8852
8853 # type: =head2
8854 #: ../src/guestfs-actions.pod:2893
8855 msgid "guestfs_luks_open"
8856 msgstr ""
8857
8858 # type: verbatim
8859 #: ../src/guestfs-actions.pod:2895
8860 #, no-wrap
8861 msgid ""
8862 " int guestfs_luks_open (guestfs_h *g,\n"
8863 "\t\tconst char *device,\n"
8864 "\t\tconst char *key,\n"
8865 "\t\tconst char *mapname);\n"
8866 "\n"
8867 msgstr ""
8868
8869 # type: textblock
8870 #: ../src/guestfs-actions.pod:2900 ../fish/guestfish-actions.pod:2264
8871 msgid ""
8872 "This command opens a block device which has been encrypted according to the "
8873 "Linux Unified Key Setup (LUKS) standard."
8874 msgstr ""
8875
8876 # type: textblock
8877 #: ../src/guestfs-actions.pod:2903 ../fish/guestfish-actions.pod:2267
8878 msgid "C<device> is the encrypted block device or partition."
8879 msgstr ""
8880
8881 # type: textblock
8882 #: ../src/guestfs-actions.pod:2905 ../fish/guestfish-actions.pod:2269
8883 msgid ""
8884 "The caller must supply one of the keys associated with the LUKS block "
8885 "device, in the C<key> parameter."
8886 msgstr ""
8887
8888 # type: textblock
8889 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:2272
8890 msgid ""
8891 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
8892 "writes to this block device are decrypted from and encrypted to the "
8893 "underlying C<device> respectively."
8894 msgstr ""
8895
8896 # type: textblock
8897 #: ../src/guestfs-actions.pod:2912
8898 msgid ""
8899 "If this block device contains LVM volume groups, then calling "
8900 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
8901 "visible."
8902 msgstr ""
8903
8904 # type: =head2
8905 #: ../src/guestfs-actions.pod:2922
8906 msgid "guestfs_luks_open_ro"
8907 msgstr ""
8908
8909 # type: verbatim
8910 #: ../src/guestfs-actions.pod:2924
8911 #, no-wrap
8912 msgid ""
8913 " int guestfs_luks_open_ro (guestfs_h *g,\n"
8914 "\t\tconst char *device,\n"
8915 "\t\tconst char *key,\n"
8916 "\t\tconst char *mapname);\n"
8917 "\n"
8918 msgstr ""
8919
8920 # type: textblock
8921 #: ../src/guestfs-actions.pod:2929
8922 msgid ""
8923 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
8924 "created."
8925 msgstr ""
8926
8927 # type: =head2
8928 #: ../src/guestfs-actions.pod:2938
8929 msgid "guestfs_lvcreate"
8930 msgstr ""
8931
8932 # type: verbatim
8933 #: ../src/guestfs-actions.pod:2940
8934 #, no-wrap
8935 msgid ""
8936 " int guestfs_lvcreate (guestfs_h *g,\n"
8937 "\t\tconst char *logvol,\n"
8938 "\t\tconst char *volgroup,\n"
8939 "\t\tint mbytes);\n"
8940 "\n"
8941 msgstr ""
8942
8943 # type: textblock
8944 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2297
8945 msgid ""
8946 "This creates an LVM logical volume called C<logvol> on the volume group "
8947 "C<volgroup>, with C<size> megabytes."
8948 msgstr ""
8949
8950 # type: =head2
8951 #: ../src/guestfs-actions.pod:2950
8952 msgid "guestfs_lvm_canonical_lv_name"
8953 msgstr ""
8954
8955 # type: verbatim
8956 #: ../src/guestfs-actions.pod:2952
8957 #, no-wrap
8958 msgid ""
8959 " char *guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
8960 "\t\tconst char *lvname);\n"
8961 "\n"
8962 msgstr ""
8963
8964 # type: textblock
8965 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2304
8966 msgid ""
8967 "This converts alternative naming schemes for LVs that you might find to the "
8968 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
8969 "C</dev/VG/LV>."
8970 msgstr ""
8971
8972 # type: textblock
8973 #: ../src/guestfs-actions.pod:2959 ../fish/guestfish-actions.pod:2308
8974 msgid ""
8975 "This command returns an error if the C<lvname> parameter does not refer to a "
8976 "logical volume."
8977 msgstr ""
8978
8979 # type: textblock
8980 #: ../src/guestfs-actions.pod:2962
8981 msgid "See also C<guestfs_is_lv>."
8982 msgstr ""
8983
8984 # type: =head2
8985 #: ../src/guestfs-actions.pod:2967
8986 msgid "guestfs_lvm_clear_filter"
8987 msgstr ""
8988
8989 # type: verbatim
8990 #: ../src/guestfs-actions.pod:2969
8991 #, no-wrap
8992 msgid ""
8993 " int guestfs_lvm_clear_filter (guestfs_h *g);\n"
8994 "\n"
8995 msgstr ""
8996
8997 # type: textblock
8998 #: ../src/guestfs-actions.pod:2971
8999 msgid ""
9000 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9001 "see every block device."
9002 msgstr ""
9003
9004 # type: textblock
9005 #: ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3010 ../fish/guestfish-actions.pod:2320 ../fish/guestfish-actions.pod:2351
9006 msgid "This command also clears the LVM cache and performs a volume group scan."
9007 msgstr ""
9008
9009 # type: =head2
9010 #: ../src/guestfs-actions.pod:2979
9011 msgid "guestfs_lvm_remove_all"
9012 msgstr ""
9013
9014 # type: verbatim
9015 #: ../src/guestfs-actions.pod:2981
9016 #, no-wrap
9017 msgid ""
9018 " int guestfs_lvm_remove_all (guestfs_h *g);\n"
9019 "\n"
9020 msgstr ""
9021
9022 # type: textblock
9023 #: ../src/guestfs-actions.pod:2983 ../fish/guestfish-actions.pod:2327
9024 msgid ""
9025 "This command removes all LVM logical volumes, volume groups and physical "
9026 "volumes."
9027 msgstr ""
9028
9029 # type: =head2
9030 #: ../src/guestfs-actions.pod:2991
9031 msgid "guestfs_lvm_set_filter"
9032 msgstr ""
9033
9034 # type: verbatim
9035 #: ../src/guestfs-actions.pod:2993
9036 #, no-wrap
9037 msgid ""
9038 " int guestfs_lvm_set_filter (guestfs_h *g,\n"
9039 "\t\tchar *const *devices);\n"
9040 "\n"
9041 msgstr ""
9042
9043 # type: textblock
9044 #: ../src/guestfs-actions.pod:2996 ../fish/guestfish-actions.pod:2337
9045 msgid ""
9046 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9047 "block devices in the list C<devices>, and will ignore all other attached "
9048 "block devices."
9049 msgstr ""
9050
9051 # type: textblock
9052 #: ../src/guestfs-actions.pod:3000 ../fish/guestfish-actions.pod:2341
9053 msgid ""
9054 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9055 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9056 "there are two types of duplication possible: either cloned PVs/VGs which "
9057 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9058 "same name.  In normal operation you cannot create this situation, but you "
9059 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9060 "inside the LVM metadata."
9061 msgstr ""
9062
9063 # type: textblock
9064 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2354
9065 msgid "You can filter whole block devices or individual partitions."
9066 msgstr ""
9067
9068 # type: textblock
9069 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2356
9070 msgid ""
9071 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9072 "filesystem), even if you are not filtering out that VG."
9073 msgstr ""
9074
9075 # type: =head2
9076 #: ../src/guestfs-actions.pod:3021
9077 msgid "guestfs_lvremove"
9078 msgstr ""
9079
9080 # type: verbatim
9081 #: ../src/guestfs-actions.pod:3023
9082 #, no-wrap
9083 msgid ""
9084 " int guestfs_lvremove (guestfs_h *g,\n"
9085 "\t\tconst char *device);\n"
9086 "\n"
9087 msgstr ""
9088
9089 # type: textblock
9090 #: ../src/guestfs-actions.pod:3026 ../fish/guestfish-actions.pod:2364
9091 msgid ""
9092 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9093 "LV, such as C</dev/VG/LV>."
9094 msgstr ""
9095
9096 # type: textblock
9097 #: ../src/guestfs-actions.pod:3029 ../fish/guestfish-actions.pod:2367
9098 msgid ""
9099 "You can also remove all LVs in a volume group by specifying the VG name, "
9100 "C</dev/VG>."
9101 msgstr ""
9102
9103 # type: =head2
9104 #: ../src/guestfs-actions.pod:3034
9105 msgid "guestfs_lvrename"
9106 msgstr ""
9107
9108 # type: verbatim
9109 #: ../src/guestfs-actions.pod:3036
9110 #, no-wrap
9111 msgid ""
9112 " int guestfs_lvrename (guestfs_h *g,\n"
9113 "\t\tconst char *logvol,\n"
9114 "\t\tconst char *newlogvol);\n"
9115 "\n"
9116 msgstr ""
9117
9118 # type: textblock
9119 #: ../src/guestfs-actions.pod:3040 ../fish/guestfish-actions.pod:2374
9120 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9121 msgstr ""
9122
9123 # type: =head2
9124 #: ../src/guestfs-actions.pod:3044
9125 msgid "guestfs_lvresize"
9126 msgstr ""
9127
9128 # type: verbatim
9129 #: ../src/guestfs-actions.pod:3046
9130 #, no-wrap
9131 msgid ""
9132 " int guestfs_lvresize (guestfs_h *g,\n"
9133 "\t\tconst char *device,\n"
9134 "\t\tint mbytes);\n"
9135 "\n"
9136 msgstr ""
9137
9138 # type: textblock
9139 #: ../src/guestfs-actions.pod:3050 ../fish/guestfish-actions.pod:2380
9140 msgid ""
9141 "This resizes (expands or shrinks) an existing LVM logical volume to "
9142 "C<mbytes>.  When reducing, data in the reduced part is lost."
9143 msgstr ""
9144
9145 # type: =head2
9146 #: ../src/guestfs-actions.pod:3056
9147 msgid "guestfs_lvresize_free"
9148 msgstr ""
9149
9150 # type: verbatim
9151 #: ../src/guestfs-actions.pod:3058
9152 #, no-wrap
9153 msgid ""
9154 " int guestfs_lvresize_free (guestfs_h *g,\n"
9155 "\t\tconst char *lv,\n"
9156 "\t\tint percent);\n"
9157 "\n"
9158 msgstr ""
9159
9160 # type: textblock
9161 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2388
9162 msgid ""
9163 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9164 "remaining free space in the volume group.  Commonly you would call this with "
9165 "pc = 100 which expands the logical volume as much as possible, using all "
9166 "remaining free space in the volume group."
9167 msgstr ""
9168
9169 # type: =head2
9170 #: ../src/guestfs-actions.pod:3070
9171 msgid "guestfs_lvs"
9172 msgstr ""
9173
9174 # type: verbatim
9175 #: ../src/guestfs-actions.pod:3072
9176 #, no-wrap
9177 msgid ""
9178 " char **guestfs_lvs (guestfs_h *g);\n"
9179 "\n"
9180 msgstr ""
9181
9182 # type: textblock
9183 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2398
9184 msgid ""
9185 "List all the logical volumes detected.  This is the equivalent of the "
9186 "L<lvs(8)> command."
9187 msgstr ""
9188
9189 # type: textblock
9190 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2401
9191 msgid ""
9192 "This returns a list of the logical volume device names "
9193 "(eg. C</dev/VolGroup00/LogVol00>)."
9194 msgstr ""
9195
9196 # type: textblock
9197 #: ../src/guestfs-actions.pod:3080
9198 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9199 msgstr ""
9200
9201 # type: =head2
9202 #: ../src/guestfs-actions.pod:3086
9203 msgid "guestfs_lvs_full"
9204 msgstr ""
9205
9206 # type: verbatim
9207 #: ../src/guestfs-actions.pod:3088
9208 #, no-wrap
9209 msgid ""
9210 " struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *g);\n"
9211 "\n"
9212 msgstr ""
9213
9214 # type: textblock
9215 #: ../src/guestfs-actions.pod:3090 ../fish/guestfish-actions.pod:2410
9216 msgid ""
9217 "List all the logical volumes detected.  This is the equivalent of the "
9218 "L<lvs(8)> command.  The \"full\" version includes all fields."
9219 msgstr ""
9220
9221 # type: textblock
9222 #: ../src/guestfs-actions.pod:3093
9223 msgid ""
9224 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
9225 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
9226 "must call C<guestfs_free_lvm_lv_list> after use>."
9227 msgstr ""
9228
9229 # type: =head2
9230 #: ../src/guestfs-actions.pod:3098
9231 msgid "guestfs_lvuuid"
9232 msgstr ""
9233
9234 # type: verbatim
9235 #: ../src/guestfs-actions.pod:3100
9236 #, no-wrap
9237 msgid ""
9238 " char *guestfs_lvuuid (guestfs_h *g,\n"
9239 "\t\tconst char *device);\n"
9240 "\n"
9241 msgstr ""
9242
9243 # type: textblock
9244 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2417
9245 msgid "This command returns the UUID of the LVM LV C<device>."
9246 msgstr ""
9247
9248 # type: =head2
9249 #: ../src/guestfs-actions.pod:3108
9250 msgid "guestfs_lxattrlist"
9251 msgstr ""
9252
9253 # type: verbatim
9254 #: ../src/guestfs-actions.pod:3110
9255 #, no-wrap
9256 msgid ""
9257 " struct guestfs_xattr_list *guestfs_lxattrlist (guestfs_h *g,\n"
9258 "\t\tconst char *path,\n"
9259 "\t\tchar *const *names);\n"
9260 "\n"
9261 msgstr ""
9262
9263 # type: textblock
9264 #: ../src/guestfs-actions.pod:3114 ../fish/guestfish-actions.pod:2423
9265 msgid ""
9266 "This call allows you to get the extended attributes of multiple files, where "
9267 "all files are in the directory C<path>.  C<names> is the list of files from "
9268 "this directory."
9269 msgstr ""
9270
9271 # type: textblock
9272 #: ../src/guestfs-actions.pod:3118 ../fish/guestfish-actions.pod:2427
9273 msgid ""
9274 "On return you get a flat list of xattr structs which must be interpreted "
9275 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9276 "C<attrval> in this struct is zero-length to indicate there was an error "
9277 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9278 "number (the number of following attributes for this file, which could be "
9279 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9280 "attributes for the first named file.  This repeats for the second and "
9281 "subsequent files."
9282 msgstr ""
9283
9284 # type: textblock
9285 #: ../src/guestfs-actions.pod:3128
9286 msgid ""
9287 "This call is intended for programs that want to efficiently list a directory "
9288 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9289 "a similarly efficient call for getting standard stats.  Very long directory "
9290 "listings might cause the protocol message size to be exceeded, causing this "
9291 "call to fail.  The caller must split up such requests into smaller groups of "
9292 "names."
9293 msgstr ""
9294
9295 # type: =head2
9296 #: ../src/guestfs-actions.pod:3141
9297 msgid "guestfs_mkdir"
9298 msgstr ""
9299
9300 # type: verbatim
9301 #: ../src/guestfs-actions.pod:3143
9302 #, no-wrap
9303 msgid ""
9304 " int guestfs_mkdir (guestfs_h *g,\n"
9305 "\t\tconst char *path);\n"
9306 "\n"
9307 msgstr ""
9308
9309 # type: textblock
9310 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2449
9311 msgid "Create a directory named C<path>."
9312 msgstr ""
9313
9314 # type: =head2
9315 #: ../src/guestfs-actions.pod:3150
9316 msgid "guestfs_mkdir_mode"
9317 msgstr ""
9318
9319 # type: verbatim
9320 #: ../src/guestfs-actions.pod:3152
9321 #, no-wrap
9322 msgid ""
9323 " int guestfs_mkdir_mode (guestfs_h *g,\n"
9324 "\t\tconst char *path,\n"
9325 "\t\tint mode);\n"
9326 "\n"
9327 msgstr ""
9328
9329 # type: textblock
9330 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2455
9331 msgid ""
9332 "This command creates a directory, setting the initial permissions of the "
9333 "directory to C<mode>."
9334 msgstr ""
9335
9336 # type: textblock
9337 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2458
9338 msgid ""
9339 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9340 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9341 "other ways."
9342 msgstr ""
9343
9344 # type: textblock
9345 #: ../src/guestfs-actions.pod:3163
9346 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9347 msgstr ""
9348
9349 # type: =head2
9350 #: ../src/guestfs-actions.pod:3167
9351 msgid "guestfs_mkdir_p"
9352 msgstr ""
9353
9354 # type: verbatim
9355 #: ../src/guestfs-actions.pod:3169
9356 #, no-wrap
9357 msgid ""
9358 " int guestfs_mkdir_p (guestfs_h *g,\n"
9359 "\t\tconst char *path);\n"
9360 "\n"
9361 msgstr ""
9362
9363 # type: textblock
9364 #: ../src/guestfs-actions.pod:3172 ../fish/guestfish-actions.pod:2468
9365 msgid ""
9366 "Create a directory named C<path>, creating any parent directories as "
9367 "necessary.  This is like the C<mkdir -p> shell command."
9368 msgstr ""
9369
9370 # type: =head2
9371 #: ../src/guestfs-actions.pod:3177
9372 msgid "guestfs_mkdtemp"
9373 msgstr ""
9374
9375 # type: verbatim
9376 #: ../src/guestfs-actions.pod:3179
9377 #, no-wrap
9378 msgid ""
9379 " char *guestfs_mkdtemp (guestfs_h *g,\n"
9380 "\t\tconst char *template);\n"
9381 "\n"
9382 msgstr ""
9383
9384 # type: textblock
9385 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2475
9386 msgid ""
9387 "This command creates a temporary directory.  The C<template> parameter "
9388 "should be a full pathname for the temporary directory name with the final "
9389 "six characters being \"XXXXXX\"."
9390 msgstr ""
9391
9392 # type: textblock
9393 #: ../src/guestfs-actions.pod:3187 ../fish/guestfish-actions.pod:2480
9394 msgid ""
9395 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9396 "being suitable for Windows filesystems."
9397 msgstr ""
9398
9399 # type: textblock
9400 #: ../src/guestfs-actions.pod:3190 ../fish/guestfish-actions.pod:2483
9401 msgid "The name of the temporary directory that was created is returned."
9402 msgstr ""
9403
9404 # type: textblock
9405 #: ../src/guestfs-actions.pod:3193 ../fish/guestfish-actions.pod:2486
9406 msgid "The temporary directory is created with mode 0700 and is owned by root."
9407 msgstr ""
9408
9409 # type: textblock
9410 #: ../src/guestfs-actions.pod:3196 ../fish/guestfish-actions.pod:2489
9411 msgid ""
9412 "The caller is responsible for deleting the temporary directory and its "
9413 "contents after use."
9414 msgstr ""
9415
9416 # type: textblock
9417 #: ../src/guestfs-actions.pod:3199 ../fish/guestfish-actions.pod:2492
9418 msgid "See also: L<mkdtemp(3)>"
9419 msgstr ""
9420
9421 # type: =head2
9422 #: ../src/guestfs-actions.pod:3204
9423 msgid "guestfs_mke2fs_J"
9424 msgstr ""
9425
9426 # type: verbatim
9427 #: ../src/guestfs-actions.pod:3206
9428 #, no-wrap
9429 msgid ""
9430 " int guestfs_mke2fs_J (guestfs_h *g,\n"
9431 "\t\tconst char *fstype,\n"
9432 "\t\tint blocksize,\n"
9433 "\t\tconst char *device,\n"
9434 "\t\tconst char *journal);\n"
9435 "\n"
9436 msgstr ""
9437
9438 # type: textblock
9439 #: ../src/guestfs-actions.pod:3212 ../fish/guestfish-actions.pod:2498
9440 msgid ""
9441 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9442 "C<journal>.  It is equivalent to the command:"
9443 msgstr ""
9444
9445 # type: verbatim
9446 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2502
9447 #, no-wrap
9448 msgid ""
9449 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9450 "\n"
9451 msgstr ""
9452
9453 # type: textblock
9454 #: ../src/guestfs-actions.pod:3218
9455 msgid "See also C<guestfs_mke2journal>."
9456 msgstr ""
9457
9458 # type: =head2
9459 #: ../src/guestfs-actions.pod:3222
9460 msgid "guestfs_mke2fs_JL"
9461 msgstr ""
9462
9463 # type: verbatim
9464 #: ../src/guestfs-actions.pod:3224
9465 #, no-wrap
9466 msgid ""
9467 " int guestfs_mke2fs_JL (guestfs_h *g,\n"
9468 "\t\tconst char *fstype,\n"
9469 "\t\tint blocksize,\n"
9470 "\t\tconst char *device,\n"
9471 "\t\tconst char *label);\n"
9472 "\n"
9473 msgstr ""
9474
9475 # type: textblock
9476 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2510
9477 msgid ""
9478 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9479 "the journal labeled C<label>."
9480 msgstr ""
9481
9482 # type: textblock
9483 #: ../src/guestfs-actions.pod:3233
9484 msgid "See also C<guestfs_mke2journal_L>."
9485 msgstr ""
9486
9487 # type: =head2
9488 #: ../src/guestfs-actions.pod:3237
9489 msgid "guestfs_mke2fs_JU"
9490 msgstr ""
9491
9492 # type: verbatim
9493 #: ../src/guestfs-actions.pod:3239
9494 #, no-wrap
9495 msgid ""
9496 " int guestfs_mke2fs_JU (guestfs_h *g,\n"
9497 "\t\tconst char *fstype,\n"
9498 "\t\tint blocksize,\n"
9499 "\t\tconst char *device,\n"
9500 "\t\tconst char *uuid);\n"
9501 "\n"
9502 msgstr ""
9503
9504 # type: textblock
9505 #: ../src/guestfs-actions.pod:3245 ../fish/guestfish-actions.pod:2519
9506 msgid ""
9507 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9508 "the journal with UUID C<uuid>."
9509 msgstr ""
9510
9511 # type: textblock
9512 #: ../src/guestfs-actions.pod:3248
9513 msgid "See also C<guestfs_mke2journal_U>."
9514 msgstr ""
9515
9516 # type: =head2
9517 #: ../src/guestfs-actions.pod:3252
9518 msgid "guestfs_mke2journal"
9519 msgstr ""
9520
9521 # type: verbatim
9522 #: ../src/guestfs-actions.pod:3254
9523 #, no-wrap
9524 msgid ""
9525 " int guestfs_mke2journal (guestfs_h *g,\n"
9526 "\t\tint blocksize,\n"
9527 "\t\tconst char *device);\n"
9528 "\n"
9529 msgstr ""
9530
9531 # type: textblock
9532 #: ../src/guestfs-actions.pod:3258 ../fish/guestfish-actions.pod:2528
9533 msgid ""
9534 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9535 "command:"
9536 msgstr ""
9537
9538 # type: verbatim
9539 #: ../src/guestfs-actions.pod:3261 ../fish/guestfish-actions.pod:2531
9540 #, no-wrap
9541 msgid ""
9542 " mke2fs -O journal_dev -b blocksize device\n"
9543 "\n"
9544 msgstr ""
9545
9546 # type: =head2
9547 #: ../src/guestfs-actions.pod:3265
9548 msgid "guestfs_mke2journal_L"
9549 msgstr ""
9550
9551 # type: verbatim
9552 #: ../src/guestfs-actions.pod:3267
9553 #, no-wrap
9554 msgid ""
9555 " int guestfs_mke2journal_L (guestfs_h *g,\n"
9556 "\t\tint blocksize,\n"
9557 "\t\tconst char *label,\n"
9558 "\t\tconst char *device);\n"
9559 "\n"
9560 msgstr ""
9561
9562 # type: textblock
9563 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2537
9564 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9565 msgstr ""
9566
9567 # type: =head2
9568 #: ../src/guestfs-actions.pod:3276
9569 msgid "guestfs_mke2journal_U"
9570 msgstr ""
9571
9572 # type: verbatim
9573 #: ../src/guestfs-actions.pod:3278
9574 #, no-wrap
9575 msgid ""
9576 " int guestfs_mke2journal_U (guestfs_h *g,\n"
9577 "\t\tint blocksize,\n"
9578 "\t\tconst char *uuid,\n"
9579 "\t\tconst char *device);\n"
9580 "\n"
9581 msgstr ""
9582
9583 # type: textblock
9584 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2543
9585 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9586 msgstr ""
9587
9588 # type: =head2
9589 #: ../src/guestfs-actions.pod:3287
9590 msgid "guestfs_mkfifo"
9591 msgstr ""
9592
9593 # type: verbatim
9594 #: ../src/guestfs-actions.pod:3289
9595 #, no-wrap
9596 msgid ""
9597 " int guestfs_mkfifo (guestfs_h *g,\n"
9598 "\t\tint mode,\n"
9599 "\t\tconst char *path);\n"
9600 "\n"
9601 msgstr ""
9602
9603 # type: textblock
9604 #: ../src/guestfs-actions.pod:3293
9605 msgid ""
9606 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9607 "is just a convenient wrapper around C<guestfs_mknod>."
9608 msgstr ""
9609
9610 # type: =head2
9611 #: ../src/guestfs-actions.pod:3301
9612 msgid "guestfs_mkfs"
9613 msgstr ""
9614
9615 # type: verbatim
9616 #: ../src/guestfs-actions.pod:3303
9617 #, no-wrap
9618 msgid ""
9619 " int guestfs_mkfs (guestfs_h *g,\n"
9620 "\t\tconst char *fstype,\n"
9621 "\t\tconst char *device);\n"
9622 "\n"
9623 msgstr ""
9624
9625 # type: textblock
9626 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2559
9627 msgid ""
9628 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9629 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9630 msgstr ""
9631
9632 # type: =head2
9633 #: ../src/guestfs-actions.pod:3313
9634 msgid "guestfs_mkfs_b"
9635 msgstr ""
9636
9637 # type: verbatim
9638 #: ../src/guestfs-actions.pod:3315
9639 #, no-wrap
9640 msgid ""
9641 " int guestfs_mkfs_b (guestfs_h *g,\n"
9642 "\t\tconst char *fstype,\n"
9643 "\t\tint blocksize,\n"
9644 "\t\tconst char *device);\n"
9645 "\n"
9646 msgstr ""
9647
9648 # type: textblock
9649 #: ../src/guestfs-actions.pod:3320
9650 msgid ""
9651 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9652 "block size of the resulting filesystem.  Supported block sizes depend on the "
9653 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9654 msgstr ""
9655
9656 # type: textblock
9657 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2572
9658 msgid ""
9659 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9660 "cluster size."
9661 msgstr ""
9662
9663 # type: =head2
9664 #: ../src/guestfs-actions.pod:3330
9665 msgid "guestfs_mkmountpoint"
9666 msgstr ""
9667
9668 # type: verbatim
9669 #: ../src/guestfs-actions.pod:3332
9670 #, no-wrap
9671 msgid ""
9672 " int guestfs_mkmountpoint (guestfs_h *g,\n"
9673 "\t\tconst char *exemptpath);\n"
9674 "\n"
9675 msgstr ""
9676
9677 # type: textblock
9678 #: ../src/guestfs-actions.pod:3335
9679 msgid ""
9680 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9681 "that can be used to create extra mountpoints before mounting the first "
9682 "filesystem."
9683 msgstr ""
9684
9685 # type: textblock
9686 #: ../src/guestfs-actions.pod:3339 ../fish/guestfish-actions.pod:2583
9687 msgid ""
9688 "These calls are I<only> necessary in some very limited circumstances, mainly "
9689 "the case where you want to mount a mix of unrelated and/or read-only "
9690 "filesystems together."
9691 msgstr ""
9692
9693 # type: textblock
9694 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2587
9695 msgid ""
9696 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
9697 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
9698 "inside that.  You can unpack this as follows in guestfish:"
9699 msgstr ""
9700
9701 # type: verbatim
9702 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2592
9703 #, no-wrap
9704 msgid ""
9705 " add-ro Fedora-11-i686-Live.iso\n"
9706 " run\n"
9707 " mkmountpoint /cd\n"
9708 " mkmountpoint /sqsh\n"
9709 " mkmountpoint /ext3fs\n"
9710 " mount /dev/sda /cd\n"
9711 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
9712 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
9713 "\n"
9714 msgstr ""
9715
9716 # type: textblock
9717 #: ../src/guestfs-actions.pod:3357 ../fish/guestfish-actions.pod:2601
9718 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
9719 msgstr ""
9720
9721 # type: textblock
9722 #: ../src/guestfs-actions.pod:3359
9723 msgid ""
9724 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
9725 "may get unexpected errors if you try to mix these calls.  It is safest to "
9726 "manually unmount filesystems and remove mountpoints after use."
9727 msgstr ""
9728
9729 # type: textblock
9730 #: ../src/guestfs-actions.pod:3363
9731 msgid ""
9732 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
9733 "first, so for this to work for manual mountpoints, you must ensure that the "
9734 "innermost mountpoints have the longest pathnames, as in the example code "
9735 "above."
9736 msgstr ""
9737
9738 # type: textblock
9739 #: ../src/guestfs-actions.pod:3368 ../fish/guestfish-actions.pod:2612
9740 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
9741 msgstr ""
9742
9743 # type: textblock
9744 #: ../src/guestfs-actions.pod:3370
9745 msgid ""
9746 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
9747 "means that C<guestfs_umount_all> is called when the handle is closed which "
9748 "can also trigger these issues."
9749 msgstr ""
9750
9751 # type: =head2
9752 #: ../src/guestfs-actions.pod:3376
9753 msgid "guestfs_mknod"
9754 msgstr ""
9755
9756 # type: verbatim
9757 #: ../src/guestfs-actions.pod:3378
9758 #, no-wrap
9759 msgid ""
9760 " int guestfs_mknod (guestfs_h *g,\n"
9761 "\t\tint mode,\n"
9762 "\t\tint devmajor,\n"
9763 "\t\tint devminor,\n"
9764 "\t\tconst char *path);\n"
9765 "\n"
9766 msgstr ""
9767
9768 # type: textblock
9769 #: ../src/guestfs-actions.pod:3384 ../fish/guestfish-actions.pod:2622
9770 msgid ""
9771 "This call creates block or character special devices, or named pipes "
9772 "(FIFOs)."
9773 msgstr ""
9774
9775 # type: textblock
9776 #: ../src/guestfs-actions.pod:3387 ../fish/guestfish-actions.pod:2625
9777 msgid ""
9778 "The C<mode> parameter should be the mode, using the standard constants.  "
9779 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
9780 "used when creating block and character special devices."
9781 msgstr ""
9782
9783 # type: textblock
9784 #: ../src/guestfs-actions.pod:3392
9785 msgid ""
9786 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
9787 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
9788 "regular file).  These constants are available in the standard Linux header "
9789 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
9790 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
9791 "the appropriate constant for you."
9792 msgstr ""
9793
9794 # type: =head2
9795 #: ../src/guestfs-actions.pod:3404
9796 msgid "guestfs_mknod_b"
9797 msgstr ""
9798
9799 # type: verbatim
9800 #: ../src/guestfs-actions.pod:3406
9801 #, no-wrap
9802 msgid ""
9803 " int guestfs_mknod_b (guestfs_h *g,\n"
9804 "\t\tint mode,\n"
9805 "\t\tint devmajor,\n"
9806 "\t\tint devminor,\n"
9807 "\t\tconst char *path);\n"
9808 "\n"
9809 msgstr ""
9810
9811 # type: textblock
9812 #: ../src/guestfs-actions.pod:3412
9813 msgid ""
9814 "This call creates a block device node called C<path> with mode C<mode> and "
9815 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9816 "wrapper around C<guestfs_mknod>."
9817 msgstr ""
9818
9819 # type: =head2
9820 #: ../src/guestfs-actions.pod:3420
9821 msgid "guestfs_mknod_c"
9822 msgstr ""
9823
9824 # type: verbatim
9825 #: ../src/guestfs-actions.pod:3422
9826 #, no-wrap
9827 msgid ""
9828 " int guestfs_mknod_c (guestfs_h *g,\n"
9829 "\t\tint mode,\n"
9830 "\t\tint devmajor,\n"
9831 "\t\tint devminor,\n"
9832 "\t\tconst char *path);\n"
9833 "\n"
9834 msgstr ""
9835
9836 # type: textblock
9837 #: ../src/guestfs-actions.pod:3428
9838 msgid ""
9839 "This call creates a char device node called C<path> with mode C<mode> and "
9840 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
9841 "wrapper around C<guestfs_mknod>."
9842 msgstr ""
9843
9844 # type: =head2
9845 #: ../src/guestfs-actions.pod:3436
9846 msgid "guestfs_mkswap"
9847 msgstr ""
9848
9849 # type: verbatim
9850 #: ../src/guestfs-actions.pod:3438
9851 #, no-wrap
9852 msgid ""
9853 " int guestfs_mkswap (guestfs_h *g,\n"
9854 "\t\tconst char *device);\n"
9855 "\n"
9856 msgstr ""
9857
9858 # type: textblock
9859 #: ../src/guestfs-actions.pod:3441 ../fish/guestfish-actions.pod:2664
9860 msgid "Create a swap partition on C<device>."
9861 msgstr ""
9862
9863 # type: =head2
9864 #: ../src/guestfs-actions.pod:3445
9865 msgid "guestfs_mkswap_L"
9866 msgstr ""
9867
9868 # type: verbatim
9869 #: ../src/guestfs-actions.pod:3447
9870 #, no-wrap
9871 msgid ""
9872 " int guestfs_mkswap_L (guestfs_h *g,\n"
9873 "\t\tconst char *label,\n"
9874 "\t\tconst char *device);\n"
9875 "\n"
9876 msgstr ""
9877
9878 # type: textblock
9879 #: ../src/guestfs-actions.pod:3451 ../fish/guestfish-actions.pod:2670
9880 msgid "Create a swap partition on C<device> with label C<label>."
9881 msgstr ""
9882
9883 # type: textblock
9884 #: ../src/guestfs-actions.pod:3453 ../fish/guestfish-actions.pod:2672
9885 msgid ""
9886 "Note that you cannot attach a swap label to a block device "
9887 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
9888 "the kernel or swap tools."
9889 msgstr ""
9890
9891 # type: =head2
9892 #: ../src/guestfs-actions.pod:3459
9893 msgid "guestfs_mkswap_U"
9894 msgstr ""
9895
9896 # type: verbatim
9897 #: ../src/guestfs-actions.pod:3461
9898 #, no-wrap
9899 msgid ""
9900 " int guestfs_mkswap_U (guestfs_h *g,\n"
9901 "\t\tconst char *uuid,\n"
9902 "\t\tconst char *device);\n"
9903 "\n"
9904 msgstr ""
9905
9906 # type: textblock
9907 #: ../src/guestfs-actions.pod:3465 ../fish/guestfish-actions.pod:2680
9908 msgid "Create a swap partition on C<device> with UUID C<uuid>."
9909 msgstr ""
9910
9911 # type: =head2
9912 #: ../src/guestfs-actions.pod:3469
9913 msgid "guestfs_mkswap_file"
9914 msgstr ""
9915
9916 # type: verbatim
9917 #: ../src/guestfs-actions.pod:3471
9918 #, no-wrap
9919 msgid ""
9920 " int guestfs_mkswap_file (guestfs_h *g,\n"
9921 "\t\tconst char *path);\n"
9922 "\n"
9923 msgstr ""
9924
9925 # type: textblock
9926 #: ../src/guestfs-actions.pod:3474 ../fish/guestfish-actions.pod:2686
9927 msgid "Create a swap file."
9928 msgstr ""
9929
9930 # type: textblock
9931 #: ../src/guestfs-actions.pod:3476
9932 msgid ""
9933 "This command just writes a swap file signature to an existing file.  To "
9934 "create the file itself, use something like C<guestfs_fallocate>."
9935 msgstr ""
9936
9937 # type: =head2
9938 #: ../src/guestfs-actions.pod:3481
9939 msgid "guestfs_modprobe"
9940 msgstr ""
9941
9942 # type: verbatim
9943 #: ../src/guestfs-actions.pod:3483
9944 #, no-wrap
9945 msgid ""
9946 " int guestfs_modprobe (guestfs_h *g,\n"
9947 "\t\tconst char *modulename);\n"
9948 "\n"
9949 msgstr ""
9950
9951 # type: textblock
9952 #: ../src/guestfs-actions.pod:3486 ../fish/guestfish-actions.pod:2695
9953 msgid "This loads a kernel module in the appliance."
9954 msgstr ""
9955
9956 # type: textblock
9957 #: ../src/guestfs-actions.pod:3488 ../fish/guestfish-actions.pod:2697
9958 msgid ""
9959 "The kernel module must have been whitelisted when libguestfs was built (see "
9960 "C<appliance/kmod.whitelist.in> in the source)."
9961 msgstr ""
9962
9963 # type: =head2
9964 #: ../src/guestfs-actions.pod:3493
9965 msgid "guestfs_mount"
9966 msgstr ""
9967
9968 # type: verbatim
9969 #: ../src/guestfs-actions.pod:3495
9970 #, no-wrap
9971 msgid ""
9972 " int guestfs_mount (guestfs_h *g,\n"
9973 "\t\tconst char *device,\n"
9974 "\t\tconst char *mountpoint);\n"
9975 "\n"
9976 msgstr ""
9977
9978 # type: textblock
9979 #: ../src/guestfs-actions.pod:3499 ../fish/guestfish-actions.pod:2704
9980 msgid ""
9981 "Mount a guest disk at a position in the filesystem.  Block devices are named "
9982 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
9983 "those block devices contain partitions, they will have the usual names "
9984 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
9985 msgstr ""
9986
9987 # type: textblock
9988 #: ../src/guestfs-actions.pod:3505 ../fish/guestfish-actions.pod:2710
9989 msgid ""
9990 "The rules are the same as for L<mount(2)>: A filesystem must first be "
9991 "mounted on C</> before others can be mounted.  Other filesystems can only be "
9992 "mounted on directories which already exist."
9993 msgstr ""
9994
9995 # type: textblock
9996 #: ../src/guestfs-actions.pod:3510 ../fish/guestfish-actions.pod:2715
9997 msgid ""
9998 "The mounted filesystem is writable, if we have sufficient permissions on the "
9999 "underlying device."
10000 msgstr ""
10001
10002 # type: textblock
10003 #: ../src/guestfs-actions.pod:3513
10004 msgid ""
10005 "B<Important note:> When you use this call, the filesystem options C<sync> "
10006 "and C<noatime> are set implicitly.  This was originally done because we "
10007 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10008 "very large negative performance impact and negligible effect on "
10009 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10010 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10011 "(use an empty string for the first parameter if you don't want any options)."
10012 msgstr ""
10013
10014 # type: =head2
10015 #: ../src/guestfs-actions.pod:3525
10016 msgid "guestfs_mount_loop"
10017 msgstr ""
10018
10019 # type: verbatim
10020 #: ../src/guestfs-actions.pod:3527
10021 #, no-wrap
10022 msgid ""
10023 " int guestfs_mount_loop (guestfs_h *g,\n"
10024 "\t\tconst char *file,\n"
10025 "\t\tconst char *mountpoint);\n"
10026 "\n"
10027 msgstr ""
10028
10029 # type: textblock
10030 #: ../src/guestfs-actions.pod:3531 ../fish/guestfish-actions.pod:2732
10031 msgid ""
10032 "This command lets you mount C<file> (a filesystem image in a file) on a "
10033 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10034 "mountpoint>."
10035 msgstr ""
10036
10037 # type: =head2
10038 #: ../src/guestfs-actions.pod:3537
10039 msgid "guestfs_mount_options"
10040 msgstr ""
10041
10042 # type: verbatim
10043 #: ../src/guestfs-actions.pod:3539
10044 #, no-wrap
10045 msgid ""
10046 " int guestfs_mount_options (guestfs_h *g,\n"
10047 "\t\tconst char *options,\n"
10048 "\t\tconst char *device,\n"
10049 "\t\tconst char *mountpoint);\n"
10050 "\n"
10051 msgstr ""
10052
10053 # type: textblock
10054 #: ../src/guestfs-actions.pod:3544
10055 msgid ""
10056 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10057 "the mount options as for the L<mount(8)> I<-o> flag."
10058 msgstr ""
10059
10060 # type: textblock
10061 #: ../src/guestfs-actions.pod:3548 ../fish/guestfish-actions.pod:2744
10062 msgid ""
10063 "If the C<options> parameter is an empty string, then no options are passed "
10064 "(all options default to whatever the filesystem uses)."
10065 msgstr ""
10066
10067 # type: =head2
10068 #: ../src/guestfs-actions.pod:3554
10069 msgid "guestfs_mount_ro"
10070 msgstr ""
10071
10072 # type: verbatim
10073 #: ../src/guestfs-actions.pod:3556
10074 #, no-wrap
10075 msgid ""
10076 " int guestfs_mount_ro (guestfs_h *g,\n"
10077 "\t\tconst char *device,\n"
10078 "\t\tconst char *mountpoint);\n"
10079 "\n"
10080 msgstr ""
10081
10082 # type: textblock
10083 #: ../src/guestfs-actions.pod:3560
10084 msgid ""
10085 "This is the same as the C<guestfs_mount> command, but it mounts the "
10086 "filesystem with the read-only (I<-o ro>) flag."
10087 msgstr ""
10088
10089 # type: =head2
10090 #: ../src/guestfs-actions.pod:3565
10091 msgid "guestfs_mount_vfs"
10092 msgstr ""
10093
10094 # type: verbatim
10095 #: ../src/guestfs-actions.pod:3567
10096 #, no-wrap
10097 msgid ""
10098 " int guestfs_mount_vfs (guestfs_h *g,\n"
10099 "\t\tconst char *options,\n"
10100 "\t\tconst char *vfstype,\n"
10101 "\t\tconst char *device,\n"
10102 "\t\tconst char *mountpoint);\n"
10103 "\n"
10104 msgstr ""
10105
10106 # type: textblock
10107 #: ../src/guestfs-actions.pod:3573
10108 msgid ""
10109 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10110 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
10111 "I<-t> flags."
10112 msgstr ""
10113
10114 # type: =head2
10115 #: ../src/guestfs-actions.pod:3579
10116 msgid "guestfs_mountpoints"
10117 msgstr ""
10118
10119 # type: verbatim
10120 #: ../src/guestfs-actions.pod:3581
10121 #, no-wrap
10122 msgid ""
10123 " char **guestfs_mountpoints (guestfs_h *g);\n"
10124 "\n"
10125 msgstr ""
10126
10127 # type: textblock
10128 #: ../src/guestfs-actions.pod:3583
10129 msgid ""
10130 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10131 "devices.  This one returns a hash table (map) of device name to directory "
10132 "where the device is mounted."
10133 msgstr ""
10134
10135 # type: =head2
10136 #: ../src/guestfs-actions.pod:3593
10137 msgid "guestfs_mounts"
10138 msgstr ""
10139
10140 # type: verbatim
10141 #: ../src/guestfs-actions.pod:3595
10142 #, no-wrap
10143 msgid ""
10144 " char **guestfs_mounts (guestfs_h *g);\n"
10145 "\n"
10146 msgstr ""
10147
10148 # type: textblock
10149 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2775
10150 msgid ""
10151 "This returns the list of currently mounted filesystems.  It returns the list "
10152 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10153 msgstr ""
10154
10155 # type: textblock
10156 #: ../src/guestfs-actions.pod:3600 ../fish/guestfish-actions.pod:2778
10157 msgid "Some internal mounts are not shown."
10158 msgstr ""
10159
10160 # type: textblock
10161 #: ../src/guestfs-actions.pod:3602
10162 msgid "See also: C<guestfs_mountpoints>"
10163 msgstr ""
10164
10165 # type: =head2
10166 #: ../src/guestfs-actions.pod:3608
10167 msgid "guestfs_mv"
10168 msgstr ""
10169
10170 # type: verbatim
10171 #: ../src/guestfs-actions.pod:3610
10172 #, no-wrap
10173 msgid ""
10174 " int guestfs_mv (guestfs_h *g,\n"
10175 "\t\tconst char *src,\n"
10176 "\t\tconst char *dest);\n"
10177 "\n"
10178 msgstr ""
10179
10180 # type: textblock
10181 #: ../src/guestfs-actions.pod:3614 ../fish/guestfish-actions.pod:2786
10182 msgid ""
10183 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10184 "destination filename or destination directory."
10185 msgstr ""
10186
10187 # type: =head2
10188 #: ../src/guestfs-actions.pod:3619
10189 msgid "guestfs_ntfs_3g_probe"
10190 msgstr ""
10191
10192 # type: verbatim
10193 #: ../src/guestfs-actions.pod:3621
10194 #, no-wrap
10195 msgid ""
10196 " int guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10197 "\t\tint rw,\n"
10198 "\t\tconst char *device);\n"
10199 "\n"
10200 msgstr ""
10201
10202 # type: textblock
10203 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2793
10204 msgid ""
10205 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10206 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10207 "read-write, and some cannot be mounted at all)."
10208 msgstr ""
10209
10210 # type: textblock
10211 #: ../src/guestfs-actions.pod:3629 ../fish/guestfish-actions.pod:2797
10212 msgid ""
10213 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10214 "can be mounted read-write.  Set it to false if you want to test if the "
10215 "volume can be mounted read-only."
10216 msgstr ""
10217
10218 # type: textblock
10219 #: ../src/guestfs-actions.pod:3633 ../fish/guestfish-actions.pod:2801
10220 msgid ""
10221 "The return value is an integer which C<0> if the operation would succeed, or "
10222 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10223 msgstr ""
10224
10225 # type: =head2
10226 #: ../src/guestfs-actions.pod:3639
10227 msgid "guestfs_ntfsresize"
10228 msgstr ""
10229
10230 # type: verbatim
10231 #: ../src/guestfs-actions.pod:3641
10232 #, no-wrap
10233 msgid ""
10234 " int guestfs_ntfsresize (guestfs_h *g,\n"
10235 "\t\tconst char *device);\n"
10236 "\n"
10237 msgstr ""
10238
10239 # type: textblock
10240 #: ../src/guestfs-actions.pod:3644 ../fish/guestfish-actions.pod:2809
10241 msgid ""
10242 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10243 "size of the underlying device.  See also L<ntfsresize(8)>."
10244 msgstr ""
10245
10246 # type: =head2
10247 #: ../src/guestfs-actions.pod:3650
10248 msgid "guestfs_ntfsresize_size"
10249 msgstr ""
10250
10251 # type: verbatim
10252 #: ../src/guestfs-actions.pod:3652
10253 #, no-wrap
10254 msgid ""
10255 " int guestfs_ntfsresize_size (guestfs_h *g,\n"
10256 "\t\tconst char *device,\n"
10257 "\t\tint64_t size);\n"
10258 "\n"
10259 msgstr ""
10260
10261 # type: textblock
10262 #: ../src/guestfs-actions.pod:3656
10263 msgid ""
10264 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10265 "to specify the new size (in bytes) explicitly."
10266 msgstr ""
10267
10268 # type: =head2
10269 #: ../src/guestfs-actions.pod:3661
10270 msgid "guestfs_part_add"
10271 msgstr ""
10272
10273 # type: verbatim
10274 #: ../src/guestfs-actions.pod:3663
10275 #, no-wrap
10276 msgid ""
10277 " int guestfs_part_add (guestfs_h *g,\n"
10278 "\t\tconst char *device,\n"
10279 "\t\tconst char *prlogex,\n"
10280 "\t\tint64_t startsect,\n"
10281 "\t\tint64_t endsect);\n"
10282 "\n"
10283 msgstr ""
10284
10285 # type: textblock
10286 #: ../src/guestfs-actions.pod:3669
10287 msgid ""
10288 "This command adds a partition to C<device>.  If there is no partition table "
10289 "on the device, call C<guestfs_part_init> first."
10290 msgstr ""
10291
10292 # type: textblock
10293 #: ../src/guestfs-actions.pod:3672 ../fish/guestfish-actions.pod:2827
10294 msgid ""
10295 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10296 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10297 "C<logical>) and C<e> (or C<extended>) partition types."
10298 msgstr ""
10299
10300 # type: textblock
10301 #: ../src/guestfs-actions.pod:3677 ../fish/guestfish-actions.pod:2832
10302 msgid ""
10303 "C<startsect> and C<endsect> are the start and end of the partition in "
10304 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10305 "from the end of the disk (C<-1> is the last sector)."
10306 msgstr ""
10307
10308 # type: textblock
10309 #: ../src/guestfs-actions.pod:3681
10310 msgid ""
10311 "Creating a partition which covers the whole disk is not so easy.  Use "
10312 "C<guestfs_part_disk> to do that."
10313 msgstr ""
10314
10315 # type: =head2
10316 #: ../src/guestfs-actions.pod:3686
10317 msgid "guestfs_part_del"
10318 msgstr ""
10319
10320 # type: verbatim
10321 #: ../src/guestfs-actions.pod:3688
10322 #, no-wrap
10323 msgid ""
10324 " int guestfs_part_del (guestfs_h *g,\n"
10325 "\t\tconst char *device,\n"
10326 "\t\tint partnum);\n"
10327 "\n"
10328 msgstr ""
10329
10330 # type: textblock
10331 #: ../src/guestfs-actions.pod:3692 ../fish/guestfish-actions.pod:2843
10332 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10333 msgstr ""
10334
10335 # type: textblock
10336 #: ../src/guestfs-actions.pod:3694 ../fish/guestfish-actions.pod:2845
10337 msgid ""
10338 "Note that in the case of MBR partitioning, deleting an extended partition "
10339 "also deletes any logical partitions it contains."
10340 msgstr ""
10341
10342 # type: =head2
10343 #: ../src/guestfs-actions.pod:3700
10344 msgid "guestfs_part_disk"
10345 msgstr ""
10346
10347 # type: verbatim
10348 #: ../src/guestfs-actions.pod:3702
10349 #, no-wrap
10350 msgid ""
10351 " int guestfs_part_disk (guestfs_h *g,\n"
10352 "\t\tconst char *device,\n"
10353 "\t\tconst char *parttype);\n"
10354 "\n"
10355 msgstr ""
10356
10357 # type: textblock
10358 #: ../src/guestfs-actions.pod:3706
10359 msgid ""
10360 "This command is simply a combination of C<guestfs_part_init> followed by "
10361 "C<guestfs_part_add> to create a single primary partition covering the whole "
10362 "disk."
10363 msgstr ""
10364
10365 # type: textblock
10366 #: ../src/guestfs-actions.pod:3710
10367 msgid ""
10368 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10369 "possible values are described in C<guestfs_part_init>."
10370 msgstr ""
10371
10372 # type: =head2
10373 #: ../src/guestfs-actions.pod:3718
10374 msgid "guestfs_part_get_bootable"
10375 msgstr ""
10376
10377 # type: verbatim
10378 #: ../src/guestfs-actions.pod:3720
10379 #, no-wrap
10380 msgid ""
10381 " int guestfs_part_get_bootable (guestfs_h *g,\n"
10382 "\t\tconst char *device,\n"
10383 "\t\tint partnum);\n"
10384 "\n"
10385 msgstr ""
10386
10387 # type: textblock
10388 #: ../src/guestfs-actions.pod:3724 ../fish/guestfish-actions.pod:2867
10389 msgid ""
10390 "This command returns true if the partition C<partnum> on C<device> has the "
10391 "bootable flag set."
10392 msgstr ""
10393
10394 # type: textblock
10395 #: ../src/guestfs-actions.pod:3727
10396 msgid "See also C<guestfs_part_set_bootable>."
10397 msgstr ""
10398
10399 # type: =head2
10400 #: ../src/guestfs-actions.pod:3731
10401 msgid "guestfs_part_get_mbr_id"
10402 msgstr ""
10403
10404 # type: verbatim
10405 #: ../src/guestfs-actions.pod:3733
10406 #, no-wrap
10407 msgid ""
10408 " int guestfs_part_get_mbr_id (guestfs_h *g,\n"
10409 "\t\tconst char *device,\n"
10410 "\t\tint partnum);\n"
10411 "\n"
10412 msgstr ""
10413
10414 # type: textblock
10415 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2876
10416 msgid ""
10417 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10418 "partition C<partnum>."
10419 msgstr ""
10420
10421 # type: textblock
10422 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3902
10423 msgid ""
10424 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10425 "undefined results for other partition table types (see "
10426 "C<guestfs_part_get_parttype>)."
10427 msgstr ""
10428
10429 # type: =head2
10430 #: ../src/guestfs-actions.pod:3746
10431 msgid "guestfs_part_get_parttype"
10432 msgstr ""
10433
10434 # type: verbatim
10435 #: ../src/guestfs-actions.pod:3748
10436 #, no-wrap
10437 msgid ""
10438 " char *guestfs_part_get_parttype (guestfs_h *g,\n"
10439 "\t\tconst char *device);\n"
10440 "\n"
10441 msgstr ""
10442
10443 # type: textblock
10444 #: ../src/guestfs-actions.pod:3751 ../fish/guestfish-actions.pod:2887
10445 msgid ""
10446 "This command examines the partition table on C<device> and returns the "
10447 "partition table type (format) being used."
10448 msgstr ""
10449
10450 # type: textblock
10451 #: ../src/guestfs-actions.pod:3754
10452 msgid ""
10453 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10454 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10455 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10456 msgstr ""
10457
10458 # type: =head2
10459 #: ../src/guestfs-actions.pod:3762
10460 msgid "guestfs_part_init"
10461 msgstr ""
10462
10463 # type: verbatim
10464 #: ../src/guestfs-actions.pod:3764
10465 #, no-wrap
10466 msgid ""
10467 " int guestfs_part_init (guestfs_h *g,\n"
10468 "\t\tconst char *device,\n"
10469 "\t\tconst char *parttype);\n"
10470 "\n"
10471 msgstr ""
10472
10473 # type: textblock
10474 #: ../src/guestfs-actions.pod:3768 ../fish/guestfish-actions.pod:2899
10475 msgid ""
10476 "This creates an empty partition table on C<device> of one of the partition "
10477 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10478 "(for large disks)."
10479 msgstr ""
10480
10481 # type: textblock
10482 #: ../src/guestfs-actions.pod:3772
10483 msgid ""
10484 "Initially there are no partitions.  Following this, you should call "
10485 "C<guestfs_part_add> for each partition required."
10486 msgstr ""
10487
10488 # type: textblock
10489 #: ../src/guestfs-actions.pod:3775 ../fish/guestfish-actions.pod:2906
10490 msgid "Possible values for C<parttype> are:"
10491 msgstr ""
10492
10493 # type: =item
10494 #: ../src/guestfs-actions.pod:3779 ../fish/guestfish-actions.pod:2910
10495 msgid "B<efi> | B<gpt>"
10496 msgstr ""
10497
10498 # type: textblock
10499 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2912
10500 msgid "Intel EFI / GPT partition table."
10501 msgstr ""
10502
10503 # type: textblock
10504 #: ../src/guestfs-actions.pod:3783 ../fish/guestfish-actions.pod:2914
10505 msgid ""
10506 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10507 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10508 "the C<mbr> format."
10509 msgstr ""
10510
10511 # type: =item
10512 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2918
10513 msgid "B<mbr> | B<msdos>"
10514 msgstr ""
10515
10516 # type: textblock
10517 #: ../src/guestfs-actions.pod:3789 ../fish/guestfish-actions.pod:2920
10518 msgid ""
10519 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10520 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10521 "TB.  For large disks we recommend using C<gpt>."
10522 msgstr ""
10523
10524 # type: textblock
10525 #: ../src/guestfs-actions.pod:3796 ../fish/guestfish-actions.pod:2927
10526 msgid "Other partition table types that may work but are not supported include:"
10527 msgstr ""
10528
10529 # type: =item
10530 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2932
10531 msgid "B<aix>"
10532 msgstr ""
10533
10534 # type: textblock
10535 #: ../src/guestfs-actions.pod:3803 ../fish/guestfish-actions.pod:2934
10536 msgid "AIX disk labels."
10537 msgstr ""
10538
10539 # type: =item
10540 #: ../src/guestfs-actions.pod:3805 ../fish/guestfish-actions.pod:2936
10541 msgid "B<amiga> | B<rdb>"
10542 msgstr ""
10543
10544 # type: textblock
10545 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2938
10546 msgid "Amiga \"Rigid Disk Block\" format."
10547 msgstr ""
10548
10549 # type: =item
10550 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2940
10551 msgid "B<bsd>"
10552 msgstr ""
10553
10554 # type: textblock
10555 #: ../src/guestfs-actions.pod:3811 ../fish/guestfish-actions.pod:2942
10556 msgid "BSD disk labels."
10557 msgstr ""
10558
10559 # type: =item
10560 #: ../src/guestfs-actions.pod:3813 ../fish/guestfish-actions.pod:2944
10561 msgid "B<dasd>"
10562 msgstr ""
10563
10564 # type: textblock
10565 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2946
10566 msgid "DASD, used on IBM mainframes."
10567 msgstr ""
10568
10569 # type: =item
10570 #: ../src/guestfs-actions.pod:3817 ../fish/guestfish-actions.pod:2948
10571 msgid "B<dvh>"
10572 msgstr ""
10573
10574 # type: textblock
10575 #: ../src/guestfs-actions.pod:3819 ../fish/guestfish-actions.pod:2950
10576 msgid "MIPS/SGI volumes."
10577 msgstr ""
10578
10579 # type: =item
10580 #: ../src/guestfs-actions.pod:3821 ../fish/guestfish-actions.pod:2952
10581 msgid "B<mac>"
10582 msgstr ""
10583
10584 # type: textblock
10585 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2954
10586 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10587 msgstr ""
10588
10589 # type: =item
10590 #: ../src/guestfs-actions.pod:3825 ../fish/guestfish-actions.pod:2956
10591 msgid "B<pc98>"
10592 msgstr ""
10593
10594 # type: textblock
10595 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2958
10596 msgid "NEC PC-98 format, common in Japan apparently."
10597 msgstr ""
10598
10599 # type: =item
10600 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2960
10601 msgid "B<sun>"
10602 msgstr ""
10603
10604 # type: textblock
10605 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2962
10606 msgid "Sun disk labels."
10607 msgstr ""
10608
10609 # type: =head2
10610 #: ../src/guestfs-actions.pod:3837
10611 msgid "guestfs_part_list"
10612 msgstr ""
10613
10614 # type: verbatim
10615 #: ../src/guestfs-actions.pod:3839
10616 #, no-wrap
10617 msgid ""
10618 " struct guestfs_partition_list *guestfs_part_list (guestfs_h *g,\n"
10619 "\t\tconst char *device);\n"
10620 "\n"
10621 msgstr ""
10622
10623 # type: textblock
10624 #: ../src/guestfs-actions.pod:3842 ../fish/guestfish-actions.pod:2970
10625 msgid ""
10626 "This command parses the partition table on C<device> and returns the list of "
10627 "partitions found."
10628 msgstr ""
10629
10630 # type: textblock
10631 #: ../src/guestfs-actions.pod:3845 ../fish/guestfish-actions.pod:2973
10632 msgid "The fields in the returned structure are:"
10633 msgstr ""
10634
10635 # type: =item
10636 #: ../src/guestfs-actions.pod:3849 ../fish/guestfish-actions.pod:2977
10637 msgid "B<part_num>"
10638 msgstr ""
10639
10640 # type: textblock
10641 #: ../src/guestfs-actions.pod:3851 ../fish/guestfish-actions.pod:2979
10642 msgid "Partition number, counting from 1."
10643 msgstr ""
10644
10645 # type: =item
10646 #: ../src/guestfs-actions.pod:3853 ../fish/guestfish-actions.pod:2981
10647 msgid "B<part_start>"
10648 msgstr ""
10649
10650 # type: textblock
10651 #: ../src/guestfs-actions.pod:3855
10652 msgid ""
10653 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10654 "the device's sector size, see C<guestfs_blockdev_getss>."
10655 msgstr ""
10656
10657 # type: =item
10658 #: ../src/guestfs-actions.pod:3858 ../fish/guestfish-actions.pod:2986
10659 msgid "B<part_end>"
10660 msgstr ""
10661
10662 # type: textblock
10663 #: ../src/guestfs-actions.pod:3860 ../fish/guestfish-actions.pod:2988
10664 msgid "End of the partition in bytes."
10665 msgstr ""
10666
10667 # type: =item
10668 #: ../src/guestfs-actions.pod:3862 ../fish/guestfish-actions.pod:2990
10669 msgid "B<part_size>"
10670 msgstr ""
10671
10672 # type: textblock
10673 #: ../src/guestfs-actions.pod:3864 ../fish/guestfish-actions.pod:2992
10674 msgid "Size of the partition in bytes."
10675 msgstr ""
10676
10677 # type: textblock
10678 #: ../src/guestfs-actions.pod:3868
10679 msgid ""
10680 "This function returns a C<struct guestfs_partition_list *> (see "
10681 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
10682 "must call C<guestfs_free_partition_list> after use>."
10683 msgstr ""
10684
10685 # type: =head2
10686 #: ../src/guestfs-actions.pod:3873
10687 msgid "guestfs_part_set_bootable"
10688 msgstr ""
10689
10690 # type: verbatim
10691 #: ../src/guestfs-actions.pod:3875
10692 #, no-wrap
10693 msgid ""
10694 " int guestfs_part_set_bootable (guestfs_h *g,\n"
10695 "\t\tconst char *device,\n"
10696 "\t\tint partnum,\n"
10697 "\t\tint bootable);\n"
10698 "\n"
10699 msgstr ""
10700
10701 # type: textblock
10702 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:3000
10703 msgid ""
10704 "This sets the bootable flag on partition numbered C<partnum> on device "
10705 "C<device>.  Note that partitions are numbered from 1."
10706 msgstr ""
10707
10708 # type: textblock
10709 #: ../src/guestfs-actions.pod:3883 ../fish/guestfish-actions.pod:3003
10710 msgid ""
10711 "The bootable flag is used by some operating systems (notably Windows) to "
10712 "determine which partition to boot from.  It is by no means universally "
10713 "recognized."
10714 msgstr ""
10715
10716 # type: =head2
10717 #: ../src/guestfs-actions.pod:3889
10718 msgid "guestfs_part_set_mbr_id"
10719 msgstr ""
10720
10721 # type: verbatim
10722 #: ../src/guestfs-actions.pod:3891
10723 #, no-wrap
10724 msgid ""
10725 " int guestfs_part_set_mbr_id (guestfs_h *g,\n"
10726 "\t\tconst char *device,\n"
10727 "\t\tint partnum,\n"
10728 "\t\tint idbyte);\n"
10729 "\n"
10730 msgstr ""
10731
10732 # type: textblock
10733 #: ../src/guestfs-actions.pod:3896 ../fish/guestfish-actions.pod:3011
10734 msgid ""
10735 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
10736 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
10737 "documentation are in fact hexadecimal numbers, but usually documented "
10738 "without any leading \"0x\" which might be confusing."
10739 msgstr ""
10740
10741 # type: =head2
10742 #: ../src/guestfs-actions.pod:3908
10743 msgid "guestfs_part_set_name"
10744 msgstr ""
10745
10746 # type: verbatim
10747 #: ../src/guestfs-actions.pod:3910
10748 #, no-wrap
10749 msgid ""
10750 " int guestfs_part_set_name (guestfs_h *g,\n"
10751 "\t\tconst char *device,\n"
10752 "\t\tint partnum,\n"
10753 "\t\tconst char *name);\n"
10754 "\n"
10755 msgstr ""
10756
10757 # type: textblock
10758 #: ../src/guestfs-actions.pod:3915 ../fish/guestfish-actions.pod:3025
10759 msgid ""
10760 "This sets the partition name on partition numbered C<partnum> on device "
10761 "C<device>.  Note that partitions are numbered from 1."
10762 msgstr ""
10763
10764 # type: textblock
10765 #: ../src/guestfs-actions.pod:3918 ../fish/guestfish-actions.pod:3028
10766 msgid ""
10767 "The partition name can only be set on certain types of partition table.  "
10768 "This works on C<gpt> but not on C<mbr> partitions."
10769 msgstr ""
10770
10771 # type: =head2
10772 #: ../src/guestfs-actions.pod:3923
10773 msgid "guestfs_part_to_dev"
10774 msgstr ""
10775
10776 # type: verbatim
10777 #: ../src/guestfs-actions.pod:3925
10778 #, no-wrap
10779 msgid ""
10780 " char *guestfs_part_to_dev (guestfs_h *g,\n"
10781 "\t\tconst char *partition);\n"
10782 "\n"
10783 msgstr ""
10784
10785 # type: textblock
10786 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:3035
10787 msgid ""
10788 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
10789 "partition number, returning the device name (eg. \"/dev/sdb\")."
10790 msgstr ""
10791
10792 # type: textblock
10793 #: ../src/guestfs-actions.pod:3932
10794 msgid ""
10795 "The named partition must exist, for example as a string returned from "
10796 "C<guestfs_list_partitions>."
10797 msgstr ""
10798
10799 # type: =head2
10800 #: ../src/guestfs-actions.pod:3938
10801 msgid "guestfs_ping_daemon"
10802 msgstr ""
10803
10804 # type: verbatim
10805 #: ../src/guestfs-actions.pod:3940
10806 #, no-wrap
10807 msgid ""
10808 " int guestfs_ping_daemon (guestfs_h *g);\n"
10809 "\n"
10810 msgstr ""
10811
10812 # type: textblock
10813 #: ../src/guestfs-actions.pod:3942 ../fish/guestfish-actions.pod:3046
10814 msgid ""
10815 "This is a test probe into the guestfs daemon running inside the qemu "
10816 "subprocess.  Calling this function checks that the daemon responds to the "
10817 "ping message, without affecting the daemon or attached block device(s) in "
10818 "any other way."
10819 msgstr ""
10820
10821 # type: =head2
10822 #: ../src/guestfs-actions.pod:3949
10823 msgid "guestfs_pread"
10824 msgstr ""
10825
10826 # type: verbatim
10827 #: ../src/guestfs-actions.pod:3951
10828 #, no-wrap
10829 msgid ""
10830 " char *guestfs_pread (guestfs_h *g,\n"
10831 "\t\tconst char *path,\n"
10832 "\t\tint count,\n"
10833 "\t\tint64_t offset,\n"
10834 "\t\tsize_t *size_r);\n"
10835 "\n"
10836 msgstr ""
10837
10838 # type: textblock
10839 #: ../src/guestfs-actions.pod:3957 ../fish/guestfish-actions.pod:3055
10840 msgid ""
10841 "This command lets you read part of a file.  It reads C<count> bytes of the "
10842 "file, starting at C<offset>, from file C<path>."
10843 msgstr ""
10844
10845 # type: textblock
10846 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:3983 ../fish/guestfish-actions.pod:3058 ../fish/guestfish-actions.pod:3073
10847 msgid ""
10848 "This may read fewer bytes than requested.  For further details see the "
10849 "L<pread(2)> system call."
10850 msgstr ""
10851
10852 # type: textblock
10853 #: ../src/guestfs-actions.pod:3963
10854 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
10855 msgstr ""
10856
10857 # type: =head2
10858 #: ../src/guestfs-actions.pod:3972
10859 msgid "guestfs_pread_device"
10860 msgstr ""
10861
10862 # type: verbatim
10863 #: ../src/guestfs-actions.pod:3974
10864 #, no-wrap
10865 msgid ""
10866 " char *guestfs_pread_device (guestfs_h *g,\n"
10867 "\t\tconst char *device,\n"
10868 "\t\tint count,\n"
10869 "\t\tint64_t offset,\n"
10870 "\t\tsize_t *size_r);\n"
10871 "\n"
10872 msgstr ""
10873
10874 # type: textblock
10875 #: ../src/guestfs-actions.pod:3980 ../fish/guestfish-actions.pod:3070
10876 msgid ""
10877 "This command lets you read part of a file.  It reads C<count> bytes of "
10878 "C<device>, starting at C<offset>."
10879 msgstr ""
10880
10881 # type: textblock
10882 #: ../src/guestfs-actions.pod:3986
10883 msgid "See also C<guestfs_pread>."
10884 msgstr ""
10885
10886 # type: =head2
10887 #: ../src/guestfs-actions.pod:3995
10888 msgid "guestfs_pvcreate"
10889 msgstr ""
10890
10891 # type: verbatim
10892 #: ../src/guestfs-actions.pod:3997
10893 #, no-wrap
10894 msgid ""
10895 " int guestfs_pvcreate (guestfs_h *g,\n"
10896 "\t\tconst char *device);\n"
10897 "\n"
10898 msgstr ""
10899
10900 # type: textblock
10901 #: ../src/guestfs-actions.pod:4000 ../fish/guestfish-actions.pod:3085
10902 msgid ""
10903 "This creates an LVM physical volume on the named C<device>, where C<device> "
10904 "should usually be a partition name such as C</dev/sda1>."
10905 msgstr ""
10906
10907 # type: =head2
10908 #: ../src/guestfs-actions.pod:4006
10909 msgid "guestfs_pvremove"
10910 msgstr ""
10911
10912 # type: verbatim
10913 #: ../src/guestfs-actions.pod:4008
10914 #, no-wrap
10915 msgid ""
10916 " int guestfs_pvremove (guestfs_h *g,\n"
10917 "\t\tconst char *device);\n"
10918 "\n"
10919 msgstr ""
10920
10921 # type: textblock
10922 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:3093
10923 msgid ""
10924 "This wipes a physical volume C<device> so that LVM will no longer recognise "
10925 "it."
10926 msgstr ""
10927
10928 # type: textblock
10929 #: ../src/guestfs-actions.pod:4014 ../fish/guestfish-actions.pod:3096
10930 msgid ""
10931 "The implementation uses the C<pvremove> command which refuses to wipe "
10932 "physical volumes that contain any volume groups, so you have to remove those "
10933 "first."
10934 msgstr ""
10935
10936 # type: =head2
10937 #: ../src/guestfs-actions.pod:4020
10938 msgid "guestfs_pvresize"
10939 msgstr ""
10940
10941 # type: verbatim
10942 #: ../src/guestfs-actions.pod:4022
10943 #, no-wrap
10944 msgid ""
10945 " int guestfs_pvresize (guestfs_h *g,\n"
10946 "\t\tconst char *device);\n"
10947 "\n"
10948 msgstr ""
10949
10950 # type: textblock
10951 #: ../src/guestfs-actions.pod:4025 ../fish/guestfish-actions.pod:3104
10952 msgid ""
10953 "This resizes (expands or shrinks) an existing LVM physical volume to match "
10954 "the new size of the underlying device."
10955 msgstr ""
10956
10957 # type: =head2
10958 #: ../src/guestfs-actions.pod:4030
10959 msgid "guestfs_pvresize_size"
10960 msgstr ""
10961
10962 # type: verbatim
10963 #: ../src/guestfs-actions.pod:4032
10964 #, no-wrap
10965 msgid ""
10966 " int guestfs_pvresize_size (guestfs_h *g,\n"
10967 "\t\tconst char *device,\n"
10968 "\t\tint64_t size);\n"
10969 "\n"
10970 msgstr ""
10971
10972 # type: textblock
10973 #: ../src/guestfs-actions.pod:4036
10974 msgid ""
10975 "This command is the same as C<guestfs_pvresize> except that it allows you to "
10976 "specify the new size (in bytes) explicitly."
10977 msgstr ""
10978
10979 # type: =head2
10980 #: ../src/guestfs-actions.pod:4041
10981 msgid "guestfs_pvs"
10982 msgstr ""
10983
10984 # type: verbatim
10985 #: ../src/guestfs-actions.pod:4043
10986 #, no-wrap
10987 msgid ""
10988 " char **guestfs_pvs (guestfs_h *g);\n"
10989 "\n"
10990 msgstr ""
10991
10992 # type: textblock
10993 #: ../src/guestfs-actions.pod:4045 ../fish/guestfish-actions.pod:3118
10994 msgid ""
10995 "List all the physical volumes detected.  This is the equivalent of the "
10996 "L<pvs(8)> command."
10997 msgstr ""
10998
10999 # type: textblock
11000 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:3121
11001 msgid ""
11002 "This returns a list of just the device names that contain PVs "
11003 "(eg. C</dev/sda2>)."
11004 msgstr ""
11005
11006 # type: textblock
11007 #: ../src/guestfs-actions.pod:4051
11008 msgid "See also C<guestfs_pvs_full>."
11009 msgstr ""
11010
11011 # type: =head2
11012 #: ../src/guestfs-actions.pod:4057
11013 msgid "guestfs_pvs_full"
11014 msgstr ""
11015
11016 # type: verbatim
11017 #: ../src/guestfs-actions.pod:4059
11018 #, no-wrap
11019 msgid ""
11020 " struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *g);\n"
11021 "\n"
11022 msgstr ""
11023
11024 # type: textblock
11025 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:3130
11026 msgid ""
11027 "List all the physical volumes detected.  This is the equivalent of the "
11028 "L<pvs(8)> command.  The \"full\" version includes all fields."
11029 msgstr ""
11030
11031 # type: textblock
11032 #: ../src/guestfs-actions.pod:4064
11033 msgid ""
11034 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
11035 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11036 "must call C<guestfs_free_lvm_pv_list> after use>."
11037 msgstr ""
11038
11039 # type: =head2
11040 #: ../src/guestfs-actions.pod:4069
11041 msgid "guestfs_pvuuid"
11042 msgstr ""
11043
11044 # type: verbatim
11045 #: ../src/guestfs-actions.pod:4071
11046 #, no-wrap
11047 msgid ""
11048 " char *guestfs_pvuuid (guestfs_h *g,\n"
11049 "\t\tconst char *device);\n"
11050 "\n"
11051 msgstr ""
11052
11053 # type: textblock
11054 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:3137
11055 msgid "This command returns the UUID of the LVM PV C<device>."
11056 msgstr ""
11057
11058 # type: =head2
11059 #: ../src/guestfs-actions.pod:4079
11060 msgid "guestfs_pwrite"
11061 msgstr ""
11062
11063 # type: verbatim
11064 #: ../src/guestfs-actions.pod:4081
11065 #, no-wrap
11066 msgid ""
11067 " int guestfs_pwrite (guestfs_h *g,\n"
11068 "\t\tconst char *path,\n"
11069 "\t\tconst char *content,\n"
11070 "\t\tsize_t content_size,\n"
11071 "\t\tint64_t offset);\n"
11072 "\n"
11073 msgstr ""
11074
11075 # type: textblock
11076 #: ../src/guestfs-actions.pod:4087 ../fish/guestfish-actions.pod:3143
11077 msgid ""
11078 "This command writes to part of a file.  It writes the data buffer C<content> "
11079 "to the file C<path> starting at offset C<offset>."
11080 msgstr ""
11081
11082 # type: textblock
11083 #: ../src/guestfs-actions.pod:4090 ../fish/guestfish-actions.pod:3146
11084 msgid ""
11085 "This command implements the L<pwrite(2)> system call, and like that system "
11086 "call it may not write the full data requested.  The return value is the "
11087 "number of bytes that were actually written to the file.  This could even be "
11088 "0, although short writes are unlikely for regular files in ordinary "
11089 "circumstances."
11090 msgstr ""
11091
11092 # type: textblock
11093 #: ../src/guestfs-actions.pod:4096
11094 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11095 msgstr ""
11096
11097 # type: =head2
11098 #: ../src/guestfs-actions.pod:4103
11099 msgid "guestfs_pwrite_device"
11100 msgstr ""
11101
11102 # type: verbatim
11103 #: ../src/guestfs-actions.pod:4105
11104 #, no-wrap
11105 msgid ""
11106 " int guestfs_pwrite_device (guestfs_h *g,\n"
11107 "\t\tconst char *device,\n"
11108 "\t\tconst char *content,\n"
11109 "\t\tsize_t content_size,\n"
11110 "\t\tint64_t offset);\n"
11111 "\n"
11112 msgstr ""
11113
11114 # type: textblock
11115 #: ../src/guestfs-actions.pod:4111 ../fish/guestfish-actions.pod:3161
11116 msgid ""
11117 "This command writes to part of a device.  It writes the data buffer "
11118 "C<content> to C<device> starting at offset C<offset>."
11119 msgstr ""
11120
11121 # type: textblock
11122 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:3164
11123 msgid ""
11124 "This command implements the L<pwrite(2)> system call, and like that system "
11125 "call it may not write the full data requested (although short writes to disk "
11126 "devices and partitions are probably impossible with standard Linux kernels)."
11127 msgstr ""
11128
11129 # type: textblock
11130 #: ../src/guestfs-actions.pod:4119
11131 msgid "See also C<guestfs_pwrite>."
11132 msgstr ""
11133
11134 # type: =head2
11135 #: ../src/guestfs-actions.pod:4126
11136 msgid "guestfs_read_file"
11137 msgstr ""
11138
11139 # type: verbatim
11140 #: ../src/guestfs-actions.pod:4128
11141 #, no-wrap
11142 msgid ""
11143 " char *guestfs_read_file (guestfs_h *g,\n"
11144 "\t\tconst char *path,\n"
11145 "\t\tsize_t *size_r);\n"
11146 "\n"
11147 msgstr ""
11148
11149 # type: textblock
11150 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:3178
11151 msgid "This calls returns the contents of the file C<path> as a buffer."
11152 msgstr ""
11153
11154 # type: textblock
11155 #: ../src/guestfs-actions.pod:4135
11156 msgid ""
11157 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11158 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11159 "function is limited in the total size of file that can be handled."
11160 msgstr ""
11161
11162 # type: =head2
11163 #: ../src/guestfs-actions.pod:4147
11164 msgid "guestfs_read_lines"
11165 msgstr ""
11166
11167 # type: verbatim
11168 #: ../src/guestfs-actions.pod:4149
11169 #, no-wrap
11170 msgid ""
11171 " char **guestfs_read_lines (guestfs_h *g,\n"
11172 "\t\tconst char *path);\n"
11173 "\n"
11174 msgstr ""
11175
11176 # type: textblock
11177 #: ../src/guestfs-actions.pod:4154 ../fish/guestfish-actions.pod:3195
11178 msgid ""
11179 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11180 "C<CRLF> character sequences are I<not> returned."
11181 msgstr ""
11182
11183 # type: textblock
11184 #: ../src/guestfs-actions.pod:4157
11185 msgid ""
11186 "Note that this function cannot correctly handle binary files (specifically, "
11187 "files containing C<\\0> character which is treated as end of line).  For "
11188 "those you need to use the C<guestfs_read_file> function which has a more "
11189 "complex interface."
11190 msgstr ""
11191
11192 # type: =head2
11193 #: ../src/guestfs-actions.pod:4166
11194 msgid "guestfs_readdir"
11195 msgstr ""
11196
11197 # type: verbatim
11198 #: ../src/guestfs-actions.pod:4168
11199 #, no-wrap
11200 msgid ""
11201 " struct guestfs_dirent_list *guestfs_readdir (guestfs_h *g,\n"
11202 "\t\tconst char *dir);\n"
11203 "\n"
11204 msgstr ""
11205
11206 # type: textblock
11207 #: ../src/guestfs-actions.pod:4171 ../fish/guestfish-actions.pod:3207
11208 msgid "This returns the list of directory entries in directory C<dir>."
11209 msgstr ""
11210
11211 # type: textblock
11212 #: ../src/guestfs-actions.pod:4173 ../fish/guestfish-actions.pod:3209
11213 msgid ""
11214 "All entries in the directory are returned, including C<.> and C<..>.  The "
11215 "entries are I<not> sorted, but returned in the same order as the underlying "
11216 "filesystem."
11217 msgstr ""
11218
11219 # type: textblock
11220 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:3213
11221 msgid ""
11222 "Also this call returns basic file type information about each file.  The "
11223 "C<ftyp> field will contain one of the following characters:"
11224 msgstr ""
11225
11226 # type: =item
11227 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:3218
11228 msgid "'b'"
11229 msgstr ""
11230
11231 # type: textblock
11232 #: ../src/guestfs-actions.pod:4184 ../fish/guestfish-actions.pod:3220
11233 msgid "Block special"
11234 msgstr ""
11235
11236 # type: =item
11237 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:3222
11238 msgid "'c'"
11239 msgstr ""
11240
11241 # type: textblock
11242 #: ../src/guestfs-actions.pod:4188 ../fish/guestfish-actions.pod:3224
11243 msgid "Char special"
11244 msgstr ""
11245
11246 # type: =item
11247 #: ../src/guestfs-actions.pod:4190 ../fish/guestfish-actions.pod:3226
11248 msgid "'d'"
11249 msgstr ""
11250
11251 # type: textblock
11252 #: ../src/guestfs-actions.pod:4192 ../fish/guestfish-actions.pod:3228
11253 msgid "Directory"
11254 msgstr ""
11255
11256 # type: =item
11257 #: ../src/guestfs-actions.pod:4194 ../fish/guestfish-actions.pod:3230
11258 msgid "'f'"
11259 msgstr ""
11260
11261 # type: textblock
11262 #: ../src/guestfs-actions.pod:4196 ../fish/guestfish-actions.pod:3232
11263 msgid "FIFO (named pipe)"
11264 msgstr ""
11265
11266 # type: =item
11267 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:3234
11268 msgid "'l'"
11269 msgstr ""
11270
11271 # type: textblock
11272 #: ../src/guestfs-actions.pod:4200 ../fish/guestfish-actions.pod:3236
11273 msgid "Symbolic link"
11274 msgstr ""
11275
11276 # type: =item
11277 #: ../src/guestfs-actions.pod:4202 ../fish/guestfish-actions.pod:3238
11278 msgid "'r'"
11279 msgstr ""
11280
11281 # type: textblock
11282 #: ../src/guestfs-actions.pod:4204 ../fish/guestfish-actions.pod:3240
11283 msgid "Regular file"
11284 msgstr ""
11285
11286 # type: =item
11287 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:3242
11288 msgid "'s'"
11289 msgstr ""
11290
11291 # type: textblock
11292 #: ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:3244
11293 msgid "Socket"
11294 msgstr ""
11295
11296 # type: =item
11297 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:3246
11298 msgid "'u'"
11299 msgstr ""
11300
11301 # type: textblock
11302 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:3248
11303 msgid "Unknown file type"
11304 msgstr ""
11305
11306 # type: =item
11307 #: ../src/guestfs-actions.pod:4214 ../fish/guestfish-actions.pod:3250
11308 msgid "'?'"
11309 msgstr ""
11310
11311 # type: textblock
11312 #: ../src/guestfs-actions.pod:4216 ../fish/guestfish-actions.pod:3252
11313 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11314 msgstr ""
11315
11316 # type: textblock
11317 #: ../src/guestfs-actions.pod:4221
11318 msgid ""
11319 "This function is primarily intended for use by programs.  To get a simple "
11320 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11321 "consumption, use C<guestfs_ll>."
11322 msgstr ""
11323
11324 # type: textblock
11325 #: ../src/guestfs-actions.pod:4225
11326 msgid ""
11327 "This function returns a C<struct guestfs_dirent_list *> (see "
11328 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11329 "must call C<guestfs_free_dirent_list> after use>."
11330 msgstr ""
11331
11332 # type: =head2
11333 #: ../src/guestfs-actions.pod:4230
11334 msgid "guestfs_readlink"
11335 msgstr ""
11336
11337 # type: verbatim
11338 #: ../src/guestfs-actions.pod:4232
11339 #, no-wrap
11340 msgid ""
11341 " char *guestfs_readlink (guestfs_h *g,\n"
11342 "\t\tconst char *path);\n"
11343 "\n"
11344 msgstr ""
11345
11346 # type: textblock
11347 #: ../src/guestfs-actions.pod:4235 ../fish/guestfish-actions.pod:3265
11348 msgid "This command reads the target of a symbolic link."
11349 msgstr ""
11350
11351 # type: =head2
11352 #: ../src/guestfs-actions.pod:4240
11353 msgid "guestfs_readlinklist"
11354 msgstr ""
11355
11356 # type: verbatim
11357 #: ../src/guestfs-actions.pod:4242
11358 #, no-wrap
11359 msgid ""
11360 " char **guestfs_readlinklist (guestfs_h *g,\n"
11361 "\t\tconst char *path,\n"
11362 "\t\tchar *const *names);\n"
11363 "\n"
11364 msgstr ""
11365
11366 # type: textblock
11367 #: ../src/guestfs-actions.pod:4246 ../fish/guestfish-actions.pod:3271
11368 msgid ""
11369 "This call allows you to do a C<readlink> operation on multiple files, where "
11370 "all files are in the directory C<path>.  C<names> is the list of files from "
11371 "this directory."
11372 msgstr ""
11373
11374 # type: textblock
11375 #: ../src/guestfs-actions.pod:4250 ../fish/guestfish-actions.pod:3275
11376 msgid ""
11377 "On return you get a list of strings, with a one-to-one correspondence to the "
11378 "C<names> list.  Each string is the value of the symbolic link."
11379 msgstr ""
11380
11381 # type: textblock
11382 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:3279
11383 msgid ""
11384 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11385 "result string is the empty string C<\"\">.  However the whole operation is "
11386 "completed even if there were C<readlink(2)> errors, and so you can call this "
11387 "function with names where you don't know if they are symbolic links already "
11388 "(albeit slightly less efficient)."
11389 msgstr ""
11390
11391 # type: textblock
11392 #: ../src/guestfs-actions.pod:4261 ../fish/guestfish-actions.pod:3286
11393 msgid ""
11394 "This call is intended for programs that want to efficiently list a directory "
11395 "contents without making many round-trips.  Very long directory listings "
11396 "might cause the protocol message size to be exceeded, causing this call to "
11397 "fail.  The caller must split up such requests into smaller groups of names."
11398 msgstr ""
11399
11400 # type: =head2
11401 #: ../src/guestfs-actions.pod:4272
11402 msgid "guestfs_realpath"
11403 msgstr ""
11404
11405 # type: verbatim
11406 #: ../src/guestfs-actions.pod:4274
11407 #, no-wrap
11408 msgid ""
11409 " char *guestfs_realpath (guestfs_h *g,\n"
11410 "\t\tconst char *path);\n"
11411 "\n"
11412 msgstr ""
11413
11414 # type: textblock
11415 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:3297
11416 msgid ""
11417 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11418 "has no C<.>, C<..> or symbolic link path elements."
11419 msgstr ""
11420
11421 # type: =head2
11422 #: ../src/guestfs-actions.pod:4283
11423 msgid "guestfs_removexattr"
11424 msgstr ""
11425
11426 # type: verbatim
11427 #: ../src/guestfs-actions.pod:4285
11428 #, no-wrap
11429 msgid ""
11430 " int guestfs_removexattr (guestfs_h *g,\n"
11431 "\t\tconst char *xattr,\n"
11432 "\t\tconst char *path);\n"
11433 "\n"
11434 msgstr ""
11435
11436 # type: textblock
11437 #: ../src/guestfs-actions.pod:4289 ../fish/guestfish-actions.pod:3304
11438 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
11439 msgstr ""
11440
11441 # type: textblock
11442 #: ../src/guestfs-actions.pod:4292
11443 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11444 msgstr ""
11445
11446 # type: =head2
11447 #: ../src/guestfs-actions.pod:4296
11448 msgid "guestfs_resize2fs"
11449 msgstr ""
11450
11451 # type: verbatim
11452 #: ../src/guestfs-actions.pod:4298
11453 #, no-wrap
11454 msgid ""
11455 " int guestfs_resize2fs (guestfs_h *g,\n"
11456 "\t\tconst char *device);\n"
11457 "\n"
11458 msgstr ""
11459
11460 # type: textblock
11461 #: ../src/guestfs-actions.pod:4301 ../fish/guestfish-actions.pod:3313
11462 msgid ""
11463 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11464 "underlying device."
11465 msgstr ""
11466
11467 # type: textblock
11468 #: ../src/guestfs-actions.pod:4304
11469 msgid ""
11470 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11471 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11472 "sometimes gives an error about this and sometimes not.  In any case, it is "
11473 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11474 msgstr ""
11475
11476 # type: =head2
11477 #: ../src/guestfs-actions.pod:4312
11478 msgid "guestfs_resize2fs_size"
11479 msgstr ""
11480
11481 # type: verbatim
11482 #: ../src/guestfs-actions.pod:4314
11483 #, no-wrap
11484 msgid ""
11485 " int guestfs_resize2fs_size (guestfs_h *g,\n"
11486 "\t\tconst char *device,\n"
11487 "\t\tint64_t size);\n"
11488 "\n"
11489 msgstr ""
11490
11491 # type: textblock
11492 #: ../src/guestfs-actions.pod:4318
11493 msgid ""
11494 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11495 "to specify the new size (in bytes) explicitly."
11496 msgstr ""
11497
11498 # type: =head2
11499 #: ../src/guestfs-actions.pod:4323
11500 msgid "guestfs_rm"
11501 msgstr ""
11502
11503 # type: verbatim
11504 #: ../src/guestfs-actions.pod:4325
11505 #, no-wrap
11506 msgid ""
11507 " int guestfs_rm (guestfs_h *g,\n"
11508 "\t\tconst char *path);\n"
11509 "\n"
11510 msgstr ""
11511
11512 # type: textblock
11513 #: ../src/guestfs-actions.pod:4328 ../fish/guestfish-actions.pod:3333
11514 msgid "Remove the single file C<path>."
11515 msgstr ""
11516
11517 # type: =head2
11518 #: ../src/guestfs-actions.pod:4332
11519 msgid "guestfs_rm_rf"
11520 msgstr ""
11521
11522 # type: verbatim
11523 #: ../src/guestfs-actions.pod:4334
11524 #, no-wrap
11525 msgid ""
11526 " int guestfs_rm_rf (guestfs_h *g,\n"
11527 "\t\tconst char *path);\n"
11528 "\n"
11529 msgstr ""
11530
11531 # type: textblock
11532 #: ../src/guestfs-actions.pod:4337 ../fish/guestfish-actions.pod:3339
11533 msgid ""
11534 "Remove the file or directory C<path>, recursively removing the contents if "
11535 "its a directory.  This is like the C<rm -rf> shell command."
11536 msgstr ""
11537
11538 # type: =head2
11539 #: ../src/guestfs-actions.pod:4343
11540 msgid "guestfs_rmdir"
11541 msgstr ""
11542
11543 # type: verbatim
11544 #: ../src/guestfs-actions.pod:4345
11545 #, no-wrap
11546 msgid ""
11547 " int guestfs_rmdir (guestfs_h *g,\n"
11548 "\t\tconst char *path);\n"
11549 "\n"
11550 msgstr ""
11551
11552 # type: textblock
11553 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:3347
11554 msgid "Remove the single directory C<path>."
11555 msgstr ""
11556
11557 # type: =head2
11558 #: ../src/guestfs-actions.pod:4352
11559 msgid "guestfs_rmmountpoint"
11560 msgstr ""
11561
11562 # type: verbatim
11563 #: ../src/guestfs-actions.pod:4354
11564 #, no-wrap
11565 msgid ""
11566 " int guestfs_rmmountpoint (guestfs_h *g,\n"
11567 "\t\tconst char *exemptpath);\n"
11568 "\n"
11569 msgstr ""
11570
11571 # type: textblock
11572 #: ../src/guestfs-actions.pod:4357
11573 msgid ""
11574 "This calls removes a mountpoint that was previously created with "
11575 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11576 msgstr ""
11577
11578 # type: =head2
11579 #: ../src/guestfs-actions.pod:4363
11580 msgid "guestfs_scrub_device"
11581 msgstr ""
11582
11583 # type: verbatim
11584 #: ../src/guestfs-actions.pod:4365
11585 #, no-wrap
11586 msgid ""
11587 " int guestfs_scrub_device (guestfs_h *g,\n"
11588 "\t\tconst char *device);\n"
11589 "\n"
11590 msgstr ""
11591
11592 # type: textblock
11593 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:3361
11594 msgid ""
11595 "This command writes patterns over C<device> to make data retrieval more "
11596 "difficult."
11597 msgstr ""
11598
11599 # type: textblock
11600 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4405 ../fish/guestfish-actions.pod:3364 ../fish/guestfish-actions.pod:3379 ../fish/guestfish-actions.pod:3392
11601 msgid ""
11602 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11603 "more details."
11604 msgstr ""
11605
11606 # type: =head2
11607 #: ../src/guestfs-actions.pod:4379
11608 msgid "guestfs_scrub_file"
11609 msgstr ""
11610
11611 # type: verbatim
11612 #: ../src/guestfs-actions.pod:4381
11613 #, no-wrap
11614 msgid ""
11615 " int guestfs_scrub_file (guestfs_h *g,\n"
11616 "\t\tconst char *file);\n"
11617 "\n"
11618 msgstr ""
11619
11620 # type: textblock
11621 #: ../src/guestfs-actions.pod:4384 ../fish/guestfish-actions.pod:3374
11622 msgid ""
11623 "This command writes patterns over a file to make data retrieval more "
11624 "difficult."
11625 msgstr ""
11626
11627 # type: textblock
11628 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:3377
11629 msgid "The file is I<removed> after scrubbing."
11630 msgstr ""
11631
11632 # type: =head2
11633 #: ../src/guestfs-actions.pod:4394
11634 msgid "guestfs_scrub_freespace"
11635 msgstr ""
11636
11637 # type: verbatim
11638 #: ../src/guestfs-actions.pod:4396
11639 #, no-wrap
11640 msgid ""
11641 " int guestfs_scrub_freespace (guestfs_h *g,\n"
11642 "\t\tconst char *dir);\n"
11643 "\n"
11644 msgstr ""
11645
11646 # type: textblock
11647 #: ../src/guestfs-actions.pod:4399
11648 msgid ""
11649 "This command creates the directory C<dir> and then fills it with files until "
11650 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
11651 "and deletes them.  The intention is to scrub any free space on the partition "
11652 "containing C<dir>."
11653 msgstr ""
11654
11655 # type: =head2
11656 #: ../src/guestfs-actions.pod:4410
11657 msgid "guestfs_set_append"
11658 msgstr ""
11659
11660 # type: verbatim
11661 #: ../src/guestfs-actions.pod:4412
11662 #, no-wrap
11663 msgid ""
11664 " int guestfs_set_append (guestfs_h *g,\n"
11665 "\t\tconst char *append);\n"
11666 "\n"
11667 msgstr ""
11668
11669 # type: textblock
11670 #: ../src/guestfs-actions.pod:4415 ../fish/guestfish-actions.pod:3401
11671 msgid ""
11672 "This function is used to add additional options to the guest kernel command "
11673 "line."
11674 msgstr ""
11675
11676 # type: textblock
11677 #: ../src/guestfs-actions.pod:4418 ../fish/guestfish-actions.pod:3404
11678 msgid ""
11679 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
11680 "environment variable."
11681 msgstr ""
11682
11683 # type: textblock
11684 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:3407
11685 msgid ""
11686 "Setting C<append> to C<NULL> means I<no> additional options are passed "
11687 "(libguestfs always adds a few of its own)."
11688 msgstr ""
11689
11690 # type: =head2
11691 #: ../src/guestfs-actions.pod:4426
11692 msgid "guestfs_set_autosync"
11693 msgstr ""
11694
11695 # type: verbatim
11696 #: ../src/guestfs-actions.pod:4428
11697 #, no-wrap
11698 msgid ""
11699 " int guestfs_set_autosync (guestfs_h *g,\n"
11700 "\t\tint autosync);\n"
11701 "\n"
11702 msgstr ""
11703
11704 # type: textblock
11705 #: ../src/guestfs-actions.pod:4431
11706 msgid ""
11707 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
11708 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
11709 "the handle is closed (also if the program exits without closing handles)."
11710 msgstr ""
11711
11712 # type: textblock
11713 #: ../src/guestfs-actions.pod:4436 ../fish/guestfish-actions.pod:3421
11714 msgid ""
11715 "This is enabled by default (since libguestfs 1.5.24, previously it was "
11716 "disabled by default)."
11717 msgstr ""
11718
11719 # type: =head2
11720 #: ../src/guestfs-actions.pod:4441
11721 msgid "guestfs_set_direct"
11722 msgstr ""
11723
11724 # type: verbatim
11725 #: ../src/guestfs-actions.pod:4443
11726 #, no-wrap
11727 msgid ""
11728 " int guestfs_set_direct (guestfs_h *g,\n"
11729 "\t\tint direct);\n"
11730 "\n"
11731 msgstr ""
11732
11733 # type: textblock
11734 #: ../src/guestfs-actions.pod:4446 ../fish/guestfish-actions.pod:3430
11735 msgid ""
11736 "If the direct appliance mode flag is enabled, then stdin and stdout are "
11737 "passed directly through to the appliance once it is launched."
11738 msgstr ""
11739
11740 # type: textblock
11741 #: ../src/guestfs-actions.pod:4450
11742 msgid ""
11743 "One consequence of this is that log messages aren't caught by the library "
11744 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
11745 "stdout."
11746 msgstr ""
11747
11748 # type: textblock
11749 #: ../src/guestfs-actions.pod:4454 ../fish/guestfish-actions.pod:3438
11750 msgid "You probably don't want to use this unless you know what you are doing."
11751 msgstr ""
11752
11753 # type: textblock
11754 #: ../src/guestfs-actions.pod:4457 ../fish/guestfish-actions.pod:3441
11755 msgid "The default is disabled."
11756 msgstr ""
11757
11758 # type: =head2
11759 #: ../src/guestfs-actions.pod:4461
11760 msgid "guestfs_set_e2label"
11761 msgstr ""
11762
11763 # type: verbatim
11764 #: ../src/guestfs-actions.pod:4463
11765 #, no-wrap
11766 msgid ""
11767 " int guestfs_set_e2label (guestfs_h *g,\n"
11768 "\t\tconst char *device,\n"
11769 "\t\tconst char *label);\n"
11770 "\n"
11771 msgstr ""
11772
11773 # type: textblock
11774 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:3447
11775 msgid ""
11776 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
11777 "C<label>.  Filesystem labels are limited to 16 characters."
11778 msgstr ""
11779
11780 # type: textblock
11781 #: ../src/guestfs-actions.pod:4471
11782 msgid ""
11783 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
11784 "the existing label on a filesystem."
11785 msgstr ""
11786
11787 # type: =head2
11788 #: ../src/guestfs-actions.pod:4476
11789 msgid "guestfs_set_e2uuid"
11790 msgstr ""
11791
11792 # type: verbatim
11793 #: ../src/guestfs-actions.pod:4478
11794 #, no-wrap
11795 msgid ""
11796 " int guestfs_set_e2uuid (guestfs_h *g,\n"
11797 "\t\tconst char *device,\n"
11798 "\t\tconst char *uuid);\n"
11799 "\n"
11800 msgstr ""
11801
11802 # type: textblock
11803 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3458
11804 msgid ""
11805 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
11806 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
11807 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
11808 msgstr ""
11809
11810 # type: textblock
11811 #: ../src/guestfs-actions.pod:4487
11812 msgid ""
11813 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
11814 "the existing UUID of a filesystem."
11815 msgstr ""
11816
11817 # type: =head2
11818 #: ../src/guestfs-actions.pod:4492
11819 msgid "guestfs_set_memsize"
11820 msgstr ""
11821
11822 # type: verbatim
11823 #: ../src/guestfs-actions.pod:4494
11824 #, no-wrap
11825 msgid ""
11826 " int guestfs_set_memsize (guestfs_h *g,\n"
11827 "\t\tint memsize);\n"
11828 "\n"
11829 msgstr ""
11830
11831 # type: textblock
11832 #: ../src/guestfs-actions.pod:4497
11833 msgid ""
11834 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
11835 "This only has any effect if called before C<guestfs_launch>."
11836 msgstr ""
11837
11838 # type: textblock
11839 #: ../src/guestfs-actions.pod:4501 ../fish/guestfish-actions.pod:3476
11840 msgid ""
11841 "You can also change this by setting the environment variable "
11842 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
11843 msgstr ""
11844
11845 # type: =head2
11846 #: ../src/guestfs-actions.pod:4510
11847 msgid "guestfs_set_network"
11848 msgstr ""
11849
11850 # type: verbatim
11851 #: ../src/guestfs-actions.pod:4512
11852 #, no-wrap
11853 msgid ""
11854 " int guestfs_set_network (guestfs_h *g,\n"
11855 "\t\tint network);\n"
11856 "\n"
11857 msgstr ""
11858
11859 # type: textblock
11860 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:3489
11861 msgid ""
11862 "If C<network> is true, then the network is enabled in the libguestfs "
11863 "appliance.  The default is false."
11864 msgstr ""
11865
11866 # type: textblock
11867 #: ../src/guestfs-actions.pod:4518 ../fish/guestfish-actions.pod:3492
11868 msgid ""
11869 "This affects whether commands are able to access the network (see "
11870 "L<guestfs(3)/RUNNING COMMANDS>)."
11871 msgstr ""
11872
11873 # type: textblock
11874 #: ../src/guestfs-actions.pod:4521
11875 msgid ""
11876 "You must call this before calling C<guestfs_launch>, otherwise it has no "
11877 "effect."
11878 msgstr ""
11879
11880 # type: =head2
11881 #: ../src/guestfs-actions.pod:4526
11882 msgid "guestfs_set_path"
11883 msgstr ""
11884
11885 # type: verbatim
11886 #: ../src/guestfs-actions.pod:4528
11887 #, no-wrap
11888 msgid ""
11889 " int guestfs_set_path (guestfs_h *g,\n"
11890 "\t\tconst char *searchpath);\n"
11891 "\n"
11892 msgstr ""
11893
11894 # type: textblock
11895 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3504
11896 msgid "Set the path that libguestfs searches for kernel and initrd.img."
11897 msgstr ""
11898
11899 # type: textblock
11900 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3506
11901 msgid ""
11902 "The default is C<$libdir/guestfs> unless overridden by setting "
11903 "C<LIBGUESTFS_PATH> environment variable."
11904 msgstr ""
11905
11906 # type: textblock
11907 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3509
11908 msgid "Setting C<path> to C<NULL> restores the default path."
11909 msgstr ""
11910
11911 # type: =head2
11912 #: ../src/guestfs-actions.pod:4540
11913 msgid "guestfs_set_qemu"
11914 msgstr ""
11915
11916 # type: verbatim
11917 #: ../src/guestfs-actions.pod:4542
11918 #, no-wrap
11919 msgid ""
11920 " int guestfs_set_qemu (guestfs_h *g,\n"
11921 "\t\tconst char *qemu);\n"
11922 "\n"
11923 msgstr ""
11924
11925 # type: textblock
11926 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3517
11927 msgid "Set the qemu binary that we will use."
11928 msgstr ""
11929
11930 # type: textblock
11931 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3519
11932 msgid "The default is chosen when the library was compiled by the configure script."
11933 msgstr ""
11934
11935 # type: textblock
11936 #: ../src/guestfs-actions.pod:4550 ../fish/guestfish-actions.pod:3522
11937 msgid ""
11938 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
11939 "variable."
11940 msgstr ""
11941
11942 # type: textblock
11943 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3525
11944 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
11945 msgstr ""
11946
11947 # type: textblock
11948 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3527
11949 msgid ""
11950 "Note that you should call this function as early as possible after creating "
11951 "the handle.  This is because some pre-launch operations depend on testing "
11952 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
11953 "don't retest features, and so you might see inconsistent results.  Using the "
11954 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
11955 "the qemu binary at the same time as the handle is created."
11956 msgstr ""
11957
11958 # type: =head2
11959 #: ../src/guestfs-actions.pod:4565
11960 msgid "guestfs_set_recovery_proc"
11961 msgstr ""
11962
11963 # type: verbatim
11964 #: ../src/guestfs-actions.pod:4567
11965 #, no-wrap
11966 msgid ""
11967 " int guestfs_set_recovery_proc (guestfs_h *g,\n"
11968 "\t\tint recoveryproc);\n"
11969 "\n"
11970 msgstr ""
11971
11972 # type: textblock
11973 #: ../src/guestfs-actions.pod:4570
11974 msgid ""
11975 "If this is called with the parameter C<false> then C<guestfs_launch> does "
11976 "not create a recovery process.  The purpose of the recovery process is to "
11977 "stop runaway qemu processes in the case where the main program aborts "
11978 "abruptly."
11979 msgstr ""
11980
11981 # type: textblock
11982 #: ../src/guestfs-actions.pod:4575
11983 msgid ""
11984 "This only has any effect if called before C<guestfs_launch>, and the default "
11985 "is true."
11986 msgstr ""
11987
11988 # type: textblock
11989 #: ../src/guestfs-actions.pod:4578 ../fish/guestfish-actions.pod:3549
11990 msgid ""
11991 "About the only time when you would want to disable this is if the main "
11992 "process will fork itself into the background (\"daemonize\" itself).  In "
11993 "this case the recovery process thinks that the main program has disappeared "
11994 "and so kills qemu, which is not very helpful."
11995 msgstr ""
11996
11997 # type: =head2
11998 #: ../src/guestfs-actions.pod:4586
11999 msgid "guestfs_set_selinux"
12000 msgstr ""
12001
12002 # type: verbatim
12003 #: ../src/guestfs-actions.pod:4588
12004 #, no-wrap
12005 msgid ""
12006 " int guestfs_set_selinux (guestfs_h *g,\n"
12007 "\t\tint selinux);\n"
12008 "\n"
12009 msgstr ""
12010
12011 # type: textblock
12012 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3561
12013 msgid ""
12014 "This sets the selinux flag that is passed to the appliance at boot time.  "
12015 "The default is C<selinux=0> (disabled)."
12016 msgstr ""
12017
12018 # type: textblock
12019 #: ../src/guestfs-actions.pod:4594 ../fish/guestfish-actions.pod:3564
12020 msgid ""
12021 "Note that if SELinux is enabled, it is always in Permissive mode "
12022 "(C<enforcing=0>)."
12023 msgstr ""
12024
12025 # type: =head2
12026 #: ../src/guestfs-actions.pod:4602
12027 msgid "guestfs_set_trace"
12028 msgstr ""
12029
12030 # type: verbatim
12031 #: ../src/guestfs-actions.pod:4604
12032 #, no-wrap
12033 msgid ""
12034 " int guestfs_set_trace (guestfs_h *g,\n"
12035 "\t\tint trace);\n"
12036 "\n"
12037 msgstr ""
12038
12039 # type: textblock
12040 #: ../src/guestfs-actions.pod:4607 ../fish/guestfish-actions.pod:3576
12041 msgid ""
12042 "If the command trace flag is set to 1, then commands are printed on stderr "
12043 "before they are executed in a format which is very similar to the one used "
12044 "by guestfish.  In other words, you can run a program with this enabled, and "
12045 "you will get out a script which you can feed to guestfish to perform the "
12046 "same set of actions."
12047 msgstr ""
12048
12049 # type: textblock
12050 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3583
12051 msgid ""
12052 "If you want to trace C API calls into libguestfs (and other libraries) then "
12053 "possibly a better way is to use the external ltrace(1) command."
12054 msgstr ""
12055
12056 # type: textblock
12057 #: ../src/guestfs-actions.pod:4618 ../fish/guestfish-actions.pod:3587
12058 msgid ""
12059 "Command traces are disabled unless the environment variable "
12060 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12061 msgstr ""
12062
12063 # type: =head2
12064 #: ../src/guestfs-actions.pod:4623
12065 msgid "guestfs_set_verbose"
12066 msgstr ""
12067
12068 # type: verbatim
12069 #: ../src/guestfs-actions.pod:4625
12070 #, no-wrap
12071 msgid ""
12072 " int guestfs_set_verbose (guestfs_h *g,\n"
12073 "\t\tint verbose);\n"
12074 "\n"
12075 msgstr ""
12076
12077 # type: textblock
12078 #: ../src/guestfs-actions.pod:4628 ../fish/guestfish-actions.pod:3596
12079 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12080 msgstr ""
12081
12082 # type: textblock
12083 #: ../src/guestfs-actions.pod:4630 ../fish/guestfish-actions.pod:3598
12084 msgid ""
12085 "Verbose messages are disabled unless the environment variable "
12086 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12087 msgstr ""
12088
12089 # type: =head2
12090 #: ../src/guestfs-actions.pod:4635
12091 msgid "guestfs_setcon"
12092 msgstr ""
12093
12094 # type: verbatim
12095 #: ../src/guestfs-actions.pod:4637
12096 #, no-wrap
12097 msgid ""
12098 " int guestfs_setcon (guestfs_h *g,\n"
12099 "\t\tconst char *context);\n"
12100 "\n"
12101 msgstr ""
12102
12103 # type: textblock
12104 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3605
12105 msgid ""
12106 "This sets the SELinux security context of the daemon to the string "
12107 "C<context>."
12108 msgstr ""
12109
12110 # type: textblock
12111 #: ../src/guestfs-actions.pod:4643 ../fish/guestfish-actions.pod:3608
12112 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12113 msgstr ""
12114
12115 # type: =head2
12116 #: ../src/guestfs-actions.pod:4647
12117 msgid "guestfs_setxattr"
12118 msgstr ""
12119
12120 # type: verbatim
12121 #: ../src/guestfs-actions.pod:4649
12122 #, no-wrap
12123 msgid ""
12124 " int guestfs_setxattr (guestfs_h *g,\n"
12125 "\t\tconst char *xattr,\n"
12126 "\t\tconst char *val,\n"
12127 "\t\tint vallen,\n"
12128 "\t\tconst char *path);\n"
12129 "\n"
12130 msgstr ""
12131
12132 # type: textblock
12133 #: ../src/guestfs-actions.pod:4655 ../fish/guestfish-actions.pod:3614
12134 msgid ""
12135 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12136 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12137 msgstr ""
12138
12139 # type: textblock
12140 #: ../src/guestfs-actions.pod:4659
12141 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12142 msgstr ""
12143
12144 # type: =head2
12145 #: ../src/guestfs-actions.pod:4663
12146 msgid "guestfs_sfdisk"
12147 msgstr ""
12148
12149 # type: verbatim
12150 #: ../src/guestfs-actions.pod:4665
12151 #, no-wrap
12152 msgid ""
12153 " int guestfs_sfdisk (guestfs_h *g,\n"
12154 "\t\tconst char *device,\n"
12155 "\t\tint cyls,\n"
12156 "\t\tint heads,\n"
12157 "\t\tint sectors,\n"
12158 "\t\tchar *const *lines);\n"
12159 "\n"
12160 msgstr ""
12161
12162 # type: textblock
12163 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3624
12164 msgid ""
12165 "This is a direct interface to the L<sfdisk(8)> program for creating "
12166 "partitions on block devices."
12167 msgstr ""
12168
12169 # type: textblock
12170 #: ../src/guestfs-actions.pod:4675 ../fish/guestfish-actions.pod:3627
12171 msgid "C<device> should be a block device, for example C</dev/sda>."
12172 msgstr ""
12173
12174 # type: textblock
12175 #: ../src/guestfs-actions.pod:4677 ../fish/guestfish-actions.pod:3629
12176 msgid ""
12177 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12178 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12179 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12180 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12181 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12182 "the kernel) cannot work out the right geometry and you will need to tell it."
12183 msgstr ""
12184
12185 # type: textblock
12186 #: ../src/guestfs-actions.pod:4685 ../fish/guestfish-actions.pod:3637
12187 msgid ""
12188 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12189 "refer to the L<sfdisk(8)> manpage."
12190 msgstr ""
12191
12192 # type: textblock
12193 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3640
12194 msgid ""
12195 "To create a single partition occupying the whole disk, you would pass "
12196 "C<lines> as a single element list, when the single element being the string "
12197 "C<,> (comma)."
12198 msgstr ""
12199
12200 # type: textblock
12201 #: ../src/guestfs-actions.pod:4692
12202 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12203 msgstr ""
12204
12205 # type: =head2
12206 #: ../src/guestfs-actions.pod:4700
12207 msgid "guestfs_sfdiskM"
12208 msgstr ""
12209
12210 # type: verbatim
12211 #: ../src/guestfs-actions.pod:4702
12212 #, no-wrap
12213 msgid ""
12214 " int guestfs_sfdiskM (guestfs_h *g,\n"
12215 "\t\tconst char *device,\n"
12216 "\t\tchar *const *lines);\n"
12217 "\n"
12218 msgstr ""
12219
12220 # type: textblock
12221 #: ../src/guestfs-actions.pod:4706
12222 msgid ""
12223 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12224 "partition sizes are specified in megabytes only (rounded to the nearest "
12225 "cylinder) and you don't need to specify the cyls, heads and sectors "
12226 "parameters which were rarely if ever used anyway."
12227 msgstr ""
12228
12229 # type: textblock
12230 #: ../src/guestfs-actions.pod:4712
12231 msgid ""
12232 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12233 "C<guestfs_part_disk>"
12234 msgstr ""
12235
12236 # type: =head2
12237 #: ../src/guestfs-actions.pod:4720
12238 msgid "guestfs_sfdisk_N"
12239 msgstr ""
12240
12241 # type: verbatim
12242 #: ../src/guestfs-actions.pod:4722
12243 #, no-wrap
12244 msgid ""
12245 " int guestfs_sfdisk_N (guestfs_h *g,\n"
12246 "\t\tconst char *device,\n"
12247 "\t\tint partnum,\n"
12248 "\t\tint cyls,\n"
12249 "\t\tint heads,\n"
12250 "\t\tint sectors,\n"
12251 "\t\tconst char *line);\n"
12252 "\n"
12253 msgstr ""
12254
12255 # type: textblock
12256 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3670
12257 msgid ""
12258 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12259 "(note: C<n> counts from 1)."
12260 msgstr ""
12261
12262 # type: textblock
12263 #: ../src/guestfs-actions.pod:4733
12264 msgid ""
12265 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12266 "for the cyls/heads/sectors parameters."
12267 msgstr ""
12268
12269 # type: textblock
12270 #: ../src/guestfs-actions.pod:4736
12271 msgid "See also: C<guestfs_part_add>"
12272 msgstr ""
12273
12274 # type: =head2
12275 #: ../src/guestfs-actions.pod:4743
12276 msgid "guestfs_sfdisk_disk_geometry"
12277 msgstr ""
12278
12279 # type: verbatim
12280 #: ../src/guestfs-actions.pod:4745
12281 #, no-wrap
12282 msgid ""
12283 " char *guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12284 "\t\tconst char *device);\n"
12285 "\n"
12286 msgstr ""
12287
12288 # type: textblock
12289 #: ../src/guestfs-actions.pod:4748
12290 msgid ""
12291 "This displays the disk geometry of C<device> read from the partition table.  "
12292 "Especially in the case where the underlying block device has been resized, "
12293 "this can be different from the kernel's idea of the geometry (see "
12294 "C<guestfs_sfdisk_kernel_geometry>)."
12295 msgstr ""
12296
12297 # type: textblock
12298 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:4766 ../fish/guestfish-actions.pod:3690 ../fish/guestfish-actions.pod:3699
12299 msgid "The result is in human-readable format, and not designed to be parsed."
12300 msgstr ""
12301
12302 # type: =head2
12303 #: ../src/guestfs-actions.pod:4759
12304 msgid "guestfs_sfdisk_kernel_geometry"
12305 msgstr ""
12306
12307 # type: verbatim
12308 #: ../src/guestfs-actions.pod:4761
12309 #, no-wrap
12310 msgid ""
12311 " char *guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12312 "\t\tconst char *device);\n"
12313 "\n"
12314 msgstr ""
12315
12316 # type: textblock
12317 #: ../src/guestfs-actions.pod:4764 ../fish/guestfish-actions.pod:3697
12318 msgid "This displays the kernel's idea of the geometry of C<device>."
12319 msgstr ""
12320
12321 # type: =head2
12322 #: ../src/guestfs-actions.pod:4772
12323 msgid "guestfs_sfdisk_l"
12324 msgstr ""
12325
12326 # type: verbatim
12327 #: ../src/guestfs-actions.pod:4774
12328 #, no-wrap
12329 msgid ""
12330 " char *guestfs_sfdisk_l (guestfs_h *g,\n"
12331 "\t\tconst char *device);\n"
12332 "\n"
12333 msgstr ""
12334
12335 # type: textblock
12336 #: ../src/guestfs-actions.pod:4777 ../fish/guestfish-actions.pod:3706
12337 msgid ""
12338 "This displays the partition table on C<device>, in the human-readable output "
12339 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12340 msgstr ""
12341
12342 # type: textblock
12343 #: ../src/guestfs-actions.pod:4781
12344 msgid "See also: C<guestfs_part_list>"
12345 msgstr ""
12346
12347 # type: =head2
12348 #: ../src/guestfs-actions.pod:4786
12349 msgid "guestfs_sh"
12350 msgstr ""
12351
12352 # type: verbatim
12353 #: ../src/guestfs-actions.pod:4788
12354 #, no-wrap
12355 msgid ""
12356 " char *guestfs_sh (guestfs_h *g,\n"
12357 "\t\tconst char *command);\n"
12358 "\n"
12359 msgstr ""
12360
12361 # type: textblock
12362 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3716
12363 msgid ""
12364 "This call runs a command from the guest filesystem via the guest's "
12365 "C</bin/sh>."
12366 msgstr ""
12367
12368 # type: textblock
12369 #: ../src/guestfs-actions.pod:4794
12370 msgid "This is like C<guestfs_command>, but passes the command to:"
12371 msgstr ""
12372
12373 # type: verbatim
12374 #: ../src/guestfs-actions.pod:4796 ../fish/guestfish-actions.pod:3721
12375 #, no-wrap
12376 msgid ""
12377 " /bin/sh -c \"command\"\n"
12378 "\n"
12379 msgstr ""
12380
12381 # type: textblock
12382 #: ../src/guestfs-actions.pod:4798 ../fish/guestfish-actions.pod:3723
12383 msgid ""
12384 "Depending on the guest's shell, this usually results in wildcards being "
12385 "expanded, shell expressions being interpolated and so on."
12386 msgstr ""
12387
12388 # type: textblock
12389 #: ../src/guestfs-actions.pod:4802
12390 msgid "All the provisos about C<guestfs_command> apply to this call."
12391 msgstr ""
12392
12393 # type: =head2
12394 #: ../src/guestfs-actions.pod:4807
12395 msgid "guestfs_sh_lines"
12396 msgstr ""
12397
12398 # type: verbatim
12399 #: ../src/guestfs-actions.pod:4809
12400 #, no-wrap
12401 msgid ""
12402 " char **guestfs_sh_lines (guestfs_h *g,\n"
12403 "\t\tconst char *command);\n"
12404 "\n"
12405 msgstr ""
12406
12407 # type: textblock
12408 #: ../src/guestfs-actions.pod:4812
12409 msgid ""
12410 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12411 "lines."
12412 msgstr ""
12413
12414 # type: textblock
12415 #: ../src/guestfs-actions.pod:4815
12416 msgid "See also: C<guestfs_command_lines>"
12417 msgstr ""
12418
12419 # type: =head2
12420 #: ../src/guestfs-actions.pod:4821
12421 msgid "guestfs_sleep"
12422 msgstr ""
12423
12424 # type: verbatim
12425 #: ../src/guestfs-actions.pod:4823
12426 #, no-wrap
12427 msgid ""
12428 " int guestfs_sleep (guestfs_h *g,\n"
12429 "\t\tint secs);\n"
12430 "\n"
12431 msgstr ""
12432
12433 # type: textblock
12434 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3742
12435 msgid "Sleep for C<secs> seconds."
12436 msgstr ""
12437
12438 # type: =head2
12439 #: ../src/guestfs-actions.pod:4830 ../src/guestfs-structs.pod:109
12440 msgid "guestfs_stat"
12441 msgstr ""
12442
12443 # type: verbatim
12444 #: ../src/guestfs-actions.pod:4832
12445 #, no-wrap
12446 msgid ""
12447 " struct guestfs_stat *guestfs_stat (guestfs_h *g,\n"
12448 "\t\tconst char *path);\n"
12449 "\n"
12450 msgstr ""
12451
12452 # type: textblock
12453 #: ../src/guestfs-actions.pod:4837 ../fish/guestfish-actions.pod:3750
12454 msgid "This is the same as the C<stat(2)> system call."
12455 msgstr ""
12456
12457 # type: =head2
12458 #: ../src/guestfs-actions.pod:4843 ../src/guestfs-structs.pod:135
12459 msgid "guestfs_statvfs"
12460 msgstr ""
12461
12462 # type: verbatim
12463 #: ../src/guestfs-actions.pod:4845
12464 #, no-wrap
12465 msgid ""
12466 " struct guestfs_statvfs *guestfs_statvfs (guestfs_h *g,\n"
12467 "\t\tconst char *path);\n"
12468 "\n"
12469 msgstr ""
12470
12471 # type: textblock
12472 #: ../src/guestfs-actions.pod:4848 ../fish/guestfish-actions.pod:3756
12473 msgid ""
12474 "Returns file system statistics for any mounted file system.  C<path> should "
12475 "be a file or directory in the mounted file system (typically it is the mount "
12476 "point itself, but it doesn't need to be)."
12477 msgstr ""
12478
12479 # type: textblock
12480 #: ../src/guestfs-actions.pod:4852 ../fish/guestfish-actions.pod:3760
12481 msgid "This is the same as the C<statvfs(2)> system call."
12482 msgstr ""
12483
12484 # type: textblock
12485 #: ../src/guestfs-actions.pod:4854
12486 msgid ""
12487 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12488 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12489 msgstr ""
12490
12491 # type: =head2
12492 #: ../src/guestfs-actions.pod:4858
12493 msgid "guestfs_strings"
12494 msgstr ""
12495
12496 # type: verbatim
12497 #: ../src/guestfs-actions.pod:4860
12498 #, no-wrap
12499 msgid ""
12500 " char **guestfs_strings (guestfs_h *g,\n"
12501 "\t\tconst char *path);\n"
12502 "\n"
12503 msgstr ""
12504
12505 # type: textblock
12506 #: ../src/guestfs-actions.pod:4863 ../fish/guestfish-actions.pod:3766
12507 msgid ""
12508 "This runs the L<strings(1)> command on a file and returns the list of "
12509 "printable strings found."
12510 msgstr ""
12511
12512 # type: =head2
12513 #: ../src/guestfs-actions.pod:4873
12514 msgid "guestfs_strings_e"
12515 msgstr ""
12516
12517 # type: verbatim
12518 #: ../src/guestfs-actions.pod:4875
12519 #, no-wrap
12520 msgid ""
12521 " char **guestfs_strings_e (guestfs_h *g,\n"
12522 "\t\tconst char *encoding,\n"
12523 "\t\tconst char *path);\n"
12524 "\n"
12525 msgstr ""
12526
12527 # type: textblock
12528 #: ../src/guestfs-actions.pod:4879
12529 msgid ""
12530 "This is like the C<guestfs_strings> command, but allows you to specify the "
12531 "encoding of strings that are looked for in the source file C<path>."
12532 msgstr ""
12533
12534 # type: textblock
12535 #: ../src/guestfs-actions.pod:4883 ../fish/guestfish-actions.pod:3780
12536 msgid "Allowed encodings are:"
12537 msgstr ""
12538
12539 # type: =item
12540 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3784
12541 msgid "s"
12542 msgstr ""
12543
12544 # type: textblock
12545 #: ../src/guestfs-actions.pod:4889
12546 msgid ""
12547 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12548 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12549 msgstr ""
12550
12551 # type: =item
12552 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3789
12553 msgid "S"
12554 msgstr ""
12555
12556 # type: textblock
12557 #: ../src/guestfs-actions.pod:4894 ../fish/guestfish-actions.pod:3791
12558 msgid "Single 8-bit-byte characters."
12559 msgstr ""
12560
12561 # type: =item
12562 #: ../src/guestfs-actions.pod:4896 ../fish/guestfish-actions.pod:3793
12563 msgid "b"
12564 msgstr ""
12565
12566 # type: textblock
12567 #: ../src/guestfs-actions.pod:4898 ../fish/guestfish-actions.pod:3795
12568 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12569 msgstr ""
12570
12571 # type: =item
12572 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3798
12573 msgid "l (lower case letter L)"
12574 msgstr ""
12575
12576 # type: textblock
12577 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3800
12578 msgid ""
12579 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12580 "examining binaries in Windows guests."
12581 msgstr ""
12582
12583 # type: =item
12584 #: ../src/guestfs-actions.pod:4906 ../fish/guestfish-actions.pod:3803
12585 msgid "B"
12586 msgstr ""
12587
12588 # type: textblock
12589 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3805
12590 msgid "32-bit big endian such as UCS-4BE."
12591 msgstr ""
12592
12593 # type: =item
12594 #: ../src/guestfs-actions.pod:4910 ../fish/guestfish-actions.pod:3807
12595 msgid "L"
12596 msgstr ""
12597
12598 # type: textblock
12599 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3809
12600 msgid "32-bit little endian such as UCS-4LE."
12601 msgstr ""
12602
12603 # type: textblock
12604 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3813
12605 msgid "The returned strings are transcoded to UTF-8."
12606 msgstr ""
12607
12608 # type: =head2
12609 #: ../src/guestfs-actions.pod:4925
12610 msgid "guestfs_swapoff_device"
12611 msgstr ""
12612
12613 # type: verbatim
12614 #: ../src/guestfs-actions.pod:4927
12615 #, no-wrap
12616 msgid ""
12617 " int guestfs_swapoff_device (guestfs_h *g,\n"
12618 "\t\tconst char *device);\n"
12619 "\n"
12620 msgstr ""
12621
12622 # type: textblock
12623 #: ../src/guestfs-actions.pod:4930
12624 msgid ""
12625 "This command disables the libguestfs appliance swap device or partition "
12626 "named C<device>.  See C<guestfs_swapon_device>."
12627 msgstr ""
12628
12629 # type: =head2
12630 #: ../src/guestfs-actions.pod:4936
12631 msgid "guestfs_swapoff_file"
12632 msgstr ""
12633
12634 # type: verbatim
12635 #: ../src/guestfs-actions.pod:4938
12636 #, no-wrap
12637 msgid ""
12638 " int guestfs_swapoff_file (guestfs_h *g,\n"
12639 "\t\tconst char *file);\n"
12640 "\n"
12641 msgstr ""
12642
12643 # type: textblock
12644 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3830
12645 msgid "This command disables the libguestfs appliance swap on file."
12646 msgstr ""
12647
12648 # type: =head2
12649 #: ../src/guestfs-actions.pod:4945
12650 msgid "guestfs_swapoff_label"
12651 msgstr ""
12652
12653 # type: verbatim
12654 #: ../src/guestfs-actions.pod:4947
12655 #, no-wrap
12656 msgid ""
12657 " int guestfs_swapoff_label (guestfs_h *g,\n"
12658 "\t\tconst char *label);\n"
12659 "\n"
12660 msgstr ""
12661
12662 # type: textblock
12663 #: ../src/guestfs-actions.pod:4950 ../fish/guestfish-actions.pod:3836
12664 msgid ""
12665 "This command disables the libguestfs appliance swap on labeled swap "
12666 "partition."
12667 msgstr ""
12668
12669 # type: =head2
12670 #: ../src/guestfs-actions.pod:4955
12671 msgid "guestfs_swapoff_uuid"
12672 msgstr ""
12673
12674 # type: verbatim
12675 #: ../src/guestfs-actions.pod:4957
12676 #, no-wrap
12677 msgid ""
12678 " int guestfs_swapoff_uuid (guestfs_h *g,\n"
12679 "\t\tconst char *uuid);\n"
12680 "\n"
12681 msgstr ""
12682
12683 # type: textblock
12684 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3843
12685 msgid ""
12686 "This command disables the libguestfs appliance swap partition with the given "
12687 "UUID."
12688 msgstr ""
12689
12690 # type: =head2
12691 #: ../src/guestfs-actions.pod:4965
12692 msgid "guestfs_swapon_device"
12693 msgstr ""
12694
12695 # type: verbatim
12696 #: ../src/guestfs-actions.pod:4967
12697 #, no-wrap
12698 msgid ""
12699 " int guestfs_swapon_device (guestfs_h *g,\n"
12700 "\t\tconst char *device);\n"
12701 "\n"
12702 msgstr ""
12703
12704 # type: textblock
12705 #: ../src/guestfs-actions.pod:4970
12706 msgid ""
12707 "This command enables the libguestfs appliance to use the swap device or "
12708 "partition named C<device>.  The increased memory is made available for all "
12709 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
12710 msgstr ""
12711
12712 # type: textblock
12713 #: ../src/guestfs-actions.pod:4975 ../fish/guestfish-actions.pod:3855
12714 msgid ""
12715 "Note that you should not swap to existing guest swap partitions unless you "
12716 "know what you are doing.  They may contain hibernation information, or other "
12717 "information that the guest doesn't want you to trash.  You also risk leaking "
12718 "information about the host to the guest this way.  Instead, attach a new "
12719 "host device to the guest and swap on that."
12720 msgstr ""
12721
12722 # type: =head2
12723 #: ../src/guestfs-actions.pod:4984
12724 msgid "guestfs_swapon_file"
12725 msgstr ""
12726
12727 # type: verbatim
12728 #: ../src/guestfs-actions.pod:4986
12729 #, no-wrap
12730 msgid ""
12731 " int guestfs_swapon_file (guestfs_h *g,\n"
12732 "\t\tconst char *file);\n"
12733 "\n"
12734 msgstr ""
12735
12736 # type: textblock
12737 #: ../src/guestfs-actions.pod:4989
12738 msgid ""
12739 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
12740 "notes."
12741 msgstr ""
12742
12743 # type: =head2
12744 #: ../src/guestfs-actions.pod:4994
12745 msgid "guestfs_swapon_label"
12746 msgstr ""
12747
12748 # type: verbatim
12749 #: ../src/guestfs-actions.pod:4996
12750 #, no-wrap
12751 msgid ""
12752 " int guestfs_swapon_label (guestfs_h *g,\n"
12753 "\t\tconst char *label);\n"
12754 "\n"
12755 msgstr ""
12756
12757 # type: textblock
12758 #: ../src/guestfs-actions.pod:4999
12759 msgid ""
12760 "This command enables swap to a labeled swap partition.  See "
12761 "C<guestfs_swapon_device> for other notes."
12762 msgstr ""
12763
12764 # type: =head2
12765 #: ../src/guestfs-actions.pod:5004
12766 msgid "guestfs_swapon_uuid"
12767 msgstr ""
12768
12769 # type: verbatim
12770 #: ../src/guestfs-actions.pod:5006
12771 #, no-wrap
12772 msgid ""
12773 " int guestfs_swapon_uuid (guestfs_h *g,\n"
12774 "\t\tconst char *uuid);\n"
12775 "\n"
12776 msgstr ""
12777
12778 # type: textblock
12779 #: ../src/guestfs-actions.pod:5009
12780 msgid ""
12781 "This command enables swap to a swap partition with the given UUID.  See "
12782 "C<guestfs_swapon_device> for other notes."
12783 msgstr ""
12784
12785 # type: =head2
12786 #: ../src/guestfs-actions.pod:5014
12787 msgid "guestfs_sync"
12788 msgstr ""
12789
12790 # type: verbatim
12791 #: ../src/guestfs-actions.pod:5016
12792 #, no-wrap
12793 msgid ""
12794 " int guestfs_sync (guestfs_h *g);\n"
12795 "\n"
12796 msgstr ""
12797
12798 # type: textblock
12799 #: ../src/guestfs-actions.pod:5018 ../fish/guestfish-actions.pod:3887
12800 msgid ""
12801 "This syncs the disk, so that any writes are flushed through to the "
12802 "underlying disk image."
12803 msgstr ""
12804
12805 # type: textblock
12806 #: ../src/guestfs-actions.pod:5021 ../fish/guestfish-actions.pod:3890
12807 msgid ""
12808 "You should always call this if you have modified a disk image, before "
12809 "closing the handle."
12810 msgstr ""
12811
12812 # type: =head2
12813 #: ../src/guestfs-actions.pod:5026
12814 msgid "guestfs_tail"
12815 msgstr ""
12816
12817 # type: verbatim
12818 #: ../src/guestfs-actions.pod:5028
12819 #, no-wrap
12820 msgid ""
12821 " char **guestfs_tail (guestfs_h *g,\n"
12822 "\t\tconst char *path);\n"
12823 "\n"
12824 msgstr ""
12825
12826 # type: textblock
12827 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3897
12828 msgid "This command returns up to the last 10 lines of a file as a list of strings."
12829 msgstr ""
12830
12831 # type: =head2
12832 #: ../src/guestfs-actions.pod:5041
12833 msgid "guestfs_tail_n"
12834 msgstr ""
12835
12836 # type: verbatim
12837 #: ../src/guestfs-actions.pod:5043
12838 #, no-wrap
12839 msgid ""
12840 " char **guestfs_tail_n (guestfs_h *g,\n"
12841 "\t\tint nrlines,\n"
12842 "\t\tconst char *path);\n"
12843 "\n"
12844 msgstr ""
12845
12846 # type: textblock
12847 #: ../src/guestfs-actions.pod:5047 ../fish/guestfish-actions.pod:3907
12848 msgid ""
12849 "If the parameter C<nrlines> is a positive number, this returns the last "
12850 "C<nrlines> lines of the file C<path>."
12851 msgstr ""
12852
12853 # type: textblock
12854 #: ../src/guestfs-actions.pod:5050 ../fish/guestfish-actions.pod:3910
12855 msgid ""
12856 "If the parameter C<nrlines> is a negative number, this returns lines from "
12857 "the file C<path>, starting with the C<-nrlines>th line."
12858 msgstr ""
12859
12860 # type: =head2
12861 #: ../src/guestfs-actions.pod:5062
12862 msgid "guestfs_tar_in"
12863 msgstr ""
12864
12865 # type: verbatim
12866 #: ../src/guestfs-actions.pod:5064
12867 #, no-wrap
12868 msgid ""
12869 " int guestfs_tar_in (guestfs_h *g,\n"
12870 "\t\tconst char *tarfile,\n"
12871 "\t\tconst char *directory);\n"
12872 "\n"
12873 msgstr ""
12874
12875 # type: textblock
12876 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3922
12877 msgid ""
12878 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
12879 "tar file) into C<directory>."
12880 msgstr ""
12881
12882 # type: textblock
12883 #: ../src/guestfs-actions.pod:5071
12884 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
12885 msgstr ""
12886
12887 # type: =head2
12888 #: ../src/guestfs-actions.pod:5076
12889 msgid "guestfs_tar_out"
12890 msgstr ""
12891
12892 # type: verbatim
12893 #: ../src/guestfs-actions.pod:5078
12894 #, no-wrap
12895 msgid ""
12896 " int guestfs_tar_out (guestfs_h *g,\n"
12897 "\t\tconst char *directory,\n"
12898 "\t\tconst char *tarfile);\n"
12899 "\n"
12900 msgstr ""
12901
12902 # type: textblock
12903 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3934
12904 msgid ""
12905 "This command packs the contents of C<directory> and downloads it to local "
12906 "file C<tarfile>."
12907 msgstr ""
12908
12909 # type: textblock
12910 #: ../src/guestfs-actions.pod:5085
12911 msgid ""
12912 "To download a compressed tarball, use C<guestfs_tgz_out> or "
12913 "C<guestfs_txz_out>."
12914 msgstr ""
12915
12916 # type: =head2
12917 #: ../src/guestfs-actions.pod:5090
12918 msgid "guestfs_tgz_in"
12919 msgstr ""
12920
12921 # type: verbatim
12922 #: ../src/guestfs-actions.pod:5092
12923 #, no-wrap
12924 msgid ""
12925 " int guestfs_tgz_in (guestfs_h *g,\n"
12926 "\t\tconst char *tarball,\n"
12927 "\t\tconst char *directory);\n"
12928 "\n"
12929 msgstr ""
12930
12931 # type: textblock
12932 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3946
12933 msgid ""
12934 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
12935 "tar file) into C<directory>."
12936 msgstr ""
12937
12938 # type: textblock
12939 #: ../src/guestfs-actions.pod:5099
12940 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
12941 msgstr ""
12942
12943 # type: =head2
12944 #: ../src/guestfs-actions.pod:5103
12945 msgid "guestfs_tgz_out"
12946 msgstr ""
12947
12948 # type: verbatim
12949 #: ../src/guestfs-actions.pod:5105
12950 #, no-wrap
12951 msgid ""
12952 " int guestfs_tgz_out (guestfs_h *g,\n"
12953 "\t\tconst char *directory,\n"
12954 "\t\tconst char *tarball);\n"
12955 "\n"
12956 msgstr ""
12957
12958 # type: textblock
12959 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3957
12960 msgid ""
12961 "This command packs the contents of C<directory> and downloads it to local "
12962 "file C<tarball>."
12963 msgstr ""
12964
12965 # type: textblock
12966 #: ../src/guestfs-actions.pod:5112
12967 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
12968 msgstr ""
12969
12970 # type: =head2
12971 #: ../src/guestfs-actions.pod:5116
12972 msgid "guestfs_touch"
12973 msgstr ""
12974
12975 # type: verbatim
12976 #: ../src/guestfs-actions.pod:5118
12977 #, no-wrap
12978 msgid ""
12979 " int guestfs_touch (guestfs_h *g,\n"
12980 "\t\tconst char *path);\n"
12981 "\n"
12982 msgstr ""
12983
12984 # type: textblock
12985 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3968
12986 msgid ""
12987 "Touch acts like the L<touch(1)> command.  It can be used to update the "
12988 "timestamps on a file, or, if the file does not exist, to create a new "
12989 "zero-length file."
12990 msgstr ""
12991
12992 # type: textblock
12993 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3972
12994 msgid ""
12995 "This command only works on regular files, and will fail on other file types "
12996 "such as directories, symbolic links, block special etc."
12997 msgstr ""
12998
12999 # type: =head2
13000 #: ../src/guestfs-actions.pod:5130
13001 msgid "guestfs_truncate"
13002 msgstr ""
13003
13004 # type: verbatim
13005 #: ../src/guestfs-actions.pod:5132
13006 #, no-wrap
13007 msgid ""
13008 " int guestfs_truncate (guestfs_h *g,\n"
13009 "\t\tconst char *path);\n"
13010 "\n"
13011 msgstr ""
13012
13013 # type: textblock
13014 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3979
13015 msgid ""
13016 "This command truncates C<path> to a zero-length file.  The file must exist "
13017 "already."
13018 msgstr ""
13019
13020 # type: =head2
13021 #: ../src/guestfs-actions.pod:5140
13022 msgid "guestfs_truncate_size"
13023 msgstr ""
13024
13025 # type: verbatim
13026 #: ../src/guestfs-actions.pod:5142
13027 #, no-wrap
13028 msgid ""
13029 " int guestfs_truncate_size (guestfs_h *g,\n"
13030 "\t\tconst char *path,\n"
13031 "\t\tint64_t size);\n"
13032 "\n"
13033 msgstr ""
13034
13035 # type: textblock
13036 #: ../src/guestfs-actions.pod:5146 ../fish/guestfish-actions.pod:3986
13037 msgid ""
13038 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13039 "already."
13040 msgstr ""
13041
13042 # type: textblock
13043 #: ../src/guestfs-actions.pod:5149
13044 msgid ""
13045 "If the current file size is less than C<size> then the file is extended to "
13046 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13047 "blocks are not allocated for the file until you write to it).  To create a "
13048 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13049 msgstr ""
13050
13051 # type: =head2
13052 #: ../src/guestfs-actions.pod:5157
13053 msgid "guestfs_tune2fs_l"
13054 msgstr ""
13055
13056 # type: verbatim
13057 #: ../src/guestfs-actions.pod:5159
13058 #, no-wrap
13059 msgid ""
13060 " char **guestfs_tune2fs_l (guestfs_h *g,\n"
13061 "\t\tconst char *device);\n"
13062 "\n"
13063 msgstr ""
13064
13065 # type: textblock
13066 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:3999
13067 msgid ""
13068 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13069 "C<device>."
13070 msgstr ""
13071
13072 # type: textblock
13073 #: ../src/guestfs-actions.pod:5165 ../fish/guestfish-actions.pod:4002
13074 msgid ""
13075 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13076 "for more details.  The list of fields returned isn't clearly defined, and "
13077 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13078 "and the filesystem itself."
13079 msgstr ""
13080
13081 # type: =head2
13082 #: ../src/guestfs-actions.pod:5176
13083 msgid "guestfs_txz_in"
13084 msgstr ""
13085
13086 # type: verbatim
13087 #: ../src/guestfs-actions.pod:5178
13088 #, no-wrap
13089 msgid ""
13090 " int guestfs_txz_in (guestfs_h *g,\n"
13091 "\t\tconst char *tarball,\n"
13092 "\t\tconst char *directory);\n"
13093 "\n"
13094 msgstr ""
13095
13096 # type: textblock
13097 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:4011
13098 msgid ""
13099 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13100 "tar file) into C<directory>."
13101 msgstr ""
13102
13103 # type: =head2
13104 #: ../src/guestfs-actions.pod:5187
13105 msgid "guestfs_txz_out"
13106 msgstr ""
13107
13108 # type: verbatim
13109 #: ../src/guestfs-actions.pod:5189
13110 #, no-wrap
13111 msgid ""
13112 " int guestfs_txz_out (guestfs_h *g,\n"
13113 "\t\tconst char *directory,\n"
13114 "\t\tconst char *tarball);\n"
13115 "\n"
13116 msgstr ""
13117
13118 # type: textblock
13119 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:4020
13120 msgid ""
13121 "This command packs the contents of C<directory> and downloads it to local "
13122 "file C<tarball> (as an xz compressed tar archive)."
13123 msgstr ""
13124
13125 # type: =head2
13126 #: ../src/guestfs-actions.pod:5198
13127 msgid "guestfs_umask"
13128 msgstr ""
13129
13130 # type: verbatim
13131 #: ../src/guestfs-actions.pod:5200
13132 #, no-wrap
13133 msgid ""
13134 " int guestfs_umask (guestfs_h *g,\n"
13135 "\t\tint mask);\n"
13136 "\n"
13137 msgstr ""
13138
13139 # type: textblock
13140 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:4029
13141 msgid ""
13142 "This function sets the mask used for creating new files and device nodes to "
13143 "C<mask & 0777>."
13144 msgstr ""
13145
13146 # type: textblock
13147 #: ../src/guestfs-actions.pod:5206 ../fish/guestfish-actions.pod:4032
13148 msgid ""
13149 "Typical umask values would be C<022> which creates new files with "
13150 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13151 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13152 msgstr ""
13153
13154 # type: textblock
13155 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:4037
13156 msgid ""
13157 "The default umask is C<022>.  This is important because it means that "
13158 "directories and device nodes will be created with C<0644> or C<0755> mode "
13159 "even if you specify C<0777>."
13160 msgstr ""
13161
13162 # type: textblock
13163 #: ../src/guestfs-actions.pod:5215
13164 msgid ""
13165 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13166 "C<guestfs_mkdir>."
13167 msgstr ""
13168
13169 # type: textblock
13170 #: ../src/guestfs-actions.pod:5218 ../fish/guestfish-actions.pod:4044
13171 msgid "This call returns the previous umask."
13172 msgstr ""
13173
13174 # type: =head2
13175 #: ../src/guestfs-actions.pod:5222
13176 msgid "guestfs_umount"
13177 msgstr ""
13178
13179 # type: verbatim
13180 #: ../src/guestfs-actions.pod:5224
13181 #, no-wrap
13182 msgid ""
13183 " int guestfs_umount (guestfs_h *g,\n"
13184 "\t\tconst char *pathordevice);\n"
13185 "\n"
13186 msgstr ""
13187
13188 # type: textblock
13189 #: ../src/guestfs-actions.pod:5227 ../fish/guestfish-actions.pod:4052
13190 msgid ""
13191 "This unmounts the given filesystem.  The filesystem may be specified either "
13192 "by its mountpoint (path) or the device which contains the filesystem."
13193 msgstr ""
13194
13195 # type: =head2
13196 #: ../src/guestfs-actions.pod:5233
13197 msgid "guestfs_umount_all"
13198 msgstr ""
13199
13200 # type: verbatim
13201 #: ../src/guestfs-actions.pod:5235
13202 #, no-wrap
13203 msgid ""
13204 " int guestfs_umount_all (guestfs_h *g);\n"
13205 "\n"
13206 msgstr ""
13207
13208 # type: textblock
13209 #: ../src/guestfs-actions.pod:5237 ../fish/guestfish-actions.pod:4062
13210 msgid "This unmounts all mounted filesystems."
13211 msgstr ""
13212
13213 # type: textblock
13214 #: ../src/guestfs-actions.pod:5239 ../fish/guestfish-actions.pod:4064
13215 msgid "Some internal mounts are not unmounted by this call."
13216 msgstr ""
13217
13218 # type: =head2
13219 #: ../src/guestfs-actions.pod:5243
13220 msgid "guestfs_upload"
13221 msgstr ""
13222
13223 # type: verbatim
13224 #: ../src/guestfs-actions.pod:5245
13225 #, no-wrap
13226 msgid ""
13227 " int guestfs_upload (guestfs_h *g,\n"
13228 "\t\tconst char *filename,\n"
13229 "\t\tconst char *remotefilename);\n"
13230 "\n"
13231 msgstr ""
13232
13233 # type: textblock
13234 #: ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:4070 ../fish/guestfish-actions.pod:4083
13235 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13236 msgstr ""
13237
13238 # type: textblock
13239 #: ../src/guestfs-actions.pod:5254
13240 msgid "See also C<guestfs_download>."
13241 msgstr ""
13242
13243 # type: =head2
13244 #: ../src/guestfs-actions.pod:5258
13245 msgid "guestfs_upload_offset"
13246 msgstr ""
13247
13248 # type: verbatim
13249 #: ../src/guestfs-actions.pod:5260
13250 #, no-wrap
13251 msgid ""
13252 " int guestfs_upload_offset (guestfs_h *g,\n"
13253 "\t\tconst char *filename,\n"
13254 "\t\tconst char *remotefilename,\n"
13255 "\t\tint64_t offset);\n"
13256 "\n"
13257 msgstr ""
13258
13259 # type: textblock
13260 #: ../src/guestfs-actions.pod:5268 ../fish/guestfish-actions.pod:4086
13261 msgid ""
13262 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13263 "The intention is to overwrite parts of existing files or devices, although "
13264 "if a non-existant file is specified then it is created with a \"hole\" "
13265 "before C<offset>.  The size of the data written is implicit in the size of "
13266 "the source C<filename>."
13267 msgstr ""
13268
13269 # type: textblock
13270 #: ../src/guestfs-actions.pod:5275
13271 msgid ""
13272 "Note that there is no limit on the amount of data that can be uploaded with "
13273 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13274 "full amount unless an error occurs."
13275 msgstr ""
13276
13277 # type: textblock
13278 #: ../src/guestfs-actions.pod:5280
13279 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13280 msgstr ""
13281
13282 # type: =head2
13283 #: ../src/guestfs-actions.pod:5284
13284 msgid "guestfs_utimens"
13285 msgstr ""
13286
13287 # type: verbatim
13288 #: ../src/guestfs-actions.pod:5286
13289 #, no-wrap
13290 msgid ""
13291 " int guestfs_utimens (guestfs_h *g,\n"
13292 "\t\tconst char *path,\n"
13293 "\t\tint64_t atsecs,\n"
13294 "\t\tint64_t atnsecs,\n"
13295 "\t\tint64_t mtsecs,\n"
13296 "\t\tint64_t mtnsecs);\n"
13297 "\n"
13298 msgstr ""
13299
13300 # type: textblock
13301 #: ../src/guestfs-actions.pod:5293 ../fish/guestfish-actions.pod:4106
13302 msgid "This command sets the timestamps of a file with nanosecond precision."
13303 msgstr ""
13304
13305 # type: textblock
13306 #: ../src/guestfs-actions.pod:5296 ../fish/guestfish-actions.pod:4109
13307 msgid ""
13308 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13309 "from the epoch."
13310 msgstr ""
13311
13312 # type: textblock
13313 #: ../src/guestfs-actions.pod:5299 ../fish/guestfish-actions.pod:4112
13314 msgid ""
13315 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13316 "nanoseconds from the epoch."
13317 msgstr ""
13318
13319 # type: textblock
13320 #: ../src/guestfs-actions.pod:5302 ../fish/guestfish-actions.pod:4115
13321 msgid ""
13322 "If the C<*nsecs> field contains the special value C<-1> then the "
13323 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13324 "ignored in this case)."
13325 msgstr ""
13326
13327 # type: textblock
13328 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:4119
13329 msgid ""
13330 "If the C<*nsecs> field contains the special value C<-2> then the "
13331 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13332 "in this case)."
13333 msgstr ""
13334
13335 # type: =head2
13336 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-structs.pod:175
13337 msgid "guestfs_version"
13338 msgstr ""
13339
13340 # type: verbatim
13341 #: ../src/guestfs-actions.pod:5314
13342 #, no-wrap
13343 msgid ""
13344 " struct guestfs_version *guestfs_version (guestfs_h *g);\n"
13345 "\n"
13346 msgstr ""
13347
13348 # type: textblock
13349 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:4127
13350 msgid "Return the libguestfs version number that the program is linked against."
13351 msgstr ""
13352
13353 # type: textblock
13354 #: ../src/guestfs-actions.pod:5319 ../fish/guestfish-actions.pod:4130
13355 msgid ""
13356 "Note that because of dynamic linking this is not necessarily the version of "
13357 "libguestfs that you compiled against.  You can compile the program, and then "
13358 "at runtime dynamically link against a completely different C<libguestfs.so> "
13359 "library."
13360 msgstr ""
13361
13362 # type: textblock
13363 #: ../src/guestfs-actions.pod:5324 ../fish/guestfish-actions.pod:4135
13364 msgid ""
13365 "This call was added in version C<1.0.58>.  In previous versions of "
13366 "libguestfs there was no way to get the version number.  From C code you can "
13367 "use dynamic linker functions to find out if this symbol exists (if it "
13368 "doesn't, then it's an earlier version)."
13369 msgstr ""
13370
13371 # type: textblock
13372 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:4141
13373 msgid ""
13374 "The call returns a structure with four elements.  The first three (C<major>, "
13375 "C<minor> and C<release>) are numbers and correspond to the usual version "
13376 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13377 "but may be used for distro-specific information."
13378 msgstr ""
13379
13380 # type: textblock
13381 #: ../src/guestfs-actions.pod:5336 ../fish/guestfish-actions.pod:4147
13382 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
13383 msgstr ""
13384
13385 # type: textblock
13386 #: ../src/guestfs-actions.pod:5339 ../fish/guestfish-actions.pod:4150
13387 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13388 msgstr ""
13389
13390 # type: textblock
13391 #: ../src/guestfs-actions.pod:5341
13392 msgid ""
13393 "I<Note:> Don't use this call to test for availability of features.  In "
13394 "enterprise distributions we backport features from later versions into "
13395 "earlier versions, making this an unreliable way to test for features.  Use "
13396 "C<guestfs_available> instead."
13397 msgstr ""
13398
13399 # type: textblock
13400 #: ../src/guestfs-actions.pod:5347
13401 msgid ""
13402 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13403 "error.  I<The caller must call C<guestfs_free_version> after use>."
13404 msgstr ""
13405
13406 # type: =head2
13407 #: ../src/guestfs-actions.pod:5351
13408 msgid "guestfs_vfs_label"
13409 msgstr ""
13410
13411 # type: verbatim
13412 #: ../src/guestfs-actions.pod:5353
13413 #, no-wrap
13414 msgid ""
13415 " char *guestfs_vfs_label (guestfs_h *g,\n"
13416 "\t\tconst char *device);\n"
13417 "\n"
13418 msgstr ""
13419
13420 # type: textblock
13421 #: ../src/guestfs-actions.pod:5356 ../fish/guestfish-actions.pod:4162
13422 msgid "This returns the filesystem label of the filesystem on C<device>."
13423 msgstr ""
13424
13425 # type: textblock
13426 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:4165
13427 msgid "If the filesystem is unlabeled, this returns the empty string."
13428 msgstr ""
13429
13430 # type: textblock
13431 #: ../src/guestfs-actions.pod:5361
13432 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13433 msgstr ""
13434
13435 # type: =head2
13436 #: ../src/guestfs-actions.pod:5366
13437 msgid "guestfs_vfs_type"
13438 msgstr ""
13439
13440 # type: verbatim
13441 #: ../src/guestfs-actions.pod:5368
13442 #, no-wrap
13443 msgid ""
13444 " char *guestfs_vfs_type (guestfs_h *g,\n"
13445 "\t\tconst char *device);\n"
13446 "\n"
13447 msgstr ""
13448
13449 # type: textblock
13450 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:4173
13451 msgid ""
13452 "This command gets the filesystem type corresponding to the filesystem on "
13453 "C<device>."
13454 msgstr ""
13455
13456 # type: textblock
13457 #: ../src/guestfs-actions.pod:5374 ../fish/guestfish-actions.pod:4176
13458 msgid ""
13459 "For most filesystems, the result is the name of the Linux VFS module which "
13460 "would be used to mount this filesystem if you mounted it without specifying "
13461 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13462 msgstr ""
13463
13464 # type: =head2
13465 #: ../src/guestfs-actions.pod:5382
13466 msgid "guestfs_vfs_uuid"
13467 msgstr ""
13468
13469 # type: verbatim
13470 #: ../src/guestfs-actions.pod:5384
13471 #, no-wrap
13472 msgid ""
13473 " char *guestfs_vfs_uuid (guestfs_h *g,\n"
13474 "\t\tconst char *device);\n"
13475 "\n"
13476 msgstr ""
13477
13478 # type: textblock
13479 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:4185
13480 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13481 msgstr ""
13482
13483 # type: textblock
13484 #: ../src/guestfs-actions.pod:5390 ../fish/guestfish-actions.pod:4188
13485 msgid "If the filesystem does not have a UUID, this returns the empty string."
13486 msgstr ""
13487
13488 # type: textblock
13489 #: ../src/guestfs-actions.pod:5392
13490 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13491 msgstr ""
13492
13493 # type: =head2
13494 #: ../src/guestfs-actions.pod:5397
13495 msgid "guestfs_vg_activate"
13496 msgstr ""
13497
13498 # type: verbatim
13499 #: ../src/guestfs-actions.pod:5399
13500 #, no-wrap
13501 msgid ""
13502 " int guestfs_vg_activate (guestfs_h *g,\n"
13503 "\t\tint activate,\n"
13504 "\t\tchar *const *volgroups);\n"
13505 "\n"
13506 msgstr ""
13507
13508 # type: textblock
13509 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:4196
13510 msgid ""
13511 "This command activates or (if C<activate> is false) deactivates all logical "
13512 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13513 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13514 "deactivated, then those devices disappear."
13515 msgstr ""
13516
13517 # type: textblock
13518 #: ../src/guestfs-actions.pod:5409 ../fish/guestfish-actions.pod:4202
13519 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13520 msgstr ""
13521
13522 # type: textblock
13523 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:4204
13524 msgid ""
13525 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13526 "activated or deactivated."
13527 msgstr ""
13528
13529 # type: =head2
13530 #: ../src/guestfs-actions.pod:5416
13531 msgid "guestfs_vg_activate_all"
13532 msgstr ""
13533
13534 # type: verbatim
13535 #: ../src/guestfs-actions.pod:5418
13536 #, no-wrap
13537 msgid ""
13538 " int guestfs_vg_activate_all (guestfs_h *g,\n"
13539 "\t\tint activate);\n"
13540 "\n"
13541 msgstr ""
13542
13543 # type: textblock
13544 #: ../src/guestfs-actions.pod:5421 ../fish/guestfish-actions.pod:4211
13545 msgid ""
13546 "This command activates or (if C<activate> is false) deactivates all logical "
13547 "volumes in all volume groups.  If activated, then they are made known to the "
13548 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13549 "those devices disappear."
13550 msgstr ""
13551
13552 # type: textblock
13553 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:4217
13554 msgid "This command is the same as running C<vgchange -a y|n>"
13555 msgstr ""
13556
13557 # type: =head2
13558 #: ../src/guestfs-actions.pod:5431
13559 msgid "guestfs_vgcreate"
13560 msgstr ""
13561
13562 # type: verbatim
13563 #: ../src/guestfs-actions.pod:5433
13564 #, no-wrap
13565 msgid ""
13566 " int guestfs_vgcreate (guestfs_h *g,\n"
13567 "\t\tconst char *volgroup,\n"
13568 "\t\tchar *const *physvols);\n"
13569 "\n"
13570 msgstr ""
13571
13572 # type: textblock
13573 #: ../src/guestfs-actions.pod:5437 ../fish/guestfish-actions.pod:4223
13574 msgid ""
13575 "This creates an LVM volume group called C<volgroup> from the non-empty list "
13576 "of physical volumes C<physvols>."
13577 msgstr ""
13578
13579 # type: =head2
13580 #: ../src/guestfs-actions.pod:5442
13581 msgid "guestfs_vglvuuids"
13582 msgstr ""
13583
13584 # type: verbatim
13585 #: ../src/guestfs-actions.pod:5444
13586 #, no-wrap
13587 msgid ""
13588 " char **guestfs_vglvuuids (guestfs_h *g,\n"
13589 "\t\tconst char *vgname);\n"
13590 "\n"
13591 msgstr ""
13592
13593 # type: textblock
13594 #: ../src/guestfs-actions.pod:5447 ../fish/guestfish-actions.pod:4230
13595 msgid ""
13596 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
13597 "volumes created in this volume group."
13598 msgstr ""
13599
13600 # type: textblock
13601 #: ../src/guestfs-actions.pod:5450
13602 msgid ""
13603 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
13604 "associate logical volumes and volume groups."
13605 msgstr ""
13606
13607 # type: textblock
13608 #: ../src/guestfs-actions.pod:5453
13609 msgid "See also C<guestfs_vgpvuuids>."
13610 msgstr ""
13611
13612 # type: =head2
13613 #: ../src/guestfs-actions.pod:5459
13614 msgid "guestfs_vgpvuuids"
13615 msgstr ""
13616
13617 # type: verbatim
13618 #: ../src/guestfs-actions.pod:5461
13619 #, no-wrap
13620 msgid ""
13621 " char **guestfs_vgpvuuids (guestfs_h *g,\n"
13622 "\t\tconst char *vgname);\n"
13623 "\n"
13624 msgstr ""
13625
13626 # type: textblock
13627 #: ../src/guestfs-actions.pod:5464 ../fish/guestfish-actions.pod:4242
13628 msgid ""
13629 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
13630 "volumes that this volume group resides on."
13631 msgstr ""
13632
13633 # type: textblock
13634 #: ../src/guestfs-actions.pod:5467
13635 msgid ""
13636 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
13637 "associate physical volumes and volume groups."
13638 msgstr ""
13639
13640 # type: textblock
13641 #: ../src/guestfs-actions.pod:5470
13642 msgid "See also C<guestfs_vglvuuids>."
13643 msgstr ""
13644
13645 # type: =head2
13646 #: ../src/guestfs-actions.pod:5476
13647 msgid "guestfs_vgremove"
13648 msgstr ""
13649
13650 # type: verbatim
13651 #: ../src/guestfs-actions.pod:5478
13652 #, no-wrap
13653 msgid ""
13654 " int guestfs_vgremove (guestfs_h *g,\n"
13655 "\t\tconst char *vgname);\n"
13656 "\n"
13657 msgstr ""
13658
13659 # type: textblock
13660 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:4254
13661 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
13662 msgstr ""
13663
13664 # type: textblock
13665 #: ../src/guestfs-actions.pod:5483 ../fish/guestfish-actions.pod:4256
13666 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
13667 msgstr ""
13668
13669 # type: =head2
13670 #: ../src/guestfs-actions.pod:5488
13671 msgid "guestfs_vgrename"
13672 msgstr ""
13673
13674 # type: verbatim
13675 #: ../src/guestfs-actions.pod:5490
13676 #, no-wrap
13677 msgid ""
13678 " int guestfs_vgrename (guestfs_h *g,\n"
13679 "\t\tconst char *volgroup,\n"
13680 "\t\tconst char *newvolgroup);\n"
13681 "\n"
13682 msgstr ""
13683
13684 # type: textblock
13685 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:4263
13686 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
13687 msgstr ""
13688
13689 # type: =head2
13690 #: ../src/guestfs-actions.pod:5498
13691 msgid "guestfs_vgs"
13692 msgstr ""
13693
13694 # type: verbatim
13695 #: ../src/guestfs-actions.pod:5500
13696 #, no-wrap
13697 msgid ""
13698 " char **guestfs_vgs (guestfs_h *g);\n"
13699 "\n"
13700 msgstr ""
13701
13702 # type: textblock
13703 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:4269
13704 msgid ""
13705 "List all the volumes groups detected.  This is the equivalent of the "
13706 "L<vgs(8)> command."
13707 msgstr ""
13708
13709 # type: textblock
13710 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:4272
13711 msgid ""
13712 "This returns a list of just the volume group names that were detected "
13713 "(eg. C<VolGroup00>)."
13714 msgstr ""
13715
13716 # type: textblock
13717 #: ../src/guestfs-actions.pod:5508
13718 msgid "See also C<guestfs_vgs_full>."
13719 msgstr ""
13720
13721 # type: =head2
13722 #: ../src/guestfs-actions.pod:5514
13723 msgid "guestfs_vgs_full"
13724 msgstr ""
13725
13726 # type: verbatim
13727 #: ../src/guestfs-actions.pod:5516
13728 #, no-wrap
13729 msgid ""
13730 " struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *g);\n"
13731 "\n"
13732 msgstr ""
13733
13734 # type: textblock
13735 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:4281
13736 msgid ""
13737 "List all the volumes groups detected.  This is the equivalent of the "
13738 "L<vgs(8)> command.  The \"full\" version includes all fields."
13739 msgstr ""
13740
13741 # type: textblock
13742 #: ../src/guestfs-actions.pod:5521
13743 msgid ""
13744 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
13745 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
13746 "must call C<guestfs_free_lvm_vg_list> after use>."
13747 msgstr ""
13748
13749 # type: =head2
13750 #: ../src/guestfs-actions.pod:5526
13751 msgid "guestfs_vgscan"
13752 msgstr ""
13753
13754 # type: verbatim
13755 #: ../src/guestfs-actions.pod:5528
13756 #, no-wrap
13757 msgid ""
13758 " int guestfs_vgscan (guestfs_h *g);\n"
13759 "\n"
13760 msgstr ""
13761
13762 # type: textblock
13763 #: ../src/guestfs-actions.pod:5530 ../fish/guestfish-actions.pod:4288
13764 msgid ""
13765 "This rescans all block devices and rebuilds the list of LVM physical "
13766 "volumes, volume groups and logical volumes."
13767 msgstr ""
13768
13769 # type: =head2
13770 #: ../src/guestfs-actions.pod:5535
13771 msgid "guestfs_vguuid"
13772 msgstr ""
13773
13774 # type: verbatim
13775 #: ../src/guestfs-actions.pod:5537
13776 #, no-wrap
13777 msgid ""
13778 " char *guestfs_vguuid (guestfs_h *g,\n"
13779 "\t\tconst char *vgname);\n"
13780 "\n"
13781 msgstr ""
13782
13783 # type: textblock
13784 #: ../src/guestfs-actions.pod:5540 ../fish/guestfish-actions.pod:4295
13785 msgid "This command returns the UUID of the LVM VG named C<vgname>."
13786 msgstr ""
13787
13788 # type: =head2
13789 #: ../src/guestfs-actions.pod:5545
13790 msgid "guestfs_wait_ready"
13791 msgstr ""
13792
13793 # type: verbatim
13794 #: ../src/guestfs-actions.pod:5547
13795 #, no-wrap
13796 msgid ""
13797 " int guestfs_wait_ready (guestfs_h *g);\n"
13798 "\n"
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:5549
13803 msgid "This function is a no op."
13804 msgstr ""
13805
13806 # type: textblock
13807 #: ../src/guestfs-actions.pod:5551
13808 msgid ""
13809 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
13810 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
13811 "is no longer necessary because C<guestfs_launch> now does the waiting."
13812 msgstr ""
13813
13814 # type: textblock
13815 #: ../src/guestfs-actions.pod:5556
13816 msgid ""
13817 "If you see any calls to this function in code then you can just remove them, "
13818 "unless you want to retain compatibility with older versions of the API."
13819 msgstr ""
13820
13821 # type: =head2
13822 #: ../src/guestfs-actions.pod:5562
13823 msgid "guestfs_wc_c"
13824 msgstr ""
13825
13826 # type: verbatim
13827 #: ../src/guestfs-actions.pod:5564
13828 #, no-wrap
13829 msgid ""
13830 " int guestfs_wc_c (guestfs_h *g,\n"
13831 "\t\tconst char *path);\n"
13832 "\n"
13833 msgstr ""
13834
13835 # type: textblock
13836 #: ../src/guestfs-actions.pod:5567 ../fish/guestfish-actions.pod:4301
13837 msgid ""
13838 "This command counts the characters in a file, using the C<wc -c> external "
13839 "command."
13840 msgstr ""
13841
13842 # type: =head2
13843 #: ../src/guestfs-actions.pod:5572
13844 msgid "guestfs_wc_l"
13845 msgstr ""
13846
13847 # type: verbatim
13848 #: ../src/guestfs-actions.pod:5574
13849 #, no-wrap
13850 msgid ""
13851 " int guestfs_wc_l (guestfs_h *g,\n"
13852 "\t\tconst char *path);\n"
13853 "\n"
13854 msgstr ""
13855
13856 # type: textblock
13857 #: ../src/guestfs-actions.pod:5577 ../fish/guestfish-actions.pod:4308
13858 msgid ""
13859 "This command counts the lines in a file, using the C<wc -l> external "
13860 "command."
13861 msgstr ""
13862
13863 # type: =head2
13864 #: ../src/guestfs-actions.pod:5582
13865 msgid "guestfs_wc_w"
13866 msgstr ""
13867
13868 # type: verbatim
13869 #: ../src/guestfs-actions.pod:5584
13870 #, no-wrap
13871 msgid ""
13872 " int guestfs_wc_w (guestfs_h *g,\n"
13873 "\t\tconst char *path);\n"
13874 "\n"
13875 msgstr ""
13876
13877 # type: textblock
13878 #: ../src/guestfs-actions.pod:5587 ../fish/guestfish-actions.pod:4315
13879 msgid ""
13880 "This command counts the words in a file, using the C<wc -w> external "
13881 "command."
13882 msgstr ""
13883
13884 # type: =head2
13885 #: ../src/guestfs-actions.pod:5592
13886 msgid "guestfs_write"
13887 msgstr ""
13888
13889 # type: verbatim
13890 #: ../src/guestfs-actions.pod:5594
13891 #, no-wrap
13892 msgid ""
13893 " int guestfs_write (guestfs_h *g,\n"
13894 "\t\tconst char *path,\n"
13895 "\t\tconst char *content,\n"
13896 "\t\tsize_t content_size);\n"
13897 "\n"
13898 msgstr ""
13899
13900 # type: textblock
13901 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:4322
13902 msgid ""
13903 "This call creates a file called C<path>.  The content of the file is the "
13904 "string C<content> (which can contain any 8 bit data)."
13905 msgstr ""
13906
13907 # type: =head2
13908 #: ../src/guestfs-actions.pod:5607
13909 msgid "guestfs_write_file"
13910 msgstr ""
13911
13912 # type: verbatim
13913 #: ../src/guestfs-actions.pod:5609
13914 #, no-wrap
13915 msgid ""
13916 " int guestfs_write_file (guestfs_h *g,\n"
13917 "\t\tconst char *path,\n"
13918 "\t\tconst char *content,\n"
13919 "\t\tint size);\n"
13920 "\n"
13921 msgstr ""
13922
13923 # type: textblock
13924 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:4332
13925 msgid ""
13926 "This call creates a file called C<path>.  The contents of the file is the "
13927 "string C<content> (which can contain any 8 bit data), with length C<size>."
13928 msgstr ""
13929
13930 # type: textblock
13931 #: ../src/guestfs-actions.pod:5618 ../fish/guestfish-actions.pod:4336
13932 msgid ""
13933 "As a special case, if C<size> is C<0> then the length is calculated using "
13934 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
13935 msgstr ""
13936
13937 # type: textblock
13938 #: ../src/guestfs-actions.pod:5622 ../fish/guestfish-actions.pod:4340
13939 msgid ""
13940 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
13941 "I<not> work, even if the length is specified."
13942 msgstr ""
13943
13944 # type: textblock
13945 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:4346
13946 msgid "This function is deprecated.  In new code, use the C<write> call instead."
13947 msgstr ""
13948
13949 # type: =head2
13950 #: ../src/guestfs-actions.pod:5637
13951 msgid "guestfs_zegrep"
13952 msgstr ""
13953
13954 # type: verbatim
13955 #: ../src/guestfs-actions.pod:5639
13956 #, no-wrap
13957 msgid ""
13958 " char **guestfs_zegrep (guestfs_h *g,\n"
13959 "\t\tconst char *regex,\n"
13960 "\t\tconst char *path);\n"
13961 "\n"
13962 msgstr ""
13963
13964 # type: textblock
13965 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:4357
13966 msgid "This calls the external C<zegrep> program and returns the matching lines."
13967 msgstr ""
13968
13969 # type: =head2
13970 #: ../src/guestfs-actions.pod:5653
13971 msgid "guestfs_zegrepi"
13972 msgstr ""
13973
13974 # type: verbatim
13975 #: ../src/guestfs-actions.pod:5655
13976 #, no-wrap
13977 msgid ""
13978 " char **guestfs_zegrepi (guestfs_h *g,\n"
13979 "\t\tconst char *regex,\n"
13980 "\t\tconst char *path);\n"
13981 "\n"
13982 msgstr ""
13983
13984 # type: textblock
13985 #: ../src/guestfs-actions.pod:5659 ../fish/guestfish-actions.pod:4367
13986 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
13987 msgstr ""
13988
13989 # type: =head2
13990 #: ../src/guestfs-actions.pod:5669
13991 msgid "guestfs_zero"
13992 msgstr ""
13993
13994 # type: verbatim
13995 #: ../src/guestfs-actions.pod:5671
13996 #, no-wrap
13997 msgid ""
13998 " int guestfs_zero (guestfs_h *g,\n"
13999 "\t\tconst char *device);\n"
14000 "\n"
14001 msgstr ""
14002
14003 # type: textblock
14004 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:4377
14005 msgid "This command writes zeroes over the first few blocks of C<device>."
14006 msgstr ""
14007
14008 # type: textblock
14009 #: ../src/guestfs-actions.pod:5676 ../fish/guestfish-actions.pod:4379
14010 msgid ""
14011 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14012 "securely wipe the device).  It should be sufficient to remove any partition "
14013 "tables, filesystem superblocks and so on."
14014 msgstr ""
14015
14016 # type: textblock
14017 #: ../src/guestfs-actions.pod:5680
14018 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14019 msgstr ""
14020
14021 # type: =head2
14022 #: ../src/guestfs-actions.pod:5689
14023 msgid "guestfs_zero_device"
14024 msgstr ""
14025
14026 # type: verbatim
14027 #: ../src/guestfs-actions.pod:5691
14028 #, no-wrap
14029 msgid ""
14030 " int guestfs_zero_device (guestfs_h *g,\n"
14031 "\t\tconst char *device);\n"
14032 "\n"
14033 msgstr ""
14034
14035 # type: textblock
14036 #: ../src/guestfs-actions.pod:5694
14037 msgid ""
14038 "This command writes zeroes over the entire C<device>.  Compare with "
14039 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14040 msgstr ""
14041
14042 # type: =head2
14043 #: ../src/guestfs-actions.pod:5708
14044 msgid "guestfs_zerofree"
14045 msgstr ""
14046
14047 # type: verbatim
14048 #: ../src/guestfs-actions.pod:5710
14049 #, no-wrap
14050 msgid ""
14051 " int guestfs_zerofree (guestfs_h *g,\n"
14052 "\t\tconst char *device);\n"
14053 "\n"
14054 msgstr ""
14055
14056 # type: textblock
14057 #: ../src/guestfs-actions.pod:5713 ../fish/guestfish-actions.pod:4400
14058 msgid ""
14059 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14060 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14061 "possible to compress the filesystem more effectively."
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5718 ../fish/guestfish-actions.pod:4405
14066 msgid "You should B<not> run this program if the filesystem is mounted."
14067 msgstr ""
14068
14069 # type: textblock
14070 #: ../src/guestfs-actions.pod:5721 ../fish/guestfish-actions.pod:4408
14071 msgid ""
14072 "It is possible that using this program can damage the filesystem or data on "
14073 "the filesystem."
14074 msgstr ""
14075
14076 # type: =head2
14077 #: ../src/guestfs-actions.pod:5726
14078 msgid "guestfs_zfgrep"
14079 msgstr ""
14080
14081 # type: verbatim
14082 #: ../src/guestfs-actions.pod:5728
14083 #, no-wrap
14084 msgid ""
14085 " char **guestfs_zfgrep (guestfs_h *g,\n"
14086 "\t\tconst char *pattern,\n"
14087 "\t\tconst char *path);\n"
14088 "\n"
14089 msgstr ""
14090
14091 # type: textblock
14092 #: ../src/guestfs-actions.pod:5732 ../fish/guestfish-actions.pod:4415
14093 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14094 msgstr ""
14095
14096 # type: =head2
14097 #: ../src/guestfs-actions.pod:5742
14098 msgid "guestfs_zfgrepi"
14099 msgstr ""
14100
14101 # type: verbatim
14102 #: ../src/guestfs-actions.pod:5744
14103 #, no-wrap
14104 msgid ""
14105 " char **guestfs_zfgrepi (guestfs_h *g,\n"
14106 "\t\tconst char *pattern,\n"
14107 "\t\tconst char *path);\n"
14108 "\n"
14109 msgstr ""
14110
14111 # type: textblock
14112 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:4425
14113 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14114 msgstr ""
14115
14116 # type: =head2
14117 #: ../src/guestfs-actions.pod:5758
14118 msgid "guestfs_zfile"
14119 msgstr ""
14120
14121 # type: verbatim
14122 #: ../src/guestfs-actions.pod:5760
14123 #, no-wrap
14124 msgid ""
14125 " char *guestfs_zfile (guestfs_h *g,\n"
14126 "\t\tconst char *meth,\n"
14127 "\t\tconst char *path);\n"
14128 "\n"
14129 msgstr ""
14130
14131 # type: textblock
14132 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:4435
14133 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14134 msgstr ""
14135
14136 # type: textblock
14137 #: ../src/guestfs-actions.pod:5767 ../fish/guestfish-actions.pod:4438
14138 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14139 msgstr ""
14140
14141 # type: textblock
14142 #: ../src/guestfs-actions.pod:5769
14143 msgid ""
14144 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14145 "files."
14146 msgstr ""
14147
14148 # type: textblock
14149 #: ../src/guestfs-actions.pod:5775 ../fish/guestfish-actions.pod:4443
14150 msgid "This function is deprecated.  In new code, use the C<file> call instead."
14151 msgstr ""
14152
14153 # type: =head2
14154 #: ../src/guestfs-actions.pod:5782
14155 msgid "guestfs_zgrep"
14156 msgstr ""
14157
14158 # type: verbatim
14159 #: ../src/guestfs-actions.pod:5784
14160 #, no-wrap
14161 msgid ""
14162 " char **guestfs_zgrep (guestfs_h *g,\n"
14163 "\t\tconst char *regex,\n"
14164 "\t\tconst char *path);\n"
14165 "\n"
14166 msgstr ""
14167
14168 # type: textblock
14169 #: ../src/guestfs-actions.pod:5788 ../fish/guestfish-actions.pod:4454
14170 msgid "This calls the external C<zgrep> program and returns the matching lines."
14171 msgstr ""
14172
14173 # type: =head2
14174 #: ../src/guestfs-actions.pod:5798
14175 msgid "guestfs_zgrepi"
14176 msgstr ""
14177
14178 # type: verbatim
14179 #: ../src/guestfs-actions.pod:5800
14180 #, no-wrap
14181 msgid ""
14182 " char **guestfs_zgrepi (guestfs_h *g,\n"
14183 "\t\tconst char *regex,\n"
14184 "\t\tconst char *path);\n"
14185 "\n"
14186 msgstr ""
14187
14188 # type: textblock
14189 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:4464
14190 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14191 msgstr ""
14192
14193 # type: =item
14194 #: ../src/guestfs-availability.pod:3
14195 msgid "B<augeas>"
14196 msgstr ""
14197
14198 # type: textblock
14199 #: ../src/guestfs-availability.pod:5
14200 msgid ""
14201 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
14202 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
14203 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
14204 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
14205 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
14206 msgstr ""
14207
14208 # type: =item
14209 #: ../src/guestfs-availability.pod:21
14210 msgid "B<inotify>"
14211 msgstr ""
14212
14213 # type: textblock
14214 #: ../src/guestfs-availability.pod:23
14215 msgid ""
14216 "The following functions: L</guestfs_inotify_add_watch> "
14217 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
14218 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14219 msgstr ""
14220
14221 # type: =item
14222 #: ../src/guestfs-availability.pod:31
14223 msgid "B<linuxfsuuid>"
14224 msgstr ""
14225
14226 # type: textblock
14227 #: ../src/guestfs-availability.pod:33
14228 msgid ""
14229 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
14230 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14231 msgstr ""
14232
14233 # type: =item
14234 #: ../src/guestfs-availability.pod:40
14235 msgid "B<linuxmodules>"
14236 msgstr ""
14237
14238 # type: textblock
14239 #: ../src/guestfs-availability.pod:42
14240 msgid "The following functions: L</guestfs_modprobe>"
14241 msgstr ""
14242
14243 # type: =item
14244 #: ../src/guestfs-availability.pod:45
14245 msgid "B<linuxxattrs>"
14246 msgstr ""
14247
14248 # type: textblock
14249 #: ../src/guestfs-availability.pod:47
14250 msgid ""
14251 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
14252 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
14253 "L</guestfs_removexattr> L</guestfs_setxattr>"
14254 msgstr ""
14255
14256 # type: =item
14257 #: ../src/guestfs-availability.pod:56
14258 msgid "B<luks>"
14259 msgstr ""
14260
14261 # type: textblock
14262 #: ../src/guestfs-availability.pod:58
14263 msgid ""
14264 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
14265 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
14266 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14267 msgstr ""
14268
14269 # type: =item
14270 #: ../src/guestfs-availability.pod:67
14271 msgid "B<lvm2>"
14272 msgstr ""
14273
14274 # type: textblock
14275 #: ../src/guestfs-availability.pod:69
14276 msgid ""
14277 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
14278 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
14279 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
14280 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
14281 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
14282 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
14283 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
14284 "L</guestfs_vgs_full>"
14285 msgstr ""
14286
14287 # type: =item
14288 #: ../src/guestfs-availability.pod:92
14289 msgid "B<mknod>"
14290 msgstr ""
14291
14292 # type: textblock
14293 #: ../src/guestfs-availability.pod:94
14294 msgid ""
14295 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
14296 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
14297 msgstr ""
14298
14299 # type: =item
14300 #: ../src/guestfs-availability.pod:100
14301 msgid "B<ntfs3g>"
14302 msgstr ""
14303
14304 # type: textblock
14305 #: ../src/guestfs-availability.pod:102
14306 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14307 msgstr ""
14308
14309 # type: =item
14310 #: ../src/guestfs-availability.pod:105
14311 msgid "B<ntfsprogs>"
14312 msgstr ""
14313
14314 # type: textblock
14315 #: ../src/guestfs-availability.pod:107
14316 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14317 msgstr ""
14318
14319 # type: =item
14320 #: ../src/guestfs-availability.pod:111
14321 msgid "B<realpath>"
14322 msgstr ""
14323
14324 # type: textblock
14325 #: ../src/guestfs-availability.pod:113
14326 msgid "The following functions: L</guestfs_realpath>"
14327 msgstr ""
14328
14329 # type: =item
14330 #: ../src/guestfs-availability.pod:116
14331 msgid "B<scrub>"
14332 msgstr ""
14333
14334 # type: textblock
14335 #: ../src/guestfs-availability.pod:118
14336 msgid ""
14337 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
14338 "L</guestfs_scrub_freespace>"
14339 msgstr ""
14340
14341 # type: =item
14342 #: ../src/guestfs-availability.pod:123
14343 msgid "B<selinux>"
14344 msgstr ""
14345
14346 # type: textblock
14347 #: ../src/guestfs-availability.pod:125
14348 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14349 msgstr ""
14350
14351 # type: =item
14352 #: ../src/guestfs-availability.pod:129
14353 msgid "B<xz>"
14354 msgstr ""
14355
14356 # type: textblock
14357 #: ../src/guestfs-availability.pod:131
14358 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14359 msgstr ""
14360
14361 # type: =item
14362 #: ../src/guestfs-availability.pod:135
14363 msgid "B<zerofree>"
14364 msgstr ""
14365
14366 # type: textblock
14367 #: ../src/guestfs-availability.pod:137
14368 msgid "The following functions: L</guestfs_zerofree>"
14369 msgstr ""
14370
14371 # type: =head2
14372 #: ../src/guestfs-structs.pod:1
14373 msgid "guestfs_int_bool"
14374 msgstr ""
14375
14376 # type: verbatim
14377 #: ../src/guestfs-structs.pod:3
14378 #, no-wrap
14379 msgid ""
14380 " struct guestfs_int_bool {\n"
14381 "   int32_t i;\n"
14382 "   int32_t b;\n"
14383 " };\n"
14384 " \n"
14385 msgstr ""
14386
14387 # type: verbatim
14388 #: ../src/guestfs-structs.pod:8
14389 #, no-wrap
14390 msgid ""
14391 " struct guestfs_int_bool_list {\n"
14392 "   uint32_t len; /* Number of elements in list. */\n"
14393 "   struct guestfs_int_bool *val; /* Elements. */\n"
14394 " };\n"
14395 " \n"
14396 msgstr ""
14397
14398 # type: verbatim
14399 #: ../src/guestfs-structs.pod:13
14400 #, no-wrap
14401 msgid ""
14402 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14403 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14404 "\n"
14405 msgstr ""
14406
14407 # type: =head2
14408 #: ../src/guestfs-structs.pod:16
14409 msgid "guestfs_lvm_pv"
14410 msgstr ""
14411
14412 # type: verbatim
14413 #: ../src/guestfs-structs.pod:18
14414 #, no-wrap
14415 msgid ""
14416 " struct guestfs_lvm_pv {\n"
14417 "   char *pv_name;\n"
14418 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14419 "*/\n"
14420 "   char pv_uuid[32];\n"
14421 "   char *pv_fmt;\n"
14422 "   uint64_t pv_size;\n"
14423 "   uint64_t dev_size;\n"
14424 "   uint64_t pv_free;\n"
14425 "   uint64_t pv_used;\n"
14426 "   char *pv_attr;\n"
14427 "   int64_t pv_pe_count;\n"
14428 "   int64_t pv_pe_alloc_count;\n"
14429 "   char *pv_tags;\n"
14430 "   uint64_t pe_start;\n"
14431 "   int64_t pv_mda_count;\n"
14432 "   uint64_t pv_mda_free;\n"
14433 " };\n"
14434 " \n"
14435 msgstr ""
14436
14437 # type: verbatim
14438 #: ../src/guestfs-structs.pod:36
14439 #, no-wrap
14440 msgid ""
14441 " struct guestfs_lvm_pv_list {\n"
14442 "   uint32_t len; /* Number of elements in list. */\n"
14443 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14444 " };\n"
14445 " \n"
14446 msgstr ""
14447
14448 # type: verbatim
14449 #: ../src/guestfs-structs.pod:41
14450 #, no-wrap
14451 msgid ""
14452 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14453 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14454 "\n"
14455 msgstr ""
14456
14457 # type: =head2
14458 #: ../src/guestfs-structs.pod:44
14459 msgid "guestfs_lvm_vg"
14460 msgstr ""
14461
14462 # type: verbatim
14463 #: ../src/guestfs-structs.pod:46
14464 #, no-wrap
14465 msgid ""
14466 " struct guestfs_lvm_vg {\n"
14467 "   char *vg_name;\n"
14468 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14469 "*/\n"
14470 "   char vg_uuid[32];\n"
14471 "   char *vg_fmt;\n"
14472 "   char *vg_attr;\n"
14473 "   uint64_t vg_size;\n"
14474 "   uint64_t vg_free;\n"
14475 "   char *vg_sysid;\n"
14476 "   uint64_t vg_extent_size;\n"
14477 "   int64_t vg_extent_count;\n"
14478 "   int64_t vg_free_count;\n"
14479 "   int64_t max_lv;\n"
14480 "   int64_t max_pv;\n"
14481 "   int64_t pv_count;\n"
14482 "   int64_t lv_count;\n"
14483 "   int64_t snap_count;\n"
14484 "   int64_t vg_seqno;\n"
14485 "   char *vg_tags;\n"
14486 "   int64_t vg_mda_count;\n"
14487 "   uint64_t vg_mda_free;\n"
14488 " };\n"
14489 " \n"
14490 msgstr ""
14491
14492 # type: verbatim
14493 #: ../src/guestfs-structs.pod:69
14494 #, no-wrap
14495 msgid ""
14496 " struct guestfs_lvm_vg_list {\n"
14497 "   uint32_t len; /* Number of elements in list. */\n"
14498 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14499 " };\n"
14500 " \n"
14501 msgstr ""
14502
14503 # type: verbatim
14504 #: ../src/guestfs-structs.pod:74
14505 #, no-wrap
14506 msgid ""
14507 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14508 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14509 "\n"
14510 msgstr ""
14511
14512 # type: =head2
14513 #: ../src/guestfs-structs.pod:77
14514 msgid "guestfs_lvm_lv"
14515 msgstr ""
14516
14517 # type: verbatim
14518 #: ../src/guestfs-structs.pod:79
14519 #, no-wrap
14520 msgid ""
14521 " struct guestfs_lvm_lv {\n"
14522 "   char *lv_name;\n"
14523 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14524 "*/\n"
14525 "   char lv_uuid[32];\n"
14526 "   char *lv_attr;\n"
14527 "   int64_t lv_major;\n"
14528 "   int64_t lv_minor;\n"
14529 "   int64_t lv_kernel_major;\n"
14530 "   int64_t lv_kernel_minor;\n"
14531 "   uint64_t lv_size;\n"
14532 "   int64_t seg_count;\n"
14533 "   char *origin;\n"
14534 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14535 "   float snap_percent;\n"
14536 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14537 "   float copy_percent;\n"
14538 "   char *move_pv;\n"
14539 "   char *lv_tags;\n"
14540 "   char *mirror_log;\n"
14541 "   char *modules;\n"
14542 " };\n"
14543 " \n"
14544 msgstr ""
14545
14546 # type: verbatim
14547 #: ../src/guestfs-structs.pod:101
14548 #, no-wrap
14549 msgid ""
14550 " struct guestfs_lvm_lv_list {\n"
14551 "   uint32_t len; /* Number of elements in list. */\n"
14552 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
14553 " };\n"
14554 " \n"
14555 msgstr ""
14556
14557 # type: verbatim
14558 #: ../src/guestfs-structs.pod:106
14559 #, no-wrap
14560 msgid ""
14561 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
14562 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
14563 "\n"
14564 msgstr ""
14565
14566 # type: verbatim
14567 #: ../src/guestfs-structs.pod:111
14568 #, no-wrap
14569 msgid ""
14570 " struct guestfs_stat {\n"
14571 "   int64_t dev;\n"
14572 "   int64_t ino;\n"
14573 "   int64_t mode;\n"
14574 "   int64_t nlink;\n"
14575 "   int64_t uid;\n"
14576 "   int64_t gid;\n"
14577 "   int64_t rdev;\n"
14578 "   int64_t size;\n"
14579 "   int64_t blksize;\n"
14580 "   int64_t blocks;\n"
14581 "   int64_t atime;\n"
14582 "   int64_t mtime;\n"
14583 "   int64_t ctime;\n"
14584 " };\n"
14585 " \n"
14586 msgstr ""
14587
14588 # type: verbatim
14589 #: ../src/guestfs-structs.pod:127
14590 #, no-wrap
14591 msgid ""
14592 " struct guestfs_stat_list {\n"
14593 "   uint32_t len; /* Number of elements in list. */\n"
14594 "   struct guestfs_stat *val; /* Elements. */\n"
14595 " };\n"
14596 " \n"
14597 msgstr ""
14598
14599 # type: verbatim
14600 #: ../src/guestfs-structs.pod:132
14601 #, no-wrap
14602 msgid ""
14603 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
14604 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
14605 "\n"
14606 msgstr ""
14607
14608 # type: verbatim
14609 #: ../src/guestfs-structs.pod:137
14610 #, no-wrap
14611 msgid ""
14612 " struct guestfs_statvfs {\n"
14613 "   int64_t bsize;\n"
14614 "   int64_t frsize;\n"
14615 "   int64_t blocks;\n"
14616 "   int64_t bfree;\n"
14617 "   int64_t bavail;\n"
14618 "   int64_t files;\n"
14619 "   int64_t ffree;\n"
14620 "   int64_t favail;\n"
14621 "   int64_t fsid;\n"
14622 "   int64_t flag;\n"
14623 "   int64_t namemax;\n"
14624 " };\n"
14625 " \n"
14626 msgstr ""
14627
14628 # type: verbatim
14629 #: ../src/guestfs-structs.pod:151
14630 #, no-wrap
14631 msgid ""
14632 " struct guestfs_statvfs_list {\n"
14633 "   uint32_t len; /* Number of elements in list. */\n"
14634 "   struct guestfs_statvfs *val; /* Elements. */\n"
14635 " };\n"
14636 " \n"
14637 msgstr ""
14638
14639 # type: verbatim
14640 #: ../src/guestfs-structs.pod:156
14641 #, no-wrap
14642 msgid ""
14643 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
14644 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
14645 "\n"
14646 msgstr ""
14647
14648 # type: =head2
14649 #: ../src/guestfs-structs.pod:159
14650 msgid "guestfs_dirent"
14651 msgstr ""
14652
14653 # type: verbatim
14654 #: ../src/guestfs-structs.pod:161
14655 #, no-wrap
14656 msgid ""
14657 " struct guestfs_dirent {\n"
14658 "   int64_t ino;\n"
14659 "   char ftyp;\n"
14660 "   char *name;\n"
14661 " };\n"
14662 " \n"
14663 msgstr ""
14664
14665 # type: verbatim
14666 #: ../src/guestfs-structs.pod:167
14667 #, no-wrap
14668 msgid ""
14669 " struct guestfs_dirent_list {\n"
14670 "   uint32_t len; /* Number of elements in list. */\n"
14671 "   struct guestfs_dirent *val; /* Elements. */\n"
14672 " };\n"
14673 " \n"
14674 msgstr ""
14675
14676 # type: verbatim
14677 #: ../src/guestfs-structs.pod:172
14678 #, no-wrap
14679 msgid ""
14680 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
14681 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
14682 "\n"
14683 msgstr ""
14684
14685 # type: verbatim
14686 #: ../src/guestfs-structs.pod:177
14687 #, no-wrap
14688 msgid ""
14689 " struct guestfs_version {\n"
14690 "   int64_t major;\n"
14691 "   int64_t minor;\n"
14692 "   int64_t release;\n"
14693 "   char *extra;\n"
14694 " };\n"
14695 " \n"
14696 msgstr ""
14697
14698 # type: verbatim
14699 #: ../src/guestfs-structs.pod:184
14700 #, no-wrap
14701 msgid ""
14702 " struct guestfs_version_list {\n"
14703 "   uint32_t len; /* Number of elements in list. */\n"
14704 "   struct guestfs_version *val; /* Elements. */\n"
14705 " };\n"
14706 " \n"
14707 msgstr ""
14708
14709 # type: verbatim
14710 #: ../src/guestfs-structs.pod:189
14711 #, no-wrap
14712 msgid ""
14713 " void guestfs_free_version (struct guestfs_free_version *);\n"
14714 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
14715 "\n"
14716 msgstr ""
14717
14718 # type: =head2
14719 #: ../src/guestfs-structs.pod:192
14720 msgid "guestfs_xattr"
14721 msgstr ""
14722
14723 # type: verbatim
14724 #: ../src/guestfs-structs.pod:194
14725 #, no-wrap
14726 msgid ""
14727 " struct guestfs_xattr {\n"
14728 "   char *attrname;\n"
14729 "   /* The next two fields describe a byte array. */\n"
14730 "   uint32_t attrval_len;\n"
14731 "   char *attrval;\n"
14732 " };\n"
14733 " \n"
14734 msgstr ""
14735
14736 # type: verbatim
14737 #: ../src/guestfs-structs.pod:201
14738 #, no-wrap
14739 msgid ""
14740 " struct guestfs_xattr_list {\n"
14741 "   uint32_t len; /* Number of elements in list. */\n"
14742 "   struct guestfs_xattr *val; /* Elements. */\n"
14743 " };\n"
14744 " \n"
14745 msgstr ""
14746
14747 # type: verbatim
14748 #: ../src/guestfs-structs.pod:206
14749 #, no-wrap
14750 msgid ""
14751 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
14752 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
14753 "\n"
14754 msgstr ""
14755
14756 # type: =head2
14757 #: ../src/guestfs-structs.pod:209
14758 msgid "guestfs_inotify_event"
14759 msgstr ""
14760
14761 # type: verbatim
14762 #: ../src/guestfs-structs.pod:211
14763 #, no-wrap
14764 msgid ""
14765 " struct guestfs_inotify_event {\n"
14766 "   int64_t in_wd;\n"
14767 "   uint32_t in_mask;\n"
14768 "   uint32_t in_cookie;\n"
14769 "   char *in_name;\n"
14770 " };\n"
14771 " \n"
14772 msgstr ""
14773
14774 # type: verbatim
14775 #: ../src/guestfs-structs.pod:218
14776 #, no-wrap
14777 msgid ""
14778 " struct guestfs_inotify_event_list {\n"
14779 "   uint32_t len; /* Number of elements in list. */\n"
14780 "   struct guestfs_inotify_event *val; /* Elements. */\n"
14781 " };\n"
14782 " \n"
14783 msgstr ""
14784
14785 # type: verbatim
14786 #: ../src/guestfs-structs.pod:223
14787 #, no-wrap
14788 msgid ""
14789 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
14790 " void guestfs_free_inotify_event_list (struct "
14791 "guestfs_free_inotify_event_list *);\n"
14792 "\n"
14793 msgstr ""
14794
14795 # type: =head2
14796 #: ../src/guestfs-structs.pod:226
14797 msgid "guestfs_partition"
14798 msgstr ""
14799
14800 # type: verbatim
14801 #: ../src/guestfs-structs.pod:228
14802 #, no-wrap
14803 msgid ""
14804 " struct guestfs_partition {\n"
14805 "   int32_t part_num;\n"
14806 "   uint64_t part_start;\n"
14807 "   uint64_t part_end;\n"
14808 "   uint64_t part_size;\n"
14809 " };\n"
14810 " \n"
14811 msgstr ""
14812
14813 # type: verbatim
14814 #: ../src/guestfs-structs.pod:235
14815 #, no-wrap
14816 msgid ""
14817 " struct guestfs_partition_list {\n"
14818 "   uint32_t len; /* Number of elements in list. */\n"
14819 "   struct guestfs_partition *val; /* Elements. */\n"
14820 " };\n"
14821 " \n"
14822 msgstr ""
14823
14824 # type: verbatim
14825 #: ../src/guestfs-structs.pod:240
14826 #, no-wrap
14827 msgid ""
14828 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
14829 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
14830 "\n"
14831 msgstr ""
14832
14833 # type: textblock
14834 #: ../fish/guestfish.pod:5
14835 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
14836 msgstr ""
14837
14838 # type: verbatim
14839 #: ../fish/guestfish.pod:9
14840 #, no-wrap
14841 msgid ""
14842 " guestfish [--options] [commands]\n"
14843 "\n"
14844 msgstr ""
14845
14846 # type: verbatim
14847 #: ../fish/guestfish.pod:11
14848 #, no-wrap
14849 msgid ""
14850 " guestfish\n"
14851 "\n"
14852 msgstr ""
14853
14854 # type: verbatim
14855 #: ../fish/guestfish.pod:13
14856 #, no-wrap
14857 msgid ""
14858 " guestfish -a disk.img\n"
14859 "\n"
14860 msgstr ""
14861
14862 # type: verbatim
14863 #: ../fish/guestfish.pod:15
14864 #, no-wrap
14865 msgid ""
14866 " guestfish -a disk.img -m dev[:mountpoint]\n"
14867 "\n"
14868 msgstr ""
14869
14870 # type: verbatim
14871 #: ../fish/guestfish.pod:17
14872 #, no-wrap
14873 msgid ""
14874 " guestfish -d libvirt-domain\n"
14875 "\n"
14876 msgstr ""
14877
14878 # type: verbatim
14879 #: ../fish/guestfish.pod:19
14880 #, no-wrap
14881 msgid ""
14882 " guestfish -a disk.img -i\n"
14883 "\n"
14884 msgstr ""
14885
14886 # type: verbatim
14887 #: ../fish/guestfish.pod:21
14888 #, no-wrap
14889 msgid ""
14890 " guestfish -d libvirt-domain -i\n"
14891 "\n"
14892 msgstr ""
14893
14894 # type: =head1
14895 #: ../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
14896 msgid "WARNING"
14897 msgstr ""
14898
14899 # type: textblock
14900 #: ../fish/guestfish.pod:25
14901 msgid ""
14902 "Using guestfish in read/write mode on live virtual machines can be "
14903 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
14904 "option to use guestfish safely if the disk image or virtual machine might be "
14905 "live."
14906 msgstr ""
14907
14908 # type: textblock
14909 #: ../fish/guestfish.pod:32
14910 msgid ""
14911 "Guestfish is a shell and command-line tool for examining and modifying "
14912 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
14913 "functionality of the guestfs API, see L<guestfs(3)>."
14914 msgstr ""
14915
14916 # type: textblock
14917 #: ../fish/guestfish.pod:36
14918 msgid ""
14919 "Guestfish gives you structured access to the libguestfs API, from shell "
14920 "scripts or the command line or interactively.  If you want to rescue a "
14921 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
14922 "command."
14923 msgstr ""
14924
14925 # type: =head1
14926 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:800 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:66 ../tools/virt-cat.pl:50 ../tools/virt-tar.pl:45
14927 msgid "EXAMPLES"
14928 msgstr ""
14929
14930 # type: =head2
14931 #: ../fish/guestfish.pod:43
14932 msgid "As an interactive shell"
14933 msgstr ""
14934
14935 # type: verbatim
14936 #: ../fish/guestfish.pod:45
14937 #, no-wrap
14938 msgid ""
14939 " $ guestfish\n"
14940 " \n"
14941 msgstr ""
14942
14943 # type: verbatim
14944 #: ../fish/guestfish.pod:47
14945 #, no-wrap
14946 msgid ""
14947 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
14948 " editing virtual machine filesystems.\n"
14949 " \n"
14950 msgstr ""
14951
14952 # type: verbatim
14953 #: ../fish/guestfish.pod:50
14954 #, no-wrap
14955 msgid ""
14956 " Type: 'help' for a list of commands\n"
14957 "       'man' to read the manual\n"
14958 "       'quit' to quit the shell\n"
14959 " \n"
14960 msgstr ""
14961
14962 # type: verbatim
14963 #: ../fish/guestfish.pod:54
14964 #, no-wrap
14965 msgid ""
14966 " ><fs> add-ro disk.img\n"
14967 " ><fs> run\n"
14968 " ><fs> list-filesystems\n"
14969 " /dev/sda1: ext4\n"
14970 " /dev/vg_guest/lv_root: ext4\n"
14971 " /dev/vg_guest/lv_swap: swap\n"
14972 " ><fs> mount /dev/vg_guest/lv_root /\n"
14973 " ><fs> cat /etc/fstab\n"
14974 " # /etc/fstab\n"
14975 " # Created by anaconda\n"
14976 " [...]\n"
14977 " ><fs> exit\n"
14978 "\n"
14979 msgstr ""
14980
14981 # type: =head2
14982 #: ../fish/guestfish.pod:67
14983 msgid "From shell scripts"
14984 msgstr ""
14985
14986 # type: textblock
14987 #: ../fish/guestfish.pod:69
14988 msgid "Create a new C</etc/motd> file in a guest or disk image:"
14989 msgstr ""
14990
14991 # type: verbatim
14992 #: ../fish/guestfish.pod:71
14993 #, no-wrap
14994 msgid ""
14995 " guestfish <<_EOF_\n"
14996 " add disk.img\n"
14997 " run\n"
14998 " mount /dev/vg_guest/lv_root /\n"
14999 " write /etc/motd \"Welcome, new users\"\n"
15000 " _EOF_\n"
15001 "\n"
15002 msgstr ""
15003
15004 # type: textblock
15005 #: ../fish/guestfish.pod:78
15006 msgid "List the LVM logical volumes in a disk image:"
15007 msgstr ""
15008
15009 # type: verbatim
15010 #: ../fish/guestfish.pod:80
15011 #, no-wrap
15012 msgid ""
15013 " guestfish -a disk.img --ro <<_EOF_\n"
15014 " run\n"
15015 " lvs\n"
15016 " _EOF_\n"
15017 "\n"
15018 msgstr ""
15019
15020 # type: textblock
15021 #: ../fish/guestfish.pod:85
15022 msgid "List all the filesystems in a disk image:"
15023 msgstr ""
15024
15025 # type: verbatim
15026 #: ../fish/guestfish.pod:87
15027 #, no-wrap
15028 msgid ""
15029 " guestfish -a disk.img --ro <<_EOF_\n"
15030 " run\n"
15031 " list-filesystems\n"
15032 " _EOF_\n"
15033 "\n"
15034 msgstr ""
15035
15036 # type: =head2
15037 #: ../fish/guestfish.pod:92
15038 msgid "On one command line"
15039 msgstr ""
15040
15041 # type: textblock
15042 #: ../fish/guestfish.pod:94
15043 msgid "Update C</etc/resolv.conf> in a guest:"
15044 msgstr ""
15045
15046 # type: verbatim
15047 #: ../fish/guestfish.pod:96
15048 #, no-wrap
15049 msgid ""
15050 " guestfish \\\n"
15051 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15052 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15053 "\n"
15054 msgstr ""
15055
15056 # type: textblock
15057 #: ../fish/guestfish.pod:100
15058 msgid "Edit C</boot/grub/grub.conf> interactively:"
15059 msgstr ""
15060
15061 # type: verbatim
15062 #: ../fish/guestfish.pod:102
15063 #, no-wrap
15064 msgid ""
15065 " guestfish --add disk.img \\\n"
15066 "   --mount /dev/vg_guest/lv_root \\\n"
15067 "   --mount /dev/sda1:/boot \\\n"
15068 "   edit /boot/grub/grub.conf\n"
15069 "\n"
15070 msgstr ""
15071
15072 # type: =head2
15073 #: ../fish/guestfish.pod:107
15074 msgid "Mount disks automatically"
15075 msgstr ""
15076
15077 # type: textblock
15078 #: ../fish/guestfish.pod:109
15079 msgid ""
15080 "Use the I<-i> option to automatically mount the disks from a virtual "
15081 "machine:"
15082 msgstr ""
15083
15084 # type: verbatim
15085 #: ../fish/guestfish.pod:112
15086 #, no-wrap
15087 msgid ""
15088 " guestfish --ro -a disk.img -i cat /etc/group\n"
15089 "\n"
15090 msgstr ""
15091
15092 # type: verbatim
15093 #: ../fish/guestfish.pod:114
15094 #, no-wrap
15095 msgid ""
15096 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15097 "\n"
15098 msgstr ""
15099
15100 # type: textblock
15101 #: ../fish/guestfish.pod:116
15102 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15103 msgstr ""
15104
15105 # type: verbatim
15106 #: ../fish/guestfish.pod:118
15107 #, no-wrap
15108 msgid ""
15109 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15110 "\n"
15111 msgstr ""
15112
15113 # type: =head2
15114 #: ../fish/guestfish.pod:120
15115 msgid "As a script interpreter"
15116 msgstr ""
15117
15118 # type: textblock
15119 #: ../fish/guestfish.pod:122
15120 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15121 msgstr ""
15122
15123 # type: verbatim
15124 #: ../fish/guestfish.pod:124
15125 #, no-wrap
15126 msgid ""
15127 " #!/usr/bin/guestfish -f\n"
15128 " sparse test1.img 100M\n"
15129 " run\n"
15130 " part-disk /dev/sda mbr\n"
15131 " mkfs ext2 /dev/sda1\n"
15132 "\n"
15133 msgstr ""
15134
15135 # type: =head2
15136 #: ../fish/guestfish.pod:130
15137 msgid "Start with a prepared disk"
15138 msgstr ""
15139
15140 # type: textblock
15141 #: ../fish/guestfish.pod:132
15142 msgid ""
15143 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15144 "single ext2-formatted partition:"
15145 msgstr ""
15146
15147 # type: verbatim
15148 #: ../fish/guestfish.pod:135
15149 #, no-wrap
15150 msgid ""
15151 " guestfish -N fs\n"
15152 "\n"
15153 msgstr ""
15154
15155 # type: textblock
15156 #: ../fish/guestfish.pod:137
15157 msgid "To list what is available do:"
15158 msgstr ""
15159
15160 # type: verbatim
15161 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15162 #, no-wrap
15163 msgid ""
15164 " guestfish -N help | less\n"
15165 "\n"
15166 msgstr ""
15167
15168 # type: =head2
15169 #: ../fish/guestfish.pod:141
15170 msgid "Remote control"
15171 msgstr ""
15172
15173 # type: verbatim
15174 #: ../fish/guestfish.pod:143
15175 #, no-wrap
15176 msgid ""
15177 " eval `guestfish --listen`\n"
15178 " guestfish --remote add-ro disk.img\n"
15179 " guestfish --remote run\n"
15180 " guestfish --remote lvs\n"
15181 "\n"
15182 msgstr ""
15183
15184 # type: =head1
15185 #: ../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
15186 msgid "OPTIONS"
15187 msgstr ""
15188
15189 # type: =item
15190 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:124 ../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
15191 msgid "B<--help>"
15192 msgstr ""
15193
15194 # type: textblock
15195 #: ../fish/guestfish.pod:154
15196 msgid "Displays general help on options."
15197 msgstr ""
15198
15199 # type: =item
15200 #: ../fish/guestfish.pod:156
15201 msgid "B<-h> | B<--cmd-help>"
15202 msgstr ""
15203
15204 # type: textblock
15205 #: ../fish/guestfish.pod:158
15206 msgid "Lists all available guestfish commands."
15207 msgstr ""
15208
15209 # type: =item
15210 #: ../fish/guestfish.pod:160
15211 msgid "B<-h cmd> | B<--cmd-help cmd>"
15212 msgstr ""
15213
15214 # type: textblock
15215 #: ../fish/guestfish.pod:162
15216 msgid "Displays detailed help on a single command C<cmd>."
15217 msgstr ""
15218
15219 # type: =item
15220 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
15221 msgid "B<-a image> | B<--add image>"
15222 msgstr ""
15223
15224 # type: textblock
15225 #: ../fish/guestfish.pod:166
15226 msgid "Add a block device or virtual machine image to the shell."
15227 msgstr ""
15228
15229 # type: textblock
15230 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
15231 msgid ""
15232 "The format of the disk image is auto-detected.  To override this and force a "
15233 "particular format use the I<--format=..> option."
15234 msgstr ""
15235
15236 # type: =item
15237 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
15238 msgid "B<-c URI> | B<--connect URI>"
15239 msgstr ""
15240
15241 # type: textblock
15242 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
15243 msgid ""
15244 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15245 "URI to use.  The default is to use the default libvirt connection."
15246 msgstr ""
15247
15248 # type: =item
15249 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
15250 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15251 msgstr ""
15252
15253 # type: textblock
15254 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
15255 msgid ""
15256 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15257 "used, then any libvirt domain can be used.  However in write mode, only "
15258 "libvirt domains which are shut down can be named here."
15259 msgstr ""
15260
15261 # type: =item
15262 #: ../fish/guestfish.pod:183
15263 msgid "B<-D> | B<--no-dest-paths>"
15264 msgstr ""
15265
15266 # type: textblock
15267 #: ../fish/guestfish.pod:185
15268 msgid ""
15269 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15270 "to hit the tab key to complete paths on the guest filesystem, but this "
15271 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15272 "allow this feature to be disabled."
15273 msgstr ""
15274
15275 # type: =item
15276 #: ../fish/guestfish.pod:190
15277 msgid "B<--echo-keys>"
15278 msgstr ""
15279
15280 # type: textblock
15281 #: ../fish/guestfish.pod:192
15282 msgid ""
15283 "When prompting for keys and passphrases, guestfish normally turns echoing "
15284 "off so you cannot see what you are typing.  If you are not worried about "
15285 "Tempest attacks and there is no one else in the room you can specify this "
15286 "flag to see what you are typing."
15287 msgstr ""
15288
15289 # type: =item
15290 #: ../fish/guestfish.pod:197
15291 msgid "B<-f file> | B<--file file>"
15292 msgstr ""
15293
15294 # type: textblock
15295 #: ../fish/guestfish.pod:199
15296 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15297 msgstr ""
15298
15299 # type: verbatim
15300 #: ../fish/guestfish.pod:202
15301 #, no-wrap
15302 msgid ""
15303 " #!/usr/bin/guestfish -f\n"
15304 "\n"
15305 msgstr ""
15306
15307 # type: =item
15308 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
15309 msgid "B<--format=raw|qcow2|..> | B<--format>"
15310 msgstr ""
15311
15312 # type: textblock
15313 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
15314 msgid ""
15315 "The default for the I<-a> option is to auto-detect the format of the disk "
15316 "image.  Using this forces the disk format for I<-a> options which follow on "
15317 "the command line.  Using I<--format> with no argument switches back to "
15318 "auto-detection for subsequent I<-a> options."
15319 msgstr ""
15320
15321 # type: textblock
15322 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504 ../inspector/virt-inspector.pl:549
15323 msgid "For example:"
15324 msgstr ""
15325
15326 # type: verbatim
15327 #: ../fish/guestfish.pod:213
15328 #, no-wrap
15329 msgid ""
15330 " guestfish --format=raw -a disk.img\n"
15331 "\n"
15332 msgstr ""
15333
15334 # type: textblock
15335 #: ../fish/guestfish.pod:215
15336 msgid "forces raw format (no auto-detection) for C<disk.img>."
15337 msgstr ""
15338
15339 # type: verbatim
15340 #: ../fish/guestfish.pod:217
15341 #, no-wrap
15342 msgid ""
15343 " guestfish --format=raw -a disk.img --format -a another.img\n"
15344 "\n"
15345 msgstr ""
15346
15347 # type: textblock
15348 #: ../fish/guestfish.pod:219
15349 msgid ""
15350 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
15351 "auto-detection for C<another.img>."
15352 msgstr ""
15353
15354 # type: textblock
15355 #: ../fish/guestfish.pod:222
15356 msgid ""
15357 "If you have untrusted raw-format guest disk images, you should use this "
15358 "option to specify the disk format.  This avoids a possible security problem "
15359 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15360 msgstr ""
15361
15362 # type: =item
15363 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
15364 msgid "B<-i> | B<--inspector>"
15365 msgstr ""
15366
15367 # type: textblock
15368 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
15369 msgid ""
15370 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15371 "system and mount filesystems as they would be mounted on the real virtual "
15372 "machine."
15373 msgstr ""
15374
15375 # type: textblock
15376 #: ../fish/guestfish.pod:233
15377 msgid "Typical usage is either:"
15378 msgstr ""
15379
15380 # type: verbatim
15381 #: ../fish/guestfish.pod:235
15382 #, no-wrap
15383 msgid ""
15384 " guestfish -d myguest -i\n"
15385 "\n"
15386 msgstr ""
15387
15388 # type: textblock
15389 #: ../fish/guestfish.pod:237
15390 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15391 msgstr ""
15392
15393 # type: verbatim
15394 #: ../fish/guestfish.pod:239
15395 #, no-wrap
15396 msgid ""
15397 " guestfish --ro -d myguest -i\n"
15398 "\n"
15399 msgstr ""
15400
15401 # type: textblock
15402 #: ../fish/guestfish.pod:241
15403 msgid "(for active domains, readonly), or specify the block device directly:"
15404 msgstr ""
15405
15406 # type: verbatim
15407 #: ../fish/guestfish.pod:243
15408 #, no-wrap
15409 msgid ""
15410 " guestfish -a /dev/Guests/MyGuest -i\n"
15411 "\n"
15412 msgstr ""
15413
15414 # type: textblock
15415 #: ../fish/guestfish.pod:245
15416 msgid ""
15417 "Note that the command line syntax changed slightly over older versions of "
15418 "guestfish.  You can still use the old syntax:"
15419 msgstr ""
15420
15421 # type: verbatim
15422 #: ../fish/guestfish.pod:248
15423 #, no-wrap
15424 msgid ""
15425 " guestfish [--ro] -i disk.img\n"
15426 "\n"
15427 msgstr ""
15428
15429 # type: verbatim
15430 #: ../fish/guestfish.pod:250
15431 #, no-wrap
15432 msgid ""
15433 " guestfish [--ro] -i libvirt-domain\n"
15434 "\n"
15435 msgstr ""
15436
15437 # type: =item
15438 #: ../fish/guestfish.pod:252
15439 msgid "B<--keys-from-stdin>"
15440 msgstr ""
15441
15442 # type: textblock
15443 #: ../fish/guestfish.pod:254
15444 msgid ""
15445 "Read key or passphrase parameters from stdin.  The default is to try to read "
15446 "passphrases from the user by opening C</dev/tty>."
15447 msgstr ""
15448
15449 # type: =item
15450 #: ../fish/guestfish.pod:257
15451 msgid "B<--listen>"
15452 msgstr ""
15453
15454 # type: textblock
15455 #: ../fish/guestfish.pod:259
15456 msgid ""
15457 "Fork into the background and listen for remote commands.  See section "
15458 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15459 msgstr ""
15460
15461 # type: =item
15462 #: ../fish/guestfish.pod:262
15463 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15464 msgstr ""
15465
15466 # type: textblock
15467 #: ../fish/guestfish.pod:264
15468 msgid "Mount the named partition or logical volume on the given mountpoint."
15469 msgstr ""
15470
15471 # type: textblock
15472 #: ../fish/guestfish.pod:266
15473 msgid "If the mountpoint is omitted, it defaults to C</>."
15474 msgstr ""
15475
15476 # type: textblock
15477 #: ../fish/guestfish.pod:268
15478 msgid "You have to mount something on C</> before most commands will work."
15479 msgstr ""
15480
15481 # type: textblock
15482 #: ../fish/guestfish.pod:270
15483 msgid ""
15484 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15485 "launched."
15486 msgstr ""
15487
15488 # type: textblock
15489 #: ../fish/guestfish.pod:273
15490 msgid ""
15491 "If you don't know what filesystems a disk image contains, you can either run "
15492 "guestfish without this option, then list the partitions and LVs available "
15493 "(see L</list-partitions> and L</lvs> commands), or you can use the "
15494 "L<virt-list-filesystems(1)> program."
15495 msgstr ""
15496
15497 # type: =item
15498 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
15499 msgid "B<-n> | B<--no-sync>"
15500 msgstr ""
15501
15502 # type: textblock
15503 #: ../fish/guestfish.pod:280
15504 msgid ""
15505 "Disable autosync.  This is enabled by default.  See the discussion of "
15506 "autosync in the L<guestfs(3)> manpage."
15507 msgstr ""
15508
15509 # type: =item
15510 #: ../fish/guestfish.pod:283
15511 msgid "B<-N type> | B<--new type> | B<-N help>"
15512 msgstr ""
15513
15514 # type: textblock
15515 #: ../fish/guestfish.pod:285
15516 msgid ""
15517 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15518 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15519 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15520 "IMAGES> below."
15521 msgstr ""
15522
15523 # type: =item
15524 #: ../fish/guestfish.pod:290
15525 msgid "B<--progress-bars>"
15526 msgstr ""
15527
15528 # type: textblock
15529 #: ../fish/guestfish.pod:292
15530 msgid "Enable progress bars, even when guestfish is used non-interactively."
15531 msgstr ""
15532
15533 # type: textblock
15534 #: ../fish/guestfish.pod:294
15535 msgid ""
15536 "Progress bars are enabled by default when guestfish is used as an "
15537 "interactive shell."
15538 msgstr ""
15539
15540 # type: =item
15541 #: ../fish/guestfish.pod:297
15542 msgid "B<--no-progress-bars>"
15543 msgstr ""
15544
15545 # type: textblock
15546 #: ../fish/guestfish.pod:299
15547 msgid "Disable progress bars."
15548 msgstr ""
15549
15550 # type: =item
15551 #: ../fish/guestfish.pod:301
15552 msgid "B<--remote[=pid]>"
15553 msgstr ""
15554
15555 # type: textblock
15556 #: ../fish/guestfish.pod:303
15557 msgid ""
15558 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
15559 "CONTROL GUESTFISH OVER A SOCKET> below."
15560 msgstr ""
15561
15562 # type: =item
15563 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
15564 msgid "B<-r> | B<--ro>"
15565 msgstr ""
15566
15567 # type: textblock
15568 #: ../fish/guestfish.pod:308
15569 msgid ""
15570 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
15571 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
15572 msgstr ""
15573
15574 # type: textblock
15575 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
15576 msgid ""
15577 "The option must always be used if the disk image or virtual machine might be "
15578 "running, and is generally recommended in cases where you don't need write "
15579 "access to the disk."
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../fish/guestfish.pod:315
15584 msgid ""
15585 "Note that prepared disk images created with I<-N> are not affected by the "
15586 "I<--ro> option."
15587 msgstr ""
15588
15589 # type: =item
15590 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194 ../tools/virt-rescue.pl:195
15591 msgid "B<--selinux>"
15592 msgstr ""
15593
15594 # type: textblock
15595 #: ../fish/guestfish.pod:320
15596 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
15597 msgstr ""
15598
15599 # type: =item
15600 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
15601 msgid "B<-v> | B<--verbose>"
15602 msgstr ""
15603
15604 # type: textblock
15605 #: ../fish/guestfish.pod:324
15606 msgid ""
15607 "Enable very verbose messages.  This is particularly useful if you find a "
15608 "bug."
15609 msgstr ""
15610
15611 # type: =item
15612 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
15613 msgid "B<-V> | B<--version>"
15614 msgstr ""
15615
15616 # type: textblock
15617 #: ../fish/guestfish.pod:329
15618 msgid "Display the guestfish / libguestfs version number and exit."
15619 msgstr ""
15620
15621 # type: =item
15622 #: ../fish/guestfish.pod:331
15623 msgid "B<-x>"
15624 msgstr ""
15625
15626 # type: textblock
15627 #: ../fish/guestfish.pod:333
15628 msgid "Echo each command before executing it."
15629 msgstr ""
15630
15631 # type: =head1
15632 #: ../fish/guestfish.pod:337
15633 msgid "COMMANDS ON COMMAND LINE"
15634 msgstr ""
15635
15636 # type: textblock
15637 #: ../fish/guestfish.pod:339
15638 msgid "Any additional (non-option) arguments are treated as commands to execute."
15639 msgstr ""
15640
15641 # type: textblock
15642 #: ../fish/guestfish.pod:342
15643 msgid ""
15644 "Commands to execute should be separated by a colon (C<:>), where the colon "
15645 "is a separate parameter.  Thus:"
15646 msgstr ""
15647
15648 # type: verbatim
15649 #: ../fish/guestfish.pod:345
15650 #, no-wrap
15651 msgid ""
15652 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
15653 "\n"
15654 msgstr ""
15655
15656 # type: textblock
15657 #: ../fish/guestfish.pod:347
15658 msgid ""
15659 "If there are no additional arguments, then we enter a shell, either an "
15660 "interactive shell with a prompt (if the input is a terminal) or a "
15661 "non-interactive shell."
15662 msgstr ""
15663
15664 # type: textblock
15665 #: ../fish/guestfish.pod:351
15666 msgid ""
15667 "In either command line mode or non-interactive shell, the first command that "
15668 "gives an error causes the whole shell to exit.  In interactive mode (with a "
15669 "prompt) if a command fails, you can continue to enter commands."
15670 msgstr ""
15671
15672 # type: =head1
15673 #: ../fish/guestfish.pod:356
15674 msgid "USING launch (OR run)"
15675 msgstr ""
15676
15677 # type: textblock
15678 #: ../fish/guestfish.pod:358
15679 msgid ""
15680 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
15681 "then launch it, then mount any disks you need, and finally issue "
15682 "actions/commands.  So the general order of the day is:"
15683 msgstr ""
15684
15685 # type: textblock
15686 #: ../fish/guestfish.pod:366
15687 msgid "add or -a/--add"
15688 msgstr ""
15689
15690 # type: textblock
15691 #: ../fish/guestfish.pod:370
15692 msgid "launch (aka run)"
15693 msgstr ""
15694
15695 # type: textblock
15696 #: ../fish/guestfish.pod:374
15697 msgid "mount or -m/--mount"
15698 msgstr ""
15699
15700 # type: textblock
15701 #: ../fish/guestfish.pod:378
15702 msgid "any other commands"
15703 msgstr ""
15704
15705 # type: textblock
15706 #: ../fish/guestfish.pod:382
15707 msgid ""
15708 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
15709 "guest before mounting or performing any other commands."
15710 msgstr ""
15711
15712 # type: textblock
15713 #: ../fish/guestfish.pod:385
15714 msgid ""
15715 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
15716 "I<--new> options were given then C<run> is done automatically, simply "
15717 "because guestfish can't perform the action you asked for without doing this."
15718 msgstr ""
15719
15720 # type: =head1
15721 #: ../fish/guestfish.pod:390
15722 msgid "QUOTING"
15723 msgstr ""
15724
15725 # type: textblock
15726 #: ../fish/guestfish.pod:392
15727 msgid ""
15728 "You can quote ordinary parameters using either single or double quotes.  For "
15729 "example:"
15730 msgstr ""
15731
15732 # type: verbatim
15733 #: ../fish/guestfish.pod:395
15734 #, no-wrap
15735 msgid ""
15736 " add \"file with a space.img\"\n"
15737 "\n"
15738 msgstr ""
15739
15740 # type: verbatim
15741 #: ../fish/guestfish.pod:397
15742 #, no-wrap
15743 msgid ""
15744 " rm '/file name'\n"
15745 "\n"
15746 msgstr ""
15747
15748 # type: verbatim
15749 #: ../fish/guestfish.pod:399
15750 #, no-wrap
15751 msgid ""
15752 " rm '/\"'\n"
15753 "\n"
15754 msgstr ""
15755
15756 # type: textblock
15757 #: ../fish/guestfish.pod:401
15758 msgid ""
15759 "A few commands require a list of strings to be passed.  For these, use a "
15760 "whitespace-separated list, enclosed in quotes.  Strings containing "
15761 "whitespace to be passed through must be enclosed in single quotes.  A "
15762 "literal single quote must be escaped with a backslash."
15763 msgstr ""
15764
15765 # type: verbatim
15766 #: ../fish/guestfish.pod:406
15767 #, no-wrap
15768 msgid ""
15769 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
15770 " command \"/bin/echo 'foo      bar'\"\n"
15771 " command \"/bin/echo \\'foo\\'\"\n"
15772 "\n"
15773 msgstr ""
15774
15775 # type: =head1
15776 #: ../fish/guestfish.pod:410
15777 msgid "OPTIONAL ARGUMENTS"
15778 msgstr ""
15779
15780 # type: textblock
15781 #: ../fish/guestfish.pod:412
15782 msgid ""
15783 "Some commands take optional arguments.  These arguments appear in this "
15784 "documentation as C<[argname:..]>.  You can use them as in these examples:"
15785 msgstr ""
15786
15787 # type: verbatim
15788 #: ../fish/guestfish.pod:416
15789 #, no-wrap
15790 msgid ""
15791 " add-drive-opts filename\n"
15792 "\n"
15793 msgstr ""
15794
15795 # type: verbatim
15796 #: ../fish/guestfish.pod:418
15797 #, no-wrap
15798 msgid ""
15799 " add-drive-opts filename readonly:true\n"
15800 "\n"
15801 msgstr ""
15802
15803 # type: verbatim
15804 #: ../fish/guestfish.pod:420
15805 #, no-wrap
15806 msgid ""
15807 " add-drive-opts filename format:qcow2 readonly:false\n"
15808 "\n"
15809 msgstr ""
15810
15811 # type: textblock
15812 #: ../fish/guestfish.pod:422
15813 msgid ""
15814 "Each optional argument can appear at most once.  All optional arguments must "
15815 "appear after the required ones."
15816 msgstr ""
15817
15818 # type: =head1
15819 #: ../fish/guestfish.pod:425
15820 msgid "NUMBERS"
15821 msgstr ""
15822
15823 # type: textblock
15824 #: ../fish/guestfish.pod:427
15825 msgid "This section applies to all commands which can take integers as parameters."
15826 msgstr ""
15827
15828 # type: =head2
15829 #: ../fish/guestfish.pod:430
15830 msgid "SIZE SUFFIX"
15831 msgstr ""
15832
15833 # type: textblock
15834 #: ../fish/guestfish.pod:432
15835 msgid ""
15836 "When the command takes a parameter measured in bytes, you can use one of the "
15837 "following suffixes to specify kilobytes, megabytes and larger sizes:"
15838 msgstr ""
15839
15840 # type: =item
15841 #: ../fish/guestfish.pod:438
15842 msgid "B<k> or B<K> or B<KiB>"
15843 msgstr ""
15844
15845 # type: textblock
15846 #: ../fish/guestfish.pod:440
15847 msgid "The size in kilobytes (multiplied by 1024)."
15848 msgstr ""
15849
15850 # type: =item
15851 #: ../fish/guestfish.pod:442
15852 msgid "B<KB>"
15853 msgstr ""
15854
15855 # type: textblock
15856 #: ../fish/guestfish.pod:444
15857 msgid "The size in SI 1000 byte units."
15858 msgstr ""
15859
15860 # type: =item
15861 #: ../fish/guestfish.pod:446
15862 msgid "B<M> or B<MiB>"
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../fish/guestfish.pod:448
15867 msgid "The size in megabytes (multiplied by 1048576)."
15868 msgstr ""
15869
15870 # type: =item
15871 #: ../fish/guestfish.pod:450
15872 msgid "B<MB>"
15873 msgstr ""
15874
15875 # type: textblock
15876 #: ../fish/guestfish.pod:452
15877 msgid "The size in SI 1000000 byte units."
15878 msgstr ""
15879
15880 # type: =item
15881 #: ../fish/guestfish.pod:454
15882 msgid "B<G> or B<GiB>"
15883 msgstr ""
15884
15885 # type: textblock
15886 #: ../fish/guestfish.pod:456
15887 msgid "The size in gigabytes (multiplied by 2**30)."
15888 msgstr ""
15889
15890 # type: =item
15891 #: ../fish/guestfish.pod:458
15892 msgid "B<GB>"
15893 msgstr ""
15894
15895 # type: textblock
15896 #: ../fish/guestfish.pod:460
15897 msgid "The size in SI 10**9 byte units."
15898 msgstr ""
15899
15900 # type: =item
15901 #: ../fish/guestfish.pod:462
15902 msgid "B<T> or B<TiB>"
15903 msgstr ""
15904
15905 # type: textblock
15906 #: ../fish/guestfish.pod:464
15907 msgid "The size in terabytes (multiplied by 2**40)."
15908 msgstr ""
15909
15910 # type: =item
15911 #: ../fish/guestfish.pod:466
15912 msgid "B<TB>"
15913 msgstr ""
15914
15915 # type: textblock
15916 #: ../fish/guestfish.pod:468
15917 msgid "The size in SI 10**12 byte units."
15918 msgstr ""
15919
15920 # type: =item
15921 #: ../fish/guestfish.pod:470
15922 msgid "B<P> or B<PiB>"
15923 msgstr ""
15924
15925 # type: textblock
15926 #: ../fish/guestfish.pod:472
15927 msgid "The size in petabytes (multiplied by 2**50)."
15928 msgstr ""
15929
15930 # type: =item
15931 #: ../fish/guestfish.pod:474
15932 msgid "B<PB>"
15933 msgstr ""
15934
15935 # type: textblock
15936 #: ../fish/guestfish.pod:476
15937 msgid "The size in SI 10**15 byte units."
15938 msgstr ""
15939
15940 # type: =item
15941 #: ../fish/guestfish.pod:478
15942 msgid "B<E> or B<EiB>"
15943 msgstr ""
15944
15945 # type: textblock
15946 #: ../fish/guestfish.pod:480
15947 msgid "The size in exabytes (multiplied by 2**60)."
15948 msgstr ""
15949
15950 # type: =item
15951 #: ../fish/guestfish.pod:482
15952 msgid "B<EB>"
15953 msgstr ""
15954
15955 # type: textblock
15956 #: ../fish/guestfish.pod:484
15957 msgid "The size in SI 10**18 byte units."
15958 msgstr ""
15959
15960 # type: =item
15961 #: ../fish/guestfish.pod:486
15962 msgid "B<Z> or B<ZiB>"
15963 msgstr ""
15964
15965 # type: textblock
15966 #: ../fish/guestfish.pod:488
15967 msgid "The size in zettabytes (multiplied by 2**70)."
15968 msgstr ""
15969
15970 # type: =item
15971 #: ../fish/guestfish.pod:490
15972 msgid "B<ZB>"
15973 msgstr ""
15974
15975 # type: textblock
15976 #: ../fish/guestfish.pod:492
15977 msgid "The size in SI 10**21 byte units."
15978 msgstr ""
15979
15980 # type: =item
15981 #: ../fish/guestfish.pod:494
15982 msgid "B<Y> or B<YiB>"
15983 msgstr ""
15984
15985 # type: textblock
15986 #: ../fish/guestfish.pod:496
15987 msgid "The size in yottabytes (multiplied by 2**80)."
15988 msgstr ""
15989
15990 # type: =item
15991 #: ../fish/guestfish.pod:498
15992 msgid "B<YB>"
15993 msgstr ""
15994
15995 # type: textblock
15996 #: ../fish/guestfish.pod:500
15997 msgid "The size in SI 10**24 byte units."
15998 msgstr ""
15999
16000 # type: verbatim
16001 #: ../fish/guestfish.pod:506
16002 #, no-wrap
16003 msgid ""
16004 " truncate-size /file 1G\n"
16005 "\n"
16006 msgstr ""
16007
16008 # type: textblock
16009 #: ../fish/guestfish.pod:508
16010 msgid "would truncate the file to 1 gigabyte."
16011 msgstr ""
16012
16013 # type: textblock
16014 #: ../fish/guestfish.pod:510
16015 msgid ""
16016 "Be careful because a few commands take sizes in kilobytes or megabytes "
16017 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16018 "Adding a suffix will probably not do what you expect."
16019 msgstr ""
16020
16021 # type: =head2
16022 #: ../fish/guestfish.pod:514
16023 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16024 msgstr ""
16025
16026 # type: textblock
16027 #: ../fish/guestfish.pod:516
16028 msgid ""
16029 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16030 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16031 msgstr ""
16032
16033 # type: verbatim
16034 #: ../fish/guestfish.pod:519
16035 #, no-wrap
16036 msgid ""
16037 " 1234      decimal number 1234\n"
16038 " 02322     octal number, equivalent to decimal 1234\n"
16039 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16040 "\n"
16041 msgstr ""
16042
16043 # type: textblock
16044 #: ../fish/guestfish.pod:523
16045 msgid ""
16046 "When using the C<chmod> command, you almost always want to specify an octal "
16047 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16048 "L<chmod(1)> program):"
16049 msgstr ""
16050
16051 # type: verbatim
16052 #: ../fish/guestfish.pod:527
16053 #, no-wrap
16054 msgid ""
16055 " chmod 0777 /public  # OK\n"
16056 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16057 "\n"
16058 msgstr ""
16059
16060 # type: textblock
16061 #: ../fish/guestfish.pod:530
16062 msgid ""
16063 "Commands that return numbers usually print them in decimal, but some "
16064 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16065 "octal, preceeded by C<0>)."
16066 msgstr ""
16067
16068 # type: =head1
16069 #: ../fish/guestfish.pod:534
16070 msgid "WILDCARDS AND GLOBBING"
16071 msgstr ""
16072
16073 # type: textblock
16074 #: ../fish/guestfish.pod:536
16075 msgid ""
16076 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16077 "(globbing) by default.  So for example the following will not do what you "
16078 "expect:"
16079 msgstr ""
16080
16081 # type: verbatim
16082 #: ../fish/guestfish.pod:540
16083 #, no-wrap
16084 msgid ""
16085 " rm-rf /home/*\n"
16086 "\n"
16087 msgstr ""
16088
16089 # type: textblock
16090 #: ../fish/guestfish.pod:542
16091 msgid ""
16092 "Assuming you don't have a directory called literally C</home/*> then the "
16093 "above command will return an error."
16094 msgstr ""
16095
16096 # type: textblock
16097 #: ../fish/guestfish.pod:545
16098 msgid "To perform wildcard expansion, use the C<glob> command."
16099 msgstr ""
16100
16101 # type: verbatim
16102 #: ../fish/guestfish.pod:547
16103 #, no-wrap
16104 msgid ""
16105 " glob rm-rf /home/*\n"
16106 "\n"
16107 msgstr ""
16108
16109 # type: textblock
16110 #: ../fish/guestfish.pod:549
16111 msgid ""
16112 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16113 "many times), equivalent to:"
16114 msgstr ""
16115
16116 # type: verbatim
16117 #: ../fish/guestfish.pod:552
16118 #, no-wrap
16119 msgid ""
16120 " rm-rf /home/jim\n"
16121 " rm-rf /home/joe\n"
16122 " rm-rf /home/mary\n"
16123 "\n"
16124 msgstr ""
16125
16126 # type: textblock
16127 #: ../fish/guestfish.pod:556
16128 msgid "C<glob> only works on simple guest paths and not on device names."
16129 msgstr ""
16130
16131 # type: textblock
16132 #: ../fish/guestfish.pod:558
16133 msgid ""
16134 "If you have several parameters, each containing a wildcard, then glob will "
16135 "perform a Cartesian product."
16136 msgstr ""
16137
16138 # type: =head1
16139 #: ../fish/guestfish.pod:561
16140 msgid "COMMENTS"
16141 msgstr ""
16142
16143 # type: textblock
16144 #: ../fish/guestfish.pod:563
16145 msgid ""
16146 "Any line which starts with a I<#> character is treated as a comment and "
16147 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16148 "a command.  For example:"
16149 msgstr ""
16150
16151 # type: verbatim
16152 #: ../fish/guestfish.pod:567
16153 #, no-wrap
16154 msgid ""
16155 " # this is a comment\n"
16156 "         # this is a comment\n"
16157 " foo # NOT a comment\n"
16158 "\n"
16159 msgstr ""
16160
16161 # type: textblock
16162 #: ../fish/guestfish.pod:571
16163 msgid "Blank lines are also ignored."
16164 msgstr ""
16165
16166 # type: =head1
16167 #: ../fish/guestfish.pod:573
16168 msgid "RUNNING COMMANDS LOCALLY"
16169 msgstr ""
16170
16171 # type: textblock
16172 #: ../fish/guestfish.pod:575
16173 msgid ""
16174 "Any line which starts with a I<!> character is treated as a command sent to "
16175 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16176 msgstr ""
16177
16178 # type: verbatim
16179 #: ../fish/guestfish.pod:579
16180 #, no-wrap
16181 msgid ""
16182 " !mkdir local\n"
16183 " tgz-out /remote local/remote-data.tar.gz\n"
16184 "\n"
16185 msgstr ""
16186
16187 # type: textblock
16188 #: ../fish/guestfish.pod:582
16189 msgid ""
16190 "will create a directory C<local> on the host, and then export the contents "
16191 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16192 "(See C<tgz-out>)."
16193 msgstr ""
16194
16195 # type: textblock
16196 #: ../fish/guestfish.pod:586
16197 msgid ""
16198 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16199 "effect, due to the way that subprocesses work in Unix."
16200 msgstr ""
16201
16202 # type: =head1
16203 #: ../fish/guestfish.pod:589
16204 msgid "PIPES"
16205 msgstr ""
16206
16207 # type: textblock
16208 #: ../fish/guestfish.pod:591
16209 msgid ""
16210 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16211 "command (a guestfish command) to the second command (any host command).  For "
16212 "example:"
16213 msgstr ""
16214
16215 # type: verbatim
16216 #: ../fish/guestfish.pod:595
16217 #, no-wrap
16218 msgid ""
16219 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16220 "\n"
16221 msgstr ""
16222
16223 # type: textblock
16224 #: ../fish/guestfish.pod:597
16225 msgid ""
16226 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16227 "program).  The above command would list all accounts in the guest filesystem "
16228 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16229 msgstr ""
16230
16231 # type: verbatim
16232 #: ../fish/guestfish.pod:602
16233 #, no-wrap
16234 msgid ""
16235 " hexdump /bin/ls | head\n"
16236 " list-devices | tail -1\n"
16237 " tgz-out / - | tar ztf -\n"
16238 "\n"
16239 msgstr ""
16240
16241 # type: textblock
16242 #: ../fish/guestfish.pod:606
16243 msgid ""
16244 "The space before the pipe symbol is required, any space after the pipe "
16245 "symbol is optional.  Everything after the pipe symbol is just passed "
16246 "straight to the host shell, so it can contain redirections, globs and "
16247 "anything else that makes sense on the host side."
16248 msgstr ""
16249
16250 # type: textblock
16251 #: ../fish/guestfish.pod:611
16252 msgid ""
16253 "To use a literal argument which begins with a pipe symbol, you have to quote "
16254 "it, eg:"
16255 msgstr ""
16256
16257 # type: verbatim
16258 #: ../fish/guestfish.pod:614
16259 #, no-wrap
16260 msgid ""
16261 " echo \"|\"\n"
16262 "\n"
16263 msgstr ""
16264
16265 # type: =head1
16266 #: ../fish/guestfish.pod:616
16267 msgid "HOME DIRECTORIES"
16268 msgstr ""
16269
16270 # type: textblock
16271 #: ../fish/guestfish.pod:618
16272 msgid ""
16273 "If a parameter starts with the character C<~> then the tilde may be expanded "
16274 "as a home directory path (either C<~> for the current user's home directory, "
16275 "or C<~user> for another user)."
16276 msgstr ""
16277
16278 # type: textblock
16279 #: ../fish/guestfish.pod:622
16280 msgid ""
16281 "Note that home directory expansion happens for users known I<on the host>, "
16282 "not in the guest filesystem."
16283 msgstr ""
16284
16285 # type: textblock
16286 #: ../fish/guestfish.pod:625
16287 msgid ""
16288 "To use a literal argument which begins with a tilde, you have to quote it, "
16289 "eg:"
16290 msgstr ""
16291
16292 # type: verbatim
16293 #: ../fish/guestfish.pod:628
16294 #, no-wrap
16295 msgid ""
16296 " echo \"~\"\n"
16297 "\n"
16298 msgstr ""
16299
16300 # type: textblock
16301 #: ../fish/guestfish.pod:632
16302 msgid ""
16303 "Libguestfs has some support for Linux guests encrypted according to the "
16304 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16305 "disk encryption systems used by modern Linux guests.  Currently only "
16306 "LVM-on-LUKS is supported."
16307 msgstr ""
16308
16309 # type: textblock
16310 #: ../fish/guestfish.pod:637
16311 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16312 msgstr ""
16313
16314 # type: verbatim
16315 #: ../fish/guestfish.pod:639
16316 #, no-wrap
16317 msgid ""
16318 " ><fs> vfs-type /dev/sda2\n"
16319 " crypto_LUKS\n"
16320 "\n"
16321 msgstr ""
16322
16323 # type: textblock
16324 #: ../fish/guestfish.pod:642
16325 msgid ""
16326 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16327 "device called C</dev/mapper/luksdev>."
16328 msgstr ""
16329
16330 # type: verbatim
16331 #: ../fish/guestfish.pod:645
16332 #, no-wrap
16333 msgid ""
16334 " ><fs> luks-open /dev/sda2 luksdev\n"
16335 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16336 "\n"
16337 msgstr ""
16338
16339 # type: textblock
16340 #: ../fish/guestfish.pod:648
16341 msgid ""
16342 "Finally you have to tell LVM to scan for volume groups on the newly created "
16343 "mapper device:"
16344 msgstr ""
16345
16346 # type: verbatim
16347 #: ../fish/guestfish.pod:651
16348 #, no-wrap
16349 msgid ""
16350 " vgscan\n"
16351 " vg-activate-all true\n"
16352 "\n"
16353 msgstr ""
16354
16355 # type: textblock
16356 #: ../fish/guestfish.pod:654
16357 msgid "The logical volume(s) can now be mounted in the usual way."
16358 msgstr ""
16359
16360 # type: textblock
16361 #: ../fish/guestfish.pod:656
16362 msgid ""
16363 "Before closing a LUKS device you must unmount any logical volumes on it and "
16364 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16365 "one.  Then you can close the mapper device:"
16366 msgstr ""
16367
16368 # type: verbatim
16369 #: ../fish/guestfish.pod:660
16370 #, no-wrap
16371 msgid ""
16372 " vg-activate false /dev/VG\n"
16373 " luks-close /dev/mapper/luksdev\n"
16374 "\n"
16375 msgstr ""
16376
16377 # type: =head1
16378 #: ../fish/guestfish.pod:663
16379 msgid "WINDOWS PATHS"
16380 msgstr ""
16381
16382 # type: textblock
16383 #: ../fish/guestfish.pod:665
16384 msgid ""
16385 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16386 "(with some limitations).  The following commands are equivalent:"
16387 msgstr ""
16388
16389 # type: verbatim
16390 #: ../fish/guestfish.pod:668
16391 #, no-wrap
16392 msgid ""
16393 " file /WINDOWS/system32/config/system.LOG\n"
16394 "\n"
16395 msgstr ""
16396
16397 # type: verbatim
16398 #: ../fish/guestfish.pod:670
16399 #, no-wrap
16400 msgid ""
16401 " file win:/windows/system32/config/system.log\n"
16402 "\n"
16403 msgstr ""
16404
16405 # type: verbatim
16406 #: ../fish/guestfish.pod:672
16407 #, no-wrap
16408 msgid ""
16409 " file win:\\windows\\system32\\config\\system.log\n"
16410 "\n"
16411 msgstr ""
16412
16413 # type: verbatim
16414 #: ../fish/guestfish.pod:674
16415 #, no-wrap
16416 msgid ""
16417 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16418 "\n"
16419 msgstr ""
16420
16421 # type: textblock
16422 #: ../fish/guestfish.pod:676
16423 msgid ""
16424 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16425 "handles case insensitivity like Windows would.  This only works in argument "
16426 "positions that expect a path."
16427 msgstr ""
16428
16429 # type: =head1
16430 #: ../fish/guestfish.pod:680
16431 msgid "UPLOADING AND DOWNLOADING FILES"
16432 msgstr ""
16433
16434 # type: textblock
16435 #: ../fish/guestfish.pod:682
16436 msgid ""
16437 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16438 "others which upload from or download to a local file, you can use the "
16439 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16440 msgstr ""
16441
16442 # type: verbatim
16443 #: ../fish/guestfish.pod:686
16444 #, no-wrap
16445 msgid ""
16446 " upload - /foo\n"
16447 "\n"
16448 msgstr ""
16449
16450 # type: textblock
16451 #: ../fish/guestfish.pod:688
16452 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
16453 msgstr ""
16454
16455 # type: verbatim
16456 #: ../fish/guestfish.pod:691
16457 #, no-wrap
16458 msgid ""
16459 " tar-out /etc - | tar tf -\n"
16460 "\n"
16461 msgstr ""
16462
16463 # type: textblock
16464 #: ../fish/guestfish.pod:693
16465 msgid ""
16466 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16467 "command (see L</PIPES>)."
16468 msgstr ""
16469
16470 # type: textblock
16471 #: ../fish/guestfish.pod:696
16472 msgid ""
16473 "When using C<-> to read from stdin, the input is read up to the end of "
16474 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16475 "some arbitrary end marker:"
16476 msgstr ""
16477
16478 # type: verbatim
16479 #: ../fish/guestfish.pod:700
16480 #, no-wrap
16481 msgid ""
16482 " upload -<<END /foo\n"
16483 " input line 1\n"
16484 " input line 2\n"
16485 " input line 3\n"
16486 " END\n"
16487 "\n"
16488 msgstr ""
16489
16490 # type: textblock
16491 #: ../fish/guestfish.pod:706
16492 msgid ""
16493 "Any string of characters can be used instead of C<END>.  The end marker must "
16494 "appear on a line of its own, without any preceeding or following characters "
16495 "(not even spaces)."
16496 msgstr ""
16497
16498 # type: textblock
16499 #: ../fish/guestfish.pod:710
16500 msgid ""
16501 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16502 "upload local files (so-called \"FileIn\" parameters in the generator)."
16503 msgstr ""
16504
16505 # type: =head1
16506 #: ../fish/guestfish.pod:713
16507 msgid "EXIT ON ERROR BEHAVIOUR"
16508 msgstr ""
16509
16510 # type: textblock
16511 #: ../fish/guestfish.pod:715
16512 msgid ""
16513 "By default, guestfish will ignore any errors when in interactive mode "
16514 "(ie. taking commands from a human over a tty), and will exit on the first "
16515 "error in non-interactive mode (scripts, commands given on the command line)."
16516 msgstr ""
16517
16518 # type: textblock
16519 #: ../fish/guestfish.pod:720
16520 msgid ""
16521 "If you prefix a command with a I<-> character, then that command will not "
16522 "cause guestfish to exit, even if that (one) command returns an error."
16523 msgstr ""
16524
16525 # type: =head1
16526 #: ../fish/guestfish.pod:724
16527 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16528 msgstr ""
16529
16530 # type: textblock
16531 #: ../fish/guestfish.pod:726
16532 msgid ""
16533 "Guestfish can be remote-controlled over a socket.  This is useful "
16534 "particularly in shell scripts where you want to make several different "
16535 "changes to a filesystem, but you don't want the overhead of starting up a "
16536 "guestfish process each time."
16537 msgstr ""
16538
16539 # type: textblock
16540 #: ../fish/guestfish.pod:731
16541 msgid "Start a guestfish server process using:"
16542 msgstr ""
16543
16544 # type: verbatim
16545 #: ../fish/guestfish.pod:733
16546 #, no-wrap
16547 msgid ""
16548 " eval `guestfish --listen`\n"
16549 "\n"
16550 msgstr ""
16551
16552 # type: textblock
16553 #: ../fish/guestfish.pod:735
16554 msgid "and then send it commands by doing:"
16555 msgstr ""
16556
16557 # type: verbatim
16558 #: ../fish/guestfish.pod:737
16559 #, no-wrap
16560 msgid ""
16561 " guestfish --remote cmd [...]\n"
16562 "\n"
16563 msgstr ""
16564
16565 # type: textblock
16566 #: ../fish/guestfish.pod:739
16567 msgid "To cause the server to exit, send it the exit command:"
16568 msgstr ""
16569
16570 # type: verbatim
16571 #: ../fish/guestfish.pod:741
16572 #, no-wrap
16573 msgid ""
16574 " guestfish --remote exit\n"
16575 "\n"
16576 msgstr ""
16577
16578 # type: textblock
16579 #: ../fish/guestfish.pod:743
16580 msgid ""
16581 "Note that the server will normally exit if there is an error in a command.  "
16582 "You can change this in the usual way.  See section L</EXIT ON ERROR "
16583 "BEHAVIOUR>."
16584 msgstr ""
16585
16586 # type: =head2
16587 #: ../fish/guestfish.pod:747
16588 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
16589 msgstr ""
16590
16591 # type: textblock
16592 #: ../fish/guestfish.pod:749
16593 msgid ""
16594 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
16595 "is how the I<--remote> option knows where to send the commands.  You can "
16596 "have several guestfish listener processes running using:"
16597 msgstr ""
16598
16599 # type: verbatim
16600 #: ../fish/guestfish.pod:753
16601 #, no-wrap
16602 msgid ""
16603 " eval `guestfish --listen`\n"
16604 " pid1=$GUESTFISH_PID\n"
16605 " eval `guestfish --listen`\n"
16606 " pid2=$GUESTFISH_PID\n"
16607 " ...\n"
16608 " guestfish --remote=$pid1 cmd\n"
16609 " guestfish --remote=$pid2 cmd\n"
16610 "\n"
16611 msgstr ""
16612
16613 # type: =head2
16614 #: ../fish/guestfish.pod:761
16615 msgid "REMOTE CONTROL DETAILS"
16616 msgstr ""
16617
16618 # type: textblock
16619 #: ../fish/guestfish.pod:763
16620 msgid ""
16621 "Remote control happens over a Unix domain socket called "
16622 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
16623 "of the process, and C<$PID> is the process ID of the server."
16624 msgstr ""
16625
16626 # type: textblock
16627 #: ../fish/guestfish.pod:767
16628 msgid "Guestfish client and server versions must match exactly."
16629 msgstr ""
16630
16631 # type: =head1
16632 #: ../fish/guestfish.pod:769
16633 msgid "PREPARED DISK IMAGES"
16634 msgstr ""
16635
16636 # type: textblock
16637 #: ../fish/guestfish.pod:771
16638 msgid ""
16639 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
16640 "preformatted disk images that guestfish can make for you to save typing.  "
16641 "This is particularly useful for testing purposes.  This option is used "
16642 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
16643 "can be mixed with I<-a>)."
16644 msgstr ""
16645
16646 # type: textblock
16647 #: ../fish/guestfish.pod:777
16648 msgid ""
16649 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
16650 "the second and so on.  Existing files in the current directory are "
16651 "I<overwritten>."
16652 msgstr ""
16653
16654 # type: textblock
16655 #: ../fish/guestfish.pod:781
16656 msgid ""
16657 "The type briefly describes how the disk should be sized, partitioned, how "
16658 "filesystem(s) should be created, and how content should be added.  "
16659 "Optionally the type can be followed by extra parameters, separated by C<:> "
16660 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
16661 "sparsely-allocated disk, containing a single partition, with the partition "
16662 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
16663 "on a 1GB disk instead."
16664 msgstr ""
16665
16666 # type: textblock
16667 #: ../fish/guestfish.pod:789
16668 msgid "To list the available types and any extra parameters they take, run:"
16669 msgstr ""
16670
16671 # type: textblock
16672 #: ../fish/guestfish.pod:793
16673 msgid ""
16674 "Note that the prepared filesystem is not mounted.  You would usually have to "
16675 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
16676 msgstr ""
16677
16678 # type: textblock
16679 #: ../fish/guestfish.pod:797
16680 msgid ""
16681 "If any I<-N> or I<--new> options are given, the guest is automatically "
16682 "launched."
16683 msgstr ""
16684
16685 # type: textblock
16686 #: ../fish/guestfish.pod:802
16687 msgid "Create a 100MB disk with an ext4-formatted partition:"
16688 msgstr ""
16689
16690 # type: verbatim
16691 #: ../fish/guestfish.pod:804
16692 #, no-wrap
16693 msgid ""
16694 " guestfish -N fs:ext4\n"
16695 "\n"
16696 msgstr ""
16697
16698 # type: textblock
16699 #: ../fish/guestfish.pod:806
16700 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
16701 msgstr ""
16702
16703 # type: verbatim
16704 #: ../fish/guestfish.pod:808
16705 #, no-wrap
16706 msgid ""
16707 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
16708 "\n"
16709 msgstr ""
16710
16711 # type: textblock
16712 #: ../fish/guestfish.pod:810
16713 msgid "Create a blank 200MB disk:"
16714 msgstr ""
16715
16716 # type: verbatim
16717 #: ../fish/guestfish.pod:812
16718 #, no-wrap
16719 msgid ""
16720 " guestfish -N disk:200M\n"
16721 "\n"
16722 msgstr ""
16723
16724 # type: =head1
16725 #: ../fish/guestfish.pod:814
16726 msgid "PROGRESS BARS"
16727 msgstr ""
16728
16729 # type: textblock
16730 #: ../fish/guestfish.pod:816
16731 msgid ""
16732 "Some (not all) long-running commands send progress notification messages as "
16733 "they are running.  Guestfish turns these messages into progress bars."
16734 msgstr ""
16735
16736 # type: textblock
16737 #: ../fish/guestfish.pod:820
16738 msgid ""
16739 "When a command that supports progress bars takes longer than two seconds to "
16740 "run, and if progress bars are enabled, then you will see one appearing below "
16741 "the command:"
16742 msgstr ""
16743
16744 # type: verbatim
16745 #: ../fish/guestfish.pod:824
16746 #, no-wrap
16747 msgid ""
16748 " ><fs> copy-size /large-file /another-file 2048M\n"
16749 " / 10% [#####-----------------------------------------] 00:30\n"
16750 "\n"
16751 msgstr ""
16752
16753 # type: textblock
16754 #: ../fish/guestfish.pod:827
16755 msgid ""
16756 "The spinner on the left hand side moves round once for every progress "
16757 "notification received from the backend.  This is a (reasonably) golden "
16758 "assurance that the command is \"doing something\" even if the progress bar "
16759 "is not moving, because the command is able to send the progress "
16760 "notifications.  When the bar reaches 100% and the command finishes, the "
16761 "spinner disappears."
16762 msgstr ""
16763
16764 # type: textblock
16765 #: ../fish/guestfish.pod:834
16766 msgid ""
16767 "Progress bars are enabled by default when guestfish is used interactively.  "
16768 "You can enable them even for non-interactive modes using I<--progress-bars>, "
16769 "and you can disable them completely using I<--no-progress-bars>."
16770 msgstr ""
16771
16772 # type: =head1
16773 #: ../fish/guestfish.pod:839
16774 msgid "GUESTFISH COMMANDS"
16775 msgstr ""
16776
16777 # type: textblock
16778 #: ../fish/guestfish.pod:841
16779 msgid ""
16780 "The commands in this section are guestfish convenience commands, in other "
16781 "words, they are not part of the L<guestfs(3)> API."
16782 msgstr ""
16783
16784 # type: =head2
16785 #: ../fish/guestfish.pod:844
16786 msgid "help"
16787 msgstr ""
16788
16789 # type: verbatim
16790 #: ../fish/guestfish.pod:846
16791 #, no-wrap
16792 msgid ""
16793 " help\n"
16794 " help cmd\n"
16795 "\n"
16796 msgstr ""
16797
16798 # type: textblock
16799 #: ../fish/guestfish.pod:849
16800 msgid ""
16801 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
16802 "this displays detailed help for a command."
16803 msgstr ""
16804
16805 # type: =head2
16806 #: ../fish/guestfish.pod:852
16807 msgid "quit | exit"
16808 msgstr ""
16809
16810 # type: textblock
16811 #: ../fish/guestfish.pod:854
16812 msgid "This exits guestfish.  You can also use C<^D> key."
16813 msgstr ""
16814
16815 # type: textblock
16816 #: ../fish/guestfish.pod:856
16817 msgid "@FISH_COMMANDS@"
16818 msgstr ""
16819
16820 # type: =head1
16821 #: ../fish/guestfish.pod:858
16822 msgid "COMMANDS"
16823 msgstr ""
16824
16825 # type: =head1
16826 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
16827 msgid "EXIT CODE"
16828 msgstr ""
16829
16830 # type: textblock
16831 #: ../fish/guestfish.pod:864
16832 msgid ""
16833 "guestfish returns 0 if the commands completed without error, or 1 if there "
16834 "was an error."
16835 msgstr ""
16836
16837 # type: =item
16838 #: ../fish/guestfish.pod:871
16839 msgid "EDITOR"
16840 msgstr ""
16841
16842 # type: textblock
16843 #: ../fish/guestfish.pod:873
16844 msgid ""
16845 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
16846 "C<vi>."
16847 msgstr ""
16848
16849 # type: =item
16850 #: ../fish/guestfish.pod:876
16851 msgid "GUESTFISH_PID"
16852 msgstr ""
16853
16854 # type: textblock
16855 #: ../fish/guestfish.pod:878
16856 msgid ""
16857 "Used with the I<--remote> option to specify the remote guestfish process to "
16858 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
16859 msgstr ""
16860
16861 # type: =item
16862 #: ../fish/guestfish.pod:882
16863 msgid "HEXEDITOR"
16864 msgstr ""
16865
16866 # type: textblock
16867 #: ../fish/guestfish.pod:884
16868 msgid ""
16869 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
16870 "not specified, the external L<hexedit(1)> program is used."
16871 msgstr ""
16872
16873 # type: =item
16874 #: ../fish/guestfish.pod:888
16875 msgid "HOME"
16876 msgstr ""
16877
16878 # type: textblock
16879 #: ../fish/guestfish.pod:890
16880 msgid ""
16881 "If compiled with GNU readline support, various files in the home directory "
16882 "can be used.  See L</FILES>."
16883 msgstr ""
16884
16885 # type: textblock
16886 #: ../fish/guestfish.pod:899
16887 msgid ""
16888 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
16889 "effect as using the B<-v> option."
16890 msgstr ""
16891
16892 # type: textblock
16893 #: ../fish/guestfish.pod:911
16894 msgid ""
16895 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
16896 "the discussion of paths in L<guestfs(3)>."
16897 msgstr ""
16898
16899 # type: textblock
16900 #: ../fish/guestfish.pod:922
16901 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
16902 msgstr ""
16903
16904 # type: =item
16905 #: ../fish/guestfish.pod:924
16906 msgid "PAGER"
16907 msgstr ""
16908
16909 # type: textblock
16910 #: ../fish/guestfish.pod:926
16911 msgid ""
16912 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
16913 "C<more>."
16914 msgstr ""
16915
16916 # type: =head1
16917 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
16918 msgid "FILES"
16919 msgstr ""
16920
16921 # type: =item
16922 #: ../fish/guestfish.pod:945
16923 msgid "$HOME/.guestfish"
16924 msgstr ""
16925
16926 # type: textblock
16927 #: ../fish/guestfish.pod:947
16928 msgid ""
16929 "If compiled with GNU readline support, then the command history is saved in "
16930 "this file."
16931 msgstr ""
16932
16933 # type: =item
16934 #: ../fish/guestfish.pod:950
16935 msgid "$HOME/.inputrc"
16936 msgstr ""
16937
16938 # type: =item
16939 #: ../fish/guestfish.pod:952
16940 msgid "/etc/inputrc"
16941 msgstr ""
16942
16943 # type: textblock
16944 #: ../fish/guestfish.pod:954
16945 msgid ""
16946 "If compiled with GNU readline support, then these files can be used to "
16947 "configure readline.  For further information, please see "
16948 "L<readline(3)/INITIALIZATION FILE>."
16949 msgstr ""
16950
16951 # type: textblock
16952 #: ../fish/guestfish.pod:958
16953 msgid "To write rules which only apply to guestfish, use:"
16954 msgstr ""
16955
16956 # type: verbatim
16957 #: ../fish/guestfish.pod:960
16958 #, no-wrap
16959 msgid ""
16960 " $if guestfish\n"
16961 " ...\n"
16962 " $endif\n"
16963 "\n"
16964 msgstr ""
16965
16966 # type: textblock
16967 #: ../fish/guestfish.pod:964
16968 msgid ""
16969 "Variables that you can set in inputrc that change the behaviour of guestfish "
16970 "in useful ways include:"
16971 msgstr ""
16972
16973 # type: =item
16974 #: ../fish/guestfish.pod:969
16975 msgid "completion-ignore-case (default: on)"
16976 msgstr ""
16977
16978 # type: textblock
16979 #: ../fish/guestfish.pod:971
16980 msgid ""
16981 "By default, guestfish will ignore case when tab-completing paths on the "
16982 "disk.  Use:"
16983 msgstr ""
16984
16985 # type: verbatim
16986 #: ../fish/guestfish.pod:974
16987 #, no-wrap
16988 msgid ""
16989 " set completion-ignore-case off\n"
16990 "\n"
16991 msgstr ""
16992
16993 # type: textblock
16994 #: ../fish/guestfish.pod:976
16995 msgid "to make guestfish case sensitive."
16996 msgstr ""
16997
16998 # type: =item
16999 #: ../fish/guestfish.pod:980
17000 msgid "test1.img"
17001 msgstr ""
17002
17003 # type: =item
17004 #: ../fish/guestfish.pod:982
17005 msgid "test2.img (etc)"
17006 msgstr ""
17007
17008 # type: textblock
17009 #: ../fish/guestfish.pod:984
17010 msgid ""
17011 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17012 "will be created in the file C<test1.img> in the current directory.  The "
17013 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17014 "the same name will be overwritten."
17015 msgstr ""
17016
17017 # type: textblock
17018 #: ../fish/guestfish.pod:993
17019 msgid ""
17020 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17021 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17022 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17023 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17024 msgstr ""
17025
17026 # type: textblock
17027 #: ../fish/guestfish.pod:1017 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:234 ../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
17028 msgid ""
17029 "This program is free software; you can redistribute it and/or modify it "
17030 "under the terms of the GNU General Public License as published by the Free "
17031 "Software Foundation; either version 2 of the License, or (at your option) "
17032 "any later version."
17033 msgstr ""
17034
17035 # type: textblock
17036 #: ../fish/guestfish.pod:1022 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:239 ../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
17037 msgid ""
17038 "This program is distributed in the hope that it will be useful, but WITHOUT "
17039 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17040 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17041 "more details."
17042 msgstr ""
17043
17044 # type: textblock
17045 #: ../fish/guestfish.pod:1027 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:244 ../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
17046 msgid ""
17047 "You should have received a copy of the GNU General Public License along with "
17048 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17049 "Ave, Cambridge, MA 02139, USA."
17050 msgstr ""
17051
17052 # type: =head2
17053 #: ../fish/guestfish-actions.pod:1
17054 msgid "add-cdrom"
17055 msgstr ""
17056
17057 # type: verbatim
17058 #: ../fish/guestfish-actions.pod:3
17059 #, no-wrap
17060 msgid ""
17061 " add-cdrom filename\n"
17062 "\n"
17063 msgstr ""
17064
17065 # type: textblock
17066 #: ../fish/guestfish-actions.pod:15
17067 msgid ""
17068 "This call checks for the existence of C<filename>.  This stops you from "
17069 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17070 "and C<http:> URLs.  To specify those, use the general L</config> call "
17071 "instead."
17072 msgstr ""
17073
17074 # type: textblock
17075 #: ../fish/guestfish-actions.pod:22
17076 msgid ""
17077 "If you just want to add an ISO file (often you use this as an efficient way "
17078 "to transfer large files into the guest), then you should probably use "
17079 "L</add-drive-ro> instead."
17080 msgstr ""
17081
17082 # type: =head2
17083 #: ../fish/guestfish-actions.pod:35
17084 msgid "add-drive"
17085 msgstr ""
17086
17087 # type: verbatim
17088 #: ../fish/guestfish-actions.pod:37
17089 #, no-wrap
17090 msgid ""
17091 " add-drive filename\n"
17092 "\n"
17093 msgstr ""
17094
17095 # type: textblock
17096 #: ../fish/guestfish-actions.pod:39
17097 msgid ""
17098 "This function is the equivalent of calling L</add-drive-opts> with no "
17099 "optional parameters, so the disk is added writable, with the format being "
17100 "detected automatically."
17101 msgstr ""
17102
17103 # type: textblock
17104 #: ../fish/guestfish-actions.pod:43
17105 msgid ""
17106 "Automatic detection of the format opens you up to a potential security hole "
17107 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17108 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17109 "you should think about replacing calls to this function with calls to "
17110 "L</add-drive-opts>, and specifying the format."
17111 msgstr ""
17112
17113 # type: =head2
17114 #: ../fish/guestfish-actions.pod:50
17115 msgid "add-drive-opts"
17116 msgstr ""
17117
17118 # type: =head2
17119 #: ../fish/guestfish-actions.pod:52
17120 msgid "add"
17121 msgstr ""
17122
17123 # type: verbatim
17124 #: ../fish/guestfish-actions.pod:54
17125 #, no-wrap
17126 msgid ""
17127 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17128 "\n"
17129 msgstr ""
17130
17131 # type: textblock
17132 #: ../fish/guestfish-actions.pod:81
17133 msgid ""
17134 "This forces the image format.  If you omit this (or use L</add-drive> or "
17135 "L</add-drive-ro>) then the format is automatically detected.  Possible "
17136 "formats include C<raw> and C<qcow2>."
17137 msgstr ""
17138
17139 # type: textblock
17140 #: ../fish/guestfish-actions.pod:92
17141 msgid ""
17142 "This rarely-used option lets you emulate the behaviour of the deprecated "
17143 "L</add-drive-with-if> call (q.v.)"
17144 msgstr ""
17145
17146 # type: textblock
17147 #: ../fish/guestfish-actions.pod:97
17148 msgid ""
17149 "This command has one or more optional arguments.  See L</OPTIONAL "
17150 "ARGUMENTS>."
17151 msgstr ""
17152
17153 # type: =head2
17154 #: ../fish/guestfish-actions.pod:99
17155 msgid "add-drive-ro"
17156 msgstr ""
17157
17158 # type: =head2
17159 #: ../fish/guestfish-actions.pod:101
17160 msgid "add-ro"
17161 msgstr ""
17162
17163 # type: verbatim
17164 #: ../fish/guestfish-actions.pod:103
17165 #, no-wrap
17166 msgid ""
17167 " add-drive-ro filename\n"
17168 "\n"
17169 msgstr ""
17170
17171 # type: textblock
17172 #: ../fish/guestfish-actions.pod:105
17173 msgid ""
17174 "This function is the equivalent of calling L</add-drive-opts> with the "
17175 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17176 "is added read-only, with the format being detected automatically."
17177 msgstr ""
17178
17179 # type: =head2
17180 #: ../fish/guestfish-actions.pod:110
17181 msgid "add-drive-ro-with-if"
17182 msgstr ""
17183
17184 # type: verbatim
17185 #: ../fish/guestfish-actions.pod:112
17186 #, no-wrap
17187 msgid ""
17188 " add-drive-ro-with-if filename iface\n"
17189 "\n"
17190 msgstr ""
17191
17192 # type: textblock
17193 #: ../fish/guestfish-actions.pod:114
17194 msgid ""
17195 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17196 "interface emulation to use at run time."
17197 msgstr ""
17198
17199 # type: =head2
17200 #: ../fish/guestfish-actions.pod:124
17201 msgid "add-drive-with-if"
17202 msgstr ""
17203
17204 # type: verbatim
17205 #: ../fish/guestfish-actions.pod:126
17206 #, no-wrap
17207 msgid ""
17208 " add-drive-with-if filename iface\n"
17209 "\n"
17210 msgstr ""
17211
17212 # type: textblock
17213 #: ../fish/guestfish-actions.pod:128
17214 msgid ""
17215 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17216 "interface emulation to use at run time."
17217 msgstr ""
17218
17219 # type: =head2
17220 #: ../fish/guestfish-actions.pod:138
17221 msgid "aug-clear"
17222 msgstr ""
17223
17224 # type: verbatim
17225 #: ../fish/guestfish-actions.pod:140
17226 #, no-wrap
17227 msgid ""
17228 " aug-clear augpath\n"
17229 "\n"
17230 msgstr ""
17231
17232 # type: =head2
17233 #: ../fish/guestfish-actions.pod:145
17234 msgid "aug-close"
17235 msgstr ""
17236
17237 # type: verbatim
17238 #: ../fish/guestfish-actions.pod:147
17239 #, no-wrap
17240 msgid ""
17241 " aug-close\n"
17242 "\n"
17243 msgstr ""
17244
17245 # type: textblock
17246 #: ../fish/guestfish-actions.pod:149
17247 msgid ""
17248 "Close the current Augeas handle and free up any resources used by it.  After "
17249 "calling this, you have to call L</aug-init> again before you can use any "
17250 "other Augeas functions."
17251 msgstr ""
17252
17253 # type: =head2
17254 #: ../fish/guestfish-actions.pod:154
17255 msgid "aug-defnode"
17256 msgstr ""
17257
17258 # type: verbatim
17259 #: ../fish/guestfish-actions.pod:156
17260 #, no-wrap
17261 msgid ""
17262 " aug-defnode name expr val\n"
17263 "\n"
17264 msgstr ""
17265
17266 # type: textblock
17267 #: ../fish/guestfish-actions.pod:161
17268 msgid ""
17269 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17270 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17271 "containing that single node."
17272 msgstr ""
17273
17274 # type: =head2
17275 #: ../fish/guestfish-actions.pod:169
17276 msgid "aug-defvar"
17277 msgstr ""
17278
17279 # type: verbatim
17280 #: ../fish/guestfish-actions.pod:171
17281 #, no-wrap
17282 msgid ""
17283 " aug-defvar name expr\n"
17284 "\n"
17285 msgstr ""
17286
17287 # type: =head2
17288 #: ../fish/guestfish-actions.pod:180
17289 msgid "aug-get"
17290 msgstr ""
17291
17292 # type: verbatim
17293 #: ../fish/guestfish-actions.pod:182
17294 #, no-wrap
17295 msgid ""
17296 " aug-get augpath\n"
17297 "\n"
17298 msgstr ""
17299
17300 # type: =head2
17301 #: ../fish/guestfish-actions.pod:187
17302 msgid "aug-init"
17303 msgstr ""
17304
17305 # type: verbatim
17306 #: ../fish/guestfish-actions.pod:189
17307 #, no-wrap
17308 msgid ""
17309 " aug-init root flags\n"
17310 "\n"
17311 msgstr ""
17312
17313 # type: textblock
17314 #: ../fish/guestfish-actions.pod:195
17315 msgid "You must call this before using any other L</aug-*> commands."
17316 msgstr ""
17317
17318 # type: textblock
17319 #: ../fish/guestfish-actions.pod:230
17320 msgid "Do not load the tree in L</aug-init>."
17321 msgstr ""
17322
17323 # type: textblock
17324 #: ../fish/guestfish-actions.pod:234
17325 msgid "To close the handle, you can call L</aug-close>."
17326 msgstr ""
17327
17328 # type: =head2
17329 #: ../fish/guestfish-actions.pod:238
17330 msgid "aug-insert"
17331 msgstr ""
17332
17333 # type: verbatim
17334 #: ../fish/guestfish-actions.pod:240
17335 #, no-wrap
17336 msgid ""
17337 " aug-insert augpath label true|false\n"
17338 "\n"
17339 msgstr ""
17340
17341 # type: =head2
17342 #: ../fish/guestfish-actions.pod:250
17343 msgid "aug-load"
17344 msgstr ""
17345
17346 # type: verbatim
17347 #: ../fish/guestfish-actions.pod:252
17348 #, no-wrap
17349 msgid ""
17350 " aug-load\n"
17351 "\n"
17352 msgstr ""
17353
17354 # type: =head2
17355 #: ../fish/guestfish-actions.pod:259
17356 msgid "aug-ls"
17357 msgstr ""
17358
17359 # type: verbatim
17360 #: ../fish/guestfish-actions.pod:261
17361 #, no-wrap
17362 msgid ""
17363 " aug-ls augpath\n"
17364 "\n"
17365 msgstr ""
17366
17367 # type: textblock
17368 #: ../fish/guestfish-actions.pod:263
17369 msgid ""
17370 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17371 "resulting nodes into alphabetical order."
17372 msgstr ""
17373
17374 # type: =head2
17375 #: ../fish/guestfish-actions.pod:266
17376 msgid "aug-match"
17377 msgstr ""
17378
17379 # type: verbatim
17380 #: ../fish/guestfish-actions.pod:268
17381 #, no-wrap
17382 msgid ""
17383 " aug-match augpath\n"
17384 "\n"
17385 msgstr ""
17386
17387 # type: =head2
17388 #: ../fish/guestfish-actions.pod:274
17389 msgid "aug-mv"
17390 msgstr ""
17391
17392 # type: verbatim
17393 #: ../fish/guestfish-actions.pod:276
17394 #, no-wrap
17395 msgid ""
17396 " aug-mv src dest\n"
17397 "\n"
17398 msgstr ""
17399
17400 # type: =head2
17401 #: ../fish/guestfish-actions.pod:281
17402 msgid "aug-rm"
17403 msgstr ""
17404
17405 # type: verbatim
17406 #: ../fish/guestfish-actions.pod:283
17407 #, no-wrap
17408 msgid ""
17409 " aug-rm augpath\n"
17410 "\n"
17411 msgstr ""
17412
17413 # type: =head2
17414 #: ../fish/guestfish-actions.pod:289
17415 msgid "aug-save"
17416 msgstr ""
17417
17418 # type: verbatim
17419 #: ../fish/guestfish-actions.pod:291
17420 #, no-wrap
17421 msgid ""
17422 " aug-save\n"
17423 "\n"
17424 msgstr ""
17425
17426 # type: textblock
17427 #: ../fish/guestfish-actions.pod:295
17428 msgid ""
17429 "The flags which were passed to L</aug-init> affect exactly how files are "
17430 "saved."
17431 msgstr ""
17432
17433 # type: =head2
17434 #: ../fish/guestfish-actions.pod:298
17435 msgid "aug-set"
17436 msgstr ""
17437
17438 # type: verbatim
17439 #: ../fish/guestfish-actions.pod:300
17440 #, no-wrap
17441 msgid ""
17442 " aug-set augpath val\n"
17443 "\n"
17444 msgstr ""
17445
17446 # type: textblock
17447 #: ../fish/guestfish-actions.pod:304
17448 msgid ""
17449 "In the Augeas API, it is possible to clear a node by setting the value to "
17450 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17451 "this call.  Instead you must use the L</aug-clear> call."
17452 msgstr ""
17453
17454 # type: =head2
17455 #: ../fish/guestfish-actions.pod:309
17456 msgid "available"
17457 msgstr ""
17458
17459 # type: verbatim
17460 #: ../fish/guestfish-actions.pod:311
17461 #, no-wrap
17462 msgid ""
17463 " available 'groups ...'\n"
17464 "\n"
17465 msgstr ""
17466
17467 # type: textblock
17468 #: ../fish/guestfish-actions.pod:317
17469 msgid ""
17470 "The libguestfs groups, and the functions that those groups correspond to, "
17471 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17472 "runtime by calling L</available-all-groups>."
17473 msgstr ""
17474
17475 # type: textblock
17476 #: ../fish/guestfish-actions.pod:341
17477 msgid "You must call L</launch> before calling this function."
17478 msgstr ""
17479
17480 # type: textblock
17481 #: ../fish/guestfish-actions.pod:363
17482 msgid ""
17483 "This call was added in version C<1.0.80>.  In previous versions of "
17484 "libguestfs all you could do would be to speculatively execute a command to "
17485 "find out if the daemon implemented it.  See also L</version>."
17486 msgstr ""
17487
17488 # type: =head2
17489 #: ../fish/guestfish-actions.pod:370
17490 msgid "available-all-groups"
17491 msgstr ""
17492
17493 # type: verbatim
17494 #: ../fish/guestfish-actions.pod:372
17495 #, no-wrap
17496 msgid ""
17497 " available-all-groups\n"
17498 "\n"
17499 msgstr ""
17500
17501 # type: textblock
17502 #: ../fish/guestfish-actions.pod:374
17503 msgid ""
17504 "This command returns a list of all optional groups that this daemon knows "
17505 "about.  Note this returns both supported and unsupported groups.  To find "
17506 "out which ones the daemon can actually support you have to call "
17507 "L</available> on each member of the returned list."
17508 msgstr ""
17509
17510 # type: textblock
17511 #: ../fish/guestfish-actions.pod:380
17512 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17513 msgstr ""
17514
17515 # type: =head2
17516 #: ../fish/guestfish-actions.pod:382
17517 msgid "base64-in"
17518 msgstr ""
17519
17520 # type: verbatim
17521 #: ../fish/guestfish-actions.pod:384
17522 #, no-wrap
17523 msgid ""
17524 " base64-in (base64file|-) filename\n"
17525 "\n"
17526 msgstr ""
17527
17528 # type: textblock
17529 #: ../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:3928 ../fish/guestfish-actions.pod:3940 ../fish/guestfish-actions.pod:3951 ../fish/guestfish-actions.pod:3962 ../fish/guestfish-actions.pod:4014 ../fish/guestfish-actions.pod:4023 ../fish/guestfish-actions.pod:4077 ../fish/guestfish-actions.pod:4100
17530 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17531 msgstr ""
17532
17533 # type: =head2
17534 #: ../fish/guestfish-actions.pod:391
17535 msgid "base64-out"
17536 msgstr ""
17537
17538 # type: verbatim
17539 #: ../fish/guestfish-actions.pod:393
17540 #, no-wrap
17541 msgid ""
17542 " base64-out filename (base64file|-)\n"
17543 "\n"
17544 msgstr ""
17545
17546 # type: =head2
17547 #: ../fish/guestfish-actions.pod:400
17548 msgid "blockdev-flushbufs"
17549 msgstr ""
17550
17551 # type: verbatim
17552 #: ../fish/guestfish-actions.pod:402
17553 #, no-wrap
17554 msgid ""
17555 " blockdev-flushbufs device\n"
17556 "\n"
17557 msgstr ""
17558
17559 # type: =head2
17560 #: ../fish/guestfish-actions.pod:409
17561 msgid "blockdev-getbsz"
17562 msgstr ""
17563
17564 # type: verbatim
17565 #: ../fish/guestfish-actions.pod:411
17566 #, no-wrap
17567 msgid ""
17568 " blockdev-getbsz device\n"
17569 "\n"
17570 msgstr ""
17571
17572 # type: =head2
17573 #: ../fish/guestfish-actions.pod:420
17574 msgid "blockdev-getro"
17575 msgstr ""
17576
17577 # type: verbatim
17578 #: ../fish/guestfish-actions.pod:422
17579 #, no-wrap
17580 msgid ""
17581 " blockdev-getro device\n"
17582 "\n"
17583 msgstr ""
17584
17585 # type: =head2
17586 #: ../fish/guestfish-actions.pod:429
17587 msgid "blockdev-getsize64"
17588 msgstr ""
17589
17590 # type: verbatim
17591 #: ../fish/guestfish-actions.pod:431
17592 #, no-wrap
17593 msgid ""
17594 " blockdev-getsize64 device\n"
17595 "\n"
17596 msgstr ""
17597
17598 # type: textblock
17599 #: ../fish/guestfish-actions.pod:435
17600 msgid "See also L</blockdev-getsz>."
17601 msgstr ""
17602
17603 # type: =head2
17604 #: ../fish/guestfish-actions.pod:439
17605 msgid "blockdev-getss"
17606 msgstr ""
17607
17608 # type: verbatim
17609 #: ../fish/guestfish-actions.pod:441
17610 #, no-wrap
17611 msgid ""
17612 " blockdev-getss device\n"
17613 "\n"
17614 msgstr ""
17615
17616 # type: textblock
17617 #: ../fish/guestfish-actions.pod:446
17618 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
17619 msgstr ""
17620
17621 # type: =head2
17622 #: ../fish/guestfish-actions.pod:451
17623 msgid "blockdev-getsz"
17624 msgstr ""
17625
17626 # type: verbatim
17627 #: ../fish/guestfish-actions.pod:453
17628 #, no-wrap
17629 msgid ""
17630 " blockdev-getsz device\n"
17631 "\n"
17632 msgstr ""
17633
17634 # type: textblock
17635 #: ../fish/guestfish-actions.pod:458
17636 msgid ""
17637 "See also L</blockdev-getss> for the real sector size of the device, and "
17638 "L</blockdev-getsize64> for the more useful I<size in bytes>."
17639 msgstr ""
17640
17641 # type: =head2
17642 #: ../fish/guestfish-actions.pod:464
17643 msgid "blockdev-rereadpt"
17644 msgstr ""
17645
17646 # type: verbatim
17647 #: ../fish/guestfish-actions.pod:466
17648 #, no-wrap
17649 msgid ""
17650 " blockdev-rereadpt device\n"
17651 "\n"
17652 msgstr ""
17653
17654 # type: =head2
17655 #: ../fish/guestfish-actions.pod:472
17656 msgid "blockdev-setbsz"
17657 msgstr ""
17658
17659 # type: verbatim
17660 #: ../fish/guestfish-actions.pod:474
17661 #, no-wrap
17662 msgid ""
17663 " blockdev-setbsz device blocksize\n"
17664 "\n"
17665 msgstr ""
17666
17667 # type: =head2
17668 #: ../fish/guestfish-actions.pod:483
17669 msgid "blockdev-setro"
17670 msgstr ""
17671
17672 # type: verbatim
17673 #: ../fish/guestfish-actions.pod:485
17674 #, no-wrap
17675 msgid ""
17676 " blockdev-setro device\n"
17677 "\n"
17678 msgstr ""
17679
17680 # type: =head2
17681 #: ../fish/guestfish-actions.pod:491
17682 msgid "blockdev-setrw"
17683 msgstr ""
17684
17685 # type: verbatim
17686 #: ../fish/guestfish-actions.pod:493
17687 #, no-wrap
17688 msgid ""
17689 " blockdev-setrw device\n"
17690 "\n"
17691 msgstr ""
17692
17693 # type: =head2
17694 #: ../fish/guestfish-actions.pod:499
17695 msgid "case-sensitive-path"
17696 msgstr ""
17697
17698 # type: verbatim
17699 #: ../fish/guestfish-actions.pod:501
17700 #, no-wrap
17701 msgid ""
17702 " case-sensitive-path path\n"
17703 "\n"
17704 msgstr ""
17705
17706 # type: textblock
17707 #: ../fish/guestfish-actions.pod:525
17708 msgid ""
17709 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
17710 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
17711 "how the directories were originally created under Windows)."
17712 msgstr ""
17713
17714 # type: textblock
17715 #: ../fish/guestfish-actions.pod:533
17716 msgid "See also L</realpath>."
17717 msgstr ""
17718
17719 # type: =head2
17720 #: ../fish/guestfish-actions.pod:535
17721 msgid "cat"
17722 msgstr ""
17723
17724 # type: verbatim
17725 #: ../fish/guestfish-actions.pod:537
17726 #, no-wrap
17727 msgid ""
17728 " cat path\n"
17729 "\n"
17730 msgstr ""
17731
17732 # type: textblock
17733 #: ../fish/guestfish-actions.pod:541
17734 msgid ""
17735 "Note that this function cannot correctly handle binary files (specifically, "
17736 "files containing C<\\0> character which is treated as end of string).  For "
17737 "those you need to use the L</read-file> or L</download> functions which have "
17738 "a more complex interface."
17739 msgstr ""
17740
17741 # type: =head2
17742 #: ../fish/guestfish-actions.pod:549
17743 msgid "checksum"
17744 msgstr ""
17745
17746 # type: verbatim
17747 #: ../fish/guestfish-actions.pod:551
17748 #, no-wrap
17749 msgid ""
17750 " checksum csumtype path\n"
17751 "\n"
17752 msgstr ""
17753
17754 # type: textblock
17755 #: ../fish/guestfish-actions.pod:594
17756 msgid "To get the checksum for a device, use L</checksum-device>."
17757 msgstr ""
17758
17759 # type: textblock
17760 #: ../fish/guestfish-actions.pod:596
17761 msgid "To get the checksums for many files, use L</checksums-out>."
17762 msgstr ""
17763
17764 # type: =head2
17765 #: ../fish/guestfish-actions.pod:598
17766 msgid "checksum-device"
17767 msgstr ""
17768
17769 # type: verbatim
17770 #: ../fish/guestfish-actions.pod:600
17771 #, no-wrap
17772 msgid ""
17773 " checksum-device csumtype device\n"
17774 "\n"
17775 msgstr ""
17776
17777 # type: textblock
17778 #: ../fish/guestfish-actions.pod:602
17779 msgid ""
17780 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
17781 "device named C<device>.  For the types of checksums supported see the "
17782 "L</checksum> command."
17783 msgstr ""
17784
17785 # type: =head2
17786 #: ../fish/guestfish-actions.pod:606
17787 msgid "checksums-out"
17788 msgstr ""
17789
17790 # type: verbatim
17791 #: ../fish/guestfish-actions.pod:608
17792 #, no-wrap
17793 msgid ""
17794 " checksums-out csumtype directory (sumsfile|-)\n"
17795 "\n"
17796 msgstr ""
17797
17798 # type: =head2
17799 #: ../fish/guestfish-actions.pod:624
17800 msgid "chmod"
17801 msgstr ""
17802
17803 # type: verbatim
17804 #: ../fish/guestfish-actions.pod:626
17805 #, no-wrap
17806 msgid ""
17807 " chmod mode path\n"
17808 "\n"
17809 msgstr ""
17810
17811 # type: =head2
17812 #: ../fish/guestfish-actions.pod:637
17813 msgid "chown"
17814 msgstr ""
17815
17816 # type: verbatim
17817 #: ../fish/guestfish-actions.pod:639
17818 #, no-wrap
17819 msgid ""
17820 " chown owner group path\n"
17821 "\n"
17822 msgstr ""
17823
17824 # type: =head2
17825 #: ../fish/guestfish-actions.pod:647
17826 msgid "command"
17827 msgstr ""
17828
17829 # type: verbatim
17830 #: ../fish/guestfish-actions.pod:649
17831 #, no-wrap
17832 msgid ""
17833 " command 'arguments ...'\n"
17834 "\n"
17835 msgstr ""
17836
17837 # type: textblock
17838 #: ../fish/guestfish-actions.pod:656
17839 msgid ""
17840 "The single parameter is an argv-style list of arguments.  The first element "
17841 "is the name of the program to run.  Subsequent elements are parameters.  The "
17842 "list must be non-empty (ie. must contain a program name).  Note that the "
17843 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
17844 msgstr ""
17845
17846 # type: =head2
17847 #: ../fish/guestfish-actions.pod:684
17848 msgid "command-lines"
17849 msgstr ""
17850
17851 # type: verbatim
17852 #: ../fish/guestfish-actions.pod:686
17853 #, no-wrap
17854 msgid ""
17855 " command-lines 'arguments ...'\n"
17856 "\n"
17857 msgstr ""
17858
17859 # type: textblock
17860 #: ../fish/guestfish-actions.pod:688
17861 msgid "This is the same as L</command>, but splits the result into a list of lines."
17862 msgstr ""
17863
17864 # type: textblock
17865 #: ../fish/guestfish-actions.pod:691
17866 msgid "See also: L</sh-lines>"
17867 msgstr ""
17868
17869 # type: =head2
17870 #: ../fish/guestfish-actions.pod:696
17871 msgid "config"
17872 msgstr ""
17873
17874 # type: verbatim
17875 #: ../fish/guestfish-actions.pod:698
17876 #, no-wrap
17877 msgid ""
17878 " config qemuparam qemuvalue\n"
17879 "\n"
17880 msgstr ""
17881
17882 # type: =head2
17883 #: ../fish/guestfish-actions.pod:709
17884 msgid "copy-size"
17885 msgstr ""
17886
17887 # type: verbatim
17888 #: ../fish/guestfish-actions.pod:711
17889 #, no-wrap
17890 msgid ""
17891 " copy-size src dest size\n"
17892 "\n"
17893 msgstr ""
17894
17895 # type: =head2
17896 #: ../fish/guestfish-actions.pod:719
17897 msgid "cp"
17898 msgstr ""
17899
17900 # type: verbatim
17901 #: ../fish/guestfish-actions.pod:721
17902 #, no-wrap
17903 msgid ""
17904 " cp src dest\n"
17905 "\n"
17906 msgstr ""
17907
17908 # type: =head2
17909 #: ../fish/guestfish-actions.pod:726
17910 msgid "cp-a"
17911 msgstr ""
17912
17913 # type: verbatim
17914 #: ../fish/guestfish-actions.pod:728
17915 #, no-wrap
17916 msgid ""
17917 " cp-a src dest\n"
17918 "\n"
17919 msgstr ""
17920
17921 # type: =head2
17922 #: ../fish/guestfish-actions.pod:733
17923 msgid "dd"
17924 msgstr ""
17925
17926 # type: verbatim
17927 #: ../fish/guestfish-actions.pod:735
17928 #, no-wrap
17929 msgid ""
17930 " dd src dest\n"
17931 "\n"
17932 msgstr ""
17933
17934 # type: textblock
17935 #: ../fish/guestfish-actions.pod:742
17936 msgid ""
17937 "If the destination is a device, it must be as large or larger than the "
17938 "source file or device, otherwise the copy will fail.  This command cannot do "
17939 "partial copies (see L</copy-size>)."
17940 msgstr ""
17941
17942 # type: =head2
17943 #: ../fish/guestfish-actions.pod:746
17944 msgid "debug"
17945 msgstr ""
17946
17947 # type: verbatim
17948 #: ../fish/guestfish-actions.pod:748
17949 #, no-wrap
17950 msgid ""
17951 " debug subcmd 'extraargs ...'\n"
17952 "\n"
17953 msgstr ""
17954
17955 # type: textblock
17956 #: ../fish/guestfish-actions.pod:750
17957 msgid ""
17958 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
17959 "daemon) that runs inside the qemu subprocess."
17960 msgstr ""
17961
17962 # type: =head2
17963 #: ../fish/guestfish-actions.pod:758
17964 msgid "debug-upload"
17965 msgstr ""
17966
17967 # type: verbatim
17968 #: ../fish/guestfish-actions.pod:760
17969 #, no-wrap
17970 msgid ""
17971 " debug-upload (filename|-) tmpname mode\n"
17972 "\n"
17973 msgstr ""
17974
17975 # type: textblock
17976 #: ../fish/guestfish-actions.pod:762
17977 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
17978 msgstr ""
17979
17980 # type: =head2
17981 #: ../fish/guestfish-actions.pod:771
17982 msgid "df"
17983 msgstr ""
17984
17985 # type: verbatim
17986 #: ../fish/guestfish-actions.pod:773
17987 #, no-wrap
17988 msgid ""
17989 " df\n"
17990 "\n"
17991 msgstr ""
17992
17993 # type: =head2
17994 #: ../fish/guestfish-actions.pod:781
17995 msgid "df-h"
17996 msgstr ""
17997
17998 # type: verbatim
17999 #: ../fish/guestfish-actions.pod:783
18000 #, no-wrap
18001 msgid ""
18002 " df-h\n"
18003 "\n"
18004 msgstr ""
18005
18006 # type: =head2
18007 #: ../fish/guestfish-actions.pod:792
18008 msgid "dmesg"
18009 msgstr ""
18010
18011 # type: verbatim
18012 #: ../fish/guestfish-actions.pod:794
18013 #, no-wrap
18014 msgid ""
18015 " dmesg\n"
18016 "\n"
18017 msgstr ""
18018
18019 # type: textblock
18020 #: ../fish/guestfish-actions.pod:800
18021 msgid ""
18022 "Another way to get the same information is to enable verbose messages with "
18023 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18024 "before running the program."
18025 msgstr ""
18026
18027 # type: =head2
18028 #: ../fish/guestfish-actions.pod:805
18029 msgid "download"
18030 msgstr ""
18031
18032 # type: verbatim
18033 #: ../fish/guestfish-actions.pod:807
18034 #, no-wrap
18035 msgid ""
18036 " download remotefilename (filename|-)\n"
18037 "\n"
18038 msgstr ""
18039
18040 # type: textblock
18041 #: ../fish/guestfish-actions.pod:814
18042 msgid "See also L</upload>, L</cat>."
18043 msgstr ""
18044
18045 # type: =head2
18046 #: ../fish/guestfish-actions.pod:818
18047 msgid "download-offset"
18048 msgstr ""
18049
18050 # type: verbatim
18051 #: ../fish/guestfish-actions.pod:820
18052 #, no-wrap
18053 msgid ""
18054 " download-offset remotefilename (filename|-) offset size\n"
18055 "\n"
18056 msgstr ""
18057
18058 # type: textblock
18059 #: ../fish/guestfish-actions.pod:828
18060 msgid ""
18061 "Note that there is no limit on the amount of data that can be downloaded "
18062 "with this call, unlike with L</pread>, and this call always reads the full "
18063 "amount unless an error occurs."
18064 msgstr ""
18065
18066 # type: textblock
18067 #: ../fish/guestfish-actions.pod:833
18068 msgid "See also L</download>, L</pread>."
18069 msgstr ""
18070
18071 # type: =head2
18072 #: ../fish/guestfish-actions.pod:837
18073 msgid "drop-caches"
18074 msgstr ""
18075
18076 # type: verbatim
18077 #: ../fish/guestfish-actions.pod:839
18078 #, no-wrap
18079 msgid ""
18080 " drop-caches whattodrop\n"
18081 "\n"
18082 msgstr ""
18083
18084 # type: =head2
18085 #: ../fish/guestfish-actions.pod:851
18086 msgid "du"
18087 msgstr ""
18088
18089 # type: verbatim
18090 #: ../fish/guestfish-actions.pod:853
18091 #, no-wrap
18092 msgid ""
18093 " du path\n"
18094 "\n"
18095 msgstr ""
18096
18097 # type: =head2
18098 #: ../fish/guestfish-actions.pod:865
18099 msgid "e2fsck-f"
18100 msgstr ""
18101
18102 # type: verbatim
18103 #: ../fish/guestfish-actions.pod:867
18104 #, no-wrap
18105 msgid ""
18106 " e2fsck-f device\n"
18107 "\n"
18108 msgstr ""
18109
18110 # type: textblock
18111 #: ../fish/guestfish-actions.pod:873
18112 msgid ""
18113 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18114 "should use L</fsck>."
18115 msgstr ""
18116
18117 # type: =head2
18118 #: ../fish/guestfish-actions.pod:876
18119 msgid "echo-daemon"
18120 msgstr ""
18121
18122 # type: verbatim
18123 #: ../fish/guestfish-actions.pod:878
18124 #, no-wrap
18125 msgid ""
18126 " echo-daemon 'words ...'\n"
18127 "\n"
18128 msgstr ""
18129
18130 # type: textblock
18131 #: ../fish/guestfish-actions.pod:885
18132 msgid "See also L</ping-daemon>."
18133 msgstr ""
18134
18135 # type: =head2
18136 #: ../fish/guestfish-actions.pod:887
18137 msgid "egrep"
18138 msgstr ""
18139
18140 # type: verbatim
18141 #: ../fish/guestfish-actions.pod:889
18142 #, no-wrap
18143 msgid ""
18144 " egrep regex path\n"
18145 "\n"
18146 msgstr ""
18147
18148 # type: =head2
18149 #: ../fish/guestfish-actions.pod:897
18150 msgid "egrepi"
18151 msgstr ""
18152
18153 # type: verbatim
18154 #: ../fish/guestfish-actions.pod:899
18155 #, no-wrap
18156 msgid ""
18157 " egrepi regex path\n"
18158 "\n"
18159 msgstr ""
18160
18161 # type: =head2
18162 #: ../fish/guestfish-actions.pod:907
18163 msgid "equal"
18164 msgstr ""
18165
18166 # type: verbatim
18167 #: ../fish/guestfish-actions.pod:909
18168 #, no-wrap
18169 msgid ""
18170 " equal file1 file2\n"
18171 "\n"
18172 msgstr ""
18173
18174 # type: =head2
18175 #: ../fish/guestfish-actions.pod:916
18176 msgid "exists"
18177 msgstr ""
18178
18179 # type: verbatim
18180 #: ../fish/guestfish-actions.pod:918
18181 #, no-wrap
18182 msgid ""
18183 " exists path\n"
18184 "\n"
18185 msgstr ""
18186
18187 # type: textblock
18188 #: ../fish/guestfish-actions.pod:923
18189 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18190 msgstr ""
18191
18192 # type: =head2
18193 #: ../fish/guestfish-actions.pod:925
18194 msgid "fallocate"
18195 msgstr ""
18196
18197 # type: verbatim
18198 #: ../fish/guestfish-actions.pod:927
18199 #, no-wrap
18200 msgid ""
18201 " fallocate path len\n"
18202 "\n"
18203 msgstr ""
18204
18205 # type: =head2
18206 #: ../fish/guestfish-actions.pod:944
18207 msgid "fallocate64"
18208 msgstr ""
18209
18210 # type: verbatim
18211 #: ../fish/guestfish-actions.pod:946
18212 #, no-wrap
18213 msgid ""
18214 " fallocate64 path len\n"
18215 "\n"
18216 msgstr ""
18217
18218 # type: textblock
18219 #: ../fish/guestfish-actions.pod:952
18220 msgid ""
18221 "Note that this call allocates disk blocks for the file.  To create a sparse "
18222 "file use L</truncate-size> instead."
18223 msgstr ""
18224
18225 # type: textblock
18226 #: ../fish/guestfish-actions.pod:955
18227 msgid ""
18228 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18229 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18230 "maximum size of files created through that call to 1GB."
18231 msgstr ""
18232
18233 # type: =head2
18234 #: ../fish/guestfish-actions.pod:964
18235 msgid "fgrep"
18236 msgstr ""
18237
18238 # type: verbatim
18239 #: ../fish/guestfish-actions.pod:966
18240 #, no-wrap
18241 msgid ""
18242 " fgrep pattern path\n"
18243 "\n"
18244 msgstr ""
18245
18246 # type: =head2
18247 #: ../fish/guestfish-actions.pod:974
18248 msgid "fgrepi"
18249 msgstr ""
18250
18251 # type: verbatim
18252 #: ../fish/guestfish-actions.pod:976
18253 #, no-wrap
18254 msgid ""
18255 " fgrepi pattern path\n"
18256 "\n"
18257 msgstr ""
18258
18259 # type: =head2
18260 #: ../fish/guestfish-actions.pod:984
18261 msgid "file"
18262 msgstr ""
18263
18264 # type: verbatim
18265 #: ../fish/guestfish-actions.pod:986
18266 #, no-wrap
18267 msgid ""
18268 " file path\n"
18269 "\n"
18270 msgstr ""
18271
18272 # type: textblock
18273 #: ../fish/guestfish-actions.pod:998
18274 msgid ""
18275 "This command can also be used on C</dev/> devices (and partitions, LV "
18276 "names).  You can for example use this to determine if a device contains a "
18277 "filesystem, although it's usually better to use L</vfs-type>."
18278 msgstr ""
18279
18280 # type: =head2
18281 #: ../fish/guestfish-actions.pod:1008
18282 msgid "file-architecture"
18283 msgstr ""
18284
18285 # type: verbatim
18286 #: ../fish/guestfish-actions.pod:1010
18287 #, no-wrap
18288 msgid ""
18289 " file-architecture filename\n"
18290 "\n"
18291 msgstr ""
18292
18293 # type: =head2
18294 #: ../fish/guestfish-actions.pod:1113
18295 msgid "filesize"
18296 msgstr ""
18297
18298 # type: verbatim
18299 #: ../fish/guestfish-actions.pod:1115
18300 #, no-wrap
18301 msgid ""
18302 " filesize file\n"
18303 "\n"
18304 msgstr ""
18305
18306 # type: textblock
18307 #: ../fish/guestfish-actions.pod:1119
18308 msgid ""
18309 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
18310 "L</is-file> etc.  To get the size of block devices, use "
18311 "L</blockdev-getsize64>."
18312 msgstr ""
18313
18314 # type: =head2
18315 #: ../fish/guestfish-actions.pod:1123
18316 msgid "fill"
18317 msgstr ""
18318
18319 # type: verbatim
18320 #: ../fish/guestfish-actions.pod:1125
18321 #, no-wrap
18322 msgid ""
18323 " fill c len path\n"
18324 "\n"
18325 msgstr ""
18326
18327 # type: textblock
18328 #: ../fish/guestfish-actions.pod:1131
18329 msgid ""
18330 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18331 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18332 "L</fill-pattern>."
18333 msgstr ""
18334
18335 # type: =head2
18336 #: ../fish/guestfish-actions.pod:1136
18337 msgid "fill-pattern"
18338 msgstr ""
18339
18340 # type: verbatim
18341 #: ../fish/guestfish-actions.pod:1138
18342 #, no-wrap
18343 msgid ""
18344 " fill-pattern pattern len path\n"
18345 "\n"
18346 msgstr ""
18347
18348 # type: textblock
18349 #: ../fish/guestfish-actions.pod:1140
18350 msgid ""
18351 "This function is like L</fill> except that it creates a new file of length "
18352 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18353 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18354 "bytes."
18355 msgstr ""
18356
18357 # type: =head2
18358 #: ../fish/guestfish-actions.pod:1145
18359 msgid "find"
18360 msgstr ""
18361
18362 # type: verbatim
18363 #: ../fish/guestfish-actions.pod:1147
18364 #, no-wrap
18365 msgid ""
18366 " find directory\n"
18367 "\n"
18368 msgstr ""
18369
18370 # type: textblock
18371 #: ../fish/guestfish-actions.pod:1161
18372 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18373 msgstr ""
18374
18375 # type: textblock
18376 #: ../fish/guestfish-actions.pod:1174
18377 msgid "See also L</find0>."
18378 msgstr ""
18379
18380 # type: =head2
18381 #: ../fish/guestfish-actions.pod:1179
18382 msgid "find0"
18383 msgstr ""
18384
18385 # type: verbatim
18386 #: ../fish/guestfish-actions.pod:1181
18387 #, no-wrap
18388 msgid ""
18389 " find0 directory (files|-)\n"
18390 "\n"
18391 msgstr ""
18392
18393 # type: textblock
18394 #: ../fish/guestfish-actions.pod:1187
18395 msgid "This command works the same way as L</find> with the following exceptions:"
18396 msgstr ""
18397
18398 # type: =head2
18399 #: ../fish/guestfish-actions.pod:1214
18400 msgid "findfs-label"
18401 msgstr ""
18402
18403 # type: verbatim
18404 #: ../fish/guestfish-actions.pod:1216
18405 #, no-wrap
18406 msgid ""
18407 " findfs-label label\n"
18408 "\n"
18409 msgstr ""
18410
18411 # type: textblock
18412 #: ../fish/guestfish-actions.pod:1222
18413 msgid "To find the label of a filesystem, use L</vfs-label>."
18414 msgstr ""
18415
18416 # type: =head2
18417 #: ../fish/guestfish-actions.pod:1224
18418 msgid "findfs-uuid"
18419 msgstr ""
18420
18421 # type: verbatim
18422 #: ../fish/guestfish-actions.pod:1226
18423 #, no-wrap
18424 msgid ""
18425 " findfs-uuid uuid\n"
18426 "\n"
18427 msgstr ""
18428
18429 # type: textblock
18430 #: ../fish/guestfish-actions.pod:1232
18431 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18432 msgstr ""
18433
18434 # type: =head2
18435 #: ../fish/guestfish-actions.pod:1234
18436 msgid "fsck"
18437 msgstr ""
18438
18439 # type: verbatim
18440 #: ../fish/guestfish-actions.pod:1236
18441 #, no-wrap
18442 msgid ""
18443 " fsck fstype device\n"
18444 "\n"
18445 msgstr ""
18446
18447 # type: =head2
18448 #: ../fish/guestfish-actions.pod:1266
18449 msgid "get-append"
18450 msgstr ""
18451
18452 # type: verbatim
18453 #: ../fish/guestfish-actions.pod:1268
18454 #, no-wrap
18455 msgid ""
18456 " get-append\n"
18457 "\n"
18458 msgstr ""
18459
18460 # type: =head2
18461 #: ../fish/guestfish-actions.pod:1275
18462 msgid "get-autosync"
18463 msgstr ""
18464
18465 # type: verbatim
18466 #: ../fish/guestfish-actions.pod:1277
18467 #, no-wrap
18468 msgid ""
18469 " get-autosync\n"
18470 "\n"
18471 msgstr ""
18472
18473 # type: =head2
18474 #: ../fish/guestfish-actions.pod:1281
18475 msgid "get-direct"
18476 msgstr ""
18477
18478 # type: verbatim
18479 #: ../fish/guestfish-actions.pod:1283
18480 #, no-wrap
18481 msgid ""
18482 " get-direct\n"
18483 "\n"
18484 msgstr ""
18485
18486 # type: =head2
18487 #: ../fish/guestfish-actions.pod:1287
18488 msgid "get-e2label"
18489 msgstr ""
18490
18491 # type: verbatim
18492 #: ../fish/guestfish-actions.pod:1289
18493 #, no-wrap
18494 msgid ""
18495 " get-e2label device\n"
18496 "\n"
18497 msgstr ""
18498
18499 # type: =head2
18500 #: ../fish/guestfish-actions.pod:1301
18501 msgid "get-e2uuid"
18502 msgstr ""
18503
18504 # type: verbatim
18505 #: ../fish/guestfish-actions.pod:1303
18506 #, no-wrap
18507 msgid ""
18508 " get-e2uuid device\n"
18509 "\n"
18510 msgstr ""
18511
18512 # type: =head2
18513 #: ../fish/guestfish-actions.pod:1315
18514 msgid "get-memsize"
18515 msgstr ""
18516
18517 # type: verbatim
18518 #: ../fish/guestfish-actions.pod:1317
18519 #, no-wrap
18520 msgid ""
18521 " get-memsize\n"
18522 "\n"
18523 msgstr ""
18524
18525 # type: textblock
18526 #: ../fish/guestfish-actions.pod:1322
18527 msgid ""
18528 "If L</set-memsize> was not called on this handle, and if "
18529 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18530 "value for memsize."
18531 msgstr ""
18532
18533 # type: =head2
18534 #: ../fish/guestfish-actions.pod:1329
18535 msgid "get-network"
18536 msgstr ""
18537
18538 # type: verbatim
18539 #: ../fish/guestfish-actions.pod:1331
18540 #, no-wrap
18541 msgid ""
18542 " get-network\n"
18543 "\n"
18544 msgstr ""
18545
18546 # type: =head2
18547 #: ../fish/guestfish-actions.pod:1335
18548 msgid "get-path"
18549 msgstr ""
18550
18551 # type: verbatim
18552 #: ../fish/guestfish-actions.pod:1337
18553 #, no-wrap
18554 msgid ""
18555 " get-path\n"
18556 "\n"
18557 msgstr ""
18558
18559 # type: =head2
18560 #: ../fish/guestfish-actions.pod:1344
18561 msgid "get-pid"
18562 msgstr ""
18563
18564 # type: =head2
18565 #: ../fish/guestfish-actions.pod:1346
18566 msgid "pid"
18567 msgstr ""
18568
18569 # type: verbatim
18570 #: ../fish/guestfish-actions.pod:1348
18571 #, no-wrap
18572 msgid ""
18573 " get-pid\n"
18574 "\n"
18575 msgstr ""
18576
18577 # type: =head2
18578 #: ../fish/guestfish-actions.pod:1355
18579 msgid "get-qemu"
18580 msgstr ""
18581
18582 # type: verbatim
18583 #: ../fish/guestfish-actions.pod:1357
18584 #, no-wrap
18585 msgid ""
18586 " get-qemu\n"
18587 "\n"
18588 msgstr ""
18589
18590 # type: =head2
18591 #: ../fish/guestfish-actions.pod:1364
18592 msgid "get-recovery-proc"
18593 msgstr ""
18594
18595 # type: verbatim
18596 #: ../fish/guestfish-actions.pod:1366
18597 #, no-wrap
18598 msgid ""
18599 " get-recovery-proc\n"
18600 "\n"
18601 msgstr ""
18602
18603 # type: =head2
18604 #: ../fish/guestfish-actions.pod:1370
18605 msgid "get-selinux"
18606 msgstr ""
18607
18608 # type: verbatim
18609 #: ../fish/guestfish-actions.pod:1372
18610 #, no-wrap
18611 msgid ""
18612 " get-selinux\n"
18613 "\n"
18614 msgstr ""
18615
18616 # type: textblock
18617 #: ../fish/guestfish-actions.pod:1374
18618 msgid ""
18619 "This returns the current setting of the selinux flag which is passed to the "
18620 "appliance at boot time.  See L</set-selinux>."
18621 msgstr ""
18622
18623 # type: =head2
18624 #: ../fish/guestfish-actions.pod:1380
18625 msgid "get-state"
18626 msgstr ""
18627
18628 # type: verbatim
18629 #: ../fish/guestfish-actions.pod:1382
18630 #, no-wrap
18631 msgid ""
18632 " get-state\n"
18633 "\n"
18634 msgstr ""
18635
18636 # type: =head2
18637 #: ../fish/guestfish-actions.pod:1389
18638 msgid "get-trace"
18639 msgstr ""
18640
18641 # type: verbatim
18642 #: ../fish/guestfish-actions.pod:1391
18643 #, no-wrap
18644 msgid ""
18645 " get-trace\n"
18646 "\n"
18647 msgstr ""
18648
18649 # type: =head2
18650 #: ../fish/guestfish-actions.pod:1395
18651 msgid "get-umask"
18652 msgstr ""
18653
18654 # type: verbatim
18655 #: ../fish/guestfish-actions.pod:1397
18656 #, no-wrap
18657 msgid ""
18658 " get-umask\n"
18659 "\n"
18660 msgstr ""
18661
18662 # type: textblock
18663 #: ../fish/guestfish-actions.pod:1399
18664 msgid ""
18665 "Return the current umask.  By default the umask is C<022> unless it has been "
18666 "set by calling L</umask>."
18667 msgstr ""
18668
18669 # type: =head2
18670 #: ../fish/guestfish-actions.pod:1402
18671 msgid "get-verbose"
18672 msgstr ""
18673
18674 # type: verbatim
18675 #: ../fish/guestfish-actions.pod:1404
18676 #, no-wrap
18677 msgid ""
18678 " get-verbose\n"
18679 "\n"
18680 msgstr ""
18681
18682 # type: =head2
18683 #: ../fish/guestfish-actions.pod:1408
18684 msgid "getcon"
18685 msgstr ""
18686
18687 # type: verbatim
18688 #: ../fish/guestfish-actions.pod:1410
18689 #, no-wrap
18690 msgid ""
18691 " getcon\n"
18692 "\n"
18693 msgstr ""
18694
18695 # type: textblock
18696 #: ../fish/guestfish-actions.pod:1414
18697 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
18698 msgstr ""
18699
18700 # type: =head2
18701 #: ../fish/guestfish-actions.pod:1417
18702 msgid "getxattrs"
18703 msgstr ""
18704
18705 # type: verbatim
18706 #: ../fish/guestfish-actions.pod:1419
18707 #, no-wrap
18708 msgid ""
18709 " getxattrs path\n"
18710 "\n"
18711 msgstr ""
18712
18713 # type: textblock
18714 #: ../fish/guestfish-actions.pod:1427
18715 msgid "See also: L</lgetxattrs>, L<attr(5)>."
18716 msgstr ""
18717
18718 # type: =head2
18719 #: ../fish/guestfish-actions.pod:1429
18720 msgid "glob-expand"
18721 msgstr ""
18722
18723 # type: verbatim
18724 #: ../fish/guestfish-actions.pod:1431
18725 #, no-wrap
18726 msgid ""
18727 " glob-expand pattern\n"
18728 "\n"
18729 msgstr ""
18730
18731 # type: =head2
18732 #: ../fish/guestfish-actions.pod:1444
18733 msgid "grep"
18734 msgstr ""
18735
18736 # type: verbatim
18737 #: ../fish/guestfish-actions.pod:1446
18738 #, no-wrap
18739 msgid ""
18740 " grep regex path\n"
18741 "\n"
18742 msgstr ""
18743
18744 # type: =head2
18745 #: ../fish/guestfish-actions.pod:1454
18746 msgid "grepi"
18747 msgstr ""
18748
18749 # type: verbatim
18750 #: ../fish/guestfish-actions.pod:1456
18751 #, no-wrap
18752 msgid ""
18753 " grepi regex path\n"
18754 "\n"
18755 msgstr ""
18756
18757 # type: =head2
18758 #: ../fish/guestfish-actions.pod:1464
18759 msgid "grub-install"
18760 msgstr ""
18761
18762 # type: verbatim
18763 #: ../fish/guestfish-actions.pod:1466
18764 #, no-wrap
18765 msgid ""
18766 " grub-install root device\n"
18767 "\n"
18768 msgstr ""
18769
18770 # type: =head2
18771 #: ../fish/guestfish-actions.pod:1482
18772 msgid "head"
18773 msgstr ""
18774
18775 # type: verbatim
18776 #: ../fish/guestfish-actions.pod:1484
18777 #, no-wrap
18778 msgid ""
18779 " head path\n"
18780 "\n"
18781 msgstr ""
18782
18783 # type: =head2
18784 #: ../fish/guestfish-actions.pod:1492
18785 msgid "head-n"
18786 msgstr ""
18787
18788 # type: verbatim
18789 #: ../fish/guestfish-actions.pod:1494
18790 #, no-wrap
18791 msgid ""
18792 " head-n nrlines path\n"
18793 "\n"
18794 msgstr ""
18795
18796 # type: =head2
18797 #: ../fish/guestfish-actions.pod:1507
18798 msgid "hexdump"
18799 msgstr ""
18800
18801 # type: verbatim
18802 #: ../fish/guestfish-actions.pod:1509
18803 #, no-wrap
18804 msgid ""
18805 " hexdump path\n"
18806 "\n"
18807 msgstr ""
18808
18809 # type: =head2
18810 #: ../fish/guestfish-actions.pod:1517
18811 msgid "initrd-cat"
18812 msgstr ""
18813
18814 # type: verbatim
18815 #: ../fish/guestfish-actions.pod:1519
18816 #, no-wrap
18817 msgid ""
18818 " initrd-cat initrdpath filename\n"
18819 "\n"
18820 msgstr ""
18821
18822 # type: textblock
18823 #: ../fish/guestfish-actions.pod:1531
18824 msgid "See also L</initrd-list>."
18825 msgstr ""
18826
18827 # type: =head2
18828 #: ../fish/guestfish-actions.pod:1536
18829 msgid "initrd-list"
18830 msgstr ""
18831
18832 # type: verbatim
18833 #: ../fish/guestfish-actions.pod:1538
18834 #, no-wrap
18835 msgid ""
18836 " initrd-list path\n"
18837 "\n"
18838 msgstr ""
18839
18840 # type: =head2
18841 #: ../fish/guestfish-actions.pod:1550
18842 msgid "inotify-add-watch"
18843 msgstr ""
18844
18845 # type: verbatim
18846 #: ../fish/guestfish-actions.pod:1552
18847 #, no-wrap
18848 msgid ""
18849 " inotify-add-watch path mask\n"
18850 "\n"
18851 msgstr ""
18852
18853 # type: =head2
18854 #: ../fish/guestfish-actions.pod:1564
18855 msgid "inotify-close"
18856 msgstr ""
18857
18858 # type: verbatim
18859 #: ../fish/guestfish-actions.pod:1566
18860 #, no-wrap
18861 msgid ""
18862 " inotify-close\n"
18863 "\n"
18864 msgstr ""
18865
18866 # type: =head2
18867 #: ../fish/guestfish-actions.pod:1572
18868 msgid "inotify-files"
18869 msgstr ""
18870
18871 # type: verbatim
18872 #: ../fish/guestfish-actions.pod:1574
18873 #, no-wrap
18874 msgid ""
18875 " inotify-files\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: textblock
18880 #: ../fish/guestfish-actions.pod:1576
18881 msgid ""
18882 "This function is a helpful wrapper around L</inotify-read> which just "
18883 "returns a list of pathnames of objects that were touched.  The returned "
18884 "pathnames are sorted and deduplicated."
18885 msgstr ""
18886
18887 # type: =head2
18888 #: ../fish/guestfish-actions.pod:1580
18889 msgid "inotify-init"
18890 msgstr ""
18891
18892 # type: verbatim
18893 #: ../fish/guestfish-actions.pod:1582
18894 #, no-wrap
18895 msgid ""
18896 " inotify-init maxevents\n"
18897 "\n"
18898 msgstr ""
18899
18900 # type: textblock
18901 #: ../fish/guestfish-actions.pod:1588
18902 msgid ""
18903 "C<maxevents> is the maximum number of events which will be queued up between "
18904 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
18905 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
18906 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
18907 "but records the fact that it threw them away by setting a flag "
18908 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
18909 msgstr ""
18910
18911 # type: textblock
18912 #: ../fish/guestfish-actions.pod:1598
18913 msgid ""
18914 "Before any events are generated, you have to add some watches to the "
18915 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
18916 "L</inotify-watch-all>."
18917 msgstr ""
18918
18919 # type: textblock
18920 #: ../fish/guestfish-actions.pod:1604
18921 msgid ""
18922 "Queued up events should be read periodically by calling L</inotify-read> (or "
18923 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
18924 "If you don't read the events out often enough then you risk the internal "
18925 "queue overflowing."
18926 msgstr ""
18927
18928 # type: textblock
18929 #: ../fish/guestfish-actions.pod:1611
18930 msgid ""
18931 "The handle should be closed after use by calling L</inotify-close>.  This "
18932 "also removes any watches automatically."
18933 msgstr ""
18934
18935 # type: =head2
18936 #: ../fish/guestfish-actions.pod:1620
18937 msgid "inotify-read"
18938 msgstr ""
18939
18940 # type: verbatim
18941 #: ../fish/guestfish-actions.pod:1622
18942 #, no-wrap
18943 msgid ""
18944 " inotify-read\n"
18945 "\n"
18946 msgstr ""
18947
18948 # type: =head2
18949 #: ../fish/guestfish-actions.pod:1635
18950 msgid "inotify-rm-watch"
18951 msgstr ""
18952
18953 # type: verbatim
18954 #: ../fish/guestfish-actions.pod:1637
18955 #, no-wrap
18956 msgid ""
18957 " inotify-rm-watch wd\n"
18958 "\n"
18959 msgstr ""
18960
18961 # type: textblock
18962 #: ../fish/guestfish-actions.pod:1639
18963 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
18964 msgstr ""
18965
18966 # type: =head2
18967 #: ../fish/guestfish-actions.pod:1642
18968 msgid "inspect-get-arch"
18969 msgstr ""
18970
18971 # type: verbatim
18972 #: ../fish/guestfish-actions.pod:1644
18973 #, no-wrap
18974 msgid ""
18975 " inspect-get-arch root\n"
18976 "\n"
18977 msgstr ""
18978
18979 # type: textblock
18980 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1724 ../fish/guestfish-actions.pod:1742 ../fish/guestfish-actions.pod:1763 ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1818 ../fish/guestfish-actions.pod:1849
18981 msgid ""
18982 "This function should only be called with a root device string as returned by "
18983 "L</inspect-os>."
18984 msgstr ""
18985
18986 # type: textblock
18987 #: ../fish/guestfish-actions.pod:1649
18988 msgid ""
18989 "This returns the architecture of the inspected operating system.  The "
18990 "possible return values are listed under L</file-architecture>."
18991 msgstr ""
18992
18993 # type: =head2
18994 #: ../fish/guestfish-actions.pod:1658
18995 msgid "inspect-get-distro"
18996 msgstr ""
18997
18998 # type: verbatim
18999 #: ../fish/guestfish-actions.pod:1660
19000 #, no-wrap
19001 msgid ""
19002 " inspect-get-distro root\n"
19003 "\n"
19004 msgstr ""
19005
19006 # type: =head2
19007 #: ../fish/guestfish-actions.pod:1720
19008 msgid "inspect-get-filesystems"
19009 msgstr ""
19010
19011 # type: verbatim
19012 #: ../fish/guestfish-actions.pod:1722
19013 #, no-wrap
19014 msgid ""
19015 " inspect-get-filesystems root\n"
19016 "\n"
19017 msgstr ""
19018
19019 # type: textblock
19020 #: ../fish/guestfish-actions.pod:1735
19021 msgid ""
19022 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19023 "L</inspect-get-mountpoints>."
19024 msgstr ""
19025
19026 # type: =head2
19027 #: ../fish/guestfish-actions.pod:1738
19028 msgid "inspect-get-major-version"
19029 msgstr ""
19030
19031 # type: verbatim
19032 #: ../fish/guestfish-actions.pod:1740
19033 #, no-wrap
19034 msgid ""
19035 " inspect-get-major-version root\n"
19036 "\n"
19037 msgstr ""
19038
19039 # type: =head2
19040 #: ../fish/guestfish-actions.pod:1759
19041 msgid "inspect-get-minor-version"
19042 msgstr ""
19043
19044 # type: verbatim
19045 #: ../fish/guestfish-actions.pod:1761
19046 #, no-wrap
19047 msgid ""
19048 " inspect-get-minor-version root\n"
19049 "\n"
19050 msgstr ""
19051
19052 # type: textblock
19053 #: ../fish/guestfish-actions.pod:1771
19054 msgid ""
19055 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19056 "L</inspect-get-major-version>."
19057 msgstr ""
19058
19059 # type: =head2
19060 #: ../fish/guestfish-actions.pod:1774
19061 msgid "inspect-get-mountpoints"
19062 msgstr ""
19063
19064 # type: verbatim
19065 #: ../fish/guestfish-actions.pod:1776
19066 #, no-wrap
19067 msgid ""
19068 " inspect-get-mountpoints root\n"
19069 "\n"
19070 msgstr ""
19071
19072 # type: textblock
19073 #: ../fish/guestfish-actions.pod:1794
19074 msgid ""
19075 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19076 "L</inspect-get-filesystems>."
19077 msgstr ""
19078
19079 # type: =head2
19080 #: ../fish/guestfish-actions.pod:1797
19081 msgid "inspect-get-product-name"
19082 msgstr ""
19083
19084 # type: verbatim
19085 #: ../fish/guestfish-actions.pod:1799
19086 #, no-wrap
19087 msgid ""
19088 " inspect-get-product-name root\n"
19089 "\n"
19090 msgstr ""
19091
19092 # type: =head2
19093 #: ../fish/guestfish-actions.pod:1814
19094 msgid "inspect-get-type"
19095 msgstr ""
19096
19097 # type: verbatim
19098 #: ../fish/guestfish-actions.pod:1816
19099 #, no-wrap
19100 msgid ""
19101 " inspect-get-type root\n"
19102 "\n"
19103 msgstr ""
19104
19105 # type: =head2
19106 #: ../fish/guestfish-actions.pod:1845
19107 msgid "inspect-get-windows-systemroot"
19108 msgstr ""
19109
19110 # type: verbatim
19111 #: ../fish/guestfish-actions.pod:1847
19112 #, no-wrap
19113 msgid ""
19114 " inspect-get-windows-systemroot root\n"
19115 "\n"
19116 msgstr ""
19117
19118 # type: =head2
19119 #: ../fish/guestfish-actions.pod:1861
19120 msgid "inspect-os"
19121 msgstr ""
19122
19123 # type: verbatim
19124 #: ../fish/guestfish-actions.pod:1863
19125 #, no-wrap
19126 msgid ""
19127 " inspect-os\n"
19128 "\n"
19129 msgstr ""
19130
19131 # type: textblock
19132 #: ../fish/guestfish-actions.pod:1878
19133 msgid ""
19134 "You can pass the root string(s) returned to other L</inspect-get-*> "
19135 "functions in order to query further information about each operating system, "
19136 "such as the name and version."
19137 msgstr ""
19138
19139 # type: textblock
19140 #: ../fish/guestfish-actions.pod:1883
19141 msgid ""
19142 "This function uses other libguestfs features such as L</mount-ro> and "
19143 "L</umount-all> in order to mount and unmount filesystems and look at the "
19144 "contents.  This should be called with no disks currently mounted.  The "
19145 "function may also use Augeas, so any existing Augeas handle will be closed."
19146 msgstr ""
19147
19148 # type: textblock
19149 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:2051 ../fish/guestfish-actions.pod:2097
19150 msgid "See also L</list-filesystems>."
19151 msgstr ""
19152
19153 # type: =head2
19154 #: ../fish/guestfish-actions.pod:1897
19155 msgid "is-blockdev"
19156 msgstr ""
19157
19158 # type: verbatim
19159 #: ../fish/guestfish-actions.pod:1899
19160 #, no-wrap
19161 msgid ""
19162 " is-blockdev path\n"
19163 "\n"
19164 msgstr ""
19165
19166 # type: textblock
19167 #: ../fish/guestfish-actions.pod:1904 ../fish/guestfish-actions.pod:1922 ../fish/guestfish-actions.pod:1941 ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:1994 ../fish/guestfish-actions.pod:2003
19168 msgid "See also L</stat>."
19169 msgstr ""
19170
19171 # type: =head2
19172 #: ../fish/guestfish-actions.pod:1906
19173 msgid "is-busy"
19174 msgstr ""
19175
19176 # type: verbatim
19177 #: ../fish/guestfish-actions.pod:1908
19178 #, no-wrap
19179 msgid ""
19180 " is-busy\n"
19181 "\n"
19182 msgstr ""
19183
19184 # type: =head2
19185 #: ../fish/guestfish-actions.pod:1915
19186 msgid "is-chardev"
19187 msgstr ""
19188
19189 # type: verbatim
19190 #: ../fish/guestfish-actions.pod:1917
19191 #, no-wrap
19192 msgid ""
19193 " is-chardev path\n"
19194 "\n"
19195 msgstr ""
19196
19197 # type: =head2
19198 #: ../fish/guestfish-actions.pod:1924
19199 msgid "is-config"
19200 msgstr ""
19201
19202 # type: verbatim
19203 #: ../fish/guestfish-actions.pod:1926
19204 #, no-wrap
19205 msgid ""
19206 " is-config\n"
19207 "\n"
19208 msgstr ""
19209
19210 # type: =head2
19211 #: ../fish/guestfish-actions.pod:1933
19212 msgid "is-dir"
19213 msgstr ""
19214
19215 # type: verbatim
19216 #: ../fish/guestfish-actions.pod:1935
19217 #, no-wrap
19218 msgid ""
19219 " is-dir path\n"
19220 "\n"
19221 msgstr ""
19222
19223 # type: =head2
19224 #: ../fish/guestfish-actions.pod:1943
19225 msgid "is-fifo"
19226 msgstr ""
19227
19228 # type: verbatim
19229 #: ../fish/guestfish-actions.pod:1945
19230 #, no-wrap
19231 msgid ""
19232 " is-fifo path\n"
19233 "\n"
19234 msgstr ""
19235
19236 # type: =head2
19237 #: ../fish/guestfish-actions.pod:1952
19238 msgid "is-file"
19239 msgstr ""
19240
19241 # type: verbatim
19242 #: ../fish/guestfish-actions.pod:1954
19243 #, no-wrap
19244 msgid ""
19245 " is-file path\n"
19246 "\n"
19247 msgstr ""
19248
19249 # type: =head2
19250 #: ../fish/guestfish-actions.pod:1962
19251 msgid "is-launching"
19252 msgstr ""
19253
19254 # type: verbatim
19255 #: ../fish/guestfish-actions.pod:1964
19256 #, no-wrap
19257 msgid ""
19258 " is-launching\n"
19259 "\n"
19260 msgstr ""
19261
19262 # type: =head2
19263 #: ../fish/guestfish-actions.pod:1971
19264 msgid "is-lv"
19265 msgstr ""
19266
19267 # type: verbatim
19268 #: ../fish/guestfish-actions.pod:1973
19269 #, no-wrap
19270 msgid ""
19271 " is-lv device\n"
19272 "\n"
19273 msgstr ""
19274
19275 # type: =head2
19276 #: ../fish/guestfish-actions.pod:1978
19277 msgid "is-ready"
19278 msgstr ""
19279
19280 # type: verbatim
19281 #: ../fish/guestfish-actions.pod:1980
19282 #, no-wrap
19283 msgid ""
19284 " is-ready\n"
19285 "\n"
19286 msgstr ""
19287
19288 # type: =head2
19289 #: ../fish/guestfish-actions.pod:1987
19290 msgid "is-socket"
19291 msgstr ""
19292
19293 # type: verbatim
19294 #: ../fish/guestfish-actions.pod:1989
19295 #, no-wrap
19296 msgid ""
19297 " is-socket path\n"
19298 "\n"
19299 msgstr ""
19300
19301 # type: =head2
19302 #: ../fish/guestfish-actions.pod:1996
19303 msgid "is-symlink"
19304 msgstr ""
19305
19306 # type: verbatim
19307 #: ../fish/guestfish-actions.pod:1998
19308 #, no-wrap
19309 msgid ""
19310 " is-symlink path\n"
19311 "\n"
19312 msgstr ""
19313
19314 # type: =head2
19315 #: ../fish/guestfish-actions.pod:2005
19316 msgid "kill-subprocess"
19317 msgstr ""
19318
19319 # type: verbatim
19320 #: ../fish/guestfish-actions.pod:2007
19321 #, no-wrap
19322 msgid ""
19323 " kill-subprocess\n"
19324 "\n"
19325 msgstr ""
19326
19327 # type: =head2
19328 #: ../fish/guestfish-actions.pod:2011
19329 msgid "launch"
19330 msgstr ""
19331
19332 # type: =head2
19333 #: ../fish/guestfish-actions.pod:2013
19334 msgid "run"
19335 msgstr ""
19336
19337 # type: verbatim
19338 #: ../fish/guestfish-actions.pod:2015
19339 #, no-wrap
19340 msgid ""
19341 " launch\n"
19342 "\n"
19343 msgstr ""
19344
19345 # type: =head2
19346 #: ../fish/guestfish-actions.pod:2023
19347 msgid "lchown"
19348 msgstr ""
19349
19350 # type: verbatim
19351 #: ../fish/guestfish-actions.pod:2025
19352 #, no-wrap
19353 msgid ""
19354 " lchown owner group path\n"
19355 "\n"
19356 msgstr ""
19357
19358 # type: textblock
19359 #: ../fish/guestfish-actions.pod:2027
19360 msgid ""
19361 "Change the file owner to C<owner> and group to C<group>.  This is like "
19362 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
19363 "the target."
19364 msgstr ""
19365
19366 # type: =head2
19367 #: ../fish/guestfish-actions.pod:2035
19368 msgid "lgetxattrs"
19369 msgstr ""
19370
19371 # type: verbatim
19372 #: ../fish/guestfish-actions.pod:2037
19373 #, no-wrap
19374 msgid ""
19375 " lgetxattrs path\n"
19376 "\n"
19377 msgstr ""
19378
19379 # type: textblock
19380 #: ../fish/guestfish-actions.pod:2039
19381 msgid ""
19382 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19383 "it returns the extended attributes of the link itself."
19384 msgstr ""
19385
19386 # type: =head2
19387 #: ../fish/guestfish-actions.pod:2043
19388 msgid "list-devices"
19389 msgstr ""
19390
19391 # type: verbatim
19392 #: ../fish/guestfish-actions.pod:2045
19393 #, no-wrap
19394 msgid ""
19395 " list-devices\n"
19396 "\n"
19397 msgstr ""
19398
19399 # type: =head2
19400 #: ../fish/guestfish-actions.pod:2053
19401 msgid "list-filesystems"
19402 msgstr ""
19403
19404 # type: verbatim
19405 #: ../fish/guestfish-actions.pod:2055
19406 #, no-wrap
19407 msgid ""
19408 " list-filesystems\n"
19409 "\n"
19410 msgstr ""
19411
19412 # type: textblock
19413 #: ../fish/guestfish-actions.pod:2074
19414 msgid ""
19415 "This command runs other libguestfs commands, which might include L</mount> "
19416 "and L</umount>, and therefore you should use this soon after launch and only "
19417 "when nothing is mounted."
19418 msgstr ""
19419
19420 # type: textblock
19421 #: ../fish/guestfish-actions.pod:2078
19422 msgid ""
19423 "Not all of the filesystems returned will be mountable.  In particular, swap "
19424 "partitions are returned in the list.  Also this command does not check that "
19425 "each filesystem found is valid and mountable, and some filesystems might be "
19426 "mountable but require special options.  Filesystems may not all belong to a "
19427 "single logical operating system (use L</inspect-os> to look for OSes)."
19428 msgstr ""
19429
19430 # type: =head2
19431 #: ../fish/guestfish-actions.pod:2086
19432 msgid "list-partitions"
19433 msgstr ""
19434
19435 # type: verbatim
19436 #: ../fish/guestfish-actions.pod:2088
19437 #, no-wrap
19438 msgid ""
19439 " list-partitions\n"
19440 "\n"
19441 msgstr ""
19442
19443 # type: textblock
19444 #: ../fish/guestfish-actions.pod:2094
19445 msgid ""
19446 "This does not return logical volumes.  For that you will need to call "
19447 "L</lvs>."
19448 msgstr ""
19449
19450 # type: =head2
19451 #: ../fish/guestfish-actions.pod:2099
19452 msgid "ll"
19453 msgstr ""
19454
19455 # type: verbatim
19456 #: ../fish/guestfish-actions.pod:2101
19457 #, no-wrap
19458 msgid ""
19459 " ll directory\n"
19460 "\n"
19461 msgstr ""
19462
19463 # type: =head2
19464 #: ../fish/guestfish-actions.pod:2109
19465 msgid "ln"
19466 msgstr ""
19467
19468 # type: verbatim
19469 #: ../fish/guestfish-actions.pod:2111
19470 #, no-wrap
19471 msgid ""
19472 " ln target linkname\n"
19473 "\n"
19474 msgstr ""
19475
19476 # type: =head2
19477 #: ../fish/guestfish-actions.pod:2115
19478 msgid "ln-f"
19479 msgstr ""
19480
19481 # type: verbatim
19482 #: ../fish/guestfish-actions.pod:2117
19483 #, no-wrap
19484 msgid ""
19485 " ln-f target linkname\n"
19486 "\n"
19487 msgstr ""
19488
19489 # type: =head2
19490 #: ../fish/guestfish-actions.pod:2122
19491 msgid "ln-s"
19492 msgstr ""
19493
19494 # type: verbatim
19495 #: ../fish/guestfish-actions.pod:2124
19496 #, no-wrap
19497 msgid ""
19498 " ln-s target linkname\n"
19499 "\n"
19500 msgstr ""
19501
19502 # type: =head2
19503 #: ../fish/guestfish-actions.pod:2128
19504 msgid "ln-sf"
19505 msgstr ""
19506
19507 # type: verbatim
19508 #: ../fish/guestfish-actions.pod:2130
19509 #, no-wrap
19510 msgid ""
19511 " ln-sf target linkname\n"
19512 "\n"
19513 msgstr ""
19514
19515 # type: =head2
19516 #: ../fish/guestfish-actions.pod:2135
19517 msgid "lremovexattr"
19518 msgstr ""
19519
19520 # type: verbatim
19521 #: ../fish/guestfish-actions.pod:2137
19522 #, no-wrap
19523 msgid ""
19524 " lremovexattr xattr path\n"
19525 "\n"
19526 msgstr ""
19527
19528 # type: textblock
19529 #: ../fish/guestfish-actions.pod:2139
19530 msgid ""
19531 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19532 "it removes an extended attribute of the link itself."
19533 msgstr ""
19534
19535 # type: =head2
19536 #: ../fish/guestfish-actions.pod:2143
19537 msgid "ls"
19538 msgstr ""
19539
19540 # type: verbatim
19541 #: ../fish/guestfish-actions.pod:2145
19542 #, no-wrap
19543 msgid ""
19544 " ls directory\n"
19545 "\n"
19546 msgstr ""
19547
19548 # type: textblock
19549 #: ../fish/guestfish-actions.pod:2151
19550 msgid ""
19551 "This command is mostly useful for interactive sessions.  Programs should "
19552 "probably use L</readdir> instead."
19553 msgstr ""
19554
19555 # type: =head2
19556 #: ../fish/guestfish-actions.pod:2154
19557 msgid "lsetxattr"
19558 msgstr ""
19559
19560 # type: verbatim
19561 #: ../fish/guestfish-actions.pod:2156
19562 #, no-wrap
19563 msgid ""
19564 " lsetxattr xattr val vallen path\n"
19565 "\n"
19566 msgstr ""
19567
19568 # type: textblock
19569 #: ../fish/guestfish-actions.pod:2158
19570 msgid ""
19571 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
19572 "sets an extended attribute of the link itself."
19573 msgstr ""
19574
19575 # type: =head2
19576 #: ../fish/guestfish-actions.pod:2162
19577 msgid "lstat"
19578 msgstr ""
19579
19580 # type: verbatim
19581 #: ../fish/guestfish-actions.pod:2164
19582 #, no-wrap
19583 msgid ""
19584 " lstat path\n"
19585 "\n"
19586 msgstr ""
19587
19588 # type: textblock
19589 #: ../fish/guestfish-actions.pod:2168
19590 msgid ""
19591 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
19592 "the link is stat-ed, not the file it refers to."
19593 msgstr ""
19594
19595 # type: =head2
19596 #: ../fish/guestfish-actions.pod:2174
19597 msgid "lstatlist"
19598 msgstr ""
19599
19600 # type: verbatim
19601 #: ../fish/guestfish-actions.pod:2176
19602 #, no-wrap
19603 msgid ""
19604 " lstatlist path 'names ...'\n"
19605 "\n"
19606 msgstr ""
19607
19608 # type: textblock
19609 #: ../fish/guestfish-actions.pod:2178
19610 msgid ""
19611 "This call allows you to perform the L</lstat> operation on multiple files, "
19612 "where all files are in the directory C<path>.  C<names> is the list of files "
19613 "from this directory."
19614 msgstr ""
19615
19616 # type: textblock
19617 #: ../fish/guestfish-actions.pod:2187
19618 msgid ""
19619 "This call is intended for programs that want to efficiently list a directory "
19620 "contents without making many round-trips.  See also L</lxattrlist> for a "
19621 "similarly efficient call for getting extended attributes.  Very long "
19622 "directory listings might cause the protocol message size to be exceeded, "
19623 "causing this call to fail.  The caller must split up such requests into "
19624 "smaller groups of names."
19625 msgstr ""
19626
19627 # type: =head2
19628 #: ../fish/guestfish-actions.pod:2195
19629 msgid "luks-add-key"
19630 msgstr ""
19631
19632 # type: verbatim
19633 #: ../fish/guestfish-actions.pod:2197
19634 #, no-wrap
19635 msgid ""
19636 " luks-add-key device keyslot\n"
19637 "\n"
19638 msgstr ""
19639
19640 # type: textblock
19641 #: ../fish/guestfish-actions.pod:2204
19642 msgid ""
19643 "Note that if C<keyslot> already contains a key, then this command will "
19644 "fail.  You have to use L</luks-kill-slot> first to remove that key."
19645 msgstr ""
19646
19647 # type: textblock
19648 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2230 ../fish/guestfish-actions.pod:2243 ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
19649 msgid ""
19650 "This command has one or more key or passphrase parameters.  Guestfish will "
19651 "prompt for these separately."
19652 msgstr ""
19653
19654 # type: =head2
19655 #: ../fish/guestfish-actions.pod:2211
19656 msgid "luks-close"
19657 msgstr ""
19658
19659 # type: verbatim
19660 #: ../fish/guestfish-actions.pod:2213
19661 #, no-wrap
19662 msgid ""
19663 " luks-close device\n"
19664 "\n"
19665 msgstr ""
19666
19667 # type: textblock
19668 #: ../fish/guestfish-actions.pod:2215
19669 msgid ""
19670 "This closes a LUKS device that was created earlier by L</luks-open> or "
19671 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
19672 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
19673 "underlying block device."
19674 msgstr ""
19675
19676 # type: =head2
19677 #: ../fish/guestfish-actions.pod:2221
19678 msgid "luks-format"
19679 msgstr ""
19680
19681 # type: verbatim
19682 #: ../fish/guestfish-actions.pod:2223
19683 #, no-wrap
19684 msgid ""
19685 " luks-format device keyslot\n"
19686 "\n"
19687 msgstr ""
19688
19689 # type: =head2
19690 #: ../fish/guestfish-actions.pod:2236
19691 msgid "luks-format-cipher"
19692 msgstr ""
19693
19694 # type: verbatim
19695 #: ../fish/guestfish-actions.pod:2238
19696 #, no-wrap
19697 msgid ""
19698 " luks-format-cipher device keyslot cipher\n"
19699 "\n"
19700 msgstr ""
19701
19702 # type: textblock
19703 #: ../fish/guestfish-actions.pod:2240
19704 msgid ""
19705 "This command is the same as L</luks-format> but it also allows you to set "
19706 "the C<cipher> used."
19707 msgstr ""
19708
19709 # type: =head2
19710 #: ../fish/guestfish-actions.pod:2249
19711 msgid "luks-kill-slot"
19712 msgstr ""
19713
19714 # type: verbatim
19715 #: ../fish/guestfish-actions.pod:2251
19716 #, no-wrap
19717 msgid ""
19718 " luks-kill-slot device keyslot\n"
19719 "\n"
19720 msgstr ""
19721
19722 # type: =head2
19723 #: ../fish/guestfish-actions.pod:2260
19724 msgid "luks-open"
19725 msgstr ""
19726
19727 # type: verbatim
19728 #: ../fish/guestfish-actions.pod:2262
19729 #, no-wrap
19730 msgid ""
19731 " luks-open device mapname\n"
19732 "\n"
19733 msgstr ""
19734
19735 # type: textblock
19736 #: ../fish/guestfish-actions.pod:2276
19737 msgid ""
19738 "If this block device contains LVM volume groups, then calling L</vgscan> "
19739 "followed by L</vg-activate-all> will make them visible."
19740 msgstr ""
19741
19742 # type: =head2
19743 #: ../fish/guestfish-actions.pod:2283
19744 msgid "luks-open-ro"
19745 msgstr ""
19746
19747 # type: verbatim
19748 #: ../fish/guestfish-actions.pod:2285
19749 #, no-wrap
19750 msgid ""
19751 " luks-open-ro device mapname\n"
19752 "\n"
19753 msgstr ""
19754
19755 # type: textblock
19756 #: ../fish/guestfish-actions.pod:2287
19757 msgid ""
19758 "This is the same as L</luks-open> except that a read-only mapping is "
19759 "created."
19760 msgstr ""
19761
19762 # type: =head2
19763 #: ../fish/guestfish-actions.pod:2293
19764 msgid "lvcreate"
19765 msgstr ""
19766
19767 # type: verbatim
19768 #: ../fish/guestfish-actions.pod:2295
19769 #, no-wrap
19770 msgid ""
19771 " lvcreate logvol volgroup mbytes\n"
19772 "\n"
19773 msgstr ""
19774
19775 # type: =head2
19776 #: ../fish/guestfish-actions.pod:2300
19777 msgid "lvm-canonical-lv-name"
19778 msgstr ""
19779
19780 # type: verbatim
19781 #: ../fish/guestfish-actions.pod:2302
19782 #, no-wrap
19783 msgid ""
19784 " lvm-canonical-lv-name lvname\n"
19785 "\n"
19786 msgstr ""
19787
19788 # type: textblock
19789 #: ../fish/guestfish-actions.pod:2311
19790 msgid "See also L</is-lv>."
19791 msgstr ""
19792
19793 # type: =head2
19794 #: ../fish/guestfish-actions.pod:2313
19795 msgid "lvm-clear-filter"
19796 msgstr ""
19797
19798 # type: verbatim
19799 #: ../fish/guestfish-actions.pod:2315
19800 #, no-wrap
19801 msgid ""
19802 " lvm-clear-filter\n"
19803 "\n"
19804 msgstr ""
19805
19806 # type: textblock
19807 #: ../fish/guestfish-actions.pod:2317
19808 msgid ""
19809 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
19810 "block device."
19811 msgstr ""
19812
19813 # type: =head2
19814 #: ../fish/guestfish-actions.pod:2323
19815 msgid "lvm-remove-all"
19816 msgstr ""
19817
19818 # type: verbatim
19819 #: ../fish/guestfish-actions.pod:2325
19820 #, no-wrap
19821 msgid ""
19822 " lvm-remove-all\n"
19823 "\n"
19824 msgstr ""
19825
19826 # type: =head2
19827 #: ../fish/guestfish-actions.pod:2333
19828 msgid "lvm-set-filter"
19829 msgstr ""
19830
19831 # type: verbatim
19832 #: ../fish/guestfish-actions.pod:2335
19833 #, no-wrap
19834 msgid ""
19835 " lvm-set-filter 'devices ...'\n"
19836 "\n"
19837 msgstr ""
19838
19839 # type: =head2
19840 #: ../fish/guestfish-actions.pod:2360
19841 msgid "lvremove"
19842 msgstr ""
19843
19844 # type: verbatim
19845 #: ../fish/guestfish-actions.pod:2362
19846 #, no-wrap
19847 msgid ""
19848 " lvremove device\n"
19849 "\n"
19850 msgstr ""
19851
19852 # type: =head2
19853 #: ../fish/guestfish-actions.pod:2370
19854 msgid "lvrename"
19855 msgstr ""
19856
19857 # type: verbatim
19858 #: ../fish/guestfish-actions.pod:2372
19859 #, no-wrap
19860 msgid ""
19861 " lvrename logvol newlogvol\n"
19862 "\n"
19863 msgstr ""
19864
19865 # type: =head2
19866 #: ../fish/guestfish-actions.pod:2376
19867 msgid "lvresize"
19868 msgstr ""
19869
19870 # type: verbatim
19871 #: ../fish/guestfish-actions.pod:2378
19872 #, no-wrap
19873 msgid ""
19874 " lvresize device mbytes\n"
19875 "\n"
19876 msgstr ""
19877
19878 # type: =head2
19879 #: ../fish/guestfish-actions.pod:2384
19880 msgid "lvresize-free"
19881 msgstr ""
19882
19883 # type: verbatim
19884 #: ../fish/guestfish-actions.pod:2386
19885 #, no-wrap
19886 msgid ""
19887 " lvresize-free lv percent\n"
19888 "\n"
19889 msgstr ""
19890
19891 # type: =head2
19892 #: ../fish/guestfish-actions.pod:2394
19893 msgid "lvs"
19894 msgstr ""
19895
19896 # type: verbatim
19897 #: ../fish/guestfish-actions.pod:2396
19898 #, no-wrap
19899 msgid ""
19900 " lvs\n"
19901 "\n"
19902 msgstr ""
19903
19904 # type: textblock
19905 #: ../fish/guestfish-actions.pod:2404
19906 msgid "See also L</lvs-full>, L</list-filesystems>."
19907 msgstr ""
19908
19909 # type: =head2
19910 #: ../fish/guestfish-actions.pod:2406
19911 msgid "lvs-full"
19912 msgstr ""
19913
19914 # type: verbatim
19915 #: ../fish/guestfish-actions.pod:2408
19916 #, no-wrap
19917 msgid ""
19918 " lvs-full\n"
19919 "\n"
19920 msgstr ""
19921
19922 # type: =head2
19923 #: ../fish/guestfish-actions.pod:2413
19924 msgid "lvuuid"
19925 msgstr ""
19926
19927 # type: verbatim
19928 #: ../fish/guestfish-actions.pod:2415
19929 #, no-wrap
19930 msgid ""
19931 " lvuuid device\n"
19932 "\n"
19933 msgstr ""
19934
19935 # type: =head2
19936 #: ../fish/guestfish-actions.pod:2419
19937 msgid "lxattrlist"
19938 msgstr ""
19939
19940 # type: verbatim
19941 #: ../fish/guestfish-actions.pod:2421
19942 #, no-wrap
19943 msgid ""
19944 " lxattrlist path 'names ...'\n"
19945 "\n"
19946 msgstr ""
19947
19948 # type: textblock
19949 #: ../fish/guestfish-actions.pod:2437
19950 msgid ""
19951 "This call is intended for programs that want to efficiently list a directory "
19952 "contents without making many round-trips.  See also L</lstatlist> for a "
19953 "similarly efficient call for getting standard stats.  Very long directory "
19954 "listings might cause the protocol message size to be exceeded, causing this "
19955 "call to fail.  The caller must split up such requests into smaller groups of "
19956 "names."
19957 msgstr ""
19958
19959 # type: =head2
19960 #: ../fish/guestfish-actions.pod:2445
19961 msgid "mkdir"
19962 msgstr ""
19963
19964 # type: verbatim
19965 #: ../fish/guestfish-actions.pod:2447
19966 #, no-wrap
19967 msgid ""
19968 " mkdir path\n"
19969 "\n"
19970 msgstr ""
19971
19972 # type: =head2
19973 #: ../fish/guestfish-actions.pod:2451
19974 msgid "mkdir-mode"
19975 msgstr ""
19976
19977 # type: verbatim
19978 #: ../fish/guestfish-actions.pod:2453
19979 #, no-wrap
19980 msgid ""
19981 " mkdir-mode path mode\n"
19982 "\n"
19983 msgstr ""
19984
19985 # type: textblock
19986 #: ../fish/guestfish-actions.pod:2462
19987 msgid "See also L</mkdir>, L</umask>"
19988 msgstr ""
19989
19990 # type: =head2
19991 #: ../fish/guestfish-actions.pod:2464
19992 msgid "mkdir-p"
19993 msgstr ""
19994
19995 # type: verbatim
19996 #: ../fish/guestfish-actions.pod:2466
19997 #, no-wrap
19998 msgid ""
19999 " mkdir-p path\n"
20000 "\n"
20001 msgstr ""
20002
20003 # type: =head2
20004 #: ../fish/guestfish-actions.pod:2471
20005 msgid "mkdtemp"
20006 msgstr ""
20007
20008 # type: verbatim
20009 #: ../fish/guestfish-actions.pod:2473
20010 #, no-wrap
20011 msgid ""
20012 " mkdtemp template\n"
20013 "\n"
20014 msgstr ""
20015
20016 # type: =head2
20017 #: ../fish/guestfish-actions.pod:2494
20018 msgid "mke2fs-J"
20019 msgstr ""
20020
20021 # type: verbatim
20022 #: ../fish/guestfish-actions.pod:2496
20023 #, no-wrap
20024 msgid ""
20025 " mke2fs-J fstype blocksize device journal\n"
20026 "\n"
20027 msgstr ""
20028
20029 # type: textblock
20030 #: ../fish/guestfish-actions.pod:2504
20031 msgid "See also L</mke2journal>."
20032 msgstr ""
20033
20034 # type: =head2
20035 #: ../fish/guestfish-actions.pod:2506
20036 msgid "mke2fs-JL"
20037 msgstr ""
20038
20039 # type: verbatim
20040 #: ../fish/guestfish-actions.pod:2508
20041 #, no-wrap
20042 msgid ""
20043 " mke2fs-JL fstype blocksize device label\n"
20044 "\n"
20045 msgstr ""
20046
20047 # type: textblock
20048 #: ../fish/guestfish-actions.pod:2513
20049 msgid "See also L</mke2journal-L>."
20050 msgstr ""
20051
20052 # type: =head2
20053 #: ../fish/guestfish-actions.pod:2515
20054 msgid "mke2fs-JU"
20055 msgstr ""
20056
20057 # type: verbatim
20058 #: ../fish/guestfish-actions.pod:2517
20059 #, no-wrap
20060 msgid ""
20061 " mke2fs-JU fstype blocksize device uuid\n"
20062 "\n"
20063 msgstr ""
20064
20065 # type: textblock
20066 #: ../fish/guestfish-actions.pod:2522
20067 msgid "See also L</mke2journal-U>."
20068 msgstr ""
20069
20070 # type: =head2
20071 #: ../fish/guestfish-actions.pod:2524
20072 msgid "mke2journal"
20073 msgstr ""
20074
20075 # type: verbatim
20076 #: ../fish/guestfish-actions.pod:2526
20077 #, no-wrap
20078 msgid ""
20079 " mke2journal blocksize device\n"
20080 "\n"
20081 msgstr ""
20082
20083 # type: =head2
20084 #: ../fish/guestfish-actions.pod:2533
20085 msgid "mke2journal-L"
20086 msgstr ""
20087
20088 # type: verbatim
20089 #: ../fish/guestfish-actions.pod:2535
20090 #, no-wrap
20091 msgid ""
20092 " mke2journal-L blocksize label device\n"
20093 "\n"
20094 msgstr ""
20095
20096 # type: =head2
20097 #: ../fish/guestfish-actions.pod:2539
20098 msgid "mke2journal-U"
20099 msgstr ""
20100
20101 # type: verbatim
20102 #: ../fish/guestfish-actions.pod:2541
20103 #, no-wrap
20104 msgid ""
20105 " mke2journal-U blocksize uuid device\n"
20106 "\n"
20107 msgstr ""
20108
20109 # type: =head2
20110 #: ../fish/guestfish-actions.pod:2545
20111 msgid "mkfifo"
20112 msgstr ""
20113
20114 # type: verbatim
20115 #: ../fish/guestfish-actions.pod:2547
20116 #, no-wrap
20117 msgid ""
20118 " mkfifo mode path\n"
20119 "\n"
20120 msgstr ""
20121
20122 # type: textblock
20123 #: ../fish/guestfish-actions.pod:2549
20124 msgid ""
20125 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20126 "is just a convenient wrapper around L</mknod>."
20127 msgstr ""
20128
20129 # type: =head2
20130 #: ../fish/guestfish-actions.pod:2555
20131 msgid "mkfs"
20132 msgstr ""
20133
20134 # type: verbatim
20135 #: ../fish/guestfish-actions.pod:2557
20136 #, no-wrap
20137 msgid ""
20138 " mkfs fstype device\n"
20139 "\n"
20140 msgstr ""
20141
20142 # type: =head2
20143 #: ../fish/guestfish-actions.pod:2563
20144 msgid "mkfs-b"
20145 msgstr ""
20146
20147 # type: verbatim
20148 #: ../fish/guestfish-actions.pod:2565
20149 #, no-wrap
20150 msgid ""
20151 " mkfs-b fstype blocksize device\n"
20152 "\n"
20153 msgstr ""
20154
20155 # type: textblock
20156 #: ../fish/guestfish-actions.pod:2567
20157 msgid ""
20158 "This call is similar to L</mkfs>, but it allows you to control the block "
20159 "size of the resulting filesystem.  Supported block sizes depend on the "
20160 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20161 msgstr ""
20162
20163 # type: =head2
20164 #: ../fish/guestfish-actions.pod:2575
20165 msgid "mkmountpoint"
20166 msgstr ""
20167
20168 # type: verbatim
20169 #: ../fish/guestfish-actions.pod:2577
20170 #, no-wrap
20171 msgid ""
20172 " mkmountpoint exemptpath\n"
20173 "\n"
20174 msgstr ""
20175
20176 # type: textblock
20177 #: ../fish/guestfish-actions.pod:2579
20178 msgid ""
20179 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20180 "to create extra mountpoints before mounting the first filesystem."
20181 msgstr ""
20182
20183 # type: textblock
20184 #: ../fish/guestfish-actions.pod:2603
20185 msgid ""
20186 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
20187 "unexpected errors if you try to mix these calls.  It is safest to manually "
20188 "unmount filesystems and remove mountpoints after use."
20189 msgstr ""
20190
20191 # type: textblock
20192 #: ../fish/guestfish-actions.pod:2607
20193 msgid ""
20194 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
20195 "for this to work for manual mountpoints, you must ensure that the innermost "
20196 "mountpoints have the longest pathnames, as in the example code above."
20197 msgstr ""
20198
20199 # type: textblock
20200 #: ../fish/guestfish-actions.pod:2614
20201 msgid ""
20202 "Autosync [see L</set-autosync>, this is set by default on handles] means "
20203 "that L</umount-all> is called when the handle is closed which can also "
20204 "trigger these issues."
20205 msgstr ""
20206
20207 # type: =head2
20208 #: ../fish/guestfish-actions.pod:2618
20209 msgid "mknod"
20210 msgstr ""
20211
20212 # type: verbatim
20213 #: ../fish/guestfish-actions.pod:2620
20214 #, no-wrap
20215 msgid ""
20216 " mknod mode devmajor devminor path\n"
20217 "\n"
20218 msgstr ""
20219
20220 # type: textblock
20221 #: ../fish/guestfish-actions.pod:2630
20222 msgid ""
20223 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20224 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20225 "regular file).  These constants are available in the standard Linux header "
20226 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20227 "wrappers around this command which bitwise OR in the appropriate constant "
20228 "for you."
20229 msgstr ""
20230
20231 # type: =head2
20232 #: ../fish/guestfish-actions.pod:2640
20233 msgid "mknod-b"
20234 msgstr ""
20235
20236 # type: verbatim
20237 #: ../fish/guestfish-actions.pod:2642
20238 #, no-wrap
20239 msgid ""
20240 " mknod-b mode devmajor devminor path\n"
20241 "\n"
20242 msgstr ""
20243
20244 # type: textblock
20245 #: ../fish/guestfish-actions.pod:2644
20246 msgid ""
20247 "This call creates a block device node called C<path> with mode C<mode> and "
20248 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20249 "wrapper around L</mknod>."
20250 msgstr ""
20251
20252 # type: =head2
20253 #: ../fish/guestfish-actions.pod:2650
20254 msgid "mknod-c"
20255 msgstr ""
20256
20257 # type: verbatim
20258 #: ../fish/guestfish-actions.pod:2652
20259 #, no-wrap
20260 msgid ""
20261 " mknod-c mode devmajor devminor path\n"
20262 "\n"
20263 msgstr ""
20264
20265 # type: textblock
20266 #: ../fish/guestfish-actions.pod:2654
20267 msgid ""
20268 "This call creates a char device node called C<path> with mode C<mode> and "
20269 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20270 "wrapper around L</mknod>."
20271 msgstr ""
20272
20273 # type: =head2
20274 #: ../fish/guestfish-actions.pod:2660
20275 msgid "mkswap"
20276 msgstr ""
20277
20278 # type: verbatim
20279 #: ../fish/guestfish-actions.pod:2662
20280 #, no-wrap
20281 msgid ""
20282 " mkswap device\n"
20283 "\n"
20284 msgstr ""
20285
20286 # type: =head2
20287 #: ../fish/guestfish-actions.pod:2666
20288 msgid "mkswap-L"
20289 msgstr ""
20290
20291 # type: verbatim
20292 #: ../fish/guestfish-actions.pod:2668
20293 #, no-wrap
20294 msgid ""
20295 " mkswap-L label device\n"
20296 "\n"
20297 msgstr ""
20298
20299 # type: =head2
20300 #: ../fish/guestfish-actions.pod:2676
20301 msgid "mkswap-U"
20302 msgstr ""
20303
20304 # type: verbatim
20305 #: ../fish/guestfish-actions.pod:2678
20306 #, no-wrap
20307 msgid ""
20308 " mkswap-U uuid device\n"
20309 "\n"
20310 msgstr ""
20311
20312 # type: =head2
20313 #: ../fish/guestfish-actions.pod:2682
20314 msgid "mkswap-file"
20315 msgstr ""
20316
20317 # type: verbatim
20318 #: ../fish/guestfish-actions.pod:2684
20319 #, no-wrap
20320 msgid ""
20321 " mkswap-file path\n"
20322 "\n"
20323 msgstr ""
20324
20325 # type: textblock
20326 #: ../fish/guestfish-actions.pod:2688
20327 msgid ""
20328 "This command just writes a swap file signature to an existing file.  To "
20329 "create the file itself, use something like L</fallocate>."
20330 msgstr ""
20331
20332 # type: =head2
20333 #: ../fish/guestfish-actions.pod:2691
20334 msgid "modprobe"
20335 msgstr ""
20336
20337 # type: verbatim
20338 #: ../fish/guestfish-actions.pod:2693
20339 #, no-wrap
20340 msgid ""
20341 " modprobe modulename\n"
20342 "\n"
20343 msgstr ""
20344
20345 # type: =head2
20346 #: ../fish/guestfish-actions.pod:2700
20347 msgid "mount"
20348 msgstr ""
20349
20350 # type: verbatim
20351 #: ../fish/guestfish-actions.pod:2702
20352 #, no-wrap
20353 msgid ""
20354 " mount device mountpoint\n"
20355 "\n"
20356 msgstr ""
20357
20358 # type: textblock
20359 #: ../fish/guestfish-actions.pod:2718
20360 msgid ""
20361 "B<Important note:> When you use this call, the filesystem options C<sync> "
20362 "and C<noatime> are set implicitly.  This was originally done because we "
20363 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20364 "very large negative performance impact and negligible effect on "
20365 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20366 "code that needs performance, and instead use L</mount-options> (use an empty "
20367 "string for the first parameter if you don't want any options)."
20368 msgstr ""
20369
20370 # type: =head2
20371 #: ../fish/guestfish-actions.pod:2728
20372 msgid "mount-loop"
20373 msgstr ""
20374
20375 # type: verbatim
20376 #: ../fish/guestfish-actions.pod:2730
20377 #, no-wrap
20378 msgid ""
20379 " mount-loop file mountpoint\n"
20380 "\n"
20381 msgstr ""
20382
20383 # type: =head2
20384 #: ../fish/guestfish-actions.pod:2736
20385 msgid "mount-options"
20386 msgstr ""
20387
20388 # type: verbatim
20389 #: ../fish/guestfish-actions.pod:2738
20390 #, no-wrap
20391 msgid ""
20392 " mount-options options device mountpoint\n"
20393 "\n"
20394 msgstr ""
20395
20396 # type: textblock
20397 #: ../fish/guestfish-actions.pod:2740
20398 msgid ""
20399 "This is the same as the L</mount> command, but it allows you to set the "
20400 "mount options as for the L<mount(8)> I<-o> flag."
20401 msgstr ""
20402
20403 # type: =head2
20404 #: ../fish/guestfish-actions.pod:2748
20405 msgid "mount-ro"
20406 msgstr ""
20407
20408 # type: verbatim
20409 #: ../fish/guestfish-actions.pod:2750
20410 #, no-wrap
20411 msgid ""
20412 " mount-ro device mountpoint\n"
20413 "\n"
20414 msgstr ""
20415
20416 # type: textblock
20417 #: ../fish/guestfish-actions.pod:2752
20418 msgid ""
20419 "This is the same as the L</mount> command, but it mounts the filesystem with "
20420 "the read-only (I<-o ro>) flag."
20421 msgstr ""
20422
20423 # type: =head2
20424 #: ../fish/guestfish-actions.pod:2755
20425 msgid "mount-vfs"
20426 msgstr ""
20427
20428 # type: verbatim
20429 #: ../fish/guestfish-actions.pod:2757
20430 #, no-wrap
20431 msgid ""
20432 " mount-vfs options vfstype device mountpoint\n"
20433 "\n"
20434 msgstr ""
20435
20436 # type: textblock
20437 #: ../fish/guestfish-actions.pod:2759
20438 msgid ""
20439 "This is the same as the L</mount> command, but it allows you to set both the "
20440 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20441 msgstr ""
20442
20443 # type: =head2
20444 #: ../fish/guestfish-actions.pod:2763
20445 msgid "mountpoints"
20446 msgstr ""
20447
20448 # type: verbatim
20449 #: ../fish/guestfish-actions.pod:2765
20450 #, no-wrap
20451 msgid ""
20452 " mountpoints\n"
20453 "\n"
20454 msgstr ""
20455
20456 # type: textblock
20457 #: ../fish/guestfish-actions.pod:2767
20458 msgid ""
20459 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20460 "This one returns a hash table (map) of device name to directory where the "
20461 "device is mounted."
20462 msgstr ""
20463
20464 # type: =head2
20465 #: ../fish/guestfish-actions.pod:2771
20466 msgid "mounts"
20467 msgstr ""
20468
20469 # type: verbatim
20470 #: ../fish/guestfish-actions.pod:2773
20471 #, no-wrap
20472 msgid ""
20473 " mounts\n"
20474 "\n"
20475 msgstr ""
20476
20477 # type: textblock
20478 #: ../fish/guestfish-actions.pod:2780
20479 msgid "See also: L</mountpoints>"
20480 msgstr ""
20481
20482 # type: =head2
20483 #: ../fish/guestfish-actions.pod:2782
20484 msgid "mv"
20485 msgstr ""
20486
20487 # type: verbatim
20488 #: ../fish/guestfish-actions.pod:2784
20489 #, no-wrap
20490 msgid ""
20491 " mv src dest\n"
20492 "\n"
20493 msgstr ""
20494
20495 # type: =head2
20496 #: ../fish/guestfish-actions.pod:2789
20497 msgid "ntfs-3g-probe"
20498 msgstr ""
20499
20500 # type: verbatim
20501 #: ../fish/guestfish-actions.pod:2791
20502 #, no-wrap
20503 msgid ""
20504 " ntfs-3g-probe true|false device\n"
20505 "\n"
20506 msgstr ""
20507
20508 # type: =head2
20509 #: ../fish/guestfish-actions.pod:2805
20510 msgid "ntfsresize"
20511 msgstr ""
20512
20513 # type: verbatim
20514 #: ../fish/guestfish-actions.pod:2807
20515 #, no-wrap
20516 msgid ""
20517 " ntfsresize device\n"
20518 "\n"
20519 msgstr ""
20520
20521 # type: =head2
20522 #: ../fish/guestfish-actions.pod:2813
20523 msgid "ntfsresize-size"
20524 msgstr ""
20525
20526 # type: verbatim
20527 #: ../fish/guestfish-actions.pod:2815
20528 #, no-wrap
20529 msgid ""
20530 " ntfsresize-size device size\n"
20531 "\n"
20532 msgstr ""
20533
20534 # type: textblock
20535 #: ../fish/guestfish-actions.pod:2817
20536 msgid ""
20537 "This command is the same as L</ntfsresize> except that it allows you to "
20538 "specify the new size (in bytes) explicitly."
20539 msgstr ""
20540
20541 # type: =head2
20542 #: ../fish/guestfish-actions.pod:2820
20543 msgid "part-add"
20544 msgstr ""
20545
20546 # type: verbatim
20547 #: ../fish/guestfish-actions.pod:2822
20548 #, no-wrap
20549 msgid ""
20550 " part-add device prlogex startsect endsect\n"
20551 "\n"
20552 msgstr ""
20553
20554 # type: textblock
20555 #: ../fish/guestfish-actions.pod:2824
20556 msgid ""
20557 "This command adds a partition to C<device>.  If there is no partition table "
20558 "on the device, call L</part-init> first."
20559 msgstr ""
20560
20561 # type: textblock
20562 #: ../fish/guestfish-actions.pod:2836
20563 msgid ""
20564 "Creating a partition which covers the whole disk is not so easy.  Use "
20565 "L</part-disk> to do that."
20566 msgstr ""
20567
20568 # type: =head2
20569 #: ../fish/guestfish-actions.pod:2839
20570 msgid "part-del"
20571 msgstr ""
20572
20573 # type: verbatim
20574 #: ../fish/guestfish-actions.pod:2841
20575 #, no-wrap
20576 msgid ""
20577 " part-del device partnum\n"
20578 "\n"
20579 msgstr ""
20580
20581 # type: =head2
20582 #: ../fish/guestfish-actions.pod:2849
20583 msgid "part-disk"
20584 msgstr ""
20585
20586 # type: verbatim
20587 #: ../fish/guestfish-actions.pod:2851
20588 #, no-wrap
20589 msgid ""
20590 " part-disk device parttype\n"
20591 "\n"
20592 msgstr ""
20593
20594 # type: textblock
20595 #: ../fish/guestfish-actions.pod:2853
20596 msgid ""
20597 "This command is simply a combination of L</part-init> followed by "
20598 "L</part-add> to create a single primary partition covering the whole disk."
20599 msgstr ""
20600
20601 # type: textblock
20602 #: ../fish/guestfish-actions.pod:2857
20603 msgid ""
20604 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
20605 "possible values are described in L</part-init>."
20606 msgstr ""
20607
20608 # type: =head2
20609 #: ../fish/guestfish-actions.pod:2863
20610 msgid "part-get-bootable"
20611 msgstr ""
20612
20613 # type: verbatim
20614 #: ../fish/guestfish-actions.pod:2865
20615 #, no-wrap
20616 msgid ""
20617 " part-get-bootable device partnum\n"
20618 "\n"
20619 msgstr ""
20620
20621 # type: textblock
20622 #: ../fish/guestfish-actions.pod:2870
20623 msgid "See also L</part-set-bootable>."
20624 msgstr ""
20625
20626 # type: =head2
20627 #: ../fish/guestfish-actions.pod:2872
20628 msgid "part-get-mbr-id"
20629 msgstr ""
20630
20631 # type: verbatim
20632 #: ../fish/guestfish-actions.pod:2874
20633 #, no-wrap
20634 msgid ""
20635 " part-get-mbr-id device partnum\n"
20636 "\n"
20637 msgstr ""
20638
20639 # type: textblock
20640 #: ../fish/guestfish-actions.pod:2879 ../fish/guestfish-actions.pod:3017
20641 msgid ""
20642 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
20643 "undefined results for other partition table types (see "
20644 "L</part-get-parttype>)."
20645 msgstr ""
20646
20647 # type: =head2
20648 #: ../fish/guestfish-actions.pod:2883
20649 msgid "part-get-parttype"
20650 msgstr ""
20651
20652 # type: verbatim
20653 #: ../fish/guestfish-actions.pod:2885
20654 #, no-wrap
20655 msgid ""
20656 " part-get-parttype device\n"
20657 "\n"
20658 msgstr ""
20659
20660 # type: textblock
20661 #: ../fish/guestfish-actions.pod:2890
20662 msgid ""
20663 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
20664 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
20665 "possible, although unusual.  See L</part-init> for a full list."
20666 msgstr ""
20667
20668 # type: =head2
20669 #: ../fish/guestfish-actions.pod:2895
20670 msgid "part-init"
20671 msgstr ""
20672
20673 # type: verbatim
20674 #: ../fish/guestfish-actions.pod:2897
20675 #, no-wrap
20676 msgid ""
20677 " part-init device parttype\n"
20678 "\n"
20679 msgstr ""
20680
20681 # type: textblock
20682 #: ../fish/guestfish-actions.pod:2903
20683 msgid ""
20684 "Initially there are no partitions.  Following this, you should call "
20685 "L</part-add> for each partition required."
20686 msgstr ""
20687
20688 # type: =head2
20689 #: ../fish/guestfish-actions.pod:2966
20690 msgid "part-list"
20691 msgstr ""
20692
20693 # type: verbatim
20694 #: ../fish/guestfish-actions.pod:2968
20695 #, no-wrap
20696 msgid ""
20697 " part-list device\n"
20698 "\n"
20699 msgstr ""
20700
20701 # type: textblock
20702 #: ../fish/guestfish-actions.pod:2983
20703 msgid ""
20704 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
20705 "the device's sector size, see L</blockdev-getss>."
20706 msgstr ""
20707
20708 # type: =head2
20709 #: ../fish/guestfish-actions.pod:2996
20710 msgid "part-set-bootable"
20711 msgstr ""
20712
20713 # type: verbatim
20714 #: ../fish/guestfish-actions.pod:2998
20715 #, no-wrap
20716 msgid ""
20717 " part-set-bootable device partnum true|false\n"
20718 "\n"
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:3007
20723 msgid "part-set-mbr-id"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:3009
20728 #, no-wrap
20729 msgid ""
20730 " part-set-mbr-id device partnum idbyte\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: =head2
20735 #: ../fish/guestfish-actions.pod:3021
20736 msgid "part-set-name"
20737 msgstr ""
20738
20739 # type: verbatim
20740 #: ../fish/guestfish-actions.pod:3023
20741 #, no-wrap
20742 msgid ""
20743 " part-set-name device partnum name\n"
20744 "\n"
20745 msgstr ""
20746
20747 # type: =head2
20748 #: ../fish/guestfish-actions.pod:3031
20749 msgid "part-to-dev"
20750 msgstr ""
20751
20752 # type: verbatim
20753 #: ../fish/guestfish-actions.pod:3033
20754 #, no-wrap
20755 msgid ""
20756 " part-to-dev partition\n"
20757 "\n"
20758 msgstr ""
20759
20760 # type: textblock
20761 #: ../fish/guestfish-actions.pod:3039
20762 msgid ""
20763 "The named partition must exist, for example as a string returned from "
20764 "L</list-partitions>."
20765 msgstr ""
20766
20767 # type: =head2
20768 #: ../fish/guestfish-actions.pod:3042
20769 msgid "ping-daemon"
20770 msgstr ""
20771
20772 # type: verbatim
20773 #: ../fish/guestfish-actions.pod:3044
20774 #, no-wrap
20775 msgid ""
20776 " ping-daemon\n"
20777 "\n"
20778 msgstr ""
20779
20780 # type: =head2
20781 #: ../fish/guestfish-actions.pod:3051
20782 msgid "pread"
20783 msgstr ""
20784
20785 # type: verbatim
20786 #: ../fish/guestfish-actions.pod:3053
20787 #, no-wrap
20788 msgid ""
20789 " pread path count offset\n"
20790 "\n"
20791 msgstr ""
20792
20793 # type: textblock
20794 #: ../fish/guestfish-actions.pod:3061
20795 msgid "See also L</pwrite>, L</pread-device>."
20796 msgstr ""
20797
20798 # type: =head2
20799 #: ../fish/guestfish-actions.pod:3066
20800 msgid "pread-device"
20801 msgstr ""
20802
20803 # type: verbatim
20804 #: ../fish/guestfish-actions.pod:3068
20805 #, no-wrap
20806 msgid ""
20807 " pread-device device count offset\n"
20808 "\n"
20809 msgstr ""
20810
20811 # type: textblock
20812 #: ../fish/guestfish-actions.pod:3076
20813 msgid "See also L</pread>."
20814 msgstr ""
20815
20816 # type: =head2
20817 #: ../fish/guestfish-actions.pod:3081
20818 msgid "pvcreate"
20819 msgstr ""
20820
20821 # type: verbatim
20822 #: ../fish/guestfish-actions.pod:3083
20823 #, no-wrap
20824 msgid ""
20825 " pvcreate device\n"
20826 "\n"
20827 msgstr ""
20828
20829 # type: =head2
20830 #: ../fish/guestfish-actions.pod:3089
20831 msgid "pvremove"
20832 msgstr ""
20833
20834 # type: verbatim
20835 #: ../fish/guestfish-actions.pod:3091
20836 #, no-wrap
20837 msgid ""
20838 " pvremove device\n"
20839 "\n"
20840 msgstr ""
20841
20842 # type: =head2
20843 #: ../fish/guestfish-actions.pod:3100
20844 msgid "pvresize"
20845 msgstr ""
20846
20847 # type: verbatim
20848 #: ../fish/guestfish-actions.pod:3102
20849 #, no-wrap
20850 msgid ""
20851 " pvresize device\n"
20852 "\n"
20853 msgstr ""
20854
20855 # type: =head2
20856 #: ../fish/guestfish-actions.pod:3107
20857 msgid "pvresize-size"
20858 msgstr ""
20859
20860 # type: verbatim
20861 #: ../fish/guestfish-actions.pod:3109
20862 #, no-wrap
20863 msgid ""
20864 " pvresize-size device size\n"
20865 "\n"
20866 msgstr ""
20867
20868 # type: textblock
20869 #: ../fish/guestfish-actions.pod:3111
20870 msgid ""
20871 "This command is the same as L</pvresize> except that it allows you to "
20872 "specify the new size (in bytes) explicitly."
20873 msgstr ""
20874
20875 # type: =head2
20876 #: ../fish/guestfish-actions.pod:3114
20877 msgid "pvs"
20878 msgstr ""
20879
20880 # type: verbatim
20881 #: ../fish/guestfish-actions.pod:3116
20882 #, no-wrap
20883 msgid ""
20884 " pvs\n"
20885 "\n"
20886 msgstr ""
20887
20888 # type: textblock
20889 #: ../fish/guestfish-actions.pod:3124
20890 msgid "See also L</pvs-full>."
20891 msgstr ""
20892
20893 # type: =head2
20894 #: ../fish/guestfish-actions.pod:3126
20895 msgid "pvs-full"
20896 msgstr ""
20897
20898 # type: verbatim
20899 #: ../fish/guestfish-actions.pod:3128
20900 #, no-wrap
20901 msgid ""
20902 " pvs-full\n"
20903 "\n"
20904 msgstr ""
20905
20906 # type: =head2
20907 #: ../fish/guestfish-actions.pod:3133
20908 msgid "pvuuid"
20909 msgstr ""
20910
20911 # type: verbatim
20912 #: ../fish/guestfish-actions.pod:3135
20913 #, no-wrap
20914 msgid ""
20915 " pvuuid device\n"
20916 "\n"
20917 msgstr ""
20918
20919 # type: =head2
20920 #: ../fish/guestfish-actions.pod:3139
20921 msgid "pwrite"
20922 msgstr ""
20923
20924 # type: verbatim
20925 #: ../fish/guestfish-actions.pod:3141
20926 #, no-wrap
20927 msgid ""
20928 " pwrite path content offset\n"
20929 "\n"
20930 msgstr ""
20931
20932 # type: textblock
20933 #: ../fish/guestfish-actions.pod:3152
20934 msgid "See also L</pread>, L</pwrite-device>."
20935 msgstr ""
20936
20937 # type: =head2
20938 #: ../fish/guestfish-actions.pod:3157
20939 msgid "pwrite-device"
20940 msgstr ""
20941
20942 # type: verbatim
20943 #: ../fish/guestfish-actions.pod:3159
20944 #, no-wrap
20945 msgid ""
20946 " pwrite-device device content offset\n"
20947 "\n"
20948 msgstr ""
20949
20950 # type: textblock
20951 #: ../fish/guestfish-actions.pod:3169
20952 msgid "See also L</pwrite>."
20953 msgstr ""
20954
20955 # type: =head2
20956 #: ../fish/guestfish-actions.pod:3174
20957 msgid "read-file"
20958 msgstr ""
20959
20960 # type: verbatim
20961 #: ../fish/guestfish-actions.pod:3176
20962 #, no-wrap
20963 msgid ""
20964 " read-file path\n"
20965 "\n"
20966 msgstr ""
20967
20968 # type: textblock
20969 #: ../fish/guestfish-actions.pod:3181
20970 msgid ""
20971 "Unlike L</cat>, this function can correctly handle files that contain "
20972 "embedded ASCII NUL characters.  However unlike L</download>, this function "
20973 "is limited in the total size of file that can be handled."
20974 msgstr ""
20975
20976 # type: =head2
20977 #: ../fish/guestfish-actions.pod:3189
20978 msgid "read-lines"
20979 msgstr ""
20980
20981 # type: verbatim
20982 #: ../fish/guestfish-actions.pod:3191
20983 #, no-wrap
20984 msgid ""
20985 " read-lines path\n"
20986 "\n"
20987 msgstr ""
20988
20989 # type: textblock
20990 #: ../fish/guestfish-actions.pod:3198
20991 msgid ""
20992 "Note that this function cannot correctly handle binary files (specifically, "
20993 "files containing C<\\0> character which is treated as end of line).  For "
20994 "those you need to use the L</read-file> function which has a more complex "
20995 "interface."
20996 msgstr ""
20997
20998 # type: =head2
20999 #: ../fish/guestfish-actions.pod:3203
21000 msgid "readdir"
21001 msgstr ""
21002
21003 # type: verbatim
21004 #: ../fish/guestfish-actions.pod:3205
21005 #, no-wrap
21006 msgid ""
21007 " readdir dir\n"
21008 "\n"
21009 msgstr ""
21010
21011 # type: textblock
21012 #: ../fish/guestfish-actions.pod:3257
21013 msgid ""
21014 "This function is primarily intended for use by programs.  To get a simple "
21015 "list of names, use L</ls>.  To get a printable directory for human "
21016 "consumption, use L</ll>."
21017 msgstr ""
21018
21019 # type: =head2
21020 #: ../fish/guestfish-actions.pod:3261
21021 msgid "readlink"
21022 msgstr ""
21023
21024 # type: verbatim
21025 #: ../fish/guestfish-actions.pod:3263
21026 #, no-wrap
21027 msgid ""
21028 " readlink path\n"
21029 "\n"
21030 msgstr ""
21031
21032 # type: =head2
21033 #: ../fish/guestfish-actions.pod:3267
21034 msgid "readlinklist"
21035 msgstr ""
21036
21037 # type: verbatim
21038 #: ../fish/guestfish-actions.pod:3269
21039 #, no-wrap
21040 msgid ""
21041 " readlinklist path 'names ...'\n"
21042 "\n"
21043 msgstr ""
21044
21045 # type: =head2
21046 #: ../fish/guestfish-actions.pod:3293
21047 msgid "realpath"
21048 msgstr ""
21049
21050 # type: verbatim
21051 #: ../fish/guestfish-actions.pod:3295
21052 #, no-wrap
21053 msgid ""
21054 " realpath path\n"
21055 "\n"
21056 msgstr ""
21057
21058 # type: =head2
21059 #: ../fish/guestfish-actions.pod:3300
21060 msgid "removexattr"
21061 msgstr ""
21062
21063 # type: verbatim
21064 #: ../fish/guestfish-actions.pod:3302
21065 #, no-wrap
21066 msgid ""
21067 " removexattr xattr path\n"
21068 "\n"
21069 msgstr ""
21070
21071 # type: textblock
21072 #: ../fish/guestfish-actions.pod:3307
21073 msgid "See also: L</lremovexattr>, L<attr(5)>."
21074 msgstr ""
21075
21076 # type: =head2
21077 #: ../fish/guestfish-actions.pod:3309
21078 msgid "resize2fs"
21079 msgstr ""
21080
21081 # type: verbatim
21082 #: ../fish/guestfish-actions.pod:3311
21083 #, no-wrap
21084 msgid ""
21085 " resize2fs device\n"
21086 "\n"
21087 msgstr ""
21088
21089 # type: textblock
21090 #: ../fish/guestfish-actions.pod:3316
21091 msgid ""
21092 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21093 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21094 "gives an error about this and sometimes not.  In any case, it is always safe "
21095 "to call L</e2fsck-f> before calling this function."
21096 msgstr ""
21097
21098 # type: =head2
21099 #: ../fish/guestfish-actions.pod:3322
21100 msgid "resize2fs-size"
21101 msgstr ""
21102
21103 # type: verbatim
21104 #: ../fish/guestfish-actions.pod:3324
21105 #, no-wrap
21106 msgid ""
21107 " resize2fs-size device size\n"
21108 "\n"
21109 msgstr ""
21110
21111 # type: textblock
21112 #: ../fish/guestfish-actions.pod:3326
21113 msgid ""
21114 "This command is the same as L</resize2fs> except that it allows you to "
21115 "specify the new size (in bytes) explicitly."
21116 msgstr ""
21117
21118 # type: =head2
21119 #: ../fish/guestfish-actions.pod:3329
21120 msgid "rm"
21121 msgstr ""
21122
21123 # type: verbatim
21124 #: ../fish/guestfish-actions.pod:3331
21125 #, no-wrap
21126 msgid ""
21127 " rm path\n"
21128 "\n"
21129 msgstr ""
21130
21131 # type: =head2
21132 #: ../fish/guestfish-actions.pod:3335
21133 msgid "rm-rf"
21134 msgstr ""
21135
21136 # type: verbatim
21137 #: ../fish/guestfish-actions.pod:3337
21138 #, no-wrap
21139 msgid ""
21140 " rm-rf path\n"
21141 "\n"
21142 msgstr ""
21143
21144 # type: =head2
21145 #: ../fish/guestfish-actions.pod:3343
21146 msgid "rmdir"
21147 msgstr ""
21148
21149 # type: verbatim
21150 #: ../fish/guestfish-actions.pod:3345
21151 #, no-wrap
21152 msgid ""
21153 " rmdir path\n"
21154 "\n"
21155 msgstr ""
21156
21157 # type: =head2
21158 #: ../fish/guestfish-actions.pod:3349
21159 msgid "rmmountpoint"
21160 msgstr ""
21161
21162 # type: verbatim
21163 #: ../fish/guestfish-actions.pod:3351
21164 #, no-wrap
21165 msgid ""
21166 " rmmountpoint exemptpath\n"
21167 "\n"
21168 msgstr ""
21169
21170 # type: textblock
21171 #: ../fish/guestfish-actions.pod:3353
21172 msgid ""
21173 "This calls removes a mountpoint that was previously created with "
21174 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
21175 msgstr ""
21176
21177 # type: =head2
21178 #: ../fish/guestfish-actions.pod:3357
21179 msgid "scrub-device"
21180 msgstr ""
21181
21182 # type: verbatim
21183 #: ../fish/guestfish-actions.pod:3359
21184 #, no-wrap
21185 msgid ""
21186 " scrub-device device\n"
21187 "\n"
21188 msgstr ""
21189
21190 # type: =head2
21191 #: ../fish/guestfish-actions.pod:3370
21192 msgid "scrub-file"
21193 msgstr ""
21194
21195 # type: verbatim
21196 #: ../fish/guestfish-actions.pod:3372
21197 #, no-wrap
21198 msgid ""
21199 " scrub-file file\n"
21200 "\n"
21201 msgstr ""
21202
21203 # type: =head2
21204 #: ../fish/guestfish-actions.pod:3382
21205 msgid "scrub-freespace"
21206 msgstr ""
21207
21208 # type: verbatim
21209 #: ../fish/guestfish-actions.pod:3384
21210 #, no-wrap
21211 msgid ""
21212 " scrub-freespace dir\n"
21213 "\n"
21214 msgstr ""
21215
21216 # type: textblock
21217 #: ../fish/guestfish-actions.pod:3386
21218 msgid ""
21219 "This command creates the directory C<dir> and then fills it with files until "
21220 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21221 "deletes them.  The intention is to scrub any free space on the partition "
21222 "containing C<dir>."
21223 msgstr ""
21224
21225 # type: =head2
21226 #: ../fish/guestfish-actions.pod:3395
21227 msgid "set-append"
21228 msgstr ""
21229
21230 # type: =head2
21231 #: ../fish/guestfish-actions.pod:3397
21232 msgid "append"
21233 msgstr ""
21234
21235 # type: verbatim
21236 #: ../fish/guestfish-actions.pod:3399
21237 #, no-wrap
21238 msgid ""
21239 " set-append append\n"
21240 "\n"
21241 msgstr ""
21242
21243 # type: =head2
21244 #: ../fish/guestfish-actions.pod:3410
21245 msgid "set-autosync"
21246 msgstr ""
21247
21248 # type: =head2
21249 #: ../fish/guestfish-actions.pod:3412
21250 msgid "autosync"
21251 msgstr ""
21252
21253 # type: verbatim
21254 #: ../fish/guestfish-actions.pod:3414
21255 #, no-wrap
21256 msgid ""
21257 " set-autosync true|false\n"
21258 "\n"
21259 msgstr ""
21260
21261 # type: textblock
21262 #: ../fish/guestfish-actions.pod:3416
21263 msgid ""
21264 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21265 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21266 "closed (also if the program exits without closing handles)."
21267 msgstr ""
21268
21269 # type: =head2
21270 #: ../fish/guestfish-actions.pod:3424
21271 msgid "set-direct"
21272 msgstr ""
21273
21274 # type: =head2
21275 #: ../fish/guestfish-actions.pod:3426
21276 msgid "direct"
21277 msgstr ""
21278
21279 # type: verbatim
21280 #: ../fish/guestfish-actions.pod:3428
21281 #, no-wrap
21282 msgid ""
21283 " set-direct true|false\n"
21284 "\n"
21285 msgstr ""
21286
21287 # type: textblock
21288 #: ../fish/guestfish-actions.pod:3434
21289 msgid ""
21290 "One consequence of this is that log messages aren't caught by the library "
21291 "and handled by L</set-log-message-callback>, but go straight to stdout."
21292 msgstr ""
21293
21294 # type: =head2
21295 #: ../fish/guestfish-actions.pod:3443
21296 msgid "set-e2label"
21297 msgstr ""
21298
21299 # type: verbatim
21300 #: ../fish/guestfish-actions.pod:3445
21301 #, no-wrap
21302 msgid ""
21303 " set-e2label device label\n"
21304 "\n"
21305 msgstr ""
21306
21307 # type: textblock
21308 #: ../fish/guestfish-actions.pod:3451
21309 msgid ""
21310 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21311 "label on a filesystem."
21312 msgstr ""
21313
21314 # type: =head2
21315 #: ../fish/guestfish-actions.pod:3454
21316 msgid "set-e2uuid"
21317 msgstr ""
21318
21319 # type: verbatim
21320 #: ../fish/guestfish-actions.pod:3456
21321 #, no-wrap
21322 msgid ""
21323 " set-e2uuid device uuid\n"
21324 "\n"
21325 msgstr ""
21326
21327 # type: textblock
21328 #: ../fish/guestfish-actions.pod:3463
21329 msgid ""
21330 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21331 "UUID of a filesystem."
21332 msgstr ""
21333
21334 # type: =head2
21335 #: ../fish/guestfish-actions.pod:3466
21336 msgid "set-memsize"
21337 msgstr ""
21338
21339 # type: =head2
21340 #: ../fish/guestfish-actions.pod:3468
21341 msgid "memsize"
21342 msgstr ""
21343
21344 # type: verbatim
21345 #: ../fish/guestfish-actions.pod:3470
21346 #, no-wrap
21347 msgid ""
21348 " set-memsize memsize\n"
21349 "\n"
21350 msgstr ""
21351
21352 # type: textblock
21353 #: ../fish/guestfish-actions.pod:3472
21354 msgid ""
21355 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21356 "This only has any effect if called before L</launch>."
21357 msgstr ""
21358
21359 # type: =head2
21360 #: ../fish/guestfish-actions.pod:3483
21361 msgid "set-network"
21362 msgstr ""
21363
21364 # type: =head2
21365 #: ../fish/guestfish-actions.pod:3485
21366 msgid "network"
21367 msgstr ""
21368
21369 # type: verbatim
21370 #: ../fish/guestfish-actions.pod:3487
21371 #, no-wrap
21372 msgid ""
21373 " set-network true|false\n"
21374 "\n"
21375 msgstr ""
21376
21377 # type: textblock
21378 #: ../fish/guestfish-actions.pod:3495
21379 msgid "You must call this before calling L</launch>, otherwise it has no effect."
21380 msgstr ""
21381
21382 # type: =head2
21383 #: ../fish/guestfish-actions.pod:3498
21384 msgid "set-path"
21385 msgstr ""
21386
21387 # type: =head2
21388 #: ../fish/guestfish-actions.pod:3500
21389 msgid "path"
21390 msgstr ""
21391
21392 # type: verbatim
21393 #: ../fish/guestfish-actions.pod:3502
21394 #, no-wrap
21395 msgid ""
21396 " set-path searchpath\n"
21397 "\n"
21398 msgstr ""
21399
21400 # type: =head2
21401 #: ../fish/guestfish-actions.pod:3511
21402 msgid "set-qemu"
21403 msgstr ""
21404
21405 # type: =head2
21406 #: ../fish/guestfish-actions.pod:3513
21407 msgid "qemu"
21408 msgstr ""
21409
21410 # type: verbatim
21411 #: ../fish/guestfish-actions.pod:3515
21412 #, no-wrap
21413 msgid ""
21414 " set-qemu qemu\n"
21415 "\n"
21416 msgstr ""
21417
21418 # type: =head2
21419 #: ../fish/guestfish-actions.pod:3535
21420 msgid "set-recovery-proc"
21421 msgstr ""
21422
21423 # type: =head2
21424 #: ../fish/guestfish-actions.pod:3537
21425 msgid "recovery-proc"
21426 msgstr ""
21427
21428 # type: verbatim
21429 #: ../fish/guestfish-actions.pod:3539
21430 #, no-wrap
21431 msgid ""
21432 " set-recovery-proc true|false\n"
21433 "\n"
21434 msgstr ""
21435
21436 # type: textblock
21437 #: ../fish/guestfish-actions.pod:3541
21438 msgid ""
21439 "If this is called with the parameter C<false> then L</launch> does not "
21440 "create a recovery process.  The purpose of the recovery process is to stop "
21441 "runaway qemu processes in the case where the main program aborts abruptly."
21442 msgstr ""
21443
21444 # type: textblock
21445 #: ../fish/guestfish-actions.pod:3546
21446 msgid ""
21447 "This only has any effect if called before L</launch>, and the default is "
21448 "true."
21449 msgstr ""
21450
21451 # type: =head2
21452 #: ../fish/guestfish-actions.pod:3555
21453 msgid "set-selinux"
21454 msgstr ""
21455
21456 # type: =head2
21457 #: ../fish/guestfish-actions.pod:3557
21458 msgid "selinux"
21459 msgstr ""
21460
21461 # type: verbatim
21462 #: ../fish/guestfish-actions.pod:3559
21463 #, no-wrap
21464 msgid ""
21465 " set-selinux true|false\n"
21466 "\n"
21467 msgstr ""
21468
21469 # type: =head2
21470 #: ../fish/guestfish-actions.pod:3570
21471 msgid "set-trace"
21472 msgstr ""
21473
21474 # type: =head2
21475 #: ../fish/guestfish-actions.pod:3572
21476 msgid "trace"
21477 msgstr ""
21478
21479 # type: verbatim
21480 #: ../fish/guestfish-actions.pod:3574
21481 #, no-wrap
21482 msgid ""
21483 " set-trace true|false\n"
21484 "\n"
21485 msgstr ""
21486
21487 # type: =head2
21488 #: ../fish/guestfish-actions.pod:3590
21489 msgid "set-verbose"
21490 msgstr ""
21491
21492 # type: =head2
21493 #: ../fish/guestfish-actions.pod:3592
21494 msgid "verbose"
21495 msgstr ""
21496
21497 # type: verbatim
21498 #: ../fish/guestfish-actions.pod:3594
21499 #, no-wrap
21500 msgid ""
21501 " set-verbose true|false\n"
21502 "\n"
21503 msgstr ""
21504
21505 # type: =head2
21506 #: ../fish/guestfish-actions.pod:3601
21507 msgid "setcon"
21508 msgstr ""
21509
21510 # type: verbatim
21511 #: ../fish/guestfish-actions.pod:3603
21512 #, no-wrap
21513 msgid ""
21514 " setcon context\n"
21515 "\n"
21516 msgstr ""
21517
21518 # type: =head2
21519 #: ../fish/guestfish-actions.pod:3610
21520 msgid "setxattr"
21521 msgstr ""
21522
21523 # type: verbatim
21524 #: ../fish/guestfish-actions.pod:3612
21525 #, no-wrap
21526 msgid ""
21527 " setxattr xattr val vallen path\n"
21528 "\n"
21529 msgstr ""
21530
21531 # type: textblock
21532 #: ../fish/guestfish-actions.pod:3618
21533 msgid "See also: L</lsetxattr>, L<attr(5)>."
21534 msgstr ""
21535
21536 # type: =head2
21537 #: ../fish/guestfish-actions.pod:3620
21538 msgid "sfdisk"
21539 msgstr ""
21540
21541 # type: verbatim
21542 #: ../fish/guestfish-actions.pod:3622
21543 #, no-wrap
21544 msgid ""
21545 " sfdisk device cyls heads sectors 'lines ...'\n"
21546 "\n"
21547 msgstr ""
21548
21549 # type: textblock
21550 #: ../fish/guestfish-actions.pod:3644
21551 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
21552 msgstr ""
21553
21554 # type: =head2
21555 #: ../fish/guestfish-actions.pod:3650
21556 msgid "sfdiskM"
21557 msgstr ""
21558
21559 # type: verbatim
21560 #: ../fish/guestfish-actions.pod:3652
21561 #, no-wrap
21562 msgid ""
21563 " sfdiskM device 'lines ...'\n"
21564 "\n"
21565 msgstr ""
21566
21567 # type: textblock
21568 #: ../fish/guestfish-actions.pod:3654
21569 msgid ""
21570 "This is a simplified interface to the L</sfdisk> command, where partition "
21571 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
21572 "you don't need to specify the cyls, heads and sectors parameters which were "
21573 "rarely if ever used anyway."
21574 msgstr ""
21575
21576 # type: textblock
21577 #: ../fish/guestfish-actions.pod:3660
21578 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
21579 msgstr ""
21580
21581 # type: =head2
21582 #: ../fish/guestfish-actions.pod:3666
21583 msgid "sfdisk-N"
21584 msgstr ""
21585
21586 # type: verbatim
21587 #: ../fish/guestfish-actions.pod:3668
21588 #, no-wrap
21589 msgid ""
21590 " sfdisk-N device partnum cyls heads sectors line\n"
21591 "\n"
21592 msgstr ""
21593
21594 # type: textblock
21595 #: ../fish/guestfish-actions.pod:3673
21596 msgid ""
21597 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
21598 "cyls/heads/sectors parameters."
21599 msgstr ""
21600
21601 # type: textblock
21602 #: ../fish/guestfish-actions.pod:3676
21603 msgid "See also: L</part-add>"
21604 msgstr ""
21605
21606 # type: =head2
21607 #: ../fish/guestfish-actions.pod:3681
21608 msgid "sfdisk-disk-geometry"
21609 msgstr ""
21610
21611 # type: verbatim
21612 #: ../fish/guestfish-actions.pod:3683
21613 #, no-wrap
21614 msgid ""
21615 " sfdisk-disk-geometry device\n"
21616 "\n"
21617 msgstr ""
21618
21619 # type: textblock
21620 #: ../fish/guestfish-actions.pod:3685
21621 msgid ""
21622 "This displays the disk geometry of C<device> read from the partition table.  "
21623 "Especially in the case where the underlying block device has been resized, "
21624 "this can be different from the kernel's idea of the geometry (see "
21625 "L</sfdisk-kernel-geometry>)."
21626 msgstr ""
21627
21628 # type: =head2
21629 #: ../fish/guestfish-actions.pod:3693
21630 msgid "sfdisk-kernel-geometry"
21631 msgstr ""
21632
21633 # type: verbatim
21634 #: ../fish/guestfish-actions.pod:3695
21635 #, no-wrap
21636 msgid ""
21637 " sfdisk-kernel-geometry device\n"
21638 "\n"
21639 msgstr ""
21640
21641 # type: =head2
21642 #: ../fish/guestfish-actions.pod:3702
21643 msgid "sfdisk-l"
21644 msgstr ""
21645
21646 # type: verbatim
21647 #: ../fish/guestfish-actions.pod:3704
21648 #, no-wrap
21649 msgid ""
21650 " sfdisk-l device\n"
21651 "\n"
21652 msgstr ""
21653
21654 # type: textblock
21655 #: ../fish/guestfish-actions.pod:3710
21656 msgid "See also: L</part-list>"
21657 msgstr ""
21658
21659 # type: =head2
21660 #: ../fish/guestfish-actions.pod:3712
21661 msgid "sh"
21662 msgstr ""
21663
21664 # type: verbatim
21665 #: ../fish/guestfish-actions.pod:3714
21666 #, no-wrap
21667 msgid ""
21668 " sh command\n"
21669 "\n"
21670 msgstr ""
21671
21672 # type: textblock
21673 #: ../fish/guestfish-actions.pod:3719
21674 msgid "This is like L</command>, but passes the command to:"
21675 msgstr ""
21676
21677 # type: textblock
21678 #: ../fish/guestfish-actions.pod:3727
21679 msgid "All the provisos about L</command> apply to this call."
21680 msgstr ""
21681
21682 # type: =head2
21683 #: ../fish/guestfish-actions.pod:3729
21684 msgid "sh-lines"
21685 msgstr ""
21686
21687 # type: verbatim
21688 #: ../fish/guestfish-actions.pod:3731
21689 #, no-wrap
21690 msgid ""
21691 " sh-lines command\n"
21692 "\n"
21693 msgstr ""
21694
21695 # type: textblock
21696 #: ../fish/guestfish-actions.pod:3733
21697 msgid "This is the same as L</sh>, but splits the result into a list of lines."
21698 msgstr ""
21699
21700 # type: textblock
21701 #: ../fish/guestfish-actions.pod:3736
21702 msgid "See also: L</command-lines>"
21703 msgstr ""
21704
21705 # type: =head2
21706 #: ../fish/guestfish-actions.pod:3738
21707 msgid "sleep"
21708 msgstr ""
21709
21710 # type: verbatim
21711 #: ../fish/guestfish-actions.pod:3740
21712 #, no-wrap
21713 msgid ""
21714 " sleep secs\n"
21715 "\n"
21716 msgstr ""
21717
21718 # type: =head2
21719 #: ../fish/guestfish-actions.pod:3744
21720 msgid "stat"
21721 msgstr ""
21722
21723 # type: verbatim
21724 #: ../fish/guestfish-actions.pod:3746
21725 #, no-wrap
21726 msgid ""
21727 " stat path\n"
21728 "\n"
21729 msgstr ""
21730
21731 # type: =head2
21732 #: ../fish/guestfish-actions.pod:3752
21733 msgid "statvfs"
21734 msgstr ""
21735
21736 # type: verbatim
21737 #: ../fish/guestfish-actions.pod:3754
21738 #, no-wrap
21739 msgid ""
21740 " statvfs path\n"
21741 "\n"
21742 msgstr ""
21743
21744 # type: =head2
21745 #: ../fish/guestfish-actions.pod:3762
21746 msgid "strings"
21747 msgstr ""
21748
21749 # type: verbatim
21750 #: ../fish/guestfish-actions.pod:3764
21751 #, no-wrap
21752 msgid ""
21753 " strings path\n"
21754 "\n"
21755 msgstr ""
21756
21757 # type: =head2
21758 #: ../fish/guestfish-actions.pod:3772
21759 msgid "strings-e"
21760 msgstr ""
21761
21762 # type: verbatim
21763 #: ../fish/guestfish-actions.pod:3774
21764 #, no-wrap
21765 msgid ""
21766 " strings-e encoding path\n"
21767 "\n"
21768 msgstr ""
21769
21770 # type: textblock
21771 #: ../fish/guestfish-actions.pod:3776
21772 msgid ""
21773 "This is like the L</strings> command, but allows you to specify the encoding "
21774 "of strings that are looked for in the source file C<path>."
21775 msgstr ""
21776
21777 # type: textblock
21778 #: ../fish/guestfish-actions.pod:3786
21779 msgid ""
21780 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
21781 "ISO-8859-X (this is what L</strings> uses)."
21782 msgstr ""
21783
21784 # type: =head2
21785 #: ../fish/guestfish-actions.pod:3818
21786 msgid "swapoff-device"
21787 msgstr ""
21788
21789 # type: verbatim
21790 #: ../fish/guestfish-actions.pod:3820
21791 #, no-wrap
21792 msgid ""
21793 " swapoff-device device\n"
21794 "\n"
21795 msgstr ""
21796
21797 # type: textblock
21798 #: ../fish/guestfish-actions.pod:3822
21799 msgid ""
21800 "This command disables the libguestfs appliance swap device or partition "
21801 "named C<device>.  See L</swapon-device>."
21802 msgstr ""
21803
21804 # type: =head2
21805 #: ../fish/guestfish-actions.pod:3826
21806 msgid "swapoff-file"
21807 msgstr ""
21808
21809 # type: verbatim
21810 #: ../fish/guestfish-actions.pod:3828
21811 #, no-wrap
21812 msgid ""
21813 " swapoff-file file\n"
21814 "\n"
21815 msgstr ""
21816
21817 # type: =head2
21818 #: ../fish/guestfish-actions.pod:3832
21819 msgid "swapoff-label"
21820 msgstr ""
21821
21822 # type: verbatim
21823 #: ../fish/guestfish-actions.pod:3834
21824 #, no-wrap
21825 msgid ""
21826 " swapoff-label label\n"
21827 "\n"
21828 msgstr ""
21829
21830 # type: =head2
21831 #: ../fish/guestfish-actions.pod:3839
21832 msgid "swapoff-uuid"
21833 msgstr ""
21834
21835 # type: verbatim
21836 #: ../fish/guestfish-actions.pod:3841
21837 #, no-wrap
21838 msgid ""
21839 " swapoff-uuid uuid\n"
21840 "\n"
21841 msgstr ""
21842
21843 # type: =head2
21844 #: ../fish/guestfish-actions.pod:3846
21845 msgid "swapon-device"
21846 msgstr ""
21847
21848 # type: verbatim
21849 #: ../fish/guestfish-actions.pod:3848
21850 #, no-wrap
21851 msgid ""
21852 " swapon-device device\n"
21853 "\n"
21854 msgstr ""
21855
21856 # type: textblock
21857 #: ../fish/guestfish-actions.pod:3850
21858 msgid ""
21859 "This command enables the libguestfs appliance to use the swap device or "
21860 "partition named C<device>.  The increased memory is made available for all "
21861 "commands, for example those run using L</command> or L</sh>."
21862 msgstr ""
21863
21864 # type: =head2
21865 #: ../fish/guestfish-actions.pod:3862
21866 msgid "swapon-file"
21867 msgstr ""
21868
21869 # type: verbatim
21870 #: ../fish/guestfish-actions.pod:3864
21871 #, no-wrap
21872 msgid ""
21873 " swapon-file file\n"
21874 "\n"
21875 msgstr ""
21876
21877 # type: textblock
21878 #: ../fish/guestfish-actions.pod:3866
21879 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
21880 msgstr ""
21881
21882 # type: =head2
21883 #: ../fish/guestfish-actions.pod:3869
21884 msgid "swapon-label"
21885 msgstr ""
21886
21887 # type: verbatim
21888 #: ../fish/guestfish-actions.pod:3871
21889 #, no-wrap
21890 msgid ""
21891 " swapon-label label\n"
21892 "\n"
21893 msgstr ""
21894
21895 # type: textblock
21896 #: ../fish/guestfish-actions.pod:3873
21897 msgid ""
21898 "This command enables swap to a labeled swap partition.  See "
21899 "L</swapon-device> for other notes."
21900 msgstr ""
21901
21902 # type: =head2
21903 #: ../fish/guestfish-actions.pod:3876
21904 msgid "swapon-uuid"
21905 msgstr ""
21906
21907 # type: verbatim
21908 #: ../fish/guestfish-actions.pod:3878
21909 #, no-wrap
21910 msgid ""
21911 " swapon-uuid uuid\n"
21912 "\n"
21913 msgstr ""
21914
21915 # type: textblock
21916 #: ../fish/guestfish-actions.pod:3880
21917 msgid ""
21918 "This command enables swap to a swap partition with the given UUID.  See "
21919 "L</swapon-device> for other notes."
21920 msgstr ""
21921
21922 # type: =head2
21923 #: ../fish/guestfish-actions.pod:3883
21924 msgid "sync"
21925 msgstr ""
21926
21927 # type: verbatim
21928 #: ../fish/guestfish-actions.pod:3885
21929 #, no-wrap
21930 msgid ""
21931 " sync\n"
21932 "\n"
21933 msgstr ""
21934
21935 # type: =head2
21936 #: ../fish/guestfish-actions.pod:3893
21937 msgid "tail"
21938 msgstr ""
21939
21940 # type: verbatim
21941 #: ../fish/guestfish-actions.pod:3895
21942 #, no-wrap
21943 msgid ""
21944 " tail path\n"
21945 "\n"
21946 msgstr ""
21947
21948 # type: =head2
21949 #: ../fish/guestfish-actions.pod:3903
21950 msgid "tail-n"
21951 msgstr ""
21952
21953 # type: verbatim
21954 #: ../fish/guestfish-actions.pod:3905
21955 #, no-wrap
21956 msgid ""
21957 " tail-n nrlines path\n"
21958 "\n"
21959 msgstr ""
21960
21961 # type: =head2
21962 #: ../fish/guestfish-actions.pod:3918
21963 msgid "tar-in"
21964 msgstr ""
21965
21966 # type: verbatim
21967 #: ../fish/guestfish-actions.pod:3920
21968 #, no-wrap
21969 msgid ""
21970 " tar-in (tarfile|-) directory\n"
21971 "\n"
21972 msgstr ""
21973
21974 # type: textblock
21975 #: ../fish/guestfish-actions.pod:3925
21976 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
21977 msgstr ""
21978
21979 # type: =head2
21980 #: ../fish/guestfish-actions.pod:3930
21981 msgid "tar-out"
21982 msgstr ""
21983
21984 # type: verbatim
21985 #: ../fish/guestfish-actions.pod:3932
21986 #, no-wrap
21987 msgid ""
21988 " tar-out directory (tarfile|-)\n"
21989 "\n"
21990 msgstr ""
21991
21992 # type: textblock
21993 #: ../fish/guestfish-actions.pod:3937
21994 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
21995 msgstr ""
21996
21997 # type: =head2
21998 #: ../fish/guestfish-actions.pod:3942
21999 msgid "tgz-in"
22000 msgstr ""
22001
22002 # type: verbatim
22003 #: ../fish/guestfish-actions.pod:3944
22004 #, no-wrap
22005 msgid ""
22006 " tgz-in (tarball|-) directory\n"
22007 "\n"
22008 msgstr ""
22009
22010 # type: textblock
22011 #: ../fish/guestfish-actions.pod:3949
22012 msgid "To upload an uncompressed tarball, use L</tar-in>."
22013 msgstr ""
22014
22015 # type: =head2
22016 #: ../fish/guestfish-actions.pod:3953
22017 msgid "tgz-out"
22018 msgstr ""
22019
22020 # type: verbatim
22021 #: ../fish/guestfish-actions.pod:3955
22022 #, no-wrap
22023 msgid ""
22024 " tgz-out directory (tarball|-)\n"
22025 "\n"
22026 msgstr ""
22027
22028 # type: textblock
22029 #: ../fish/guestfish-actions.pod:3960
22030 msgid "To download an uncompressed tarball, use L</tar-out>."
22031 msgstr ""
22032
22033 # type: =head2
22034 #: ../fish/guestfish-actions.pod:3964
22035 msgid "touch"
22036 msgstr ""
22037
22038 # type: verbatim
22039 #: ../fish/guestfish-actions.pod:3966
22040 #, no-wrap
22041 msgid ""
22042 " touch path\n"
22043 "\n"
22044 msgstr ""
22045
22046 # type: =head2
22047 #: ../fish/guestfish-actions.pod:3975
22048 msgid "truncate"
22049 msgstr ""
22050
22051 # type: verbatim
22052 #: ../fish/guestfish-actions.pod:3977
22053 #, no-wrap
22054 msgid ""
22055 " truncate path\n"
22056 "\n"
22057 msgstr ""
22058
22059 # type: =head2
22060 #: ../fish/guestfish-actions.pod:3982
22061 msgid "truncate-size"
22062 msgstr ""
22063
22064 # type: verbatim
22065 #: ../fish/guestfish-actions.pod:3984
22066 #, no-wrap
22067 msgid ""
22068 " truncate-size path size\n"
22069 "\n"
22070 msgstr ""
22071
22072 # type: textblock
22073 #: ../fish/guestfish-actions.pod:3989
22074 msgid ""
22075 "If the current file size is less than C<size> then the file is extended to "
22076 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22077 "blocks are not allocated for the file until you write to it).  To create a "
22078 "non-sparse file of zeroes, use L</fallocate64> instead."
22079 msgstr ""
22080
22081 # type: =head2
22082 #: ../fish/guestfish-actions.pod:3995
22083 msgid "tune2fs-l"
22084 msgstr ""
22085
22086 # type: verbatim
22087 #: ../fish/guestfish-actions.pod:3997
22088 #, no-wrap
22089 msgid ""
22090 " tune2fs-l device\n"
22091 "\n"
22092 msgstr ""
22093
22094 # type: =head2
22095 #: ../fish/guestfish-actions.pod:4007
22096 msgid "txz-in"
22097 msgstr ""
22098
22099 # type: verbatim
22100 #: ../fish/guestfish-actions.pod:4009
22101 #, no-wrap
22102 msgid ""
22103 " txz-in (tarball|-) directory\n"
22104 "\n"
22105 msgstr ""
22106
22107 # type: =head2
22108 #: ../fish/guestfish-actions.pod:4016
22109 msgid "txz-out"
22110 msgstr ""
22111
22112 # type: verbatim
22113 #: ../fish/guestfish-actions.pod:4018
22114 #, no-wrap
22115 msgid ""
22116 " txz-out directory (tarball|-)\n"
22117 "\n"
22118 msgstr ""
22119
22120 # type: =head2
22121 #: ../fish/guestfish-actions.pod:4025
22122 msgid "umask"
22123 msgstr ""
22124
22125 # type: verbatim
22126 #: ../fish/guestfish-actions.pod:4027
22127 #, no-wrap
22128 msgid ""
22129 " umask mask\n"
22130 "\n"
22131 msgstr ""
22132
22133 # type: textblock
22134 #: ../fish/guestfish-actions.pod:4041
22135 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22136 msgstr ""
22137
22138 # type: =head2
22139 #: ../fish/guestfish-actions.pod:4046
22140 msgid "umount"
22141 msgstr ""
22142
22143 # type: =head2
22144 #: ../fish/guestfish-actions.pod:4048
22145 msgid "unmount"
22146 msgstr ""
22147
22148 # type: verbatim
22149 #: ../fish/guestfish-actions.pod:4050
22150 #, no-wrap
22151 msgid ""
22152 " umount pathordevice\n"
22153 "\n"
22154 msgstr ""
22155
22156 # type: =head2
22157 #: ../fish/guestfish-actions.pod:4056
22158 msgid "umount-all"
22159 msgstr ""
22160
22161 # type: =head2
22162 #: ../fish/guestfish-actions.pod:4058
22163 msgid "unmount-all"
22164 msgstr ""
22165
22166 # type: verbatim
22167 #: ../fish/guestfish-actions.pod:4060
22168 #, no-wrap
22169 msgid ""
22170 " umount-all\n"
22171 "\n"
22172 msgstr ""
22173
22174 # type: =head2
22175 #: ../fish/guestfish-actions.pod:4066
22176 msgid "upload"
22177 msgstr ""
22178
22179 # type: verbatim
22180 #: ../fish/guestfish-actions.pod:4068
22181 #, no-wrap
22182 msgid ""
22183 " upload (filename|-) remotefilename\n"
22184 "\n"
22185 msgstr ""
22186
22187 # type: textblock
22188 #: ../fish/guestfish-actions.pod:4075
22189 msgid "See also L</download>."
22190 msgstr ""
22191
22192 # type: =head2
22193 #: ../fish/guestfish-actions.pod:4079
22194 msgid "upload-offset"
22195 msgstr ""
22196
22197 # type: verbatim
22198 #: ../fish/guestfish-actions.pod:4081
22199 #, no-wrap
22200 msgid ""
22201 " upload-offset (filename|-) remotefilename offset\n"
22202 "\n"
22203 msgstr ""
22204
22205 # type: textblock
22206 #: ../fish/guestfish-actions.pod:4093
22207 msgid ""
22208 "Note that there is no limit on the amount of data that can be uploaded with "
22209 "this call, unlike with L</pwrite>, and this call always writes the full "
22210 "amount unless an error occurs."
22211 msgstr ""
22212
22213 # type: textblock
22214 #: ../fish/guestfish-actions.pod:4098
22215 msgid "See also L</upload>, L</pwrite>."
22216 msgstr ""
22217
22218 # type: =head2
22219 #: ../fish/guestfish-actions.pod:4102
22220 msgid "utimens"
22221 msgstr ""
22222
22223 # type: verbatim
22224 #: ../fish/guestfish-actions.pod:4104
22225 #, no-wrap
22226 msgid ""
22227 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22228 "\n"
22229 msgstr ""
22230
22231 # type: =head2
22232 #: ../fish/guestfish-actions.pod:4123
22233 msgid "version"
22234 msgstr ""
22235
22236 # type: verbatim
22237 #: ../fish/guestfish-actions.pod:4125
22238 #, no-wrap
22239 msgid ""
22240 " version\n"
22241 "\n"
22242 msgstr ""
22243
22244 # type: textblock
22245 #: ../fish/guestfish-actions.pod:4152
22246 msgid ""
22247 "I<Note:> Don't use this call to test for availability of features.  In "
22248 "enterprise distributions we backport features from later versions into "
22249 "earlier versions, making this an unreliable way to test for features.  Use "
22250 "L</available> instead."
22251 msgstr ""
22252
22253 # type: =head2
22254 #: ../fish/guestfish-actions.pod:4158
22255 msgid "vfs-label"
22256 msgstr ""
22257
22258 # type: verbatim
22259 #: ../fish/guestfish-actions.pod:4160
22260 #, no-wrap
22261 msgid ""
22262 " vfs-label device\n"
22263 "\n"
22264 msgstr ""
22265
22266 # type: textblock
22267 #: ../fish/guestfish-actions.pod:4167
22268 msgid "To find a filesystem from the label, use L</findfs-label>."
22269 msgstr ""
22270
22271 # type: =head2
22272 #: ../fish/guestfish-actions.pod:4169
22273 msgid "vfs-type"
22274 msgstr ""
22275
22276 # type: verbatim
22277 #: ../fish/guestfish-actions.pod:4171
22278 #, no-wrap
22279 msgid ""
22280 " vfs-type device\n"
22281 "\n"
22282 msgstr ""
22283
22284 # type: =head2
22285 #: ../fish/guestfish-actions.pod:4181
22286 msgid "vfs-uuid"
22287 msgstr ""
22288
22289 # type: verbatim
22290 #: ../fish/guestfish-actions.pod:4183
22291 #, no-wrap
22292 msgid ""
22293 " vfs-uuid device\n"
22294 "\n"
22295 msgstr ""
22296
22297 # type: textblock
22298 #: ../fish/guestfish-actions.pod:4190
22299 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22300 msgstr ""
22301
22302 # type: =head2
22303 #: ../fish/guestfish-actions.pod:4192
22304 msgid "vg-activate"
22305 msgstr ""
22306
22307 # type: verbatim
22308 #: ../fish/guestfish-actions.pod:4194
22309 #, no-wrap
22310 msgid ""
22311 " vg-activate true|false 'volgroups ...'\n"
22312 "\n"
22313 msgstr ""
22314
22315 # type: =head2
22316 #: ../fish/guestfish-actions.pod:4207
22317 msgid "vg-activate-all"
22318 msgstr ""
22319
22320 # type: verbatim
22321 #: ../fish/guestfish-actions.pod:4209
22322 #, no-wrap
22323 msgid ""
22324 " vg-activate-all true|false\n"
22325 "\n"
22326 msgstr ""
22327
22328 # type: =head2
22329 #: ../fish/guestfish-actions.pod:4219
22330 msgid "vgcreate"
22331 msgstr ""
22332
22333 # type: verbatim
22334 #: ../fish/guestfish-actions.pod:4221
22335 #, no-wrap
22336 msgid ""
22337 " vgcreate volgroup 'physvols ...'\n"
22338 "\n"
22339 msgstr ""
22340
22341 # type: =head2
22342 #: ../fish/guestfish-actions.pod:4226
22343 msgid "vglvuuids"
22344 msgstr ""
22345
22346 # type: verbatim
22347 #: ../fish/guestfish-actions.pod:4228
22348 #, no-wrap
22349 msgid ""
22350 " vglvuuids vgname\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: textblock
22355 #: ../fish/guestfish-actions.pod:4233
22356 msgid ""
22357 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22358 "logical volumes and volume groups."
22359 msgstr ""
22360
22361 # type: textblock
22362 #: ../fish/guestfish-actions.pod:4236
22363 msgid "See also L</vgpvuuids>."
22364 msgstr ""
22365
22366 # type: =head2
22367 #: ../fish/guestfish-actions.pod:4238
22368 msgid "vgpvuuids"
22369 msgstr ""
22370
22371 # type: verbatim
22372 #: ../fish/guestfish-actions.pod:4240
22373 #, no-wrap
22374 msgid ""
22375 " vgpvuuids vgname\n"
22376 "\n"
22377 msgstr ""
22378
22379 # type: textblock
22380 #: ../fish/guestfish-actions.pod:4245
22381 msgid ""
22382 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22383 "physical volumes and volume groups."
22384 msgstr ""
22385
22386 # type: textblock
22387 #: ../fish/guestfish-actions.pod:4248
22388 msgid "See also L</vglvuuids>."
22389 msgstr ""
22390
22391 # type: =head2
22392 #: ../fish/guestfish-actions.pod:4250
22393 msgid "vgremove"
22394 msgstr ""
22395
22396 # type: verbatim
22397 #: ../fish/guestfish-actions.pod:4252
22398 #, no-wrap
22399 msgid ""
22400 " vgremove vgname\n"
22401 "\n"
22402 msgstr ""
22403
22404 # type: =head2
22405 #: ../fish/guestfish-actions.pod:4259
22406 msgid "vgrename"
22407 msgstr ""
22408
22409 # type: verbatim
22410 #: ../fish/guestfish-actions.pod:4261
22411 #, no-wrap
22412 msgid ""
22413 " vgrename volgroup newvolgroup\n"
22414 "\n"
22415 msgstr ""
22416
22417 # type: =head2
22418 #: ../fish/guestfish-actions.pod:4265
22419 msgid "vgs"
22420 msgstr ""
22421
22422 # type: verbatim
22423 #: ../fish/guestfish-actions.pod:4267
22424 #, no-wrap
22425 msgid ""
22426 " vgs\n"
22427 "\n"
22428 msgstr ""
22429
22430 # type: textblock
22431 #: ../fish/guestfish-actions.pod:4275
22432 msgid "See also L</vgs-full>."
22433 msgstr ""
22434
22435 # type: =head2
22436 #: ../fish/guestfish-actions.pod:4277
22437 msgid "vgs-full"
22438 msgstr ""
22439
22440 # type: verbatim
22441 #: ../fish/guestfish-actions.pod:4279
22442 #, no-wrap
22443 msgid ""
22444 " vgs-full\n"
22445 "\n"
22446 msgstr ""
22447
22448 # type: =head2
22449 #: ../fish/guestfish-actions.pod:4284
22450 msgid "vgscan"
22451 msgstr ""
22452
22453 # type: verbatim
22454 #: ../fish/guestfish-actions.pod:4286
22455 #, no-wrap
22456 msgid ""
22457 " vgscan\n"
22458 "\n"
22459 msgstr ""
22460
22461 # type: =head2
22462 #: ../fish/guestfish-actions.pod:4291
22463 msgid "vguuid"
22464 msgstr ""
22465
22466 # type: verbatim
22467 #: ../fish/guestfish-actions.pod:4293
22468 #, no-wrap
22469 msgid ""
22470 " vguuid vgname\n"
22471 "\n"
22472 msgstr ""
22473
22474 # type: =head2
22475 #: ../fish/guestfish-actions.pod:4297
22476 msgid "wc-c"
22477 msgstr ""
22478
22479 # type: verbatim
22480 #: ../fish/guestfish-actions.pod:4299
22481 #, no-wrap
22482 msgid ""
22483 " wc-c path\n"
22484 "\n"
22485 msgstr ""
22486
22487 # type: =head2
22488 #: ../fish/guestfish-actions.pod:4304
22489 msgid "wc-l"
22490 msgstr ""
22491
22492 # type: verbatim
22493 #: ../fish/guestfish-actions.pod:4306
22494 #, no-wrap
22495 msgid ""
22496 " wc-l path\n"
22497 "\n"
22498 msgstr ""
22499
22500 # type: =head2
22501 #: ../fish/guestfish-actions.pod:4311
22502 msgid "wc-w"
22503 msgstr ""
22504
22505 # type: verbatim
22506 #: ../fish/guestfish-actions.pod:4313
22507 #, no-wrap
22508 msgid ""
22509 " wc-w path\n"
22510 "\n"
22511 msgstr ""
22512
22513 # type: =head2
22514 #: ../fish/guestfish-actions.pod:4318
22515 msgid "write"
22516 msgstr ""
22517
22518 # type: verbatim
22519 #: ../fish/guestfish-actions.pod:4320
22520 #, no-wrap
22521 msgid ""
22522 " write path content\n"
22523 "\n"
22524 msgstr ""
22525
22526 # type: =head2
22527 #: ../fish/guestfish-actions.pod:4328
22528 msgid "write-file"
22529 msgstr ""
22530
22531 # type: verbatim
22532 #: ../fish/guestfish-actions.pod:4330
22533 #, no-wrap
22534 msgid ""
22535 " write-file path content size\n"
22536 "\n"
22537 msgstr ""
22538
22539 # type: =head2
22540 #: ../fish/guestfish-actions.pod:4353
22541 msgid "zegrep"
22542 msgstr ""
22543
22544 # type: verbatim
22545 #: ../fish/guestfish-actions.pod:4355
22546 #, no-wrap
22547 msgid ""
22548 " zegrep regex path\n"
22549 "\n"
22550 msgstr ""
22551
22552 # type: =head2
22553 #: ../fish/guestfish-actions.pod:4363
22554 msgid "zegrepi"
22555 msgstr ""
22556
22557 # type: verbatim
22558 #: ../fish/guestfish-actions.pod:4365
22559 #, no-wrap
22560 msgid ""
22561 " zegrepi regex path\n"
22562 "\n"
22563 msgstr ""
22564
22565 # type: =head2
22566 #: ../fish/guestfish-actions.pod:4373
22567 msgid "zero"
22568 msgstr ""
22569
22570 # type: verbatim
22571 #: ../fish/guestfish-actions.pod:4375
22572 #, no-wrap
22573 msgid ""
22574 " zero device\n"
22575 "\n"
22576 msgstr ""
22577
22578 # type: textblock
22579 #: ../fish/guestfish-actions.pod:4383
22580 msgid "See also: L</zero-device>, L</scrub-device>."
22581 msgstr ""
22582
22583 # type: =head2
22584 #: ../fish/guestfish-actions.pod:4385
22585 msgid "zero-device"
22586 msgstr ""
22587
22588 # type: verbatim
22589 #: ../fish/guestfish-actions.pod:4387
22590 #, no-wrap
22591 msgid ""
22592 " zero-device device\n"
22593 "\n"
22594 msgstr ""
22595
22596 # type: textblock
22597 #: ../fish/guestfish-actions.pod:4389
22598 msgid ""
22599 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
22600 "which just zeroes the first few blocks of a device."
22601 msgstr ""
22602
22603 # type: =head2
22604 #: ../fish/guestfish-actions.pod:4396
22605 msgid "zerofree"
22606 msgstr ""
22607
22608 # type: verbatim
22609 #: ../fish/guestfish-actions.pod:4398
22610 #, no-wrap
22611 msgid ""
22612 " zerofree device\n"
22613 "\n"
22614 msgstr ""
22615
22616 # type: =head2
22617 #: ../fish/guestfish-actions.pod:4411
22618 msgid "zfgrep"
22619 msgstr ""
22620
22621 # type: verbatim
22622 #: ../fish/guestfish-actions.pod:4413
22623 #, no-wrap
22624 msgid ""
22625 " zfgrep pattern path\n"
22626 "\n"
22627 msgstr ""
22628
22629 # type: =head2
22630 #: ../fish/guestfish-actions.pod:4421
22631 msgid "zfgrepi"
22632 msgstr ""
22633
22634 # type: verbatim
22635 #: ../fish/guestfish-actions.pod:4423
22636 #, no-wrap
22637 msgid ""
22638 " zfgrepi pattern path\n"
22639 "\n"
22640 msgstr ""
22641
22642 # type: =head2
22643 #: ../fish/guestfish-actions.pod:4431
22644 msgid "zfile"
22645 msgstr ""
22646
22647 # type: verbatim
22648 #: ../fish/guestfish-actions.pod:4433
22649 #, no-wrap
22650 msgid ""
22651 " zfile meth path\n"
22652 "\n"
22653 msgstr ""
22654
22655 # type: textblock
22656 #: ../fish/guestfish-actions.pod:4440
22657 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
22658 msgstr ""
22659
22660 # type: =head2
22661 #: ../fish/guestfish-actions.pod:4450
22662 msgid "zgrep"
22663 msgstr ""
22664
22665 # type: verbatim
22666 #: ../fish/guestfish-actions.pod:4452
22667 #, no-wrap
22668 msgid ""
22669 " zgrep regex path\n"
22670 "\n"
22671 msgstr ""
22672
22673 # type: =head2
22674 #: ../fish/guestfish-actions.pod:4460
22675 msgid "zgrepi"
22676 msgstr ""
22677
22678 # type: verbatim
22679 #: ../fish/guestfish-actions.pod:4462
22680 #, no-wrap
22681 msgid ""
22682 " zgrepi regex path\n"
22683 "\n"
22684 msgstr ""
22685
22686 # type: =head2
22687 #: ../fish/guestfish-commands.pod:1
22688 msgid "alloc"
22689 msgstr ""
22690
22691 # type: =head2
22692 #: ../fish/guestfish-commands.pod:3
22693 msgid "allocate"
22694 msgstr ""
22695
22696 # type: verbatim
22697 #: ../fish/guestfish-commands.pod:5
22698 #, no-wrap
22699 msgid ""
22700 " alloc filename size\n"
22701 "\n"
22702 msgstr ""
22703
22704 # type: textblock
22705 #: ../fish/guestfish-commands.pod:7
22706 msgid ""
22707 "This creates an empty (zeroed) file of the given size, and then adds so it "
22708 "can be further examined."
22709 msgstr ""
22710
22711 # type: textblock
22712 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
22713 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
22714 msgstr ""
22715
22716 # type: textblock
22717 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
22718 msgid "Size can be specified using standard suffixes, eg. C<1M>."
22719 msgstr ""
22720
22721 # type: textblock
22722 #: ../fish/guestfish-commands.pod:14
22723 msgid ""
22724 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
22725 "image, see L</PREPARED DISK IMAGES>."
22726 msgstr ""
22727
22728 # type: =head2
22729 #: ../fish/guestfish-commands.pod:17
22730 msgid "copy-in"
22731 msgstr ""
22732
22733 # type: verbatim
22734 #: ../fish/guestfish-commands.pod:19
22735 #, no-wrap
22736 msgid ""
22737 " copy-in local [local ...] /remotedir\n"
22738 "\n"
22739 msgstr ""
22740
22741 # type: textblock
22742 #: ../fish/guestfish-commands.pod:21
22743 msgid ""
22744 "C<copy-in> copies local files or directories recursively into the disk "
22745 "image, placing them in the directory called C</remotedir> (which must "
22746 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
22747 "other commands as necessary."
22748 msgstr ""
22749
22750 # type: textblock
22751 #: ../fish/guestfish-commands.pod:26
22752 msgid ""
22753 "Multiple local files and directories can be specified, but the last "
22754 "parameter must always be a remote directory.  Wildcards cannot be used."
22755 msgstr ""
22756
22757 # type: =head2
22758 #: ../fish/guestfish-commands.pod:30
22759 msgid "copy-out"
22760 msgstr ""
22761
22762 # type: verbatim
22763 #: ../fish/guestfish-commands.pod:32
22764 #, no-wrap
22765 msgid ""
22766 " copy-out remote [remote ...] localdir\n"
22767 "\n"
22768 msgstr ""
22769
22770 # type: textblock
22771 #: ../fish/guestfish-commands.pod:34
22772 msgid ""
22773 "C<copy-out> copies remote files or directories recursively out of the disk "
22774 "image, placing them on the host disk in a local directory called C<localdir> "
22775 "(which must exist).  This guestfish meta-command turns into a sequence of "
22776 "L</download>, L</tar-out> and other commands as necessary."
22777 msgstr ""
22778
22779 # type: textblock
22780 #: ../fish/guestfish-commands.pod:40
22781 msgid ""
22782 "Multiple remote files and directories can be specified, but the last "
22783 "parameter must always be a local directory.  To download to the current "
22784 "directory, use C<.> as in:"
22785 msgstr ""
22786
22787 # type: verbatim
22788 #: ../fish/guestfish-commands.pod:44
22789 #, no-wrap
22790 msgid ""
22791 " copy-out /home .\n"
22792 "\n"
22793 msgstr ""
22794
22795 # type: textblock
22796 #: ../fish/guestfish-commands.pod:46
22797 msgid ""
22798 "Wildcards cannot be used in the ordinary command, but you can use them with "
22799 "the help of L</glob> like this:"
22800 msgstr ""
22801
22802 # type: verbatim
22803 #: ../fish/guestfish-commands.pod:49
22804 #, no-wrap
22805 msgid ""
22806 " glob copy-out /home/* .\n"
22807 "\n"
22808 msgstr ""
22809
22810 # type: =head2
22811 #: ../fish/guestfish-commands.pod:51
22812 msgid "echo"
22813 msgstr ""
22814
22815 # type: verbatim
22816 #: ../fish/guestfish-commands.pod:53
22817 #, no-wrap
22818 msgid ""
22819 " echo [params ...]\n"
22820 "\n"
22821 msgstr ""
22822
22823 # type: textblock
22824 #: ../fish/guestfish-commands.pod:55
22825 msgid "This echos the parameters to the terminal."
22826 msgstr ""
22827
22828 # type: =head2
22829 #: ../fish/guestfish-commands.pod:57
22830 msgid "edit"
22831 msgstr ""
22832
22833 # type: =head2
22834 #: ../fish/guestfish-commands.pod:59
22835 msgid "vi"
22836 msgstr ""
22837
22838 # type: =head2
22839 #: ../fish/guestfish-commands.pod:61
22840 msgid "emacs"
22841 msgstr ""
22842
22843 # type: verbatim
22844 #: ../fish/guestfish-commands.pod:63
22845 #, no-wrap
22846 msgid ""
22847 " edit filename\n"
22848 "\n"
22849 msgstr ""
22850
22851 # type: textblock
22852 #: ../fish/guestfish-commands.pod:65
22853 msgid ""
22854 "This is used to edit a file.  It downloads the file, edits it locally using "
22855 "your editor, then uploads the result."
22856 msgstr ""
22857
22858 # type: textblock
22859 #: ../fish/guestfish-commands.pod:68
22860 msgid ""
22861 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
22862 "or C<emacs> you will get those corresponding editors."
22863 msgstr ""
22864
22865 # type: =head2
22866 #: ../fish/guestfish-commands.pod:72
22867 msgid "glob"
22868 msgstr ""
22869
22870 # type: verbatim
22871 #: ../fish/guestfish-commands.pod:74
22872 #, no-wrap
22873 msgid ""
22874 " glob command args...\n"
22875 "\n"
22876 msgstr ""
22877
22878 # type: textblock
22879 #: ../fish/guestfish-commands.pod:76
22880 msgid ""
22881 "Expand wildcards in any paths in the args list, and run C<command> "
22882 "repeatedly on each matching path."
22883 msgstr ""
22884
22885 # type: textblock
22886 #: ../fish/guestfish-commands.pod:79
22887 msgid "See L</WILDCARDS AND GLOBBING>."
22888 msgstr ""
22889
22890 # type: =head2
22891 #: ../fish/guestfish-commands.pod:81
22892 msgid "hexedit"
22893 msgstr ""
22894
22895 # type: verbatim
22896 #: ../fish/guestfish-commands.pod:83
22897 #, no-wrap
22898 msgid ""
22899 " hexedit <filename|device>\n"
22900 " hexedit <filename|device> <max>\n"
22901 " hexedit <filename|device> <start> <max>\n"
22902 "\n"
22903 msgstr ""
22904
22905 # type: textblock
22906 #: ../fish/guestfish-commands.pod:87
22907 msgid ""
22908 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
22909 "device."
22910 msgstr ""
22911
22912 # type: textblock
22913 #: ../fish/guestfish-commands.pod:90
22914 msgid ""
22915 "This command works by downloading potentially the whole file or device, "
22916 "editing it locally, then uploading it.  If the file or device is large, you "
22917 "have to specify which part you wish to edit by using C<max> and/or C<start> "
22918 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
22919 "usual modifiers allowed such as C<1M> (1 megabyte)."
22920 msgstr ""
22921
22922 # type: textblock
22923 #: ../fish/guestfish-commands.pod:97
22924 msgid "For example to edit the first few sectors of a disk you might do:"
22925 msgstr ""
22926
22927 # type: verbatim
22928 #: ../fish/guestfish-commands.pod:100
22929 #, no-wrap
22930 msgid ""
22931 " hexedit /dev/sda 1M\n"
22932 "\n"
22933 msgstr ""
22934
22935 # type: textblock
22936 #: ../fish/guestfish-commands.pod:102
22937 msgid ""
22938 "which would allow you to edit anywhere within the first megabyte of the "
22939 "disk."
22940 msgstr ""
22941
22942 # type: textblock
22943 #: ../fish/guestfish-commands.pod:105
22944 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
22945 msgstr ""
22946
22947 # type: verbatim
22948 #: ../fish/guestfish-commands.pod:107
22949 #, no-wrap
22950 msgid ""
22951 " hexedit /dev/sda1 0x400 0x400\n"
22952 "\n"
22953 msgstr ""
22954
22955 # type: textblock
22956 #: ../fish/guestfish-commands.pod:109
22957 msgid "(assuming the superblock is in the standard location)."
22958 msgstr ""
22959
22960 # type: textblock
22961 #: ../fish/guestfish-commands.pod:111
22962 msgid ""
22963 "This command requires the external L<hexedit(1)> program.  You can specify "
22964 "another program to use by setting the C<HEXEDITOR> environment variable."
22965 msgstr ""
22966
22967 # type: textblock
22968 #: ../fish/guestfish-commands.pod:115
22969 msgid "See also L</hexdump>."
22970 msgstr ""
22971
22972 # type: =head2
22973 #: ../fish/guestfish-commands.pod:117
22974 msgid "lcd"
22975 msgstr ""
22976
22977 # type: verbatim
22978 #: ../fish/guestfish-commands.pod:119
22979 #, no-wrap
22980 msgid ""
22981 " lcd directory\n"
22982 "\n"
22983 msgstr ""
22984
22985 # type: textblock
22986 #: ../fish/guestfish-commands.pod:121
22987 msgid "Change the local directory, ie. the current directory of guestfish itself."
22988 msgstr ""
22989
22990 # type: textblock
22991 #: ../fish/guestfish-commands.pod:124
22992 msgid "Note that C<!cd> won't do what you might expect."
22993 msgstr ""
22994
22995 # type: =head2
22996 #: ../fish/guestfish-commands.pod:126
22997 msgid "man"
22998 msgstr ""
22999
23000 # type: =head2
23001 #: ../fish/guestfish-commands.pod:128
23002 msgid "manual"
23003 msgstr ""
23004
23005 # type: verbatim
23006 #: ../fish/guestfish-commands.pod:130
23007 #, no-wrap
23008 msgid ""
23009 "  man\n"
23010 "\n"
23011 msgstr ""
23012
23013 # type: textblock
23014 #: ../fish/guestfish-commands.pod:132
23015 msgid "Opens the manual page for guestfish."
23016 msgstr ""
23017
23018 # type: =head2
23019 #: ../fish/guestfish-commands.pod:134
23020 msgid "more"
23021 msgstr ""
23022
23023 # type: =head2
23024 #: ../fish/guestfish-commands.pod:136
23025 msgid "less"
23026 msgstr ""
23027
23028 # type: verbatim
23029 #: ../fish/guestfish-commands.pod:138
23030 #, no-wrap
23031 msgid ""
23032 " more filename\n"
23033 "\n"
23034 msgstr ""
23035
23036 # type: verbatim
23037 #: ../fish/guestfish-commands.pod:140
23038 #, no-wrap
23039 msgid ""
23040 " less filename\n"
23041 "\n"
23042 msgstr ""
23043
23044 # type: textblock
23045 #: ../fish/guestfish-commands.pod:142
23046 msgid "This is used to view a file."
23047 msgstr ""
23048
23049 # type: textblock
23050 #: ../fish/guestfish-commands.pod:144
23051 msgid ""
23052 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23053 "C<less> you will get the C<less> command specifically."
23054 msgstr ""
23055
23056 # type: =head2
23057 #: ../fish/guestfish-commands.pod:147
23058 msgid "reopen"
23059 msgstr ""
23060
23061 # type: verbatim
23062 #: ../fish/guestfish-commands.pod:149
23063 #, no-wrap
23064 msgid ""
23065 "  reopen\n"
23066 "\n"
23067 msgstr ""
23068
23069 # type: textblock
23070 #: ../fish/guestfish-commands.pod:151
23071 msgid ""
23072 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23073 "normally, because the handle is closed properly when guestfish exits.  "
23074 "However this is occasionally useful for testing."
23075 msgstr ""
23076
23077 # type: =head2
23078 #: ../fish/guestfish-commands.pod:155
23079 msgid "sparse"
23080 msgstr ""
23081
23082 # type: verbatim
23083 #: ../fish/guestfish-commands.pod:157
23084 #, no-wrap
23085 msgid ""
23086 " sparse filename size\n"
23087 "\n"
23088 msgstr ""
23089
23090 # type: textblock
23091 #: ../fish/guestfish-commands.pod:159
23092 msgid ""
23093 "This creates an empty sparse file of the given size, and then adds so it can "
23094 "be further examined."
23095 msgstr ""
23096
23097 # type: textblock
23098 #: ../fish/guestfish-commands.pod:162
23099 msgid ""
23100 "In all respects it works the same as the L</alloc> command, except that the "
23101 "image file is allocated sparsely, which means that disk blocks are not "
23102 "assigned to the file until they are needed.  Sparse disk files only use "
23103 "space when written to, but they are slower and there is a danger you could "
23104 "run out of real disk space during a write operation."
23105 msgstr ""
23106
23107 # type: =head2
23108 #: ../fish/guestfish-commands.pod:172
23109 msgid "supported"
23110 msgstr ""
23111
23112 # type: verbatim
23113 #: ../fish/guestfish-commands.pod:174
23114 #, no-wrap
23115 msgid ""
23116 " supported\n"
23117 "\n"
23118 msgstr ""
23119
23120 # type: textblock
23121 #: ../fish/guestfish-commands.pod:176
23122 msgid ""
23123 "This command returns a list of the optional groups known to the daemon, and "
23124 "indicates which ones are supported by this build of the libguestfs "
23125 "appliance."
23126 msgstr ""
23127
23128 # type: textblock
23129 #: ../fish/guestfish-commands.pod:180
23130 msgid "See also L<guestfs(3)/AVAILABILITY>."
23131 msgstr ""
23132
23133 # type: =head2
23134 #: ../fish/guestfish-commands.pod:182
23135 msgid "time"
23136 msgstr ""
23137
23138 # type: verbatim
23139 #: ../fish/guestfish-commands.pod:184
23140 #, no-wrap
23141 msgid ""
23142 " time command args...\n"
23143 "\n"
23144 msgstr ""
23145
23146 # type: textblock
23147 #: ../fish/guestfish-commands.pod:186
23148 msgid ""
23149 "Run the command as usual, but print the elapsed time afterwards.  This can "
23150 "be useful for benchmarking operations."
23151 msgstr ""
23152
23153 # type: textblock
23154 #: ../test-tool/libguestfs-test-tool.pod:5
23155 msgid "libguestfs-test-tool - End user tests for libguestfs"
23156 msgstr ""
23157
23158 # type: verbatim
23159 #: ../test-tool/libguestfs-test-tool.pod:9
23160 #, no-wrap
23161 msgid ""
23162 " libguestfs-test-tool [--options]\n"
23163 "\n"
23164 msgstr ""
23165
23166 # type: textblock
23167 #: ../test-tool/libguestfs-test-tool.pod:13
23168 msgid ""
23169 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23170 "and developers, to allow them to check basic libguestfs functionality is "
23171 "working.  This is needed because libguestfs occasionally breaks for reasons "
23172 "beyond our control: usually because of changes in the underlying qemu or "
23173 "kernel packages, or the host environment."
23174 msgstr ""
23175
23176 # type: textblock
23177 #: ../test-tool/libguestfs-test-tool.pod:20
23178 msgid "If you suspect a problem in libguestfs, then just run:"
23179 msgstr ""
23180
23181 # type: verbatim
23182 #: ../test-tool/libguestfs-test-tool.pod:22
23183 #, no-wrap
23184 msgid ""
23185 " libguestfs-test-tool\n"
23186 "\n"
23187 msgstr ""
23188
23189 # type: textblock
23190 #: ../test-tool/libguestfs-test-tool.pod:24
23191 msgid "It will print lots of diagnostic messages."
23192 msgstr ""
23193
23194 # type: textblock
23195 #: ../test-tool/libguestfs-test-tool.pod:26
23196 msgid "If it runs to completion successfully, you will see this near the end:"
23197 msgstr ""
23198
23199 # type: verbatim
23200 #: ../test-tool/libguestfs-test-tool.pod:28
23201 #, no-wrap
23202 msgid ""
23203 " ===== TEST FINISHED OK =====\n"
23204 "\n"
23205 msgstr ""
23206
23207 # type: textblock
23208 #: ../test-tool/libguestfs-test-tool.pod:30
23209 msgid "and the test tool will exit with code 0."
23210 msgstr ""
23211
23212 # type: textblock
23213 #: ../test-tool/libguestfs-test-tool.pod:32
23214 msgid ""
23215 "If it fails (and/or exits with non-zero error code), please paste the "
23216 "B<complete, unedited> output of the test tool into a bug report.  More "
23217 "information about reporting bugs can be found on the "
23218 "L<http://libguestfs.org/> website."
23219 msgstr ""
23220
23221 # type: =item
23222 #: ../test-tool/libguestfs-test-tool.pod:41
23223 msgid "I<--help>"
23224 msgstr ""
23225
23226 # type: textblock
23227 #: ../test-tool/libguestfs-test-tool.pod:43
23228 msgid "Display short usage information and exit."
23229 msgstr ""
23230
23231 # type: =item
23232 #: ../test-tool/libguestfs-test-tool.pod:45
23233 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23234 msgstr ""
23235
23236 # type: textblock
23237 #: ../test-tool/libguestfs-test-tool.pod:47
23238 msgid ""
23239 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23240 "normally look in the C<$libexec> directory that was configured when the tool "
23241 "was built."
23242 msgstr ""
23243
23244 # type: =item
23245 #: ../test-tool/libguestfs-test-tool.pod:51
23246 msgid "I<--qemu qemu_binary>"
23247 msgstr ""
23248
23249 # type: textblock
23250 #: ../test-tool/libguestfs-test-tool.pod:53
23251 msgid ""
23252 "If you have downloaded another qemu binary, point this option at the full "
23253 "path of the binary to try it."
23254 msgstr ""
23255
23256 # type: =item
23257 #: ../test-tool/libguestfs-test-tool.pod:56
23258 msgid "I<--qemudir qemu_source_dir>"
23259 msgstr ""
23260
23261 # type: textblock
23262 #: ../test-tool/libguestfs-test-tool.pod:58
23263 msgid ""
23264 "If you have compiled qemu from source, point this option at the source "
23265 "directory to try it."
23266 msgstr ""
23267
23268 # type: =item
23269 #: ../test-tool/libguestfs-test-tool.pod:61
23270 msgid "I<--timeout N>"
23271 msgstr ""
23272
23273 # type: textblock
23274 #: ../test-tool/libguestfs-test-tool.pod:63
23275 msgid ""
23276 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23277 "does not usually need to be adjusted unless your machine is very slow."
23278 msgstr ""
23279
23280 # type: =head1
23281 #: ../test-tool/libguestfs-test-tool.pod:69
23282 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23283 msgstr ""
23284
23285 # type: textblock
23286 #: ../test-tool/libguestfs-test-tool.pod:71
23287 msgid ""
23288 "If you have compiled another version of qemu from source and would like to "
23289 "try that, then you can use the I<--qemudir> option to point to the qemu "
23290 "source directory."
23291 msgstr ""
23292
23293 # type: textblock
23294 #: ../test-tool/libguestfs-test-tool.pod:75
23295 msgid ""
23296 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23297 "option to point to the binary."
23298 msgstr ""
23299
23300 # type: textblock
23301 #: ../test-tool/libguestfs-test-tool.pod:78
23302 msgid ""
23303 "When using an alternate qemu with libguestfs, usually you would need to "
23304 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
23305 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
23306 "when you use either of the I<--qemudir> or I<--qemu> options."
23307 msgstr ""
23308
23309 # type: textblock
23310 #: ../test-tool/libguestfs-test-tool.pod:85
23311 msgid ""
23312 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23313 "I<1> if there was an error."
23314 msgstr ""
23315
23316 # type: =item
23317 #: ../test-tool/libguestfs-test-tool.pod:92
23318 msgid "/usr/libexec/libguestfs-test-tool-helper"
23319 msgstr ""
23320
23321 # type: textblock
23322 #: ../test-tool/libguestfs-test-tool.pod:94
23323 msgid ""
23324 "This helper program is run inside the appliance and provides additional "
23325 "tests."
23326 msgstr ""
23327
23328 # type: =item
23329 #: ../test-tool/libguestfs-test-tool.pod:97
23330 msgid "/usr/bin/mkisofs"
23331 msgstr ""
23332
23333 # type: textblock
23334 #: ../test-tool/libguestfs-test-tool.pod:99
23335 msgid ""
23336 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23337 "which is used as part of the tests."
23338 msgstr ""
23339
23340 # type: textblock
23341 #: ../test-tool/libguestfs-test-tool.pod:106
23342 msgid ""
23343 "For the full list of environment variables which may affect libguestfs, "
23344 "please see the L<guestfs(3)> manual page."
23345 msgstr ""
23346
23347 # type: textblock
23348 #: ../test-tool/libguestfs-test-tool.pod:111
23349 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23350 msgstr ""
23351
23352 # type: textblock
23353 #: ../test-tool/libguestfs-test-tool.pod:121
23354 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23355 msgstr ""
23356
23357 # type: textblock
23358 #: ../fuse/guestmount.pod:5
23359 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23360 msgstr ""
23361
23362 # type: verbatim
23363 #: ../fuse/guestmount.pod:9
23364 #, no-wrap
23365 msgid ""
23366 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23367 "\n"
23368 msgstr ""
23369
23370 # type: verbatim
23371 #: ../fuse/guestmount.pod:11
23372 #, no-wrap
23373 msgid ""
23374 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23375 "\n"
23376 msgstr ""
23377
23378 # type: verbatim
23379 #: ../fuse/guestmount.pod:13
23380 #, no-wrap
23381 msgid ""
23382 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23383 "\n"
23384 msgstr ""
23385
23386 # type: textblock
23387 #: ../fuse/guestmount.pod:17
23388 msgid ""
23389 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23390 "machines.  If you do this, you risk disk corruption in the VM."
23391 msgstr ""
23392
23393 # type: textblock
23394 #: ../fuse/guestmount.pod:22
23395 msgid ""
23396 "The guestmount program can be used to mount virtual machine filesystems and "
23397 "other disk images on the host.  It uses libguestfs for access to the guest "
23398 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23399 "a mountable device."
23400 msgstr ""
23401
23402 # type: textblock
23403 #: ../fuse/guestmount.pod:27
23404 msgid ""
23405 "Along with other options, you have to give at least one device (I<-a> "
23406 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23407 "option) or use the I<-i> inspection option.  How this works is better "
23408 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
23409 "below."
23410 msgstr ""
23411
23412 # type: textblock
23413 #: ../fuse/guestmount.pod:33
23414 msgid ""
23415 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23416 "by you, and the filesystem will not be visible to any other users unless you "
23417 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23418 "the filesystem, use the C<fusermount -u> command."
23419 msgstr ""
23420
23421 # type: textblock
23422 #: ../fuse/guestmount.pod:41
23423 msgid ""
23424 "For a typical Windows guest which has its main filesystem on the first "
23425 "partition:"
23426 msgstr ""
23427
23428 # type: verbatim
23429 #: ../fuse/guestmount.pod:44
23430 #, no-wrap
23431 msgid ""
23432 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23433 "\n"
23434 msgstr ""
23435
23436 # type: textblock
23437 #: ../fuse/guestmount.pod:46
23438 msgid ""
23439 "For a typical Linux guest which has a /boot filesystem on the first "
23440 "partition, and the root filesystem on a logical volume:"
23441 msgstr ""
23442
23443 # type: verbatim
23444 #: ../fuse/guestmount.pod:49
23445 #, no-wrap
23446 msgid ""
23447 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23448 "\n"
23449 msgstr ""
23450
23451 # type: textblock
23452 #: ../fuse/guestmount.pod:51
23453 msgid "To get libguestfs to detect guest mountpoints for you:"
23454 msgstr ""
23455
23456 # type: verbatim
23457 #: ../fuse/guestmount.pod:53
23458 #, no-wrap
23459 msgid ""
23460 " guestmount -a guest.img -i --ro /mnt\n"
23461 "\n"
23462 msgstr ""
23463
23464 # type: textblock
23465 #: ../fuse/guestmount.pod:55
23466 msgid "For a libvirt guest called \"Guest\" you could do:"
23467 msgstr ""
23468
23469 # type: verbatim
23470 #: ../fuse/guestmount.pod:57
23471 #, no-wrap
23472 msgid ""
23473 " guestmount -d Guest -i --ro /mnt\n"
23474 "\n"
23475 msgstr ""
23476
23477 # type: textblock
23478 #: ../fuse/guestmount.pod:59
23479 msgid ""
23480 "If you don't know what filesystems are contained in a guest or disk image, "
23481 "use L<virt-list-filesystems(1)> first:"
23482 msgstr ""
23483
23484 # type: verbatim
23485 #: ../fuse/guestmount.pod:62
23486 #, no-wrap
23487 msgid ""
23488 " virt-list-filesystems MyGuest\n"
23489 "\n"
23490 msgstr ""
23491
23492 # type: textblock
23493 #: ../fuse/guestmount.pod:64
23494 msgid ""
23495 "If you want to trace the libguestfs calls but without excessive debugging "
23496 "information, we recommend:"
23497 msgstr ""
23498
23499 # type: verbatim
23500 #: ../fuse/guestmount.pod:67
23501 #, no-wrap
23502 msgid ""
23503 " guestmount [...] --trace /mnt\n"
23504 "\n"
23505 msgstr ""
23506
23507 # type: textblock
23508 #: ../fuse/guestmount.pod:69
23509 msgid "If you want to debug the program, we recommend:"
23510 msgstr ""
23511
23512 # type: verbatim
23513 #: ../fuse/guestmount.pod:71
23514 #, no-wrap
23515 msgid ""
23516 " guestmount [...] --trace --verbose /mnt\n"
23517 "\n"
23518 msgstr ""
23519
23520 # type: textblock
23521 #: ../fuse/guestmount.pod:79
23522 msgid "Add a block device or virtual machine image."
23523 msgstr ""
23524
23525 # type: =item
23526 #: ../fuse/guestmount.pod:96
23527 msgid "B<--dir-cache-timeout N>"
23528 msgstr ""
23529
23530 # type: textblock
23531 #: ../fuse/guestmount.pod:98
23532 msgid ""
23533 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23534 "seconds.  The readdir cache [actually, there are several semi-independent "
23535 "caches] is populated after a readdir(2) call with the stat and extended "
23536 "attributes of the files in the directory, in anticipation that they will be "
23537 "requested soon after."
23538 msgstr ""
23539
23540 # type: textblock
23541 #: ../fuse/guestmount.pod:104
23542 msgid ""
23543 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23544 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23545 "requests, only cache existing ones."
23546 msgstr ""
23547
23548 # type: textblock
23549 #: ../fuse/guestmount.pod:115
23550 msgid ""
23551 "If you have untrusted raw-format guest disk images, you should use this "
23552 "option to specify the disk format.  This avoids a possible security problem "
23553 "with malicious guests (CVE-2010-3851).  See also "
23554 "L<guestfs(3)/guestfs_add_drive_opts>."
23555 msgstr ""
23556
23557 # type: =item
23558 #: ../fuse/guestmount.pod:120
23559 msgid "B<--fuse-help>"
23560 msgstr ""
23561
23562 # type: textblock
23563 #: ../fuse/guestmount.pod:122
23564 msgid "Display help on special FUSE options (see I<-o> below)."
23565 msgstr ""
23566
23567 # type: textblock
23568 #: ../fuse/guestmount.pod:126
23569 msgid "Display brief help and exit."
23570 msgstr ""
23571
23572 # type: =item
23573 #: ../fuse/guestmount.pod:134
23574 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
23575 msgstr ""
23576
23577 # type: textblock
23578 #: ../fuse/guestmount.pod:136
23579 msgid ""
23580 "Mount the named partition or logical volume on the given mountpoint B<in the "
23581 "guest> (this has nothing to do with mountpoints in the host)."
23582 msgstr ""
23583
23584 # type: textblock
23585 #: ../fuse/guestmount.pod:139
23586 msgid ""
23587 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23588 "something on C</>."
23589 msgstr ""
23590
23591 # type: textblock
23592 #: ../fuse/guestmount.pod:144
23593 msgid ""
23594 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23595 "unmounted.  If you specify this option, then we don't attempt to sync the "
23596 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23597 msgstr ""
23598
23599 # type: =item
23600 #: ../fuse/guestmount.pod:149
23601 msgid "B<-o option> | B<--option option>"
23602 msgstr ""
23603
23604 # type: textblock
23605 #: ../fuse/guestmount.pod:151
23606 msgid "Pass extra options to FUSE."
23607 msgstr ""
23608
23609 # type: textblock
23610 #: ../fuse/guestmount.pod:153
23611 msgid ""
23612 "To get a list of all the extra options supported by FUSE, use the command "
23613 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
23614 "of them are a good idea."
23615 msgstr ""
23616
23617 # type: verbatim
23618 #: ../fuse/guestmount.pod:157
23619 #, no-wrap
23620 msgid ""
23621 " guestmount --fuse-help\n"
23622 "\n"
23623 msgstr ""
23624
23625 # type: textblock
23626 #: ../fuse/guestmount.pod:159
23627 msgid "Some potentially useful FUSE options:"
23628 msgstr ""
23629
23630 # type: =item
23631 #: ../fuse/guestmount.pod:163
23632 msgid "B<-o allow_other>"
23633 msgstr ""
23634
23635 # type: textblock
23636 #: ../fuse/guestmount.pod:165
23637 msgid "Allow other users to see the filesystem."
23638 msgstr ""
23639
23640 # type: =item
23641 #: ../fuse/guestmount.pod:167
23642 msgid "B<-o attr_timeout=N>"
23643 msgstr ""
23644
23645 # type: textblock
23646 #: ../fuse/guestmount.pod:169
23647 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23648 msgstr ""
23649
23650 # type: =item
23651 #: ../fuse/guestmount.pod:171
23652 msgid "B<-o kernel_cache>"
23653 msgstr ""
23654
23655 # type: textblock
23656 #: ../fuse/guestmount.pod:173
23657 msgid ""
23658 "Allow the kernel to cache files (reduces the number of reads that have to go "
23659 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
23660 "afford the extra memory usage."
23661 msgstr ""
23662
23663 # type: =item
23664 #: ../fuse/guestmount.pod:177
23665 msgid "B<-o uid=N> B<-o gid=N>"
23666 msgstr ""
23667
23668 # type: textblock
23669 #: ../fuse/guestmount.pod:179
23670 msgid ""
23671 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23672 "the chosen values."
23673 msgstr ""
23674
23675 # type: textblock
23676 #: ../fuse/guestmount.pod:186
23677 msgid ""
23678 "Add devices and mount everything read-only.  Also disallow writes and make "
23679 "the disk appear read-only to FUSE."
23680 msgstr ""
23681
23682 # type: textblock
23683 #: ../fuse/guestmount.pod:189
23684 msgid ""
23685 "This is highly recommended if you are not going to edit the guest disk.  If "
23686 "the guest is running and this option is I<not> supplied, then there is a "
23687 "strong risk of disk corruption in the guest.  We try to prevent this from "
23688 "happening, but it is not always possible."
23689 msgstr ""
23690
23691 # type: textblock
23692 #: ../fuse/guestmount.pod:196
23693 msgid "Enable SELinux support for the guest."
23694 msgstr ""
23695
23696 # type: textblock
23697 #: ../fuse/guestmount.pod:200
23698 msgid "Enable verbose messages from underlying libguestfs."
23699 msgstr ""
23700
23701 # type: textblock
23702 #: ../fuse/guestmount.pod:204
23703 msgid "Display the program version and exit."
23704 msgstr ""
23705
23706 # type: =item
23707 #: ../fuse/guestmount.pod:206
23708 msgid "B<-x> | B<--trace>"
23709 msgstr ""
23710
23711 # type: textblock
23712 #: ../fuse/guestmount.pod:208
23713 msgid "Trace libguestfs calls."
23714 msgstr ""
23715
23716 # type: textblock
23717 #: ../fuse/guestmount.pod:210
23718 msgid "This also stops the daemon from forking into the background."
23719 msgstr ""
23720
23721 # type: textblock
23722 #: ../fuse/guestmount.pod:216
23723 msgid ""
23724 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23725 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
23726 "L<http://fuse.sf.net/>."
23727 msgstr ""
23728
23729 # type: textblock
23730 #: ../inspector/virt-inspector.pl:35
23731 msgid ""
23732 "virt-inspector - Display operating system version and other information "
23733 "about a virtual machine"
23734 msgstr ""
23735
23736 # type: verbatim
23737 #: ../inspector/virt-inspector.pl:39
23738 #, no-wrap
23739 msgid ""
23740 " virt-inspector [--connect URI] domname\n"
23741 "\n"
23742 msgstr ""
23743
23744 # type: verbatim
23745 #: ../inspector/virt-inspector.pl:41
23746 #, no-wrap
23747 msgid ""
23748 " virt-inspector guest.img [guest.img ...]\n"
23749 "\n"
23750 msgstr ""
23751
23752 # type: textblock
23753 #: ../inspector/virt-inspector.pl:45
23754 msgid ""
23755 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23756 "determine the version of the operating system and other information about "
23757 "the virtual machine."
23758 msgstr ""
23759
23760 # type: textblock
23761 #: ../inspector/virt-inspector.pl:49
23762 msgid "Virt-inspector produces XML output for feeding into other programs."
23763 msgstr ""
23764
23765 # type: textblock
23766 #: ../inspector/virt-inspector.pl:51
23767 msgid ""
23768 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
23769 "libvirt domain (see: C<virsh list --all>)."
23770 msgstr ""
23771
23772 # type: textblock
23773 #: ../inspector/virt-inspector.pl:54
23774 msgid ""
23775 "You can also run virt-inspector directly on disk images from a single "
23776 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
23777 "has several block devices, in which case you should list them one after "
23778 "another, with the first corresponding to the guest's C</dev/sda>, the second "
23779 "to the guest's C</dev/sdb> and so on."
23780 msgstr ""
23781
23782 # type: textblock
23783 #: ../inspector/virt-inspector.pl:60
23784 msgid ""
23785 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23786 "inspect several virtual machines, you have to run virt-inspector several "
23787 "times (for example, from a shell script for-loop)."
23788 msgstr ""
23789
23790 # type: textblock
23791 #: ../inspector/virt-inspector.pl:65
23792 msgid ""
23793 "Because virt-inspector needs direct access to guest images, it won't "
23794 "normally work over remote libvirt connections."
23795 msgstr ""
23796
23797 # type: textblock
23798 #: ../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
23799 msgid "Display brief help."
23800 msgstr ""
23801
23802 # type: =item
23803 #: ../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
23804 msgid "B<--version>"
23805 msgstr ""
23806
23807 # type: textblock
23808 #: ../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
23809 msgid "Display version number and exit."
23810 msgstr ""
23811
23812 # type: =item
23813 #: ../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
23814 msgid "B<--connect URI> | B<-c URI>"
23815 msgstr ""
23816
23817 # type: textblock
23818 #: ../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
23819 msgid ""
23820 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
23821 "to the default libvirt hypervisor."
23822 msgstr ""
23823
23824 # type: textblock
23825 #: ../inspector/virt-inspector.pl:97
23826 msgid ""
23827 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23828 "you specify guest block devices directly, then libvirt is not used at all."
23829 msgstr ""
23830
23831 # type: =item
23832 #: ../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
23833 msgid "B<--format> raw"
23834 msgstr ""
23835
23836 # type: textblock
23837 #: ../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
23838 msgid ""
23839 "Specify the format of disk images given on the command line.  If this is "
23840 "omitted then the format is autodetected from the content of the disk image."
23841 msgstr ""
23842
23843 # type: textblock
23844 #: ../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
23845 msgid ""
23846 "If disk images are requested from libvirt, then this program asks libvirt "
23847 "for this information.  In this case, the value of the format parameter is "
23848 "ignored."
23849 msgstr ""
23850
23851 # type: textblock
23852 #: ../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
23853 msgid ""
23854 "If working with untrusted raw-format guest disk images, you should ensure "
23855 "the format is always specified."
23856 msgstr ""
23857
23858 # type: =head1
23859 #: ../inspector/virt-inspector.pl:149
23860 msgid "XML FORMAT"
23861 msgstr ""
23862
23863 # type: textblock
23864 #: ../inspector/virt-inspector.pl:151
23865 msgid ""
23866 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
23867 "supplied with libguestfs.  This section is just an overview."
23868 msgstr ""
23869
23870 # type: textblock
23871 #: ../inspector/virt-inspector.pl:154
23872 msgid ""
23873 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23874 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
23875 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23876 "which is vanishingly rare in real world VMs."
23877 msgstr ""
23878
23879 # type: =head2
23880 #: ../inspector/virt-inspector.pl:159
23881 msgid "E<lt>operatingsystemE<gt>"
23882 msgstr ""
23883
23884 # type: textblock
23885 #: ../inspector/virt-inspector.pl:161
23886 msgid ""
23887 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23888 "describe the operating system, its architecture, the descriptive \"product "
23889 "name\" string, the type of OS and so on, as in this example:"
23890 msgstr ""
23891
23892 # type: verbatim
23893 #: ../inspector/virt-inspector.pl:165
23894 #, no-wrap
23895 msgid ""
23896 " <operatingsystems>\n"
23897 "   <operatingsystem>\n"
23898 "     <root>/dev/sda2</root>\n"
23899 "     <name>windows</name>\n"
23900 "     <arch>i386</arch>\n"
23901 "     <distro>windows</distro>\n"
23902 "     <product_name>Windows 7 Enterprise</product_name>\n"
23903 "     <major_version>6</major_version>\n"
23904 "     <minor_version>1</minor_version>\n"
23905 "     <windows_systemroot>/Windows</windows_systemroot>\n"
23906 "\n"
23907 msgstr ""
23908
23909 # type: textblock
23910 #: ../inspector/virt-inspector.pl:176
23911 msgid ""
23912 "These fields are derived from the libguestfs inspection API, and you can "
23913 "find more details in L<guestfs(3)/INSPECTION>."
23914 msgstr ""
23915
23916 # type: textblock
23917 #: ../inspector/virt-inspector.pl:179
23918 msgid ""
23919 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23920 "of view of libguestfs (block devices may have completely different names "
23921 "inside the VM itself)."
23922 msgstr ""
23923
23924 # type: =head2
23925 #: ../inspector/virt-inspector.pl:240
23926 msgid "E<lt>mountpointsE<gt>"
23927 msgstr ""
23928
23929 # type: textblock
23930 #: ../inspector/virt-inspector.pl:242
23931 msgid ""
23932 "Un*x-like guests typically have multiple filesystems which are mounted at "
23933 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23934 "element which looks like this:"
23935 msgstr ""
23936
23937 # type: verbatim
23938 #: ../inspector/virt-inspector.pl:246
23939 #, no-wrap
23940 msgid ""
23941 " <operatingsystems>\n"
23942 "   <operatingsystem>\n"
23943 "     ...\n"
23944 "     <mountpoints>\n"
23945 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23946 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23947 "     </mountpoints>\n"
23948 "\n"
23949 msgstr ""
23950
23951 # type: textblock
23952 #: ../inspector/virt-inspector.pl:254
23953 msgid ""
23954 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23955 "and may have completely different names inside the guest.  Only mountable "
23956 "filesystems appear in this list, not things like swap devices."
23957 msgstr ""
23958
23959 # type: =head2
23960 #: ../inspector/virt-inspector.pl:276
23961 msgid "E<lt>filesystemsE<gt>"
23962 msgstr ""
23963
23964 # type: textblock
23965 #: ../inspector/virt-inspector.pl:278
23966 msgid ""
23967 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23968 "filesystems belonging to the guest, including swap and empty partitions.  "
23969 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23970 "this OS or shared by this OS and other OSes)."
23971 msgstr ""
23972
23973 # type: textblock
23974 #: ../inspector/virt-inspector.pl:283
23975 msgid "You might see something like this:"
23976 msgstr ""
23977
23978 # type: verbatim
23979 #: ../inspector/virt-inspector.pl:285
23980 #, no-wrap
23981 msgid ""
23982 " <operatingsystems>\n"
23983 "   <operatingsystem>\n"
23984 "     ...\n"
23985 "     <filesystems>\n"
23986 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23987 "         <type>ext4</type>\n"
23988 "         <label>Fedora-13-x86_64</label>\n"
23989 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23990 "       </filesystem>\n"
23991 "\n"
23992 msgstr ""
23993
23994 # type: textblock
23995 #: ../inspector/virt-inspector.pl:295
23996 msgid ""
23997 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23998 "the label, and the UUID."
23999 msgstr ""
24000
24001 # type: =head2
24002 #: ../inspector/virt-inspector.pl:337
24003 msgid "E<lt>applicationsE<gt>"
24004 msgstr ""
24005
24006 # type: textblock
24007 #: ../inspector/virt-inspector.pl:339
24008 msgid ""
24009 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24010 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24011 "machine.  At the moment we are only able to list RPMs and Debian packages "
24012 "installed, but in future we will support other Linux distros and Windows."
24013 msgstr ""
24014
24015 # type: textblock
24016 #: ../inspector/virt-inspector.pl:345
24017 msgid ""
24018 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
24019 "Typical values would be C<rpm> and C<deb>."
24020 msgstr ""
24021
24022 # type: textblock
24023 #: ../inspector/virt-inspector.pl:348
24024 msgid ""
24025 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
24026 "Typical values include C<yum>, C<up2date> and C<apt>"
24027 msgstr ""
24028
24029 # type: textblock
24030 #: ../inspector/virt-inspector.pl:351
24031 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24032 msgstr ""
24033
24034 # type: verbatim
24035 #: ../inspector/virt-inspector.pl:354
24036 #, no-wrap
24037 msgid ""
24038 " <operatingsystems>\n"
24039 "   <operatingsystem>\n"
24040 "     ...\n"
24041 "     <applications>\n"
24042 "       <application>\n"
24043 "         <name>coreutils</name>\n"
24044 "         <version>8.5</version>\n"
24045 "         <release>1</release>\n"
24046 "       </application>\n"
24047 "\n"
24048 msgstr ""
24049
24050 # type: textblock
24051 #: ../inspector/virt-inspector.pl:364
24052 msgid ""
24053 "(The version and release fields may not be available for some package "
24054 "types)."
24055 msgstr ""
24056
24057 # type: =head1
24058 #: ../inspector/virt-inspector.pl:544
24059 msgid "USING XPATH"
24060 msgstr ""
24061
24062 # type: textblock
24063 #: ../inspector/virt-inspector.pl:546
24064 msgid ""
24065 "You can use the XPath query language, and/or the xpath tool, in order to "
24066 "select parts of the XML."
24067 msgstr ""
24068
24069 # type: verbatim
24070 #: ../inspector/virt-inspector.pl:551
24071 #, no-wrap
24072 msgid ""
24073 " $ virt-inspector Guest | xpath //filesystems\n"
24074 " Found 1 nodes:\n"
24075 " -- NODE --\n"
24076 " <filesystems>\n"
24077 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24078 "        <type>ext4</type>\n"
24079 " [etc]\n"
24080 "\n"
24081 msgstr ""
24082
24083 # type: verbatim
24084 #: ../inspector/virt-inspector.pl:559
24085 #, no-wrap
24086 msgid ""
24087 " $ virt-inspector Guest | \\\n"
24088 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24089 " Query didn't return a nodeset. Value: ext4\n"
24090 "\n"
24091 msgstr ""
24092
24093 # type: =head1
24094 #: ../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
24095 msgid "SHELL QUOTING"
24096 msgstr ""
24097
24098 # type: textblock
24099 #: ../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
24100 msgid ""
24101 "Libvirt guest names can contain arbitrary characters, some of which have "
24102 "meaning to the shell such as C<#> and space.  You may need to quote or "
24103 "escape these characters on the command line.  See the shell manual page "
24104 "L<sh(1)> for details."
24105 msgstr ""
24106
24107 # type: textblock
24108 #: ../inspector/virt-inspector.pl:572
24109 msgid ""
24110 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24111 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
24112 msgstr ""
24113
24114 # type: textblock
24115 #: ../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
24116 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24117 msgstr ""
24118
24119 # type: textblock
24120 #: ../inspector/virt-inspector.pl:590
24121 msgid "Matthew Booth L<mbooth@redhat.com>"
24122 msgstr ""
24123
24124 # type: textblock
24125 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
24126 msgid "Copyright (C) 2010 Red Hat Inc."
24127 msgstr ""
24128
24129 # type: textblock
24130 #: ../tools/virt-edit.pl:34
24131 msgid "virt-edit - Edit a file in a virtual machine"
24132 msgstr ""
24133
24134 # type: verbatim
24135 #: ../tools/virt-edit.pl:38
24136 #, no-wrap
24137 msgid ""
24138 " virt-edit [--options] domname file\n"
24139 "\n"
24140 msgstr ""
24141
24142 # type: verbatim
24143 #: ../tools/virt-edit.pl:40
24144 #, no-wrap
24145 msgid ""
24146 " virt-edit [--options] disk.img [disk.img ...] file\n"
24147 "\n"
24148 msgstr ""
24149
24150 # type: verbatim
24151 #: ../tools/virt-edit.pl:42
24152 #, no-wrap
24153 msgid ""
24154 " virt-edit [domname|disk.img] file -e 'expr'\n"
24155 "\n"
24156 msgstr ""
24157
24158 # type: textblock
24159 #: ../tools/virt-edit.pl:46
24160 msgid ""
24161 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24162 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24163 "doing this, but doesn't catch all cases."
24164 msgstr ""
24165
24166 # type: textblock
24167 #: ../tools/virt-edit.pl:52
24168 msgid ""
24169 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24170 "the named virtual machine (or disk image)."
24171 msgstr ""
24172
24173 # type: textblock
24174 #: ../tools/virt-edit.pl:55
24175 msgid ""
24176 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24177 "you should look at the L<guestfish(1)> tool."
24178 msgstr ""
24179
24180 # type: textblock
24181 #: ../tools/virt-edit.pl:60
24182 msgid "Edit the named files interactively:"
24183 msgstr ""
24184
24185 # type: verbatim
24186 #: ../tools/virt-edit.pl:62
24187 #, no-wrap
24188 msgid ""
24189 " virt-edit mydomain /boot/grub/grub.conf\n"
24190 "\n"
24191 msgstr ""
24192
24193 # type: verbatim
24194 #: ../tools/virt-edit.pl:64
24195 #, no-wrap
24196 msgid ""
24197 " virt-edit mydomain /etc/passwd\n"
24198 "\n"
24199 msgstr ""
24200
24201 # type: textblock
24202 #: ../tools/virt-edit.pl:66
24203 msgid ""
24204 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
24205 "below).  To change the init default level to 5:"
24206 msgstr ""
24207
24208 # type: verbatim
24209 #: ../tools/virt-edit.pl:70
24210 #, no-wrap
24211 msgid ""
24212 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
24213 "\n"
24214 msgstr ""
24215
24216 # type: =item
24217 #: ../tools/virt-edit.pl:96
24218 msgid "B<--backup extension> | B<-b extension>"
24219 msgstr ""
24220
24221 # type: textblock
24222 #: ../tools/virt-edit.pl:98
24223 msgid ""
24224 "Create a backup of the original file I<in the guest disk image>.  The backup "
24225 "has the original filename with C<extension> added."
24226 msgstr ""
24227
24228 # type: textblock
24229 #: ../tools/virt-edit.pl:101
24230 msgid ""
24231 "Usually the first character of C<extension> would be a dot C<.> so you would "
24232 "write:"
24233 msgstr ""
24234
24235 # type: verbatim
24236 #: ../tools/virt-edit.pl:104
24237 #, no-wrap
24238 msgid ""
24239 " virt-edit -b .orig [etc]\n"
24240 "\n"
24241 msgstr ""
24242
24243 # type: textblock
24244 #: ../tools/virt-edit.pl:106
24245 msgid "By default, no backup file is made."
24246 msgstr ""
24247
24248 # type: textblock
24249 #: ../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
24250 msgid ""
24251 "If you specify guest block devices directly, then libvirt is not used at "
24252 "all."
24253 msgstr ""
24254
24255 # type: =item
24256 #: ../tools/virt-edit.pl:141
24257 msgid "B<--expr EXPR> | B<-e EXPR>"
24258 msgstr ""
24259
24260 # type: textblock
24261 #: ../tools/virt-edit.pl:143
24262 msgid ""
24263 "Instead of launching the external editor, non-interactively apply the Perl "
24264 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
24265 "EDITING> below."
24266 msgstr ""
24267
24268 # type: textblock
24269 #: ../tools/virt-edit.pl:147
24270 msgid ""
24271 "Be careful to properly quote the expression to prevent it from being altered "
24272 "by the shell."
24273 msgstr ""
24274
24275 # type: =head1
24276 #: ../tools/virt-edit.pl:268
24277 msgid "NON-INTERACTIVE EDITING"
24278 msgstr ""
24279
24280 # type: textblock
24281 #: ../tools/virt-edit.pl:270
24282 msgid ""
24283 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24284 "administrator can interactively edit the file."
24285 msgstr ""
24286
24287 # type: textblock
24288 #: ../tools/virt-edit.pl:273
24289 msgid ""
24290 "There are two ways also to use C<virt-edit> from scripts in order to make "
24291 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24292 "like this, it's less error-prone to write scripts directly using the "
24293 "libguestfs API and Augeas for configuration file editing.)"
24294 msgstr ""
24295
24296 # type: textblock
24297 #: ../tools/virt-edit.pl:279
24298 msgid ""
24299 "The first method is to temporarily set C<$EDITOR> to any script or program "
24300 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24301 "update C<tmpfile> in place however it likes."
24302 msgstr ""
24303
24304 # type: textblock
24305 #: ../tools/virt-edit.pl:283
24306 msgid ""
24307 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24308 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24309 "instances of C<foo> with C<bar> in a file:"
24310 msgstr ""
24311
24312 # type: verbatim
24313 #: ../tools/virt-edit.pl:287
24314 #, no-wrap
24315 msgid ""
24316 " virt-edit domname filename -e 's/foo/bar/'\n"
24317 "\n"
24318 msgstr ""
24319
24320 # type: textblock
24321 #: ../tools/virt-edit.pl:289
24322 msgid ""
24323 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24324 "For example to delete root's password you could do:"
24325 msgstr ""
24326
24327 # type: verbatim
24328 #: ../tools/virt-edit.pl:292
24329 #, no-wrap
24330 msgid ""
24331 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24332 "\n"
24333 msgstr ""
24334
24335 # type: textblock
24336 #: ../tools/virt-edit.pl:294
24337 msgid ""
24338 "What really happens is that the snippet is evaluated as a Perl expression "
24339 "for each line of the file.  The line, including the final C<\\n>, is passed "
24340 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24341 msgstr ""
24342
24343 # type: textblock
24344 #: ../tools/virt-edit.pl:299
24345 msgid ""
24346 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24347 "C<apache> user account from the password file you can do:"
24348 msgstr ""
24349
24350 # type: verbatim
24351 #: ../tools/virt-edit.pl:302
24352 #, no-wrap
24353 msgid ""
24354 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24355 "\n"
24356 msgstr ""
24357
24358 # type: textblock
24359 #: ../tools/virt-edit.pl:304
24360 msgid ""
24361 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24362 "the end of the file is rather difficult this way since there is no concept "
24363 "of \"last line of the file\" - your expression just doesn't get called "
24364 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24365 "want to do this."
24366 msgstr ""
24367
24368 # type: textblock
24369 #: ../tools/virt-edit.pl:310
24370 msgid ""
24371 "The variable C<$lineno> contains the current line number.  As is "
24372 "traditional, the first line in the file is number C<1>."
24373 msgstr ""
24374
24375 # type: textblock
24376 #: ../tools/virt-edit.pl:313
24377 msgid ""
24378 "The return value from the expression is ignored, but the expression may call "
24379 "C<die> in order to abort the whole program, leaving the original file "
24380 "untouched."
24381 msgstr ""
24382
24383 # type: textblock
24384 #: ../tools/virt-edit.pl:317
24385 msgid ""
24386 "Remember when matching the end of a line that C<$_> may contain the final "
24387 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24388 "newline then neither of these.  Thus to match or substitute some text at the "
24389 "end of a line, use this regular expression:"
24390 msgstr ""
24391
24392 # type: verbatim
24393 #: ../tools/virt-edit.pl:322
24394 #, no-wrap
24395 msgid ""
24396 " /some text(\\r?\\n)?$/\n"
24397 "\n"
24398 msgstr ""
24399
24400 # type: textblock
24401 #: ../tools/virt-edit.pl:324
24402 msgid ""
24403 "Alternately, use the perl C<chomp> function, being careful not to chomp "
24404 "C<$_> itself (since that would remove all newlines from the file):"
24405 msgstr ""
24406
24407 # type: verbatim
24408 #: ../tools/virt-edit.pl:328
24409 #, no-wrap
24410 msgid ""
24411 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24412 "\n"
24413 msgstr ""
24414
24415 # type: =item
24416 #: ../tools/virt-edit.pl:334
24417 msgid "C<EDITOR>"
24418 msgstr ""
24419
24420 # type: textblock
24421 #: ../tools/virt-edit.pl:336
24422 msgid ""
24423 "If set, this string is used as the editor.  It may contain arguments, "
24424 "eg. C<\"emacs -nw\">"
24425 msgstr ""
24426
24427 # type: textblock
24428 #: ../tools/virt-edit.pl:339
24429 msgid "If not set, C<vi> is used."
24430 msgstr ""
24431
24432 # type: textblock
24433 #: ../tools/virt-edit.pl:352
24434 msgid ""
24435 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24436 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
24437 "L<perl(1)>, L<perlre(1)>."
24438 msgstr ""
24439
24440 # type: =head1
24441 #: ../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
24442 msgid "AUTHOR"
24443 msgstr ""
24444
24445 # type: textblock
24446 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
24447 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24448 msgstr ""
24449
24450 # type: textblock
24451 #: ../tools/virt-win-reg.pl:37
24452 msgid ""
24453 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
24454 "guest"
24455 msgstr ""
24456
24457 # type: verbatim
24458 #: ../tools/virt-win-reg.pl:41
24459 #, no-wrap
24460 msgid ""
24461 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24462 "\n"
24463 msgstr ""
24464
24465 # type: verbatim
24466 #: ../tools/virt-win-reg.pl:43
24467 #, no-wrap
24468 msgid ""
24469 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
24470 "\n"
24471 msgstr ""
24472
24473 # type: verbatim
24474 #: ../tools/virt-win-reg.pl:45
24475 #, no-wrap
24476 msgid ""
24477 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
24478 "\n"
24479 msgstr ""
24480
24481 # type: verbatim
24482 #: ../tools/virt-win-reg.pl:47
24483 #, no-wrap
24484 msgid ""
24485 " virt-win-reg --merge domname [input.reg ...]\n"
24486 "\n"
24487 msgstr ""
24488
24489 # type: verbatim
24490 #: ../tools/virt-win-reg.pl:49
24491 #, no-wrap
24492 msgid ""
24493 " virt-win-reg [--options] disk.img ... # instead of domname\n"
24494 "\n"
24495 msgstr ""
24496
24497 # type: textblock
24498 #: ../tools/virt-win-reg.pl:53
24499 msgid ""
24500 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
24501 "virtual machines.  If you do this, you I<will> get irreversible disk "
24502 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
24503 "but doesn't catch all cases."
24504 msgstr ""
24505
24506 # type: textblock
24507 #: ../tools/virt-win-reg.pl:58
24508 msgid ""
24509 "Modifying the Windows Registry is an inherently risky operation.  The format "
24510 "is deliberately obscure and undocumented, and Registry changes can leave the "
24511 "system unbootable.  Therefore when using the C<--merge> option, make sure "
24512 "you have a reliable backup first."
24513 msgstr ""
24514
24515 # type: textblock
24516 #: ../tools/virt-win-reg.pl:65
24517 msgid ""
24518 "This program can export and merge Windows Registry entries from a Windows "
24519 "guest."
24520 msgstr ""
24521
24522 # type: textblock
24523 #: ../tools/virt-win-reg.pl:68
24524 msgid ""
24525 "The first parameter is the libvirt guest name or the raw disk image of a "
24526 "Windows guest."
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../tools/virt-win-reg.pl:71
24531 msgid ""
24532 "If C<--merge> is I<not> specified, then the chosen registry key is "
24533 "displayed/exported (recursively).  For example:"
24534 msgstr ""
24535
24536 # type: verbatim
24537 #: ../tools/virt-win-reg.pl:74
24538 #, no-wrap
24539 msgid ""
24540 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
24541 "\n"
24542 msgstr ""
24543
24544 # type: textblock
24545 #: ../tools/virt-win-reg.pl:76
24546 msgid "You can also display single values from within registry keys, for example:"
24547 msgstr ""
24548
24549 # type: verbatim
24550 #: ../tools/virt-win-reg.pl:79
24551 #, no-wrap
24552 msgid ""
24553 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
24554 " $ virt-win-reg Windows7 $cvkey ProductName\n"
24555 " Windows 7 Enterprise\n"
24556 "\n"
24557 msgstr ""
24558
24559 # type: textblock
24560 #: ../tools/virt-win-reg.pl:83
24561 msgid ""
24562 "With C<--merge>, you can merge a textual regedit file into the Windows "
24563 "Registry:"
24564 msgstr ""
24565
24566 # type: verbatim
24567 #: ../tools/virt-win-reg.pl:86
24568 #, no-wrap
24569 msgid ""
24570 " $ virt-win-reg --merge Windows7 changes.reg\n"
24571 "\n"
24572 msgstr ""
24573
24574 # type: =head2
24575 #: ../tools/virt-win-reg.pl:88
24576 msgid "SUPPORTED SYSTEMS"
24577 msgstr ""
24578
24579 # type: textblock
24580 #: ../tools/virt-win-reg.pl:90
24581 msgid ""
24582 "The program currently supports Windows NT-derived guests starting with "
24583 "Windows XP through to at least Windows 7."
24584 msgstr ""
24585
24586 # type: textblock
24587 #: ../tools/virt-win-reg.pl:93
24588 msgid ""
24589 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
24590 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
24591 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
24592 msgstr ""
24593
24594 # type: textblock
24595 #: ../tools/virt-win-reg.pl:97
24596 msgid ""
24597 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
24598 "C<HKEY_USERS>."
24599 msgstr ""
24600
24601 # type: textblock
24602 #: ../tools/virt-win-reg.pl:100
24603 msgid ""
24604 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
24605 "time."
24606 msgstr ""
24607
24608 # type: =head2
24609 #: ../tools/virt-win-reg.pl:103
24610 msgid "NOTE"
24611 msgstr ""
24612
24613 # type: textblock
24614 #: ../tools/virt-win-reg.pl:105
24615 msgid ""
24616 "This program is only meant for simple access to the registry.  If you want "
24617 "to do complicated things with the registry, we suggest you download the "
24618 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
24619 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
24620 "L<hivexregedit(1)>."
24621 msgstr ""
24622
24623 # type: =head2
24624 #: ../tools/virt-win-reg.pl:111
24625 msgid "ENCODING"
24626 msgstr ""
24627
24628 # type: textblock
24629 #: ../tools/virt-win-reg.pl:113
24630 msgid ""
24631 "C<virt-win-reg> expects that regedit files have already been reencoded in "
24632 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
24633 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
24634 "with Windows-style line endings, you may need to reencode the whole file "
24635 "before or after processing."
24636 msgstr ""
24637
24638 # type: textblock
24639 #: ../tools/virt-win-reg.pl:119
24640 msgid ""
24641 "To reencode a file from Windows format to Linux (before processing it with "
24642 "the C<--merge> option), you would do something like this:"
24643 msgstr ""
24644
24645 # type: verbatim
24646 #: ../tools/virt-win-reg.pl:122
24647 #, no-wrap
24648 msgid ""
24649 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
24650 "\n"
24651 msgstr ""
24652
24653 # type: textblock
24654 #: ../tools/virt-win-reg.pl:124
24655 msgid ""
24656 "To go in the opposite direction, after exporting and before sending the file "
24657 "to a Windows user, do something like this:"
24658 msgstr ""
24659
24660 # type: verbatim
24661 #: ../tools/virt-win-reg.pl:127
24662 #, no-wrap
24663 msgid ""
24664 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
24665 "\n"
24666 msgstr ""
24667
24668 # type: textblock
24669 #: ../tools/virt-win-reg.pl:129
24670 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
24671 msgstr ""
24672
24673 # type: textblock
24674 #: ../tools/virt-win-reg.pl:131
24675 msgid ""
24676 "If you are unsure about the current encoding, use the L<file(1)> command.  "
24677 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
24678 "Windows-style (CRLF) line endings, like this:"
24679 msgstr ""
24680
24681 # type: verbatim
24682 #: ../tools/virt-win-reg.pl:135
24683 #, no-wrap
24684 msgid ""
24685 " $ file software.reg\n"
24686 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
24687 " with CRLF line terminators\n"
24688 "\n"
24689 msgstr ""
24690
24691 # type: textblock
24692 #: ../tools/virt-win-reg.pl:139
24693 msgid "This file would need conversion before you could C<--merge> it."
24694 msgstr ""
24695
24696 # type: textblock
24697 #: ../tools/virt-win-reg.pl:143
24698 msgid ""
24699 "Be careful when passing parameters containing C<\\> (backslash) in the "
24700 "shell.  Usually you will have to use 'single quotes' or double backslashes "
24701 "(but not both) to protect them from the shell."
24702 msgstr ""
24703
24704 # type: textblock
24705 #: ../tools/virt-win-reg.pl:147
24706 msgid "Paths and value names are case-insensitive."
24707 msgstr ""
24708
24709 # type: =head2
24710 #: ../tools/virt-win-reg.pl:149
24711 msgid "CurrentControlSet etc."
24712 msgstr ""
24713
24714 # type: textblock
24715 #: ../tools/virt-win-reg.pl:151
24716 msgid ""
24717 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
24718 "Registry at the level of the hive file, and therefore you cannot modify "
24719 "these."
24720 msgstr ""
24721
24722 # type: textblock
24723 #: ../tools/virt-win-reg.pl:155
24724 msgid ""
24725 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
24726 "circumstances it might refer to another control set.  The way to find out is "
24727 "to look at the C<HKLM\\SYSTEM\\Select> key:"
24728 msgstr ""
24729
24730 # type: verbatim
24731 #: ../tools/virt-win-reg.pl:159
24732 #, no-wrap
24733 msgid ""
24734 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
24735 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
24736 " \"Current\"=dword:00000001\n"
24737 " \"Default\"=dword:00000001\n"
24738 " \"Failed\"=dword:00000000\n"
24739 " \"LastKnownGood\"=dword:00000002\n"
24740 "\n"
24741 msgstr ""
24742
24743 # type: textblock
24744 #: ../tools/virt-win-reg.pl:166
24745 msgid "\"Default\" is the one which Windows will choose when it boots."
24746 msgstr ""
24747
24748 # type: textblock
24749 #: ../tools/virt-win-reg.pl:168
24750 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
24751 msgstr ""
24752
24753 # type: =item
24754 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
24755 msgid "B<--debug>"
24756 msgstr ""
24757
24758 # type: textblock
24759 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
24760 msgid "Enable debugging messages."
24761 msgstr ""
24762
24763 # type: =item
24764 #: ../tools/virt-win-reg.pl:232
24765 msgid "B<--merge>"
24766 msgstr ""
24767
24768 # type: textblock
24769 #: ../tools/virt-win-reg.pl:234
24770 msgid ""
24771 "In merge mode, this merges a textual regedit file into the Windows Registry "
24772 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
24773 "displays or exports Registry entries instead."
24774 msgstr ""
24775
24776 # type: textblock
24777 #: ../tools/virt-win-reg.pl:238
24778 msgid ""
24779 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
24780 "result in disk corruption.  However exporting (without this flag)  is always "
24781 "safe."
24782 msgstr ""
24783
24784 # type: =item
24785 #: ../tools/virt-win-reg.pl:246
24786 msgid "B<--encoding> UTF-16LE|ASCII"
24787 msgstr ""
24788
24789 # type: textblock
24790 #: ../tools/virt-win-reg.pl:248
24791 msgid ""
24792 "When merging (only), you may need to specify the encoding for strings to be "
24793 "used in the hive file.  This is explained in detail in "
24794 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
24795 msgstr ""
24796
24797 # type: textblock
24798 #: ../tools/virt-win-reg.pl:252
24799 msgid ""
24800 "The default is to use UTF-16LE, which should work with recent versions of "
24801 "Windows."
24802 msgstr ""
24803
24804 # type: textblock
24805 #: ../tools/virt-win-reg.pl:486
24806 msgid ""
24807 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
24808 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24809 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
24810 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24811 msgstr ""
24812
24813 # type: textblock
24814 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
24815 msgid ""
24816 "When reporting bugs, please enable debugging and capture the I<complete> "
24817 "output:"
24818 msgstr ""
24819
24820 # type: verbatim
24821 #: ../tools/virt-win-reg.pl:504
24822 #, no-wrap
24823 msgid ""
24824 " export LIBGUESTFS_DEBUG=1\n"
24825 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
24826 "\n"
24827 msgstr ""
24828
24829 # type: textblock
24830 #: ../tools/virt-win-reg.pl:507
24831 msgid ""
24832 "Attach /tmp/virt-win-reg.log to a new bug report at "
24833 "L<https://bugzilla.redhat.com/>"
24834 msgstr ""
24835
24836 # type: textblock
24837 #: ../tools/virt-df.pl:36
24838 msgid "virt-df - Display free space on virtual filesystems"
24839 msgstr ""
24840
24841 # type: verbatim
24842 #: ../tools/virt-df.pl:40
24843 #, no-wrap
24844 msgid ""
24845 " virt-df [--options]\n"
24846 "\n"
24847 msgstr ""
24848
24849 # type: verbatim
24850 #: ../tools/virt-df.pl:42
24851 #, no-wrap
24852 msgid ""
24853 " virt-df [--options] domname\n"
24854 "\n"
24855 msgstr ""
24856
24857 # type: verbatim
24858 #: ../tools/virt-df.pl:44
24859 #, no-wrap
24860 msgid ""
24861 " virt-df [--options] disk.img [disk.img ...]\n"
24862 "\n"
24863 msgstr ""
24864
24865 # type: textblock
24866 #: ../tools/virt-df.pl:48
24867 msgid ""
24868 "C<virt-df> is a command line tool to display free space on virtual machine "
24869 "filesystems.  Unlike other tools, it doesn't just display the amount of "
24870 "space allocated to a virtual machine, but can look inside the virtual "
24871 "machine to see how much space is really being used."
24872 msgstr ""
24873
24874 # type: textblock
24875 #: ../tools/virt-df.pl:53
24876 msgid ""
24877 "It is like the L<df(1)> command, but for virtual machines, except that it "
24878 "also works for Windows virtual machines."
24879 msgstr ""
24880
24881 # type: textblock
24882 #: ../tools/virt-df.pl:56
24883 msgid ""
24884 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
24885 "of all active and inactive guests, and performs a C<df>-type operation on "
24886 "each one in turn, printing out the results."
24887 msgstr ""
24888
24889 # type: textblock
24890 #: ../tools/virt-df.pl:60
24891 msgid ""
24892 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
24893 "either the single named libvirt domain, or on the disk image(s) listed on "
24894 "the command line (which must all belong to a single VM).  In this mode (with "
24895 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
24896 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
24897 msgstr ""
24898
24899 # type: textblock
24900 #: ../tools/virt-df.pl:67
24901 msgid ""
24902 "Use the C<--csv> option to get a format which can be easily parsed by other "
24903 "programs.  Other options are mostly similar to standard C<df> options.  See "
24904 "below for the complete list."
24905 msgstr ""
24906
24907 # type: =item
24908 #: ../tools/virt-df.pl:107
24909 msgid "B<--csv>"
24910 msgstr ""
24911
24912 # type: textblock
24913 #: ../tools/virt-df.pl:109
24914 msgid ""
24915 "Write out the results in CSV format (comma-separated values).  This format "
24916 "can be imported easily into databases and spreadsheets, but read L</NOTE "
24917 "ABOUT CSV FORMAT> below."
24918 msgstr ""
24919
24920 # type: =item
24921 #: ../tools/virt-df.pl:134
24922 msgid "B<--human-readable> | B<-h>"
24923 msgstr ""
24924
24925 # type: textblock
24926 #: ../tools/virt-df.pl:136
24927 msgid "Print sizes in human-readable format."
24928 msgstr ""
24929
24930 # type: textblock
24931 #: ../tools/virt-df.pl:138
24932 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
24933 msgstr ""
24934
24935 # type: =item
24936 #: ../tools/virt-df.pl:144
24937 msgid "B<--inodes> | B<-i>"
24938 msgstr ""
24939
24940 # type: textblock
24941 #: ../tools/virt-df.pl:146
24942 msgid "Print inodes instead of blocks."
24943 msgstr ""
24944
24945 # type: =item
24946 #: ../tools/virt-df.pl:152
24947 msgid "B<--one-per-guest>"
24948 msgstr ""
24949
24950 # type: textblock
24951 #: ../tools/virt-df.pl:154
24952 msgid ""
24953 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
24954 "disks from several guests to a single libguestfs appliance."
24955 msgstr ""
24956
24957 # type: textblock
24958 #: ../tools/virt-df.pl:157
24959 msgid "You might use this option in the following circumstances:"
24960 msgstr ""
24961
24962 # type: textblock
24963 #: ../tools/virt-df.pl:163
24964 msgid ""
24965 "If you think an untrusted guest might actively try to exploit the libguestfs "
24966 "appliance kernel, then this prevents one guest from interfering with the "
24967 "stats printed for another guest."
24968 msgstr ""
24969
24970 # type: textblock
24971 #: ../tools/virt-df.pl:169
24972 msgid ""
24973 "If the kernel has a bug which stops it from accessing a filesystem in one "
24974 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
24975 "and report stats for further guests."
24976 msgstr ""
24977
24978 # type: =item
24979 #: ../tools/virt-df.pl:180
24980 msgid "B<--uuid>"
24981 msgstr ""
24982
24983 # type: textblock
24984 #: ../tools/virt-df.pl:182
24985 msgid ""
24986 "Print UUIDs instead of names.  This is useful for following a guest even "
24987 "when the guest is migrated or renamed, or when two guests happen to have the "
24988 "same name."
24989 msgstr ""
24990
24991 # type: textblock
24992 #: ../tools/virt-df.pl:186
24993 msgid ""
24994 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
24995 "images, we still print the disk image name even when this option is "
24996 "specified."
24997 msgstr ""
24998
24999 # type: =head1
25000 #: ../tools/virt-df.pl:609
25001 msgid "NOTE ABOUT CSV FORMAT"
25002 msgstr ""
25003
25004 # type: textblock
25005 #: ../tools/virt-df.pl:611
25006 msgid ""
25007 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25008 "should be easy to parse, but it is definitely not easy to parse."
25009 msgstr ""
25010
25011 # type: textblock
25012 #: ../tools/virt-df.pl:614
25013 msgid ""
25014 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25015 "reliably.  This example has two columns:"
25016 msgstr ""
25017
25018 # type: verbatim
25019 #: ../tools/virt-df.pl:617
25020 #, no-wrap
25021 msgid ""
25022 " \"foo,bar\",baz\n"
25023 "\n"
25024 msgstr ""
25025
25026 # type: textblock
25027 #: ../tools/virt-df.pl:619
25028 msgid ""
25029 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25030 "reliably.  This example has one row:"
25031 msgstr ""
25032
25033 # type: verbatim
25034 #: ../tools/virt-df.pl:622
25035 #, no-wrap
25036 msgid ""
25037 " \"foo\n"
25038 " bar\",baz\n"
25039 "\n"
25040 msgstr ""
25041
25042 # type: textblock
25043 #: ../tools/virt-df.pl:625
25044 msgid ""
25045 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25046 "packaged in major Linux distributions)."
25047 msgstr ""
25048
25049 # type: textblock
25050 #: ../tools/virt-df.pl:628
25051 msgid ""
25052 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25053 "or Python's built-in csv library)."
25054 msgstr ""
25055
25056 # type: textblock
25057 #: ../tools/virt-df.pl:631
25058 msgid "Most spreadsheets and databases can import CSV directly."
25059 msgstr ""
25060
25061 # type: textblock
25062 #: ../tools/virt-df.pl:642
25063 msgid ""
25064 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25065 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25066 msgstr ""
25067
25068 # type: textblock
25069 #: ../tools/virt-ls.pl:34
25070 msgid "virt-ls - List files in a virtual machine"
25071 msgstr ""
25072
25073 # type: verbatim
25074 #: ../tools/virt-ls.pl:38
25075 #, no-wrap
25076 msgid ""
25077 " virt-ls [--options] domname directory\n"
25078 "\n"
25079 msgstr ""
25080
25081 # type: verbatim
25082 #: ../tools/virt-ls.pl:40
25083 #, no-wrap
25084 msgid ""
25085 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25086 "\n"
25087 msgstr ""
25088
25089 # type: textblock
25090 #: ../tools/virt-ls.pl:44
25091 msgid ""
25092 "C<virt-ls> is a command line tool to list the names of files in a directory "
25093 "inside a virtual machine or disk image."
25094 msgstr ""
25095
25096 # type: textblock
25097 #: ../tools/virt-ls.pl:47
25098 msgid ""
25099 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25100 "For more complex cases you should look at the L<guestfish(1)> tool."
25101 msgstr ""
25102
25103 # type: textblock
25104 #: ../tools/virt-ls.pl:51
25105 msgid ""
25106 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
25107 "simple listing is like the ordinary L<ls(1)> command:"
25108 msgstr ""
25109
25110 # type: verbatim
25111 #: ../tools/virt-ls.pl:54
25112 #, no-wrap
25113 msgid ""
25114 " $ virt-ls myguest /\n"
25115 " bin\n"
25116 " boot\n"
25117 " [etc.]\n"
25118 "\n"
25119 msgstr ""
25120
25121 # type: textblock
25122 #: ../tools/virt-ls.pl:59
25123 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
25124 msgstr ""
25125
25126 # type: verbatim
25127 #: ../tools/virt-ls.pl:61
25128 #, no-wrap
25129 msgid ""
25130 " $ virt-ls -l myguest /\n"
25131 " total 204\n"
25132 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25133 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25134 " [etc.]\n"
25135 "\n"
25136 msgstr ""
25137
25138 # type: textblock
25139 #: ../tools/virt-ls.pl:67
25140 msgid ""
25141 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25142 "and directories recursively:"
25143 msgstr ""
25144
25145 # type: verbatim
25146 #: ../tools/virt-ls.pl:70
25147 #, no-wrap
25148 msgid ""
25149 " $ virt-ls -R myguest /tmp\n"
25150 " foo\n"
25151 " foo/bar\n"
25152 " [etc.]\n"
25153 "\n"
25154 msgstr ""
25155
25156 # type: textblock
25157 #: ../tools/virt-ls.pl:75
25158 msgid ""
25159 "You I<cannot> combine these options.  To do more complicated things, use "
25160 "L<guestfish(1)>."
25161 msgstr ""
25162
25163 # type: =item
25164 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
25165 msgid "B<-l> | B<--long>"
25166 msgstr ""
25167
25168 # type: =item
25169 #: ../tools/virt-ls.pl:133
25170 msgid "B<-R> | B<--recursive>"
25171 msgstr ""
25172
25173 # type: textblock
25174 #: ../tools/virt-ls.pl:135
25175 msgid ""
25176 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25177 "simple, flat list of the files in the named directory."
25178 msgstr ""
25179
25180 # type: textblock
25181 #: ../tools/virt-ls.pl:138
25182 msgid ""
25183 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
25184 "like the plain C<ls -l> command)."
25185 msgstr ""
25186
25187 # type: textblock
25188 #: ../tools/virt-ls.pl:141
25189 msgid ""
25190 "C<virt-ls -R> produces a recursive list of files starting at the named "
25191 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
25192 "details."
25193 msgstr ""
25194
25195 # type: textblock
25196 #: ../tools/virt-ls.pl:145
25197 msgid "You cannot combine these options."
25198 msgstr ""
25199
25200 # type: textblock
25201 #: ../tools/virt-ls.pl:234
25202 msgid ""
25203 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
25204 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
25205 "L<http://libguestfs.org/>."
25206 msgstr ""
25207
25208 # type: textblock
25209 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
25210 msgid "Copyright (C) 2009 Red Hat Inc."
25211 msgstr ""
25212
25213 # type: textblock
25214 #: ../tools/virt-resize.pl:42
25215 msgid "virt-resize - Resize a virtual machine disk"
25216 msgstr ""
25217
25218 # type: verbatim
25219 #: ../tools/virt-resize.pl:46
25220 #, no-wrap
25221 msgid ""
25222 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25223 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25224 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25225 "\n"
25226 msgstr ""
25227
25228 # type: textblock
25229 #: ../tools/virt-resize.pl:52
25230 msgid ""
25231 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25232 "larger or smaller overall, and resizing or deleting any partitions contained "
25233 "within."
25234 msgstr ""
25235
25236 # type: textblock
25237 #: ../tools/virt-resize.pl:56
25238 msgid ""
25239 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25240 "not> be used on live virtual machines - for consistent results, shut the "
25241 "virtual machine down before resizing it."
25242 msgstr ""
25243
25244 # type: textblock
25245 #: ../tools/virt-resize.pl:60
25246 msgid ""
25247 "If you are not familiar with the associated tools: "
25248 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
25249 "we recommend you go and read those manual pages first."
25250 msgstr ""
25251
25252 # type: textblock
25253 #: ../tools/virt-resize.pl:68
25254 msgid ""
25255 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25256 "fill the extra 5GB of space."
25257 msgstr ""
25258
25259 # type: verbatim
25260 #: ../tools/virt-resize.pl:71
25261 #, no-wrap
25262 msgid ""
25263 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
25264 " virt-list-partitions -lht olddisk\n"
25265 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25266 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25267 "\n"
25268 msgstr ""
25269
25270 # type: textblock
25271 #: ../tools/virt-resize.pl:76
25272 msgid ""
25273 "As above, but make the /boot partition 200MB bigger, while giving the "
25274 "remaining space to /dev/sda2:"
25275 msgstr ""
25276
25277 # type: verbatim
25278 #: ../tools/virt-resize.pl:79
25279 #, no-wrap
25280 msgid ""
25281 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25282 "\n"
25283 msgstr ""
25284
25285 # type: textblock
25286 #: ../tools/virt-resize.pl:81
25287 msgid "As above, but the output format will be uncompressed qcow2:"
25288 msgstr ""
25289
25290 # type: verbatim
25291 #: ../tools/virt-resize.pl:83
25292 #, no-wrap
25293 msgid ""
25294 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25295 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25296 "\n"
25297 msgstr ""
25298
25299 # type: =head1
25300 #: ../tools/virt-resize.pl:86
25301 msgid "DETAILED USAGE"
25302 msgstr ""
25303
25304 # type: =head2
25305 #: ../tools/virt-resize.pl:88
25306 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25307 msgstr ""
25308
25309 # type: =item
25310 #: ../tools/virt-resize.pl:92
25311 msgid "1. Shut down the virtual machine"
25312 msgstr ""
25313
25314 # type: =item
25315 #: ../tools/virt-resize.pl:94
25316 msgid "2. Locate input disk image"
25317 msgstr ""
25318
25319 # type: textblock
25320 #: ../tools/virt-resize.pl:96
25321 msgid ""
25322 "Locate the input disk image (ie. the file or device on the host containing "
25323 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25324 "dumpxml> like this to find the disk image name:"
25325 msgstr ""
25326
25327 # type: verbatim
25328 #: ../tools/virt-resize.pl:100
25329 #, no-wrap
25330 msgid ""
25331 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25332 " Found 1 nodes:\n"
25333 " -- NODE --\n"
25334 " <source dev=\"/dev/vg/lv_guest\" />\n"
25335 "\n"
25336 msgstr ""
25337
25338 # type: =item
25339 #: ../tools/virt-resize.pl:105
25340 msgid "3. Look at current sizing"
25341 msgstr ""
25342
25343 # type: textblock
25344 #: ../tools/virt-resize.pl:107
25345 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25346 msgstr ""
25347
25348 # type: verbatim
25349 #: ../tools/virt-resize.pl:110
25350 #, no-wrap
25351 msgid ""
25352 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25353 " /dev/sda1 ext3 101.9M\n"
25354 " /dev/sda2 pv 7.9G\n"
25355 " /dev/sda device 8.0G\n"
25356 "\n"
25357 msgstr ""
25358
25359 # type: textblock
25360 #: ../tools/virt-resize.pl:115
25361 msgid ""
25362 "(This example is a virtual machine with an 8 GB disk which we would like to "
25363 "expand up to 10 GB)."
25364 msgstr ""
25365
25366 # type: =item
25367 #: ../tools/virt-resize.pl:118
25368 msgid "4. Create output disk"
25369 msgstr ""
25370
25371 # type: textblock
25372 #: ../tools/virt-resize.pl:120
25373 msgid ""
25374 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25375 "to store the resized output disk."
25376 msgstr ""
25377
25378 # type: textblock
25379 #: ../tools/virt-resize.pl:123
25380 msgid "To store the resized disk image in a file, create a file of a suitable size:"
25381 msgstr ""
25382
25383 # type: verbatim
25384 #: ../tools/virt-resize.pl:126
25385 #, no-wrap
25386 msgid ""
25387 " # rm -f outdisk\n"
25388 " # truncate -s 10G outdisk\n"
25389 "\n"
25390 msgstr ""
25391
25392 # type: textblock
25393 #: ../tools/virt-resize.pl:129
25394 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25395 msgstr ""
25396
25397 # type: verbatim
25398 #: ../tools/virt-resize.pl:131
25399 #, no-wrap
25400 msgid ""
25401 " # lvcreate -L 10G -n lv_name vg_name\n"
25402 "\n"
25403 msgstr ""
25404
25405 # type: textblock
25406 #: ../tools/virt-resize.pl:133
25407 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25408 msgstr ""
25409
25410 # type: verbatim
25411 #: ../tools/virt-resize.pl:135
25412 #, no-wrap
25413 msgid ""
25414 " # virsh pool-list\n"
25415 " # virsh vol-create-as poolname newvol 10G\n"
25416 "\n"
25417 msgstr ""
25418
25419 # type: =item
25420 #: ../tools/virt-resize.pl:138
25421 msgid "5. Resize"
25422 msgstr ""
25423
25424 # type: textblock
25425 #: ../tools/virt-resize.pl:140
25426 msgid ""
25427 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25428 "file) and the output disk.  The output disk is the one created in the "
25429 "previous step."
25430 msgstr ""
25431
25432 # type: verbatim
25433 #: ../tools/virt-resize.pl:144
25434 #, no-wrap
25435 msgid ""
25436 " # virt-resize indisk outdisk\n"
25437 "\n"
25438 msgstr ""
25439
25440 # type: textblock
25441 #: ../tools/virt-resize.pl:146
25442 msgid ""
25443 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25444 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25445 "larger, then an extra, empty partition is created at the end of the disk "
25446 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25447 "error."
25448 msgstr ""
25449
25450 # type: textblock
25451 #: ../tools/virt-resize.pl:152
25452 msgid ""
25453 "More realistically you'd want to expand existing partitions in the disk "
25454 "image by passing extra options (for the full list see the L</OPTIONS> "
25455 "section below)."
25456 msgstr ""
25457
25458 # type: textblock
25459 #: ../tools/virt-resize.pl:156
25460 msgid ""
25461 "L</--expand> is the most useful option.  It expands the named partition "
25462 "within the disk to fill any extra space:"
25463 msgstr ""
25464
25465 # type: verbatim
25466 #: ../tools/virt-resize.pl:159
25467 #, no-wrap
25468 msgid ""
25469 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25470 "\n"
25471 msgstr ""
25472
25473 # type: textblock
25474 #: ../tools/virt-resize.pl:161
25475 msgid ""
25476 "(In this case, an extra partition is I<not> created at the end of the disk, "
25477 "because there will be no unused space)."
25478 msgstr ""
25479
25480 # type: textblock
25481 #: ../tools/virt-resize.pl:164
25482 msgid ""
25483 "L</--resize> is the other commonly used option.  The following would "
25484 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25485 "rest of the available space:"
25486 msgstr ""
25487
25488 # type: verbatim
25489 #: ../tools/virt-resize.pl:168
25490 #, no-wrap
25491 msgid ""
25492 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25493 "     indisk outdisk\n"
25494 "\n"
25495 msgstr ""
25496
25497 # type: textblock
25498 #: ../tools/virt-resize.pl:171
25499 msgid ""
25500 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25501 "if virt-resize knows how, it will resize the contents, the equivalent of "
25502 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
25503 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
25504 "filesystems, so you would have to online resize them after booting the "
25505 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
25506 "just resizes the PV itself and leaves the user to resize any LVs inside that "
25507 "PV as desired."
25508 msgstr ""
25509
25510 # type: textblock
25511 #: ../tools/virt-resize.pl:180
25512 msgid "Other options are covered below."
25513 msgstr ""
25514
25515 # type: =item
25516 #: ../tools/virt-resize.pl:182
25517 msgid "6. Test"
25518 msgstr ""
25519
25520 # type: textblock
25521 #: ../tools/virt-resize.pl:184
25522 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25523 msgstr ""
25524
25525 # type: textblock
25526 #: ../tools/virt-resize.pl:186
25527 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25528 msgstr ""
25529
25530 # type: verbatim
25531 #: ../tools/virt-resize.pl:188
25532 #, no-wrap
25533 msgid ""
25534 " # virsh edit guestname\n"
25535 "\n"
25536 msgstr ""
25537
25538 # type: textblock
25539 #: ../tools/virt-resize.pl:190
25540 msgid ""
25541 "Change E<lt>source ...E<gt>, see "
25542 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
25543 msgstr ""
25544
25545 # type: textblock
25546 #: ../tools/virt-resize.pl:193
25547 msgid "Then start up the domain with the new, resized disk:"
25548 msgstr ""
25549
25550 # type: verbatim
25551 #: ../tools/virt-resize.pl:195
25552 #, no-wrap
25553 msgid ""
25554 " # virsh start guestname\n"
25555 "\n"
25556 msgstr ""
25557
25558 # type: textblock
25559 #: ../tools/virt-resize.pl:197
25560 msgid ""
25561 "and check that it still works.  See also the L</NOTES> section below for "
25562 "additional information."
25563 msgstr ""
25564
25565 # type: =item
25566 #: ../tools/virt-resize.pl:200
25567 msgid "7. Resize LVs etc inside the guest"
25568 msgstr ""
25569
25570 # type: textblock
25571 #: ../tools/virt-resize.pl:202
25572 msgid "(This can also be done offline using L<guestfish(1)>)"
25573 msgstr ""
25574
25575 # type: textblock
25576 #: ../tools/virt-resize.pl:204
25577 msgid ""
25578 "Once the guest has booted you should see the new space available, at least "
25579 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25580 "may need to resize LVs inside PVs, and also resize filesystem types that "
25581 "virt-resize does not know how to expand."
25582 msgstr ""
25583
25584 # type: =head2
25585 #: ../tools/virt-resize.pl:211
25586 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25587 msgstr ""
25588
25589 # type: textblock
25590 #: ../tools/virt-resize.pl:213
25591 msgid ""
25592 "Shrinking is somewhat more complex than expanding, and only an overview is "
25593 "given here."
25594 msgstr ""
25595
25596 # type: textblock
25597 #: ../tools/virt-resize.pl:216
25598 msgid ""
25599 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25600 "filesystems).  The user has to shrink content before passing the disk image "
25601 "to virt-resize, and virt-resize will check that the content has been shrunk "
25602 "properly."
25603 msgstr ""
25604
25605 # type: textblock
25606 #: ../tools/virt-resize.pl:221
25607 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25608 msgstr ""
25609
25610 # type: textblock
25611 #: ../tools/virt-resize.pl:223
25612 msgid ""
25613 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25614 "steps 3 and 4 above to allocate a new disk image."
25615 msgstr ""
25616
25617 # type: textblock
25618 #: ../tools/virt-resize.pl:226
25619 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
25620 msgstr ""
25621
25622 # type: =head2
25623 #: ../tools/virt-resize.pl:229
25624 msgid "IGNORING OR DELETING PARTITIONS"
25625 msgstr ""
25626
25627 # type: textblock
25628 #: ../tools/virt-resize.pl:231
25629 msgid ""
25630 "virt-resize also gives a convenient way to ignore or delete partitions when "
25631 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25632 "up the copy where you don't care about the existing contents of a "
25633 "partition.  Deleting a partition removes it completely, but note that it "
25634 "also renumbers any partitions after the one which is deleted, which can "
25635 "leave some guests unbootable."
25636 msgstr ""
25637
25638 # type: =head2
25639 #: ../tools/virt-resize.pl:238
25640 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25641 msgstr ""
25642
25643 # type: textblock
25644 #: ../tools/virt-resize.pl:240
25645 msgid ""
25646 "If the input disk is in qcow2 format, then you may prefer that the output is "
25647 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
25648 "the fly.  The output format is simply determined by the format of the empty "
25649 "output container that you provide.  Thus to create qcow2 output, use:"
25650 msgstr ""
25651
25652 # type: verbatim
25653 #: ../tools/virt-resize.pl:246
25654 #, no-wrap
25655 msgid ""
25656 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25657 "\n"
25658 msgstr ""
25659
25660 # type: textblock
25661 #: ../tools/virt-resize.pl:248
25662 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
25663 msgstr ""
25664
25665 # type: textblock
25666 #: ../tools/virt-resize.pl:250
25667 msgid "Similarly, to get non-sparse raw output use:"
25668 msgstr ""
25669
25670 # type: verbatim
25671 #: ../tools/virt-resize.pl:252
25672 #, no-wrap
25673 msgid ""
25674 " fallocate -l size outdisk\n"
25675 "\n"
25676 msgstr ""
25677
25678 # type: textblock
25679 #: ../tools/virt-resize.pl:254
25680 msgid ""
25681 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
25682 "if=/dev/zero of=outdisk bs=1M count=..>)"
25683 msgstr ""
25684
25685 # type: textblock
25686 #: ../tools/virt-resize.pl:267
25687 msgid "Display help."
25688 msgstr ""
25689
25690 # type: =item
25691 #: ../tools/virt-resize.pl:281
25692 msgid "B<--resize part=size>"
25693 msgstr ""
25694
25695 # type: textblock
25696 #: ../tools/virt-resize.pl:283
25697 msgid ""
25698 "Resize the named partition (expanding or shrinking it) so that it has the "
25699 "given size."
25700 msgstr ""
25701
25702 # type: textblock
25703 #: ../tools/virt-resize.pl:286
25704 msgid ""
25705 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
25706 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
25707 "Exabytes; or as a percentage of the current size; or as a relative number or "
25708 "percentage.  For example:"
25709 msgstr ""
25710
25711 # type: verbatim
25712 #: ../tools/virt-resize.pl:291
25713 #, no-wrap
25714 msgid ""
25715 " --resize /dev/sda2=10G\n"
25716 "\n"
25717 msgstr ""
25718
25719 # type: verbatim
25720 #: ../tools/virt-resize.pl:293
25721 #, no-wrap
25722 msgid ""
25723 " --resize /dev/sda4=90%\n"
25724 "\n"
25725 msgstr ""
25726
25727 # type: verbatim
25728 #: ../tools/virt-resize.pl:295
25729 #, no-wrap
25730 msgid ""
25731 " --resize /dev/sda2=+1G\n"
25732 "\n"
25733 msgstr ""
25734
25735 # type: verbatim
25736 #: ../tools/virt-resize.pl:297
25737 #, no-wrap
25738 msgid ""
25739 " --resize /dev/sda2=-200M\n"
25740 "\n"
25741 msgstr ""
25742
25743 # type: verbatim
25744 #: ../tools/virt-resize.pl:299
25745 #, no-wrap
25746 msgid ""
25747 " --resize /dev/sda1=+128K\n"
25748 "\n"
25749 msgstr ""
25750
25751 # type: verbatim
25752 #: ../tools/virt-resize.pl:301
25753 #, no-wrap
25754 msgid ""
25755 " --resize /dev/sda1=+10%\n"
25756 "\n"
25757 msgstr ""
25758
25759 # type: verbatim
25760 #: ../tools/virt-resize.pl:303
25761 #, no-wrap
25762 msgid ""
25763 " --resize /dev/sda1=-10%\n"
25764 "\n"
25765 msgstr ""
25766
25767 # type: textblock
25768 #: ../tools/virt-resize.pl:305
25769 msgid ""
25770 "You can increase the size of any partition.  Virt-resize will expand the "
25771 "direct content of the partition if it knows how (see C<--expand> below)."
25772 msgstr ""
25773
25774 # type: textblock
25775 #: ../tools/virt-resize.pl:309
25776 msgid ""
25777 "You can only I<decrease> the size of partitions that contain filesystems or "
25778 "PVs which have already been shrunk.  Virt-resize will check this has been "
25779 "done before proceeding, or else will print an error (see also "
25780 "C<--resize-force>)."
25781 msgstr ""
25782
25783 # type: textblock
25784 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
25785 msgid "You can give this option multiple times."
25786 msgstr ""
25787
25788 # type: =item
25789 #: ../tools/virt-resize.pl:320
25790 msgid "B<--resize-force part=size>"
25791 msgstr ""
25792
25793 # type: textblock
25794 #: ../tools/virt-resize.pl:322
25795 msgid ""
25796 "This is the same as C<--resize> except that it will let you decrease the "
25797 "size of any partition.  Generally this means you will lose any data which "
25798 "was at the end of the partition you shrink, but you may not care about that "
25799 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25800 "as a swap partition)."
25801 msgstr ""
25802
25803 # type: textblock
25804 #: ../tools/virt-resize.pl:328
25805 msgid "See also the C<--ignore> option."
25806 msgstr ""
25807
25808 # type: =item
25809 #: ../tools/virt-resize.pl:334
25810 msgid "B<--expand part>"
25811 msgstr ""
25812
25813 # type: textblock
25814 #: ../tools/virt-resize.pl:336
25815 msgid ""
25816 "Expand the named partition so it uses up all extra space (space left over "
25817 "after any other resize changes that you request have been done)."
25818 msgstr ""
25819
25820 # type: textblock
25821 #: ../tools/virt-resize.pl:339
25822 msgid ""
25823 "If virt-resize knows how, it will expand the direct content of the "
25824 "partition.  For example, if the partition is an LVM PV, it will expand the "
25825 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25826 "content it doesn't know about alone."
25827 msgstr ""
25828
25829 # type: textblock
25830 #: ../tools/virt-resize.pl:344
25831 msgid "Currently virt-resize can resize:"
25832 msgstr ""
25833
25834 # type: textblock
25835 #: ../tools/virt-resize.pl:350
25836 msgid ""
25837 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
25838 "partition."
25839 msgstr ""
25840
25841 # type: textblock
25842 #: ../tools/virt-resize.pl:355
25843 msgid ""
25844 "NTFS filesystems contained directly in a partition, if libguestfs was "
25845 "compiled with support for NTFS."
25846 msgstr ""
25847
25848 # type: textblock
25849 #: ../tools/virt-resize.pl:358
25850 msgid ""
25851 "The filesystem must have been shut down consistently last time it was used.  "
25852 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25853 "consistency check, so at the first boot after resizing Windows will check "
25854 "the disk."
25855 msgstr ""
25856
25857 # type: textblock
25858 #: ../tools/virt-resize.pl:365
25859 msgid ""
25860 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
25861 "inside the PV.  The user will have to resize LVs as desired."
25862 msgstr ""
25863
25864 # type: textblock
25865 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
25866 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
25867 msgstr ""
25868
25869 # type: =item
25870 #: ../tools/virt-resize.pl:377
25871 msgid "B<--shrink part>"
25872 msgstr ""
25873
25874 # type: textblock
25875 #: ../tools/virt-resize.pl:379
25876 msgid ""
25877 "Shrink the named partition until the overall disk image fits in the "
25878 "destination.  The named partition B<must> contain a filesystem or PV which "
25879 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25880 "online tools).  Virt-resize will check this and give an error if it has not "
25881 "been done."
25882 msgstr ""
25883
25884 # type: textblock
25885 #: ../tools/virt-resize.pl:385
25886 msgid ""
25887 "The amount by which the overall disk must be shrunk (after carrying out all "
25888 "other operations requested by the user) is called the \"deficit\".  For "
25889 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25890 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25891 "would give an error unless the user specified a partition to shrink and that "
25892 "partition had more than a gigabyte of free space."
25893 msgstr ""
25894
25895 # type: =item
25896 #: ../tools/virt-resize.pl:399
25897 msgid "B<--ignore part>"
25898 msgstr ""
25899
25900 # type: textblock
25901 #: ../tools/virt-resize.pl:401
25902 msgid ""
25903 "Ignore the named partition.  Effectively this means the partition is "
25904 "allocated on the destination disk, but the content is not copied across from "
25905 "the source disk.  The content of the partition will be blank (all zero "
25906 "bytes)."
25907 msgstr ""
25908
25909 # type: =item
25910 #: ../tools/virt-resize.pl:412
25911 msgid "B<--delete part>"
25912 msgstr ""
25913
25914 # type: textblock
25915 #: ../tools/virt-resize.pl:414
25916 msgid ""
25917 "Delete the named partition.  It would be more accurate to describe this as "
25918 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25919 "the original disk image is left intact."
25920 msgstr ""
25921
25922 # type: textblock
25923 #: ../tools/virt-resize.pl:418
25924 msgid ""
25925 "Note that when you delete a partition, then anything contained in the "
25926 "partition is also deleted.  Furthermore, this causes any partitions that "
25927 "come after to be I<renumbered>, which can easily make your guest unbootable."
25928 msgstr ""
25929
25930 # type: =item
25931 #: ../tools/virt-resize.pl:429
25932 msgid "B<--LV-expand logvol>"
25933 msgstr ""
25934
25935 # type: textblock
25936 #: ../tools/virt-resize.pl:431
25937 msgid ""
25938 "This takes the logical volume and, as a final step, expands it to fill all "
25939 "the space available in its volume group.  A typical usage, assuming a Linux "
25940 "guest with a single PV C</dev/sda2> and a root device called "
25941 "C</dev/vg_guest/lv_root> would be:"
25942 msgstr ""
25943
25944 # type: verbatim
25945 #: ../tools/virt-resize.pl:436
25946 #, no-wrap
25947 msgid ""
25948 " virt-resize indisk outdisk \\\n"
25949 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25950 "\n"
25951 msgstr ""
25952
25953 # type: textblock
25954 #: ../tools/virt-resize.pl:439
25955 msgid ""
25956 "This would first expand the partition (and PV), and then expand the root "
25957 "device to fill the extra space in the PV."
25958 msgstr ""
25959
25960 # type: textblock
25961 #: ../tools/virt-resize.pl:442
25962 msgid ""
25963 "The contents of the LV are also resized if virt-resize knows how to do "
25964 "that.  You can stop virt-resize from trying to expand the content by using "
25965 "the option C<--no-expand-content>."
25966 msgstr ""
25967
25968 # type: textblock
25969 #: ../tools/virt-resize.pl:446
25970 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
25971 msgstr ""
25972
25973 # type: textblock
25974 #: ../tools/virt-resize.pl:449
25975 msgid ""
25976 "You can give this option multiple times, I<but> it doesn't make sense to do "
25977 "this unless the logical volumes you specify are all in different volume "
25978 "groups."
25979 msgstr ""
25980
25981 # type: =item
25982 #: ../tools/virt-resize.pl:457
25983 msgid "B<--no-copy-boot-loader>"
25984 msgstr ""
25985
25986 # type: textblock
25987 #: ../tools/virt-resize.pl:459
25988 msgid ""
25989 "By default, virt-resize copies over some sectors at the start of the disk "
25990 "(up to the beginning of the first partition).  Commonly these sectors "
25991 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25992 "in order for the guest to boot correctly."
25993 msgstr ""
25994
25995 # type: textblock
25996 #: ../tools/virt-resize.pl:464
25997 msgid ""
25998 "If you specify this flag, then this initial copy is not done.  You may need "
25999 "to reinstall the boot loader in this case."
26000 msgstr ""
26001
26002 # type: =item
26003 #: ../tools/virt-resize.pl:472
26004 msgid "B<--no-extra-partition>"
26005 msgstr ""
26006
26007 # type: textblock
26008 #: ../tools/virt-resize.pl:474
26009 msgid ""
26010 "By default, virt-resize creates an extra partition if there is any extra, "
26011 "unused space after all resizing has happened.  Use this option to prevent "
26012 "the extra partition from being created.  If you do this then the extra space "
26013 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26014 "tool in the guest."
26015 msgstr ""
26016
26017 # type: textblock
26018 #: ../tools/virt-resize.pl:480
26019 msgid ""
26020 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26021 "will be created."
26022 msgstr ""
26023
26024 # type: =item
26025 #: ../tools/virt-resize.pl:487
26026 msgid "B<--no-expand-content>"
26027 msgstr ""
26028
26029 # type: textblock
26030 #: ../tools/virt-resize.pl:489
26031 msgid ""
26032 "By default, virt-resize will try to expand the direct contents of "
26033 "partitions, if it knows how (see C<--expand> option above)."
26034 msgstr ""
26035
26036 # type: textblock
26037 #: ../tools/virt-resize.pl:492
26038 msgid ""
26039 "If you give the C<--no-expand-content> option then virt-resize will not "
26040 "attempt this."
26041 msgstr ""
26042
26043 # type: =item
26044 #: ../tools/virt-resize.pl:499
26045 msgid "B<-d> | B<--debug>"
26046 msgstr ""
26047
26048 # type: =item
26049 #: ../tools/virt-resize.pl:507
26050 msgid "B<-n> | B<--dryrun>"
26051 msgstr ""
26052
26053 # type: textblock
26054 #: ../tools/virt-resize.pl:509
26055 msgid "Print a summary of what would be done, but don't do anything."
26056 msgstr ""
26057
26058 # type: =item
26059 #: ../tools/virt-resize.pl:515
26060 msgid "B<-q> | B<--quiet>"
26061 msgstr ""
26062
26063 # type: textblock
26064 #: ../tools/virt-resize.pl:517
26065 msgid "Don't print the summary."
26066 msgstr ""
26067
26068 # type: textblock
26069 #: ../tools/virt-resize.pl:525
26070 msgid ""
26071 "Specify the format of the input disk image.  If this flag is not given then "
26072 "it is auto-detected from the image itself."
26073 msgstr ""
26074
26075 # type: textblock
26076 #: ../tools/virt-resize.pl:531
26077 msgid ""
26078 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26079 "AND NON-SPARSE RAW FORMATS>."
26080 msgstr ""
26081
26082 # type: =item
26083 #: ../tools/virt-resize.pl:538
26084 msgid "B<--output-format> raw"
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../tools/virt-resize.pl:540
26089 msgid ""
26090 "Specify the format of the output disk image.  If this flag is not given then "
26091 "it is auto-detected from the image itself."
26092 msgstr ""
26093
26094 # type: textblock
26095 #: ../tools/virt-resize.pl:546
26096 msgid ""
26097 "Note that you still need to create the output disk with the right format.  "
26098 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
26099 msgstr ""
26100
26101 # type: =head2
26102 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
26103 msgid "NOTES"
26104 msgstr ""
26105
26106 # type: =head2
26107 #: ../tools/virt-resize.pl:1424
26108 msgid "\"Partition 1 does not end on cylinder boundary.\""
26109 msgstr ""
26110
26111 # type: textblock
26112 #: ../tools/virt-resize.pl:1426
26113 msgid ""
26114 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
26115 "means the partitions will not be aligned to the ancient CHS geometry.  "
26116 "However CHS geometry is meaningless for disks manufactured since the early "
26117 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
26118 "cylinders is not required by any modern operating system."
26119 msgstr ""
26120
26121 # type: =head2
26122 #: ../tools/virt-resize.pl:1433
26123 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26124 msgstr ""
26125
26126 # type: textblock
26127 #: ../tools/virt-resize.pl:1435
26128 msgid ""
26129 "In Windows Vista and later versions, Microsoft switched to using a separate "
26130 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26131 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26132 "the boot partition.  Doing so seems to break the guest completely.  However "
26133 "expanding the second partition (ie. C: drive) should work."
26134 msgstr ""
26135
26136 # type: textblock
26137 #: ../tools/virt-resize.pl:1442
26138 msgid ""
26139 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26140 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26141 "it find errors) is nothing to worry about."
26142 msgstr ""
26143
26144 # type: =head2
26145 #: ../tools/virt-resize.pl:1446
26146 msgid "GUEST BOOT STUCK AT \"GRUB\""
26147 msgstr ""
26148
26149 # type: textblock
26150 #: ../tools/virt-resize.pl:1448
26151 msgid ""
26152 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26153 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26154 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26155 "although we think is to do with partition alignment."
26156 msgstr ""
26157
26158 # type: verbatim
26159 #: ../tools/virt-resize.pl:1453
26160 #, no-wrap
26161 msgid ""
26162 " guestfish -i -a newdisk\n"
26163 " ><fs> cat /boot/grub/device.map\n"
26164 " # check the contents of this file are sensible or\n"
26165 " # edit the file if necessary\n"
26166 " ><fs> grub-install / /dev/vda\n"
26167 " ><fs> exit\n"
26168 "\n"
26169 msgstr ""
26170
26171 # type: textblock
26172 #: ../tools/virt-resize.pl:1460
26173 msgid ""
26174 "For more flexible guest reconfiguration, including if you need to specify "
26175 "other parameters to grub-install, use L<virt-rescue(1)>."
26176 msgstr ""
26177
26178 # type: =head1
26179 #: ../tools/virt-resize.pl:1463
26180 msgid "ALTERNATIVE TOOLS"
26181 msgstr ""
26182
26183 # type: textblock
26184 #: ../tools/virt-resize.pl:1465
26185 msgid ""
26186 "There are several proprietary tools for resizing partitions.  We won't "
26187 "mention any here."
26188 msgstr ""
26189
26190 # type: textblock
26191 #: ../tools/virt-resize.pl:1468
26192 msgid ""
26193 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26194 "operations on disk images.  They can resize and move partitions, but I don't "
26195 "think they can do anything with the contents, and they certainly don't "
26196 "understand LVM."
26197 msgstr ""
26198
26199 # type: textblock
26200 #: ../tools/virt-resize.pl:1473
26201 msgid ""
26202 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26203 "but at a much lower level.  You will probably end up hand-calculating sector "
26204 "offsets, which is something that virt-resize was designed to avoid.  If you "
26205 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26206 "C<--debug> flag."
26207 msgstr ""
26208
26209 # type: textblock
26210 #: ../tools/virt-resize.pl:1488
26211 msgid ""
26212 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
26213 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
26214 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
26215 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
26216 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26217 msgstr ""
26218
26219 # type: textblock
26220 #: ../tools/virt-list-filesystems.pl:32
26221 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
26222 msgstr ""
26223
26224 # type: verbatim
26225 #: ../tools/virt-list-filesystems.pl:36
26226 #, no-wrap
26227 msgid ""
26228 " virt-list-filesystems [--options] domname\n"
26229 "\n"
26230 msgstr ""
26231
26232 # type: verbatim
26233 #: ../tools/virt-list-filesystems.pl:38
26234 #, no-wrap
26235 msgid ""
26236 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
26237 "\n"
26238 msgstr ""
26239
26240 # type: textblock
26241 #: ../tools/virt-list-filesystems.pl:42
26242 msgid ""
26243 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
26244 "are contained in a virtual machine or disk image."
26245 msgstr ""
26246
26247 # type: textblock
26248 #: ../tools/virt-list-filesystems.pl:46
26249 msgid ""
26250 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
26251 "functionality.  For more complex cases you should look at the "
26252 "L<guestfish(1)> tool."
26253 msgstr ""
26254
26255 # type: textblock
26256 #: ../tools/virt-list-filesystems.pl:105
26257 msgid ""
26258 "With this option, C<virt-list-filesystems> displays the type of each "
26259 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
26260 msgstr ""
26261
26262 # type: =item
26263 #: ../tools/virt-list-filesystems.pl:112
26264 msgid "B<-a> | B<--all>"
26265 msgstr ""
26266
26267 # type: textblock
26268 #: ../tools/virt-list-filesystems.pl:114
26269 msgid ""
26270 "Normally we only show mountable filesystems.  If this option is given then "
26271 "swap devices are shown too."
26272 msgstr ""
26273
26274 # type: textblock
26275 #: ../tools/virt-list-filesystems.pl:188
26276 msgid ""
26277 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26278 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26279 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26280 msgstr ""
26281
26282 # type: textblock
26283 #: ../tools/virt-cat.pl:33
26284 msgid "virt-cat - Display a file in a virtual machine"
26285 msgstr ""
26286
26287 # type: verbatim
26288 #: ../tools/virt-cat.pl:37
26289 #, no-wrap
26290 msgid ""
26291 " virt-cat [--options] domname file\n"
26292 "\n"
26293 msgstr ""
26294
26295 # type: verbatim
26296 #: ../tools/virt-cat.pl:39
26297 #, no-wrap
26298 msgid ""
26299 " virt-cat [--options] disk.img [disk.img ...] file\n"
26300 "\n"
26301 msgstr ""
26302
26303 # type: textblock
26304 #: ../tools/virt-cat.pl:43
26305 msgid ""
26306 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26307 "C<file> exists in the named virtual machine (or disk image)."
26308 msgstr ""
26309
26310 # type: textblock
26311 #: ../tools/virt-cat.pl:46
26312 msgid ""
26313 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26314 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26315 "tool."
26316 msgstr ""
26317
26318 # type: textblock
26319 #: ../tools/virt-cat.pl:52
26320 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26321 msgstr ""
26322
26323 # type: verbatim
26324 #: ../tools/virt-cat.pl:55
26325 #, no-wrap
26326 msgid ""
26327 " virt-cat mydomain /etc/fstab\n"
26328 "\n"
26329 msgstr ""
26330
26331 # type: textblock
26332 #: ../tools/virt-cat.pl:57
26333 msgid "List syslog messages from a VM:"
26334 msgstr ""
26335
26336 # type: verbatim
26337 #: ../tools/virt-cat.pl:59
26338 #, no-wrap
26339 msgid ""
26340 " virt-cat mydomain /var/log/messages | tail\n"
26341 "\n"
26342 msgstr ""
26343
26344 # type: textblock
26345 #: ../tools/virt-cat.pl:61
26346 msgid "Find out what DHCP IP address a VM acquired:"
26347 msgstr ""
26348
26349 # type: verbatim
26350 #: ../tools/virt-cat.pl:63
26351 #, no-wrap
26352 msgid ""
26353 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26354 "\n"
26355 msgstr ""
26356
26357 # type: textblock
26358 #: ../tools/virt-cat.pl:65
26359 msgid "Find out what packages were recently installed:"
26360 msgstr ""
26361
26362 # type: verbatim
26363 #: ../tools/virt-cat.pl:67
26364 #, no-wrap
26365 msgid ""
26366 " virt-cat mydomain /var/log/yum.log | tail\n"
26367 "\n"
26368 msgstr ""
26369
26370 # type: textblock
26371 #: ../tools/virt-cat.pl:69
26372 msgid "Find out who is logged on inside a virtual machine:"
26373 msgstr ""
26374
26375 # type: verbatim
26376 #: ../tools/virt-cat.pl:71
26377 #, no-wrap
26378 msgid ""
26379 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26380 " who /tmp/utmp\n"
26381 "\n"
26382 msgstr ""
26383
26384 # type: textblock
26385 #: ../tools/virt-cat.pl:74
26386 msgid "or who was logged on:"
26387 msgstr ""
26388
26389 # type: verbatim
26390 #: ../tools/virt-cat.pl:76
26391 #, no-wrap
26392 msgid ""
26393 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26394 " last -f /tmp/wtmp\n"
26395 "\n"
26396 msgstr ""
26397
26398 # type: textblock
26399 #: ../tools/virt-cat.pl:187
26400 msgid ""
26401 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
26402 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26403 msgstr ""
26404
26405 # type: textblock
26406 #: ../tools/virt-tar.pl:33
26407 msgid "virt-tar - Extract or upload files to a virtual machine"
26408 msgstr ""
26409
26410 # type: verbatim
26411 #: ../tools/virt-tar.pl:37
26412 #, no-wrap
26413 msgid ""
26414 " virt-tar [--options] -x domname directory tarball\n"
26415 "\n"
26416 msgstr ""
26417
26418 # type: verbatim
26419 #: ../tools/virt-tar.pl:39
26420 #, no-wrap
26421 msgid ""
26422 " virt-tar [--options] -u domname tarball directory\n"
26423 "\n"
26424 msgstr ""
26425
26426 # type: verbatim
26427 #: ../tools/virt-tar.pl:41
26428 #, no-wrap
26429 msgid ""
26430 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26431 "\n"
26432 msgstr ""
26433
26434 # type: verbatim
26435 #: ../tools/virt-tar.pl:43
26436 #, no-wrap
26437 msgid ""
26438 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26439 "\n"
26440 msgstr ""
26441
26442 # type: textblock
26443 #: ../tools/virt-tar.pl:47
26444 msgid "Download C</home> from the VM into a local tarball:"
26445 msgstr ""
26446
26447 # type: verbatim
26448 #: ../tools/virt-tar.pl:49
26449 #, no-wrap
26450 msgid ""
26451 " virt-tar -x domname /home home.tar\n"
26452 "\n"
26453 msgstr ""
26454
26455 # type: verbatim
26456 #: ../tools/virt-tar.pl:51
26457 #, no-wrap
26458 msgid ""
26459 " virt-tar -zx domname /home home.tar.gz\n"
26460 "\n"
26461 msgstr ""
26462
26463 # type: textblock
26464 #: ../tools/virt-tar.pl:53
26465 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
26466 msgstr ""
26467
26468 # type: verbatim
26469 #: ../tools/virt-tar.pl:55
26470 #, no-wrap
26471 msgid ""
26472 " virt-tar -u domname uploadstuff.tar /tmp\n"
26473 "\n"
26474 msgstr ""
26475
26476 # type: verbatim
26477 #: ../tools/virt-tar.pl:57
26478 #, no-wrap
26479 msgid ""
26480 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
26481 "\n"
26482 msgstr ""
26483
26484 # type: textblock
26485 #: ../tools/virt-tar.pl:61
26486 msgid ""
26487 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
26488 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
26489 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
26490 msgstr ""
26491
26492 # type: textblock
26493 #: ../tools/virt-tar.pl:66
26494 msgid ""
26495 "You can use C<-x> (extract) on live virtual machines, but you might get "
26496 "inconsistent results or errors if there is filesystem activity inside the "
26497 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
26498 "work, but the only way to guarantee consistent results is if the virtual "
26499 "machine is shut down."
26500 msgstr ""
26501
26502 # type: textblock
26503 #: ../tools/virt-tar.pl:74
26504 msgid ""
26505 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
26506 "parts of a guest filesystem.  There are many possibilities: making backups, "
26507 "uploading data files, snooping on guest activity, fixing or customizing "
26508 "guests, etc."
26509 msgstr ""
26510
26511 # type: textblock
26512 #: ../tools/virt-tar.pl:79
26513 msgid ""
26514 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
26515 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
26516 "should look at the L<guestfish(1)> tool."
26517 msgstr ""
26518
26519 # type: textblock
26520 #: ../tools/virt-tar.pl:83
26521 msgid ""
26522 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
26523 "its contents (recursively) from the virtual machine into a local tarball.  "
26524 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
26525 "virtual machine.  You cannot use these two options together."
26526 msgstr ""
26527
26528 # type: textblock
26529 #: ../tools/virt-tar.pl:89
26530 msgid ""
26531 "In addition, you may need to use the C<-z> (gZip) option to enable "
26532 "compression.  When uploading, you have to specify C<-z> if the upload file "
26533 "is compressed because virt-tar won't detect this on its own."
26534 msgstr ""
26535
26536 # type: textblock
26537 #: ../tools/virt-tar.pl:93
26538 msgid ""
26539 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
26540 "example it cannot do PKZip files or bzip2 compression.  If you want that "
26541 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
26542 "the L<libguestfs(3)> API)."
26543 msgstr ""
26544
26545 # type: =item
26546 #: ../tools/virt-tar.pl:151
26547 msgid "B<-x> | B<--extract> | B<--download>"
26548 msgstr ""
26549
26550 # type: =item
26551 #: ../tools/virt-tar.pl:153
26552 msgid "B<-u> | B<--upload>"
26553 msgstr ""
26554
26555 # type: textblock
26556 #: ../tools/virt-tar.pl:155
26557 msgid ""
26558 "Use C<-x> to extract (download) a directory from a virtual machine to a "
26559 "local tarball."
26560 msgstr ""
26561
26562 # type: textblock
26563 #: ../tools/virt-tar.pl:158
26564 msgid ""
26565 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
26566 "Please read the L</WARNING> section above before using this option."
26567 msgstr ""
26568
26569 # type: textblock
26570 #: ../tools/virt-tar.pl:162
26571 msgid "You must specify exactly one of these options."
26572 msgstr ""
26573
26574 # type: =item
26575 #: ../tools/virt-tar.pl:168
26576 msgid "B<-z> | B<--gzip>"
26577 msgstr ""
26578
26579 # type: textblock
26580 #: ../tools/virt-tar.pl:170
26581 msgid "Specify that the input or output tarball is gzip-compressed."
26582 msgstr ""
26583
26584 # type: textblock
26585 #: ../tools/virt-tar.pl:283
26586 msgid ""
26587 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26588 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26589 "L<http://libguestfs.org/>."
26590 msgstr ""
26591
26592 # type: textblock
26593 #: ../tools/virt-rescue.pl:33
26594 msgid "virt-rescue - Run a rescue shell on a virtual machine"
26595 msgstr ""
26596
26597 # type: verbatim
26598 #: ../tools/virt-rescue.pl:37
26599 #, no-wrap
26600 msgid ""
26601 " virt-rescue [--options] domname\n"
26602 "\n"
26603 msgstr ""
26604
26605 # type: verbatim
26606 #: ../tools/virt-rescue.pl:39
26607 #, no-wrap
26608 msgid ""
26609 " virt-rescue [--options] disk.img [disk.img ...]\n"
26610 "\n"
26611 msgstr ""
26612
26613 # type: textblock
26614 #: ../tools/virt-rescue.pl:43
26615 msgid ""
26616 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
26617 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
26618 "you from doing this, but doesn't catch all cases."
26619 msgstr ""
26620
26621 # type: textblock
26622 #: ../tools/virt-rescue.pl:47
26623 msgid ""
26624 "However if you use the I<--ro> (read only) option, then you can attach a "
26625 "shell to a live virtual machine.  The results might be strange or "
26626 "inconsistent at times but you won't get disk corruption."
26627 msgstr ""
26628
26629 # type: textblock
26630 #: ../tools/virt-rescue.pl:53
26631 msgid ""
26632 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
26633 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
26634 "recovery tools which you can use to examine or rescue a virtual machine or "
26635 "disk image."
26636 msgstr ""
26637
26638 # type: textblock
26639 #: ../tools/virt-rescue.pl:58
26640 msgid ""
26641 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
26642 "on disk image(s):"
26643 msgstr ""
26644
26645 # type: verbatim
26646 #: ../tools/virt-rescue.pl:61
26647 #, no-wrap
26648 msgid ""
26649 " virt-rescue GuestName\n"
26650 "\n"
26651 msgstr ""
26652
26653 # type: verbatim
26654 #: ../tools/virt-rescue.pl:63
26655 #, no-wrap
26656 msgid ""
26657 " virt-rescue --ro /path/to/disk.img\n"
26658 "\n"
26659 msgstr ""
26660
26661 # type: verbatim
26662 #: ../tools/virt-rescue.pl:65
26663 #, no-wrap
26664 msgid ""
26665 " virt-rescue /dev/sdc\n"
26666 "\n"
26667 msgstr ""
26668
26669 # type: textblock
26670 #: ../tools/virt-rescue.pl:67
26671 msgid "For live VMs you I<must> use the --ro option."
26672 msgstr ""
26673
26674 # type: textblock
26675 #: ../tools/virt-rescue.pl:69
26676 msgid ""
26677 "When you run virt-rescue on a virtual machine or disk image, you are placed "
26678 "in an interactive bash shell where you can use many ordinary Linux "
26679 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
26680 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
26681 "is an empty directory called C</sysroot> where you can mount filesystems."
26682 msgstr ""
26683
26684 # type: textblock
26685 #: ../tools/virt-rescue.pl:76
26686 msgid ""
26687 "In the example below, we list logical volumes, then choose one to mount "
26688 "under C</sysroot>:"
26689 msgstr ""
26690
26691 # type: verbatim
26692 #: ../tools/virt-rescue.pl:79
26693 #, no-wrap
26694 msgid ""
26695 " ><rescue> lvs\n"
26696 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
26697 " lv_root vg_f11x64 -wi-a-   8.83G\n"
26698 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
26699 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
26700 " ><rescue> ls /sysroot\n"
26701 "\n"
26702 msgstr ""
26703
26704 # type: textblock
26705 #: ../tools/virt-rescue.pl:86
26706 msgid ""
26707 "If you don't know what filesystems are available on the virtual machine then "
26708 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
26709 msgstr ""
26710
26711 # type: textblock
26712 #: ../tools/virt-rescue.pl:92
26713 msgid ""
26714 "Virt-rescue can be used on I<any> disk image file or device, not just a "
26715 "virtual machine.  For example you can use it on a blank file if you want to "
26716 "partition that file (although we would recommend using L<guestfish(1)> "
26717 "instead as it is more suitable for this purpose).  You can even use "
26718 "virt-rescue on things like SD cards."
26719 msgstr ""
26720
26721 # type: textblock
26722 #: ../tools/virt-rescue.pl:98
26723 msgid ""
26724 "This tool is just designed for quick interactive hacking on a virtual "
26725 "machine.  For more structured access to a virtual machine disk image, you "
26726 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
26727 "make scripted changes to guests, use L<guestfish(1)>."
26728 msgstr ""
26729
26730 # type: =item
26731 #: ../tools/virt-rescue.pl:127
26732 msgid "B<--append kernelopts>"
26733 msgstr ""
26734
26735 # type: textblock
26736 #: ../tools/virt-rescue.pl:129
26737 msgid "Pass additional options to the rescue kernel."
26738 msgstr ""
26739
26740 # type: =item
26741 #: ../tools/virt-rescue.pl:164
26742 msgid "B<--memsize MB> | B<-m MB>"
26743 msgstr ""
26744
26745 # type: textblock
26746 #: ../tools/virt-rescue.pl:166
26747 msgid ""
26748 "Change the amount of memory allocated to the rescue system.  The default is "
26749 "set by libguestfs and is small but adequate for running system tools.  The "
26750 "occasional program might need more memory.  The parameter is specified in "
26751 "megabytes."
26752 msgstr ""
26753
26754 # type: =item
26755 #: ../tools/virt-rescue.pl:175
26756 msgid "B<--network MB>"
26757 msgstr ""
26758
26759 # type: textblock
26760 #: ../tools/virt-rescue.pl:177
26761 msgid "Enable QEMU user networking in the guest."
26762 msgstr ""
26763
26764 # type: =item
26765 #: ../tools/virt-rescue.pl:183
26766 msgid "B<--ro> | B<-r>"
26767 msgstr ""
26768
26769 # type: textblock
26770 #: ../tools/virt-rescue.pl:185
26771 msgid "Open the image read-only."
26772 msgstr ""
26773
26774 # type: textblock
26775 #: ../tools/virt-rescue.pl:197
26776 msgid ""
26777 "Enable SELinux in the rescue appliance.  You should read "
26778 "L<guestfs(3)/SELINUX> before using this option."
26779 msgstr ""
26780
26781 # type: textblock
26782 #: ../tools/virt-rescue.pl:257
26783 msgid ""
26784 "Several environment variables affect virt-rescue.  See "
26785 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
26786 msgstr ""
26787
26788 # type: textblock
26789 #: ../tools/virt-rescue.pl:269
26790 msgid ""
26791 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26792 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26793 msgstr ""
26794
26795 # type: textblock
26796 #: ../tools/virt-make-fs.pl:37
26797 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
26798 msgstr ""
26799
26800 # type: verbatim
26801 #: ../tools/virt-make-fs.pl:41
26802 #, no-wrap
26803 msgid ""
26804 " virt-make-fs [--options] input.tar output.img\n"
26805 "\n"
26806 msgstr ""
26807
26808 # type: verbatim
26809 #: ../tools/virt-make-fs.pl:43
26810 #, no-wrap
26811 msgid ""
26812 " virt-make-fs [--options] input.tar.gz output.img\n"
26813 "\n"
26814 msgstr ""
26815
26816 # type: verbatim
26817 #: ../tools/virt-make-fs.pl:45
26818 #, no-wrap
26819 msgid ""
26820 " virt-make-fs [--options] directory output.img\n"
26821 "\n"
26822 msgstr ""
26823
26824 # type: textblock
26825 #: ../tools/virt-make-fs.pl:49
26826 msgid ""
26827 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
26828 "archive or some files in a directory.  It is similar to tools like "
26829 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
26830 "it can create common filesystem types like ext2/3 or NTFS, which can be "
26831 "useful if you want to attach these filesystems to existing virtual machines "
26832 "(eg. to import large amounts of read-only data to a VM)."
26833 msgstr ""
26834
26835 # type: textblock
26836 #: ../tools/virt-make-fs.pl:57
26837 msgid "Basic usage is:"
26838 msgstr ""
26839
26840 # type: verbatim
26841 #: ../tools/virt-make-fs.pl:59
26842 #, no-wrap
26843 msgid ""
26844 " virt-make-fs input output\n"
26845 "\n"
26846 msgstr ""
26847
26848 # type: textblock
26849 #: ../tools/virt-make-fs.pl:61
26850 msgid ""
26851 "where C<input> is either a directory containing files that you want to add, "
26852 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
26853 "C<output> is a disk image.  The input type is detected automatically.  The "
26854 "output disk image defaults to a raw ext2 image unless you specify extra "
26855 "flags (see L</OPTIONS> below)."
26856 msgstr ""
26857
26858 # type: =head2
26859 #: ../tools/virt-make-fs.pl:67
26860 msgid "EXTRA SPACE"
26861 msgstr ""
26862
26863 # type: textblock
26864 #: ../tools/virt-make-fs.pl:69
26865 msgid ""
26866 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
26867 "the files that it contains, but might have extra space.  Depending on how "
26868 "you are going to use the output, you might think this extra space is wasted "
26869 "and want to minimize it, or you might want to leave space so that more files "
26870 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
26871 "but you can use the C<--size> flag to leave space in the filesystem if you "
26872 "want it."
26873 msgstr ""
26874
26875 # type: textblock
26876 #: ../tools/virt-make-fs.pl:77
26877 msgid ""
26878 "An alternative way to leave extra space but not make the output image any "
26879 "bigger is to use an alternative disk image format (instead of the default "
26880 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
26881 "image format (check your hypervisor supports this before using it).  This "
26882 "allows you to choose a large C<--size> but the extra space won't actually be "
26883 "allocated in the image until you try to store something in it."
26884 msgstr ""
26885
26886 # type: textblock
26887 #: ../tools/virt-make-fs.pl:85
26888 msgid ""
26889 "Don't forget that you can also use local commands including L<resize2fs(8)> "
26890 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
26891 "virt-make-resize to build another image from scratch."
26892 msgstr ""
26893
26894 # type: =head3
26895 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
26896 msgid "EXAMPLE"
26897 msgstr ""
26898
26899 # type: verbatim
26900 #: ../tools/virt-make-fs.pl:91
26901 #, no-wrap
26902 msgid ""
26903 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
26904 "\n"
26905 msgstr ""
26906
26907 # type: =head2
26908 #: ../tools/virt-make-fs.pl:93
26909 msgid "FILESYSTEM TYPE"
26910 msgstr ""
26911
26912 # type: textblock
26913 #: ../tools/virt-make-fs.pl:95
26914 msgid ""
26915 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
26916 "libguestfs supports can be used (but I<not> read-only formats like "
26917 "ISO9660).  Here are some of the more common choices:"
26918 msgstr ""
26919
26920 # type: =item
26921 #: ../tools/virt-make-fs.pl:101
26922 msgid "I<ext3>"
26923 msgstr ""
26924
26925 # type: textblock
26926 #: ../tools/virt-make-fs.pl:103
26927 msgid ""
26928 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
26929 "you are not going to use the filesystem in a way that requires the journal, "
26930 "then this is just wasted overhead."
26931 msgstr ""
26932
26933 # type: =item
26934 #: ../tools/virt-make-fs.pl:107
26935 msgid "I<ntfs> or I<vfat>"
26936 msgstr ""
26937
26938 # type: textblock
26939 #: ../tools/virt-make-fs.pl:109
26940 msgid "Useful if exporting data to a Windows guest."
26941 msgstr ""
26942
26943 # type: textblock
26944 #: ../tools/virt-make-fs.pl:111
26945 msgid ""
26946 "I<Note for vfat>: The tar archive or local directory must only contain files "
26947 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
26948 "program running within libguestfs is unable to change the ownership of "
26949 "non-root files, since vfat itself does not support this."
26950 msgstr ""
26951
26952 # type: =item
26953 #: ../tools/virt-make-fs.pl:116
26954 msgid "I<minix>"
26955 msgstr ""
26956
26957 # type: textblock
26958 #: ../tools/virt-make-fs.pl:118
26959 msgid ""
26960 "Lower overhead than C<ext2>, but certain limitations on filename length and "
26961 "total filesystem size."
26962 msgstr ""
26963
26964 # type: verbatim
26965 #: ../tools/virt-make-fs.pl:125
26966 #, no-wrap
26967 msgid ""
26968 " virt-make-fs --type=minix input minixfs.img\n"
26969 "\n"
26970 msgstr ""
26971
26972 # type: =head2
26973 #: ../tools/virt-make-fs.pl:127
26974 msgid "TO PARTITION OR NOT TO PARTITION"
26975 msgstr ""
26976
26977 # type: textblock
26978 #: ../tools/virt-make-fs.pl:129
26979 msgid "Optionally virt-make-fs can add a partition table to the output disk."
26980 msgstr ""
26981
26982 # type: textblock
26983 #: ../tools/virt-make-fs.pl:131
26984 msgid ""
26985 "Adding a partition can make the disk image more compatible with certain "
26986 "virtualized operating systems which don't expect to see a filesystem "
26987 "directly located on a block device (Linux doesn't care and will happily "
26988 "handle both types)."
26989 msgstr ""
26990
26991 # type: textblock
26992 #: ../tools/virt-make-fs.pl:136
26993 msgid ""
26994 "On the other hand, if you have a partition table then the output image is no "
26995 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
26996 "directly on a partitioned disk image.  (However libguestfs tools such as "
26997 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
26998 msgstr ""
26999
27000 # type: textblock
27001 #: ../tools/virt-make-fs.pl:144
27002 msgid "Add an MBR partition:"
27003 msgstr ""
27004
27005 # type: verbatim
27006 #: ../tools/virt-make-fs.pl:146
27007 #, no-wrap
27008 msgid ""
27009 " virt-make-fs --partition -- input disk.img\n"
27010 "\n"
27011 msgstr ""
27012
27013 # type: textblock
27014 #: ../tools/virt-make-fs.pl:148
27015 msgid ""
27016 "If the output disk image could be terabyte-sized or larger, it's better to "
27017 "use an EFI/GPT-compatible partition table:"
27018 msgstr ""
27019
27020 # type: verbatim
27021 #: ../tools/virt-make-fs.pl:151
27022 #, no-wrap
27023 msgid ""
27024 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27025 "\n"
27026 msgstr ""
27027
27028 # type: textblock
27029 #: ../tools/virt-make-fs.pl:179
27030 msgid "Enable debugging information."
27031 msgstr ""
27032
27033 # type: =item
27034 #: ../tools/virt-make-fs.pl:185
27035 msgid "B<--size=E<lt>NE<gt>>"
27036 msgstr ""
27037
27038 # type: =item
27039 #: ../tools/virt-make-fs.pl:187
27040 msgid "B<--size=+E<lt>NE<gt>>"
27041 msgstr ""
27042
27043 # type: =item
27044 #: ../tools/virt-make-fs.pl:189
27045 msgid "B<-s E<lt>NE<gt>>"
27046 msgstr ""
27047
27048 # type: =item
27049 #: ../tools/virt-make-fs.pl:191
27050 msgid "B<-s +E<lt>NE<gt>>"
27051 msgstr ""
27052
27053 # type: textblock
27054 #: ../tools/virt-make-fs.pl:193
27055 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27056 msgstr ""
27057
27058 # type: textblock
27059 #: ../tools/virt-make-fs.pl:196
27060 msgid ""
27061 "If this option is I<not> given, then the output image will be just large "
27062 "enough to contain all the files, with not much wasted space."
27063 msgstr ""
27064
27065 # type: textblock
27066 #: ../tools/virt-make-fs.pl:199
27067 msgid ""
27068 "To choose a fixed size output disk, specify an absolute number followed by "
27069 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27070 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27071 "files, else you will get an error."
27072 msgstr ""
27073
27074 # type: textblock
27075 #: ../tools/virt-make-fs.pl:204
27076 msgid ""
27077 "To leave extra space, specify C<+> (plus sign) and a number followed by "
27078 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27079 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27080 "the input files, and (approximately) an extra 200 MB free space."
27081 msgstr ""
27082
27083 # type: textblock
27084 #: ../tools/virt-make-fs.pl:210
27085 msgid ""
27086 "Note that virt-make-fs estimates free space, and therefore will not produce "
27087 "filesystems containing precisely the free space requested.  (It is much more "
27088 "expensive and time-consuming to produce a filesystem which has precisely the "
27089 "desired free space)."
27090 msgstr ""
27091
27092 # type: =item
27093 #: ../tools/virt-make-fs.pl:219
27094 msgid "B<--format=E<lt>fmtE<gt>>"
27095 msgstr ""
27096
27097 # type: =item
27098 #: ../tools/virt-make-fs.pl:221
27099 msgid "B<-F E<lt>fmtE<gt>>"
27100 msgstr ""
27101
27102 # type: textblock
27103 #: ../tools/virt-make-fs.pl:223
27104 msgid "Choose the output disk image format."
27105 msgstr ""
27106
27107 # type: textblock
27108 #: ../tools/virt-make-fs.pl:225
27109 msgid "The default is C<raw> (raw disk image)."
27110 msgstr ""
27111
27112 # type: textblock
27113 #: ../tools/virt-make-fs.pl:227
27114 msgid ""
27115 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27116 "that would really make sense here is C<qcow2>."
27117 msgstr ""
27118
27119 # type: =item
27120 #: ../tools/virt-make-fs.pl:234
27121 msgid "B<--type=E<lt>fsE<gt>>"
27122 msgstr ""
27123
27124 # type: =item
27125 #: ../tools/virt-make-fs.pl:236
27126 msgid "B<-t E<lt>fsE<gt>>"
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-make-fs.pl:238
27131 msgid "Choose the output filesystem type."
27132 msgstr ""
27133
27134 # type: textblock
27135 #: ../tools/virt-make-fs.pl:240
27136 msgid "The default is C<ext2>."
27137 msgstr ""
27138
27139 # type: textblock
27140 #: ../tools/virt-make-fs.pl:242
27141 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
27142 msgstr ""
27143
27144 # type: =item
27145 #: ../tools/virt-make-fs.pl:249
27146 msgid "B<--partition>"
27147 msgstr ""
27148
27149 # type: =item
27150 #: ../tools/virt-make-fs.pl:251
27151 msgid "B<--partition=E<lt>parttypeE<gt>>"
27152 msgstr ""
27153
27154 # type: textblock
27155 #: ../tools/virt-make-fs.pl:253
27156 msgid ""
27157 "If specified, this flag adds an MBR partition table to the output disk "
27158 "image."
27159 msgstr ""
27160
27161 # type: textblock
27162 #: ../tools/virt-make-fs.pl:256
27163 msgid ""
27164 "You can change the partition table type, eg. C<--partition=gpt> for large "
27165 "disks."
27166 msgstr ""
27167
27168 # type: textblock
27169 #: ../tools/virt-make-fs.pl:259
27170 msgid ""
27171 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27172 "might consider the next parameter to be the partition type.  For example:"
27173 msgstr ""
27174
27175 # type: verbatim
27176 #: ../tools/virt-make-fs.pl:263
27177 #, no-wrap
27178 msgid ""
27179 " virt-make-fs --partition input.tar ...\n"
27180 "\n"
27181 msgstr ""
27182
27183 # type: textblock
27184 #: ../tools/virt-make-fs.pl:265
27185 msgid ""
27186 "would cause virt-make-fs to think you wanted to use a partition type of "
27187 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27188 "dash) between options and the input file argument:"
27189 msgstr ""
27190
27191 # type: verbatim
27192 #: ../tools/virt-make-fs.pl:269
27193 #, no-wrap
27194 msgid ""
27195 " virt-make-fs --partition -- input.tar ...\n"
27196 "\n"
27197 msgstr ""
27198
27199 # type: textblock
27200 #: ../tools/virt-make-fs.pl:536
27201 msgid ""
27202 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27203 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
27204 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27205 msgstr ""
27206
27207 # type: verbatim
27208 #: ../tools/virt-make-fs.pl:553
27209 #, no-wrap
27210 msgid ""
27211 " export LIBGUESTFS_DEBUG=1\n"
27212 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
27213 "\n"
27214 msgstr ""
27215
27216 # type: textblock
27217 #: ../tools/virt-make-fs.pl:556
27218 msgid ""
27219 "Attach /tmp/virt-make-fs.log to a new bug report at "
27220 "L<https://bugzilla.redhat.com/>"
27221 msgstr ""
27222
27223 # type: textblock
27224 #: ../tools/virt-list-partitions.pl:32
27225 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
27226 msgstr ""
27227
27228 # type: verbatim
27229 #: ../tools/virt-list-partitions.pl:36
27230 #, no-wrap
27231 msgid ""
27232 " virt-list-partitions [--options] domname\n"
27233 "\n"
27234 msgstr ""
27235
27236 # type: verbatim
27237 #: ../tools/virt-list-partitions.pl:38
27238 #, no-wrap
27239 msgid ""
27240 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
27241 "\n"
27242 msgstr ""
27243
27244 # type: textblock
27245 #: ../tools/virt-list-partitions.pl:42
27246 msgid ""
27247 "C<virt-list-partitions> is a command line tool to list the partitions that "
27248 "are contained in a virtual machine or disk image.  It is mainly useful as a "
27249 "first step to using L<virt-resize(1)>."
27250 msgstr ""
27251
27252 # type: textblock
27253 #: ../tools/virt-list-partitions.pl:47
27254 msgid ""
27255 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
27256 "functionality.  For more complex cases you should look at the "
27257 "L<guestfish(1)> tool."
27258 msgstr ""
27259
27260 # type: =item
27261 #: ../tools/virt-list-partitions.pl:104
27262 msgid "B<-h> | B<--human-readable>"
27263 msgstr ""
27264
27265 # type: textblock
27266 #: ../tools/virt-list-partitions.pl:106
27267 msgid "Show sizes in human-readable form (eg. \"1G\")."
27268 msgstr ""
27269
27270 # type: textblock
27271 #: ../tools/virt-list-partitions.pl:114
27272 msgid ""
27273 "With this option, C<virt-list-partitions> displays the type and size of each "
27274 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
27275 msgstr ""
27276
27277 # type: =item
27278 #: ../tools/virt-list-partitions.pl:121
27279 msgid "B<-t> | B<--total>"
27280 msgstr ""
27281
27282 # type: textblock
27283 #: ../tools/virt-list-partitions.pl:123
27284 msgid "Display the total size of each block device (as a separate row or rows)."
27285 msgstr ""
27286
27287 # type: textblock
27288 #: ../tools/virt-list-partitions.pl:256
27289 msgid ""
27290 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
27291 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27292 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27293 msgstr ""