Version 1.7.1.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.7.1\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-03 21:09+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: ENCODING"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-cat.pl:29 ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29 ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
21 msgid "utf8"
22 msgstr ""
23
24 # type: =head1
25 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr ""
28
29 # type: textblock
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
32 msgstr ""
33
34 # type: =head1
35 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
36 msgid "SYNOPSIS"
37 msgstr ""
38
39 # type: verbatim
40 #: ../src/guestfs.pod:9
41 #, no-wrap
42 msgid ""
43 " #include <guestfs.h>\n"
44 " \n"
45 msgstr ""
46
47 # type: verbatim
48 #: ../src/guestfs.pod:11
49 #, no-wrap
50 msgid ""
51 " guestfs_h *g = guestfs_create ();\n"
52 " guestfs_add_drive (g, \"guest.img\");\n"
53 " guestfs_launch (g);\n"
54 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
55 " guestfs_touch (g, \"/hello\");\n"
56 " guestfs_umount (g, \"/\");\n"
57 " guestfs_sync (g);\n"
58 " guestfs_close (g);\n"
59 "\n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:20
64 #, no-wrap
65 msgid ""
66 " cc prog.c -o prog -lguestfs\n"
67 "or:\n"
68 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
69 "\n"
70 msgstr ""
71
72 # type: =head1
73 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 # type: textblock
78 #: ../src/guestfs.pod:26
79 msgid ""
80 "Libguestfs is a library for accessing and modifying guest disk images.  "
81 "Amongst the things this is good for: making batch configuration changes to "
82 "guests, getting disk used/free statistics (see also: virt-df), migrating "
83 "between virtualization systems (see also: virt-p2v), performing partial "
84 "backups, performing partial guest clones, cloning guests and changing "
85 "registry/UUID/hostname info, and much else besides."
86 msgstr ""
87
88 # type: textblock
89 #: ../src/guestfs.pod:34
90 msgid ""
91 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
92 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
93 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
94 "qcow2, vmdk."
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:39
99 msgid ""
100 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
101 "what filesystem is in each LV, etc.).  It can also run commands in the "
102 "context of the guest.  Also you can access filesystems over FUSE."
103 msgstr ""
104
105 # type: textblock
106 #: ../src/guestfs.pod:44
107 msgid ""
108 "Libguestfs is a library that can be linked with C and C++ management "
109 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
110 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
111 "line."
112 msgstr ""
113
114 # type: textblock
115 #: ../src/guestfs.pod:49
116 msgid ""
117 "You don't need to be root to use libguestfs, although obviously you do need "
118 "enough permissions to access the disk images."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:52
123 msgid ""
124 "Libguestfs is a large API because it can do many things.  For a gentle "
125 "introduction, please read the L</API OVERVIEW> section next."
126 msgstr ""
127
128 # type: =head1
129 #: ../src/guestfs.pod:55
130 msgid "API OVERVIEW"
131 msgstr ""
132
133 # type: textblock
134 #: ../src/guestfs.pod:57
135 msgid ""
136 "This section provides a gentler overview of the libguestfs API.  We also try "
137 "to group API calls together, where that may not be obvious from reading "
138 "about the individual calls in the main section of this manual."
139 msgstr ""
140
141 # type: =head2
142 #: ../src/guestfs.pod:62
143 msgid "HANDLES"
144 msgstr ""
145
146 # type: textblock
147 #: ../src/guestfs.pod:64
148 msgid ""
149 "Before you can use libguestfs calls, you have to create a handle.  Then you "
150 "must add at least one disk image to the handle, followed by launching the "
151 "handle, then performing whatever operations you want, and finally closing "
152 "the handle.  By convention we use the single letter C<g> for the name of the "
153 "handle variable, although of course you can use any name you want."
154 msgstr ""
155
156 # type: textblock
157 #: ../src/guestfs.pod:71
158 msgid "The general structure of all libguestfs-using programs looks like this:"
159 msgstr ""
160
161 # type: verbatim
162 #: ../src/guestfs.pod:74
163 #, no-wrap
164 msgid ""
165 " guestfs_h *g = guestfs_create ();\n"
166 " \n"
167 msgstr ""
168
169 # type: verbatim
170 #: ../src/guestfs.pod:76
171 #, no-wrap
172 msgid ""
173 " /* Call guestfs_add_drive additional times if there are\n"
174 "  * multiple disk images.\n"
175 "  */\n"
176 " guestfs_add_drive (g, \"guest.img\");\n"
177 " \n"
178 msgstr ""
179
180 # type: verbatim
181 #: ../src/guestfs.pod:81
182 #, no-wrap
183 msgid ""
184 " /* Most manipulation calls won't work until you've launched\n"
185 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
186 "  * and _before_ other commands.\n"
187 "  */\n"
188 " guestfs_launch (g);\n"
189 " \n"
190 msgstr ""
191
192 # type: verbatim
193 #: ../src/guestfs.pod:87
194 #, no-wrap
195 msgid ""
196 " /* Now you can examine what partitions, LVs etc are available.\n"
197 "  */\n"
198 " char **partitions = guestfs_list_partitions (g);\n"
199 " char **logvols = guestfs_lvs (g);\n"
200 " \n"
201 msgstr ""
202
203 # type: verbatim
204 #: ../src/guestfs.pod:92
205 #, no-wrap
206 msgid ""
207 " /* To access a filesystem in the image, you must mount it.\n"
208 "  */\n"
209 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
210 " \n"
211 msgstr ""
212
213 # type: verbatim
214 #: ../src/guestfs.pod:96
215 #, no-wrap
216 msgid ""
217 " /* Now you can perform filesystem actions on the guest\n"
218 "  * disk image.\n"
219 "  */\n"
220 " guestfs_touch (g, \"/hello\");\n"
221 " \n"
222 msgstr ""
223
224 # type: verbatim
225 #: ../src/guestfs.pod:101
226 #, no-wrap
227 msgid ""
228 " /* You only need to call guestfs_sync if you have made\n"
229 "  * changes to the guest image.  (But if you've made changes\n"
230 "  * then you *must* sync).  See also: guestfs_umount and\n"
231 "  * guestfs_umount_all calls.\n"
232 "  */\n"
233 " guestfs_sync (g);\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:108
239 #, no-wrap
240 msgid ""
241 " /* Close the handle 'g'. */\n"
242 " guestfs_close (g);\n"
243 "\n"
244 msgstr ""
245
246 # type: textblock
247 #: ../src/guestfs.pod:111
248 msgid ""
249 "The code above doesn't include any error checking.  In real code you should "
250 "check return values carefully for errors.  In general all functions that "
251 "return integers return C<-1> on error, and all functions that return "
252 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
253 "how to handle errors, and consult the documentation for each function call "
254 "below to see precisely how they return error indications."
255 msgstr ""
256
257 # type: =head2
258 #: ../src/guestfs.pod:119
259 msgid "DISK IMAGES"
260 msgstr ""
261
262 # type: textblock
263 #: ../src/guestfs.pod:121
264 msgid ""
265 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
266 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
267 "actual block device, or simply an empty file of zeroes that you have created "
268 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
269 "of these."
270 msgstr ""
271
272 # type: textblock
273 #: ../src/guestfs.pod:127
274 msgid ""
275 "The call you should use in modern code for adding drives is "
276 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
277 "specifying that the format is raw, do:"
278 msgstr ""
279
280 # type: verbatim
281 #: ../src/guestfs.pod:131
282 #, no-wrap
283 msgid ""
284 " guestfs_add_drive_opts (g, filename,\n"
285 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
286 "                         -1);\n"
287 "\n"
288 msgstr ""
289
290 # type: textblock
291 #: ../src/guestfs.pod:135
292 msgid "You can add a disk read-only using:"
293 msgstr ""
294
295 # type: verbatim
296 #: ../src/guestfs.pod:137
297 #, no-wrap
298 msgid ""
299 " guestfs_add_drive_opts (g, filename,\n"
300 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
301 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
302 "                         -1);\n"
303 "\n"
304 msgstr ""
305
306 # type: textblock
307 #: ../src/guestfs.pod:142
308 msgid ""
309 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
310 "libguestfs won't modify the file."
311 msgstr ""
312
313 # type: textblock
314 #: ../src/guestfs.pod:145
315 msgid ""
316 "Be extremely cautious if the disk image is in use, eg. if it is being used "
317 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
318 "corruption, but adding it read-only is safe."
319 msgstr ""
320
321 # type: textblock
322 #: ../src/guestfs.pod:149
323 msgid ""
324 "You must add at least one disk image, and you may add multiple disk images.  "
325 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
326 "first one you added), C</dev/sdb> (for the second one you added), etc."
327 msgstr ""
328
329 # type: textblock
330 #: ../src/guestfs.pod:154
331 msgid ""
332 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
333 "can call L</guestfs_list_devices> to get a list of the device names, in the "
334 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
335 msgstr ""
336
337 # type: =head2
338 #: ../src/guestfs.pod:159
339 msgid "MOUNTING"
340 msgstr ""
341
342 # type: textblock
343 #: ../src/guestfs.pod:161
344 msgid ""
345 "Before you can read or write files, create directories and so on in a disk "
346 "image that contains filesystems, you have to mount those filesystems using "
347 "L</guestfs_mount>.  If you already know that a disk image contains (for "
348 "example) one partition with a filesystem on that partition, then you can "
349 "mount it directly:"
350 msgstr ""
351
352 # type: verbatim
353 #: ../src/guestfs.pod:167
354 #, no-wrap
355 msgid ""
356 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
357 "\n"
358 msgstr ""
359
360 # type: textblock
361 #: ../src/guestfs.pod:169
362 msgid ""
363 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
364 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
365 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
366 msgstr ""
367
368 # type: textblock
369 #: ../src/guestfs.pod:173
370 msgid ""
371 "If you are given a disk image and you don't know what it contains then you "
372 "have to find out.  Libguestfs can do that too: use "
373 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
374 "and LVs, and either try mounting each to see what is mountable, or else "
375 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
376 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
377 "But you might find it easier to look at higher level programs built on top "
378 "of libguestfs, in particular L<virt-inspector(1)>."
379 msgstr ""
380
381 # type: textblock
382 #: ../src/guestfs.pod:183
383 msgid ""
384 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
385 "several other variations of the C<guestfs_mount_*> call."
386 msgstr ""
387
388 # type: =head2
389 #: ../src/guestfs.pod:186
390 msgid "FILESYSTEM ACCESS AND MODIFICATION"
391 msgstr ""
392
393 # type: textblock
394 #: ../src/guestfs.pod:188
395 msgid ""
396 "The majority of the libguestfs API consists of fairly low-level calls for "
397 "accessing and modifying the files, directories, symlinks etc on mounted "
398 "filesystems.  There are over a hundred such calls which you can find listed "
399 "in detail below in this man page, and we don't even pretend to cover them "
400 "all in this overview."
401 msgstr ""
402
403 # type: textblock
404 #: ../src/guestfs.pod:194
405 msgid ""
406 "Specify filenames as full paths, starting with C<\"/\"> and including the "
407 "mount point."
408 msgstr ""
409
410 # type: textblock
411 #: ../src/guestfs.pod:197
412 msgid ""
413 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
414 "the file called C<\"etc/passwd\"> then you could do:"
415 msgstr ""
416
417 # type: verbatim
418 #: ../src/guestfs.pod:200
419 #, no-wrap
420 msgid ""
421 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
422 "\n"
423 msgstr ""
424
425 # type: textblock
426 #: ../src/guestfs.pod:202
427 msgid ""
428 "This would return C<data> as a newly allocated buffer containing the full "
429 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
430 "or C<NULL> if there was an error."
431 msgstr ""
432
433 # type: textblock
434 #: ../src/guestfs.pod:206
435 msgid ""
436 "As another example, to create a top-level directory on that filesystem "
437 "called C<\"var\"> you would do:"
438 msgstr ""
439
440 # type: verbatim
441 #: ../src/guestfs.pod:209
442 #, no-wrap
443 msgid ""
444 " guestfs_mkdir (g, \"/var\");\n"
445 "\n"
446 msgstr ""
447
448 # type: textblock
449 #: ../src/guestfs.pod:211
450 msgid "To create a symlink you could do:"
451 msgstr ""
452
453 # type: verbatim
454 #: ../src/guestfs.pod:213
455 #, no-wrap
456 msgid ""
457 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
458 "               \"/etc/rc3.d/S30portmap\");\n"
459 "\n"
460 msgstr ""
461
462 # type: textblock
463 #: ../src/guestfs.pod:216
464 msgid ""
465 "Libguestfs will reject attempts to use relative paths and there is no "
466 "concept of a current working directory."
467 msgstr ""
468
469 # type: textblock
470 #: ../src/guestfs.pod:219
471 msgid ""
472 "Libguestfs can return errors in many situations: for example if the "
473 "filesystem isn't writable, or if a file or directory that you requested "
474 "doesn't exist.  If you are using the C API (documented here)  you have to "
475 "check for those error conditions after each call.  (Other language bindings "
476 "turn these errors into exceptions)."
477 msgstr ""
478
479 # type: textblock
480 #: ../src/guestfs.pod:225
481 msgid ""
482 "File writes are affected by the per-handle umask, set by calling "
483 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
484 msgstr ""
485
486 # type: =head2
487 #: ../src/guestfs.pod:228
488 msgid "PARTITIONING"
489 msgstr ""
490
491 # type: textblock
492 #: ../src/guestfs.pod:230
493 msgid ""
494 "Libguestfs contains API calls to read, create and modify partition tables on "
495 "disk images."
496 msgstr ""
497
498 # type: textblock
499 #: ../src/guestfs.pod:233
500 msgid ""
501 "In the common case where you want to create a single partition covering the "
502 "whole disk, you should use the L</guestfs_part_disk> call:"
503 msgstr ""
504
505 # type: verbatim
506 #: ../src/guestfs.pod:237
507 #, no-wrap
508 msgid ""
509 " const char *parttype = \"mbr\";\n"
510 " if (disk_is_larger_than_2TB)\n"
511 "   parttype = \"gpt\";\n"
512 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
513 "\n"
514 msgstr ""
515
516 # type: textblock
517 #: ../src/guestfs.pod:242
518 msgid ""
519 "Obviously this effectively wipes anything that was on that disk image "
520 "before."
521 msgstr ""
522
523 # type: =head2
524 #: ../src/guestfs.pod:245
525 msgid "LVM2"
526 msgstr ""
527
528 # type: textblock
529 #: ../src/guestfs.pod:247
530 msgid ""
531 "Libguestfs provides access to a large part of the LVM2 API, such as "
532 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
533 "unless you familiarize yourself with the concepts of physical volumes, "
534 "volume groups and logical volumes."
535 msgstr ""
536
537 # type: textblock
538 #: ../src/guestfs.pod:252
539 msgid ""
540 "This author strongly recommends reading the LVM HOWTO, online at "
541 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
542 msgstr ""
543
544 # type: =head2
545 #: ../src/guestfs.pod:255
546 msgid "DOWNLOADING"
547 msgstr ""
548
549 # type: textblock
550 #: ../src/guestfs.pod:257
551 msgid ""
552 "Use L</guestfs_cat> to download small, text only files.  This call is "
553 "limited to files which are less than 2 MB and which cannot contain any ASCII "
554 "NUL (C<\\0>) characters.  However it has a very simple to use API."
555 msgstr ""
556
557 # type: textblock
558 #: ../src/guestfs.pod:262
559 msgid ""
560 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
561 "bit data, since it returns a (pointer, size) pair.  However it is still "
562 "limited to \"small\" files, less than 2 MB."
563 msgstr ""
564
565 # type: textblock
566 #: ../src/guestfs.pod:266
567 msgid ""
568 "L</guestfs_download> can be used to download any file, with no limits on "
569 "content or size (even files larger than 4 GB)."
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:269
574 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
575 msgstr ""
576
577 # type: =head2
578 #: ../src/guestfs.pod:272
579 msgid "UPLOADING"
580 msgstr ""
581
582 # type: textblock
583 #: ../src/guestfs.pod:274
584 msgid ""
585 "It's often the case that you want to write a file or files to the disk "
586 "image."
587 msgstr ""
588
589 # type: textblock
590 #: ../src/guestfs.pod:277
591 msgid ""
592 "To write a small file with fixed content, use L</guestfs_write>.  To create "
593 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
594 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
595 "variety of other functions for creating test files, for example "
596 "L</guestfs_fill> and L</guestfs_fill_pattern>."
597 msgstr ""
598
599 # type: textblock
600 #: ../src/guestfs.pod:283
601 msgid ""
602 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
603 "file content or size (even files larger than 4 GB)."
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:286
608 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
609 msgstr ""
610
611 # type: textblock
612 #: ../src/guestfs.pod:288
613 msgid ""
614 "However the fastest way to upload I<large numbers of arbitrary files> is to "
615 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
616 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
617 "the drive in a predictable way (eg. adding it last after all other drives) "
618 "then you can get the device name from L</guestfs_list_devices> and mount it "
619 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
620 "sometimes non-portable between kernel versions, and they don't support "
621 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
622 "using a label or UUID, use an ISO image instead."
623 msgstr ""
624
625 # type: =head2
626 #: ../src/guestfs.pod:299
627 msgid "COPYING"
628 msgstr ""
629
630 # type: textblock
631 #: ../src/guestfs.pod:301
632 msgid ""
633 "There are various different commands for copying between files and devices "
634 "and in and out of the guest filesystem.  These are summarised in the table "
635 "below."
636 msgstr ""
637
638 # type: =item
639 #: ../src/guestfs.pod:307
640 msgid "B<file> to B<file>"
641 msgstr ""
642
643 # type: textblock
644 #: ../src/guestfs.pod:309
645 msgid ""
646 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
647 "directories recursively."
648 msgstr ""
649
650 # type: =item
651 #: ../src/guestfs.pod:312
652 msgid "B<file or device> to B<file or device>"
653 msgstr ""
654
655 # type: textblock
656 #: ../src/guestfs.pod:314
657 msgid ""
658 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
659 "devices in the guest."
660 msgstr ""
661
662 # type: textblock
663 #: ../src/guestfs.pod:317
664 msgid "Example: duplicate the contents of an LV:"
665 msgstr ""
666
667 # type: verbatim
668 #: ../src/guestfs.pod:319
669 #, no-wrap
670 msgid ""
671 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
672 "\n"
673 msgstr ""
674
675 # type: textblock
676 #: ../src/guestfs.pod:321
677 msgid ""
678 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
679 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
680 "L</guestfs_copy_size>."
681 msgstr ""
682
683 # type: =item
684 #: ../src/guestfs.pod:325
685 msgid "B<file on the host> to B<file or device>"
686 msgstr ""
687
688 # type: textblock
689 #: ../src/guestfs.pod:327
690 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
691 msgstr ""
692
693 # type: =item
694 #: ../src/guestfs.pod:329
695 msgid "B<file or device> to B<file on the host>"
696 msgstr ""
697
698 # type: textblock
699 #: ../src/guestfs.pod:331
700 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
701 msgstr ""
702
703 # type: =head2
704 #: ../src/guestfs.pod:335
705 msgid "LISTING FILES"
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:337
710 msgid ""
711 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
712 "L<guestfish(1)>-equivalent command C<ll>)."
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:340
717 msgid ""
718 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
719 "programs, as a flat list of strings."
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:343
724 msgid ""
725 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
726 "directory, plus additional information about each one.  It is more "
727 "equivalent to using the L<readdir(3)> call on a local filesystem."
728 msgstr ""
729
730 # type: textblock
731 #: ../src/guestfs.pod:347
732 msgid ""
733 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
734 "files."
735 msgstr ""
736
737 # type: =head2
738 #: ../src/guestfs.pod:350
739 msgid "RUNNING COMMANDS"
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:352
744 msgid ""
745 "Although libguestfs is primarily an API for manipulating files inside guest "
746 "images, we also provide some limited facilities for running commands inside "
747 "guests."
748 msgstr ""
749
750 # type: textblock
751 #: ../src/guestfs.pod:356
752 msgid "There are many limitations to this:"
753 msgstr ""
754
755 # type: =item
756 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370 ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:1224 ../src/guestfs.pod:1229 ../src/guestfs.pod:1233 ../src/guestfs.pod:1449 ../src/guestfs.pod:1454 ../src/guestfs.pod:1458 ../src/guestfs.pod:1560 ../src/guestfs.pod:1564 ../src/guestfs.pod:1568 ../src/guestfs.pod:1573 ../src/guestfs.pod:1581 ../src/guestfs.pod:1600 ../src/guestfs.pod:1608 ../src/guestfs.pod:1838 ../src/guestfs.pod:1844 ../src/guestfs.pod:1849 ../src/guestfs.pod:1855 ../src/guestfs.pod:1962 ../src/guestfs.pod:1966 ../src/guestfs.pod:1970 ../src/guestfs.pod:1974 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:476 ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1426 ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1442 ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1450 ../src/guestfs-actions.pod:1460 ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1468 ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1600 ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:1610 ../src/guestfs-actions.pod:1665 ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1674 ../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 ../src/guestfs.pod:953
882 msgid "1."
883 msgstr ""
884
885 # type: textblock
886 #: ../src/guestfs.pod:442
887 msgid "Before launching, do:"
888 msgstr ""
889
890 # type: verbatim
891 #: ../src/guestfs.pod:444
892 #, no-wrap
893 msgid ""
894 " guestfs_set_selinux (g, 1);\n"
895 "\n"
896 msgstr ""
897
898 # type: =item
899 #: ../src/guestfs.pod:446 ../src/guestfs.pod:957
900 msgid "2."
901 msgstr ""
902
903 # type: textblock
904 #: ../src/guestfs.pod:448
905 msgid ""
906 "After mounting the guest's filesystem(s), load the policy.  This is best "
907 "done by running the L<load_policy(8)> command in the guest itself:"
908 msgstr ""
909
910 # type: verbatim
911 #: ../src/guestfs.pod:452
912 #, no-wrap
913 msgid ""
914 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
915 "\n"
916 msgstr ""
917
918 # type: textblock
919 #: ../src/guestfs.pod:454
920 msgid ""
921 "(Older versions of C<load_policy> require you to specify the name of the "
922 "policy file)."
923 msgstr ""
924
925 # type: =item
926 #: ../src/guestfs.pod:457 ../src/guestfs.pod:963
927 msgid "3."
928 msgstr ""
929
930 # type: textblock
931 #: ../src/guestfs.pod:459
932 msgid ""
933 "Optionally, set the security context for the API.  The correct security "
934 "context to use can only be known by inspecting the guest.  As an example:"
935 msgstr ""
936
937 # type: verbatim
938 #: ../src/guestfs.pod:463
939 #, no-wrap
940 msgid ""
941 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
942 "\n"
943 msgstr ""
944
945 # type: textblock
946 #: ../src/guestfs.pod:467
947 msgid "This will work for running commands and editing existing files."
948 msgstr ""
949
950 # type: textblock
951 #: ../src/guestfs.pod:469
952 msgid ""
953 "When new files are created, you may need to label them explicitly, for "
954 "example by running the external command C<restorecon pathname>."
955 msgstr ""
956
957 # type: =head2
958 #: ../src/guestfs.pod:473
959 msgid "UMASK"
960 msgstr ""
961
962 # type: textblock
963 #: ../src/guestfs.pod:475
964 msgid ""
965 "Certain calls are affected by the current file mode creation mask (the "
966 "\"umask\").  In particular ones which create files or directories, such as "
967 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
968 "either the default mode that the file is created with or modifies the mode "
969 "that you supply."
970 msgstr ""
971
972 # type: textblock
973 #: ../src/guestfs.pod:481
974 msgid ""
975 "The default umask is C<022>, so files are created with modes such as C<0644> "
976 "and directories with C<0755>."
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:484
981 msgid ""
982 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
983 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
984 "L</guestfs_chmod> after creating each file or directory."
985 msgstr ""
986
987 # type: textblock
988 #: ../src/guestfs.pod:488
989 msgid "For more information about umask, see L<umask(2)>."
990 msgstr ""
991
992 # type: =head1
993 #: ../src/guestfs.pod:490 ../fish/guestfish.pod: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 "Ambiguity between devices and paths"
1554 msgstr ""
1555
1556 # type: textblock
1557 #: ../src/guestfs.pod:775
1558 msgid ""
1559 "There is a subtle ambiguity in the API between a device name "
1560 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1561 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1562 msgstr ""
1563
1564 # type: textblock
1565 #: ../src/guestfs.pod:780
1566 msgid ""
1567 "In the current API we usually resolve this ambiguity by having two separate "
1568 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1569 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1570 "detecting if the path supplied begins with C</dev/>."
1571 msgstr ""
1572
1573 # type: textblock
1574 #: ../src/guestfs.pod:786
1575 msgid ""
1576 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1577 "make paths/devices into structured names.  One way to do this would be to "
1578 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1579 "aspect of grub.  Another way would be to use a structured type, equivalent "
1580 "to this OCaml type:"
1581 msgstr ""
1582
1583 # type: verbatim
1584 #: ../src/guestfs.pod:792
1585 #, no-wrap
1586 msgid ""
1587 " type path = Path of string | Device of int | Partition of int * int\n"
1588 "\n"
1589 msgstr ""
1590
1591 # type: textblock
1592 #: ../src/guestfs.pod:794
1593 msgid "which would allow you to pass arguments like:"
1594 msgstr ""
1595
1596 # type: verbatim
1597 #: ../src/guestfs.pod:796
1598 #, no-wrap
1599 msgid ""
1600 " Path \"/foo/bar\"\n"
1601 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1602 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1603 " Path \"/dev/sdb2\"    (* not a device *)\n"
1604 "\n"
1605 msgstr ""
1606
1607 # type: textblock
1608 #: ../src/guestfs.pod:801
1609 msgid ""
1610 "As you can see there are still problems to resolve even with this "
1611 "representation.  Also consider how it might work in guestfish."
1612 msgstr ""
1613
1614 # type: =head2
1615 #: ../src/guestfs.pod:806
1616 msgid "PROTOCOL LIMITS"
1617 msgstr ""
1618
1619 # type: textblock
1620 #: ../src/guestfs.pod:808
1621 msgid ""
1622 "Internally libguestfs uses a message-based protocol to pass API calls and "
1623 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1624 "plenty more detail about this).  The maximum message size used by the "
1625 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1626 "aware of this limit.  The API calls which may be affected are individually "
1627 "documented, with a link back to this section of the documentation."
1628 msgstr ""
1629
1630 # type: textblock
1631 #: ../src/guestfs.pod:816
1632 msgid ""
1633 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1634 "a simple string.  Because this string is at some point internally encoded as "
1635 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1636 "the requested file is larger than this then you will get an error."
1637 msgstr ""
1638
1639 # type: textblock
1640 #: ../src/guestfs.pod:822
1641 msgid ""
1642 "In order to transfer large files into and out of the guest filesystem, you "
1643 "need to use particular calls that support this.  The sections L</UPLOADING> "
1644 "and L</DOWNLOADING> document how to do this."
1645 msgstr ""
1646
1647 # type: textblock
1648 #: ../src/guestfs.pod:826
1649 msgid ""
1650 "You might also consider mounting the disk image using our FUSE filesystem "
1651 "support (L<guestmount(1)>)."
1652 msgstr ""
1653
1654 # type: =head2
1655 #: ../src/guestfs.pod:829
1656 msgid "KEYS AND PASSPHRASES"
1657 msgstr ""
1658
1659 # type: textblock
1660 #: ../src/guestfs.pod:831
1661 msgid ""
1662 "Certain libguestfs calls take a parameter that contains sensitive key "
1663 "material, passed in as a C string."
1664 msgstr ""
1665
1666 # type: textblock
1667 #: ../src/guestfs.pod:834
1668 msgid ""
1669 "In the future we would hope to change the libguestfs implementation so that "
1670 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1671 "swap.  However this is I<not> done at the moment, because of the complexity "
1672 "of such an implementation."
1673 msgstr ""
1674
1675 # type: textblock
1676 #: ../src/guestfs.pod:839
1677 msgid ""
1678 "Therefore you should be aware that any key parameter you pass to libguestfs "
1679 "might end up being written out to the swap partition.  If this is a concern, "
1680 "scrub the swap partition or don't use libguestfs on encrypted devices."
1681 msgstr ""
1682
1683 # type: =head1
1684 #: ../src/guestfs.pod:844
1685 msgid "CONNECTION MANAGEMENT"
1686 msgstr ""
1687
1688 # type: =head2
1689 #: ../src/guestfs.pod:846
1690 msgid "guestfs_h *"
1691 msgstr ""
1692
1693 # type: textblock
1694 #: ../src/guestfs.pod:848
1695 msgid ""
1696 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
1697 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
1698 "handle and release all resources used."
1699 msgstr ""
1700
1701 # type: textblock
1702 #: ../src/guestfs.pod:852
1703 msgid ""
1704 "For information on using multiple handles and threads, see the section "
1705 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
1706 msgstr ""
1707
1708 # type: =head2
1709 #: ../src/guestfs.pod:855
1710 msgid "guestfs_create"
1711 msgstr ""
1712
1713 # type: verbatim
1714 #: ../src/guestfs.pod:857
1715 #, no-wrap
1716 msgid ""
1717 " guestfs_h *guestfs_create (void);\n"
1718 "\n"
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:859
1723 msgid "Create a connection handle."
1724 msgstr ""
1725
1726 # type: textblock
1727 #: ../src/guestfs.pod:861
1728 msgid ""
1729 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
1730 "on the handle at least once."
1731 msgstr ""
1732
1733 # type: textblock
1734 #: ../src/guestfs.pod:864
1735 msgid ""
1736 "This function returns a non-NULL pointer to a handle on success or NULL on "
1737 "error."
1738 msgstr ""
1739
1740 # type: textblock
1741 #: ../src/guestfs.pod:867
1742 msgid "After configuring the handle, you have to call L</guestfs_launch>."
1743 msgstr ""
1744
1745 # type: textblock
1746 #: ../src/guestfs.pod:869
1747 msgid ""
1748 "You may also want to configure error handling for the handle.  See L</ERROR "
1749 "HANDLING> section below."
1750 msgstr ""
1751
1752 # type: =head2
1753 #: ../src/guestfs.pod:872
1754 msgid "guestfs_close"
1755 msgstr ""
1756
1757 # type: verbatim
1758 #: ../src/guestfs.pod:874
1759 #, no-wrap
1760 msgid ""
1761 " void guestfs_close (guestfs_h *g);\n"
1762 "\n"
1763 msgstr ""
1764
1765 # type: textblock
1766 #: ../src/guestfs.pod:876
1767 msgid "This closes the connection handle and frees up all resources used."
1768 msgstr ""
1769
1770 # type: =head1
1771 #: ../src/guestfs.pod:878
1772 msgid "ERROR HANDLING"
1773 msgstr ""
1774
1775 # type: textblock
1776 #: ../src/guestfs.pod:880
1777 msgid ""
1778 "API functions can return errors.  For example, almost all functions that "
1779 "return C<int> will return C<-1> to indicate an error."
1780 msgstr ""
1781
1782 # type: textblock
1783 #: ../src/guestfs.pod:883
1784 msgid ""
1785 "Additional information is available for errors: an error message string and "
1786 "optionally an error number (errno) if the thing that failed was a system "
1787 "call."
1788 msgstr ""
1789
1790 # type: textblock
1791 #: ../src/guestfs.pod:887
1792 msgid ""
1793 "You can get at the additional information about the last error on the handle "
1794 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
1795 "up an error handler with L</guestfs_set_error_handler>."
1796 msgstr ""
1797
1798 # type: textblock
1799 #: ../src/guestfs.pod:892
1800 msgid ""
1801 "When the handle is created, a default error handler is installed which "
1802 "prints the error message string to C<stderr>.  For small short-running "
1803 "command line programs it is sufficient to do:"
1804 msgstr ""
1805
1806 # type: verbatim
1807 #: ../src/guestfs.pod:896
1808 #, no-wrap
1809 msgid ""
1810 " if (guestfs_launch (g) == -1)\n"
1811 "   exit (EXIT_FAILURE);\n"
1812 "\n"
1813 msgstr ""
1814
1815 # type: textblock
1816 #: ../src/guestfs.pod:899
1817 msgid ""
1818 "since the default error handler will ensure that an error message has been "
1819 "printed to C<stderr> before the program exits."
1820 msgstr ""
1821
1822 # type: textblock
1823 #: ../src/guestfs.pod:902
1824 msgid ""
1825 "For other programs the caller will almost certainly want to install an "
1826 "alternate error handler or do error handling in-line like this:"
1827 msgstr ""
1828
1829 # type: verbatim
1830 #: ../src/guestfs.pod:905
1831 #, no-wrap
1832 msgid ""
1833 " g = guestfs_create ();\n"
1834 " \n"
1835 msgstr ""
1836
1837 # type: verbatim
1838 #: ../src/guestfs.pod:907
1839 #, no-wrap
1840 msgid ""
1841 " /* This disables the default behaviour of printing errors\n"
1842 "    on stderr. */\n"
1843 " guestfs_set_error_handler (g, NULL, NULL);\n"
1844 " \n"
1845 msgstr ""
1846
1847 # type: verbatim
1848 #: ../src/guestfs.pod:911
1849 #, no-wrap
1850 msgid ""
1851 " if (guestfs_launch (g) == -1) {\n"
1852 "   /* Examine the error message and print it etc. */\n"
1853 "   char *msg = guestfs_last_error (g);\n"
1854 "   int errnum = guestfs_last_errno (g);\n"
1855 "   fprintf (stderr, \"%s\\n\", msg);\n"
1856 "   /* ... */\n"
1857 "  }\n"
1858 "\n"
1859 msgstr ""
1860
1861 # type: textblock
1862 #: ../src/guestfs.pod:919
1863 msgid ""
1864 "Out of memory errors are handled differently.  The default action is to call "
1865 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
1866 "L</guestfs_set_out_of_memory_handler>."
1867 msgstr ""
1868
1869 # type: textblock
1870 #: ../src/guestfs.pod:923
1871 msgid ""
1872 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
1873 "because there is no handle if this happens there is no way to get additional "
1874 "error information.  However L</guestfs_create> is supposed to be a "
1875 "lightweight operation which can only fail because of insufficient memory (it "
1876 "returns NULL in this case)."
1877 msgstr ""
1878
1879 # type: =head2
1880 #: ../src/guestfs.pod:929
1881 msgid "guestfs_last_error"
1882 msgstr ""
1883
1884 # type: verbatim
1885 #: ../src/guestfs.pod:931
1886 #, no-wrap
1887 msgid ""
1888 " const char *guestfs_last_error (guestfs_h *g);\n"
1889 "\n"
1890 msgstr ""
1891
1892 # type: textblock
1893 #: ../src/guestfs.pod:933
1894 msgid ""
1895 "This returns the last error message that happened on C<g>.  If there has not "
1896 "been an error since the handle was created, then this returns C<NULL>."
1897 msgstr ""
1898
1899 # type: textblock
1900 #: ../src/guestfs.pod:937
1901 msgid ""
1902 "The lifetime of the returned string is until the next error occurs, or "
1903 "L</guestfs_close> is called."
1904 msgstr ""
1905
1906 # type: =head2
1907 #: ../src/guestfs.pod:940
1908 msgid "guestfs_last_errno"
1909 msgstr ""
1910
1911 # type: verbatim
1912 #: ../src/guestfs.pod:942
1913 #, no-wrap
1914 msgid ""
1915 " int guestfs_last_errno (guestfs_h *g);\n"
1916 "\n"
1917 msgstr ""
1918
1919 # type: textblock
1920 #: ../src/guestfs.pod:944
1921 msgid "This returns the last error number (errno) that happened on C<g>."
1922 msgstr ""
1923
1924 # type: textblock
1925 #: ../src/guestfs.pod:946
1926 msgid "If successful, an errno integer not equal to zero is returned."
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:948
1931 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
1932 msgstr ""
1933
1934 # type: textblock
1935 #: ../src/guestfs.pod:955
1936 msgid "There has not been any error on the handle."
1937 msgstr ""
1938
1939 # type: textblock
1940 #: ../src/guestfs.pod:959
1941 msgid ""
1942 "There has been an error but the errno was meaningless.  This corresponds to "
1943 "the case where the error did not come from a failed system call, but for "
1944 "some other reason."
1945 msgstr ""
1946
1947 # type: textblock
1948 #: ../src/guestfs.pod:965
1949 msgid ""
1950 "There was an error from a failed system call, but for some reason the errno "
1951 "was not captured and returned.  This usually indicates a bug in libguestfs."
1952 msgstr ""
1953
1954 # type: textblock
1955 #: ../src/guestfs.pod:971
1956 msgid ""
1957 "Libguestfs tries to convert the errno from inside the applicance into a "
1958 "corresponding errno for the caller (not entirely trivial: the appliance "
1959 "might be running a completely different operating system from the library "
1960 "and error numbers are not standardized across Un*xen).  If this could not be "
1961 "done, then the error is translated to C<EINVAL>.  In practice this should "
1962 "only happen in very rare circumstances."
1963 msgstr ""
1964
1965 # type: =head2
1966 #: ../src/guestfs.pod:979
1967 msgid "guestfs_set_error_handler"
1968 msgstr ""
1969
1970 # type: verbatim
1971 #: ../src/guestfs.pod:981
1972 #, no-wrap
1973 msgid ""
1974 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
1975 "                                           void *opaque,\n"
1976 "                                           const char *msg);\n"
1977 " void guestfs_set_error_handler (guestfs_h *g,\n"
1978 "                                 guestfs_error_handler_cb cb,\n"
1979 "                                 void *opaque);\n"
1980 "\n"
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:988
1985 msgid ""
1986 "The callback C<cb> will be called if there is an error.  The parameters "
1987 "passed to the callback are an opaque data pointer and the error message "
1988 "string."
1989 msgstr ""
1990
1991 # type: textblock
1992 #: ../src/guestfs.pod:992
1993 msgid ""
1994 "C<errno> is not passed to the callback.  To get that the callback must call "
1995 "L</guestfs_last_errno>."
1996 msgstr ""
1997
1998 # type: textblock
1999 #: ../src/guestfs.pod:995
2000 msgid ""
2001 "Note that the message string C<msg> is freed as soon as the callback "
2002 "function returns, so if you want to stash it somewhere you must make your "
2003 "own copy."
2004 msgstr ""
2005
2006 # type: textblock
2007 #: ../src/guestfs.pod:999
2008 msgid "The default handler prints messages on C<stderr>."
2009 msgstr ""
2010
2011 # type: textblock
2012 #: ../src/guestfs.pod:1001
2013 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2014 msgstr ""
2015
2016 # type: =head2
2017 #: ../src/guestfs.pod:1003
2018 msgid "guestfs_get_error_handler"
2019 msgstr ""
2020
2021 # type: verbatim
2022 #: ../src/guestfs.pod:1005
2023 #, no-wrap
2024 msgid ""
2025 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2026 "                                                     void **opaque_rtn);\n"
2027 "\n"
2028 msgstr ""
2029
2030 # type: textblock
2031 #: ../src/guestfs.pod:1008
2032 msgid "Returns the current error handler callback."
2033 msgstr ""
2034
2035 # type: =head2
2036 #: ../src/guestfs.pod:1010
2037 msgid "guestfs_set_out_of_memory_handler"
2038 msgstr ""
2039
2040 # type: verbatim
2041 #: ../src/guestfs.pod:1012
2042 #, no-wrap
2043 msgid ""
2044 " typedef void (*guestfs_abort_cb) (void);\n"
2045 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2046 "                                        guestfs_abort_cb);\n"
2047 "\n"
2048 msgstr ""
2049
2050 # type: textblock
2051 #: ../src/guestfs.pod:1016
2052 msgid ""
2053 "The callback C<cb> will be called if there is an out of memory situation.  "
2054 "I<Note this callback must not return>."
2055 msgstr ""
2056
2057 # type: textblock
2058 #: ../src/guestfs.pod:1019
2059 msgid "The default is to call L<abort(3)>."
2060 msgstr ""
2061
2062 # type: textblock
2063 #: ../src/guestfs.pod:1021
2064 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2065 msgstr ""
2066
2067 # type: =head2
2068 #: ../src/guestfs.pod:1024
2069 msgid "guestfs_get_out_of_memory_handler"
2070 msgstr ""
2071
2072 # type: verbatim
2073 #: ../src/guestfs.pod:1026
2074 #, no-wrap
2075 msgid ""
2076 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2077 "\n"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1028
2082 msgid "This returns the current out of memory handler."
2083 msgstr ""
2084
2085 # type: =head1
2086 #: ../src/guestfs.pod:1030
2087 msgid "PATH"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1032
2092 msgid ""
2093 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2094 "internal path."
2095 msgstr ""
2096
2097 # type: textblock
2098 #: ../src/guestfs.pod:1035
2099 msgid ""
2100 "By default it looks for these in the directory C<$libdir/guestfs> "
2101 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2102 msgstr ""
2103
2104 # type: textblock
2105 #: ../src/guestfs.pod:1038
2106 msgid ""
2107 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2108 "to change the directories that libguestfs will search in.  The value is a "
2109 "colon-separated list of paths.  The current directory is I<not> searched "
2110 "unless the path contains an empty element or C<.>.  For example "
2111 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2112 "then C</usr/lib/guestfs>."
2113 msgstr ""
2114
2115 # type: =head1
2116 #: ../src/guestfs.pod:1045
2117 msgid "HIGH-LEVEL API ACTIONS"
2118 msgstr ""
2119
2120 # type: =head2
2121 #: ../src/guestfs.pod:1047
2122 msgid "ABI GUARANTEE"
2123 msgstr ""
2124
2125 # type: textblock
2126 #: ../src/guestfs.pod:1049
2127 msgid ""
2128 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2129 "actions as outlined in this section.  Although we will deprecate some "
2130 "actions, for example if they get replaced by newer calls, we will keep the "
2131 "old actions forever.  This allows you the developer to program in confidence "
2132 "against the libguestfs API."
2133 msgstr ""
2134
2135 # type: textblock
2136 #: ../src/guestfs.pod:1055 ../fish/guestfish.pod:860
2137 msgid "@ACTIONS@"
2138 msgstr ""
2139
2140 # type: =head1
2141 #: ../src/guestfs.pod:1057
2142 msgid "STRUCTURES"
2143 msgstr ""
2144
2145 # type: textblock
2146 #: ../src/guestfs.pod:1059
2147 msgid "@STRUCTS@"
2148 msgstr ""
2149
2150 # type: =head1
2151 #: ../src/guestfs.pod:1061
2152 msgid "AVAILABILITY"
2153 msgstr ""
2154
2155 # type: =head2
2156 #: ../src/guestfs.pod:1063
2157 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2158 msgstr ""
2159
2160 # type: textblock
2161 #: ../src/guestfs.pod:1065
2162 msgid ""
2163 "Using L</guestfs_available> you can test availability of the following "
2164 "groups of functions.  This test queries the appliance to see if the "
2165 "appliance you are currently using supports the functionality."
2166 msgstr ""
2167
2168 # type: textblock
2169 #: ../src/guestfs.pod:1070
2170 msgid "@AVAILABILITY@"
2171 msgstr ""
2172
2173 # type: =head2
2174 #: ../src/guestfs.pod:1072
2175 msgid "GUESTFISH supported COMMAND"
2176 msgstr ""
2177
2178 # type: textblock
2179 #: ../src/guestfs.pod:1074
2180 msgid ""
2181 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2182 "prints out the available groups and whether they are supported by this build "
2183 "of libguestfs.  Note however that you have to do C<run> first."
2184 msgstr ""
2185
2186 # type: =head2
2187 #: ../src/guestfs.pod:1079
2188 msgid "SINGLE CALLS AT COMPILE TIME"
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1081
2193 msgid ""
2194 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2195 "function, such as:"
2196 msgstr ""
2197
2198 # type: verbatim
2199 #: ../src/guestfs.pod:1084
2200 #, no-wrap
2201 msgid ""
2202 " #define LIBGUESTFS_HAVE_DD 1\n"
2203 "\n"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1086
2208 msgid "if L</guestfs_dd> is available."
2209 msgstr ""
2210
2211 # type: textblock
2212 #: ../src/guestfs.pod:1088
2213 msgid ""
2214 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2215 "function is available at compile time, we recommended using build tools such "
2216 "as autoconf or cmake.  For example in autotools you could use:"
2217 msgstr ""
2218
2219 # type: verbatim
2220 #: ../src/guestfs.pod:1093
2221 #, no-wrap
2222 msgid ""
2223 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2224 " AC_CHECK_FUNCS([guestfs_dd])\n"
2225 "\n"
2226 msgstr ""
2227
2228 # type: textblock
2229 #: ../src/guestfs.pod:1096
2230 msgid ""
2231 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2232 "in your program."
2233 msgstr ""
2234
2235 # type: =head2
2236 #: ../src/guestfs.pod:1099
2237 msgid "SINGLE CALLS AT RUN TIME"
2238 msgstr ""
2239
2240 # type: textblock
2241 #: ../src/guestfs.pod:1101
2242 msgid ""
2243 "Testing at compile time doesn't guarantee that a function really exists in "
2244 "the library.  The reason is that you might be dynamically linked against a "
2245 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2246 "This situation unfortunately results in a segmentation fault, which is a "
2247 "shortcoming of the C dynamic linking system itself."
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1108
2252 msgid ""
2253 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2254 "in this example program (note that you still need the compile time check as "
2255 "well):"
2256 msgstr ""
2257
2258 # type: verbatim
2259 #: ../src/guestfs.pod:1112
2260 #, no-wrap
2261 msgid ""
2262 " #include <stdio.h>\n"
2263 " #include <stdlib.h>\n"
2264 " #include <unistd.h>\n"
2265 " #include <dlfcn.h>\n"
2266 " #include <guestfs.h>\n"
2267 " \n"
2268 msgstr ""
2269
2270 # type: verbatim
2271 #: ../src/guestfs.pod:1118
2272 #, no-wrap
2273 msgid ""
2274 " main ()\n"
2275 " {\n"
2276 " #ifdef LIBGUESTFS_HAVE_DD\n"
2277 "   void *dl;\n"
2278 "   int has_function;\n"
2279 " \n"
2280 msgstr ""
2281
2282 # type: verbatim
2283 #: ../src/guestfs.pod:1124
2284 #, no-wrap
2285 msgid ""
2286 "   /* Test if the function guestfs_dd is really available. */\n"
2287 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2288 "   if (!dl) {\n"
2289 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2290 "     exit (EXIT_FAILURE);\n"
2291 "   }\n"
2292 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2293 "   dlclose (dl);\n"
2294 " \n"
2295 msgstr ""
2296
2297 # type: verbatim
2298 #: ../src/guestfs.pod:1133
2299 #, no-wrap
2300 msgid ""
2301 "   if (!has_function)\n"
2302 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2303 "   else {\n"
2304 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2305 "     /* Now it's safe to call\n"
2306 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2307 "     */\n"
2308 "   }\n"
2309 " #else\n"
2310 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2311 " #endif\n"
2312 "  }\n"
2313 "\n"
2314 msgstr ""
2315
2316 # type: textblock
2317 #: ../src/guestfs.pod:1146
2318 msgid ""
2319 "You may think the above is an awful lot of hassle, and it is.  There are "
2320 "other ways outside of the C linking system to ensure that this kind of "
2321 "incompatibility never arises, such as using package versioning:"
2322 msgstr ""
2323
2324 # type: verbatim
2325 #: ../src/guestfs.pod:1151
2326 #, no-wrap
2327 msgid ""
2328 " Requires: libguestfs >= 1.0.80\n"
2329 "\n"
2330 msgstr ""
2331
2332 # type: =head1
2333 #: ../src/guestfs.pod:1153
2334 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1155
2339 msgid ""
2340 "A recent feature of the API is the introduction of calls which take optional "
2341 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2342 "takes variable arguments (ie. C<...>), as in this example:"
2343 msgstr ""
2344
2345 # type: verbatim
2346 #: ../src/guestfs.pod:1160
2347 #, no-wrap
2348 msgid ""
2349 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2350 "\n"
2351 msgstr ""
2352
2353 # type: textblock
2354 #: ../src/guestfs.pod:1162
2355 msgid ""
2356 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2357 "call with no optional arguments specified:"
2358 msgstr ""
2359
2360 # type: verbatim
2361 #: ../src/guestfs.pod:1165
2362 #, no-wrap
2363 msgid ""
2364 " guestfs_add_drive_opts (g, filename, -1);\n"
2365 "\n"
2366 msgstr ""
2367
2368 # type: textblock
2369 #: ../src/guestfs.pod:1167
2370 msgid "With a single optional argument:"
2371 msgstr ""
2372
2373 # type: verbatim
2374 #: ../src/guestfs.pod:1169
2375 #, no-wrap
2376 msgid ""
2377 " guestfs_add_drive_opts (g, filename,\n"
2378 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2379 "                         -1);\n"
2380 "\n"
2381 msgstr ""
2382
2383 # type: textblock
2384 #: ../src/guestfs.pod:1173
2385 msgid "With two:"
2386 msgstr ""
2387
2388 # type: verbatim
2389 #: ../src/guestfs.pod:1175
2390 #, no-wrap
2391 msgid ""
2392 " guestfs_add_drive_opts (g, filename,\n"
2393 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2394 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2395 "                         -1);\n"
2396 "\n"
2397 msgstr ""
2398
2399 # type: textblock
2400 #: ../src/guestfs.pod:1180
2401 msgid ""
2402 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2403 "happen!"
2404 msgstr ""
2405
2406 # type: =head2
2407 #: ../src/guestfs.pod:1183
2408 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2409 msgstr ""
2410
2411 # type: textblock
2412 #: ../src/guestfs.pod:1185
2413 msgid ""
2414 "The second variant has the same name with the suffix C<_va>, which works the "
2415 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2416 "example function, this is declared:"
2417 msgstr ""
2418
2419 # type: verbatim
2420 #: ../src/guestfs.pod:1189
2421 #, no-wrap
2422 msgid ""
2423 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2424 "                                va_list args);\n"
2425 "\n"
2426 msgstr ""
2427
2428 # type: =head2
2429 #: ../src/guestfs.pod:1192
2430 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2431 msgstr ""
2432
2433 # type: textblock
2434 #: ../src/guestfs.pod:1194
2435 msgid ""
2436 "The third variant is useful where you need to construct these calls.  You "
2437 "pass in a structure where you fill in the optional fields.  The structure "
2438 "has a bitmask as the first element which you must set to indicate which "
2439 "fields you have filled in.  For our example function the structure and call "
2440 "are declared:"
2441 msgstr ""
2442
2443 # type: verbatim
2444 #: ../src/guestfs.pod:1200
2445 #, no-wrap
2446 msgid ""
2447 " struct guestfs_add_drive_opts_argv {\n"
2448 "   uint64_t bitmask;\n"
2449 "   int readonly;\n"
2450 "   const char *format;\n"
2451 "   /* ... */\n"
2452 " };\n"
2453 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2454 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2455 "\n"
2456 msgstr ""
2457
2458 # type: textblock
2459 #: ../src/guestfs.pod:1209
2460 msgid "You could call it like this:"
2461 msgstr ""
2462
2463 # type: verbatim
2464 #: ../src/guestfs.pod:1211
2465 #, no-wrap
2466 msgid ""
2467 " struct guestfs_add_drive_opts_argv optargs = {\n"
2468 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2469 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2470 "   .readonly = 1,\n"
2471 "   .format = \"qcow2\"\n"
2472 " };\n"
2473 " \n"
2474 msgstr ""
2475
2476 # type: verbatim
2477 #: ../src/guestfs.pod:1218
2478 #, no-wrap
2479 msgid ""
2480 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2481 "\n"
2482 msgstr ""
2483
2484 # type: textblock
2485 #: ../src/guestfs.pod:1220 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1661 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1244
2486 msgid "Notes:"
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1226
2491 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2492 msgstr ""
2493
2494 # type: textblock
2495 #: ../src/guestfs.pod:1231
2496 msgid "You do not need to fill in all fields of the structure."
2497 msgstr ""
2498
2499 # type: textblock
2500 #: ../src/guestfs.pod:1235
2501 msgid ""
2502 "There must be a one-to-one correspondence between fields of the structure "
2503 "that are filled in, and bits set in the bitmask."
2504 msgstr ""
2505
2506 # type: =head2
2507 #: ../src/guestfs.pod:1240
2508 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2509 msgstr ""
2510
2511 # type: textblock
2512 #: ../src/guestfs.pod:1242
2513 msgid ""
2514 "In other languages, optional arguments are expressed in the way that is "
2515 "natural for that language.  We refer you to the language-specific "
2516 "documentation for more details on that."
2517 msgstr ""
2518
2519 # type: textblock
2520 #: ../src/guestfs.pod:1246
2521 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2522 msgstr ""
2523
2524 # type: =end
2525 #: ../src/guestfs.pod:1248 ../src/guestfs.pod:1253
2526 msgid "html"
2527 msgstr ""
2528
2529 # type: textblock
2530 #: ../src/guestfs.pod:1250
2531 msgid ""
2532 "<!-- old anchor for the next section --> <a "
2533 "name=\"state_machine_and_low_level_event_api\"/>"
2534 msgstr ""
2535
2536 # type: =head1
2537 #: ../src/guestfs.pod:1255
2538 msgid "ARCHITECTURE"
2539 msgstr ""
2540
2541 # type: textblock
2542 #: ../src/guestfs.pod:1257
2543 msgid ""
2544 "Internally, libguestfs is implemented by running an appliance (a special "
2545 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2546 "process of the main program."
2547 msgstr ""
2548
2549 # type: verbatim
2550 #: ../src/guestfs.pod:1261
2551 #, no-wrap
2552 msgid ""
2553 "  ___________________\n"
2554 " /                   \\\n"
2555 " | main program      |\n"
2556 " |                   |\n"
2557 " |                   |           child process / appliance\n"
2558 " |                   |           __________________________\n"
2559 " |                   |          / qemu                     \\\n"
2560 " +-------------------+   RPC    |      +-----------------+ |\n"
2561 " | libguestfs     <--------------------> guestfsd        | |\n"
2562 " |                   |          |      +-----------------+ |\n"
2563 " \\___________________/          |      | Linux kernel    | |\n"
2564 "                                |      +--^--------------+ |\n"
2565 "                                \\_________|________________/\n"
2566 "                                          |\n"
2567 "                                   _______v______\n"
2568 "                                  /              \\\n"
2569 "                                  | Device or    |\n"
2570 "                                  | disk image   |\n"
2571 "                                  \\______________/\n"
2572 "\n"
2573 msgstr ""
2574
2575 # type: textblock
2576 #: ../src/guestfs.pod:1281
2577 msgid ""
2578 "The library, linked to the main program, creates the child process and hence "
2579 "the appliance in the L</guestfs_launch> function."
2580 msgstr ""
2581
2582 # type: textblock
2583 #: ../src/guestfs.pod:1284
2584 msgid ""
2585 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2586 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2587 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2588 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2589 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2590 "attached to the qemu process which translates device access by the "
2591 "appliance's Linux kernel into accesses to the image."
2592 msgstr ""
2593
2594 # type: textblock
2595 #: ../src/guestfs.pod:1293
2596 msgid ""
2597 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2598 "Although the disk image you are attached to might also be used by some "
2599 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2600 "care if both libguestfs's qemu process and your virtual machine are trying "
2601 "to update the disk image at the same time, since these usually results in "
2602 "massive disk corruption)."
2603 msgstr ""
2604
2605 # type: =head1
2606 #: ../src/guestfs.pod:1300
2607 msgid "STATE MACHINE"
2608 msgstr ""
2609
2610 # type: textblock
2611 #: ../src/guestfs.pod:1302
2612 msgid "libguestfs uses a state machine to model the child process:"
2613 msgstr ""
2614
2615 # type: verbatim
2616 #: ../src/guestfs.pod:1304
2617 #, no-wrap
2618 msgid ""
2619 "                         |\n"
2620 "                    guestfs_create\n"
2621 "                         |\n"
2622 "                         |\n"
2623 "                     ____V_____\n"
2624 "                    /          \\\n"
2625 "                    |  CONFIG  |\n"
2626 "                    \\__________/\n"
2627 "                     ^ ^   ^  \\\n"
2628 "                    /  |    \\  \\ guestfs_launch\n"
2629 "                   /   |    _\\__V______\n"
2630 "                  /    |   /           \\\n"
2631 "                 /     |   | LAUNCHING |\n"
2632 "                /      |   \\___________/\n"
2633 "               /       |       /\n"
2634 "              /        |  guestfs_launch\n"
2635 "             /         |     /\n"
2636 "    ______  /        __|____V\n"
2637 "   /      \\ ------> /        \\\n"
2638 "   | BUSY |         | READY  |\n"
2639 "   \\______/ <------ \\________/\n"
2640 "\n"
2641 msgstr ""
2642
2643 # type: textblock
2644 #: ../src/guestfs.pod:1326
2645 msgid ""
2646 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2647 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2648 "(3) alternating between READY and BUSY as commands are issued to, and "
2649 "carried out by, the child process."
2650 msgstr ""
2651
2652 # type: textblock
2653 #: ../src/guestfs.pod:1331
2654 msgid ""
2655 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2656 "asynchronously at any time (eg. due to some internal error), and that causes "
2657 "the state to transition back to CONFIG."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1335
2662 msgid ""
2663 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2664 "issued when in the CONFIG state."
2665 msgstr ""
2666
2667 # type: textblock
2668 #: ../src/guestfs.pod:1338
2669 msgid ""
2670 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2671 "L</guestfs_launch> blocks until the child process is READY to accept "
2672 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2673 "moves the state from CONFIG to LAUNCHING while it is running."
2674 msgstr ""
2675
2676 # type: textblock
2677 #: ../src/guestfs.pod:1344
2678 msgid ""
2679 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2680 "state.  These API calls block waiting for the command to be carried out "
2681 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2682 "non-blocking versions, and no way to issue more than one command per handle "
2683 "at the same time."
2684 msgstr ""
2685
2686 # type: textblock
2687 #: ../src/guestfs.pod:1350
2688 msgid ""
2689 "Finally, the child process sends asynchronous messages back to the main "
2690 "program, such as kernel log messages.  You can register a callback to "
2691 "receive these messages."
2692 msgstr ""
2693
2694 # type: =head2
2695 #: ../src/guestfs.pod:1354
2696 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1356
2701 msgid ""
2702 "The child process generates events in some situations.  Current events "
2703 "include: receiving a log message, the child process exits."
2704 msgstr ""
2705
2706 # type: textblock
2707 #: ../src/guestfs.pod:1359
2708 msgid ""
2709 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2710 "types of events."
2711 msgstr ""
2712
2713 # type: textblock
2714 #: ../src/guestfs.pod:1362
2715 msgid ""
2716 "Only I<one callback of each type> can be registered for each handle.  "
2717 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2718 "that type.  Cancel all callbacks of this type by calling this function with "
2719 "C<cb> set to C<NULL>."
2720 msgstr ""
2721
2722 # type: =head2
2723 #: ../src/guestfs.pod:1367
2724 msgid "guestfs_set_log_message_callback"
2725 msgstr ""
2726
2727 # type: verbatim
2728 #: ../src/guestfs.pod:1369
2729 #, no-wrap
2730 msgid ""
2731 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2732 "                                         char *buf, int len);\n"
2733 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2734 "                                        guestfs_log_message_cb cb,\n"
2735 "                                        void *opaque);\n"
2736 "\n"
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1375
2741 msgid ""
2742 "The callback function C<cb> will be called whenever qemu or the guest writes "
2743 "anything to the console."
2744 msgstr ""
2745
2746 # type: textblock
2747 #: ../src/guestfs.pod:1378
2748 msgid "Use this function to capture kernel messages and similar."
2749 msgstr ""
2750
2751 # type: textblock
2752 #: ../src/guestfs.pod:1380
2753 msgid ""
2754 "Normally there is no log message handler, and log messages are just "
2755 "discarded."
2756 msgstr ""
2757
2758 # type: =head2
2759 #: ../src/guestfs.pod:1383
2760 msgid "guestfs_set_subprocess_quit_callback"
2761 msgstr ""
2762
2763 # type: verbatim
2764 #: ../src/guestfs.pod:1385
2765 #, no-wrap
2766 msgid ""
2767 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2768 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2769 "                                            guestfs_subprocess_quit_cb cb,\n"
2770 "                                            void *opaque);\n"
2771 "\n"
2772 msgstr ""
2773
2774 # type: textblock
2775 #: ../src/guestfs.pod:1390
2776 msgid ""
2777 "The callback function C<cb> will be called when the child process quits, "
2778 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2779 "corresponds to a transition from any state to the CONFIG state)."
2780 msgstr ""
2781
2782 # type: =head2
2783 #: ../src/guestfs.pod:1395
2784 msgid "guestfs_set_launch_done_callback"
2785 msgstr ""
2786
2787 # type: verbatim
2788 #: ../src/guestfs.pod:1397
2789 #, no-wrap
2790 msgid ""
2791 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2792 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2793 "                                        guestfs_launch_done_cb cb,\n"
2794 "                                        void *opaque);\n"
2795 "\n"
2796 msgstr ""
2797
2798 # type: textblock
2799 #: ../src/guestfs.pod:1402
2800 msgid ""
2801 "The callback function C<cb> will be called when the child process becomes "
2802 "ready first time after it has been launched.  (This corresponds to a "
2803 "transition from LAUNCHING to the READY state)."
2804 msgstr ""
2805
2806 # type: =head2
2807 #: ../src/guestfs.pod:1406
2808 msgid "guestfs_set_close_callback"
2809 msgstr ""
2810
2811 # type: verbatim
2812 #: ../src/guestfs.pod:1408
2813 #, no-wrap
2814 msgid ""
2815 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2816 " void guestfs_set_close_callback (guestfs_h *g,\n"
2817 "                                  guestfs_close_cb cb,\n"
2818 "                                  void *opaque);\n"
2819 "\n"
2820 msgstr ""
2821
2822 # type: textblock
2823 #: ../src/guestfs.pod:1413
2824 msgid ""
2825 "The callback function C<cb> will be called while the handle is being closed "
2826 "(synchronously from L</guestfs_close>)."
2827 msgstr ""
2828
2829 # type: textblock
2830 #: ../src/guestfs.pod:1416
2831 msgid ""
2832 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2833 "handles that are open when the program exits.  This means that this callback "
2834 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2835 "problems in higher-level languages (eg. if your HLL interpreter has already "
2836 "been cleaned up by the time this is called, and if your callback then jumps "
2837 "into some HLL function)."
2838 msgstr ""
2839
2840 # type: =head2
2841 #: ../src/guestfs.pod:1424
2842 msgid "guestfs_set_progress_callback"
2843 msgstr ""
2844
2845 # type: verbatim
2846 #: ../src/guestfs.pod:1426
2847 #, no-wrap
2848 msgid ""
2849 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2850 "                                      int proc_nr, int serial,\n"
2851 "                                      uint64_t position, uint64_t total);\n"
2852 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2853 "                                     guestfs_progress_cb cb,\n"
2854 "                                     void *opaque);\n"
2855 "\n"
2856 msgstr ""
2857
2858 # type: textblock
2859 #: ../src/guestfs.pod:1433
2860 msgid ""
2861 "Some long-running operations can generate progress messages.  If this "
2862 "callback is registered, then it will be called each time a progress message "
2863 "is generated (usually two seconds after the operation started, and three "
2864 "times per second thereafter until it completes, although the frequency may "
2865 "change in future versions)."
2866 msgstr ""
2867
2868 # type: textblock
2869 #: ../src/guestfs.pod:1439
2870 msgid ""
2871 "The callback receives two numbers: C<position> and C<total>.  The units of "
2872 "C<total> are not defined, although for some operations C<total> may relate "
2873 "in some way to the amount of data to be transferred (eg. in bytes or "
2874 "megabytes), and C<position> may be the portion which has been transferred."
2875 msgstr ""
2876
2877 # type: textblock
2878 #: ../src/guestfs.pod:1445
2879 msgid "The only defined and stable parts of the API are:"
2880 msgstr ""
2881
2882 # type: textblock
2883 #: ../src/guestfs.pod:1451
2884 msgid ""
2885 "The callback can display to the user some type of progress bar or indicator "
2886 "which shows the ratio of C<position>:C<total>."
2887 msgstr ""
2888
2889 # type: textblock
2890 #: ../src/guestfs.pod:1456
2891 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2892 msgstr ""
2893
2894 # type: textblock
2895 #: ../src/guestfs.pod:1460
2896 msgid ""
2897 "If any progress notification is sent during a call, then a final progress "
2898 "notification is always sent when C<position> = C<total>."
2899 msgstr ""
2900
2901 # type: textblock
2902 #: ../src/guestfs.pod:1463
2903 msgid ""
2904 "This is to simplify caller code, so callers can easily set the progress "
2905 "indicator to \"100%\" at the end of the operation, without requiring special "
2906 "code to detect this case."
2907 msgstr ""
2908
2909 # type: textblock
2910 #: ../src/guestfs.pod:1469
2911 msgid ""
2912 "The callback also receives the procedure number and serial number of the "
2913 "call.  These are only useful for debugging protocol issues, and the callback "
2914 "can normally ignore them.  The callback may want to print these numbers in "
2915 "error messages or debugging messages."
2916 msgstr ""
2917
2918 # type: =head1
2919 #: ../src/guestfs.pod:1474
2920 msgid "PRIVATE DATA AREA"
2921 msgstr ""
2922
2923 # type: textblock
2924 #: ../src/guestfs.pod:1476
2925 msgid ""
2926 "You can attach named pieces of private data to the libguestfs handle, and "
2927 "fetch them by name for the lifetime of the handle.  This is called the "
2928 "private data area and is only available from the C API."
2929 msgstr ""
2930
2931 # type: textblock
2932 #: ../src/guestfs.pod:1480
2933 msgid "To attach a named piece of data, use the following call:"
2934 msgstr ""
2935
2936 # type: verbatim
2937 #: ../src/guestfs.pod:1482
2938 #, no-wrap
2939 msgid ""
2940 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2941 "\n"
2942 msgstr ""
2943
2944 # type: textblock
2945 #: ../src/guestfs.pod:1484
2946 msgid ""
2947 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2948 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2949 "overwritten."
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1488
2954 msgid ""
2955 "You can use any C<key> you want, but names beginning with an underscore "
2956 "character are reserved for internal libguestfs purposes (for implementing "
2957 "language bindings).  It is recommended to prefix the name with some unique "
2958 "string to avoid collisions with other users."
2959 msgstr ""
2960
2961 # type: textblock
2962 #: ../src/guestfs.pod:1493
2963 msgid "To retrieve the pointer, use:"
2964 msgstr ""
2965
2966 # type: verbatim
2967 #: ../src/guestfs.pod:1495
2968 #, no-wrap
2969 msgid ""
2970 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2971 "\n"
2972 msgstr ""
2973
2974 # type: textblock
2975 #: ../src/guestfs.pod:1497
2976 msgid ""
2977 "This function returns C<NULL> if either no data is found associated with "
2978 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2979 "C<NULL>."
2980 msgstr ""
2981
2982 # type: textblock
2983 #: ../src/guestfs.pod:1501
2984 msgid ""
2985 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2986 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2987 "all.  In particular, libguestfs does I<not> try to free the data when the "
2988 "handle is closed.  If the data must be freed, then the caller must either "
2989 "free it before calling L</guestfs_close> or must set up a close callback to "
2990 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2991 "can be registered for a handle)."
2992 msgstr ""
2993
2994 # type: textblock
2995 #: ../src/guestfs.pod:1509
2996 msgid ""
2997 "The private data area is implemented using a hash table, and should be "
2998 "reasonably efficient for moderate numbers of keys."
2999 msgstr ""
3000
3001 # type: =head1
3002 #: ../src/guestfs.pod:1512
3003 msgid "BLOCK DEVICE NAMING"
3004 msgstr ""
3005
3006 # type: textblock
3007 #: ../src/guestfs.pod:1514
3008 msgid ""
3009 "In the kernel there is now quite a profusion of schemata for naming block "
3010 "devices (in this context, by I<block device> I mean a physical or virtual "
3011 "hard drive).  The original Linux IDE driver used names starting with "
3012 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
3013 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
3014 "replacement for the old IDE driver (particularly for SATA devices) those "
3015 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
3016 "machines with paravirtualized drivers.  This has created several different "
3017 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
3018 "Xen PV disks."
3019 msgstr ""
3020
3021 # type: textblock
3022 #: ../src/guestfs.pod:1526
3023 msgid ""
3024 "As discussed above, libguestfs uses a qemu appliance running an embedded "
3025 "Linux kernel to access block devices.  We can run a variety of appliances "
3026 "based on a variety of Linux kernels."
3027 msgstr ""
3028
3029 # type: textblock
3030 #: ../src/guestfs.pod:1530
3031 msgid ""
3032 "This causes a problem for libguestfs because many API calls use device or "
3033 "partition names.  Working scripts and the recipe (example) scripts that we "
3034 "make available over the internet could fail if the naming scheme changes."
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1535
3039 msgid ""
3040 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
3041 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
3042 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
3043 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
3044 msgstr ""
3045
3046 # type: textblock
3047 #: ../src/guestfs.pod:1541
3048 msgid ""
3049 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
3050 "L</guestfs_list_partitions> and similar calls return the true names of the "
3051 "devices and partitions as known to the appliance."
3052 msgstr ""
3053
3054 # type: =head2
3055 #: ../src/guestfs.pod:1546
3056 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
3057 msgstr ""
3058
3059 # type: textblock
3060 #: ../src/guestfs.pod:1548
3061 msgid ""
3062 "Usually this translation is transparent.  However in some (very rare)  cases "
3063 "you may need to know the exact algorithm.  Such cases include where you use "
3064 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
3065 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
3066 "devices."
3067 msgstr ""
3068
3069 # type: textblock
3070 #: ../src/guestfs.pod:1554
3071 msgid ""
3072 "The algorithm is applied only to I<parameters> which are known to be either "
3073 "device or partition names.  Return values from functions such as "
3074 "L</guestfs_list_devices> are never changed."
3075 msgstr ""
3076
3077 # type: textblock
3078 #: ../src/guestfs.pod:1562
3079 msgid "Is the string a parameter which is a device or partition name?"
3080 msgstr ""
3081
3082 # type: textblock
3083 #: ../src/guestfs.pod:1566
3084 msgid "Does the string begin with C</dev/sd>?"
3085 msgstr ""
3086
3087 # type: textblock
3088 #: ../src/guestfs.pod:1570
3089 msgid ""
3090 "Does the named device exist? If so, we use that device.  However if I<not> "
3091 "then we continue with this algorithm."
3092 msgstr ""
3093
3094 # type: textblock
3095 #: ../src/guestfs.pod:1575
3096 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1577
3101 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3102 msgstr ""
3103
3104 # type: textblock
3105 #: ../src/guestfs.pod:1579
3106 msgid "If that named device exists, use it.  If not, continue."
3107 msgstr ""
3108
3109 # type: textblock
3110 #: ../src/guestfs.pod:1583
3111 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3112 msgstr ""
3113
3114 # type: textblock
3115 #: ../src/guestfs.pod:1585
3116 msgid "If that named device exists, use it.  If not, return an error."
3117 msgstr ""
3118
3119 # type: =head2
3120 #: ../src/guestfs.pod:1589
3121 msgid "PORTABILITY CONCERNS"
3122 msgstr ""
3123
3124 # type: textblock
3125 #: ../src/guestfs.pod:1591
3126 msgid ""
3127 "Although the standard naming scheme and automatic translation is useful for "
3128 "simple programs and guestfish scripts, for larger programs it is best not to "
3129 "rely on this mechanism."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1595
3134 msgid ""
3135 "Where possible for maximum future portability programs using libguestfs "
3136 "should use these future-proof techniques:"
3137 msgstr ""
3138
3139 # type: textblock
3140 #: ../src/guestfs.pod:1602
3141 msgid ""
3142 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3143 "device names, and then use those names directly."
3144 msgstr ""
3145
3146 # type: textblock
3147 #: ../src/guestfs.pod:1605
3148 msgid "Since those device names exist by definition, they will never be translated."
3149 msgstr ""
3150
3151 # type: textblock
3152 #: ../src/guestfs.pod:1610
3153 msgid ""
3154 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3155 "filesystem labels."
3156 msgstr ""
3157
3158 # type: =head1
3159 #: ../src/guestfs.pod:1615
3160 msgid "INTERNALS"
3161 msgstr ""
3162
3163 # type: =head2
3164 #: ../src/guestfs.pod:1617
3165 msgid "COMMUNICATION PROTOCOL"
3166 msgstr ""
3167
3168 # type: textblock
3169 #: ../src/guestfs.pod:1619
3170 msgid ""
3171 "Don't rely on using this protocol directly.  This section documents how it "
3172 "currently works, but it may change at any time."
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1622
3177 msgid ""
3178 "The protocol used to talk between the library and the daemon running inside "
3179 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3180 "1014, RFC 1832, RFC 4506)."
3181 msgstr ""
3182
3183 # type: textblock
3184 #: ../src/guestfs.pod:1626
3185 msgid ""
3186 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3187 "this file is automatically generated)."
3188 msgstr ""
3189
3190 # type: textblock
3191 #: ../src/guestfs.pod:1629
3192 msgid ""
3193 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3194 "and C<FileOut> parameters, which are handled with very simple request/reply "
3195 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3196 "parameters, which use the same request and reply messages, but they may also "
3197 "be followed by files sent using a chunked encoding."
3198 msgstr ""
3199
3200 # type: =head3
3201 #: ../src/guestfs.pod:1636
3202 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3203 msgstr ""
3204
3205 # type: textblock
3206 #: ../src/guestfs.pod:1638
3207 msgid "For ordinary functions, the request message is:"
3208 msgstr ""
3209
3210 # type: verbatim
3211 #: ../src/guestfs.pod:1640
3212 #, no-wrap
3213 msgid ""
3214 " total length (header + arguments,\n"
3215 "      but not including the length word itself)\n"
3216 " struct guestfs_message_header (encoded as XDR)\n"
3217 " struct guestfs_<foo>_args (encoded as XDR)\n"
3218 "\n"
3219 msgstr ""
3220
3221 # type: textblock
3222 #: ../src/guestfs.pod:1645
3223 msgid ""
3224 "The total length field allows the daemon to allocate a fixed size buffer "
3225 "into which it slurps the rest of the message.  As a result, the total length "
3226 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3227 "effective size of any request is limited to somewhere under this size."
3228 msgstr ""
3229
3230 # type: textblock
3231 #: ../src/guestfs.pod:1651
3232 msgid ""
3233 "Note also that many functions don't take any arguments, in which case the "
3234 "C<guestfs_I<foo>_args> is completely omitted."
3235 msgstr ""
3236
3237 # type: textblock
3238 #: ../src/guestfs.pod:1654
3239 msgid ""
3240 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3241 "receiver knows what type of args structure to expect, or none at all."
3242 msgstr ""
3243
3244 # type: textblock
3245 #: ../src/guestfs.pod:1658
3246 msgid "The reply message for ordinary functions is:"
3247 msgstr ""
3248
3249 # type: verbatim
3250 #: ../src/guestfs.pod:1660
3251 #, no-wrap
3252 msgid ""
3253 " total length (header + ret,\n"
3254 "      but not including the length word itself)\n"
3255 " struct guestfs_message_header (encoded as XDR)\n"
3256 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3257 "\n"
3258 msgstr ""
3259
3260 # type: textblock
3261 #: ../src/guestfs.pod:1665
3262 msgid ""
3263 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3264 "functions that return no formal return values."
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1668
3269 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3270 msgstr ""
3271
3272 # type: textblock
3273 #: ../src/guestfs.pod:1671
3274 msgid ""
3275 "In the case of an error, a flag is set in the header, and the reply message "
3276 "is slightly changed:"
3277 msgstr ""
3278
3279 # type: verbatim
3280 #: ../src/guestfs.pod:1674
3281 #, no-wrap
3282 msgid ""
3283 " total length (header + error,\n"
3284 "      but not including the length word itself)\n"
3285 " struct guestfs_message_header (encoded as XDR)\n"
3286 " struct guestfs_message_error (encoded as XDR)\n"
3287 "\n"
3288 msgstr ""
3289
3290 # type: textblock
3291 #: ../src/guestfs.pod:1679
3292 msgid ""
3293 "The C<guestfs_message_error> structure contains the error message as a "
3294 "string."
3295 msgstr ""
3296
3297 # type: =head3
3298 #: ../src/guestfs.pod:1682
3299 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3300 msgstr ""
3301
3302 # type: textblock
3303 #: ../src/guestfs.pod:1684
3304 msgid ""
3305 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3306 "The normal request message is sent (see above).  However this is followed by "
3307 "a sequence of file chunks."
3308 msgstr ""
3309
3310 # type: verbatim
3311 #: ../src/guestfs.pod:1688
3312 #, no-wrap
3313 msgid ""
3314 " total length (header + arguments,\n"
3315 "      but not including the length word itself,\n"
3316 "      and not including the chunks)\n"
3317 " struct guestfs_message_header (encoded as XDR)\n"
3318 " struct guestfs_<foo>_args (encoded as XDR)\n"
3319 " sequence of chunks for FileIn param #0\n"
3320 " sequence of chunks for FileIn param #1 etc.\n"
3321 "\n"
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1696
3326 msgid "The \"sequence of chunks\" is:"
3327 msgstr ""
3328
3329 # type: verbatim
3330 #: ../src/guestfs.pod:1698
3331 #, no-wrap
3332 msgid ""
3333 " length of chunk (not including length word itself)\n"
3334 " struct guestfs_chunk (encoded as XDR)\n"
3335 " length of chunk\n"
3336 " struct guestfs_chunk (encoded as XDR)\n"
3337 "   ...\n"
3338 " length of chunk\n"
3339 " struct guestfs_chunk (with data.data_len == 0)\n"
3340 "\n"
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1706
3345 msgid ""
3346 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3347 "is set in the final chunk to indicate either successful completion or early "
3348 "cancellation."
3349 msgstr ""
3350
3351 # type: textblock
3352 #: ../src/guestfs.pod:1710
3353 msgid ""
3354 "At time of writing there are no functions that have more than one FileIn "
3355 "parameter.  However this is (theoretically) supported, by sending the "
3356 "sequence of chunks for each FileIn parameter one after another (from left to "
3357 "right)."
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1715
3362 msgid ""
3363 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3364 "transfer.  The library does this by sending a chunk with a special flag set "
3365 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3366 "RPC, does I<not> send any reply, and goes back to reading the next request."
3367 msgstr ""
3368
3369 # type: textblock
3370 #: ../src/guestfs.pod:1721
3371 msgid ""
3372 "The daemon may also cancel.  It does this by writing a special word "
3373 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3374 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3375 "cancel chunk).  The special word is chosen so that even if cancellation "
3376 "happens right at the end of the transfer (after the library has finished "
3377 "writing and has started listening for the reply), the \"spurious\" cancel "
3378 "flag will not be confused with the reply message."
3379 msgstr ""
3380
3381 # type: textblock
3382 #: ../src/guestfs.pod:1730
3383 msgid ""
3384 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3385 "limit), and also files where the size is not known in advance (eg. from "
3386 "pipes or sockets).  However the chunks are rather small "
3387 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3388 "to keep much in memory."
3389 msgstr ""
3390
3391 # type: =head3
3392 #: ../src/guestfs.pod:1736
3393 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3394 msgstr ""
3395
3396 # type: textblock
3397 #: ../src/guestfs.pod:1738
3398 msgid ""
3399 "The protocol for FileOut parameters is exactly the same as for FileIn "
3400 "parameters, but with the roles of daemon and library reversed."
3401 msgstr ""
3402
3403 # type: verbatim
3404 #: ../src/guestfs.pod:1741
3405 #, no-wrap
3406 msgid ""
3407 " total length (header + ret,\n"
3408 "      but not including the length word itself,\n"
3409 "      and not including the chunks)\n"
3410 " struct guestfs_message_header (encoded as XDR)\n"
3411 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3412 " sequence of chunks for FileOut param #0\n"
3413 " sequence of chunks for FileOut param #1 etc.\n"
3414 "\n"
3415 msgstr ""
3416
3417 # type: =head3
3418 #: ../src/guestfs.pod:1749
3419 msgid "INITIAL MESSAGE"
3420 msgstr ""
3421
3422 # type: textblock
3423 #: ../src/guestfs.pod:1751
3424 msgid ""
3425 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3426 "which indicates that the guest and daemon is alive.  This is what "
3427 "L</guestfs_launch> waits for."
3428 msgstr ""
3429
3430 # type: =head3
3431 #: ../src/guestfs.pod:1755
3432 msgid "PROGRESS NOTIFICATION MESSAGES"
3433 msgstr ""
3434
3435 # type: textblock
3436 #: ../src/guestfs.pod:1757
3437 msgid ""
3438 "The daemon may send progress notification messages at any time.  These are "
3439 "distinguished by the normal length word being replaced by "
3440 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3441 msgstr ""
3442
3443 # type: textblock
3444 #: ../src/guestfs.pod:1761
3445 msgid ""
3446 "The library turns them into progress callbacks (see "
3447 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3448 "discards them if not."
3449 msgstr ""
3450
3451 # type: textblock
3452 #: ../src/guestfs.pod:1765
3453 msgid ""
3454 "The daemon self-limits the frequency of progress messages it sends (see "
3455 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3456 "messages."
3457 msgstr ""
3458
3459 # type: =head1
3460 #: ../src/guestfs.pod:1769
3461 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3462 msgstr ""
3463
3464 # type: textblock
3465 #: ../src/guestfs.pod:1771
3466 msgid ""
3467 "All high-level libguestfs actions are synchronous.  If you want to use "
3468 "libguestfs asynchronously then you must create a thread."
3469 msgstr ""
3470
3471 # type: textblock
3472 #: ../src/guestfs.pod:1774
3473 msgid ""
3474 "Only use the handle from a single thread.  Either use the handle exclusively "
3475 "from one thread, or provide your own mutex so that two threads cannot issue "
3476 "calls on the same handle at the same time."
3477 msgstr ""
3478
3479 # type: textblock
3480 #: ../src/guestfs.pod:1778
3481 msgid ""
3482 "See the graphical program guestfs-browser for one possible architecture for "
3483 "multithreaded programs using libvirt and libguestfs."
3484 msgstr ""
3485
3486 # type: =head1
3487 #: ../src/guestfs.pod:1781
3488 msgid "QEMU WRAPPERS"
3489 msgstr ""
3490
3491 # type: textblock
3492 #: ../src/guestfs.pod:1783
3493 msgid ""
3494 "If you want to compile your own qemu, run qemu from a non-standard location, "
3495 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3496 "around qemu."
3497 msgstr ""
3498
3499 # type: textblock
3500 #: ../src/guestfs.pod:1787
3501 msgid ""
3502 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3503 "last command in the shell script (so that qemu replaces the shell and "
3504 "becomes the direct child of the libguestfs-using program).  If you don't do "
3505 "this, then the qemu process won't be cleaned up correctly."
3506 msgstr ""
3507
3508 # type: textblock
3509 #: ../src/guestfs.pod:1792
3510 msgid ""
3511 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3512 "source:"
3513 msgstr ""
3514
3515 # type: verbatim
3516 #: ../src/guestfs.pod:1795
3517 #, no-wrap
3518 msgid ""
3519 " #!/bin/sh -\n"
3520 " qemudir=/home/rjones/d/qemu\n"
3521 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3522 "\"$@\"\n"
3523 "\n"
3524 msgstr ""
3525
3526 # type: textblock
3527 #: ../src/guestfs.pod:1799
3528 msgid ""
3529 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3530 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3531 "example:"
3532 msgstr ""
3533
3534 # type: verbatim
3535 #: ../src/guestfs.pod:1803
3536 #, no-wrap
3537 msgid ""
3538 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3539 "\n"
3540 msgstr ""
3541
3542 # type: textblock
3543 #: ../src/guestfs.pod:1805
3544 msgid ""
3545 "Note that libguestfs also calls qemu with the -help and -version options in "
3546 "order to determine features."
3547 msgstr ""
3548
3549 # type: =head1
3550 #: ../src/guestfs.pod:1808
3551 msgid "LIBGUESTFS VERSION NUMBERS"
3552 msgstr ""
3553
3554 # type: textblock
3555 #: ../src/guestfs.pod:1810
3556 msgid ""
3557 "Since April 2010, libguestfs has started to make separate development and "
3558 "stable releases, along with corresponding branches in our git repository.  "
3559 "These separate releases can be identified by version number:"
3560 msgstr ""
3561
3562 # type: verbatim
3563 #: ../src/guestfs.pod:1815
3564 #, no-wrap
3565 msgid ""
3566 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3567 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3568 "       |\n"
3569 "       v\n"
3570 " 1  .  3  .  5\n"
3571 " ^           ^\n"
3572 " |           |\n"
3573 " |           `-------- sub-version\n"
3574 " |\n"
3575 " `------ always '1' because we don't change the ABI\n"
3576 "\n"
3577 msgstr ""
3578
3579 # type: textblock
3580 #: ../src/guestfs.pod:1826
3581 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3582 msgstr ""
3583
3584 # type: textblock
3585 #: ../src/guestfs.pod:1828
3586 msgid ""
3587 "As time passes we cherry pick fixes from the development branch and backport "
3588 "those into the stable branch, the effect being that the stable branch should "
3589 "get more stable and less buggy over time.  So the stable releases are ideal "
3590 "for people who don't need new features but would just like the software to "
3591 "work."
3592 msgstr ""
3593
3594 # type: textblock
3595 #: ../src/guestfs.pod:1834
3596 msgid "Our criteria for backporting changes are:"
3597 msgstr ""
3598
3599 # type: textblock
3600 #: ../src/guestfs.pod:1840
3601 msgid ""
3602 "Documentation changes which don't affect any code are backported unless the "
3603 "documentation refers to a future feature which is not in stable."
3604 msgstr ""
3605
3606 # type: textblock
3607 #: ../src/guestfs.pod:1846
3608 msgid ""
3609 "Bug fixes which are not controversial, fix obvious problems, and have been "
3610 "well tested are backported."
3611 msgstr ""
3612
3613 # type: textblock
3614 #: ../src/guestfs.pod:1851
3615 msgid ""
3616 "Simple rearrangements of code which shouldn't affect how it works get "
3617 "backported.  This is so that the code in the two branches doesn't get too "
3618 "far out of step, allowing us to backport future fixes more easily."
3619 msgstr ""
3620
3621 # type: textblock
3622 #: ../src/guestfs.pod:1857
3623 msgid ""
3624 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3625 "exceptional case: the new feature is required in order to implement an "
3626 "important bug fix."
3627 msgstr ""
3628
3629 # type: textblock
3630 #: ../src/guestfs.pod:1863
3631 msgid ""
3632 "A new stable branch starts when we think the new features in development are "
3633 "substantial and compelling enough over the current stable branch to warrant "
3634 "it.  When that happens we create new stable and development versions 1.N.0 "
3635 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3636 "stable at this point, but by backporting fixes from development, that branch "
3637 "will stabilize over time."
3638 msgstr ""
3639
3640 # type: =head1
3641 #: ../src/guestfs.pod:1871 ../fish/guestfish.pod:867 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330 ../tools/virt-rescue.pl:255
3642 msgid "ENVIRONMENT VARIABLES"
3643 msgstr ""
3644
3645 # type: =item
3646 #: ../src/guestfs.pod:1875 ../fish/guestfish.pod:893
3647 msgid "LIBGUESTFS_APPEND"
3648 msgstr ""
3649
3650 # type: textblock
3651 #: ../src/guestfs.pod:1877 ../fish/guestfish.pod:895
3652 msgid "Pass additional options to the guest kernel."
3653 msgstr ""
3654
3655 # type: =item
3656 #: ../src/guestfs.pod:1879 ../fish/guestfish.pod:897
3657 msgid "LIBGUESTFS_DEBUG"
3658 msgstr ""
3659
3660 # type: textblock
3661 #: ../src/guestfs.pod:1881
3662 msgid ""
3663 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3664 "effect as calling C<guestfs_set_verbose (g, 1)>."
3665 msgstr ""
3666
3667 # type: =item
3668 #: ../src/guestfs.pod:1884 ../fish/guestfish.pod:902
3669 msgid "LIBGUESTFS_MEMSIZE"
3670 msgstr ""
3671
3672 # type: textblock
3673 #: ../src/guestfs.pod:1886 ../fish/guestfish.pod:904
3674 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3675 msgstr ""
3676
3677 # type: verbatim
3678 #: ../src/guestfs.pod:1889 ../fish/guestfish.pod:907
3679 #, no-wrap
3680 msgid ""
3681 " LIBGUESTFS_MEMSIZE=700\n"
3682 "\n"
3683 msgstr ""
3684
3685 # type: =item
3686 #: ../src/guestfs.pod:1891 ../fish/guestfish.pod:909
3687 msgid "LIBGUESTFS_PATH"
3688 msgstr ""
3689
3690 # type: textblock
3691 #: ../src/guestfs.pod:1893
3692 msgid ""
3693 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3694 "the discussion of paths in section PATH above."
3695 msgstr ""
3696
3697 # type: =item
3698 #: ../src/guestfs.pod:1896 ../fish/guestfish.pod:914
3699 msgid "LIBGUESTFS_QEMU"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1898 ../fish/guestfish.pod:916
3704 msgid ""
3705 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3706 "which was found at compile time by the configure script is used."
3707 msgstr ""
3708
3709 # type: textblock
3710 #: ../src/guestfs.pod:1902
3711 msgid "See also L</QEMU WRAPPERS> above."
3712 msgstr ""
3713
3714 # type: =item
3715 #: ../src/guestfs.pod:1904 ../fish/guestfish.pod:920
3716 msgid "LIBGUESTFS_TRACE"
3717 msgstr ""
3718
3719 # type: textblock
3720 #: ../src/guestfs.pod:1906
3721 msgid ""
3722 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3723 "effect as calling C<guestfs_set_trace (g, 1)>."
3724 msgstr ""
3725
3726 # type: =item
3727 #: ../src/guestfs.pod:1909 ../fish/guestfish.pod:929
3728 msgid "TMPDIR"
3729 msgstr ""
3730
3731 # type: textblock
3732 #: ../src/guestfs.pod:1911 ../fish/guestfish.pod:931
3733 msgid "Location of temporary directory, defaults to C</tmp>."
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1913 ../fish/guestfish.pod:933
3738 msgid ""
3739 "If libguestfs was compiled to use the supermin appliance then the real "
3740 "appliance is cached in this directory, shared between all handles belonging "
3741 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3742 "use in case C</tmp> is not large enough."
3743 msgstr ""
3744
3745 # type: =head1
3746 #: ../src/guestfs.pod:1921 ../fish/guestfish.pod: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
3747 msgid "SEE ALSO"
3748 msgstr ""
3749
3750 # type: textblock
3751 #: ../src/guestfs.pod:1923
3752 msgid ""
3753 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
3754 "L<virt-edit(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
3755 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
3756 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
3757 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
3758 msgstr ""
3759
3760 # type: textblock
3761 #: ../src/guestfs.pod:1941
3762 msgid ""
3763 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
3764 "L<lvm(8)>, L<disktype(1)>."
3765 msgstr ""
3766
3767 # type: =head1
3768 #: ../src/guestfs.pod:1948 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
3769 msgid "BUGS"
3770 msgstr ""
3771
3772 # type: textblock
3773 #: ../src/guestfs.pod:1950
3774 msgid "To get a list of bugs against libguestfs use this link:"
3775 msgstr ""
3776
3777 # type: textblock
3778 #: ../src/guestfs.pod:1952
3779 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
3780 msgstr ""
3781
3782 # type: textblock
3783 #: ../src/guestfs.pod:1954
3784 msgid "To report a new bug against libguestfs use this link:"
3785 msgstr ""
3786
3787 # type: textblock
3788 #: ../src/guestfs.pod:1956
3789 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
3790 msgstr ""
3791
3792 # type: textblock
3793 #: ../src/guestfs.pod:1958
3794 msgid "When reporting a bug, please check:"
3795 msgstr ""
3796
3797 # type: textblock
3798 #: ../src/guestfs.pod:1964
3799 msgid "That the bug hasn't been reported already."
3800 msgstr ""
3801
3802 # type: textblock
3803 #: ../src/guestfs.pod:1968
3804 msgid "That you are testing a recent version."
3805 msgstr ""
3806
3807 # type: textblock
3808 #: ../src/guestfs.pod:1972
3809 msgid "Describe the bug accurately, and give a way to reproduce it."
3810 msgstr ""
3811
3812 # type: textblock
3813 #: ../src/guestfs.pod:1976
3814 msgid ""
3815 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
3816 "bug report."
3817 msgstr ""
3818
3819 # type: =head1
3820 #: ../src/guestfs.pod:1981 ../fish/guestfish.pod:1008 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:225 ../inspector/virt-inspector.pl:580
3821 msgid "AUTHORS"
3822 msgstr ""
3823
3824 # type: textblock
3825 #: ../src/guestfs.pod:1983 ../fish/guestfish.pod:1010 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:227
3826 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3827 msgstr ""
3828
3829 # type: =head1
3830 #: ../src/guestfs.pod:1985 ../fish/guestfish.pod: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
3831 msgid "COPYRIGHT"
3832 msgstr ""
3833
3834 # type: textblock
3835 #: ../src/guestfs.pod:1987 ../fish/guestfish.pod:1014 ../fuse/guestmount.pod:231
3836 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3837 msgstr ""
3838
3839 # type: textblock
3840 #: ../src/guestfs.pod:1990
3841 msgid ""
3842 "This library is free software; you can redistribute it and/or modify it "
3843 "under the terms of the GNU Lesser General Public License as published by the "
3844 "Free Software Foundation; either version 2 of the License, or (at your "
3845 "option) any later version."
3846 msgstr ""
3847
3848 # type: textblock
3849 #: ../src/guestfs.pod:1995
3850 msgid ""
3851 "This library is distributed in the hope that it will be useful, but WITHOUT "
3852 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3853 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3854 "for more details."
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs.pod:2000
3859 msgid ""
3860 "You should have received a copy of the GNU Lesser General Public License "
3861 "along with this library; if not, write to the Free Software Foundation, "
3862 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3863 msgstr ""
3864
3865 # type: =head2
3866 #: ../src/guestfs-actions.pod:1
3867 msgid "guestfs_add_cdrom"
3868 msgstr ""
3869
3870 # type: verbatim
3871 #: ../src/guestfs-actions.pod:3
3872 #, no-wrap
3873 msgid ""
3874 " int\n"
3875 " guestfs_add_cdrom (guestfs_h *g,\n"
3876 "                    const char *filename);\n"
3877 "\n"
3878 msgstr ""
3879
3880 # type: textblock
3881 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
3882 msgid "This function adds a virtual CD-ROM disk image to the guest."
3883 msgstr ""
3884
3885 # type: textblock
3886 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
3887 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3888 msgstr ""
3889
3890 # type: textblock
3891 #: ../src/guestfs-actions.pod:17
3892 msgid ""
3893 "This call checks for the existence of C<filename>.  This stops you from "
3894 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3895 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3896 "instead."
3897 msgstr ""
3898
3899 # type: textblock
3900 #: ../src/guestfs-actions.pod:24
3901 msgid ""
3902 "If you just want to add an ISO file (often you use this as an efficient way "
3903 "to transfer large files into the guest), then you should probably use "
3904 "C<guestfs_add_drive_ro> instead."
3905 msgstr ""
3906
3907 # type: textblock
3908 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:56 ../src/guestfs-actions.pod:115 ../src/guestfs-actions.pod:150 ../src/guestfs-actions.pod:162 ../src/guestfs-actions.pod:181 ../src/guestfs-actions.pod:199 ../src/guestfs-actions.pod:211 ../src/guestfs-actions.pod:318 ../src/guestfs-actions.pod:336 ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:411 ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:492 ../src/guestfs-actions.pod:521 ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:546 ../src/guestfs-actions.pod:633 ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:673 ../src/guestfs-actions.pod:824 ../src/guestfs-actions.pod:842 ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:952 ../src/guestfs-actions.pod:969 ../src/guestfs-actions.pod:981 ../src/guestfs-actions.pod:999 ../src/guestfs-actions.pod:1034 ../src/guestfs-actions.pod:1096 ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1148 ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1275 ../src/guestfs-actions.pod:1307 ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:1533 ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2119 ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2208 ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2848 ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2873 ../src/guestfs-actions.pod:2905 ../src/guestfs-actions.pod:2972 ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3005 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3094 ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3186 ../src/guestfs-actions.pod:3200 ../src/guestfs-actions.pod:3211 ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3239 ../src/guestfs-actions.pod:3324 ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3446 ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3516 ../src/guestfs-actions.pod:3563 ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3609 ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3675 ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3779 ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3855 ../src/guestfs-actions.pod:3867 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4104 ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4140 ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4228 ../src/guestfs-actions.pod:4243 ../src/guestfs-actions.pod:4254 ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4572 ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4673 ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4710 ../src/guestfs-actions.pod:4726 ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4762 ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:4820 ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4859 ../src/guestfs-actions.pod:4881 ../src/guestfs-actions.pod:4894 ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4924 ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:5004 ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243 ../src/guestfs-actions.pod:5263 ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5377 ../src/guestfs-actions.pod:5391 ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5420 ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5493 ../src/guestfs-actions.pod:5530 ../src/guestfs-actions.pod:5541 ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5722 ../src/guestfs-actions.pod:5738 ../src/guestfs-actions.pod:5750 ../src/guestfs-actions.pod:5799 ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:5850 ../src/guestfs-actions.pod:5879 ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5949 ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6026 ../src/guestfs-actions.pod:6053
3909 msgid "This function returns 0 on success or -1 on error."
3910 msgstr ""
3911
3912 # type: textblock
3913 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:164 ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3914 msgid ""
3915 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3916 "instead."
3917 msgstr ""
3918
3919 # type: textblock
3920 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:186 ../src/guestfs-actions.pod:1280 ../src/guestfs-actions.pod:1732 ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:6110 ../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:4353 ../fish/guestfish-actions.pod:4450
3921 msgid ""
3922 "Deprecated functions will not be removed from the API, but the fact that "
3923 "they are deprecated indicates that there are problems with correct use of "
3924 "these functions."
3925 msgstr ""
3926
3927 # type: =head2
3928 #: ../src/guestfs-actions.pod:39
3929 msgid "guestfs_add_drive"
3930 msgstr ""
3931
3932 # type: verbatim
3933 #: ../src/guestfs-actions.pod:41
3934 #, no-wrap
3935 msgid ""
3936 " int\n"
3937 " guestfs_add_drive (guestfs_h *g,\n"
3938 "                    const char *filename);\n"
3939 "\n"
3940 msgstr ""
3941
3942 # type: textblock
3943 #: ../src/guestfs-actions.pod:45
3944 msgid ""
3945 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
3946 "optional parameters, so the disk is added writable, with the format being "
3947 "detected automatically."
3948 msgstr ""
3949
3950 # type: textblock
3951 #: ../src/guestfs-actions.pod:49
3952 msgid ""
3953 "Automatic detection of the format opens you up to a potential security hole "
3954 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3955 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3956 "you should think about replacing calls to this function with calls to "
3957 "C<guestfs_add_drive_opts>, and specifying the format."
3958 msgstr ""
3959
3960 # type: =head2
3961 #: ../src/guestfs-actions.pod:58
3962 msgid "guestfs_add_drive_opts"
3963 msgstr ""
3964
3965 # type: verbatim
3966 #: ../src/guestfs-actions.pod:60
3967 #, no-wrap
3968 msgid ""
3969 " int\n"
3970 " guestfs_add_drive_opts (guestfs_h *g,\n"
3971 "                         const char *filename,\n"
3972 "                         ...);\n"
3973 "\n"
3974 msgstr ""
3975
3976 # type: textblock
3977 #: ../src/guestfs-actions.pod:65
3978 msgid ""
3979 "You may supply a list of optional arguments to this call.  Use zero or more "
3980 "of the following pairs of parameters, and terminate the list with C<-1> on "
3981 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
3982 msgstr ""
3983
3984 # type: verbatim
3985 #: ../src/guestfs-actions.pod:70
3986 #, no-wrap
3987 msgid ""
3988 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
3989 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
3990 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
3991 "\n"
3992 msgstr ""
3993
3994 # type: textblock
3995 #: ../src/guestfs-actions.pod:74 ../fish/guestfish-actions.pod:56
3996 msgid ""
3997 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
3998 "The first time you call this function, the disk appears as C</dev/sda>, the "
3999 "second time as C</dev/sdb>, and so on."
4000 msgstr ""
4001
4002 # type: textblock
4003 #: ../src/guestfs-actions.pod:79 ../fish/guestfish-actions.pod:61
4004 msgid ""
4005 "You don't necessarily need to be root when using libguestfs.  However you "
4006 "obviously do need sufficient permissions to access the filename for whatever "
4007 "operations you want to perform (ie. read access if you just want to read the "
4008 "image or write access if you want to modify the image)."
4009 msgstr ""
4010
4011 # type: textblock
4012 #: ../src/guestfs-actions.pod:85 ../fish/guestfish-actions.pod:67
4013 msgid "This call checks that C<filename> exists."
4014 msgstr ""
4015
4016 # type: textblock
4017 #: ../src/guestfs-actions.pod:87 ../fish/guestfish-actions.pod:69
4018 msgid "The optional arguments are:"
4019 msgstr ""
4020
4021 # type: =item
4022 #: ../src/guestfs-actions.pod:91 ../fish/guestfish-actions.pod:73
4023 msgid "C<readonly>"
4024 msgstr ""
4025
4026 # type: textblock
4027 #: ../src/guestfs-actions.pod:93 ../fish/guestfish-actions.pod:75
4028 msgid ""
4029 "If true then the image is treated as read-only.  Writes are still allowed, "
4030 "but they are stored in a temporary snapshot overlay which is discarded at "
4031 "the end.  The disk that you add is not modified."
4032 msgstr ""
4033
4034 # type: =item
4035 #: ../src/guestfs-actions.pod:97 ../fish/guestfish-actions.pod:79
4036 msgid "C<format>"
4037 msgstr ""
4038
4039 # type: textblock
4040 #: ../src/guestfs-actions.pod:99
4041 msgid ""
4042 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4043 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4044 "Possible formats include C<raw> and C<qcow2>."
4045 msgstr ""
4046
4047 # type: textblock
4048 #: ../src/guestfs-actions.pod:103 ../fish/guestfish-actions.pod:85
4049 msgid ""
4050 "Automatic detection of the format opens you up to a potential security hole "
4051 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4052 "RHBZ#642934.  Specifying the format closes this security hole."
4053 msgstr ""
4054
4055 # type: =item
4056 #: ../src/guestfs-actions.pod:108 ../fish/guestfish-actions.pod:90
4057 msgid "C<iface>"
4058 msgstr ""
4059
4060 # type: textblock
4061 #: ../src/guestfs-actions.pod:110
4062 msgid ""
4063 "This rarely-used option lets you emulate the behaviour of the deprecated "
4064 "C<guestfs_add_drive_with_if> call (q.v.)"
4065 msgstr ""
4066
4067 # type: =head2
4068 #: ../src/guestfs-actions.pod:117
4069 msgid "guestfs_add_drive_opts_va"
4070 msgstr ""
4071
4072 # type: verbatim
4073 #: ../src/guestfs-actions.pod:119
4074 #, no-wrap
4075 msgid ""
4076 " int\n"
4077 "guestfs_add_drive_opts_va (guestfs_h *g,\n"
4078 "                        const char *filename,\n"
4079 "                        va_list args);\n"
4080 "\n"
4081 msgstr ""
4082
4083 # type: textblock
4084 #: ../src/guestfs-actions.pod:124
4085 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4086 msgstr ""
4087
4088 # type: textblock
4089 #: ../src/guestfs-actions.pod:126 ../src/guestfs-actions.pod:137
4090 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4091 msgstr ""
4092
4093 # type: =head2
4094 #: ../src/guestfs-actions.pod:128
4095 msgid "guestfs_add_drive_opts_argv"
4096 msgstr ""
4097
4098 # type: verbatim
4099 #: ../src/guestfs-actions.pod:130
4100 #, no-wrap
4101 msgid ""
4102 " int\n"
4103 "guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4104 "                        const char *filename,\n"
4105 "                        const struct guestfs_add_drive_opts_argv "
4106 "*optargs);\n"
4107 "\n"
4108 msgstr ""
4109
4110 # type: textblock
4111 #: ../src/guestfs-actions.pod:135
4112 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4113 msgstr ""
4114
4115 # type: =head2
4116 #: ../src/guestfs-actions.pod:139
4117 msgid "guestfs_add_drive_ro"
4118 msgstr ""
4119
4120 # type: verbatim
4121 #: ../src/guestfs-actions.pod:141
4122 #, no-wrap
4123 msgid ""
4124 " int\n"
4125 " guestfs_add_drive_ro (guestfs_h *g,\n"
4126 "                       const char *filename);\n"
4127 "\n"
4128 msgstr ""
4129
4130 # type: textblock
4131 #: ../src/guestfs-actions.pod:145
4132 msgid ""
4133 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4134 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4135 "disk is added read-only, with the format being detected automatically."
4136 msgstr ""
4137
4138 # type: =head2
4139 #: ../src/guestfs-actions.pod:152
4140 msgid "guestfs_add_drive_ro_with_if"
4141 msgstr ""
4142
4143 # type: verbatim
4144 #: ../src/guestfs-actions.pod:154
4145 #, no-wrap
4146 msgid ""
4147 " int\n"
4148 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4149 "                               const char *filename,\n"
4150 "                               const char *iface);\n"
4151 "\n"
4152 msgstr ""
4153
4154 # type: textblock
4155 #: ../src/guestfs-actions.pod:159
4156 msgid ""
4157 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4158 "QEMU interface emulation to use at run time."
4159 msgstr ""
4160
4161 # type: =head2
4162 #: ../src/guestfs-actions.pod:171
4163 msgid "guestfs_add_drive_with_if"
4164 msgstr ""
4165
4166 # type: verbatim
4167 #: ../src/guestfs-actions.pod:173
4168 #, no-wrap
4169 msgid ""
4170 " int\n"
4171 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4172 "                            const char *filename,\n"
4173 "                            const char *iface);\n"
4174 "\n"
4175 msgstr ""
4176
4177 # type: textblock
4178 #: ../src/guestfs-actions.pod:178
4179 msgid ""
4180 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4181 "QEMU interface emulation to use at run time."
4182 msgstr ""
4183
4184 # type: =head2
4185 #: ../src/guestfs-actions.pod:190
4186 msgid "guestfs_aug_clear"
4187 msgstr ""
4188
4189 # type: verbatim
4190 #: ../src/guestfs-actions.pod:192
4191 #, no-wrap
4192 msgid ""
4193 " int\n"
4194 " guestfs_aug_clear (guestfs_h *g,\n"
4195 "                    const char *augpath);\n"
4196 "\n"
4197 msgstr ""
4198
4199 # type: textblock
4200 #: ../src/guestfs-actions.pod:196 ../fish/guestfish-actions.pod:142
4201 msgid ""
4202 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4203 "L<augtool(1)> C<clear> command."
4204 msgstr ""
4205
4206 # type: =head2
4207 #: ../src/guestfs-actions.pod:201
4208 msgid "guestfs_aug_close"
4209 msgstr ""
4210
4211 # type: verbatim
4212 #: ../src/guestfs-actions.pod:203
4213 #, no-wrap
4214 msgid ""
4215 " int\n"
4216 " guestfs_aug_close (guestfs_h *g);\n"
4217 "\n"
4218 msgstr ""
4219
4220 # type: textblock
4221 #: ../src/guestfs-actions.pod:206
4222 msgid ""
4223 "Close the current Augeas handle and free up any resources used by it.  After "
4224 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4225 "any other Augeas functions."
4226 msgstr ""
4227
4228 # type: =head2
4229 #: ../src/guestfs-actions.pod:213
4230 msgid "guestfs_aug_defnode"
4231 msgstr ""
4232
4233 # type: verbatim
4234 #: ../src/guestfs-actions.pod:215
4235 #, no-wrap
4236 msgid ""
4237 " struct guestfs_int_bool *\n"
4238 " guestfs_aug_defnode (guestfs_h *g,\n"
4239 "                      const char *name,\n"
4240 "                      const char *expr,\n"
4241 "                      const char *val);\n"
4242 "\n"
4243 msgstr ""
4244
4245 # type: textblock
4246 #: ../src/guestfs-actions.pod:221 ../fish/guestfish-actions.pod:158
4247 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4248 msgstr ""
4249
4250 # type: textblock
4251 #: ../src/guestfs-actions.pod:224
4252 msgid ""
4253 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4254 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4255 "containing that single node."
4256 msgstr ""
4257
4258 # type: textblock
4259 #: ../src/guestfs-actions.pod:228 ../fish/guestfish-actions.pod:165
4260 msgid ""
4261 "On success this returns a pair containing the number of nodes in the "
4262 "nodeset, and a boolean flag if a node was created."
4263 msgstr ""
4264
4265 # type: textblock
4266 #: ../src/guestfs-actions.pod:232
4267 msgid ""
4268 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4269 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4270 msgstr ""
4271
4272 # type: =head2
4273 #: ../src/guestfs-actions.pod:236
4274 msgid "guestfs_aug_defvar"
4275 msgstr ""
4276
4277 # type: verbatim
4278 #: ../src/guestfs-actions.pod:238
4279 #, no-wrap
4280 msgid ""
4281 " int\n"
4282 " guestfs_aug_defvar (guestfs_h *g,\n"
4283 "                     const char *name,\n"
4284 "                     const char *expr);\n"
4285 "\n"
4286 msgstr ""
4287
4288 # type: textblock
4289 #: ../src/guestfs-actions.pod:243 ../fish/guestfish-actions.pod:173
4290 msgid ""
4291 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4292 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4293 msgstr ""
4294
4295 # type: textblock
4296 #: ../src/guestfs-actions.pod:247 ../fish/guestfish-actions.pod:177
4297 msgid ""
4298 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4299 "evaluates to something which is not a nodeset."
4300 msgstr ""
4301
4302 # type: textblock
4303 #: ../src/guestfs-actions.pod:250 ../src/guestfs-actions.pod:399 ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1166 ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1683 ../src/guestfs-actions.pod:1770 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870 ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:3843 ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4353 ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5912
4304 msgid "On error this function returns -1."
4305 msgstr ""
4306
4307 # type: =head2
4308 #: ../src/guestfs-actions.pod:252
4309 msgid "guestfs_aug_get"
4310 msgstr ""
4311
4312 # type: verbatim
4313 #: ../src/guestfs-actions.pod:254
4314 #, no-wrap
4315 msgid ""
4316 " char *\n"
4317 " guestfs_aug_get (guestfs_h *g,\n"
4318 "                  const char *augpath);\n"
4319 "\n"
4320 msgstr ""
4321
4322 # type: textblock
4323 #: ../src/guestfs-actions.pod:258 ../fish/guestfish-actions.pod:184
4324 msgid ""
4325 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4326 "node, the C<value> is returned."
4327 msgstr ""
4328
4329 # type: textblock
4330 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:787 ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:896 ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1047 ../src/guestfs-actions.pod:1062 ../src/guestfs-actions.pod:1079 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:1479 ../src/guestfs-actions.pod:1630 ../src/guestfs-actions.pod:1645 ../src/guestfs-actions.pod:1726 ../src/guestfs-actions.pod:1745 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3128 ../src/guestfs-actions.pod:3279 ../src/guestfs-actions.pod:3380 ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4155 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4473 ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:5023 ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5052 ../src/guestfs-actions.pod:5074 ../src/guestfs-actions.pod:5668 ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5860 ../src/guestfs-actions.pod:6104
4331 msgid ""
4332 "This function returns a string, or NULL on error.  I<The caller must free "
4333 "the returned string after use>."
4334 msgstr ""
4335
4336 # type: =head2
4337 #: ../src/guestfs-actions.pod:264
4338 msgid "guestfs_aug_init"
4339 msgstr ""
4340
4341 # type: verbatim
4342 #: ../src/guestfs-actions.pod:266
4343 #, no-wrap
4344 msgid ""
4345 " int\n"
4346 " guestfs_aug_init (guestfs_h *g,\n"
4347 "                   const char *root,\n"
4348 "                   int flags);\n"
4349 "\n"
4350 msgstr ""
4351
4352 # type: textblock
4353 #: ../src/guestfs-actions.pod:271 ../fish/guestfish-actions.pod:191
4354 msgid ""
4355 "Create a new Augeas handle for editing configuration files.  If there was "
4356 "any previous Augeas handle associated with this guestfs session, then it is "
4357 "closed."
4358 msgstr ""
4359
4360 # type: textblock
4361 #: ../src/guestfs-actions.pod:275
4362 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4363 msgstr ""
4364
4365 # type: textblock
4366 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:198
4367 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4368 msgstr ""
4369
4370 # type: textblock
4371 #: ../src/guestfs-actions.pod:281 ../fish/guestfish-actions.pod:201
4372 msgid ""
4373 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4374 "logical I<or> of the following integers:"
4375 msgstr ""
4376
4377 # type: =item
4378 #: ../src/guestfs-actions.pod:287 ../fish/guestfish-actions.pod:207
4379 msgid "C<AUG_SAVE_BACKUP> = 1"
4380 msgstr ""
4381
4382 # type: textblock
4383 #: ../src/guestfs-actions.pod:289 ../fish/guestfish-actions.pod:209
4384 msgid "Keep the original file with a C<.augsave> extension."
4385 msgstr ""
4386
4387 # type: =item
4388 #: ../src/guestfs-actions.pod:291 ../fish/guestfish-actions.pod:211
4389 msgid "C<AUG_SAVE_NEWFILE> = 2"
4390 msgstr ""
4391
4392 # type: textblock
4393 #: ../src/guestfs-actions.pod:293 ../fish/guestfish-actions.pod:213
4394 msgid ""
4395 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4396 "original.  Overrides C<AUG_SAVE_BACKUP>."
4397 msgstr ""
4398
4399 # type: =item
4400 #: ../src/guestfs-actions.pod:296 ../fish/guestfish-actions.pod:216
4401 msgid "C<AUG_TYPE_CHECK> = 4"
4402 msgstr ""
4403
4404 # type: textblock
4405 #: ../src/guestfs-actions.pod:298 ../fish/guestfish-actions.pod:218
4406 msgid "Typecheck lenses (can be expensive)."
4407 msgstr ""
4408
4409 # type: =item
4410 #: ../src/guestfs-actions.pod:300 ../fish/guestfish-actions.pod:220
4411 msgid "C<AUG_NO_STDINC> = 8"
4412 msgstr ""
4413
4414 # type: textblock
4415 #: ../src/guestfs-actions.pod:302 ../fish/guestfish-actions.pod:222
4416 msgid "Do not use standard load path for modules."
4417 msgstr ""
4418
4419 # type: =item
4420 #: ../src/guestfs-actions.pod:304 ../fish/guestfish-actions.pod:224
4421 msgid "C<AUG_SAVE_NOOP> = 16"
4422 msgstr ""
4423
4424 # type: textblock
4425 #: ../src/guestfs-actions.pod:306 ../fish/guestfish-actions.pod:226
4426 msgid "Make save a no-op, just record what would have been changed."
4427 msgstr ""
4428
4429 # type: =item
4430 #: ../src/guestfs-actions.pod:308 ../fish/guestfish-actions.pod:228
4431 msgid "C<AUG_NO_LOAD> = 32"
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:310
4436 msgid "Do not load the tree in C<guestfs_aug_init>."
4437 msgstr ""
4438
4439 # type: textblock
4440 #: ../src/guestfs-actions.pod:314
4441 msgid "To close the handle, you can call C<guestfs_aug_close>."
4442 msgstr ""
4443
4444 # type: textblock
4445 #: ../src/guestfs-actions.pod:316 ../fish/guestfish-actions.pod:236
4446 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4447 msgstr ""
4448
4449 # type: =head2
4450 #: ../src/guestfs-actions.pod:320
4451 msgid "guestfs_aug_insert"
4452 msgstr ""
4453
4454 # type: verbatim
4455 #: ../src/guestfs-actions.pod:322
4456 #, no-wrap
4457 msgid ""
4458 " int\n"
4459 " guestfs_aug_insert (guestfs_h *g,\n"
4460 "                     const char *augpath,\n"
4461 "                     const char *label,\n"
4462 "                     int before);\n"
4463 "\n"
4464 msgstr ""
4465
4466 # type: textblock
4467 #: ../src/guestfs-actions.pod:328 ../fish/guestfish-actions.pod:242
4468 msgid ""
4469 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4470 "or after C<path> (depending on the boolean flag C<before>)."
4471 msgstr ""
4472
4473 # type: textblock
4474 #: ../src/guestfs-actions.pod:332 ../fish/guestfish-actions.pod:246
4475 msgid ""
4476 "C<path> must match exactly one existing node in the tree, and C<label> must "
4477 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4478 msgstr ""
4479
4480 # type: =head2
4481 #: ../src/guestfs-actions.pod:338
4482 msgid "guestfs_aug_load"
4483 msgstr ""
4484
4485 # type: verbatim
4486 #: ../src/guestfs-actions.pod:340
4487 #, no-wrap
4488 msgid ""
4489 " int\n"
4490 " guestfs_aug_load (guestfs_h *g);\n"
4491 "\n"
4492 msgstr ""
4493
4494 # type: textblock
4495 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:254
4496 msgid "Load files into the tree."
4497 msgstr ""
4498
4499 # type: textblock
4500 #: ../src/guestfs-actions.pod:345 ../fish/guestfish-actions.pod:256
4501 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4502 msgstr ""
4503
4504 # type: =head2
4505 #: ../src/guestfs-actions.pod:350
4506 msgid "guestfs_aug_ls"
4507 msgstr ""
4508
4509 # type: verbatim
4510 #: ../src/guestfs-actions.pod:352
4511 #, no-wrap
4512 msgid ""
4513 " char **\n"
4514 " guestfs_aug_ls (guestfs_h *g,\n"
4515 "                 const char *augpath);\n"
4516 "\n"
4517 msgstr ""
4518
4519 # type: textblock
4520 #: ../src/guestfs-actions.pod:356
4521 msgid ""
4522 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4523 "sorting the resulting nodes into alphabetical order."
4524 msgstr ""
4525
4526 # type: textblock
4527 #: ../src/guestfs-actions.pod:359 ../src/guestfs-actions.pod:373 ../src/guestfs-actions.pod:507 ../src/guestfs-actions.pod:913 ../src/guestfs-actions.pod:1209 ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1319 ../src/guestfs-actions.pod:1336 ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:1961 ../src/guestfs-actions.pod:2000 ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2888 ../src/guestfs-actions.pod:3254 ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5194 ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5342 ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:5784 ../src/guestfs-actions.pod:5825 ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6065 ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6141
4528 msgid ""
4529 "This function returns a NULL-terminated array of strings (like "
4530 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4531 "strings and the array after use>."
4532 msgstr ""
4533
4534 # type: =head2
4535 #: ../src/guestfs-actions.pod:363
4536 msgid "guestfs_aug_match"
4537 msgstr ""
4538
4539 # type: verbatim
4540 #: ../src/guestfs-actions.pod:365
4541 #, no-wrap
4542 msgid ""
4543 " char **\n"
4544 " guestfs_aug_match (guestfs_h *g,\n"
4545 "                    const char *augpath);\n"
4546 "\n"
4547 msgstr ""
4548
4549 # type: textblock
4550 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:270
4551 msgid ""
4552 "Returns a list of paths which match the path expression C<path>.  The "
4553 "returned paths are sufficiently qualified so that they match exactly one "
4554 "node in the current tree."
4555 msgstr ""
4556
4557 # type: =head2
4558 #: ../src/guestfs-actions.pod:377
4559 msgid "guestfs_aug_mv"
4560 msgstr ""
4561
4562 # type: verbatim
4563 #: ../src/guestfs-actions.pod:379
4564 #, no-wrap
4565 msgid ""
4566 " int\n"
4567 " guestfs_aug_mv (guestfs_h *g,\n"
4568 "                 const char *src,\n"
4569 "                 const char *dest);\n"
4570 "\n"
4571 msgstr ""
4572
4573 # type: textblock
4574 #: ../src/guestfs-actions.pod:384 ../fish/guestfish-actions.pod:278
4575 msgid ""
4576 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4577 "C<dest> is overwritten if it exists."
4578 msgstr ""
4579
4580 # type: =head2
4581 #: ../src/guestfs-actions.pod:389
4582 msgid "guestfs_aug_rm"
4583 msgstr ""
4584
4585 # type: verbatim
4586 #: ../src/guestfs-actions.pod:391
4587 #, no-wrap
4588 msgid ""
4589 " int\n"
4590 " guestfs_aug_rm (guestfs_h *g,\n"
4591 "                 const char *augpath);\n"
4592 "\n"
4593 msgstr ""
4594
4595 # type: textblock
4596 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:285
4597 msgid "Remove C<path> and all of its children."
4598 msgstr ""
4599
4600 # type: textblock
4601 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:287
4602 msgid "On success this returns the number of entries which were removed."
4603 msgstr ""
4604
4605 # type: =head2
4606 #: ../src/guestfs-actions.pod:401
4607 msgid "guestfs_aug_save"
4608 msgstr ""
4609
4610 # type: verbatim
4611 #: ../src/guestfs-actions.pod:403
4612 #, no-wrap
4613 msgid ""
4614 " int\n"
4615 " guestfs_aug_save (guestfs_h *g);\n"
4616 "\n"
4617 msgstr ""
4618
4619 # type: textblock
4620 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:293
4621 msgid "This writes all pending changes to disk."
4622 msgstr ""
4623
4624 # type: textblock
4625 #: ../src/guestfs-actions.pod:408
4626 msgid ""
4627 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4628 "are saved."
4629 msgstr ""
4630
4631 # type: =head2
4632 #: ../src/guestfs-actions.pod:413
4633 msgid "guestfs_aug_set"
4634 msgstr ""
4635
4636 # type: verbatim
4637 #: ../src/guestfs-actions.pod:415
4638 #, no-wrap
4639 msgid ""
4640 " int\n"
4641 " guestfs_aug_set (guestfs_h *g,\n"
4642 "                  const char *augpath,\n"
4643 "                  const char *val);\n"
4644 "\n"
4645 msgstr ""
4646
4647 # type: textblock
4648 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:302
4649 msgid "Set the value associated with C<path> to C<val>."
4650 msgstr ""
4651
4652 # type: textblock
4653 #: ../src/guestfs-actions.pod:422
4654 msgid ""
4655 "In the Augeas API, it is possible to clear a node by setting the value to "
4656 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4657 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4658 msgstr ""
4659
4660 # type: =head2
4661 #: ../src/guestfs-actions.pod:429
4662 msgid "guestfs_available"
4663 msgstr ""
4664
4665 # type: verbatim
4666 #: ../src/guestfs-actions.pod:431
4667 #, no-wrap
4668 msgid ""
4669 " int\n"
4670 " guestfs_available (guestfs_h *g,\n"
4671 "                    char *const *groups);\n"
4672 "\n"
4673 msgstr ""
4674
4675 # type: textblock
4676 #: ../src/guestfs-actions.pod:435 ../fish/guestfish-actions.pod:313
4677 msgid ""
4678 "This command is used to check the availability of some groups of "
4679 "functionality in the appliance, which not all builds of the libguestfs "
4680 "appliance will be able to provide."
4681 msgstr ""
4682
4683 # type: textblock
4684 #: ../src/guestfs-actions.pod:439
4685 msgid ""
4686 "The libguestfs groups, and the functions that those groups correspond to, "
4687 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4688 "runtime by calling C<guestfs_available_all_groups>."
4689 msgstr ""
4690
4691 # type: textblock
4692 #: ../src/guestfs-actions.pod:444 ../fish/guestfish-actions.pod:322
4693 msgid ""
4694 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4695 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4696 "and Augeas (configuration file editing) functions."
4697 msgstr ""
4698
4699 # type: textblock
4700 #: ../src/guestfs-actions.pod:449 ../fish/guestfish-actions.pod:327
4701 msgid "The command returns no error if I<all> requested groups are available."
4702 msgstr ""
4703
4704 # type: textblock
4705 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:329
4706 msgid ""
4707 "It fails with an error if one or more of the requested groups is unavailable "
4708 "in the appliance."
4709 msgstr ""
4710
4711 # type: textblock
4712 #: ../src/guestfs-actions.pod:454 ../fish/guestfish-actions.pod:332
4713 msgid ""
4714 "If an unknown group name is included in the list of groups then an error is "
4715 "always returned."
4716 msgstr ""
4717
4718 # type: textblock
4719 #: ../src/guestfs-actions.pod:457 ../fish/guestfish-actions.pod:335
4720 msgid "I<Notes:>"
4721 msgstr ""
4722
4723 # type: textblock
4724 #: ../src/guestfs-actions.pod:463
4725 msgid "You must call C<guestfs_launch> before calling this function."
4726 msgstr ""
4727
4728 # type: textblock
4729 #: ../src/guestfs-actions.pod:465 ../fish/guestfish-actions.pod:343
4730 msgid ""
4731 "The reason is because we don't know what groups are supported by the "
4732 "appliance/daemon until it is running and can be queried."
4733 msgstr ""
4734
4735 # type: textblock
4736 #: ../src/guestfs-actions.pod:471 ../fish/guestfish-actions.pod:349
4737 msgid ""
4738 "If a group of functions is available, this does not necessarily mean that "
4739 "they will work.  You still have to check for errors when calling individual "
4740 "API functions even if they are available."
4741 msgstr ""
4742
4743 # type: textblock
4744 #: ../src/guestfs-actions.pod:478 ../fish/guestfish-actions.pod:356
4745 msgid ""
4746 "It is usually the job of distro packagers to build complete functionality "
4747 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4748 "with all requirements satisfied, will support everything."
4749 msgstr ""
4750
4751 # type: textblock
4752 #: ../src/guestfs-actions.pod:485
4753 msgid ""
4754 "This call was added in version C<1.0.80>.  In previous versions of "
4755 "libguestfs all you could do would be to speculatively execute a command to "
4756 "find out if the daemon implemented it.  See also C<guestfs_version>."
4757 msgstr ""
4758
4759 # type: =head2
4760 #: ../src/guestfs-actions.pod:494
4761 msgid "guestfs_available_all_groups"
4762 msgstr ""
4763
4764 # type: verbatim
4765 #: ../src/guestfs-actions.pod:496
4766 #, no-wrap
4767 msgid ""
4768 " char **\n"
4769 " guestfs_available_all_groups (guestfs_h *g);\n"
4770 "\n"
4771 msgstr ""
4772
4773 # type: textblock
4774 #: ../src/guestfs-actions.pod:499
4775 msgid ""
4776 "This command returns a list of all optional groups that this daemon knows "
4777 "about.  Note this returns both supported and unsupported groups.  To find "
4778 "out which ones the daemon can actually support you have to call "
4779 "C<guestfs_available> on each member of the returned list."
4780 msgstr ""
4781
4782 # type: textblock
4783 #: ../src/guestfs-actions.pod:505
4784 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4785 msgstr ""
4786
4787 # type: =head2
4788 #: ../src/guestfs-actions.pod:511
4789 msgid "guestfs_base64_in"
4790 msgstr ""
4791
4792 # type: verbatim
4793 #: ../src/guestfs-actions.pod:513
4794 #, no-wrap
4795 msgid ""
4796 " int\n"
4797 " guestfs_base64_in (guestfs_h *g,\n"
4798 "                    const char *base64file,\n"
4799 "                    const char *filename);\n"
4800 "\n"
4801 msgstr ""
4802
4803 # type: textblock
4804 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:386
4805 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4806 msgstr ""
4807
4808 # type: =head2
4809 #: ../src/guestfs-actions.pod:523
4810 msgid "guestfs_base64_out"
4811 msgstr ""
4812
4813 # type: verbatim
4814 #: ../src/guestfs-actions.pod:525
4815 #, no-wrap
4816 msgid ""
4817 " int\n"
4818 " guestfs_base64_out (guestfs_h *g,\n"
4819 "                     const char *filename,\n"
4820 "                     const char *base64file);\n"
4821 "\n"
4822 msgstr ""
4823
4824 # type: textblock
4825 #: ../src/guestfs-actions.pod:530 ../fish/guestfish-actions.pod:395
4826 msgid ""
4827 "This command downloads the contents of C<filename>, writing it out to local "
4828 "file C<base64file> encoded as base64."
4829 msgstr ""
4830
4831 # type: =head2
4832 #: ../src/guestfs-actions.pod:535
4833 msgid "guestfs_blockdev_flushbufs"
4834 msgstr ""
4835
4836 # type: verbatim
4837 #: ../src/guestfs-actions.pod:537
4838 #, no-wrap
4839 msgid ""
4840 " int\n"
4841 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4842 "                             const char *device);\n"
4843 "\n"
4844 msgstr ""
4845
4846 # type: textblock
4847 #: ../src/guestfs-actions.pod:541 ../fish/guestfish-actions.pod:404
4848 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4849 msgstr ""
4850
4851 # type: textblock
4852 #: ../src/guestfs-actions.pod:544 ../src/guestfs-actions.pod:559 ../src/guestfs-actions.pod:572 ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:659 ../src/guestfs-actions.pod:671 ../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
4853 msgid "This uses the L<blockdev(8)> command."
4854 msgstr ""
4855
4856 # type: =head2
4857 #: ../src/guestfs-actions.pod:548
4858 msgid "guestfs_blockdev_getbsz"
4859 msgstr ""
4860
4861 # type: verbatim
4862 #: ../src/guestfs-actions.pod:550
4863 #, no-wrap
4864 msgid ""
4865 " int\n"
4866 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
4867 "                          const char *device);\n"
4868 "\n"
4869 msgstr ""
4870
4871 # type: textblock
4872 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:413
4873 msgid "This returns the block size of a device."
4874 msgstr ""
4875
4876 # type: textblock
4877 #: ../src/guestfs-actions.pod:556 ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4878 msgid ""
4879 "(Note this is different from both I<size in blocks> and I<filesystem block "
4880 "size>)."
4881 msgstr ""
4882
4883 # type: =head2
4884 #: ../src/guestfs-actions.pod:563
4885 msgid "guestfs_blockdev_getro"
4886 msgstr ""
4887
4888 # type: verbatim
4889 #: ../src/guestfs-actions.pod:565
4890 #, no-wrap
4891 msgid ""
4892 " int\n"
4893 " guestfs_blockdev_getro (guestfs_h *g,\n"
4894 "                         const char *device);\n"
4895 "\n"
4896 msgstr ""
4897
4898 # type: textblock
4899 #: ../src/guestfs-actions.pod:569 ../fish/guestfish-actions.pod:424
4900 msgid ""
4901 "Returns a boolean indicating if the block device is read-only (true if "
4902 "read-only, false if not)."
4903 msgstr ""
4904
4905 # type: textblock
4906 #: ../src/guestfs-actions.pod:574 ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1258 ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1715 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:2569 ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:2622 ../src/guestfs-actions.pod:2633 ../src/guestfs-actions.pod:2645 ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2671 ../src/guestfs-actions.pod:3941
4907 msgid "This function returns a C truth value on success or -1 on error."
4908 msgstr ""
4909
4910 # type: =head2
4911 #: ../src/guestfs-actions.pod:576
4912 msgid "guestfs_blockdev_getsize64"
4913 msgstr ""
4914
4915 # type: verbatim
4916 #: ../src/guestfs-actions.pod:578
4917 #, no-wrap
4918 msgid ""
4919 " int64_t\n"
4920 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4921 "                             const char *device);\n"
4922 "\n"
4923 msgstr ""
4924
4925 # type: textblock
4926 #: ../src/guestfs-actions.pod:582 ../fish/guestfish-actions.pod:433
4927 msgid "This returns the size of the device in bytes."
4928 msgstr ""
4929
4930 # type: textblock
4931 #: ../src/guestfs-actions.pod:584
4932 msgid "See also C<guestfs_blockdev_getsz>."
4933 msgstr ""
4934
4935 # type: =head2
4936 #: ../src/guestfs-actions.pod:590
4937 msgid "guestfs_blockdev_getss"
4938 msgstr ""
4939
4940 # type: verbatim
4941 #: ../src/guestfs-actions.pod:592
4942 #, no-wrap
4943 msgid ""
4944 " int\n"
4945 " guestfs_blockdev_getss (guestfs_h *g,\n"
4946 "                         const char *device);\n"
4947 "\n"
4948 msgstr ""
4949
4950 # type: textblock
4951 #: ../src/guestfs-actions.pod:596 ../fish/guestfish-actions.pod:443
4952 msgid ""
4953 "This returns the size of sectors on a block device.  Usually 512, but can be "
4954 "larger for modern devices."
4955 msgstr ""
4956
4957 # type: textblock
4958 #: ../src/guestfs-actions.pod:599
4959 msgid ""
4960 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
4961 "that)."
4962 msgstr ""
4963
4964 # type: =head2
4965 #: ../src/guestfs-actions.pod:606
4966 msgid "guestfs_blockdev_getsz"
4967 msgstr ""
4968
4969 # type: verbatim
4970 #: ../src/guestfs-actions.pod:608
4971 #, no-wrap
4972 msgid ""
4973 " int64_t\n"
4974 " guestfs_blockdev_getsz (guestfs_h *g,\n"
4975 "                         const char *device);\n"
4976 "\n"
4977 msgstr ""
4978
4979 # type: textblock
4980 #: ../src/guestfs-actions.pod:612 ../fish/guestfish-actions.pod:455
4981 msgid ""
4982 "This returns the size of the device in units of 512-byte sectors (even if "
4983 "the sectorsize isn't 512 bytes ... weird)."
4984 msgstr ""
4985
4986 # type: textblock
4987 #: ../src/guestfs-actions.pod:615
4988 msgid ""
4989 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
4990 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
4991 msgstr ""
4992
4993 # type: =head2
4994 #: ../src/guestfs-actions.pod:623
4995 msgid "guestfs_blockdev_rereadpt"
4996 msgstr ""
4997
4998 # type: verbatim
4999 #: ../src/guestfs-actions.pod:625
5000 #, no-wrap
5001 msgid ""
5002 " int\n"
5003 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5004 "                            const char *device);\n"
5005 "\n"
5006 msgstr ""
5007
5008 # type: textblock
5009 #: ../src/guestfs-actions.pod:629 ../fish/guestfish-actions.pod:468
5010 msgid "Reread the partition table on C<device>."
5011 msgstr ""
5012
5013 # type: =head2
5014 #: ../src/guestfs-actions.pod:635
5015 msgid "guestfs_blockdev_setbsz"
5016 msgstr ""
5017
5018 # type: verbatim
5019 #: ../src/guestfs-actions.pod:637
5020 #, no-wrap
5021 msgid ""
5022 " int\n"
5023 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5024 "                          const char *device,\n"
5025 "                          int blocksize);\n"
5026 "\n"
5027 msgstr ""
5028
5029 # type: textblock
5030 #: ../src/guestfs-actions.pod:642 ../fish/guestfish-actions.pod:476
5031 msgid "This sets the block size of a device."
5032 msgstr ""
5033
5034 # type: =head2
5035 #: ../src/guestfs-actions.pod:651
5036 msgid "guestfs_blockdev_setro"
5037 msgstr ""
5038
5039 # type: verbatim
5040 #: ../src/guestfs-actions.pod:653
5041 #, no-wrap
5042 msgid ""
5043 " int\n"
5044 " guestfs_blockdev_setro (guestfs_h *g,\n"
5045 "                         const char *device);\n"
5046 "\n"
5047 msgstr ""
5048
5049 # type: textblock
5050 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:487
5051 msgid "Sets the block device named C<device> to read-only."
5052 msgstr ""
5053
5054 # type: =head2
5055 #: ../src/guestfs-actions.pod:663
5056 msgid "guestfs_blockdev_setrw"
5057 msgstr ""
5058
5059 # type: verbatim
5060 #: ../src/guestfs-actions.pod:665
5061 #, no-wrap
5062 msgid ""
5063 " int\n"
5064 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5065 "                         const char *device);\n"
5066 "\n"
5067 msgstr ""
5068
5069 # type: textblock
5070 #: ../src/guestfs-actions.pod:669 ../fish/guestfish-actions.pod:495
5071 msgid "Sets the block device named C<device> to read-write."
5072 msgstr ""
5073
5074 # type: =head2
5075 #: ../src/guestfs-actions.pod:675
5076 msgid "guestfs_case_sensitive_path"
5077 msgstr ""
5078
5079 # type: verbatim
5080 #: ../src/guestfs-actions.pod:677
5081 #, no-wrap
5082 msgid ""
5083 " char *\n"
5084 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5085 "                              const char *path);\n"
5086 "\n"
5087 msgstr ""
5088
5089 # type: textblock
5090 #: ../src/guestfs-actions.pod:681 ../fish/guestfish-actions.pod:503
5091 msgid ""
5092 "This can be used to resolve case insensitive paths on a filesystem which is "
5093 "case sensitive.  The use case is to resolve paths which you have read from "
5094 "Windows configuration files or the Windows Registry, to the true path."
5095 msgstr ""
5096
5097 # type: textblock
5098 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:508
5099 msgid ""
5100 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5101 "(and probably others), which is that although the underlying filesystem is "
5102 "case-insensitive, the driver exports the filesystem to Linux as "
5103 "case-sensitive."
5104 msgstr ""
5105
5106 # type: textblock
5107 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:513
5108 msgid ""
5109 "One consequence of this is that special directories such as C<c:\\windows> "
5110 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5111 "precise details of how they were created.  In Windows itself this would not "
5112 "be a problem."
5113 msgstr ""
5114
5115 # type: textblock
5116 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:519
5117 msgid ""
5118 "Bug or feature? You decide: "
5119 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5120 msgstr ""
5121
5122 # type: textblock
5123 #: ../src/guestfs-actions.pod:700 ../fish/guestfish-actions.pod:522
5124 msgid ""
5125 "This function resolves the true case of each element in the path and returns "
5126 "the case-sensitive path."
5127 msgstr ""
5128
5129 # type: textblock
5130 #: ../src/guestfs-actions.pod:703
5131 msgid ""
5132 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5133 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5134 "how the directories were originally created under Windows)."
5135 msgstr ""
5136
5137 # type: textblock
5138 #: ../src/guestfs-actions.pod:708 ../fish/guestfish-actions.pod:530
5139 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5140 msgstr ""
5141
5142 # type: textblock
5143 #: ../src/guestfs-actions.pod:711
5144 msgid "See also C<guestfs_realpath>."
5145 msgstr ""
5146
5147 # type: =head2
5148 #: ../src/guestfs-actions.pod:716
5149 msgid "guestfs_cat"
5150 msgstr ""
5151
5152 # type: verbatim
5153 #: ../src/guestfs-actions.pod:718
5154 #, no-wrap
5155 msgid ""
5156 " char *\n"
5157 " guestfs_cat (guestfs_h *g,\n"
5158 "              const char *path);\n"
5159 "\n"
5160 msgstr ""
5161
5162 # type: textblock
5163 #: ../src/guestfs-actions.pod:722 ../src/guestfs-actions.pod:4386 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3197
5164 msgid "Return the contents of the file named C<path>."
5165 msgstr ""
5166
5167 # type: textblock
5168 #: ../src/guestfs-actions.pod:724
5169 msgid ""
5170 "Note that this function cannot correctly handle binary files (specifically, "
5171 "files containing C<\\0> character which is treated as end of string).  For "
5172 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5173 "functions which have a more complex interface."
5174 msgstr ""
5175
5176 # type: textblock
5177 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:899 ../src/guestfs-actions.pod:917 ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:1230 ../src/guestfs-actions.pod:1323 ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2026 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5951 ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6069 ../src/guestfs-actions.pod:6086 ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6145 ../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:3067 ../fish/guestfish-actions.pod:3082 ../fish/guestfish-actions.pod:3158 ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3190 ../fish/guestfish-actions.pod:3773 ../fish/guestfish-actions.pod:3819 ../fish/guestfish-actions.pod:3904 ../fish/guestfish-actions.pod:3919 ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4347 ../fish/guestfish-actions.pod:4364 ../fish/guestfish-actions.pod:4374 ../fish/guestfish-actions.pod:4422 ../fish/guestfish-actions.pod:4432 ../fish/guestfish-actions.pod:4461 ../fish/guestfish-actions.pod:4471
5178 msgid ""
5179 "Because of the message protocol, there is a transfer limit of somewhere "
5180 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5181 msgstr ""
5182
5183 # type: =head2
5184 #: ../src/guestfs-actions.pod:735
5185 msgid "guestfs_checksum"
5186 msgstr ""
5187
5188 # type: verbatim
5189 #: ../src/guestfs-actions.pod:737
5190 #, no-wrap
5191 msgid ""
5192 " char *\n"
5193 " guestfs_checksum (guestfs_h *g,\n"
5194 "                   const char *csumtype,\n"
5195 "                   const char *path);\n"
5196 "\n"
5197 msgstr ""
5198
5199 # type: textblock
5200 #: ../src/guestfs-actions.pod:742 ../fish/guestfish-actions.pod:553
5201 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5202 msgstr ""
5203
5204 # type: textblock
5205 #: ../src/guestfs-actions.pod:745 ../fish/guestfish-actions.pod:556
5206 msgid ""
5207 "The type of checksum to compute is given by the C<csumtype> parameter which "
5208 "must have one of the following values:"
5209 msgstr ""
5210
5211 # type: =item
5212 #: ../src/guestfs-actions.pod:750 ../fish/guestfish-actions.pod:561
5213 msgid "C<crc>"
5214 msgstr ""
5215
5216 # type: textblock
5217 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:563
5218 msgid ""
5219 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5220 "C<cksum> command."
5221 msgstr ""
5222
5223 # type: =item
5224 #: ../src/guestfs-actions.pod:755 ../fish/guestfish-actions.pod:566
5225 msgid "C<md5>"
5226 msgstr ""
5227
5228 # type: textblock
5229 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:568
5230 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5231 msgstr ""
5232
5233 # type: =item
5234 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:570
5235 msgid "C<sha1>"
5236 msgstr ""
5237
5238 # type: textblock
5239 #: ../src/guestfs-actions.pod:761 ../fish/guestfish-actions.pod:572
5240 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5241 msgstr ""
5242
5243 # type: =item
5244 #: ../src/guestfs-actions.pod:763 ../fish/guestfish-actions.pod:574
5245 msgid "C<sha224>"
5246 msgstr ""
5247
5248 # type: textblock
5249 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:576
5250 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5251 msgstr ""
5252
5253 # type: =item
5254 #: ../src/guestfs-actions.pod:767 ../fish/guestfish-actions.pod:578
5255 msgid "C<sha256>"
5256 msgstr ""
5257
5258 # type: textblock
5259 #: ../src/guestfs-actions.pod:769 ../fish/guestfish-actions.pod:580
5260 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5261 msgstr ""
5262
5263 # type: =item
5264 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:582
5265 msgid "C<sha384>"
5266 msgstr ""
5267
5268 # type: textblock
5269 #: ../src/guestfs-actions.pod:773 ../fish/guestfish-actions.pod:584
5270 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5271 msgstr ""
5272
5273 # type: =item
5274 #: ../src/guestfs-actions.pod:775 ../fish/guestfish-actions.pod:586
5275 msgid "C<sha512>"
5276 msgstr ""
5277
5278 # type: textblock
5279 #: ../src/guestfs-actions.pod:777 ../fish/guestfish-actions.pod:588
5280 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5281 msgstr ""
5282
5283 # type: textblock
5284 #: ../src/guestfs-actions.pod:781 ../fish/guestfish-actions.pod:592
5285 msgid "The checksum is returned as a printable string."
5286 msgstr ""
5287
5288 # type: textblock
5289 #: ../src/guestfs-actions.pod:783
5290 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5291 msgstr ""
5292
5293 # type: textblock
5294 #: ../src/guestfs-actions.pod:785
5295 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5296 msgstr ""
5297
5298 # type: =head2
5299 #: ../src/guestfs-actions.pod:790
5300 msgid "guestfs_checksum_device"
5301 msgstr ""
5302
5303 # type: verbatim
5304 #: ../src/guestfs-actions.pod:792
5305 #, no-wrap
5306 msgid ""
5307 " char *\n"
5308 " guestfs_checksum_device (guestfs_h *g,\n"
5309 "                          const char *csumtype,\n"
5310 "                          const char *device);\n"
5311 "\n"
5312 msgstr ""
5313
5314 # type: textblock
5315 #: ../src/guestfs-actions.pod:797
5316 msgid ""
5317 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5318 "device named C<device>.  For the types of checksums supported see the "
5319 "C<guestfs_checksum> command."
5320 msgstr ""
5321
5322 # type: =head2
5323 #: ../src/guestfs-actions.pod:804
5324 msgid "guestfs_checksums_out"
5325 msgstr ""
5326
5327 # type: verbatim
5328 #: ../src/guestfs-actions.pod:806
5329 #, no-wrap
5330 msgid ""
5331 " int\n"
5332 " guestfs_checksums_out (guestfs_h *g,\n"
5333 "                        const char *csumtype,\n"
5334 "                        const char *directory,\n"
5335 "                        const char *sumsfile);\n"
5336 "\n"
5337 msgstr ""
5338
5339 # type: textblock
5340 #: ../src/guestfs-actions.pod:812 ../fish/guestfish-actions.pod:610
5341 msgid ""
5342 "This command computes the checksums of all regular files in C<directory> and "
5343 "then emits a list of those checksums to the local output file C<sumsfile>."
5344 msgstr ""
5345
5346 # type: textblock
5347 #: ../src/guestfs-actions.pod:816 ../fish/guestfish-actions.pod:614
5348 msgid ""
5349 "This can be used for verifying the integrity of a virtual machine.  However "
5350 "to be properly secure you should pay attention to the output of the checksum "
5351 "command (it uses the ones from GNU coreutils).  In particular when the "
5352 "filename is not printable, coreutils uses a special backslash syntax.  For "
5353 "more information, see the GNU coreutils info file."
5354 msgstr ""
5355
5356 # type: =head2
5357 #: ../src/guestfs-actions.pod:826
5358 msgid "guestfs_chmod"
5359 msgstr ""
5360
5361 # type: verbatim
5362 #: ../src/guestfs-actions.pod:828
5363 #, no-wrap
5364 msgid ""
5365 " int\n"
5366 " guestfs_chmod (guestfs_h *g,\n"
5367 "                int mode,\n"
5368 "                const char *path);\n"
5369 "\n"
5370 msgstr ""
5371
5372 # type: textblock
5373 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:628
5374 msgid ""
5375 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5376 "supported."
5377 msgstr ""
5378
5379 # type: textblock
5380 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:631
5381 msgid ""
5382 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5383 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5384 "C<700>."
5385 msgstr ""
5386
5387 # type: textblock
5388 #: ../src/guestfs-actions.pod:840 ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3607 ../src/guestfs-actions.pod:3624 ../fish/guestfish-actions.pod:635 ../fish/guestfish-actions.pod:2557 ../fish/guestfish-actions.pod:2642 ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2662
5389 msgid "The mode actually set is affected by the umask."
5390 msgstr ""
5391
5392 # type: =head2
5393 #: ../src/guestfs-actions.pod:844
5394 msgid "guestfs_chown"
5395 msgstr ""
5396
5397 # type: verbatim
5398 #: ../src/guestfs-actions.pod:846
5399 #, no-wrap
5400 msgid ""
5401 " int\n"
5402 " guestfs_chown (guestfs_h *g,\n"
5403 "                int owner,\n"
5404 "                int group,\n"
5405 "                const char *path);\n"
5406 "\n"
5407 msgstr ""
5408
5409 # type: textblock
5410 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:641
5411 msgid "Change the file owner to C<owner> and group to C<group>."
5412 msgstr ""
5413
5414 # type: textblock
5415 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2035
5416 msgid ""
5417 "Only numeric uid and gid are supported.  If you want to use names, you will "
5418 "need to locate and parse the password file yourself (Augeas support makes "
5419 "this relatively easy)."
5420 msgstr ""
5421
5422 # type: =head2
5423 #: ../src/guestfs-actions.pod:860
5424 msgid "guestfs_command"
5425 msgstr ""
5426
5427 # type: verbatim
5428 #: ../src/guestfs-actions.pod:862
5429 #, no-wrap
5430 msgid ""
5431 " char *\n"
5432 " guestfs_command (guestfs_h *g,\n"
5433 "                  char *const *arguments);\n"
5434 "\n"
5435 msgstr ""
5436
5437 # type: textblock
5438 #: ../src/guestfs-actions.pod:866 ../fish/guestfish-actions.pod:651
5439 msgid ""
5440 "This call runs a command from the guest filesystem.  The filesystem must be "
5441 "mounted, and must contain a compatible operating system (ie. something "
5442 "Linux, with the same or compatible processor architecture)."
5443 msgstr ""
5444
5445 # type: textblock
5446 #: ../src/guestfs-actions.pod:871
5447 msgid ""
5448 "The single parameter is an argv-style list of arguments.  The first element "
5449 "is the name of the program to run.  Subsequent elements are parameters.  The "
5450 "list must be non-empty (ie. must contain a program name).  Note that the "
5451 "command runs directly, and is I<not> invoked via the shell (see "
5452 "C<guestfs_sh>)."
5453 msgstr ""
5454
5455 # type: textblock
5456 #: ../src/guestfs-actions.pod:878 ../fish/guestfish-actions.pod:663
5457 msgid "The return value is anything printed to I<stdout> by the command."
5458 msgstr ""
5459
5460 # type: textblock
5461 #: ../src/guestfs-actions.pod:881 ../fish/guestfish-actions.pod:666
5462 msgid ""
5463 "If the command returns a non-zero exit status, then this function returns an "
5464 "error message.  The error message string is the content of I<stderr> from "
5465 "the command."
5466 msgstr ""
5467
5468 # type: textblock
5469 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:670
5470 msgid ""
5471 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5472 "C</bin>.  If you require a program from another location, you should provide "
5473 "the full path in the first parameter."
5474 msgstr ""
5475
5476 # type: textblock
5477 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:675
5478 msgid ""
5479 "Shared libraries and data files required by the program must be available on "
5480 "filesystems which are mounted in the correct places.  It is the caller's "
5481 "responsibility to ensure all filesystems that are needed are mounted at the "
5482 "right locations."
5483 msgstr ""
5484
5485 # type: =head2
5486 #: ../src/guestfs-actions.pod:902
5487 msgid "guestfs_command_lines"
5488 msgstr ""
5489
5490 # type: verbatim
5491 #: ../src/guestfs-actions.pod:904
5492 #, no-wrap
5493 msgid ""
5494 " char **\n"
5495 " guestfs_command_lines (guestfs_h *g,\n"
5496 "                        char *const *arguments);\n"
5497 "\n"
5498 msgstr ""
5499
5500 # type: textblock
5501 #: ../src/guestfs-actions.pod:908
5502 msgid ""
5503 "This is the same as C<guestfs_command>, but splits the result into a list of "
5504 "lines."
5505 msgstr ""
5506
5507 # type: textblock
5508 #: ../src/guestfs-actions.pod:911
5509 msgid "See also: C<guestfs_sh_lines>"
5510 msgstr ""
5511
5512 # type: =head2
5513 #: ../src/guestfs-actions.pod:920
5514 msgid "guestfs_config"
5515 msgstr ""
5516
5517 # type: verbatim
5518 #: ../src/guestfs-actions.pod:922
5519 #, no-wrap
5520 msgid ""
5521 " int\n"
5522 " guestfs_config (guestfs_h *g,\n"
5523 "                 const char *qemuparam,\n"
5524 "                 const char *qemuvalue);\n"
5525 "\n"
5526 msgstr ""
5527
5528 # type: textblock
5529 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:700
5530 msgid ""
5531 "This can be used to add arbitrary qemu command line parameters of the form "
5532 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5533 "setting some parameters which would interfere with parameters that we use."
5534 msgstr ""
5535
5536 # type: textblock
5537 #: ../src/guestfs-actions.pod:932 ../fish/guestfish-actions.pod:705
5538 msgid "The first character of C<param> string must be a C<-> (dash)."
5539 msgstr ""
5540
5541 # type: textblock
5542 #: ../src/guestfs-actions.pod:934 ../fish/guestfish-actions.pod:707
5543 msgid "C<value> can be NULL."
5544 msgstr ""
5545
5546 # type: =head2
5547 #: ../src/guestfs-actions.pod:938
5548 msgid "guestfs_copy_size"
5549 msgstr ""
5550
5551 # type: verbatim
5552 #: ../src/guestfs-actions.pod:940
5553 #, no-wrap
5554 msgid ""
5555 " int\n"
5556 " guestfs_copy_size (guestfs_h *g,\n"
5557 "                    const char *src,\n"
5558 "                    const char *dest,\n"
5559 "                    int64_t size);\n"
5560 "\n"
5561 msgstr ""
5562
5563 # type: textblock
5564 #: ../src/guestfs-actions.pod:946 ../fish/guestfish-actions.pod:713
5565 msgid ""
5566 "This command copies exactly C<size> bytes from one source device or file "
5567 "C<src> to another destination device or file C<dest>."
5568 msgstr ""
5569
5570 # type: textblock
5571 #: ../src/guestfs-actions.pod:949 ../fish/guestfish-actions.pod:716
5572 msgid ""
5573 "Note this will fail if the source is too short or if the destination is not "
5574 "large enough."
5575 msgstr ""
5576
5577 # type: textblock
5578 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1098 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1515 ../src/guestfs-actions.pod:1535 ../src/guestfs-actions.pod:6011 ../src/guestfs-actions.pod:6028
5579 msgid ""
5580 "This long-running command can generate progress notification messages so "
5581 "that the caller can display a progress bar or indicator.  To receive these "
5582 "messages, the caller must register a progress callback.  See "
5583 "L<guestfs(3)/guestfs_set_progress_callback>."
5584 msgstr ""
5585
5586 # type: =head2
5587 #: ../src/guestfs-actions.pod:959
5588 msgid "guestfs_cp"
5589 msgstr ""
5590
5591 # type: verbatim
5592 #: ../src/guestfs-actions.pod:961
5593 #, no-wrap
5594 msgid ""
5595 " int\n"
5596 " guestfs_cp (guestfs_h *g,\n"
5597 "             const char *src,\n"
5598 "             const char *dest);\n"
5599 "\n"
5600 msgstr ""
5601
5602 # type: textblock
5603 #: ../src/guestfs-actions.pod:966 ../fish/guestfish-actions.pod:723
5604 msgid ""
5605 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5606 "destination filename or destination directory."
5607 msgstr ""
5608
5609 # type: =head2
5610 #: ../src/guestfs-actions.pod:971
5611 msgid "guestfs_cp_a"
5612 msgstr ""
5613
5614 # type: verbatim
5615 #: ../src/guestfs-actions.pod:973
5616 #, no-wrap
5617 msgid ""
5618 " int\n"
5619 " guestfs_cp_a (guestfs_h *g,\n"
5620 "               const char *src,\n"
5621 "               const char *dest);\n"
5622 "\n"
5623 msgstr ""
5624
5625 # type: textblock
5626 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:730
5627 msgid ""
5628 "This copies a file or directory from C<src> to C<dest> recursively using the "
5629 "C<cp -a> command."
5630 msgstr ""
5631
5632 # type: =head2
5633 #: ../src/guestfs-actions.pod:983
5634 msgid "guestfs_dd"
5635 msgstr ""
5636
5637 # type: verbatim
5638 #: ../src/guestfs-actions.pod:985
5639 #, no-wrap
5640 msgid ""
5641 " int\n"
5642 " guestfs_dd (guestfs_h *g,\n"
5643 "             const char *src,\n"
5644 "             const char *dest);\n"
5645 "\n"
5646 msgstr ""
5647
5648 # type: textblock
5649 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:737
5650 msgid ""
5651 "This command copies from one source device or file C<src> to another "
5652 "destination device or file C<dest>.  Normally you would use this to copy to "
5653 "or from a device or partition, for example to duplicate a filesystem."
5654 msgstr ""
5655
5656 # type: textblock
5657 #: ../src/guestfs-actions.pod:995
5658 msgid ""
5659 "If the destination is a device, it must be as large or larger than the "
5660 "source file or device, otherwise the copy will fail.  This command cannot do "
5661 "partial copies (see C<guestfs_copy_size>)."
5662 msgstr ""
5663
5664 # type: =head2
5665 #: ../src/guestfs-actions.pod:1001
5666 msgid "guestfs_debug"
5667 msgstr ""
5668
5669 # type: verbatim
5670 #: ../src/guestfs-actions.pod:1003
5671 #, no-wrap
5672 msgid ""
5673 " char *\n"
5674 " guestfs_debug (guestfs_h *g,\n"
5675 "                const char *subcmd,\n"
5676 "                char *const *extraargs);\n"
5677 "\n"
5678 msgstr ""
5679
5680 # type: textblock
5681 #: ../src/guestfs-actions.pod:1008
5682 msgid ""
5683 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5684 "guestfs daemon) that runs inside the qemu subprocess."
5685 msgstr ""
5686
5687 # type: textblock
5688 #: ../src/guestfs-actions.pod:1012 ../fish/guestfish-actions.pod:754
5689 msgid ""
5690 "There is no comprehensive help for this command.  You have to look at the "
5691 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5692 msgstr ""
5693
5694 # type: =head2
5695 #: ../src/guestfs-actions.pod:1019
5696 msgid "guestfs_debug_upload"
5697 msgstr ""
5698
5699 # type: verbatim
5700 #: ../src/guestfs-actions.pod:1021
5701 #, no-wrap
5702 msgid ""
5703 " int\n"
5704 " guestfs_debug_upload (guestfs_h *g,\n"
5705 "                       const char *filename,\n"
5706 "                       const char *tmpname,\n"
5707 "                       int mode);\n"
5708 "\n"
5709 msgstr ""
5710
5711 # type: textblock
5712 #: ../src/guestfs-actions.pod:1027
5713 msgid ""
5714 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5715 "appliance."
5716 msgstr ""
5717
5718 # type: textblock
5719 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:765
5720 msgid ""
5721 "There is no comprehensive help for this command.  You have to look at the "
5722 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5723 msgstr ""
5724
5725 # type: =head2
5726 #: ../src/guestfs-actions.pod:1036
5727 msgid "guestfs_df"
5728 msgstr ""
5729
5730 # type: verbatim
5731 #: ../src/guestfs-actions.pod:1038
5732 #, no-wrap
5733 msgid ""
5734 " char *\n"
5735 " guestfs_df (guestfs_h *g);\n"
5736 "\n"
5737 msgstr ""
5738
5739 # type: textblock
5740 #: ../src/guestfs-actions.pod:1041 ../fish/guestfish-actions.pod:775
5741 msgid "This command runs the C<df> command to report disk space used."
5742 msgstr ""
5743
5744 # type: textblock
5745 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:1058 ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5746 msgid ""
5747 "This command is mostly useful for interactive sessions.  It is I<not> "
5748 "intended that you try to parse the output string.  Use C<statvfs> from "
5749 "programs."
5750 msgstr ""
5751
5752 # type: =head2
5753 #: ../src/guestfs-actions.pod:1050
5754 msgid "guestfs_df_h"
5755 msgstr ""
5756
5757 # type: verbatim
5758 #: ../src/guestfs-actions.pod:1052
5759 #, no-wrap
5760 msgid ""
5761 " char *\n"
5762 " guestfs_df_h (guestfs_h *g);\n"
5763 "\n"
5764 msgstr ""
5765
5766 # type: textblock
5767 #: ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:785
5768 msgid ""
5769 "This command runs the C<df -h> command to report disk space used in "
5770 "human-readable format."
5771 msgstr ""
5772
5773 # type: =head2
5774 #: ../src/guestfs-actions.pod:1065
5775 msgid "guestfs_dmesg"
5776 msgstr ""
5777
5778 # type: verbatim
5779 #: ../src/guestfs-actions.pod:1067
5780 #, no-wrap
5781 msgid ""
5782 " char *\n"
5783 " guestfs_dmesg (guestfs_h *g);\n"
5784 "\n"
5785 msgstr ""
5786
5787 # type: textblock
5788 #: ../src/guestfs-actions.pod:1070 ../fish/guestfish-actions.pod:796
5789 msgid ""
5790 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5791 "This is sometimes useful for extended debugging of problems."
5792 msgstr ""
5793
5794 # type: textblock
5795 #: ../src/guestfs-actions.pod:1074
5796 msgid ""
5797 "Another way to get the same information is to enable verbose messages with "
5798 "C<guestfs_set_verbose> or by setting the environment variable "
5799 "C<LIBGUESTFS_DEBUG=1> before running the program."
5800 msgstr ""
5801
5802 # type: =head2
5803 #: ../src/guestfs-actions.pod:1082
5804 msgid "guestfs_download"
5805 msgstr ""
5806
5807 # type: verbatim
5808 #: ../src/guestfs-actions.pod:1084
5809 #, no-wrap
5810 msgid ""
5811 " int\n"
5812 " guestfs_download (guestfs_h *g,\n"
5813 "                   const char *remotefilename,\n"
5814 "                   const char *filename);\n"
5815 "\n"
5816 msgstr ""
5817
5818 # type: textblock
5819 #: ../src/guestfs-actions.pod:1089 ../src/guestfs-actions.pod:1112 ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5820 msgid ""
5821 "Download file C<remotefilename> and save it as C<filename> on the local "
5822 "machine."
5823 msgstr ""
5824
5825 # type: textblock
5826 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:5553 ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4077
5827 msgid "C<filename> can also be a named pipe."
5828 msgstr ""
5829
5830 # type: textblock
5831 #: ../src/guestfs-actions.pod:1094
5832 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5833 msgstr ""
5834
5835 # type: =head2
5836 #: ../src/guestfs-actions.pod:1103
5837 msgid "guestfs_download_offset"
5838 msgstr ""
5839
5840 # type: verbatim
5841 #: ../src/guestfs-actions.pod:1105
5842 #, no-wrap
5843 msgid ""
5844 " int\n"
5845 " guestfs_download_offset (guestfs_h *g,\n"
5846 "                          const char *remotefilename,\n"
5847 "                          const char *filename,\n"
5848 "                          int64_t offset,\n"
5849 "                          int64_t size);\n"
5850 "\n"
5851 msgstr ""
5852
5853 # type: textblock
5854 #: ../src/guestfs-actions.pod:1115 ../fish/guestfish-actions.pod:825
5855 msgid ""
5856 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5857 "region must be within the file or device)."
5858 msgstr ""
5859
5860 # type: textblock
5861 #: ../src/guestfs-actions.pod:1118
5862 msgid ""
5863 "Note that there is no limit on the amount of data that can be downloaded "
5864 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5865 "full amount unless an error occurs."
5866 msgstr ""
5867
5868 # type: textblock
5869 #: ../src/guestfs-actions.pod:1123
5870 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5871 msgstr ""
5872
5873 # type: =head2
5874 #: ../src/guestfs-actions.pod:1132
5875 msgid "guestfs_drop_caches"
5876 msgstr ""
5877
5878 # type: verbatim
5879 #: ../src/guestfs-actions.pod:1134
5880 #, no-wrap
5881 msgid ""
5882 " int\n"
5883 " guestfs_drop_caches (guestfs_h *g,\n"
5884 "                      int whattodrop);\n"
5885 "\n"
5886 msgstr ""
5887
5888 # type: textblock
5889 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:841
5890 msgid ""
5891 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5892 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5893 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5894 msgstr ""
5895
5896 # type: textblock
5897 #: ../src/guestfs-actions.pod:1143 ../fish/guestfish-actions.pod:846
5898 msgid "Setting C<whattodrop> to 3 should drop everything."
5899 msgstr ""
5900
5901 # type: textblock
5902 #: ../src/guestfs-actions.pod:1145 ../fish/guestfish-actions.pod:848
5903 msgid ""
5904 "This automatically calls L<sync(2)> before the operation, so that the "
5905 "maximum guest memory is freed."
5906 msgstr ""
5907
5908 # type: =head2
5909 #: ../src/guestfs-actions.pod:1150
5910 msgid "guestfs_du"
5911 msgstr ""
5912
5913 # type: verbatim
5914 #: ../src/guestfs-actions.pod:1152
5915 #, no-wrap
5916 msgid ""
5917 " int64_t\n"
5918 " guestfs_du (guestfs_h *g,\n"
5919 "             const char *path);\n"
5920 "\n"
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1156 ../fish/guestfish-actions.pod:855
5925 msgid ""
5926 "This command runs the C<du -s> command to estimate file space usage for "
5927 "C<path>."
5928 msgstr ""
5929
5930 # type: textblock
5931 #: ../src/guestfs-actions.pod:1159 ../fish/guestfish-actions.pod:858
5932 msgid ""
5933 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5934 "estimate includes the contents of the directory and all subdirectories "
5935 "(recursively)."
5936 msgstr ""
5937
5938 # type: textblock
5939 #: ../src/guestfs-actions.pod:1163 ../fish/guestfish-actions.pod:862
5940 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5941 msgstr ""
5942
5943 # type: =head2
5944 #: ../src/guestfs-actions.pod:1168
5945 msgid "guestfs_e2fsck_f"
5946 msgstr ""
5947
5948 # type: verbatim
5949 #: ../src/guestfs-actions.pod:1170
5950 #, no-wrap
5951 msgid ""
5952 " int\n"
5953 " guestfs_e2fsck_f (guestfs_h *g,\n"
5954 "                   const char *device);\n"
5955 "\n"
5956 msgstr ""
5957
5958 # type: textblock
5959 #: ../src/guestfs-actions.pod:1174 ../fish/guestfish-actions.pod:869
5960 msgid ""
5961 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5962 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
5963 "clean (C<-f>)."
5964 msgstr ""
5965
5966 # type: textblock
5967 #: ../src/guestfs-actions.pod:1178
5968 msgid ""
5969 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
5970 "Normally you should use C<guestfs_fsck>."
5971 msgstr ""
5972
5973 # type: =head2
5974 #: ../src/guestfs-actions.pod:1183
5975 msgid "guestfs_echo_daemon"
5976 msgstr ""
5977
5978 # type: verbatim
5979 #: ../src/guestfs-actions.pod:1185
5980 #, no-wrap
5981 msgid ""
5982 " char *\n"
5983 " guestfs_echo_daemon (guestfs_h *g,\n"
5984 "                      char *const *words);\n"
5985 "\n"
5986 msgstr ""
5987
5988 # type: textblock
5989 #: ../src/guestfs-actions.pod:1189 ../fish/guestfish-actions.pod:880
5990 msgid ""
5991 "This command concatenates the list of C<words> passed with single spaces "
5992 "between them and returns the resulting string."
5993 msgstr ""
5994
5995 # type: textblock
5996 #: ../src/guestfs-actions.pod:1192 ../fish/guestfish-actions.pod:883
5997 msgid "You can use this command to test the connection through to the daemon."
5998 msgstr ""
5999
6000 # type: textblock
6001 #: ../src/guestfs-actions.pod:1194
6002 msgid "See also C<guestfs_ping_daemon>."
6003 msgstr ""
6004
6005 # type: =head2
6006 #: ../src/guestfs-actions.pod:1199
6007 msgid "guestfs_egrep"
6008 msgstr ""
6009
6010 # type: verbatim
6011 #: ../src/guestfs-actions.pod:1201
6012 #, no-wrap
6013 msgid ""
6014 " char **\n"
6015 " guestfs_egrep (guestfs_h *g,\n"
6016 "                const char *regex,\n"
6017 "                const char *path);\n"
6018 "\n"
6019 msgstr ""
6020
6021 # type: textblock
6022 #: ../src/guestfs-actions.pod:1206 ../fish/guestfish-actions.pod:891
6023 msgid "This calls the external C<egrep> program and returns the matching lines."
6024 msgstr ""
6025
6026 # type: =head2
6027 #: ../src/guestfs-actions.pod:1216
6028 msgid "guestfs_egrepi"
6029 msgstr ""
6030
6031 # type: verbatim
6032 #: ../src/guestfs-actions.pod:1218
6033 #, no-wrap
6034 msgid ""
6035 " char **\n"
6036 " guestfs_egrepi (guestfs_h *g,\n"
6037 "                 const char *regex,\n"
6038 "                 const char *path);\n"
6039 "\n"
6040 msgstr ""
6041
6042 # type: textblock
6043 #: ../src/guestfs-actions.pod:1223 ../fish/guestfish-actions.pod:901
6044 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6045 msgstr ""
6046
6047 # type: =head2
6048 #: ../src/guestfs-actions.pod:1233
6049 msgid "guestfs_equal"
6050 msgstr ""
6051
6052 # type: verbatim
6053 #: ../src/guestfs-actions.pod:1235
6054 #, no-wrap
6055 msgid ""
6056 " int\n"
6057 " guestfs_equal (guestfs_h *g,\n"
6058 "                const char *file1,\n"
6059 "                const char *file2);\n"
6060 "\n"
6061 msgstr ""
6062
6063 # type: textblock
6064 #: ../src/guestfs-actions.pod:1240 ../fish/guestfish-actions.pod:911
6065 msgid ""
6066 "This compares the two files C<file1> and C<file2> and returns true if their "
6067 "content is exactly equal, or false otherwise."
6068 msgstr ""
6069
6070 # type: textblock
6071 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:914
6072 msgid "The external L<cmp(1)> program is used for the comparison."
6073 msgstr ""
6074
6075 # type: =head2
6076 #: ../src/guestfs-actions.pod:1247
6077 msgid "guestfs_exists"
6078 msgstr ""
6079
6080 # type: verbatim
6081 #: ../src/guestfs-actions.pod:1249
6082 #, no-wrap
6083 msgid ""
6084 " int\n"
6085 " guestfs_exists (guestfs_h *g,\n"
6086 "                 const char *path);\n"
6087 "\n"
6088 msgstr ""
6089
6090 # type: textblock
6091 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:920
6092 msgid ""
6093 "This returns C<true> if and only if there is a file, directory (or anything) "
6094 "with the given C<path> name."
6095 msgstr ""
6096
6097 # type: textblock
6098 #: ../src/guestfs-actions.pod:1256
6099 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6100 msgstr ""
6101
6102 # type: =head2
6103 #: ../src/guestfs-actions.pod:1260
6104 msgid "guestfs_fallocate"
6105 msgstr ""
6106
6107 # type: verbatim
6108 #: ../src/guestfs-actions.pod:1262
6109 #, no-wrap
6110 msgid ""
6111 " int\n"
6112 " guestfs_fallocate (guestfs_h *g,\n"
6113 "                    const char *path,\n"
6114 "                    int len);\n"
6115 "\n"
6116 msgstr ""
6117
6118 # type: textblock
6119 #: ../src/guestfs-actions.pod:1267 ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6120 msgid ""
6121 "This command preallocates a file (containing zero bytes) named C<path> of "
6122 "size C<len> bytes.  If the file exists already, it is overwritten."
6123 msgstr ""
6124
6125 # type: textblock
6126 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:933
6127 msgid ""
6128 "Do not confuse this with the guestfish-specific C<alloc> command which "
6129 "allocates a file in the host and attaches it as a device."
6130 msgstr ""
6131
6132 # type: textblock
6133 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:937
6134 msgid ""
6135 "This function is deprecated.  In new code, use the C<fallocate64> call "
6136 "instead."
6137 msgstr ""
6138
6139 # type: =head2
6140 #: ../src/guestfs-actions.pod:1284
6141 msgid "guestfs_fallocate64"
6142 msgstr ""
6143
6144 # type: verbatim
6145 #: ../src/guestfs-actions.pod:1286
6146 #, no-wrap
6147 msgid ""
6148 " int\n"
6149 " guestfs_fallocate64 (guestfs_h *g,\n"
6150 "                      const char *path,\n"
6151 "                      int64_t len);\n"
6152 "\n"
6153 msgstr ""
6154
6155 # type: textblock
6156 #: ../src/guestfs-actions.pod:1295
6157 msgid ""
6158 "Note that this call allocates disk blocks for the file.  To create a sparse "
6159 "file use C<guestfs_truncate_size> instead."
6160 msgstr ""
6161
6162 # type: textblock
6163 #: ../src/guestfs-actions.pod:1298
6164 msgid ""
6165 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6166 "oversight it only allowed 30 bit lengths to be specified, effectively "
6167 "limiting the maximum size of files created through that call to 1GB."
6168 msgstr ""
6169
6170 # type: textblock
6171 #: ../src/guestfs-actions.pod:1303 ../fish/guestfish-actions.pod:960
6172 msgid ""
6173 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6174 "commands which create a file in the host and attach it as a device."
6175 msgstr ""
6176
6177 # type: =head2
6178 #: ../src/guestfs-actions.pod:1309
6179 msgid "guestfs_fgrep"
6180 msgstr ""
6181
6182 # type: verbatim
6183 #: ../src/guestfs-actions.pod:1311
6184 #, no-wrap
6185 msgid ""
6186 " char **\n"
6187 " guestfs_fgrep (guestfs_h *g,\n"
6188 "                const char *pattern,\n"
6189 "                const char *path);\n"
6190 "\n"
6191 msgstr ""
6192
6193 # type: textblock
6194 #: ../src/guestfs-actions.pod:1316 ../fish/guestfish-actions.pod:968
6195 msgid "This calls the external C<fgrep> program and returns the matching lines."
6196 msgstr ""
6197
6198 # type: =head2
6199 #: ../src/guestfs-actions.pod:1326
6200 msgid "guestfs_fgrepi"
6201 msgstr ""
6202
6203 # type: verbatim
6204 #: ../src/guestfs-actions.pod:1328
6205 #, no-wrap
6206 msgid ""
6207 " char **\n"
6208 " guestfs_fgrepi (guestfs_h *g,\n"
6209 "                 const char *pattern,\n"
6210 "                 const char *path);\n"
6211 "\n"
6212 msgstr ""
6213
6214 # type: textblock
6215 #: ../src/guestfs-actions.pod:1333 ../fish/guestfish-actions.pod:978
6216 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6217 msgstr ""
6218
6219 # type: =head2
6220 #: ../src/guestfs-actions.pod:1343
6221 msgid "guestfs_file"
6222 msgstr ""
6223
6224 # type: verbatim
6225 #: ../src/guestfs-actions.pod:1345
6226 #, no-wrap
6227 msgid ""
6228 " char *\n"
6229 " guestfs_file (guestfs_h *g,\n"
6230 "               const char *path);\n"
6231 "\n"
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:1349 ../fish/guestfish-actions.pod:988
6236 msgid ""
6237 "This call uses the standard L<file(1)> command to determine the type or "
6238 "contents of the file."
6239 msgstr ""
6240
6241 # type: textblock
6242 #: ../src/guestfs-actions.pod:1352 ../fish/guestfish-actions.pod:991
6243 msgid ""
6244 "This call will also transparently look inside various types of compressed "
6245 "file."
6246 msgstr ""
6247
6248 # type: textblock
6249 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:994
6250 msgid ""
6251 "The exact command which runs is C<file -zb path>.  Note in particular that "
6252 "the filename is not prepended to the output (the C<-b> option)."
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1359
6257 msgid ""
6258 "This command can also be used on C</dev/> devices (and partitions, LV "
6259 "names).  You can for example use this to determine if a device contains a "
6260 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6261 msgstr ""
6262
6263 # type: textblock
6264 #: ../src/guestfs-actions.pod:1364 ../fish/guestfish-actions.pod:1003
6265 msgid ""
6266 "If the C<path> does not begin with C</dev/> then this command only works for "
6267 "the content of regular files.  For other file types (directory, symbolic "
6268 "link etc) it will just return the string C<directory> etc."
6269 msgstr ""
6270
6271 # type: =head2
6272 #: ../src/guestfs-actions.pod:1372
6273 msgid "guestfs_file_architecture"
6274 msgstr ""
6275
6276 # type: verbatim
6277 #: ../src/guestfs-actions.pod:1374
6278 #, no-wrap
6279 msgid ""
6280 " char *\n"
6281 " guestfs_file_architecture (guestfs_h *g,\n"
6282 "                            const char *filename);\n"
6283 "\n"
6284 msgstr ""
6285
6286 # type: textblock
6287 #: ../src/guestfs-actions.pod:1378 ../fish/guestfish-actions.pod:1012
6288 msgid ""
6289 "This detects the architecture of the binary C<filename>, and returns it if "
6290 "known."
6291 msgstr ""
6292
6293 # type: textblock
6294 #: ../src/guestfs-actions.pod:1381 ../fish/guestfish-actions.pod:1015
6295 msgid "Currently defined architectures are:"
6296 msgstr ""
6297
6298 # type: =item
6299 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:1019
6300 msgid "\"i386\""
6301 msgstr ""
6302
6303 # type: textblock
6304 #: ../src/guestfs-actions.pod:1387 ../fish/guestfish-actions.pod:1021
6305 msgid ""
6306 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6307 "irrespective of the precise processor requirements of the binary."
6308 msgstr ""
6309
6310 # type: =item
6311 #: ../src/guestfs-actions.pod:1390 ../fish/guestfish-actions.pod:1024
6312 msgid "\"x86_64\""
6313 msgstr ""
6314
6315 # type: textblock
6316 #: ../src/guestfs-actions.pod:1392 ../fish/guestfish-actions.pod:1026
6317 msgid "64 bit x86-64."
6318 msgstr ""
6319
6320 # type: =item
6321 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:1028
6322 msgid "\"sparc\""
6323 msgstr ""
6324
6325 # type: textblock
6326 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:1030
6327 msgid "32 bit SPARC."
6328 msgstr ""
6329
6330 # type: =item
6331 #: ../src/guestfs-actions.pod:1398 ../fish/guestfish-actions.pod:1032
6332 msgid "\"sparc64\""
6333 msgstr ""
6334
6335 # type: textblock
6336 #: ../src/guestfs-actions.pod:1400 ../fish/guestfish-actions.pod:1034
6337 msgid "64 bit SPARC V9 and above."
6338 msgstr ""
6339
6340 # type: =item
6341 #: ../src/guestfs-actions.pod:1402 ../fish/guestfish-actions.pod:1036
6342 msgid "\"ia64\""
6343 msgstr ""
6344
6345 # type: textblock
6346 #: ../src/guestfs-actions.pod:1404 ../fish/guestfish-actions.pod:1038
6347 msgid "Intel Itanium."
6348 msgstr ""
6349
6350 # type: =item
6351 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:1040
6352 msgid "\"ppc\""
6353 msgstr ""
6354
6355 # type: textblock
6356 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:1042
6357 msgid "32 bit Power PC."
6358 msgstr ""
6359
6360 # type: =item
6361 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:1044
6362 msgid "\"ppc64\""
6363 msgstr ""
6364
6365 # type: textblock
6366 #: ../src/guestfs-actions.pod:1412 ../fish/guestfish-actions.pod:1046
6367 msgid "64 bit Power PC."
6368 msgstr ""
6369
6370 # type: textblock
6371 #: ../src/guestfs-actions.pod:1416 ../fish/guestfish-actions.pod:1050
6372 msgid "Libguestfs may return other architecture strings in future."
6373 msgstr ""
6374
6375 # type: textblock
6376 #: ../src/guestfs-actions.pod:1418 ../fish/guestfish-actions.pod:1052
6377 msgid "The function works on at least the following types of files:"
6378 msgstr ""
6379
6380 # type: textblock
6381 #: ../src/guestfs-actions.pod:1424 ../fish/guestfish-actions.pod:1058
6382 msgid "many types of Un*x and Linux binary"
6383 msgstr ""
6384
6385 # type: textblock
6386 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:1062
6387 msgid "many types of Un*x and Linux shared library"
6388 msgstr ""
6389
6390 # type: textblock
6391 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:1066
6392 msgid "Windows Win32 and Win64 binaries"
6393 msgstr ""
6394
6395 # type: textblock
6396 #: ../src/guestfs-actions.pod:1436 ../fish/guestfish-actions.pod:1070
6397 msgid "Windows Win32 and Win64 DLLs"
6398 msgstr ""
6399
6400 # type: textblock
6401 #: ../src/guestfs-actions.pod:1438 ../fish/guestfish-actions.pod:1072
6402 msgid "Win32 binaries and DLLs return C<i386>."
6403 msgstr ""
6404
6405 # type: textblock
6406 #: ../src/guestfs-actions.pod:1440 ../fish/guestfish-actions.pod:1074
6407 msgid "Win64 binaries and DLLs return C<x86_64>."
6408 msgstr ""
6409
6410 # type: textblock
6411 #: ../src/guestfs-actions.pod:1444 ../fish/guestfish-actions.pod:1078
6412 msgid "Linux kernel modules"
6413 msgstr ""
6414
6415 # type: textblock
6416 #: ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:1082
6417 msgid "Linux new-style initrd images"
6418 msgstr ""
6419
6420 # type: textblock
6421 #: ../src/guestfs-actions.pod:1452 ../fish/guestfish-actions.pod:1086
6422 msgid "some non-x86 Linux vmlinuz kernels"
6423 msgstr ""
6424
6425 # type: textblock
6426 #: ../src/guestfs-actions.pod:1456 ../fish/guestfish-actions.pod:1090
6427 msgid "What it can't do currently:"
6428 msgstr ""
6429
6430 # type: textblock
6431 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:1096
6432 msgid "static libraries (libfoo.a)"
6433 msgstr ""
6434
6435 # type: textblock
6436 #: ../src/guestfs-actions.pod:1466 ../fish/guestfish-actions.pod:1100
6437 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6438 msgstr ""
6439
6440 # type: textblock
6441 #: ../src/guestfs-actions.pod:1470 ../fish/guestfish-actions.pod:1104
6442 msgid "x86 Linux vmlinuz kernels"
6443 msgstr ""
6444
6445 # type: textblock
6446 #: ../src/guestfs-actions.pod:1472 ../fish/guestfish-actions.pod:1106
6447 msgid ""
6448 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6449 "compressed code, and are horribly hard to unpack.  If you want to find the "
6450 "architecture of a kernel, use the architecture of the associated initrd or "
6451 "kernel module(s) instead."
6452 msgstr ""
6453
6454 # type: =head2
6455 #: ../src/guestfs-actions.pod:1482
6456 msgid "guestfs_filesize"
6457 msgstr ""
6458
6459 # type: verbatim
6460 #: ../src/guestfs-actions.pod:1484
6461 #, no-wrap
6462 msgid ""
6463 " int64_t\n"
6464 " guestfs_filesize (guestfs_h *g,\n"
6465 "                   const char *file);\n"
6466 "\n"
6467 msgstr ""
6468
6469 # type: textblock
6470 #: ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:1117
6471 msgid "This command returns the size of C<file> in bytes."
6472 msgstr ""
6473
6474 # type: textblock
6475 #: ../src/guestfs-actions.pod:1490
6476 msgid ""
6477 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6478 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6479 "devices, use C<guestfs_blockdev_getsize64>."
6480 msgstr ""
6481
6482 # type: =head2
6483 #: ../src/guestfs-actions.pod:1496
6484 msgid "guestfs_fill"
6485 msgstr ""
6486
6487 # type: verbatim
6488 #: ../src/guestfs-actions.pod:1498
6489 #, no-wrap
6490 msgid ""
6491 " int\n"
6492 " guestfs_fill (guestfs_h *g,\n"
6493 "               int c,\n"
6494 "               int len,\n"
6495 "               const char *path);\n"
6496 "\n"
6497 msgstr ""
6498
6499 # type: textblock
6500 #: ../src/guestfs-actions.pod:1504 ../fish/guestfish-actions.pod:1127
6501 msgid ""
6502 "This command creates a new file called C<path>.  The initial content of the "
6503 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6504 "C<[0..255]>."
6505 msgstr ""
6506
6507 # type: textblock
6508 #: ../src/guestfs-actions.pod:1508
6509 msgid ""
6510 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6511 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6512 "bytes use C<guestfs_fill_pattern>."
6513 msgstr ""
6514
6515 # type: =head2
6516 #: ../src/guestfs-actions.pod:1520
6517 msgid "guestfs_fill_pattern"
6518 msgstr ""
6519
6520 # type: verbatim
6521 #: ../src/guestfs-actions.pod:1522
6522 #, no-wrap
6523 msgid ""
6524 " int\n"
6525 " guestfs_fill_pattern (guestfs_h *g,\n"
6526 "                       const char *pattern,\n"
6527 "                       int len,\n"
6528 "                       const char *path);\n"
6529 "\n"
6530 msgstr ""
6531
6532 # type: textblock
6533 #: ../src/guestfs-actions.pod:1528
6534 msgid ""
6535 "This function is like C<guestfs_fill> except that it creates a new file of "
6536 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6537 "pattern is truncated if necessary to ensure the length of the file is "
6538 "exactly C<len> bytes."
6539 msgstr ""
6540
6541 # type: =head2
6542 #: ../src/guestfs-actions.pod:1540
6543 msgid "guestfs_find"
6544 msgstr ""
6545
6546 # type: verbatim
6547 #: ../src/guestfs-actions.pod:1542
6548 #, no-wrap
6549 msgid ""
6550 " char **\n"
6551 " guestfs_find (guestfs_h *g,\n"
6552 "               const char *directory);\n"
6553 "\n"
6554 msgstr ""
6555
6556 # type: textblock
6557 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1149
6558 msgid ""
6559 "This command lists out all files and directories, recursively, starting at "
6560 "C<directory>.  It is essentially equivalent to running the shell command "
6561 "C<find directory -print> but some post-processing happens on the output, "
6562 "described below."
6563 msgstr ""
6564
6565 # type: textblock
6566 #: ../src/guestfs-actions.pod:1551 ../fish/guestfish-actions.pod:1154
6567 msgid ""
6568 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6569 "structure was:"
6570 msgstr ""
6571
6572 # type: verbatim
6573 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1157
6574 #, no-wrap
6575 msgid ""
6576 " /tmp/a\n"
6577 " /tmp/b\n"
6578 " /tmp/c/d\n"
6579 "\n"
6580 msgstr ""
6581
6582 # type: textblock
6583 #: ../src/guestfs-actions.pod:1558
6584 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6585 msgstr ""
6586
6587 # type: verbatim
6588 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1164
6589 #, no-wrap
6590 msgid ""
6591 " a\n"
6592 " b\n"
6593 " c\n"
6594 " c/d\n"
6595 "\n"
6596 msgstr ""
6597
6598 # type: textblock
6599 #: ../src/guestfs-actions.pod:1566 ../fish/guestfish-actions.pod:1169
6600 msgid "If C<directory> is not a directory, then this command returns an error."
6601 msgstr ""
6602
6603 # type: textblock
6604 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1172
6605 msgid "The returned list is sorted."
6606 msgstr ""
6607
6608 # type: textblock
6609 #: ../src/guestfs-actions.pod:1571
6610 msgid "See also C<guestfs_find0>."
6611 msgstr ""
6612
6613 # type: =head2
6614 #: ../src/guestfs-actions.pod:1580
6615 msgid "guestfs_find0"
6616 msgstr ""
6617
6618 # type: verbatim
6619 #: ../src/guestfs-actions.pod:1582
6620 #, no-wrap
6621 msgid ""
6622 " int\n"
6623 " guestfs_find0 (guestfs_h *g,\n"
6624 "                const char *directory,\n"
6625 "                const char *files);\n"
6626 "\n"
6627 msgstr ""
6628
6629 # type: textblock
6630 #: ../src/guestfs-actions.pod:1587 ../fish/guestfish-actions.pod:1183
6631 msgid ""
6632 "This command lists out all files and directories, recursively, starting at "
6633 "C<directory>, placing the resulting list in the external file called "
6634 "C<files>."
6635 msgstr ""
6636
6637 # type: textblock
6638 #: ../src/guestfs-actions.pod:1591
6639 msgid ""
6640 "This command works the same way as C<guestfs_find> with the following "
6641 "exceptions:"
6642 msgstr ""
6643
6644 # type: textblock
6645 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1194
6646 msgid "The resulting list is written to an external file."
6647 msgstr ""
6648
6649 # type: textblock
6650 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1198
6651 msgid ""
6652 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6653 "L<find(1)> option I<-print0>."
6654 msgstr ""
6655
6656 # type: textblock
6657 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1203
6658 msgid "This command is not limited in the number of names that it can return."
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1612 ../fish/guestfish-actions.pod:1208
6663 msgid "The result list is not sorted."
6664 msgstr ""
6665
6666 # type: =head2
6667 #: ../src/guestfs-actions.pod:1618
6668 msgid "guestfs_findfs_label"
6669 msgstr ""
6670
6671 # type: verbatim
6672 #: ../src/guestfs-actions.pod:1620
6673 #, no-wrap
6674 msgid ""
6675 " char *\n"
6676 " guestfs_findfs_label (guestfs_h *g,\n"
6677 "                       const char *label);\n"
6678 "\n"
6679 msgstr ""
6680
6681 # type: textblock
6682 #: ../src/guestfs-actions.pod:1624 ../fish/guestfish-actions.pod:1218
6683 msgid ""
6684 "This command searches the filesystems and returns the one which has the "
6685 "given label.  An error is returned if no such filesystem can be found."
6686 msgstr ""
6687
6688 # type: textblock
6689 #: ../src/guestfs-actions.pod:1628
6690 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6691 msgstr ""
6692
6693 # type: =head2
6694 #: ../src/guestfs-actions.pod:1633
6695 msgid "guestfs_findfs_uuid"
6696 msgstr ""
6697
6698 # type: verbatim
6699 #: ../src/guestfs-actions.pod:1635
6700 #, no-wrap
6701 msgid ""
6702 " char *\n"
6703 " guestfs_findfs_uuid (guestfs_h *g,\n"
6704 "                      const char *uuid);\n"
6705 "\n"
6706 msgstr ""
6707
6708 # type: textblock
6709 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1228
6710 msgid ""
6711 "This command searches the filesystems and returns the one which has the "
6712 "given UUID.  An error is returned if no such filesystem can be found."
6713 msgstr ""
6714
6715 # type: textblock
6716 #: ../src/guestfs-actions.pod:1643
6717 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6718 msgstr ""
6719
6720 # type: =head2
6721 #: ../src/guestfs-actions.pod:1648
6722 msgid "guestfs_fsck"
6723 msgstr ""
6724
6725 # type: verbatim
6726 #: ../src/guestfs-actions.pod:1650
6727 #, no-wrap
6728 msgid ""
6729 " int\n"
6730 " guestfs_fsck (guestfs_h *g,\n"
6731 "               const char *fstype,\n"
6732 "               const char *device);\n"
6733 "\n"
6734 msgstr ""
6735
6736 # type: textblock
6737 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1238
6738 msgid ""
6739 "This runs the filesystem checker (fsck) on C<device> which should have "
6740 "filesystem type C<fstype>."
6741 msgstr ""
6742
6743 # type: textblock
6744 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1241
6745 msgid ""
6746 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6747 "codes from C<fsck>."
6748 msgstr ""
6749
6750 # type: textblock
6751 #: ../src/guestfs-actions.pod:1667 ../fish/guestfish-actions.pod:1250
6752 msgid "Multiple status codes can be summed together."
6753 msgstr ""
6754
6755 # type: textblock
6756 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1254
6757 msgid ""
6758 "A non-zero return code can mean \"success\", for example if errors have been "
6759 "corrected on the filesystem."
6760 msgstr ""
6761
6762 # type: textblock
6763 #: ../src/guestfs-actions.pod:1676 ../fish/guestfish-actions.pod:1259
6764 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6765 msgstr ""
6766
6767 # type: textblock
6768 #: ../src/guestfs-actions.pod:1681 ../fish/guestfish-actions.pod:1264
6769 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6770 msgstr ""
6771
6772 # type: =head2
6773 #: ../src/guestfs-actions.pod:1685
6774 msgid "guestfs_get_append"
6775 msgstr ""
6776
6777 # type: verbatim
6778 #: ../src/guestfs-actions.pod:1687
6779 #, no-wrap
6780 msgid ""
6781 " const char *\n"
6782 " guestfs_get_append (guestfs_h *g);\n"
6783 "\n"
6784 msgstr ""
6785
6786 # type: textblock
6787 #: ../src/guestfs-actions.pod:1690 ../fish/guestfish-actions.pod:1270
6788 msgid ""
6789 "Return the additional kernel options which are added to the guest kernel "
6790 "command line."
6791 msgstr ""
6792
6793 # type: textblock
6794 #: ../src/guestfs-actions.pod:1693 ../fish/guestfish-actions.pod:1273
6795 msgid "If C<NULL> then no options are added."
6796 msgstr ""
6797
6798 # type: textblock
6799 #: ../src/guestfs-actions.pod:1695
6800 msgid ""
6801 "This function returns a string which may be NULL.  There is no way to return "
6802 "an error from this function.  The string is owned by the guest handle and "
6803 "must I<not> be freed."
6804 msgstr ""
6805
6806 # type: =head2
6807 #: ../src/guestfs-actions.pod:1699
6808 msgid "guestfs_get_autosync"
6809 msgstr ""
6810
6811 # type: verbatim
6812 #: ../src/guestfs-actions.pod:1701
6813 #, no-wrap
6814 msgid ""
6815 " int\n"
6816 " guestfs_get_autosync (guestfs_h *g);\n"
6817 "\n"
6818 msgstr ""
6819
6820 # type: textblock
6821 #: ../src/guestfs-actions.pod:1704 ../fish/guestfish-actions.pod:1279
6822 msgid "Get the autosync flag."
6823 msgstr ""
6824
6825 # type: =head2
6826 #: ../src/guestfs-actions.pod:1708
6827 msgid "guestfs_get_direct"
6828 msgstr ""
6829
6830 # type: verbatim
6831 #: ../src/guestfs-actions.pod:1710
6832 #, no-wrap
6833 msgid ""
6834 " int\n"
6835 " guestfs_get_direct (guestfs_h *g);\n"
6836 "\n"
6837 msgstr ""
6838
6839 # type: textblock
6840 #: ../src/guestfs-actions.pod:1713 ../fish/guestfish-actions.pod:1285
6841 msgid "Return the direct appliance mode flag."
6842 msgstr ""
6843
6844 # type: =head2
6845 #: ../src/guestfs-actions.pod:1717
6846 msgid "guestfs_get_e2label"
6847 msgstr ""
6848
6849 # type: verbatim
6850 #: ../src/guestfs-actions.pod:1719
6851 #, no-wrap
6852 msgid ""
6853 " char *\n"
6854 " guestfs_get_e2label (guestfs_h *g,\n"
6855 "                      const char *device);\n"
6856 "\n"
6857 msgstr ""
6858
6859 # type: textblock
6860 #: ../src/guestfs-actions.pod:1723 ../fish/guestfish-actions.pod:1291
6861 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6862 msgstr ""
6863
6864 # type: textblock
6865 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1294
6866 msgid ""
6867 "This function is deprecated.  In new code, use the C<vfs_label> call "
6868 "instead."
6869 msgstr ""
6870
6871 # type: =head2
6872 #: ../src/guestfs-actions.pod:1736
6873 msgid "guestfs_get_e2uuid"
6874 msgstr ""
6875
6876 # type: verbatim
6877 #: ../src/guestfs-actions.pod:1738
6878 #, no-wrap
6879 msgid ""
6880 " char *\n"
6881 " guestfs_get_e2uuid (guestfs_h *g,\n"
6882 "                     const char *device);\n"
6883 "\n"
6884 msgstr ""
6885
6886 # type: textblock
6887 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1305
6888 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6889 msgstr ""
6890
6891 # type: textblock
6892 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1308
6893 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6894 msgstr ""
6895
6896 # type: =head2
6897 #: ../src/guestfs-actions.pod:1755
6898 msgid "guestfs_get_memsize"
6899 msgstr ""
6900
6901 # type: verbatim
6902 #: ../src/guestfs-actions.pod:1757
6903 #, no-wrap
6904 msgid ""
6905 " int\n"
6906 " guestfs_get_memsize (guestfs_h *g);\n"
6907 "\n"
6908 msgstr ""
6909
6910 # type: textblock
6911 #: ../src/guestfs-actions.pod:1760 ../fish/guestfish-actions.pod:1319
6912 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6913 msgstr ""
6914
6915 # type: textblock
6916 #: ../src/guestfs-actions.pod:1763
6917 msgid ""
6918 "If C<guestfs_set_memsize> was not called on this handle, and if "
6919 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6920 "value for memsize."
6921 msgstr ""
6922
6923 # type: textblock
6924 #: ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:1836 ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377 ../fish/guestfish-actions.pod:3484 ../fish/guestfish-actions.pod:3571
6925 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6926 msgstr ""
6927
6928 # type: =head2
6929 #: ../src/guestfs-actions.pod:1772
6930 msgid "guestfs_get_network"
6931 msgstr ""
6932
6933 # type: verbatim
6934 #: ../src/guestfs-actions.pod:1774
6935 #, no-wrap
6936 msgid ""
6937 " int\n"
6938 " guestfs_get_network (guestfs_h *g);\n"
6939 "\n"
6940 msgstr ""
6941
6942 # type: textblock
6943 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1333
6944 msgid "This returns the enable network flag."
6945 msgstr ""
6946
6947 # type: =head2
6948 #: ../src/guestfs-actions.pod:1781
6949 msgid "guestfs_get_path"
6950 msgstr ""
6951
6952 # type: verbatim
6953 #: ../src/guestfs-actions.pod:1783
6954 #, no-wrap
6955 msgid ""
6956 " const char *\n"
6957 " guestfs_get_path (guestfs_h *g);\n"
6958 "\n"
6959 msgstr ""
6960
6961 # type: textblock
6962 #: ../src/guestfs-actions.pod:1786 ../fish/guestfish-actions.pod:1339
6963 msgid "Return the current search path."
6964 msgstr ""
6965
6966 # type: textblock
6967 #: ../src/guestfs-actions.pod:1788 ../fish/guestfish-actions.pod:1341
6968 msgid ""
6969 "This is always non-NULL.  If it wasn't set already, then this will return "
6970 "the default path."
6971 msgstr ""
6972
6973 # type: textblock
6974 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816
6975 msgid ""
6976 "This function returns a string, or NULL on error.  The string is owned by "
6977 "the guest handle and must I<not> be freed."
6978 msgstr ""
6979
6980 # type: =head2
6981 #: ../src/guestfs-actions.pod:1794
6982 msgid "guestfs_get_pid"
6983 msgstr ""
6984
6985 # type: verbatim
6986 #: ../src/guestfs-actions.pod:1796
6987 #, no-wrap
6988 msgid ""
6989 " int\n"
6990 " guestfs_get_pid (guestfs_h *g);\n"
6991 "\n"
6992 msgstr ""
6993
6994 # type: textblock
6995 #: ../src/guestfs-actions.pod:1799 ../fish/guestfish-actions.pod:1350
6996 msgid ""
6997 "Return the process ID of the qemu subprocess.  If there is no qemu "
6998 "subprocess, then this will return an error."
6999 msgstr ""
7000
7001 # type: textblock
7002 #: ../src/guestfs-actions.pod:1802 ../fish/guestfish-actions.pod:1353
7003 msgid "This is an internal call used for debugging and testing."
7004 msgstr ""
7005
7006 # type: =head2
7007 #: ../src/guestfs-actions.pod:1806
7008 msgid "guestfs_get_qemu"
7009 msgstr ""
7010
7011 # type: verbatim
7012 #: ../src/guestfs-actions.pod:1808
7013 #, no-wrap
7014 msgid ""
7015 " const char *\n"
7016 " guestfs_get_qemu (guestfs_h *g);\n"
7017 "\n"
7018 msgstr ""
7019
7020 # type: textblock
7021 #: ../src/guestfs-actions.pod:1811 ../fish/guestfish-actions.pod:1359
7022 msgid "Return the current qemu binary."
7023 msgstr ""
7024
7025 # type: textblock
7026 #: ../src/guestfs-actions.pod:1813 ../fish/guestfish-actions.pod:1361
7027 msgid ""
7028 "This is always non-NULL.  If it wasn't set already, then this will return "
7029 "the default qemu binary name."
7030 msgstr ""
7031
7032 # type: =head2
7033 #: ../src/guestfs-actions.pod:1819
7034 msgid "guestfs_get_recovery_proc"
7035 msgstr ""
7036
7037 # type: verbatim
7038 #: ../src/guestfs-actions.pod:1821
7039 #, no-wrap
7040 msgid ""
7041 " int\n"
7042 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7043 "\n"
7044 msgstr ""
7045
7046 # type: textblock
7047 #: ../src/guestfs-actions.pod:1824 ../fish/guestfish-actions.pod:1368
7048 msgid "Return the recovery process enabled flag."
7049 msgstr ""
7050
7051 # type: =head2
7052 #: ../src/guestfs-actions.pod:1828
7053 msgid "guestfs_get_selinux"
7054 msgstr ""
7055
7056 # type: verbatim
7057 #: ../src/guestfs-actions.pod:1830
7058 #, no-wrap
7059 msgid ""
7060 " int\n"
7061 " guestfs_get_selinux (guestfs_h *g);\n"
7062 "\n"
7063 msgstr ""
7064
7065 # type: textblock
7066 #: ../src/guestfs-actions.pod:1833
7067 msgid ""
7068 "This returns the current setting of the selinux flag which is passed to the "
7069 "appliance at boot time.  See C<guestfs_set_selinux>."
7070 msgstr ""
7071
7072 # type: =head2
7073 #: ../src/guestfs-actions.pod:1841
7074 msgid "guestfs_get_state"
7075 msgstr ""
7076
7077 # type: verbatim
7078 #: ../src/guestfs-actions.pod:1843
7079 #, no-wrap
7080 msgid ""
7081 " int\n"
7082 " guestfs_get_state (guestfs_h *g);\n"
7083 "\n"
7084 msgstr ""
7085
7086 # type: textblock
7087 #: ../src/guestfs-actions.pod:1846 ../fish/guestfish-actions.pod:1384
7088 msgid ""
7089 "This returns the current state as an opaque integer.  This is only useful "
7090 "for printing debug and internal error messages."
7091 msgstr ""
7092
7093 # type: textblock
7094 #: ../src/guestfs-actions.pod:1849 ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1387 ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:1989
7095 msgid "For more information on states, see L<guestfs(3)>."
7096 msgstr ""
7097
7098 # type: =head2
7099 #: ../src/guestfs-actions.pod:1853
7100 msgid "guestfs_get_trace"
7101 msgstr ""
7102
7103 # type: verbatim
7104 #: ../src/guestfs-actions.pod:1855
7105 #, no-wrap
7106 msgid ""
7107 " int\n"
7108 " guestfs_get_trace (guestfs_h *g);\n"
7109 "\n"
7110 msgstr ""
7111
7112 # type: textblock
7113 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1393
7114 msgid "Return the command trace flag."
7115 msgstr ""
7116
7117 # type: =head2
7118 #: ../src/guestfs-actions.pod:1862
7119 msgid "guestfs_get_umask"
7120 msgstr ""
7121
7122 # type: verbatim
7123 #: ../src/guestfs-actions.pod:1864
7124 #, no-wrap
7125 msgid ""
7126 " int\n"
7127 " guestfs_get_umask (guestfs_h *g);\n"
7128 "\n"
7129 msgstr ""
7130
7131 # type: textblock
7132 #: ../src/guestfs-actions.pod:1867
7133 msgid ""
7134 "Return the current umask.  By default the umask is C<022> unless it has been "
7135 "set by calling C<guestfs_umask>."
7136 msgstr ""
7137
7138 # type: =head2
7139 #: ../src/guestfs-actions.pod:1872
7140 msgid "guestfs_get_verbose"
7141 msgstr ""
7142
7143 # type: verbatim
7144 #: ../src/guestfs-actions.pod:1874
7145 #, no-wrap
7146 msgid ""
7147 " int\n"
7148 " guestfs_get_verbose (guestfs_h *g);\n"
7149 "\n"
7150 msgstr ""
7151
7152 # type: textblock
7153 #: ../src/guestfs-actions.pod:1877 ../fish/guestfish-actions.pod:1406
7154 msgid "This returns the verbose messages flag."
7155 msgstr ""
7156
7157 # type: =head2
7158 #: ../src/guestfs-actions.pod:1881
7159 msgid "guestfs_getcon"
7160 msgstr ""
7161
7162 # type: verbatim
7163 #: ../src/guestfs-actions.pod:1883
7164 #, no-wrap
7165 msgid ""
7166 " char *\n"
7167 " guestfs_getcon (guestfs_h *g);\n"
7168 "\n"
7169 msgstr ""
7170
7171 # type: textblock
7172 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1412
7173 msgid "This gets the SELinux security context of the daemon."
7174 msgstr ""
7175
7176 # type: textblock
7177 #: ../src/guestfs-actions.pod:1888
7178 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7179 msgstr ""
7180
7181 # type: =head2
7182 #: ../src/guestfs-actions.pod:1894
7183 msgid "guestfs_getxattrs"
7184 msgstr ""
7185
7186 # type: verbatim
7187 #: ../src/guestfs-actions.pod:1896
7188 #, no-wrap
7189 msgid ""
7190 " struct guestfs_xattr_list *\n"
7191 " guestfs_getxattrs (guestfs_h *g,\n"
7192 "                    const char *path);\n"
7193 "\n"
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1421
7198 msgid "This call lists the extended attributes of the file or directory C<path>."
7199 msgstr ""
7200
7201 # type: textblock
7202 #: ../src/guestfs-actions.pod:1903 ../fish/guestfish-actions.pod:1424
7203 msgid ""
7204 "At the system call level, this is a combination of the L<listxattr(2)> and "
7205 "L<getxattr(2)> calls."
7206 msgstr ""
7207
7208 # type: textblock
7209 #: ../src/guestfs-actions.pod:1906
7210 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7211 msgstr ""
7212
7213 # type: textblock
7214 #: ../src/guestfs-actions.pod:1908 ../src/guestfs-actions.pod:2723 ../src/guestfs-actions.pod:3311
7215 msgid ""
7216 "This function returns a C<struct guestfs_xattr_list *> (see "
7217 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7218 "must call C<guestfs_free_xattr_list> after use>."
7219 msgstr ""
7220
7221 # type: =head2
7222 #: ../src/guestfs-actions.pod:1913
7223 msgid "guestfs_glob_expand"
7224 msgstr ""
7225
7226 # type: verbatim
7227 #: ../src/guestfs-actions.pod:1915
7228 #, no-wrap
7229 msgid ""
7230 " char **\n"
7231 " guestfs_glob_expand (guestfs_h *g,\n"
7232 "                      const char *pattern);\n"
7233 "\n"
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1919 ../fish/guestfish-actions.pod:1433
7238 msgid ""
7239 "This command searches for all the pathnames matching C<pattern> according to "
7240 "the wildcard expansion rules used by the shell."
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1437
7245 msgid "If no paths match, then this returns an empty list (note: not an error)."
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:1926 ../fish/guestfish-actions.pod:1440
7250 msgid ""
7251 "It is just a wrapper around the C L<glob(3)> function with flags "
7252 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7253 msgstr ""
7254
7255 # type: =head2
7256 #: ../src/guestfs-actions.pod:1934
7257 msgid "guestfs_grep"
7258 msgstr ""
7259
7260 # type: verbatim
7261 #: ../src/guestfs-actions.pod:1936
7262 #, no-wrap
7263 msgid ""
7264 " char **\n"
7265 " guestfs_grep (guestfs_h *g,\n"
7266 "               const char *regex,\n"
7267 "               const char *path);\n"
7268 "\n"
7269 msgstr ""
7270
7271 # type: textblock
7272 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1448
7273 msgid "This calls the external C<grep> program and returns the matching lines."
7274 msgstr ""
7275
7276 # type: =head2
7277 #: ../src/guestfs-actions.pod:1951
7278 msgid "guestfs_grepi"
7279 msgstr ""
7280
7281 # type: verbatim
7282 #: ../src/guestfs-actions.pod:1953
7283 #, no-wrap
7284 msgid ""
7285 " char **\n"
7286 " guestfs_grepi (guestfs_h *g,\n"
7287 "                const char *regex,\n"
7288 "                const char *path);\n"
7289 "\n"
7290 msgstr ""
7291
7292 # type: textblock
7293 #: ../src/guestfs-actions.pod:1958 ../fish/guestfish-actions.pod:1458
7294 msgid "This calls the external C<grep -i> program and returns the matching lines."
7295 msgstr ""
7296
7297 # type: =head2
7298 #: ../src/guestfs-actions.pod:1968
7299 msgid "guestfs_grub_install"
7300 msgstr ""
7301
7302 # type: verbatim
7303 #: ../src/guestfs-actions.pod:1970
7304 #, no-wrap
7305 msgid ""
7306 " int\n"
7307 " guestfs_grub_install (guestfs_h *g,\n"
7308 "                       const char *root,\n"
7309 "                       const char *device);\n"
7310 "\n"
7311 msgstr ""
7312
7313 # type: textblock
7314 #: ../src/guestfs-actions.pod:1975 ../fish/guestfish-actions.pod:1468
7315 msgid ""
7316 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7317 "the root directory being C<root>."
7318 msgstr ""
7319
7320 # type: textblock
7321 #: ../src/guestfs-actions.pod:1978 ../fish/guestfish-actions.pod:1471
7322 msgid ""
7323 "Note: If grub-install reports the error \"No suitable drive was found in the "
7324 "generated device map.\" it may be that you need to create a "
7325 "C</boot/grub/device.map> file first that contains the mapping between grub "
7326 "device names and Linux device names.  It is usually sufficient to create a "
7327 "file containing:"
7328 msgstr ""
7329
7330 # type: verbatim
7331 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1478
7332 #, no-wrap
7333 msgid ""
7334 " (hd0) /dev/vda\n"
7335 "\n"
7336 msgstr ""
7337
7338 # type: textblock
7339 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1480
7340 msgid "replacing C</dev/vda> with the name of the installation device."
7341 msgstr ""
7342
7343 # type: =head2
7344 #: ../src/guestfs-actions.pod:1991
7345 msgid "guestfs_head"
7346 msgstr ""
7347
7348 # type: verbatim
7349 #: ../src/guestfs-actions.pod:1993
7350 #, no-wrap
7351 msgid ""
7352 " char **\n"
7353 " guestfs_head (guestfs_h *g,\n"
7354 "               const char *path);\n"
7355 "\n"
7356 msgstr ""
7357
7358 # type: textblock
7359 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1486
7360 msgid ""
7361 "This command returns up to the first 10 lines of a file as a list of "
7362 "strings."
7363 msgstr ""
7364
7365 # type: =head2
7366 #: ../src/guestfs-actions.pod:2007
7367 msgid "guestfs_head_n"
7368 msgstr ""
7369
7370 # type: verbatim
7371 #: ../src/guestfs-actions.pod:2009
7372 #, no-wrap
7373 msgid ""
7374 " char **\n"
7375 " guestfs_head_n (guestfs_h *g,\n"
7376 "                 int nrlines,\n"
7377 "                 const char *path);\n"
7378 "\n"
7379 msgstr ""
7380
7381 # type: textblock
7382 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1496
7383 msgid ""
7384 "If the parameter C<nrlines> is a positive number, this returns the first "
7385 "C<nrlines> lines of the file C<path>."
7386 msgstr ""
7387
7388 # type: textblock
7389 #: ../src/guestfs-actions.pod:2017 ../fish/guestfish-actions.pod:1499
7390 msgid ""
7391 "If the parameter C<nrlines> is a negative number, this returns lines from "
7392 "the file C<path>, excluding the last C<nrlines> lines."
7393 msgstr ""
7394
7395 # type: textblock
7396 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5340 ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3917
7397 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7398 msgstr ""
7399
7400 # type: =head2
7401 #: ../src/guestfs-actions.pod:2029
7402 msgid "guestfs_hexdump"
7403 msgstr ""
7404
7405 # type: verbatim
7406 #: ../src/guestfs-actions.pod:2031
7407 #, no-wrap
7408 msgid ""
7409 " char *\n"
7410 " guestfs_hexdump (guestfs_h *g,\n"
7411 "                  const char *path);\n"
7412 "\n"
7413 msgstr ""
7414
7415 # type: textblock
7416 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1511
7417 msgid ""
7418 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7419 "human-readable, canonical hex dump of the file."
7420 msgstr ""
7421
7422 # type: =head2
7423 #: ../src/guestfs-actions.pod:2044
7424 msgid "guestfs_initrd_cat"
7425 msgstr ""
7426
7427 # type: verbatim
7428 #: ../src/guestfs-actions.pod:2046
7429 #, no-wrap
7430 msgid ""
7431 " char *\n"
7432 " guestfs_initrd_cat (guestfs_h *g,\n"
7433 "                     const char *initrdpath,\n"
7434 "                     const char *filename,\n"
7435 "                     size_t *size_r);\n"
7436 "\n"
7437 msgstr ""
7438
7439 # type: textblock
7440 #: ../src/guestfs-actions.pod:2052 ../fish/guestfish-actions.pod:1521
7441 msgid ""
7442 "This command unpacks the file C<filename> from the initrd file called "
7443 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7444 "character."
7445 msgstr ""
7446
7447 # type: textblock
7448 #: ../src/guestfs-actions.pod:2056 ../fish/guestfish-actions.pod:1525
7449 msgid ""
7450 "For example, in guestfish you could use the following command to examine the "
7451 "boot script (usually called C</init>)  contained in a Linux initrd or "
7452 "initramfs image:"
7453 msgstr ""
7454
7455 # type: verbatim
7456 #: ../src/guestfs-actions.pod:2060 ../fish/guestfish-actions.pod:1529
7457 #, no-wrap
7458 msgid ""
7459 " initrd-cat /boot/initrd-<version>.img init\n"
7460 "\n"
7461 msgstr ""
7462
7463 # type: textblock
7464 #: ../src/guestfs-actions.pod:2062
7465 msgid "See also C<guestfs_initrd_list>."
7466 msgstr ""
7467
7468 # type: textblock
7469 #: ../src/guestfs-actions.pod:2064 ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4211 ../src/guestfs-actions.pod:4373
7470 msgid ""
7471 "This function returns a buffer, or NULL on error.  The size of the returned "
7472 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7473 "after use>."
7474 msgstr ""
7475
7476 # type: =head2
7477 #: ../src/guestfs-actions.pod:2071
7478 msgid "guestfs_initrd_list"
7479 msgstr ""
7480
7481 # type: verbatim
7482 #: ../src/guestfs-actions.pod:2073
7483 #, no-wrap
7484 msgid ""
7485 " char **\n"
7486 " guestfs_initrd_list (guestfs_h *g,\n"
7487 "                      const char *path);\n"
7488 "\n"
7489 msgstr ""
7490
7491 # type: textblock
7492 #: ../src/guestfs-actions.pod:2077 ../fish/guestfish-actions.pod:1540
7493 msgid "This command lists out files contained in an initrd."
7494 msgstr ""
7495
7496 # type: textblock
7497 #: ../src/guestfs-actions.pod:2079 ../fish/guestfish-actions.pod:1542
7498 msgid ""
7499 "The files are listed without any initial C</> character.  The files are "
7500 "listed in the order they appear (not necessarily alphabetical).  Directory "
7501 "names are listed as separate items."
7502 msgstr ""
7503
7504 # type: textblock
7505 #: ../src/guestfs-actions.pod:2083 ../fish/guestfish-actions.pod:1546
7506 msgid ""
7507 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7508 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7509 "files)."
7510 msgstr ""
7511
7512 # type: =head2
7513 #: ../src/guestfs-actions.pod:2091
7514 msgid "guestfs_inotify_add_watch"
7515 msgstr ""
7516
7517 # type: verbatim
7518 #: ../src/guestfs-actions.pod:2093
7519 #, no-wrap
7520 msgid ""
7521 " int64_t\n"
7522 " guestfs_inotify_add_watch (guestfs_h *g,\n"
7523 "                            const char *path,\n"
7524 "                            int mask);\n"
7525 "\n"
7526 msgstr ""
7527
7528 # type: textblock
7529 #: ../src/guestfs-actions.pod:2098 ../fish/guestfish-actions.pod:1554
7530 msgid "Watch C<path> for the events listed in C<mask>."
7531 msgstr ""
7532
7533 # type: textblock
7534 #: ../src/guestfs-actions.pod:2100 ../fish/guestfish-actions.pod:1556
7535 msgid ""
7536 "Note that if C<path> is a directory then events within that directory are "
7537 "watched, but this does I<not> happen recursively (in subdirectories)."
7538 msgstr ""
7539
7540 # type: textblock
7541 #: ../src/guestfs-actions.pod:2104 ../fish/guestfish-actions.pod:1560
7542 msgid ""
7543 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7544 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7545 msgstr ""
7546
7547 # type: =head2
7548 #: ../src/guestfs-actions.pod:2110
7549 msgid "guestfs_inotify_close"
7550 msgstr ""
7551
7552 # type: verbatim
7553 #: ../src/guestfs-actions.pod:2112
7554 #, no-wrap
7555 msgid ""
7556 " int\n"
7557 " guestfs_inotify_close (guestfs_h *g);\n"
7558 "\n"
7559 msgstr ""
7560
7561 # type: textblock
7562 #: ../src/guestfs-actions.pod:2115 ../fish/guestfish-actions.pod:1568
7563 msgid ""
7564 "This closes the inotify handle which was previously opened by inotify_init.  "
7565 "It removes all watches, throws away any pending events, and deallocates all "
7566 "resources."
7567 msgstr ""
7568
7569 # type: =head2
7570 #: ../src/guestfs-actions.pod:2121
7571 msgid "guestfs_inotify_files"
7572 msgstr ""
7573
7574 # type: verbatim
7575 #: ../src/guestfs-actions.pod:2123
7576 #, no-wrap
7577 msgid ""
7578 " char **\n"
7579 " guestfs_inotify_files (guestfs_h *g);\n"
7580 "\n"
7581 msgstr ""
7582
7583 # type: textblock
7584 #: ../src/guestfs-actions.pod:2126
7585 msgid ""
7586 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7587 "returns a list of pathnames of objects that were touched.  The returned "
7588 "pathnames are sorted and deduplicated."
7589 msgstr ""
7590
7591 # type: =head2
7592 #: ../src/guestfs-actions.pod:2134
7593 msgid "guestfs_inotify_init"
7594 msgstr ""
7595
7596 # type: verbatim
7597 #: ../src/guestfs-actions.pod:2136
7598 #, no-wrap
7599 msgid ""
7600 " int\n"
7601 " guestfs_inotify_init (guestfs_h *g,\n"
7602 "                       int maxevents);\n"
7603 "\n"
7604 msgstr ""
7605
7606 # type: textblock
7607 #: ../src/guestfs-actions.pod:2140 ../fish/guestfish-actions.pod:1584
7608 msgid ""
7609 "This command creates a new inotify handle.  The inotify subsystem can be "
7610 "used to notify events which happen to objects in the guest filesystem."
7611 msgstr ""
7612
7613 # type: textblock
7614 #: ../src/guestfs-actions.pod:2144
7615 msgid ""
7616 "C<maxevents> is the maximum number of events which will be queued up between "
7617 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7618 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7619 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7620 "throws away events, but records the fact that it threw them away by setting "
7621 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7622 "C<guestfs_inotify_read>)."
7623 msgstr ""
7624
7625 # type: textblock
7626 #: ../src/guestfs-actions.pod:2154
7627 msgid ""
7628 "Before any events are generated, you have to add some watches to the "
7629 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7630 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7631 msgstr ""
7632
7633 # type: textblock
7634 #: ../src/guestfs-actions.pod:2160
7635 msgid ""
7636 "Queued up events should be read periodically by calling "
7637 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7638 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7639 "often enough then you risk the internal queue overflowing."
7640 msgstr ""
7641
7642 # type: textblock
7643 #: ../src/guestfs-actions.pod:2167
7644 msgid ""
7645 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7646 "This also removes any watches automatically."
7647 msgstr ""
7648
7649 # type: textblock
7650 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1615
7651 msgid ""
7652 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7653 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7654 "that there is one global inotify handle per libguestfs instance."
7655 msgstr ""
7656
7657 # type: =head2
7658 #: ../src/guestfs-actions.pod:2178
7659 msgid "guestfs_inotify_read"
7660 msgstr ""
7661
7662 # type: verbatim
7663 #: ../src/guestfs-actions.pod:2180
7664 #, no-wrap
7665 msgid ""
7666 " struct guestfs_inotify_event_list *\n"
7667 " guestfs_inotify_read (guestfs_h *g);\n"
7668 "\n"
7669 msgstr ""
7670
7671 # type: textblock
7672 #: ../src/guestfs-actions.pod:2183 ../fish/guestfish-actions.pod:1624
7673 msgid ""
7674 "Return the complete queue of events that have happened since the previous "
7675 "read call."
7676 msgstr ""
7677
7678 # type: textblock
7679 #: ../src/guestfs-actions.pod:2186 ../fish/guestfish-actions.pod:1627
7680 msgid "If no events have happened, this returns an empty list."
7681 msgstr ""
7682
7683 # type: textblock
7684 #: ../src/guestfs-actions.pod:2188 ../fish/guestfish-actions.pod:1629
7685 msgid ""
7686 "I<Note>: In order to make sure that all events have been read, you must call "
7687 "this function repeatedly until it returns an empty list.  The reason is that "
7688 "the call will read events up to the maximum appliance-to-host message size "
7689 "and leave remaining events in the queue."
7690 msgstr ""
7691
7692 # type: textblock
7693 #: ../src/guestfs-actions.pod:2194
7694 msgid ""
7695 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7696 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7697 "must call C<guestfs_free_inotify_event_list> after use>."
7698 msgstr ""
7699
7700 # type: =head2
7701 #: ../src/guestfs-actions.pod:2199
7702 msgid "guestfs_inotify_rm_watch"
7703 msgstr ""
7704
7705 # type: verbatim
7706 #: ../src/guestfs-actions.pod:2201
7707 #, no-wrap
7708 msgid ""
7709 " int\n"
7710 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
7711 "                           int wd);\n"
7712 "\n"
7713 msgstr ""
7714
7715 # type: textblock
7716 #: ../src/guestfs-actions.pod:2205
7717 msgid ""
7718 "Remove a previously defined inotify watch.  See "
7719 "C<guestfs_inotify_add_watch>."
7720 msgstr ""
7721
7722 # type: =head2
7723 #: ../src/guestfs-actions.pod:2210
7724 msgid "guestfs_inspect_get_arch"
7725 msgstr ""
7726
7727 # type: verbatim
7728 #: ../src/guestfs-actions.pod:2212
7729 #, no-wrap
7730 msgid ""
7731 " char *\n"
7732 " guestfs_inspect_get_arch (guestfs_h *g,\n"
7733 "                           const char *root);\n"
7734 "\n"
7735 msgstr ""
7736
7737 # type: textblock
7738 #: ../src/guestfs-actions.pod:2216 ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:2308 ../src/guestfs-actions.pod:2332 ../src/guestfs-actions.pod:2357 ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2465
7739 msgid ""
7740 "This function should only be called with a root device string as returned by "
7741 "C<guestfs_inspect_os>."
7742 msgstr ""
7743
7744 # type: textblock
7745 #: ../src/guestfs-actions.pod:2219
7746 msgid ""
7747 "This returns the architecture of the inspected operating system.  The "
7748 "possible return values are listed under C<guestfs_file_architecture>."
7749 msgstr ""
7750
7751 # type: textblock
7752 #: ../src/guestfs-actions.pod:2223 ../fish/guestfish-actions.pod:1653
7753 msgid ""
7754 "If the architecture could not be determined, then the string C<unknown> is "
7755 "returned."
7756 msgstr ""
7757
7758 # type: textblock
7759 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2418 ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2513 ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:1761 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1847 ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:1897
7760 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7761 msgstr ""
7762
7763 # type: =head2
7764 #: ../src/guestfs-actions.pod:2231
7765 msgid "guestfs_inspect_get_distro"
7766 msgstr ""
7767
7768 # type: verbatim
7769 #: ../src/guestfs-actions.pod:2233
7770 #, no-wrap
7771 msgid ""
7772 " char *\n"
7773 " guestfs_inspect_get_distro (guestfs_h *g,\n"
7774 "                             const char *root);\n"
7775 "\n"
7776 msgstr ""
7777
7778 # type: textblock
7779 #: ../src/guestfs-actions.pod:2240 ../fish/guestfish-actions.pod:1665
7780 msgid "This returns the distro (distribution) of the inspected operating system."
7781 msgstr ""
7782
7783 # type: textblock
7784 #: ../src/guestfs-actions.pod:2243 ../fish/guestfish-actions.pod:1668
7785 msgid "Currently defined distros are:"
7786 msgstr ""
7787
7788 # type: =item
7789 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1672
7790 msgid "\"archlinux\""
7791 msgstr ""
7792
7793 # type: textblock
7794 #: ../src/guestfs-actions.pod:2249 ../fish/guestfish-actions.pod:1674
7795 msgid "Arch Linux."
7796 msgstr ""
7797
7798 # type: =item
7799 #: ../src/guestfs-actions.pod:2251 ../fish/guestfish-actions.pod:1676
7800 msgid "\"debian\""
7801 msgstr ""
7802
7803 # type: textblock
7804 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1678
7805 msgid "Debian or a Debian-derived distro such as Ubuntu."
7806 msgstr ""
7807
7808 # type: =item
7809 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1680
7810 msgid "\"fedora\""
7811 msgstr ""
7812
7813 # type: textblock
7814 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1682
7815 msgid "Fedora."
7816 msgstr ""
7817
7818 # type: =item
7819 #: ../src/guestfs-actions.pod:2259 ../fish/guestfish-actions.pod:1684
7820 msgid "\"gentoo\""
7821 msgstr ""
7822
7823 # type: textblock
7824 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1686
7825 msgid "Gentoo."
7826 msgstr ""
7827
7828 # type: =item
7829 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1688
7830 msgid "\"meego\""
7831 msgstr ""
7832
7833 # type: textblock
7834 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1690
7835 msgid "MeeGo."
7836 msgstr ""
7837
7838 # type: =item
7839 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1692
7840 msgid "\"pardus\""
7841 msgstr ""
7842
7843 # type: textblock
7844 #: ../src/guestfs-actions.pod:2269 ../fish/guestfish-actions.pod:1694
7845 msgid "Pardus."
7846 msgstr ""
7847
7848 # type: =item
7849 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1696
7850 msgid "\"redhat-based\""
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:2273 ../fish/guestfish-actions.pod:1698
7855 msgid "Some Red Hat-derived distro."
7856 msgstr ""
7857
7858 # type: =item
7859 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1700
7860 msgid "\"rhel\""
7861 msgstr ""
7862
7863 # type: textblock
7864 #: ../src/guestfs-actions.pod:2277 ../fish/guestfish-actions.pod:1702
7865 msgid "Red Hat Enterprise Linux and some derivatives."
7866 msgstr ""
7867
7868 # type: =item
7869 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2441 ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1834
7870 msgid "\"windows\""
7871 msgstr ""
7872
7873 # type: textblock
7874 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1706
7875 msgid ""
7876 "Windows does not have distributions.  This string is returned if the OS type "
7877 "is Windows."
7878 msgstr ""
7879
7880 # type: =item
7881 #: ../src/guestfs-actions.pod:2284 ../fish/guestfish-actions.pod:1709
7882 msgid "\"ubuntu\""
7883 msgstr ""
7884
7885 # type: textblock
7886 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1711
7887 msgid "Ubuntu."
7888 msgstr ""
7889
7890 # type: =item
7891 #: ../src/guestfs-actions.pod:2288 ../src/guestfs-actions.pod:2445 ../fish/guestfish-actions.pod:1713 ../fish/guestfish-actions.pod:1838
7892 msgid "\"unknown\""
7893 msgstr ""
7894
7895 # type: textblock
7896 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1715
7897 msgid "The distro could not be determined."
7898 msgstr ""
7899
7900 # type: textblock
7901 #: ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2451 ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1844
7902 msgid ""
7903 "Future versions of libguestfs may return other strings here.  The caller "
7904 "should be prepared to handle any string."
7905 msgstr ""
7906
7907 # type: =head2
7908 #: ../src/guestfs-actions.pod:2302
7909 msgid "guestfs_inspect_get_filesystems"
7910 msgstr ""
7911
7912 # type: verbatim
7913 #: ../src/guestfs-actions.pod:2304
7914 #, no-wrap
7915 msgid ""
7916 " char **\n"
7917 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
7918 "                                  const char *root);\n"
7919 "\n"
7920 msgstr ""
7921
7922 # type: textblock
7923 #: ../src/guestfs-actions.pod:2311 ../fish/guestfish-actions.pod:1731
7924 msgid ""
7925 "This returns a list of all the filesystems that we think are associated with "
7926 "this operating system.  This includes the root filesystem, other ordinary "
7927 "filesystems, and non-mounted devices like swap partitions."
7928 msgstr ""
7929
7930 # type: textblock
7931 #: ../src/guestfs-actions.pod:2316 ../fish/guestfish-actions.pod:1736
7932 msgid ""
7933 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7934 "to be shared between operating systems."
7935 msgstr ""
7936
7937 # type: textblock
7938 #: ../src/guestfs-actions.pod:2319
7939 msgid ""
7940 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7941 "C<guestfs_inspect_get_mountpoints>."
7942 msgstr ""
7943
7944 # type: =head2
7945 #: ../src/guestfs-actions.pod:2326
7946 msgid "guestfs_inspect_get_major_version"
7947 msgstr ""
7948
7949 # type: verbatim
7950 #: ../src/guestfs-actions.pod:2328
7951 #, no-wrap
7952 msgid ""
7953 " int\n"
7954 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
7955 "                                    const char *root);\n"
7956 "\n"
7957 msgstr ""
7958
7959 # type: textblock
7960 #: ../src/guestfs-actions.pod:2335 ../fish/guestfish-actions.pod:1749
7961 msgid "This returns the major version number of the inspected operating system."
7962 msgstr ""
7963
7964 # type: textblock
7965 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1752
7966 msgid ""
7967 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7968 "popular public names used by the operating system.  Notably the operating "
7969 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7970 "1).  You can find out the real versions corresponding to releases of Windows "
7971 "by consulting Wikipedia or MSDN."
7972 msgstr ""
7973
7974 # type: textblock
7975 #: ../src/guestfs-actions.pod:2345 ../src/guestfs-actions.pod:2363 ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1773
7976 msgid "If the version could not be determined, then C<0> is returned."
7977 msgstr ""
7978
7979 # type: =head2
7980 #: ../src/guestfs-actions.pod:2351
7981 msgid "guestfs_inspect_get_minor_version"
7982 msgstr ""
7983
7984 # type: verbatim
7985 #: ../src/guestfs-actions.pod:2353
7986 #, no-wrap
7987 msgid ""
7988 " int\n"
7989 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
7990 "                                    const char *root);\n"
7991 "\n"
7992 msgstr ""
7993
7994 # type: textblock
7995 #: ../src/guestfs-actions.pod:2360 ../fish/guestfish-actions.pod:1770
7996 msgid "This returns the minor version number of the inspected operating system."
7997 msgstr ""
7998
7999 # type: textblock
8000 #: ../src/guestfs-actions.pod:2365
8001 msgid ""
8002 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8003 "C<guestfs_inspect_get_major_version>."
8004 msgstr ""
8005
8006 # type: =head2
8007 #: ../src/guestfs-actions.pod:2370
8008 msgid "guestfs_inspect_get_mountpoints"
8009 msgstr ""
8010
8011 # type: verbatim
8012 #: ../src/guestfs-actions.pod:2372
8013 #, no-wrap
8014 msgid ""
8015 " char **\n"
8016 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8017 "                                  const char *root);\n"
8018 "\n"
8019 msgstr ""
8020
8021 # type: textblock
8022 #: ../src/guestfs-actions.pod:2379 ../fish/guestfish-actions.pod:1785
8023 msgid ""
8024 "This returns a hash of where we think the filesystems associated with this "
8025 "operating system should be mounted.  Callers should note that this is at "
8026 "best an educated guess made by reading configuration files such as "
8027 "C</etc/fstab>."
8028 msgstr ""
8029
8030 # type: textblock
8031 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1790
8032 msgid ""
8033 "Each element in the returned hashtable has a key which is the path of the "
8034 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8035 "mounted there (eg. C</dev/sda1>)."
8036 msgstr ""
8037
8038 # type: textblock
8039 #: ../src/guestfs-actions.pod:2389 ../fish/guestfish-actions.pod:1795
8040 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8041 msgstr ""
8042
8043 # type: textblock
8044 #: ../src/guestfs-actions.pod:2392
8045 msgid ""
8046 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8047 "C<guestfs_inspect_get_filesystems>."
8048 msgstr ""
8049
8050 # type: textblock
8051 #: ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2777 ../src/guestfs-actions.pod:3790 ../src/guestfs-actions.pod:5465
8052 msgid ""
8053 "This function returns a NULL-terminated array of strings, or NULL if there "
8054 "was an error.  The array of strings will always have length C<2n+1>, where "
8055 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8056 "caller must free the strings and the array after use>."
8057 msgstr ""
8058
8059 # type: =head2
8060 #: ../src/guestfs-actions.pod:2401
8061 msgid "guestfs_inspect_get_product_name"
8062 msgstr ""
8063
8064 # type: verbatim
8065 #: ../src/guestfs-actions.pod:2403
8066 #, no-wrap
8067 msgid ""
8068 " char *\n"
8069 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8070 "                                   const char *root);\n"
8071 "\n"
8072 msgstr ""
8073
8074 # type: textblock
8075 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1808
8076 msgid ""
8077 "This returns the product name of the inspected operating system.  The "
8078 "product name is generally some freeform string which can be displayed to the "
8079 "user, but should not be parsed by programs."
8080 msgstr ""
8081
8082 # type: textblock
8083 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1813
8084 msgid ""
8085 "If the product name could not be determined, then the string C<unknown> is "
8086 "returned."
8087 msgstr ""
8088
8089 # type: =head2
8090 #: ../src/guestfs-actions.pod:2423
8091 msgid "guestfs_inspect_get_type"
8092 msgstr ""
8093
8094 # type: verbatim
8095 #: ../src/guestfs-actions.pod:2425
8096 #, no-wrap
8097 msgid ""
8098 " char *\n"
8099 " guestfs_inspect_get_type (guestfs_h *g,\n"
8100 "                           const char *root);\n"
8101 "\n"
8102 msgstr ""
8103
8104 # type: textblock
8105 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1825
8106 msgid ""
8107 "This returns the type of the inspected operating system.  Currently defined "
8108 "types are:"
8109 msgstr ""
8110
8111 # type: =item
8112 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1830
8113 msgid "\"linux\""
8114 msgstr ""
8115
8116 # type: textblock
8117 #: ../src/guestfs-actions.pod:2439 ../fish/guestfish-actions.pod:1832
8118 msgid "Any Linux-based operating system."
8119 msgstr ""
8120
8121 # type: textblock
8122 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1836
8123 msgid "Any Microsoft Windows operating system."
8124 msgstr ""
8125
8126 # type: textblock
8127 #: ../src/guestfs-actions.pod:2447 ../fish/guestfish-actions.pod:1840
8128 msgid "The operating system type could not be determined."
8129 msgstr ""
8130
8131 # type: =head2
8132 #: ../src/guestfs-actions.pod:2459
8133 msgid "guestfs_inspect_get_windows_systemroot"
8134 msgstr ""
8135
8136 # type: verbatim
8137 #: ../src/guestfs-actions.pod:2461
8138 #, no-wrap
8139 msgid ""
8140 " char *\n"
8141 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8142 "                                         const char *root);\n"
8143 "\n"
8144 msgstr ""
8145
8146 # type: textblock
8147 #: ../src/guestfs-actions.pod:2468 ../fish/guestfish-actions.pod:1856
8148 msgid ""
8149 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8150 "is a directory path such as C</WINDOWS>."
8151 msgstr ""
8152
8153 # type: textblock
8154 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1859
8155 msgid ""
8156 "This call assumes that the guest is Windows and that the systemroot could be "
8157 "determined by inspection.  If this is not the case then an error is "
8158 "returned."
8159 msgstr ""
8160
8161 # type: =head2
8162 #: ../src/guestfs-actions.pod:2480
8163 msgid "guestfs_inspect_os"
8164 msgstr ""
8165
8166 # type: verbatim
8167 #: ../src/guestfs-actions.pod:2482
8168 #, no-wrap
8169 msgid ""
8170 " char **\n"
8171 " guestfs_inspect_os (guestfs_h *g);\n"
8172 "\n"
8173 msgstr ""
8174
8175 # type: textblock
8176 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1869
8177 msgid ""
8178 "This function uses other libguestfs functions and certain heuristics to "
8179 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8180 "for operating systems."
8181 msgstr ""
8182
8183 # type: textblock
8184 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1873
8185 msgid "The list returned is empty if no operating systems were found."
8186 msgstr ""
8187
8188 # type: textblock
8189 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1875
8190 msgid ""
8191 "If one operating system was found, then this returns a list with a single "
8192 "element, which is the name of the root filesystem of this operating system.  "
8193 "It is also possible for this function to return a list containing more than "
8194 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8195 "element being the root filesystem of one of the operating systems."
8196 msgstr ""
8197
8198 # type: textblock
8199 #: ../src/guestfs-actions.pod:2498
8200 msgid ""
8201 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8202 "functions in order to query further information about each operating system, "
8203 "such as the name and version."
8204 msgstr ""
8205
8206 # type: textblock
8207 #: ../src/guestfs-actions.pod:2503
8208 msgid ""
8209 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8210 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8211 "the contents.  This should be called with no disks currently mounted.  The "
8212 "function may also use Augeas, so any existing Augeas handle will be closed."
8213 msgstr ""
8214
8215 # type: textblock
8216 #: ../src/guestfs-actions.pod:2509 ../fish/guestfish-actions.pod:1893
8217 msgid ""
8218 "This function cannot decrypt encrypted disks.  The caller must do that first "
8219 "(supplying the necessary keys) if the disk is encrypted."
8220 msgstr ""
8221
8222 # type: textblock
8223 #: ../src/guestfs-actions.pod:2515 ../src/guestfs-actions.pod:2737 ../src/guestfs-actions.pod:2795
8224 msgid "See also C<guestfs_list_filesystems>."
8225 msgstr ""
8226
8227 # type: =head2
8228 #: ../src/guestfs-actions.pod:2521
8229 msgid "guestfs_is_blockdev"
8230 msgstr ""
8231
8232 # type: verbatim
8233 #: ../src/guestfs-actions.pod:2523
8234 #, no-wrap
8235 msgid ""
8236 " int\n"
8237 " guestfs_is_blockdev (guestfs_h *g,\n"
8238 "                      const char *path);\n"
8239 "\n"
8240 msgstr ""
8241
8242 # type: textblock
8243 #: ../src/guestfs-actions.pod:2527 ../fish/guestfish-actions.pod:1905
8244 msgid ""
8245 "This returns C<true> if and only if there is a block device with the given "
8246 "C<path> name."
8247 msgstr ""
8248
8249 # type: textblock
8250 #: ../src/guestfs-actions.pod:2530 ../src/guestfs-actions.pod:2555 ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2594 ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:2669
8251 msgid "See also C<guestfs_stat>."
8252 msgstr ""
8253
8254 # type: =head2
8255 #: ../src/guestfs-actions.pod:2534
8256 msgid "guestfs_is_busy"
8257 msgstr ""
8258
8259 # type: verbatim
8260 #: ../src/guestfs-actions.pod:2536
8261 #, no-wrap
8262 msgid ""
8263 " int\n"
8264 " guestfs_is_busy (guestfs_h *g);\n"
8265 "\n"
8266 msgstr ""
8267
8268 # type: textblock
8269 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1914
8270 msgid ""
8271 "This returns true iff this handle is busy processing a command (in the "
8272 "C<BUSY> state)."
8273 msgstr ""
8274
8275 # type: =head2
8276 #: ../src/guestfs-actions.pod:2546
8277 msgid "guestfs_is_chardev"
8278 msgstr ""
8279
8280 # type: verbatim
8281 #: ../src/guestfs-actions.pod:2548
8282 #, no-wrap
8283 msgid ""
8284 " int\n"
8285 " guestfs_is_chardev (guestfs_h *g,\n"
8286 "                     const char *path);\n"
8287 "\n"
8288 msgstr ""
8289
8290 # type: textblock
8291 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1923
8292 msgid ""
8293 "This returns C<true> if and only if there is a character device with the "
8294 "given C<path> name."
8295 msgstr ""
8296
8297 # type: =head2
8298 #: ../src/guestfs-actions.pod:2559
8299 msgid "guestfs_is_config"
8300 msgstr ""
8301
8302 # type: verbatim
8303 #: ../src/guestfs-actions.pod:2561
8304 #, no-wrap
8305 msgid ""
8306 " int\n"
8307 " guestfs_is_config (guestfs_h *g);\n"
8308 "\n"
8309 msgstr ""
8310
8311 # type: textblock
8312 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1932
8313 msgid ""
8314 "This returns true iff this handle is being configured (in the C<CONFIG> "
8315 "state)."
8316 msgstr ""
8317
8318 # type: =head2
8319 #: ../src/guestfs-actions.pod:2571
8320 msgid "guestfs_is_dir"
8321 msgstr ""
8322
8323 # type: verbatim
8324 #: ../src/guestfs-actions.pod:2573
8325 #, no-wrap
8326 msgid ""
8327 " int\n"
8328 " guestfs_is_dir (guestfs_h *g,\n"
8329 "                 const char *path);\n"
8330 "\n"
8331 msgstr ""
8332
8333 # type: textblock
8334 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1941
8335 msgid ""
8336 "This returns C<true> if and only if there is a directory with the given "
8337 "C<path> name.  Note that it returns false for other objects like files."
8338 msgstr ""
8339
8340 # type: =head2
8341 #: ../src/guestfs-actions.pod:2585
8342 msgid "guestfs_is_fifo"
8343 msgstr ""
8344
8345 # type: verbatim
8346 #: ../src/guestfs-actions.pod:2587
8347 #, no-wrap
8348 msgid ""
8349 " int\n"
8350 " guestfs_is_fifo (guestfs_h *g,\n"
8351 "                  const char *path);\n"
8352 "\n"
8353 msgstr ""
8354
8355 # type: textblock
8356 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1951
8357 msgid ""
8358 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8359 "given C<path> name."
8360 msgstr ""
8361
8362 # type: =head2
8363 #: ../src/guestfs-actions.pod:2598
8364 msgid "guestfs_is_file"
8365 msgstr ""
8366
8367 # type: verbatim
8368 #: ../src/guestfs-actions.pod:2600
8369 #, no-wrap
8370 msgid ""
8371 " int\n"
8372 " guestfs_is_file (guestfs_h *g,\n"
8373 "                  const char *path);\n"
8374 "\n"
8375 msgstr ""
8376
8377 # type: textblock
8378 #: ../src/guestfs-actions.pod:2604 ../fish/guestfish-actions.pod:1960
8379 msgid ""
8380 "This returns C<true> if and only if there is a regular file with the given "
8381 "C<path> name.  Note that it returns false for other objects like "
8382 "directories."
8383 msgstr ""
8384
8385 # type: =head2
8386 #: ../src/guestfs-actions.pod:2612
8387 msgid "guestfs_is_launching"
8388 msgstr ""
8389
8390 # type: verbatim
8391 #: ../src/guestfs-actions.pod:2614
8392 #, no-wrap
8393 msgid ""
8394 " int\n"
8395 " guestfs_is_launching (guestfs_h *g);\n"
8396 "\n"
8397 msgstr ""
8398
8399 # type: textblock
8400 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:1970
8401 msgid ""
8402 "This returns true iff this handle is launching the subprocess (in the "
8403 "C<LAUNCHING> state)."
8404 msgstr ""
8405
8406 # type: =head2
8407 #: ../src/guestfs-actions.pod:2624
8408 msgid "guestfs_is_lv"
8409 msgstr ""
8410
8411 # type: verbatim
8412 #: ../src/guestfs-actions.pod:2626
8413 #, no-wrap
8414 msgid ""
8415 " int\n"
8416 " guestfs_is_lv (guestfs_h *g,\n"
8417 "                const char *device);\n"
8418 "\n"
8419 msgstr ""
8420
8421 # type: textblock
8422 #: ../src/guestfs-actions.pod:2630 ../fish/guestfish-actions.pod:1979
8423 msgid ""
8424 "This command tests whether C<device> is a logical volume, and returns true "
8425 "iff this is the case."
8426 msgstr ""
8427
8428 # type: =head2
8429 #: ../src/guestfs-actions.pod:2635
8430 msgid "guestfs_is_ready"
8431 msgstr ""
8432
8433 # type: verbatim
8434 #: ../src/guestfs-actions.pod:2637
8435 #, no-wrap
8436 msgid ""
8437 " int\n"
8438 " guestfs_is_ready (guestfs_h *g);\n"
8439 "\n"
8440 msgstr ""
8441
8442 # type: textblock
8443 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:1986
8444 msgid ""
8445 "This returns true iff this handle is ready to accept commands (in the "
8446 "C<READY> state)."
8447 msgstr ""
8448
8449 # type: =head2
8450 #: ../src/guestfs-actions.pod:2647
8451 msgid "guestfs_is_socket"
8452 msgstr ""
8453
8454 # type: verbatim
8455 #: ../src/guestfs-actions.pod:2649
8456 #, no-wrap
8457 msgid ""
8458 " int\n"
8459 " guestfs_is_socket (guestfs_h *g,\n"
8460 "                    const char *path);\n"
8461 "\n"
8462 msgstr ""
8463
8464 # type: textblock
8465 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1995
8466 msgid ""
8467 "This returns C<true> if and only if there is a Unix domain socket with the "
8468 "given C<path> name."
8469 msgstr ""
8470
8471 # type: =head2
8472 #: ../src/guestfs-actions.pod:2660
8473 msgid "guestfs_is_symlink"
8474 msgstr ""
8475
8476 # type: verbatim
8477 #: ../src/guestfs-actions.pod:2662
8478 #, no-wrap
8479 msgid ""
8480 " int\n"
8481 " guestfs_is_symlink (guestfs_h *g,\n"
8482 "                     const char *path);\n"
8483 "\n"
8484 msgstr ""
8485
8486 # type: textblock
8487 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:2004
8488 msgid ""
8489 "This returns C<true> if and only if there is a symbolic link with the given "
8490 "C<path> name."
8491 msgstr ""
8492
8493 # type: =head2
8494 #: ../src/guestfs-actions.pod:2673
8495 msgid "guestfs_kill_subprocess"
8496 msgstr ""
8497
8498 # type: verbatim
8499 #: ../src/guestfs-actions.pod:2675
8500 #, no-wrap
8501 msgid ""
8502 " int\n"
8503 " guestfs_kill_subprocess (guestfs_h *g);\n"
8504 "\n"
8505 msgstr ""
8506
8507 # type: textblock
8508 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:2013
8509 msgid "This kills the qemu subprocess.  You should never need to call this."
8510 msgstr ""
8511
8512 # type: =head2
8513 #: ../src/guestfs-actions.pod:2682
8514 msgid "guestfs_launch"
8515 msgstr ""
8516
8517 # type: verbatim
8518 #: ../src/guestfs-actions.pod:2684
8519 #, no-wrap
8520 msgid ""
8521 " int\n"
8522 " guestfs_launch (guestfs_h *g);\n"
8523 "\n"
8524 msgstr ""
8525
8526 # type: textblock
8527 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:2021
8528 msgid ""
8529 "Internally libguestfs is implemented by running a virtual machine using "
8530 "L<qemu(1)>."
8531 msgstr ""
8532
8533 # type: textblock
8534 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:2024
8535 msgid ""
8536 "You should call this after configuring the handle (eg. adding drives) but "
8537 "before performing any actions."
8538 msgstr ""
8539
8540 # type: =head2
8541 #: ../src/guestfs-actions.pod:2695
8542 msgid "guestfs_lchown"
8543 msgstr ""
8544
8545 # type: verbatim
8546 #: ../src/guestfs-actions.pod:2697
8547 #, no-wrap
8548 msgid ""
8549 " int\n"
8550 " guestfs_lchown (guestfs_h *g,\n"
8551 "                 int owner,\n"
8552 "                 int group,\n"
8553 "                 const char *path);\n"
8554 "\n"
8555 msgstr ""
8556
8557 # type: textblock
8558 #: ../src/guestfs-actions.pod:2703
8559 msgid ""
8560 "Change the file owner to C<owner> and group to C<group>.  This is like "
8561 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8562 "changed, not the target."
8563 msgstr ""
8564
8565 # type: =head2
8566 #: ../src/guestfs-actions.pod:2713
8567 msgid "guestfs_lgetxattrs"
8568 msgstr ""
8569
8570 # type: verbatim
8571 #: ../src/guestfs-actions.pod:2715
8572 #, no-wrap
8573 msgid ""
8574 " struct guestfs_xattr_list *\n"
8575 " guestfs_lgetxattrs (guestfs_h *g,\n"
8576 "                     const char *path);\n"
8577 "\n"
8578 msgstr ""
8579
8580 # type: textblock
8581 #: ../src/guestfs-actions.pod:2719
8582 msgid ""
8583 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8584 "then it returns the extended attributes of the link itself."
8585 msgstr ""
8586
8587 # type: =head2
8588 #: ../src/guestfs-actions.pod:2728
8589 msgid "guestfs_list_devices"
8590 msgstr ""
8591
8592 # type: verbatim
8593 #: ../src/guestfs-actions.pod:2730
8594 #, no-wrap
8595 msgid ""
8596 " char **\n"
8597 " guestfs_list_devices (guestfs_h *g);\n"
8598 "\n"
8599 msgstr ""
8600
8601 # type: textblock
8602 #: ../src/guestfs-actions.pod:2733 ../fish/guestfish-actions.pod:2051
8603 msgid "List all the block devices."
8604 msgstr ""
8605
8606 # type: textblock
8607 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:2053
8608 msgid "The full block device names are returned, eg. C</dev/sda>."
8609 msgstr ""
8610
8611 # type: =head2
8612 #: ../src/guestfs-actions.pod:2743
8613 msgid "guestfs_list_filesystems"
8614 msgstr ""
8615
8616 # type: verbatim
8617 #: ../src/guestfs-actions.pod:2745
8618 #, no-wrap
8619 msgid ""
8620 " char **\n"
8621 " guestfs_list_filesystems (guestfs_h *g);\n"
8622 "\n"
8623 msgstr ""
8624
8625 # type: textblock
8626 #: ../src/guestfs-actions.pod:2748 ../fish/guestfish-actions.pod:2061
8627 msgid ""
8628 "This inspection command looks for filesystems on partitions, block devices "
8629 "and logical volumes, returning a list of devices containing filesystems and "
8630 "their type."
8631 msgstr ""
8632
8633 # type: textblock
8634 #: ../src/guestfs-actions.pod:2752 ../fish/guestfish-actions.pod:2065
8635 msgid ""
8636 "The return value is a hash, where the keys are the devices containing "
8637 "filesystems, and the values are the filesystem types.  For example:"
8638 msgstr ""
8639
8640 # type: verbatim
8641 #: ../src/guestfs-actions.pod:2756 ../fish/guestfish-actions.pod:2069
8642 #, no-wrap
8643 msgid ""
8644 " \"/dev/sda1\" => \"ntfs\"\n"
8645 " \"/dev/sda2\" => \"ext2\"\n"
8646 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8647 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8648 "\n"
8649 msgstr ""
8650
8651 # type: textblock
8652 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:2074
8653 msgid ""
8654 "The value can have the special value \"unknown\", meaning the content of the "
8655 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8656 msgstr ""
8657
8658 # type: textblock
8659 #: ../src/guestfs-actions.pod:2765
8660 msgid ""
8661 "This command runs other libguestfs commands, which might include "
8662 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8663 "soon after launch and only when nothing is mounted."
8664 msgstr ""
8665
8666 # type: textblock
8667 #: ../src/guestfs-actions.pod:2769
8668 msgid ""
8669 "Not all of the filesystems returned will be mountable.  In particular, swap "
8670 "partitions are returned in the list.  Also this command does not check that "
8671 "each filesystem found is valid and mountable, and some filesystems might be "
8672 "mountable but require special options.  Filesystems may not all belong to a "
8673 "single logical operating system (use C<guestfs_inspect_os> to look for "
8674 "OSes)."
8675 msgstr ""
8676
8677 # type: =head2
8678 #: ../src/guestfs-actions.pod:2783
8679 msgid "guestfs_list_partitions"
8680 msgstr ""
8681
8682 # type: verbatim
8683 #: ../src/guestfs-actions.pod:2785
8684 #, no-wrap
8685 msgid ""
8686 " char **\n"
8687 " guestfs_list_partitions (guestfs_h *g);\n"
8688 "\n"
8689 msgstr ""
8690
8691 # type: textblock
8692 #: ../src/guestfs-actions.pod:2788 ../fish/guestfish-actions.pod:2094
8693 msgid "List all the partitions detected on all block devices."
8694 msgstr ""
8695
8696 # type: textblock
8697 #: ../src/guestfs-actions.pod:2790 ../fish/guestfish-actions.pod:2096
8698 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8699 msgstr ""
8700
8701 # type: textblock
8702 #: ../src/guestfs-actions.pod:2792
8703 msgid ""
8704 "This does not return logical volumes.  For that you will need to call "
8705 "C<guestfs_lvs>."
8706 msgstr ""
8707
8708 # type: =head2
8709 #: ../src/guestfs-actions.pod:2801
8710 msgid "guestfs_ll"
8711 msgstr ""
8712
8713 # type: verbatim
8714 #: ../src/guestfs-actions.pod:2803
8715 #, no-wrap
8716 msgid ""
8717 " char *\n"
8718 " guestfs_ll (guestfs_h *g,\n"
8719 "             const char *directory);\n"
8720 "\n"
8721 msgstr ""
8722
8723 # type: textblock
8724 #: ../src/guestfs-actions.pod:2807 ../fish/guestfish-actions.pod:2107
8725 msgid ""
8726 "List the files in C<directory> (relative to the root directory, there is no "
8727 "cwd) in the format of 'ls -la'."
8728 msgstr ""
8729
8730 # type: textblock
8731 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:2110
8732 msgid ""
8733 "This command is mostly useful for interactive sessions.  It is I<not> "
8734 "intended that you try to parse the output string."
8735 msgstr ""
8736
8737 # type: =head2
8738 #: ../src/guestfs-actions.pod:2816
8739 msgid "guestfs_ln"
8740 msgstr ""
8741
8742 # type: verbatim
8743 #: ../src/guestfs-actions.pod:2818
8744 #, no-wrap
8745 msgid ""
8746 " int\n"
8747 " guestfs_ln (guestfs_h *g,\n"
8748 "             const char *target,\n"
8749 "             const char *linkname);\n"
8750 "\n"
8751 msgstr ""
8752
8753 # type: textblock
8754 #: ../src/guestfs-actions.pod:2823 ../fish/guestfish-actions.pod:2117
8755 msgid "This command creates a hard link using the C<ln> command."
8756 msgstr ""
8757
8758 # type: =head2
8759 #: ../src/guestfs-actions.pod:2827
8760 msgid "guestfs_ln_f"
8761 msgstr ""
8762
8763 # type: verbatim
8764 #: ../src/guestfs-actions.pod:2829
8765 #, no-wrap
8766 msgid ""
8767 " int\n"
8768 " guestfs_ln_f (guestfs_h *g,\n"
8769 "               const char *target,\n"
8770 "               const char *linkname);\n"
8771 "\n"
8772 msgstr ""
8773
8774 # type: textblock
8775 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:2123
8776 msgid ""
8777 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
8778 "option removes the link (C<linkname>) if it exists already."
8779 msgstr ""
8780
8781 # type: =head2
8782 #: ../src/guestfs-actions.pod:2839
8783 msgid "guestfs_ln_s"
8784 msgstr ""
8785
8786 # type: verbatim
8787 #: ../src/guestfs-actions.pod:2841
8788 #, no-wrap
8789 msgid ""
8790 " int\n"
8791 " guestfs_ln_s (guestfs_h *g,\n"
8792 "               const char *target,\n"
8793 "               const char *linkname);\n"
8794 "\n"
8795 msgstr ""
8796
8797 # type: textblock
8798 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:2130
8799 msgid "This command creates a symbolic link using the C<ln -s> command."
8800 msgstr ""
8801
8802 # type: =head2
8803 #: ../src/guestfs-actions.pod:2850
8804 msgid "guestfs_ln_sf"
8805 msgstr ""
8806
8807 # type: verbatim
8808 #: ../src/guestfs-actions.pod:2852
8809 #, no-wrap
8810 msgid ""
8811 " int\n"
8812 " guestfs_ln_sf (guestfs_h *g,\n"
8813 "                const char *target,\n"
8814 "                const char *linkname);\n"
8815 "\n"
8816 msgstr ""
8817
8818 # type: textblock
8819 #: ../src/guestfs-actions.pod:2857 ../fish/guestfish-actions.pod:2136
8820 msgid ""
8821 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
8822 "option removes the link (C<linkname>) if it exists already."
8823 msgstr ""
8824
8825 # type: =head2
8826 #: ../src/guestfs-actions.pod:2862
8827 msgid "guestfs_lremovexattr"
8828 msgstr ""
8829
8830 # type: verbatim
8831 #: ../src/guestfs-actions.pod:2864
8832 #, no-wrap
8833 msgid ""
8834 " int\n"
8835 " guestfs_lremovexattr (guestfs_h *g,\n"
8836 "                       const char *xattr,\n"
8837 "                       const char *path);\n"
8838 "\n"
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2869
8843 msgid ""
8844 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
8845 "link, then it removes an extended attribute of the link itself."
8846 msgstr ""
8847
8848 # type: =head2
8849 #: ../src/guestfs-actions.pod:2875
8850 msgid "guestfs_ls"
8851 msgstr ""
8852
8853 # type: verbatim
8854 #: ../src/guestfs-actions.pod:2877
8855 #, no-wrap
8856 msgid ""
8857 " char **\n"
8858 " guestfs_ls (guestfs_h *g,\n"
8859 "             const char *directory);\n"
8860 "\n"
8861 msgstr ""
8862
8863 # type: textblock
8864 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:2151
8865 msgid ""
8866 "List the files in C<directory> (relative to the root directory, there is no "
8867 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
8868 "shown."
8869 msgstr ""
8870
8871 # type: textblock
8872 #: ../src/guestfs-actions.pod:2885
8873 msgid ""
8874 "This command is mostly useful for interactive sessions.  Programs should "
8875 "probably use C<guestfs_readdir> instead."
8876 msgstr ""
8877
8878 # type: =head2
8879 #: ../src/guestfs-actions.pod:2892
8880 msgid "guestfs_lsetxattr"
8881 msgstr ""
8882
8883 # type: verbatim
8884 #: ../src/guestfs-actions.pod:2894
8885 #, no-wrap
8886 msgid ""
8887 " int\n"
8888 " guestfs_lsetxattr (guestfs_h *g,\n"
8889 "                    const char *xattr,\n"
8890 "                    const char *val,\n"
8891 "                    int vallen,\n"
8892 "                    const char *path);\n"
8893 "\n"
8894 msgstr ""
8895
8896 # type: textblock
8897 #: ../src/guestfs-actions.pod:2901
8898 msgid ""
8899 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
8900 "then it sets an extended attribute of the link itself."
8901 msgstr ""
8902
8903 # type: =head2
8904 #: ../src/guestfs-actions.pod:2907
8905 msgid "guestfs_lstat"
8906 msgstr ""
8907
8908 # type: verbatim
8909 #: ../src/guestfs-actions.pod:2909
8910 #, no-wrap
8911 msgid ""
8912 " struct guestfs_stat *\n"
8913 " guestfs_lstat (guestfs_h *g,\n"
8914 "                const char *path);\n"
8915 "\n"
8916 msgstr ""
8917
8918 # type: textblock
8919 #: ../src/guestfs-actions.pod:2913 ../src/guestfs-actions.pod:5108 ../fish/guestfish-actions.pod:2170 ../fish/guestfish-actions.pod:3752
8920 msgid "Returns file information for the given C<path>."
8921 msgstr ""
8922
8923 # type: textblock
8924 #: ../src/guestfs-actions.pod:2915
8925 msgid ""
8926 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
8927 "link, then the link is stat-ed, not the file it refers to."
8928 msgstr ""
8929
8930 # type: textblock
8931 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2176
8932 msgid "This is the same as the C<lstat(2)> system call."
8933 msgstr ""
8934
8935 # type: textblock
8936 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:5112
8937 msgid ""
8938 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
8939 "error.  I<The caller must call C<guestfs_free_stat> after use>."
8940 msgstr ""
8941
8942 # type: =head2
8943 #: ../src/guestfs-actions.pod:2925
8944 msgid "guestfs_lstatlist"
8945 msgstr ""
8946
8947 # type: verbatim
8948 #: ../src/guestfs-actions.pod:2927
8949 #, no-wrap
8950 msgid ""
8951 " struct guestfs_stat_list *\n"
8952 " guestfs_lstatlist (guestfs_h *g,\n"
8953 "                    const char *path,\n"
8954 "                    char *const *names);\n"
8955 "\n"
8956 msgstr ""
8957
8958 # type: textblock
8959 #: ../src/guestfs-actions.pod:2932
8960 msgid ""
8961 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
8962 "files, where all files are in the directory C<path>.  C<names> is the list "
8963 "of files from this directory."
8964 msgstr ""
8965
8966 # type: textblock
8967 #: ../src/guestfs-actions.pod:2936 ../fish/guestfish-actions.pod:2186
8968 msgid ""
8969 "On return you get a list of stat structs, with a one-to-one correspondence "
8970 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
8971 "then the C<ino> field of that structure is set to C<-1>."
8972 msgstr ""
8973
8974 # type: textblock
8975 #: ../src/guestfs-actions.pod:2941
8976 msgid ""
8977 "This call is intended for programs that want to efficiently list a directory "
8978 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
8979 "for a similarly efficient call for getting extended attributes.  Very long "
8980 "directory listings might cause the protocol message size to be exceeded, "
8981 "causing this call to fail.  The caller must split up such requests into "
8982 "smaller groups of names."
8983 msgstr ""
8984
8985 # type: textblock
8986 #: ../src/guestfs-actions.pod:2949
8987 msgid ""
8988 "This function returns a C<struct guestfs_stat_list *> (see "
8989 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
8990 "must call C<guestfs_free_stat_list> after use>."
8991 msgstr ""
8992
8993 # type: =head2
8994 #: ../src/guestfs-actions.pod:2954
8995 msgid "guestfs_luks_add_key"
8996 msgstr ""
8997
8998 # type: verbatim
8999 #: ../src/guestfs-actions.pod:2956
9000 #, no-wrap
9001 msgid ""
9002 " int\n"
9003 " guestfs_luks_add_key (guestfs_h *g,\n"
9004 "                       const char *device,\n"
9005 "                       const char *key,\n"
9006 "                       const char *newkey,\n"
9007 "                       int keyslot);\n"
9008 "\n"
9009 msgstr ""
9010
9011 # type: textblock
9012 #: ../src/guestfs-actions.pod:2963 ../fish/guestfish-actions.pod:2203
9013 msgid ""
9014 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9015 "existing key, and is used to access the device.  C<newkey> is the new key to "
9016 "add.  C<keyslot> is the key slot that will be replaced."
9017 msgstr ""
9018
9019 # type: textblock
9020 #: ../src/guestfs-actions.pod:2968
9021 msgid ""
9022 "Note that if C<keyslot> already contains a key, then this command will "
9023 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9024 msgstr ""
9025
9026 # type: textblock
9027 #: ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3010 ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3049 ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3096
9028 msgid ""
9029 "This function takes a key or passphrase parameter which could contain "
9030 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9031 "information."
9032 msgstr ""
9033
9034 # type: =head2
9035 #: ../src/guestfs-actions.pod:2978
9036 msgid "guestfs_luks_close"
9037 msgstr ""
9038
9039 # type: verbatim
9040 #: ../src/guestfs-actions.pod:2980
9041 #, no-wrap
9042 msgid ""
9043 " int\n"
9044 " guestfs_luks_close (guestfs_h *g,\n"
9045 "                     const char *device);\n"
9046 "\n"
9047 msgstr ""
9048
9049 # type: textblock
9050 #: ../src/guestfs-actions.pod:2984
9051 msgid ""
9052 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9053 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9054 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9055 "underlying block device."
9056 msgstr ""
9057
9058 # type: =head2
9059 #: ../src/guestfs-actions.pod:2992
9060 msgid "guestfs_luks_format"
9061 msgstr ""
9062
9063 # type: verbatim
9064 #: ../src/guestfs-actions.pod:2994
9065 #, no-wrap
9066 msgid ""
9067 " int\n"
9068 " guestfs_luks_format (guestfs_h *g,\n"
9069 "                      const char *device,\n"
9070 "                      const char *key,\n"
9071 "                      int keyslot);\n"
9072 "\n"
9073 msgstr ""
9074
9075 # type: textblock
9076 #: ../src/guestfs-actions.pod:3000 ../fish/guestfish-actions.pod:2229
9077 msgid ""
9078 "This command erases existing data on C<device> and formats the device as a "
9079 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9080 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9081 msgstr ""
9082
9083 # type: textblock
9084 #: ../src/guestfs-actions.pod:3007 ../src/guestfs-actions.pod:3028 ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:2237 ../fish/guestfish-actions.pod:2250 ../fish/guestfish-actions.pod:2334 ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3651 ../fish/guestfish-actions.pod:3667 ../fish/guestfish-actions.pod:3682 ../fish/guestfish-actions.pod:4397
9085 msgid ""
9086 "B<This command is dangerous.  Without careful use you can easily destroy all "
9087 "your data>."
9088 msgstr ""
9089
9090 # type: =head2
9091 #: ../src/guestfs-actions.pod:3014
9092 msgid "guestfs_luks_format_cipher"
9093 msgstr ""
9094
9095 # type: verbatim
9096 #: ../src/guestfs-actions.pod:3016
9097 #, no-wrap
9098 msgid ""
9099 " int\n"
9100 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9101 "                             const char *device,\n"
9102 "                             const char *key,\n"
9103 "                             int keyslot,\n"
9104 "                             const char *cipher);\n"
9105 "\n"
9106 msgstr ""
9107
9108 # type: textblock
9109 #: ../src/guestfs-actions.pod:3023
9110 msgid ""
9111 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9112 "set the C<cipher> used."
9113 msgstr ""
9114
9115 # type: =head2
9116 #: ../src/guestfs-actions.pod:3035
9117 msgid "guestfs_luks_kill_slot"
9118 msgstr ""
9119
9120 # type: verbatim
9121 #: ../src/guestfs-actions.pod:3037
9122 #, no-wrap
9123 msgid ""
9124 " int\n"
9125 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9126 "                         const char *device,\n"
9127 "                         const char *key,\n"
9128 "                         int keyslot);\n"
9129 "\n"
9130 msgstr ""
9131
9132 # type: textblock
9133 #: ../src/guestfs-actions.pod:3043 ../fish/guestfish-actions.pod:2257
9134 msgid ""
9135 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9136 "device C<device>.  C<key> must be one of the I<other> keys."
9137 msgstr ""
9138
9139 # type: =head2
9140 #: ../src/guestfs-actions.pod:3053
9141 msgid "guestfs_luks_open"
9142 msgstr ""
9143
9144 # type: verbatim
9145 #: ../src/guestfs-actions.pod:3055
9146 #, no-wrap
9147 msgid ""
9148 " int\n"
9149 " guestfs_luks_open (guestfs_h *g,\n"
9150 "                    const char *device,\n"
9151 "                    const char *key,\n"
9152 "                    const char *mapname);\n"
9153 "\n"
9154 msgstr ""
9155
9156 # type: textblock
9157 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2268
9158 msgid ""
9159 "This command opens a block device which has been encrypted according to the "
9160 "Linux Unified Key Setup (LUKS) standard."
9161 msgstr ""
9162
9163 # type: textblock
9164 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2271
9165 msgid "C<device> is the encrypted block device or partition."
9166 msgstr ""
9167
9168 # type: textblock
9169 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2273
9170 msgid ""
9171 "The caller must supply one of the keys associated with the LUKS block "
9172 "device, in the C<key> parameter."
9173 msgstr ""
9174
9175 # type: textblock
9176 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2276
9177 msgid ""
9178 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9179 "writes to this block device are decrypted from and encrypted to the "
9180 "underlying C<device> respectively."
9181 msgstr ""
9182
9183 # type: textblock
9184 #: ../src/guestfs-actions.pod:3073
9185 msgid ""
9186 "If this block device contains LVM volume groups, then calling "
9187 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9188 "visible."
9189 msgstr ""
9190
9191 # type: =head2
9192 #: ../src/guestfs-actions.pod:3083
9193 msgid "guestfs_luks_open_ro"
9194 msgstr ""
9195
9196 # type: verbatim
9197 #: ../src/guestfs-actions.pod:3085
9198 #, no-wrap
9199 msgid ""
9200 " int\n"
9201 " guestfs_luks_open_ro (guestfs_h *g,\n"
9202 "                       const char *device,\n"
9203 "                       const char *key,\n"
9204 "                       const char *mapname);\n"
9205 "\n"
9206 msgstr ""
9207
9208 # type: textblock
9209 #: ../src/guestfs-actions.pod:3091
9210 msgid ""
9211 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9212 "created."
9213 msgstr ""
9214
9215 # type: =head2
9216 #: ../src/guestfs-actions.pod:3100
9217 msgid "guestfs_lvcreate"
9218 msgstr ""
9219
9220 # type: verbatim
9221 #: ../src/guestfs-actions.pod:3102
9222 #, no-wrap
9223 msgid ""
9224 " int\n"
9225 " guestfs_lvcreate (guestfs_h *g,\n"
9226 "                   const char *logvol,\n"
9227 "                   const char *volgroup,\n"
9228 "                   int mbytes);\n"
9229 "\n"
9230 msgstr ""
9231
9232 # type: textblock
9233 #: ../src/guestfs-actions.pod:3108 ../fish/guestfish-actions.pod:2301
9234 msgid ""
9235 "This creates an LVM logical volume called C<logvol> on the volume group "
9236 "C<volgroup>, with C<size> megabytes."
9237 msgstr ""
9238
9239 # type: =head2
9240 #: ../src/guestfs-actions.pod:3113
9241 msgid "guestfs_lvm_canonical_lv_name"
9242 msgstr ""
9243
9244 # type: verbatim
9245 #: ../src/guestfs-actions.pod:3115
9246 #, no-wrap
9247 msgid ""
9248 " char *\n"
9249 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9250 "                                const char *lvname);\n"
9251 "\n"
9252 msgstr ""
9253
9254 # type: textblock
9255 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2308
9256 msgid ""
9257 "This converts alternative naming schemes for LVs that you might find to the "
9258 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9259 "C</dev/VG/LV>."
9260 msgstr ""
9261
9262 # type: textblock
9263 #: ../src/guestfs-actions.pod:3123 ../fish/guestfish-actions.pod:2312
9264 msgid ""
9265 "This command returns an error if the C<lvname> parameter does not refer to a "
9266 "logical volume."
9267 msgstr ""
9268
9269 # type: textblock
9270 #: ../src/guestfs-actions.pod:3126
9271 msgid "See also C<guestfs_is_lv>."
9272 msgstr ""
9273
9274 # type: =head2
9275 #: ../src/guestfs-actions.pod:3131
9276 msgid "guestfs_lvm_clear_filter"
9277 msgstr ""
9278
9279 # type: verbatim
9280 #: ../src/guestfs-actions.pod:3133
9281 #, no-wrap
9282 msgid ""
9283 " int\n"
9284 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
9285 "\n"
9286 msgstr ""
9287
9288 # type: textblock
9289 #: ../src/guestfs-actions.pod:3136
9290 msgid ""
9291 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9292 "see every block device."
9293 msgstr ""
9294
9295 # type: textblock
9296 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2324 ../fish/guestfish-actions.pod:2355
9297 msgid "This command also clears the LVM cache and performs a volume group scan."
9298 msgstr ""
9299
9300 # type: =head2
9301 #: ../src/guestfs-actions.pod:3144
9302 msgid "guestfs_lvm_remove_all"
9303 msgstr ""
9304
9305 # type: verbatim
9306 #: ../src/guestfs-actions.pod:3146
9307 #, no-wrap
9308 msgid ""
9309 " int\n"
9310 " guestfs_lvm_remove_all (guestfs_h *g);\n"
9311 "\n"
9312 msgstr ""
9313
9314 # type: textblock
9315 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2331
9316 msgid ""
9317 "This command removes all LVM logical volumes, volume groups and physical "
9318 "volumes."
9319 msgstr ""
9320
9321 # type: =head2
9322 #: ../src/guestfs-actions.pod:3157
9323 msgid "guestfs_lvm_set_filter"
9324 msgstr ""
9325
9326 # type: verbatim
9327 #: ../src/guestfs-actions.pod:3159
9328 #, no-wrap
9329 msgid ""
9330 " int\n"
9331 " guestfs_lvm_set_filter (guestfs_h *g,\n"
9332 "                         char *const *devices);\n"
9333 "\n"
9334 msgstr ""
9335
9336 # type: textblock
9337 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2341
9338 msgid ""
9339 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9340 "block devices in the list C<devices>, and will ignore all other attached "
9341 "block devices."
9342 msgstr ""
9343
9344 # type: textblock
9345 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2345
9346 msgid ""
9347 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9348 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9349 "there are two types of duplication possible: either cloned PVs/VGs which "
9350 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9351 "same name.  In normal operation you cannot create this situation, but you "
9352 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9353 "inside the LVM metadata."
9354 msgstr ""
9355
9356 # type: textblock
9357 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2358
9358 msgid "You can filter whole block devices or individual partitions."
9359 msgstr ""
9360
9361 # type: textblock
9362 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2360
9363 msgid ""
9364 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9365 "filesystem), even if you are not filtering out that VG."
9366 msgstr ""
9367
9368 # type: =head2
9369 #: ../src/guestfs-actions.pod:3188
9370 msgid "guestfs_lvremove"
9371 msgstr ""
9372
9373 # type: verbatim
9374 #: ../src/guestfs-actions.pod:3190
9375 #, no-wrap
9376 msgid ""
9377 " int\n"
9378 " guestfs_lvremove (guestfs_h *g,\n"
9379 "                   const char *device);\n"
9380 "\n"
9381 msgstr ""
9382
9383 # type: textblock
9384 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2368
9385 msgid ""
9386 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9387 "LV, such as C</dev/VG/LV>."
9388 msgstr ""
9389
9390 # type: textblock
9391 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2371
9392 msgid ""
9393 "You can also remove all LVs in a volume group by specifying the VG name, "
9394 "C</dev/VG>."
9395 msgstr ""
9396
9397 # type: =head2
9398 #: ../src/guestfs-actions.pod:3202
9399 msgid "guestfs_lvrename"
9400 msgstr ""
9401
9402 # type: verbatim
9403 #: ../src/guestfs-actions.pod:3204
9404 #, no-wrap
9405 msgid ""
9406 " int\n"
9407 " guestfs_lvrename (guestfs_h *g,\n"
9408 "                   const char *logvol,\n"
9409 "                   const char *newlogvol);\n"
9410 "\n"
9411 msgstr ""
9412
9413 # type: textblock
9414 #: ../src/guestfs-actions.pod:3209 ../fish/guestfish-actions.pod:2378
9415 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9416 msgstr ""
9417
9418 # type: =head2
9419 #: ../src/guestfs-actions.pod:3213
9420 msgid "guestfs_lvresize"
9421 msgstr ""
9422
9423 # type: verbatim
9424 #: ../src/guestfs-actions.pod:3215
9425 #, no-wrap
9426 msgid ""
9427 " int\n"
9428 " guestfs_lvresize (guestfs_h *g,\n"
9429 "                   const char *device,\n"
9430 "                   int mbytes);\n"
9431 "\n"
9432 msgstr ""
9433
9434 # type: textblock
9435 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2384
9436 msgid ""
9437 "This resizes (expands or shrinks) an existing LVM logical volume to "
9438 "C<mbytes>.  When reducing, data in the reduced part is lost."
9439 msgstr ""
9440
9441 # type: =head2
9442 #: ../src/guestfs-actions.pod:3226
9443 msgid "guestfs_lvresize_free"
9444 msgstr ""
9445
9446 # type: verbatim
9447 #: ../src/guestfs-actions.pod:3228
9448 #, no-wrap
9449 msgid ""
9450 " int\n"
9451 " guestfs_lvresize_free (guestfs_h *g,\n"
9452 "                        const char *lv,\n"
9453 "                        int percent);\n"
9454 "\n"
9455 msgstr ""
9456
9457 # type: textblock
9458 #: ../src/guestfs-actions.pod:3233 ../fish/guestfish-actions.pod:2392
9459 msgid ""
9460 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9461 "remaining free space in the volume group.  Commonly you would call this with "
9462 "pc = 100 which expands the logical volume as much as possible, using all "
9463 "remaining free space in the volume group."
9464 msgstr ""
9465
9466 # type: =head2
9467 #: ../src/guestfs-actions.pod:3241
9468 msgid "guestfs_lvs"
9469 msgstr ""
9470
9471 # type: verbatim
9472 #: ../src/guestfs-actions.pod:3243
9473 #, no-wrap
9474 msgid ""
9475 " char **\n"
9476 " guestfs_lvs (guestfs_h *g);\n"
9477 "\n"
9478 msgstr ""
9479
9480 # type: textblock
9481 #: ../src/guestfs-actions.pod:3246 ../fish/guestfish-actions.pod:2402
9482 msgid ""
9483 "List all the logical volumes detected.  This is the equivalent of the "
9484 "L<lvs(8)> command."
9485 msgstr ""
9486
9487 # type: textblock
9488 #: ../src/guestfs-actions.pod:3249 ../fish/guestfish-actions.pod:2405
9489 msgid ""
9490 "This returns a list of the logical volume device names "
9491 "(eg. C</dev/VolGroup00/LogVol00>)."
9492 msgstr ""
9493
9494 # type: textblock
9495 #: ../src/guestfs-actions.pod:3252
9496 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9497 msgstr ""
9498
9499 # type: =head2
9500 #: ../src/guestfs-actions.pod:3258
9501 msgid "guestfs_lvs_full"
9502 msgstr ""
9503
9504 # type: verbatim
9505 #: ../src/guestfs-actions.pod:3260
9506 #, no-wrap
9507 msgid ""
9508 " struct guestfs_lvm_lv_list *\n"
9509 " guestfs_lvs_full (guestfs_h *g);\n"
9510 "\n"
9511 msgstr ""
9512
9513 # type: textblock
9514 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2414
9515 msgid ""
9516 "List all the logical volumes detected.  This is the equivalent of the "
9517 "L<lvs(8)> command.  The \"full\" version includes all fields."
9518 msgstr ""
9519
9520 # type: textblock
9521 #: ../src/guestfs-actions.pod:3266
9522 msgid ""
9523 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
9524 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
9525 "must call C<guestfs_free_lvm_lv_list> after use>."
9526 msgstr ""
9527
9528 # type: =head2
9529 #: ../src/guestfs-actions.pod:3271
9530 msgid "guestfs_lvuuid"
9531 msgstr ""
9532
9533 # type: verbatim
9534 #: ../src/guestfs-actions.pod:3273
9535 #, no-wrap
9536 msgid ""
9537 " char *\n"
9538 " guestfs_lvuuid (guestfs_h *g,\n"
9539 "                 const char *device);\n"
9540 "\n"
9541 msgstr ""
9542
9543 # type: textblock
9544 #: ../src/guestfs-actions.pod:3277 ../fish/guestfish-actions.pod:2421
9545 msgid "This command returns the UUID of the LVM LV C<device>."
9546 msgstr ""
9547
9548 # type: =head2
9549 #: ../src/guestfs-actions.pod:3282
9550 msgid "guestfs_lxattrlist"
9551 msgstr ""
9552
9553 # type: verbatim
9554 #: ../src/guestfs-actions.pod:3284
9555 #, no-wrap
9556 msgid ""
9557 " struct guestfs_xattr_list *\n"
9558 " guestfs_lxattrlist (guestfs_h *g,\n"
9559 "                     const char *path,\n"
9560 "                     char *const *names);\n"
9561 "\n"
9562 msgstr ""
9563
9564 # type: textblock
9565 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2427
9566 msgid ""
9567 "This call allows you to get the extended attributes of multiple files, where "
9568 "all files are in the directory C<path>.  C<names> is the list of files from "
9569 "this directory."
9570 msgstr ""
9571
9572 # type: textblock
9573 #: ../src/guestfs-actions.pod:3293 ../fish/guestfish-actions.pod:2431
9574 msgid ""
9575 "On return you get a flat list of xattr structs which must be interpreted "
9576 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9577 "C<attrval> in this struct is zero-length to indicate there was an error "
9578 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9579 "number (the number of following attributes for this file, which could be "
9580 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9581 "attributes for the first named file.  This repeats for the second and "
9582 "subsequent files."
9583 msgstr ""
9584
9585 # type: textblock
9586 #: ../src/guestfs-actions.pod:3303
9587 msgid ""
9588 "This call is intended for programs that want to efficiently list a directory "
9589 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9590 "a similarly efficient call for getting standard stats.  Very long directory "
9591 "listings might cause the protocol message size to be exceeded, causing this "
9592 "call to fail.  The caller must split up such requests into smaller groups of "
9593 "names."
9594 msgstr ""
9595
9596 # type: =head2
9597 #: ../src/guestfs-actions.pod:3316
9598 msgid "guestfs_mkdir"
9599 msgstr ""
9600
9601 # type: verbatim
9602 #: ../src/guestfs-actions.pod:3318
9603 #, no-wrap
9604 msgid ""
9605 " int\n"
9606 " guestfs_mkdir (guestfs_h *g,\n"
9607 "                const char *path);\n"
9608 "\n"
9609 msgstr ""
9610
9611 # type: textblock
9612 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2453
9613 msgid "Create a directory named C<path>."
9614 msgstr ""
9615
9616 # type: =head2
9617 #: ../src/guestfs-actions.pod:3326
9618 msgid "guestfs_mkdir_mode"
9619 msgstr ""
9620
9621 # type: verbatim
9622 #: ../src/guestfs-actions.pod:3328
9623 #, no-wrap
9624 msgid ""
9625 " int\n"
9626 " guestfs_mkdir_mode (guestfs_h *g,\n"
9627 "                     const char *path,\n"
9628 "                     int mode);\n"
9629 "\n"
9630 msgstr ""
9631
9632 # type: textblock
9633 #: ../src/guestfs-actions.pod:3333 ../fish/guestfish-actions.pod:2459
9634 msgid ""
9635 "This command creates a directory, setting the initial permissions of the "
9636 "directory to C<mode>."
9637 msgstr ""
9638
9639 # type: textblock
9640 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2462
9641 msgid ""
9642 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9643 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9644 "other ways."
9645 msgstr ""
9646
9647 # type: textblock
9648 #: ../src/guestfs-actions.pod:3340
9649 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9650 msgstr ""
9651
9652 # type: =head2
9653 #: ../src/guestfs-actions.pod:3344
9654 msgid "guestfs_mkdir_p"
9655 msgstr ""
9656
9657 # type: verbatim
9658 #: ../src/guestfs-actions.pod:3346
9659 #, no-wrap
9660 msgid ""
9661 " int\n"
9662 " guestfs_mkdir_p (guestfs_h *g,\n"
9663 "                  const char *path);\n"
9664 "\n"
9665 msgstr ""
9666
9667 # type: textblock
9668 #: ../src/guestfs-actions.pod:3350 ../fish/guestfish-actions.pod:2472
9669 msgid ""
9670 "Create a directory named C<path>, creating any parent directories as "
9671 "necessary.  This is like the C<mkdir -p> shell command."
9672 msgstr ""
9673
9674 # type: =head2
9675 #: ../src/guestfs-actions.pod:3355
9676 msgid "guestfs_mkdtemp"
9677 msgstr ""
9678
9679 # type: verbatim
9680 #: ../src/guestfs-actions.pod:3357
9681 #, no-wrap
9682 msgid ""
9683 " char *\n"
9684 " guestfs_mkdtemp (guestfs_h *g,\n"
9685 "                  const char *template);\n"
9686 "\n"
9687 msgstr ""
9688
9689 # type: textblock
9690 #: ../src/guestfs-actions.pod:3361 ../fish/guestfish-actions.pod:2479
9691 msgid ""
9692 "This command creates a temporary directory.  The C<template> parameter "
9693 "should be a full pathname for the temporary directory name with the final "
9694 "six characters being \"XXXXXX\"."
9695 msgstr ""
9696
9697 # type: textblock
9698 #: ../src/guestfs-actions.pod:3366 ../fish/guestfish-actions.pod:2484
9699 msgid ""
9700 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9701 "being suitable for Windows filesystems."
9702 msgstr ""
9703
9704 # type: textblock
9705 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2487
9706 msgid "The name of the temporary directory that was created is returned."
9707 msgstr ""
9708
9709 # type: textblock
9710 #: ../src/guestfs-actions.pod:3372 ../fish/guestfish-actions.pod:2490
9711 msgid "The temporary directory is created with mode 0700 and is owned by root."
9712 msgstr ""
9713
9714 # type: textblock
9715 #: ../src/guestfs-actions.pod:3375 ../fish/guestfish-actions.pod:2493
9716 msgid ""
9717 "The caller is responsible for deleting the temporary directory and its "
9718 "contents after use."
9719 msgstr ""
9720
9721 # type: textblock
9722 #: ../src/guestfs-actions.pod:3378 ../fish/guestfish-actions.pod:2496
9723 msgid "See also: L<mkdtemp(3)>"
9724 msgstr ""
9725
9726 # type: =head2
9727 #: ../src/guestfs-actions.pod:3383
9728 msgid "guestfs_mke2fs_J"
9729 msgstr ""
9730
9731 # type: verbatim
9732 #: ../src/guestfs-actions.pod:3385
9733 #, no-wrap
9734 msgid ""
9735 " int\n"
9736 " guestfs_mke2fs_J (guestfs_h *g,\n"
9737 "                   const char *fstype,\n"
9738 "                   int blocksize,\n"
9739 "                   const char *device,\n"
9740 "                   const char *journal);\n"
9741 "\n"
9742 msgstr ""
9743
9744 # type: textblock
9745 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2502
9746 msgid ""
9747 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9748 "C<journal>.  It is equivalent to the command:"
9749 msgstr ""
9750
9751 # type: verbatim
9752 #: ../src/guestfs-actions.pod:3396 ../fish/guestfish-actions.pod:2506
9753 #, no-wrap
9754 msgid ""
9755 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
9756 "\n"
9757 msgstr ""
9758
9759 # type: textblock
9760 #: ../src/guestfs-actions.pod:3398
9761 msgid "See also C<guestfs_mke2journal>."
9762 msgstr ""
9763
9764 # type: =head2
9765 #: ../src/guestfs-actions.pod:3402
9766 msgid "guestfs_mke2fs_JL"
9767 msgstr ""
9768
9769 # type: verbatim
9770 #: ../src/guestfs-actions.pod:3404
9771 #, no-wrap
9772 msgid ""
9773 " int\n"
9774 " guestfs_mke2fs_JL (guestfs_h *g,\n"
9775 "                    const char *fstype,\n"
9776 "                    int blocksize,\n"
9777 "                    const char *device,\n"
9778 "                    const char *label);\n"
9779 "\n"
9780 msgstr ""
9781
9782 # type: textblock
9783 #: ../src/guestfs-actions.pod:3411 ../fish/guestfish-actions.pod:2514
9784 msgid ""
9785 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9786 "the journal labeled C<label>."
9787 msgstr ""
9788
9789 # type: textblock
9790 #: ../src/guestfs-actions.pod:3414
9791 msgid "See also C<guestfs_mke2journal_L>."
9792 msgstr ""
9793
9794 # type: =head2
9795 #: ../src/guestfs-actions.pod:3418
9796 msgid "guestfs_mke2fs_JU"
9797 msgstr ""
9798
9799 # type: verbatim
9800 #: ../src/guestfs-actions.pod:3420
9801 #, no-wrap
9802 msgid ""
9803 " int\n"
9804 " guestfs_mke2fs_JU (guestfs_h *g,\n"
9805 "                    const char *fstype,\n"
9806 "                    int blocksize,\n"
9807 "                    const char *device,\n"
9808 "                    const char *uuid);\n"
9809 "\n"
9810 msgstr ""
9811
9812 # type: textblock
9813 #: ../src/guestfs-actions.pod:3427 ../fish/guestfish-actions.pod:2523
9814 msgid ""
9815 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
9816 "the journal with UUID C<uuid>."
9817 msgstr ""
9818
9819 # type: textblock
9820 #: ../src/guestfs-actions.pod:3430
9821 msgid "See also C<guestfs_mke2journal_U>."
9822 msgstr ""
9823
9824 # type: =head2
9825 #: ../src/guestfs-actions.pod:3434
9826 msgid "guestfs_mke2journal"
9827 msgstr ""
9828
9829 # type: verbatim
9830 #: ../src/guestfs-actions.pod:3436
9831 #, no-wrap
9832 msgid ""
9833 " int\n"
9834 " guestfs_mke2journal (guestfs_h *g,\n"
9835 "                      int blocksize,\n"
9836 "                      const char *device);\n"
9837 "\n"
9838 msgstr ""
9839
9840 # type: textblock
9841 #: ../src/guestfs-actions.pod:3441 ../fish/guestfish-actions.pod:2532
9842 msgid ""
9843 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
9844 "command:"
9845 msgstr ""
9846
9847 # type: verbatim
9848 #: ../src/guestfs-actions.pod:3444 ../fish/guestfish-actions.pod:2535
9849 #, no-wrap
9850 msgid ""
9851 " mke2fs -O journal_dev -b blocksize device\n"
9852 "\n"
9853 msgstr ""
9854
9855 # type: =head2
9856 #: ../src/guestfs-actions.pod:3448
9857 msgid "guestfs_mke2journal_L"
9858 msgstr ""
9859
9860 # type: verbatim
9861 #: ../src/guestfs-actions.pod:3450
9862 #, no-wrap
9863 msgid ""
9864 " int\n"
9865 " guestfs_mke2journal_L (guestfs_h *g,\n"
9866 "                        int blocksize,\n"
9867 "                        const char *label,\n"
9868 "                        const char *device);\n"
9869 "\n"
9870 msgstr ""
9871
9872 # type: textblock
9873 #: ../src/guestfs-actions.pod:3456 ../fish/guestfish-actions.pod:2541
9874 msgid "This creates an ext2 external journal on C<device> with label C<label>."
9875 msgstr ""
9876
9877 # type: =head2
9878 #: ../src/guestfs-actions.pod:3460
9879 msgid "guestfs_mke2journal_U"
9880 msgstr ""
9881
9882 # type: verbatim
9883 #: ../src/guestfs-actions.pod:3462
9884 #, no-wrap
9885 msgid ""
9886 " int\n"
9887 " guestfs_mke2journal_U (guestfs_h *g,\n"
9888 "                        int blocksize,\n"
9889 "                        const char *uuid,\n"
9890 "                        const char *device);\n"
9891 "\n"
9892 msgstr ""
9893
9894 # type: textblock
9895 #: ../src/guestfs-actions.pod:3468 ../fish/guestfish-actions.pod:2547
9896 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
9897 msgstr ""
9898
9899 # type: =head2
9900 #: ../src/guestfs-actions.pod:3472
9901 msgid "guestfs_mkfifo"
9902 msgstr ""
9903
9904 # type: verbatim
9905 #: ../src/guestfs-actions.pod:3474
9906 #, no-wrap
9907 msgid ""
9908 " int\n"
9909 " guestfs_mkfifo (guestfs_h *g,\n"
9910 "                 int mode,\n"
9911 "                 const char *path);\n"
9912 "\n"
9913 msgstr ""
9914
9915 # type: textblock
9916 #: ../src/guestfs-actions.pod:3479
9917 msgid ""
9918 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
9919 "is just a convenient wrapper around C<guestfs_mknod>."
9920 msgstr ""
9921
9922 # type: =head2
9923 #: ../src/guestfs-actions.pod:3487
9924 msgid "guestfs_mkfs"
9925 msgstr ""
9926
9927 # type: verbatim
9928 #: ../src/guestfs-actions.pod:3489
9929 #, no-wrap
9930 msgid ""
9931 " int\n"
9932 " guestfs_mkfs (guestfs_h *g,\n"
9933 "               const char *fstype,\n"
9934 "               const char *device);\n"
9935 "\n"
9936 msgstr ""
9937
9938 # type: textblock
9939 #: ../src/guestfs-actions.pod:3494 ../fish/guestfish-actions.pod:2563
9940 msgid ""
9941 "This creates a filesystem on C<device> (usually a partition or LVM logical "
9942 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
9943 msgstr ""
9944
9945 # type: =head2
9946 #: ../src/guestfs-actions.pod:3500
9947 msgid "guestfs_mkfs_b"
9948 msgstr ""
9949
9950 # type: verbatim
9951 #: ../src/guestfs-actions.pod:3502
9952 #, no-wrap
9953 msgid ""
9954 " int\n"
9955 " guestfs_mkfs_b (guestfs_h *g,\n"
9956 "                 const char *fstype,\n"
9957 "                 int blocksize,\n"
9958 "                 const char *device);\n"
9959 "\n"
9960 msgstr ""
9961
9962 # type: textblock
9963 #: ../src/guestfs-actions.pod:3508
9964 msgid ""
9965 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
9966 "block size of the resulting filesystem.  Supported block sizes depend on the "
9967 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
9968 msgstr ""
9969
9970 # type: textblock
9971 #: ../src/guestfs-actions.pod:3513 ../fish/guestfish-actions.pod:2576
9972 msgid ""
9973 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
9974 "cluster size."
9975 msgstr ""
9976
9977 # type: =head2
9978 #: ../src/guestfs-actions.pod:3518
9979 msgid "guestfs_mkmountpoint"
9980 msgstr ""
9981
9982 # type: verbatim
9983 #: ../src/guestfs-actions.pod:3520
9984 #, no-wrap
9985 msgid ""
9986 " int\n"
9987 " guestfs_mkmountpoint (guestfs_h *g,\n"
9988 "                       const char *exemptpath);\n"
9989 "\n"
9990 msgstr ""
9991
9992 # type: textblock
9993 #: ../src/guestfs-actions.pod:3524
9994 msgid ""
9995 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
9996 "that can be used to create extra mountpoints before mounting the first "
9997 "filesystem."
9998 msgstr ""
9999
10000 # type: textblock
10001 #: ../src/guestfs-actions.pod:3528 ../fish/guestfish-actions.pod:2587
10002 msgid ""
10003 "These calls are I<only> necessary in some very limited circumstances, mainly "
10004 "the case where you want to mount a mix of unrelated and/or read-only "
10005 "filesystems together."
10006 msgstr ""
10007
10008 # type: textblock
10009 #: ../src/guestfs-actions.pod:3532 ../fish/guestfish-actions.pod:2591
10010 msgid ""
10011 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10012 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10013 "inside that.  You can unpack this as follows in guestfish:"
10014 msgstr ""
10015
10016 # type: verbatim
10017 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2596
10018 #, no-wrap
10019 msgid ""
10020 " add-ro Fedora-11-i686-Live.iso\n"
10021 " run\n"
10022 " mkmountpoint /cd\n"
10023 " mkmountpoint /sqsh\n"
10024 " mkmountpoint /ext3fs\n"
10025 " mount /dev/sda /cd\n"
10026 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10027 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10028 "\n"
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2605
10033 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10034 msgstr ""
10035
10036 # type: textblock
10037 #: ../src/guestfs-actions.pod:3548
10038 msgid ""
10039 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10040 "may get unexpected errors if you try to mix these calls.  It is safest to "
10041 "manually unmount filesystems and remove mountpoints after use."
10042 msgstr ""
10043
10044 # type: textblock
10045 #: ../src/guestfs-actions.pod:3552
10046 msgid ""
10047 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10048 "first, so for this to work for manual mountpoints, you must ensure that the "
10049 "innermost mountpoints have the longest pathnames, as in the example code "
10050 "above."
10051 msgstr ""
10052
10053 # type: textblock
10054 #: ../src/guestfs-actions.pod:3557 ../fish/guestfish-actions.pod:2616
10055 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10056 msgstr ""
10057
10058 # type: textblock
10059 #: ../src/guestfs-actions.pod:3559
10060 msgid ""
10061 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10062 "means that C<guestfs_umount_all> is called when the handle is closed which "
10063 "can also trigger these issues."
10064 msgstr ""
10065
10066 # type: =head2
10067 #: ../src/guestfs-actions.pod:3565
10068 msgid "guestfs_mknod"
10069 msgstr ""
10070
10071 # type: verbatim
10072 #: ../src/guestfs-actions.pod:3567
10073 #, no-wrap
10074 msgid ""
10075 " int\n"
10076 " guestfs_mknod (guestfs_h *g,\n"
10077 "                int mode,\n"
10078 "                int devmajor,\n"
10079 "                int devminor,\n"
10080 "                const char *path);\n"
10081 "\n"
10082 msgstr ""
10083
10084 # type: textblock
10085 #: ../src/guestfs-actions.pod:3574 ../fish/guestfish-actions.pod:2626
10086 msgid ""
10087 "This call creates block or character special devices, or named pipes "
10088 "(FIFOs)."
10089 msgstr ""
10090
10091 # type: textblock
10092 #: ../src/guestfs-actions.pod:3577 ../fish/guestfish-actions.pod:2629
10093 msgid ""
10094 "The C<mode> parameter should be the mode, using the standard constants.  "
10095 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10096 "used when creating block and character special devices."
10097 msgstr ""
10098
10099 # type: textblock
10100 #: ../src/guestfs-actions.pod:3582
10101 msgid ""
10102 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10103 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10104 "regular file).  These constants are available in the standard Linux header "
10105 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10106 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10107 "the appropriate constant for you."
10108 msgstr ""
10109
10110 # type: =head2
10111 #: ../src/guestfs-actions.pod:3594
10112 msgid "guestfs_mknod_b"
10113 msgstr ""
10114
10115 # type: verbatim
10116 #: ../src/guestfs-actions.pod:3596
10117 #, no-wrap
10118 msgid ""
10119 " int\n"
10120 " guestfs_mknod_b (guestfs_h *g,\n"
10121 "                  int mode,\n"
10122 "                  int devmajor,\n"
10123 "                  int devminor,\n"
10124 "                  const char *path);\n"
10125 "\n"
10126 msgstr ""
10127
10128 # type: textblock
10129 #: ../src/guestfs-actions.pod:3603
10130 msgid ""
10131 "This call creates a block device node called C<path> with mode C<mode> and "
10132 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10133 "wrapper around C<guestfs_mknod>."
10134 msgstr ""
10135
10136 # type: =head2
10137 #: ../src/guestfs-actions.pod:3611
10138 msgid "guestfs_mknod_c"
10139 msgstr ""
10140
10141 # type: verbatim
10142 #: ../src/guestfs-actions.pod:3613
10143 #, no-wrap
10144 msgid ""
10145 " int\n"
10146 " guestfs_mknod_c (guestfs_h *g,\n"
10147 "                  int mode,\n"
10148 "                  int devmajor,\n"
10149 "                  int devminor,\n"
10150 "                  const char *path);\n"
10151 "\n"
10152 msgstr ""
10153
10154 # type: textblock
10155 #: ../src/guestfs-actions.pod:3620
10156 msgid ""
10157 "This call creates a char device node called C<path> with mode C<mode> and "
10158 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10159 "wrapper around C<guestfs_mknod>."
10160 msgstr ""
10161
10162 # type: =head2
10163 #: ../src/guestfs-actions.pod:3628
10164 msgid "guestfs_mkswap"
10165 msgstr ""
10166
10167 # type: verbatim
10168 #: ../src/guestfs-actions.pod:3630
10169 #, no-wrap
10170 msgid ""
10171 " int\n"
10172 " guestfs_mkswap (guestfs_h *g,\n"
10173 "                 const char *device);\n"
10174 "\n"
10175 msgstr ""
10176
10177 # type: textblock
10178 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2668
10179 msgid "Create a swap partition on C<device>."
10180 msgstr ""
10181
10182 # type: =head2
10183 #: ../src/guestfs-actions.pod:3638
10184 msgid "guestfs_mkswap_L"
10185 msgstr ""
10186
10187 # type: verbatim
10188 #: ../src/guestfs-actions.pod:3640
10189 #, no-wrap
10190 msgid ""
10191 " int\n"
10192 " guestfs_mkswap_L (guestfs_h *g,\n"
10193 "                   const char *label,\n"
10194 "                   const char *device);\n"
10195 "\n"
10196 msgstr ""
10197
10198 # type: textblock
10199 #: ../src/guestfs-actions.pod:3645 ../fish/guestfish-actions.pod:2674
10200 msgid "Create a swap partition on C<device> with label C<label>."
10201 msgstr ""
10202
10203 # type: textblock
10204 #: ../src/guestfs-actions.pod:3647 ../fish/guestfish-actions.pod:2676
10205 msgid ""
10206 "Note that you cannot attach a swap label to a block device "
10207 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10208 "the kernel or swap tools."
10209 msgstr ""
10210
10211 # type: =head2
10212 #: ../src/guestfs-actions.pod:3653
10213 msgid "guestfs_mkswap_U"
10214 msgstr ""
10215
10216 # type: verbatim
10217 #: ../src/guestfs-actions.pod:3655
10218 #, no-wrap
10219 msgid ""
10220 " int\n"
10221 " guestfs_mkswap_U (guestfs_h *g,\n"
10222 "                   const char *uuid,\n"
10223 "                   const char *device);\n"
10224 "\n"
10225 msgstr ""
10226
10227 # type: textblock
10228 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2684
10229 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10230 msgstr ""
10231
10232 # type: =head2
10233 #: ../src/guestfs-actions.pod:3664
10234 msgid "guestfs_mkswap_file"
10235 msgstr ""
10236
10237 # type: verbatim
10238 #: ../src/guestfs-actions.pod:3666
10239 #, no-wrap
10240 msgid ""
10241 " int\n"
10242 " guestfs_mkswap_file (guestfs_h *g,\n"
10243 "                      const char *path);\n"
10244 "\n"
10245 msgstr ""
10246
10247 # type: textblock
10248 #: ../src/guestfs-actions.pod:3670 ../fish/guestfish-actions.pod:2690
10249 msgid "Create a swap file."
10250 msgstr ""
10251
10252 # type: textblock
10253 #: ../src/guestfs-actions.pod:3672
10254 msgid ""
10255 "This command just writes a swap file signature to an existing file.  To "
10256 "create the file itself, use something like C<guestfs_fallocate>."
10257 msgstr ""
10258
10259 # type: =head2
10260 #: ../src/guestfs-actions.pod:3677
10261 msgid "guestfs_modprobe"
10262 msgstr ""
10263
10264 # type: verbatim
10265 #: ../src/guestfs-actions.pod:3679
10266 #, no-wrap
10267 msgid ""
10268 " int\n"
10269 " guestfs_modprobe (guestfs_h *g,\n"
10270 "                   const char *modulename);\n"
10271 "\n"
10272 msgstr ""
10273
10274 # type: textblock
10275 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2699
10276 msgid "This loads a kernel module in the appliance."
10277 msgstr ""
10278
10279 # type: textblock
10280 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2701
10281 msgid ""
10282 "The kernel module must have been whitelisted when libguestfs was built (see "
10283 "C<appliance/kmod.whitelist.in> in the source)."
10284 msgstr ""
10285
10286 # type: =head2
10287 #: ../src/guestfs-actions.pod:3690
10288 msgid "guestfs_mount"
10289 msgstr ""
10290
10291 # type: verbatim
10292 #: ../src/guestfs-actions.pod:3692
10293 #, no-wrap
10294 msgid ""
10295 " int\n"
10296 " guestfs_mount (guestfs_h *g,\n"
10297 "                const char *device,\n"
10298 "                const char *mountpoint);\n"
10299 "\n"
10300 msgstr ""
10301
10302 # type: textblock
10303 #: ../src/guestfs-actions.pod:3697 ../fish/guestfish-actions.pod:2708
10304 msgid ""
10305 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10306 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10307 "those block devices contain partitions, they will have the usual names "
10308 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10309 msgstr ""
10310
10311 # type: textblock
10312 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2714
10313 msgid ""
10314 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10315 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10316 "mounted on directories which already exist."
10317 msgstr ""
10318
10319 # type: textblock
10320 #: ../src/guestfs-actions.pod:3708 ../fish/guestfish-actions.pod:2719
10321 msgid ""
10322 "The mounted filesystem is writable, if we have sufficient permissions on the "
10323 "underlying device."
10324 msgstr ""
10325
10326 # type: textblock
10327 #: ../src/guestfs-actions.pod:3711
10328 msgid ""
10329 "B<Important note:> When you use this call, the filesystem options C<sync> "
10330 "and C<noatime> are set implicitly.  This was originally done because we "
10331 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10332 "very large negative performance impact and negligible effect on "
10333 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10334 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10335 "(use an empty string for the first parameter if you don't want any options)."
10336 msgstr ""
10337
10338 # type: =head2
10339 #: ../src/guestfs-actions.pod:3723
10340 msgid "guestfs_mount_loop"
10341 msgstr ""
10342
10343 # type: verbatim
10344 #: ../src/guestfs-actions.pod:3725
10345 #, no-wrap
10346 msgid ""
10347 " int\n"
10348 " guestfs_mount_loop (guestfs_h *g,\n"
10349 "                     const char *file,\n"
10350 "                     const char *mountpoint);\n"
10351 "\n"
10352 msgstr ""
10353
10354 # type: textblock
10355 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2736
10356 msgid ""
10357 "This command lets you mount C<file> (a filesystem image in a file) on a "
10358 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10359 "mountpoint>."
10360 msgstr ""
10361
10362 # type: =head2
10363 #: ../src/guestfs-actions.pod:3736
10364 msgid "guestfs_mount_options"
10365 msgstr ""
10366
10367 # type: verbatim
10368 #: ../src/guestfs-actions.pod:3738
10369 #, no-wrap
10370 msgid ""
10371 " int\n"
10372 " guestfs_mount_options (guestfs_h *g,\n"
10373 "                        const char *options,\n"
10374 "                        const char *device,\n"
10375 "                        const char *mountpoint);\n"
10376 "\n"
10377 msgstr ""
10378
10379 # type: textblock
10380 #: ../src/guestfs-actions.pod:3744
10381 msgid ""
10382 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10383 "the mount options as for the L<mount(8)> I<-o> flag."
10384 msgstr ""
10385
10386 # type: textblock
10387 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2748
10388 msgid ""
10389 "If the C<options> parameter is an empty string, then no options are passed "
10390 "(all options default to whatever the filesystem uses)."
10391 msgstr ""
10392
10393 # type: =head2
10394 #: ../src/guestfs-actions.pod:3754
10395 msgid "guestfs_mount_ro"
10396 msgstr ""
10397
10398 # type: verbatim
10399 #: ../src/guestfs-actions.pod:3756
10400 #, no-wrap
10401 msgid ""
10402 " int\n"
10403 " guestfs_mount_ro (guestfs_h *g,\n"
10404 "                   const char *device,\n"
10405 "                   const char *mountpoint);\n"
10406 "\n"
10407 msgstr ""
10408
10409 # type: textblock
10410 #: ../src/guestfs-actions.pod:3761
10411 msgid ""
10412 "This is the same as the C<guestfs_mount> command, but it mounts the "
10413 "filesystem with the read-only (I<-o ro>) flag."
10414 msgstr ""
10415
10416 # type: =head2
10417 #: ../src/guestfs-actions.pod:3766
10418 msgid "guestfs_mount_vfs"
10419 msgstr ""
10420
10421 # type: verbatim
10422 #: ../src/guestfs-actions.pod:3768
10423 #, no-wrap
10424 msgid ""
10425 " int\n"
10426 " guestfs_mount_vfs (guestfs_h *g,\n"
10427 "                    const char *options,\n"
10428 "                    const char *vfstype,\n"
10429 "                    const char *device,\n"
10430 "                    const char *mountpoint);\n"
10431 "\n"
10432 msgstr ""
10433
10434 # type: textblock
10435 #: ../src/guestfs-actions.pod:3775
10436 msgid ""
10437 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10438 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
10439 "I<-t> flags."
10440 msgstr ""
10441
10442 # type: =head2
10443 #: ../src/guestfs-actions.pod:3781
10444 msgid "guestfs_mountpoints"
10445 msgstr ""
10446
10447 # type: verbatim
10448 #: ../src/guestfs-actions.pod:3783
10449 #, no-wrap
10450 msgid ""
10451 " char **\n"
10452 " guestfs_mountpoints (guestfs_h *g);\n"
10453 "\n"
10454 msgstr ""
10455
10456 # type: textblock
10457 #: ../src/guestfs-actions.pod:3786
10458 msgid ""
10459 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10460 "devices.  This one returns a hash table (map) of device name to directory "
10461 "where the device is mounted."
10462 msgstr ""
10463
10464 # type: =head2
10465 #: ../src/guestfs-actions.pod:3796
10466 msgid "guestfs_mounts"
10467 msgstr ""
10468
10469 # type: verbatim
10470 #: ../src/guestfs-actions.pod:3798
10471 #, no-wrap
10472 msgid ""
10473 " char **\n"
10474 " guestfs_mounts (guestfs_h *g);\n"
10475 "\n"
10476 msgstr ""
10477
10478 # type: textblock
10479 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2779
10480 msgid ""
10481 "This returns the list of currently mounted filesystems.  It returns the list "
10482 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10483 msgstr ""
10484
10485 # type: textblock
10486 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2782
10487 msgid "Some internal mounts are not shown."
10488 msgstr ""
10489
10490 # type: textblock
10491 #: ../src/guestfs-actions.pod:3806
10492 msgid "See also: C<guestfs_mountpoints>"
10493 msgstr ""
10494
10495 # type: =head2
10496 #: ../src/guestfs-actions.pod:3812
10497 msgid "guestfs_mv"
10498 msgstr ""
10499
10500 # type: verbatim
10501 #: ../src/guestfs-actions.pod:3814
10502 #, no-wrap
10503 msgid ""
10504 " int\n"
10505 " guestfs_mv (guestfs_h *g,\n"
10506 "             const char *src,\n"
10507 "             const char *dest);\n"
10508 "\n"
10509 msgstr ""
10510
10511 # type: textblock
10512 #: ../src/guestfs-actions.pod:3819 ../fish/guestfish-actions.pod:2790
10513 msgid ""
10514 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10515 "destination filename or destination directory."
10516 msgstr ""
10517
10518 # type: =head2
10519 #: ../src/guestfs-actions.pod:3824
10520 msgid "guestfs_ntfs_3g_probe"
10521 msgstr ""
10522
10523 # type: verbatim
10524 #: ../src/guestfs-actions.pod:3826
10525 #, no-wrap
10526 msgid ""
10527 " int\n"
10528 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10529 "                        int rw,\n"
10530 "                        const char *device);\n"
10531 "\n"
10532 msgstr ""
10533
10534 # type: textblock
10535 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2797
10536 msgid ""
10537 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10538 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10539 "read-write, and some cannot be mounted at all)."
10540 msgstr ""
10541
10542 # type: textblock
10543 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2801
10544 msgid ""
10545 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10546 "can be mounted read-write.  Set it to false if you want to test if the "
10547 "volume can be mounted read-only."
10548 msgstr ""
10549
10550 # type: textblock
10551 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2805
10552 msgid ""
10553 "The return value is an integer which C<0> if the operation would succeed, or "
10554 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10555 msgstr ""
10556
10557 # type: =head2
10558 #: ../src/guestfs-actions.pod:3845
10559 msgid "guestfs_ntfsresize"
10560 msgstr ""
10561
10562 # type: verbatim
10563 #: ../src/guestfs-actions.pod:3847
10564 #, no-wrap
10565 msgid ""
10566 " int\n"
10567 " guestfs_ntfsresize (guestfs_h *g,\n"
10568 "                     const char *device);\n"
10569 "\n"
10570 msgstr ""
10571
10572 # type: textblock
10573 #: ../src/guestfs-actions.pod:3851 ../fish/guestfish-actions.pod:2813
10574 msgid ""
10575 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10576 "size of the underlying device.  See also L<ntfsresize(8)>."
10577 msgstr ""
10578
10579 # type: =head2
10580 #: ../src/guestfs-actions.pod:3857
10581 msgid "guestfs_ntfsresize_size"
10582 msgstr ""
10583
10584 # type: verbatim
10585 #: ../src/guestfs-actions.pod:3859
10586 #, no-wrap
10587 msgid ""
10588 " int\n"
10589 " guestfs_ntfsresize_size (guestfs_h *g,\n"
10590 "                          const char *device,\n"
10591 "                          int64_t size);\n"
10592 "\n"
10593 msgstr ""
10594
10595 # type: textblock
10596 #: ../src/guestfs-actions.pod:3864
10597 msgid ""
10598 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10599 "to specify the new size (in bytes) explicitly."
10600 msgstr ""
10601
10602 # type: =head2
10603 #: ../src/guestfs-actions.pod:3869
10604 msgid "guestfs_part_add"
10605 msgstr ""
10606
10607 # type: verbatim
10608 #: ../src/guestfs-actions.pod:3871
10609 #, no-wrap
10610 msgid ""
10611 " int\n"
10612 " guestfs_part_add (guestfs_h *g,\n"
10613 "                   const char *device,\n"
10614 "                   const char *prlogex,\n"
10615 "                   int64_t startsect,\n"
10616 "                   int64_t endsect);\n"
10617 "\n"
10618 msgstr ""
10619
10620 # type: textblock
10621 #: ../src/guestfs-actions.pod:3878
10622 msgid ""
10623 "This command adds a partition to C<device>.  If there is no partition table "
10624 "on the device, call C<guestfs_part_init> first."
10625 msgstr ""
10626
10627 # type: textblock
10628 #: ../src/guestfs-actions.pod:3881 ../fish/guestfish-actions.pod:2831
10629 msgid ""
10630 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10631 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10632 "C<logical>) and C<e> (or C<extended>) partition types."
10633 msgstr ""
10634
10635 # type: textblock
10636 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2836
10637 msgid ""
10638 "C<startsect> and C<endsect> are the start and end of the partition in "
10639 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10640 "from the end of the disk (C<-1> is the last sector)."
10641 msgstr ""
10642
10643 # type: textblock
10644 #: ../src/guestfs-actions.pod:3890
10645 msgid ""
10646 "Creating a partition which covers the whole disk is not so easy.  Use "
10647 "C<guestfs_part_disk> to do that."
10648 msgstr ""
10649
10650 # type: =head2
10651 #: ../src/guestfs-actions.pod:3895
10652 msgid "guestfs_part_del"
10653 msgstr ""
10654
10655 # type: verbatim
10656 #: ../src/guestfs-actions.pod:3897
10657 #, no-wrap
10658 msgid ""
10659 " int\n"
10660 " guestfs_part_del (guestfs_h *g,\n"
10661 "                   const char *device,\n"
10662 "                   int partnum);\n"
10663 "\n"
10664 msgstr ""
10665
10666 # type: textblock
10667 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:2847
10668 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10669 msgstr ""
10670
10671 # type: textblock
10672 #: ../src/guestfs-actions.pod:3904 ../fish/guestfish-actions.pod:2849
10673 msgid ""
10674 "Note that in the case of MBR partitioning, deleting an extended partition "
10675 "also deletes any logical partitions it contains."
10676 msgstr ""
10677
10678 # type: =head2
10679 #: ../src/guestfs-actions.pod:3910
10680 msgid "guestfs_part_disk"
10681 msgstr ""
10682
10683 # type: verbatim
10684 #: ../src/guestfs-actions.pod:3912
10685 #, no-wrap
10686 msgid ""
10687 " int\n"
10688 " guestfs_part_disk (guestfs_h *g,\n"
10689 "                    const char *device,\n"
10690 "                    const char *parttype);\n"
10691 "\n"
10692 msgstr ""
10693
10694 # type: textblock
10695 #: ../src/guestfs-actions.pod:3917
10696 msgid ""
10697 "This command is simply a combination of C<guestfs_part_init> followed by "
10698 "C<guestfs_part_add> to create a single primary partition covering the whole "
10699 "disk."
10700 msgstr ""
10701
10702 # type: textblock
10703 #: ../src/guestfs-actions.pod:3921
10704 msgid ""
10705 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
10706 "possible values are described in C<guestfs_part_init>."
10707 msgstr ""
10708
10709 # type: =head2
10710 #: ../src/guestfs-actions.pod:3929
10711 msgid "guestfs_part_get_bootable"
10712 msgstr ""
10713
10714 # type: verbatim
10715 #: ../src/guestfs-actions.pod:3931
10716 #, no-wrap
10717 msgid ""
10718 " int\n"
10719 " guestfs_part_get_bootable (guestfs_h *g,\n"
10720 "                            const char *device,\n"
10721 "                            int partnum);\n"
10722 "\n"
10723 msgstr ""
10724
10725 # type: textblock
10726 #: ../src/guestfs-actions.pod:3936 ../fish/guestfish-actions.pod:2871
10727 msgid ""
10728 "This command returns true if the partition C<partnum> on C<device> has the "
10729 "bootable flag set."
10730 msgstr ""
10731
10732 # type: textblock
10733 #: ../src/guestfs-actions.pod:3939
10734 msgid "See also C<guestfs_part_set_bootable>."
10735 msgstr ""
10736
10737 # type: =head2
10738 #: ../src/guestfs-actions.pod:3943
10739 msgid "guestfs_part_get_mbr_id"
10740 msgstr ""
10741
10742 # type: verbatim
10743 #: ../src/guestfs-actions.pod:3945
10744 #, no-wrap
10745 msgid ""
10746 " int\n"
10747 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
10748 "                          const char *device,\n"
10749 "                          int partnum);\n"
10750 "\n"
10751 msgstr ""
10752
10753 # type: textblock
10754 #: ../src/guestfs-actions.pod:3950 ../fish/guestfish-actions.pod:2880
10755 msgid ""
10756 "Returns the MBR type byte (also known as the ID byte) from the numbered "
10757 "partition C<partnum>."
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../src/guestfs-actions.pod:3953 ../src/guestfs-actions.pod:4120
10762 msgid ""
10763 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
10764 "undefined results for other partition table types (see "
10765 "C<guestfs_part_get_parttype>)."
10766 msgstr ""
10767
10768 # type: =head2
10769 #: ../src/guestfs-actions.pod:3959
10770 msgid "guestfs_part_get_parttype"
10771 msgstr ""
10772
10773 # type: verbatim
10774 #: ../src/guestfs-actions.pod:3961
10775 #, no-wrap
10776 msgid ""
10777 " char *\n"
10778 " guestfs_part_get_parttype (guestfs_h *g,\n"
10779 "                            const char *device);\n"
10780 "\n"
10781 msgstr ""
10782
10783 # type: textblock
10784 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2891
10785 msgid ""
10786 "This command examines the partition table on C<device> and returns the "
10787 "partition table type (format) being used."
10788 msgstr ""
10789
10790 # type: textblock
10791 #: ../src/guestfs-actions.pod:3968
10792 msgid ""
10793 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
10794 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
10795 "possible, although unusual.  See C<guestfs_part_init> for a full list."
10796 msgstr ""
10797
10798 # type: =head2
10799 #: ../src/guestfs-actions.pod:3976
10800 msgid "guestfs_part_init"
10801 msgstr ""
10802
10803 # type: verbatim
10804 #: ../src/guestfs-actions.pod:3978
10805 #, no-wrap
10806 msgid ""
10807 " int\n"
10808 " guestfs_part_init (guestfs_h *g,\n"
10809 "                    const char *device,\n"
10810 "                    const char *parttype);\n"
10811 "\n"
10812 msgstr ""
10813
10814 # type: textblock
10815 #: ../src/guestfs-actions.pod:3983 ../fish/guestfish-actions.pod:2903
10816 msgid ""
10817 "This creates an empty partition table on C<device> of one of the partition "
10818 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
10819 "(for large disks)."
10820 msgstr ""
10821
10822 # type: textblock
10823 #: ../src/guestfs-actions.pod:3987
10824 msgid ""
10825 "Initially there are no partitions.  Following this, you should call "
10826 "C<guestfs_part_add> for each partition required."
10827 msgstr ""
10828
10829 # type: textblock
10830 #: ../src/guestfs-actions.pod:3990 ../fish/guestfish-actions.pod:2910
10831 msgid "Possible values for C<parttype> are:"
10832 msgstr ""
10833
10834 # type: =item
10835 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2914
10836 msgid "B<efi> | B<gpt>"
10837 msgstr ""
10838
10839 # type: textblock
10840 #: ../src/guestfs-actions.pod:3996 ../fish/guestfish-actions.pod:2916
10841 msgid "Intel EFI / GPT partition table."
10842 msgstr ""
10843
10844 # type: textblock
10845 #: ../src/guestfs-actions.pod:3998 ../fish/guestfish-actions.pod:2918
10846 msgid ""
10847 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
10848 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
10849 "the C<mbr> format."
10850 msgstr ""
10851
10852 # type: =item
10853 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:2922
10854 msgid "B<mbr> | B<msdos>"
10855 msgstr ""
10856
10857 # type: textblock
10858 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:2924
10859 msgid ""
10860 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
10861 "Windows.  This partition type will B<only> work for device sizes up to 2 "
10862 "TB.  For large disks we recommend using C<gpt>."
10863 msgstr ""
10864
10865 # type: textblock
10866 #: ../src/guestfs-actions.pod:4011 ../fish/guestfish-actions.pod:2931
10867 msgid "Other partition table types that may work but are not supported include:"
10868 msgstr ""
10869
10870 # type: =item
10871 #: ../src/guestfs-actions.pod:4016 ../fish/guestfish-actions.pod:2936
10872 msgid "B<aix>"
10873 msgstr ""
10874
10875 # type: textblock
10876 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2938
10877 msgid "AIX disk labels."
10878 msgstr ""
10879
10880 # type: =item
10881 #: ../src/guestfs-actions.pod:4020 ../fish/guestfish-actions.pod:2940
10882 msgid "B<amiga> | B<rdb>"
10883 msgstr ""
10884
10885 # type: textblock
10886 #: ../src/guestfs-actions.pod:4022 ../fish/guestfish-actions.pod:2942
10887 msgid "Amiga \"Rigid Disk Block\" format."
10888 msgstr ""
10889
10890 # type: =item
10891 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2944
10892 msgid "B<bsd>"
10893 msgstr ""
10894
10895 # type: textblock
10896 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:2946
10897 msgid "BSD disk labels."
10898 msgstr ""
10899
10900 # type: =item
10901 #: ../src/guestfs-actions.pod:4028 ../fish/guestfish-actions.pod:2948
10902 msgid "B<dasd>"
10903 msgstr ""
10904
10905 # type: textblock
10906 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2950
10907 msgid "DASD, used on IBM mainframes."
10908 msgstr ""
10909
10910 # type: =item
10911 #: ../src/guestfs-actions.pod:4032 ../fish/guestfish-actions.pod:2952
10912 msgid "B<dvh>"
10913 msgstr ""
10914
10915 # type: textblock
10916 #: ../src/guestfs-actions.pod:4034 ../fish/guestfish-actions.pod:2954
10917 msgid "MIPS/SGI volumes."
10918 msgstr ""
10919
10920 # type: =item
10921 #: ../src/guestfs-actions.pod:4036 ../fish/guestfish-actions.pod:2956
10922 msgid "B<mac>"
10923 msgstr ""
10924
10925 # type: textblock
10926 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:2958
10927 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
10928 msgstr ""
10929
10930 # type: =item
10931 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2960
10932 msgid "B<pc98>"
10933 msgstr ""
10934
10935 # type: textblock
10936 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2962
10937 msgid "NEC PC-98 format, common in Japan apparently."
10938 msgstr ""
10939
10940 # type: =item
10941 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2964
10942 msgid "B<sun>"
10943 msgstr ""
10944
10945 # type: textblock
10946 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:2966
10947 msgid "Sun disk labels."
10948 msgstr ""
10949
10950 # type: =head2
10951 #: ../src/guestfs-actions.pod:4052
10952 msgid "guestfs_part_list"
10953 msgstr ""
10954
10955 # type: verbatim
10956 #: ../src/guestfs-actions.pod:4054
10957 #, no-wrap
10958 msgid ""
10959 " struct guestfs_partition_list *\n"
10960 " guestfs_part_list (guestfs_h *g,\n"
10961 "                    const char *device);\n"
10962 "\n"
10963 msgstr ""
10964
10965 # type: textblock
10966 #: ../src/guestfs-actions.pod:4058 ../fish/guestfish-actions.pod:2974
10967 msgid ""
10968 "This command parses the partition table on C<device> and returns the list of "
10969 "partitions found."
10970 msgstr ""
10971
10972 # type: textblock
10973 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2977
10974 msgid "The fields in the returned structure are:"
10975 msgstr ""
10976
10977 # type: =item
10978 #: ../src/guestfs-actions.pod:4065 ../fish/guestfish-actions.pod:2981
10979 msgid "B<part_num>"
10980 msgstr ""
10981
10982 # type: textblock
10983 #: ../src/guestfs-actions.pod:4067 ../fish/guestfish-actions.pod:2983
10984 msgid "Partition number, counting from 1."
10985 msgstr ""
10986
10987 # type: =item
10988 #: ../src/guestfs-actions.pod:4069 ../fish/guestfish-actions.pod:2985
10989 msgid "B<part_start>"
10990 msgstr ""
10991
10992 # type: textblock
10993 #: ../src/guestfs-actions.pod:4071
10994 msgid ""
10995 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
10996 "the device's sector size, see C<guestfs_blockdev_getss>."
10997 msgstr ""
10998
10999 # type: =item
11000 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:2990
11001 msgid "B<part_end>"
11002 msgstr ""
11003
11004 # type: textblock
11005 #: ../src/guestfs-actions.pod:4076 ../fish/guestfish-actions.pod:2992
11006 msgid "End of the partition in bytes."
11007 msgstr ""
11008
11009 # type: =item
11010 #: ../src/guestfs-actions.pod:4078 ../fish/guestfish-actions.pod:2994
11011 msgid "B<part_size>"
11012 msgstr ""
11013
11014 # type: textblock
11015 #: ../src/guestfs-actions.pod:4080 ../fish/guestfish-actions.pod:2996
11016 msgid "Size of the partition in bytes."
11017 msgstr ""
11018
11019 # type: textblock
11020 #: ../src/guestfs-actions.pod:4084
11021 msgid ""
11022 "This function returns a C<struct guestfs_partition_list *> (see "
11023 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11024 "must call C<guestfs_free_partition_list> after use>."
11025 msgstr ""
11026
11027 # type: =head2
11028 #: ../src/guestfs-actions.pod:4089
11029 msgid "guestfs_part_set_bootable"
11030 msgstr ""
11031
11032 # type: verbatim
11033 #: ../src/guestfs-actions.pod:4091
11034 #, no-wrap
11035 msgid ""
11036 " int\n"
11037 " guestfs_part_set_bootable (guestfs_h *g,\n"
11038 "                            const char *device,\n"
11039 "                            int partnum,\n"
11040 "                            int bootable);\n"
11041 "\n"
11042 msgstr ""
11043
11044 # type: textblock
11045 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:3004
11046 msgid ""
11047 "This sets the bootable flag on partition numbered C<partnum> on device "
11048 "C<device>.  Note that partitions are numbered from 1."
11049 msgstr ""
11050
11051 # type: textblock
11052 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:3007
11053 msgid ""
11054 "The bootable flag is used by some operating systems (notably Windows) to "
11055 "determine which partition to boot from.  It is by no means universally "
11056 "recognized."
11057 msgstr ""
11058
11059 # type: =head2
11060 #: ../src/guestfs-actions.pod:4106
11061 msgid "guestfs_part_set_mbr_id"
11062 msgstr ""
11063
11064 # type: verbatim
11065 #: ../src/guestfs-actions.pod:4108
11066 #, no-wrap
11067 msgid ""
11068 " int\n"
11069 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11070 "                          const char *device,\n"
11071 "                          int partnum,\n"
11072 "                          int idbyte);\n"
11073 "\n"
11074 msgstr ""
11075
11076 # type: textblock
11077 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:3015
11078 msgid ""
11079 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11080 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11081 "documentation are in fact hexadecimal numbers, but usually documented "
11082 "without any leading \"0x\" which might be confusing."
11083 msgstr ""
11084
11085 # type: =head2
11086 #: ../src/guestfs-actions.pod:4126
11087 msgid "guestfs_part_set_name"
11088 msgstr ""
11089
11090 # type: verbatim
11091 #: ../src/guestfs-actions.pod:4128
11092 #, no-wrap
11093 msgid ""
11094 " int\n"
11095 " guestfs_part_set_name (guestfs_h *g,\n"
11096 "                        const char *device,\n"
11097 "                        int partnum,\n"
11098 "                        const char *name);\n"
11099 "\n"
11100 msgstr ""
11101
11102 # type: textblock
11103 #: ../src/guestfs-actions.pod:4134 ../fish/guestfish-actions.pod:3029
11104 msgid ""
11105 "This sets the partition name on partition numbered C<partnum> on device "
11106 "C<device>.  Note that partitions are numbered from 1."
11107 msgstr ""
11108
11109 # type: textblock
11110 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:3032
11111 msgid ""
11112 "The partition name can only be set on certain types of partition table.  "
11113 "This works on C<gpt> but not on C<mbr> partitions."
11114 msgstr ""
11115
11116 # type: =head2
11117 #: ../src/guestfs-actions.pod:4142
11118 msgid "guestfs_part_to_dev"
11119 msgstr ""
11120
11121 # type: verbatim
11122 #: ../src/guestfs-actions.pod:4144
11123 #, no-wrap
11124 msgid ""
11125 " char *\n"
11126 " guestfs_part_to_dev (guestfs_h *g,\n"
11127 "                      const char *partition);\n"
11128 "\n"
11129 msgstr ""
11130
11131 # type: textblock
11132 #: ../src/guestfs-actions.pod:4148 ../fish/guestfish-actions.pod:3039
11133 msgid ""
11134 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11135 "partition number, returning the device name (eg. \"/dev/sdb\")."
11136 msgstr ""
11137
11138 # type: textblock
11139 #: ../src/guestfs-actions.pod:4152
11140 msgid ""
11141 "The named partition must exist, for example as a string returned from "
11142 "C<guestfs_list_partitions>."
11143 msgstr ""
11144
11145 # type: =head2
11146 #: ../src/guestfs-actions.pod:4158
11147 msgid "guestfs_ping_daemon"
11148 msgstr ""
11149
11150 # type: verbatim
11151 #: ../src/guestfs-actions.pod:4160
11152 #, no-wrap
11153 msgid ""
11154 " int\n"
11155 " guestfs_ping_daemon (guestfs_h *g);\n"
11156 "\n"
11157 msgstr ""
11158
11159 # type: textblock
11160 #: ../src/guestfs-actions.pod:4163 ../fish/guestfish-actions.pod:3050
11161 msgid ""
11162 "This is a test probe into the guestfs daemon running inside the qemu "
11163 "subprocess.  Calling this function checks that the daemon responds to the "
11164 "ping message, without affecting the daemon or attached block device(s) in "
11165 "any other way."
11166 msgstr ""
11167
11168 # type: =head2
11169 #: ../src/guestfs-actions.pod:4170
11170 msgid "guestfs_pread"
11171 msgstr ""
11172
11173 # type: verbatim
11174 #: ../src/guestfs-actions.pod:4172
11175 #, no-wrap
11176 msgid ""
11177 " char *\n"
11178 " guestfs_pread (guestfs_h *g,\n"
11179 "                const char *path,\n"
11180 "                int count,\n"
11181 "                int64_t offset,\n"
11182 "                size_t *size_r);\n"
11183 "\n"
11184 msgstr ""
11185
11186 # type: textblock
11187 #: ../src/guestfs-actions.pod:4179 ../fish/guestfish-actions.pod:3059
11188 msgid ""
11189 "This command lets you read part of a file.  It reads C<count> bytes of the "
11190 "file, starting at C<offset>, from file C<path>."
11191 msgstr ""
11192
11193 # type: textblock
11194 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:3062 ../fish/guestfish-actions.pod:3077
11195 msgid ""
11196 "This may read fewer bytes than requested.  For further details see the "
11197 "L<pread(2)> system call."
11198 msgstr ""
11199
11200 # type: textblock
11201 #: ../src/guestfs-actions.pod:4185
11202 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11203 msgstr ""
11204
11205 # type: =head2
11206 #: ../src/guestfs-actions.pod:4194
11207 msgid "guestfs_pread_device"
11208 msgstr ""
11209
11210 # type: verbatim
11211 #: ../src/guestfs-actions.pod:4196
11212 #, no-wrap
11213 msgid ""
11214 " char *\n"
11215 " guestfs_pread_device (guestfs_h *g,\n"
11216 "                       const char *device,\n"
11217 "                       int count,\n"
11218 "                       int64_t offset,\n"
11219 "                       size_t *size_r);\n"
11220 "\n"
11221 msgstr ""
11222
11223 # type: textblock
11224 #: ../src/guestfs-actions.pod:4203 ../fish/guestfish-actions.pod:3074
11225 msgid ""
11226 "This command lets you read part of a file.  It reads C<count> bytes of "
11227 "C<device>, starting at C<offset>."
11228 msgstr ""
11229
11230 # type: textblock
11231 #: ../src/guestfs-actions.pod:4209
11232 msgid "See also C<guestfs_pread>."
11233 msgstr ""
11234
11235 # type: =head2
11236 #: ../src/guestfs-actions.pod:4218
11237 msgid "guestfs_pvcreate"
11238 msgstr ""
11239
11240 # type: verbatim
11241 #: ../src/guestfs-actions.pod:4220
11242 #, no-wrap
11243 msgid ""
11244 " int\n"
11245 " guestfs_pvcreate (guestfs_h *g,\n"
11246 "                   const char *device);\n"
11247 "\n"
11248 msgstr ""
11249
11250 # type: textblock
11251 #: ../src/guestfs-actions.pod:4224 ../fish/guestfish-actions.pod:3089
11252 msgid ""
11253 "This creates an LVM physical volume on the named C<device>, where C<device> "
11254 "should usually be a partition name such as C</dev/sda1>."
11255 msgstr ""
11256
11257 # type: =head2
11258 #: ../src/guestfs-actions.pod:4230
11259 msgid "guestfs_pvremove"
11260 msgstr ""
11261
11262 # type: verbatim
11263 #: ../src/guestfs-actions.pod:4232
11264 #, no-wrap
11265 msgid ""
11266 " int\n"
11267 " guestfs_pvremove (guestfs_h *g,\n"
11268 "                   const char *device);\n"
11269 "\n"
11270 msgstr ""
11271
11272 # type: textblock
11273 #: ../src/guestfs-actions.pod:4236 ../fish/guestfish-actions.pod:3097
11274 msgid ""
11275 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11276 "it."
11277 msgstr ""
11278
11279 # type: textblock
11280 #: ../src/guestfs-actions.pod:4239 ../fish/guestfish-actions.pod:3100
11281 msgid ""
11282 "The implementation uses the C<pvremove> command which refuses to wipe "
11283 "physical volumes that contain any volume groups, so you have to remove those "
11284 "first."
11285 msgstr ""
11286
11287 # type: =head2
11288 #: ../src/guestfs-actions.pod:4245
11289 msgid "guestfs_pvresize"
11290 msgstr ""
11291
11292 # type: verbatim
11293 #: ../src/guestfs-actions.pod:4247
11294 #, no-wrap
11295 msgid ""
11296 " int\n"
11297 " guestfs_pvresize (guestfs_h *g,\n"
11298 "                   const char *device);\n"
11299 "\n"
11300 msgstr ""
11301
11302 # type: textblock
11303 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:3108
11304 msgid ""
11305 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11306 "the new size of the underlying device."
11307 msgstr ""
11308
11309 # type: =head2
11310 #: ../src/guestfs-actions.pod:4256
11311 msgid "guestfs_pvresize_size"
11312 msgstr ""
11313
11314 # type: verbatim
11315 #: ../src/guestfs-actions.pod:4258
11316 #, no-wrap
11317 msgid ""
11318 " int\n"
11319 " guestfs_pvresize_size (guestfs_h *g,\n"
11320 "                        const char *device,\n"
11321 "                        int64_t size);\n"
11322 "\n"
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4263
11327 msgid ""
11328 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11329 "specify the new size (in bytes) explicitly."
11330 msgstr ""
11331
11332 # type: =head2
11333 #: ../src/guestfs-actions.pod:4268
11334 msgid "guestfs_pvs"
11335 msgstr ""
11336
11337 # type: verbatim
11338 #: ../src/guestfs-actions.pod:4270
11339 #, no-wrap
11340 msgid ""
11341 " char **\n"
11342 " guestfs_pvs (guestfs_h *g);\n"
11343 "\n"
11344 msgstr ""
11345
11346 # type: textblock
11347 #: ../src/guestfs-actions.pod:4273 ../fish/guestfish-actions.pod:3122
11348 msgid ""
11349 "List all the physical volumes detected.  This is the equivalent of the "
11350 "L<pvs(8)> command."
11351 msgstr ""
11352
11353 # type: textblock
11354 #: ../src/guestfs-actions.pod:4276 ../fish/guestfish-actions.pod:3125
11355 msgid ""
11356 "This returns a list of just the device names that contain PVs "
11357 "(eg. C</dev/sda2>)."
11358 msgstr ""
11359
11360 # type: textblock
11361 #: ../src/guestfs-actions.pod:4279
11362 msgid "See also C<guestfs_pvs_full>."
11363 msgstr ""
11364
11365 # type: =head2
11366 #: ../src/guestfs-actions.pod:4285
11367 msgid "guestfs_pvs_full"
11368 msgstr ""
11369
11370 # type: verbatim
11371 #: ../src/guestfs-actions.pod:4287
11372 #, no-wrap
11373 msgid ""
11374 " struct guestfs_lvm_pv_list *\n"
11375 " guestfs_pvs_full (guestfs_h *g);\n"
11376 "\n"
11377 msgstr ""
11378
11379 # type: textblock
11380 #: ../src/guestfs-actions.pod:4290 ../fish/guestfish-actions.pod:3134
11381 msgid ""
11382 "List all the physical volumes detected.  This is the equivalent of the "
11383 "L<pvs(8)> command.  The \"full\" version includes all fields."
11384 msgstr ""
11385
11386 # type: textblock
11387 #: ../src/guestfs-actions.pod:4293
11388 msgid ""
11389 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
11390 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11391 "must call C<guestfs_free_lvm_pv_list> after use>."
11392 msgstr ""
11393
11394 # type: =head2
11395 #: ../src/guestfs-actions.pod:4298
11396 msgid "guestfs_pvuuid"
11397 msgstr ""
11398
11399 # type: verbatim
11400 #: ../src/guestfs-actions.pod:4300
11401 #, no-wrap
11402 msgid ""
11403 " char *\n"
11404 " guestfs_pvuuid (guestfs_h *g,\n"
11405 "                 const char *device);\n"
11406 "\n"
11407 msgstr ""
11408
11409 # type: textblock
11410 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:3141
11411 msgid "This command returns the UUID of the LVM PV C<device>."
11412 msgstr ""
11413
11414 # type: =head2
11415 #: ../src/guestfs-actions.pod:4309
11416 msgid "guestfs_pwrite"
11417 msgstr ""
11418
11419 # type: verbatim
11420 #: ../src/guestfs-actions.pod:4311
11421 #, no-wrap
11422 msgid ""
11423 " int\n"
11424 " guestfs_pwrite (guestfs_h *g,\n"
11425 "                 const char *path,\n"
11426 "                 const char *content,\n"
11427 "                 size_t content_size,\n"
11428 "                 int64_t offset);\n"
11429 "\n"
11430 msgstr ""
11431
11432 # type: textblock
11433 #: ../src/guestfs-actions.pod:4318 ../fish/guestfish-actions.pod:3147
11434 msgid ""
11435 "This command writes to part of a file.  It writes the data buffer C<content> "
11436 "to the file C<path> starting at offset C<offset>."
11437 msgstr ""
11438
11439 # type: textblock
11440 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:3150
11441 msgid ""
11442 "This command implements the L<pwrite(2)> system call, and like that system "
11443 "call it may not write the full data requested.  The return value is the "
11444 "number of bytes that were actually written to the file.  This could even be "
11445 "0, although short writes are unlikely for regular files in ordinary "
11446 "circumstances."
11447 msgstr ""
11448
11449 # type: textblock
11450 #: ../src/guestfs-actions.pod:4327
11451 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11452 msgstr ""
11453
11454 # type: =head2
11455 #: ../src/guestfs-actions.pod:4334
11456 msgid "guestfs_pwrite_device"
11457 msgstr ""
11458
11459 # type: verbatim
11460 #: ../src/guestfs-actions.pod:4336
11461 #, no-wrap
11462 msgid ""
11463 " int\n"
11464 " guestfs_pwrite_device (guestfs_h *g,\n"
11465 "                        const char *device,\n"
11466 "                        const char *content,\n"
11467 "                        size_t content_size,\n"
11468 "                        int64_t offset);\n"
11469 "\n"
11470 msgstr ""
11471
11472 # type: textblock
11473 #: ../src/guestfs-actions.pod:4343 ../fish/guestfish-actions.pod:3165
11474 msgid ""
11475 "This command writes to part of a device.  It writes the data buffer "
11476 "C<content> to C<device> starting at offset C<offset>."
11477 msgstr ""
11478
11479 # type: textblock
11480 #: ../src/guestfs-actions.pod:4346 ../fish/guestfish-actions.pod:3168
11481 msgid ""
11482 "This command implements the L<pwrite(2)> system call, and like that system "
11483 "call it may not write the full data requested (although short writes to disk "
11484 "devices and partitions are probably impossible with standard Linux kernels)."
11485 msgstr ""
11486
11487 # type: textblock
11488 #: ../src/guestfs-actions.pod:4351
11489 msgid "See also C<guestfs_pwrite>."
11490 msgstr ""
11491
11492 # type: =head2
11493 #: ../src/guestfs-actions.pod:4358
11494 msgid "guestfs_read_file"
11495 msgstr ""
11496
11497 # type: verbatim
11498 #: ../src/guestfs-actions.pod:4360
11499 #, no-wrap
11500 msgid ""
11501 " char *\n"
11502 " guestfs_read_file (guestfs_h *g,\n"
11503 "                    const char *path,\n"
11504 "                    size_t *size_r);\n"
11505 "\n"
11506 msgstr ""
11507
11508 # type: textblock
11509 #: ../src/guestfs-actions.pod:4365 ../fish/guestfish-actions.pod:3182
11510 msgid "This calls returns the contents of the file C<path> as a buffer."
11511 msgstr ""
11512
11513 # type: textblock
11514 #: ../src/guestfs-actions.pod:4368
11515 msgid ""
11516 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11517 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11518 "function is limited in the total size of file that can be handled."
11519 msgstr ""
11520
11521 # type: =head2
11522 #: ../src/guestfs-actions.pod:4380
11523 msgid "guestfs_read_lines"
11524 msgstr ""
11525
11526 # type: verbatim
11527 #: ../src/guestfs-actions.pod:4382
11528 #, no-wrap
11529 msgid ""
11530 " char **\n"
11531 " guestfs_read_lines (guestfs_h *g,\n"
11532 "                     const char *path);\n"
11533 "\n"
11534 msgstr ""
11535
11536 # type: textblock
11537 #: ../src/guestfs-actions.pod:4388 ../fish/guestfish-actions.pod:3199
11538 msgid ""
11539 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11540 "C<CRLF> character sequences are I<not> returned."
11541 msgstr ""
11542
11543 # type: textblock
11544 #: ../src/guestfs-actions.pod:4391
11545 msgid ""
11546 "Note that this function cannot correctly handle binary files (specifically, "
11547 "files containing C<\\0> character which is treated as end of line).  For "
11548 "those you need to use the C<guestfs_read_file> function which has a more "
11549 "complex interface."
11550 msgstr ""
11551
11552 # type: =head2
11553 #: ../src/guestfs-actions.pod:4400
11554 msgid "guestfs_readdir"
11555 msgstr ""
11556
11557 # type: verbatim
11558 #: ../src/guestfs-actions.pod:4402
11559 #, no-wrap
11560 msgid ""
11561 " struct guestfs_dirent_list *\n"
11562 " guestfs_readdir (guestfs_h *g,\n"
11563 "                  const char *dir);\n"
11564 "\n"
11565 msgstr ""
11566
11567 # type: textblock
11568 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:3211
11569 msgid "This returns the list of directory entries in directory C<dir>."
11570 msgstr ""
11571
11572 # type: textblock
11573 #: ../src/guestfs-actions.pod:4408 ../fish/guestfish-actions.pod:3213
11574 msgid ""
11575 "All entries in the directory are returned, including C<.> and C<..>.  The "
11576 "entries are I<not> sorted, but returned in the same order as the underlying "
11577 "filesystem."
11578 msgstr ""
11579
11580 # type: textblock
11581 #: ../src/guestfs-actions.pod:4412 ../fish/guestfish-actions.pod:3217
11582 msgid ""
11583 "Also this call returns basic file type information about each file.  The "
11584 "C<ftyp> field will contain one of the following characters:"
11585 msgstr ""
11586
11587 # type: =item
11588 #: ../src/guestfs-actions.pod:4417 ../fish/guestfish-actions.pod:3222
11589 msgid "'b'"
11590 msgstr ""
11591
11592 # type: textblock
11593 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:3224
11594 msgid "Block special"
11595 msgstr ""
11596
11597 # type: =item
11598 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:3226
11599 msgid "'c'"
11600 msgstr ""
11601
11602 # type: textblock
11603 #: ../src/guestfs-actions.pod:4423 ../fish/guestfish-actions.pod:3228
11604 msgid "Char special"
11605 msgstr ""
11606
11607 # type: =item
11608 #: ../src/guestfs-actions.pod:4425 ../fish/guestfish-actions.pod:3230
11609 msgid "'d'"
11610 msgstr ""
11611
11612 # type: textblock
11613 #: ../src/guestfs-actions.pod:4427 ../fish/guestfish-actions.pod:3232
11614 msgid "Directory"
11615 msgstr ""
11616
11617 # type: =item
11618 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:3234
11619 msgid "'f'"
11620 msgstr ""
11621
11622 # type: textblock
11623 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:3236
11624 msgid "FIFO (named pipe)"
11625 msgstr ""
11626
11627 # type: =item
11628 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:3238
11629 msgid "'l'"
11630 msgstr ""
11631
11632 # type: textblock
11633 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:3240
11634 msgid "Symbolic link"
11635 msgstr ""
11636
11637 # type: =item
11638 #: ../src/guestfs-actions.pod:4437 ../fish/guestfish-actions.pod:3242
11639 msgid "'r'"
11640 msgstr ""
11641
11642 # type: textblock
11643 #: ../src/guestfs-actions.pod:4439 ../fish/guestfish-actions.pod:3244
11644 msgid "Regular file"
11645 msgstr ""
11646
11647 # type: =item
11648 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:3246
11649 msgid "'s'"
11650 msgstr ""
11651
11652 # type: textblock
11653 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:3248
11654 msgid "Socket"
11655 msgstr ""
11656
11657 # type: =item
11658 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:3250
11659 msgid "'u'"
11660 msgstr ""
11661
11662 # type: textblock
11663 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:3252
11664 msgid "Unknown file type"
11665 msgstr ""
11666
11667 # type: =item
11668 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:3254
11669 msgid "'?'"
11670 msgstr ""
11671
11672 # type: textblock
11673 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:3256
11674 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11675 msgstr ""
11676
11677 # type: textblock
11678 #: ../src/guestfs-actions.pod:4456
11679 msgid ""
11680 "This function is primarily intended for use by programs.  To get a simple "
11681 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
11682 "consumption, use C<guestfs_ll>."
11683 msgstr ""
11684
11685 # type: textblock
11686 #: ../src/guestfs-actions.pod:4460
11687 msgid ""
11688 "This function returns a C<struct guestfs_dirent_list *> (see "
11689 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11690 "must call C<guestfs_free_dirent_list> after use>."
11691 msgstr ""
11692
11693 # type: =head2
11694 #: ../src/guestfs-actions.pod:4465
11695 msgid "guestfs_readlink"
11696 msgstr ""
11697
11698 # type: verbatim
11699 #: ../src/guestfs-actions.pod:4467
11700 #, no-wrap
11701 msgid ""
11702 " char *\n"
11703 " guestfs_readlink (guestfs_h *g,\n"
11704 "                   const char *path);\n"
11705 "\n"
11706 msgstr ""
11707
11708 # type: textblock
11709 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3269
11710 msgid "This command reads the target of a symbolic link."
11711 msgstr ""
11712
11713 # type: =head2
11714 #: ../src/guestfs-actions.pod:4476
11715 msgid "guestfs_readlinklist"
11716 msgstr ""
11717
11718 # type: verbatim
11719 #: ../src/guestfs-actions.pod:4478
11720 #, no-wrap
11721 msgid ""
11722 " char **\n"
11723 " guestfs_readlinklist (guestfs_h *g,\n"
11724 "                       const char *path,\n"
11725 "                       char *const *names);\n"
11726 "\n"
11727 msgstr ""
11728
11729 # type: textblock
11730 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3275
11731 msgid ""
11732 "This call allows you to do a C<readlink> operation on multiple files, where "
11733 "all files are in the directory C<path>.  C<names> is the list of files from "
11734 "this directory."
11735 msgstr ""
11736
11737 # type: textblock
11738 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:3279
11739 msgid ""
11740 "On return you get a list of strings, with a one-to-one correspondence to the "
11741 "C<names> list.  Each string is the value of the symbolic link."
11742 msgstr ""
11743
11744 # type: textblock
11745 #: ../src/guestfs-actions.pod:4491 ../fish/guestfish-actions.pod:3283
11746 msgid ""
11747 "If the C<readlink(2)> operation fails on any name, then the corresponding "
11748 "result string is the empty string C<\"\">.  However the whole operation is "
11749 "completed even if there were C<readlink(2)> errors, and so you can call this "
11750 "function with names where you don't know if they are symbolic links already "
11751 "(albeit slightly less efficient)."
11752 msgstr ""
11753
11754 # type: textblock
11755 #: ../src/guestfs-actions.pod:4498 ../fish/guestfish-actions.pod:3290
11756 msgid ""
11757 "This call is intended for programs that want to efficiently list a directory "
11758 "contents without making many round-trips.  Very long directory listings "
11759 "might cause the protocol message size to be exceeded, causing this call to "
11760 "fail.  The caller must split up such requests into smaller groups of names."
11761 msgstr ""
11762
11763 # type: =head2
11764 #: ../src/guestfs-actions.pod:4509
11765 msgid "guestfs_realpath"
11766 msgstr ""
11767
11768 # type: verbatim
11769 #: ../src/guestfs-actions.pod:4511
11770 #, no-wrap
11771 msgid ""
11772 " char *\n"
11773 " guestfs_realpath (guestfs_h *g,\n"
11774 "                   const char *path);\n"
11775 "\n"
11776 msgstr ""
11777
11778 # type: textblock
11779 #: ../src/guestfs-actions.pod:4515 ../fish/guestfish-actions.pod:3301
11780 msgid ""
11781 "Return the canonicalized absolute pathname of C<path>.  The returned path "
11782 "has no C<.>, C<..> or symbolic link path elements."
11783 msgstr ""
11784
11785 # type: =head2
11786 #: ../src/guestfs-actions.pod:4521
11787 msgid "guestfs_removexattr"
11788 msgstr ""
11789
11790 # type: verbatim
11791 #: ../src/guestfs-actions.pod:4523
11792 #, no-wrap
11793 msgid ""
11794 " int\n"
11795 " guestfs_removexattr (guestfs_h *g,\n"
11796 "                      const char *xattr,\n"
11797 "                      const char *path);\n"
11798 "\n"
11799 msgstr ""
11800
11801 # type: textblock
11802 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3308
11803 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
11804 msgstr ""
11805
11806 # type: textblock
11807 #: ../src/guestfs-actions.pod:4531
11808 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
11809 msgstr ""
11810
11811 # type: =head2
11812 #: ../src/guestfs-actions.pod:4535
11813 msgid "guestfs_resize2fs"
11814 msgstr ""
11815
11816 # type: verbatim
11817 #: ../src/guestfs-actions.pod:4537
11818 #, no-wrap
11819 msgid ""
11820 " int\n"
11821 " guestfs_resize2fs (guestfs_h *g,\n"
11822 "                    const char *device);\n"
11823 "\n"
11824 msgstr ""
11825
11826 # type: textblock
11827 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3317
11828 msgid ""
11829 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
11830 "underlying device."
11831 msgstr ""
11832
11833 # type: textblock
11834 #: ../src/guestfs-actions.pod:4544
11835 msgid ""
11836 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
11837 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
11838 "sometimes gives an error about this and sometimes not.  In any case, it is "
11839 "always safe to call C<guestfs_e2fsck_f> before calling this function."
11840 msgstr ""
11841
11842 # type: =head2
11843 #: ../src/guestfs-actions.pod:4552
11844 msgid "guestfs_resize2fs_size"
11845 msgstr ""
11846
11847 # type: verbatim
11848 #: ../src/guestfs-actions.pod:4554
11849 #, no-wrap
11850 msgid ""
11851 " int\n"
11852 " guestfs_resize2fs_size (guestfs_h *g,\n"
11853 "                         const char *device,\n"
11854 "                         int64_t size);\n"
11855 "\n"
11856 msgstr ""
11857
11858 # type: textblock
11859 #: ../src/guestfs-actions.pod:4559
11860 msgid ""
11861 "This command is the same as C<guestfs_resize2fs> except that it allows you "
11862 "to specify the new size (in bytes) explicitly."
11863 msgstr ""
11864
11865 # type: =head2
11866 #: ../src/guestfs-actions.pod:4564
11867 msgid "guestfs_rm"
11868 msgstr ""
11869
11870 # type: verbatim
11871 #: ../src/guestfs-actions.pod:4566
11872 #, no-wrap
11873 msgid ""
11874 " int\n"
11875 " guestfs_rm (guestfs_h *g,\n"
11876 "             const char *path);\n"
11877 "\n"
11878 msgstr ""
11879
11880 # type: textblock
11881 #: ../src/guestfs-actions.pod:4570 ../fish/guestfish-actions.pod:3337
11882 msgid "Remove the single file C<path>."
11883 msgstr ""
11884
11885 # type: =head2
11886 #: ../src/guestfs-actions.pod:4574
11887 msgid "guestfs_rm_rf"
11888 msgstr ""
11889
11890 # type: verbatim
11891 #: ../src/guestfs-actions.pod:4576
11892 #, no-wrap
11893 msgid ""
11894 " int\n"
11895 " guestfs_rm_rf (guestfs_h *g,\n"
11896 "                const char *path);\n"
11897 "\n"
11898 msgstr ""
11899
11900 # type: textblock
11901 #: ../src/guestfs-actions.pod:4580 ../fish/guestfish-actions.pod:3343
11902 msgid ""
11903 "Remove the file or directory C<path>, recursively removing the contents if "
11904 "its a directory.  This is like the C<rm -rf> shell command."
11905 msgstr ""
11906
11907 # type: =head2
11908 #: ../src/guestfs-actions.pod:4586
11909 msgid "guestfs_rmdir"
11910 msgstr ""
11911
11912 # type: verbatim
11913 #: ../src/guestfs-actions.pod:4588
11914 #, no-wrap
11915 msgid ""
11916 " int\n"
11917 " guestfs_rmdir (guestfs_h *g,\n"
11918 "                const char *path);\n"
11919 "\n"
11920 msgstr ""
11921
11922 # type: textblock
11923 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3351
11924 msgid "Remove the single directory C<path>."
11925 msgstr ""
11926
11927 # type: =head2
11928 #: ../src/guestfs-actions.pod:4596
11929 msgid "guestfs_rmmountpoint"
11930 msgstr ""
11931
11932 # type: verbatim
11933 #: ../src/guestfs-actions.pod:4598
11934 #, no-wrap
11935 msgid ""
11936 " int\n"
11937 " guestfs_rmmountpoint (guestfs_h *g,\n"
11938 "                       const char *exemptpath);\n"
11939 "\n"
11940 msgstr ""
11941
11942 # type: textblock
11943 #: ../src/guestfs-actions.pod:4602
11944 msgid ""
11945 "This calls removes a mountpoint that was previously created with "
11946 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
11947 msgstr ""
11948
11949 # type: =head2
11950 #: ../src/guestfs-actions.pod:4608
11951 msgid "guestfs_scrub_device"
11952 msgstr ""
11953
11954 # type: verbatim
11955 #: ../src/guestfs-actions.pod:4610
11956 #, no-wrap
11957 msgid ""
11958 " int\n"
11959 " guestfs_scrub_device (guestfs_h *g,\n"
11960 "                       const char *device);\n"
11961 "\n"
11962 msgstr ""
11963
11964 # type: textblock
11965 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3365
11966 msgid ""
11967 "This command writes patterns over C<device> to make data retrieval more "
11968 "difficult."
11969 msgstr ""
11970
11971 # type: textblock
11972 #: ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4636 ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3368 ../fish/guestfish-actions.pod:3383 ../fish/guestfish-actions.pod:3396
11973 msgid ""
11974 "It is an interface to the L<scrub(1)> program.  See that manual page for "
11975 "more details."
11976 msgstr ""
11977
11978 # type: =head2
11979 #: ../src/guestfs-actions.pod:4625
11980 msgid "guestfs_scrub_file"
11981 msgstr ""
11982
11983 # type: verbatim
11984 #: ../src/guestfs-actions.pod:4627
11985 #, no-wrap
11986 msgid ""
11987 " int\n"
11988 " guestfs_scrub_file (guestfs_h *g,\n"
11989 "                     const char *file);\n"
11990 "\n"
11991 msgstr ""
11992
11993 # type: textblock
11994 #: ../src/guestfs-actions.pod:4631 ../fish/guestfish-actions.pod:3378
11995 msgid ""
11996 "This command writes patterns over a file to make data retrieval more "
11997 "difficult."
11998 msgstr ""
11999
12000 # type: textblock
12001 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3381
12002 msgid "The file is I<removed> after scrubbing."
12003 msgstr ""
12004
12005 # type: =head2
12006 #: ../src/guestfs-actions.pod:4641
12007 msgid "guestfs_scrub_freespace"
12008 msgstr ""
12009
12010 # type: verbatim
12011 #: ../src/guestfs-actions.pod:4643
12012 #, no-wrap
12013 msgid ""
12014 " int\n"
12015 " guestfs_scrub_freespace (guestfs_h *g,\n"
12016 "                          const char *dir);\n"
12017 "\n"
12018 msgstr ""
12019
12020 # type: textblock
12021 #: ../src/guestfs-actions.pod:4647
12022 msgid ""
12023 "This command creates the directory C<dir> and then fills it with files until "
12024 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12025 "and deletes them.  The intention is to scrub any free space on the partition "
12026 "containing C<dir>."
12027 msgstr ""
12028
12029 # type: =head2
12030 #: ../src/guestfs-actions.pod:4658
12031 msgid "guestfs_set_append"
12032 msgstr ""
12033
12034 # type: verbatim
12035 #: ../src/guestfs-actions.pod:4660
12036 #, no-wrap
12037 msgid ""
12038 " int\n"
12039 " guestfs_set_append (guestfs_h *g,\n"
12040 "                     const char *append);\n"
12041 "\n"
12042 msgstr ""
12043
12044 # type: textblock
12045 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3405
12046 msgid ""
12047 "This function is used to add additional options to the guest kernel command "
12048 "line."
12049 msgstr ""
12050
12051 # type: textblock
12052 #: ../src/guestfs-actions.pod:4667 ../fish/guestfish-actions.pod:3408
12053 msgid ""
12054 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12055 "environment variable."
12056 msgstr ""
12057
12058 # type: textblock
12059 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3411
12060 msgid ""
12061 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12062 "(libguestfs always adds a few of its own)."
12063 msgstr ""
12064
12065 # type: =head2
12066 #: ../src/guestfs-actions.pod:4675
12067 msgid "guestfs_set_autosync"
12068 msgstr ""
12069
12070 # type: verbatim
12071 #: ../src/guestfs-actions.pod:4677
12072 #, no-wrap
12073 msgid ""
12074 " int\n"
12075 " guestfs_set_autosync (guestfs_h *g,\n"
12076 "                       int autosync);\n"
12077 "\n"
12078 msgstr ""
12079
12080 # type: textblock
12081 #: ../src/guestfs-actions.pod:4681
12082 msgid ""
12083 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12084 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12085 "the handle is closed (also if the program exits without closing handles)."
12086 msgstr ""
12087
12088 # type: textblock
12089 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3425
12090 msgid ""
12091 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12092 "disabled by default)."
12093 msgstr ""
12094
12095 # type: =head2
12096 #: ../src/guestfs-actions.pod:4691
12097 msgid "guestfs_set_direct"
12098 msgstr ""
12099
12100 # type: verbatim
12101 #: ../src/guestfs-actions.pod:4693
12102 #, no-wrap
12103 msgid ""
12104 " int\n"
12105 " guestfs_set_direct (guestfs_h *g,\n"
12106 "                     int direct);\n"
12107 "\n"
12108 msgstr ""
12109
12110 # type: textblock
12111 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3434
12112 msgid ""
12113 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12114 "passed directly through to the appliance once it is launched."
12115 msgstr ""
12116
12117 # type: textblock
12118 #: ../src/guestfs-actions.pod:4701
12119 msgid ""
12120 "One consequence of this is that log messages aren't caught by the library "
12121 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12122 "stdout."
12123 msgstr ""
12124
12125 # type: textblock
12126 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3442
12127 msgid "You probably don't want to use this unless you know what you are doing."
12128 msgstr ""
12129
12130 # type: textblock
12131 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3445
12132 msgid "The default is disabled."
12133 msgstr ""
12134
12135 # type: =head2
12136 #: ../src/guestfs-actions.pod:4712
12137 msgid "guestfs_set_e2label"
12138 msgstr ""
12139
12140 # type: verbatim
12141 #: ../src/guestfs-actions.pod:4714
12142 #, no-wrap
12143 msgid ""
12144 " int\n"
12145 " guestfs_set_e2label (guestfs_h *g,\n"
12146 "                      const char *device,\n"
12147 "                      const char *label);\n"
12148 "\n"
12149 msgstr ""
12150
12151 # type: textblock
12152 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3451
12153 msgid ""
12154 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12155 "C<label>.  Filesystem labels are limited to 16 characters."
12156 msgstr ""
12157
12158 # type: textblock
12159 #: ../src/guestfs-actions.pod:4723
12160 msgid ""
12161 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12162 "the existing label on a filesystem."
12163 msgstr ""
12164
12165 # type: =head2
12166 #: ../src/guestfs-actions.pod:4728
12167 msgid "guestfs_set_e2uuid"
12168 msgstr ""
12169
12170 # type: verbatim
12171 #: ../src/guestfs-actions.pod:4730
12172 #, no-wrap
12173 msgid ""
12174 " int\n"
12175 " guestfs_set_e2uuid (guestfs_h *g,\n"
12176 "                     const char *device,\n"
12177 "                     const char *uuid);\n"
12178 "\n"
12179 msgstr ""
12180
12181 # type: textblock
12182 #: ../src/guestfs-actions.pod:4735 ../fish/guestfish-actions.pod:3462
12183 msgid ""
12184 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12185 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12186 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12187 msgstr ""
12188
12189 # type: textblock
12190 #: ../src/guestfs-actions.pod:4740
12191 msgid ""
12192 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12193 "the existing UUID of a filesystem."
12194 msgstr ""
12195
12196 # type: =head2
12197 #: ../src/guestfs-actions.pod:4745
12198 msgid "guestfs_set_memsize"
12199 msgstr ""
12200
12201 # type: verbatim
12202 #: ../src/guestfs-actions.pod:4747
12203 #, no-wrap
12204 msgid ""
12205 " int\n"
12206 " guestfs_set_memsize (guestfs_h *g,\n"
12207 "                      int memsize);\n"
12208 "\n"
12209 msgstr ""
12210
12211 # type: textblock
12212 #: ../src/guestfs-actions.pod:4751
12213 msgid ""
12214 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12215 "This only has any effect if called before C<guestfs_launch>."
12216 msgstr ""
12217
12218 # type: textblock
12219 #: ../src/guestfs-actions.pod:4755 ../fish/guestfish-actions.pod:3480
12220 msgid ""
12221 "You can also change this by setting the environment variable "
12222 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12223 msgstr ""
12224
12225 # type: =head2
12226 #: ../src/guestfs-actions.pod:4764
12227 msgid "guestfs_set_network"
12228 msgstr ""
12229
12230 # type: verbatim
12231 #: ../src/guestfs-actions.pod:4766
12232 #, no-wrap
12233 msgid ""
12234 " int\n"
12235 " guestfs_set_network (guestfs_h *g,\n"
12236 "                      int network);\n"
12237 "\n"
12238 msgstr ""
12239
12240 # type: textblock
12241 #: ../src/guestfs-actions.pod:4770 ../fish/guestfish-actions.pod:3493
12242 msgid ""
12243 "If C<network> is true, then the network is enabled in the libguestfs "
12244 "appliance.  The default is false."
12245 msgstr ""
12246
12247 # type: textblock
12248 #: ../src/guestfs-actions.pod:4773 ../fish/guestfish-actions.pod:3496
12249 msgid ""
12250 "This affects whether commands are able to access the network (see "
12251 "L<guestfs(3)/RUNNING COMMANDS>)."
12252 msgstr ""
12253
12254 # type: textblock
12255 #: ../src/guestfs-actions.pod:4776
12256 msgid ""
12257 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12258 "effect."
12259 msgstr ""
12260
12261 # type: =head2
12262 #: ../src/guestfs-actions.pod:4781
12263 msgid "guestfs_set_path"
12264 msgstr ""
12265
12266 # type: verbatim
12267 #: ../src/guestfs-actions.pod:4783
12268 #, no-wrap
12269 msgid ""
12270 " int\n"
12271 " guestfs_set_path (guestfs_h *g,\n"
12272 "                   const char *searchpath);\n"
12273 "\n"
12274 msgstr ""
12275
12276 # type: textblock
12277 #: ../src/guestfs-actions.pod:4787 ../fish/guestfish-actions.pod:3508
12278 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12279 msgstr ""
12280
12281 # type: textblock
12282 #: ../src/guestfs-actions.pod:4789 ../fish/guestfish-actions.pod:3510
12283 msgid ""
12284 "The default is C<$libdir/guestfs> unless overridden by setting "
12285 "C<LIBGUESTFS_PATH> environment variable."
12286 msgstr ""
12287
12288 # type: textblock
12289 #: ../src/guestfs-actions.pod:4792 ../fish/guestfish-actions.pod:3513
12290 msgid "Setting C<path> to C<NULL> restores the default path."
12291 msgstr ""
12292
12293 # type: =head2
12294 #: ../src/guestfs-actions.pod:4796
12295 msgid "guestfs_set_qemu"
12296 msgstr ""
12297
12298 # type: verbatim
12299 #: ../src/guestfs-actions.pod:4798
12300 #, no-wrap
12301 msgid ""
12302 " int\n"
12303 " guestfs_set_qemu (guestfs_h *g,\n"
12304 "                   const char *qemu);\n"
12305 "\n"
12306 msgstr ""
12307
12308 # type: textblock
12309 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3521
12310 msgid "Set the qemu binary that we will use."
12311 msgstr ""
12312
12313 # type: textblock
12314 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3523
12315 msgid "The default is chosen when the library was compiled by the configure script."
12316 msgstr ""
12317
12318 # type: textblock
12319 #: ../src/guestfs-actions.pod:4807 ../fish/guestfish-actions.pod:3526
12320 msgid ""
12321 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12322 "variable."
12323 msgstr ""
12324
12325 # type: textblock
12326 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3529
12327 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12328 msgstr ""
12329
12330 # type: textblock
12331 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3531
12332 msgid ""
12333 "Note that you should call this function as early as possible after creating "
12334 "the handle.  This is because some pre-launch operations depend on testing "
12335 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12336 "don't retest features, and so you might see inconsistent results.  Using the "
12337 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12338 "the qemu binary at the same time as the handle is created."
12339 msgstr ""
12340
12341 # type: =head2
12342 #: ../src/guestfs-actions.pod:4822
12343 msgid "guestfs_set_recovery_proc"
12344 msgstr ""
12345
12346 # type: verbatim
12347 #: ../src/guestfs-actions.pod:4824
12348 #, no-wrap
12349 msgid ""
12350 " int\n"
12351 " guestfs_set_recovery_proc (guestfs_h *g,\n"
12352 "                            int recoveryproc);\n"
12353 "\n"
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4828
12358 msgid ""
12359 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12360 "not create a recovery process.  The purpose of the recovery process is to "
12361 "stop runaway qemu processes in the case where the main program aborts "
12362 "abruptly."
12363 msgstr ""
12364
12365 # type: textblock
12366 #: ../src/guestfs-actions.pod:4833
12367 msgid ""
12368 "This only has any effect if called before C<guestfs_launch>, and the default "
12369 "is true."
12370 msgstr ""
12371
12372 # type: textblock
12373 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3553
12374 msgid ""
12375 "About the only time when you would want to disable this is if the main "
12376 "process will fork itself into the background (\"daemonize\" itself).  In "
12377 "this case the recovery process thinks that the main program has disappeared "
12378 "and so kills qemu, which is not very helpful."
12379 msgstr ""
12380
12381 # type: =head2
12382 #: ../src/guestfs-actions.pod:4844
12383 msgid "guestfs_set_selinux"
12384 msgstr ""
12385
12386 # type: verbatim
12387 #: ../src/guestfs-actions.pod:4846
12388 #, no-wrap
12389 msgid ""
12390 " int\n"
12391 " guestfs_set_selinux (guestfs_h *g,\n"
12392 "                      int selinux);\n"
12393 "\n"
12394 msgstr ""
12395
12396 # type: textblock
12397 #: ../src/guestfs-actions.pod:4850 ../fish/guestfish-actions.pod:3565
12398 msgid ""
12399 "This sets the selinux flag that is passed to the appliance at boot time.  "
12400 "The default is C<selinux=0> (disabled)."
12401 msgstr ""
12402
12403 # type: textblock
12404 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3568
12405 msgid ""
12406 "Note that if SELinux is enabled, it is always in Permissive mode "
12407 "(C<enforcing=0>)."
12408 msgstr ""
12409
12410 # type: =head2
12411 #: ../src/guestfs-actions.pod:4861
12412 msgid "guestfs_set_trace"
12413 msgstr ""
12414
12415 # type: verbatim
12416 #: ../src/guestfs-actions.pod:4863
12417 #, no-wrap
12418 msgid ""
12419 " int\n"
12420 " guestfs_set_trace (guestfs_h *g,\n"
12421 "                    int trace);\n"
12422 "\n"
12423 msgstr ""
12424
12425 # type: textblock
12426 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3580
12427 msgid ""
12428 "If the command trace flag is set to 1, then commands are printed on stderr "
12429 "before they are executed in a format which is very similar to the one used "
12430 "by guestfish.  In other words, you can run a program with this enabled, and "
12431 "you will get out a script which you can feed to guestfish to perform the "
12432 "same set of actions."
12433 msgstr ""
12434
12435 # type: textblock
12436 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3587
12437 msgid ""
12438 "If you want to trace C API calls into libguestfs (and other libraries) then "
12439 "possibly a better way is to use the external ltrace(1) command."
12440 msgstr ""
12441
12442 # type: textblock
12443 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3591
12444 msgid ""
12445 "Command traces are disabled unless the environment variable "
12446 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12447 msgstr ""
12448
12449 # type: =head2
12450 #: ../src/guestfs-actions.pod:4883
12451 msgid "guestfs_set_verbose"
12452 msgstr ""
12453
12454 # type: verbatim
12455 #: ../src/guestfs-actions.pod:4885
12456 #, no-wrap
12457 msgid ""
12458 " int\n"
12459 " guestfs_set_verbose (guestfs_h *g,\n"
12460 "                      int verbose);\n"
12461 "\n"
12462 msgstr ""
12463
12464 # type: textblock
12465 #: ../src/guestfs-actions.pod:4889 ../fish/guestfish-actions.pod:3600
12466 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12467 msgstr ""
12468
12469 # type: textblock
12470 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3602
12471 msgid ""
12472 "Verbose messages are disabled unless the environment variable "
12473 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12474 msgstr ""
12475
12476 # type: =head2
12477 #: ../src/guestfs-actions.pod:4896
12478 msgid "guestfs_setcon"
12479 msgstr ""
12480
12481 # type: verbatim
12482 #: ../src/guestfs-actions.pod:4898
12483 #, no-wrap
12484 msgid ""
12485 " int\n"
12486 " guestfs_setcon (guestfs_h *g,\n"
12487 "                 const char *context);\n"
12488 "\n"
12489 msgstr ""
12490
12491 # type: textblock
12492 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3609
12493 msgid ""
12494 "This sets the SELinux security context of the daemon to the string "
12495 "C<context>."
12496 msgstr ""
12497
12498 # type: textblock
12499 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3612
12500 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12501 msgstr ""
12502
12503 # type: =head2
12504 #: ../src/guestfs-actions.pod:4909
12505 msgid "guestfs_setxattr"
12506 msgstr ""
12507
12508 # type: verbatim
12509 #: ../src/guestfs-actions.pod:4911
12510 #, no-wrap
12511 msgid ""
12512 " int\n"
12513 " guestfs_setxattr (guestfs_h *g,\n"
12514 "                   const char *xattr,\n"
12515 "                   const char *val,\n"
12516 "                   int vallen,\n"
12517 "                   const char *path);\n"
12518 "\n"
12519 msgstr ""
12520
12521 # type: textblock
12522 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3618
12523 msgid ""
12524 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12525 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12526 msgstr ""
12527
12528 # type: textblock
12529 #: ../src/guestfs-actions.pod:4922
12530 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12531 msgstr ""
12532
12533 # type: =head2
12534 #: ../src/guestfs-actions.pod:4926
12535 msgid "guestfs_sfdisk"
12536 msgstr ""
12537
12538 # type: verbatim
12539 #: ../src/guestfs-actions.pod:4928
12540 #, no-wrap
12541 msgid ""
12542 " int\n"
12543 " guestfs_sfdisk (guestfs_h *g,\n"
12544 "                 const char *device,\n"
12545 "                 int cyls,\n"
12546 "                 int heads,\n"
12547 "                 int sectors,\n"
12548 "                 char *const *lines);\n"
12549 "\n"
12550 msgstr ""
12551
12552 # type: textblock
12553 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3628
12554 msgid ""
12555 "This is a direct interface to the L<sfdisk(8)> program for creating "
12556 "partitions on block devices."
12557 msgstr ""
12558
12559 # type: textblock
12560 #: ../src/guestfs-actions.pod:4939 ../fish/guestfish-actions.pod:3631
12561 msgid "C<device> should be a block device, for example C</dev/sda>."
12562 msgstr ""
12563
12564 # type: textblock
12565 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3633
12566 msgid ""
12567 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12568 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12569 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12570 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12571 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12572 "the kernel) cannot work out the right geometry and you will need to tell it."
12573 msgstr ""
12574
12575 # type: textblock
12576 #: ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3641
12577 msgid ""
12578 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12579 "refer to the L<sfdisk(8)> manpage."
12580 msgstr ""
12581
12582 # type: textblock
12583 #: ../src/guestfs-actions.pod:4952 ../fish/guestfish-actions.pod:3644
12584 msgid ""
12585 "To create a single partition occupying the whole disk, you would pass "
12586 "C<lines> as a single element list, when the single element being the string "
12587 "C<,> (comma)."
12588 msgstr ""
12589
12590 # type: textblock
12591 #: ../src/guestfs-actions.pod:4956
12592 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12593 msgstr ""
12594
12595 # type: =head2
12596 #: ../src/guestfs-actions.pod:4964
12597 msgid "guestfs_sfdiskM"
12598 msgstr ""
12599
12600 # type: verbatim
12601 #: ../src/guestfs-actions.pod:4966
12602 #, no-wrap
12603 msgid ""
12604 " int\n"
12605 " guestfs_sfdiskM (guestfs_h *g,\n"
12606 "                  const char *device,\n"
12607 "                  char *const *lines);\n"
12608 "\n"
12609 msgstr ""
12610
12611 # type: textblock
12612 #: ../src/guestfs-actions.pod:4971
12613 msgid ""
12614 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12615 "partition sizes are specified in megabytes only (rounded to the nearest "
12616 "cylinder) and you don't need to specify the cyls, heads and sectors "
12617 "parameters which were rarely if ever used anyway."
12618 msgstr ""
12619
12620 # type: textblock
12621 #: ../src/guestfs-actions.pod:4977
12622 msgid ""
12623 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12624 "C<guestfs_part_disk>"
12625 msgstr ""
12626
12627 # type: =head2
12628 #: ../src/guestfs-actions.pod:4985
12629 msgid "guestfs_sfdisk_N"
12630 msgstr ""
12631
12632 # type: verbatim
12633 #: ../src/guestfs-actions.pod:4987
12634 #, no-wrap
12635 msgid ""
12636 " int\n"
12637 " guestfs_sfdisk_N (guestfs_h *g,\n"
12638 "                   const char *device,\n"
12639 "                   int partnum,\n"
12640 "                   int cyls,\n"
12641 "                   int heads,\n"
12642 "                   int sectors,\n"
12643 "                   const char *line);\n"
12644 "\n"
12645 msgstr ""
12646
12647 # type: textblock
12648 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3674
12649 msgid ""
12650 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12651 "(note: C<n> counts from 1)."
12652 msgstr ""
12653
12654 # type: textblock
12655 #: ../src/guestfs-actions.pod:4999
12656 msgid ""
12657 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12658 "for the cyls/heads/sectors parameters."
12659 msgstr ""
12660
12661 # type: textblock
12662 #: ../src/guestfs-actions.pod:5002
12663 msgid "See also: C<guestfs_part_add>"
12664 msgstr ""
12665
12666 # type: =head2
12667 #: ../src/guestfs-actions.pod:5009
12668 msgid "guestfs_sfdisk_disk_geometry"
12669 msgstr ""
12670
12671 # type: verbatim
12672 #: ../src/guestfs-actions.pod:5011
12673 #, no-wrap
12674 msgid ""
12675 " char *\n"
12676 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
12677 "                               const char *device);\n"
12678 "\n"
12679 msgstr ""
12680
12681 # type: textblock
12682 #: ../src/guestfs-actions.pod:5015
12683 msgid ""
12684 "This displays the disk geometry of C<device> read from the partition table.  "
12685 "Especially in the case where the underlying block device has been resized, "
12686 "this can be different from the kernel's idea of the geometry (see "
12687 "C<guestfs_sfdisk_kernel_geometry>)."
12688 msgstr ""
12689
12690 # type: textblock
12691 #: ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5034 ../fish/guestfish-actions.pod:3694 ../fish/guestfish-actions.pod:3703
12692 msgid "The result is in human-readable format, and not designed to be parsed."
12693 msgstr ""
12694
12695 # type: =head2
12696 #: ../src/guestfs-actions.pod:5026
12697 msgid "guestfs_sfdisk_kernel_geometry"
12698 msgstr ""
12699
12700 # type: verbatim
12701 #: ../src/guestfs-actions.pod:5028
12702 #, no-wrap
12703 msgid ""
12704 " char *\n"
12705 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
12706 "                                 const char *device);\n"
12707 "\n"
12708 msgstr ""
12709
12710 # type: textblock
12711 #: ../src/guestfs-actions.pod:5032 ../fish/guestfish-actions.pod:3701
12712 msgid "This displays the kernel's idea of the geometry of C<device>."
12713 msgstr ""
12714
12715 # type: =head2
12716 #: ../src/guestfs-actions.pod:5040
12717 msgid "guestfs_sfdisk_l"
12718 msgstr ""
12719
12720 # type: verbatim
12721 #: ../src/guestfs-actions.pod:5042
12722 #, no-wrap
12723 msgid ""
12724 " char *\n"
12725 " guestfs_sfdisk_l (guestfs_h *g,\n"
12726 "                   const char *device);\n"
12727 "\n"
12728 msgstr ""
12729
12730 # type: textblock
12731 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3710
12732 msgid ""
12733 "This displays the partition table on C<device>, in the human-readable output "
12734 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
12735 msgstr ""
12736
12737 # type: textblock
12738 #: ../src/guestfs-actions.pod:5050
12739 msgid "See also: C<guestfs_part_list>"
12740 msgstr ""
12741
12742 # type: =head2
12743 #: ../src/guestfs-actions.pod:5055
12744 msgid "guestfs_sh"
12745 msgstr ""
12746
12747 # type: verbatim
12748 #: ../src/guestfs-actions.pod:5057
12749 #, no-wrap
12750 msgid ""
12751 " char *\n"
12752 " guestfs_sh (guestfs_h *g,\n"
12753 "             const char *command);\n"
12754 "\n"
12755 msgstr ""
12756
12757 # type: textblock
12758 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3720
12759 msgid ""
12760 "This call runs a command from the guest filesystem via the guest's "
12761 "C</bin/sh>."
12762 msgstr ""
12763
12764 # type: textblock
12765 #: ../src/guestfs-actions.pod:5064
12766 msgid "This is like C<guestfs_command>, but passes the command to:"
12767 msgstr ""
12768
12769 # type: verbatim
12770 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3725
12771 #, no-wrap
12772 msgid ""
12773 " /bin/sh -c \"command\"\n"
12774 "\n"
12775 msgstr ""
12776
12777 # type: textblock
12778 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3727
12779 msgid ""
12780 "Depending on the guest's shell, this usually results in wildcards being "
12781 "expanded, shell expressions being interpolated and so on."
12782 msgstr ""
12783
12784 # type: textblock
12785 #: ../src/guestfs-actions.pod:5072
12786 msgid "All the provisos about C<guestfs_command> apply to this call."
12787 msgstr ""
12788
12789 # type: =head2
12790 #: ../src/guestfs-actions.pod:5077
12791 msgid "guestfs_sh_lines"
12792 msgstr ""
12793
12794 # type: verbatim
12795 #: ../src/guestfs-actions.pod:5079
12796 #, no-wrap
12797 msgid ""
12798 " char **\n"
12799 " guestfs_sh_lines (guestfs_h *g,\n"
12800 "                   const char *command);\n"
12801 "\n"
12802 msgstr ""
12803
12804 # type: textblock
12805 #: ../src/guestfs-actions.pod:5083
12806 msgid ""
12807 "This is the same as C<guestfs_sh>, but splits the result into a list of "
12808 "lines."
12809 msgstr ""
12810
12811 # type: textblock
12812 #: ../src/guestfs-actions.pod:5086
12813 msgid "See also: C<guestfs_command_lines>"
12814 msgstr ""
12815
12816 # type: =head2
12817 #: ../src/guestfs-actions.pod:5092
12818 msgid "guestfs_sleep"
12819 msgstr ""
12820
12821 # type: verbatim
12822 #: ../src/guestfs-actions.pod:5094
12823 #, no-wrap
12824 msgid ""
12825 " int\n"
12826 " guestfs_sleep (guestfs_h *g,\n"
12827 "                int secs);\n"
12828 "\n"
12829 msgstr ""
12830
12831 # type: textblock
12832 #: ../src/guestfs-actions.pod:5098 ../fish/guestfish-actions.pod:3746
12833 msgid "Sleep for C<secs> seconds."
12834 msgstr ""
12835
12836 # type: =head2
12837 #: ../src/guestfs-actions.pod:5102 ../src/guestfs-structs.pod:109
12838 msgid "guestfs_stat"
12839 msgstr ""
12840
12841 # type: verbatim
12842 #: ../src/guestfs-actions.pod:5104
12843 #, no-wrap
12844 msgid ""
12845 " struct guestfs_stat *\n"
12846 " guestfs_stat (guestfs_h *g,\n"
12847 "               const char *path);\n"
12848 "\n"
12849 msgstr ""
12850
12851 # type: textblock
12852 #: ../src/guestfs-actions.pod:5110 ../fish/guestfish-actions.pod:3754
12853 msgid "This is the same as the C<stat(2)> system call."
12854 msgstr ""
12855
12856 # type: =head2
12857 #: ../src/guestfs-actions.pod:5116 ../src/guestfs-structs.pod:135
12858 msgid "guestfs_statvfs"
12859 msgstr ""
12860
12861 # type: verbatim
12862 #: ../src/guestfs-actions.pod:5118
12863 #, no-wrap
12864 msgid ""
12865 " struct guestfs_statvfs *\n"
12866 " guestfs_statvfs (guestfs_h *g,\n"
12867 "                  const char *path);\n"
12868 "\n"
12869 msgstr ""
12870
12871 # type: textblock
12872 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3760
12873 msgid ""
12874 "Returns file system statistics for any mounted file system.  C<path> should "
12875 "be a file or directory in the mounted file system (typically it is the mount "
12876 "point itself, but it doesn't need to be)."
12877 msgstr ""
12878
12879 # type: textblock
12880 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3764
12881 msgid "This is the same as the C<statvfs(2)> system call."
12882 msgstr ""
12883
12884 # type: textblock
12885 #: ../src/guestfs-actions.pod:5128
12886 msgid ""
12887 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
12888 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
12889 msgstr ""
12890
12891 # type: =head2
12892 #: ../src/guestfs-actions.pod:5132
12893 msgid "guestfs_strings"
12894 msgstr ""
12895
12896 # type: verbatim
12897 #: ../src/guestfs-actions.pod:5134
12898 #, no-wrap
12899 msgid ""
12900 " char **\n"
12901 " guestfs_strings (guestfs_h *g,\n"
12902 "                  const char *path);\n"
12903 "\n"
12904 msgstr ""
12905
12906 # type: textblock
12907 #: ../src/guestfs-actions.pod:5138 ../fish/guestfish-actions.pod:3770
12908 msgid ""
12909 "This runs the L<strings(1)> command on a file and returns the list of "
12910 "printable strings found."
12911 msgstr ""
12912
12913 # type: =head2
12914 #: ../src/guestfs-actions.pod:5148
12915 msgid "guestfs_strings_e"
12916 msgstr ""
12917
12918 # type: verbatim
12919 #: ../src/guestfs-actions.pod:5150
12920 #, no-wrap
12921 msgid ""
12922 " char **\n"
12923 " guestfs_strings_e (guestfs_h *g,\n"
12924 "                    const char *encoding,\n"
12925 "                    const char *path);\n"
12926 "\n"
12927 msgstr ""
12928
12929 # type: textblock
12930 #: ../src/guestfs-actions.pod:5155
12931 msgid ""
12932 "This is like the C<guestfs_strings> command, but allows you to specify the "
12933 "encoding of strings that are looked for in the source file C<path>."
12934 msgstr ""
12935
12936 # type: textblock
12937 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3784
12938 msgid "Allowed encodings are:"
12939 msgstr ""
12940
12941 # type: =item
12942 #: ../src/guestfs-actions.pod:5163 ../fish/guestfish-actions.pod:3788
12943 msgid "s"
12944 msgstr ""
12945
12946 # type: textblock
12947 #: ../src/guestfs-actions.pod:5165
12948 msgid ""
12949 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
12950 "ISO-8859-X (this is what C<guestfs_strings> uses)."
12951 msgstr ""
12952
12953 # type: =item
12954 #: ../src/guestfs-actions.pod:5168 ../fish/guestfish-actions.pod:3793
12955 msgid "S"
12956 msgstr ""
12957
12958 # type: textblock
12959 #: ../src/guestfs-actions.pod:5170 ../fish/guestfish-actions.pod:3795
12960 msgid "Single 8-bit-byte characters."
12961 msgstr ""
12962
12963 # type: =item
12964 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3797
12965 msgid "b"
12966 msgstr ""
12967
12968 # type: textblock
12969 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3799
12970 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
12971 msgstr ""
12972
12973 # type: =item
12974 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:3802
12975 msgid "l (lower case letter L)"
12976 msgstr ""
12977
12978 # type: textblock
12979 #: ../src/guestfs-actions.pod:5179 ../fish/guestfish-actions.pod:3804
12980 msgid ""
12981 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
12982 "examining binaries in Windows guests."
12983 msgstr ""
12984
12985 # type: =item
12986 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3807
12987 msgid "B"
12988 msgstr ""
12989
12990 # type: textblock
12991 #: ../src/guestfs-actions.pod:5184 ../fish/guestfish-actions.pod:3809
12992 msgid "32-bit big endian such as UCS-4BE."
12993 msgstr ""
12994
12995 # type: =item
12996 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3811
12997 msgid "L"
12998 msgstr ""
12999
13000 # type: textblock
13001 #: ../src/guestfs-actions.pod:5188 ../fish/guestfish-actions.pod:3813
13002 msgid "32-bit little endian such as UCS-4LE."
13003 msgstr ""
13004
13005 # type: textblock
13006 #: ../src/guestfs-actions.pod:5192 ../fish/guestfish-actions.pod:3817
13007 msgid "The returned strings are transcoded to UTF-8."
13008 msgstr ""
13009
13010 # type: =head2
13011 #: ../src/guestfs-actions.pod:5201
13012 msgid "guestfs_swapoff_device"
13013 msgstr ""
13014
13015 # type: verbatim
13016 #: ../src/guestfs-actions.pod:5203
13017 #, no-wrap
13018 msgid ""
13019 " int\n"
13020 " guestfs_swapoff_device (guestfs_h *g,\n"
13021 "                         const char *device);\n"
13022 "\n"
13023 msgstr ""
13024
13025 # type: textblock
13026 #: ../src/guestfs-actions.pod:5207
13027 msgid ""
13028 "This command disables the libguestfs appliance swap device or partition "
13029 "named C<device>.  See C<guestfs_swapon_device>."
13030 msgstr ""
13031
13032 # type: =head2
13033 #: ../src/guestfs-actions.pod:5213
13034 msgid "guestfs_swapoff_file"
13035 msgstr ""
13036
13037 # type: verbatim
13038 #: ../src/guestfs-actions.pod:5215
13039 #, no-wrap
13040 msgid ""
13041 " int\n"
13042 " guestfs_swapoff_file (guestfs_h *g,\n"
13043 "                       const char *file);\n"
13044 "\n"
13045 msgstr ""
13046
13047 # type: textblock
13048 #: ../src/guestfs-actions.pod:5219 ../fish/guestfish-actions.pod:3834
13049 msgid "This command disables the libguestfs appliance swap on file."
13050 msgstr ""
13051
13052 # type: =head2
13053 #: ../src/guestfs-actions.pod:5223
13054 msgid "guestfs_swapoff_label"
13055 msgstr ""
13056
13057 # type: verbatim
13058 #: ../src/guestfs-actions.pod:5225
13059 #, no-wrap
13060 msgid ""
13061 " int\n"
13062 " guestfs_swapoff_label (guestfs_h *g,\n"
13063 "                        const char *label);\n"
13064 "\n"
13065 msgstr ""
13066
13067 # type: textblock
13068 #: ../src/guestfs-actions.pod:5229 ../fish/guestfish-actions.pod:3840
13069 msgid ""
13070 "This command disables the libguestfs appliance swap on labeled swap "
13071 "partition."
13072 msgstr ""
13073
13074 # type: =head2
13075 #: ../src/guestfs-actions.pod:5234
13076 msgid "guestfs_swapoff_uuid"
13077 msgstr ""
13078
13079 # type: verbatim
13080 #: ../src/guestfs-actions.pod:5236
13081 #, no-wrap
13082 msgid ""
13083 " int\n"
13084 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13085 "                       const char *uuid);\n"
13086 "\n"
13087 msgstr ""
13088
13089 # type: textblock
13090 #: ../src/guestfs-actions.pod:5240 ../fish/guestfish-actions.pod:3847
13091 msgid ""
13092 "This command disables the libguestfs appliance swap partition with the given "
13093 "UUID."
13094 msgstr ""
13095
13096 # type: =head2
13097 #: ../src/guestfs-actions.pod:5245
13098 msgid "guestfs_swapon_device"
13099 msgstr ""
13100
13101 # type: verbatim
13102 #: ../src/guestfs-actions.pod:5247
13103 #, no-wrap
13104 msgid ""
13105 " int\n"
13106 " guestfs_swapon_device (guestfs_h *g,\n"
13107 "                        const char *device);\n"
13108 "\n"
13109 msgstr ""
13110
13111 # type: textblock
13112 #: ../src/guestfs-actions.pod:5251
13113 msgid ""
13114 "This command enables the libguestfs appliance to use the swap device or "
13115 "partition named C<device>.  The increased memory is made available for all "
13116 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13117 msgstr ""
13118
13119 # type: textblock
13120 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:3859
13121 msgid ""
13122 "Note that you should not swap to existing guest swap partitions unless you "
13123 "know what you are doing.  They may contain hibernation information, or other "
13124 "information that the guest doesn't want you to trash.  You also risk leaking "
13125 "information about the host to the guest this way.  Instead, attach a new "
13126 "host device to the guest and swap on that."
13127 msgstr ""
13128
13129 # type: =head2
13130 #: ../src/guestfs-actions.pod:5265
13131 msgid "guestfs_swapon_file"
13132 msgstr ""
13133
13134 # type: verbatim
13135 #: ../src/guestfs-actions.pod:5267
13136 #, no-wrap
13137 msgid ""
13138 " int\n"
13139 " guestfs_swapon_file (guestfs_h *g,\n"
13140 "                      const char *file);\n"
13141 "\n"
13142 msgstr ""
13143
13144 # type: textblock
13145 #: ../src/guestfs-actions.pod:5271
13146 msgid ""
13147 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13148 "notes."
13149 msgstr ""
13150
13151 # type: =head2
13152 #: ../src/guestfs-actions.pod:5276
13153 msgid "guestfs_swapon_label"
13154 msgstr ""
13155
13156 # type: verbatim
13157 #: ../src/guestfs-actions.pod:5278
13158 #, no-wrap
13159 msgid ""
13160 " int\n"
13161 " guestfs_swapon_label (guestfs_h *g,\n"
13162 "                       const char *label);\n"
13163 "\n"
13164 msgstr ""
13165
13166 # type: textblock
13167 #: ../src/guestfs-actions.pod:5282
13168 msgid ""
13169 "This command enables swap to a labeled swap partition.  See "
13170 "C<guestfs_swapon_device> for other notes."
13171 msgstr ""
13172
13173 # type: =head2
13174 #: ../src/guestfs-actions.pod:5287
13175 msgid "guestfs_swapon_uuid"
13176 msgstr ""
13177
13178 # type: verbatim
13179 #: ../src/guestfs-actions.pod:5289
13180 #, no-wrap
13181 msgid ""
13182 " int\n"
13183 " guestfs_swapon_uuid (guestfs_h *g,\n"
13184 "                      const char *uuid);\n"
13185 "\n"
13186 msgstr ""
13187
13188 # type: textblock
13189 #: ../src/guestfs-actions.pod:5293
13190 msgid ""
13191 "This command enables swap to a swap partition with the given UUID.  See "
13192 "C<guestfs_swapon_device> for other notes."
13193 msgstr ""
13194
13195 # type: =head2
13196 #: ../src/guestfs-actions.pod:5298
13197 msgid "guestfs_sync"
13198 msgstr ""
13199
13200 # type: verbatim
13201 #: ../src/guestfs-actions.pod:5300
13202 #, no-wrap
13203 msgid ""
13204 " int\n"
13205 " guestfs_sync (guestfs_h *g);\n"
13206 "\n"
13207 msgstr ""
13208
13209 # type: textblock
13210 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3891
13211 msgid ""
13212 "This syncs the disk, so that any writes are flushed through to the "
13213 "underlying disk image."
13214 msgstr ""
13215
13216 # type: textblock
13217 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:3894
13218 msgid ""
13219 "You should always call this if you have modified a disk image, before "
13220 "closing the handle."
13221 msgstr ""
13222
13223 # type: =head2
13224 #: ../src/guestfs-actions.pod:5311
13225 msgid "guestfs_tail"
13226 msgstr ""
13227
13228 # type: verbatim
13229 #: ../src/guestfs-actions.pod:5313
13230 #, no-wrap
13231 msgid ""
13232 " char **\n"
13233 " guestfs_tail (guestfs_h *g,\n"
13234 "               const char *path);\n"
13235 "\n"
13236 msgstr ""
13237
13238 # type: textblock
13239 #: ../src/guestfs-actions.pod:5317 ../fish/guestfish-actions.pod:3901
13240 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13241 msgstr ""
13242
13243 # type: =head2
13244 #: ../src/guestfs-actions.pod:5327
13245 msgid "guestfs_tail_n"
13246 msgstr ""
13247
13248 # type: verbatim
13249 #: ../src/guestfs-actions.pod:5329
13250 #, no-wrap
13251 msgid ""
13252 " char **\n"
13253 " guestfs_tail_n (guestfs_h *g,\n"
13254 "                 int nrlines,\n"
13255 "                 const char *path);\n"
13256 "\n"
13257 msgstr ""
13258
13259 # type: textblock
13260 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:3911
13261 msgid ""
13262 "If the parameter C<nrlines> is a positive number, this returns the last "
13263 "C<nrlines> lines of the file C<path>."
13264 msgstr ""
13265
13266 # type: textblock
13267 #: ../src/guestfs-actions.pod:5337 ../fish/guestfish-actions.pod:3914
13268 msgid ""
13269 "If the parameter C<nrlines> is a negative number, this returns lines from "
13270 "the file C<path>, starting with the C<-nrlines>th line."
13271 msgstr ""
13272
13273 # type: =head2
13274 #: ../src/guestfs-actions.pod:5349
13275 msgid "guestfs_tar_in"
13276 msgstr ""
13277
13278 # type: verbatim
13279 #: ../src/guestfs-actions.pod:5351
13280 #, no-wrap
13281 msgid ""
13282 " int\n"
13283 " guestfs_tar_in (guestfs_h *g,\n"
13284 "                 const char *tarfile,\n"
13285 "                 const char *directory);\n"
13286 "\n"
13287 msgstr ""
13288
13289 # type: textblock
13290 #: ../src/guestfs-actions.pod:5356 ../fish/guestfish-actions.pod:3926
13291 msgid ""
13292 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13293 "tar file) into C<directory>."
13294 msgstr ""
13295
13296 # type: textblock
13297 #: ../src/guestfs-actions.pod:5359
13298 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13299 msgstr ""
13300
13301 # type: =head2
13302 #: ../src/guestfs-actions.pod:5364
13303 msgid "guestfs_tar_out"
13304 msgstr ""
13305
13306 # type: verbatim
13307 #: ../src/guestfs-actions.pod:5366
13308 #, no-wrap
13309 msgid ""
13310 " int\n"
13311 " guestfs_tar_out (guestfs_h *g,\n"
13312 "                  const char *directory,\n"
13313 "                  const char *tarfile);\n"
13314 "\n"
13315 msgstr ""
13316
13317 # type: textblock
13318 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:3938
13319 msgid ""
13320 "This command packs the contents of C<directory> and downloads it to local "
13321 "file C<tarfile>."
13322 msgstr ""
13323
13324 # type: textblock
13325 #: ../src/guestfs-actions.pod:5374
13326 msgid ""
13327 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13328 "C<guestfs_txz_out>."
13329 msgstr ""
13330
13331 # type: =head2
13332 #: ../src/guestfs-actions.pod:5379
13333 msgid "guestfs_tgz_in"
13334 msgstr ""
13335
13336 # type: verbatim
13337 #: ../src/guestfs-actions.pod:5381
13338 #, no-wrap
13339 msgid ""
13340 " int\n"
13341 " guestfs_tgz_in (guestfs_h *g,\n"
13342 "                 const char *tarball,\n"
13343 "                 const char *directory);\n"
13344 "\n"
13345 msgstr ""
13346
13347 # type: textblock
13348 #: ../src/guestfs-actions.pod:5386 ../fish/guestfish-actions.pod:3950
13349 msgid ""
13350 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13351 "tar file) into C<directory>."
13352 msgstr ""
13353
13354 # type: textblock
13355 #: ../src/guestfs-actions.pod:5389
13356 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13357 msgstr ""
13358
13359 # type: =head2
13360 #: ../src/guestfs-actions.pod:5393
13361 msgid "guestfs_tgz_out"
13362 msgstr ""
13363
13364 # type: verbatim
13365 #: ../src/guestfs-actions.pod:5395
13366 #, no-wrap
13367 msgid ""
13368 " int\n"
13369 " guestfs_tgz_out (guestfs_h *g,\n"
13370 "                  const char *directory,\n"
13371 "                  const char *tarball);\n"
13372 "\n"
13373 msgstr ""
13374
13375 # type: textblock
13376 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3961
13377 msgid ""
13378 "This command packs the contents of C<directory> and downloads it to local "
13379 "file C<tarball>."
13380 msgstr ""
13381
13382 # type: textblock
13383 #: ../src/guestfs-actions.pod:5403
13384 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13385 msgstr ""
13386
13387 # type: =head2
13388 #: ../src/guestfs-actions.pod:5407
13389 msgid "guestfs_touch"
13390 msgstr ""
13391
13392 # type: verbatim
13393 #: ../src/guestfs-actions.pod:5409
13394 #, no-wrap
13395 msgid ""
13396 " int\n"
13397 " guestfs_touch (guestfs_h *g,\n"
13398 "                const char *path);\n"
13399 "\n"
13400 msgstr ""
13401
13402 # type: textblock
13403 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3972
13404 msgid ""
13405 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13406 "timestamps on a file, or, if the file does not exist, to create a new "
13407 "zero-length file."
13408 msgstr ""
13409
13410 # type: textblock
13411 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3976
13412 msgid ""
13413 "This command only works on regular files, and will fail on other file types "
13414 "such as directories, symbolic links, block special etc."
13415 msgstr ""
13416
13417 # type: =head2
13418 #: ../src/guestfs-actions.pod:5422
13419 msgid "guestfs_truncate"
13420 msgstr ""
13421
13422 # type: verbatim
13423 #: ../src/guestfs-actions.pod:5424
13424 #, no-wrap
13425 msgid ""
13426 " int\n"
13427 " guestfs_truncate (guestfs_h *g,\n"
13428 "                   const char *path);\n"
13429 "\n"
13430 msgstr ""
13431
13432 # type: textblock
13433 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3983
13434 msgid ""
13435 "This command truncates C<path> to a zero-length file.  The file must exist "
13436 "already."
13437 msgstr ""
13438
13439 # type: =head2
13440 #: ../src/guestfs-actions.pod:5433
13441 msgid "guestfs_truncate_size"
13442 msgstr ""
13443
13444 # type: verbatim
13445 #: ../src/guestfs-actions.pod:5435
13446 #, no-wrap
13447 msgid ""
13448 " int\n"
13449 " guestfs_truncate_size (guestfs_h *g,\n"
13450 "                        const char *path,\n"
13451 "                        int64_t size);\n"
13452 "\n"
13453 msgstr ""
13454
13455 # type: textblock
13456 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3990
13457 msgid ""
13458 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13459 "already."
13460 msgstr ""
13461
13462 # type: textblock
13463 #: ../src/guestfs-actions.pod:5443
13464 msgid ""
13465 "If the current file size is less than C<size> then the file is extended to "
13466 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13467 "blocks are not allocated for the file until you write to it).  To create a "
13468 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13469 msgstr ""
13470
13471 # type: =head2
13472 #: ../src/guestfs-actions.pod:5451
13473 msgid "guestfs_tune2fs_l"
13474 msgstr ""
13475
13476 # type: verbatim
13477 #: ../src/guestfs-actions.pod:5453
13478 #, no-wrap
13479 msgid ""
13480 " char **\n"
13481 " guestfs_tune2fs_l (guestfs_h *g,\n"
13482 "                    const char *device);\n"
13483 "\n"
13484 msgstr ""
13485
13486 # type: textblock
13487 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:4003
13488 msgid ""
13489 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13490 "C<device>."
13491 msgstr ""
13492
13493 # type: textblock
13494 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:4006
13495 msgid ""
13496 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13497 "for more details.  The list of fields returned isn't clearly defined, and "
13498 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13499 "and the filesystem itself."
13500 msgstr ""
13501
13502 # type: =head2
13503 #: ../src/guestfs-actions.pod:5471
13504 msgid "guestfs_txz_in"
13505 msgstr ""
13506
13507 # type: verbatim
13508 #: ../src/guestfs-actions.pod:5473
13509 #, no-wrap
13510 msgid ""
13511 " int\n"
13512 " guestfs_txz_in (guestfs_h *g,\n"
13513 "                 const char *tarball,\n"
13514 "                 const char *directory);\n"
13515 "\n"
13516 msgstr ""
13517
13518 # type: textblock
13519 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:4015
13520 msgid ""
13521 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13522 "tar file) into C<directory>."
13523 msgstr ""
13524
13525 # type: =head2
13526 #: ../src/guestfs-actions.pod:5483
13527 msgid "guestfs_txz_out"
13528 msgstr ""
13529
13530 # type: verbatim
13531 #: ../src/guestfs-actions.pod:5485
13532 #, no-wrap
13533 msgid ""
13534 " int\n"
13535 " guestfs_txz_out (guestfs_h *g,\n"
13536 "                  const char *directory,\n"
13537 "                  const char *tarball);\n"
13538 "\n"
13539 msgstr ""
13540
13541 # type: textblock
13542 #: ../src/guestfs-actions.pod:5490 ../fish/guestfish-actions.pod:4024
13543 msgid ""
13544 "This command packs the contents of C<directory> and downloads it to local "
13545 "file C<tarball> (as an xz compressed tar archive)."
13546 msgstr ""
13547
13548 # type: =head2
13549 #: ../src/guestfs-actions.pod:5495
13550 msgid "guestfs_umask"
13551 msgstr ""
13552
13553 # type: verbatim
13554 #: ../src/guestfs-actions.pod:5497
13555 #, no-wrap
13556 msgid ""
13557 " int\n"
13558 " guestfs_umask (guestfs_h *g,\n"
13559 "                int mask);\n"
13560 "\n"
13561 msgstr ""
13562
13563 # type: textblock
13564 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:4033
13565 msgid ""
13566 "This function sets the mask used for creating new files and device nodes to "
13567 "C<mask & 0777>."
13568 msgstr ""
13569
13570 # type: textblock
13571 #: ../src/guestfs-actions.pod:5504 ../fish/guestfish-actions.pod:4036
13572 msgid ""
13573 "Typical umask values would be C<022> which creates new files with "
13574 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13575 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13576 msgstr ""
13577
13578 # type: textblock
13579 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:4041
13580 msgid ""
13581 "The default umask is C<022>.  This is important because it means that "
13582 "directories and device nodes will be created with C<0644> or C<0755> mode "
13583 "even if you specify C<0777>."
13584 msgstr ""
13585
13586 # type: textblock
13587 #: ../src/guestfs-actions.pod:5513
13588 msgid ""
13589 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13590 "C<guestfs_mkdir>."
13591 msgstr ""
13592
13593 # type: textblock
13594 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:4048
13595 msgid "This call returns the previous umask."
13596 msgstr ""
13597
13598 # type: =head2
13599 #: ../src/guestfs-actions.pod:5520
13600 msgid "guestfs_umount"
13601 msgstr ""
13602
13603 # type: verbatim
13604 #: ../src/guestfs-actions.pod:5522
13605 #, no-wrap
13606 msgid ""
13607 " int\n"
13608 " guestfs_umount (guestfs_h *g,\n"
13609 "                 const char *pathordevice);\n"
13610 "\n"
13611 msgstr ""
13612
13613 # type: textblock
13614 #: ../src/guestfs-actions.pod:5526 ../fish/guestfish-actions.pod:4056
13615 msgid ""
13616 "This unmounts the given filesystem.  The filesystem may be specified either "
13617 "by its mountpoint (path) or the device which contains the filesystem."
13618 msgstr ""
13619
13620 # type: =head2
13621 #: ../src/guestfs-actions.pod:5532
13622 msgid "guestfs_umount_all"
13623 msgstr ""
13624
13625 # type: verbatim
13626 #: ../src/guestfs-actions.pod:5534
13627 #, no-wrap
13628 msgid ""
13629 " int\n"
13630 " guestfs_umount_all (guestfs_h *g);\n"
13631 "\n"
13632 msgstr ""
13633
13634 # type: textblock
13635 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:4066
13636 msgid "This unmounts all mounted filesystems."
13637 msgstr ""
13638
13639 # type: textblock
13640 #: ../src/guestfs-actions.pod:5539 ../fish/guestfish-actions.pod:4068
13641 msgid "Some internal mounts are not unmounted by this call."
13642 msgstr ""
13643
13644 # type: =head2
13645 #: ../src/guestfs-actions.pod:5543
13646 msgid "guestfs_upload"
13647 msgstr ""
13648
13649 # type: verbatim
13650 #: ../src/guestfs-actions.pod:5545
13651 #, no-wrap
13652 msgid ""
13653 " int\n"
13654 " guestfs_upload (guestfs_h *g,\n"
13655 "                 const char *filename,\n"
13656 "                 const char *remotefilename);\n"
13657 "\n"
13658 msgstr ""
13659
13660 # type: textblock
13661 #: ../src/guestfs-actions.pod:5550 ../src/guestfs-actions.pod:5567 ../fish/guestfish-actions.pod:4074 ../fish/guestfish-actions.pod:4087
13662 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13663 msgstr ""
13664
13665 # type: textblock
13666 #: ../src/guestfs-actions.pod:5555
13667 msgid "See also C<guestfs_download>."
13668 msgstr ""
13669
13670 # type: =head2
13671 #: ../src/guestfs-actions.pod:5559
13672 msgid "guestfs_upload_offset"
13673 msgstr ""
13674
13675 # type: verbatim
13676 #: ../src/guestfs-actions.pod:5561
13677 #, no-wrap
13678 msgid ""
13679 " int\n"
13680 " guestfs_upload_offset (guestfs_h *g,\n"
13681 "                        const char *filename,\n"
13682 "                        const char *remotefilename,\n"
13683 "                        int64_t offset);\n"
13684 "\n"
13685 msgstr ""
13686
13687 # type: textblock
13688 #: ../src/guestfs-actions.pod:5570 ../fish/guestfish-actions.pod:4090
13689 msgid ""
13690 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
13691 "The intention is to overwrite parts of existing files or devices, although "
13692 "if a non-existant file is specified then it is created with a \"hole\" "
13693 "before C<offset>.  The size of the data written is implicit in the size of "
13694 "the source C<filename>."
13695 msgstr ""
13696
13697 # type: textblock
13698 #: ../src/guestfs-actions.pod:5577
13699 msgid ""
13700 "Note that there is no limit on the amount of data that can be uploaded with "
13701 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
13702 "full amount unless an error occurs."
13703 msgstr ""
13704
13705 # type: textblock
13706 #: ../src/guestfs-actions.pod:5582
13707 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
13708 msgstr ""
13709
13710 # type: =head2
13711 #: ../src/guestfs-actions.pod:5586
13712 msgid "guestfs_utimens"
13713 msgstr ""
13714
13715 # type: verbatim
13716 #: ../src/guestfs-actions.pod:5588
13717 #, no-wrap
13718 msgid ""
13719 " int\n"
13720 " guestfs_utimens (guestfs_h *g,\n"
13721 "                  const char *path,\n"
13722 "                  int64_t atsecs,\n"
13723 "                  int64_t atnsecs,\n"
13724 "                  int64_t mtsecs,\n"
13725 "                  int64_t mtnsecs);\n"
13726 "\n"
13727 msgstr ""
13728
13729 # type: textblock
13730 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:4110
13731 msgid "This command sets the timestamps of a file with nanosecond precision."
13732 msgstr ""
13733
13734 # type: textblock
13735 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:4113
13736 msgid ""
13737 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
13738 "from the epoch."
13739 msgstr ""
13740
13741 # type: textblock
13742 #: ../src/guestfs-actions.pod:5602 ../fish/guestfish-actions.pod:4116
13743 msgid ""
13744 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
13745 "nanoseconds from the epoch."
13746 msgstr ""
13747
13748 # type: textblock
13749 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:4119
13750 msgid ""
13751 "If the C<*nsecs> field contains the special value C<-1> then the "
13752 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
13753 "ignored in this case)."
13754 msgstr ""
13755
13756 # type: textblock
13757 #: ../src/guestfs-actions.pod:5609 ../fish/guestfish-actions.pod:4123
13758 msgid ""
13759 "If the C<*nsecs> field contains the special value C<-2> then the "
13760 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
13761 "in this case)."
13762 msgstr ""
13763
13764 # type: =head2
13765 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-structs.pod:175
13766 msgid "guestfs_version"
13767 msgstr ""
13768
13769 # type: verbatim
13770 #: ../src/guestfs-actions.pod:5617
13771 #, no-wrap
13772 msgid ""
13773 " struct guestfs_version *\n"
13774 " guestfs_version (guestfs_h *g);\n"
13775 "\n"
13776 msgstr ""
13777
13778 # type: textblock
13779 #: ../src/guestfs-actions.pod:5620 ../fish/guestfish-actions.pod:4131
13780 msgid "Return the libguestfs version number that the program is linked against."
13781 msgstr ""
13782
13783 # type: textblock
13784 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:4134
13785 msgid ""
13786 "Note that because of dynamic linking this is not necessarily the version of "
13787 "libguestfs that you compiled against.  You can compile the program, and then "
13788 "at runtime dynamically link against a completely different C<libguestfs.so> "
13789 "library."
13790 msgstr ""
13791
13792 # type: textblock
13793 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:4139
13794 msgid ""
13795 "This call was added in version C<1.0.58>.  In previous versions of "
13796 "libguestfs there was no way to get the version number.  From C code you can "
13797 "use dynamic linker functions to find out if this symbol exists (if it "
13798 "doesn't, then it's an earlier version)."
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:4145
13803 msgid ""
13804 "The call returns a structure with four elements.  The first three (C<major>, "
13805 "C<minor> and C<release>) are numbers and correspond to the usual version "
13806 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
13807 "but may be used for distro-specific information."
13808 msgstr ""
13809
13810 # type: textblock
13811 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:4151
13812 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
13813 msgstr ""
13814
13815 # type: textblock
13816 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:4154
13817 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
13818 msgstr ""
13819
13820 # type: textblock
13821 #: ../src/guestfs-actions.pod:5645
13822 msgid ""
13823 "I<Note:> Don't use this call to test for availability of features.  In "
13824 "enterprise distributions we backport features from later versions into "
13825 "earlier versions, making this an unreliable way to test for features.  Use "
13826 "C<guestfs_available> instead."
13827 msgstr ""
13828
13829 # type: textblock
13830 #: ../src/guestfs-actions.pod:5651
13831 msgid ""
13832 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
13833 "error.  I<The caller must call C<guestfs_free_version> after use>."
13834 msgstr ""
13835
13836 # type: =head2
13837 #: ../src/guestfs-actions.pod:5655
13838 msgid "guestfs_vfs_label"
13839 msgstr ""
13840
13841 # type: verbatim
13842 #: ../src/guestfs-actions.pod:5657
13843 #, no-wrap
13844 msgid ""
13845 " char *\n"
13846 " guestfs_vfs_label (guestfs_h *g,\n"
13847 "                    const char *device);\n"
13848 "\n"
13849 msgstr ""
13850
13851 # type: textblock
13852 #: ../src/guestfs-actions.pod:5661 ../fish/guestfish-actions.pod:4166
13853 msgid "This returns the filesystem label of the filesystem on C<device>."
13854 msgstr ""
13855
13856 # type: textblock
13857 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:4169
13858 msgid "If the filesystem is unlabeled, this returns the empty string."
13859 msgstr ""
13860
13861 # type: textblock
13862 #: ../src/guestfs-actions.pod:5666
13863 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
13864 msgstr ""
13865
13866 # type: =head2
13867 #: ../src/guestfs-actions.pod:5671
13868 msgid "guestfs_vfs_type"
13869 msgstr ""
13870
13871 # type: verbatim
13872 #: ../src/guestfs-actions.pod:5673
13873 #, no-wrap
13874 msgid ""
13875 " char *\n"
13876 " guestfs_vfs_type (guestfs_h *g,\n"
13877 "                   const char *device);\n"
13878 "\n"
13879 msgstr ""
13880
13881 # type: textblock
13882 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:4177
13883 msgid ""
13884 "This command gets the filesystem type corresponding to the filesystem on "
13885 "C<device>."
13886 msgstr ""
13887
13888 # type: textblock
13889 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:4180
13890 msgid ""
13891 "For most filesystems, the result is the name of the Linux VFS module which "
13892 "would be used to mount this filesystem if you mounted it without specifying "
13893 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
13894 msgstr ""
13895
13896 # type: =head2
13897 #: ../src/guestfs-actions.pod:5688
13898 msgid "guestfs_vfs_uuid"
13899 msgstr ""
13900
13901 # type: verbatim
13902 #: ../src/guestfs-actions.pod:5690
13903 #, no-wrap
13904 msgid ""
13905 " char *\n"
13906 " guestfs_vfs_uuid (guestfs_h *g,\n"
13907 "                   const char *device);\n"
13908 "\n"
13909 msgstr ""
13910
13911 # type: textblock
13912 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:4189
13913 msgid "This returns the filesystem UUID of the filesystem on C<device>."
13914 msgstr ""
13915
13916 # type: textblock
13917 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:4192
13918 msgid "If the filesystem does not have a UUID, this returns the empty string."
13919 msgstr ""
13920
13921 # type: textblock
13922 #: ../src/guestfs-actions.pod:5699
13923 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
13924 msgstr ""
13925
13926 # type: =head2
13927 #: ../src/guestfs-actions.pod:5704
13928 msgid "guestfs_vg_activate"
13929 msgstr ""
13930
13931 # type: verbatim
13932 #: ../src/guestfs-actions.pod:5706
13933 #, no-wrap
13934 msgid ""
13935 " int\n"
13936 " guestfs_vg_activate (guestfs_h *g,\n"
13937 "                      int activate,\n"
13938 "                      char *const *volgroups);\n"
13939 "\n"
13940 msgstr ""
13941
13942 # type: textblock
13943 #: ../src/guestfs-actions.pod:5711 ../fish/guestfish-actions.pod:4200
13944 msgid ""
13945 "This command activates or (if C<activate> is false) deactivates all logical "
13946 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
13947 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
13948 "deactivated, then those devices disappear."
13949 msgstr ""
13950
13951 # type: textblock
13952 #: ../src/guestfs-actions.pod:5717 ../fish/guestfish-actions.pod:4206
13953 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
13954 msgstr ""
13955
13956 # type: textblock
13957 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:4208
13958 msgid ""
13959 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
13960 "activated or deactivated."
13961 msgstr ""
13962
13963 # type: =head2
13964 #: ../src/guestfs-actions.pod:5724
13965 msgid "guestfs_vg_activate_all"
13966 msgstr ""
13967
13968 # type: verbatim
13969 #: ../src/guestfs-actions.pod:5726
13970 #, no-wrap
13971 msgid ""
13972 " int\n"
13973 " guestfs_vg_activate_all (guestfs_h *g,\n"
13974 "                          int activate);\n"
13975 "\n"
13976 msgstr ""
13977
13978 # type: textblock
13979 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:4215
13980 msgid ""
13981 "This command activates or (if C<activate> is false) deactivates all logical "
13982 "volumes in all volume groups.  If activated, then they are made known to the "
13983 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
13984 "those devices disappear."
13985 msgstr ""
13986
13987 # type: textblock
13988 #: ../src/guestfs-actions.pod:5736 ../fish/guestfish-actions.pod:4221
13989 msgid "This command is the same as running C<vgchange -a y|n>"
13990 msgstr ""
13991
13992 # type: =head2
13993 #: ../src/guestfs-actions.pod:5740
13994 msgid "guestfs_vgcreate"
13995 msgstr ""
13996
13997 # type: verbatim
13998 #: ../src/guestfs-actions.pod:5742
13999 #, no-wrap
14000 msgid ""
14001 " int\n"
14002 " guestfs_vgcreate (guestfs_h *g,\n"
14003 "                   const char *volgroup,\n"
14004 "                   char *const *physvols);\n"
14005 "\n"
14006 msgstr ""
14007
14008 # type: textblock
14009 #: ../src/guestfs-actions.pod:5747 ../fish/guestfish-actions.pod:4227
14010 msgid ""
14011 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14012 "of physical volumes C<physvols>."
14013 msgstr ""
14014
14015 # type: =head2
14016 #: ../src/guestfs-actions.pod:5752
14017 msgid "guestfs_vglvuuids"
14018 msgstr ""
14019
14020 # type: verbatim
14021 #: ../src/guestfs-actions.pod:5754
14022 #, no-wrap
14023 msgid ""
14024 " char **\n"
14025 " guestfs_vglvuuids (guestfs_h *g,\n"
14026 "                    const char *vgname);\n"
14027 "\n"
14028 msgstr ""
14029
14030 # type: textblock
14031 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:4234
14032 msgid ""
14033 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14034 "volumes created in this volume group."
14035 msgstr ""
14036
14037 # type: textblock
14038 #: ../src/guestfs-actions.pod:5761
14039 msgid ""
14040 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14041 "associate logical volumes and volume groups."
14042 msgstr ""
14043
14044 # type: textblock
14045 #: ../src/guestfs-actions.pod:5764
14046 msgid "See also C<guestfs_vgpvuuids>."
14047 msgstr ""
14048
14049 # type: =head2
14050 #: ../src/guestfs-actions.pod:5770
14051 msgid "guestfs_vgpvuuids"
14052 msgstr ""
14053
14054 # type: verbatim
14055 #: ../src/guestfs-actions.pod:5772
14056 #, no-wrap
14057 msgid ""
14058 " char **\n"
14059 " guestfs_vgpvuuids (guestfs_h *g,\n"
14060 "                    const char *vgname);\n"
14061 "\n"
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5776 ../fish/guestfish-actions.pod:4246
14066 msgid ""
14067 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14068 "volumes that this volume group resides on."
14069 msgstr ""
14070
14071 # type: textblock
14072 #: ../src/guestfs-actions.pod:5779
14073 msgid ""
14074 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14075 "associate physical volumes and volume groups."
14076 msgstr ""
14077
14078 # type: textblock
14079 #: ../src/guestfs-actions.pod:5782
14080 msgid "See also C<guestfs_vglvuuids>."
14081 msgstr ""
14082
14083 # type: =head2
14084 #: ../src/guestfs-actions.pod:5788
14085 msgid "guestfs_vgremove"
14086 msgstr ""
14087
14088 # type: verbatim
14089 #: ../src/guestfs-actions.pod:5790
14090 #, no-wrap
14091 msgid ""
14092 " int\n"
14093 " guestfs_vgremove (guestfs_h *g,\n"
14094 "                   const char *vgname);\n"
14095 "\n"
14096 msgstr ""
14097
14098 # type: textblock
14099 #: ../src/guestfs-actions.pod:5794 ../fish/guestfish-actions.pod:4258
14100 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14101 msgstr ""
14102
14103 # type: textblock
14104 #: ../src/guestfs-actions.pod:5796 ../fish/guestfish-actions.pod:4260
14105 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14106 msgstr ""
14107
14108 # type: =head2
14109 #: ../src/guestfs-actions.pod:5801
14110 msgid "guestfs_vgrename"
14111 msgstr ""
14112
14113 # type: verbatim
14114 #: ../src/guestfs-actions.pod:5803
14115 #, no-wrap
14116 msgid ""
14117 " int\n"
14118 " guestfs_vgrename (guestfs_h *g,\n"
14119 "                   const char *volgroup,\n"
14120 "                   const char *newvolgroup);\n"
14121 "\n"
14122 msgstr ""
14123
14124 # type: textblock
14125 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:4267
14126 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14127 msgstr ""
14128
14129 # type: =head2
14130 #: ../src/guestfs-actions.pod:5812
14131 msgid "guestfs_vgs"
14132 msgstr ""
14133
14134 # type: verbatim
14135 #: ../src/guestfs-actions.pod:5814
14136 #, no-wrap
14137 msgid ""
14138 " char **\n"
14139 " guestfs_vgs (guestfs_h *g);\n"
14140 "\n"
14141 msgstr ""
14142
14143 # type: textblock
14144 #: ../src/guestfs-actions.pod:5817 ../fish/guestfish-actions.pod:4273
14145 msgid ""
14146 "List all the volumes groups detected.  This is the equivalent of the "
14147 "L<vgs(8)> command."
14148 msgstr ""
14149
14150 # type: textblock
14151 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:4276
14152 msgid ""
14153 "This returns a list of just the volume group names that were detected "
14154 "(eg. C<VolGroup00>)."
14155 msgstr ""
14156
14157 # type: textblock
14158 #: ../src/guestfs-actions.pod:5823
14159 msgid "See also C<guestfs_vgs_full>."
14160 msgstr ""
14161
14162 # type: =head2
14163 #: ../src/guestfs-actions.pod:5829
14164 msgid "guestfs_vgs_full"
14165 msgstr ""
14166
14167 # type: verbatim
14168 #: ../src/guestfs-actions.pod:5831
14169 #, no-wrap
14170 msgid ""
14171 " struct guestfs_lvm_vg_list *\n"
14172 " guestfs_vgs_full (guestfs_h *g);\n"
14173 "\n"
14174 msgstr ""
14175
14176 # type: textblock
14177 #: ../src/guestfs-actions.pod:5834 ../fish/guestfish-actions.pod:4285
14178 msgid ""
14179 "List all the volumes groups detected.  This is the equivalent of the "
14180 "L<vgs(8)> command.  The \"full\" version includes all fields."
14181 msgstr ""
14182
14183 # type: textblock
14184 #: ../src/guestfs-actions.pod:5837
14185 msgid ""
14186 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
14187 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
14188 "must call C<guestfs_free_lvm_vg_list> after use>."
14189 msgstr ""
14190
14191 # type: =head2
14192 #: ../src/guestfs-actions.pod:5842
14193 msgid "guestfs_vgscan"
14194 msgstr ""
14195
14196 # type: verbatim
14197 #: ../src/guestfs-actions.pod:5844
14198 #, no-wrap
14199 msgid ""
14200 " int\n"
14201 " guestfs_vgscan (guestfs_h *g);\n"
14202 "\n"
14203 msgstr ""
14204
14205 # type: textblock
14206 #: ../src/guestfs-actions.pod:5847 ../fish/guestfish-actions.pod:4292
14207 msgid ""
14208 "This rescans all block devices and rebuilds the list of LVM physical "
14209 "volumes, volume groups and logical volumes."
14210 msgstr ""
14211
14212 # type: =head2
14213 #: ../src/guestfs-actions.pod:5852
14214 msgid "guestfs_vguuid"
14215 msgstr ""
14216
14217 # type: verbatim
14218 #: ../src/guestfs-actions.pod:5854
14219 #, no-wrap
14220 msgid ""
14221 " char *\n"
14222 " guestfs_vguuid (guestfs_h *g,\n"
14223 "                 const char *vgname);\n"
14224 "\n"
14225 msgstr ""
14226
14227 # type: textblock
14228 #: ../src/guestfs-actions.pod:5858 ../fish/guestfish-actions.pod:4299
14229 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14230 msgstr ""
14231
14232 # type: =head2
14233 #: ../src/guestfs-actions.pod:5863
14234 msgid "guestfs_wait_ready"
14235 msgstr ""
14236
14237 # type: verbatim
14238 #: ../src/guestfs-actions.pod:5865
14239 #, no-wrap
14240 msgid ""
14241 " int\n"
14242 " guestfs_wait_ready (guestfs_h *g);\n"
14243 "\n"
14244 msgstr ""
14245
14246 # type: textblock
14247 #: ../src/guestfs-actions.pod:5868
14248 msgid "This function is a no op."
14249 msgstr ""
14250
14251 # type: textblock
14252 #: ../src/guestfs-actions.pod:5870
14253 msgid ""
14254 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14255 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14256 "is no longer necessary because C<guestfs_launch> now does the waiting."
14257 msgstr ""
14258
14259 # type: textblock
14260 #: ../src/guestfs-actions.pod:5875
14261 msgid ""
14262 "If you see any calls to this function in code then you can just remove them, "
14263 "unless you want to retain compatibility with older versions of the API."
14264 msgstr ""
14265
14266 # type: =head2
14267 #: ../src/guestfs-actions.pod:5881
14268 msgid "guestfs_wc_c"
14269 msgstr ""
14270
14271 # type: verbatim
14272 #: ../src/guestfs-actions.pod:5883
14273 #, no-wrap
14274 msgid ""
14275 " int\n"
14276 " guestfs_wc_c (guestfs_h *g,\n"
14277 "               const char *path);\n"
14278 "\n"
14279 msgstr ""
14280
14281 # type: textblock
14282 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:4305
14283 msgid ""
14284 "This command counts the characters in a file, using the C<wc -c> external "
14285 "command."
14286 msgstr ""
14287
14288 # type: =head2
14289 #: ../src/guestfs-actions.pod:5892
14290 msgid "guestfs_wc_l"
14291 msgstr ""
14292
14293 # type: verbatim
14294 #: ../src/guestfs-actions.pod:5894
14295 #, no-wrap
14296 msgid ""
14297 " int\n"
14298 " guestfs_wc_l (guestfs_h *g,\n"
14299 "               const char *path);\n"
14300 "\n"
14301 msgstr ""
14302
14303 # type: textblock
14304 #: ../src/guestfs-actions.pod:5898 ../fish/guestfish-actions.pod:4312
14305 msgid ""
14306 "This command counts the lines in a file, using the C<wc -l> external "
14307 "command."
14308 msgstr ""
14309
14310 # type: =head2
14311 #: ../src/guestfs-actions.pod:5903
14312 msgid "guestfs_wc_w"
14313 msgstr ""
14314
14315 # type: verbatim
14316 #: ../src/guestfs-actions.pod:5905
14317 #, no-wrap
14318 msgid ""
14319 " int\n"
14320 " guestfs_wc_w (guestfs_h *g,\n"
14321 "               const char *path);\n"
14322 "\n"
14323 msgstr ""
14324
14325 # type: textblock
14326 #: ../src/guestfs-actions.pod:5909 ../fish/guestfish-actions.pod:4319
14327 msgid ""
14328 "This command counts the words in a file, using the C<wc -w> external "
14329 "command."
14330 msgstr ""
14331
14332 # type: =head2
14333 #: ../src/guestfs-actions.pod:5914
14334 msgid "guestfs_write"
14335 msgstr ""
14336
14337 # type: verbatim
14338 #: ../src/guestfs-actions.pod:5916
14339 #, no-wrap
14340 msgid ""
14341 " int\n"
14342 " guestfs_write (guestfs_h *g,\n"
14343 "                const char *path,\n"
14344 "                const char *content,\n"
14345 "                size_t content_size);\n"
14346 "\n"
14347 msgstr ""
14348
14349 # type: textblock
14350 #: ../src/guestfs-actions.pod:5922 ../fish/guestfish-actions.pod:4326
14351 msgid ""
14352 "This call creates a file called C<path>.  The content of the file is the "
14353 "string C<content> (which can contain any 8 bit data)."
14354 msgstr ""
14355
14356 # type: =head2
14357 #: ../src/guestfs-actions.pod:5930
14358 msgid "guestfs_write_file"
14359 msgstr ""
14360
14361 # type: verbatim
14362 #: ../src/guestfs-actions.pod:5932
14363 #, no-wrap
14364 msgid ""
14365 " int\n"
14366 " guestfs_write_file (guestfs_h *g,\n"
14367 "                     const char *path,\n"
14368 "                     const char *content,\n"
14369 "                     int size);\n"
14370 "\n"
14371 msgstr ""
14372
14373 # type: textblock
14374 #: ../src/guestfs-actions.pod:5938 ../fish/guestfish-actions.pod:4336
14375 msgid ""
14376 "This call creates a file called C<path>.  The contents of the file is the "
14377 "string C<content> (which can contain any 8 bit data), with length C<size>."
14378 msgstr ""
14379
14380 # type: textblock
14381 #: ../src/guestfs-actions.pod:5942 ../fish/guestfish-actions.pod:4340
14382 msgid ""
14383 "As a special case, if C<size> is C<0> then the length is calculated using "
14384 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14385 msgstr ""
14386
14387 # type: textblock
14388 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:4344
14389 msgid ""
14390 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14391 "I<not> work, even if the length is specified."
14392 msgstr ""
14393
14394 # type: textblock
14395 #: ../src/guestfs-actions.pod:5954 ../fish/guestfish-actions.pod:4350
14396 msgid "This function is deprecated.  In new code, use the C<write> call instead."
14397 msgstr ""
14398
14399 # type: =head2
14400 #: ../src/guestfs-actions.pod:5961
14401 msgid "guestfs_zegrep"
14402 msgstr ""
14403
14404 # type: verbatim
14405 #: ../src/guestfs-actions.pod:5963
14406 #, no-wrap
14407 msgid ""
14408 " char **\n"
14409 " guestfs_zegrep (guestfs_h *g,\n"
14410 "                 const char *regex,\n"
14411 "                 const char *path);\n"
14412 "\n"
14413 msgstr ""
14414
14415 # type: textblock
14416 #: ../src/guestfs-actions.pod:5968 ../fish/guestfish-actions.pod:4361
14417 msgid "This calls the external C<zegrep> program and returns the matching lines."
14418 msgstr ""
14419
14420 # type: =head2
14421 #: ../src/guestfs-actions.pod:5978
14422 msgid "guestfs_zegrepi"
14423 msgstr ""
14424
14425 # type: verbatim
14426 #: ../src/guestfs-actions.pod:5980
14427 #, no-wrap
14428 msgid ""
14429 " char **\n"
14430 " guestfs_zegrepi (guestfs_h *g,\n"
14431 "                  const char *regex,\n"
14432 "                  const char *path);\n"
14433 "\n"
14434 msgstr ""
14435
14436 # type: textblock
14437 #: ../src/guestfs-actions.pod:5985 ../fish/guestfish-actions.pod:4371
14438 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14439 msgstr ""
14440
14441 # type: =head2
14442 #: ../src/guestfs-actions.pod:5995
14443 msgid "guestfs_zero"
14444 msgstr ""
14445
14446 # type: verbatim
14447 #: ../src/guestfs-actions.pod:5997
14448 #, no-wrap
14449 msgid ""
14450 " int\n"
14451 " guestfs_zero (guestfs_h *g,\n"
14452 "               const char *device);\n"
14453 "\n"
14454 msgstr ""
14455
14456 # type: textblock
14457 #: ../src/guestfs-actions.pod:6001 ../fish/guestfish-actions.pod:4381
14458 msgid "This command writes zeroes over the first few blocks of C<device>."
14459 msgstr ""
14460
14461 # type: textblock
14462 #: ../src/guestfs-actions.pod:6003 ../fish/guestfish-actions.pod:4383
14463 msgid ""
14464 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14465 "securely wipe the device).  It should be sufficient to remove any partition "
14466 "tables, filesystem superblocks and so on."
14467 msgstr ""
14468
14469 # type: textblock
14470 #: ../src/guestfs-actions.pod:6007
14471 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14472 msgstr ""
14473
14474 # type: =head2
14475 #: ../src/guestfs-actions.pod:6016
14476 msgid "guestfs_zero_device"
14477 msgstr ""
14478
14479 # type: verbatim
14480 #: ../src/guestfs-actions.pod:6018
14481 #, no-wrap
14482 msgid ""
14483 " int\n"
14484 " guestfs_zero_device (guestfs_h *g,\n"
14485 "                      const char *device);\n"
14486 "\n"
14487 msgstr ""
14488
14489 # type: textblock
14490 #: ../src/guestfs-actions.pod:6022
14491 msgid ""
14492 "This command writes zeroes over the entire C<device>.  Compare with "
14493 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14494 msgstr ""
14495
14496 # type: =head2
14497 #: ../src/guestfs-actions.pod:6036
14498 msgid "guestfs_zerofree"
14499 msgstr ""
14500
14501 # type: verbatim
14502 #: ../src/guestfs-actions.pod:6038
14503 #, no-wrap
14504 msgid ""
14505 " int\n"
14506 " guestfs_zerofree (guestfs_h *g,\n"
14507 "                   const char *device);\n"
14508 "\n"
14509 msgstr ""
14510
14511 # type: textblock
14512 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:4404
14513 msgid ""
14514 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14515 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14516 "possible to compress the filesystem more effectively."
14517 msgstr ""
14518
14519 # type: textblock
14520 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4409
14521 msgid "You should B<not> run this program if the filesystem is mounted."
14522 msgstr ""
14523
14524 # type: textblock
14525 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4412
14526 msgid ""
14527 "It is possible that using this program can damage the filesystem or data on "
14528 "the filesystem."
14529 msgstr ""
14530
14531 # type: =head2
14532 #: ../src/guestfs-actions.pod:6055
14533 msgid "guestfs_zfgrep"
14534 msgstr ""
14535
14536 # type: verbatim
14537 #: ../src/guestfs-actions.pod:6057
14538 #, no-wrap
14539 msgid ""
14540 " char **\n"
14541 " guestfs_zfgrep (guestfs_h *g,\n"
14542 "                 const char *pattern,\n"
14543 "                 const char *path);\n"
14544 "\n"
14545 msgstr ""
14546
14547 # type: textblock
14548 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4419
14549 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14550 msgstr ""
14551
14552 # type: =head2
14553 #: ../src/guestfs-actions.pod:6072
14554 msgid "guestfs_zfgrepi"
14555 msgstr ""
14556
14557 # type: verbatim
14558 #: ../src/guestfs-actions.pod:6074
14559 #, no-wrap
14560 msgid ""
14561 " char **\n"
14562 " guestfs_zfgrepi (guestfs_h *g,\n"
14563 "                  const char *pattern,\n"
14564 "                  const char *path);\n"
14565 "\n"
14566 msgstr ""
14567
14568 # type: textblock
14569 #: ../src/guestfs-actions.pod:6079 ../fish/guestfish-actions.pod:4429
14570 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14571 msgstr ""
14572
14573 # type: =head2
14574 #: ../src/guestfs-actions.pod:6089
14575 msgid "guestfs_zfile"
14576 msgstr ""
14577
14578 # type: verbatim
14579 #: ../src/guestfs-actions.pod:6091
14580 #, no-wrap
14581 msgid ""
14582 " char *\n"
14583 " guestfs_zfile (guestfs_h *g,\n"
14584 "                const char *meth,\n"
14585 "                const char *path);\n"
14586 "\n"
14587 msgstr ""
14588
14589 # type: textblock
14590 #: ../src/guestfs-actions.pod:6096 ../fish/guestfish-actions.pod:4439
14591 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14592 msgstr ""
14593
14594 # type: textblock
14595 #: ../src/guestfs-actions.pod:6099 ../fish/guestfish-actions.pod:4442
14596 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14597 msgstr ""
14598
14599 # type: textblock
14600 #: ../src/guestfs-actions.pod:6101
14601 msgid ""
14602 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14603 "files."
14604 msgstr ""
14605
14606 # type: textblock
14607 #: ../src/guestfs-actions.pod:6107 ../fish/guestfish-actions.pod:4447
14608 msgid "This function is deprecated.  In new code, use the C<file> call instead."
14609 msgstr ""
14610
14611 # type: =head2
14612 #: ../src/guestfs-actions.pod:6114
14613 msgid "guestfs_zgrep"
14614 msgstr ""
14615
14616 # type: verbatim
14617 #: ../src/guestfs-actions.pod:6116
14618 #, no-wrap
14619 msgid ""
14620 " char **\n"
14621 " guestfs_zgrep (guestfs_h *g,\n"
14622 "                const char *regex,\n"
14623 "                const char *path);\n"
14624 "\n"
14625 msgstr ""
14626
14627 # type: textblock
14628 #: ../src/guestfs-actions.pod:6121 ../fish/guestfish-actions.pod:4458
14629 msgid "This calls the external C<zgrep> program and returns the matching lines."
14630 msgstr ""
14631
14632 # type: =head2
14633 #: ../src/guestfs-actions.pod:6131
14634 msgid "guestfs_zgrepi"
14635 msgstr ""
14636
14637 # type: verbatim
14638 #: ../src/guestfs-actions.pod:6133
14639 #, no-wrap
14640 msgid ""
14641 " char **\n"
14642 " guestfs_zgrepi (guestfs_h *g,\n"
14643 "                 const char *regex,\n"
14644 "                 const char *path);\n"
14645 "\n"
14646 msgstr ""
14647
14648 # type: textblock
14649 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4468
14650 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14651 msgstr ""
14652
14653 # type: =item
14654 #: ../src/guestfs-availability.pod:3
14655 msgid "B<augeas>"
14656 msgstr ""
14657
14658 # type: textblock
14659 #: ../src/guestfs-availability.pod:5
14660 msgid ""
14661 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
14662 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
14663 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
14664 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
14665 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
14666 msgstr ""
14667
14668 # type: =item
14669 #: ../src/guestfs-availability.pod:21
14670 msgid "B<inotify>"
14671 msgstr ""
14672
14673 # type: textblock
14674 #: ../src/guestfs-availability.pod:23
14675 msgid ""
14676 "The following functions: L</guestfs_inotify_add_watch> "
14677 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
14678 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
14679 msgstr ""
14680
14681 # type: =item
14682 #: ../src/guestfs-availability.pod:31
14683 msgid "B<linuxfsuuid>"
14684 msgstr ""
14685
14686 # type: textblock
14687 #: ../src/guestfs-availability.pod:33
14688 msgid ""
14689 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
14690 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
14691 msgstr ""
14692
14693 # type: =item
14694 #: ../src/guestfs-availability.pod:40
14695 msgid "B<linuxmodules>"
14696 msgstr ""
14697
14698 # type: textblock
14699 #: ../src/guestfs-availability.pod:42
14700 msgid "The following functions: L</guestfs_modprobe>"
14701 msgstr ""
14702
14703 # type: =item
14704 #: ../src/guestfs-availability.pod:45
14705 msgid "B<linuxxattrs>"
14706 msgstr ""
14707
14708 # type: textblock
14709 #: ../src/guestfs-availability.pod:47
14710 msgid ""
14711 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
14712 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
14713 "L</guestfs_removexattr> L</guestfs_setxattr>"
14714 msgstr ""
14715
14716 # type: =item
14717 #: ../src/guestfs-availability.pod:56
14718 msgid "B<luks>"
14719 msgstr ""
14720
14721 # type: textblock
14722 #: ../src/guestfs-availability.pod:58
14723 msgid ""
14724 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
14725 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
14726 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
14727 msgstr ""
14728
14729 # type: =item
14730 #: ../src/guestfs-availability.pod:67
14731 msgid "B<lvm2>"
14732 msgstr ""
14733
14734 # type: textblock
14735 #: ../src/guestfs-availability.pod:69
14736 msgid ""
14737 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
14738 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
14739 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
14740 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
14741 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
14742 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
14743 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
14744 "L</guestfs_vgs_full>"
14745 msgstr ""
14746
14747 # type: =item
14748 #: ../src/guestfs-availability.pod:92
14749 msgid "B<mknod>"
14750 msgstr ""
14751
14752 # type: textblock
14753 #: ../src/guestfs-availability.pod:94
14754 msgid ""
14755 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
14756 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
14757 msgstr ""
14758
14759 # type: =item
14760 #: ../src/guestfs-availability.pod:100
14761 msgid "B<ntfs3g>"
14762 msgstr ""
14763
14764 # type: textblock
14765 #: ../src/guestfs-availability.pod:102
14766 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
14767 msgstr ""
14768
14769 # type: =item
14770 #: ../src/guestfs-availability.pod:105
14771 msgid "B<ntfsprogs>"
14772 msgstr ""
14773
14774 # type: textblock
14775 #: ../src/guestfs-availability.pod:107
14776 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
14777 msgstr ""
14778
14779 # type: =item
14780 #: ../src/guestfs-availability.pod:111
14781 msgid "B<realpath>"
14782 msgstr ""
14783
14784 # type: textblock
14785 #: ../src/guestfs-availability.pod:113
14786 msgid "The following functions: L</guestfs_realpath>"
14787 msgstr ""
14788
14789 # type: =item
14790 #: ../src/guestfs-availability.pod:116
14791 msgid "B<scrub>"
14792 msgstr ""
14793
14794 # type: textblock
14795 #: ../src/guestfs-availability.pod:118
14796 msgid ""
14797 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
14798 "L</guestfs_scrub_freespace>"
14799 msgstr ""
14800
14801 # type: =item
14802 #: ../src/guestfs-availability.pod:123
14803 msgid "B<selinux>"
14804 msgstr ""
14805
14806 # type: textblock
14807 #: ../src/guestfs-availability.pod:125
14808 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
14809 msgstr ""
14810
14811 # type: =item
14812 #: ../src/guestfs-availability.pod:129
14813 msgid "B<xz>"
14814 msgstr ""
14815
14816 # type: textblock
14817 #: ../src/guestfs-availability.pod:131
14818 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
14819 msgstr ""
14820
14821 # type: =item
14822 #: ../src/guestfs-availability.pod:135
14823 msgid "B<zerofree>"
14824 msgstr ""
14825
14826 # type: textblock
14827 #: ../src/guestfs-availability.pod:137
14828 msgid "The following functions: L</guestfs_zerofree>"
14829 msgstr ""
14830
14831 # type: =head2
14832 #: ../src/guestfs-structs.pod:1
14833 msgid "guestfs_int_bool"
14834 msgstr ""
14835
14836 # type: verbatim
14837 #: ../src/guestfs-structs.pod:3
14838 #, no-wrap
14839 msgid ""
14840 " struct guestfs_int_bool {\n"
14841 "   int32_t i;\n"
14842 "   int32_t b;\n"
14843 " };\n"
14844 " \n"
14845 msgstr ""
14846
14847 # type: verbatim
14848 #: ../src/guestfs-structs.pod:8
14849 #, no-wrap
14850 msgid ""
14851 " struct guestfs_int_bool_list {\n"
14852 "   uint32_t len; /* Number of elements in list. */\n"
14853 "   struct guestfs_int_bool *val; /* Elements. */\n"
14854 " };\n"
14855 " \n"
14856 msgstr ""
14857
14858 # type: verbatim
14859 #: ../src/guestfs-structs.pod:13
14860 #, no-wrap
14861 msgid ""
14862 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
14863 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
14864 "\n"
14865 msgstr ""
14866
14867 # type: =head2
14868 #: ../src/guestfs-structs.pod:16
14869 msgid "guestfs_lvm_pv"
14870 msgstr ""
14871
14872 # type: verbatim
14873 #: ../src/guestfs-structs.pod:18
14874 #, no-wrap
14875 msgid ""
14876 " struct guestfs_lvm_pv {\n"
14877 "   char *pv_name;\n"
14878 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14879 "*/\n"
14880 "   char pv_uuid[32];\n"
14881 "   char *pv_fmt;\n"
14882 "   uint64_t pv_size;\n"
14883 "   uint64_t dev_size;\n"
14884 "   uint64_t pv_free;\n"
14885 "   uint64_t pv_used;\n"
14886 "   char *pv_attr;\n"
14887 "   int64_t pv_pe_count;\n"
14888 "   int64_t pv_pe_alloc_count;\n"
14889 "   char *pv_tags;\n"
14890 "   uint64_t pe_start;\n"
14891 "   int64_t pv_mda_count;\n"
14892 "   uint64_t pv_mda_free;\n"
14893 " };\n"
14894 " \n"
14895 msgstr ""
14896
14897 # type: verbatim
14898 #: ../src/guestfs-structs.pod:36
14899 #, no-wrap
14900 msgid ""
14901 " struct guestfs_lvm_pv_list {\n"
14902 "   uint32_t len; /* Number of elements in list. */\n"
14903 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
14904 " };\n"
14905 " \n"
14906 msgstr ""
14907
14908 # type: verbatim
14909 #: ../src/guestfs-structs.pod:41
14910 #, no-wrap
14911 msgid ""
14912 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
14913 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
14914 "\n"
14915 msgstr ""
14916
14917 # type: =head2
14918 #: ../src/guestfs-structs.pod:44
14919 msgid "guestfs_lvm_vg"
14920 msgstr ""
14921
14922 # type: verbatim
14923 #: ../src/guestfs-structs.pod:46
14924 #, no-wrap
14925 msgid ""
14926 " struct guestfs_lvm_vg {\n"
14927 "   char *vg_name;\n"
14928 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14929 "*/\n"
14930 "   char vg_uuid[32];\n"
14931 "   char *vg_fmt;\n"
14932 "   char *vg_attr;\n"
14933 "   uint64_t vg_size;\n"
14934 "   uint64_t vg_free;\n"
14935 "   char *vg_sysid;\n"
14936 "   uint64_t vg_extent_size;\n"
14937 "   int64_t vg_extent_count;\n"
14938 "   int64_t vg_free_count;\n"
14939 "   int64_t max_lv;\n"
14940 "   int64_t max_pv;\n"
14941 "   int64_t pv_count;\n"
14942 "   int64_t lv_count;\n"
14943 "   int64_t snap_count;\n"
14944 "   int64_t vg_seqno;\n"
14945 "   char *vg_tags;\n"
14946 "   int64_t vg_mda_count;\n"
14947 "   uint64_t vg_mda_free;\n"
14948 " };\n"
14949 " \n"
14950 msgstr ""
14951
14952 # type: verbatim
14953 #: ../src/guestfs-structs.pod:69
14954 #, no-wrap
14955 msgid ""
14956 " struct guestfs_lvm_vg_list {\n"
14957 "   uint32_t len; /* Number of elements in list. */\n"
14958 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
14959 " };\n"
14960 " \n"
14961 msgstr ""
14962
14963 # type: verbatim
14964 #: ../src/guestfs-structs.pod:74
14965 #, no-wrap
14966 msgid ""
14967 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
14968 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
14969 "\n"
14970 msgstr ""
14971
14972 # type: =head2
14973 #: ../src/guestfs-structs.pod:77
14974 msgid "guestfs_lvm_lv"
14975 msgstr ""
14976
14977 # type: verbatim
14978 #: ../src/guestfs-structs.pod:79
14979 #, no-wrap
14980 msgid ""
14981 " struct guestfs_lvm_lv {\n"
14982 "   char *lv_name;\n"
14983 "   /* The next field is NOT nul-terminated, be careful when printing it: "
14984 "*/\n"
14985 "   char lv_uuid[32];\n"
14986 "   char *lv_attr;\n"
14987 "   int64_t lv_major;\n"
14988 "   int64_t lv_minor;\n"
14989 "   int64_t lv_kernel_major;\n"
14990 "   int64_t lv_kernel_minor;\n"
14991 "   uint64_t lv_size;\n"
14992 "   int64_t seg_count;\n"
14993 "   char *origin;\n"
14994 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14995 "   float snap_percent;\n"
14996 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
14997 "   float copy_percent;\n"
14998 "   char *move_pv;\n"
14999 "   char *lv_tags;\n"
15000 "   char *mirror_log;\n"
15001 "   char *modules;\n"
15002 " };\n"
15003 " \n"
15004 msgstr ""
15005
15006 # type: verbatim
15007 #: ../src/guestfs-structs.pod:101
15008 #, no-wrap
15009 msgid ""
15010 " struct guestfs_lvm_lv_list {\n"
15011 "   uint32_t len; /* Number of elements in list. */\n"
15012 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15013 " };\n"
15014 " \n"
15015 msgstr ""
15016
15017 # type: verbatim
15018 #: ../src/guestfs-structs.pod:106
15019 #, no-wrap
15020 msgid ""
15021 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15022 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15023 "\n"
15024 msgstr ""
15025
15026 # type: verbatim
15027 #: ../src/guestfs-structs.pod:111
15028 #, no-wrap
15029 msgid ""
15030 " struct guestfs_stat {\n"
15031 "   int64_t dev;\n"
15032 "   int64_t ino;\n"
15033 "   int64_t mode;\n"
15034 "   int64_t nlink;\n"
15035 "   int64_t uid;\n"
15036 "   int64_t gid;\n"
15037 "   int64_t rdev;\n"
15038 "   int64_t size;\n"
15039 "   int64_t blksize;\n"
15040 "   int64_t blocks;\n"
15041 "   int64_t atime;\n"
15042 "   int64_t mtime;\n"
15043 "   int64_t ctime;\n"
15044 " };\n"
15045 " \n"
15046 msgstr ""
15047
15048 # type: verbatim
15049 #: ../src/guestfs-structs.pod:127
15050 #, no-wrap
15051 msgid ""
15052 " struct guestfs_stat_list {\n"
15053 "   uint32_t len; /* Number of elements in list. */\n"
15054 "   struct guestfs_stat *val; /* Elements. */\n"
15055 " };\n"
15056 " \n"
15057 msgstr ""
15058
15059 # type: verbatim
15060 #: ../src/guestfs-structs.pod:132
15061 #, no-wrap
15062 msgid ""
15063 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15064 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15065 "\n"
15066 msgstr ""
15067
15068 # type: verbatim
15069 #: ../src/guestfs-structs.pod:137
15070 #, no-wrap
15071 msgid ""
15072 " struct guestfs_statvfs {\n"
15073 "   int64_t bsize;\n"
15074 "   int64_t frsize;\n"
15075 "   int64_t blocks;\n"
15076 "   int64_t bfree;\n"
15077 "   int64_t bavail;\n"
15078 "   int64_t files;\n"
15079 "   int64_t ffree;\n"
15080 "   int64_t favail;\n"
15081 "   int64_t fsid;\n"
15082 "   int64_t flag;\n"
15083 "   int64_t namemax;\n"
15084 " };\n"
15085 " \n"
15086 msgstr ""
15087
15088 # type: verbatim
15089 #: ../src/guestfs-structs.pod:151
15090 #, no-wrap
15091 msgid ""
15092 " struct guestfs_statvfs_list {\n"
15093 "   uint32_t len; /* Number of elements in list. */\n"
15094 "   struct guestfs_statvfs *val; /* Elements. */\n"
15095 " };\n"
15096 " \n"
15097 msgstr ""
15098
15099 # type: verbatim
15100 #: ../src/guestfs-structs.pod:156
15101 #, no-wrap
15102 msgid ""
15103 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15104 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15105 "\n"
15106 msgstr ""
15107
15108 # type: =head2
15109 #: ../src/guestfs-structs.pod:159
15110 msgid "guestfs_dirent"
15111 msgstr ""
15112
15113 # type: verbatim
15114 #: ../src/guestfs-structs.pod:161
15115 #, no-wrap
15116 msgid ""
15117 " struct guestfs_dirent {\n"
15118 "   int64_t ino;\n"
15119 "   char ftyp;\n"
15120 "   char *name;\n"
15121 " };\n"
15122 " \n"
15123 msgstr ""
15124
15125 # type: verbatim
15126 #: ../src/guestfs-structs.pod:167
15127 #, no-wrap
15128 msgid ""
15129 " struct guestfs_dirent_list {\n"
15130 "   uint32_t len; /* Number of elements in list. */\n"
15131 "   struct guestfs_dirent *val; /* Elements. */\n"
15132 " };\n"
15133 " \n"
15134 msgstr ""
15135
15136 # type: verbatim
15137 #: ../src/guestfs-structs.pod:172
15138 #, no-wrap
15139 msgid ""
15140 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15141 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15142 "\n"
15143 msgstr ""
15144
15145 # type: verbatim
15146 #: ../src/guestfs-structs.pod:177
15147 #, no-wrap
15148 msgid ""
15149 " struct guestfs_version {\n"
15150 "   int64_t major;\n"
15151 "   int64_t minor;\n"
15152 "   int64_t release;\n"
15153 "   char *extra;\n"
15154 " };\n"
15155 " \n"
15156 msgstr ""
15157
15158 # type: verbatim
15159 #: ../src/guestfs-structs.pod:184
15160 #, no-wrap
15161 msgid ""
15162 " struct guestfs_version_list {\n"
15163 "   uint32_t len; /* Number of elements in list. */\n"
15164 "   struct guestfs_version *val; /* Elements. */\n"
15165 " };\n"
15166 " \n"
15167 msgstr ""
15168
15169 # type: verbatim
15170 #: ../src/guestfs-structs.pod:189
15171 #, no-wrap
15172 msgid ""
15173 " void guestfs_free_version (struct guestfs_free_version *);\n"
15174 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15175 "\n"
15176 msgstr ""
15177
15178 # type: =head2
15179 #: ../src/guestfs-structs.pod:192
15180 msgid "guestfs_xattr"
15181 msgstr ""
15182
15183 # type: verbatim
15184 #: ../src/guestfs-structs.pod:194
15185 #, no-wrap
15186 msgid ""
15187 " struct guestfs_xattr {\n"
15188 "   char *attrname;\n"
15189 "   /* The next two fields describe a byte array. */\n"
15190 "   uint32_t attrval_len;\n"
15191 "   char *attrval;\n"
15192 " };\n"
15193 " \n"
15194 msgstr ""
15195
15196 # type: verbatim
15197 #: ../src/guestfs-structs.pod:201
15198 #, no-wrap
15199 msgid ""
15200 " struct guestfs_xattr_list {\n"
15201 "   uint32_t len; /* Number of elements in list. */\n"
15202 "   struct guestfs_xattr *val; /* Elements. */\n"
15203 " };\n"
15204 " \n"
15205 msgstr ""
15206
15207 # type: verbatim
15208 #: ../src/guestfs-structs.pod:206
15209 #, no-wrap
15210 msgid ""
15211 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15212 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15213 "\n"
15214 msgstr ""
15215
15216 # type: =head2
15217 #: ../src/guestfs-structs.pod:209
15218 msgid "guestfs_inotify_event"
15219 msgstr ""
15220
15221 # type: verbatim
15222 #: ../src/guestfs-structs.pod:211
15223 #, no-wrap
15224 msgid ""
15225 " struct guestfs_inotify_event {\n"
15226 "   int64_t in_wd;\n"
15227 "   uint32_t in_mask;\n"
15228 "   uint32_t in_cookie;\n"
15229 "   char *in_name;\n"
15230 " };\n"
15231 " \n"
15232 msgstr ""
15233
15234 # type: verbatim
15235 #: ../src/guestfs-structs.pod:218
15236 #, no-wrap
15237 msgid ""
15238 " struct guestfs_inotify_event_list {\n"
15239 "   uint32_t len; /* Number of elements in list. */\n"
15240 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15241 " };\n"
15242 " \n"
15243 msgstr ""
15244
15245 # type: verbatim
15246 #: ../src/guestfs-structs.pod:223
15247 #, no-wrap
15248 msgid ""
15249 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15250 " void guestfs_free_inotify_event_list (struct "
15251 "guestfs_free_inotify_event_list *);\n"
15252 "\n"
15253 msgstr ""
15254
15255 # type: =head2
15256 #: ../src/guestfs-structs.pod:226
15257 msgid "guestfs_partition"
15258 msgstr ""
15259
15260 # type: verbatim
15261 #: ../src/guestfs-structs.pod:228
15262 #, no-wrap
15263 msgid ""
15264 " struct guestfs_partition {\n"
15265 "   int32_t part_num;\n"
15266 "   uint64_t part_start;\n"
15267 "   uint64_t part_end;\n"
15268 "   uint64_t part_size;\n"
15269 " };\n"
15270 " \n"
15271 msgstr ""
15272
15273 # type: verbatim
15274 #: ../src/guestfs-structs.pod:235
15275 #, no-wrap
15276 msgid ""
15277 " struct guestfs_partition_list {\n"
15278 "   uint32_t len; /* Number of elements in list. */\n"
15279 "   struct guestfs_partition *val; /* Elements. */\n"
15280 " };\n"
15281 " \n"
15282 msgstr ""
15283
15284 # type: verbatim
15285 #: ../src/guestfs-structs.pod:240
15286 #, no-wrap
15287 msgid ""
15288 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15289 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15290 "\n"
15291 msgstr ""
15292
15293 # type: textblock
15294 #: ../fish/guestfish.pod:5
15295 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15296 msgstr ""
15297
15298 # type: verbatim
15299 #: ../fish/guestfish.pod:9
15300 #, no-wrap
15301 msgid ""
15302 " guestfish [--options] [commands]\n"
15303 "\n"
15304 msgstr ""
15305
15306 # type: verbatim
15307 #: ../fish/guestfish.pod:11
15308 #, no-wrap
15309 msgid ""
15310 " guestfish\n"
15311 "\n"
15312 msgstr ""
15313
15314 # type: verbatim
15315 #: ../fish/guestfish.pod:13
15316 #, no-wrap
15317 msgid ""
15318 " guestfish -a disk.img\n"
15319 "\n"
15320 msgstr ""
15321
15322 # type: verbatim
15323 #: ../fish/guestfish.pod:15
15324 #, no-wrap
15325 msgid ""
15326 " guestfish -a disk.img -m dev[:mountpoint]\n"
15327 "\n"
15328 msgstr ""
15329
15330 # type: verbatim
15331 #: ../fish/guestfish.pod:17
15332 #, no-wrap
15333 msgid ""
15334 " guestfish -d libvirt-domain\n"
15335 "\n"
15336 msgstr ""
15337
15338 # type: verbatim
15339 #: ../fish/guestfish.pod:19
15340 #, no-wrap
15341 msgid ""
15342 " guestfish -a disk.img -i\n"
15343 "\n"
15344 msgstr ""
15345
15346 # type: verbatim
15347 #: ../fish/guestfish.pod:21
15348 #, no-wrap
15349 msgid ""
15350 " guestfish -d libvirt-domain -i\n"
15351 "\n"
15352 msgstr ""
15353
15354 # type: =head1
15355 #: ../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
15356 msgid "WARNING"
15357 msgstr ""
15358
15359 # type: textblock
15360 #: ../fish/guestfish.pod:25
15361 msgid ""
15362 "Using guestfish in read/write mode on live virtual machines can be "
15363 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15364 "option to use guestfish safely if the disk image or virtual machine might be "
15365 "live."
15366 msgstr ""
15367
15368 # type: textblock
15369 #: ../fish/guestfish.pod:32
15370 msgid ""
15371 "Guestfish is a shell and command-line tool for examining and modifying "
15372 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15373 "functionality of the guestfs API, see L<guestfs(3)>."
15374 msgstr ""
15375
15376 # type: textblock
15377 #: ../fish/guestfish.pod:36
15378 msgid ""
15379 "Guestfish gives you structured access to the libguestfs API, from shell "
15380 "scripts or the command line or interactively.  If you want to rescue a "
15381 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15382 "command."
15383 msgstr ""
15384
15385 # type: =head1
15386 #: ../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
15387 msgid "EXAMPLES"
15388 msgstr ""
15389
15390 # type: =head2
15391 #: ../fish/guestfish.pod:43
15392 msgid "As an interactive shell"
15393 msgstr ""
15394
15395 # type: verbatim
15396 #: ../fish/guestfish.pod:45
15397 #, no-wrap
15398 msgid ""
15399 " $ guestfish\n"
15400 " \n"
15401 msgstr ""
15402
15403 # type: verbatim
15404 #: ../fish/guestfish.pod:47
15405 #, no-wrap
15406 msgid ""
15407 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15408 " editing virtual machine filesystems.\n"
15409 " \n"
15410 msgstr ""
15411
15412 # type: verbatim
15413 #: ../fish/guestfish.pod:50
15414 #, no-wrap
15415 msgid ""
15416 " Type: 'help' for a list of commands\n"
15417 "       'man' to read the manual\n"
15418 "       'quit' to quit the shell\n"
15419 " \n"
15420 msgstr ""
15421
15422 # type: verbatim
15423 #: ../fish/guestfish.pod:54
15424 #, no-wrap
15425 msgid ""
15426 " ><fs> add-ro disk.img\n"
15427 " ><fs> run\n"
15428 " ><fs> list-filesystems\n"
15429 " /dev/sda1: ext4\n"
15430 " /dev/vg_guest/lv_root: ext4\n"
15431 " /dev/vg_guest/lv_swap: swap\n"
15432 " ><fs> mount /dev/vg_guest/lv_root /\n"
15433 " ><fs> cat /etc/fstab\n"
15434 " # /etc/fstab\n"
15435 " # Created by anaconda\n"
15436 " [...]\n"
15437 " ><fs> exit\n"
15438 "\n"
15439 msgstr ""
15440
15441 # type: =head2
15442 #: ../fish/guestfish.pod:67
15443 msgid "From shell scripts"
15444 msgstr ""
15445
15446 # type: textblock
15447 #: ../fish/guestfish.pod:69
15448 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15449 msgstr ""
15450
15451 # type: verbatim
15452 #: ../fish/guestfish.pod:71
15453 #, no-wrap
15454 msgid ""
15455 " guestfish <<_EOF_\n"
15456 " add disk.img\n"
15457 " run\n"
15458 " mount /dev/vg_guest/lv_root /\n"
15459 " write /etc/motd \"Welcome, new users\"\n"
15460 " _EOF_\n"
15461 "\n"
15462 msgstr ""
15463
15464 # type: textblock
15465 #: ../fish/guestfish.pod:78
15466 msgid "List the LVM logical volumes in a disk image:"
15467 msgstr ""
15468
15469 # type: verbatim
15470 #: ../fish/guestfish.pod:80
15471 #, no-wrap
15472 msgid ""
15473 " guestfish -a disk.img --ro <<_EOF_\n"
15474 " run\n"
15475 " lvs\n"
15476 " _EOF_\n"
15477 "\n"
15478 msgstr ""
15479
15480 # type: textblock
15481 #: ../fish/guestfish.pod:85
15482 msgid "List all the filesystems in a disk image:"
15483 msgstr ""
15484
15485 # type: verbatim
15486 #: ../fish/guestfish.pod:87
15487 #, no-wrap
15488 msgid ""
15489 " guestfish -a disk.img --ro <<_EOF_\n"
15490 " run\n"
15491 " list-filesystems\n"
15492 " _EOF_\n"
15493 "\n"
15494 msgstr ""
15495
15496 # type: =head2
15497 #: ../fish/guestfish.pod:92
15498 msgid "On one command line"
15499 msgstr ""
15500
15501 # type: textblock
15502 #: ../fish/guestfish.pod:94
15503 msgid "Update C</etc/resolv.conf> in a guest:"
15504 msgstr ""
15505
15506 # type: verbatim
15507 #: ../fish/guestfish.pod:96
15508 #, no-wrap
15509 msgid ""
15510 " guestfish \\\n"
15511 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15512 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15513 "\n"
15514 msgstr ""
15515
15516 # type: textblock
15517 #: ../fish/guestfish.pod:100
15518 msgid "Edit C</boot/grub/grub.conf> interactively:"
15519 msgstr ""
15520
15521 # type: verbatim
15522 #: ../fish/guestfish.pod:102
15523 #, no-wrap
15524 msgid ""
15525 " guestfish --add disk.img \\\n"
15526 "   --mount /dev/vg_guest/lv_root \\\n"
15527 "   --mount /dev/sda1:/boot \\\n"
15528 "   edit /boot/grub/grub.conf\n"
15529 "\n"
15530 msgstr ""
15531
15532 # type: =head2
15533 #: ../fish/guestfish.pod:107
15534 msgid "Mount disks automatically"
15535 msgstr ""
15536
15537 # type: textblock
15538 #: ../fish/guestfish.pod:109
15539 msgid ""
15540 "Use the I<-i> option to automatically mount the disks from a virtual "
15541 "machine:"
15542 msgstr ""
15543
15544 # type: verbatim
15545 #: ../fish/guestfish.pod:112
15546 #, no-wrap
15547 msgid ""
15548 " guestfish --ro -a disk.img -i cat /etc/group\n"
15549 "\n"
15550 msgstr ""
15551
15552 # type: verbatim
15553 #: ../fish/guestfish.pod:114
15554 #, no-wrap
15555 msgid ""
15556 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15557 "\n"
15558 msgstr ""
15559
15560 # type: textblock
15561 #: ../fish/guestfish.pod:116
15562 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15563 msgstr ""
15564
15565 # type: verbatim
15566 #: ../fish/guestfish.pod:118
15567 #, no-wrap
15568 msgid ""
15569 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15570 "\n"
15571 msgstr ""
15572
15573 # type: =head2
15574 #: ../fish/guestfish.pod:120
15575 msgid "As a script interpreter"
15576 msgstr ""
15577
15578 # type: textblock
15579 #: ../fish/guestfish.pod:122
15580 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15581 msgstr ""
15582
15583 # type: verbatim
15584 #: ../fish/guestfish.pod:124
15585 #, no-wrap
15586 msgid ""
15587 " #!/usr/bin/guestfish -f\n"
15588 " sparse test1.img 100M\n"
15589 " run\n"
15590 " part-disk /dev/sda mbr\n"
15591 " mkfs ext2 /dev/sda1\n"
15592 "\n"
15593 msgstr ""
15594
15595 # type: =head2
15596 #: ../fish/guestfish.pod:130
15597 msgid "Start with a prepared disk"
15598 msgstr ""
15599
15600 # type: textblock
15601 #: ../fish/guestfish.pod:132
15602 msgid ""
15603 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15604 "single ext2-formatted partition:"
15605 msgstr ""
15606
15607 # type: verbatim
15608 #: ../fish/guestfish.pod:135
15609 #, no-wrap
15610 msgid ""
15611 " guestfish -N fs\n"
15612 "\n"
15613 msgstr ""
15614
15615 # type: textblock
15616 #: ../fish/guestfish.pod:137
15617 msgid "To list what is available do:"
15618 msgstr ""
15619
15620 # type: verbatim
15621 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15622 #, no-wrap
15623 msgid ""
15624 " guestfish -N help | less\n"
15625 "\n"
15626 msgstr ""
15627
15628 # type: =head2
15629 #: ../fish/guestfish.pod:141
15630 msgid "Remote control"
15631 msgstr ""
15632
15633 # type: verbatim
15634 #: ../fish/guestfish.pod:143
15635 #, no-wrap
15636 msgid ""
15637 " eval `guestfish --listen`\n"
15638 " guestfish --remote add-ro disk.img\n"
15639 " guestfish --remote run\n"
15640 " guestfish --remote lvs\n"
15641 "\n"
15642 msgstr ""
15643
15644 # type: =head1
15645 #: ../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
15646 msgid "OPTIONS"
15647 msgstr ""
15648
15649 # type: =item
15650 #: ../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
15651 msgid "B<--help>"
15652 msgstr ""
15653
15654 # type: textblock
15655 #: ../fish/guestfish.pod:154
15656 msgid "Displays general help on options."
15657 msgstr ""
15658
15659 # type: =item
15660 #: ../fish/guestfish.pod:156
15661 msgid "B<-h> | B<--cmd-help>"
15662 msgstr ""
15663
15664 # type: textblock
15665 #: ../fish/guestfish.pod:158
15666 msgid "Lists all available guestfish commands."
15667 msgstr ""
15668
15669 # type: =item
15670 #: ../fish/guestfish.pod:160
15671 msgid "B<-h cmd> | B<--cmd-help cmd>"
15672 msgstr ""
15673
15674 # type: textblock
15675 #: ../fish/guestfish.pod:162
15676 msgid "Displays detailed help on a single command C<cmd>."
15677 msgstr ""
15678
15679 # type: =item
15680 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
15681 msgid "B<-a image> | B<--add image>"
15682 msgstr ""
15683
15684 # type: textblock
15685 #: ../fish/guestfish.pod:166
15686 msgid "Add a block device or virtual machine image to the shell."
15687 msgstr ""
15688
15689 # type: textblock
15690 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
15691 msgid ""
15692 "The format of the disk image is auto-detected.  To override this and force a "
15693 "particular format use the I<--format=..> option."
15694 msgstr ""
15695
15696 # type: =item
15697 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
15698 msgid "B<-c URI> | B<--connect URI>"
15699 msgstr ""
15700
15701 # type: textblock
15702 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
15703 msgid ""
15704 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15705 "URI to use.  The default is to use the default libvirt connection."
15706 msgstr ""
15707
15708 # type: =item
15709 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
15710 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
15711 msgstr ""
15712
15713 # type: textblock
15714 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
15715 msgid ""
15716 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15717 "used, then any libvirt domain can be used.  However in write mode, only "
15718 "libvirt domains which are shut down can be named here."
15719 msgstr ""
15720
15721 # type: =item
15722 #: ../fish/guestfish.pod:183
15723 msgid "B<-D> | B<--no-dest-paths>"
15724 msgstr ""
15725
15726 # type: textblock
15727 #: ../fish/guestfish.pod:185
15728 msgid ""
15729 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15730 "to hit the tab key to complete paths on the guest filesystem, but this "
15731 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15732 "allow this feature to be disabled."
15733 msgstr ""
15734
15735 # type: =item
15736 #: ../fish/guestfish.pod:190
15737 msgid "B<--echo-keys>"
15738 msgstr ""
15739
15740 # type: textblock
15741 #: ../fish/guestfish.pod:192
15742 msgid ""
15743 "When prompting for keys and passphrases, guestfish normally turns echoing "
15744 "off so you cannot see what you are typing.  If you are not worried about "
15745 "Tempest attacks and there is no one else in the room you can specify this "
15746 "flag to see what you are typing."
15747 msgstr ""
15748
15749 # type: =item
15750 #: ../fish/guestfish.pod:197
15751 msgid "B<-f file> | B<--file file>"
15752 msgstr ""
15753
15754 # type: textblock
15755 #: ../fish/guestfish.pod:199
15756 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15757 msgstr ""
15758
15759 # type: verbatim
15760 #: ../fish/guestfish.pod:202
15761 #, no-wrap
15762 msgid ""
15763 " #!/usr/bin/guestfish -f\n"
15764 "\n"
15765 msgstr ""
15766
15767 # type: =item
15768 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:108
15769 msgid "B<--format=raw|qcow2|..> | B<--format>"
15770 msgstr ""
15771
15772 # type: textblock
15773 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:110
15774 msgid ""
15775 "The default for the I<-a> option is to auto-detect the format of the disk "
15776 "image.  Using this forces the disk format for I<-a> options which follow on "
15777 "the command line.  Using I<--format> with no argument switches back to "
15778 "auto-detection for subsequent I<-a> options."
15779 msgstr ""
15780
15781 # type: textblock
15782 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504 ../inspector/virt-inspector.pl:549
15783 msgid "For example:"
15784 msgstr ""
15785
15786 # type: verbatim
15787 #: ../fish/guestfish.pod:213
15788 #, no-wrap
15789 msgid ""
15790 " guestfish --format=raw -a disk.img\n"
15791 "\n"
15792 msgstr ""
15793
15794 # type: textblock
15795 #: ../fish/guestfish.pod:215
15796 msgid "forces raw format (no auto-detection) for C<disk.img>."
15797 msgstr ""
15798
15799 # type: verbatim
15800 #: ../fish/guestfish.pod:217
15801 #, no-wrap
15802 msgid ""
15803 " guestfish --format=raw -a disk.img --format -a another.img\n"
15804 "\n"
15805 msgstr ""
15806
15807 # type: textblock
15808 #: ../fish/guestfish.pod:219
15809 msgid ""
15810 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
15811 "auto-detection for C<another.img>."
15812 msgstr ""
15813
15814 # type: textblock
15815 #: ../fish/guestfish.pod:222
15816 msgid ""
15817 "If you have untrusted raw-format guest disk images, you should use this "
15818 "option to specify the disk format.  This avoids a possible security problem "
15819 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15820 msgstr ""
15821
15822 # type: =item
15823 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:128
15824 msgid "B<-i> | B<--inspector>"
15825 msgstr ""
15826
15827 # type: textblock
15828 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:130
15829 msgid ""
15830 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15831 "system and mount filesystems as they would be mounted on the real virtual "
15832 "machine."
15833 msgstr ""
15834
15835 # type: textblock
15836 #: ../fish/guestfish.pod:233
15837 msgid "Typical usage is either:"
15838 msgstr ""
15839
15840 # type: verbatim
15841 #: ../fish/guestfish.pod:235
15842 #, no-wrap
15843 msgid ""
15844 " guestfish -d myguest -i\n"
15845 "\n"
15846 msgstr ""
15847
15848 # type: textblock
15849 #: ../fish/guestfish.pod:237
15850 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15851 msgstr ""
15852
15853 # type: verbatim
15854 #: ../fish/guestfish.pod:239
15855 #, no-wrap
15856 msgid ""
15857 " guestfish --ro -d myguest -i\n"
15858 "\n"
15859 msgstr ""
15860
15861 # type: textblock
15862 #: ../fish/guestfish.pod:241
15863 msgid "(for active domains, readonly), or specify the block device directly:"
15864 msgstr ""
15865
15866 # type: verbatim
15867 #: ../fish/guestfish.pod:243
15868 #, no-wrap
15869 msgid ""
15870 " guestfish -a /dev/Guests/MyGuest -i\n"
15871 "\n"
15872 msgstr ""
15873
15874 # type: textblock
15875 #: ../fish/guestfish.pod:245
15876 msgid ""
15877 "Note that the command line syntax changed slightly over older versions of "
15878 "guestfish.  You can still use the old syntax:"
15879 msgstr ""
15880
15881 # type: verbatim
15882 #: ../fish/guestfish.pod:248
15883 #, no-wrap
15884 msgid ""
15885 " guestfish [--ro] -i disk.img\n"
15886 "\n"
15887 msgstr ""
15888
15889 # type: verbatim
15890 #: ../fish/guestfish.pod:250
15891 #, no-wrap
15892 msgid ""
15893 " guestfish [--ro] -i libvirt-domain\n"
15894 "\n"
15895 msgstr ""
15896
15897 # type: =item
15898 #: ../fish/guestfish.pod:252
15899 msgid "B<--keys-from-stdin>"
15900 msgstr ""
15901
15902 # type: textblock
15903 #: ../fish/guestfish.pod:254
15904 msgid ""
15905 "Read key or passphrase parameters from stdin.  The default is to try to read "
15906 "passphrases from the user by opening C</dev/tty>."
15907 msgstr ""
15908
15909 # type: =item
15910 #: ../fish/guestfish.pod:257
15911 msgid "B<--listen>"
15912 msgstr ""
15913
15914 # type: textblock
15915 #: ../fish/guestfish.pod:259
15916 msgid ""
15917 "Fork into the background and listen for remote commands.  See section "
15918 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
15919 msgstr ""
15920
15921 # type: =item
15922 #: ../fish/guestfish.pod:262
15923 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
15924 msgstr ""
15925
15926 # type: textblock
15927 #: ../fish/guestfish.pod:264
15928 msgid "Mount the named partition or logical volume on the given mountpoint."
15929 msgstr ""
15930
15931 # type: textblock
15932 #: ../fish/guestfish.pod:266
15933 msgid "If the mountpoint is omitted, it defaults to C</>."
15934 msgstr ""
15935
15936 # type: textblock
15937 #: ../fish/guestfish.pod:268
15938 msgid "You have to mount something on C</> before most commands will work."
15939 msgstr ""
15940
15941 # type: textblock
15942 #: ../fish/guestfish.pod:270
15943 msgid ""
15944 "If any I<-m> or I<--mount> options are given, the guest is automatically "
15945 "launched."
15946 msgstr ""
15947
15948 # type: textblock
15949 #: ../fish/guestfish.pod:273
15950 msgid ""
15951 "If you don't know what filesystems a disk image contains, you can either run "
15952 "guestfish without this option, then list the partitions and LVs available "
15953 "(see L</list-partitions> and L</lvs> commands), or you can use the "
15954 "L<virt-list-filesystems(1)> program."
15955 msgstr ""
15956
15957 # type: =item
15958 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:142
15959 msgid "B<-n> | B<--no-sync>"
15960 msgstr ""
15961
15962 # type: textblock
15963 #: ../fish/guestfish.pod:280
15964 msgid ""
15965 "Disable autosync.  This is enabled by default.  See the discussion of "
15966 "autosync in the L<guestfs(3)> manpage."
15967 msgstr ""
15968
15969 # type: =item
15970 #: ../fish/guestfish.pod:283
15971 msgid "B<-N type> | B<--new type> | B<-N help>"
15972 msgstr ""
15973
15974 # type: textblock
15975 #: ../fish/guestfish.pod:285
15976 msgid ""
15977 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
15978 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
15979 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
15980 "IMAGES> below."
15981 msgstr ""
15982
15983 # type: =item
15984 #: ../fish/guestfish.pod:290
15985 msgid "B<--progress-bars>"
15986 msgstr ""
15987
15988 # type: textblock
15989 #: ../fish/guestfish.pod:292
15990 msgid "Enable progress bars, even when guestfish is used non-interactively."
15991 msgstr ""
15992
15993 # type: textblock
15994 #: ../fish/guestfish.pod:294
15995 msgid ""
15996 "Progress bars are enabled by default when guestfish is used as an "
15997 "interactive shell."
15998 msgstr ""
15999
16000 # type: =item
16001 #: ../fish/guestfish.pod:297
16002 msgid "B<--no-progress-bars>"
16003 msgstr ""
16004
16005 # type: textblock
16006 #: ../fish/guestfish.pod:299
16007 msgid "Disable progress bars."
16008 msgstr ""
16009
16010 # type: =item
16011 #: ../fish/guestfish.pod:301
16012 msgid "B<--remote[=pid]>"
16013 msgstr ""
16014
16015 # type: textblock
16016 #: ../fish/guestfish.pod:303
16017 msgid ""
16018 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16019 "CONTROL GUESTFISH OVER A SOCKET> below."
16020 msgstr ""
16021
16022 # type: =item
16023 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
16024 msgid "B<-r> | B<--ro>"
16025 msgstr ""
16026
16027 # type: textblock
16028 #: ../fish/guestfish.pod:308
16029 msgid ""
16030 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16031 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16032 msgstr ""
16033
16034 # type: textblock
16035 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
16036 msgid ""
16037 "The option must always be used if the disk image or virtual machine might be "
16038 "running, and is generally recommended in cases where you don't need write "
16039 "access to the disk."
16040 msgstr ""
16041
16042 # type: textblock
16043 #: ../fish/guestfish.pod:315
16044 msgid ""
16045 "Note that prepared disk images created with I<-N> are not affected by the "
16046 "I<--ro> option."
16047 msgstr ""
16048
16049 # type: =item
16050 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:194 ../tools/virt-rescue.pl:195
16051 msgid "B<--selinux>"
16052 msgstr ""
16053
16054 # type: textblock
16055 #: ../fish/guestfish.pod:320
16056 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16057 msgstr ""
16058
16059 # type: =item
16060 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:198
16061 msgid "B<-v> | B<--verbose>"
16062 msgstr ""
16063
16064 # type: textblock
16065 #: ../fish/guestfish.pod:324
16066 msgid ""
16067 "Enable very verbose messages.  This is particularly useful if you find a "
16068 "bug."
16069 msgstr ""
16070
16071 # type: =item
16072 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:202
16073 msgid "B<-V> | B<--version>"
16074 msgstr ""
16075
16076 # type: textblock
16077 #: ../fish/guestfish.pod:329
16078 msgid "Display the guestfish / libguestfs version number and exit."
16079 msgstr ""
16080
16081 # type: =item
16082 #: ../fish/guestfish.pod:331
16083 msgid "B<-x>"
16084 msgstr ""
16085
16086 # type: textblock
16087 #: ../fish/guestfish.pod:333
16088 msgid "Echo each command before executing it."
16089 msgstr ""
16090
16091 # type: =head1
16092 #: ../fish/guestfish.pod:337
16093 msgid "COMMANDS ON COMMAND LINE"
16094 msgstr ""
16095
16096 # type: textblock
16097 #: ../fish/guestfish.pod:339
16098 msgid "Any additional (non-option) arguments are treated as commands to execute."
16099 msgstr ""
16100
16101 # type: textblock
16102 #: ../fish/guestfish.pod:342
16103 msgid ""
16104 "Commands to execute should be separated by a colon (C<:>), where the colon "
16105 "is a separate parameter.  Thus:"
16106 msgstr ""
16107
16108 # type: verbatim
16109 #: ../fish/guestfish.pod:345
16110 #, no-wrap
16111 msgid ""
16112 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16113 "\n"
16114 msgstr ""
16115
16116 # type: textblock
16117 #: ../fish/guestfish.pod:347
16118 msgid ""
16119 "If there are no additional arguments, then we enter a shell, either an "
16120 "interactive shell with a prompt (if the input is a terminal) or a "
16121 "non-interactive shell."
16122 msgstr ""
16123
16124 # type: textblock
16125 #: ../fish/guestfish.pod:351
16126 msgid ""
16127 "In either command line mode or non-interactive shell, the first command that "
16128 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16129 "prompt) if a command fails, you can continue to enter commands."
16130 msgstr ""
16131
16132 # type: =head1
16133 #: ../fish/guestfish.pod:356
16134 msgid "USING launch (OR run)"
16135 msgstr ""
16136
16137 # type: textblock
16138 #: ../fish/guestfish.pod:358
16139 msgid ""
16140 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16141 "then launch it, then mount any disks you need, and finally issue "
16142 "actions/commands.  So the general order of the day is:"
16143 msgstr ""
16144
16145 # type: textblock
16146 #: ../fish/guestfish.pod:366
16147 msgid "add or -a/--add"
16148 msgstr ""
16149
16150 # type: textblock
16151 #: ../fish/guestfish.pod:370
16152 msgid "launch (aka run)"
16153 msgstr ""
16154
16155 # type: textblock
16156 #: ../fish/guestfish.pod:374
16157 msgid "mount or -m/--mount"
16158 msgstr ""
16159
16160 # type: textblock
16161 #: ../fish/guestfish.pod:378
16162 msgid "any other commands"
16163 msgstr ""
16164
16165 # type: textblock
16166 #: ../fish/guestfish.pod:382
16167 msgid ""
16168 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16169 "guest before mounting or performing any other commands."
16170 msgstr ""
16171
16172 # type: textblock
16173 #: ../fish/guestfish.pod:385
16174 msgid ""
16175 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16176 "I<--new> options were given then C<run> is done automatically, simply "
16177 "because guestfish can't perform the action you asked for without doing this."
16178 msgstr ""
16179
16180 # type: =head1
16181 #: ../fish/guestfish.pod:390
16182 msgid "QUOTING"
16183 msgstr ""
16184
16185 # type: textblock
16186 #: ../fish/guestfish.pod:392
16187 msgid ""
16188 "You can quote ordinary parameters using either single or double quotes.  For "
16189 "example:"
16190 msgstr ""
16191
16192 # type: verbatim
16193 #: ../fish/guestfish.pod:395
16194 #, no-wrap
16195 msgid ""
16196 " add \"file with a space.img\"\n"
16197 "\n"
16198 msgstr ""
16199
16200 # type: verbatim
16201 #: ../fish/guestfish.pod:397
16202 #, no-wrap
16203 msgid ""
16204 " rm '/file name'\n"
16205 "\n"
16206 msgstr ""
16207
16208 # type: verbatim
16209 #: ../fish/guestfish.pod:399
16210 #, no-wrap
16211 msgid ""
16212 " rm '/\"'\n"
16213 "\n"
16214 msgstr ""
16215
16216 # type: textblock
16217 #: ../fish/guestfish.pod:401
16218 msgid ""
16219 "A few commands require a list of strings to be passed.  For these, use a "
16220 "whitespace-separated list, enclosed in quotes.  Strings containing "
16221 "whitespace to be passed through must be enclosed in single quotes.  A "
16222 "literal single quote must be escaped with a backslash."
16223 msgstr ""
16224
16225 # type: verbatim
16226 #: ../fish/guestfish.pod:406
16227 #, no-wrap
16228 msgid ""
16229 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16230 " command \"/bin/echo 'foo      bar'\"\n"
16231 " command \"/bin/echo \\'foo\\'\"\n"
16232 "\n"
16233 msgstr ""
16234
16235 # type: =head1
16236 #: ../fish/guestfish.pod:410
16237 msgid "OPTIONAL ARGUMENTS"
16238 msgstr ""
16239
16240 # type: textblock
16241 #: ../fish/guestfish.pod:412
16242 msgid ""
16243 "Some commands take optional arguments.  These arguments appear in this "
16244 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16245 msgstr ""
16246
16247 # type: verbatim
16248 #: ../fish/guestfish.pod:416
16249 #, no-wrap
16250 msgid ""
16251 " add-drive-opts filename\n"
16252 "\n"
16253 msgstr ""
16254
16255 # type: verbatim
16256 #: ../fish/guestfish.pod:418
16257 #, no-wrap
16258 msgid ""
16259 " add-drive-opts filename readonly:true\n"
16260 "\n"
16261 msgstr ""
16262
16263 # type: verbatim
16264 #: ../fish/guestfish.pod:420
16265 #, no-wrap
16266 msgid ""
16267 " add-drive-opts filename format:qcow2 readonly:false\n"
16268 "\n"
16269 msgstr ""
16270
16271 # type: textblock
16272 #: ../fish/guestfish.pod:422
16273 msgid ""
16274 "Each optional argument can appear at most once.  All optional arguments must "
16275 "appear after the required ones."
16276 msgstr ""
16277
16278 # type: =head1
16279 #: ../fish/guestfish.pod:425
16280 msgid "NUMBERS"
16281 msgstr ""
16282
16283 # type: textblock
16284 #: ../fish/guestfish.pod:427
16285 msgid "This section applies to all commands which can take integers as parameters."
16286 msgstr ""
16287
16288 # type: =head2
16289 #: ../fish/guestfish.pod:430
16290 msgid "SIZE SUFFIX"
16291 msgstr ""
16292
16293 # type: textblock
16294 #: ../fish/guestfish.pod:432
16295 msgid ""
16296 "When the command takes a parameter measured in bytes, you can use one of the "
16297 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16298 msgstr ""
16299
16300 # type: =item
16301 #: ../fish/guestfish.pod:438
16302 msgid "B<k> or B<K> or B<KiB>"
16303 msgstr ""
16304
16305 # type: textblock
16306 #: ../fish/guestfish.pod:440
16307 msgid "The size in kilobytes (multiplied by 1024)."
16308 msgstr ""
16309
16310 # type: =item
16311 #: ../fish/guestfish.pod:442
16312 msgid "B<KB>"
16313 msgstr ""
16314
16315 # type: textblock
16316 #: ../fish/guestfish.pod:444
16317 msgid "The size in SI 1000 byte units."
16318 msgstr ""
16319
16320 # type: =item
16321 #: ../fish/guestfish.pod:446
16322 msgid "B<M> or B<MiB>"
16323 msgstr ""
16324
16325 # type: textblock
16326 #: ../fish/guestfish.pod:448
16327 msgid "The size in megabytes (multiplied by 1048576)."
16328 msgstr ""
16329
16330 # type: =item
16331 #: ../fish/guestfish.pod:450
16332 msgid "B<MB>"
16333 msgstr ""
16334
16335 # type: textblock
16336 #: ../fish/guestfish.pod:452
16337 msgid "The size in SI 1000000 byte units."
16338 msgstr ""
16339
16340 # type: =item
16341 #: ../fish/guestfish.pod:454
16342 msgid "B<G> or B<GiB>"
16343 msgstr ""
16344
16345 # type: textblock
16346 #: ../fish/guestfish.pod:456
16347 msgid "The size in gigabytes (multiplied by 2**30)."
16348 msgstr ""
16349
16350 # type: =item
16351 #: ../fish/guestfish.pod:458
16352 msgid "B<GB>"
16353 msgstr ""
16354
16355 # type: textblock
16356 #: ../fish/guestfish.pod:460
16357 msgid "The size in SI 10**9 byte units."
16358 msgstr ""
16359
16360 # type: =item
16361 #: ../fish/guestfish.pod:462
16362 msgid "B<T> or B<TiB>"
16363 msgstr ""
16364
16365 # type: textblock
16366 #: ../fish/guestfish.pod:464
16367 msgid "The size in terabytes (multiplied by 2**40)."
16368 msgstr ""
16369
16370 # type: =item
16371 #: ../fish/guestfish.pod:466
16372 msgid "B<TB>"
16373 msgstr ""
16374
16375 # type: textblock
16376 #: ../fish/guestfish.pod:468
16377 msgid "The size in SI 10**12 byte units."
16378 msgstr ""
16379
16380 # type: =item
16381 #: ../fish/guestfish.pod:470
16382 msgid "B<P> or B<PiB>"
16383 msgstr ""
16384
16385 # type: textblock
16386 #: ../fish/guestfish.pod:472
16387 msgid "The size in petabytes (multiplied by 2**50)."
16388 msgstr ""
16389
16390 # type: =item
16391 #: ../fish/guestfish.pod:474
16392 msgid "B<PB>"
16393 msgstr ""
16394
16395 # type: textblock
16396 #: ../fish/guestfish.pod:476
16397 msgid "The size in SI 10**15 byte units."
16398 msgstr ""
16399
16400 # type: =item
16401 #: ../fish/guestfish.pod:478
16402 msgid "B<E> or B<EiB>"
16403 msgstr ""
16404
16405 # type: textblock
16406 #: ../fish/guestfish.pod:480
16407 msgid "The size in exabytes (multiplied by 2**60)."
16408 msgstr ""
16409
16410 # type: =item
16411 #: ../fish/guestfish.pod:482
16412 msgid "B<EB>"
16413 msgstr ""
16414
16415 # type: textblock
16416 #: ../fish/guestfish.pod:484
16417 msgid "The size in SI 10**18 byte units."
16418 msgstr ""
16419
16420 # type: =item
16421 #: ../fish/guestfish.pod:486
16422 msgid "B<Z> or B<ZiB>"
16423 msgstr ""
16424
16425 # type: textblock
16426 #: ../fish/guestfish.pod:488
16427 msgid "The size in zettabytes (multiplied by 2**70)."
16428 msgstr ""
16429
16430 # type: =item
16431 #: ../fish/guestfish.pod:490
16432 msgid "B<ZB>"
16433 msgstr ""
16434
16435 # type: textblock
16436 #: ../fish/guestfish.pod:492
16437 msgid "The size in SI 10**21 byte units."
16438 msgstr ""
16439
16440 # type: =item
16441 #: ../fish/guestfish.pod:494
16442 msgid "B<Y> or B<YiB>"
16443 msgstr ""
16444
16445 # type: textblock
16446 #: ../fish/guestfish.pod:496
16447 msgid "The size in yottabytes (multiplied by 2**80)."
16448 msgstr ""
16449
16450 # type: =item
16451 #: ../fish/guestfish.pod:498
16452 msgid "B<YB>"
16453 msgstr ""
16454
16455 # type: textblock
16456 #: ../fish/guestfish.pod:500
16457 msgid "The size in SI 10**24 byte units."
16458 msgstr ""
16459
16460 # type: verbatim
16461 #: ../fish/guestfish.pod:506
16462 #, no-wrap
16463 msgid ""
16464 " truncate-size /file 1G\n"
16465 "\n"
16466 msgstr ""
16467
16468 # type: textblock
16469 #: ../fish/guestfish.pod:508
16470 msgid "would truncate the file to 1 gigabyte."
16471 msgstr ""
16472
16473 # type: textblock
16474 #: ../fish/guestfish.pod:510
16475 msgid ""
16476 "Be careful because a few commands take sizes in kilobytes or megabytes "
16477 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16478 "Adding a suffix will probably not do what you expect."
16479 msgstr ""
16480
16481 # type: =head2
16482 #: ../fish/guestfish.pod:514
16483 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16484 msgstr ""
16485
16486 # type: textblock
16487 #: ../fish/guestfish.pod:516
16488 msgid ""
16489 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16490 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16491 msgstr ""
16492
16493 # type: verbatim
16494 #: ../fish/guestfish.pod:519
16495 #, no-wrap
16496 msgid ""
16497 " 1234      decimal number 1234\n"
16498 " 02322     octal number, equivalent to decimal 1234\n"
16499 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16500 "\n"
16501 msgstr ""
16502
16503 # type: textblock
16504 #: ../fish/guestfish.pod:523
16505 msgid ""
16506 "When using the C<chmod> command, you almost always want to specify an octal "
16507 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16508 "L<chmod(1)> program):"
16509 msgstr ""
16510
16511 # type: verbatim
16512 #: ../fish/guestfish.pod:527
16513 #, no-wrap
16514 msgid ""
16515 " chmod 0777 /public  # OK\n"
16516 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16517 "\n"
16518 msgstr ""
16519
16520 # type: textblock
16521 #: ../fish/guestfish.pod:530
16522 msgid ""
16523 "Commands that return numbers usually print them in decimal, but some "
16524 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16525 "octal, preceeded by C<0>)."
16526 msgstr ""
16527
16528 # type: =head1
16529 #: ../fish/guestfish.pod:534
16530 msgid "WILDCARDS AND GLOBBING"
16531 msgstr ""
16532
16533 # type: textblock
16534 #: ../fish/guestfish.pod:536
16535 msgid ""
16536 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16537 "(globbing) by default.  So for example the following will not do what you "
16538 "expect:"
16539 msgstr ""
16540
16541 # type: verbatim
16542 #: ../fish/guestfish.pod:540
16543 #, no-wrap
16544 msgid ""
16545 " rm-rf /home/*\n"
16546 "\n"
16547 msgstr ""
16548
16549 # type: textblock
16550 #: ../fish/guestfish.pod:542
16551 msgid ""
16552 "Assuming you don't have a directory called literally C</home/*> then the "
16553 "above command will return an error."
16554 msgstr ""
16555
16556 # type: textblock
16557 #: ../fish/guestfish.pod:545
16558 msgid "To perform wildcard expansion, use the C<glob> command."
16559 msgstr ""
16560
16561 # type: verbatim
16562 #: ../fish/guestfish.pod:547
16563 #, no-wrap
16564 msgid ""
16565 " glob rm-rf /home/*\n"
16566 "\n"
16567 msgstr ""
16568
16569 # type: textblock
16570 #: ../fish/guestfish.pod:549
16571 msgid ""
16572 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16573 "many times), equivalent to:"
16574 msgstr ""
16575
16576 # type: verbatim
16577 #: ../fish/guestfish.pod:552
16578 #, no-wrap
16579 msgid ""
16580 " rm-rf /home/jim\n"
16581 " rm-rf /home/joe\n"
16582 " rm-rf /home/mary\n"
16583 "\n"
16584 msgstr ""
16585
16586 # type: textblock
16587 #: ../fish/guestfish.pod:556
16588 msgid "C<glob> only works on simple guest paths and not on device names."
16589 msgstr ""
16590
16591 # type: textblock
16592 #: ../fish/guestfish.pod:558
16593 msgid ""
16594 "If you have several parameters, each containing a wildcard, then glob will "
16595 "perform a Cartesian product."
16596 msgstr ""
16597
16598 # type: =head1
16599 #: ../fish/guestfish.pod:561
16600 msgid "COMMENTS"
16601 msgstr ""
16602
16603 # type: textblock
16604 #: ../fish/guestfish.pod:563
16605 msgid ""
16606 "Any line which starts with a I<#> character is treated as a comment and "
16607 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16608 "a command.  For example:"
16609 msgstr ""
16610
16611 # type: verbatim
16612 #: ../fish/guestfish.pod:567
16613 #, no-wrap
16614 msgid ""
16615 " # this is a comment\n"
16616 "         # this is a comment\n"
16617 " foo # NOT a comment\n"
16618 "\n"
16619 msgstr ""
16620
16621 # type: textblock
16622 #: ../fish/guestfish.pod:571
16623 msgid "Blank lines are also ignored."
16624 msgstr ""
16625
16626 # type: =head1
16627 #: ../fish/guestfish.pod:573
16628 msgid "RUNNING COMMANDS LOCALLY"
16629 msgstr ""
16630
16631 # type: textblock
16632 #: ../fish/guestfish.pod:575
16633 msgid ""
16634 "Any line which starts with a I<!> character is treated as a command sent to "
16635 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16636 msgstr ""
16637
16638 # type: verbatim
16639 #: ../fish/guestfish.pod:579
16640 #, no-wrap
16641 msgid ""
16642 " !mkdir local\n"
16643 " tgz-out /remote local/remote-data.tar.gz\n"
16644 "\n"
16645 msgstr ""
16646
16647 # type: textblock
16648 #: ../fish/guestfish.pod:582
16649 msgid ""
16650 "will create a directory C<local> on the host, and then export the contents "
16651 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
16652 "(See C<tgz-out>)."
16653 msgstr ""
16654
16655 # type: textblock
16656 #: ../fish/guestfish.pod:586
16657 msgid ""
16658 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
16659 "effect, due to the way that subprocesses work in Unix."
16660 msgstr ""
16661
16662 # type: =head1
16663 #: ../fish/guestfish.pod:589
16664 msgid "PIPES"
16665 msgstr ""
16666
16667 # type: textblock
16668 #: ../fish/guestfish.pod:591
16669 msgid ""
16670 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
16671 "command (a guestfish command) to the second command (any host command).  For "
16672 "example:"
16673 msgstr ""
16674
16675 # type: verbatim
16676 #: ../fish/guestfish.pod:595
16677 #, no-wrap
16678 msgid ""
16679 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
16680 "\n"
16681 msgstr ""
16682
16683 # type: textblock
16684 #: ../fish/guestfish.pod:597
16685 msgid ""
16686 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
16687 "program).  The above command would list all accounts in the guest filesystem "
16688 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
16689 msgstr ""
16690
16691 # type: verbatim
16692 #: ../fish/guestfish.pod:602
16693 #, no-wrap
16694 msgid ""
16695 " hexdump /bin/ls | head\n"
16696 " list-devices | tail -1\n"
16697 " tgz-out / - | tar ztf -\n"
16698 "\n"
16699 msgstr ""
16700
16701 # type: textblock
16702 #: ../fish/guestfish.pod:606
16703 msgid ""
16704 "The space before the pipe symbol is required, any space after the pipe "
16705 "symbol is optional.  Everything after the pipe symbol is just passed "
16706 "straight to the host shell, so it can contain redirections, globs and "
16707 "anything else that makes sense on the host side."
16708 msgstr ""
16709
16710 # type: textblock
16711 #: ../fish/guestfish.pod:611
16712 msgid ""
16713 "To use a literal argument which begins with a pipe symbol, you have to quote "
16714 "it, eg:"
16715 msgstr ""
16716
16717 # type: verbatim
16718 #: ../fish/guestfish.pod:614
16719 #, no-wrap
16720 msgid ""
16721 " echo \"|\"\n"
16722 "\n"
16723 msgstr ""
16724
16725 # type: =head1
16726 #: ../fish/guestfish.pod:616
16727 msgid "HOME DIRECTORIES"
16728 msgstr ""
16729
16730 # type: textblock
16731 #: ../fish/guestfish.pod:618
16732 msgid ""
16733 "If a parameter starts with the character C<~> then the tilde may be expanded "
16734 "as a home directory path (either C<~> for the current user's home directory, "
16735 "or C<~user> for another user)."
16736 msgstr ""
16737
16738 # type: textblock
16739 #: ../fish/guestfish.pod:622
16740 msgid ""
16741 "Note that home directory expansion happens for users known I<on the host>, "
16742 "not in the guest filesystem."
16743 msgstr ""
16744
16745 # type: textblock
16746 #: ../fish/guestfish.pod:625
16747 msgid ""
16748 "To use a literal argument which begins with a tilde, you have to quote it, "
16749 "eg:"
16750 msgstr ""
16751
16752 # type: verbatim
16753 #: ../fish/guestfish.pod:628
16754 #, no-wrap
16755 msgid ""
16756 " echo \"~\"\n"
16757 "\n"
16758 msgstr ""
16759
16760 # type: textblock
16761 #: ../fish/guestfish.pod:632
16762 msgid ""
16763 "Libguestfs has some support for Linux guests encrypted according to the "
16764 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
16765 "disk encryption systems used by modern Linux guests.  Currently only "
16766 "LVM-on-LUKS is supported."
16767 msgstr ""
16768
16769 # type: textblock
16770 #: ../fish/guestfish.pod:637
16771 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
16772 msgstr ""
16773
16774 # type: verbatim
16775 #: ../fish/guestfish.pod:639
16776 #, no-wrap
16777 msgid ""
16778 " ><fs> vfs-type /dev/sda2\n"
16779 " crypto_LUKS\n"
16780 "\n"
16781 msgstr ""
16782
16783 # type: textblock
16784 #: ../fish/guestfish.pod:642
16785 msgid ""
16786 "Then open those devices using L</luks-open>.  This creates a device-mapper "
16787 "device called C</dev/mapper/luksdev>."
16788 msgstr ""
16789
16790 # type: verbatim
16791 #: ../fish/guestfish.pod:645
16792 #, no-wrap
16793 msgid ""
16794 " ><fs> luks-open /dev/sda2 luksdev\n"
16795 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
16796 "\n"
16797 msgstr ""
16798
16799 # type: textblock
16800 #: ../fish/guestfish.pod:648
16801 msgid ""
16802 "Finally you have to tell LVM to scan for volume groups on the newly created "
16803 "mapper device:"
16804 msgstr ""
16805
16806 # type: verbatim
16807 #: ../fish/guestfish.pod:651
16808 #, no-wrap
16809 msgid ""
16810 " vgscan\n"
16811 " vg-activate-all true\n"
16812 "\n"
16813 msgstr ""
16814
16815 # type: textblock
16816 #: ../fish/guestfish.pod:654
16817 msgid "The logical volume(s) can now be mounted in the usual way."
16818 msgstr ""
16819
16820 # type: textblock
16821 #: ../fish/guestfish.pod:656
16822 msgid ""
16823 "Before closing a LUKS device you must unmount any logical volumes on it and "
16824 "deactivate the volume groups by calling C<vg-activate false VG> on each "
16825 "one.  Then you can close the mapper device:"
16826 msgstr ""
16827
16828 # type: verbatim
16829 #: ../fish/guestfish.pod:660
16830 #, no-wrap
16831 msgid ""
16832 " vg-activate false /dev/VG\n"
16833 " luks-close /dev/mapper/luksdev\n"
16834 "\n"
16835 msgstr ""
16836
16837 # type: =head1
16838 #: ../fish/guestfish.pod:663
16839 msgid "WINDOWS PATHS"
16840 msgstr ""
16841
16842 # type: textblock
16843 #: ../fish/guestfish.pod:665
16844 msgid ""
16845 "If a path is prefixed with C<win:> then you can use Windows-style paths "
16846 "(with some limitations).  The following commands are equivalent:"
16847 msgstr ""
16848
16849 # type: verbatim
16850 #: ../fish/guestfish.pod:668
16851 #, no-wrap
16852 msgid ""
16853 " file /WINDOWS/system32/config/system.LOG\n"
16854 "\n"
16855 msgstr ""
16856
16857 # type: verbatim
16858 #: ../fish/guestfish.pod:670
16859 #, no-wrap
16860 msgid ""
16861 " file win:/windows/system32/config/system.log\n"
16862 "\n"
16863 msgstr ""
16864
16865 # type: verbatim
16866 #: ../fish/guestfish.pod:672
16867 #, no-wrap
16868 msgid ""
16869 " file win:\\windows\\system32\\config\\system.log\n"
16870 "\n"
16871 msgstr ""
16872
16873 # type: verbatim
16874 #: ../fish/guestfish.pod:674
16875 #, no-wrap
16876 msgid ""
16877 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
16878 "\n"
16879 msgstr ""
16880
16881 # type: textblock
16882 #: ../fish/guestfish.pod:676
16883 msgid ""
16884 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
16885 "handles case insensitivity like Windows would.  This only works in argument "
16886 "positions that expect a path."
16887 msgstr ""
16888
16889 # type: =head1
16890 #: ../fish/guestfish.pod:680
16891 msgid "UPLOADING AND DOWNLOADING FILES"
16892 msgstr ""
16893
16894 # type: textblock
16895 #: ../fish/guestfish.pod:682
16896 msgid ""
16897 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
16898 "others which upload from or download to a local file, you can use the "
16899 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
16900 msgstr ""
16901
16902 # type: verbatim
16903 #: ../fish/guestfish.pod:686
16904 #, no-wrap
16905 msgid ""
16906 " upload - /foo\n"
16907 "\n"
16908 msgstr ""
16909
16910 # type: textblock
16911 #: ../fish/guestfish.pod:688
16912 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
16913 msgstr ""
16914
16915 # type: verbatim
16916 #: ../fish/guestfish.pod:691
16917 #, no-wrap
16918 msgid ""
16919 " tar-out /etc - | tar tf -\n"
16920 "\n"
16921 msgstr ""
16922
16923 # type: textblock
16924 #: ../fish/guestfish.pod:693
16925 msgid ""
16926 "writes the tarball to stdout and then pipes that into the external \"tar\" "
16927 "command (see L</PIPES>)."
16928 msgstr ""
16929
16930 # type: textblock
16931 #: ../fish/guestfish.pod:696
16932 msgid ""
16933 "When using C<-> to read from stdin, the input is read up to the end of "
16934 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
16935 "some arbitrary end marker:"
16936 msgstr ""
16937
16938 # type: verbatim
16939 #: ../fish/guestfish.pod:700
16940 #, no-wrap
16941 msgid ""
16942 " upload -<<END /foo\n"
16943 " input line 1\n"
16944 " input line 2\n"
16945 " input line 3\n"
16946 " END\n"
16947 "\n"
16948 msgstr ""
16949
16950 # type: textblock
16951 #: ../fish/guestfish.pod:706
16952 msgid ""
16953 "Any string of characters can be used instead of C<END>.  The end marker must "
16954 "appear on a line of its own, without any preceeding or following characters "
16955 "(not even spaces)."
16956 msgstr ""
16957
16958 # type: textblock
16959 #: ../fish/guestfish.pod:710
16960 msgid ""
16961 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
16962 "upload local files (so-called \"FileIn\" parameters in the generator)."
16963 msgstr ""
16964
16965 # type: =head1
16966 #: ../fish/guestfish.pod:713
16967 msgid "EXIT ON ERROR BEHAVIOUR"
16968 msgstr ""
16969
16970 # type: textblock
16971 #: ../fish/guestfish.pod:715
16972 msgid ""
16973 "By default, guestfish will ignore any errors when in interactive mode "
16974 "(ie. taking commands from a human over a tty), and will exit on the first "
16975 "error in non-interactive mode (scripts, commands given on the command line)."
16976 msgstr ""
16977
16978 # type: textblock
16979 #: ../fish/guestfish.pod:720
16980 msgid ""
16981 "If you prefix a command with a I<-> character, then that command will not "
16982 "cause guestfish to exit, even if that (one) command returns an error."
16983 msgstr ""
16984
16985 # type: =head1
16986 #: ../fish/guestfish.pod:724
16987 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
16988 msgstr ""
16989
16990 # type: textblock
16991 #: ../fish/guestfish.pod:726
16992 msgid ""
16993 "Guestfish can be remote-controlled over a socket.  This is useful "
16994 "particularly in shell scripts where you want to make several different "
16995 "changes to a filesystem, but you don't want the overhead of starting up a "
16996 "guestfish process each time."
16997 msgstr ""
16998
16999 # type: textblock
17000 #: ../fish/guestfish.pod:731
17001 msgid "Start a guestfish server process using:"
17002 msgstr ""
17003
17004 # type: verbatim
17005 #: ../fish/guestfish.pod:733
17006 #, no-wrap
17007 msgid ""
17008 " eval `guestfish --listen`\n"
17009 "\n"
17010 msgstr ""
17011
17012 # type: textblock
17013 #: ../fish/guestfish.pod:735
17014 msgid "and then send it commands by doing:"
17015 msgstr ""
17016
17017 # type: verbatim
17018 #: ../fish/guestfish.pod:737
17019 #, no-wrap
17020 msgid ""
17021 " guestfish --remote cmd [...]\n"
17022 "\n"
17023 msgstr ""
17024
17025 # type: textblock
17026 #: ../fish/guestfish.pod:739
17027 msgid "To cause the server to exit, send it the exit command:"
17028 msgstr ""
17029
17030 # type: verbatim
17031 #: ../fish/guestfish.pod:741
17032 #, no-wrap
17033 msgid ""
17034 " guestfish --remote exit\n"
17035 "\n"
17036 msgstr ""
17037
17038 # type: textblock
17039 #: ../fish/guestfish.pod:743
17040 msgid ""
17041 "Note that the server will normally exit if there is an error in a command.  "
17042 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17043 "BEHAVIOUR>."
17044 msgstr ""
17045
17046 # type: =head2
17047 #: ../fish/guestfish.pod:747
17048 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17049 msgstr ""
17050
17051 # type: textblock
17052 #: ../fish/guestfish.pod:749
17053 msgid ""
17054 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17055 "is how the I<--remote> option knows where to send the commands.  You can "
17056 "have several guestfish listener processes running using:"
17057 msgstr ""
17058
17059 # type: verbatim
17060 #: ../fish/guestfish.pod:753
17061 #, no-wrap
17062 msgid ""
17063 " eval `guestfish --listen`\n"
17064 " pid1=$GUESTFISH_PID\n"
17065 " eval `guestfish --listen`\n"
17066 " pid2=$GUESTFISH_PID\n"
17067 " ...\n"
17068 " guestfish --remote=$pid1 cmd\n"
17069 " guestfish --remote=$pid2 cmd\n"
17070 "\n"
17071 msgstr ""
17072
17073 # type: =head2
17074 #: ../fish/guestfish.pod:761
17075 msgid "REMOTE CONTROL DETAILS"
17076 msgstr ""
17077
17078 # type: textblock
17079 #: ../fish/guestfish.pod:763
17080 msgid ""
17081 "Remote control happens over a Unix domain socket called "
17082 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17083 "of the process, and C<$PID> is the process ID of the server."
17084 msgstr ""
17085
17086 # type: textblock
17087 #: ../fish/guestfish.pod:767
17088 msgid "Guestfish client and server versions must match exactly."
17089 msgstr ""
17090
17091 # type: =head1
17092 #: ../fish/guestfish.pod:769
17093 msgid "PREPARED DISK IMAGES"
17094 msgstr ""
17095
17096 # type: textblock
17097 #: ../fish/guestfish.pod:771
17098 msgid ""
17099 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17100 "preformatted disk images that guestfish can make for you to save typing.  "
17101 "This is particularly useful for testing purposes.  This option is used "
17102 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17103 "can be mixed with I<-a>)."
17104 msgstr ""
17105
17106 # type: textblock
17107 #: ../fish/guestfish.pod:777
17108 msgid ""
17109 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17110 "the second and so on.  Existing files in the current directory are "
17111 "I<overwritten>."
17112 msgstr ""
17113
17114 # type: textblock
17115 #: ../fish/guestfish.pod:781
17116 msgid ""
17117 "The type briefly describes how the disk should be sized, partitioned, how "
17118 "filesystem(s) should be created, and how content should be added.  "
17119 "Optionally the type can be followed by extra parameters, separated by C<:> "
17120 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17121 "sparsely-allocated disk, containing a single partition, with the partition "
17122 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17123 "on a 1GB disk instead."
17124 msgstr ""
17125
17126 # type: textblock
17127 #: ../fish/guestfish.pod:789
17128 msgid "To list the available types and any extra parameters they take, run:"
17129 msgstr ""
17130
17131 # type: textblock
17132 #: ../fish/guestfish.pod:793
17133 msgid ""
17134 "Note that the prepared filesystem is not mounted.  You would usually have to "
17135 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17136 msgstr ""
17137
17138 # type: textblock
17139 #: ../fish/guestfish.pod:797
17140 msgid ""
17141 "If any I<-N> or I<--new> options are given, the guest is automatically "
17142 "launched."
17143 msgstr ""
17144
17145 # type: textblock
17146 #: ../fish/guestfish.pod:802
17147 msgid "Create a 100MB disk with an ext4-formatted partition:"
17148 msgstr ""
17149
17150 # type: verbatim
17151 #: ../fish/guestfish.pod:804
17152 #, no-wrap
17153 msgid ""
17154 " guestfish -N fs:ext4\n"
17155 "\n"
17156 msgstr ""
17157
17158 # type: textblock
17159 #: ../fish/guestfish.pod:806
17160 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17161 msgstr ""
17162
17163 # type: verbatim
17164 #: ../fish/guestfish.pod:808
17165 #, no-wrap
17166 msgid ""
17167 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17168 "\n"
17169 msgstr ""
17170
17171 # type: textblock
17172 #: ../fish/guestfish.pod:810
17173 msgid "Create a blank 200MB disk:"
17174 msgstr ""
17175
17176 # type: verbatim
17177 #: ../fish/guestfish.pod:812
17178 #, no-wrap
17179 msgid ""
17180 " guestfish -N disk:200M\n"
17181 "\n"
17182 msgstr ""
17183
17184 # type: =head1
17185 #: ../fish/guestfish.pod:814
17186 msgid "PROGRESS BARS"
17187 msgstr ""
17188
17189 # type: textblock
17190 #: ../fish/guestfish.pod:816
17191 msgid ""
17192 "Some (not all) long-running commands send progress notification messages as "
17193 "they are running.  Guestfish turns these messages into progress bars."
17194 msgstr ""
17195
17196 # type: textblock
17197 #: ../fish/guestfish.pod:820
17198 msgid ""
17199 "When a command that supports progress bars takes longer than two seconds to "
17200 "run, and if progress bars are enabled, then you will see one appearing below "
17201 "the command:"
17202 msgstr ""
17203
17204 # type: verbatim
17205 #: ../fish/guestfish.pod:824
17206 #, no-wrap
17207 msgid ""
17208 " ><fs> copy-size /large-file /another-file 2048M\n"
17209 " / 10% [#####-----------------------------------------] 00:30\n"
17210 "\n"
17211 msgstr ""
17212
17213 # type: textblock
17214 #: ../fish/guestfish.pod:827
17215 msgid ""
17216 "The spinner on the left hand side moves round once for every progress "
17217 "notification received from the backend.  This is a (reasonably) golden "
17218 "assurance that the command is \"doing something\" even if the progress bar "
17219 "is not moving, because the command is able to send the progress "
17220 "notifications.  When the bar reaches 100% and the command finishes, the "
17221 "spinner disappears."
17222 msgstr ""
17223
17224 # type: textblock
17225 #: ../fish/guestfish.pod:834
17226 msgid ""
17227 "Progress bars are enabled by default when guestfish is used interactively.  "
17228 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17229 "and you can disable them completely using I<--no-progress-bars>."
17230 msgstr ""
17231
17232 # type: =head1
17233 #: ../fish/guestfish.pod:839
17234 msgid "GUESTFISH COMMANDS"
17235 msgstr ""
17236
17237 # type: textblock
17238 #: ../fish/guestfish.pod:841
17239 msgid ""
17240 "The commands in this section are guestfish convenience commands, in other "
17241 "words, they are not part of the L<guestfs(3)> API."
17242 msgstr ""
17243
17244 # type: =head2
17245 #: ../fish/guestfish.pod:844
17246 msgid "help"
17247 msgstr ""
17248
17249 # type: verbatim
17250 #: ../fish/guestfish.pod:846
17251 #, no-wrap
17252 msgid ""
17253 " help\n"
17254 " help cmd\n"
17255 "\n"
17256 msgstr ""
17257
17258 # type: textblock
17259 #: ../fish/guestfish.pod:849
17260 msgid ""
17261 "Without any parameter, this lists all commands.  With a C<cmd> parameter, "
17262 "this displays detailed help for a command."
17263 msgstr ""
17264
17265 # type: =head2
17266 #: ../fish/guestfish.pod:852
17267 msgid "quit | exit"
17268 msgstr ""
17269
17270 # type: textblock
17271 #: ../fish/guestfish.pod:854
17272 msgid "This exits guestfish.  You can also use C<^D> key."
17273 msgstr ""
17274
17275 # type: textblock
17276 #: ../fish/guestfish.pod:856
17277 msgid "@FISH_COMMANDS@"
17278 msgstr ""
17279
17280 # type: =head1
17281 #: ../fish/guestfish.pod:858
17282 msgid "COMMANDS"
17283 msgstr ""
17284
17285 # type: =head1
17286 #: ../fish/guestfish.pod:862 ../test-tool/libguestfs-test-tool.pod:83
17287 msgid "EXIT CODE"
17288 msgstr ""
17289
17290 # type: textblock
17291 #: ../fish/guestfish.pod:864
17292 msgid ""
17293 "guestfish returns 0 if the commands completed without error, or 1 if there "
17294 "was an error."
17295 msgstr ""
17296
17297 # type: =item
17298 #: ../fish/guestfish.pod:871
17299 msgid "EDITOR"
17300 msgstr ""
17301
17302 # type: textblock
17303 #: ../fish/guestfish.pod:873
17304 msgid ""
17305 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17306 "C<vi>."
17307 msgstr ""
17308
17309 # type: =item
17310 #: ../fish/guestfish.pod:876
17311 msgid "GUESTFISH_PID"
17312 msgstr ""
17313
17314 # type: textblock
17315 #: ../fish/guestfish.pod:878
17316 msgid ""
17317 "Used with the I<--remote> option to specify the remote guestfish process to "
17318 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17319 msgstr ""
17320
17321 # type: =item
17322 #: ../fish/guestfish.pod:882
17323 msgid "HEXEDITOR"
17324 msgstr ""
17325
17326 # type: textblock
17327 #: ../fish/guestfish.pod:884
17328 msgid ""
17329 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17330 "not specified, the external L<hexedit(1)> program is used."
17331 msgstr ""
17332
17333 # type: =item
17334 #: ../fish/guestfish.pod:888
17335 msgid "HOME"
17336 msgstr ""
17337
17338 # type: textblock
17339 #: ../fish/guestfish.pod:890
17340 msgid ""
17341 "If compiled with GNU readline support, various files in the home directory "
17342 "can be used.  See L</FILES>."
17343 msgstr ""
17344
17345 # type: textblock
17346 #: ../fish/guestfish.pod:899
17347 msgid ""
17348 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17349 "effect as using the B<-v> option."
17350 msgstr ""
17351
17352 # type: textblock
17353 #: ../fish/guestfish.pod:911
17354 msgid ""
17355 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17356 "the discussion of paths in L<guestfs(3)>."
17357 msgstr ""
17358
17359 # type: textblock
17360 #: ../fish/guestfish.pod:922
17361 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17362 msgstr ""
17363
17364 # type: =item
17365 #: ../fish/guestfish.pod:924
17366 msgid "PAGER"
17367 msgstr ""
17368
17369 # type: textblock
17370 #: ../fish/guestfish.pod:926
17371 msgid ""
17372 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17373 "C<more>."
17374 msgstr ""
17375
17376 # type: =head1
17377 #: ../fish/guestfish.pod:941 ../test-tool/libguestfs-test-tool.pod:88
17378 msgid "FILES"
17379 msgstr ""
17380
17381 # type: =item
17382 #: ../fish/guestfish.pod:945
17383 msgid "$HOME/.guestfish"
17384 msgstr ""
17385
17386 # type: textblock
17387 #: ../fish/guestfish.pod:947
17388 msgid ""
17389 "If compiled with GNU readline support, then the command history is saved in "
17390 "this file."
17391 msgstr ""
17392
17393 # type: =item
17394 #: ../fish/guestfish.pod:950
17395 msgid "$HOME/.inputrc"
17396 msgstr ""
17397
17398 # type: =item
17399 #: ../fish/guestfish.pod:952
17400 msgid "/etc/inputrc"
17401 msgstr ""
17402
17403 # type: textblock
17404 #: ../fish/guestfish.pod:954
17405 msgid ""
17406 "If compiled with GNU readline support, then these files can be used to "
17407 "configure readline.  For further information, please see "
17408 "L<readline(3)/INITIALIZATION FILE>."
17409 msgstr ""
17410
17411 # type: textblock
17412 #: ../fish/guestfish.pod:958
17413 msgid "To write rules which only apply to guestfish, use:"
17414 msgstr ""
17415
17416 # type: verbatim
17417 #: ../fish/guestfish.pod:960
17418 #, no-wrap
17419 msgid ""
17420 " $if guestfish\n"
17421 " ...\n"
17422 " $endif\n"
17423 "\n"
17424 msgstr ""
17425
17426 # type: textblock
17427 #: ../fish/guestfish.pod:964
17428 msgid ""
17429 "Variables that you can set in inputrc that change the behaviour of guestfish "
17430 "in useful ways include:"
17431 msgstr ""
17432
17433 # type: =item
17434 #: ../fish/guestfish.pod:969
17435 msgid "completion-ignore-case (default: on)"
17436 msgstr ""
17437
17438 # type: textblock
17439 #: ../fish/guestfish.pod:971
17440 msgid ""
17441 "By default, guestfish will ignore case when tab-completing paths on the "
17442 "disk.  Use:"
17443 msgstr ""
17444
17445 # type: verbatim
17446 #: ../fish/guestfish.pod:974
17447 #, no-wrap
17448 msgid ""
17449 " set completion-ignore-case off\n"
17450 "\n"
17451 msgstr ""
17452
17453 # type: textblock
17454 #: ../fish/guestfish.pod:976
17455 msgid "to make guestfish case sensitive."
17456 msgstr ""
17457
17458 # type: =item
17459 #: ../fish/guestfish.pod:980
17460 msgid "test1.img"
17461 msgstr ""
17462
17463 # type: =item
17464 #: ../fish/guestfish.pod:982
17465 msgid "test2.img (etc)"
17466 msgstr ""
17467
17468 # type: textblock
17469 #: ../fish/guestfish.pod:984
17470 msgid ""
17471 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17472 "will be created in the file C<test1.img> in the current directory.  The "
17473 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17474 "the same name will be overwritten."
17475 msgstr ""
17476
17477 # type: textblock
17478 #: ../fish/guestfish.pod:993
17479 msgid ""
17480 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17481 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17482 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17483 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17484 msgstr ""
17485
17486 # type: textblock
17487 #: ../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
17488 msgid ""
17489 "This program is free software; you can redistribute it and/or modify it "
17490 "under the terms of the GNU General Public License as published by the Free "
17491 "Software Foundation; either version 2 of the License, or (at your option) "
17492 "any later version."
17493 msgstr ""
17494
17495 # type: textblock
17496 #: ../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
17497 msgid ""
17498 "This program is distributed in the hope that it will be useful, but WITHOUT "
17499 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17500 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17501 "more details."
17502 msgstr ""
17503
17504 # type: textblock
17505 #: ../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
17506 msgid ""
17507 "You should have received a copy of the GNU General Public License along with "
17508 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17509 "Ave, Cambridge, MA 02139, USA."
17510 msgstr ""
17511
17512 # type: =head2
17513 #: ../fish/guestfish-actions.pod:1
17514 msgid "add-cdrom"
17515 msgstr ""
17516
17517 # type: verbatim
17518 #: ../fish/guestfish-actions.pod:3
17519 #, no-wrap
17520 msgid ""
17521 " add-cdrom filename\n"
17522 "\n"
17523 msgstr ""
17524
17525 # type: textblock
17526 #: ../fish/guestfish-actions.pod:15
17527 msgid ""
17528 "This call checks for the existence of C<filename>.  This stops you from "
17529 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17530 "and C<http:> URLs.  To specify those, use the general L</config> call "
17531 "instead."
17532 msgstr ""
17533
17534 # type: textblock
17535 #: ../fish/guestfish-actions.pod:22
17536 msgid ""
17537 "If you just want to add an ISO file (often you use this as an efficient way "
17538 "to transfer large files into the guest), then you should probably use "
17539 "L</add-drive-ro> instead."
17540 msgstr ""
17541
17542 # type: =head2
17543 #: ../fish/guestfish-actions.pod:35
17544 msgid "add-drive"
17545 msgstr ""
17546
17547 # type: verbatim
17548 #: ../fish/guestfish-actions.pod:37
17549 #, no-wrap
17550 msgid ""
17551 " add-drive filename\n"
17552 "\n"
17553 msgstr ""
17554
17555 # type: textblock
17556 #: ../fish/guestfish-actions.pod:39
17557 msgid ""
17558 "This function is the equivalent of calling L</add-drive-opts> with no "
17559 "optional parameters, so the disk is added writable, with the format being "
17560 "detected automatically."
17561 msgstr ""
17562
17563 # type: textblock
17564 #: ../fish/guestfish-actions.pod:43
17565 msgid ""
17566 "Automatic detection of the format opens you up to a potential security hole "
17567 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17568 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17569 "you should think about replacing calls to this function with calls to "
17570 "L</add-drive-opts>, and specifying the format."
17571 msgstr ""
17572
17573 # type: =head2
17574 #: ../fish/guestfish-actions.pod:50
17575 msgid "add-drive-opts"
17576 msgstr ""
17577
17578 # type: =head2
17579 #: ../fish/guestfish-actions.pod:52
17580 msgid "add"
17581 msgstr ""
17582
17583 # type: verbatim
17584 #: ../fish/guestfish-actions.pod:54
17585 #, no-wrap
17586 msgid ""
17587 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17588 "\n"
17589 msgstr ""
17590
17591 # type: textblock
17592 #: ../fish/guestfish-actions.pod:81
17593 msgid ""
17594 "This forces the image format.  If you omit this (or use L</add-drive> or "
17595 "L</add-drive-ro>) then the format is automatically detected.  Possible "
17596 "formats include C<raw> and C<qcow2>."
17597 msgstr ""
17598
17599 # type: textblock
17600 #: ../fish/guestfish-actions.pod:92
17601 msgid ""
17602 "This rarely-used option lets you emulate the behaviour of the deprecated "
17603 "L</add-drive-with-if> call (q.v.)"
17604 msgstr ""
17605
17606 # type: textblock
17607 #: ../fish/guestfish-actions.pod:97
17608 msgid ""
17609 "This command has one or more optional arguments.  See L</OPTIONAL "
17610 "ARGUMENTS>."
17611 msgstr ""
17612
17613 # type: =head2
17614 #: ../fish/guestfish-actions.pod:99
17615 msgid "add-drive-ro"
17616 msgstr ""
17617
17618 # type: =head2
17619 #: ../fish/guestfish-actions.pod:101
17620 msgid "add-ro"
17621 msgstr ""
17622
17623 # type: verbatim
17624 #: ../fish/guestfish-actions.pod:103
17625 #, no-wrap
17626 msgid ""
17627 " add-drive-ro filename\n"
17628 "\n"
17629 msgstr ""
17630
17631 # type: textblock
17632 #: ../fish/guestfish-actions.pod:105
17633 msgid ""
17634 "This function is the equivalent of calling L</add-drive-opts> with the "
17635 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17636 "is added read-only, with the format being detected automatically."
17637 msgstr ""
17638
17639 # type: =head2
17640 #: ../fish/guestfish-actions.pod:110
17641 msgid "add-drive-ro-with-if"
17642 msgstr ""
17643
17644 # type: verbatim
17645 #: ../fish/guestfish-actions.pod:112
17646 #, no-wrap
17647 msgid ""
17648 " add-drive-ro-with-if filename iface\n"
17649 "\n"
17650 msgstr ""
17651
17652 # type: textblock
17653 #: ../fish/guestfish-actions.pod:114
17654 msgid ""
17655 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
17656 "interface emulation to use at run time."
17657 msgstr ""
17658
17659 # type: =head2
17660 #: ../fish/guestfish-actions.pod:124
17661 msgid "add-drive-with-if"
17662 msgstr ""
17663
17664 # type: verbatim
17665 #: ../fish/guestfish-actions.pod:126
17666 #, no-wrap
17667 msgid ""
17668 " add-drive-with-if filename iface\n"
17669 "\n"
17670 msgstr ""
17671
17672 # type: textblock
17673 #: ../fish/guestfish-actions.pod:128
17674 msgid ""
17675 "This is the same as L</add-drive> but it allows you to specify the QEMU "
17676 "interface emulation to use at run time."
17677 msgstr ""
17678
17679 # type: =head2
17680 #: ../fish/guestfish-actions.pod:138
17681 msgid "aug-clear"
17682 msgstr ""
17683
17684 # type: verbatim
17685 #: ../fish/guestfish-actions.pod:140
17686 #, no-wrap
17687 msgid ""
17688 " aug-clear augpath\n"
17689 "\n"
17690 msgstr ""
17691
17692 # type: =head2
17693 #: ../fish/guestfish-actions.pod:145
17694 msgid "aug-close"
17695 msgstr ""
17696
17697 # type: verbatim
17698 #: ../fish/guestfish-actions.pod:147
17699 #, no-wrap
17700 msgid ""
17701 " aug-close\n"
17702 "\n"
17703 msgstr ""
17704
17705 # type: textblock
17706 #: ../fish/guestfish-actions.pod:149
17707 msgid ""
17708 "Close the current Augeas handle and free up any resources used by it.  After "
17709 "calling this, you have to call L</aug-init> again before you can use any "
17710 "other Augeas functions."
17711 msgstr ""
17712
17713 # type: =head2
17714 #: ../fish/guestfish-actions.pod:154
17715 msgid "aug-defnode"
17716 msgstr ""
17717
17718 # type: verbatim
17719 #: ../fish/guestfish-actions.pod:156
17720 #, no-wrap
17721 msgid ""
17722 " aug-defnode name expr val\n"
17723 "\n"
17724 msgstr ""
17725
17726 # type: textblock
17727 #: ../fish/guestfish-actions.pod:161
17728 msgid ""
17729 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
17730 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
17731 "containing that single node."
17732 msgstr ""
17733
17734 # type: =head2
17735 #: ../fish/guestfish-actions.pod:169
17736 msgid "aug-defvar"
17737 msgstr ""
17738
17739 # type: verbatim
17740 #: ../fish/guestfish-actions.pod:171
17741 #, no-wrap
17742 msgid ""
17743 " aug-defvar name expr\n"
17744 "\n"
17745 msgstr ""
17746
17747 # type: =head2
17748 #: ../fish/guestfish-actions.pod:180
17749 msgid "aug-get"
17750 msgstr ""
17751
17752 # type: verbatim
17753 #: ../fish/guestfish-actions.pod:182
17754 #, no-wrap
17755 msgid ""
17756 " aug-get augpath\n"
17757 "\n"
17758 msgstr ""
17759
17760 # type: =head2
17761 #: ../fish/guestfish-actions.pod:187
17762 msgid "aug-init"
17763 msgstr ""
17764
17765 # type: verbatim
17766 #: ../fish/guestfish-actions.pod:189
17767 #, no-wrap
17768 msgid ""
17769 " aug-init root flags\n"
17770 "\n"
17771 msgstr ""
17772
17773 # type: textblock
17774 #: ../fish/guestfish-actions.pod:195
17775 msgid "You must call this before using any other L</aug-*> commands."
17776 msgstr ""
17777
17778 # type: textblock
17779 #: ../fish/guestfish-actions.pod:230
17780 msgid "Do not load the tree in L</aug-init>."
17781 msgstr ""
17782
17783 # type: textblock
17784 #: ../fish/guestfish-actions.pod:234
17785 msgid "To close the handle, you can call L</aug-close>."
17786 msgstr ""
17787
17788 # type: =head2
17789 #: ../fish/guestfish-actions.pod:238
17790 msgid "aug-insert"
17791 msgstr ""
17792
17793 # type: verbatim
17794 #: ../fish/guestfish-actions.pod:240
17795 #, no-wrap
17796 msgid ""
17797 " aug-insert augpath label true|false\n"
17798 "\n"
17799 msgstr ""
17800
17801 # type: =head2
17802 #: ../fish/guestfish-actions.pod:250
17803 msgid "aug-load"
17804 msgstr ""
17805
17806 # type: verbatim
17807 #: ../fish/guestfish-actions.pod:252
17808 #, no-wrap
17809 msgid ""
17810 " aug-load\n"
17811 "\n"
17812 msgstr ""
17813
17814 # type: =head2
17815 #: ../fish/guestfish-actions.pod:259
17816 msgid "aug-ls"
17817 msgstr ""
17818
17819 # type: verbatim
17820 #: ../fish/guestfish-actions.pod:261
17821 #, no-wrap
17822 msgid ""
17823 " aug-ls augpath\n"
17824 "\n"
17825 msgstr ""
17826
17827 # type: textblock
17828 #: ../fish/guestfish-actions.pod:263
17829 msgid ""
17830 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
17831 "resulting nodes into alphabetical order."
17832 msgstr ""
17833
17834 # type: =head2
17835 #: ../fish/guestfish-actions.pod:266
17836 msgid "aug-match"
17837 msgstr ""
17838
17839 # type: verbatim
17840 #: ../fish/guestfish-actions.pod:268
17841 #, no-wrap
17842 msgid ""
17843 " aug-match augpath\n"
17844 "\n"
17845 msgstr ""
17846
17847 # type: =head2
17848 #: ../fish/guestfish-actions.pod:274
17849 msgid "aug-mv"
17850 msgstr ""
17851
17852 # type: verbatim
17853 #: ../fish/guestfish-actions.pod:276
17854 #, no-wrap
17855 msgid ""
17856 " aug-mv src dest\n"
17857 "\n"
17858 msgstr ""
17859
17860 # type: =head2
17861 #: ../fish/guestfish-actions.pod:281
17862 msgid "aug-rm"
17863 msgstr ""
17864
17865 # type: verbatim
17866 #: ../fish/guestfish-actions.pod:283
17867 #, no-wrap
17868 msgid ""
17869 " aug-rm augpath\n"
17870 "\n"
17871 msgstr ""
17872
17873 # type: =head2
17874 #: ../fish/guestfish-actions.pod:289
17875 msgid "aug-save"
17876 msgstr ""
17877
17878 # type: verbatim
17879 #: ../fish/guestfish-actions.pod:291
17880 #, no-wrap
17881 msgid ""
17882 " aug-save\n"
17883 "\n"
17884 msgstr ""
17885
17886 # type: textblock
17887 #: ../fish/guestfish-actions.pod:295
17888 msgid ""
17889 "The flags which were passed to L</aug-init> affect exactly how files are "
17890 "saved."
17891 msgstr ""
17892
17893 # type: =head2
17894 #: ../fish/guestfish-actions.pod:298
17895 msgid "aug-set"
17896 msgstr ""
17897
17898 # type: verbatim
17899 #: ../fish/guestfish-actions.pod:300
17900 #, no-wrap
17901 msgid ""
17902 " aug-set augpath val\n"
17903 "\n"
17904 msgstr ""
17905
17906 # type: textblock
17907 #: ../fish/guestfish-actions.pod:304
17908 msgid ""
17909 "In the Augeas API, it is possible to clear a node by setting the value to "
17910 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
17911 "this call.  Instead you must use the L</aug-clear> call."
17912 msgstr ""
17913
17914 # type: =head2
17915 #: ../fish/guestfish-actions.pod:309
17916 msgid "available"
17917 msgstr ""
17918
17919 # type: verbatim
17920 #: ../fish/guestfish-actions.pod:311
17921 #, no-wrap
17922 msgid ""
17923 " available 'groups ...'\n"
17924 "\n"
17925 msgstr ""
17926
17927 # type: textblock
17928 #: ../fish/guestfish-actions.pod:317
17929 msgid ""
17930 "The libguestfs groups, and the functions that those groups correspond to, "
17931 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
17932 "runtime by calling L</available-all-groups>."
17933 msgstr ""
17934
17935 # type: textblock
17936 #: ../fish/guestfish-actions.pod:341
17937 msgid "You must call L</launch> before calling this function."
17938 msgstr ""
17939
17940 # type: textblock
17941 #: ../fish/guestfish-actions.pod:363
17942 msgid ""
17943 "This call was added in version C<1.0.80>.  In previous versions of "
17944 "libguestfs all you could do would be to speculatively execute a command to "
17945 "find out if the daemon implemented it.  See also L</version>."
17946 msgstr ""
17947
17948 # type: =head2
17949 #: ../fish/guestfish-actions.pod:370
17950 msgid "available-all-groups"
17951 msgstr ""
17952
17953 # type: verbatim
17954 #: ../fish/guestfish-actions.pod:372
17955 #, no-wrap
17956 msgid ""
17957 " available-all-groups\n"
17958 "\n"
17959 msgstr ""
17960
17961 # type: textblock
17962 #: ../fish/guestfish-actions.pod:374
17963 msgid ""
17964 "This command returns a list of all optional groups that this daemon knows "
17965 "about.  Note this returns both supported and unsupported groups.  To find "
17966 "out which ones the daemon can actually support you have to call "
17967 "L</available> on each member of the returned list."
17968 msgstr ""
17969
17970 # type: textblock
17971 #: ../fish/guestfish-actions.pod:380
17972 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
17973 msgstr ""
17974
17975 # type: =head2
17976 #: ../fish/guestfish-actions.pod:382
17977 msgid "base64-in"
17978 msgstr ""
17979
17980 # type: verbatim
17981 #: ../fish/guestfish-actions.pod:384
17982 #, no-wrap
17983 msgid ""
17984 " base64-in (base64file|-) filename\n"
17985 "\n"
17986 msgstr ""
17987
17988 # type: textblock
17989 #: ../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:3932 ../fish/guestfish-actions.pod:3944 ../fish/guestfish-actions.pod:3955 ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:4018 ../fish/guestfish-actions.pod:4027 ../fish/guestfish-actions.pod:4081 ../fish/guestfish-actions.pod:4104
17990 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
17991 msgstr ""
17992
17993 # type: =head2
17994 #: ../fish/guestfish-actions.pod:391
17995 msgid "base64-out"
17996 msgstr ""
17997
17998 # type: verbatim
17999 #: ../fish/guestfish-actions.pod:393
18000 #, no-wrap
18001 msgid ""
18002 " base64-out filename (base64file|-)\n"
18003 "\n"
18004 msgstr ""
18005
18006 # type: =head2
18007 #: ../fish/guestfish-actions.pod:400
18008 msgid "blockdev-flushbufs"
18009 msgstr ""
18010
18011 # type: verbatim
18012 #: ../fish/guestfish-actions.pod:402
18013 #, no-wrap
18014 msgid ""
18015 " blockdev-flushbufs device\n"
18016 "\n"
18017 msgstr ""
18018
18019 # type: =head2
18020 #: ../fish/guestfish-actions.pod:409
18021 msgid "blockdev-getbsz"
18022 msgstr ""
18023
18024 # type: verbatim
18025 #: ../fish/guestfish-actions.pod:411
18026 #, no-wrap
18027 msgid ""
18028 " blockdev-getbsz device\n"
18029 "\n"
18030 msgstr ""
18031
18032 # type: =head2
18033 #: ../fish/guestfish-actions.pod:420
18034 msgid "blockdev-getro"
18035 msgstr ""
18036
18037 # type: verbatim
18038 #: ../fish/guestfish-actions.pod:422
18039 #, no-wrap
18040 msgid ""
18041 " blockdev-getro device\n"
18042 "\n"
18043 msgstr ""
18044
18045 # type: =head2
18046 #: ../fish/guestfish-actions.pod:429
18047 msgid "blockdev-getsize64"
18048 msgstr ""
18049
18050 # type: verbatim
18051 #: ../fish/guestfish-actions.pod:431
18052 #, no-wrap
18053 msgid ""
18054 " blockdev-getsize64 device\n"
18055 "\n"
18056 msgstr ""
18057
18058 # type: textblock
18059 #: ../fish/guestfish-actions.pod:435
18060 msgid "See also L</blockdev-getsz>."
18061 msgstr ""
18062
18063 # type: =head2
18064 #: ../fish/guestfish-actions.pod:439
18065 msgid "blockdev-getss"
18066 msgstr ""
18067
18068 # type: verbatim
18069 #: ../fish/guestfish-actions.pod:441
18070 #, no-wrap
18071 msgid ""
18072 " blockdev-getss device\n"
18073 "\n"
18074 msgstr ""
18075
18076 # type: textblock
18077 #: ../fish/guestfish-actions.pod:446
18078 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18079 msgstr ""
18080
18081 # type: =head2
18082 #: ../fish/guestfish-actions.pod:451
18083 msgid "blockdev-getsz"
18084 msgstr ""
18085
18086 # type: verbatim
18087 #: ../fish/guestfish-actions.pod:453
18088 #, no-wrap
18089 msgid ""
18090 " blockdev-getsz device\n"
18091 "\n"
18092 msgstr ""
18093
18094 # type: textblock
18095 #: ../fish/guestfish-actions.pod:458
18096 msgid ""
18097 "See also L</blockdev-getss> for the real sector size of the device, and "
18098 "L</blockdev-getsize64> for the more useful I<size in bytes>."
18099 msgstr ""
18100
18101 # type: =head2
18102 #: ../fish/guestfish-actions.pod:464
18103 msgid "blockdev-rereadpt"
18104 msgstr ""
18105
18106 # type: verbatim
18107 #: ../fish/guestfish-actions.pod:466
18108 #, no-wrap
18109 msgid ""
18110 " blockdev-rereadpt device\n"
18111 "\n"
18112 msgstr ""
18113
18114 # type: =head2
18115 #: ../fish/guestfish-actions.pod:472
18116 msgid "blockdev-setbsz"
18117 msgstr ""
18118
18119 # type: verbatim
18120 #: ../fish/guestfish-actions.pod:474
18121 #, no-wrap
18122 msgid ""
18123 " blockdev-setbsz device blocksize\n"
18124 "\n"
18125 msgstr ""
18126
18127 # type: =head2
18128 #: ../fish/guestfish-actions.pod:483
18129 msgid "blockdev-setro"
18130 msgstr ""
18131
18132 # type: verbatim
18133 #: ../fish/guestfish-actions.pod:485
18134 #, no-wrap
18135 msgid ""
18136 " blockdev-setro device\n"
18137 "\n"
18138 msgstr ""
18139
18140 # type: =head2
18141 #: ../fish/guestfish-actions.pod:491
18142 msgid "blockdev-setrw"
18143 msgstr ""
18144
18145 # type: verbatim
18146 #: ../fish/guestfish-actions.pod:493
18147 #, no-wrap
18148 msgid ""
18149 " blockdev-setrw device\n"
18150 "\n"
18151 msgstr ""
18152
18153 # type: =head2
18154 #: ../fish/guestfish-actions.pod:499
18155 msgid "case-sensitive-path"
18156 msgstr ""
18157
18158 # type: verbatim
18159 #: ../fish/guestfish-actions.pod:501
18160 #, no-wrap
18161 msgid ""
18162 " case-sensitive-path path\n"
18163 "\n"
18164 msgstr ""
18165
18166 # type: textblock
18167 #: ../fish/guestfish-actions.pod:525
18168 msgid ""
18169 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
18170 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
18171 "how the directories were originally created under Windows)."
18172 msgstr ""
18173
18174 # type: textblock
18175 #: ../fish/guestfish-actions.pod:533
18176 msgid "See also L</realpath>."
18177 msgstr ""
18178
18179 # type: =head2
18180 #: ../fish/guestfish-actions.pod:535
18181 msgid "cat"
18182 msgstr ""
18183
18184 # type: verbatim
18185 #: ../fish/guestfish-actions.pod:537
18186 #, no-wrap
18187 msgid ""
18188 " cat path\n"
18189 "\n"
18190 msgstr ""
18191
18192 # type: textblock
18193 #: ../fish/guestfish-actions.pod:541
18194 msgid ""
18195 "Note that this function cannot correctly handle binary files (specifically, "
18196 "files containing C<\\0> character which is treated as end of string).  For "
18197 "those you need to use the L</read-file> or L</download> functions which have "
18198 "a more complex interface."
18199 msgstr ""
18200
18201 # type: =head2
18202 #: ../fish/guestfish-actions.pod:549
18203 msgid "checksum"
18204 msgstr ""
18205
18206 # type: verbatim
18207 #: ../fish/guestfish-actions.pod:551
18208 #, no-wrap
18209 msgid ""
18210 " checksum csumtype path\n"
18211 "\n"
18212 msgstr ""
18213
18214 # type: textblock
18215 #: ../fish/guestfish-actions.pod:594
18216 msgid "To get the checksum for a device, use L</checksum-device>."
18217 msgstr ""
18218
18219 # type: textblock
18220 #: ../fish/guestfish-actions.pod:596
18221 msgid "To get the checksums for many files, use L</checksums-out>."
18222 msgstr ""
18223
18224 # type: =head2
18225 #: ../fish/guestfish-actions.pod:598
18226 msgid "checksum-device"
18227 msgstr ""
18228
18229 # type: verbatim
18230 #: ../fish/guestfish-actions.pod:600
18231 #, no-wrap
18232 msgid ""
18233 " checksum-device csumtype device\n"
18234 "\n"
18235 msgstr ""
18236
18237 # type: textblock
18238 #: ../fish/guestfish-actions.pod:602
18239 msgid ""
18240 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18241 "device named C<device>.  For the types of checksums supported see the "
18242 "L</checksum> command."
18243 msgstr ""
18244
18245 # type: =head2
18246 #: ../fish/guestfish-actions.pod:606
18247 msgid "checksums-out"
18248 msgstr ""
18249
18250 # type: verbatim
18251 #: ../fish/guestfish-actions.pod:608
18252 #, no-wrap
18253 msgid ""
18254 " checksums-out csumtype directory (sumsfile|-)\n"
18255 "\n"
18256 msgstr ""
18257
18258 # type: =head2
18259 #: ../fish/guestfish-actions.pod:624
18260 msgid "chmod"
18261 msgstr ""
18262
18263 # type: verbatim
18264 #: ../fish/guestfish-actions.pod:626
18265 #, no-wrap
18266 msgid ""
18267 " chmod mode path\n"
18268 "\n"
18269 msgstr ""
18270
18271 # type: =head2
18272 #: ../fish/guestfish-actions.pod:637
18273 msgid "chown"
18274 msgstr ""
18275
18276 # type: verbatim
18277 #: ../fish/guestfish-actions.pod:639
18278 #, no-wrap
18279 msgid ""
18280 " chown owner group path\n"
18281 "\n"
18282 msgstr ""
18283
18284 # type: =head2
18285 #: ../fish/guestfish-actions.pod:647
18286 msgid "command"
18287 msgstr ""
18288
18289 # type: verbatim
18290 #: ../fish/guestfish-actions.pod:649
18291 #, no-wrap
18292 msgid ""
18293 " command 'arguments ...'\n"
18294 "\n"
18295 msgstr ""
18296
18297 # type: textblock
18298 #: ../fish/guestfish-actions.pod:656
18299 msgid ""
18300 "The single parameter is an argv-style list of arguments.  The first element "
18301 "is the name of the program to run.  Subsequent elements are parameters.  The "
18302 "list must be non-empty (ie. must contain a program name).  Note that the "
18303 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18304 msgstr ""
18305
18306 # type: =head2
18307 #: ../fish/guestfish-actions.pod:684
18308 msgid "command-lines"
18309 msgstr ""
18310
18311 # type: verbatim
18312 #: ../fish/guestfish-actions.pod:686
18313 #, no-wrap
18314 msgid ""
18315 " command-lines 'arguments ...'\n"
18316 "\n"
18317 msgstr ""
18318
18319 # type: textblock
18320 #: ../fish/guestfish-actions.pod:688
18321 msgid "This is the same as L</command>, but splits the result into a list of lines."
18322 msgstr ""
18323
18324 # type: textblock
18325 #: ../fish/guestfish-actions.pod:691
18326 msgid "See also: L</sh-lines>"
18327 msgstr ""
18328
18329 # type: =head2
18330 #: ../fish/guestfish-actions.pod:696
18331 msgid "config"
18332 msgstr ""
18333
18334 # type: verbatim
18335 #: ../fish/guestfish-actions.pod:698
18336 #, no-wrap
18337 msgid ""
18338 " config qemuparam qemuvalue\n"
18339 "\n"
18340 msgstr ""
18341
18342 # type: =head2
18343 #: ../fish/guestfish-actions.pod:709
18344 msgid "copy-size"
18345 msgstr ""
18346
18347 # type: verbatim
18348 #: ../fish/guestfish-actions.pod:711
18349 #, no-wrap
18350 msgid ""
18351 " copy-size src dest size\n"
18352 "\n"
18353 msgstr ""
18354
18355 # type: =head2
18356 #: ../fish/guestfish-actions.pod:719
18357 msgid "cp"
18358 msgstr ""
18359
18360 # type: verbatim
18361 #: ../fish/guestfish-actions.pod:721
18362 #, no-wrap
18363 msgid ""
18364 " cp src dest\n"
18365 "\n"
18366 msgstr ""
18367
18368 # type: =head2
18369 #: ../fish/guestfish-actions.pod:726
18370 msgid "cp-a"
18371 msgstr ""
18372
18373 # type: verbatim
18374 #: ../fish/guestfish-actions.pod:728
18375 #, no-wrap
18376 msgid ""
18377 " cp-a src dest\n"
18378 "\n"
18379 msgstr ""
18380
18381 # type: =head2
18382 #: ../fish/guestfish-actions.pod:733
18383 msgid "dd"
18384 msgstr ""
18385
18386 # type: verbatim
18387 #: ../fish/guestfish-actions.pod:735
18388 #, no-wrap
18389 msgid ""
18390 " dd src dest\n"
18391 "\n"
18392 msgstr ""
18393
18394 # type: textblock
18395 #: ../fish/guestfish-actions.pod:742
18396 msgid ""
18397 "If the destination is a device, it must be as large or larger than the "
18398 "source file or device, otherwise the copy will fail.  This command cannot do "
18399 "partial copies (see L</copy-size>)."
18400 msgstr ""
18401
18402 # type: =head2
18403 #: ../fish/guestfish-actions.pod:746
18404 msgid "debug"
18405 msgstr ""
18406
18407 # type: verbatim
18408 #: ../fish/guestfish-actions.pod:748
18409 #, no-wrap
18410 msgid ""
18411 " debug subcmd 'extraargs ...'\n"
18412 "\n"
18413 msgstr ""
18414
18415 # type: textblock
18416 #: ../fish/guestfish-actions.pod:750
18417 msgid ""
18418 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18419 "daemon) that runs inside the qemu subprocess."
18420 msgstr ""
18421
18422 # type: =head2
18423 #: ../fish/guestfish-actions.pod:758
18424 msgid "debug-upload"
18425 msgstr ""
18426
18427 # type: verbatim
18428 #: ../fish/guestfish-actions.pod:760
18429 #, no-wrap
18430 msgid ""
18431 " debug-upload (filename|-) tmpname mode\n"
18432 "\n"
18433 msgstr ""
18434
18435 # type: textblock
18436 #: ../fish/guestfish-actions.pod:762
18437 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
18438 msgstr ""
18439
18440 # type: =head2
18441 #: ../fish/guestfish-actions.pod:771
18442 msgid "df"
18443 msgstr ""
18444
18445 # type: verbatim
18446 #: ../fish/guestfish-actions.pod:773
18447 #, no-wrap
18448 msgid ""
18449 " df\n"
18450 "\n"
18451 msgstr ""
18452
18453 # type: =head2
18454 #: ../fish/guestfish-actions.pod:781
18455 msgid "df-h"
18456 msgstr ""
18457
18458 # type: verbatim
18459 #: ../fish/guestfish-actions.pod:783
18460 #, no-wrap
18461 msgid ""
18462 " df-h\n"
18463 "\n"
18464 msgstr ""
18465
18466 # type: =head2
18467 #: ../fish/guestfish-actions.pod:792
18468 msgid "dmesg"
18469 msgstr ""
18470
18471 # type: verbatim
18472 #: ../fish/guestfish-actions.pod:794
18473 #, no-wrap
18474 msgid ""
18475 " dmesg\n"
18476 "\n"
18477 msgstr ""
18478
18479 # type: textblock
18480 #: ../fish/guestfish-actions.pod:800
18481 msgid ""
18482 "Another way to get the same information is to enable verbose messages with "
18483 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18484 "before running the program."
18485 msgstr ""
18486
18487 # type: =head2
18488 #: ../fish/guestfish-actions.pod:805
18489 msgid "download"
18490 msgstr ""
18491
18492 # type: verbatim
18493 #: ../fish/guestfish-actions.pod:807
18494 #, no-wrap
18495 msgid ""
18496 " download remotefilename (filename|-)\n"
18497 "\n"
18498 msgstr ""
18499
18500 # type: textblock
18501 #: ../fish/guestfish-actions.pod:814
18502 msgid "See also L</upload>, L</cat>."
18503 msgstr ""
18504
18505 # type: =head2
18506 #: ../fish/guestfish-actions.pod:818
18507 msgid "download-offset"
18508 msgstr ""
18509
18510 # type: verbatim
18511 #: ../fish/guestfish-actions.pod:820
18512 #, no-wrap
18513 msgid ""
18514 " download-offset remotefilename (filename|-) offset size\n"
18515 "\n"
18516 msgstr ""
18517
18518 # type: textblock
18519 #: ../fish/guestfish-actions.pod:828
18520 msgid ""
18521 "Note that there is no limit on the amount of data that can be downloaded "
18522 "with this call, unlike with L</pread>, and this call always reads the full "
18523 "amount unless an error occurs."
18524 msgstr ""
18525
18526 # type: textblock
18527 #: ../fish/guestfish-actions.pod:833
18528 msgid "See also L</download>, L</pread>."
18529 msgstr ""
18530
18531 # type: =head2
18532 #: ../fish/guestfish-actions.pod:837
18533 msgid "drop-caches"
18534 msgstr ""
18535
18536 # type: verbatim
18537 #: ../fish/guestfish-actions.pod:839
18538 #, no-wrap
18539 msgid ""
18540 " drop-caches whattodrop\n"
18541 "\n"
18542 msgstr ""
18543
18544 # type: =head2
18545 #: ../fish/guestfish-actions.pod:851
18546 msgid "du"
18547 msgstr ""
18548
18549 # type: verbatim
18550 #: ../fish/guestfish-actions.pod:853
18551 #, no-wrap
18552 msgid ""
18553 " du path\n"
18554 "\n"
18555 msgstr ""
18556
18557 # type: =head2
18558 #: ../fish/guestfish-actions.pod:865
18559 msgid "e2fsck-f"
18560 msgstr ""
18561
18562 # type: verbatim
18563 #: ../fish/guestfish-actions.pod:867
18564 #, no-wrap
18565 msgid ""
18566 " e2fsck-f device\n"
18567 "\n"
18568 msgstr ""
18569
18570 # type: textblock
18571 #: ../fish/guestfish-actions.pod:873
18572 msgid ""
18573 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18574 "should use L</fsck>."
18575 msgstr ""
18576
18577 # type: =head2
18578 #: ../fish/guestfish-actions.pod:876
18579 msgid "echo-daemon"
18580 msgstr ""
18581
18582 # type: verbatim
18583 #: ../fish/guestfish-actions.pod:878
18584 #, no-wrap
18585 msgid ""
18586 " echo-daemon 'words ...'\n"
18587 "\n"
18588 msgstr ""
18589
18590 # type: textblock
18591 #: ../fish/guestfish-actions.pod:885
18592 msgid "See also L</ping-daemon>."
18593 msgstr ""
18594
18595 # type: =head2
18596 #: ../fish/guestfish-actions.pod:887
18597 msgid "egrep"
18598 msgstr ""
18599
18600 # type: verbatim
18601 #: ../fish/guestfish-actions.pod:889
18602 #, no-wrap
18603 msgid ""
18604 " egrep regex path\n"
18605 "\n"
18606 msgstr ""
18607
18608 # type: =head2
18609 #: ../fish/guestfish-actions.pod:897
18610 msgid "egrepi"
18611 msgstr ""
18612
18613 # type: verbatim
18614 #: ../fish/guestfish-actions.pod:899
18615 #, no-wrap
18616 msgid ""
18617 " egrepi regex path\n"
18618 "\n"
18619 msgstr ""
18620
18621 # type: =head2
18622 #: ../fish/guestfish-actions.pod:907
18623 msgid "equal"
18624 msgstr ""
18625
18626 # type: verbatim
18627 #: ../fish/guestfish-actions.pod:909
18628 #, no-wrap
18629 msgid ""
18630 " equal file1 file2\n"
18631 "\n"
18632 msgstr ""
18633
18634 # type: =head2
18635 #: ../fish/guestfish-actions.pod:916
18636 msgid "exists"
18637 msgstr ""
18638
18639 # type: verbatim
18640 #: ../fish/guestfish-actions.pod:918
18641 #, no-wrap
18642 msgid ""
18643 " exists path\n"
18644 "\n"
18645 msgstr ""
18646
18647 # type: textblock
18648 #: ../fish/guestfish-actions.pod:923
18649 msgid "See also L</is-file>, L</is-dir>, L</stat>."
18650 msgstr ""
18651
18652 # type: =head2
18653 #: ../fish/guestfish-actions.pod:925
18654 msgid "fallocate"
18655 msgstr ""
18656
18657 # type: verbatim
18658 #: ../fish/guestfish-actions.pod:927
18659 #, no-wrap
18660 msgid ""
18661 " fallocate path len\n"
18662 "\n"
18663 msgstr ""
18664
18665 # type: =head2
18666 #: ../fish/guestfish-actions.pod:944
18667 msgid "fallocate64"
18668 msgstr ""
18669
18670 # type: verbatim
18671 #: ../fish/guestfish-actions.pod:946
18672 #, no-wrap
18673 msgid ""
18674 " fallocate64 path len\n"
18675 "\n"
18676 msgstr ""
18677
18678 # type: textblock
18679 #: ../fish/guestfish-actions.pod:952
18680 msgid ""
18681 "Note that this call allocates disk blocks for the file.  To create a sparse "
18682 "file use L</truncate-size> instead."
18683 msgstr ""
18684
18685 # type: textblock
18686 #: ../fish/guestfish-actions.pod:955
18687 msgid ""
18688 "The deprecated call L</fallocate> does the same, but owing to an oversight "
18689 "it only allowed 30 bit lengths to be specified, effectively limiting the "
18690 "maximum size of files created through that call to 1GB."
18691 msgstr ""
18692
18693 # type: =head2
18694 #: ../fish/guestfish-actions.pod:964
18695 msgid "fgrep"
18696 msgstr ""
18697
18698 # type: verbatim
18699 #: ../fish/guestfish-actions.pod:966
18700 #, no-wrap
18701 msgid ""
18702 " fgrep pattern path\n"
18703 "\n"
18704 msgstr ""
18705
18706 # type: =head2
18707 #: ../fish/guestfish-actions.pod:974
18708 msgid "fgrepi"
18709 msgstr ""
18710
18711 # type: verbatim
18712 #: ../fish/guestfish-actions.pod:976
18713 #, no-wrap
18714 msgid ""
18715 " fgrepi pattern path\n"
18716 "\n"
18717 msgstr ""
18718
18719 # type: =head2
18720 #: ../fish/guestfish-actions.pod:984
18721 msgid "file"
18722 msgstr ""
18723
18724 # type: verbatim
18725 #: ../fish/guestfish-actions.pod:986
18726 #, no-wrap
18727 msgid ""
18728 " file path\n"
18729 "\n"
18730 msgstr ""
18731
18732 # type: textblock
18733 #: ../fish/guestfish-actions.pod:998
18734 msgid ""
18735 "This command can also be used on C</dev/> devices (and partitions, LV "
18736 "names).  You can for example use this to determine if a device contains a "
18737 "filesystem, although it's usually better to use L</vfs-type>."
18738 msgstr ""
18739
18740 # type: =head2
18741 #: ../fish/guestfish-actions.pod:1008
18742 msgid "file-architecture"
18743 msgstr ""
18744
18745 # type: verbatim
18746 #: ../fish/guestfish-actions.pod:1010
18747 #, no-wrap
18748 msgid ""
18749 " file-architecture filename\n"
18750 "\n"
18751 msgstr ""
18752
18753 # type: =head2
18754 #: ../fish/guestfish-actions.pod:1113
18755 msgid "filesize"
18756 msgstr ""
18757
18758 # type: verbatim
18759 #: ../fish/guestfish-actions.pod:1115
18760 #, no-wrap
18761 msgid ""
18762 " filesize file\n"
18763 "\n"
18764 msgstr ""
18765
18766 # type: textblock
18767 #: ../fish/guestfish-actions.pod:1119
18768 msgid ""
18769 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
18770 "L</is-file> etc.  To get the size of block devices, use "
18771 "L</blockdev-getsize64>."
18772 msgstr ""
18773
18774 # type: =head2
18775 #: ../fish/guestfish-actions.pod:1123
18776 msgid "fill"
18777 msgstr ""
18778
18779 # type: verbatim
18780 #: ../fish/guestfish-actions.pod:1125
18781 #, no-wrap
18782 msgid ""
18783 " fill c len path\n"
18784 "\n"
18785 msgstr ""
18786
18787 # type: textblock
18788 #: ../fish/guestfish-actions.pod:1131
18789 msgid ""
18790 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
18791 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
18792 "L</fill-pattern>."
18793 msgstr ""
18794
18795 # type: =head2
18796 #: ../fish/guestfish-actions.pod:1136
18797 msgid "fill-pattern"
18798 msgstr ""
18799
18800 # type: verbatim
18801 #: ../fish/guestfish-actions.pod:1138
18802 #, no-wrap
18803 msgid ""
18804 " fill-pattern pattern len path\n"
18805 "\n"
18806 msgstr ""
18807
18808 # type: textblock
18809 #: ../fish/guestfish-actions.pod:1140
18810 msgid ""
18811 "This function is like L</fill> except that it creates a new file of length "
18812 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
18813 "is truncated if necessary to ensure the length of the file is exactly C<len> "
18814 "bytes."
18815 msgstr ""
18816
18817 # type: =head2
18818 #: ../fish/guestfish-actions.pod:1145
18819 msgid "find"
18820 msgstr ""
18821
18822 # type: verbatim
18823 #: ../fish/guestfish-actions.pod:1147
18824 #, no-wrap
18825 msgid ""
18826 " find directory\n"
18827 "\n"
18828 msgstr ""
18829
18830 # type: textblock
18831 #: ../fish/guestfish-actions.pod:1161
18832 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
18833 msgstr ""
18834
18835 # type: textblock
18836 #: ../fish/guestfish-actions.pod:1174
18837 msgid "See also L</find0>."
18838 msgstr ""
18839
18840 # type: =head2
18841 #: ../fish/guestfish-actions.pod:1179
18842 msgid "find0"
18843 msgstr ""
18844
18845 # type: verbatim
18846 #: ../fish/guestfish-actions.pod:1181
18847 #, no-wrap
18848 msgid ""
18849 " find0 directory (files|-)\n"
18850 "\n"
18851 msgstr ""
18852
18853 # type: textblock
18854 #: ../fish/guestfish-actions.pod:1187
18855 msgid "This command works the same way as L</find> with the following exceptions:"
18856 msgstr ""
18857
18858 # type: =head2
18859 #: ../fish/guestfish-actions.pod:1214
18860 msgid "findfs-label"
18861 msgstr ""
18862
18863 # type: verbatim
18864 #: ../fish/guestfish-actions.pod:1216
18865 #, no-wrap
18866 msgid ""
18867 " findfs-label label\n"
18868 "\n"
18869 msgstr ""
18870
18871 # type: textblock
18872 #: ../fish/guestfish-actions.pod:1222
18873 msgid "To find the label of a filesystem, use L</vfs-label>."
18874 msgstr ""
18875
18876 # type: =head2
18877 #: ../fish/guestfish-actions.pod:1224
18878 msgid "findfs-uuid"
18879 msgstr ""
18880
18881 # type: verbatim
18882 #: ../fish/guestfish-actions.pod:1226
18883 #, no-wrap
18884 msgid ""
18885 " findfs-uuid uuid\n"
18886 "\n"
18887 msgstr ""
18888
18889 # type: textblock
18890 #: ../fish/guestfish-actions.pod:1232
18891 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
18892 msgstr ""
18893
18894 # type: =head2
18895 #: ../fish/guestfish-actions.pod:1234
18896 msgid "fsck"
18897 msgstr ""
18898
18899 # type: verbatim
18900 #: ../fish/guestfish-actions.pod:1236
18901 #, no-wrap
18902 msgid ""
18903 " fsck fstype device\n"
18904 "\n"
18905 msgstr ""
18906
18907 # type: =head2
18908 #: ../fish/guestfish-actions.pod:1266
18909 msgid "get-append"
18910 msgstr ""
18911
18912 # type: verbatim
18913 #: ../fish/guestfish-actions.pod:1268
18914 #, no-wrap
18915 msgid ""
18916 " get-append\n"
18917 "\n"
18918 msgstr ""
18919
18920 # type: =head2
18921 #: ../fish/guestfish-actions.pod:1275
18922 msgid "get-autosync"
18923 msgstr ""
18924
18925 # type: verbatim
18926 #: ../fish/guestfish-actions.pod:1277
18927 #, no-wrap
18928 msgid ""
18929 " get-autosync\n"
18930 "\n"
18931 msgstr ""
18932
18933 # type: =head2
18934 #: ../fish/guestfish-actions.pod:1281
18935 msgid "get-direct"
18936 msgstr ""
18937
18938 # type: verbatim
18939 #: ../fish/guestfish-actions.pod:1283
18940 #, no-wrap
18941 msgid ""
18942 " get-direct\n"
18943 "\n"
18944 msgstr ""
18945
18946 # type: =head2
18947 #: ../fish/guestfish-actions.pod:1287
18948 msgid "get-e2label"
18949 msgstr ""
18950
18951 # type: verbatim
18952 #: ../fish/guestfish-actions.pod:1289
18953 #, no-wrap
18954 msgid ""
18955 " get-e2label device\n"
18956 "\n"
18957 msgstr ""
18958
18959 # type: =head2
18960 #: ../fish/guestfish-actions.pod:1301
18961 msgid "get-e2uuid"
18962 msgstr ""
18963
18964 # type: verbatim
18965 #: ../fish/guestfish-actions.pod:1303
18966 #, no-wrap
18967 msgid ""
18968 " get-e2uuid device\n"
18969 "\n"
18970 msgstr ""
18971
18972 # type: =head2
18973 #: ../fish/guestfish-actions.pod:1315
18974 msgid "get-memsize"
18975 msgstr ""
18976
18977 # type: verbatim
18978 #: ../fish/guestfish-actions.pod:1317
18979 #, no-wrap
18980 msgid ""
18981 " get-memsize\n"
18982 "\n"
18983 msgstr ""
18984
18985 # type: textblock
18986 #: ../fish/guestfish-actions.pod:1322
18987 msgid ""
18988 "If L</set-memsize> was not called on this handle, and if "
18989 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
18990 "value for memsize."
18991 msgstr ""
18992
18993 # type: =head2
18994 #: ../fish/guestfish-actions.pod:1329
18995 msgid "get-network"
18996 msgstr ""
18997
18998 # type: verbatim
18999 #: ../fish/guestfish-actions.pod:1331
19000 #, no-wrap
19001 msgid ""
19002 " get-network\n"
19003 "\n"
19004 msgstr ""
19005
19006 # type: =head2
19007 #: ../fish/guestfish-actions.pod:1335
19008 msgid "get-path"
19009 msgstr ""
19010
19011 # type: verbatim
19012 #: ../fish/guestfish-actions.pod:1337
19013 #, no-wrap
19014 msgid ""
19015 " get-path\n"
19016 "\n"
19017 msgstr ""
19018
19019 # type: =head2
19020 #: ../fish/guestfish-actions.pod:1344
19021 msgid "get-pid"
19022 msgstr ""
19023
19024 # type: =head2
19025 #: ../fish/guestfish-actions.pod:1346
19026 msgid "pid"
19027 msgstr ""
19028
19029 # type: verbatim
19030 #: ../fish/guestfish-actions.pod:1348
19031 #, no-wrap
19032 msgid ""
19033 " get-pid\n"
19034 "\n"
19035 msgstr ""
19036
19037 # type: =head2
19038 #: ../fish/guestfish-actions.pod:1355
19039 msgid "get-qemu"
19040 msgstr ""
19041
19042 # type: verbatim
19043 #: ../fish/guestfish-actions.pod:1357
19044 #, no-wrap
19045 msgid ""
19046 " get-qemu\n"
19047 "\n"
19048 msgstr ""
19049
19050 # type: =head2
19051 #: ../fish/guestfish-actions.pod:1364
19052 msgid "get-recovery-proc"
19053 msgstr ""
19054
19055 # type: verbatim
19056 #: ../fish/guestfish-actions.pod:1366
19057 #, no-wrap
19058 msgid ""
19059 " get-recovery-proc\n"
19060 "\n"
19061 msgstr ""
19062
19063 # type: =head2
19064 #: ../fish/guestfish-actions.pod:1370
19065 msgid "get-selinux"
19066 msgstr ""
19067
19068 # type: verbatim
19069 #: ../fish/guestfish-actions.pod:1372
19070 #, no-wrap
19071 msgid ""
19072 " get-selinux\n"
19073 "\n"
19074 msgstr ""
19075
19076 # type: textblock
19077 #: ../fish/guestfish-actions.pod:1374
19078 msgid ""
19079 "This returns the current setting of the selinux flag which is passed to the "
19080 "appliance at boot time.  See L</set-selinux>."
19081 msgstr ""
19082
19083 # type: =head2
19084 #: ../fish/guestfish-actions.pod:1380
19085 msgid "get-state"
19086 msgstr ""
19087
19088 # type: verbatim
19089 #: ../fish/guestfish-actions.pod:1382
19090 #, no-wrap
19091 msgid ""
19092 " get-state\n"
19093 "\n"
19094 msgstr ""
19095
19096 # type: =head2
19097 #: ../fish/guestfish-actions.pod:1389
19098 msgid "get-trace"
19099 msgstr ""
19100
19101 # type: verbatim
19102 #: ../fish/guestfish-actions.pod:1391
19103 #, no-wrap
19104 msgid ""
19105 " get-trace\n"
19106 "\n"
19107 msgstr ""
19108
19109 # type: =head2
19110 #: ../fish/guestfish-actions.pod:1395
19111 msgid "get-umask"
19112 msgstr ""
19113
19114 # type: verbatim
19115 #: ../fish/guestfish-actions.pod:1397
19116 #, no-wrap
19117 msgid ""
19118 " get-umask\n"
19119 "\n"
19120 msgstr ""
19121
19122 # type: textblock
19123 #: ../fish/guestfish-actions.pod:1399
19124 msgid ""
19125 "Return the current umask.  By default the umask is C<022> unless it has been "
19126 "set by calling L</umask>."
19127 msgstr ""
19128
19129 # type: =head2
19130 #: ../fish/guestfish-actions.pod:1402
19131 msgid "get-verbose"
19132 msgstr ""
19133
19134 # type: verbatim
19135 #: ../fish/guestfish-actions.pod:1404
19136 #, no-wrap
19137 msgid ""
19138 " get-verbose\n"
19139 "\n"
19140 msgstr ""
19141
19142 # type: =head2
19143 #: ../fish/guestfish-actions.pod:1408
19144 msgid "getcon"
19145 msgstr ""
19146
19147 # type: verbatim
19148 #: ../fish/guestfish-actions.pod:1410
19149 #, no-wrap
19150 msgid ""
19151 " getcon\n"
19152 "\n"
19153 msgstr ""
19154
19155 # type: textblock
19156 #: ../fish/guestfish-actions.pod:1414
19157 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19158 msgstr ""
19159
19160 # type: =head2
19161 #: ../fish/guestfish-actions.pod:1417
19162 msgid "getxattrs"
19163 msgstr ""
19164
19165 # type: verbatim
19166 #: ../fish/guestfish-actions.pod:1419
19167 #, no-wrap
19168 msgid ""
19169 " getxattrs path\n"
19170 "\n"
19171 msgstr ""
19172
19173 # type: textblock
19174 #: ../fish/guestfish-actions.pod:1427
19175 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19176 msgstr ""
19177
19178 # type: =head2
19179 #: ../fish/guestfish-actions.pod:1429
19180 msgid "glob-expand"
19181 msgstr ""
19182
19183 # type: verbatim
19184 #: ../fish/guestfish-actions.pod:1431
19185 #, no-wrap
19186 msgid ""
19187 " glob-expand pattern\n"
19188 "\n"
19189 msgstr ""
19190
19191 # type: =head2
19192 #: ../fish/guestfish-actions.pod:1444
19193 msgid "grep"
19194 msgstr ""
19195
19196 # type: verbatim
19197 #: ../fish/guestfish-actions.pod:1446
19198 #, no-wrap
19199 msgid ""
19200 " grep regex path\n"
19201 "\n"
19202 msgstr ""
19203
19204 # type: =head2
19205 #: ../fish/guestfish-actions.pod:1454
19206 msgid "grepi"
19207 msgstr ""
19208
19209 # type: verbatim
19210 #: ../fish/guestfish-actions.pod:1456
19211 #, no-wrap
19212 msgid ""
19213 " grepi regex path\n"
19214 "\n"
19215 msgstr ""
19216
19217 # type: =head2
19218 #: ../fish/guestfish-actions.pod:1464
19219 msgid "grub-install"
19220 msgstr ""
19221
19222 # type: verbatim
19223 #: ../fish/guestfish-actions.pod:1466
19224 #, no-wrap
19225 msgid ""
19226 " grub-install root device\n"
19227 "\n"
19228 msgstr ""
19229
19230 # type: =head2
19231 #: ../fish/guestfish-actions.pod:1482
19232 msgid "head"
19233 msgstr ""
19234
19235 # type: verbatim
19236 #: ../fish/guestfish-actions.pod:1484
19237 #, no-wrap
19238 msgid ""
19239 " head path\n"
19240 "\n"
19241 msgstr ""
19242
19243 # type: =head2
19244 #: ../fish/guestfish-actions.pod:1492
19245 msgid "head-n"
19246 msgstr ""
19247
19248 # type: verbatim
19249 #: ../fish/guestfish-actions.pod:1494
19250 #, no-wrap
19251 msgid ""
19252 " head-n nrlines path\n"
19253 "\n"
19254 msgstr ""
19255
19256 # type: =head2
19257 #: ../fish/guestfish-actions.pod:1507
19258 msgid "hexdump"
19259 msgstr ""
19260
19261 # type: verbatim
19262 #: ../fish/guestfish-actions.pod:1509
19263 #, no-wrap
19264 msgid ""
19265 " hexdump path\n"
19266 "\n"
19267 msgstr ""
19268
19269 # type: =head2
19270 #: ../fish/guestfish-actions.pod:1517
19271 msgid "initrd-cat"
19272 msgstr ""
19273
19274 # type: verbatim
19275 #: ../fish/guestfish-actions.pod:1519
19276 #, no-wrap
19277 msgid ""
19278 " initrd-cat initrdpath filename\n"
19279 "\n"
19280 msgstr ""
19281
19282 # type: textblock
19283 #: ../fish/guestfish-actions.pod:1531
19284 msgid "See also L</initrd-list>."
19285 msgstr ""
19286
19287 # type: =head2
19288 #: ../fish/guestfish-actions.pod:1536
19289 msgid "initrd-list"
19290 msgstr ""
19291
19292 # type: verbatim
19293 #: ../fish/guestfish-actions.pod:1538
19294 #, no-wrap
19295 msgid ""
19296 " initrd-list path\n"
19297 "\n"
19298 msgstr ""
19299
19300 # type: =head2
19301 #: ../fish/guestfish-actions.pod:1550
19302 msgid "inotify-add-watch"
19303 msgstr ""
19304
19305 # type: verbatim
19306 #: ../fish/guestfish-actions.pod:1552
19307 #, no-wrap
19308 msgid ""
19309 " inotify-add-watch path mask\n"
19310 "\n"
19311 msgstr ""
19312
19313 # type: =head2
19314 #: ../fish/guestfish-actions.pod:1564
19315 msgid "inotify-close"
19316 msgstr ""
19317
19318 # type: verbatim
19319 #: ../fish/guestfish-actions.pod:1566
19320 #, no-wrap
19321 msgid ""
19322 " inotify-close\n"
19323 "\n"
19324 msgstr ""
19325
19326 # type: =head2
19327 #: ../fish/guestfish-actions.pod:1572
19328 msgid "inotify-files"
19329 msgstr ""
19330
19331 # type: verbatim
19332 #: ../fish/guestfish-actions.pod:1574
19333 #, no-wrap
19334 msgid ""
19335 " inotify-files\n"
19336 "\n"
19337 msgstr ""
19338
19339 # type: textblock
19340 #: ../fish/guestfish-actions.pod:1576
19341 msgid ""
19342 "This function is a helpful wrapper around L</inotify-read> which just "
19343 "returns a list of pathnames of objects that were touched.  The returned "
19344 "pathnames are sorted and deduplicated."
19345 msgstr ""
19346
19347 # type: =head2
19348 #: ../fish/guestfish-actions.pod:1580
19349 msgid "inotify-init"
19350 msgstr ""
19351
19352 # type: verbatim
19353 #: ../fish/guestfish-actions.pod:1582
19354 #, no-wrap
19355 msgid ""
19356 " inotify-init maxevents\n"
19357 "\n"
19358 msgstr ""
19359
19360 # type: textblock
19361 #: ../fish/guestfish-actions.pod:1588
19362 msgid ""
19363 "C<maxevents> is the maximum number of events which will be queued up between "
19364 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19365 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19366 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19367 "but records the fact that it threw them away by setting a flag "
19368 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19369 msgstr ""
19370
19371 # type: textblock
19372 #: ../fish/guestfish-actions.pod:1598
19373 msgid ""
19374 "Before any events are generated, you have to add some watches to the "
19375 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19376 "L</inotify-watch-all>."
19377 msgstr ""
19378
19379 # type: textblock
19380 #: ../fish/guestfish-actions.pod:1604
19381 msgid ""
19382 "Queued up events should be read periodically by calling L</inotify-read> (or "
19383 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19384 "If you don't read the events out often enough then you risk the internal "
19385 "queue overflowing."
19386 msgstr ""
19387
19388 # type: textblock
19389 #: ../fish/guestfish-actions.pod:1611
19390 msgid ""
19391 "The handle should be closed after use by calling L</inotify-close>.  This "
19392 "also removes any watches automatically."
19393 msgstr ""
19394
19395 # type: =head2
19396 #: ../fish/guestfish-actions.pod:1620
19397 msgid "inotify-read"
19398 msgstr ""
19399
19400 # type: verbatim
19401 #: ../fish/guestfish-actions.pod:1622
19402 #, no-wrap
19403 msgid ""
19404 " inotify-read\n"
19405 "\n"
19406 msgstr ""
19407
19408 # type: =head2
19409 #: ../fish/guestfish-actions.pod:1635
19410 msgid "inotify-rm-watch"
19411 msgstr ""
19412
19413 # type: verbatim
19414 #: ../fish/guestfish-actions.pod:1637
19415 #, no-wrap
19416 msgid ""
19417 " inotify-rm-watch wd\n"
19418 "\n"
19419 msgstr ""
19420
19421 # type: textblock
19422 #: ../fish/guestfish-actions.pod:1639
19423 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19424 msgstr ""
19425
19426 # type: =head2
19427 #: ../fish/guestfish-actions.pod:1642
19428 msgid "inspect-get-arch"
19429 msgstr ""
19430
19431 # type: verbatim
19432 #: ../fish/guestfish-actions.pod:1644
19433 #, no-wrap
19434 msgid ""
19435 " inspect-get-arch root\n"
19436 "\n"
19437 msgstr ""
19438
19439 # type: textblock
19440 #: ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1746 ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1782 ../fish/guestfish-actions.pod:1805 ../fish/guestfish-actions.pod:1822 ../fish/guestfish-actions.pod:1853
19441 msgid ""
19442 "This function should only be called with a root device string as returned by "
19443 "L</inspect-os>."
19444 msgstr ""
19445
19446 # type: textblock
19447 #: ../fish/guestfish-actions.pod:1649
19448 msgid ""
19449 "This returns the architecture of the inspected operating system.  The "
19450 "possible return values are listed under L</file-architecture>."
19451 msgstr ""
19452
19453 # type: =head2
19454 #: ../fish/guestfish-actions.pod:1658
19455 msgid "inspect-get-distro"
19456 msgstr ""
19457
19458 # type: verbatim
19459 #: ../fish/guestfish-actions.pod:1660
19460 #, no-wrap
19461 msgid ""
19462 " inspect-get-distro root\n"
19463 "\n"
19464 msgstr ""
19465
19466 # type: =head2
19467 #: ../fish/guestfish-actions.pod:1724
19468 msgid "inspect-get-filesystems"
19469 msgstr ""
19470
19471 # type: verbatim
19472 #: ../fish/guestfish-actions.pod:1726
19473 #, no-wrap
19474 msgid ""
19475 " inspect-get-filesystems root\n"
19476 "\n"
19477 msgstr ""
19478
19479 # type: textblock
19480 #: ../fish/guestfish-actions.pod:1739
19481 msgid ""
19482 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19483 "L</inspect-get-mountpoints>."
19484 msgstr ""
19485
19486 # type: =head2
19487 #: ../fish/guestfish-actions.pod:1742
19488 msgid "inspect-get-major-version"
19489 msgstr ""
19490
19491 # type: verbatim
19492 #: ../fish/guestfish-actions.pod:1744
19493 #, no-wrap
19494 msgid ""
19495 " inspect-get-major-version root\n"
19496 "\n"
19497 msgstr ""
19498
19499 # type: =head2
19500 #: ../fish/guestfish-actions.pod:1763
19501 msgid "inspect-get-minor-version"
19502 msgstr ""
19503
19504 # type: verbatim
19505 #: ../fish/guestfish-actions.pod:1765
19506 #, no-wrap
19507 msgid ""
19508 " inspect-get-minor-version root\n"
19509 "\n"
19510 msgstr ""
19511
19512 # type: textblock
19513 #: ../fish/guestfish-actions.pod:1775
19514 msgid ""
19515 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19516 "L</inspect-get-major-version>."
19517 msgstr ""
19518
19519 # type: =head2
19520 #: ../fish/guestfish-actions.pod:1778
19521 msgid "inspect-get-mountpoints"
19522 msgstr ""
19523
19524 # type: verbatim
19525 #: ../fish/guestfish-actions.pod:1780
19526 #, no-wrap
19527 msgid ""
19528 " inspect-get-mountpoints root\n"
19529 "\n"
19530 msgstr ""
19531
19532 # type: textblock
19533 #: ../fish/guestfish-actions.pod:1798
19534 msgid ""
19535 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19536 "L</inspect-get-filesystems>."
19537 msgstr ""
19538
19539 # type: =head2
19540 #: ../fish/guestfish-actions.pod:1801
19541 msgid "inspect-get-product-name"
19542 msgstr ""
19543
19544 # type: verbatim
19545 #: ../fish/guestfish-actions.pod:1803
19546 #, no-wrap
19547 msgid ""
19548 " inspect-get-product-name root\n"
19549 "\n"
19550 msgstr ""
19551
19552 # type: =head2
19553 #: ../fish/guestfish-actions.pod:1818
19554 msgid "inspect-get-type"
19555 msgstr ""
19556
19557 # type: verbatim
19558 #: ../fish/guestfish-actions.pod:1820
19559 #, no-wrap
19560 msgid ""
19561 " inspect-get-type root\n"
19562 "\n"
19563 msgstr ""
19564
19565 # type: =head2
19566 #: ../fish/guestfish-actions.pod:1849
19567 msgid "inspect-get-windows-systemroot"
19568 msgstr ""
19569
19570 # type: verbatim
19571 #: ../fish/guestfish-actions.pod:1851
19572 #, no-wrap
19573 msgid ""
19574 " inspect-get-windows-systemroot root\n"
19575 "\n"
19576 msgstr ""
19577
19578 # type: =head2
19579 #: ../fish/guestfish-actions.pod:1865
19580 msgid "inspect-os"
19581 msgstr ""
19582
19583 # type: verbatim
19584 #: ../fish/guestfish-actions.pod:1867
19585 #, no-wrap
19586 msgid ""
19587 " inspect-os\n"
19588 "\n"
19589 msgstr ""
19590
19591 # type: textblock
19592 #: ../fish/guestfish-actions.pod:1882
19593 msgid ""
19594 "You can pass the root string(s) returned to other L</inspect-get-*> "
19595 "functions in order to query further information about each operating system, "
19596 "such as the name and version."
19597 msgstr ""
19598
19599 # type: textblock
19600 #: ../fish/guestfish-actions.pod:1887
19601 msgid ""
19602 "This function uses other libguestfs features such as L</mount-ro> and "
19603 "L</umount-all> in order to mount and unmount filesystems and look at the "
19604 "contents.  This should be called with no disks currently mounted.  The "
19605 "function may also use Augeas, so any existing Augeas handle will be closed."
19606 msgstr ""
19607
19608 # type: textblock
19609 #: ../fish/guestfish-actions.pod:1899 ../fish/guestfish-actions.pod:2055 ../fish/guestfish-actions.pod:2101
19610 msgid "See also L</list-filesystems>."
19611 msgstr ""
19612
19613 # type: =head2
19614 #: ../fish/guestfish-actions.pod:1901
19615 msgid "is-blockdev"
19616 msgstr ""
19617
19618 # type: verbatim
19619 #: ../fish/guestfish-actions.pod:1903
19620 #, no-wrap
19621 msgid ""
19622 " is-blockdev path\n"
19623 "\n"
19624 msgstr ""
19625
19626 # type: textblock
19627 #: ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1926 ../fish/guestfish-actions.pod:1945 ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1998 ../fish/guestfish-actions.pod:2007
19628 msgid "See also L</stat>."
19629 msgstr ""
19630
19631 # type: =head2
19632 #: ../fish/guestfish-actions.pod:1910
19633 msgid "is-busy"
19634 msgstr ""
19635
19636 # type: verbatim
19637 #: ../fish/guestfish-actions.pod:1912
19638 #, no-wrap
19639 msgid ""
19640 " is-busy\n"
19641 "\n"
19642 msgstr ""
19643
19644 # type: =head2
19645 #: ../fish/guestfish-actions.pod:1919
19646 msgid "is-chardev"
19647 msgstr ""
19648
19649 # type: verbatim
19650 #: ../fish/guestfish-actions.pod:1921
19651 #, no-wrap
19652 msgid ""
19653 " is-chardev path\n"
19654 "\n"
19655 msgstr ""
19656
19657 # type: =head2
19658 #: ../fish/guestfish-actions.pod:1928
19659 msgid "is-config"
19660 msgstr ""
19661
19662 # type: verbatim
19663 #: ../fish/guestfish-actions.pod:1930
19664 #, no-wrap
19665 msgid ""
19666 " is-config\n"
19667 "\n"
19668 msgstr ""
19669
19670 # type: =head2
19671 #: ../fish/guestfish-actions.pod:1937
19672 msgid "is-dir"
19673 msgstr ""
19674
19675 # type: verbatim
19676 #: ../fish/guestfish-actions.pod:1939
19677 #, no-wrap
19678 msgid ""
19679 " is-dir path\n"
19680 "\n"
19681 msgstr ""
19682
19683 # type: =head2
19684 #: ../fish/guestfish-actions.pod:1947
19685 msgid "is-fifo"
19686 msgstr ""
19687
19688 # type: verbatim
19689 #: ../fish/guestfish-actions.pod:1949
19690 #, no-wrap
19691 msgid ""
19692 " is-fifo path\n"
19693 "\n"
19694 msgstr ""
19695
19696 # type: =head2
19697 #: ../fish/guestfish-actions.pod:1956
19698 msgid "is-file"
19699 msgstr ""
19700
19701 # type: verbatim
19702 #: ../fish/guestfish-actions.pod:1958
19703 #, no-wrap
19704 msgid ""
19705 " is-file path\n"
19706 "\n"
19707 msgstr ""
19708
19709 # type: =head2
19710 #: ../fish/guestfish-actions.pod:1966
19711 msgid "is-launching"
19712 msgstr ""
19713
19714 # type: verbatim
19715 #: ../fish/guestfish-actions.pod:1968
19716 #, no-wrap
19717 msgid ""
19718 " is-launching\n"
19719 "\n"
19720 msgstr ""
19721
19722 # type: =head2
19723 #: ../fish/guestfish-actions.pod:1975
19724 msgid "is-lv"
19725 msgstr ""
19726
19727 # type: verbatim
19728 #: ../fish/guestfish-actions.pod:1977
19729 #, no-wrap
19730 msgid ""
19731 " is-lv device\n"
19732 "\n"
19733 msgstr ""
19734
19735 # type: =head2
19736 #: ../fish/guestfish-actions.pod:1982
19737 msgid "is-ready"
19738 msgstr ""
19739
19740 # type: verbatim
19741 #: ../fish/guestfish-actions.pod:1984
19742 #, no-wrap
19743 msgid ""
19744 " is-ready\n"
19745 "\n"
19746 msgstr ""
19747
19748 # type: =head2
19749 #: ../fish/guestfish-actions.pod:1991
19750 msgid "is-socket"
19751 msgstr ""
19752
19753 # type: verbatim
19754 #: ../fish/guestfish-actions.pod:1993
19755 #, no-wrap
19756 msgid ""
19757 " is-socket path\n"
19758 "\n"
19759 msgstr ""
19760
19761 # type: =head2
19762 #: ../fish/guestfish-actions.pod:2000
19763 msgid "is-symlink"
19764 msgstr ""
19765
19766 # type: verbatim
19767 #: ../fish/guestfish-actions.pod:2002
19768 #, no-wrap
19769 msgid ""
19770 " is-symlink path\n"
19771 "\n"
19772 msgstr ""
19773
19774 # type: =head2
19775 #: ../fish/guestfish-actions.pod:2009
19776 msgid "kill-subprocess"
19777 msgstr ""
19778
19779 # type: verbatim
19780 #: ../fish/guestfish-actions.pod:2011
19781 #, no-wrap
19782 msgid ""
19783 " kill-subprocess\n"
19784 "\n"
19785 msgstr ""
19786
19787 # type: =head2
19788 #: ../fish/guestfish-actions.pod:2015
19789 msgid "launch"
19790 msgstr ""
19791
19792 # type: =head2
19793 #: ../fish/guestfish-actions.pod:2017
19794 msgid "run"
19795 msgstr ""
19796
19797 # type: verbatim
19798 #: ../fish/guestfish-actions.pod:2019
19799 #, no-wrap
19800 msgid ""
19801 " launch\n"
19802 "\n"
19803 msgstr ""
19804
19805 # type: =head2
19806 #: ../fish/guestfish-actions.pod:2027
19807 msgid "lchown"
19808 msgstr ""
19809
19810 # type: verbatim
19811 #: ../fish/guestfish-actions.pod:2029
19812 #, no-wrap
19813 msgid ""
19814 " lchown owner group path\n"
19815 "\n"
19816 msgstr ""
19817
19818 # type: textblock
19819 #: ../fish/guestfish-actions.pod:2031
19820 msgid ""
19821 "Change the file owner to C<owner> and group to C<group>.  This is like "
19822 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
19823 "the target."
19824 msgstr ""
19825
19826 # type: =head2
19827 #: ../fish/guestfish-actions.pod:2039
19828 msgid "lgetxattrs"
19829 msgstr ""
19830
19831 # type: verbatim
19832 #: ../fish/guestfish-actions.pod:2041
19833 #, no-wrap
19834 msgid ""
19835 " lgetxattrs path\n"
19836 "\n"
19837 msgstr ""
19838
19839 # type: textblock
19840 #: ../fish/guestfish-actions.pod:2043
19841 msgid ""
19842 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
19843 "it returns the extended attributes of the link itself."
19844 msgstr ""
19845
19846 # type: =head2
19847 #: ../fish/guestfish-actions.pod:2047
19848 msgid "list-devices"
19849 msgstr ""
19850
19851 # type: verbatim
19852 #: ../fish/guestfish-actions.pod:2049
19853 #, no-wrap
19854 msgid ""
19855 " list-devices\n"
19856 "\n"
19857 msgstr ""
19858
19859 # type: =head2
19860 #: ../fish/guestfish-actions.pod:2057
19861 msgid "list-filesystems"
19862 msgstr ""
19863
19864 # type: verbatim
19865 #: ../fish/guestfish-actions.pod:2059
19866 #, no-wrap
19867 msgid ""
19868 " list-filesystems\n"
19869 "\n"
19870 msgstr ""
19871
19872 # type: textblock
19873 #: ../fish/guestfish-actions.pod:2078
19874 msgid ""
19875 "This command runs other libguestfs commands, which might include L</mount> "
19876 "and L</umount>, and therefore you should use this soon after launch and only "
19877 "when nothing is mounted."
19878 msgstr ""
19879
19880 # type: textblock
19881 #: ../fish/guestfish-actions.pod:2082
19882 msgid ""
19883 "Not all of the filesystems returned will be mountable.  In particular, swap "
19884 "partitions are returned in the list.  Also this command does not check that "
19885 "each filesystem found is valid and mountable, and some filesystems might be "
19886 "mountable but require special options.  Filesystems may not all belong to a "
19887 "single logical operating system (use L</inspect-os> to look for OSes)."
19888 msgstr ""
19889
19890 # type: =head2
19891 #: ../fish/guestfish-actions.pod:2090
19892 msgid "list-partitions"
19893 msgstr ""
19894
19895 # type: verbatim
19896 #: ../fish/guestfish-actions.pod:2092
19897 #, no-wrap
19898 msgid ""
19899 " list-partitions\n"
19900 "\n"
19901 msgstr ""
19902
19903 # type: textblock
19904 #: ../fish/guestfish-actions.pod:2098
19905 msgid ""
19906 "This does not return logical volumes.  For that you will need to call "
19907 "L</lvs>."
19908 msgstr ""
19909
19910 # type: =head2
19911 #: ../fish/guestfish-actions.pod:2103
19912 msgid "ll"
19913 msgstr ""
19914
19915 # type: verbatim
19916 #: ../fish/guestfish-actions.pod:2105
19917 #, no-wrap
19918 msgid ""
19919 " ll directory\n"
19920 "\n"
19921 msgstr ""
19922
19923 # type: =head2
19924 #: ../fish/guestfish-actions.pod:2113
19925 msgid "ln"
19926 msgstr ""
19927
19928 # type: verbatim
19929 #: ../fish/guestfish-actions.pod:2115
19930 #, no-wrap
19931 msgid ""
19932 " ln target linkname\n"
19933 "\n"
19934 msgstr ""
19935
19936 # type: =head2
19937 #: ../fish/guestfish-actions.pod:2119
19938 msgid "ln-f"
19939 msgstr ""
19940
19941 # type: verbatim
19942 #: ../fish/guestfish-actions.pod:2121
19943 #, no-wrap
19944 msgid ""
19945 " ln-f target linkname\n"
19946 "\n"
19947 msgstr ""
19948
19949 # type: =head2
19950 #: ../fish/guestfish-actions.pod:2126
19951 msgid "ln-s"
19952 msgstr ""
19953
19954 # type: verbatim
19955 #: ../fish/guestfish-actions.pod:2128
19956 #, no-wrap
19957 msgid ""
19958 " ln-s target linkname\n"
19959 "\n"
19960 msgstr ""
19961
19962 # type: =head2
19963 #: ../fish/guestfish-actions.pod:2132
19964 msgid "ln-sf"
19965 msgstr ""
19966
19967 # type: verbatim
19968 #: ../fish/guestfish-actions.pod:2134
19969 #, no-wrap
19970 msgid ""
19971 " ln-sf target linkname\n"
19972 "\n"
19973 msgstr ""
19974
19975 # type: =head2
19976 #: ../fish/guestfish-actions.pod:2139
19977 msgid "lremovexattr"
19978 msgstr ""
19979
19980 # type: verbatim
19981 #: ../fish/guestfish-actions.pod:2141
19982 #, no-wrap
19983 msgid ""
19984 " lremovexattr xattr path\n"
19985 "\n"
19986 msgstr ""
19987
19988 # type: textblock
19989 #: ../fish/guestfish-actions.pod:2143
19990 msgid ""
19991 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
19992 "it removes an extended attribute of the link itself."
19993 msgstr ""
19994
19995 # type: =head2
19996 #: ../fish/guestfish-actions.pod:2147
19997 msgid "ls"
19998 msgstr ""
19999
20000 # type: verbatim
20001 #: ../fish/guestfish-actions.pod:2149
20002 #, no-wrap
20003 msgid ""
20004 " ls directory\n"
20005 "\n"
20006 msgstr ""
20007
20008 # type: textblock
20009 #: ../fish/guestfish-actions.pod:2155
20010 msgid ""
20011 "This command is mostly useful for interactive sessions.  Programs should "
20012 "probably use L</readdir> instead."
20013 msgstr ""
20014
20015 # type: =head2
20016 #: ../fish/guestfish-actions.pod:2158
20017 msgid "lsetxattr"
20018 msgstr ""
20019
20020 # type: verbatim
20021 #: ../fish/guestfish-actions.pod:2160
20022 #, no-wrap
20023 msgid ""
20024 " lsetxattr xattr val vallen path\n"
20025 "\n"
20026 msgstr ""
20027
20028 # type: textblock
20029 #: ../fish/guestfish-actions.pod:2162
20030 msgid ""
20031 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20032 "sets an extended attribute of the link itself."
20033 msgstr ""
20034
20035 # type: =head2
20036 #: ../fish/guestfish-actions.pod:2166
20037 msgid "lstat"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #: ../fish/guestfish-actions.pod:2168
20042 #, no-wrap
20043 msgid ""
20044 " lstat path\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: textblock
20049 #: ../fish/guestfish-actions.pod:2172
20050 msgid ""
20051 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20052 "the link is stat-ed, not the file it refers to."
20053 msgstr ""
20054
20055 # type: =head2
20056 #: ../fish/guestfish-actions.pod:2178
20057 msgid "lstatlist"
20058 msgstr ""
20059
20060 # type: verbatim
20061 #: ../fish/guestfish-actions.pod:2180
20062 #, no-wrap
20063 msgid ""
20064 " lstatlist path 'names ...'\n"
20065 "\n"
20066 msgstr ""
20067
20068 # type: textblock
20069 #: ../fish/guestfish-actions.pod:2182
20070 msgid ""
20071 "This call allows you to perform the L</lstat> operation on multiple files, "
20072 "where all files are in the directory C<path>.  C<names> is the list of files "
20073 "from this directory."
20074 msgstr ""
20075
20076 # type: textblock
20077 #: ../fish/guestfish-actions.pod:2191
20078 msgid ""
20079 "This call is intended for programs that want to efficiently list a directory "
20080 "contents without making many round-trips.  See also L</lxattrlist> for a "
20081 "similarly efficient call for getting extended attributes.  Very long "
20082 "directory listings might cause the protocol message size to be exceeded, "
20083 "causing this call to fail.  The caller must split up such requests into "
20084 "smaller groups of names."
20085 msgstr ""
20086
20087 # type: =head2
20088 #: ../fish/guestfish-actions.pod:2199
20089 msgid "luks-add-key"
20090 msgstr ""
20091
20092 # type: verbatim
20093 #: ../fish/guestfish-actions.pod:2201
20094 #, no-wrap
20095 msgid ""
20096 " luks-add-key device keyslot\n"
20097 "\n"
20098 msgstr ""
20099
20100 # type: textblock
20101 #: ../fish/guestfish-actions.pod:2208
20102 msgid ""
20103 "Note that if C<keyslot> already contains a key, then this command will "
20104 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20105 msgstr ""
20106
20107 # type: textblock
20108 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2234 ../fish/guestfish-actions.pod:2247 ../fish/guestfish-actions.pod:2261 ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2294
20109 msgid ""
20110 "This command has one or more key or passphrase parameters.  Guestfish will "
20111 "prompt for these separately."
20112 msgstr ""
20113
20114 # type: =head2
20115 #: ../fish/guestfish-actions.pod:2215
20116 msgid "luks-close"
20117 msgstr ""
20118
20119 # type: verbatim
20120 #: ../fish/guestfish-actions.pod:2217
20121 #, no-wrap
20122 msgid ""
20123 " luks-close device\n"
20124 "\n"
20125 msgstr ""
20126
20127 # type: textblock
20128 #: ../fish/guestfish-actions.pod:2219
20129 msgid ""
20130 "This closes a LUKS device that was created earlier by L</luks-open> or "
20131 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
20132 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
20133 "underlying block device."
20134 msgstr ""
20135
20136 # type: =head2
20137 #: ../fish/guestfish-actions.pod:2225
20138 msgid "luks-format"
20139 msgstr ""
20140
20141 # type: verbatim
20142 #: ../fish/guestfish-actions.pod:2227
20143 #, no-wrap
20144 msgid ""
20145 " luks-format device keyslot\n"
20146 "\n"
20147 msgstr ""
20148
20149 # type: =head2
20150 #: ../fish/guestfish-actions.pod:2240
20151 msgid "luks-format-cipher"
20152 msgstr ""
20153
20154 # type: verbatim
20155 #: ../fish/guestfish-actions.pod:2242
20156 #, no-wrap
20157 msgid ""
20158 " luks-format-cipher device keyslot cipher\n"
20159 "\n"
20160 msgstr ""
20161
20162 # type: textblock
20163 #: ../fish/guestfish-actions.pod:2244
20164 msgid ""
20165 "This command is the same as L</luks-format> but it also allows you to set "
20166 "the C<cipher> used."
20167 msgstr ""
20168
20169 # type: =head2
20170 #: ../fish/guestfish-actions.pod:2253
20171 msgid "luks-kill-slot"
20172 msgstr ""
20173
20174 # type: verbatim
20175 #: ../fish/guestfish-actions.pod:2255
20176 #, no-wrap
20177 msgid ""
20178 " luks-kill-slot device keyslot\n"
20179 "\n"
20180 msgstr ""
20181
20182 # type: =head2
20183 #: ../fish/guestfish-actions.pod:2264
20184 msgid "luks-open"
20185 msgstr ""
20186
20187 # type: verbatim
20188 #: ../fish/guestfish-actions.pod:2266
20189 #, no-wrap
20190 msgid ""
20191 " luks-open device mapname\n"
20192 "\n"
20193 msgstr ""
20194
20195 # type: textblock
20196 #: ../fish/guestfish-actions.pod:2280
20197 msgid ""
20198 "If this block device contains LVM volume groups, then calling L</vgscan> "
20199 "followed by L</vg-activate-all> will make them visible."
20200 msgstr ""
20201
20202 # type: =head2
20203 #: ../fish/guestfish-actions.pod:2287
20204 msgid "luks-open-ro"
20205 msgstr ""
20206
20207 # type: verbatim
20208 #: ../fish/guestfish-actions.pod:2289
20209 #, no-wrap
20210 msgid ""
20211 " luks-open-ro device mapname\n"
20212 "\n"
20213 msgstr ""
20214
20215 # type: textblock
20216 #: ../fish/guestfish-actions.pod:2291
20217 msgid ""
20218 "This is the same as L</luks-open> except that a read-only mapping is "
20219 "created."
20220 msgstr ""
20221
20222 # type: =head2
20223 #: ../fish/guestfish-actions.pod:2297
20224 msgid "lvcreate"
20225 msgstr ""
20226
20227 # type: verbatim
20228 #: ../fish/guestfish-actions.pod:2299
20229 #, no-wrap
20230 msgid ""
20231 " lvcreate logvol volgroup mbytes\n"
20232 "\n"
20233 msgstr ""
20234
20235 # type: =head2
20236 #: ../fish/guestfish-actions.pod:2304
20237 msgid "lvm-canonical-lv-name"
20238 msgstr ""
20239
20240 # type: verbatim
20241 #: ../fish/guestfish-actions.pod:2306
20242 #, no-wrap
20243 msgid ""
20244 " lvm-canonical-lv-name lvname\n"
20245 "\n"
20246 msgstr ""
20247
20248 # type: textblock
20249 #: ../fish/guestfish-actions.pod:2315
20250 msgid "See also L</is-lv>."
20251 msgstr ""
20252
20253 # type: =head2
20254 #: ../fish/guestfish-actions.pod:2317
20255 msgid "lvm-clear-filter"
20256 msgstr ""
20257
20258 # type: verbatim
20259 #: ../fish/guestfish-actions.pod:2319
20260 #, no-wrap
20261 msgid ""
20262 " lvm-clear-filter\n"
20263 "\n"
20264 msgstr ""
20265
20266 # type: textblock
20267 #: ../fish/guestfish-actions.pod:2321
20268 msgid ""
20269 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20270 "block device."
20271 msgstr ""
20272
20273 # type: =head2
20274 #: ../fish/guestfish-actions.pod:2327
20275 msgid "lvm-remove-all"
20276 msgstr ""
20277
20278 # type: verbatim
20279 #: ../fish/guestfish-actions.pod:2329
20280 #, no-wrap
20281 msgid ""
20282 " lvm-remove-all\n"
20283 "\n"
20284 msgstr ""
20285
20286 # type: =head2
20287 #: ../fish/guestfish-actions.pod:2337
20288 msgid "lvm-set-filter"
20289 msgstr ""
20290
20291 # type: verbatim
20292 #: ../fish/guestfish-actions.pod:2339
20293 #, no-wrap
20294 msgid ""
20295 " lvm-set-filter 'devices ...'\n"
20296 "\n"
20297 msgstr ""
20298
20299 # type: =head2
20300 #: ../fish/guestfish-actions.pod:2364
20301 msgid "lvremove"
20302 msgstr ""
20303
20304 # type: verbatim
20305 #: ../fish/guestfish-actions.pod:2366
20306 #, no-wrap
20307 msgid ""
20308 " lvremove device\n"
20309 "\n"
20310 msgstr ""
20311
20312 # type: =head2
20313 #: ../fish/guestfish-actions.pod:2374
20314 msgid "lvrename"
20315 msgstr ""
20316
20317 # type: verbatim
20318 #: ../fish/guestfish-actions.pod:2376
20319 #, no-wrap
20320 msgid ""
20321 " lvrename logvol newlogvol\n"
20322 "\n"
20323 msgstr ""
20324
20325 # type: =head2
20326 #: ../fish/guestfish-actions.pod:2380
20327 msgid "lvresize"
20328 msgstr ""
20329
20330 # type: verbatim
20331 #: ../fish/guestfish-actions.pod:2382
20332 #, no-wrap
20333 msgid ""
20334 " lvresize device mbytes\n"
20335 "\n"
20336 msgstr ""
20337
20338 # type: =head2
20339 #: ../fish/guestfish-actions.pod:2388
20340 msgid "lvresize-free"
20341 msgstr ""
20342
20343 # type: verbatim
20344 #: ../fish/guestfish-actions.pod:2390
20345 #, no-wrap
20346 msgid ""
20347 " lvresize-free lv percent\n"
20348 "\n"
20349 msgstr ""
20350
20351 # type: =head2
20352 #: ../fish/guestfish-actions.pod:2398
20353 msgid "lvs"
20354 msgstr ""
20355
20356 # type: verbatim
20357 #: ../fish/guestfish-actions.pod:2400
20358 #, no-wrap
20359 msgid ""
20360 " lvs\n"
20361 "\n"
20362 msgstr ""
20363
20364 # type: textblock
20365 #: ../fish/guestfish-actions.pod:2408
20366 msgid "See also L</lvs-full>, L</list-filesystems>."
20367 msgstr ""
20368
20369 # type: =head2
20370 #: ../fish/guestfish-actions.pod:2410
20371 msgid "lvs-full"
20372 msgstr ""
20373
20374 # type: verbatim
20375 #: ../fish/guestfish-actions.pod:2412
20376 #, no-wrap
20377 msgid ""
20378 " lvs-full\n"
20379 "\n"
20380 msgstr ""
20381
20382 # type: =head2
20383 #: ../fish/guestfish-actions.pod:2417
20384 msgid "lvuuid"
20385 msgstr ""
20386
20387 # type: verbatim
20388 #: ../fish/guestfish-actions.pod:2419
20389 #, no-wrap
20390 msgid ""
20391 " lvuuid device\n"
20392 "\n"
20393 msgstr ""
20394
20395 # type: =head2
20396 #: ../fish/guestfish-actions.pod:2423
20397 msgid "lxattrlist"
20398 msgstr ""
20399
20400 # type: verbatim
20401 #: ../fish/guestfish-actions.pod:2425
20402 #, no-wrap
20403 msgid ""
20404 " lxattrlist path 'names ...'\n"
20405 "\n"
20406 msgstr ""
20407
20408 # type: textblock
20409 #: ../fish/guestfish-actions.pod:2441
20410 msgid ""
20411 "This call is intended for programs that want to efficiently list a directory "
20412 "contents without making many round-trips.  See also L</lstatlist> for a "
20413 "similarly efficient call for getting standard stats.  Very long directory "
20414 "listings might cause the protocol message size to be exceeded, causing this "
20415 "call to fail.  The caller must split up such requests into smaller groups of "
20416 "names."
20417 msgstr ""
20418
20419 # type: =head2
20420 #: ../fish/guestfish-actions.pod:2449
20421 msgid "mkdir"
20422 msgstr ""
20423
20424 # type: verbatim
20425 #: ../fish/guestfish-actions.pod:2451
20426 #, no-wrap
20427 msgid ""
20428 " mkdir path\n"
20429 "\n"
20430 msgstr ""
20431
20432 # type: =head2
20433 #: ../fish/guestfish-actions.pod:2455
20434 msgid "mkdir-mode"
20435 msgstr ""
20436
20437 # type: verbatim
20438 #: ../fish/guestfish-actions.pod:2457
20439 #, no-wrap
20440 msgid ""
20441 " mkdir-mode path mode\n"
20442 "\n"
20443 msgstr ""
20444
20445 # type: textblock
20446 #: ../fish/guestfish-actions.pod:2466
20447 msgid "See also L</mkdir>, L</umask>"
20448 msgstr ""
20449
20450 # type: =head2
20451 #: ../fish/guestfish-actions.pod:2468
20452 msgid "mkdir-p"
20453 msgstr ""
20454
20455 # type: verbatim
20456 #: ../fish/guestfish-actions.pod:2470
20457 #, no-wrap
20458 msgid ""
20459 " mkdir-p path\n"
20460 "\n"
20461 msgstr ""
20462
20463 # type: =head2
20464 #: ../fish/guestfish-actions.pod:2475
20465 msgid "mkdtemp"
20466 msgstr ""
20467
20468 # type: verbatim
20469 #: ../fish/guestfish-actions.pod:2477
20470 #, no-wrap
20471 msgid ""
20472 " mkdtemp template\n"
20473 "\n"
20474 msgstr ""
20475
20476 # type: =head2
20477 #: ../fish/guestfish-actions.pod:2498
20478 msgid "mke2fs-J"
20479 msgstr ""
20480
20481 # type: verbatim
20482 #: ../fish/guestfish-actions.pod:2500
20483 #, no-wrap
20484 msgid ""
20485 " mke2fs-J fstype blocksize device journal\n"
20486 "\n"
20487 msgstr ""
20488
20489 # type: textblock
20490 #: ../fish/guestfish-actions.pod:2508
20491 msgid "See also L</mke2journal>."
20492 msgstr ""
20493
20494 # type: =head2
20495 #: ../fish/guestfish-actions.pod:2510
20496 msgid "mke2fs-JL"
20497 msgstr ""
20498
20499 # type: verbatim
20500 #: ../fish/guestfish-actions.pod:2512
20501 #, no-wrap
20502 msgid ""
20503 " mke2fs-JL fstype blocksize device label\n"
20504 "\n"
20505 msgstr ""
20506
20507 # type: textblock
20508 #: ../fish/guestfish-actions.pod:2517
20509 msgid "See also L</mke2journal-L>."
20510 msgstr ""
20511
20512 # type: =head2
20513 #: ../fish/guestfish-actions.pod:2519
20514 msgid "mke2fs-JU"
20515 msgstr ""
20516
20517 # type: verbatim
20518 #: ../fish/guestfish-actions.pod:2521
20519 #, no-wrap
20520 msgid ""
20521 " mke2fs-JU fstype blocksize device uuid\n"
20522 "\n"
20523 msgstr ""
20524
20525 # type: textblock
20526 #: ../fish/guestfish-actions.pod:2526
20527 msgid "See also L</mke2journal-U>."
20528 msgstr ""
20529
20530 # type: =head2
20531 #: ../fish/guestfish-actions.pod:2528
20532 msgid "mke2journal"
20533 msgstr ""
20534
20535 # type: verbatim
20536 #: ../fish/guestfish-actions.pod:2530
20537 #, no-wrap
20538 msgid ""
20539 " mke2journal blocksize device\n"
20540 "\n"
20541 msgstr ""
20542
20543 # type: =head2
20544 #: ../fish/guestfish-actions.pod:2537
20545 msgid "mke2journal-L"
20546 msgstr ""
20547
20548 # type: verbatim
20549 #: ../fish/guestfish-actions.pod:2539
20550 #, no-wrap
20551 msgid ""
20552 " mke2journal-L blocksize label device\n"
20553 "\n"
20554 msgstr ""
20555
20556 # type: =head2
20557 #: ../fish/guestfish-actions.pod:2543
20558 msgid "mke2journal-U"
20559 msgstr ""
20560
20561 # type: verbatim
20562 #: ../fish/guestfish-actions.pod:2545
20563 #, no-wrap
20564 msgid ""
20565 " mke2journal-U blocksize uuid device\n"
20566 "\n"
20567 msgstr ""
20568
20569 # type: =head2
20570 #: ../fish/guestfish-actions.pod:2549
20571 msgid "mkfifo"
20572 msgstr ""
20573
20574 # type: verbatim
20575 #: ../fish/guestfish-actions.pod:2551
20576 #, no-wrap
20577 msgid ""
20578 " mkfifo mode path\n"
20579 "\n"
20580 msgstr ""
20581
20582 # type: textblock
20583 #: ../fish/guestfish-actions.pod:2553
20584 msgid ""
20585 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20586 "is just a convenient wrapper around L</mknod>."
20587 msgstr ""
20588
20589 # type: =head2
20590 #: ../fish/guestfish-actions.pod:2559
20591 msgid "mkfs"
20592 msgstr ""
20593
20594 # type: verbatim
20595 #: ../fish/guestfish-actions.pod:2561
20596 #, no-wrap
20597 msgid ""
20598 " mkfs fstype device\n"
20599 "\n"
20600 msgstr ""
20601
20602 # type: =head2
20603 #: ../fish/guestfish-actions.pod:2567
20604 msgid "mkfs-b"
20605 msgstr ""
20606
20607 # type: verbatim
20608 #: ../fish/guestfish-actions.pod:2569
20609 #, no-wrap
20610 msgid ""
20611 " mkfs-b fstype blocksize device\n"
20612 "\n"
20613 msgstr ""
20614
20615 # type: textblock
20616 #: ../fish/guestfish-actions.pod:2571
20617 msgid ""
20618 "This call is similar to L</mkfs>, but it allows you to control the block "
20619 "size of the resulting filesystem.  Supported block sizes depend on the "
20620 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20621 msgstr ""
20622
20623 # type: =head2
20624 #: ../fish/guestfish-actions.pod:2579
20625 msgid "mkmountpoint"
20626 msgstr ""
20627
20628 # type: verbatim
20629 #: ../fish/guestfish-actions.pod:2581
20630 #, no-wrap
20631 msgid ""
20632 " mkmountpoint exemptpath\n"
20633 "\n"
20634 msgstr ""
20635
20636 # type: textblock
20637 #: ../fish/guestfish-actions.pod:2583
20638 msgid ""
20639 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20640 "to create extra mountpoints before mounting the first filesystem."
20641 msgstr ""
20642
20643 # type: textblock
20644 #: ../fish/guestfish-actions.pod:2607
20645 msgid ""
20646 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
20647 "unexpected errors if you try to mix these calls.  It is safest to manually "
20648 "unmount filesystems and remove mountpoints after use."
20649 msgstr ""
20650
20651 # type: textblock
20652 #: ../fish/guestfish-actions.pod:2611
20653 msgid ""
20654 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
20655 "for this to work for manual mountpoints, you must ensure that the innermost "
20656 "mountpoints have the longest pathnames, as in the example code above."
20657 msgstr ""
20658
20659 # type: textblock
20660 #: ../fish/guestfish-actions.pod:2618
20661 msgid ""
20662 "Autosync [see L</set-autosync>, this is set by default on handles] means "
20663 "that L</umount-all> is called when the handle is closed which can also "
20664 "trigger these issues."
20665 msgstr ""
20666
20667 # type: =head2
20668 #: ../fish/guestfish-actions.pod:2622
20669 msgid "mknod"
20670 msgstr ""
20671
20672 # type: verbatim
20673 #: ../fish/guestfish-actions.pod:2624
20674 #, no-wrap
20675 msgid ""
20676 " mknod mode devmajor devminor path\n"
20677 "\n"
20678 msgstr ""
20679
20680 # type: textblock
20681 #: ../fish/guestfish-actions.pod:2634
20682 msgid ""
20683 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
20684 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
20685 "regular file).  These constants are available in the standard Linux header "
20686 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
20687 "wrappers around this command which bitwise OR in the appropriate constant "
20688 "for you."
20689 msgstr ""
20690
20691 # type: =head2
20692 #: ../fish/guestfish-actions.pod:2644
20693 msgid "mknod-b"
20694 msgstr ""
20695
20696 # type: verbatim
20697 #: ../fish/guestfish-actions.pod:2646
20698 #, no-wrap
20699 msgid ""
20700 " mknod-b mode devmajor devminor path\n"
20701 "\n"
20702 msgstr ""
20703
20704 # type: textblock
20705 #: ../fish/guestfish-actions.pod:2648
20706 msgid ""
20707 "This call creates a block device node called C<path> with mode C<mode> and "
20708 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20709 "wrapper around L</mknod>."
20710 msgstr ""
20711
20712 # type: =head2
20713 #: ../fish/guestfish-actions.pod:2654
20714 msgid "mknod-c"
20715 msgstr ""
20716
20717 # type: verbatim
20718 #: ../fish/guestfish-actions.pod:2656
20719 #, no-wrap
20720 msgid ""
20721 " mknod-c mode devmajor devminor path\n"
20722 "\n"
20723 msgstr ""
20724
20725 # type: textblock
20726 #: ../fish/guestfish-actions.pod:2658
20727 msgid ""
20728 "This call creates a char device node called C<path> with mode C<mode> and "
20729 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
20730 "wrapper around L</mknod>."
20731 msgstr ""
20732
20733 # type: =head2
20734 #: ../fish/guestfish-actions.pod:2664
20735 msgid "mkswap"
20736 msgstr ""
20737
20738 # type: verbatim
20739 #: ../fish/guestfish-actions.pod:2666
20740 #, no-wrap
20741 msgid ""
20742 " mkswap device\n"
20743 "\n"
20744 msgstr ""
20745
20746 # type: =head2
20747 #: ../fish/guestfish-actions.pod:2670
20748 msgid "mkswap-L"
20749 msgstr ""
20750
20751 # type: verbatim
20752 #: ../fish/guestfish-actions.pod:2672
20753 #, no-wrap
20754 msgid ""
20755 " mkswap-L label device\n"
20756 "\n"
20757 msgstr ""
20758
20759 # type: =head2
20760 #: ../fish/guestfish-actions.pod:2680
20761 msgid "mkswap-U"
20762 msgstr ""
20763
20764 # type: verbatim
20765 #: ../fish/guestfish-actions.pod:2682
20766 #, no-wrap
20767 msgid ""
20768 " mkswap-U uuid device\n"
20769 "\n"
20770 msgstr ""
20771
20772 # type: =head2
20773 #: ../fish/guestfish-actions.pod:2686
20774 msgid "mkswap-file"
20775 msgstr ""
20776
20777 # type: verbatim
20778 #: ../fish/guestfish-actions.pod:2688
20779 #, no-wrap
20780 msgid ""
20781 " mkswap-file path\n"
20782 "\n"
20783 msgstr ""
20784
20785 # type: textblock
20786 #: ../fish/guestfish-actions.pod:2692
20787 msgid ""
20788 "This command just writes a swap file signature to an existing file.  To "
20789 "create the file itself, use something like L</fallocate>."
20790 msgstr ""
20791
20792 # type: =head2
20793 #: ../fish/guestfish-actions.pod:2695
20794 msgid "modprobe"
20795 msgstr ""
20796
20797 # type: verbatim
20798 #: ../fish/guestfish-actions.pod:2697
20799 #, no-wrap
20800 msgid ""
20801 " modprobe modulename\n"
20802 "\n"
20803 msgstr ""
20804
20805 # type: =head2
20806 #: ../fish/guestfish-actions.pod:2704
20807 msgid "mount"
20808 msgstr ""
20809
20810 # type: verbatim
20811 #: ../fish/guestfish-actions.pod:2706
20812 #, no-wrap
20813 msgid ""
20814 " mount device mountpoint\n"
20815 "\n"
20816 msgstr ""
20817
20818 # type: textblock
20819 #: ../fish/guestfish-actions.pod:2722
20820 msgid ""
20821 "B<Important note:> When you use this call, the filesystem options C<sync> "
20822 "and C<noatime> are set implicitly.  This was originally done because we "
20823 "thought it would improve reliability, but it turns out that I<-o sync> has a "
20824 "very large negative performance impact and negligible effect on "
20825 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
20826 "code that needs performance, and instead use L</mount-options> (use an empty "
20827 "string for the first parameter if you don't want any options)."
20828 msgstr ""
20829
20830 # type: =head2
20831 #: ../fish/guestfish-actions.pod:2732
20832 msgid "mount-loop"
20833 msgstr ""
20834
20835 # type: verbatim
20836 #: ../fish/guestfish-actions.pod:2734
20837 #, no-wrap
20838 msgid ""
20839 " mount-loop file mountpoint\n"
20840 "\n"
20841 msgstr ""
20842
20843 # type: =head2
20844 #: ../fish/guestfish-actions.pod:2740
20845 msgid "mount-options"
20846 msgstr ""
20847
20848 # type: verbatim
20849 #: ../fish/guestfish-actions.pod:2742
20850 #, no-wrap
20851 msgid ""
20852 " mount-options options device mountpoint\n"
20853 "\n"
20854 msgstr ""
20855
20856 # type: textblock
20857 #: ../fish/guestfish-actions.pod:2744
20858 msgid ""
20859 "This is the same as the L</mount> command, but it allows you to set the "
20860 "mount options as for the L<mount(8)> I<-o> flag."
20861 msgstr ""
20862
20863 # type: =head2
20864 #: ../fish/guestfish-actions.pod:2752
20865 msgid "mount-ro"
20866 msgstr ""
20867
20868 # type: verbatim
20869 #: ../fish/guestfish-actions.pod:2754
20870 #, no-wrap
20871 msgid ""
20872 " mount-ro device mountpoint\n"
20873 "\n"
20874 msgstr ""
20875
20876 # type: textblock
20877 #: ../fish/guestfish-actions.pod:2756
20878 msgid ""
20879 "This is the same as the L</mount> command, but it mounts the filesystem with "
20880 "the read-only (I<-o ro>) flag."
20881 msgstr ""
20882
20883 # type: =head2
20884 #: ../fish/guestfish-actions.pod:2759
20885 msgid "mount-vfs"
20886 msgstr ""
20887
20888 # type: verbatim
20889 #: ../fish/guestfish-actions.pod:2761
20890 #, no-wrap
20891 msgid ""
20892 " mount-vfs options vfstype device mountpoint\n"
20893 "\n"
20894 msgstr ""
20895
20896 # type: textblock
20897 #: ../fish/guestfish-actions.pod:2763
20898 msgid ""
20899 "This is the same as the L</mount> command, but it allows you to set both the "
20900 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
20901 msgstr ""
20902
20903 # type: =head2
20904 #: ../fish/guestfish-actions.pod:2767
20905 msgid "mountpoints"
20906 msgstr ""
20907
20908 # type: verbatim
20909 #: ../fish/guestfish-actions.pod:2769
20910 #, no-wrap
20911 msgid ""
20912 " mountpoints\n"
20913 "\n"
20914 msgstr ""
20915
20916 # type: textblock
20917 #: ../fish/guestfish-actions.pod:2771
20918 msgid ""
20919 "This call is similar to L</mounts>.  That call returns a list of devices.  "
20920 "This one returns a hash table (map) of device name to directory where the "
20921 "device is mounted."
20922 msgstr ""
20923
20924 # type: =head2
20925 #: ../fish/guestfish-actions.pod:2775
20926 msgid "mounts"
20927 msgstr ""
20928
20929 # type: verbatim
20930 #: ../fish/guestfish-actions.pod:2777
20931 #, no-wrap
20932 msgid ""
20933 " mounts\n"
20934 "\n"
20935 msgstr ""
20936
20937 # type: textblock
20938 #: ../fish/guestfish-actions.pod:2784
20939 msgid "See also: L</mountpoints>"
20940 msgstr ""
20941
20942 # type: =head2
20943 #: ../fish/guestfish-actions.pod:2786
20944 msgid "mv"
20945 msgstr ""
20946
20947 # type: verbatim
20948 #: ../fish/guestfish-actions.pod:2788
20949 #, no-wrap
20950 msgid ""
20951 " mv src dest\n"
20952 "\n"
20953 msgstr ""
20954
20955 # type: =head2
20956 #: ../fish/guestfish-actions.pod:2793
20957 msgid "ntfs-3g-probe"
20958 msgstr ""
20959
20960 # type: verbatim
20961 #: ../fish/guestfish-actions.pod:2795
20962 #, no-wrap
20963 msgid ""
20964 " ntfs-3g-probe true|false device\n"
20965 "\n"
20966 msgstr ""
20967
20968 # type: =head2
20969 #: ../fish/guestfish-actions.pod:2809
20970 msgid "ntfsresize"
20971 msgstr ""
20972
20973 # type: verbatim
20974 #: ../fish/guestfish-actions.pod:2811
20975 #, no-wrap
20976 msgid ""
20977 " ntfsresize device\n"
20978 "\n"
20979 msgstr ""
20980
20981 # type: =head2
20982 #: ../fish/guestfish-actions.pod:2817
20983 msgid "ntfsresize-size"
20984 msgstr ""
20985
20986 # type: verbatim
20987 #: ../fish/guestfish-actions.pod:2819
20988 #, no-wrap
20989 msgid ""
20990 " ntfsresize-size device size\n"
20991 "\n"
20992 msgstr ""
20993
20994 # type: textblock
20995 #: ../fish/guestfish-actions.pod:2821
20996 msgid ""
20997 "This command is the same as L</ntfsresize> except that it allows you to "
20998 "specify the new size (in bytes) explicitly."
20999 msgstr ""
21000
21001 # type: =head2
21002 #: ../fish/guestfish-actions.pod:2824
21003 msgid "part-add"
21004 msgstr ""
21005
21006 # type: verbatim
21007 #: ../fish/guestfish-actions.pod:2826
21008 #, no-wrap
21009 msgid ""
21010 " part-add device prlogex startsect endsect\n"
21011 "\n"
21012 msgstr ""
21013
21014 # type: textblock
21015 #: ../fish/guestfish-actions.pod:2828
21016 msgid ""
21017 "This command adds a partition to C<device>.  If there is no partition table "
21018 "on the device, call L</part-init> first."
21019 msgstr ""
21020
21021 # type: textblock
21022 #: ../fish/guestfish-actions.pod:2840
21023 msgid ""
21024 "Creating a partition which covers the whole disk is not so easy.  Use "
21025 "L</part-disk> to do that."
21026 msgstr ""
21027
21028 # type: =head2
21029 #: ../fish/guestfish-actions.pod:2843
21030 msgid "part-del"
21031 msgstr ""
21032
21033 # type: verbatim
21034 #: ../fish/guestfish-actions.pod:2845
21035 #, no-wrap
21036 msgid ""
21037 " part-del device partnum\n"
21038 "\n"
21039 msgstr ""
21040
21041 # type: =head2
21042 #: ../fish/guestfish-actions.pod:2853
21043 msgid "part-disk"
21044 msgstr ""
21045
21046 # type: verbatim
21047 #: ../fish/guestfish-actions.pod:2855
21048 #, no-wrap
21049 msgid ""
21050 " part-disk device parttype\n"
21051 "\n"
21052 msgstr ""
21053
21054 # type: textblock
21055 #: ../fish/guestfish-actions.pod:2857
21056 msgid ""
21057 "This command is simply a combination of L</part-init> followed by "
21058 "L</part-add> to create a single primary partition covering the whole disk."
21059 msgstr ""
21060
21061 # type: textblock
21062 #: ../fish/guestfish-actions.pod:2861
21063 msgid ""
21064 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21065 "possible values are described in L</part-init>."
21066 msgstr ""
21067
21068 # type: =head2
21069 #: ../fish/guestfish-actions.pod:2867
21070 msgid "part-get-bootable"
21071 msgstr ""
21072
21073 # type: verbatim
21074 #: ../fish/guestfish-actions.pod:2869
21075 #, no-wrap
21076 msgid ""
21077 " part-get-bootable device partnum\n"
21078 "\n"
21079 msgstr ""
21080
21081 # type: textblock
21082 #: ../fish/guestfish-actions.pod:2874
21083 msgid "See also L</part-set-bootable>."
21084 msgstr ""
21085
21086 # type: =head2
21087 #: ../fish/guestfish-actions.pod:2876
21088 msgid "part-get-mbr-id"
21089 msgstr ""
21090
21091 # type: verbatim
21092 #: ../fish/guestfish-actions.pod:2878
21093 #, no-wrap
21094 msgid ""
21095 " part-get-mbr-id device partnum\n"
21096 "\n"
21097 msgstr ""
21098
21099 # type: textblock
21100 #: ../fish/guestfish-actions.pod:2883 ../fish/guestfish-actions.pod:3021
21101 msgid ""
21102 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21103 "undefined results for other partition table types (see "
21104 "L</part-get-parttype>)."
21105 msgstr ""
21106
21107 # type: =head2
21108 #: ../fish/guestfish-actions.pod:2887
21109 msgid "part-get-parttype"
21110 msgstr ""
21111
21112 # type: verbatim
21113 #: ../fish/guestfish-actions.pod:2889
21114 #, no-wrap
21115 msgid ""
21116 " part-get-parttype device\n"
21117 "\n"
21118 msgstr ""
21119
21120 # type: textblock
21121 #: ../fish/guestfish-actions.pod:2894
21122 msgid ""
21123 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21124 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21125 "possible, although unusual.  See L</part-init> for a full list."
21126 msgstr ""
21127
21128 # type: =head2
21129 #: ../fish/guestfish-actions.pod:2899
21130 msgid "part-init"
21131 msgstr ""
21132
21133 # type: verbatim
21134 #: ../fish/guestfish-actions.pod:2901
21135 #, no-wrap
21136 msgid ""
21137 " part-init device parttype\n"
21138 "\n"
21139 msgstr ""
21140
21141 # type: textblock
21142 #: ../fish/guestfish-actions.pod:2907
21143 msgid ""
21144 "Initially there are no partitions.  Following this, you should call "
21145 "L</part-add> for each partition required."
21146 msgstr ""
21147
21148 # type: =head2
21149 #: ../fish/guestfish-actions.pod:2970
21150 msgid "part-list"
21151 msgstr ""
21152
21153 # type: verbatim
21154 #: ../fish/guestfish-actions.pod:2972
21155 #, no-wrap
21156 msgid ""
21157 " part-list device\n"
21158 "\n"
21159 msgstr ""
21160
21161 # type: textblock
21162 #: ../fish/guestfish-actions.pod:2987
21163 msgid ""
21164 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21165 "the device's sector size, see L</blockdev-getss>."
21166 msgstr ""
21167
21168 # type: =head2
21169 #: ../fish/guestfish-actions.pod:3000
21170 msgid "part-set-bootable"
21171 msgstr ""
21172
21173 # type: verbatim
21174 #: ../fish/guestfish-actions.pod:3002
21175 #, no-wrap
21176 msgid ""
21177 " part-set-bootable device partnum true|false\n"
21178 "\n"
21179 msgstr ""
21180
21181 # type: =head2
21182 #: ../fish/guestfish-actions.pod:3011
21183 msgid "part-set-mbr-id"
21184 msgstr ""
21185
21186 # type: verbatim
21187 #: ../fish/guestfish-actions.pod:3013
21188 #, no-wrap
21189 msgid ""
21190 " part-set-mbr-id device partnum idbyte\n"
21191 "\n"
21192 msgstr ""
21193
21194 # type: =head2
21195 #: ../fish/guestfish-actions.pod:3025
21196 msgid "part-set-name"
21197 msgstr ""
21198
21199 # type: verbatim
21200 #: ../fish/guestfish-actions.pod:3027
21201 #, no-wrap
21202 msgid ""
21203 " part-set-name device partnum name\n"
21204 "\n"
21205 msgstr ""
21206
21207 # type: =head2
21208 #: ../fish/guestfish-actions.pod:3035
21209 msgid "part-to-dev"
21210 msgstr ""
21211
21212 # type: verbatim
21213 #: ../fish/guestfish-actions.pod:3037
21214 #, no-wrap
21215 msgid ""
21216 " part-to-dev partition\n"
21217 "\n"
21218 msgstr ""
21219
21220 # type: textblock
21221 #: ../fish/guestfish-actions.pod:3043
21222 msgid ""
21223 "The named partition must exist, for example as a string returned from "
21224 "L</list-partitions>."
21225 msgstr ""
21226
21227 # type: =head2
21228 #: ../fish/guestfish-actions.pod:3046
21229 msgid "ping-daemon"
21230 msgstr ""
21231
21232 # type: verbatim
21233 #: ../fish/guestfish-actions.pod:3048
21234 #, no-wrap
21235 msgid ""
21236 " ping-daemon\n"
21237 "\n"
21238 msgstr ""
21239
21240 # type: =head2
21241 #: ../fish/guestfish-actions.pod:3055
21242 msgid "pread"
21243 msgstr ""
21244
21245 # type: verbatim
21246 #: ../fish/guestfish-actions.pod:3057
21247 #, no-wrap
21248 msgid ""
21249 " pread path count offset\n"
21250 "\n"
21251 msgstr ""
21252
21253 # type: textblock
21254 #: ../fish/guestfish-actions.pod:3065
21255 msgid "See also L</pwrite>, L</pread-device>."
21256 msgstr ""
21257
21258 # type: =head2
21259 #: ../fish/guestfish-actions.pod:3070
21260 msgid "pread-device"
21261 msgstr ""
21262
21263 # type: verbatim
21264 #: ../fish/guestfish-actions.pod:3072
21265 #, no-wrap
21266 msgid ""
21267 " pread-device device count offset\n"
21268 "\n"
21269 msgstr ""
21270
21271 # type: textblock
21272 #: ../fish/guestfish-actions.pod:3080
21273 msgid "See also L</pread>."
21274 msgstr ""
21275
21276 # type: =head2
21277 #: ../fish/guestfish-actions.pod:3085
21278 msgid "pvcreate"
21279 msgstr ""
21280
21281 # type: verbatim
21282 #: ../fish/guestfish-actions.pod:3087
21283 #, no-wrap
21284 msgid ""
21285 " pvcreate device\n"
21286 "\n"
21287 msgstr ""
21288
21289 # type: =head2
21290 #: ../fish/guestfish-actions.pod:3093
21291 msgid "pvremove"
21292 msgstr ""
21293
21294 # type: verbatim
21295 #: ../fish/guestfish-actions.pod:3095
21296 #, no-wrap
21297 msgid ""
21298 " pvremove device\n"
21299 "\n"
21300 msgstr ""
21301
21302 # type: =head2
21303 #: ../fish/guestfish-actions.pod:3104
21304 msgid "pvresize"
21305 msgstr ""
21306
21307 # type: verbatim
21308 #: ../fish/guestfish-actions.pod:3106
21309 #, no-wrap
21310 msgid ""
21311 " pvresize device\n"
21312 "\n"
21313 msgstr ""
21314
21315 # type: =head2
21316 #: ../fish/guestfish-actions.pod:3111
21317 msgid "pvresize-size"
21318 msgstr ""
21319
21320 # type: verbatim
21321 #: ../fish/guestfish-actions.pod:3113
21322 #, no-wrap
21323 msgid ""
21324 " pvresize-size device size\n"
21325 "\n"
21326 msgstr ""
21327
21328 # type: textblock
21329 #: ../fish/guestfish-actions.pod:3115
21330 msgid ""
21331 "This command is the same as L</pvresize> except that it allows you to "
21332 "specify the new size (in bytes) explicitly."
21333 msgstr ""
21334
21335 # type: =head2
21336 #: ../fish/guestfish-actions.pod:3118
21337 msgid "pvs"
21338 msgstr ""
21339
21340 # type: verbatim
21341 #: ../fish/guestfish-actions.pod:3120
21342 #, no-wrap
21343 msgid ""
21344 " pvs\n"
21345 "\n"
21346 msgstr ""
21347
21348 # type: textblock
21349 #: ../fish/guestfish-actions.pod:3128
21350 msgid "See also L</pvs-full>."
21351 msgstr ""
21352
21353 # type: =head2
21354 #: ../fish/guestfish-actions.pod:3130
21355 msgid "pvs-full"
21356 msgstr ""
21357
21358 # type: verbatim
21359 #: ../fish/guestfish-actions.pod:3132
21360 #, no-wrap
21361 msgid ""
21362 " pvs-full\n"
21363 "\n"
21364 msgstr ""
21365
21366 # type: =head2
21367 #: ../fish/guestfish-actions.pod:3137
21368 msgid "pvuuid"
21369 msgstr ""
21370
21371 # type: verbatim
21372 #: ../fish/guestfish-actions.pod:3139
21373 #, no-wrap
21374 msgid ""
21375 " pvuuid device\n"
21376 "\n"
21377 msgstr ""
21378
21379 # type: =head2
21380 #: ../fish/guestfish-actions.pod:3143
21381 msgid "pwrite"
21382 msgstr ""
21383
21384 # type: verbatim
21385 #: ../fish/guestfish-actions.pod:3145
21386 #, no-wrap
21387 msgid ""
21388 " pwrite path content offset\n"
21389 "\n"
21390 msgstr ""
21391
21392 # type: textblock
21393 #: ../fish/guestfish-actions.pod:3156
21394 msgid "See also L</pread>, L</pwrite-device>."
21395 msgstr ""
21396
21397 # type: =head2
21398 #: ../fish/guestfish-actions.pod:3161
21399 msgid "pwrite-device"
21400 msgstr ""
21401
21402 # type: verbatim
21403 #: ../fish/guestfish-actions.pod:3163
21404 #, no-wrap
21405 msgid ""
21406 " pwrite-device device content offset\n"
21407 "\n"
21408 msgstr ""
21409
21410 # type: textblock
21411 #: ../fish/guestfish-actions.pod:3173
21412 msgid "See also L</pwrite>."
21413 msgstr ""
21414
21415 # type: =head2
21416 #: ../fish/guestfish-actions.pod:3178
21417 msgid "read-file"
21418 msgstr ""
21419
21420 # type: verbatim
21421 #: ../fish/guestfish-actions.pod:3180
21422 #, no-wrap
21423 msgid ""
21424 " read-file path\n"
21425 "\n"
21426 msgstr ""
21427
21428 # type: textblock
21429 #: ../fish/guestfish-actions.pod:3185
21430 msgid ""
21431 "Unlike L</cat>, this function can correctly handle files that contain "
21432 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21433 "is limited in the total size of file that can be handled."
21434 msgstr ""
21435
21436 # type: =head2
21437 #: ../fish/guestfish-actions.pod:3193
21438 msgid "read-lines"
21439 msgstr ""
21440
21441 # type: verbatim
21442 #: ../fish/guestfish-actions.pod:3195
21443 #, no-wrap
21444 msgid ""
21445 " read-lines path\n"
21446 "\n"
21447 msgstr ""
21448
21449 # type: textblock
21450 #: ../fish/guestfish-actions.pod:3202
21451 msgid ""
21452 "Note that this function cannot correctly handle binary files (specifically, "
21453 "files containing C<\\0> character which is treated as end of line).  For "
21454 "those you need to use the L</read-file> function which has a more complex "
21455 "interface."
21456 msgstr ""
21457
21458 # type: =head2
21459 #: ../fish/guestfish-actions.pod:3207
21460 msgid "readdir"
21461 msgstr ""
21462
21463 # type: verbatim
21464 #: ../fish/guestfish-actions.pod:3209
21465 #, no-wrap
21466 msgid ""
21467 " readdir dir\n"
21468 "\n"
21469 msgstr ""
21470
21471 # type: textblock
21472 #: ../fish/guestfish-actions.pod:3261
21473 msgid ""
21474 "This function is primarily intended for use by programs.  To get a simple "
21475 "list of names, use L</ls>.  To get a printable directory for human "
21476 "consumption, use L</ll>."
21477 msgstr ""
21478
21479 # type: =head2
21480 #: ../fish/guestfish-actions.pod:3265
21481 msgid "readlink"
21482 msgstr ""
21483
21484 # type: verbatim
21485 #: ../fish/guestfish-actions.pod:3267
21486 #, no-wrap
21487 msgid ""
21488 " readlink path\n"
21489 "\n"
21490 msgstr ""
21491
21492 # type: =head2
21493 #: ../fish/guestfish-actions.pod:3271
21494 msgid "readlinklist"
21495 msgstr ""
21496
21497 # type: verbatim
21498 #: ../fish/guestfish-actions.pod:3273
21499 #, no-wrap
21500 msgid ""
21501 " readlinklist path 'names ...'\n"
21502 "\n"
21503 msgstr ""
21504
21505 # type: =head2
21506 #: ../fish/guestfish-actions.pod:3297
21507 msgid "realpath"
21508 msgstr ""
21509
21510 # type: verbatim
21511 #: ../fish/guestfish-actions.pod:3299
21512 #, no-wrap
21513 msgid ""
21514 " realpath path\n"
21515 "\n"
21516 msgstr ""
21517
21518 # type: =head2
21519 #: ../fish/guestfish-actions.pod:3304
21520 msgid "removexattr"
21521 msgstr ""
21522
21523 # type: verbatim
21524 #: ../fish/guestfish-actions.pod:3306
21525 #, no-wrap
21526 msgid ""
21527 " removexattr xattr path\n"
21528 "\n"
21529 msgstr ""
21530
21531 # type: textblock
21532 #: ../fish/guestfish-actions.pod:3311
21533 msgid "See also: L</lremovexattr>, L<attr(5)>."
21534 msgstr ""
21535
21536 # type: =head2
21537 #: ../fish/guestfish-actions.pod:3313
21538 msgid "resize2fs"
21539 msgstr ""
21540
21541 # type: verbatim
21542 #: ../fish/guestfish-actions.pod:3315
21543 #, no-wrap
21544 msgid ""
21545 " resize2fs device\n"
21546 "\n"
21547 msgstr ""
21548
21549 # type: textblock
21550 #: ../fish/guestfish-actions.pod:3320
21551 msgid ""
21552 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21553 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21554 "gives an error about this and sometimes not.  In any case, it is always safe "
21555 "to call L</e2fsck-f> before calling this function."
21556 msgstr ""
21557
21558 # type: =head2
21559 #: ../fish/guestfish-actions.pod:3326
21560 msgid "resize2fs-size"
21561 msgstr ""
21562
21563 # type: verbatim
21564 #: ../fish/guestfish-actions.pod:3328
21565 #, no-wrap
21566 msgid ""
21567 " resize2fs-size device size\n"
21568 "\n"
21569 msgstr ""
21570
21571 # type: textblock
21572 #: ../fish/guestfish-actions.pod:3330
21573 msgid ""
21574 "This command is the same as L</resize2fs> except that it allows you to "
21575 "specify the new size (in bytes) explicitly."
21576 msgstr ""
21577
21578 # type: =head2
21579 #: ../fish/guestfish-actions.pod:3333
21580 msgid "rm"
21581 msgstr ""
21582
21583 # type: verbatim
21584 #: ../fish/guestfish-actions.pod:3335
21585 #, no-wrap
21586 msgid ""
21587 " rm path\n"
21588 "\n"
21589 msgstr ""
21590
21591 # type: =head2
21592 #: ../fish/guestfish-actions.pod:3339
21593 msgid "rm-rf"
21594 msgstr ""
21595
21596 # type: verbatim
21597 #: ../fish/guestfish-actions.pod:3341
21598 #, no-wrap
21599 msgid ""
21600 " rm-rf path\n"
21601 "\n"
21602 msgstr ""
21603
21604 # type: =head2
21605 #: ../fish/guestfish-actions.pod:3347
21606 msgid "rmdir"
21607 msgstr ""
21608
21609 # type: verbatim
21610 #: ../fish/guestfish-actions.pod:3349
21611 #, no-wrap
21612 msgid ""
21613 " rmdir path\n"
21614 "\n"
21615 msgstr ""
21616
21617 # type: =head2
21618 #: ../fish/guestfish-actions.pod:3353
21619 msgid "rmmountpoint"
21620 msgstr ""
21621
21622 # type: verbatim
21623 #: ../fish/guestfish-actions.pod:3355
21624 #, no-wrap
21625 msgid ""
21626 " rmmountpoint exemptpath\n"
21627 "\n"
21628 msgstr ""
21629
21630 # type: textblock
21631 #: ../fish/guestfish-actions.pod:3357
21632 msgid ""
21633 "This calls removes a mountpoint that was previously created with "
21634 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
21635 msgstr ""
21636
21637 # type: =head2
21638 #: ../fish/guestfish-actions.pod:3361
21639 msgid "scrub-device"
21640 msgstr ""
21641
21642 # type: verbatim
21643 #: ../fish/guestfish-actions.pod:3363
21644 #, no-wrap
21645 msgid ""
21646 " scrub-device device\n"
21647 "\n"
21648 msgstr ""
21649
21650 # type: =head2
21651 #: ../fish/guestfish-actions.pod:3374
21652 msgid "scrub-file"
21653 msgstr ""
21654
21655 # type: verbatim
21656 #: ../fish/guestfish-actions.pod:3376
21657 #, no-wrap
21658 msgid ""
21659 " scrub-file file\n"
21660 "\n"
21661 msgstr ""
21662
21663 # type: =head2
21664 #: ../fish/guestfish-actions.pod:3386
21665 msgid "scrub-freespace"
21666 msgstr ""
21667
21668 # type: verbatim
21669 #: ../fish/guestfish-actions.pod:3388
21670 #, no-wrap
21671 msgid ""
21672 " scrub-freespace dir\n"
21673 "\n"
21674 msgstr ""
21675
21676 # type: textblock
21677 #: ../fish/guestfish-actions.pod:3390
21678 msgid ""
21679 "This command creates the directory C<dir> and then fills it with files until "
21680 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
21681 "deletes them.  The intention is to scrub any free space on the partition "
21682 "containing C<dir>."
21683 msgstr ""
21684
21685 # type: =head2
21686 #: ../fish/guestfish-actions.pod:3399
21687 msgid "set-append"
21688 msgstr ""
21689
21690 # type: =head2
21691 #: ../fish/guestfish-actions.pod:3401
21692 msgid "append"
21693 msgstr ""
21694
21695 # type: verbatim
21696 #: ../fish/guestfish-actions.pod:3403
21697 #, no-wrap
21698 msgid ""
21699 " set-append append\n"
21700 "\n"
21701 msgstr ""
21702
21703 # type: =head2
21704 #: ../fish/guestfish-actions.pod:3414
21705 msgid "set-autosync"
21706 msgstr ""
21707
21708 # type: =head2
21709 #: ../fish/guestfish-actions.pod:3416
21710 msgid "autosync"
21711 msgstr ""
21712
21713 # type: verbatim
21714 #: ../fish/guestfish-actions.pod:3418
21715 #, no-wrap
21716 msgid ""
21717 " set-autosync true|false\n"
21718 "\n"
21719 msgstr ""
21720
21721 # type: textblock
21722 #: ../fish/guestfish-actions.pod:3420
21723 msgid ""
21724 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
21725 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
21726 "closed (also if the program exits without closing handles)."
21727 msgstr ""
21728
21729 # type: =head2
21730 #: ../fish/guestfish-actions.pod:3428
21731 msgid "set-direct"
21732 msgstr ""
21733
21734 # type: =head2
21735 #: ../fish/guestfish-actions.pod:3430
21736 msgid "direct"
21737 msgstr ""
21738
21739 # type: verbatim
21740 #: ../fish/guestfish-actions.pod:3432
21741 #, no-wrap
21742 msgid ""
21743 " set-direct true|false\n"
21744 "\n"
21745 msgstr ""
21746
21747 # type: textblock
21748 #: ../fish/guestfish-actions.pod:3438
21749 msgid ""
21750 "One consequence of this is that log messages aren't caught by the library "
21751 "and handled by L</set-log-message-callback>, but go straight to stdout."
21752 msgstr ""
21753
21754 # type: =head2
21755 #: ../fish/guestfish-actions.pod:3447
21756 msgid "set-e2label"
21757 msgstr ""
21758
21759 # type: verbatim
21760 #: ../fish/guestfish-actions.pod:3449
21761 #, no-wrap
21762 msgid ""
21763 " set-e2label device label\n"
21764 "\n"
21765 msgstr ""
21766
21767 # type: textblock
21768 #: ../fish/guestfish-actions.pod:3455
21769 msgid ""
21770 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
21771 "label on a filesystem."
21772 msgstr ""
21773
21774 # type: =head2
21775 #: ../fish/guestfish-actions.pod:3458
21776 msgid "set-e2uuid"
21777 msgstr ""
21778
21779 # type: verbatim
21780 #: ../fish/guestfish-actions.pod:3460
21781 #, no-wrap
21782 msgid ""
21783 " set-e2uuid device uuid\n"
21784 "\n"
21785 msgstr ""
21786
21787 # type: textblock
21788 #: ../fish/guestfish-actions.pod:3467
21789 msgid ""
21790 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
21791 "UUID of a filesystem."
21792 msgstr ""
21793
21794 # type: =head2
21795 #: ../fish/guestfish-actions.pod:3470
21796 msgid "set-memsize"
21797 msgstr ""
21798
21799 # type: =head2
21800 #: ../fish/guestfish-actions.pod:3472
21801 msgid "memsize"
21802 msgstr ""
21803
21804 # type: verbatim
21805 #: ../fish/guestfish-actions.pod:3474
21806 #, no-wrap
21807 msgid ""
21808 " set-memsize memsize\n"
21809 "\n"
21810 msgstr ""
21811
21812 # type: textblock
21813 #: ../fish/guestfish-actions.pod:3476
21814 msgid ""
21815 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
21816 "This only has any effect if called before L</launch>."
21817 msgstr ""
21818
21819 # type: =head2
21820 #: ../fish/guestfish-actions.pod:3487
21821 msgid "set-network"
21822 msgstr ""
21823
21824 # type: =head2
21825 #: ../fish/guestfish-actions.pod:3489
21826 msgid "network"
21827 msgstr ""
21828
21829 # type: verbatim
21830 #: ../fish/guestfish-actions.pod:3491
21831 #, no-wrap
21832 msgid ""
21833 " set-network true|false\n"
21834 "\n"
21835 msgstr ""
21836
21837 # type: textblock
21838 #: ../fish/guestfish-actions.pod:3499
21839 msgid "You must call this before calling L</launch>, otherwise it has no effect."
21840 msgstr ""
21841
21842 # type: =head2
21843 #: ../fish/guestfish-actions.pod:3502
21844 msgid "set-path"
21845 msgstr ""
21846
21847 # type: =head2
21848 #: ../fish/guestfish-actions.pod:3504
21849 msgid "path"
21850 msgstr ""
21851
21852 # type: verbatim
21853 #: ../fish/guestfish-actions.pod:3506
21854 #, no-wrap
21855 msgid ""
21856 " set-path searchpath\n"
21857 "\n"
21858 msgstr ""
21859
21860 # type: =head2
21861 #: ../fish/guestfish-actions.pod:3515
21862 msgid "set-qemu"
21863 msgstr ""
21864
21865 # type: =head2
21866 #: ../fish/guestfish-actions.pod:3517
21867 msgid "qemu"
21868 msgstr ""
21869
21870 # type: verbatim
21871 #: ../fish/guestfish-actions.pod:3519
21872 #, no-wrap
21873 msgid ""
21874 " set-qemu qemu\n"
21875 "\n"
21876 msgstr ""
21877
21878 # type: =head2
21879 #: ../fish/guestfish-actions.pod:3539
21880 msgid "set-recovery-proc"
21881 msgstr ""
21882
21883 # type: =head2
21884 #: ../fish/guestfish-actions.pod:3541
21885 msgid "recovery-proc"
21886 msgstr ""
21887
21888 # type: verbatim
21889 #: ../fish/guestfish-actions.pod:3543
21890 #, no-wrap
21891 msgid ""
21892 " set-recovery-proc true|false\n"
21893 "\n"
21894 msgstr ""
21895
21896 # type: textblock
21897 #: ../fish/guestfish-actions.pod:3545
21898 msgid ""
21899 "If this is called with the parameter C<false> then L</launch> does not "
21900 "create a recovery process.  The purpose of the recovery process is to stop "
21901 "runaway qemu processes in the case where the main program aborts abruptly."
21902 msgstr ""
21903
21904 # type: textblock
21905 #: ../fish/guestfish-actions.pod:3550
21906 msgid ""
21907 "This only has any effect if called before L</launch>, and the default is "
21908 "true."
21909 msgstr ""
21910
21911 # type: =head2
21912 #: ../fish/guestfish-actions.pod:3559
21913 msgid "set-selinux"
21914 msgstr ""
21915
21916 # type: =head2
21917 #: ../fish/guestfish-actions.pod:3561
21918 msgid "selinux"
21919 msgstr ""
21920
21921 # type: verbatim
21922 #: ../fish/guestfish-actions.pod:3563
21923 #, no-wrap
21924 msgid ""
21925 " set-selinux true|false\n"
21926 "\n"
21927 msgstr ""
21928
21929 # type: =head2
21930 #: ../fish/guestfish-actions.pod:3574
21931 msgid "set-trace"
21932 msgstr ""
21933
21934 # type: =head2
21935 #: ../fish/guestfish-actions.pod:3576
21936 msgid "trace"
21937 msgstr ""
21938
21939 # type: verbatim
21940 #: ../fish/guestfish-actions.pod:3578
21941 #, no-wrap
21942 msgid ""
21943 " set-trace true|false\n"
21944 "\n"
21945 msgstr ""
21946
21947 # type: =head2
21948 #: ../fish/guestfish-actions.pod:3594
21949 msgid "set-verbose"
21950 msgstr ""
21951
21952 # type: =head2
21953 #: ../fish/guestfish-actions.pod:3596
21954 msgid "verbose"
21955 msgstr ""
21956
21957 # type: verbatim
21958 #: ../fish/guestfish-actions.pod:3598
21959 #, no-wrap
21960 msgid ""
21961 " set-verbose true|false\n"
21962 "\n"
21963 msgstr ""
21964
21965 # type: =head2
21966 #: ../fish/guestfish-actions.pod:3605
21967 msgid "setcon"
21968 msgstr ""
21969
21970 # type: verbatim
21971 #: ../fish/guestfish-actions.pod:3607
21972 #, no-wrap
21973 msgid ""
21974 " setcon context\n"
21975 "\n"
21976 msgstr ""
21977
21978 # type: =head2
21979 #: ../fish/guestfish-actions.pod:3614
21980 msgid "setxattr"
21981 msgstr ""
21982
21983 # type: verbatim
21984 #: ../fish/guestfish-actions.pod:3616
21985 #, no-wrap
21986 msgid ""
21987 " setxattr xattr val vallen path\n"
21988 "\n"
21989 msgstr ""
21990
21991 # type: textblock
21992 #: ../fish/guestfish-actions.pod:3622
21993 msgid "See also: L</lsetxattr>, L<attr(5)>."
21994 msgstr ""
21995
21996 # type: =head2
21997 #: ../fish/guestfish-actions.pod:3624
21998 msgid "sfdisk"
21999 msgstr ""
22000
22001 # type: verbatim
22002 #: ../fish/guestfish-actions.pod:3626
22003 #, no-wrap
22004 msgid ""
22005 " sfdisk device cyls heads sectors 'lines ...'\n"
22006 "\n"
22007 msgstr ""
22008
22009 # type: textblock
22010 #: ../fish/guestfish-actions.pod:3648
22011 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
22012 msgstr ""
22013
22014 # type: =head2
22015 #: ../fish/guestfish-actions.pod:3654
22016 msgid "sfdiskM"
22017 msgstr ""
22018
22019 # type: verbatim
22020 #: ../fish/guestfish-actions.pod:3656
22021 #, no-wrap
22022 msgid ""
22023 " sfdiskM device 'lines ...'\n"
22024 "\n"
22025 msgstr ""
22026
22027 # type: textblock
22028 #: ../fish/guestfish-actions.pod:3658
22029 msgid ""
22030 "This is a simplified interface to the L</sfdisk> command, where partition "
22031 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22032 "you don't need to specify the cyls, heads and sectors parameters which were "
22033 "rarely if ever used anyway."
22034 msgstr ""
22035
22036 # type: textblock
22037 #: ../fish/guestfish-actions.pod:3664
22038 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22039 msgstr ""
22040
22041 # type: =head2
22042 #: ../fish/guestfish-actions.pod:3670
22043 msgid "sfdisk-N"
22044 msgstr ""
22045
22046 # type: verbatim
22047 #: ../fish/guestfish-actions.pod:3672
22048 #, no-wrap
22049 msgid ""
22050 " sfdisk-N device partnum cyls heads sectors line\n"
22051 "\n"
22052 msgstr ""
22053
22054 # type: textblock
22055 #: ../fish/guestfish-actions.pod:3677
22056 msgid ""
22057 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
22058 "cyls/heads/sectors parameters."
22059 msgstr ""
22060
22061 # type: textblock
22062 #: ../fish/guestfish-actions.pod:3680
22063 msgid "See also: L</part-add>"
22064 msgstr ""
22065
22066 # type: =head2
22067 #: ../fish/guestfish-actions.pod:3685
22068 msgid "sfdisk-disk-geometry"
22069 msgstr ""
22070
22071 # type: verbatim
22072 #: ../fish/guestfish-actions.pod:3687
22073 #, no-wrap
22074 msgid ""
22075 " sfdisk-disk-geometry device\n"
22076 "\n"
22077 msgstr ""
22078
22079 # type: textblock
22080 #: ../fish/guestfish-actions.pod:3689
22081 msgid ""
22082 "This displays the disk geometry of C<device> read from the partition table.  "
22083 "Especially in the case where the underlying block device has been resized, "
22084 "this can be different from the kernel's idea of the geometry (see "
22085 "L</sfdisk-kernel-geometry>)."
22086 msgstr ""
22087
22088 # type: =head2
22089 #: ../fish/guestfish-actions.pod:3697
22090 msgid "sfdisk-kernel-geometry"
22091 msgstr ""
22092
22093 # type: verbatim
22094 #: ../fish/guestfish-actions.pod:3699
22095 #, no-wrap
22096 msgid ""
22097 " sfdisk-kernel-geometry device\n"
22098 "\n"
22099 msgstr ""
22100
22101 # type: =head2
22102 #: ../fish/guestfish-actions.pod:3706
22103 msgid "sfdisk-l"
22104 msgstr ""
22105
22106 # type: verbatim
22107 #: ../fish/guestfish-actions.pod:3708
22108 #, no-wrap
22109 msgid ""
22110 " sfdisk-l device\n"
22111 "\n"
22112 msgstr ""
22113
22114 # type: textblock
22115 #: ../fish/guestfish-actions.pod:3714
22116 msgid "See also: L</part-list>"
22117 msgstr ""
22118
22119 # type: =head2
22120 #: ../fish/guestfish-actions.pod:3716
22121 msgid "sh"
22122 msgstr ""
22123
22124 # type: verbatim
22125 #: ../fish/guestfish-actions.pod:3718
22126 #, no-wrap
22127 msgid ""
22128 " sh command\n"
22129 "\n"
22130 msgstr ""
22131
22132 # type: textblock
22133 #: ../fish/guestfish-actions.pod:3723
22134 msgid "This is like L</command>, but passes the command to:"
22135 msgstr ""
22136
22137 # type: textblock
22138 #: ../fish/guestfish-actions.pod:3731
22139 msgid "All the provisos about L</command> apply to this call."
22140 msgstr ""
22141
22142 # type: =head2
22143 #: ../fish/guestfish-actions.pod:3733
22144 msgid "sh-lines"
22145 msgstr ""
22146
22147 # type: verbatim
22148 #: ../fish/guestfish-actions.pod:3735
22149 #, no-wrap
22150 msgid ""
22151 " sh-lines command\n"
22152 "\n"
22153 msgstr ""
22154
22155 # type: textblock
22156 #: ../fish/guestfish-actions.pod:3737
22157 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22158 msgstr ""
22159
22160 # type: textblock
22161 #: ../fish/guestfish-actions.pod:3740
22162 msgid "See also: L</command-lines>"
22163 msgstr ""
22164
22165 # type: =head2
22166 #: ../fish/guestfish-actions.pod:3742
22167 msgid "sleep"
22168 msgstr ""
22169
22170 # type: verbatim
22171 #: ../fish/guestfish-actions.pod:3744
22172 #, no-wrap
22173 msgid ""
22174 " sleep secs\n"
22175 "\n"
22176 msgstr ""
22177
22178 # type: =head2
22179 #: ../fish/guestfish-actions.pod:3748
22180 msgid "stat"
22181 msgstr ""
22182
22183 # type: verbatim
22184 #: ../fish/guestfish-actions.pod:3750
22185 #, no-wrap
22186 msgid ""
22187 " stat path\n"
22188 "\n"
22189 msgstr ""
22190
22191 # type: =head2
22192 #: ../fish/guestfish-actions.pod:3756
22193 msgid "statvfs"
22194 msgstr ""
22195
22196 # type: verbatim
22197 #: ../fish/guestfish-actions.pod:3758
22198 #, no-wrap
22199 msgid ""
22200 " statvfs path\n"
22201 "\n"
22202 msgstr ""
22203
22204 # type: =head2
22205 #: ../fish/guestfish-actions.pod:3766
22206 msgid "strings"
22207 msgstr ""
22208
22209 # type: verbatim
22210 #: ../fish/guestfish-actions.pod:3768
22211 #, no-wrap
22212 msgid ""
22213 " strings path\n"
22214 "\n"
22215 msgstr ""
22216
22217 # type: =head2
22218 #: ../fish/guestfish-actions.pod:3776
22219 msgid "strings-e"
22220 msgstr ""
22221
22222 # type: verbatim
22223 #: ../fish/guestfish-actions.pod:3778
22224 #, no-wrap
22225 msgid ""
22226 " strings-e encoding path\n"
22227 "\n"
22228 msgstr ""
22229
22230 # type: textblock
22231 #: ../fish/guestfish-actions.pod:3780
22232 msgid ""
22233 "This is like the L</strings> command, but allows you to specify the encoding "
22234 "of strings that are looked for in the source file C<path>."
22235 msgstr ""
22236
22237 # type: textblock
22238 #: ../fish/guestfish-actions.pod:3790
22239 msgid ""
22240 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22241 "ISO-8859-X (this is what L</strings> uses)."
22242 msgstr ""
22243
22244 # type: =head2
22245 #: ../fish/guestfish-actions.pod:3822
22246 msgid "swapoff-device"
22247 msgstr ""
22248
22249 # type: verbatim
22250 #: ../fish/guestfish-actions.pod:3824
22251 #, no-wrap
22252 msgid ""
22253 " swapoff-device device\n"
22254 "\n"
22255 msgstr ""
22256
22257 # type: textblock
22258 #: ../fish/guestfish-actions.pod:3826
22259 msgid ""
22260 "This command disables the libguestfs appliance swap device or partition "
22261 "named C<device>.  See L</swapon-device>."
22262 msgstr ""
22263
22264 # type: =head2
22265 #: ../fish/guestfish-actions.pod:3830
22266 msgid "swapoff-file"
22267 msgstr ""
22268
22269 # type: verbatim
22270 #: ../fish/guestfish-actions.pod:3832
22271 #, no-wrap
22272 msgid ""
22273 " swapoff-file file\n"
22274 "\n"
22275 msgstr ""
22276
22277 # type: =head2
22278 #: ../fish/guestfish-actions.pod:3836
22279 msgid "swapoff-label"
22280 msgstr ""
22281
22282 # type: verbatim
22283 #: ../fish/guestfish-actions.pod:3838
22284 #, no-wrap
22285 msgid ""
22286 " swapoff-label label\n"
22287 "\n"
22288 msgstr ""
22289
22290 # type: =head2
22291 #: ../fish/guestfish-actions.pod:3843
22292 msgid "swapoff-uuid"
22293 msgstr ""
22294
22295 # type: verbatim
22296 #: ../fish/guestfish-actions.pod:3845
22297 #, no-wrap
22298 msgid ""
22299 " swapoff-uuid uuid\n"
22300 "\n"
22301 msgstr ""
22302
22303 # type: =head2
22304 #: ../fish/guestfish-actions.pod:3850
22305 msgid "swapon-device"
22306 msgstr ""
22307
22308 # type: verbatim
22309 #: ../fish/guestfish-actions.pod:3852
22310 #, no-wrap
22311 msgid ""
22312 " swapon-device device\n"
22313 "\n"
22314 msgstr ""
22315
22316 # type: textblock
22317 #: ../fish/guestfish-actions.pod:3854
22318 msgid ""
22319 "This command enables the libguestfs appliance to use the swap device or "
22320 "partition named C<device>.  The increased memory is made available for all "
22321 "commands, for example those run using L</command> or L</sh>."
22322 msgstr ""
22323
22324 # type: =head2
22325 #: ../fish/guestfish-actions.pod:3866
22326 msgid "swapon-file"
22327 msgstr ""
22328
22329 # type: verbatim
22330 #: ../fish/guestfish-actions.pod:3868
22331 #, no-wrap
22332 msgid ""
22333 " swapon-file file\n"
22334 "\n"
22335 msgstr ""
22336
22337 # type: textblock
22338 #: ../fish/guestfish-actions.pod:3870
22339 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
22340 msgstr ""
22341
22342 # type: =head2
22343 #: ../fish/guestfish-actions.pod:3873
22344 msgid "swapon-label"
22345 msgstr ""
22346
22347 # type: verbatim
22348 #: ../fish/guestfish-actions.pod:3875
22349 #, no-wrap
22350 msgid ""
22351 " swapon-label label\n"
22352 "\n"
22353 msgstr ""
22354
22355 # type: textblock
22356 #: ../fish/guestfish-actions.pod:3877
22357 msgid ""
22358 "This command enables swap to a labeled swap partition.  See "
22359 "L</swapon-device> for other notes."
22360 msgstr ""
22361
22362 # type: =head2
22363 #: ../fish/guestfish-actions.pod:3880
22364 msgid "swapon-uuid"
22365 msgstr ""
22366
22367 # type: verbatim
22368 #: ../fish/guestfish-actions.pod:3882
22369 #, no-wrap
22370 msgid ""
22371 " swapon-uuid uuid\n"
22372 "\n"
22373 msgstr ""
22374
22375 # type: textblock
22376 #: ../fish/guestfish-actions.pod:3884
22377 msgid ""
22378 "This command enables swap to a swap partition with the given UUID.  See "
22379 "L</swapon-device> for other notes."
22380 msgstr ""
22381
22382 # type: =head2
22383 #: ../fish/guestfish-actions.pod:3887
22384 msgid "sync"
22385 msgstr ""
22386
22387 # type: verbatim
22388 #: ../fish/guestfish-actions.pod:3889
22389 #, no-wrap
22390 msgid ""
22391 " sync\n"
22392 "\n"
22393 msgstr ""
22394
22395 # type: =head2
22396 #: ../fish/guestfish-actions.pod:3897
22397 msgid "tail"
22398 msgstr ""
22399
22400 # type: verbatim
22401 #: ../fish/guestfish-actions.pod:3899
22402 #, no-wrap
22403 msgid ""
22404 " tail path\n"
22405 "\n"
22406 msgstr ""
22407
22408 # type: =head2
22409 #: ../fish/guestfish-actions.pod:3907
22410 msgid "tail-n"
22411 msgstr ""
22412
22413 # type: verbatim
22414 #: ../fish/guestfish-actions.pod:3909
22415 #, no-wrap
22416 msgid ""
22417 " tail-n nrlines path\n"
22418 "\n"
22419 msgstr ""
22420
22421 # type: =head2
22422 #: ../fish/guestfish-actions.pod:3922
22423 msgid "tar-in"
22424 msgstr ""
22425
22426 # type: verbatim
22427 #: ../fish/guestfish-actions.pod:3924
22428 #, no-wrap
22429 msgid ""
22430 " tar-in (tarfile|-) directory\n"
22431 "\n"
22432 msgstr ""
22433
22434 # type: textblock
22435 #: ../fish/guestfish-actions.pod:3929
22436 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22437 msgstr ""
22438
22439 # type: =head2
22440 #: ../fish/guestfish-actions.pod:3934
22441 msgid "tar-out"
22442 msgstr ""
22443
22444 # type: verbatim
22445 #: ../fish/guestfish-actions.pod:3936
22446 #, no-wrap
22447 msgid ""
22448 " tar-out directory (tarfile|-)\n"
22449 "\n"
22450 msgstr ""
22451
22452 # type: textblock
22453 #: ../fish/guestfish-actions.pod:3941
22454 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22455 msgstr ""
22456
22457 # type: =head2
22458 #: ../fish/guestfish-actions.pod:3946
22459 msgid "tgz-in"
22460 msgstr ""
22461
22462 # type: verbatim
22463 #: ../fish/guestfish-actions.pod:3948
22464 #, no-wrap
22465 msgid ""
22466 " tgz-in (tarball|-) directory\n"
22467 "\n"
22468 msgstr ""
22469
22470 # type: textblock
22471 #: ../fish/guestfish-actions.pod:3953
22472 msgid "To upload an uncompressed tarball, use L</tar-in>."
22473 msgstr ""
22474
22475 # type: =head2
22476 #: ../fish/guestfish-actions.pod:3957
22477 msgid "tgz-out"
22478 msgstr ""
22479
22480 # type: verbatim
22481 #: ../fish/guestfish-actions.pod:3959
22482 #, no-wrap
22483 msgid ""
22484 " tgz-out directory (tarball|-)\n"
22485 "\n"
22486 msgstr ""
22487
22488 # type: textblock
22489 #: ../fish/guestfish-actions.pod:3964
22490 msgid "To download an uncompressed tarball, use L</tar-out>."
22491 msgstr ""
22492
22493 # type: =head2
22494 #: ../fish/guestfish-actions.pod:3968
22495 msgid "touch"
22496 msgstr ""
22497
22498 # type: verbatim
22499 #: ../fish/guestfish-actions.pod:3970
22500 #, no-wrap
22501 msgid ""
22502 " touch path\n"
22503 "\n"
22504 msgstr ""
22505
22506 # type: =head2
22507 #: ../fish/guestfish-actions.pod:3979
22508 msgid "truncate"
22509 msgstr ""
22510
22511 # type: verbatim
22512 #: ../fish/guestfish-actions.pod:3981
22513 #, no-wrap
22514 msgid ""
22515 " truncate path\n"
22516 "\n"
22517 msgstr ""
22518
22519 # type: =head2
22520 #: ../fish/guestfish-actions.pod:3986
22521 msgid "truncate-size"
22522 msgstr ""
22523
22524 # type: verbatim
22525 #: ../fish/guestfish-actions.pod:3988
22526 #, no-wrap
22527 msgid ""
22528 " truncate-size path size\n"
22529 "\n"
22530 msgstr ""
22531
22532 # type: textblock
22533 #: ../fish/guestfish-actions.pod:3993
22534 msgid ""
22535 "If the current file size is less than C<size> then the file is extended to "
22536 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22537 "blocks are not allocated for the file until you write to it).  To create a "
22538 "non-sparse file of zeroes, use L</fallocate64> instead."
22539 msgstr ""
22540
22541 # type: =head2
22542 #: ../fish/guestfish-actions.pod:3999
22543 msgid "tune2fs-l"
22544 msgstr ""
22545
22546 # type: verbatim
22547 #: ../fish/guestfish-actions.pod:4001
22548 #, no-wrap
22549 msgid ""
22550 " tune2fs-l device\n"
22551 "\n"
22552 msgstr ""
22553
22554 # type: =head2
22555 #: ../fish/guestfish-actions.pod:4011
22556 msgid "txz-in"
22557 msgstr ""
22558
22559 # type: verbatim
22560 #: ../fish/guestfish-actions.pod:4013
22561 #, no-wrap
22562 msgid ""
22563 " txz-in (tarball|-) directory\n"
22564 "\n"
22565 msgstr ""
22566
22567 # type: =head2
22568 #: ../fish/guestfish-actions.pod:4020
22569 msgid "txz-out"
22570 msgstr ""
22571
22572 # type: verbatim
22573 #: ../fish/guestfish-actions.pod:4022
22574 #, no-wrap
22575 msgid ""
22576 " txz-out directory (tarball|-)\n"
22577 "\n"
22578 msgstr ""
22579
22580 # type: =head2
22581 #: ../fish/guestfish-actions.pod:4029
22582 msgid "umask"
22583 msgstr ""
22584
22585 # type: verbatim
22586 #: ../fish/guestfish-actions.pod:4031
22587 #, no-wrap
22588 msgid ""
22589 " umask mask\n"
22590 "\n"
22591 msgstr ""
22592
22593 # type: textblock
22594 #: ../fish/guestfish-actions.pod:4045
22595 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22596 msgstr ""
22597
22598 # type: =head2
22599 #: ../fish/guestfish-actions.pod:4050
22600 msgid "umount"
22601 msgstr ""
22602
22603 # type: =head2
22604 #: ../fish/guestfish-actions.pod:4052
22605 msgid "unmount"
22606 msgstr ""
22607
22608 # type: verbatim
22609 #: ../fish/guestfish-actions.pod:4054
22610 #, no-wrap
22611 msgid ""
22612 " umount pathordevice\n"
22613 "\n"
22614 msgstr ""
22615
22616 # type: =head2
22617 #: ../fish/guestfish-actions.pod:4060
22618 msgid "umount-all"
22619 msgstr ""
22620
22621 # type: =head2
22622 #: ../fish/guestfish-actions.pod:4062
22623 msgid "unmount-all"
22624 msgstr ""
22625
22626 # type: verbatim
22627 #: ../fish/guestfish-actions.pod:4064
22628 #, no-wrap
22629 msgid ""
22630 " umount-all\n"
22631 "\n"
22632 msgstr ""
22633
22634 # type: =head2
22635 #: ../fish/guestfish-actions.pod:4070
22636 msgid "upload"
22637 msgstr ""
22638
22639 # type: verbatim
22640 #: ../fish/guestfish-actions.pod:4072
22641 #, no-wrap
22642 msgid ""
22643 " upload (filename|-) remotefilename\n"
22644 "\n"
22645 msgstr ""
22646
22647 # type: textblock
22648 #: ../fish/guestfish-actions.pod:4079
22649 msgid "See also L</download>."
22650 msgstr ""
22651
22652 # type: =head2
22653 #: ../fish/guestfish-actions.pod:4083
22654 msgid "upload-offset"
22655 msgstr ""
22656
22657 # type: verbatim
22658 #: ../fish/guestfish-actions.pod:4085
22659 #, no-wrap
22660 msgid ""
22661 " upload-offset (filename|-) remotefilename offset\n"
22662 "\n"
22663 msgstr ""
22664
22665 # type: textblock
22666 #: ../fish/guestfish-actions.pod:4097
22667 msgid ""
22668 "Note that there is no limit on the amount of data that can be uploaded with "
22669 "this call, unlike with L</pwrite>, and this call always writes the full "
22670 "amount unless an error occurs."
22671 msgstr ""
22672
22673 # type: textblock
22674 #: ../fish/guestfish-actions.pod:4102
22675 msgid "See also L</upload>, L</pwrite>."
22676 msgstr ""
22677
22678 # type: =head2
22679 #: ../fish/guestfish-actions.pod:4106
22680 msgid "utimens"
22681 msgstr ""
22682
22683 # type: verbatim
22684 #: ../fish/guestfish-actions.pod:4108
22685 #, no-wrap
22686 msgid ""
22687 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
22688 "\n"
22689 msgstr ""
22690
22691 # type: =head2
22692 #: ../fish/guestfish-actions.pod:4127
22693 msgid "version"
22694 msgstr ""
22695
22696 # type: verbatim
22697 #: ../fish/guestfish-actions.pod:4129
22698 #, no-wrap
22699 msgid ""
22700 " version\n"
22701 "\n"
22702 msgstr ""
22703
22704 # type: textblock
22705 #: ../fish/guestfish-actions.pod:4156
22706 msgid ""
22707 "I<Note:> Don't use this call to test for availability of features.  In "
22708 "enterprise distributions we backport features from later versions into "
22709 "earlier versions, making this an unreliable way to test for features.  Use "
22710 "L</available> instead."
22711 msgstr ""
22712
22713 # type: =head2
22714 #: ../fish/guestfish-actions.pod:4162
22715 msgid "vfs-label"
22716 msgstr ""
22717
22718 # type: verbatim
22719 #: ../fish/guestfish-actions.pod:4164
22720 #, no-wrap
22721 msgid ""
22722 " vfs-label device\n"
22723 "\n"
22724 msgstr ""
22725
22726 # type: textblock
22727 #: ../fish/guestfish-actions.pod:4171
22728 msgid "To find a filesystem from the label, use L</findfs-label>."
22729 msgstr ""
22730
22731 # type: =head2
22732 #: ../fish/guestfish-actions.pod:4173
22733 msgid "vfs-type"
22734 msgstr ""
22735
22736 # type: verbatim
22737 #: ../fish/guestfish-actions.pod:4175
22738 #, no-wrap
22739 msgid ""
22740 " vfs-type device\n"
22741 "\n"
22742 msgstr ""
22743
22744 # type: =head2
22745 #: ../fish/guestfish-actions.pod:4185
22746 msgid "vfs-uuid"
22747 msgstr ""
22748
22749 # type: verbatim
22750 #: ../fish/guestfish-actions.pod:4187
22751 #, no-wrap
22752 msgid ""
22753 " vfs-uuid device\n"
22754 "\n"
22755 msgstr ""
22756
22757 # type: textblock
22758 #: ../fish/guestfish-actions.pod:4194
22759 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
22760 msgstr ""
22761
22762 # type: =head2
22763 #: ../fish/guestfish-actions.pod:4196
22764 msgid "vg-activate"
22765 msgstr ""
22766
22767 # type: verbatim
22768 #: ../fish/guestfish-actions.pod:4198
22769 #, no-wrap
22770 msgid ""
22771 " vg-activate true|false 'volgroups ...'\n"
22772 "\n"
22773 msgstr ""
22774
22775 # type: =head2
22776 #: ../fish/guestfish-actions.pod:4211
22777 msgid "vg-activate-all"
22778 msgstr ""
22779
22780 # type: verbatim
22781 #: ../fish/guestfish-actions.pod:4213
22782 #, no-wrap
22783 msgid ""
22784 " vg-activate-all true|false\n"
22785 "\n"
22786 msgstr ""
22787
22788 # type: =head2
22789 #: ../fish/guestfish-actions.pod:4223
22790 msgid "vgcreate"
22791 msgstr ""
22792
22793 # type: verbatim
22794 #: ../fish/guestfish-actions.pod:4225
22795 #, no-wrap
22796 msgid ""
22797 " vgcreate volgroup 'physvols ...'\n"
22798 "\n"
22799 msgstr ""
22800
22801 # type: =head2
22802 #: ../fish/guestfish-actions.pod:4230
22803 msgid "vglvuuids"
22804 msgstr ""
22805
22806 # type: verbatim
22807 #: ../fish/guestfish-actions.pod:4232
22808 #, no-wrap
22809 msgid ""
22810 " vglvuuids vgname\n"
22811 "\n"
22812 msgstr ""
22813
22814 # type: textblock
22815 #: ../fish/guestfish-actions.pod:4237
22816 msgid ""
22817 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
22818 "logical volumes and volume groups."
22819 msgstr ""
22820
22821 # type: textblock
22822 #: ../fish/guestfish-actions.pod:4240
22823 msgid "See also L</vgpvuuids>."
22824 msgstr ""
22825
22826 # type: =head2
22827 #: ../fish/guestfish-actions.pod:4242
22828 msgid "vgpvuuids"
22829 msgstr ""
22830
22831 # type: verbatim
22832 #: ../fish/guestfish-actions.pod:4244
22833 #, no-wrap
22834 msgid ""
22835 " vgpvuuids vgname\n"
22836 "\n"
22837 msgstr ""
22838
22839 # type: textblock
22840 #: ../fish/guestfish-actions.pod:4249
22841 msgid ""
22842 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
22843 "physical volumes and volume groups."
22844 msgstr ""
22845
22846 # type: textblock
22847 #: ../fish/guestfish-actions.pod:4252
22848 msgid "See also L</vglvuuids>."
22849 msgstr ""
22850
22851 # type: =head2
22852 #: ../fish/guestfish-actions.pod:4254
22853 msgid "vgremove"
22854 msgstr ""
22855
22856 # type: verbatim
22857 #: ../fish/guestfish-actions.pod:4256
22858 #, no-wrap
22859 msgid ""
22860 " vgremove vgname\n"
22861 "\n"
22862 msgstr ""
22863
22864 # type: =head2
22865 #: ../fish/guestfish-actions.pod:4263
22866 msgid "vgrename"
22867 msgstr ""
22868
22869 # type: verbatim
22870 #: ../fish/guestfish-actions.pod:4265
22871 #, no-wrap
22872 msgid ""
22873 " vgrename volgroup newvolgroup\n"
22874 "\n"
22875 msgstr ""
22876
22877 # type: =head2
22878 #: ../fish/guestfish-actions.pod:4269
22879 msgid "vgs"
22880 msgstr ""
22881
22882 # type: verbatim
22883 #: ../fish/guestfish-actions.pod:4271
22884 #, no-wrap
22885 msgid ""
22886 " vgs\n"
22887 "\n"
22888 msgstr ""
22889
22890 # type: textblock
22891 #: ../fish/guestfish-actions.pod:4279
22892 msgid "See also L</vgs-full>."
22893 msgstr ""
22894
22895 # type: =head2
22896 #: ../fish/guestfish-actions.pod:4281
22897 msgid "vgs-full"
22898 msgstr ""
22899
22900 # type: verbatim
22901 #: ../fish/guestfish-actions.pod:4283
22902 #, no-wrap
22903 msgid ""
22904 " vgs-full\n"
22905 "\n"
22906 msgstr ""
22907
22908 # type: =head2
22909 #: ../fish/guestfish-actions.pod:4288
22910 msgid "vgscan"
22911 msgstr ""
22912
22913 # type: verbatim
22914 #: ../fish/guestfish-actions.pod:4290
22915 #, no-wrap
22916 msgid ""
22917 " vgscan\n"
22918 "\n"
22919 msgstr ""
22920
22921 # type: =head2
22922 #: ../fish/guestfish-actions.pod:4295
22923 msgid "vguuid"
22924 msgstr ""
22925
22926 # type: verbatim
22927 #: ../fish/guestfish-actions.pod:4297
22928 #, no-wrap
22929 msgid ""
22930 " vguuid vgname\n"
22931 "\n"
22932 msgstr ""
22933
22934 # type: =head2
22935 #: ../fish/guestfish-actions.pod:4301
22936 msgid "wc-c"
22937 msgstr ""
22938
22939 # type: verbatim
22940 #: ../fish/guestfish-actions.pod:4303
22941 #, no-wrap
22942 msgid ""
22943 " wc-c path\n"
22944 "\n"
22945 msgstr ""
22946
22947 # type: =head2
22948 #: ../fish/guestfish-actions.pod:4308
22949 msgid "wc-l"
22950 msgstr ""
22951
22952 # type: verbatim
22953 #: ../fish/guestfish-actions.pod:4310
22954 #, no-wrap
22955 msgid ""
22956 " wc-l path\n"
22957 "\n"
22958 msgstr ""
22959
22960 # type: =head2
22961 #: ../fish/guestfish-actions.pod:4315
22962 msgid "wc-w"
22963 msgstr ""
22964
22965 # type: verbatim
22966 #: ../fish/guestfish-actions.pod:4317
22967 #, no-wrap
22968 msgid ""
22969 " wc-w path\n"
22970 "\n"
22971 msgstr ""
22972
22973 # type: =head2
22974 #: ../fish/guestfish-actions.pod:4322
22975 msgid "write"
22976 msgstr ""
22977
22978 # type: verbatim
22979 #: ../fish/guestfish-actions.pod:4324
22980 #, no-wrap
22981 msgid ""
22982 " write path content\n"
22983 "\n"
22984 msgstr ""
22985
22986 # type: =head2
22987 #: ../fish/guestfish-actions.pod:4332
22988 msgid "write-file"
22989 msgstr ""
22990
22991 # type: verbatim
22992 #: ../fish/guestfish-actions.pod:4334
22993 #, no-wrap
22994 msgid ""
22995 " write-file path content size\n"
22996 "\n"
22997 msgstr ""
22998
22999 # type: =head2
23000 #: ../fish/guestfish-actions.pod:4357
23001 msgid "zegrep"
23002 msgstr ""
23003
23004 # type: verbatim
23005 #: ../fish/guestfish-actions.pod:4359
23006 #, no-wrap
23007 msgid ""
23008 " zegrep regex path\n"
23009 "\n"
23010 msgstr ""
23011
23012 # type: =head2
23013 #: ../fish/guestfish-actions.pod:4367
23014 msgid "zegrepi"
23015 msgstr ""
23016
23017 # type: verbatim
23018 #: ../fish/guestfish-actions.pod:4369
23019 #, no-wrap
23020 msgid ""
23021 " zegrepi regex path\n"
23022 "\n"
23023 msgstr ""
23024
23025 # type: =head2
23026 #: ../fish/guestfish-actions.pod:4377
23027 msgid "zero"
23028 msgstr ""
23029
23030 # type: verbatim
23031 #: ../fish/guestfish-actions.pod:4379
23032 #, no-wrap
23033 msgid ""
23034 " zero device\n"
23035 "\n"
23036 msgstr ""
23037
23038 # type: textblock
23039 #: ../fish/guestfish-actions.pod:4387
23040 msgid "See also: L</zero-device>, L</scrub-device>."
23041 msgstr ""
23042
23043 # type: =head2
23044 #: ../fish/guestfish-actions.pod:4389
23045 msgid "zero-device"
23046 msgstr ""
23047
23048 # type: verbatim
23049 #: ../fish/guestfish-actions.pod:4391
23050 #, no-wrap
23051 msgid ""
23052 " zero-device device\n"
23053 "\n"
23054 msgstr ""
23055
23056 # type: textblock
23057 #: ../fish/guestfish-actions.pod:4393
23058 msgid ""
23059 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23060 "which just zeroes the first few blocks of a device."
23061 msgstr ""
23062
23063 # type: =head2
23064 #: ../fish/guestfish-actions.pod:4400
23065 msgid "zerofree"
23066 msgstr ""
23067
23068 # type: verbatim
23069 #: ../fish/guestfish-actions.pod:4402
23070 #, no-wrap
23071 msgid ""
23072 " zerofree device\n"
23073 "\n"
23074 msgstr ""
23075
23076 # type: =head2
23077 #: ../fish/guestfish-actions.pod:4415
23078 msgid "zfgrep"
23079 msgstr ""
23080
23081 # type: verbatim
23082 #: ../fish/guestfish-actions.pod:4417
23083 #, no-wrap
23084 msgid ""
23085 " zfgrep pattern path\n"
23086 "\n"
23087 msgstr ""
23088
23089 # type: =head2
23090 #: ../fish/guestfish-actions.pod:4425
23091 msgid "zfgrepi"
23092 msgstr ""
23093
23094 # type: verbatim
23095 #: ../fish/guestfish-actions.pod:4427
23096 #, no-wrap
23097 msgid ""
23098 " zfgrepi pattern path\n"
23099 "\n"
23100 msgstr ""
23101
23102 # type: =head2
23103 #: ../fish/guestfish-actions.pod:4435
23104 msgid "zfile"
23105 msgstr ""
23106
23107 # type: verbatim
23108 #: ../fish/guestfish-actions.pod:4437
23109 #, no-wrap
23110 msgid ""
23111 " zfile meth path\n"
23112 "\n"
23113 msgstr ""
23114
23115 # type: textblock
23116 #: ../fish/guestfish-actions.pod:4444
23117 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
23118 msgstr ""
23119
23120 # type: =head2
23121 #: ../fish/guestfish-actions.pod:4454
23122 msgid "zgrep"
23123 msgstr ""
23124
23125 # type: verbatim
23126 #: ../fish/guestfish-actions.pod:4456
23127 #, no-wrap
23128 msgid ""
23129 " zgrep regex path\n"
23130 "\n"
23131 msgstr ""
23132
23133 # type: =head2
23134 #: ../fish/guestfish-actions.pod:4464
23135 msgid "zgrepi"
23136 msgstr ""
23137
23138 # type: verbatim
23139 #: ../fish/guestfish-actions.pod:4466
23140 #, no-wrap
23141 msgid ""
23142 " zgrepi regex path\n"
23143 "\n"
23144 msgstr ""
23145
23146 # type: =head2
23147 #: ../fish/guestfish-commands.pod:1
23148 msgid "alloc"
23149 msgstr ""
23150
23151 # type: =head2
23152 #: ../fish/guestfish-commands.pod:3
23153 msgid "allocate"
23154 msgstr ""
23155
23156 # type: verbatim
23157 #: ../fish/guestfish-commands.pod:5
23158 #, no-wrap
23159 msgid ""
23160 " alloc filename size\n"
23161 "\n"
23162 msgstr ""
23163
23164 # type: textblock
23165 #: ../fish/guestfish-commands.pod:7
23166 msgid ""
23167 "This creates an empty (zeroed) file of the given size, and then adds so it "
23168 "can be further examined."
23169 msgstr ""
23170
23171 # type: textblock
23172 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23173 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23174 msgstr ""
23175
23176 # type: textblock
23177 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23178 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23179 msgstr ""
23180
23181 # type: textblock
23182 #: ../fish/guestfish-commands.pod:14
23183 msgid ""
23184 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23185 "image, see L</PREPARED DISK IMAGES>."
23186 msgstr ""
23187
23188 # type: =head2
23189 #: ../fish/guestfish-commands.pod:17
23190 msgid "copy-in"
23191 msgstr ""
23192
23193 # type: verbatim
23194 #: ../fish/guestfish-commands.pod:19
23195 #, no-wrap
23196 msgid ""
23197 " copy-in local [local ...] /remotedir\n"
23198 "\n"
23199 msgstr ""
23200
23201 # type: textblock
23202 #: ../fish/guestfish-commands.pod:21
23203 msgid ""
23204 "C<copy-in> copies local files or directories recursively into the disk "
23205 "image, placing them in the directory called C</remotedir> (which must "
23206 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23207 "other commands as necessary."
23208 msgstr ""
23209
23210 # type: textblock
23211 #: ../fish/guestfish-commands.pod:26
23212 msgid ""
23213 "Multiple local files and directories can be specified, but the last "
23214 "parameter must always be a remote directory.  Wildcards cannot be used."
23215 msgstr ""
23216
23217 # type: =head2
23218 #: ../fish/guestfish-commands.pod:30
23219 msgid "copy-out"
23220 msgstr ""
23221
23222 # type: verbatim
23223 #: ../fish/guestfish-commands.pod:32
23224 #, no-wrap
23225 msgid ""
23226 " copy-out remote [remote ...] localdir\n"
23227 "\n"
23228 msgstr ""
23229
23230 # type: textblock
23231 #: ../fish/guestfish-commands.pod:34
23232 msgid ""
23233 "C<copy-out> copies remote files or directories recursively out of the disk "
23234 "image, placing them on the host disk in a local directory called C<localdir> "
23235 "(which must exist).  This guestfish meta-command turns into a sequence of "
23236 "L</download>, L</tar-out> and other commands as necessary."
23237 msgstr ""
23238
23239 # type: textblock
23240 #: ../fish/guestfish-commands.pod:40
23241 msgid ""
23242 "Multiple remote files and directories can be specified, but the last "
23243 "parameter must always be a local directory.  To download to the current "
23244 "directory, use C<.> as in:"
23245 msgstr ""
23246
23247 # type: verbatim
23248 #: ../fish/guestfish-commands.pod:44
23249 #, no-wrap
23250 msgid ""
23251 " copy-out /home .\n"
23252 "\n"
23253 msgstr ""
23254
23255 # type: textblock
23256 #: ../fish/guestfish-commands.pod:46
23257 msgid ""
23258 "Wildcards cannot be used in the ordinary command, but you can use them with "
23259 "the help of L</glob> like this:"
23260 msgstr ""
23261
23262 # type: verbatim
23263 #: ../fish/guestfish-commands.pod:49
23264 #, no-wrap
23265 msgid ""
23266 " glob copy-out /home/* .\n"
23267 "\n"
23268 msgstr ""
23269
23270 # type: =head2
23271 #: ../fish/guestfish-commands.pod:51
23272 msgid "echo"
23273 msgstr ""
23274
23275 # type: verbatim
23276 #: ../fish/guestfish-commands.pod:53
23277 #, no-wrap
23278 msgid ""
23279 " echo [params ...]\n"
23280 "\n"
23281 msgstr ""
23282
23283 # type: textblock
23284 #: ../fish/guestfish-commands.pod:55
23285 msgid "This echos the parameters to the terminal."
23286 msgstr ""
23287
23288 # type: =head2
23289 #: ../fish/guestfish-commands.pod:57
23290 msgid "edit"
23291 msgstr ""
23292
23293 # type: =head2
23294 #: ../fish/guestfish-commands.pod:59
23295 msgid "vi"
23296 msgstr ""
23297
23298 # type: =head2
23299 #: ../fish/guestfish-commands.pod:61
23300 msgid "emacs"
23301 msgstr ""
23302
23303 # type: verbatim
23304 #: ../fish/guestfish-commands.pod:63
23305 #, no-wrap
23306 msgid ""
23307 " edit filename\n"
23308 "\n"
23309 msgstr ""
23310
23311 # type: textblock
23312 #: ../fish/guestfish-commands.pod:65
23313 msgid ""
23314 "This is used to edit a file.  It downloads the file, edits it locally using "
23315 "your editor, then uploads the result."
23316 msgstr ""
23317
23318 # type: textblock
23319 #: ../fish/guestfish-commands.pod:68
23320 msgid ""
23321 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23322 "or C<emacs> you will get those corresponding editors."
23323 msgstr ""
23324
23325 # type: =head2
23326 #: ../fish/guestfish-commands.pod:72
23327 msgid "glob"
23328 msgstr ""
23329
23330 # type: verbatim
23331 #: ../fish/guestfish-commands.pod:74
23332 #, no-wrap
23333 msgid ""
23334 " glob command args...\n"
23335 "\n"
23336 msgstr ""
23337
23338 # type: textblock
23339 #: ../fish/guestfish-commands.pod:76
23340 msgid ""
23341 "Expand wildcards in any paths in the args list, and run C<command> "
23342 "repeatedly on each matching path."
23343 msgstr ""
23344
23345 # type: textblock
23346 #: ../fish/guestfish-commands.pod:79
23347 msgid "See L</WILDCARDS AND GLOBBING>."
23348 msgstr ""
23349
23350 # type: =head2
23351 #: ../fish/guestfish-commands.pod:81
23352 msgid "hexedit"
23353 msgstr ""
23354
23355 # type: verbatim
23356 #: ../fish/guestfish-commands.pod:83
23357 #, no-wrap
23358 msgid ""
23359 " hexedit <filename|device>\n"
23360 " hexedit <filename|device> <max>\n"
23361 " hexedit <filename|device> <start> <max>\n"
23362 "\n"
23363 msgstr ""
23364
23365 # type: textblock
23366 #: ../fish/guestfish-commands.pod:87
23367 msgid ""
23368 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23369 "device."
23370 msgstr ""
23371
23372 # type: textblock
23373 #: ../fish/guestfish-commands.pod:90
23374 msgid ""
23375 "This command works by downloading potentially the whole file or device, "
23376 "editing it locally, then uploading it.  If the file or device is large, you "
23377 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23378 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23379 "usual modifiers allowed such as C<1M> (1 megabyte)."
23380 msgstr ""
23381
23382 # type: textblock
23383 #: ../fish/guestfish-commands.pod:97
23384 msgid "For example to edit the first few sectors of a disk you might do:"
23385 msgstr ""
23386
23387 # type: verbatim
23388 #: ../fish/guestfish-commands.pod:100
23389 #, no-wrap
23390 msgid ""
23391 " hexedit /dev/sda 1M\n"
23392 "\n"
23393 msgstr ""
23394
23395 # type: textblock
23396 #: ../fish/guestfish-commands.pod:102
23397 msgid ""
23398 "which would allow you to edit anywhere within the first megabyte of the "
23399 "disk."
23400 msgstr ""
23401
23402 # type: textblock
23403 #: ../fish/guestfish-commands.pod:105
23404 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23405 msgstr ""
23406
23407 # type: verbatim
23408 #: ../fish/guestfish-commands.pod:107
23409 #, no-wrap
23410 msgid ""
23411 " hexedit /dev/sda1 0x400 0x400\n"
23412 "\n"
23413 msgstr ""
23414
23415 # type: textblock
23416 #: ../fish/guestfish-commands.pod:109
23417 msgid "(assuming the superblock is in the standard location)."
23418 msgstr ""
23419
23420 # type: textblock
23421 #: ../fish/guestfish-commands.pod:111
23422 msgid ""
23423 "This command requires the external L<hexedit(1)> program.  You can specify "
23424 "another program to use by setting the C<HEXEDITOR> environment variable."
23425 msgstr ""
23426
23427 # type: textblock
23428 #: ../fish/guestfish-commands.pod:115
23429 msgid "See also L</hexdump>."
23430 msgstr ""
23431
23432 # type: =head2
23433 #: ../fish/guestfish-commands.pod:117
23434 msgid "lcd"
23435 msgstr ""
23436
23437 # type: verbatim
23438 #: ../fish/guestfish-commands.pod:119
23439 #, no-wrap
23440 msgid ""
23441 " lcd directory\n"
23442 "\n"
23443 msgstr ""
23444
23445 # type: textblock
23446 #: ../fish/guestfish-commands.pod:121
23447 msgid "Change the local directory, ie. the current directory of guestfish itself."
23448 msgstr ""
23449
23450 # type: textblock
23451 #: ../fish/guestfish-commands.pod:124
23452 msgid "Note that C<!cd> won't do what you might expect."
23453 msgstr ""
23454
23455 # type: =head2
23456 #: ../fish/guestfish-commands.pod:126
23457 msgid "man"
23458 msgstr ""
23459
23460 # type: =head2
23461 #: ../fish/guestfish-commands.pod:128
23462 msgid "manual"
23463 msgstr ""
23464
23465 # type: verbatim
23466 #: ../fish/guestfish-commands.pod:130
23467 #, no-wrap
23468 msgid ""
23469 "  man\n"
23470 "\n"
23471 msgstr ""
23472
23473 # type: textblock
23474 #: ../fish/guestfish-commands.pod:132
23475 msgid "Opens the manual page for guestfish."
23476 msgstr ""
23477
23478 # type: =head2
23479 #: ../fish/guestfish-commands.pod:134
23480 msgid "more"
23481 msgstr ""
23482
23483 # type: =head2
23484 #: ../fish/guestfish-commands.pod:136
23485 msgid "less"
23486 msgstr ""
23487
23488 # type: verbatim
23489 #: ../fish/guestfish-commands.pod:138
23490 #, no-wrap
23491 msgid ""
23492 " more filename\n"
23493 "\n"
23494 msgstr ""
23495
23496 # type: verbatim
23497 #: ../fish/guestfish-commands.pod:140
23498 #, no-wrap
23499 msgid ""
23500 " less filename\n"
23501 "\n"
23502 msgstr ""
23503
23504 # type: textblock
23505 #: ../fish/guestfish-commands.pod:142
23506 msgid "This is used to view a file."
23507 msgstr ""
23508
23509 # type: textblock
23510 #: ../fish/guestfish-commands.pod:144
23511 msgid ""
23512 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23513 "C<less> you will get the C<less> command specifically."
23514 msgstr ""
23515
23516 # type: =head2
23517 #: ../fish/guestfish-commands.pod:147
23518 msgid "reopen"
23519 msgstr ""
23520
23521 # type: verbatim
23522 #: ../fish/guestfish-commands.pod:149
23523 #, no-wrap
23524 msgid ""
23525 "  reopen\n"
23526 "\n"
23527 msgstr ""
23528
23529 # type: textblock
23530 #: ../fish/guestfish-commands.pod:151
23531 msgid ""
23532 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23533 "normally, because the handle is closed properly when guestfish exits.  "
23534 "However this is occasionally useful for testing."
23535 msgstr ""
23536
23537 # type: =head2
23538 #: ../fish/guestfish-commands.pod:155
23539 msgid "sparse"
23540 msgstr ""
23541
23542 # type: verbatim
23543 #: ../fish/guestfish-commands.pod:157
23544 #, no-wrap
23545 msgid ""
23546 " sparse filename size\n"
23547 "\n"
23548 msgstr ""
23549
23550 # type: textblock
23551 #: ../fish/guestfish-commands.pod:159
23552 msgid ""
23553 "This creates an empty sparse file of the given size, and then adds so it can "
23554 "be further examined."
23555 msgstr ""
23556
23557 # type: textblock
23558 #: ../fish/guestfish-commands.pod:162
23559 msgid ""
23560 "In all respects it works the same as the L</alloc> command, except that the "
23561 "image file is allocated sparsely, which means that disk blocks are not "
23562 "assigned to the file until they are needed.  Sparse disk files only use "
23563 "space when written to, but they are slower and there is a danger you could "
23564 "run out of real disk space during a write operation."
23565 msgstr ""
23566
23567 # type: =head2
23568 #: ../fish/guestfish-commands.pod:172
23569 msgid "supported"
23570 msgstr ""
23571
23572 # type: verbatim
23573 #: ../fish/guestfish-commands.pod:174
23574 #, no-wrap
23575 msgid ""
23576 " supported\n"
23577 "\n"
23578 msgstr ""
23579
23580 # type: textblock
23581 #: ../fish/guestfish-commands.pod:176
23582 msgid ""
23583 "This command returns a list of the optional groups known to the daemon, and "
23584 "indicates which ones are supported by this build of the libguestfs "
23585 "appliance."
23586 msgstr ""
23587
23588 # type: textblock
23589 #: ../fish/guestfish-commands.pod:180
23590 msgid "See also L<guestfs(3)/AVAILABILITY>."
23591 msgstr ""
23592
23593 # type: =head2
23594 #: ../fish/guestfish-commands.pod:182
23595 msgid "time"
23596 msgstr ""
23597
23598 # type: verbatim
23599 #: ../fish/guestfish-commands.pod:184
23600 #, no-wrap
23601 msgid ""
23602 " time command args...\n"
23603 "\n"
23604 msgstr ""
23605
23606 # type: textblock
23607 #: ../fish/guestfish-commands.pod:186
23608 msgid ""
23609 "Run the command as usual, but print the elapsed time afterwards.  This can "
23610 "be useful for benchmarking operations."
23611 msgstr ""
23612
23613 # type: textblock
23614 #: ../test-tool/libguestfs-test-tool.pod:5
23615 msgid "libguestfs-test-tool - End user tests for libguestfs"
23616 msgstr ""
23617
23618 # type: verbatim
23619 #: ../test-tool/libguestfs-test-tool.pod:9
23620 #, no-wrap
23621 msgid ""
23622 " libguestfs-test-tool [--options]\n"
23623 "\n"
23624 msgstr ""
23625
23626 # type: textblock
23627 #: ../test-tool/libguestfs-test-tool.pod:13
23628 msgid ""
23629 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23630 "and developers, to allow them to check basic libguestfs functionality is "
23631 "working.  This is needed because libguestfs occasionally breaks for reasons "
23632 "beyond our control: usually because of changes in the underlying qemu or "
23633 "kernel packages, or the host environment."
23634 msgstr ""
23635
23636 # type: textblock
23637 #: ../test-tool/libguestfs-test-tool.pod:20
23638 msgid "If you suspect a problem in libguestfs, then just run:"
23639 msgstr ""
23640
23641 # type: verbatim
23642 #: ../test-tool/libguestfs-test-tool.pod:22
23643 #, no-wrap
23644 msgid ""
23645 " libguestfs-test-tool\n"
23646 "\n"
23647 msgstr ""
23648
23649 # type: textblock
23650 #: ../test-tool/libguestfs-test-tool.pod:24
23651 msgid "It will print lots of diagnostic messages."
23652 msgstr ""
23653
23654 # type: textblock
23655 #: ../test-tool/libguestfs-test-tool.pod:26
23656 msgid "If it runs to completion successfully, you will see this near the end:"
23657 msgstr ""
23658
23659 # type: verbatim
23660 #: ../test-tool/libguestfs-test-tool.pod:28
23661 #, no-wrap
23662 msgid ""
23663 " ===== TEST FINISHED OK =====\n"
23664 "\n"
23665 msgstr ""
23666
23667 # type: textblock
23668 #: ../test-tool/libguestfs-test-tool.pod:30
23669 msgid "and the test tool will exit with code 0."
23670 msgstr ""
23671
23672 # type: textblock
23673 #: ../test-tool/libguestfs-test-tool.pod:32
23674 msgid ""
23675 "If it fails (and/or exits with non-zero error code), please paste the "
23676 "B<complete, unedited> output of the test tool into a bug report.  More "
23677 "information about reporting bugs can be found on the "
23678 "L<http://libguestfs.org/> website."
23679 msgstr ""
23680
23681 # type: =item
23682 #: ../test-tool/libguestfs-test-tool.pod:41
23683 msgid "I<--help>"
23684 msgstr ""
23685
23686 # type: textblock
23687 #: ../test-tool/libguestfs-test-tool.pod:43
23688 msgid "Display short usage information and exit."
23689 msgstr ""
23690
23691 # type: =item
23692 #: ../test-tool/libguestfs-test-tool.pod:45
23693 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
23694 msgstr ""
23695
23696 # type: textblock
23697 #: ../test-tool/libguestfs-test-tool.pod:47
23698 msgid ""
23699 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
23700 "normally look in the C<$libexec> directory that was configured when the tool "
23701 "was built."
23702 msgstr ""
23703
23704 # type: =item
23705 #: ../test-tool/libguestfs-test-tool.pod:51
23706 msgid "I<--qemu qemu_binary>"
23707 msgstr ""
23708
23709 # type: textblock
23710 #: ../test-tool/libguestfs-test-tool.pod:53
23711 msgid ""
23712 "If you have downloaded another qemu binary, point this option at the full "
23713 "path of the binary to try it."
23714 msgstr ""
23715
23716 # type: =item
23717 #: ../test-tool/libguestfs-test-tool.pod:56
23718 msgid "I<--qemudir qemu_source_dir>"
23719 msgstr ""
23720
23721 # type: textblock
23722 #: ../test-tool/libguestfs-test-tool.pod:58
23723 msgid ""
23724 "If you have compiled qemu from source, point this option at the source "
23725 "directory to try it."
23726 msgstr ""
23727
23728 # type: =item
23729 #: ../test-tool/libguestfs-test-tool.pod:61
23730 msgid "I<--timeout N>"
23731 msgstr ""
23732
23733 # type: textblock
23734 #: ../test-tool/libguestfs-test-tool.pod:63
23735 msgid ""
23736 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
23737 "does not usually need to be adjusted unless your machine is very slow."
23738 msgstr ""
23739
23740 # type: =head1
23741 #: ../test-tool/libguestfs-test-tool.pod:69
23742 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
23743 msgstr ""
23744
23745 # type: textblock
23746 #: ../test-tool/libguestfs-test-tool.pod:71
23747 msgid ""
23748 "If you have compiled another version of qemu from source and would like to "
23749 "try that, then you can use the I<--qemudir> option to point to the qemu "
23750 "source directory."
23751 msgstr ""
23752
23753 # type: textblock
23754 #: ../test-tool/libguestfs-test-tool.pod:75
23755 msgid ""
23756 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
23757 "option to point to the binary."
23758 msgstr ""
23759
23760 # type: textblock
23761 #: ../test-tool/libguestfs-test-tool.pod:78
23762 msgid ""
23763 "When using an alternate qemu with libguestfs, usually you would need to "
23764 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
23765 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
23766 "when you use either of the I<--qemudir> or I<--qemu> options."
23767 msgstr ""
23768
23769 # type: textblock
23770 #: ../test-tool/libguestfs-test-tool.pod:85
23771 msgid ""
23772 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
23773 "I<1> if there was an error."
23774 msgstr ""
23775
23776 # type: =item
23777 #: ../test-tool/libguestfs-test-tool.pod:92
23778 msgid "/usr/libexec/libguestfs-test-tool-helper"
23779 msgstr ""
23780
23781 # type: textblock
23782 #: ../test-tool/libguestfs-test-tool.pod:94
23783 msgid ""
23784 "This helper program is run inside the appliance and provides additional "
23785 "tests."
23786 msgstr ""
23787
23788 # type: =item
23789 #: ../test-tool/libguestfs-test-tool.pod:97
23790 msgid "/usr/bin/mkisofs"
23791 msgstr ""
23792
23793 # type: textblock
23794 #: ../test-tool/libguestfs-test-tool.pod:99
23795 msgid ""
23796 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
23797 "which is used as part of the tests."
23798 msgstr ""
23799
23800 # type: textblock
23801 #: ../test-tool/libguestfs-test-tool.pod:106
23802 msgid ""
23803 "For the full list of environment variables which may affect libguestfs, "
23804 "please see the L<guestfs(3)> manual page."
23805 msgstr ""
23806
23807 # type: textblock
23808 #: ../test-tool/libguestfs-test-tool.pod:111
23809 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
23810 msgstr ""
23811
23812 # type: textblock
23813 #: ../test-tool/libguestfs-test-tool.pod:121
23814 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
23815 msgstr ""
23816
23817 # type: textblock
23818 #: ../fuse/guestmount.pod:5
23819 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23820 msgstr ""
23821
23822 # type: verbatim
23823 #: ../fuse/guestmount.pod:9
23824 #, no-wrap
23825 msgid ""
23826 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23827 "\n"
23828 msgstr ""
23829
23830 # type: verbatim
23831 #: ../fuse/guestmount.pod:11
23832 #, no-wrap
23833 msgid ""
23834 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23835 "\n"
23836 msgstr ""
23837
23838 # type: verbatim
23839 #: ../fuse/guestmount.pod:13
23840 #, no-wrap
23841 msgid ""
23842 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23843 "\n"
23844 msgstr ""
23845
23846 # type: textblock
23847 #: ../fuse/guestmount.pod:17
23848 msgid ""
23849 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23850 "machines.  If you do this, you risk disk corruption in the VM."
23851 msgstr ""
23852
23853 # type: textblock
23854 #: ../fuse/guestmount.pod:22
23855 msgid ""
23856 "The guestmount program can be used to mount virtual machine filesystems and "
23857 "other disk images on the host.  It uses libguestfs for access to the guest "
23858 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23859 "a mountable device."
23860 msgstr ""
23861
23862 # type: textblock
23863 #: ../fuse/guestmount.pod:27
23864 msgid ""
23865 "Along with other options, you have to give at least one device (I<-a> "
23866 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23867 "option) or use the I<-i> inspection option.  How this works is better "
23868 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
23869 "below."
23870 msgstr ""
23871
23872 # type: textblock
23873 #: ../fuse/guestmount.pod:33
23874 msgid ""
23875 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23876 "by you, and the filesystem will not be visible to any other users unless you "
23877 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23878 "the filesystem, use the C<fusermount -u> command."
23879 msgstr ""
23880
23881 # type: textblock
23882 #: ../fuse/guestmount.pod:41
23883 msgid ""
23884 "For a typical Windows guest which has its main filesystem on the first "
23885 "partition:"
23886 msgstr ""
23887
23888 # type: verbatim
23889 #: ../fuse/guestmount.pod:44
23890 #, no-wrap
23891 msgid ""
23892 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23893 "\n"
23894 msgstr ""
23895
23896 # type: textblock
23897 #: ../fuse/guestmount.pod:46
23898 msgid ""
23899 "For a typical Linux guest which has a /boot filesystem on the first "
23900 "partition, and the root filesystem on a logical volume:"
23901 msgstr ""
23902
23903 # type: verbatim
23904 #: ../fuse/guestmount.pod:49
23905 #, no-wrap
23906 msgid ""
23907 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23908 "\n"
23909 msgstr ""
23910
23911 # type: textblock
23912 #: ../fuse/guestmount.pod:51
23913 msgid "To get libguestfs to detect guest mountpoints for you:"
23914 msgstr ""
23915
23916 # type: verbatim
23917 #: ../fuse/guestmount.pod:53
23918 #, no-wrap
23919 msgid ""
23920 " guestmount -a guest.img -i --ro /mnt\n"
23921 "\n"
23922 msgstr ""
23923
23924 # type: textblock
23925 #: ../fuse/guestmount.pod:55
23926 msgid "For a libvirt guest called \"Guest\" you could do:"
23927 msgstr ""
23928
23929 # type: verbatim
23930 #: ../fuse/guestmount.pod:57
23931 #, no-wrap
23932 msgid ""
23933 " guestmount -d Guest -i --ro /mnt\n"
23934 "\n"
23935 msgstr ""
23936
23937 # type: textblock
23938 #: ../fuse/guestmount.pod:59
23939 msgid ""
23940 "If you don't know what filesystems are contained in a guest or disk image, "
23941 "use L<virt-list-filesystems(1)> first:"
23942 msgstr ""
23943
23944 # type: verbatim
23945 #: ../fuse/guestmount.pod:62
23946 #, no-wrap
23947 msgid ""
23948 " virt-list-filesystems MyGuest\n"
23949 "\n"
23950 msgstr ""
23951
23952 # type: textblock
23953 #: ../fuse/guestmount.pod:64
23954 msgid ""
23955 "If you want to trace the libguestfs calls but without excessive debugging "
23956 "information, we recommend:"
23957 msgstr ""
23958
23959 # type: verbatim
23960 #: ../fuse/guestmount.pod:67
23961 #, no-wrap
23962 msgid ""
23963 " guestmount [...] --trace /mnt\n"
23964 "\n"
23965 msgstr ""
23966
23967 # type: textblock
23968 #: ../fuse/guestmount.pod:69
23969 msgid "If you want to debug the program, we recommend:"
23970 msgstr ""
23971
23972 # type: verbatim
23973 #: ../fuse/guestmount.pod:71
23974 #, no-wrap
23975 msgid ""
23976 " guestmount [...] --trace --verbose /mnt\n"
23977 "\n"
23978 msgstr ""
23979
23980 # type: textblock
23981 #: ../fuse/guestmount.pod:79
23982 msgid "Add a block device or virtual machine image."
23983 msgstr ""
23984
23985 # type: =item
23986 #: ../fuse/guestmount.pod:96
23987 msgid "B<--dir-cache-timeout N>"
23988 msgstr ""
23989
23990 # type: textblock
23991 #: ../fuse/guestmount.pod:98
23992 msgid ""
23993 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23994 "seconds.  The readdir cache [actually, there are several semi-independent "
23995 "caches] is populated after a readdir(2) call with the stat and extended "
23996 "attributes of the files in the directory, in anticipation that they will be "
23997 "requested soon after."
23998 msgstr ""
23999
24000 # type: textblock
24001 #: ../fuse/guestmount.pod:104
24002 msgid ""
24003 "There is also a different attribute cache implemented by FUSE (see the FUSE "
24004 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
24005 "requests, only cache existing ones."
24006 msgstr ""
24007
24008 # type: textblock
24009 #: ../fuse/guestmount.pod:115
24010 msgid ""
24011 "If you have untrusted raw-format guest disk images, you should use this "
24012 "option to specify the disk format.  This avoids a possible security problem "
24013 "with malicious guests (CVE-2010-3851).  See also "
24014 "L<guestfs(3)/guestfs_add_drive_opts>."
24015 msgstr ""
24016
24017 # type: =item
24018 #: ../fuse/guestmount.pod:120
24019 msgid "B<--fuse-help>"
24020 msgstr ""
24021
24022 # type: textblock
24023 #: ../fuse/guestmount.pod:122
24024 msgid "Display help on special FUSE options (see I<-o> below)."
24025 msgstr ""
24026
24027 # type: textblock
24028 #: ../fuse/guestmount.pod:126
24029 msgid "Display brief help and exit."
24030 msgstr ""
24031
24032 # type: =item
24033 #: ../fuse/guestmount.pod:134
24034 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24035 msgstr ""
24036
24037 # type: textblock
24038 #: ../fuse/guestmount.pod:136
24039 msgid ""
24040 "Mount the named partition or logical volume on the given mountpoint B<in the "
24041 "guest> (this has nothing to do with mountpoints in the host)."
24042 msgstr ""
24043
24044 # type: textblock
24045 #: ../fuse/guestmount.pod:139
24046 msgid ""
24047 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24048 "something on C</>."
24049 msgstr ""
24050
24051 # type: textblock
24052 #: ../fuse/guestmount.pod:144
24053 msgid ""
24054 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
24055 "unmounted.  If you specify this option, then we don't attempt to sync the "
24056 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
24057 msgstr ""
24058
24059 # type: =item
24060 #: ../fuse/guestmount.pod:149
24061 msgid "B<-o option> | B<--option option>"
24062 msgstr ""
24063
24064 # type: textblock
24065 #: ../fuse/guestmount.pod:151
24066 msgid "Pass extra options to FUSE."
24067 msgstr ""
24068
24069 # type: textblock
24070 #: ../fuse/guestmount.pod:153
24071 msgid ""
24072 "To get a list of all the extra options supported by FUSE, use the command "
24073 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24074 "of them are a good idea."
24075 msgstr ""
24076
24077 # type: verbatim
24078 #: ../fuse/guestmount.pod:157
24079 #, no-wrap
24080 msgid ""
24081 " guestmount --fuse-help\n"
24082 "\n"
24083 msgstr ""
24084
24085 # type: textblock
24086 #: ../fuse/guestmount.pod:159
24087 msgid "Some potentially useful FUSE options:"
24088 msgstr ""
24089
24090 # type: =item
24091 #: ../fuse/guestmount.pod:163
24092 msgid "B<-o allow_other>"
24093 msgstr ""
24094
24095 # type: textblock
24096 #: ../fuse/guestmount.pod:165
24097 msgid "Allow other users to see the filesystem."
24098 msgstr ""
24099
24100 # type: =item
24101 #: ../fuse/guestmount.pod:167
24102 msgid "B<-o attr_timeout=N>"
24103 msgstr ""
24104
24105 # type: textblock
24106 #: ../fuse/guestmount.pod:169
24107 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24108 msgstr ""
24109
24110 # type: =item
24111 #: ../fuse/guestmount.pod:171
24112 msgid "B<-o kernel_cache>"
24113 msgstr ""
24114
24115 # type: textblock
24116 #: ../fuse/guestmount.pod:173
24117 msgid ""
24118 "Allow the kernel to cache files (reduces the number of reads that have to go "
24119 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24120 "afford the extra memory usage."
24121 msgstr ""
24122
24123 # type: =item
24124 #: ../fuse/guestmount.pod:177
24125 msgid "B<-o uid=N> B<-o gid=N>"
24126 msgstr ""
24127
24128 # type: textblock
24129 #: ../fuse/guestmount.pod:179
24130 msgid ""
24131 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24132 "the chosen values."
24133 msgstr ""
24134
24135 # type: textblock
24136 #: ../fuse/guestmount.pod:186
24137 msgid ""
24138 "Add devices and mount everything read-only.  Also disallow writes and make "
24139 "the disk appear read-only to FUSE."
24140 msgstr ""
24141
24142 # type: textblock
24143 #: ../fuse/guestmount.pod:189
24144 msgid ""
24145 "This is highly recommended if you are not going to edit the guest disk.  If "
24146 "the guest is running and this option is I<not> supplied, then there is a "
24147 "strong risk of disk corruption in the guest.  We try to prevent this from "
24148 "happening, but it is not always possible."
24149 msgstr ""
24150
24151 # type: textblock
24152 #: ../fuse/guestmount.pod:196
24153 msgid "Enable SELinux support for the guest."
24154 msgstr ""
24155
24156 # type: textblock
24157 #: ../fuse/guestmount.pod:200
24158 msgid "Enable verbose messages from underlying libguestfs."
24159 msgstr ""
24160
24161 # type: textblock
24162 #: ../fuse/guestmount.pod:204
24163 msgid "Display the program version and exit."
24164 msgstr ""
24165
24166 # type: =item
24167 #: ../fuse/guestmount.pod:206
24168 msgid "B<-x> | B<--trace>"
24169 msgstr ""
24170
24171 # type: textblock
24172 #: ../fuse/guestmount.pod:208
24173 msgid "Trace libguestfs calls."
24174 msgstr ""
24175
24176 # type: textblock
24177 #: ../fuse/guestmount.pod:210
24178 msgid "This also stops the daemon from forking into the background."
24179 msgstr ""
24180
24181 # type: textblock
24182 #: ../fuse/guestmount.pod:216
24183 msgid ""
24184 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24185 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
24186 "L<http://fuse.sf.net/>."
24187 msgstr ""
24188
24189 # type: textblock
24190 #: ../inspector/virt-inspector.pl:35
24191 msgid ""
24192 "virt-inspector - Display operating system version and other information "
24193 "about a virtual machine"
24194 msgstr ""
24195
24196 # type: verbatim
24197 #: ../inspector/virt-inspector.pl:39
24198 #, no-wrap
24199 msgid ""
24200 " virt-inspector [--connect URI] domname\n"
24201 "\n"
24202 msgstr ""
24203
24204 # type: verbatim
24205 #: ../inspector/virt-inspector.pl:41
24206 #, no-wrap
24207 msgid ""
24208 " virt-inspector guest.img [guest.img ...]\n"
24209 "\n"
24210 msgstr ""
24211
24212 # type: textblock
24213 #: ../inspector/virt-inspector.pl:45
24214 msgid ""
24215 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24216 "determine the version of the operating system and other information about "
24217 "the virtual machine."
24218 msgstr ""
24219
24220 # type: textblock
24221 #: ../inspector/virt-inspector.pl:49
24222 msgid "Virt-inspector produces XML output for feeding into other programs."
24223 msgstr ""
24224
24225 # type: textblock
24226 #: ../inspector/virt-inspector.pl:51
24227 msgid ""
24228 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24229 "libvirt domain (see: C<virsh list --all>)."
24230 msgstr ""
24231
24232 # type: textblock
24233 #: ../inspector/virt-inspector.pl:54
24234 msgid ""
24235 "You can also run virt-inspector directly on disk images from a single "
24236 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24237 "has several block devices, in which case you should list them one after "
24238 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24239 "to the guest's C</dev/sdb> and so on."
24240 msgstr ""
24241
24242 # type: textblock
24243 #: ../inspector/virt-inspector.pl:60
24244 msgid ""
24245 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24246 "inspect several virtual machines, you have to run virt-inspector several "
24247 "times (for example, from a shell script for-loop)."
24248 msgstr ""
24249
24250 # type: textblock
24251 #: ../inspector/virt-inspector.pl:65
24252 msgid ""
24253 "Because virt-inspector needs direct access to guest images, it won't "
24254 "normally work over remote libvirt connections."
24255 msgstr ""
24256
24257 # type: textblock
24258 #: ../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
24259 msgid "Display brief help."
24260 msgstr ""
24261
24262 # type: =item
24263 #: ../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
24264 msgid "B<--version>"
24265 msgstr ""
24266
24267 # type: textblock
24268 #: ../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
24269 msgid "Display version number and exit."
24270 msgstr ""
24271
24272 # type: =item
24273 #: ../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
24274 msgid "B<--connect URI> | B<-c URI>"
24275 msgstr ""
24276
24277 # type: textblock
24278 #: ../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
24279 msgid ""
24280 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24281 "to the default libvirt hypervisor."
24282 msgstr ""
24283
24284 # type: textblock
24285 #: ../inspector/virt-inspector.pl:97
24286 msgid ""
24287 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24288 "you specify guest block devices directly, then libvirt is not used at all."
24289 msgstr ""
24290
24291 # type: =item
24292 #: ../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
24293 msgid "B<--format> raw"
24294 msgstr ""
24295
24296 # type: textblock
24297 #: ../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
24298 msgid ""
24299 "Specify the format of disk images given on the command line.  If this is "
24300 "omitted then the format is autodetected from the content of the disk image."
24301 msgstr ""
24302
24303 # type: textblock
24304 #: ../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
24305 msgid ""
24306 "If disk images are requested from libvirt, then this program asks libvirt "
24307 "for this information.  In this case, the value of the format parameter is "
24308 "ignored."
24309 msgstr ""
24310
24311 # type: textblock
24312 #: ../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
24313 msgid ""
24314 "If working with untrusted raw-format guest disk images, you should ensure "
24315 "the format is always specified."
24316 msgstr ""
24317
24318 # type: =head1
24319 #: ../inspector/virt-inspector.pl:149
24320 msgid "XML FORMAT"
24321 msgstr ""
24322
24323 # type: textblock
24324 #: ../inspector/virt-inspector.pl:151
24325 msgid ""
24326 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
24327 "supplied with libguestfs.  This section is just an overview."
24328 msgstr ""
24329
24330 # type: textblock
24331 #: ../inspector/virt-inspector.pl:154
24332 msgid ""
24333 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
24334 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
24335 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
24336 "which is vanishingly rare in real world VMs."
24337 msgstr ""
24338
24339 # type: =head2
24340 #: ../inspector/virt-inspector.pl:159
24341 msgid "E<lt>operatingsystemE<gt>"
24342 msgstr ""
24343
24344 # type: textblock
24345 #: ../inspector/virt-inspector.pl:161
24346 msgid ""
24347 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
24348 "describe the operating system, its architecture, the descriptive \"product "
24349 "name\" string, the type of OS and so on, as in this example:"
24350 msgstr ""
24351
24352 # type: verbatim
24353 #: ../inspector/virt-inspector.pl:165
24354 #, no-wrap
24355 msgid ""
24356 " <operatingsystems>\n"
24357 "   <operatingsystem>\n"
24358 "     <root>/dev/sda2</root>\n"
24359 "     <name>windows</name>\n"
24360 "     <arch>i386</arch>\n"
24361 "     <distro>windows</distro>\n"
24362 "     <product_name>Windows 7 Enterprise</product_name>\n"
24363 "     <major_version>6</major_version>\n"
24364 "     <minor_version>1</minor_version>\n"
24365 "     <windows_systemroot>/Windows</windows_systemroot>\n"
24366 "\n"
24367 msgstr ""
24368
24369 # type: textblock
24370 #: ../inspector/virt-inspector.pl:176
24371 msgid ""
24372 "These fields are derived from the libguestfs inspection API, and you can "
24373 "find more details in L<guestfs(3)/INSPECTION>."
24374 msgstr ""
24375
24376 # type: textblock
24377 #: ../inspector/virt-inspector.pl:179
24378 msgid ""
24379 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
24380 "of view of libguestfs (block devices may have completely different names "
24381 "inside the VM itself)."
24382 msgstr ""
24383
24384 # type: =head2
24385 #: ../inspector/virt-inspector.pl:240
24386 msgid "E<lt>mountpointsE<gt>"
24387 msgstr ""
24388
24389 # type: textblock
24390 #: ../inspector/virt-inspector.pl:242
24391 msgid ""
24392 "Un*x-like guests typically have multiple filesystems which are mounted at "
24393 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
24394 "element which looks like this:"
24395 msgstr ""
24396
24397 # type: verbatim
24398 #: ../inspector/virt-inspector.pl:246
24399 #, no-wrap
24400 msgid ""
24401 " <operatingsystems>\n"
24402 "   <operatingsystem>\n"
24403 "     ...\n"
24404 "     <mountpoints>\n"
24405 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
24406 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
24407 "     </mountpoints>\n"
24408 "\n"
24409 msgstr ""
24410
24411 # type: textblock
24412 #: ../inspector/virt-inspector.pl:254
24413 msgid ""
24414 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
24415 "and may have completely different names inside the guest.  Only mountable "
24416 "filesystems appear in this list, not things like swap devices."
24417 msgstr ""
24418
24419 # type: =head2
24420 #: ../inspector/virt-inspector.pl:276
24421 msgid "E<lt>filesystemsE<gt>"
24422 msgstr ""
24423
24424 # type: textblock
24425 #: ../inspector/virt-inspector.pl:278
24426 msgid ""
24427 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
24428 "filesystems belonging to the guest, including swap and empty partitions.  "
24429 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
24430 "this OS or shared by this OS and other OSes)."
24431 msgstr ""
24432
24433 # type: textblock
24434 #: ../inspector/virt-inspector.pl:283
24435 msgid "You might see something like this:"
24436 msgstr ""
24437
24438 # type: verbatim
24439 #: ../inspector/virt-inspector.pl:285
24440 #, no-wrap
24441 msgid ""
24442 " <operatingsystems>\n"
24443 "   <operatingsystem>\n"
24444 "     ...\n"
24445 "     <filesystems>\n"
24446 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24447 "         <type>ext4</type>\n"
24448 "         <label>Fedora-13-x86_64</label>\n"
24449 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24450 "       </filesystem>\n"
24451 "\n"
24452 msgstr ""
24453
24454 # type: textblock
24455 #: ../inspector/virt-inspector.pl:295
24456 msgid ""
24457 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24458 "the label, and the UUID."
24459 msgstr ""
24460
24461 # type: =head2
24462 #: ../inspector/virt-inspector.pl:337
24463 msgid "E<lt>applicationsE<gt>"
24464 msgstr ""
24465
24466 # type: textblock
24467 #: ../inspector/virt-inspector.pl:339
24468 msgid ""
24469 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24470 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24471 "machine.  At the moment we are only able to list RPMs and Debian packages "
24472 "installed, but in future we will support other Linux distros and Windows."
24473 msgstr ""
24474
24475 # type: textblock
24476 #: ../inspector/virt-inspector.pl:345
24477 msgid ""
24478 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
24479 "Typical values would be C<rpm> and C<deb>."
24480 msgstr ""
24481
24482 # type: textblock
24483 #: ../inspector/virt-inspector.pl:348
24484 msgid ""
24485 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
24486 "Typical values include C<yum>, C<up2date> and C<apt>"
24487 msgstr ""
24488
24489 # type: textblock
24490 #: ../inspector/virt-inspector.pl:351
24491 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24492 msgstr ""
24493
24494 # type: verbatim
24495 #: ../inspector/virt-inspector.pl:354
24496 #, no-wrap
24497 msgid ""
24498 " <operatingsystems>\n"
24499 "   <operatingsystem>\n"
24500 "     ...\n"
24501 "     <applications>\n"
24502 "       <application>\n"
24503 "         <name>coreutils</name>\n"
24504 "         <version>8.5</version>\n"
24505 "         <release>1</release>\n"
24506 "       </application>\n"
24507 "\n"
24508 msgstr ""
24509
24510 # type: textblock
24511 #: ../inspector/virt-inspector.pl:364
24512 msgid ""
24513 "(The version and release fields may not be available for some package "
24514 "types)."
24515 msgstr ""
24516
24517 # type: =head1
24518 #: ../inspector/virt-inspector.pl:544
24519 msgid "USING XPATH"
24520 msgstr ""
24521
24522 # type: textblock
24523 #: ../inspector/virt-inspector.pl:546
24524 msgid ""
24525 "You can use the XPath query language, and/or the xpath tool, in order to "
24526 "select parts of the XML."
24527 msgstr ""
24528
24529 # type: verbatim
24530 #: ../inspector/virt-inspector.pl:551
24531 #, no-wrap
24532 msgid ""
24533 " $ virt-inspector Guest | xpath //filesystems\n"
24534 " Found 1 nodes:\n"
24535 " -- NODE --\n"
24536 " <filesystems>\n"
24537 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24538 "        <type>ext4</type>\n"
24539 " [etc]\n"
24540 "\n"
24541 msgstr ""
24542
24543 # type: verbatim
24544 #: ../inspector/virt-inspector.pl:559
24545 #, no-wrap
24546 msgid ""
24547 " $ virt-inspector Guest | \\\n"
24548 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24549 " Query didn't return a nodeset. Value: ext4\n"
24550 "\n"
24551 msgstr ""
24552
24553 # type: =head1
24554 #: ../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
24555 msgid "SHELL QUOTING"
24556 msgstr ""
24557
24558 # type: textblock
24559 #: ../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
24560 msgid ""
24561 "Libvirt guest names can contain arbitrary characters, some of which have "
24562 "meaning to the shell such as C<#> and space.  You may need to quote or "
24563 "escape these characters on the command line.  See the shell manual page "
24564 "L<sh(1)> for details."
24565 msgstr ""
24566
24567 # type: textblock
24568 #: ../inspector/virt-inspector.pl:572
24569 msgid ""
24570 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24571 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
24572 msgstr ""
24573
24574 # type: textblock
24575 #: ../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
24576 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24577 msgstr ""
24578
24579 # type: textblock
24580 #: ../inspector/virt-inspector.pl:590
24581 msgid "Matthew Booth L<mbooth@redhat.com>"
24582 msgstr ""
24583
24584 # type: textblock
24585 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
24586 msgid "Copyright (C) 2010 Red Hat Inc."
24587 msgstr ""
24588
24589 # type: textblock
24590 #: ../tools/virt-edit.pl:34
24591 msgid "virt-edit - Edit a file in a virtual machine"
24592 msgstr ""
24593
24594 # type: verbatim
24595 #: ../tools/virt-edit.pl:38
24596 #, no-wrap
24597 msgid ""
24598 " virt-edit [--options] domname file\n"
24599 "\n"
24600 msgstr ""
24601
24602 # type: verbatim
24603 #: ../tools/virt-edit.pl:40
24604 #, no-wrap
24605 msgid ""
24606 " virt-edit [--options] disk.img [disk.img ...] file\n"
24607 "\n"
24608 msgstr ""
24609
24610 # type: verbatim
24611 #: ../tools/virt-edit.pl:42
24612 #, no-wrap
24613 msgid ""
24614 " virt-edit [domname|disk.img] file -e 'expr'\n"
24615 "\n"
24616 msgstr ""
24617
24618 # type: textblock
24619 #: ../tools/virt-edit.pl:46
24620 msgid ""
24621 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24622 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24623 "doing this, but doesn't catch all cases."
24624 msgstr ""
24625
24626 # type: textblock
24627 #: ../tools/virt-edit.pl:52
24628 msgid ""
24629 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24630 "the named virtual machine (or disk image)."
24631 msgstr ""
24632
24633 # type: textblock
24634 #: ../tools/virt-edit.pl:55
24635 msgid ""
24636 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24637 "you should look at the L<guestfish(1)> tool."
24638 msgstr ""
24639
24640 # type: textblock
24641 #: ../tools/virt-edit.pl:60
24642 msgid "Edit the named files interactively:"
24643 msgstr ""
24644
24645 # type: verbatim
24646 #: ../tools/virt-edit.pl:62
24647 #, no-wrap
24648 msgid ""
24649 " virt-edit mydomain /boot/grub/grub.conf\n"
24650 "\n"
24651 msgstr ""
24652
24653 # type: verbatim
24654 #: ../tools/virt-edit.pl:64
24655 #, no-wrap
24656 msgid ""
24657 " virt-edit mydomain /etc/passwd\n"
24658 "\n"
24659 msgstr ""
24660
24661 # type: textblock
24662 #: ../tools/virt-edit.pl:66
24663 msgid ""
24664 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
24665 "below).  To change the init default level to 5:"
24666 msgstr ""
24667
24668 # type: verbatim
24669 #: ../tools/virt-edit.pl:70
24670 #, no-wrap
24671 msgid ""
24672 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
24673 "\n"
24674 msgstr ""
24675
24676 # type: =item
24677 #: ../tools/virt-edit.pl:96
24678 msgid "B<--backup extension> | B<-b extension>"
24679 msgstr ""
24680
24681 # type: textblock
24682 #: ../tools/virt-edit.pl:98
24683 msgid ""
24684 "Create a backup of the original file I<in the guest disk image>.  The backup "
24685 "has the original filename with C<extension> added."
24686 msgstr ""
24687
24688 # type: textblock
24689 #: ../tools/virt-edit.pl:101
24690 msgid ""
24691 "Usually the first character of C<extension> would be a dot C<.> so you would "
24692 "write:"
24693 msgstr ""
24694
24695 # type: verbatim
24696 #: ../tools/virt-edit.pl:104
24697 #, no-wrap
24698 msgid ""
24699 " virt-edit -b .orig [etc]\n"
24700 "\n"
24701 msgstr ""
24702
24703 # type: textblock
24704 #: ../tools/virt-edit.pl:106
24705 msgid "By default, no backup file is made."
24706 msgstr ""
24707
24708 # type: textblock
24709 #: ../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
24710 msgid ""
24711 "If you specify guest block devices directly, then libvirt is not used at "
24712 "all."
24713 msgstr ""
24714
24715 # type: =item
24716 #: ../tools/virt-edit.pl:141
24717 msgid "B<--expr EXPR> | B<-e EXPR>"
24718 msgstr ""
24719
24720 # type: textblock
24721 #: ../tools/virt-edit.pl:143
24722 msgid ""
24723 "Instead of launching the external editor, non-interactively apply the Perl "
24724 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
24725 "EDITING> below."
24726 msgstr ""
24727
24728 # type: textblock
24729 #: ../tools/virt-edit.pl:147
24730 msgid ""
24731 "Be careful to properly quote the expression to prevent it from being altered "
24732 "by the shell."
24733 msgstr ""
24734
24735 # type: =head1
24736 #: ../tools/virt-edit.pl:268
24737 msgid "NON-INTERACTIVE EDITING"
24738 msgstr ""
24739
24740 # type: textblock
24741 #: ../tools/virt-edit.pl:270
24742 msgid ""
24743 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
24744 "administrator can interactively edit the file."
24745 msgstr ""
24746
24747 # type: textblock
24748 #: ../tools/virt-edit.pl:273
24749 msgid ""
24750 "There are two ways also to use C<virt-edit> from scripts in order to make "
24751 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
24752 "like this, it's less error-prone to write scripts directly using the "
24753 "libguestfs API and Augeas for configuration file editing.)"
24754 msgstr ""
24755
24756 # type: textblock
24757 #: ../tools/virt-edit.pl:279
24758 msgid ""
24759 "The first method is to temporarily set C<$EDITOR> to any script or program "
24760 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
24761 "update C<tmpfile> in place however it likes."
24762 msgstr ""
24763
24764 # type: textblock
24765 #: ../tools/virt-edit.pl:283
24766 msgid ""
24767 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
24768 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
24769 "instances of C<foo> with C<bar> in a file:"
24770 msgstr ""
24771
24772 # type: verbatim
24773 #: ../tools/virt-edit.pl:287
24774 #, no-wrap
24775 msgid ""
24776 " virt-edit domname filename -e 's/foo/bar/'\n"
24777 "\n"
24778 msgstr ""
24779
24780 # type: textblock
24781 #: ../tools/virt-edit.pl:289
24782 msgid ""
24783 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
24784 "For example to delete root's password you could do:"
24785 msgstr ""
24786
24787 # type: verbatim
24788 #: ../tools/virt-edit.pl:292
24789 #, no-wrap
24790 msgid ""
24791 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
24792 "\n"
24793 msgstr ""
24794
24795 # type: textblock
24796 #: ../tools/virt-edit.pl:294
24797 msgid ""
24798 "What really happens is that the snippet is evaluated as a Perl expression "
24799 "for each line of the file.  The line, including the final C<\\n>, is passed "
24800 "in C<$_> and the expression should update C<$_> or leave it unchanged."
24801 msgstr ""
24802
24803 # type: textblock
24804 #: ../tools/virt-edit.pl:299
24805 msgid ""
24806 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
24807 "C<apache> user account from the password file you can do:"
24808 msgstr ""
24809
24810 # type: verbatim
24811 #: ../tools/virt-edit.pl:302
24812 #, no-wrap
24813 msgid ""
24814 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
24815 "\n"
24816 msgstr ""
24817
24818 # type: textblock
24819 #: ../tools/virt-edit.pl:304
24820 msgid ""
24821 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
24822 "the end of the file is rather difficult this way since there is no concept "
24823 "of \"last line of the file\" - your expression just doesn't get called "
24824 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
24825 "want to do this."
24826 msgstr ""
24827
24828 # type: textblock
24829 #: ../tools/virt-edit.pl:310
24830 msgid ""
24831 "The variable C<$lineno> contains the current line number.  As is "
24832 "traditional, the first line in the file is number C<1>."
24833 msgstr ""
24834
24835 # type: textblock
24836 #: ../tools/virt-edit.pl:313
24837 msgid ""
24838 "The return value from the expression is ignored, but the expression may call "
24839 "C<die> in order to abort the whole program, leaving the original file "
24840 "untouched."
24841 msgstr ""
24842
24843 # type: textblock
24844 #: ../tools/virt-edit.pl:317
24845 msgid ""
24846 "Remember when matching the end of a line that C<$_> may contain the final "
24847 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
24848 "newline then neither of these.  Thus to match or substitute some text at the "
24849 "end of a line, use this regular expression:"
24850 msgstr ""
24851
24852 # type: verbatim
24853 #: ../tools/virt-edit.pl:322
24854 #, no-wrap
24855 msgid ""
24856 " /some text(\\r?\\n)?$/\n"
24857 "\n"
24858 msgstr ""
24859
24860 # type: textblock
24861 #: ../tools/virt-edit.pl:324
24862 msgid ""
24863 "Alternately, use the perl C<chomp> function, being careful not to chomp "
24864 "C<$_> itself (since that would remove all newlines from the file):"
24865 msgstr ""
24866
24867 # type: verbatim
24868 #: ../tools/virt-edit.pl:328
24869 #, no-wrap
24870 msgid ""
24871 " my $m = $_; chomp $m; $m =~ /some text$/\n"
24872 "\n"
24873 msgstr ""
24874
24875 # type: =item
24876 #: ../tools/virt-edit.pl:334
24877 msgid "C<EDITOR>"
24878 msgstr ""
24879
24880 # type: textblock
24881 #: ../tools/virt-edit.pl:336
24882 msgid ""
24883 "If set, this string is used as the editor.  It may contain arguments, "
24884 "eg. C<\"emacs -nw\">"
24885 msgstr ""
24886
24887 # type: textblock
24888 #: ../tools/virt-edit.pl:339
24889 msgid "If not set, C<vi> is used."
24890 msgstr ""
24891
24892 # type: textblock
24893 #: ../tools/virt-edit.pl:352
24894 msgid ""
24895 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
24896 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
24897 "L<perl(1)>, L<perlre(1)>."
24898 msgstr ""
24899
24900 # type: =head1
24901 #: ../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
24902 msgid "AUTHOR"
24903 msgstr ""
24904
24905 # type: textblock
24906 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
24907 msgid "Copyright (C) 2009-2010 Red Hat Inc."
24908 msgstr ""
24909
24910 # type: textblock
24911 #: ../tools/virt-win-reg.pl:37
24912 msgid ""
24913 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
24914 "guest"
24915 msgstr ""
24916
24917 # type: verbatim
24918 #: ../tools/virt-win-reg.pl:41
24919 #, no-wrap
24920 msgid ""
24921 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
24922 "\n"
24923 msgstr ""
24924
24925 # type: verbatim
24926 #: ../tools/virt-win-reg.pl:43
24927 #, no-wrap
24928 msgid ""
24929 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
24930 "\n"
24931 msgstr ""
24932
24933 # type: verbatim
24934 #: ../tools/virt-win-reg.pl:45
24935 #, no-wrap
24936 msgid ""
24937 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
24938 "\n"
24939 msgstr ""
24940
24941 # type: verbatim
24942 #: ../tools/virt-win-reg.pl:47
24943 #, no-wrap
24944 msgid ""
24945 " virt-win-reg --merge domname [input.reg ...]\n"
24946 "\n"
24947 msgstr ""
24948
24949 # type: verbatim
24950 #: ../tools/virt-win-reg.pl:49
24951 #, no-wrap
24952 msgid ""
24953 " virt-win-reg [--options] disk.img ... # instead of domname\n"
24954 "\n"
24955 msgstr ""
24956
24957 # type: textblock
24958 #: ../tools/virt-win-reg.pl:53
24959 msgid ""
24960 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
24961 "virtual machines.  If you do this, you I<will> get irreversible disk "
24962 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
24963 "but doesn't catch all cases."
24964 msgstr ""
24965
24966 # type: textblock
24967 #: ../tools/virt-win-reg.pl:58
24968 msgid ""
24969 "Modifying the Windows Registry is an inherently risky operation.  The format "
24970 "is deliberately obscure and undocumented, and Registry changes can leave the "
24971 "system unbootable.  Therefore when using the C<--merge> option, make sure "
24972 "you have a reliable backup first."
24973 msgstr ""
24974
24975 # type: textblock
24976 #: ../tools/virt-win-reg.pl:65
24977 msgid ""
24978 "This program can export and merge Windows Registry entries from a Windows "
24979 "guest."
24980 msgstr ""
24981
24982 # type: textblock
24983 #: ../tools/virt-win-reg.pl:68
24984 msgid ""
24985 "The first parameter is the libvirt guest name or the raw disk image of a "
24986 "Windows guest."
24987 msgstr ""
24988
24989 # type: textblock
24990 #: ../tools/virt-win-reg.pl:71
24991 msgid ""
24992 "If C<--merge> is I<not> specified, then the chosen registry key is "
24993 "displayed/exported (recursively).  For example:"
24994 msgstr ""
24995
24996 # type: verbatim
24997 #: ../tools/virt-win-reg.pl:74
24998 #, no-wrap
24999 msgid ""
25000 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25001 "\n"
25002 msgstr ""
25003
25004 # type: textblock
25005 #: ../tools/virt-win-reg.pl:76
25006 msgid "You can also display single values from within registry keys, for example:"
25007 msgstr ""
25008
25009 # type: verbatim
25010 #: ../tools/virt-win-reg.pl:79
25011 #, no-wrap
25012 msgid ""
25013 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25014 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25015 " Windows 7 Enterprise\n"
25016 "\n"
25017 msgstr ""
25018
25019 # type: textblock
25020 #: ../tools/virt-win-reg.pl:83
25021 msgid ""
25022 "With C<--merge>, you can merge a textual regedit file into the Windows "
25023 "Registry:"
25024 msgstr ""
25025
25026 # type: verbatim
25027 #: ../tools/virt-win-reg.pl:86
25028 #, no-wrap
25029 msgid ""
25030 " $ virt-win-reg --merge Windows7 changes.reg\n"
25031 "\n"
25032 msgstr ""
25033
25034 # type: =head2
25035 #: ../tools/virt-win-reg.pl:88
25036 msgid "SUPPORTED SYSTEMS"
25037 msgstr ""
25038
25039 # type: textblock
25040 #: ../tools/virt-win-reg.pl:90
25041 msgid ""
25042 "The program currently supports Windows NT-derived guests starting with "
25043 "Windows XP through to at least Windows 7."
25044 msgstr ""
25045
25046 # type: textblock
25047 #: ../tools/virt-win-reg.pl:93
25048 msgid ""
25049 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
25050 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
25051 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
25052 msgstr ""
25053
25054 # type: textblock
25055 #: ../tools/virt-win-reg.pl:97
25056 msgid ""
25057 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25058 "C<HKEY_USERS>."
25059 msgstr ""
25060
25061 # type: textblock
25062 #: ../tools/virt-win-reg.pl:100
25063 msgid ""
25064 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25065 "time."
25066 msgstr ""
25067
25068 # type: =head2
25069 #: ../tools/virt-win-reg.pl:103
25070 msgid "NOTE"
25071 msgstr ""
25072
25073 # type: textblock
25074 #: ../tools/virt-win-reg.pl:105
25075 msgid ""
25076 "This program is only meant for simple access to the registry.  If you want "
25077 "to do complicated things with the registry, we suggest you download the "
25078 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25079 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25080 "L<hivexregedit(1)>."
25081 msgstr ""
25082
25083 # type: =head2
25084 #: ../tools/virt-win-reg.pl:111
25085 msgid "ENCODING"
25086 msgstr ""
25087
25088 # type: textblock
25089 #: ../tools/virt-win-reg.pl:113
25090 msgid ""
25091 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25092 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
25093 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
25094 "with Windows-style line endings, you may need to reencode the whole file "
25095 "before or after processing."
25096 msgstr ""
25097
25098 # type: textblock
25099 #: ../tools/virt-win-reg.pl:119
25100 msgid ""
25101 "To reencode a file from Windows format to Linux (before processing it with "
25102 "the C<--merge> option), you would do something like this:"
25103 msgstr ""
25104
25105 # type: verbatim
25106 #: ../tools/virt-win-reg.pl:122
25107 #, no-wrap
25108 msgid ""
25109 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25110 "\n"
25111 msgstr ""
25112
25113 # type: textblock
25114 #: ../tools/virt-win-reg.pl:124
25115 msgid ""
25116 "To go in the opposite direction, after exporting and before sending the file "
25117 "to a Windows user, do something like this:"
25118 msgstr ""
25119
25120 # type: verbatim
25121 #: ../tools/virt-win-reg.pl:127
25122 #, no-wrap
25123 msgid ""
25124 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25125 "\n"
25126 msgstr ""
25127
25128 # type: textblock
25129 #: ../tools/virt-win-reg.pl:129
25130 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25131 msgstr ""
25132
25133 # type: textblock
25134 #: ../tools/virt-win-reg.pl:131
25135 msgid ""
25136 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25137 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
25138 "Windows-style (CRLF) line endings, like this:"
25139 msgstr ""
25140
25141 # type: verbatim
25142 #: ../tools/virt-win-reg.pl:135
25143 #, no-wrap
25144 msgid ""
25145 " $ file software.reg\n"
25146 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25147 " with CRLF line terminators\n"
25148 "\n"
25149 msgstr ""
25150
25151 # type: textblock
25152 #: ../tools/virt-win-reg.pl:139
25153 msgid "This file would need conversion before you could C<--merge> it."
25154 msgstr ""
25155
25156 # type: textblock
25157 #: ../tools/virt-win-reg.pl:143
25158 msgid ""
25159 "Be careful when passing parameters containing C<\\> (backslash) in the "
25160 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25161 "(but not both) to protect them from the shell."
25162 msgstr ""
25163
25164 # type: textblock
25165 #: ../tools/virt-win-reg.pl:147
25166 msgid "Paths and value names are case-insensitive."
25167 msgstr ""
25168
25169 # type: =head2
25170 #: ../tools/virt-win-reg.pl:149
25171 msgid "CurrentControlSet etc."
25172 msgstr ""
25173
25174 # type: textblock
25175 #: ../tools/virt-win-reg.pl:151
25176 msgid ""
25177 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25178 "Registry at the level of the hive file, and therefore you cannot modify "
25179 "these."
25180 msgstr ""
25181
25182 # type: textblock
25183 #: ../tools/virt-win-reg.pl:155
25184 msgid ""
25185 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25186 "circumstances it might refer to another control set.  The way to find out is "
25187 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25188 msgstr ""
25189
25190 # type: verbatim
25191 #: ../tools/virt-win-reg.pl:159
25192 #, no-wrap
25193 msgid ""
25194 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25195 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25196 " \"Current\"=dword:00000001\n"
25197 " \"Default\"=dword:00000001\n"
25198 " \"Failed\"=dword:00000000\n"
25199 " \"LastKnownGood\"=dword:00000002\n"
25200 "\n"
25201 msgstr ""
25202
25203 # type: textblock
25204 #: ../tools/virt-win-reg.pl:166
25205 msgid "\"Default\" is the one which Windows will choose when it boots."
25206 msgstr ""
25207
25208 # type: textblock
25209 #: ../tools/virt-win-reg.pl:168
25210 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
25211 msgstr ""
25212
25213 # type: =item
25214 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
25215 msgid "B<--debug>"
25216 msgstr ""
25217
25218 # type: textblock
25219 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
25220 msgid "Enable debugging messages."
25221 msgstr ""
25222
25223 # type: =item
25224 #: ../tools/virt-win-reg.pl:232
25225 msgid "B<--merge>"
25226 msgstr ""
25227
25228 # type: textblock
25229 #: ../tools/virt-win-reg.pl:234
25230 msgid ""
25231 "In merge mode, this merges a textual regedit file into the Windows Registry "
25232 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25233 "displays or exports Registry entries instead."
25234 msgstr ""
25235
25236 # type: textblock
25237 #: ../tools/virt-win-reg.pl:238
25238 msgid ""
25239 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25240 "result in disk corruption.  However exporting (without this flag)  is always "
25241 "safe."
25242 msgstr ""
25243
25244 # type: =item
25245 #: ../tools/virt-win-reg.pl:246
25246 msgid "B<--encoding> UTF-16LE|ASCII"
25247 msgstr ""
25248
25249 # type: textblock
25250 #: ../tools/virt-win-reg.pl:248
25251 msgid ""
25252 "When merging (only), you may need to specify the encoding for strings to be "
25253 "used in the hive file.  This is explained in detail in "
25254 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
25255 msgstr ""
25256
25257 # type: textblock
25258 #: ../tools/virt-win-reg.pl:252
25259 msgid ""
25260 "The default is to use UTF-16LE, which should work with recent versions of "
25261 "Windows."
25262 msgstr ""
25263
25264 # type: textblock
25265 #: ../tools/virt-win-reg.pl:486
25266 msgid ""
25267 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
25268 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25269 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
25270 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25271 msgstr ""
25272
25273 # type: textblock
25274 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25275 msgid ""
25276 "When reporting bugs, please enable debugging and capture the I<complete> "
25277 "output:"
25278 msgstr ""
25279
25280 # type: verbatim
25281 #: ../tools/virt-win-reg.pl:504
25282 #, no-wrap
25283 msgid ""
25284 " export LIBGUESTFS_DEBUG=1\n"
25285 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25286 "\n"
25287 msgstr ""
25288
25289 # type: textblock
25290 #: ../tools/virt-win-reg.pl:507
25291 msgid ""
25292 "Attach /tmp/virt-win-reg.log to a new bug report at "
25293 "L<https://bugzilla.redhat.com/>"
25294 msgstr ""
25295
25296 # type: textblock
25297 #: ../tools/virt-df.pl:36
25298 msgid "virt-df - Display free space on virtual filesystems"
25299 msgstr ""
25300
25301 # type: verbatim
25302 #: ../tools/virt-df.pl:40
25303 #, no-wrap
25304 msgid ""
25305 " virt-df [--options]\n"
25306 "\n"
25307 msgstr ""
25308
25309 # type: verbatim
25310 #: ../tools/virt-df.pl:42
25311 #, no-wrap
25312 msgid ""
25313 " virt-df [--options] domname\n"
25314 "\n"
25315 msgstr ""
25316
25317 # type: verbatim
25318 #: ../tools/virt-df.pl:44
25319 #, no-wrap
25320 msgid ""
25321 " virt-df [--options] disk.img [disk.img ...]\n"
25322 "\n"
25323 msgstr ""
25324
25325 # type: textblock
25326 #: ../tools/virt-df.pl:48
25327 msgid ""
25328 "C<virt-df> is a command line tool to display free space on virtual machine "
25329 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25330 "space allocated to a virtual machine, but can look inside the virtual "
25331 "machine to see how much space is really being used."
25332 msgstr ""
25333
25334 # type: textblock
25335 #: ../tools/virt-df.pl:53
25336 msgid ""
25337 "It is like the L<df(1)> command, but for virtual machines, except that it "
25338 "also works for Windows virtual machines."
25339 msgstr ""
25340
25341 # type: textblock
25342 #: ../tools/virt-df.pl:56
25343 msgid ""
25344 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25345 "of all active and inactive guests, and performs a C<df>-type operation on "
25346 "each one in turn, printing out the results."
25347 msgstr ""
25348
25349 # type: textblock
25350 #: ../tools/virt-df.pl:60
25351 msgid ""
25352 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25353 "either the single named libvirt domain, or on the disk image(s) listed on "
25354 "the command line (which must all belong to a single VM).  In this mode (with "
25355 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25356 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25357 msgstr ""
25358
25359 # type: textblock
25360 #: ../tools/virt-df.pl:67
25361 msgid ""
25362 "Use the C<--csv> option to get a format which can be easily parsed by other "
25363 "programs.  Other options are mostly similar to standard C<df> options.  See "
25364 "below for the complete list."
25365 msgstr ""
25366
25367 # type: =item
25368 #: ../tools/virt-df.pl:107
25369 msgid "B<--csv>"
25370 msgstr ""
25371
25372 # type: textblock
25373 #: ../tools/virt-df.pl:109
25374 msgid ""
25375 "Write out the results in CSV format (comma-separated values).  This format "
25376 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25377 "ABOUT CSV FORMAT> below."
25378 msgstr ""
25379
25380 # type: =item
25381 #: ../tools/virt-df.pl:134
25382 msgid "B<--human-readable> | B<-h>"
25383 msgstr ""
25384
25385 # type: textblock
25386 #: ../tools/virt-df.pl:136
25387 msgid "Print sizes in human-readable format."
25388 msgstr ""
25389
25390 # type: textblock
25391 #: ../tools/virt-df.pl:138
25392 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25393 msgstr ""
25394
25395 # type: =item
25396 #: ../tools/virt-df.pl:144
25397 msgid "B<--inodes> | B<-i>"
25398 msgstr ""
25399
25400 # type: textblock
25401 #: ../tools/virt-df.pl:146
25402 msgid "Print inodes instead of blocks."
25403 msgstr ""
25404
25405 # type: =item
25406 #: ../tools/virt-df.pl:152
25407 msgid "B<--one-per-guest>"
25408 msgstr ""
25409
25410 # type: textblock
25411 #: ../tools/virt-df.pl:154
25412 msgid ""
25413 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25414 "disks from several guests to a single libguestfs appliance."
25415 msgstr ""
25416
25417 # type: textblock
25418 #: ../tools/virt-df.pl:157
25419 msgid "You might use this option in the following circumstances:"
25420 msgstr ""
25421
25422 # type: textblock
25423 #: ../tools/virt-df.pl:163
25424 msgid ""
25425 "If you think an untrusted guest might actively try to exploit the libguestfs "
25426 "appliance kernel, then this prevents one guest from interfering with the "
25427 "stats printed for another guest."
25428 msgstr ""
25429
25430 # type: textblock
25431 #: ../tools/virt-df.pl:169
25432 msgid ""
25433 "If the kernel has a bug which stops it from accessing a filesystem in one "
25434 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25435 "and report stats for further guests."
25436 msgstr ""
25437
25438 # type: =item
25439 #: ../tools/virt-df.pl:180
25440 msgid "B<--uuid>"
25441 msgstr ""
25442
25443 # type: textblock
25444 #: ../tools/virt-df.pl:182
25445 msgid ""
25446 "Print UUIDs instead of names.  This is useful for following a guest even "
25447 "when the guest is migrated or renamed, or when two guests happen to have the "
25448 "same name."
25449 msgstr ""
25450
25451 # type: textblock
25452 #: ../tools/virt-df.pl:186
25453 msgid ""
25454 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25455 "images, we still print the disk image name even when this option is "
25456 "specified."
25457 msgstr ""
25458
25459 # type: =head1
25460 #: ../tools/virt-df.pl:609
25461 msgid "NOTE ABOUT CSV FORMAT"
25462 msgstr ""
25463
25464 # type: textblock
25465 #: ../tools/virt-df.pl:611
25466 msgid ""
25467 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25468 "should be easy to parse, but it is definitely not easy to parse."
25469 msgstr ""
25470
25471 # type: textblock
25472 #: ../tools/virt-df.pl:614
25473 msgid ""
25474 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25475 "reliably.  This example has two columns:"
25476 msgstr ""
25477
25478 # type: verbatim
25479 #: ../tools/virt-df.pl:617
25480 #, no-wrap
25481 msgid ""
25482 " \"foo,bar\",baz\n"
25483 "\n"
25484 msgstr ""
25485
25486 # type: textblock
25487 #: ../tools/virt-df.pl:619
25488 msgid ""
25489 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25490 "reliably.  This example has one row:"
25491 msgstr ""
25492
25493 # type: verbatim
25494 #: ../tools/virt-df.pl:622
25495 #, no-wrap
25496 msgid ""
25497 " \"foo\n"
25498 " bar\",baz\n"
25499 "\n"
25500 msgstr ""
25501
25502 # type: textblock
25503 #: ../tools/virt-df.pl:625
25504 msgid ""
25505 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25506 "packaged in major Linux distributions)."
25507 msgstr ""
25508
25509 # type: textblock
25510 #: ../tools/virt-df.pl:628
25511 msgid ""
25512 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25513 "or Python's built-in csv library)."
25514 msgstr ""
25515
25516 # type: textblock
25517 #: ../tools/virt-df.pl:631
25518 msgid "Most spreadsheets and databases can import CSV directly."
25519 msgstr ""
25520
25521 # type: textblock
25522 #: ../tools/virt-df.pl:642
25523 msgid ""
25524 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25525 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25526 msgstr ""
25527
25528 # type: textblock
25529 #: ../tools/virt-ls.pl:34
25530 msgid "virt-ls - List files in a virtual machine"
25531 msgstr ""
25532
25533 # type: verbatim
25534 #: ../tools/virt-ls.pl:38
25535 #, no-wrap
25536 msgid ""
25537 " virt-ls [--options] domname directory\n"
25538 "\n"
25539 msgstr ""
25540
25541 # type: verbatim
25542 #: ../tools/virt-ls.pl:40
25543 #, no-wrap
25544 msgid ""
25545 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25546 "\n"
25547 msgstr ""
25548
25549 # type: textblock
25550 #: ../tools/virt-ls.pl:44
25551 msgid ""
25552 "C<virt-ls> is a command line tool to list the names of files in a directory "
25553 "inside a virtual machine or disk image."
25554 msgstr ""
25555
25556 # type: textblock
25557 #: ../tools/virt-ls.pl:47
25558 msgid ""
25559 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25560 "For more complex cases you should look at the L<guestfish(1)> tool."
25561 msgstr ""
25562
25563 # type: textblock
25564 #: ../tools/virt-ls.pl:51
25565 msgid ""
25566 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
25567 "simple listing is like the ordinary L<ls(1)> command:"
25568 msgstr ""
25569
25570 # type: verbatim
25571 #: ../tools/virt-ls.pl:54
25572 #, no-wrap
25573 msgid ""
25574 " $ virt-ls myguest /\n"
25575 " bin\n"
25576 " boot\n"
25577 " [etc.]\n"
25578 "\n"
25579 msgstr ""
25580
25581 # type: textblock
25582 #: ../tools/virt-ls.pl:59
25583 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
25584 msgstr ""
25585
25586 # type: verbatim
25587 #: ../tools/virt-ls.pl:61
25588 #, no-wrap
25589 msgid ""
25590 " $ virt-ls -l myguest /\n"
25591 " total 204\n"
25592 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25593 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25594 " [etc.]\n"
25595 "\n"
25596 msgstr ""
25597
25598 # type: textblock
25599 #: ../tools/virt-ls.pl:67
25600 msgid ""
25601 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25602 "and directories recursively:"
25603 msgstr ""
25604
25605 # type: verbatim
25606 #: ../tools/virt-ls.pl:70
25607 #, no-wrap
25608 msgid ""
25609 " $ virt-ls -R myguest /tmp\n"
25610 " foo\n"
25611 " foo/bar\n"
25612 " [etc.]\n"
25613 "\n"
25614 msgstr ""
25615
25616 # type: textblock
25617 #: ../tools/virt-ls.pl:75
25618 msgid ""
25619 "You I<cannot> combine these options.  To do more complicated things, use "
25620 "L<guestfish(1)>."
25621 msgstr ""
25622
25623 # type: =item
25624 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
25625 msgid "B<-l> | B<--long>"
25626 msgstr ""
25627
25628 # type: =item
25629 #: ../tools/virt-ls.pl:133
25630 msgid "B<-R> | B<--recursive>"
25631 msgstr ""
25632
25633 # type: textblock
25634 #: ../tools/virt-ls.pl:135
25635 msgid ""
25636 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25637 "simple, flat list of the files in the named directory."
25638 msgstr ""
25639
25640 # type: textblock
25641 #: ../tools/virt-ls.pl:138
25642 msgid ""
25643 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
25644 "like the plain C<ls -l> command)."
25645 msgstr ""
25646
25647 # type: textblock
25648 #: ../tools/virt-ls.pl:141
25649 msgid ""
25650 "C<virt-ls -R> produces a recursive list of files starting at the named "
25651 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
25652 "details."
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../tools/virt-ls.pl:145
25657 msgid "You cannot combine these options."
25658 msgstr ""
25659
25660 # type: textblock
25661 #: ../tools/virt-ls.pl:234
25662 msgid ""
25663 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
25664 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
25665 "L<http://libguestfs.org/>."
25666 msgstr ""
25667
25668 # type: textblock
25669 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
25670 msgid "Copyright (C) 2009 Red Hat Inc."
25671 msgstr ""
25672
25673 # type: textblock
25674 #: ../tools/virt-resize.pl:42
25675 msgid "virt-resize - Resize a virtual machine disk"
25676 msgstr ""
25677
25678 # type: verbatim
25679 #: ../tools/virt-resize.pl:46
25680 #, no-wrap
25681 msgid ""
25682 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25683 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25684 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25685 "\n"
25686 msgstr ""
25687
25688 # type: textblock
25689 #: ../tools/virt-resize.pl:52
25690 msgid ""
25691 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25692 "larger or smaller overall, and resizing or deleting any partitions contained "
25693 "within."
25694 msgstr ""
25695
25696 # type: textblock
25697 #: ../tools/virt-resize.pl:56
25698 msgid ""
25699 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
25700 "not> be used on live virtual machines - for consistent results, shut the "
25701 "virtual machine down before resizing it."
25702 msgstr ""
25703
25704 # type: textblock
25705 #: ../tools/virt-resize.pl:60
25706 msgid ""
25707 "If you are not familiar with the associated tools: "
25708 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
25709 "we recommend you go and read those manual pages first."
25710 msgstr ""
25711
25712 # type: textblock
25713 #: ../tools/virt-resize.pl:68
25714 msgid ""
25715 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25716 "fill the extra 5GB of space."
25717 msgstr ""
25718
25719 # type: verbatim
25720 #: ../tools/virt-resize.pl:71
25721 #, no-wrap
25722 msgid ""
25723 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
25724 " virt-list-partitions -lht olddisk\n"
25725 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25726 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25727 "\n"
25728 msgstr ""
25729
25730 # type: textblock
25731 #: ../tools/virt-resize.pl:76
25732 msgid ""
25733 "As above, but make the /boot partition 200MB bigger, while giving the "
25734 "remaining space to /dev/sda2:"
25735 msgstr ""
25736
25737 # type: verbatim
25738 #: ../tools/virt-resize.pl:79
25739 #, no-wrap
25740 msgid ""
25741 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
25742 "\n"
25743 msgstr ""
25744
25745 # type: textblock
25746 #: ../tools/virt-resize.pl:81
25747 msgid "As above, but the output format will be uncompressed qcow2:"
25748 msgstr ""
25749
25750 # type: verbatim
25751 #: ../tools/virt-resize.pl:83
25752 #, no-wrap
25753 msgid ""
25754 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25755 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25756 "\n"
25757 msgstr ""
25758
25759 # type: =head1
25760 #: ../tools/virt-resize.pl:86
25761 msgid "DETAILED USAGE"
25762 msgstr ""
25763
25764 # type: =head2
25765 #: ../tools/virt-resize.pl:88
25766 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25767 msgstr ""
25768
25769 # type: =item
25770 #: ../tools/virt-resize.pl:92
25771 msgid "1. Shut down the virtual machine"
25772 msgstr ""
25773
25774 # type: =item
25775 #: ../tools/virt-resize.pl:94
25776 msgid "2. Locate input disk image"
25777 msgstr ""
25778
25779 # type: textblock
25780 #: ../tools/virt-resize.pl:96
25781 msgid ""
25782 "Locate the input disk image (ie. the file or device on the host containing "
25783 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25784 "dumpxml> like this to find the disk image name:"
25785 msgstr ""
25786
25787 # type: verbatim
25788 #: ../tools/virt-resize.pl:100
25789 #, no-wrap
25790 msgid ""
25791 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25792 " Found 1 nodes:\n"
25793 " -- NODE --\n"
25794 " <source dev=\"/dev/vg/lv_guest\" />\n"
25795 "\n"
25796 msgstr ""
25797
25798 # type: =item
25799 #: ../tools/virt-resize.pl:105
25800 msgid "3. Look at current sizing"
25801 msgstr ""
25802
25803 # type: textblock
25804 #: ../tools/virt-resize.pl:107
25805 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
25806 msgstr ""
25807
25808 # type: verbatim
25809 #: ../tools/virt-resize.pl:110
25810 #, no-wrap
25811 msgid ""
25812 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
25813 " /dev/sda1 ext3 101.9M\n"
25814 " /dev/sda2 pv 7.9G\n"
25815 " /dev/sda device 8.0G\n"
25816 "\n"
25817 msgstr ""
25818
25819 # type: textblock
25820 #: ../tools/virt-resize.pl:115
25821 msgid ""
25822 "(This example is a virtual machine with an 8 GB disk which we would like to "
25823 "expand up to 10 GB)."
25824 msgstr ""
25825
25826 # type: =item
25827 #: ../tools/virt-resize.pl:118
25828 msgid "4. Create output disk"
25829 msgstr ""
25830
25831 # type: textblock
25832 #: ../tools/virt-resize.pl:120
25833 msgid ""
25834 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25835 "to store the resized output disk."
25836 msgstr ""
25837
25838 # type: textblock
25839 #: ../tools/virt-resize.pl:123
25840 msgid "To store the resized disk image in a file, create a file of a suitable size:"
25841 msgstr ""
25842
25843 # type: verbatim
25844 #: ../tools/virt-resize.pl:126
25845 #, no-wrap
25846 msgid ""
25847 " # rm -f outdisk\n"
25848 " # truncate -s 10G outdisk\n"
25849 "\n"
25850 msgstr ""
25851
25852 # type: textblock
25853 #: ../tools/virt-resize.pl:129
25854 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25855 msgstr ""
25856
25857 # type: verbatim
25858 #: ../tools/virt-resize.pl:131
25859 #, no-wrap
25860 msgid ""
25861 " # lvcreate -L 10G -n lv_name vg_name\n"
25862 "\n"
25863 msgstr ""
25864
25865 # type: textblock
25866 #: ../tools/virt-resize.pl:133
25867 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25868 msgstr ""
25869
25870 # type: verbatim
25871 #: ../tools/virt-resize.pl:135
25872 #, no-wrap
25873 msgid ""
25874 " # virsh pool-list\n"
25875 " # virsh vol-create-as poolname newvol 10G\n"
25876 "\n"
25877 msgstr ""
25878
25879 # type: =item
25880 #: ../tools/virt-resize.pl:138
25881 msgid "5. Resize"
25882 msgstr ""
25883
25884 # type: textblock
25885 #: ../tools/virt-resize.pl:140
25886 msgid ""
25887 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25888 "file) and the output disk.  The output disk is the one created in the "
25889 "previous step."
25890 msgstr ""
25891
25892 # type: verbatim
25893 #: ../tools/virt-resize.pl:144
25894 #, no-wrap
25895 msgid ""
25896 " # virt-resize indisk outdisk\n"
25897 "\n"
25898 msgstr ""
25899
25900 # type: textblock
25901 #: ../tools/virt-resize.pl:146
25902 msgid ""
25903 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25904 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25905 "larger, then an extra, empty partition is created at the end of the disk "
25906 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25907 "error."
25908 msgstr ""
25909
25910 # type: textblock
25911 #: ../tools/virt-resize.pl:152
25912 msgid ""
25913 "More realistically you'd want to expand existing partitions in the disk "
25914 "image by passing extra options (for the full list see the L</OPTIONS> "
25915 "section below)."
25916 msgstr ""
25917
25918 # type: textblock
25919 #: ../tools/virt-resize.pl:156
25920 msgid ""
25921 "L</--expand> is the most useful option.  It expands the named partition "
25922 "within the disk to fill any extra space:"
25923 msgstr ""
25924
25925 # type: verbatim
25926 #: ../tools/virt-resize.pl:159
25927 #, no-wrap
25928 msgid ""
25929 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25930 "\n"
25931 msgstr ""
25932
25933 # type: textblock
25934 #: ../tools/virt-resize.pl:161
25935 msgid ""
25936 "(In this case, an extra partition is I<not> created at the end of the disk, "
25937 "because there will be no unused space)."
25938 msgstr ""
25939
25940 # type: textblock
25941 #: ../tools/virt-resize.pl:164
25942 msgid ""
25943 "L</--resize> is the other commonly used option.  The following would "
25944 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25945 "rest of the available space:"
25946 msgstr ""
25947
25948 # type: verbatim
25949 #: ../tools/virt-resize.pl:168
25950 #, no-wrap
25951 msgid ""
25952 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25953 "     indisk outdisk\n"
25954 "\n"
25955 msgstr ""
25956
25957 # type: textblock
25958 #: ../tools/virt-resize.pl:171
25959 msgid ""
25960 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25961 "if virt-resize knows how, it will resize the contents, the equivalent of "
25962 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
25963 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
25964 "filesystems, so you would have to online resize them after booting the "
25965 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
25966 "just resizes the PV itself and leaves the user to resize any LVs inside that "
25967 "PV as desired."
25968 msgstr ""
25969
25970 # type: textblock
25971 #: ../tools/virt-resize.pl:180
25972 msgid "Other options are covered below."
25973 msgstr ""
25974
25975 # type: =item
25976 #: ../tools/virt-resize.pl:182
25977 msgid "6. Test"
25978 msgstr ""
25979
25980 # type: textblock
25981 #: ../tools/virt-resize.pl:184
25982 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25983 msgstr ""
25984
25985 # type: textblock
25986 #: ../tools/virt-resize.pl:186
25987 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25988 msgstr ""
25989
25990 # type: verbatim
25991 #: ../tools/virt-resize.pl:188
25992 #, no-wrap
25993 msgid ""
25994 " # virsh edit guestname\n"
25995 "\n"
25996 msgstr ""
25997
25998 # type: textblock
25999 #: ../tools/virt-resize.pl:190
26000 msgid ""
26001 "Change E<lt>source ...E<gt>, see "
26002 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26003 msgstr ""
26004
26005 # type: textblock
26006 #: ../tools/virt-resize.pl:193
26007 msgid "Then start up the domain with the new, resized disk:"
26008 msgstr ""
26009
26010 # type: verbatim
26011 #: ../tools/virt-resize.pl:195
26012 #, no-wrap
26013 msgid ""
26014 " # virsh start guestname\n"
26015 "\n"
26016 msgstr ""
26017
26018 # type: textblock
26019 #: ../tools/virt-resize.pl:197
26020 msgid ""
26021 "and check that it still works.  See also the L</NOTES> section below for "
26022 "additional information."
26023 msgstr ""
26024
26025 # type: =item
26026 #: ../tools/virt-resize.pl:200
26027 msgid "7. Resize LVs etc inside the guest"
26028 msgstr ""
26029
26030 # type: textblock
26031 #: ../tools/virt-resize.pl:202
26032 msgid "(This can also be done offline using L<guestfish(1)>)"
26033 msgstr ""
26034
26035 # type: textblock
26036 #: ../tools/virt-resize.pl:204
26037 msgid ""
26038 "Once the guest has booted you should see the new space available, at least "
26039 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26040 "may need to resize LVs inside PVs, and also resize filesystem types that "
26041 "virt-resize does not know how to expand."
26042 msgstr ""
26043
26044 # type: =head2
26045 #: ../tools/virt-resize.pl:211
26046 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26047 msgstr ""
26048
26049 # type: textblock
26050 #: ../tools/virt-resize.pl:213
26051 msgid ""
26052 "Shrinking is somewhat more complex than expanding, and only an overview is "
26053 "given here."
26054 msgstr ""
26055
26056 # type: textblock
26057 #: ../tools/virt-resize.pl:216
26058 msgid ""
26059 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26060 "filesystems).  The user has to shrink content before passing the disk image "
26061 "to virt-resize, and virt-resize will check that the content has been shrunk "
26062 "properly."
26063 msgstr ""
26064
26065 # type: textblock
26066 #: ../tools/virt-resize.pl:221
26067 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26068 msgstr ""
26069
26070 # type: textblock
26071 #: ../tools/virt-resize.pl:223
26072 msgid ""
26073 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26074 "steps 3 and 4 above to allocate a new disk image."
26075 msgstr ""
26076
26077 # type: textblock
26078 #: ../tools/virt-resize.pl:226
26079 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26080 msgstr ""
26081
26082 # type: =head2
26083 #: ../tools/virt-resize.pl:229
26084 msgid "IGNORING OR DELETING PARTITIONS"
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../tools/virt-resize.pl:231
26089 msgid ""
26090 "virt-resize also gives a convenient way to ignore or delete partitions when "
26091 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26092 "up the copy where you don't care about the existing contents of a "
26093 "partition.  Deleting a partition removes it completely, but note that it "
26094 "also renumbers any partitions after the one which is deleted, which can "
26095 "leave some guests unbootable."
26096 msgstr ""
26097
26098 # type: =head2
26099 #: ../tools/virt-resize.pl:238
26100 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26101 msgstr ""
26102
26103 # type: textblock
26104 #: ../tools/virt-resize.pl:240
26105 msgid ""
26106 "If the input disk is in qcow2 format, then you may prefer that the output is "
26107 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26108 "the fly.  The output format is simply determined by the format of the empty "
26109 "output container that you provide.  Thus to create qcow2 output, use:"
26110 msgstr ""
26111
26112 # type: verbatim
26113 #: ../tools/virt-resize.pl:246
26114 #, no-wrap
26115 msgid ""
26116 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26117 "\n"
26118 msgstr ""
26119
26120 # type: textblock
26121 #: ../tools/virt-resize.pl:248
26122 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26123 msgstr ""
26124
26125 # type: textblock
26126 #: ../tools/virt-resize.pl:250
26127 msgid "Similarly, to get non-sparse raw output use:"
26128 msgstr ""
26129
26130 # type: verbatim
26131 #: ../tools/virt-resize.pl:252
26132 #, no-wrap
26133 msgid ""
26134 " fallocate -l size outdisk\n"
26135 "\n"
26136 msgstr ""
26137
26138 # type: textblock
26139 #: ../tools/virt-resize.pl:254
26140 msgid ""
26141 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
26142 "if=/dev/zero of=outdisk bs=1M count=..>)"
26143 msgstr ""
26144
26145 # type: textblock
26146 #: ../tools/virt-resize.pl:267
26147 msgid "Display help."
26148 msgstr ""
26149
26150 # type: =item
26151 #: ../tools/virt-resize.pl:281
26152 msgid "B<--resize part=size>"
26153 msgstr ""
26154
26155 # type: textblock
26156 #: ../tools/virt-resize.pl:283
26157 msgid ""
26158 "Resize the named partition (expanding or shrinking it) so that it has the "
26159 "given size."
26160 msgstr ""
26161
26162 # type: textblock
26163 #: ../tools/virt-resize.pl:286
26164 msgid ""
26165 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26166 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26167 "Exabytes; or as a percentage of the current size; or as a relative number or "
26168 "percentage.  For example:"
26169 msgstr ""
26170
26171 # type: verbatim
26172 #: ../tools/virt-resize.pl:291
26173 #, no-wrap
26174 msgid ""
26175 " --resize /dev/sda2=10G\n"
26176 "\n"
26177 msgstr ""
26178
26179 # type: verbatim
26180 #: ../tools/virt-resize.pl:293
26181 #, no-wrap
26182 msgid ""
26183 " --resize /dev/sda4=90%\n"
26184 "\n"
26185 msgstr ""
26186
26187 # type: verbatim
26188 #: ../tools/virt-resize.pl:295
26189 #, no-wrap
26190 msgid ""
26191 " --resize /dev/sda2=+1G\n"
26192 "\n"
26193 msgstr ""
26194
26195 # type: verbatim
26196 #: ../tools/virt-resize.pl:297
26197 #, no-wrap
26198 msgid ""
26199 " --resize /dev/sda2=-200M\n"
26200 "\n"
26201 msgstr ""
26202
26203 # type: verbatim
26204 #: ../tools/virt-resize.pl:299
26205 #, no-wrap
26206 msgid ""
26207 " --resize /dev/sda1=+128K\n"
26208 "\n"
26209 msgstr ""
26210
26211 # type: verbatim
26212 #: ../tools/virt-resize.pl:301
26213 #, no-wrap
26214 msgid ""
26215 " --resize /dev/sda1=+10%\n"
26216 "\n"
26217 msgstr ""
26218
26219 # type: verbatim
26220 #: ../tools/virt-resize.pl:303
26221 #, no-wrap
26222 msgid ""
26223 " --resize /dev/sda1=-10%\n"
26224 "\n"
26225 msgstr ""
26226
26227 # type: textblock
26228 #: ../tools/virt-resize.pl:305
26229 msgid ""
26230 "You can increase the size of any partition.  Virt-resize will expand the "
26231 "direct content of the partition if it knows how (see C<--expand> below)."
26232 msgstr ""
26233
26234 # type: textblock
26235 #: ../tools/virt-resize.pl:309
26236 msgid ""
26237 "You can only I<decrease> the size of partitions that contain filesystems or "
26238 "PVs which have already been shrunk.  Virt-resize will check this has been "
26239 "done before proceeding, or else will print an error (see also "
26240 "C<--resize-force>)."
26241 msgstr ""
26242
26243 # type: textblock
26244 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
26245 msgid "You can give this option multiple times."
26246 msgstr ""
26247
26248 # type: =item
26249 #: ../tools/virt-resize.pl:320
26250 msgid "B<--resize-force part=size>"
26251 msgstr ""
26252
26253 # type: textblock
26254 #: ../tools/virt-resize.pl:322
26255 msgid ""
26256 "This is the same as C<--resize> except that it will let you decrease the "
26257 "size of any partition.  Generally this means you will lose any data which "
26258 "was at the end of the partition you shrink, but you may not care about that "
26259 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26260 "as a swap partition)."
26261 msgstr ""
26262
26263 # type: textblock
26264 #: ../tools/virt-resize.pl:328
26265 msgid "See also the C<--ignore> option."
26266 msgstr ""
26267
26268 # type: =item
26269 #: ../tools/virt-resize.pl:334
26270 msgid "B<--expand part>"
26271 msgstr ""
26272
26273 # type: textblock
26274 #: ../tools/virt-resize.pl:336
26275 msgid ""
26276 "Expand the named partition so it uses up all extra space (space left over "
26277 "after any other resize changes that you request have been done)."
26278 msgstr ""
26279
26280 # type: textblock
26281 #: ../tools/virt-resize.pl:339
26282 msgid ""
26283 "If virt-resize knows how, it will expand the direct content of the "
26284 "partition.  For example, if the partition is an LVM PV, it will expand the "
26285 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26286 "content it doesn't know about alone."
26287 msgstr ""
26288
26289 # type: textblock
26290 #: ../tools/virt-resize.pl:344
26291 msgid "Currently virt-resize can resize:"
26292 msgstr ""
26293
26294 # type: textblock
26295 #: ../tools/virt-resize.pl:350
26296 msgid ""
26297 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26298 "partition."
26299 msgstr ""
26300
26301 # type: textblock
26302 #: ../tools/virt-resize.pl:355
26303 msgid ""
26304 "NTFS filesystems contained directly in a partition, if libguestfs was "
26305 "compiled with support for NTFS."
26306 msgstr ""
26307
26308 # type: textblock
26309 #: ../tools/virt-resize.pl:358
26310 msgid ""
26311 "The filesystem must have been shut down consistently last time it was used.  "
26312 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26313 "consistency check, so at the first boot after resizing Windows will check "
26314 "the disk."
26315 msgstr ""
26316
26317 # type: textblock
26318 #: ../tools/virt-resize.pl:365
26319 msgid ""
26320 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26321 "inside the PV.  The user will have to resize LVs as desired."
26322 msgstr ""
26323
26324 # type: textblock
26325 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26326 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26327 msgstr ""
26328
26329 # type: =item
26330 #: ../tools/virt-resize.pl:377
26331 msgid "B<--shrink part>"
26332 msgstr ""
26333
26334 # type: textblock
26335 #: ../tools/virt-resize.pl:379
26336 msgid ""
26337 "Shrink the named partition until the overall disk image fits in the "
26338 "destination.  The named partition B<must> contain a filesystem or PV which "
26339 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26340 "online tools).  Virt-resize will check this and give an error if it has not "
26341 "been done."
26342 msgstr ""
26343
26344 # type: textblock
26345 #: ../tools/virt-resize.pl:385
26346 msgid ""
26347 "The amount by which the overall disk must be shrunk (after carrying out all "
26348 "other operations requested by the user) is called the \"deficit\".  For "
26349 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26350 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26351 "would give an error unless the user specified a partition to shrink and that "
26352 "partition had more than a gigabyte of free space."
26353 msgstr ""
26354
26355 # type: =item
26356 #: ../tools/virt-resize.pl:399
26357 msgid "B<--ignore part>"
26358 msgstr ""
26359
26360 # type: textblock
26361 #: ../tools/virt-resize.pl:401
26362 msgid ""
26363 "Ignore the named partition.  Effectively this means the partition is "
26364 "allocated on the destination disk, but the content is not copied across from "
26365 "the source disk.  The content of the partition will be blank (all zero "
26366 "bytes)."
26367 msgstr ""
26368
26369 # type: =item
26370 #: ../tools/virt-resize.pl:412
26371 msgid "B<--delete part>"
26372 msgstr ""
26373
26374 # type: textblock
26375 #: ../tools/virt-resize.pl:414
26376 msgid ""
26377 "Delete the named partition.  It would be more accurate to describe this as "
26378 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26379 "the original disk image is left intact."
26380 msgstr ""
26381
26382 # type: textblock
26383 #: ../tools/virt-resize.pl:418
26384 msgid ""
26385 "Note that when you delete a partition, then anything contained in the "
26386 "partition is also deleted.  Furthermore, this causes any partitions that "
26387 "come after to be I<renumbered>, which can easily make your guest unbootable."
26388 msgstr ""
26389
26390 # type: =item
26391 #: ../tools/virt-resize.pl:429
26392 msgid "B<--LV-expand logvol>"
26393 msgstr ""
26394
26395 # type: textblock
26396 #: ../tools/virt-resize.pl:431
26397 msgid ""
26398 "This takes the logical volume and, as a final step, expands it to fill all "
26399 "the space available in its volume group.  A typical usage, assuming a Linux "
26400 "guest with a single PV C</dev/sda2> and a root device called "
26401 "C</dev/vg_guest/lv_root> would be:"
26402 msgstr ""
26403
26404 # type: verbatim
26405 #: ../tools/virt-resize.pl:436
26406 #, no-wrap
26407 msgid ""
26408 " virt-resize indisk outdisk \\\n"
26409 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26410 "\n"
26411 msgstr ""
26412
26413 # type: textblock
26414 #: ../tools/virt-resize.pl:439
26415 msgid ""
26416 "This would first expand the partition (and PV), and then expand the root "
26417 "device to fill the extra space in the PV."
26418 msgstr ""
26419
26420 # type: textblock
26421 #: ../tools/virt-resize.pl:442
26422 msgid ""
26423 "The contents of the LV are also resized if virt-resize knows how to do "
26424 "that.  You can stop virt-resize from trying to expand the content by using "
26425 "the option C<--no-expand-content>."
26426 msgstr ""
26427
26428 # type: textblock
26429 #: ../tools/virt-resize.pl:446
26430 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26431 msgstr ""
26432
26433 # type: textblock
26434 #: ../tools/virt-resize.pl:449
26435 msgid ""
26436 "You can give this option multiple times, I<but> it doesn't make sense to do "
26437 "this unless the logical volumes you specify are all in different volume "
26438 "groups."
26439 msgstr ""
26440
26441 # type: =item
26442 #: ../tools/virt-resize.pl:457
26443 msgid "B<--no-copy-boot-loader>"
26444 msgstr ""
26445
26446 # type: textblock
26447 #: ../tools/virt-resize.pl:459
26448 msgid ""
26449 "By default, virt-resize copies over some sectors at the start of the disk "
26450 "(up to the beginning of the first partition).  Commonly these sectors "
26451 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26452 "in order for the guest to boot correctly."
26453 msgstr ""
26454
26455 # type: textblock
26456 #: ../tools/virt-resize.pl:464
26457 msgid ""
26458 "If you specify this flag, then this initial copy is not done.  You may need "
26459 "to reinstall the boot loader in this case."
26460 msgstr ""
26461
26462 # type: =item
26463 #: ../tools/virt-resize.pl:472
26464 msgid "B<--no-extra-partition>"
26465 msgstr ""
26466
26467 # type: textblock
26468 #: ../tools/virt-resize.pl:474
26469 msgid ""
26470 "By default, virt-resize creates an extra partition if there is any extra, "
26471 "unused space after all resizing has happened.  Use this option to prevent "
26472 "the extra partition from being created.  If you do this then the extra space "
26473 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26474 "tool in the guest."
26475 msgstr ""
26476
26477 # type: textblock
26478 #: ../tools/virt-resize.pl:480
26479 msgid ""
26480 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26481 "will be created."
26482 msgstr ""
26483
26484 # type: =item
26485 #: ../tools/virt-resize.pl:487
26486 msgid "B<--no-expand-content>"
26487 msgstr ""
26488
26489 # type: textblock
26490 #: ../tools/virt-resize.pl:489
26491 msgid ""
26492 "By default, virt-resize will try to expand the direct contents of "
26493 "partitions, if it knows how (see C<--expand> option above)."
26494 msgstr ""
26495
26496 # type: textblock
26497 #: ../tools/virt-resize.pl:492
26498 msgid ""
26499 "If you give the C<--no-expand-content> option then virt-resize will not "
26500 "attempt this."
26501 msgstr ""
26502
26503 # type: =item
26504 #: ../tools/virt-resize.pl:499
26505 msgid "B<-d> | B<--debug>"
26506 msgstr ""
26507
26508 # type: =item
26509 #: ../tools/virt-resize.pl:507
26510 msgid "B<-n> | B<--dryrun>"
26511 msgstr ""
26512
26513 # type: textblock
26514 #: ../tools/virt-resize.pl:509
26515 msgid "Print a summary of what would be done, but don't do anything."
26516 msgstr ""
26517
26518 # type: =item
26519 #: ../tools/virt-resize.pl:515
26520 msgid "B<-q> | B<--quiet>"
26521 msgstr ""
26522
26523 # type: textblock
26524 #: ../tools/virt-resize.pl:517
26525 msgid "Don't print the summary."
26526 msgstr ""
26527
26528 # type: textblock
26529 #: ../tools/virt-resize.pl:525
26530 msgid ""
26531 "Specify the format of the input disk image.  If this flag is not given then "
26532 "it is auto-detected from the image itself."
26533 msgstr ""
26534
26535 # type: textblock
26536 #: ../tools/virt-resize.pl:531
26537 msgid ""
26538 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26539 "AND NON-SPARSE RAW FORMATS>."
26540 msgstr ""
26541
26542 # type: =item
26543 #: ../tools/virt-resize.pl:538
26544 msgid "B<--output-format> raw"
26545 msgstr ""
26546
26547 # type: textblock
26548 #: ../tools/virt-resize.pl:540
26549 msgid ""
26550 "Specify the format of the output disk image.  If this flag is not given then "
26551 "it is auto-detected from the image itself."
26552 msgstr ""
26553
26554 # type: textblock
26555 #: ../tools/virt-resize.pl:546
26556 msgid ""
26557 "Note that you still need to create the output disk with the right format.  "
26558 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
26559 msgstr ""
26560
26561 # type: =head2
26562 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
26563 msgid "NOTES"
26564 msgstr ""
26565
26566 # type: =head2
26567 #: ../tools/virt-resize.pl:1424
26568 msgid "\"Partition 1 does not end on cylinder boundary.\""
26569 msgstr ""
26570
26571 # type: textblock
26572 #: ../tools/virt-resize.pl:1426
26573 msgid ""
26574 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
26575 "means the partitions will not be aligned to the ancient CHS geometry.  "
26576 "However CHS geometry is meaningless for disks manufactured since the early "
26577 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
26578 "cylinders is not required by any modern operating system."
26579 msgstr ""
26580
26581 # type: =head2
26582 #: ../tools/virt-resize.pl:1433
26583 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26584 msgstr ""
26585
26586 # type: textblock
26587 #: ../tools/virt-resize.pl:1435
26588 msgid ""
26589 "In Windows Vista and later versions, Microsoft switched to using a separate "
26590 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26591 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26592 "the boot partition.  Doing so seems to break the guest completely.  However "
26593 "expanding the second partition (ie. C: drive) should work."
26594 msgstr ""
26595
26596 # type: textblock
26597 #: ../tools/virt-resize.pl:1442
26598 msgid ""
26599 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26600 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26601 "it find errors) is nothing to worry about."
26602 msgstr ""
26603
26604 # type: =head2
26605 #: ../tools/virt-resize.pl:1446
26606 msgid "GUEST BOOT STUCK AT \"GRUB\""
26607 msgstr ""
26608
26609 # type: textblock
26610 #: ../tools/virt-resize.pl:1448
26611 msgid ""
26612 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26613 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26614 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26615 "although we think is to do with partition alignment."
26616 msgstr ""
26617
26618 # type: verbatim
26619 #: ../tools/virt-resize.pl:1453
26620 #, no-wrap
26621 msgid ""
26622 " guestfish -i -a newdisk\n"
26623 " ><fs> cat /boot/grub/device.map\n"
26624 " # check the contents of this file are sensible or\n"
26625 " # edit the file if necessary\n"
26626 " ><fs> grub-install / /dev/vda\n"
26627 " ><fs> exit\n"
26628 "\n"
26629 msgstr ""
26630
26631 # type: textblock
26632 #: ../tools/virt-resize.pl:1460
26633 msgid ""
26634 "For more flexible guest reconfiguration, including if you need to specify "
26635 "other parameters to grub-install, use L<virt-rescue(1)>."
26636 msgstr ""
26637
26638 # type: =head1
26639 #: ../tools/virt-resize.pl:1463
26640 msgid "ALTERNATIVE TOOLS"
26641 msgstr ""
26642
26643 # type: textblock
26644 #: ../tools/virt-resize.pl:1465
26645 msgid ""
26646 "There are several proprietary tools for resizing partitions.  We won't "
26647 "mention any here."
26648 msgstr ""
26649
26650 # type: textblock
26651 #: ../tools/virt-resize.pl:1468
26652 msgid ""
26653 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26654 "operations on disk images.  They can resize and move partitions, but I don't "
26655 "think they can do anything with the contents, and they certainly don't "
26656 "understand LVM."
26657 msgstr ""
26658
26659 # type: textblock
26660 #: ../tools/virt-resize.pl:1473
26661 msgid ""
26662 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26663 "but at a much lower level.  You will probably end up hand-calculating sector "
26664 "offsets, which is something that virt-resize was designed to avoid.  If you "
26665 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26666 "C<--debug> flag."
26667 msgstr ""
26668
26669 # type: textblock
26670 #: ../tools/virt-resize.pl:1488
26671 msgid ""
26672 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
26673 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
26674 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
26675 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
26676 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
26677 msgstr ""
26678
26679 # type: textblock
26680 #: ../tools/virt-list-filesystems.pl:32
26681 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
26682 msgstr ""
26683
26684 # type: verbatim
26685 #: ../tools/virt-list-filesystems.pl:36
26686 #, no-wrap
26687 msgid ""
26688 " virt-list-filesystems [--options] domname\n"
26689 "\n"
26690 msgstr ""
26691
26692 # type: verbatim
26693 #: ../tools/virt-list-filesystems.pl:38
26694 #, no-wrap
26695 msgid ""
26696 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
26697 "\n"
26698 msgstr ""
26699
26700 # type: textblock
26701 #: ../tools/virt-list-filesystems.pl:42
26702 msgid ""
26703 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
26704 "are contained in a virtual machine or disk image."
26705 msgstr ""
26706
26707 # type: textblock
26708 #: ../tools/virt-list-filesystems.pl:46
26709 msgid ""
26710 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
26711 "functionality.  For more complex cases you should look at the "
26712 "L<guestfish(1)> tool."
26713 msgstr ""
26714
26715 # type: textblock
26716 #: ../tools/virt-list-filesystems.pl:105
26717 msgid ""
26718 "With this option, C<virt-list-filesystems> displays the type of each "
26719 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
26720 msgstr ""
26721
26722 # type: =item
26723 #: ../tools/virt-list-filesystems.pl:112
26724 msgid "B<-a> | B<--all>"
26725 msgstr ""
26726
26727 # type: textblock
26728 #: ../tools/virt-list-filesystems.pl:114
26729 msgid ""
26730 "Normally we only show mountable filesystems.  If this option is given then "
26731 "swap devices are shown too."
26732 msgstr ""
26733
26734 # type: textblock
26735 #: ../tools/virt-list-filesystems.pl:188
26736 msgid ""
26737 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26738 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
26739 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26740 msgstr ""
26741
26742 # type: textblock
26743 #: ../tools/virt-cat.pl:33
26744 msgid "virt-cat - Display a file in a virtual machine"
26745 msgstr ""
26746
26747 # type: verbatim
26748 #: ../tools/virt-cat.pl:37
26749 #, no-wrap
26750 msgid ""
26751 " virt-cat [--options] domname file\n"
26752 "\n"
26753 msgstr ""
26754
26755 # type: verbatim
26756 #: ../tools/virt-cat.pl:39
26757 #, no-wrap
26758 msgid ""
26759 " virt-cat [--options] disk.img [disk.img ...] file\n"
26760 "\n"
26761 msgstr ""
26762
26763 # type: textblock
26764 #: ../tools/virt-cat.pl:43
26765 msgid ""
26766 "C<virt-cat> is a command line tool to display the contents of C<file> where "
26767 "C<file> exists in the named virtual machine (or disk image)."
26768 msgstr ""
26769
26770 # type: textblock
26771 #: ../tools/virt-cat.pl:46
26772 msgid ""
26773 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
26774 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
26775 "tool."
26776 msgstr ""
26777
26778 # type: textblock
26779 #: ../tools/virt-cat.pl:52
26780 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
26781 msgstr ""
26782
26783 # type: verbatim
26784 #: ../tools/virt-cat.pl:55
26785 #, no-wrap
26786 msgid ""
26787 " virt-cat mydomain /etc/fstab\n"
26788 "\n"
26789 msgstr ""
26790
26791 # type: textblock
26792 #: ../tools/virt-cat.pl:57
26793 msgid "List syslog messages from a VM:"
26794 msgstr ""
26795
26796 # type: verbatim
26797 #: ../tools/virt-cat.pl:59
26798 #, no-wrap
26799 msgid ""
26800 " virt-cat mydomain /var/log/messages | tail\n"
26801 "\n"
26802 msgstr ""
26803
26804 # type: textblock
26805 #: ../tools/virt-cat.pl:61
26806 msgid "Find out what DHCP IP address a VM acquired:"
26807 msgstr ""
26808
26809 # type: verbatim
26810 #: ../tools/virt-cat.pl:63
26811 #, no-wrap
26812 msgid ""
26813 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
26814 "\n"
26815 msgstr ""
26816
26817 # type: textblock
26818 #: ../tools/virt-cat.pl:65
26819 msgid "Find out what packages were recently installed:"
26820 msgstr ""
26821
26822 # type: verbatim
26823 #: ../tools/virt-cat.pl:67
26824 #, no-wrap
26825 msgid ""
26826 " virt-cat mydomain /var/log/yum.log | tail\n"
26827 "\n"
26828 msgstr ""
26829
26830 # type: textblock
26831 #: ../tools/virt-cat.pl:69
26832 msgid "Find out who is logged on inside a virtual machine:"
26833 msgstr ""
26834
26835 # type: verbatim
26836 #: ../tools/virt-cat.pl:71
26837 #, no-wrap
26838 msgid ""
26839 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
26840 " who /tmp/utmp\n"
26841 "\n"
26842 msgstr ""
26843
26844 # type: textblock
26845 #: ../tools/virt-cat.pl:74
26846 msgid "or who was logged on:"
26847 msgstr ""
26848
26849 # type: verbatim
26850 #: ../tools/virt-cat.pl:76
26851 #, no-wrap
26852 msgid ""
26853 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
26854 " last -f /tmp/wtmp\n"
26855 "\n"
26856 msgstr ""
26857
26858 # type: textblock
26859 #: ../tools/virt-cat.pl:187
26860 msgid ""
26861 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
26862 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26863 msgstr ""
26864
26865 # type: textblock
26866 #: ../tools/virt-tar.pl:33
26867 msgid "virt-tar - Extract or upload files to a virtual machine"
26868 msgstr ""
26869
26870 # type: verbatim
26871 #: ../tools/virt-tar.pl:37
26872 #, no-wrap
26873 msgid ""
26874 " virt-tar [--options] -x domname directory tarball\n"
26875 "\n"
26876 msgstr ""
26877
26878 # type: verbatim
26879 #: ../tools/virt-tar.pl:39
26880 #, no-wrap
26881 msgid ""
26882 " virt-tar [--options] -u domname tarball directory\n"
26883 "\n"
26884 msgstr ""
26885
26886 # type: verbatim
26887 #: ../tools/virt-tar.pl:41
26888 #, no-wrap
26889 msgid ""
26890 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
26891 "\n"
26892 msgstr ""
26893
26894 # type: verbatim
26895 #: ../tools/virt-tar.pl:43
26896 #, no-wrap
26897 msgid ""
26898 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
26899 "\n"
26900 msgstr ""
26901
26902 # type: textblock
26903 #: ../tools/virt-tar.pl:47
26904 msgid "Download C</home> from the VM into a local tarball:"
26905 msgstr ""
26906
26907 # type: verbatim
26908 #: ../tools/virt-tar.pl:49
26909 #, no-wrap
26910 msgid ""
26911 " virt-tar -x domname /home home.tar\n"
26912 "\n"
26913 msgstr ""
26914
26915 # type: verbatim
26916 #: ../tools/virt-tar.pl:51
26917 #, no-wrap
26918 msgid ""
26919 " virt-tar -zx domname /home home.tar.gz\n"
26920 "\n"
26921 msgstr ""
26922
26923 # type: textblock
26924 #: ../tools/virt-tar.pl:53
26925 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
26926 msgstr ""
26927
26928 # type: verbatim
26929 #: ../tools/virt-tar.pl:55
26930 #, no-wrap
26931 msgid ""
26932 " virt-tar -u domname uploadstuff.tar /tmp\n"
26933 "\n"
26934 msgstr ""
26935
26936 # type: verbatim
26937 #: ../tools/virt-tar.pl:57
26938 #, no-wrap
26939 msgid ""
26940 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
26941 "\n"
26942 msgstr ""
26943
26944 # type: textblock
26945 #: ../tools/virt-tar.pl:61
26946 msgid ""
26947 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
26948 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
26949 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
26950 msgstr ""
26951
26952 # type: textblock
26953 #: ../tools/virt-tar.pl:66
26954 msgid ""
26955 "You can use C<-x> (extract) on live virtual machines, but you might get "
26956 "inconsistent results or errors if there is filesystem activity inside the "
26957 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
26958 "work, but the only way to guarantee consistent results is if the virtual "
26959 "machine is shut down."
26960 msgstr ""
26961
26962 # type: textblock
26963 #: ../tools/virt-tar.pl:74
26964 msgid ""
26965 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
26966 "parts of a guest filesystem.  There are many possibilities: making backups, "
26967 "uploading data files, snooping on guest activity, fixing or customizing "
26968 "guests, etc."
26969 msgstr ""
26970
26971 # type: textblock
26972 #: ../tools/virt-tar.pl:79
26973 msgid ""
26974 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
26975 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
26976 "should look at the L<guestfish(1)> tool."
26977 msgstr ""
26978
26979 # type: textblock
26980 #: ../tools/virt-tar.pl:83
26981 msgid ""
26982 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
26983 "its contents (recursively) from the virtual machine into a local tarball.  "
26984 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
26985 "virtual machine.  You cannot use these two options together."
26986 msgstr ""
26987
26988 # type: textblock
26989 #: ../tools/virt-tar.pl:89
26990 msgid ""
26991 "In addition, you may need to use the C<-z> (gZip) option to enable "
26992 "compression.  When uploading, you have to specify C<-z> if the upload file "
26993 "is compressed because virt-tar won't detect this on its own."
26994 msgstr ""
26995
26996 # type: textblock
26997 #: ../tools/virt-tar.pl:93
26998 msgid ""
26999 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27000 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27001 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27002 "the L<libguestfs(3)> API)."
27003 msgstr ""
27004
27005 # type: =item
27006 #: ../tools/virt-tar.pl:151
27007 msgid "B<-x> | B<--extract> | B<--download>"
27008 msgstr ""
27009
27010 # type: =item
27011 #: ../tools/virt-tar.pl:153
27012 msgid "B<-u> | B<--upload>"
27013 msgstr ""
27014
27015 # type: textblock
27016 #: ../tools/virt-tar.pl:155
27017 msgid ""
27018 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27019 "local tarball."
27020 msgstr ""
27021
27022 # type: textblock
27023 #: ../tools/virt-tar.pl:158
27024 msgid ""
27025 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27026 "Please read the L</WARNING> section above before using this option."
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-tar.pl:162
27031 msgid "You must specify exactly one of these options."
27032 msgstr ""
27033
27034 # type: =item
27035 #: ../tools/virt-tar.pl:168
27036 msgid "B<-z> | B<--gzip>"
27037 msgstr ""
27038
27039 # type: textblock
27040 #: ../tools/virt-tar.pl:170
27041 msgid "Specify that the input or output tarball is gzip-compressed."
27042 msgstr ""
27043
27044 # type: textblock
27045 #: ../tools/virt-tar.pl:283
27046 msgid ""
27047 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27048 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27049 "L<http://libguestfs.org/>."
27050 msgstr ""
27051
27052 # type: textblock
27053 #: ../tools/virt-rescue.pl:33
27054 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27055 msgstr ""
27056
27057 # type: verbatim
27058 #: ../tools/virt-rescue.pl:37
27059 #, no-wrap
27060 msgid ""
27061 " virt-rescue [--options] domname\n"
27062 "\n"
27063 msgstr ""
27064
27065 # type: verbatim
27066 #: ../tools/virt-rescue.pl:39
27067 #, no-wrap
27068 msgid ""
27069 " virt-rescue [--options] disk.img [disk.img ...]\n"
27070 "\n"
27071 msgstr ""
27072
27073 # type: textblock
27074 #: ../tools/virt-rescue.pl:43
27075 msgid ""
27076 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27077 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27078 "you from doing this, but doesn't catch all cases."
27079 msgstr ""
27080
27081 # type: textblock
27082 #: ../tools/virt-rescue.pl:47
27083 msgid ""
27084 "However if you use the I<--ro> (read only) option, then you can attach a "
27085 "shell to a live virtual machine.  The results might be strange or "
27086 "inconsistent at times but you won't get disk corruption."
27087 msgstr ""
27088
27089 # type: textblock
27090 #: ../tools/virt-rescue.pl:53
27091 msgid ""
27092 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27093 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27094 "recovery tools which you can use to examine or rescue a virtual machine or "
27095 "disk image."
27096 msgstr ""
27097
27098 # type: textblock
27099 #: ../tools/virt-rescue.pl:58
27100 msgid ""
27101 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27102 "on disk image(s):"
27103 msgstr ""
27104
27105 # type: verbatim
27106 #: ../tools/virt-rescue.pl:61
27107 #, no-wrap
27108 msgid ""
27109 " virt-rescue GuestName\n"
27110 "\n"
27111 msgstr ""
27112
27113 # type: verbatim
27114 #: ../tools/virt-rescue.pl:63
27115 #, no-wrap
27116 msgid ""
27117 " virt-rescue --ro /path/to/disk.img\n"
27118 "\n"
27119 msgstr ""
27120
27121 # type: verbatim
27122 #: ../tools/virt-rescue.pl:65
27123 #, no-wrap
27124 msgid ""
27125 " virt-rescue /dev/sdc\n"
27126 "\n"
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-rescue.pl:67
27131 msgid "For live VMs you I<must> use the --ro option."
27132 msgstr ""
27133
27134 # type: textblock
27135 #: ../tools/virt-rescue.pl:69
27136 msgid ""
27137 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27138 "in an interactive bash shell where you can use many ordinary Linux "
27139 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27140 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27141 "is an empty directory called C</sysroot> where you can mount filesystems."
27142 msgstr ""
27143
27144 # type: textblock
27145 #: ../tools/virt-rescue.pl:76
27146 msgid ""
27147 "In the example below, we list logical volumes, then choose one to mount "
27148 "under C</sysroot>:"
27149 msgstr ""
27150
27151 # type: verbatim
27152 #: ../tools/virt-rescue.pl:79
27153 #, no-wrap
27154 msgid ""
27155 " ><rescue> lvs\n"
27156 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27157 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27158 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27159 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27160 " ><rescue> ls /sysroot\n"
27161 "\n"
27162 msgstr ""
27163
27164 # type: textblock
27165 #: ../tools/virt-rescue.pl:86
27166 msgid ""
27167 "If you don't know what filesystems are available on the virtual machine then "
27168 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27169 msgstr ""
27170
27171 # type: textblock
27172 #: ../tools/virt-rescue.pl:92
27173 msgid ""
27174 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27175 "virtual machine.  For example you can use it on a blank file if you want to "
27176 "partition that file (although we would recommend using L<guestfish(1)> "
27177 "instead as it is more suitable for this purpose).  You can even use "
27178 "virt-rescue on things like SD cards."
27179 msgstr ""
27180
27181 # type: textblock
27182 #: ../tools/virt-rescue.pl:98
27183 msgid ""
27184 "This tool is just designed for quick interactive hacking on a virtual "
27185 "machine.  For more structured access to a virtual machine disk image, you "
27186 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27187 "make scripted changes to guests, use L<guestfish(1)>."
27188 msgstr ""
27189
27190 # type: =item
27191 #: ../tools/virt-rescue.pl:127
27192 msgid "B<--append kernelopts>"
27193 msgstr ""
27194
27195 # type: textblock
27196 #: ../tools/virt-rescue.pl:129
27197 msgid "Pass additional options to the rescue kernel."
27198 msgstr ""
27199
27200 # type: =item
27201 #: ../tools/virt-rescue.pl:164
27202 msgid "B<--memsize MB> | B<-m MB>"
27203 msgstr ""
27204
27205 # type: textblock
27206 #: ../tools/virt-rescue.pl:166
27207 msgid ""
27208 "Change the amount of memory allocated to the rescue system.  The default is "
27209 "set by libguestfs and is small but adequate for running system tools.  The "
27210 "occasional program might need more memory.  The parameter is specified in "
27211 "megabytes."
27212 msgstr ""
27213
27214 # type: =item
27215 #: ../tools/virt-rescue.pl:175
27216 msgid "B<--network MB>"
27217 msgstr ""
27218
27219 # type: textblock
27220 #: ../tools/virt-rescue.pl:177
27221 msgid "Enable QEMU user networking in the guest."
27222 msgstr ""
27223
27224 # type: =item
27225 #: ../tools/virt-rescue.pl:183
27226 msgid "B<--ro> | B<-r>"
27227 msgstr ""
27228
27229 # type: textblock
27230 #: ../tools/virt-rescue.pl:185
27231 msgid "Open the image read-only."
27232 msgstr ""
27233
27234 # type: textblock
27235 #: ../tools/virt-rescue.pl:197
27236 msgid ""
27237 "Enable SELinux in the rescue appliance.  You should read "
27238 "L<guestfs(3)/SELINUX> before using this option."
27239 msgstr ""
27240
27241 # type: textblock
27242 #: ../tools/virt-rescue.pl:257
27243 msgid ""
27244 "Several environment variables affect virt-rescue.  See "
27245 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
27246 msgstr ""
27247
27248 # type: textblock
27249 #: ../tools/virt-rescue.pl:269
27250 msgid ""
27251 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
27252 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27253 msgstr ""
27254
27255 # type: textblock
27256 #: ../tools/virt-make-fs.pl:37
27257 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27258 msgstr ""
27259
27260 # type: verbatim
27261 #: ../tools/virt-make-fs.pl:41
27262 #, no-wrap
27263 msgid ""
27264 " virt-make-fs [--options] input.tar output.img\n"
27265 "\n"
27266 msgstr ""
27267
27268 # type: verbatim
27269 #: ../tools/virt-make-fs.pl:43
27270 #, no-wrap
27271 msgid ""
27272 " virt-make-fs [--options] input.tar.gz output.img\n"
27273 "\n"
27274 msgstr ""
27275
27276 # type: verbatim
27277 #: ../tools/virt-make-fs.pl:45
27278 #, no-wrap
27279 msgid ""
27280 " virt-make-fs [--options] directory output.img\n"
27281 "\n"
27282 msgstr ""
27283
27284 # type: textblock
27285 #: ../tools/virt-make-fs.pl:49
27286 msgid ""
27287 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27288 "archive or some files in a directory.  It is similar to tools like "
27289 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
27290 "it can create common filesystem types like ext2/3 or NTFS, which can be "
27291 "useful if you want to attach these filesystems to existing virtual machines "
27292 "(eg. to import large amounts of read-only data to a VM)."
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-make-fs.pl:57
27297 msgid "Basic usage is:"
27298 msgstr ""
27299
27300 # type: verbatim
27301 #: ../tools/virt-make-fs.pl:59
27302 #, no-wrap
27303 msgid ""
27304 " virt-make-fs input output\n"
27305 "\n"
27306 msgstr ""
27307
27308 # type: textblock
27309 #: ../tools/virt-make-fs.pl:61
27310 msgid ""
27311 "where C<input> is either a directory containing files that you want to add, "
27312 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27313 "C<output> is a disk image.  The input type is detected automatically.  The "
27314 "output disk image defaults to a raw ext2 image unless you specify extra "
27315 "flags (see L</OPTIONS> below)."
27316 msgstr ""
27317
27318 # type: =head2
27319 #: ../tools/virt-make-fs.pl:67
27320 msgid "EXTRA SPACE"
27321 msgstr ""
27322
27323 # type: textblock
27324 #: ../tools/virt-make-fs.pl:69
27325 msgid ""
27326 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27327 "the files that it contains, but might have extra space.  Depending on how "
27328 "you are going to use the output, you might think this extra space is wasted "
27329 "and want to minimize it, or you might want to leave space so that more files "
27330 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27331 "but you can use the C<--size> flag to leave space in the filesystem if you "
27332 "want it."
27333 msgstr ""
27334
27335 # type: textblock
27336 #: ../tools/virt-make-fs.pl:77
27337 msgid ""
27338 "An alternative way to leave extra space but not make the output image any "
27339 "bigger is to use an alternative disk image format (instead of the default "
27340 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27341 "image format (check your hypervisor supports this before using it).  This "
27342 "allows you to choose a large C<--size> but the extra space won't actually be "
27343 "allocated in the image until you try to store something in it."
27344 msgstr ""
27345
27346 # type: textblock
27347 #: ../tools/virt-make-fs.pl:85
27348 msgid ""
27349 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27350 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
27351 "virt-make-resize to build another image from scratch."
27352 msgstr ""
27353
27354 # type: =head3
27355 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
27356 msgid "EXAMPLE"
27357 msgstr ""
27358
27359 # type: verbatim
27360 #: ../tools/virt-make-fs.pl:91
27361 #, no-wrap
27362 msgid ""
27363 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27364 "\n"
27365 msgstr ""
27366
27367 # type: =head2
27368 #: ../tools/virt-make-fs.pl:93
27369 msgid "FILESYSTEM TYPE"
27370 msgstr ""
27371
27372 # type: textblock
27373 #: ../tools/virt-make-fs.pl:95
27374 msgid ""
27375 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27376 "libguestfs supports can be used (but I<not> read-only formats like "
27377 "ISO9660).  Here are some of the more common choices:"
27378 msgstr ""
27379
27380 # type: =item
27381 #: ../tools/virt-make-fs.pl:101
27382 msgid "I<ext3>"
27383 msgstr ""
27384
27385 # type: textblock
27386 #: ../tools/virt-make-fs.pl:103
27387 msgid ""
27388 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27389 "you are not going to use the filesystem in a way that requires the journal, "
27390 "then this is just wasted overhead."
27391 msgstr ""
27392
27393 # type: =item
27394 #: ../tools/virt-make-fs.pl:107
27395 msgid "I<ntfs> or I<vfat>"
27396 msgstr ""
27397
27398 # type: textblock
27399 #: ../tools/virt-make-fs.pl:109
27400 msgid "Useful if exporting data to a Windows guest."
27401 msgstr ""
27402
27403 # type: textblock
27404 #: ../tools/virt-make-fs.pl:111
27405 msgid ""
27406 "I<Note for vfat>: The tar archive or local directory must only contain files "
27407 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27408 "program running within libguestfs is unable to change the ownership of "
27409 "non-root files, since vfat itself does not support this."
27410 msgstr ""
27411
27412 # type: =item
27413 #: ../tools/virt-make-fs.pl:116
27414 msgid "I<minix>"
27415 msgstr ""
27416
27417 # type: textblock
27418 #: ../tools/virt-make-fs.pl:118
27419 msgid ""
27420 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27421 "total filesystem size."
27422 msgstr ""
27423
27424 # type: verbatim
27425 #: ../tools/virt-make-fs.pl:125
27426 #, no-wrap
27427 msgid ""
27428 " virt-make-fs --type=minix input minixfs.img\n"
27429 "\n"
27430 msgstr ""
27431
27432 # type: =head2
27433 #: ../tools/virt-make-fs.pl:127
27434 msgid "TO PARTITION OR NOT TO PARTITION"
27435 msgstr ""
27436
27437 # type: textblock
27438 #: ../tools/virt-make-fs.pl:129
27439 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27440 msgstr ""
27441
27442 # type: textblock
27443 #: ../tools/virt-make-fs.pl:131
27444 msgid ""
27445 "Adding a partition can make the disk image more compatible with certain "
27446 "virtualized operating systems which don't expect to see a filesystem "
27447 "directly located on a block device (Linux doesn't care and will happily "
27448 "handle both types)."
27449 msgstr ""
27450
27451 # type: textblock
27452 #: ../tools/virt-make-fs.pl:136
27453 msgid ""
27454 "On the other hand, if you have a partition table then the output image is no "
27455 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27456 "directly on a partitioned disk image.  (However libguestfs tools such as "
27457 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27458 msgstr ""
27459
27460 # type: textblock
27461 #: ../tools/virt-make-fs.pl:144
27462 msgid "Add an MBR partition:"
27463 msgstr ""
27464
27465 # type: verbatim
27466 #: ../tools/virt-make-fs.pl:146
27467 #, no-wrap
27468 msgid ""
27469 " virt-make-fs --partition -- input disk.img\n"
27470 "\n"
27471 msgstr ""
27472
27473 # type: textblock
27474 #: ../tools/virt-make-fs.pl:148
27475 msgid ""
27476 "If the output disk image could be terabyte-sized or larger, it's better to "
27477 "use an EFI/GPT-compatible partition table:"
27478 msgstr ""
27479
27480 # type: verbatim
27481 #: ../tools/virt-make-fs.pl:151
27482 #, no-wrap
27483 msgid ""
27484 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27485 "\n"
27486 msgstr ""
27487
27488 # type: textblock
27489 #: ../tools/virt-make-fs.pl:179
27490 msgid "Enable debugging information."
27491 msgstr ""
27492
27493 # type: =item
27494 #: ../tools/virt-make-fs.pl:185
27495 msgid "B<--size=E<lt>NE<gt>>"
27496 msgstr ""
27497
27498 # type: =item
27499 #: ../tools/virt-make-fs.pl:187
27500 msgid "B<--size=+E<lt>NE<gt>>"
27501 msgstr ""
27502
27503 # type: =item
27504 #: ../tools/virt-make-fs.pl:189
27505 msgid "B<-s E<lt>NE<gt>>"
27506 msgstr ""
27507
27508 # type: =item
27509 #: ../tools/virt-make-fs.pl:191
27510 msgid "B<-s +E<lt>NE<gt>>"
27511 msgstr ""
27512
27513 # type: textblock
27514 #: ../tools/virt-make-fs.pl:193
27515 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27516 msgstr ""
27517
27518 # type: textblock
27519 #: ../tools/virt-make-fs.pl:196
27520 msgid ""
27521 "If this option is I<not> given, then the output image will be just large "
27522 "enough to contain all the files, with not much wasted space."
27523 msgstr ""
27524
27525 # type: textblock
27526 #: ../tools/virt-make-fs.pl:199
27527 msgid ""
27528 "To choose a fixed size output disk, specify an absolute number followed by "
27529 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27530 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27531 "files, else you will get an error."
27532 msgstr ""
27533
27534 # type: textblock
27535 #: ../tools/virt-make-fs.pl:204
27536 msgid ""
27537 "To leave extra space, specify C<+> (plus sign) and a number followed by "
27538 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27539 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27540 "the input files, and (approximately) an extra 200 MB free space."
27541 msgstr ""
27542
27543 # type: textblock
27544 #: ../tools/virt-make-fs.pl:210
27545 msgid ""
27546 "Note that virt-make-fs estimates free space, and therefore will not produce "
27547 "filesystems containing precisely the free space requested.  (It is much more "
27548 "expensive and time-consuming to produce a filesystem which has precisely the "
27549 "desired free space)."
27550 msgstr ""
27551
27552 # type: =item
27553 #: ../tools/virt-make-fs.pl:219
27554 msgid "B<--format=E<lt>fmtE<gt>>"
27555 msgstr ""
27556
27557 # type: =item
27558 #: ../tools/virt-make-fs.pl:221
27559 msgid "B<-F E<lt>fmtE<gt>>"
27560 msgstr ""
27561
27562 # type: textblock
27563 #: ../tools/virt-make-fs.pl:223
27564 msgid "Choose the output disk image format."
27565 msgstr ""
27566
27567 # type: textblock
27568 #: ../tools/virt-make-fs.pl:225
27569 msgid "The default is C<raw> (raw disk image)."
27570 msgstr ""
27571
27572 # type: textblock
27573 #: ../tools/virt-make-fs.pl:227
27574 msgid ""
27575 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27576 "that would really make sense here is C<qcow2>."
27577 msgstr ""
27578
27579 # type: =item
27580 #: ../tools/virt-make-fs.pl:234
27581 msgid "B<--type=E<lt>fsE<gt>>"
27582 msgstr ""
27583
27584 # type: =item
27585 #: ../tools/virt-make-fs.pl:236
27586 msgid "B<-t E<lt>fsE<gt>>"
27587 msgstr ""
27588
27589 # type: textblock
27590 #: ../tools/virt-make-fs.pl:238
27591 msgid "Choose the output filesystem type."
27592 msgstr ""
27593
27594 # type: textblock
27595 #: ../tools/virt-make-fs.pl:240
27596 msgid "The default is C<ext2>."
27597 msgstr ""
27598
27599 # type: textblock
27600 #: ../tools/virt-make-fs.pl:242
27601 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
27602 msgstr ""
27603
27604 # type: =item
27605 #: ../tools/virt-make-fs.pl:249
27606 msgid "B<--partition>"
27607 msgstr ""
27608
27609 # type: =item
27610 #: ../tools/virt-make-fs.pl:251
27611 msgid "B<--partition=E<lt>parttypeE<gt>>"
27612 msgstr ""
27613
27614 # type: textblock
27615 #: ../tools/virt-make-fs.pl:253
27616 msgid ""
27617 "If specified, this flag adds an MBR partition table to the output disk "
27618 "image."
27619 msgstr ""
27620
27621 # type: textblock
27622 #: ../tools/virt-make-fs.pl:256
27623 msgid ""
27624 "You can change the partition table type, eg. C<--partition=gpt> for large "
27625 "disks."
27626 msgstr ""
27627
27628 # type: textblock
27629 #: ../tools/virt-make-fs.pl:259
27630 msgid ""
27631 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27632 "might consider the next parameter to be the partition type.  For example:"
27633 msgstr ""
27634
27635 # type: verbatim
27636 #: ../tools/virt-make-fs.pl:263
27637 #, no-wrap
27638 msgid ""
27639 " virt-make-fs --partition input.tar ...\n"
27640 "\n"
27641 msgstr ""
27642
27643 # type: textblock
27644 #: ../tools/virt-make-fs.pl:265
27645 msgid ""
27646 "would cause virt-make-fs to think you wanted to use a partition type of "
27647 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27648 "dash) between options and the input file argument:"
27649 msgstr ""
27650
27651 # type: verbatim
27652 #: ../tools/virt-make-fs.pl:269
27653 #, no-wrap
27654 msgid ""
27655 " virt-make-fs --partition -- input.tar ...\n"
27656 "\n"
27657 msgstr ""
27658
27659 # type: textblock
27660 #: ../tools/virt-make-fs.pl:536
27661 msgid ""
27662 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27663 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
27664 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27665 msgstr ""
27666
27667 # type: verbatim
27668 #: ../tools/virt-make-fs.pl:553
27669 #, no-wrap
27670 msgid ""
27671 " export LIBGUESTFS_DEBUG=1\n"
27672 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
27673 "\n"
27674 msgstr ""
27675
27676 # type: textblock
27677 #: ../tools/virt-make-fs.pl:556
27678 msgid ""
27679 "Attach /tmp/virt-make-fs.log to a new bug report at "
27680 "L<https://bugzilla.redhat.com/>"
27681 msgstr ""
27682
27683 # type: textblock
27684 #: ../tools/virt-list-partitions.pl:32
27685 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
27686 msgstr ""
27687
27688 # type: verbatim
27689 #: ../tools/virt-list-partitions.pl:36
27690 #, no-wrap
27691 msgid ""
27692 " virt-list-partitions [--options] domname\n"
27693 "\n"
27694 msgstr ""
27695
27696 # type: verbatim
27697 #: ../tools/virt-list-partitions.pl:38
27698 #, no-wrap
27699 msgid ""
27700 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
27701 "\n"
27702 msgstr ""
27703
27704 # type: textblock
27705 #: ../tools/virt-list-partitions.pl:42
27706 msgid ""
27707 "C<virt-list-partitions> is a command line tool to list the partitions that "
27708 "are contained in a virtual machine or disk image.  It is mainly useful as a "
27709 "first step to using L<virt-resize(1)>."
27710 msgstr ""
27711
27712 # type: textblock
27713 #: ../tools/virt-list-partitions.pl:47
27714 msgid ""
27715 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
27716 "functionality.  For more complex cases you should look at the "
27717 "L<guestfish(1)> tool."
27718 msgstr ""
27719
27720 # type: =item
27721 #: ../tools/virt-list-partitions.pl:104
27722 msgid "B<-h> | B<--human-readable>"
27723 msgstr ""
27724
27725 # type: textblock
27726 #: ../tools/virt-list-partitions.pl:106
27727 msgid "Show sizes in human-readable form (eg. \"1G\")."
27728 msgstr ""
27729
27730 # type: textblock
27731 #: ../tools/virt-list-partitions.pl:114
27732 msgid ""
27733 "With this option, C<virt-list-partitions> displays the type and size of each "
27734 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
27735 msgstr ""
27736
27737 # type: =item
27738 #: ../tools/virt-list-partitions.pl:121
27739 msgid "B<-t> | B<--total>"
27740 msgstr ""
27741
27742 # type: textblock
27743 #: ../tools/virt-list-partitions.pl:123
27744 msgid "Display the total size of each block device (as a separate row or rows)."
27745 msgstr ""
27746
27747 # type: textblock
27748 #: ../tools/virt-list-partitions.pl:256
27749 msgid ""
27750 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
27751 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27752 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27753 msgstr ""