build: Don't try to rebuild po-docs/<lang> if no po4a.
[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.2\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-05 12:18+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: ENCODING"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../inspector/virt-inspector.pl:31 ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-df.pl:32 ../tools/virt-ls.pl:30 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-cat.pl:29 ../tools/virt-tar.pl:29 ../tools/virt-rescue.pl:29 ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
21 msgid "utf8"
22 msgstr ""
23
24 # type: =head1
25 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pl:33 ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-df.pl:34 ../tools/virt-ls.pl:32 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-cat.pl:31 ../tools/virt-tar.pl:31 ../tools/virt-rescue.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr ""
28
29 # type: textblock
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
32 msgstr ""
33
34 # type: =head1
35 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pl:37 ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-df.pl:38 ../tools/virt-ls.pl:36 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-cat.pl:35 ../tools/virt-tar.pl:35 ../tools/virt-rescue.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
36 msgid "SYNOPSIS"
37 msgstr ""
38
39 # type: verbatim
40 #: ../src/guestfs.pod:9
41 #, no-wrap
42 msgid ""
43 " #include <guestfs.h>\n"
44 " \n"
45 msgstr ""
46
47 # type: verbatim
48 #: ../src/guestfs.pod:11
49 #, no-wrap
50 msgid ""
51 " guestfs_h *g = guestfs_create ();\n"
52 " guestfs_add_drive (g, \"guest.img\");\n"
53 " guestfs_launch (g);\n"
54 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
55 " guestfs_touch (g, \"/hello\");\n"
56 " guestfs_umount (g, \"/\");\n"
57 " guestfs_sync (g);\n"
58 " guestfs_close (g);\n"
59 "\n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:20
64 #, no-wrap
65 msgid ""
66 " cc prog.c -o prog -lguestfs\n"
67 "or:\n"
68 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
69 "\n"
70 msgstr ""
71
72 # type: =head1
73 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pl:43 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-df.pl:46 ../tools/virt-ls.pl:42 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-cat.pl:41 ../tools/virt-tar.pl:72 ../tools/virt-rescue.pl:51 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 # type: textblock
78 #: ../src/guestfs.pod:26
79 msgid ""
80 "Libguestfs is a library for accessing and modifying guest disk images.  "
81 "Amongst the things this is good for: making batch configuration changes to "
82 "guests, getting disk used/free statistics (see also: virt-df), migrating "
83 "between virtualization systems (see also: virt-p2v), performing partial "
84 "backups, performing partial guest clones, cloning guests and changing "
85 "registry/UUID/hostname info, and much else besides."
86 msgstr ""
87
88 # type: textblock
89 #: ../src/guestfs.pod:34
90 msgid ""
91 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
92 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
93 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
94 "qcow2, vmdk."
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:39
99 msgid ""
100 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
101 "what filesystem is in each LV, etc.).  It can also run commands in the "
102 "context of the guest.  Also you can access filesystems over FUSE."
103 msgstr ""
104
105 # type: textblock
106 #: ../src/guestfs.pod:44
107 msgid ""
108 "Libguestfs is a library that can be linked with C and C++ management "
109 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
110 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
111 "line."
112 msgstr ""
113
114 # type: textblock
115 #: ../src/guestfs.pod:49
116 msgid ""
117 "You don't need to be root to use libguestfs, although obviously you do need "
118 "enough permissions to access the disk images."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:52
123 msgid ""
124 "Libguestfs is a large API because it can do many things.  For a gentle "
125 "introduction, please read the L</API OVERVIEW> section next."
126 msgstr ""
127
128 # type: =head1
129 #: ../src/guestfs.pod:55
130 msgid "API OVERVIEW"
131 msgstr ""
132
133 # type: textblock
134 #: ../src/guestfs.pod:57
135 msgid ""
136 "This section provides a gentler overview of the libguestfs API.  We also try "
137 "to group API calls together, where that may not be obvious from reading "
138 "about the individual calls in the main section of this manual."
139 msgstr ""
140
141 # type: =head2
142 #: ../src/guestfs.pod:62
143 msgid "HANDLES"
144 msgstr ""
145
146 # type: textblock
147 #: ../src/guestfs.pod:64
148 msgid ""
149 "Before you can use libguestfs calls, you have to create a handle.  Then you "
150 "must add at least one disk image to the handle, followed by launching the "
151 "handle, then performing whatever operations you want, and finally closing "
152 "the handle.  By convention we use the single letter C<g> for the name of the "
153 "handle variable, although of course you can use any name you want."
154 msgstr ""
155
156 # type: textblock
157 #: ../src/guestfs.pod:71
158 msgid "The general structure of all libguestfs-using programs looks like this:"
159 msgstr ""
160
161 # type: verbatim
162 #: ../src/guestfs.pod:74
163 #, no-wrap
164 msgid ""
165 " guestfs_h *g = guestfs_create ();\n"
166 " \n"
167 msgstr ""
168
169 # type: verbatim
170 #: ../src/guestfs.pod:76
171 #, no-wrap
172 msgid ""
173 " /* Call guestfs_add_drive additional times if there are\n"
174 "  * multiple disk images.\n"
175 "  */\n"
176 " guestfs_add_drive (g, \"guest.img\");\n"
177 " \n"
178 msgstr ""
179
180 # type: verbatim
181 #: ../src/guestfs.pod:81
182 #, no-wrap
183 msgid ""
184 " /* Most manipulation calls won't work until you've launched\n"
185 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
186 "  * and _before_ other commands.\n"
187 "  */\n"
188 " guestfs_launch (g);\n"
189 " \n"
190 msgstr ""
191
192 # type: verbatim
193 #: ../src/guestfs.pod:87
194 #, no-wrap
195 msgid ""
196 " /* Now you can examine what partitions, LVs etc are available.\n"
197 "  */\n"
198 " char **partitions = guestfs_list_partitions (g);\n"
199 " char **logvols = guestfs_lvs (g);\n"
200 " \n"
201 msgstr ""
202
203 # type: verbatim
204 #: ../src/guestfs.pod:92
205 #, no-wrap
206 msgid ""
207 " /* To access a filesystem in the image, you must mount it.\n"
208 "  */\n"
209 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
210 " \n"
211 msgstr ""
212
213 # type: verbatim
214 #: ../src/guestfs.pod:96
215 #, no-wrap
216 msgid ""
217 " /* Now you can perform filesystem actions on the guest\n"
218 "  * disk image.\n"
219 "  */\n"
220 " guestfs_touch (g, \"/hello\");\n"
221 " \n"
222 msgstr ""
223
224 # type: verbatim
225 #: ../src/guestfs.pod:101
226 #, no-wrap
227 msgid ""
228 " /* You only need to call guestfs_sync if you have made\n"
229 "  * changes to the guest image.  (But if you've made changes\n"
230 "  * then you *must* sync).  See also: guestfs_umount and\n"
231 "  * guestfs_umount_all calls.\n"
232 "  */\n"
233 " guestfs_sync (g);\n"
234 " \n"
235 msgstr ""
236
237 # type: verbatim
238 #: ../src/guestfs.pod:108
239 #, no-wrap
240 msgid ""
241 " /* Close the handle 'g'. */\n"
242 " guestfs_close (g);\n"
243 "\n"
244 msgstr ""
245
246 # type: textblock
247 #: ../src/guestfs.pod:111
248 msgid ""
249 "The code above doesn't include any error checking.  In real code you should "
250 "check return values carefully for errors.  In general all functions that "
251 "return integers return C<-1> on error, and all functions that return "
252 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
253 "how to handle errors, and consult the documentation for each function call "
254 "below to see precisely how they return error indications."
255 msgstr ""
256
257 # type: =head2
258 #: ../src/guestfs.pod:119
259 msgid "DISK IMAGES"
260 msgstr ""
261
262 # type: textblock
263 #: ../src/guestfs.pod:121
264 msgid ""
265 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
266 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
267 "actual block device, or simply an empty file of zeroes that you have created "
268 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
269 "of these."
270 msgstr ""
271
272 # type: textblock
273 #: ../src/guestfs.pod:127
274 msgid ""
275 "The call you should use in modern code for adding drives is "
276 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
277 "specifying that the format is raw, do:"
278 msgstr ""
279
280 # type: verbatim
281 #: ../src/guestfs.pod:131
282 #, no-wrap
283 msgid ""
284 " guestfs_add_drive_opts (g, filename,\n"
285 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
286 "                         -1);\n"
287 "\n"
288 msgstr ""
289
290 # type: textblock
291 #: ../src/guestfs.pod:135
292 msgid "You can add a disk read-only using:"
293 msgstr ""
294
295 # type: verbatim
296 #: ../src/guestfs.pod:137
297 #, no-wrap
298 msgid ""
299 " guestfs_add_drive_opts (g, filename,\n"
300 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
301 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
302 "                         -1);\n"
303 "\n"
304 msgstr ""
305
306 # type: textblock
307 #: ../src/guestfs.pod:142
308 msgid ""
309 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
310 "libguestfs won't modify the file."
311 msgstr ""
312
313 # type: textblock
314 #: ../src/guestfs.pod:145
315 msgid ""
316 "Be extremely cautious if the disk image is in use, eg. if it is being used "
317 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
318 "corruption, but adding it read-only is safe."
319 msgstr ""
320
321 # type: textblock
322 #: ../src/guestfs.pod:149
323 msgid ""
324 "You must add at least one disk image, and you may add multiple disk images.  "
325 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
326 "first one you added), C</dev/sdb> (for the second one you added), etc."
327 msgstr ""
328
329 # type: textblock
330 #: ../src/guestfs.pod:154
331 msgid ""
332 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
333 "can call L</guestfs_list_devices> to get a list of the device names, in the "
334 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
335 msgstr ""
336
337 # type: =head2
338 #: ../src/guestfs.pod:159
339 msgid "MOUNTING"
340 msgstr ""
341
342 # type: textblock
343 #: ../src/guestfs.pod:161
344 msgid ""
345 "Before you can read or write files, create directories and so on in a disk "
346 "image that contains filesystems, you have to mount those filesystems using "
347 "L</guestfs_mount>.  If you already know that a disk image contains (for "
348 "example) one partition with a filesystem on that partition, then you can "
349 "mount it directly:"
350 msgstr ""
351
352 # type: verbatim
353 #: ../src/guestfs.pod:167
354 #, no-wrap
355 msgid ""
356 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
357 "\n"
358 msgstr ""
359
360 # type: textblock
361 #: ../src/guestfs.pod:169
362 msgid ""
363 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
364 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
365 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
366 msgstr ""
367
368 # type: textblock
369 #: ../src/guestfs.pod:173
370 msgid ""
371 "If you are given a disk image and you don't know what it contains then you "
372 "have to find out.  Libguestfs can do that too: use "
373 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
374 "and LVs, and either try mounting each to see what is mountable, or else "
375 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
376 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
377 "But you might find it easier to look at higher level programs built on top "
378 "of libguestfs, in particular L<virt-inspector(1)>."
379 msgstr ""
380
381 # type: textblock
382 #: ../src/guestfs.pod:183
383 msgid ""
384 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
385 "several other variations of the C<guestfs_mount_*> call."
386 msgstr ""
387
388 # type: =head2
389 #: ../src/guestfs.pod:186
390 msgid "FILESYSTEM ACCESS AND MODIFICATION"
391 msgstr ""
392
393 # type: textblock
394 #: ../src/guestfs.pod:188
395 msgid ""
396 "The majority of the libguestfs API consists of fairly low-level calls for "
397 "accessing and modifying the files, directories, symlinks etc on mounted "
398 "filesystems.  There are over a hundred such calls which you can find listed "
399 "in detail below in this man page, and we don't even pretend to cover them "
400 "all in this overview."
401 msgstr ""
402
403 # type: textblock
404 #: ../src/guestfs.pod:194
405 msgid ""
406 "Specify filenames as full paths, starting with C<\"/\"> and including the "
407 "mount point."
408 msgstr ""
409
410 # type: textblock
411 #: ../src/guestfs.pod:197
412 msgid ""
413 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
414 "the file called C<\"etc/passwd\"> then you could do:"
415 msgstr ""
416
417 # type: verbatim
418 #: ../src/guestfs.pod:200
419 #, no-wrap
420 msgid ""
421 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
422 "\n"
423 msgstr ""
424
425 # type: textblock
426 #: ../src/guestfs.pod:202
427 msgid ""
428 "This would return C<data> as a newly allocated buffer containing the full "
429 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
430 "or C<NULL> if there was an error."
431 msgstr ""
432
433 # type: textblock
434 #: ../src/guestfs.pod:206
435 msgid ""
436 "As another example, to create a top-level directory on that filesystem "
437 "called C<\"var\"> you would do:"
438 msgstr ""
439
440 # type: verbatim
441 #: ../src/guestfs.pod:209
442 #, no-wrap
443 msgid ""
444 " guestfs_mkdir (g, \"/var\");\n"
445 "\n"
446 msgstr ""
447
448 # type: textblock
449 #: ../src/guestfs.pod:211
450 msgid "To create a symlink you could do:"
451 msgstr ""
452
453 # type: verbatim
454 #: ../src/guestfs.pod:213
455 #, no-wrap
456 msgid ""
457 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
458 "               \"/etc/rc3.d/S30portmap\");\n"
459 "\n"
460 msgstr ""
461
462 # type: textblock
463 #: ../src/guestfs.pod:216
464 msgid ""
465 "Libguestfs will reject attempts to use relative paths and there is no "
466 "concept of a current working directory."
467 msgstr ""
468
469 # type: textblock
470 #: ../src/guestfs.pod:219
471 msgid ""
472 "Libguestfs can return errors in many situations: for example if the "
473 "filesystem isn't writable, or if a file or directory that you requested "
474 "doesn't exist.  If you are using the C API (documented here)  you have to "
475 "check for those error conditions after each call.  (Other language bindings "
476 "turn these errors into exceptions)."
477 msgstr ""
478
479 # type: textblock
480 #: ../src/guestfs.pod:225
481 msgid ""
482 "File writes are affected by the per-handle umask, set by calling "
483 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
484 msgstr ""
485
486 # type: =head2
487 #: ../src/guestfs.pod:228
488 msgid "PARTITIONING"
489 msgstr ""
490
491 # type: textblock
492 #: ../src/guestfs.pod:230
493 msgid ""
494 "Libguestfs contains API calls to read, create and modify partition tables on "
495 "disk images."
496 msgstr ""
497
498 # type: textblock
499 #: ../src/guestfs.pod:233
500 msgid ""
501 "In the common case where you want to create a single partition covering the "
502 "whole disk, you should use the L</guestfs_part_disk> call:"
503 msgstr ""
504
505 # type: verbatim
506 #: ../src/guestfs.pod:237
507 #, no-wrap
508 msgid ""
509 " const char *parttype = \"mbr\";\n"
510 " if (disk_is_larger_than_2TB)\n"
511 "   parttype = \"gpt\";\n"
512 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
513 "\n"
514 msgstr ""
515
516 # type: textblock
517 #: ../src/guestfs.pod:242
518 msgid ""
519 "Obviously this effectively wipes anything that was on that disk image "
520 "before."
521 msgstr ""
522
523 # type: =head2
524 #: ../src/guestfs.pod:245
525 msgid "LVM2"
526 msgstr ""
527
528 # type: textblock
529 #: ../src/guestfs.pod:247
530 msgid ""
531 "Libguestfs provides access to a large part of the LVM2 API, such as "
532 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
533 "unless you familiarize yourself with the concepts of physical volumes, "
534 "volume groups and logical volumes."
535 msgstr ""
536
537 # type: textblock
538 #: ../src/guestfs.pod:252
539 msgid ""
540 "This author strongly recommends reading the LVM HOWTO, online at "
541 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
542 msgstr ""
543
544 # type: =head2
545 #: ../src/guestfs.pod:255
546 msgid "DOWNLOADING"
547 msgstr ""
548
549 # type: textblock
550 #: ../src/guestfs.pod:257
551 msgid ""
552 "Use L</guestfs_cat> to download small, text only files.  This call is "
553 "limited to files which are less than 2 MB and which cannot contain any ASCII "
554 "NUL (C<\\0>) characters.  However it has a very simple to use API."
555 msgstr ""
556
557 # type: textblock
558 #: ../src/guestfs.pod:262
559 msgid ""
560 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
561 "bit data, since it returns a (pointer, size) pair.  However it is still "
562 "limited to \"small\" files, less than 2 MB."
563 msgstr ""
564
565 # type: textblock
566 #: ../src/guestfs.pod:266
567 msgid ""
568 "L</guestfs_download> can be used to download any file, with no limits on "
569 "content or size (even files larger than 4 GB)."
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:269
574 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
575 msgstr ""
576
577 # type: =head2
578 #: ../src/guestfs.pod:272
579 msgid "UPLOADING"
580 msgstr ""
581
582 # type: textblock
583 #: ../src/guestfs.pod:274
584 msgid ""
585 "It's often the case that you want to write a file or files to the disk "
586 "image."
587 msgstr ""
588
589 # type: textblock
590 #: ../src/guestfs.pod:277
591 msgid ""
592 "To write a small file with fixed content, use L</guestfs_write>.  To create "
593 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
594 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
595 "variety of other functions for creating test files, for example "
596 "L</guestfs_fill> and L</guestfs_fill_pattern>."
597 msgstr ""
598
599 # type: textblock
600 #: ../src/guestfs.pod:283
601 msgid ""
602 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
603 "file content or size (even files larger than 4 GB)."
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:286
608 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
609 msgstr ""
610
611 # type: textblock
612 #: ../src/guestfs.pod:288
613 msgid ""
614 "However the fastest way to upload I<large numbers of arbitrary files> is to "
615 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
616 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
617 "the drive in a predictable way (eg. adding it last after all other drives) "
618 "then you can get the device name from L</guestfs_list_devices> and mount it "
619 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
620 "sometimes non-portable between kernel versions, and they don't support "
621 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
622 "using a label or UUID, use an ISO image instead."
623 msgstr ""
624
625 # type: =head2
626 #: ../src/guestfs.pod:299
627 msgid "COPYING"
628 msgstr ""
629
630 # type: textblock
631 #: ../src/guestfs.pod:301
632 msgid ""
633 "There are various different commands for copying between files and devices "
634 "and in and out of the guest filesystem.  These are summarised in the table "
635 "below."
636 msgstr ""
637
638 # type: =item
639 #: ../src/guestfs.pod:307
640 msgid "B<file> to B<file>"
641 msgstr ""
642
643 # type: textblock
644 #: ../src/guestfs.pod:309
645 msgid ""
646 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
647 "directories recursively."
648 msgstr ""
649
650 # type: =item
651 #: ../src/guestfs.pod:312
652 msgid "B<file or device> to B<file or device>"
653 msgstr ""
654
655 # type: textblock
656 #: ../src/guestfs.pod:314
657 msgid ""
658 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
659 "devices in the guest."
660 msgstr ""
661
662 # type: textblock
663 #: ../src/guestfs.pod:317
664 msgid "Example: duplicate the contents of an LV:"
665 msgstr ""
666
667 # type: verbatim
668 #: ../src/guestfs.pod:319
669 #, no-wrap
670 msgid ""
671 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
672 "\n"
673 msgstr ""
674
675 # type: textblock
676 #: ../src/guestfs.pod:321
677 msgid ""
678 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
679 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
680 "L</guestfs_copy_size>."
681 msgstr ""
682
683 # type: =item
684 #: ../src/guestfs.pod:325
685 msgid "B<file on the host> to B<file or device>"
686 msgstr ""
687
688 # type: textblock
689 #: ../src/guestfs.pod:327
690 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
691 msgstr ""
692
693 # type: =item
694 #: ../src/guestfs.pod:329
695 msgid "B<file or device> to B<file on the host>"
696 msgstr ""
697
698 # type: textblock
699 #: ../src/guestfs.pod:331
700 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
701 msgstr ""
702
703 # type: =head2
704 #: ../src/guestfs.pod:335
705 msgid "LISTING FILES"
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:337
710 msgid ""
711 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
712 "L<guestfish(1)>-equivalent command C<ll>)."
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:340
717 msgid ""
718 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
719 "programs, as a flat list of strings."
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:343
724 msgid ""
725 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
726 "directory, plus additional information about each one.  It is more "
727 "equivalent to using the L<readdir(3)> call on a local filesystem."
728 msgstr ""
729
730 # type: textblock
731 #: ../src/guestfs.pod:347
732 msgid ""
733 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
734 "files."
735 msgstr ""
736
737 # type: =head2
738 #: ../src/guestfs.pod:350
739 msgid "RUNNING COMMANDS"
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:352
744 msgid ""
745 "Although libguestfs is primarily an API for manipulating files inside guest "
746 "images, we also provide some limited facilities for running commands inside "
747 "guests."
748 msgstr ""
749
750 # type: textblock
751 #: ../src/guestfs.pod:356
752 msgid "There are many limitations to this:"
753 msgstr ""
754
755 # type: =item
756 #: ../src/guestfs.pod:360 ../src/guestfs.pod:365 ../src/guestfs.pod:370 ../src/guestfs.pod:374 ../src/guestfs.pod:379 ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:1224 ../src/guestfs.pod:1229 ../src/guestfs.pod:1233 ../src/guestfs.pod:1449 ../src/guestfs.pod:1454 ../src/guestfs.pod:1458 ../src/guestfs.pod:1560 ../src/guestfs.pod:1564 ../src/guestfs.pod:1568 ../src/guestfs.pod:1573 ../src/guestfs.pod:1581 ../src/guestfs.pod:1600 ../src/guestfs.pod:1608 ../src/guestfs.pod:1838 ../src/guestfs.pod:1844 ../src/guestfs.pod:1849 ../src/guestfs.pod:1855 ../src/guestfs.pod:1962 ../src/guestfs.pod:1966 ../src/guestfs.pod:1970 ../src/guestfs.pod:1974 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:509 ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:1562 ../src/guestfs-actions.pod:1566 ../src/guestfs-actions.pod:1570 ../src/guestfs-actions.pod:1578 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1600 ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1742 ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:1756 ../src/guestfs-actions.pod:1817 ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:1826 ../fish/guestfish.pod: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:861
2137 msgid "@ACTIONS@"
2138 msgstr ""
2139
2140 # type: =head1
2141 #: ../src/guestfs.pod:1057
2142 msgid "STRUCTURES"
2143 msgstr ""
2144
2145 # type: textblock
2146 #: ../src/guestfs.pod:1059
2147 msgid "@STRUCTS@"
2148 msgstr ""
2149
2150 # type: =head1
2151 #: ../src/guestfs.pod:1061
2152 msgid "AVAILABILITY"
2153 msgstr ""
2154
2155 # type: =head2
2156 #: ../src/guestfs.pod:1063
2157 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2158 msgstr ""
2159
2160 # type: textblock
2161 #: ../src/guestfs.pod:1065
2162 msgid ""
2163 "Using L</guestfs_available> you can test availability of the following "
2164 "groups of functions.  This test queries the appliance to see if the "
2165 "appliance you are currently using supports the functionality."
2166 msgstr ""
2167
2168 # type: textblock
2169 #: ../src/guestfs.pod:1070
2170 msgid "@AVAILABILITY@"
2171 msgstr ""
2172
2173 # type: =head2
2174 #: ../src/guestfs.pod:1072
2175 msgid "GUESTFISH supported COMMAND"
2176 msgstr ""
2177
2178 # type: textblock
2179 #: ../src/guestfs.pod:1074
2180 msgid ""
2181 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2182 "prints out the available groups and whether they are supported by this build "
2183 "of libguestfs.  Note however that you have to do C<run> first."
2184 msgstr ""
2185
2186 # type: =head2
2187 #: ../src/guestfs.pod:1079
2188 msgid "SINGLE CALLS AT COMPILE TIME"
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1081
2193 msgid ""
2194 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2195 "function, such as:"
2196 msgstr ""
2197
2198 # type: verbatim
2199 #: ../src/guestfs.pod:1084
2200 #, no-wrap
2201 msgid ""
2202 " #define LIBGUESTFS_HAVE_DD 1\n"
2203 "\n"
2204 msgstr ""
2205
2206 # type: textblock
2207 #: ../src/guestfs.pod:1086
2208 msgid "if L</guestfs_dd> is available."
2209 msgstr ""
2210
2211 # type: textblock
2212 #: ../src/guestfs.pod:1088
2213 msgid ""
2214 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2215 "function is available at compile time, we recommended using build tools such "
2216 "as autoconf or cmake.  For example in autotools you could use:"
2217 msgstr ""
2218
2219 # type: verbatim
2220 #: ../src/guestfs.pod:1093
2221 #, no-wrap
2222 msgid ""
2223 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2224 " AC_CHECK_FUNCS([guestfs_dd])\n"
2225 "\n"
2226 msgstr ""
2227
2228 # type: textblock
2229 #: ../src/guestfs.pod:1096
2230 msgid ""
2231 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2232 "in your program."
2233 msgstr ""
2234
2235 # type: =head2
2236 #: ../src/guestfs.pod:1099
2237 msgid "SINGLE CALLS AT RUN TIME"
2238 msgstr ""
2239
2240 # type: textblock
2241 #: ../src/guestfs.pod:1101
2242 msgid ""
2243 "Testing at compile time doesn't guarantee that a function really exists in "
2244 "the library.  The reason is that you might be dynamically linked against a "
2245 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2246 "This situation unfortunately results in a segmentation fault, which is a "
2247 "shortcoming of the C dynamic linking system itself."
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1108
2252 msgid ""
2253 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2254 "in this example program (note that you still need the compile time check as "
2255 "well):"
2256 msgstr ""
2257
2258 # type: verbatim
2259 #: ../src/guestfs.pod:1112
2260 #, no-wrap
2261 msgid ""
2262 " #include <stdio.h>\n"
2263 " #include <stdlib.h>\n"
2264 " #include <unistd.h>\n"
2265 " #include <dlfcn.h>\n"
2266 " #include <guestfs.h>\n"
2267 " \n"
2268 msgstr ""
2269
2270 # type: verbatim
2271 #: ../src/guestfs.pod:1118
2272 #, no-wrap
2273 msgid ""
2274 " main ()\n"
2275 " {\n"
2276 " #ifdef LIBGUESTFS_HAVE_DD\n"
2277 "   void *dl;\n"
2278 "   int has_function;\n"
2279 " \n"
2280 msgstr ""
2281
2282 # type: verbatim
2283 #: ../src/guestfs.pod:1124
2284 #, no-wrap
2285 msgid ""
2286 "   /* Test if the function guestfs_dd is really available. */\n"
2287 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2288 "   if (!dl) {\n"
2289 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2290 "     exit (EXIT_FAILURE);\n"
2291 "   }\n"
2292 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2293 "   dlclose (dl);\n"
2294 " \n"
2295 msgstr ""
2296
2297 # type: verbatim
2298 #: ../src/guestfs.pod:1133
2299 #, no-wrap
2300 msgid ""
2301 "   if (!has_function)\n"
2302 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2303 "   else {\n"
2304 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2305 "     /* Now it's safe to call\n"
2306 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2307 "     */\n"
2308 "   }\n"
2309 " #else\n"
2310 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2311 " #endif\n"
2312 "  }\n"
2313 "\n"
2314 msgstr ""
2315
2316 # type: textblock
2317 #: ../src/guestfs.pod:1146
2318 msgid ""
2319 "You may think the above is an awful lot of hassle, and it is.  There are "
2320 "other ways outside of the C linking system to ensure that this kind of "
2321 "incompatibility never arises, such as using package versioning:"
2322 msgstr ""
2323
2324 # type: verbatim
2325 #: ../src/guestfs.pod:1151
2326 #, no-wrap
2327 msgid ""
2328 " Requires: libguestfs >= 1.0.80\n"
2329 "\n"
2330 msgstr ""
2331
2332 # type: =head1
2333 #: ../src/guestfs.pod:1153
2334 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1155
2339 msgid ""
2340 "A recent feature of the API is the introduction of calls which take optional "
2341 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2342 "takes variable arguments (ie. C<...>), as in this example:"
2343 msgstr ""
2344
2345 # type: verbatim
2346 #: ../src/guestfs.pod:1160
2347 #, no-wrap
2348 msgid ""
2349 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2350 "\n"
2351 msgstr ""
2352
2353 # type: textblock
2354 #: ../src/guestfs.pod:1162
2355 msgid ""
2356 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2357 "call with no optional arguments specified:"
2358 msgstr ""
2359
2360 # type: verbatim
2361 #: ../src/guestfs.pod:1165
2362 #, no-wrap
2363 msgid ""
2364 " guestfs_add_drive_opts (g, filename, -1);\n"
2365 "\n"
2366 msgstr ""
2367
2368 # type: textblock
2369 #: ../src/guestfs.pod:1167
2370 msgid "With a single optional argument:"
2371 msgstr ""
2372
2373 # type: verbatim
2374 #: ../src/guestfs.pod:1169
2375 #, no-wrap
2376 msgid ""
2377 " guestfs_add_drive_opts (g, filename,\n"
2378 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2379 "                         -1);\n"
2380 "\n"
2381 msgstr ""
2382
2383 # type: textblock
2384 #: ../src/guestfs.pod:1173
2385 msgid "With two:"
2386 msgstr ""
2387
2388 # type: verbatim
2389 #: ../src/guestfs.pod:1175
2390 #, no-wrap
2391 msgid ""
2392 " guestfs_add_drive_opts (g, filename,\n"
2393 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2394 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2395 "                         -1);\n"
2396 "\n"
2397 msgstr ""
2398
2399 # type: textblock
2400 #: ../src/guestfs.pod:1180
2401 msgid ""
2402 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2403 "happen!"
2404 msgstr ""
2405
2406 # type: =head2
2407 #: ../src/guestfs.pod:1183
2408 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2409 msgstr ""
2410
2411 # type: textblock
2412 #: ../src/guestfs.pod:1185
2413 msgid ""
2414 "The second variant has the same name with the suffix C<_va>, which works the "
2415 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2416 "example function, this is declared:"
2417 msgstr ""
2418
2419 # type: verbatim
2420 #: ../src/guestfs.pod:1189
2421 #, no-wrap
2422 msgid ""
2423 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2424 "                                va_list args);\n"
2425 "\n"
2426 msgstr ""
2427
2428 # type: =head2
2429 #: ../src/guestfs.pod:1192
2430 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2431 msgstr ""
2432
2433 # type: textblock
2434 #: ../src/guestfs.pod:1194
2435 msgid ""
2436 "The third variant is useful where you need to construct these calls.  You "
2437 "pass in a structure where you fill in the optional fields.  The structure "
2438 "has a bitmask as the first element which you must set to indicate which "
2439 "fields you have filled in.  For our example function the structure and call "
2440 "are declared:"
2441 msgstr ""
2442
2443 # type: verbatim
2444 #: ../src/guestfs.pod:1200
2445 #, no-wrap
2446 msgid ""
2447 " struct guestfs_add_drive_opts_argv {\n"
2448 "   uint64_t bitmask;\n"
2449 "   int readonly;\n"
2450 "   const char *format;\n"
2451 "   /* ... */\n"
2452 " };\n"
2453 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2454 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2455 "\n"
2456 msgstr ""
2457
2458 # type: textblock
2459 #: ../src/guestfs.pod:1209
2460 msgid "You could call it like this:"
2461 msgstr ""
2462
2463 # type: verbatim
2464 #: ../src/guestfs.pod:1211
2465 #, no-wrap
2466 msgid ""
2467 " struct guestfs_add_drive_opts_argv optargs = {\n"
2468 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2469 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2470 "   .readonly = 1,\n"
2471 "   .format = \"qcow2\"\n"
2472 " };\n"
2473 " \n"
2474 msgstr ""
2475
2476 # type: verbatim
2477 #: ../src/guestfs.pod:1218
2478 #, no-wrap
2479 msgid ""
2480 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2481 "\n"
2482 msgstr ""
2483
2484 # type: textblock
2485 #: ../src/guestfs.pod:1220 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1813 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1244
2486 msgid "Notes:"
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1226
2491 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2492 msgstr ""
2493
2494 # type: textblock
2495 #: ../src/guestfs.pod:1231
2496 msgid "You do not need to fill in all fields of the structure."
2497 msgstr ""
2498
2499 # type: textblock
2500 #: ../src/guestfs.pod:1235
2501 msgid ""
2502 "There must be a one-to-one correspondence between fields of the structure "
2503 "that are filled in, and bits set in the bitmask."
2504 msgstr ""
2505
2506 # type: =head2
2507 #: ../src/guestfs.pod:1240
2508 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
2509 msgstr ""
2510
2511 # type: textblock
2512 #: ../src/guestfs.pod:1242
2513 msgid ""
2514 "In other languages, optional arguments are expressed in the way that is "
2515 "natural for that language.  We refer you to the language-specific "
2516 "documentation for more details on that."
2517 msgstr ""
2518
2519 # type: textblock
2520 #: ../src/guestfs.pod:1246
2521 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
2522 msgstr ""
2523
2524 # type: =end
2525 #: ../src/guestfs.pod:1248 ../src/guestfs.pod:1253
2526 msgid "html"
2527 msgstr ""
2528
2529 # type: textblock
2530 #: ../src/guestfs.pod:1250
2531 msgid ""
2532 "<!-- old anchor for the next section --> <a "
2533 "name=\"state_machine_and_low_level_event_api\"/>"
2534 msgstr ""
2535
2536 # type: =head1
2537 #: ../src/guestfs.pod:1255
2538 msgid "ARCHITECTURE"
2539 msgstr ""
2540
2541 # type: textblock
2542 #: ../src/guestfs.pod:1257
2543 msgid ""
2544 "Internally, libguestfs is implemented by running an appliance (a special "
2545 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
2546 "process of the main program."
2547 msgstr ""
2548
2549 # type: verbatim
2550 #: ../src/guestfs.pod:1261
2551 #, no-wrap
2552 msgid ""
2553 "  ___________________\n"
2554 " /                   \\\n"
2555 " | main program      |\n"
2556 " |                   |\n"
2557 " |                   |           child process / appliance\n"
2558 " |                   |           __________________________\n"
2559 " |                   |          / qemu                     \\\n"
2560 " +-------------------+   RPC    |      +-----------------+ |\n"
2561 " | libguestfs     <--------------------> guestfsd        | |\n"
2562 " |                   |          |      +-----------------+ |\n"
2563 " \\___________________/          |      | Linux kernel    | |\n"
2564 "                                |      +--^--------------+ |\n"
2565 "                                \\_________|________________/\n"
2566 "                                          |\n"
2567 "                                   _______v______\n"
2568 "                                  /              \\\n"
2569 "                                  | Device or    |\n"
2570 "                                  | disk image   |\n"
2571 "                                  \\______________/\n"
2572 "\n"
2573 msgstr ""
2574
2575 # type: textblock
2576 #: ../src/guestfs.pod:1281
2577 msgid ""
2578 "The library, linked to the main program, creates the child process and hence "
2579 "the appliance in the L</guestfs_launch> function."
2580 msgstr ""
2581
2582 # type: textblock
2583 #: ../src/guestfs.pod:1284
2584 msgid ""
2585 "Inside the appliance is a Linux kernel and a complete stack of userspace "
2586 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
2587 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
2588 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
2589 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
2590 "attached to the qemu process which translates device access by the "
2591 "appliance's Linux kernel into accesses to the image."
2592 msgstr ""
2593
2594 # type: textblock
2595 #: ../src/guestfs.pod:1293
2596 msgid ""
2597 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
2598 "Although the disk image you are attached to might also be used by some "
2599 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
2600 "care if both libguestfs's qemu process and your virtual machine are trying "
2601 "to update the disk image at the same time, since these usually results in "
2602 "massive disk corruption)."
2603 msgstr ""
2604
2605 # type: =head1
2606 #: ../src/guestfs.pod:1300
2607 msgid "STATE MACHINE"
2608 msgstr ""
2609
2610 # type: textblock
2611 #: ../src/guestfs.pod:1302
2612 msgid "libguestfs uses a state machine to model the child process:"
2613 msgstr ""
2614
2615 # type: verbatim
2616 #: ../src/guestfs.pod:1304
2617 #, no-wrap
2618 msgid ""
2619 "                         |\n"
2620 "                    guestfs_create\n"
2621 "                         |\n"
2622 "                         |\n"
2623 "                     ____V_____\n"
2624 "                    /          \\\n"
2625 "                    |  CONFIG  |\n"
2626 "                    \\__________/\n"
2627 "                     ^ ^   ^  \\\n"
2628 "                    /  |    \\  \\ guestfs_launch\n"
2629 "                   /   |    _\\__V______\n"
2630 "                  /    |   /           \\\n"
2631 "                 /     |   | LAUNCHING |\n"
2632 "                /      |   \\___________/\n"
2633 "               /       |       /\n"
2634 "              /        |  guestfs_launch\n"
2635 "             /         |     /\n"
2636 "    ______  /        __|____V\n"
2637 "   /      \\ ------> /        \\\n"
2638 "   | BUSY |         | READY  |\n"
2639 "   \\______/ <------ \\________/\n"
2640 "\n"
2641 msgstr ""
2642
2643 # type: textblock
2644 #: ../src/guestfs.pod:1326
2645 msgid ""
2646 "The normal transitions are (1) CONFIG (when the handle is created, but there "
2647 "is no child process), (2) LAUNCHING (when the child process is booting up), "
2648 "(3) alternating between READY and BUSY as commands are issued to, and "
2649 "carried out by, the child process."
2650 msgstr ""
2651
2652 # type: textblock
2653 #: ../src/guestfs.pod:1331
2654 msgid ""
2655 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
2656 "asynchronously at any time (eg. due to some internal error), and that causes "
2657 "the state to transition back to CONFIG."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1335
2662 msgid ""
2663 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
2664 "issued when in the CONFIG state."
2665 msgstr ""
2666
2667 # type: textblock
2668 #: ../src/guestfs.pod:1338
2669 msgid ""
2670 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
2671 "L</guestfs_launch> blocks until the child process is READY to accept "
2672 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
2673 "moves the state from CONFIG to LAUNCHING while it is running."
2674 msgstr ""
2675
2676 # type: textblock
2677 #: ../src/guestfs.pod:1344
2678 msgid ""
2679 "API actions such as L</guestfs_mount> can only be issued when in the READY "
2680 "state.  These API calls block waiting for the command to be carried out "
2681 "(ie. the state to transition to BUSY and then back to READY).  There are no "
2682 "non-blocking versions, and no way to issue more than one command per handle "
2683 "at the same time."
2684 msgstr ""
2685
2686 # type: textblock
2687 #: ../src/guestfs.pod:1350
2688 msgid ""
2689 "Finally, the child process sends asynchronous messages back to the main "
2690 "program, such as kernel log messages.  You can register a callback to "
2691 "receive these messages."
2692 msgstr ""
2693
2694 # type: =head2
2695 #: ../src/guestfs.pod:1354
2696 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1356
2701 msgid ""
2702 "The child process generates events in some situations.  Current events "
2703 "include: receiving a log message, the child process exits."
2704 msgstr ""
2705
2706 # type: textblock
2707 #: ../src/guestfs.pod:1359
2708 msgid ""
2709 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
2710 "types of events."
2711 msgstr ""
2712
2713 # type: textblock
2714 #: ../src/guestfs.pod:1362
2715 msgid ""
2716 "Only I<one callback of each type> can be registered for each handle.  "
2717 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
2718 "that type.  Cancel all callbacks of this type by calling this function with "
2719 "C<cb> set to C<NULL>."
2720 msgstr ""
2721
2722 # type: =head2
2723 #: ../src/guestfs.pod:1367
2724 msgid "guestfs_set_log_message_callback"
2725 msgstr ""
2726
2727 # type: verbatim
2728 #: ../src/guestfs.pod:1369
2729 #, no-wrap
2730 msgid ""
2731 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
2732 "                                         char *buf, int len);\n"
2733 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
2734 "                                        guestfs_log_message_cb cb,\n"
2735 "                                        void *opaque);\n"
2736 "\n"
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1375
2741 msgid ""
2742 "The callback function C<cb> will be called whenever qemu or the guest writes "
2743 "anything to the console."
2744 msgstr ""
2745
2746 # type: textblock
2747 #: ../src/guestfs.pod:1378
2748 msgid "Use this function to capture kernel messages and similar."
2749 msgstr ""
2750
2751 # type: textblock
2752 #: ../src/guestfs.pod:1380
2753 msgid ""
2754 "Normally there is no log message handler, and log messages are just "
2755 "discarded."
2756 msgstr ""
2757
2758 # type: =head2
2759 #: ../src/guestfs.pod:1383
2760 msgid "guestfs_set_subprocess_quit_callback"
2761 msgstr ""
2762
2763 # type: verbatim
2764 #: ../src/guestfs.pod:1385
2765 #, no-wrap
2766 msgid ""
2767 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
2768 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
2769 "                                            guestfs_subprocess_quit_cb cb,\n"
2770 "                                            void *opaque);\n"
2771 "\n"
2772 msgstr ""
2773
2774 # type: textblock
2775 #: ../src/guestfs.pod:1390
2776 msgid ""
2777 "The callback function C<cb> will be called when the child process quits, "
2778 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
2779 "corresponds to a transition from any state to the CONFIG state)."
2780 msgstr ""
2781
2782 # type: =head2
2783 #: ../src/guestfs.pod:1395
2784 msgid "guestfs_set_launch_done_callback"
2785 msgstr ""
2786
2787 # type: verbatim
2788 #: ../src/guestfs.pod:1397
2789 #, no-wrap
2790 msgid ""
2791 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
2792 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
2793 "                                        guestfs_launch_done_cb cb,\n"
2794 "                                        void *opaque);\n"
2795 "\n"
2796 msgstr ""
2797
2798 # type: textblock
2799 #: ../src/guestfs.pod:1402
2800 msgid ""
2801 "The callback function C<cb> will be called when the child process becomes "
2802 "ready first time after it has been launched.  (This corresponds to a "
2803 "transition from LAUNCHING to the READY state)."
2804 msgstr ""
2805
2806 # type: =head2
2807 #: ../src/guestfs.pod:1406
2808 msgid "guestfs_set_close_callback"
2809 msgstr ""
2810
2811 # type: verbatim
2812 #: ../src/guestfs.pod:1408
2813 #, no-wrap
2814 msgid ""
2815 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
2816 " void guestfs_set_close_callback (guestfs_h *g,\n"
2817 "                                  guestfs_close_cb cb,\n"
2818 "                                  void *opaque);\n"
2819 "\n"
2820 msgstr ""
2821
2822 # type: textblock
2823 #: ../src/guestfs.pod:1413
2824 msgid ""
2825 "The callback function C<cb> will be called while the handle is being closed "
2826 "(synchronously from L</guestfs_close>)."
2827 msgstr ""
2828
2829 # type: textblock
2830 #: ../src/guestfs.pod:1416
2831 msgid ""
2832 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
2833 "handles that are open when the program exits.  This means that this callback "
2834 "might be called indirectly from L<exit(3)>, which can cause unexpected "
2835 "problems in higher-level languages (eg. if your HLL interpreter has already "
2836 "been cleaned up by the time this is called, and if your callback then jumps "
2837 "into some HLL function)."
2838 msgstr ""
2839
2840 # type: =head2
2841 #: ../src/guestfs.pod:1424
2842 msgid "guestfs_set_progress_callback"
2843 msgstr ""
2844
2845 # type: verbatim
2846 #: ../src/guestfs.pod:1426
2847 #, no-wrap
2848 msgid ""
2849 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
2850 "                                      int proc_nr, int serial,\n"
2851 "                                      uint64_t position, uint64_t total);\n"
2852 " void guestfs_set_progress_callback (guestfs_h *g,\n"
2853 "                                     guestfs_progress_cb cb,\n"
2854 "                                     void *opaque);\n"
2855 "\n"
2856 msgstr ""
2857
2858 # type: textblock
2859 #: ../src/guestfs.pod:1433
2860 msgid ""
2861 "Some long-running operations can generate progress messages.  If this "
2862 "callback is registered, then it will be called each time a progress message "
2863 "is generated (usually two seconds after the operation started, and three "
2864 "times per second thereafter until it completes, although the frequency may "
2865 "change in future versions)."
2866 msgstr ""
2867
2868 # type: textblock
2869 #: ../src/guestfs.pod:1439
2870 msgid ""
2871 "The callback receives two numbers: C<position> and C<total>.  The units of "
2872 "C<total> are not defined, although for some operations C<total> may relate "
2873 "in some way to the amount of data to be transferred (eg. in bytes or "
2874 "megabytes), and C<position> may be the portion which has been transferred."
2875 msgstr ""
2876
2877 # type: textblock
2878 #: ../src/guestfs.pod:1445
2879 msgid "The only defined and stable parts of the API are:"
2880 msgstr ""
2881
2882 # type: textblock
2883 #: ../src/guestfs.pod:1451
2884 msgid ""
2885 "The callback can display to the user some type of progress bar or indicator "
2886 "which shows the ratio of C<position>:C<total>."
2887 msgstr ""
2888
2889 # type: textblock
2890 #: ../src/guestfs.pod:1456
2891 msgid "0 E<lt>= C<position> E<lt>= C<total>"
2892 msgstr ""
2893
2894 # type: textblock
2895 #: ../src/guestfs.pod:1460
2896 msgid ""
2897 "If any progress notification is sent during a call, then a final progress "
2898 "notification is always sent when C<position> = C<total>."
2899 msgstr ""
2900
2901 # type: textblock
2902 #: ../src/guestfs.pod:1463
2903 msgid ""
2904 "This is to simplify caller code, so callers can easily set the progress "
2905 "indicator to \"100%\" at the end of the operation, without requiring special "
2906 "code to detect this case."
2907 msgstr ""
2908
2909 # type: textblock
2910 #: ../src/guestfs.pod:1469
2911 msgid ""
2912 "The callback also receives the procedure number and serial number of the "
2913 "call.  These are only useful for debugging protocol issues, and the callback "
2914 "can normally ignore them.  The callback may want to print these numbers in "
2915 "error messages or debugging messages."
2916 msgstr ""
2917
2918 # type: =head1
2919 #: ../src/guestfs.pod:1474
2920 msgid "PRIVATE DATA AREA"
2921 msgstr ""
2922
2923 # type: textblock
2924 #: ../src/guestfs.pod:1476
2925 msgid ""
2926 "You can attach named pieces of private data to the libguestfs handle, and "
2927 "fetch them by name for the lifetime of the handle.  This is called the "
2928 "private data area and is only available from the C API."
2929 msgstr ""
2930
2931 # type: textblock
2932 #: ../src/guestfs.pod:1480
2933 msgid "To attach a named piece of data, use the following call:"
2934 msgstr ""
2935
2936 # type: verbatim
2937 #: ../src/guestfs.pod:1482
2938 #, no-wrap
2939 msgid ""
2940 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
2941 "\n"
2942 msgstr ""
2943
2944 # type: textblock
2945 #: ../src/guestfs.pod:1484
2946 msgid ""
2947 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
2948 "pointer (which can be C<NULL>).  Any previous item with the same name is "
2949 "overwritten."
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1488
2954 msgid ""
2955 "You can use any C<key> you want, but names beginning with an underscore "
2956 "character are reserved for internal libguestfs purposes (for implementing "
2957 "language bindings).  It is recommended to prefix the name with some unique "
2958 "string to avoid collisions with other users."
2959 msgstr ""
2960
2961 # type: textblock
2962 #: ../src/guestfs.pod:1493
2963 msgid "To retrieve the pointer, use:"
2964 msgstr ""
2965
2966 # type: verbatim
2967 #: ../src/guestfs.pod:1495
2968 #, no-wrap
2969 msgid ""
2970 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
2971 "\n"
2972 msgstr ""
2973
2974 # type: textblock
2975 #: ../src/guestfs.pod:1497
2976 msgid ""
2977 "This function returns C<NULL> if either no data is found associated with "
2978 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
2979 "C<NULL>."
2980 msgstr ""
2981
2982 # type: textblock
2983 #: ../src/guestfs.pod:1501
2984 msgid ""
2985 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
2986 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
2987 "all.  In particular, libguestfs does I<not> try to free the data when the "
2988 "handle is closed.  If the data must be freed, then the caller must either "
2989 "free it before calling L</guestfs_close> or must set up a close callback to "
2990 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
2991 "can be registered for a handle)."
2992 msgstr ""
2993
2994 # type: textblock
2995 #: ../src/guestfs.pod:1509
2996 msgid ""
2997 "The private data area is implemented using a hash table, and should be "
2998 "reasonably efficient for moderate numbers of keys."
2999 msgstr ""
3000
3001 # type: =head1
3002 #: ../src/guestfs.pod:1512
3003 msgid "BLOCK DEVICE NAMING"
3004 msgstr ""
3005
3006 # type: textblock
3007 #: ../src/guestfs.pod:1514
3008 msgid ""
3009 "In the kernel there is now quite a profusion of schemata for naming block "
3010 "devices (in this context, by I<block device> I mean a physical or virtual "
3011 "hard drive).  The original Linux IDE driver used names starting with "
3012 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
3013 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
3014 "replacement for the old IDE driver (particularly for SATA devices) those "
3015 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
3016 "machines with paravirtualized drivers.  This has created several different "
3017 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
3018 "Xen PV disks."
3019 msgstr ""
3020
3021 # type: textblock
3022 #: ../src/guestfs.pod:1526
3023 msgid ""
3024 "As discussed above, libguestfs uses a qemu appliance running an embedded "
3025 "Linux kernel to access block devices.  We can run a variety of appliances "
3026 "based on a variety of Linux kernels."
3027 msgstr ""
3028
3029 # type: textblock
3030 #: ../src/guestfs.pod:1530
3031 msgid ""
3032 "This causes a problem for libguestfs because many API calls use device or "
3033 "partition names.  Working scripts and the recipe (example) scripts that we "
3034 "make available over the internet could fail if the naming scheme changes."
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1535
3039 msgid ""
3040 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
3041 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
3042 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
3043 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
3044 msgstr ""
3045
3046 # type: textblock
3047 #: ../src/guestfs.pod:1541
3048 msgid ""
3049 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
3050 "L</guestfs_list_partitions> and similar calls return the true names of the "
3051 "devices and partitions as known to the appliance."
3052 msgstr ""
3053
3054 # type: =head2
3055 #: ../src/guestfs.pod:1546
3056 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
3057 msgstr ""
3058
3059 # type: textblock
3060 #: ../src/guestfs.pod:1548
3061 msgid ""
3062 "Usually this translation is transparent.  However in some (very rare)  cases "
3063 "you may need to know the exact algorithm.  Such cases include where you use "
3064 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
3065 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
3066 "devices."
3067 msgstr ""
3068
3069 # type: textblock
3070 #: ../src/guestfs.pod:1554
3071 msgid ""
3072 "The algorithm is applied only to I<parameters> which are known to be either "
3073 "device or partition names.  Return values from functions such as "
3074 "L</guestfs_list_devices> are never changed."
3075 msgstr ""
3076
3077 # type: textblock
3078 #: ../src/guestfs.pod:1562
3079 msgid "Is the string a parameter which is a device or partition name?"
3080 msgstr ""
3081
3082 # type: textblock
3083 #: ../src/guestfs.pod:1566
3084 msgid "Does the string begin with C</dev/sd>?"
3085 msgstr ""
3086
3087 # type: textblock
3088 #: ../src/guestfs.pod:1570
3089 msgid ""
3090 "Does the named device exist? If so, we use that device.  However if I<not> "
3091 "then we continue with this algorithm."
3092 msgstr ""
3093
3094 # type: textblock
3095 #: ../src/guestfs.pod:1575
3096 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1577
3101 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
3102 msgstr ""
3103
3104 # type: textblock
3105 #: ../src/guestfs.pod:1579
3106 msgid "If that named device exists, use it.  If not, continue."
3107 msgstr ""
3108
3109 # type: textblock
3110 #: ../src/guestfs.pod:1583
3111 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
3112 msgstr ""
3113
3114 # type: textblock
3115 #: ../src/guestfs.pod:1585
3116 msgid "If that named device exists, use it.  If not, return an error."
3117 msgstr ""
3118
3119 # type: =head2
3120 #: ../src/guestfs.pod:1589
3121 msgid "PORTABILITY CONCERNS"
3122 msgstr ""
3123
3124 # type: textblock
3125 #: ../src/guestfs.pod:1591
3126 msgid ""
3127 "Although the standard naming scheme and automatic translation is useful for "
3128 "simple programs and guestfish scripts, for larger programs it is best not to "
3129 "rely on this mechanism."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1595
3134 msgid ""
3135 "Where possible for maximum future portability programs using libguestfs "
3136 "should use these future-proof techniques:"
3137 msgstr ""
3138
3139 # type: textblock
3140 #: ../src/guestfs.pod:1602
3141 msgid ""
3142 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
3143 "device names, and then use those names directly."
3144 msgstr ""
3145
3146 # type: textblock
3147 #: ../src/guestfs.pod:1605
3148 msgid "Since those device names exist by definition, they will never be translated."
3149 msgstr ""
3150
3151 # type: textblock
3152 #: ../src/guestfs.pod:1610
3153 msgid ""
3154 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
3155 "filesystem labels."
3156 msgstr ""
3157
3158 # type: =head1
3159 #: ../src/guestfs.pod:1615
3160 msgid "INTERNALS"
3161 msgstr ""
3162
3163 # type: =head2
3164 #: ../src/guestfs.pod:1617
3165 msgid "COMMUNICATION PROTOCOL"
3166 msgstr ""
3167
3168 # type: textblock
3169 #: ../src/guestfs.pod:1619
3170 msgid ""
3171 "Don't rely on using this protocol directly.  This section documents how it "
3172 "currently works, but it may change at any time."
3173 msgstr ""
3174
3175 # type: textblock
3176 #: ../src/guestfs.pod:1622
3177 msgid ""
3178 "The protocol used to talk between the library and the daemon running inside "
3179 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3180 "1014, RFC 1832, RFC 4506)."
3181 msgstr ""
3182
3183 # type: textblock
3184 #: ../src/guestfs.pod:1626
3185 msgid ""
3186 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3187 "this file is automatically generated)."
3188 msgstr ""
3189
3190 # type: textblock
3191 #: ../src/guestfs.pod:1629
3192 msgid ""
3193 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3194 "and C<FileOut> parameters, which are handled with very simple request/reply "
3195 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3196 "parameters, which use the same request and reply messages, but they may also "
3197 "be followed by files sent using a chunked encoding."
3198 msgstr ""
3199
3200 # type: =head3
3201 #: ../src/guestfs.pod:1636
3202 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3203 msgstr ""
3204
3205 # type: textblock
3206 #: ../src/guestfs.pod:1638
3207 msgid "For ordinary functions, the request message is:"
3208 msgstr ""
3209
3210 # type: verbatim
3211 #: ../src/guestfs.pod:1640
3212 #, no-wrap
3213 msgid ""
3214 " total length (header + arguments,\n"
3215 "      but not including the length word itself)\n"
3216 " struct guestfs_message_header (encoded as XDR)\n"
3217 " struct guestfs_<foo>_args (encoded as XDR)\n"
3218 "\n"
3219 msgstr ""
3220
3221 # type: textblock
3222 #: ../src/guestfs.pod:1645
3223 msgid ""
3224 "The total length field allows the daemon to allocate a fixed size buffer "
3225 "into which it slurps the rest of the message.  As a result, the total length "
3226 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3227 "effective size of any request is limited to somewhere under this size."
3228 msgstr ""
3229
3230 # type: textblock
3231 #: ../src/guestfs.pod:1651
3232 msgid ""
3233 "Note also that many functions don't take any arguments, in which case the "
3234 "C<guestfs_I<foo>_args> is completely omitted."
3235 msgstr ""
3236
3237 # type: textblock
3238 #: ../src/guestfs.pod:1654
3239 msgid ""
3240 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3241 "receiver knows what type of args structure to expect, or none at all."
3242 msgstr ""
3243
3244 # type: textblock
3245 #: ../src/guestfs.pod:1658
3246 msgid "The reply message for ordinary functions is:"
3247 msgstr ""
3248
3249 # type: verbatim
3250 #: ../src/guestfs.pod:1660
3251 #, no-wrap
3252 msgid ""
3253 " total length (header + ret,\n"
3254 "      but not including the length word itself)\n"
3255 " struct guestfs_message_header (encoded as XDR)\n"
3256 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3257 "\n"
3258 msgstr ""
3259
3260 # type: textblock
3261 #: ../src/guestfs.pod:1665
3262 msgid ""
3263 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3264 "functions that return no formal return values."
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1668
3269 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3270 msgstr ""
3271
3272 # type: textblock
3273 #: ../src/guestfs.pod:1671
3274 msgid ""
3275 "In the case of an error, a flag is set in the header, and the reply message "
3276 "is slightly changed:"
3277 msgstr ""
3278
3279 # type: verbatim
3280 #: ../src/guestfs.pod:1674
3281 #, no-wrap
3282 msgid ""
3283 " total length (header + error,\n"
3284 "      but not including the length word itself)\n"
3285 " struct guestfs_message_header (encoded as XDR)\n"
3286 " struct guestfs_message_error (encoded as XDR)\n"
3287 "\n"
3288 msgstr ""
3289
3290 # type: textblock
3291 #: ../src/guestfs.pod:1679
3292 msgid ""
3293 "The C<guestfs_message_error> structure contains the error message as a "
3294 "string."
3295 msgstr ""
3296
3297 # type: =head3
3298 #: ../src/guestfs.pod:1682
3299 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3300 msgstr ""
3301
3302 # type: textblock
3303 #: ../src/guestfs.pod:1684
3304 msgid ""
3305 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3306 "The normal request message is sent (see above).  However this is followed by "
3307 "a sequence of file chunks."
3308 msgstr ""
3309
3310 # type: verbatim
3311 #: ../src/guestfs.pod:1688
3312 #, no-wrap
3313 msgid ""
3314 " total length (header + arguments,\n"
3315 "      but not including the length word itself,\n"
3316 "      and not including the chunks)\n"
3317 " struct guestfs_message_header (encoded as XDR)\n"
3318 " struct guestfs_<foo>_args (encoded as XDR)\n"
3319 " sequence of chunks for FileIn param #0\n"
3320 " sequence of chunks for FileIn param #1 etc.\n"
3321 "\n"
3322 msgstr ""
3323
3324 # type: textblock
3325 #: ../src/guestfs.pod:1696
3326 msgid "The \"sequence of chunks\" is:"
3327 msgstr ""
3328
3329 # type: verbatim
3330 #: ../src/guestfs.pod:1698
3331 #, no-wrap
3332 msgid ""
3333 " length of chunk (not including length word itself)\n"
3334 " struct guestfs_chunk (encoded as XDR)\n"
3335 " length of chunk\n"
3336 " struct guestfs_chunk (encoded as XDR)\n"
3337 "   ...\n"
3338 " length of chunk\n"
3339 " struct guestfs_chunk (with data.data_len == 0)\n"
3340 "\n"
3341 msgstr ""
3342
3343 # type: textblock
3344 #: ../src/guestfs.pod:1706
3345 msgid ""
3346 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3347 "is set in the final chunk to indicate either successful completion or early "
3348 "cancellation."
3349 msgstr ""
3350
3351 # type: textblock
3352 #: ../src/guestfs.pod:1710
3353 msgid ""
3354 "At time of writing there are no functions that have more than one FileIn "
3355 "parameter.  However this is (theoretically) supported, by sending the "
3356 "sequence of chunks for each FileIn parameter one after another (from left to "
3357 "right)."
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1715
3362 msgid ""
3363 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3364 "transfer.  The library does this by sending a chunk with a special flag set "
3365 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3366 "RPC, does I<not> send any reply, and goes back to reading the next request."
3367 msgstr ""
3368
3369 # type: textblock
3370 #: ../src/guestfs.pod:1721
3371 msgid ""
3372 "The daemon may also cancel.  It does this by writing a special word "
3373 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3374 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3375 "cancel chunk).  The special word is chosen so that even if cancellation "
3376 "happens right at the end of the transfer (after the library has finished "
3377 "writing and has started listening for the reply), the \"spurious\" cancel "
3378 "flag will not be confused with the reply message."
3379 msgstr ""
3380
3381 # type: textblock
3382 #: ../src/guestfs.pod:1730
3383 msgid ""
3384 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3385 "limit), and also files where the size is not known in advance (eg. from "
3386 "pipes or sockets).  However the chunks are rather small "
3387 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3388 "to keep much in memory."
3389 msgstr ""
3390
3391 # type: =head3
3392 #: ../src/guestfs.pod:1736
3393 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3394 msgstr ""
3395
3396 # type: textblock
3397 #: ../src/guestfs.pod:1738
3398 msgid ""
3399 "The protocol for FileOut parameters is exactly the same as for FileIn "
3400 "parameters, but with the roles of daemon and library reversed."
3401 msgstr ""
3402
3403 # type: verbatim
3404 #: ../src/guestfs.pod:1741
3405 #, no-wrap
3406 msgid ""
3407 " total length (header + ret,\n"
3408 "      but not including the length word itself,\n"
3409 "      and not including the chunks)\n"
3410 " struct guestfs_message_header (encoded as XDR)\n"
3411 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3412 " sequence of chunks for FileOut param #0\n"
3413 " sequence of chunks for FileOut param #1 etc.\n"
3414 "\n"
3415 msgstr ""
3416
3417 # type: =head3
3418 #: ../src/guestfs.pod:1749
3419 msgid "INITIAL MESSAGE"
3420 msgstr ""
3421
3422 # type: textblock
3423 #: ../src/guestfs.pod:1751
3424 msgid ""
3425 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3426 "which indicates that the guest and daemon is alive.  This is what "
3427 "L</guestfs_launch> waits for."
3428 msgstr ""
3429
3430 # type: =head3
3431 #: ../src/guestfs.pod:1755
3432 msgid "PROGRESS NOTIFICATION MESSAGES"
3433 msgstr ""
3434
3435 # type: textblock
3436 #: ../src/guestfs.pod:1757
3437 msgid ""
3438 "The daemon may send progress notification messages at any time.  These are "
3439 "distinguished by the normal length word being replaced by "
3440 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3441 msgstr ""
3442
3443 # type: textblock
3444 #: ../src/guestfs.pod:1761
3445 msgid ""
3446 "The library turns them into progress callbacks (see "
3447 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3448 "discards them if not."
3449 msgstr ""
3450
3451 # type: textblock
3452 #: ../src/guestfs.pod:1765
3453 msgid ""
3454 "The daemon self-limits the frequency of progress messages it sends (see "
3455 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3456 "messages."
3457 msgstr ""
3458
3459 # type: =head1
3460 #: ../src/guestfs.pod:1769
3461 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
3462 msgstr ""
3463
3464 # type: textblock
3465 #: ../src/guestfs.pod:1771
3466 msgid ""
3467 "All high-level libguestfs actions are synchronous.  If you want to use "
3468 "libguestfs asynchronously then you must create a thread."
3469 msgstr ""
3470
3471 # type: textblock
3472 #: ../src/guestfs.pod:1774
3473 msgid ""
3474 "Only use the handle from a single thread.  Either use the handle exclusively "
3475 "from one thread, or provide your own mutex so that two threads cannot issue "
3476 "calls on the same handle at the same time."
3477 msgstr ""
3478
3479 # type: textblock
3480 #: ../src/guestfs.pod:1778
3481 msgid ""
3482 "See the graphical program guestfs-browser for one possible architecture for "
3483 "multithreaded programs using libvirt and libguestfs."
3484 msgstr ""
3485
3486 # type: =head1
3487 #: ../src/guestfs.pod:1781
3488 msgid "QEMU WRAPPERS"
3489 msgstr ""
3490
3491 # type: textblock
3492 #: ../src/guestfs.pod:1783
3493 msgid ""
3494 "If you want to compile your own qemu, run qemu from a non-standard location, "
3495 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
3496 "around qemu."
3497 msgstr ""
3498
3499 # type: textblock
3500 #: ../src/guestfs.pod:1787
3501 msgid ""
3502 "There is one important rule to remember: you I<must C<exec qemu>> as the "
3503 "last command in the shell script (so that qemu replaces the shell and "
3504 "becomes the direct child of the libguestfs-using program).  If you don't do "
3505 "this, then the qemu process won't be cleaned up correctly."
3506 msgstr ""
3507
3508 # type: textblock
3509 #: ../src/guestfs.pod:1792
3510 msgid ""
3511 "Here is an example of a wrapper, where I have built my own copy of qemu from "
3512 "source:"
3513 msgstr ""
3514
3515 # type: verbatim
3516 #: ../src/guestfs.pod:1795
3517 #, no-wrap
3518 msgid ""
3519 " #!/bin/sh -\n"
3520 " qemudir=/home/rjones/d/qemu\n"
3521 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
3522 "\"$@\"\n"
3523 "\n"
3524 msgstr ""
3525
3526 # type: textblock
3527 #: ../src/guestfs.pod:1799
3528 msgid ""
3529 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
3530 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
3531 "example:"
3532 msgstr ""
3533
3534 # type: verbatim
3535 #: ../src/guestfs.pod:1803
3536 #, no-wrap
3537 msgid ""
3538 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
3539 "\n"
3540 msgstr ""
3541
3542 # type: textblock
3543 #: ../src/guestfs.pod:1805
3544 msgid ""
3545 "Note that libguestfs also calls qemu with the -help and -version options in "
3546 "order to determine features."
3547 msgstr ""
3548
3549 # type: =head1
3550 #: ../src/guestfs.pod:1808
3551 msgid "LIBGUESTFS VERSION NUMBERS"
3552 msgstr ""
3553
3554 # type: textblock
3555 #: ../src/guestfs.pod:1810
3556 msgid ""
3557 "Since April 2010, libguestfs has started to make separate development and "
3558 "stable releases, along with corresponding branches in our git repository.  "
3559 "These separate releases can be identified by version number:"
3560 msgstr ""
3561
3562 # type: verbatim
3563 #: ../src/guestfs.pod:1815
3564 #, no-wrap
3565 msgid ""
3566 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3567 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3568 "       |\n"
3569 "       v\n"
3570 " 1  .  3  .  5\n"
3571 " ^           ^\n"
3572 " |           |\n"
3573 " |           `-------- sub-version\n"
3574 " |\n"
3575 " `------ always '1' because we don't change the ABI\n"
3576 "\n"
3577 msgstr ""
3578
3579 # type: textblock
3580 #: ../src/guestfs.pod:1826
3581 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3582 msgstr ""
3583
3584 # type: textblock
3585 #: ../src/guestfs.pod:1828
3586 msgid ""
3587 "As time passes we cherry pick fixes from the development branch and backport "
3588 "those into the stable branch, the effect being that the stable branch should "
3589 "get more stable and less buggy over time.  So the stable releases are ideal "
3590 "for people who don't need new features but would just like the software to "
3591 "work."
3592 msgstr ""
3593
3594 # type: textblock
3595 #: ../src/guestfs.pod:1834
3596 msgid "Our criteria for backporting changes are:"
3597 msgstr ""
3598
3599 # type: textblock
3600 #: ../src/guestfs.pod:1840
3601 msgid ""
3602 "Documentation changes which don't affect any code are backported unless the "
3603 "documentation refers to a future feature which is not in stable."
3604 msgstr ""
3605
3606 # type: textblock
3607 #: ../src/guestfs.pod:1846
3608 msgid ""
3609 "Bug fixes which are not controversial, fix obvious problems, and have been "
3610 "well tested are backported."
3611 msgstr ""
3612
3613 # type: textblock
3614 #: ../src/guestfs.pod:1851
3615 msgid ""
3616 "Simple rearrangements of code which shouldn't affect how it works get "
3617 "backported.  This is so that the code in the two branches doesn't get too "
3618 "far out of step, allowing us to backport future fixes more easily."
3619 msgstr ""
3620
3621 # type: textblock
3622 #: ../src/guestfs.pod:1857
3623 msgid ""
3624 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3625 "exceptional case: the new feature is required in order to implement an "
3626 "important bug fix."
3627 msgstr ""
3628
3629 # type: textblock
3630 #: ../src/guestfs.pod:1863
3631 msgid ""
3632 "A new stable branch starts when we think the new features in development are "
3633 "substantial and compelling enough over the current stable branch to warrant "
3634 "it.  When that happens we create new stable and development versions 1.N.0 "
3635 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3636 "stable at this point, but by backporting fixes from development, that branch "
3637 "will stabilize over time."
3638 msgstr ""
3639
3640 # type: =head1
3641 #: ../src/guestfs.pod:1871 ../fish/guestfish.pod:868 ../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:894
3647 msgid "LIBGUESTFS_APPEND"
3648 msgstr ""
3649
3650 # type: textblock
3651 #: ../src/guestfs.pod:1877 ../fish/guestfish.pod:896
3652 msgid "Pass additional options to the guest kernel."
3653 msgstr ""
3654
3655 # type: =item
3656 #: ../src/guestfs.pod:1879 ../fish/guestfish.pod:898
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:903
3669 msgid "LIBGUESTFS_MEMSIZE"
3670 msgstr ""
3671
3672 # type: textblock
3673 #: ../src/guestfs.pod:1886 ../fish/guestfish.pod:905
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:908
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:910
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:915
3699 msgid "LIBGUESTFS_QEMU"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1898 ../fish/guestfish.pod:917
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:921
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:930
3728 msgid "TMPDIR"
3729 msgstr ""
3730
3731 # type: textblock
3732 #: ../src/guestfs.pod:1911 ../fish/guestfish.pod:932
3733 msgid "Location of temporary directory, defaults to C</tmp>."
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1913 ../fish/guestfish.pod:934
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:992 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:226 ../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:1009 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:237 ../inspector/virt-inspector.pl:580
3821 msgid "AUTHORS"
3822 msgstr ""
3823
3824 # type: textblock
3825 #: ../src/guestfs.pod:1983 ../fish/guestfish.pod:1011 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:239
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:1013 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:241 ../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:1015 ../fuse/guestmount.pod:243
3836 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
3837 msgstr ""
3838
3839 # type: textblock
3840 #: ../src/guestfs.pod:1990
3841 msgid ""
3842 "This library is free software; you can redistribute it and/or modify it "
3843 "under the terms of the GNU Lesser General Public License as published by the "
3844 "Free Software Foundation; either version 2 of the License, or (at your "
3845 "option) any later version."
3846 msgstr ""
3847
3848 # type: textblock
3849 #: ../src/guestfs.pod:1995
3850 msgid ""
3851 "This library is distributed in the hope that it will be useful, but WITHOUT "
3852 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3853 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3854 "for more details."
3855 msgstr ""
3856
3857 # type: textblock
3858 #: ../src/guestfs.pod:2000
3859 msgid ""
3860 "You should have received a copy of the GNU Lesser General Public License "
3861 "along with this library; if not, write to the Free Software Foundation, "
3862 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3863 msgstr ""
3864
3865 # type: =head2
3866 #: ../src/guestfs-actions.pod:1
3867 msgid "guestfs_add_cdrom"
3868 msgstr ""
3869
3870 # type: verbatim
3871 #: ../src/guestfs-actions.pod:3
3872 #, no-wrap
3873 msgid ""
3874 " int\n"
3875 " guestfs_add_cdrom (guestfs_h *g,\n"
3876 "                    const char *filename);\n"
3877 "\n"
3878 msgstr ""
3879
3880 # type: textblock
3881 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
3882 msgid "This function adds a virtual CD-ROM disk image to the guest."
3883 msgstr ""
3884
3885 # type: textblock
3886 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
3887 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
3888 msgstr ""
3889
3890 # type: textblock
3891 #: ../src/guestfs-actions.pod:17
3892 msgid ""
3893 "This call checks for the existence of C<filename>.  This stops you from "
3894 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3895 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
3896 "instead."
3897 msgstr ""
3898
3899 # type: textblock
3900 #: ../src/guestfs-actions.pod:24
3901 msgid ""
3902 "If you just want to add an ISO file (often you use this as an efficient way "
3903 "to transfer large files into the guest), then you should probably use "
3904 "C<guestfs_add_drive_ro> instead."
3905 msgstr ""
3906
3907 # type: textblock
3908 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:58 ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:156 ../src/guestfs-actions.pod:170 ../src/guestfs-actions.pod:191 ../src/guestfs-actions.pod:211 ../src/guestfs-actions.pod:225 ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:360 ../src/guestfs-actions.pod:374 ../src/guestfs-actions.pod:419 ../src/guestfs-actions.pod:447 ../src/guestfs-actions.pod:465 ../src/guestfs-actions.pod:532 ../src/guestfs-actions.pod:565 ../src/guestfs-actions.pod:579 ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:725 ../src/guestfs-actions.pod:739 ../src/guestfs-actions.pod:900 ../src/guestfs-actions.pod:920 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1059 ../src/guestfs-actions.pod:1073 ../src/guestfs-actions.pod:1093 ../src/guestfs-actions.pod:1132 ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1258 ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1653 ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:2329 ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2959 ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3119 ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3146 ../src/guestfs-actions.pod:3161 ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3270 ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:3330 ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3385 ../src/guestfs-actions.pod:3404 ../src/guestfs-actions.pod:3423 ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3522 ../src/guestfs-actions.pod:3535 ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3746 ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3782 ../src/guestfs-actions.pod:3798 ../src/guestfs-actions.pod:3812 ../src/guestfs-actions.pod:3826 ../src/guestfs-actions.pod:3843 ../src/guestfs-actions.pod:3858 ../src/guestfs-actions.pod:3878 ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:3996 ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4053 ../src/guestfs-actions.pod:4068 ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4118 ../src/guestfs-actions.pod:4138 ../src/guestfs-actions.pod:4152 ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4218 ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4332 ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4524 ../src/guestfs-actions.pod:4546 ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4679 ../src/guestfs-actions.pod:4692 ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4997 ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5042 ../src/guestfs-actions.pod:5056 ../src/guestfs-actions.pod:5068 ../src/guestfs-actions.pod:5082 ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5138 ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5175 ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5216 ../src/guestfs-actions.pod:5235 ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5275 ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5344 ../src/guestfs-actions.pod:5363 ../src/guestfs-actions.pod:5387 ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5417 ../src/guestfs-actions.pod:5436 ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5763 ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5789 ../src/guestfs-actions.pod:5811 ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:5837 ../src/guestfs-actions.pod:5850 ../src/guestfs-actions.pod:5865 ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5941 ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6023 ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6145 ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6205 ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6411 ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6470 ../src/guestfs-actions.pod:6503 ../src/guestfs-actions.pod:6557 ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:6649 ../src/guestfs-actions.pod:6668 ../src/guestfs-actions.pod:6697
3909 msgid "This function returns 0 on success or -1 on error."
3910 msgstr ""
3911
3912 # type: textblock
3913 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:172 ../src/guestfs-actions.pod:193 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:117 ../fish/guestfish-actions.pod:131
3914 msgid ""
3915 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
3916 "instead."
3917 msgstr ""
3918
3919 # type: textblock
3920 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:175 ../src/guestfs-actions.pod:196 ../src/guestfs-actions.pod:1406 ../src/guestfs-actions.pod:1892 ../src/guestfs-actions.pod:1913 ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:6760 ../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: textblock
3928 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:60 ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:1864 ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2065 ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2961 ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5404 ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6505
3929 msgid "(Added in 0.3)"
3930 msgstr ""
3931
3932 # type: =head2
3933 #: ../src/guestfs-actions.pod:41
3934 msgid "guestfs_add_drive"
3935 msgstr ""
3936
3937 # type: verbatim
3938 #: ../src/guestfs-actions.pod:43
3939 #, no-wrap
3940 msgid ""
3941 " int\n"
3942 " guestfs_add_drive (guestfs_h *g,\n"
3943 "                    const char *filename);\n"
3944 "\n"
3945 msgstr ""
3946
3947 # type: textblock
3948 #: ../src/guestfs-actions.pod:47
3949 msgid ""
3950 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
3951 "optional parameters, so the disk is added writable, with the format being "
3952 "detected automatically."
3953 msgstr ""
3954
3955 # type: textblock
3956 #: ../src/guestfs-actions.pod:51
3957 msgid ""
3958 "Automatic detection of the format opens you up to a potential security hole "
3959 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3960 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3961 "you should think about replacing calls to this function with calls to "
3962 "C<guestfs_add_drive_opts>, and specifying the format."
3963 msgstr ""
3964
3965 # type: =head2
3966 #: ../src/guestfs-actions.pod:62
3967 msgid "guestfs_add_drive_opts"
3968 msgstr ""
3969
3970 # type: verbatim
3971 #: ../src/guestfs-actions.pod:64
3972 #, no-wrap
3973 msgid ""
3974 " int\n"
3975 " guestfs_add_drive_opts (guestfs_h *g,\n"
3976 "                         const char *filename,\n"
3977 "                         ...);\n"
3978 "\n"
3979 msgstr ""
3980
3981 # type: textblock
3982 #: ../src/guestfs-actions.pod:69
3983 msgid ""
3984 "You may supply a list of optional arguments to this call.  Use zero or more "
3985 "of the following pairs of parameters, and terminate the list with C<-1> on "
3986 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
3987 msgstr ""
3988
3989 # type: verbatim
3990 #: ../src/guestfs-actions.pod:74
3991 #, no-wrap
3992 msgid ""
3993 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
3994 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
3995 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
3996 "\n"
3997 msgstr ""
3998
3999 # type: textblock
4000 #: ../src/guestfs-actions.pod:78 ../fish/guestfish-actions.pod:56
4001 msgid ""
4002 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4003 "The first time you call this function, the disk appears as C</dev/sda>, the "
4004 "second time as C</dev/sdb>, and so on."
4005 msgstr ""
4006
4007 # type: textblock
4008 #: ../src/guestfs-actions.pod:83 ../fish/guestfish-actions.pod:61
4009 msgid ""
4010 "You don't necessarily need to be root when using libguestfs.  However you "
4011 "obviously do need sufficient permissions to access the filename for whatever "
4012 "operations you want to perform (ie. read access if you just want to read the "
4013 "image or write access if you want to modify the image)."
4014 msgstr ""
4015
4016 # type: textblock
4017 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:67
4018 msgid "This call checks that C<filename> exists."
4019 msgstr ""
4020
4021 # type: textblock
4022 #: ../src/guestfs-actions.pod:91 ../fish/guestfish-actions.pod:69
4023 msgid "The optional arguments are:"
4024 msgstr ""
4025
4026 # type: =item
4027 #: ../src/guestfs-actions.pod:95 ../fish/guestfish-actions.pod:73
4028 msgid "C<readonly>"
4029 msgstr ""
4030
4031 # type: textblock
4032 #: ../src/guestfs-actions.pod:97 ../fish/guestfish-actions.pod:75
4033 msgid ""
4034 "If true then the image is treated as read-only.  Writes are still allowed, "
4035 "but they are stored in a temporary snapshot overlay which is discarded at "
4036 "the end.  The disk that you add is not modified."
4037 msgstr ""
4038
4039 # type: =item
4040 #: ../src/guestfs-actions.pod:101 ../fish/guestfish-actions.pod:79
4041 msgid "C<format>"
4042 msgstr ""
4043
4044 # type: textblock
4045 #: ../src/guestfs-actions.pod:103
4046 msgid ""
4047 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4048 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4049 "Possible formats include C<raw> and C<qcow2>."
4050 msgstr ""
4051
4052 # type: textblock
4053 #: ../src/guestfs-actions.pod:107 ../fish/guestfish-actions.pod:85
4054 msgid ""
4055 "Automatic detection of the format opens you up to a potential security hole "
4056 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4057 "RHBZ#642934.  Specifying the format closes this security hole."
4058 msgstr ""
4059
4060 # type: =item
4061 #: ../src/guestfs-actions.pod:112 ../fish/guestfish-actions.pod:90
4062 msgid "C<iface>"
4063 msgstr ""
4064
4065 # type: textblock
4066 #: ../src/guestfs-actions.pod:114
4067 msgid ""
4068 "This rarely-used option lets you emulate the behaviour of the deprecated "
4069 "C<guestfs_add_drive_with_if> call (q.v.)"
4070 msgstr ""
4071
4072 # type: textblock
4073 #: ../src/guestfs-actions.pod:121
4074 msgid "(Added in 1.5.23)"
4075 msgstr ""
4076
4077 # type: =head2
4078 #: ../src/guestfs-actions.pod:123
4079 msgid "guestfs_add_drive_opts_va"
4080 msgstr ""
4081
4082 # type: verbatim
4083 #: ../src/guestfs-actions.pod:125
4084 #, no-wrap
4085 msgid ""
4086 " int\n"
4087 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4088 "                            const char *filename,\n"
4089 "                            va_list args);\n"
4090 "\n"
4091 msgstr ""
4092
4093 # type: textblock
4094 #: ../src/guestfs-actions.pod:130
4095 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4096 msgstr ""
4097
4098 # type: textblock
4099 #: ../src/guestfs-actions.pod:132 ../src/guestfs-actions.pod:143
4100 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4101 msgstr ""
4102
4103 # type: =head2
4104 #: ../src/guestfs-actions.pod:134
4105 msgid "guestfs_add_drive_opts_argv"
4106 msgstr ""
4107
4108 # type: verbatim
4109 #: ../src/guestfs-actions.pod:136
4110 #, no-wrap
4111 msgid ""
4112 " int\n"
4113 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4114 "                              const char *filename,\n"
4115 "                              const struct guestfs_add_drive_opts_argv "
4116 "*optargs);\n"
4117 "\n"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs-actions.pod:141
4122 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4123 msgstr ""
4124
4125 # type: =head2
4126 #: ../src/guestfs-actions.pod:145
4127 msgid "guestfs_add_drive_ro"
4128 msgstr ""
4129
4130 # type: verbatim
4131 #: ../src/guestfs-actions.pod:147
4132 #, no-wrap
4133 msgid ""
4134 " int\n"
4135 " guestfs_add_drive_ro (guestfs_h *g,\n"
4136 "                       const char *filename);\n"
4137 "\n"
4138 msgstr ""
4139
4140 # type: textblock
4141 #: ../src/guestfs-actions.pod:151
4142 msgid ""
4143 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4144 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4145 "disk is added read-only, with the format being detected automatically."
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../src/guestfs-actions.pod:158
4150 msgid "(Added in 1.0.38)"
4151 msgstr ""
4152
4153 # type: =head2
4154 #: ../src/guestfs-actions.pod:160
4155 msgid "guestfs_add_drive_ro_with_if"
4156 msgstr ""
4157
4158 # type: verbatim
4159 #: ../src/guestfs-actions.pod:162
4160 #, no-wrap
4161 msgid ""
4162 " int\n"
4163 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4164 "                               const char *filename,\n"
4165 "                               const char *iface);\n"
4166 "\n"
4167 msgstr ""
4168
4169 # type: textblock
4170 #: ../src/guestfs-actions.pod:167
4171 msgid ""
4172 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4173 "QEMU interface emulation to use at run time."
4174 msgstr ""
4175
4176 # type: textblock
4177 #: ../src/guestfs-actions.pod:179 ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:2275
4178 msgid "(Added in 1.0.84)"
4179 msgstr ""
4180
4181 # type: =head2
4182 #: ../src/guestfs-actions.pod:181
4183 msgid "guestfs_add_drive_with_if"
4184 msgstr ""
4185
4186 # type: verbatim
4187 #: ../src/guestfs-actions.pod:183
4188 #, no-wrap
4189 msgid ""
4190 " int\n"
4191 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4192 "                            const char *filename,\n"
4193 "                            const char *iface);\n"
4194 "\n"
4195 msgstr ""
4196
4197 # type: textblock
4198 #: ../src/guestfs-actions.pod:188
4199 msgid ""
4200 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4201 "QEMU interface emulation to use at run time."
4202 msgstr ""
4203
4204 # type: =head2
4205 #: ../src/guestfs-actions.pod:202
4206 msgid "guestfs_aug_clear"
4207 msgstr ""
4208
4209 # type: verbatim
4210 #: ../src/guestfs-actions.pod:204
4211 #, no-wrap
4212 msgid ""
4213 " int\n"
4214 " guestfs_aug_clear (guestfs_h *g,\n"
4215 "                    const char *augpath);\n"
4216 "\n"
4217 msgstr ""
4218
4219 # type: textblock
4220 #: ../src/guestfs-actions.pod:208 ../fish/guestfish-actions.pod:142
4221 msgid ""
4222 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4223 "L<augtool(1)> C<clear> command."
4224 msgstr ""
4225
4226 # type: textblock
4227 #: ../src/guestfs-actions.pod:213 ../src/guestfs-actions.pod:2054
4228 msgid "(Added in 1.3.4)"
4229 msgstr ""
4230
4231 # type: =head2
4232 #: ../src/guestfs-actions.pod:215
4233 msgid "guestfs_aug_close"
4234 msgstr ""
4235
4236 # type: verbatim
4237 #: ../src/guestfs-actions.pod:217
4238 #, no-wrap
4239 msgid ""
4240 " int\n"
4241 " guestfs_aug_close (guestfs_h *g);\n"
4242 "\n"
4243 msgstr ""
4244
4245 # type: textblock
4246 #: ../src/guestfs-actions.pod:220
4247 msgid ""
4248 "Close the current Augeas handle and free up any resources used by it.  After "
4249 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4250 "any other Augeas functions."
4251 msgstr ""
4252
4253 # type: textblock
4254 #: ../src/guestfs-actions.pod:227 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:270 ../src/guestfs-actions.pod:284 ../src/guestfs-actions.pod:342 ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:376 ../src/guestfs-actions.pod:407 ../src/guestfs-actions.pod:421 ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:449 ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:4854
4255 msgid "(Added in 0.7)"
4256 msgstr ""
4257
4258 # type: =head2
4259 #: ../src/guestfs-actions.pod:229
4260 msgid "guestfs_aug_defnode"
4261 msgstr ""
4262
4263 # type: verbatim
4264 #: ../src/guestfs-actions.pod:231
4265 #, no-wrap
4266 msgid ""
4267 " struct guestfs_int_bool *\n"
4268 " guestfs_aug_defnode (guestfs_h *g,\n"
4269 "                      const char *name,\n"
4270 "                      const char *expr,\n"
4271 "                      const char *val);\n"
4272 "\n"
4273 msgstr ""
4274
4275 # type: textblock
4276 #: ../src/guestfs-actions.pod:237 ../fish/guestfish-actions.pod:158
4277 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4278 msgstr ""
4279
4280 # type: textblock
4281 #: ../src/guestfs-actions.pod:240
4282 msgid ""
4283 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4284 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4285 "containing that single node."
4286 msgstr ""
4287
4288 # type: textblock
4289 #: ../src/guestfs-actions.pod:244 ../fish/guestfish-actions.pod:165
4290 msgid ""
4291 "On success this returns a pair containing the number of nodes in the "
4292 "nodeset, and a boolean flag if a node was created."
4293 msgstr ""
4294
4295 # type: textblock
4296 #: ../src/guestfs-actions.pod:248
4297 msgid ""
4298 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4299 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4300 msgstr ""
4301
4302 # type: =head2
4303 #: ../src/guestfs-actions.pod:254
4304 msgid "guestfs_aug_defvar"
4305 msgstr ""
4306
4307 # type: verbatim
4308 #: ../src/guestfs-actions.pod:256
4309 #, no-wrap
4310 msgid ""
4311 " int\n"
4312 " guestfs_aug_defvar (guestfs_h *g,\n"
4313 "                     const char *name,\n"
4314 "                     const char *expr);\n"
4315 "\n"
4316 msgstr ""
4317
4318 # type: textblock
4319 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:173
4320 msgid ""
4321 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4322 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4323 msgstr ""
4324
4325 # type: textblock
4326 #: ../src/guestfs-actions.pod:265 ../fish/guestfish-actions.pod:177
4327 msgid ""
4328 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4329 "evaluates to something which is not a nodeset."
4330 msgstr ""
4331
4332 # type: textblock
4333 #: ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:611 ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1632 ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4369 ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:4803 ../src/guestfs-actions.pod:6100 ../src/guestfs-actions.pod:6516 ../src/guestfs-actions.pod:6529 ../src/guestfs-actions.pod:6542
4334 msgid "On error this function returns -1."
4335 msgstr ""
4336
4337 # type: =head2
4338 #: ../src/guestfs-actions.pod:272
4339 msgid "guestfs_aug_get"
4340 msgstr ""
4341
4342 # type: verbatim
4343 #: ../src/guestfs-actions.pod:274
4344 #, no-wrap
4345 msgid ""
4346 " char *\n"
4347 " guestfs_aug_get (guestfs_h *g,\n"
4348 "                  const char *augpath);\n"
4349 "\n"
4350 msgstr ""
4351
4352 # type: textblock
4353 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:184
4354 msgid ""
4355 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4356 "node, the C<value> is returned."
4357 msgstr ""
4358
4359 # type: textblock
4360 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:781 ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:859 ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:978 ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1164 ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1795 ../src/guestfs-actions.pod:1886 ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2077 ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:2448 ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2652 ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2713 ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3442 ../src/guestfs-actions.pod:3613 ../src/guestfs-actions.pod:3724 ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4931 ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:5543 ../src/guestfs-actions.pod:5559 ../src/guestfs-actions.pod:5576 ../src/guestfs-actions.pod:5600 ../src/guestfs-actions.pod:6264 ../src/guestfs-actions.pod:6283 ../src/guestfs-actions.pod:6301 ../src/guestfs-actions.pod:6482 ../src/guestfs-actions.pod:6754
4361 msgid ""
4362 "This function returns a string, or NULL on error.  I<The caller must free "
4363 "the returned string after use>."
4364 msgstr ""
4365
4366 # type: =head2
4367 #: ../src/guestfs-actions.pod:286
4368 msgid "guestfs_aug_init"
4369 msgstr ""
4370
4371 # type: verbatim
4372 #: ../src/guestfs-actions.pod:288
4373 #, no-wrap
4374 msgid ""
4375 " int\n"
4376 " guestfs_aug_init (guestfs_h *g,\n"
4377 "                   const char *root,\n"
4378 "                   int flags);\n"
4379 "\n"
4380 msgstr ""
4381
4382 # type: textblock
4383 #: ../src/guestfs-actions.pod:293 ../fish/guestfish-actions.pod:191
4384 msgid ""
4385 "Create a new Augeas handle for editing configuration files.  If there was "
4386 "any previous Augeas handle associated with this guestfs session, then it is "
4387 "closed."
4388 msgstr ""
4389
4390 # type: textblock
4391 #: ../src/guestfs-actions.pod:297
4392 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4393 msgstr ""
4394
4395 # type: textblock
4396 #: ../src/guestfs-actions.pod:300 ../fish/guestfish-actions.pod:198
4397 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4398 msgstr ""
4399
4400 # type: textblock
4401 #: ../src/guestfs-actions.pod:303 ../fish/guestfish-actions.pod:201
4402 msgid ""
4403 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4404 "logical I<or> of the following integers:"
4405 msgstr ""
4406
4407 # type: =item
4408 #: ../src/guestfs-actions.pod:309 ../fish/guestfish-actions.pod:207
4409 msgid "C<AUG_SAVE_BACKUP> = 1"
4410 msgstr ""
4411
4412 # type: textblock
4413 #: ../src/guestfs-actions.pod:311 ../fish/guestfish-actions.pod:209
4414 msgid "Keep the original file with a C<.augsave> extension."
4415 msgstr ""
4416
4417 # type: =item
4418 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:211
4419 msgid "C<AUG_SAVE_NEWFILE> = 2"
4420 msgstr ""
4421
4422 # type: textblock
4423 #: ../src/guestfs-actions.pod:315 ../fish/guestfish-actions.pod:213
4424 msgid ""
4425 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4426 "original.  Overrides C<AUG_SAVE_BACKUP>."
4427 msgstr ""
4428
4429 # type: =item
4430 #: ../src/guestfs-actions.pod:318 ../fish/guestfish-actions.pod:216
4431 msgid "C<AUG_TYPE_CHECK> = 4"
4432 msgstr ""
4433
4434 # type: textblock
4435 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:218
4436 msgid "Typecheck lenses (can be expensive)."
4437 msgstr ""
4438
4439 # type: =item
4440 #: ../src/guestfs-actions.pod:322 ../fish/guestfish-actions.pod:220
4441 msgid "C<AUG_NO_STDINC> = 8"
4442 msgstr ""
4443
4444 # type: textblock
4445 #: ../src/guestfs-actions.pod:324 ../fish/guestfish-actions.pod:222
4446 msgid "Do not use standard load path for modules."
4447 msgstr ""
4448
4449 # type: =item
4450 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:224
4451 msgid "C<AUG_SAVE_NOOP> = 16"
4452 msgstr ""
4453
4454 # type: textblock
4455 #: ../src/guestfs-actions.pod:328 ../fish/guestfish-actions.pod:226
4456 msgid "Make save a no-op, just record what would have been changed."
4457 msgstr ""
4458
4459 # type: =item
4460 #: ../src/guestfs-actions.pod:330 ../fish/guestfish-actions.pod:228
4461 msgid "C<AUG_NO_LOAD> = 32"
4462 msgstr ""
4463
4464 # type: textblock
4465 #: ../src/guestfs-actions.pod:332
4466 msgid "Do not load the tree in C<guestfs_aug_init>."
4467 msgstr ""
4468
4469 # type: textblock
4470 #: ../src/guestfs-actions.pod:336
4471 msgid "To close the handle, you can call C<guestfs_aug_close>."
4472 msgstr ""
4473
4474 # type: textblock
4475 #: ../src/guestfs-actions.pod:338 ../fish/guestfish-actions.pod:236
4476 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4477 msgstr ""
4478
4479 # type: =head2
4480 #: ../src/guestfs-actions.pod:344
4481 msgid "guestfs_aug_insert"
4482 msgstr ""
4483
4484 # type: verbatim
4485 #: ../src/guestfs-actions.pod:346
4486 #, no-wrap
4487 msgid ""
4488 " int\n"
4489 " guestfs_aug_insert (guestfs_h *g,\n"
4490 "                     const char *augpath,\n"
4491 "                     const char *label,\n"
4492 "                     int before);\n"
4493 "\n"
4494 msgstr ""
4495
4496 # type: textblock
4497 #: ../src/guestfs-actions.pod:352 ../fish/guestfish-actions.pod:242
4498 msgid ""
4499 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4500 "or after C<path> (depending on the boolean flag C<before>)."
4501 msgstr ""
4502
4503 # type: textblock
4504 #: ../src/guestfs-actions.pod:356 ../fish/guestfish-actions.pod:246
4505 msgid ""
4506 "C<path> must match exactly one existing node in the tree, and C<label> must "
4507 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4508 msgstr ""
4509
4510 # type: =head2
4511 #: ../src/guestfs-actions.pod:364
4512 msgid "guestfs_aug_load"
4513 msgstr ""
4514
4515 # type: verbatim
4516 #: ../src/guestfs-actions.pod:366
4517 #, no-wrap
4518 msgid ""
4519 " int\n"
4520 " guestfs_aug_load (guestfs_h *g);\n"
4521 "\n"
4522 msgstr ""
4523
4524 # type: textblock
4525 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:254
4526 msgid "Load files into the tree."
4527 msgstr ""
4528
4529 # type: textblock
4530 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:256
4531 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4532 msgstr ""
4533
4534 # type: =head2
4535 #: ../src/guestfs-actions.pod:378
4536 msgid "guestfs_aug_ls"
4537 msgstr ""
4538
4539 # type: verbatim
4540 #: ../src/guestfs-actions.pod:380
4541 #, no-wrap
4542 msgid ""
4543 " char **\n"
4544 " guestfs_aug_ls (guestfs_h *g,\n"
4545 "                 const char *augpath);\n"
4546 "\n"
4547 msgstr ""
4548
4549 # type: textblock
4550 #: ../src/guestfs-actions.pod:384
4551 msgid ""
4552 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4553 "sorting the resulting nodes into alphabetical order."
4554 msgstr ""
4555
4556 # type: textblock
4557 #: ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:403 ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:997 ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1468 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:2120 ../src/guestfs-actions.pod:2136 ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2222 ../src/guestfs-actions.pod:2293 ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3011 ../src/guestfs-actions.pod:3073 ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3584 ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4723 ../src/guestfs-actions.pod:4850 ../src/guestfs-actions.pod:4965 ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5677 ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:5902 ../src/guestfs-actions.pod:6374 ../src/guestfs-actions.pod:6394 ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6711 ../src/guestfs-actions.pod:6730 ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:6795
4558 msgid ""
4559 "This function returns a NULL-terminated array of strings (like "
4560 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4561 "strings and the array after use>."
4562 msgstr ""
4563
4564 # type: textblock
4565 #: ../src/guestfs-actions.pod:391 ../src/guestfs-actions.pod:922 ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1384 ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3475 ../src/guestfs-actions.pod:3664 ../src/guestfs-actions.pod:3697 ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4664 ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5058 ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6129 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6562 ../src/guestfs-actions.pod:6595
4566 msgid "(Added in 0.8)"
4567 msgstr ""
4568
4569 # type: =head2
4570 #: ../src/guestfs-actions.pod:393
4571 msgid "guestfs_aug_match"
4572 msgstr ""
4573
4574 # type: verbatim
4575 #: ../src/guestfs-actions.pod:395
4576 #, no-wrap
4577 msgid ""
4578 " char **\n"
4579 " guestfs_aug_match (guestfs_h *g,\n"
4580 "                    const char *augpath);\n"
4581 "\n"
4582 msgstr ""
4583
4584 # type: textblock
4585 #: ../src/guestfs-actions.pod:399 ../fish/guestfish-actions.pod:270
4586 msgid ""
4587 "Returns a list of paths which match the path expression C<path>.  The "
4588 "returned paths are sufficiently qualified so that they match exactly one "
4589 "node in the current tree."
4590 msgstr ""
4591
4592 # type: =head2
4593 #: ../src/guestfs-actions.pod:409
4594 msgid "guestfs_aug_mv"
4595 msgstr ""
4596
4597 # type: verbatim
4598 #: ../src/guestfs-actions.pod:411
4599 #, no-wrap
4600 msgid ""
4601 " int\n"
4602 " guestfs_aug_mv (guestfs_h *g,\n"
4603 "                 const char *src,\n"
4604 "                 const char *dest);\n"
4605 "\n"
4606 msgstr ""
4607
4608 # type: textblock
4609 #: ../src/guestfs-actions.pod:416 ../fish/guestfish-actions.pod:278
4610 msgid ""
4611 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4612 "C<dest> is overwritten if it exists."
4613 msgstr ""
4614
4615 # type: =head2
4616 #: ../src/guestfs-actions.pod:423
4617 msgid "guestfs_aug_rm"
4618 msgstr ""
4619
4620 # type: verbatim
4621 #: ../src/guestfs-actions.pod:425
4622 #, no-wrap
4623 msgid ""
4624 " int\n"
4625 " guestfs_aug_rm (guestfs_h *g,\n"
4626 "                 const char *augpath);\n"
4627 "\n"
4628 msgstr ""
4629
4630 # type: textblock
4631 #: ../src/guestfs-actions.pod:429 ../fish/guestfish-actions.pod:285
4632 msgid "Remove C<path> and all of its children."
4633 msgstr ""
4634
4635 # type: textblock
4636 #: ../src/guestfs-actions.pod:431 ../fish/guestfish-actions.pod:287
4637 msgid "On success this returns the number of entries which were removed."
4638 msgstr ""
4639
4640 # type: =head2
4641 #: ../src/guestfs-actions.pod:437
4642 msgid "guestfs_aug_save"
4643 msgstr ""
4644
4645 # type: verbatim
4646 #: ../src/guestfs-actions.pod:439
4647 #, no-wrap
4648 msgid ""
4649 " int\n"
4650 " guestfs_aug_save (guestfs_h *g);\n"
4651 "\n"
4652 msgstr ""
4653
4654 # type: textblock
4655 #: ../src/guestfs-actions.pod:442 ../fish/guestfish-actions.pod:293
4656 msgid "This writes all pending changes to disk."
4657 msgstr ""
4658
4659 # type: textblock
4660 #: ../src/guestfs-actions.pod:444
4661 msgid ""
4662 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
4663 "are saved."
4664 msgstr ""
4665
4666 # type: =head2
4667 #: ../src/guestfs-actions.pod:451
4668 msgid "guestfs_aug_set"
4669 msgstr ""
4670
4671 # type: verbatim
4672 #: ../src/guestfs-actions.pod:453
4673 #, no-wrap
4674 msgid ""
4675 " int\n"
4676 " guestfs_aug_set (guestfs_h *g,\n"
4677 "                  const char *augpath,\n"
4678 "                  const char *val);\n"
4679 "\n"
4680 msgstr ""
4681
4682 # type: textblock
4683 #: ../src/guestfs-actions.pod:458 ../fish/guestfish-actions.pod:302
4684 msgid "Set the value associated with C<path> to C<val>."
4685 msgstr ""
4686
4687 # type: textblock
4688 #: ../src/guestfs-actions.pod:460
4689 msgid ""
4690 "In the Augeas API, it is possible to clear a node by setting the value to "
4691 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4692 "this call.  Instead you must use the C<guestfs_aug_clear> call."
4693 msgstr ""
4694
4695 # type: =head2
4696 #: ../src/guestfs-actions.pod:469
4697 msgid "guestfs_available"
4698 msgstr ""
4699
4700 # type: verbatim
4701 #: ../src/guestfs-actions.pod:471
4702 #, no-wrap
4703 msgid ""
4704 " int\n"
4705 " guestfs_available (guestfs_h *g,\n"
4706 "                    char *const *groups);\n"
4707 "\n"
4708 msgstr ""
4709
4710 # type: textblock
4711 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:313
4712 msgid ""
4713 "This command is used to check the availability of some groups of "
4714 "functionality in the appliance, which not all builds of the libguestfs "
4715 "appliance will be able to provide."
4716 msgstr ""
4717
4718 # type: textblock
4719 #: ../src/guestfs-actions.pod:479
4720 msgid ""
4721 "The libguestfs groups, and the functions that those groups correspond to, "
4722 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4723 "runtime by calling C<guestfs_available_all_groups>."
4724 msgstr ""
4725
4726 # type: textblock
4727 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:322
4728 msgid ""
4729 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4730 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4731 "and Augeas (configuration file editing) functions."
4732 msgstr ""
4733
4734 # type: textblock
4735 #: ../src/guestfs-actions.pod:489 ../fish/guestfish-actions.pod:327
4736 msgid "The command returns no error if I<all> requested groups are available."
4737 msgstr ""
4738
4739 # type: textblock
4740 #: ../src/guestfs-actions.pod:491 ../fish/guestfish-actions.pod:329
4741 msgid ""
4742 "It fails with an error if one or more of the requested groups is unavailable "
4743 "in the appliance."
4744 msgstr ""
4745
4746 # type: textblock
4747 #: ../src/guestfs-actions.pod:494 ../fish/guestfish-actions.pod:332
4748 msgid ""
4749 "If an unknown group name is included in the list of groups then an error is "
4750 "always returned."
4751 msgstr ""
4752
4753 # type: textblock
4754 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:335
4755 msgid "I<Notes:>"
4756 msgstr ""
4757
4758 # type: textblock
4759 #: ../src/guestfs-actions.pod:503
4760 msgid "You must call C<guestfs_launch> before calling this function."
4761 msgstr ""
4762
4763 # type: textblock
4764 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:343
4765 msgid ""
4766 "The reason is because we don't know what groups are supported by the "
4767 "appliance/daemon until it is running and can be queried."
4768 msgstr ""
4769
4770 # type: textblock
4771 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:349
4772 msgid ""
4773 "If a group of functions is available, this does not necessarily mean that "
4774 "they will work.  You still have to check for errors when calling individual "
4775 "API functions even if they are available."
4776 msgstr ""
4777
4778 # type: textblock
4779 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:356
4780 msgid ""
4781 "It is usually the job of distro packagers to build complete functionality "
4782 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4783 "with all requirements satisfied, will support everything."
4784 msgstr ""
4785
4786 # type: textblock
4787 #: ../src/guestfs-actions.pod:525
4788 msgid ""
4789 "This call was added in version C<1.0.80>.  In previous versions of "
4790 "libguestfs all you could do would be to speculatively execute a command to "
4791 "find out if the daemon implemented it.  See also C<guestfs_version>."
4792 msgstr ""
4793
4794 # type: textblock
4795 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:1095
4796 msgid "(Added in 1.0.80)"
4797 msgstr ""
4798
4799 # type: =head2
4800 #: ../src/guestfs-actions.pod:536
4801 msgid "guestfs_available_all_groups"
4802 msgstr ""
4803
4804 # type: verbatim
4805 #: ../src/guestfs-actions.pod:538
4806 #, no-wrap
4807 msgid ""
4808 " char **\n"
4809 " guestfs_available_all_groups (guestfs_h *g);\n"
4810 "\n"
4811 msgstr ""
4812
4813 # type: textblock
4814 #: ../src/guestfs-actions.pod:541
4815 msgid ""
4816 "This command returns a list of all optional groups that this daemon knows "
4817 "about.  Note this returns both supported and unsupported groups.  To find "
4818 "out which ones the daemon can actually support you have to call "
4819 "C<guestfs_available> on each member of the returned list."
4820 msgstr ""
4821
4822 # type: textblock
4823 #: ../src/guestfs-actions.pod:547
4824 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
4825 msgstr ""
4826
4827 # type: textblock
4828 #: ../src/guestfs-actions.pod:553
4829 msgid "(Added in 1.3.15)"
4830 msgstr ""
4831
4832 # type: =head2
4833 #: ../src/guestfs-actions.pod:555
4834 msgid "guestfs_base64_in"
4835 msgstr ""
4836
4837 # type: verbatim
4838 #: ../src/guestfs-actions.pod:557
4839 #, no-wrap
4840 msgid ""
4841 " int\n"
4842 " guestfs_base64_in (guestfs_h *g,\n"
4843 "                    const char *base64file,\n"
4844 "                    const char *filename);\n"
4845 "\n"
4846 msgstr ""
4847
4848 # type: textblock
4849 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:386
4850 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4851 msgstr ""
4852
4853 # type: textblock
4854 #: ../src/guestfs-actions.pod:567 ../src/guestfs-actions.pod:581 ../src/guestfs-actions.pod:1134
4855 msgid "(Added in 1.3.5)"
4856 msgstr ""
4857
4858 # type: =head2
4859 #: ../src/guestfs-actions.pod:569
4860 msgid "guestfs_base64_out"
4861 msgstr ""
4862
4863 # type: verbatim
4864 #: ../src/guestfs-actions.pod:571
4865 #, no-wrap
4866 msgid ""
4867 " int\n"
4868 " guestfs_base64_out (guestfs_h *g,\n"
4869 "                     const char *filename,\n"
4870 "                     const char *base64file);\n"
4871 "\n"
4872 msgstr ""
4873
4874 # type: textblock
4875 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:395
4876 msgid ""
4877 "This command downloads the contents of C<filename>, writing it out to local "
4878 "file C<base64file> encoded as base64."
4879 msgstr ""
4880
4881 # type: =head2
4882 #: ../src/guestfs-actions.pod:583
4883 msgid "guestfs_blockdev_flushbufs"
4884 msgstr ""
4885
4886 # type: verbatim
4887 #: ../src/guestfs-actions.pod:585
4888 #, no-wrap
4889 msgid ""
4890 " int\n"
4891 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
4892 "                             const char *device);\n"
4893 "\n"
4894 msgstr ""
4895
4896 # type: textblock
4897 #: ../src/guestfs-actions.pod:589 ../fish/guestfish-actions.pod:404
4898 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4899 msgstr ""
4900
4901 # type: textblock
4902 #: ../src/guestfs-actions.pod:592 ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:624 ../src/guestfs-actions.pod:640 ../src/guestfs-actions.pod:658 ../src/guestfs-actions.pod:677 ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:709 ../src/guestfs-actions.pod:723 ../src/guestfs-actions.pod:737 ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:418 ../fish/guestfish-actions.pod:427 ../fish/guestfish-actions.pod:437 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:462 ../fish/guestfish-actions.pod:470 ../fish/guestfish-actions.pod:481 ../fish/guestfish-actions.pod:489 ../fish/guestfish-actions.pod:497
4903 msgid "This uses the L<blockdev(8)> command."
4904 msgstr ""
4905
4906 # type: textblock
4907 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:613 ../src/guestfs-actions.pod:628 ../src/guestfs-actions.pod:644 ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:727 ../src/guestfs-actions.pod:741
4908 msgid "(Added in 0.9.3)"
4909 msgstr ""
4910
4911 # type: =head2
4912 #: ../src/guestfs-actions.pod:598
4913 msgid "guestfs_blockdev_getbsz"
4914 msgstr ""
4915
4916 # type: verbatim
4917 #: ../src/guestfs-actions.pod:600
4918 #, no-wrap
4919 msgid ""
4920 " int\n"
4921 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
4922 "                          const char *device);\n"
4923 "\n"
4924 msgstr ""
4925
4926 # type: textblock
4927 #: ../src/guestfs-actions.pod:604 ../fish/guestfish-actions.pod:413
4928 msgid "This returns the block size of a device."
4929 msgstr ""
4930
4931 # type: textblock
4932 #: ../src/guestfs-actions.pod:606 ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:415 ../fish/guestfish-actions.pod:478
4933 msgid ""
4934 "(Note this is different from both I<size in blocks> and I<filesystem block "
4935 "size>)."
4936 msgstr ""
4937
4938 # type: =head2
4939 #: ../src/guestfs-actions.pod:615
4940 msgid "guestfs_blockdev_getro"
4941 msgstr ""
4942
4943 # type: verbatim
4944 #: ../src/guestfs-actions.pod:617
4945 #, no-wrap
4946 msgid ""
4947 " int\n"
4948 " guestfs_blockdev_getro (guestfs_h *g,\n"
4949 "                         const char *device);\n"
4950 "\n"
4951 msgstr ""
4952
4953 # type: textblock
4954 #: ../src/guestfs-actions.pod:621 ../fish/guestfish-actions.pod:424
4955 msgid ""
4956 "Returns a boolean indicating if the block device is read-only (true if "
4957 "read-only, false if not)."
4958 msgstr ""
4959
4960 # type: textblock
4961 #: ../src/guestfs-actions.pod:626 ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1862 ../src/guestfs-actions.pod:1873 ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2000 ../src/guestfs-actions.pod:2015 ../src/guestfs-actions.pod:2040 ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:2772 ../src/guestfs-actions.pod:2786 ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2815 ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2862 ../src/guestfs-actions.pod:2876 ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:2918 ../src/guestfs-actions.pod:2933 ../src/guestfs-actions.pod:4351
4962 msgid "This function returns a C truth value on success or -1 on error."
4963 msgstr ""
4964
4965 # type: =head2
4966 #: ../src/guestfs-actions.pod:630
4967 msgid "guestfs_blockdev_getsize64"
4968 msgstr ""
4969
4970 # type: verbatim
4971 #: ../src/guestfs-actions.pod:632
4972 #, no-wrap
4973 msgid ""
4974 " int64_t\n"
4975 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
4976 "                             const char *device);\n"
4977 "\n"
4978 msgstr ""
4979
4980 # type: textblock
4981 #: ../src/guestfs-actions.pod:636 ../fish/guestfish-actions.pod:433
4982 msgid "This returns the size of the device in bytes."
4983 msgstr ""
4984
4985 # type: textblock
4986 #: ../src/guestfs-actions.pod:638
4987 msgid "See also C<guestfs_blockdev_getsz>."
4988 msgstr ""
4989
4990 # type: =head2
4991 #: ../src/guestfs-actions.pod:646
4992 msgid "guestfs_blockdev_getss"
4993 msgstr ""
4994
4995 # type: verbatim
4996 #: ../src/guestfs-actions.pod:648
4997 #, no-wrap
4998 msgid ""
4999 " int\n"
5000 " guestfs_blockdev_getss (guestfs_h *g,\n"
5001 "                         const char *device);\n"
5002 "\n"
5003 msgstr ""
5004
5005 # type: textblock
5006 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:443
5007 msgid ""
5008 "This returns the size of sectors on a block device.  Usually 512, but can be "
5009 "larger for modern devices."
5010 msgstr ""
5011
5012 # type: textblock
5013 #: ../src/guestfs-actions.pod:655
5014 msgid ""
5015 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5016 "that)."
5017 msgstr ""
5018
5019 # type: =head2
5020 #: ../src/guestfs-actions.pod:664
5021 msgid "guestfs_blockdev_getsz"
5022 msgstr ""
5023
5024 # type: verbatim
5025 #: ../src/guestfs-actions.pod:666
5026 #, no-wrap
5027 msgid ""
5028 " int64_t\n"
5029 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5030 "                         const char *device);\n"
5031 "\n"
5032 msgstr ""
5033
5034 # type: textblock
5035 #: ../src/guestfs-actions.pod:670 ../fish/guestfish-actions.pod:455
5036 msgid ""
5037 "This returns the size of the device in units of 512-byte sectors (even if "
5038 "the sectorsize isn't 512 bytes ... weird)."
5039 msgstr ""
5040
5041 # type: textblock
5042 #: ../src/guestfs-actions.pod:673
5043 msgid ""
5044 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5045 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5046 msgstr ""
5047
5048 # type: =head2
5049 #: ../src/guestfs-actions.pod:683
5050 msgid "guestfs_blockdev_rereadpt"
5051 msgstr ""
5052
5053 # type: verbatim
5054 #: ../src/guestfs-actions.pod:685
5055 #, no-wrap
5056 msgid ""
5057 " int\n"
5058 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5059 "                            const char *device);\n"
5060 "\n"
5061 msgstr ""
5062
5063 # type: textblock
5064 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:468
5065 msgid "Reread the partition table on C<device>."
5066 msgstr ""
5067
5068 # type: =head2
5069 #: ../src/guestfs-actions.pod:697
5070 msgid "guestfs_blockdev_setbsz"
5071 msgstr ""
5072
5073 # type: verbatim
5074 #: ../src/guestfs-actions.pod:699
5075 #, no-wrap
5076 msgid ""
5077 " int\n"
5078 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5079 "                          const char *device,\n"
5080 "                          int blocksize);\n"
5081 "\n"
5082 msgstr ""
5083
5084 # type: textblock
5085 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:476
5086 msgid "This sets the block size of a device."
5087 msgstr ""
5088
5089 # type: =head2
5090 #: ../src/guestfs-actions.pod:715
5091 msgid "guestfs_blockdev_setro"
5092 msgstr ""
5093
5094 # type: verbatim
5095 #: ../src/guestfs-actions.pod:717
5096 #, no-wrap
5097 msgid ""
5098 " int\n"
5099 " guestfs_blockdev_setro (guestfs_h *g,\n"
5100 "                         const char *device);\n"
5101 "\n"
5102 msgstr ""
5103
5104 # type: textblock
5105 #: ../src/guestfs-actions.pod:721 ../fish/guestfish-actions.pod:487
5106 msgid "Sets the block device named C<device> to read-only."
5107 msgstr ""
5108
5109 # type: =head2
5110 #: ../src/guestfs-actions.pod:729
5111 msgid "guestfs_blockdev_setrw"
5112 msgstr ""
5113
5114 # type: verbatim
5115 #: ../src/guestfs-actions.pod:731
5116 #, no-wrap
5117 msgid ""
5118 " int\n"
5119 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5120 "                         const char *device);\n"
5121 "\n"
5122 msgstr ""
5123
5124 # type: textblock
5125 #: ../src/guestfs-actions.pod:735 ../fish/guestfish-actions.pod:495
5126 msgid "Sets the block device named C<device> to read-write."
5127 msgstr ""
5128
5129 # type: =head2
5130 #: ../src/guestfs-actions.pod:743
5131 msgid "guestfs_case_sensitive_path"
5132 msgstr ""
5133
5134 # type: verbatim
5135 #: ../src/guestfs-actions.pod:745
5136 #, no-wrap
5137 msgid ""
5138 " char *\n"
5139 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5140 "                              const char *path);\n"
5141 "\n"
5142 msgstr ""
5143
5144 # type: textblock
5145 #: ../src/guestfs-actions.pod:749 ../fish/guestfish-actions.pod:503
5146 msgid ""
5147 "This can be used to resolve case insensitive paths on a filesystem which is "
5148 "case sensitive.  The use case is to resolve paths which you have read from "
5149 "Windows configuration files or the Windows Registry, to the true path."
5150 msgstr ""
5151
5152 # type: textblock
5153 #: ../src/guestfs-actions.pod:754 ../fish/guestfish-actions.pod:508
5154 msgid ""
5155 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5156 "(and probably others), which is that although the underlying filesystem is "
5157 "case-insensitive, the driver exports the filesystem to Linux as "
5158 "case-sensitive."
5159 msgstr ""
5160
5161 # type: textblock
5162 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:513
5163 msgid ""
5164 "One consequence of this is that special directories such as C<c:\\windows> "
5165 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5166 "precise details of how they were created.  In Windows itself this would not "
5167 "be a problem."
5168 msgstr ""
5169
5170 # type: textblock
5171 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:519
5172 msgid ""
5173 "Bug or feature? You decide: "
5174 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5175 msgstr ""
5176
5177 # type: textblock
5178 #: ../src/guestfs-actions.pod:768 ../fish/guestfish-actions.pod:522
5179 msgid ""
5180 "This function resolves the true case of each element in the path and returns "
5181 "the case-sensitive path."
5182 msgstr ""
5183
5184 # type: textblock
5185 #: ../src/guestfs-actions.pod:771
5186 msgid ""
5187 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5188 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5189 "how the directories were originally created under Windows)."
5190 msgstr ""
5191
5192 # type: textblock
5193 #: ../src/guestfs-actions.pod:776 ../fish/guestfish-actions.pod:530
5194 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5195 msgstr ""
5196
5197 # type: textblock
5198 #: ../src/guestfs-actions.pod:779
5199 msgid "See also C<guestfs_realpath>."
5200 msgstr ""
5201
5202 # type: textblock
5203 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:6286
5204 msgid "(Added in 1.0.75)"
5205 msgstr ""
5206
5207 # type: =head2
5208 #: ../src/guestfs-actions.pod:786
5209 msgid "guestfs_cat"
5210 msgstr ""
5211
5212 # type: verbatim
5213 #: ../src/guestfs-actions.pod:788
5214 #, no-wrap
5215 msgid ""
5216 " char *\n"
5217 " guestfs_cat (guestfs_h *g,\n"
5218 "              const char *path);\n"
5219 "\n"
5220 msgstr ""
5221
5222 # type: textblock
5223 #: ../src/guestfs-actions.pod:792 ../src/guestfs-actions.pod:4840 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:3197
5224 msgid "Return the contents of the file named C<path>."
5225 msgstr ""
5226
5227 # type: textblock
5228 #: ../src/guestfs-actions.pod:794
5229 msgid ""
5230 "Note that this function cannot correctly handle binary files (specifically, "
5231 "files containing C<\\0> character which is treated as end of string).  For "
5232 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5233 "functions which have a more complex interface."
5234 msgstr ""
5235
5236 # type: textblock
5237 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:981 ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1331 ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1472 ../src/guestfs-actions.pod:1721 ../src/guestfs-actions.pod:2140 ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:2202 ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:4805 ../src/guestfs-actions.pod:4829 ../src/guestfs-actions.pod:5681 ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5882 ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6559 ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6715 ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6799 ../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
5238 msgid ""
5239 "Because of the message protocol, there is a transfer limit of somewhere "
5240 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5241 msgstr ""
5242
5243 # type: textblock
5244 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:3015 ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3094 ../src/guestfs-actions.pod:3182 ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:6445 ../src/guestfs-actions.pod:6460
5245 msgid "(Added in 0.4)"
5246 msgstr ""
5247
5248 # type: =head2
5249 #: ../src/guestfs-actions.pod:807
5250 msgid "guestfs_checksum"
5251 msgstr ""
5252
5253 # type: verbatim
5254 #: ../src/guestfs-actions.pod:809
5255 #, no-wrap
5256 msgid ""
5257 " char *\n"
5258 " guestfs_checksum (guestfs_h *g,\n"
5259 "                   const char *csumtype,\n"
5260 "                   const char *path);\n"
5261 "\n"
5262 msgstr ""
5263
5264 # type: textblock
5265 #: ../src/guestfs-actions.pod:814 ../fish/guestfish-actions.pod:553
5266 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5267 msgstr ""
5268
5269 # type: textblock
5270 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:556
5271 msgid ""
5272 "The type of checksum to compute is given by the C<csumtype> parameter which "
5273 "must have one of the following values:"
5274 msgstr ""
5275
5276 # type: =item
5277 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:561
5278 msgid "C<crc>"
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:563
5283 msgid ""
5284 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5285 "C<cksum> command."
5286 msgstr ""
5287
5288 # type: =item
5289 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:566
5290 msgid "C<md5>"
5291 msgstr ""
5292
5293 # type: textblock
5294 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:568
5295 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5296 msgstr ""
5297
5298 # type: =item
5299 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:570
5300 msgid "C<sha1>"
5301 msgstr ""
5302
5303 # type: textblock
5304 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:572
5305 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5306 msgstr ""
5307
5308 # type: =item
5309 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:574
5310 msgid "C<sha224>"
5311 msgstr ""
5312
5313 # type: textblock
5314 #: ../src/guestfs-actions.pod:837 ../fish/guestfish-actions.pod:576
5315 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5316 msgstr ""
5317
5318 # type: =item
5319 #: ../src/guestfs-actions.pod:839 ../fish/guestfish-actions.pod:578
5320 msgid "C<sha256>"
5321 msgstr ""
5322
5323 # type: textblock
5324 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:580
5325 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5326 msgstr ""
5327
5328 # type: =item
5329 #: ../src/guestfs-actions.pod:843 ../fish/guestfish-actions.pod:582
5330 msgid "C<sha384>"
5331 msgstr ""
5332
5333 # type: textblock
5334 #: ../src/guestfs-actions.pod:845 ../fish/guestfish-actions.pod:584
5335 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5336 msgstr ""
5337
5338 # type: =item
5339 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:586
5340 msgid "C<sha512>"
5341 msgstr ""
5342
5343 # type: textblock
5344 #: ../src/guestfs-actions.pod:849 ../fish/guestfish-actions.pod:588
5345 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5346 msgstr ""
5347
5348 # type: textblock
5349 #: ../src/guestfs-actions.pod:853 ../fish/guestfish-actions.pod:592
5350 msgid "The checksum is returned as a printable string."
5351 msgstr ""
5352
5353 # type: textblock
5354 #: ../src/guestfs-actions.pod:855
5355 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5356 msgstr ""
5357
5358 # type: textblock
5359 #: ../src/guestfs-actions.pod:857
5360 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5361 msgstr ""
5362
5363 # type: textblock
5364 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:1209 ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:2905 ../src/guestfs-actions.pod:6147
5365 msgid "(Added in 1.0.2)"
5366 msgstr ""
5367
5368 # type: =head2
5369 #: ../src/guestfs-actions.pod:864
5370 msgid "guestfs_checksum_device"
5371 msgstr ""
5372
5373 # type: verbatim
5374 #: ../src/guestfs-actions.pod:866
5375 #, no-wrap
5376 msgid ""
5377 " char *\n"
5378 " guestfs_checksum_device (guestfs_h *g,\n"
5379 "                          const char *csumtype,\n"
5380 "                          const char *device);\n"
5381 "\n"
5382 msgstr ""
5383
5384 # type: textblock
5385 #: ../src/guestfs-actions.pod:871
5386 msgid ""
5387 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5388 "device named C<device>.  For the types of checksums supported see the "
5389 "C<guestfs_checksum> command."
5390 msgstr ""
5391
5392 # type: textblock
5393 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:4257 ../src/guestfs-actions.pod:4316 ../src/guestfs-actions.pod:4353 ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:6061 ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6472
5394 msgid "(Added in 1.3.2)"
5395 msgstr ""
5396
5397 # type: =head2
5398 #: ../src/guestfs-actions.pod:880
5399 msgid "guestfs_checksums_out"
5400 msgstr ""
5401
5402 # type: verbatim
5403 #: ../src/guestfs-actions.pod:882
5404 #, no-wrap
5405 msgid ""
5406 " int\n"
5407 " guestfs_checksums_out (guestfs_h *g,\n"
5408 "                        const char *csumtype,\n"
5409 "                        const char *directory,\n"
5410 "                        const char *sumsfile);\n"
5411 "\n"
5412 msgstr ""
5413
5414 # type: textblock
5415 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:610
5416 msgid ""
5417 "This command computes the checksums of all regular files in C<directory> and "
5418 "then emits a list of those checksums to the local output file C<sumsfile>."
5419 msgstr ""
5420
5421 # type: textblock
5422 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:614
5423 msgid ""
5424 "This can be used for verifying the integrity of a virtual machine.  However "
5425 "to be properly secure you should pay attention to the output of the checksum "
5426 "command (it uses the ones from GNU coreutils).  In particular when the "
5427 "filename is not printable, coreutils uses a special backslash syntax.  For "
5428 "more information, see the GNU coreutils info file."
5429 msgstr ""
5430
5431 # type: textblock
5432 #: ../src/guestfs-actions.pod:902
5433 msgid "(Added in 1.3.7)"
5434 msgstr ""
5435
5436 # type: =head2
5437 #: ../src/guestfs-actions.pod:904
5438 msgid "guestfs_chmod"
5439 msgstr ""
5440
5441 # type: verbatim
5442 #: ../src/guestfs-actions.pod:906
5443 #, no-wrap
5444 msgid ""
5445 " int\n"
5446 " guestfs_chmod (guestfs_h *g,\n"
5447 "                int mode,\n"
5448 "                const char *path);\n"
5449 "\n"
5450 msgstr ""
5451
5452 # type: textblock
5453 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:628
5454 msgid ""
5455 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5456 "supported."
5457 msgstr ""
5458
5459 # type: textblock
5460 #: ../src/guestfs-actions.pod:914 ../fish/guestfish-actions.pod:631
5461 msgid ""
5462 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5463 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5464 "C<700>."
5465 msgstr ""
5466
5467 # type: textblock
5468 #: ../src/guestfs-actions.pod:918 ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:3956 ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3994 ../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
5469 msgid "The mode actually set is affected by the umask."
5470 msgstr ""
5471
5472 # type: =head2
5473 #: ../src/guestfs-actions.pod:924
5474 msgid "guestfs_chown"
5475 msgstr ""
5476
5477 # type: verbatim
5478 #: ../src/guestfs-actions.pod:926
5479 #, no-wrap
5480 msgid ""
5481 " int\n"
5482 " guestfs_chown (guestfs_h *g,\n"
5483 "                int owner,\n"
5484 "                int group,\n"
5485 "                const char *path);\n"
5486 "\n"
5487 msgstr ""
5488
5489 # type: textblock
5490 #: ../src/guestfs-actions.pod:932 ../fish/guestfish-actions.pod:641
5491 msgid "Change the file owner to C<owner> and group to C<group>."
5492 msgstr ""
5493
5494 # type: textblock
5495 #: ../src/guestfs-actions.pod:934 ../src/guestfs-actions.pod:2975 ../fish/guestfish-actions.pod:643 ../fish/guestfish-actions.pod:2035
5496 msgid ""
5497 "Only numeric uid and gid are supported.  If you want to use names, you will "
5498 "need to locate and parse the password file yourself (Augeas support makes "
5499 "this relatively easy)."
5500 msgstr ""
5501
5502 # type: =head2
5503 #: ../src/guestfs-actions.pod:942
5504 msgid "guestfs_command"
5505 msgstr ""
5506
5507 # type: verbatim
5508 #: ../src/guestfs-actions.pod:944
5509 #, no-wrap
5510 msgid ""
5511 " char *\n"
5512 " guestfs_command (guestfs_h *g,\n"
5513 "                  char *const *arguments);\n"
5514 "\n"
5515 msgstr ""
5516
5517 # type: textblock
5518 #: ../src/guestfs-actions.pod:948 ../fish/guestfish-actions.pod:651
5519 msgid ""
5520 "This call runs a command from the guest filesystem.  The filesystem must be "
5521 "mounted, and must contain a compatible operating system (ie. something "
5522 "Linux, with the same or compatible processor architecture)."
5523 msgstr ""
5524
5525 # type: textblock
5526 #: ../src/guestfs-actions.pod:953
5527 msgid ""
5528 "The single parameter is an argv-style list of arguments.  The first element "
5529 "is the name of the program to run.  Subsequent elements are parameters.  The "
5530 "list must be non-empty (ie. must contain a program name).  Note that the "
5531 "command runs directly, and is I<not> invoked via the shell (see "
5532 "C<guestfs_sh>)."
5533 msgstr ""
5534
5535 # type: textblock
5536 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:663
5537 msgid "The return value is anything printed to I<stdout> by the command."
5538 msgstr ""
5539
5540 # type: textblock
5541 #: ../src/guestfs-actions.pod:963 ../fish/guestfish-actions.pod:666
5542 msgid ""
5543 "If the command returns a non-zero exit status, then this function returns an "
5544 "error message.  The error message string is the content of I<stderr> from "
5545 "the command."
5546 msgstr ""
5547
5548 # type: textblock
5549 #: ../src/guestfs-actions.pod:967 ../fish/guestfish-actions.pod:670
5550 msgid ""
5551 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5552 "C</bin>.  If you require a program from another location, you should provide "
5553 "the full path in the first parameter."
5554 msgstr ""
5555
5556 # type: textblock
5557 #: ../src/guestfs-actions.pod:972 ../fish/guestfish-actions.pod:675
5558 msgid ""
5559 "Shared libraries and data files required by the program must be available on "
5560 "filesystems which are mounted in the correct places.  It is the caller's "
5561 "responsibility to ensure all filesystems that are needed are mounted at the "
5562 "right locations."
5563 msgstr ""
5564
5565 # type: textblock
5566 #: ../src/guestfs-actions.pod:984 ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:1506
5567 msgid "(Added in 0.9.1)"
5568 msgstr ""
5569
5570 # type: =head2
5571 #: ../src/guestfs-actions.pod:986
5572 msgid "guestfs_command_lines"
5573 msgstr ""
5574
5575 # type: verbatim
5576 #: ../src/guestfs-actions.pod:988
5577 #, no-wrap
5578 msgid ""
5579 " char **\n"
5580 " guestfs_command_lines (guestfs_h *g,\n"
5581 "                        char *const *arguments);\n"
5582 "\n"
5583 msgstr ""
5584
5585 # type: textblock
5586 #: ../src/guestfs-actions.pod:992
5587 msgid ""
5588 "This is the same as C<guestfs_command>, but splits the result into a list of "
5589 "lines."
5590 msgstr ""
5591
5592 # type: textblock
5593 #: ../src/guestfs-actions.pod:995
5594 msgid "See also: C<guestfs_sh_lines>"
5595 msgstr ""
5596
5597 # type: =head2
5598 #: ../src/guestfs-actions.pod:1006
5599 msgid "guestfs_config"
5600 msgstr ""
5601
5602 # type: verbatim
5603 #: ../src/guestfs-actions.pod:1008
5604 #, no-wrap
5605 msgid ""
5606 " int\n"
5607 " guestfs_config (guestfs_h *g,\n"
5608 "                 const char *qemuparam,\n"
5609 "                 const char *qemuvalue);\n"
5610 "\n"
5611 msgstr ""
5612
5613 # type: textblock
5614 #: ../src/guestfs-actions.pod:1013 ../fish/guestfish-actions.pod:700
5615 msgid ""
5616 "This can be used to add arbitrary qemu command line parameters of the form "
5617 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5618 "setting some parameters which would interfere with parameters that we use."
5619 msgstr ""
5620
5621 # type: textblock
5622 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:705
5623 msgid "The first character of C<param> string must be a C<-> (dash)."
5624 msgstr ""
5625
5626 # type: textblock
5627 #: ../src/guestfs-actions.pod:1020 ../fish/guestfish-actions.pod:707
5628 msgid "C<value> can be NULL."
5629 msgstr ""
5630
5631 # type: =head2
5632 #: ../src/guestfs-actions.pod:1026
5633 msgid "guestfs_copy_size"
5634 msgstr ""
5635
5636 # type: verbatim
5637 #: ../src/guestfs-actions.pod:1028
5638 #, no-wrap
5639 msgid ""
5640 " int\n"
5641 " guestfs_copy_size (guestfs_h *g,\n"
5642 "                    const char *src,\n"
5643 "                    const char *dest,\n"
5644 "                    int64_t size);\n"
5645 "\n"
5646 msgstr ""
5647
5648 # type: textblock
5649 #: ../src/guestfs-actions.pod:1034 ../fish/guestfish-actions.pod:713
5650 msgid ""
5651 "This command copies exactly C<size> bytes from one source device or file "
5652 "C<src> to another destination device or file C<dest>."
5653 msgstr ""
5654
5655 # type: textblock
5656 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:716
5657 msgid ""
5658 "Note this will fail if the source is too short or if the destination is not "
5659 "large enough."
5660 msgstr ""
5661
5662 # type: textblock
5663 #: ../src/guestfs-actions.pod:1042 ../src/guestfs-actions.pod:1204 ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:1655 ../src/guestfs-actions.pod:1677 ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6670
5664 msgid ""
5665 "This long-running command can generate progress notification messages so "
5666 "that the caller can display a progress bar or indicator.  To receive these "
5667 "messages, the caller must register a progress callback.  See "
5668 "L<guestfs(3)/guestfs_set_progress_callback>."
5669 msgstr ""
5670
5671 # type: textblock
5672 #: ../src/guestfs-actions.pod:1047 ../src/guestfs-actions.pod:3616 ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6398 ../src/guestfs-actions.pod:6485
5673 msgid "(Added in 1.0.87)"
5674 msgstr ""
5675
5676 # type: =head2
5677 #: ../src/guestfs-actions.pod:1049
5678 msgid "guestfs_cp"
5679 msgstr ""
5680
5681 # type: verbatim
5682 #: ../src/guestfs-actions.pod:1051
5683 #, no-wrap
5684 msgid ""
5685 " int\n"
5686 " guestfs_cp (guestfs_h *g,\n"
5687 "             const char *src,\n"
5688 "             const char *dest);\n"
5689 "\n"
5690 msgstr ""
5691
5692 # type: textblock
5693 #: ../src/guestfs-actions.pod:1056 ../fish/guestfish-actions.pod:723
5694 msgid ""
5695 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5696 "destination filename or destination directory."
5697 msgstr ""
5698
5699 # type: textblock
5700 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1260 ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:4220 ../src/guestfs-actions.pod:4598
5701 msgid "(Added in 1.0.18)"
5702 msgstr ""
5703
5704 # type: =head2
5705 #: ../src/guestfs-actions.pod:1063
5706 msgid "guestfs_cp_a"
5707 msgstr ""
5708
5709 # type: verbatim
5710 #: ../src/guestfs-actions.pod:1065
5711 #, no-wrap
5712 msgid ""
5713 " int\n"
5714 " guestfs_cp_a (guestfs_h *g,\n"
5715 "               const char *src,\n"
5716 "               const char *dest);\n"
5717 "\n"
5718 msgstr ""
5719
5720 # type: textblock
5721 #: ../src/guestfs-actions.pod:1070 ../fish/guestfish-actions.pod:730
5722 msgid ""
5723 "This copies a file or directory from C<src> to C<dest> recursively using the "
5724 "C<cp -a> command."
5725 msgstr ""
5726
5727 # type: =head2
5728 #: ../src/guestfs-actions.pod:1077
5729 msgid "guestfs_dd"
5730 msgstr ""
5731
5732 # type: verbatim
5733 #: ../src/guestfs-actions.pod:1079
5734 #, no-wrap
5735 msgid ""
5736 " int\n"
5737 " guestfs_dd (guestfs_h *g,\n"
5738 "             const char *src,\n"
5739 "             const char *dest);\n"
5740 "\n"
5741 msgstr ""
5742
5743 # type: textblock
5744 #: ../src/guestfs-actions.pod:1084 ../fish/guestfish-actions.pod:737
5745 msgid ""
5746 "This command copies from one source device or file C<src> to another "
5747 "destination device or file C<dest>.  Normally you would use this to copy to "
5748 "or from a device or partition, for example to duplicate a filesystem."
5749 msgstr ""
5750
5751 # type: textblock
5752 #: ../src/guestfs-actions.pod:1089
5753 msgid ""
5754 "If the destination is a device, it must be as large or larger than the "
5755 "source file or device, otherwise the copy will fail.  This command cannot do "
5756 "partial copies (see C<guestfs_copy_size>)."
5757 msgstr ""
5758
5759 # type: =head2
5760 #: ../src/guestfs-actions.pod:1097
5761 msgid "guestfs_debug"
5762 msgstr ""
5763
5764 # type: verbatim
5765 #: ../src/guestfs-actions.pod:1099
5766 #, no-wrap
5767 msgid ""
5768 " char *\n"
5769 " guestfs_debug (guestfs_h *g,\n"
5770 "                const char *subcmd,\n"
5771 "                char *const *extraargs);\n"
5772 "\n"
5773 msgstr ""
5774
5775 # type: textblock
5776 #: ../src/guestfs-actions.pod:1104
5777 msgid ""
5778 "The C<guestfs_debug> command exposes some internals of C<guestfsd> (the "
5779 "guestfs daemon) that runs inside the qemu subprocess."
5780 msgstr ""
5781
5782 # type: textblock
5783 #: ../src/guestfs-actions.pod:1108 ../fish/guestfish-actions.pod:754
5784 msgid ""
5785 "There is no comprehensive help for this command.  You have to look at the "
5786 "file C<daemon/debug.c> in the libguestfs source to find out what you can do."
5787 msgstr ""
5788
5789 # type: textblock
5790 #: ../src/guestfs-actions.pod:1115
5791 msgid "(Added in 1.0.11)"
5792 msgstr ""
5793
5794 # type: =head2
5795 #: ../src/guestfs-actions.pod:1117
5796 msgid "guestfs_debug_upload"
5797 msgstr ""
5798
5799 # type: verbatim
5800 #: ../src/guestfs-actions.pod:1119
5801 #, no-wrap
5802 msgid ""
5803 " int\n"
5804 " guestfs_debug_upload (guestfs_h *g,\n"
5805 "                       const char *filename,\n"
5806 "                       const char *tmpname,\n"
5807 "                       int mode);\n"
5808 "\n"
5809 msgstr ""
5810
5811 # type: textblock
5812 #: ../src/guestfs-actions.pod:1125
5813 msgid ""
5814 "The C<guestfs_debug_upload> command uploads a file to the libguestfs "
5815 "appliance."
5816 msgstr ""
5817
5818 # type: textblock
5819 #: ../src/guestfs-actions.pod:1128 ../fish/guestfish-actions.pod:765
5820 msgid ""
5821 "There is no comprehensive help for this command.  You have to look at the "
5822 "file C<daemon/debug.c> in the libguestfs source to find out what it is for."
5823 msgstr ""
5824
5825 # type: =head2
5826 #: ../src/guestfs-actions.pod:1136
5827 msgid "guestfs_df"
5828 msgstr ""
5829
5830 # type: verbatim
5831 #: ../src/guestfs-actions.pod:1138
5832 #, no-wrap
5833 msgid ""
5834 " char *\n"
5835 " guestfs_df (guestfs_h *g);\n"
5836 "\n"
5837 msgstr ""
5838
5839 # type: textblock
5840 #: ../src/guestfs-actions.pod:1141 ../fish/guestfish-actions.pod:775
5841 msgid "This command runs the C<df> command to report disk space used."
5842 msgstr ""
5843
5844 # type: textblock
5845 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:777 ../fish/guestfish-actions.pod:788
5846 msgid ""
5847 "This command is mostly useful for interactive sessions.  It is I<not> "
5848 "intended that you try to parse the output string.  Use C<statvfs> from "
5849 "programs."
5850 msgstr ""
5851
5852 # type: textblock
5853 #: ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1280 ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:2229 ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:5885 ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6531 ../src/guestfs-actions.pod:6544
5854 msgid "(Added in 1.0.54)"
5855 msgstr ""
5856
5857 # type: =head2
5858 #: ../src/guestfs-actions.pod:1152
5859 msgid "guestfs_df_h"
5860 msgstr ""
5861
5862 # type: verbatim
5863 #: ../src/guestfs-actions.pod:1154
5864 #, no-wrap
5865 msgid ""
5866 " char *\n"
5867 " guestfs_df_h (guestfs_h *g);\n"
5868 "\n"
5869 msgstr ""
5870
5871 # type: textblock
5872 #: ../src/guestfs-actions.pod:1157 ../fish/guestfish-actions.pod:785
5873 msgid ""
5874 "This command runs the C<df -h> command to report disk space used in "
5875 "human-readable format."
5876 msgstr ""
5877
5878 # type: =head2
5879 #: ../src/guestfs-actions.pod:1169
5880 msgid "guestfs_dmesg"
5881 msgstr ""
5882
5883 # type: verbatim
5884 #: ../src/guestfs-actions.pod:1171
5885 #, no-wrap
5886 msgid ""
5887 " char *\n"
5888 " guestfs_dmesg (guestfs_h *g);\n"
5889 "\n"
5890 msgstr ""
5891
5892 # type: textblock
5893 #: ../src/guestfs-actions.pod:1174 ../fish/guestfish-actions.pod:796
5894 msgid ""
5895 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5896 "This is sometimes useful for extended debugging of problems."
5897 msgstr ""
5898
5899 # type: textblock
5900 #: ../src/guestfs-actions.pod:1178
5901 msgid ""
5902 "Another way to get the same information is to enable verbose messages with "
5903 "C<guestfs_set_verbose> or by setting the environment variable "
5904 "C<LIBGUESTFS_DEBUG=1> before running the program."
5905 msgstr ""
5906
5907 # type: =head2
5908 #: ../src/guestfs-actions.pod:1188
5909 msgid "guestfs_download"
5910 msgstr ""
5911
5912 # type: verbatim
5913 #: ../src/guestfs-actions.pod:1190
5914 #, no-wrap
5915 msgid ""
5916 " int\n"
5917 " guestfs_download (guestfs_h *g,\n"
5918 "                   const char *remotefilename,\n"
5919 "                   const char *filename);\n"
5920 "\n"
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1220 ../fish/guestfish-actions.pod:809 ../fish/guestfish-actions.pod:822
5925 msgid ""
5926 "Download file C<remotefilename> and save it as C<filename> on the local "
5927 "machine."
5928 msgstr ""
5929
5930 # type: textblock
5931 #: ../src/guestfs-actions.pod:1198 ../src/guestfs-actions.pod:6141 ../fish/guestfish-actions.pod:812 ../fish/guestfish-actions.pod:4077
5932 msgid "C<filename> can also be a named pipe."
5933 msgstr ""
5934
5935 # type: textblock
5936 #: ../src/guestfs-actions.pod:1200
5937 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
5938 msgstr ""
5939
5940 # type: =head2
5941 #: ../src/guestfs-actions.pod:1211
5942 msgid "guestfs_download_offset"
5943 msgstr ""
5944
5945 # type: verbatim
5946 #: ../src/guestfs-actions.pod:1213
5947 #, no-wrap
5948 msgid ""
5949 " int\n"
5950 " guestfs_download_offset (guestfs_h *g,\n"
5951 "                          const char *remotefilename,\n"
5952 "                          const char *filename,\n"
5953 "                          int64_t offset,\n"
5954 "                          int64_t size);\n"
5955 "\n"
5956 msgstr ""
5957
5958 # type: textblock
5959 #: ../src/guestfs-actions.pod:1223 ../fish/guestfish-actions.pod:825
5960 msgid ""
5961 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5962 "region must be within the file or device)."
5963 msgstr ""
5964
5965 # type: textblock
5966 #: ../src/guestfs-actions.pod:1226
5967 msgid ""
5968 "Note that there is no limit on the amount of data that can be downloaded "
5969 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
5970 "full amount unless an error occurs."
5971 msgstr ""
5972
5973 # type: textblock
5974 #: ../src/guestfs-actions.pod:1231
5975 msgid "See also C<guestfs_download>, C<guestfs_pread>."
5976 msgstr ""
5977
5978 # type: textblock
5979 #: ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:6176
5980 msgid "(Added in 1.5.17)"
5981 msgstr ""
5982
5983 # type: =head2
5984 #: ../src/guestfs-actions.pod:1242
5985 msgid "guestfs_drop_caches"
5986 msgstr ""
5987
5988 # type: verbatim
5989 #: ../src/guestfs-actions.pod:1244
5990 #, no-wrap
5991 msgid ""
5992 " int\n"
5993 " guestfs_drop_caches (guestfs_h *g,\n"
5994 "                      int whattodrop);\n"
5995 "\n"
5996 msgstr ""
5997
5998 # type: textblock
5999 #: ../src/guestfs-actions.pod:1248 ../fish/guestfish-actions.pod:841
6000 msgid ""
6001 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6002 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6003 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6004 msgstr ""
6005
6006 # type: textblock
6007 #: ../src/guestfs-actions.pod:1253 ../fish/guestfish-actions.pod:846
6008 msgid "Setting C<whattodrop> to 3 should drop everything."
6009 msgstr ""
6010
6011 # type: textblock
6012 #: ../src/guestfs-actions.pod:1255 ../fish/guestfish-actions.pod:848
6013 msgid ""
6014 "This automatically calls L<sync(2)> before the operation, so that the "
6015 "maximum guest memory is freed."
6016 msgstr ""
6017
6018 # type: =head2
6019 #: ../src/guestfs-actions.pod:1262
6020 msgid "guestfs_du"
6021 msgstr ""
6022
6023 # type: verbatim
6024 #: ../src/guestfs-actions.pod:1264
6025 #, no-wrap
6026 msgid ""
6027 " int64_t\n"
6028 " guestfs_du (guestfs_h *g,\n"
6029 "             const char *path);\n"
6030 "\n"
6031 msgstr ""
6032
6033 # type: textblock
6034 #: ../src/guestfs-actions.pod:1268 ../fish/guestfish-actions.pod:855
6035 msgid ""
6036 "This command runs the C<du -s> command to estimate file space usage for "
6037 "C<path>."
6038 msgstr ""
6039
6040 # type: textblock
6041 #: ../src/guestfs-actions.pod:1271 ../fish/guestfish-actions.pod:858
6042 msgid ""
6043 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6044 "estimate includes the contents of the directory and all subdirectories "
6045 "(recursively)."
6046 msgstr ""
6047
6048 # type: textblock
6049 #: ../src/guestfs-actions.pod:1275 ../fish/guestfish-actions.pod:862
6050 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6051 msgstr ""
6052
6053 # type: =head2
6054 #: ../src/guestfs-actions.pod:1282
6055 msgid "guestfs_e2fsck_f"
6056 msgstr ""
6057
6058 # type: verbatim
6059 #: ../src/guestfs-actions.pod:1284
6060 #, no-wrap
6061 msgid ""
6062 " int\n"
6063 " guestfs_e2fsck_f (guestfs_h *g,\n"
6064 "                   const char *device);\n"
6065 "\n"
6066 msgstr ""
6067
6068 # type: textblock
6069 #: ../src/guestfs-actions.pod:1288 ../fish/guestfish-actions.pod:869
6070 msgid ""
6071 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6072 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6073 "clean (C<-f>)."
6074 msgstr ""
6075
6076 # type: textblock
6077 #: ../src/guestfs-actions.pod:1292
6078 msgid ""
6079 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6080 "Normally you should use C<guestfs_fsck>."
6081 msgstr ""
6082
6083 # type: textblock
6084 #: ../src/guestfs-actions.pod:1297
6085 msgid "(Added in 1.0.29)"
6086 msgstr ""
6087
6088 # type: =head2
6089 #: ../src/guestfs-actions.pod:1299
6090 msgid "guestfs_echo_daemon"
6091 msgstr ""
6092
6093 # type: verbatim
6094 #: ../src/guestfs-actions.pod:1301
6095 #, no-wrap
6096 msgid ""
6097 " char *\n"
6098 " guestfs_echo_daemon (guestfs_h *g,\n"
6099 "                      char *const *words);\n"
6100 "\n"
6101 msgstr ""
6102
6103 # type: textblock
6104 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:880
6105 msgid ""
6106 "This command concatenates the list of C<words> passed with single spaces "
6107 "between them and returns the resulting string."
6108 msgstr ""
6109
6110 # type: textblock
6111 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:883
6112 msgid "You can use this command to test the connection through to the daemon."
6113 msgstr ""
6114
6115 # type: textblock
6116 #: ../src/guestfs-actions.pod:1310
6117 msgid "See also C<guestfs_ping_daemon>."
6118 msgstr ""
6119
6120 # type: textblock
6121 #: ../src/guestfs-actions.pod:1315 ../src/guestfs-actions.pod:2042 ../src/guestfs-actions.pod:5389
6122 msgid "(Added in 1.0.69)"
6123 msgstr ""
6124
6125 # type: =head2
6126 #: ../src/guestfs-actions.pod:1317
6127 msgid "guestfs_egrep"
6128 msgstr ""
6129
6130 # type: verbatim
6131 #: ../src/guestfs-actions.pod:1319
6132 #, no-wrap
6133 msgid ""
6134 " char **\n"
6135 " guestfs_egrep (guestfs_h *g,\n"
6136 "                const char *regex,\n"
6137 "                const char *path);\n"
6138 "\n"
6139 msgstr ""
6140
6141 # type: textblock
6142 #: ../src/guestfs-actions.pod:1324 ../fish/guestfish-actions.pod:891
6143 msgid "This calls the external C<egrep> program and returns the matching lines."
6144 msgstr ""
6145
6146 # type: textblock
6147 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:1353 ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1456 ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:2143 ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2415 ../src/guestfs-actions.pod:2428 ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3121 ../src/guestfs-actions.pod:3134 ../src/guestfs-actions.pod:3148 ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4983 ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5765 ../src/guestfs-actions.pod:5778 ../src/guestfs-actions.pod:5791 ../src/guestfs-actions.pod:5813 ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:5839 ../src/guestfs-actions.pod:5852 ../src/guestfs-actions.pod:6614 ../src/guestfs-actions.pod:6633 ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6802
6148 msgid "(Added in 1.0.66)"
6149 msgstr ""
6150
6151 # type: =head2
6152 #: ../src/guestfs-actions.pod:1336
6153 msgid "guestfs_egrepi"
6154 msgstr ""
6155
6156 # type: verbatim
6157 #: ../src/guestfs-actions.pod:1338
6158 #, no-wrap
6159 msgid ""
6160 " char **\n"
6161 " guestfs_egrepi (guestfs_h *g,\n"
6162 "                 const char *regex,\n"
6163 "                 const char *path);\n"
6164 "\n"
6165 msgstr ""
6166
6167 # type: textblock
6168 #: ../src/guestfs-actions.pod:1343 ../fish/guestfish-actions.pod:901
6169 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6170 msgstr ""
6171
6172 # type: =head2
6173 #: ../src/guestfs-actions.pod:1355
6174 msgid "guestfs_equal"
6175 msgstr ""
6176
6177 # type: verbatim
6178 #: ../src/guestfs-actions.pod:1357
6179 #, no-wrap
6180 msgid ""
6181 " int\n"
6182 " guestfs_equal (guestfs_h *g,\n"
6183 "                const char *file1,\n"
6184 "                const char *file2);\n"
6185 "\n"
6186 msgstr ""
6187
6188 # type: textblock
6189 #: ../src/guestfs-actions.pod:1362 ../fish/guestfish-actions.pod:911
6190 msgid ""
6191 "This compares the two files C<file1> and C<file2> and returns true if their "
6192 "content is exactly equal, or false otherwise."
6193 msgstr ""
6194
6195 # type: textblock
6196 #: ../src/guestfs-actions.pod:1365 ../fish/guestfish-actions.pod:914
6197 msgid "The external L<cmp(1)> program is used for the comparison."
6198 msgstr ""
6199
6200 # type: =head2
6201 #: ../src/guestfs-actions.pod:1371
6202 msgid "guestfs_exists"
6203 msgstr ""
6204
6205 # type: verbatim
6206 #: ../src/guestfs-actions.pod:1373
6207 #, no-wrap
6208 msgid ""
6209 " int\n"
6210 " guestfs_exists (guestfs_h *g,\n"
6211 "                 const char *path);\n"
6212 "\n"
6213 msgstr ""
6214
6215 # type: textblock
6216 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:920
6217 msgid ""
6218 "This returns C<true> if and only if there is a file, directory (or anything) "
6219 "with the given C<path> name."
6220 msgstr ""
6221
6222 # type: textblock
6223 #: ../src/guestfs-actions.pod:1380
6224 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6225 msgstr ""
6226
6227 # type: =head2
6228 #: ../src/guestfs-actions.pod:1386
6229 msgid "guestfs_fallocate"
6230 msgstr ""
6231
6232 # type: verbatim
6233 #: ../src/guestfs-actions.pod:1388
6234 #, no-wrap
6235 msgid ""
6236 " int\n"
6237 " guestfs_fallocate (guestfs_h *g,\n"
6238 "                    const char *path,\n"
6239 "                    int len);\n"
6240 "\n"
6241 msgstr ""
6242
6243 # type: textblock
6244 #: ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1419 ../fish/guestfish-actions.pod:929 ../fish/guestfish-actions.pod:948
6245 msgid ""
6246 "This command preallocates a file (containing zero bytes) named C<path> of "
6247 "size C<len> bytes.  If the file exists already, it is overwritten."
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1397 ../fish/guestfish-actions.pod:933
6252 msgid ""
6253 "Do not confuse this with the guestfish-specific C<alloc> command which "
6254 "allocates a file in the host and attaches it as a device."
6255 msgstr ""
6256
6257 # type: textblock
6258 #: ../src/guestfs-actions.pod:1403 ../fish/guestfish-actions.pod:937
6259 msgid ""
6260 "This function is deprecated.  In new code, use the C<fallocate64> call "
6261 "instead."
6262 msgstr ""
6263
6264 # type: =head2
6265 #: ../src/guestfs-actions.pod:1412
6266 msgid "guestfs_fallocate64"
6267 msgstr ""
6268
6269 # type: verbatim
6270 #: ../src/guestfs-actions.pod:1414
6271 #, no-wrap
6272 msgid ""
6273 " int\n"
6274 " guestfs_fallocate64 (guestfs_h *g,\n"
6275 "                      const char *path,\n"
6276 "                      int64_t len);\n"
6277 "\n"
6278 msgstr ""
6279
6280 # type: textblock
6281 #: ../src/guestfs-actions.pod:1423
6282 msgid ""
6283 "Note that this call allocates disk blocks for the file.  To create a sparse "
6284 "file use C<guestfs_truncate_size> instead."
6285 msgstr ""
6286
6287 # type: textblock
6288 #: ../src/guestfs-actions.pod:1426
6289 msgid ""
6290 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6291 "oversight it only allowed 30 bit lengths to be specified, effectively "
6292 "limiting the maximum size of files created through that call to 1GB."
6293 msgstr ""
6294
6295 # type: textblock
6296 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:960
6297 msgid ""
6298 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6299 "commands which create a file in the host and attach it as a device."
6300 msgstr ""
6301
6302 # type: textblock
6303 #: ../src/guestfs-actions.pod:1437
6304 msgid "(Added in 1.3.17)"
6305 msgstr ""
6306
6307 # type: =head2
6308 #: ../src/guestfs-actions.pod:1439
6309 msgid "guestfs_fgrep"
6310 msgstr ""
6311
6312 # type: verbatim
6313 #: ../src/guestfs-actions.pod:1441
6314 #, no-wrap
6315 msgid ""
6316 " char **\n"
6317 " guestfs_fgrep (guestfs_h *g,\n"
6318 "                const char *pattern,\n"
6319 "                const char *path);\n"
6320 "\n"
6321 msgstr ""
6322
6323 # type: textblock
6324 #: ../src/guestfs-actions.pod:1446 ../fish/guestfish-actions.pod:968
6325 msgid "This calls the external C<fgrep> program and returns the matching lines."
6326 msgstr ""
6327
6328 # type: =head2
6329 #: ../src/guestfs-actions.pod:1458
6330 msgid "guestfs_fgrepi"
6331 msgstr ""
6332
6333 # type: verbatim
6334 #: ../src/guestfs-actions.pod:1460
6335 #, no-wrap
6336 msgid ""
6337 " char **\n"
6338 " guestfs_fgrepi (guestfs_h *g,\n"
6339 "                 const char *pattern,\n"
6340 "                 const char *path);\n"
6341 "\n"
6342 msgstr ""
6343
6344 # type: textblock
6345 #: ../src/guestfs-actions.pod:1465 ../fish/guestfish-actions.pod:978
6346 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6347 msgstr ""
6348
6349 # type: =head2
6350 #: ../src/guestfs-actions.pod:1477
6351 msgid "guestfs_file"
6352 msgstr ""
6353
6354 # type: verbatim
6355 #: ../src/guestfs-actions.pod:1479
6356 #, no-wrap
6357 msgid ""
6358 " char *\n"
6359 " guestfs_file (guestfs_h *g,\n"
6360 "               const char *path);\n"
6361 "\n"
6362 msgstr ""
6363
6364 # type: textblock
6365 #: ../src/guestfs-actions.pod:1483 ../fish/guestfish-actions.pod:988
6366 msgid ""
6367 "This call uses the standard L<file(1)> command to determine the type or "
6368 "contents of the file."
6369 msgstr ""
6370
6371 # type: textblock
6372 #: ../src/guestfs-actions.pod:1486 ../fish/guestfish-actions.pod:991
6373 msgid ""
6374 "This call will also transparently look inside various types of compressed "
6375 "file."
6376 msgstr ""
6377
6378 # type: textblock
6379 #: ../src/guestfs-actions.pod:1489 ../fish/guestfish-actions.pod:994
6380 msgid ""
6381 "The exact command which runs is C<file -zb path>.  Note in particular that "
6382 "the filename is not prepended to the output (the C<-b> option)."
6383 msgstr ""
6384
6385 # type: textblock
6386 #: ../src/guestfs-actions.pod:1493
6387 msgid ""
6388 "This command can also be used on C</dev/> devices (and partitions, LV "
6389 "names).  You can for example use this to determine if a device contains a "
6390 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6391 msgstr ""
6392
6393 # type: textblock
6394 #: ../src/guestfs-actions.pod:1498 ../fish/guestfish-actions.pod:1003
6395 msgid ""
6396 "If the C<path> does not begin with C</dev/> then this command only works for "
6397 "the content of regular files.  For other file types (directory, symbolic "
6398 "link etc) it will just return the string C<directory> etc."
6399 msgstr ""
6400
6401 # type: =head2
6402 #: ../src/guestfs-actions.pod:1508
6403 msgid "guestfs_file_architecture"
6404 msgstr ""
6405
6406 # type: verbatim
6407 #: ../src/guestfs-actions.pod:1510
6408 #, no-wrap
6409 msgid ""
6410 " char *\n"
6411 " guestfs_file_architecture (guestfs_h *g,\n"
6412 "                            const char *filename);\n"
6413 "\n"
6414 msgstr ""
6415
6416 # type: textblock
6417 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:1012
6418 msgid ""
6419 "This detects the architecture of the binary C<filename>, and returns it if "
6420 "known."
6421 msgstr ""
6422
6423 # type: textblock
6424 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1015
6425 msgid "Currently defined architectures are:"
6426 msgstr ""
6427
6428 # type: =item
6429 #: ../src/guestfs-actions.pod:1521 ../fish/guestfish-actions.pod:1019
6430 msgid "\"i386\""
6431 msgstr ""
6432
6433 # type: textblock
6434 #: ../src/guestfs-actions.pod:1523 ../fish/guestfish-actions.pod:1021
6435 msgid ""
6436 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6437 "irrespective of the precise processor requirements of the binary."
6438 msgstr ""
6439
6440 # type: =item
6441 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1024
6442 msgid "\"x86_64\""
6443 msgstr ""
6444
6445 # type: textblock
6446 #: ../src/guestfs-actions.pod:1528 ../fish/guestfish-actions.pod:1026
6447 msgid "64 bit x86-64."
6448 msgstr ""
6449
6450 # type: =item
6451 #: ../src/guestfs-actions.pod:1530 ../fish/guestfish-actions.pod:1028
6452 msgid "\"sparc\""
6453 msgstr ""
6454
6455 # type: textblock
6456 #: ../src/guestfs-actions.pod:1532 ../fish/guestfish-actions.pod:1030
6457 msgid "32 bit SPARC."
6458 msgstr ""
6459
6460 # type: =item
6461 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1032
6462 msgid "\"sparc64\""
6463 msgstr ""
6464
6465 # type: textblock
6466 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1034
6467 msgid "64 bit SPARC V9 and above."
6468 msgstr ""
6469
6470 # type: =item
6471 #: ../src/guestfs-actions.pod:1538 ../fish/guestfish-actions.pod:1036
6472 msgid "\"ia64\""
6473 msgstr ""
6474
6475 # type: textblock
6476 #: ../src/guestfs-actions.pod:1540 ../fish/guestfish-actions.pod:1038
6477 msgid "Intel Itanium."
6478 msgstr ""
6479
6480 # type: =item
6481 #: ../src/guestfs-actions.pod:1542 ../fish/guestfish-actions.pod:1040
6482 msgid "\"ppc\""
6483 msgstr ""
6484
6485 # type: textblock
6486 #: ../src/guestfs-actions.pod:1544 ../fish/guestfish-actions.pod:1042
6487 msgid "32 bit Power PC."
6488 msgstr ""
6489
6490 # type: =item
6491 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1044
6492 msgid "\"ppc64\""
6493 msgstr ""
6494
6495 # type: textblock
6496 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1046
6497 msgid "64 bit Power PC."
6498 msgstr ""
6499
6500 # type: textblock
6501 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1050
6502 msgid "Libguestfs may return other architecture strings in future."
6503 msgstr ""
6504
6505 # type: textblock
6506 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1052
6507 msgid "The function works on at least the following types of files:"
6508 msgstr ""
6509
6510 # type: textblock
6511 #: ../src/guestfs-actions.pod:1560 ../fish/guestfish-actions.pod:1058
6512 msgid "many types of Un*x and Linux binary"
6513 msgstr ""
6514
6515 # type: textblock
6516 #: ../src/guestfs-actions.pod:1564 ../fish/guestfish-actions.pod:1062
6517 msgid "many types of Un*x and Linux shared library"
6518 msgstr ""
6519
6520 # type: textblock
6521 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1066
6522 msgid "Windows Win32 and Win64 binaries"
6523 msgstr ""
6524
6525 # type: textblock
6526 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1070
6527 msgid "Windows Win32 and Win64 DLLs"
6528 msgstr ""
6529
6530 # type: textblock
6531 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1072
6532 msgid "Win32 binaries and DLLs return C<i386>."
6533 msgstr ""
6534
6535 # type: textblock
6536 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1074
6537 msgid "Win64 binaries and DLLs return C<x86_64>."
6538 msgstr ""
6539
6540 # type: textblock
6541 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1078
6542 msgid "Linux kernel modules"
6543 msgstr ""
6544
6545 # type: textblock
6546 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1082
6547 msgid "Linux new-style initrd images"
6548 msgstr ""
6549
6550 # type: textblock
6551 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1086
6552 msgid "some non-x86 Linux vmlinuz kernels"
6553 msgstr ""
6554
6555 # type: textblock
6556 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1090
6557 msgid "What it can't do currently:"
6558 msgstr ""
6559
6560 # type: textblock
6561 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1096
6562 msgid "static libraries (libfoo.a)"
6563 msgstr ""
6564
6565 # type: textblock
6566 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1100
6567 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6568 msgstr ""
6569
6570 # type: textblock
6571 #: ../src/guestfs-actions.pod:1606 ../fish/guestfish-actions.pod:1104
6572 msgid "x86 Linux vmlinuz kernels"
6573 msgstr ""
6574
6575 # type: textblock
6576 #: ../src/guestfs-actions.pod:1608 ../fish/guestfish-actions.pod:1106
6577 msgid ""
6578 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6579 "compressed code, and are horribly hard to unpack.  If you want to find the "
6580 "architecture of a kernel, use the architecture of the associated initrd or "
6581 "kernel module(s) instead."
6582 msgstr ""
6583
6584 # type: textblock
6585 #: ../src/guestfs-actions.pod:1618 ../src/guestfs-actions.pod:1781 ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2524 ../src/guestfs-actions.pod:2550 ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2631 ../src/guestfs-actions.pod:2655 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2891
6586 msgid "(Added in 1.5.3)"
6587 msgstr ""
6588
6589 # type: =head2
6590 #: ../src/guestfs-actions.pod:1620
6591 msgid "guestfs_filesize"
6592 msgstr ""
6593
6594 # type: verbatim
6595 #: ../src/guestfs-actions.pod:1622
6596 #, no-wrap
6597 msgid ""
6598 " int64_t\n"
6599 " guestfs_filesize (guestfs_h *g,\n"
6600 "                   const char *file);\n"
6601 "\n"
6602 msgstr ""
6603
6604 # type: textblock
6605 #: ../src/guestfs-actions.pod:1626 ../fish/guestfish-actions.pod:1117
6606 msgid "This command returns the size of C<file> in bytes."
6607 msgstr ""
6608
6609 # type: textblock
6610 #: ../src/guestfs-actions.pod:1628
6611 msgid ""
6612 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6613 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6614 "devices, use C<guestfs_blockdev_getsize64>."
6615 msgstr ""
6616
6617 # type: textblock
6618 #: ../src/guestfs-actions.pod:1634
6619 msgid "(Added in 1.0.82)"
6620 msgstr ""
6621
6622 # type: =head2
6623 #: ../src/guestfs-actions.pod:1636
6624 msgid "guestfs_fill"
6625 msgstr ""
6626
6627 # type: verbatim
6628 #: ../src/guestfs-actions.pod:1638
6629 #, no-wrap
6630 msgid ""
6631 " int\n"
6632 " guestfs_fill (guestfs_h *g,\n"
6633 "               int c,\n"
6634 "               int len,\n"
6635 "               const char *path);\n"
6636 "\n"
6637 msgstr ""
6638
6639 # type: textblock
6640 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1127
6641 msgid ""
6642 "This command creates a new file called C<path>.  The initial content of the "
6643 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6644 "C<[0..255]>."
6645 msgstr ""
6646
6647 # type: textblock
6648 #: ../src/guestfs-actions.pod:1648
6649 msgid ""
6650 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6651 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6652 "bytes use C<guestfs_fill_pattern>."
6653 msgstr ""
6654
6655 # type: textblock
6656 #: ../src/guestfs-actions.pod:1660
6657 msgid "(Added in 1.0.79)"
6658 msgstr ""
6659
6660 # type: =head2
6661 #: ../src/guestfs-actions.pod:1662
6662 msgid "guestfs_fill_pattern"
6663 msgstr ""
6664
6665 # type: verbatim
6666 #: ../src/guestfs-actions.pod:1664
6667 #, no-wrap
6668 msgid ""
6669 " int\n"
6670 " guestfs_fill_pattern (guestfs_h *g,\n"
6671 "                       const char *pattern,\n"
6672 "                       int len,\n"
6673 "                       const char *path);\n"
6674 "\n"
6675 msgstr ""
6676
6677 # type: textblock
6678 #: ../src/guestfs-actions.pod:1670
6679 msgid ""
6680 "This function is like C<guestfs_fill> except that it creates a new file of "
6681 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6682 "pattern is truncated if necessary to ensure the length of the file is "
6683 "exactly C<len> bytes."
6684 msgstr ""
6685
6686 # type: textblock
6687 #: ../src/guestfs-actions.pod:1682
6688 msgid "(Added in 1.3.12)"
6689 msgstr ""
6690
6691 # type: =head2
6692 #: ../src/guestfs-actions.pod:1684
6693 msgid "guestfs_find"
6694 msgstr ""
6695
6696 # type: verbatim
6697 #: ../src/guestfs-actions.pod:1686
6698 #, no-wrap
6699 msgid ""
6700 " char **\n"
6701 " guestfs_find (guestfs_h *g,\n"
6702 "               const char *directory);\n"
6703 "\n"
6704 msgstr ""
6705
6706 # type: textblock
6707 #: ../src/guestfs-actions.pod:1690 ../fish/guestfish-actions.pod:1149
6708 msgid ""
6709 "This command lists out all files and directories, recursively, starting at "
6710 "C<directory>.  It is essentially equivalent to running the shell command "
6711 "C<find directory -print> but some post-processing happens on the output, "
6712 "described below."
6713 msgstr ""
6714
6715 # type: textblock
6716 #: ../src/guestfs-actions.pod:1695 ../fish/guestfish-actions.pod:1154
6717 msgid ""
6718 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6719 "structure was:"
6720 msgstr ""
6721
6722 # type: verbatim
6723 #: ../src/guestfs-actions.pod:1698 ../fish/guestfish-actions.pod:1157
6724 #, no-wrap
6725 msgid ""
6726 " /tmp/a\n"
6727 " /tmp/b\n"
6728 " /tmp/c/d\n"
6729 "\n"
6730 msgstr ""
6731
6732 # type: textblock
6733 #: ../src/guestfs-actions.pod:1702
6734 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
6735 msgstr ""
6736
6737 # type: verbatim
6738 #: ../src/guestfs-actions.pod:1705 ../fish/guestfish-actions.pod:1164
6739 #, no-wrap
6740 msgid ""
6741 " a\n"
6742 " b\n"
6743 " c\n"
6744 " c/d\n"
6745 "\n"
6746 msgstr ""
6747
6748 # type: textblock
6749 #: ../src/guestfs-actions.pod:1710 ../fish/guestfish-actions.pod:1169
6750 msgid "If C<directory> is not a directory, then this command returns an error."
6751 msgstr ""
6752
6753 # type: textblock
6754 #: ../src/guestfs-actions.pod:1713 ../fish/guestfish-actions.pod:1172
6755 msgid "The returned list is sorted."
6756 msgstr ""
6757
6758 # type: textblock
6759 #: ../src/guestfs-actions.pod:1715
6760 msgid "See also C<guestfs_find0>."
6761 msgstr ""
6762
6763 # type: textblock
6764 #: ../src/guestfs-actions.pod:1724 ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:5018
6765 msgid "(Added in 1.0.27)"
6766 msgstr ""
6767
6768 # type: =head2
6769 #: ../src/guestfs-actions.pod:1726
6770 msgid "guestfs_find0"
6771 msgstr ""
6772
6773 # type: verbatim
6774 #: ../src/guestfs-actions.pod:1728
6775 #, no-wrap
6776 msgid ""
6777 " int\n"
6778 " guestfs_find0 (guestfs_h *g,\n"
6779 "                const char *directory,\n"
6780 "                const char *files);\n"
6781 "\n"
6782 msgstr ""
6783
6784 # type: textblock
6785 #: ../src/guestfs-actions.pod:1733 ../fish/guestfish-actions.pod:1183
6786 msgid ""
6787 "This command lists out all files and directories, recursively, starting at "
6788 "C<directory>, placing the resulting list in the external file called "
6789 "C<files>."
6790 msgstr ""
6791
6792 # type: textblock
6793 #: ../src/guestfs-actions.pod:1737
6794 msgid ""
6795 "This command works the same way as C<guestfs_find> with the following "
6796 "exceptions:"
6797 msgstr ""
6798
6799 # type: textblock
6800 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1194
6801 msgid "The resulting list is written to an external file."
6802 msgstr ""
6803
6804 # type: textblock
6805 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1198
6806 msgid ""
6807 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6808 "L<find(1)> option I<-print0>."
6809 msgstr ""
6810
6811 # type: textblock
6812 #: ../src/guestfs-actions.pod:1753 ../fish/guestfish-actions.pod:1203
6813 msgid "This command is not limited in the number of names that it can return."
6814 msgstr ""
6815
6816 # type: textblock
6817 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1208
6818 msgid "The result list is not sorted."
6819 msgstr ""
6820
6821 # type: textblock
6822 #: ../src/guestfs-actions.pod:1764
6823 msgid "(Added in 1.0.74)"
6824 msgstr ""
6825
6826 # type: =head2
6827 #: ../src/guestfs-actions.pod:1766
6828 msgid "guestfs_findfs_label"
6829 msgstr ""
6830
6831 # type: verbatim
6832 #: ../src/guestfs-actions.pod:1768
6833 #, no-wrap
6834 msgid ""
6835 " char *\n"
6836 " guestfs_findfs_label (guestfs_h *g,\n"
6837 "                       const char *label);\n"
6838 "\n"
6839 msgstr ""
6840
6841 # type: textblock
6842 #: ../src/guestfs-actions.pod:1772 ../fish/guestfish-actions.pod:1218
6843 msgid ""
6844 "This command searches the filesystems and returns the one which has the "
6845 "given label.  An error is returned if no such filesystem can be found."
6846 msgstr ""
6847
6848 # type: textblock
6849 #: ../src/guestfs-actions.pod:1776
6850 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
6851 msgstr ""
6852
6853 # type: =head2
6854 #: ../src/guestfs-actions.pod:1783
6855 msgid "guestfs_findfs_uuid"
6856 msgstr ""
6857
6858 # type: verbatim
6859 #: ../src/guestfs-actions.pod:1785
6860 #, no-wrap
6861 msgid ""
6862 " char *\n"
6863 " guestfs_findfs_uuid (guestfs_h *g,\n"
6864 "                      const char *uuid);\n"
6865 "\n"
6866 msgstr ""
6867
6868 # type: textblock
6869 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1228
6870 msgid ""
6871 "This command searches the filesystems and returns the one which has the "
6872 "given UUID.  An error is returned if no such filesystem can be found."
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1793
6877 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
6878 msgstr ""
6879
6880 # type: =head2
6881 #: ../src/guestfs-actions.pod:1800
6882 msgid "guestfs_fsck"
6883 msgstr ""
6884
6885 # type: verbatim
6886 #: ../src/guestfs-actions.pod:1802
6887 #, no-wrap
6888 msgid ""
6889 " int\n"
6890 " guestfs_fsck (guestfs_h *g,\n"
6891 "               const char *fstype,\n"
6892 "               const char *device);\n"
6893 "\n"
6894 msgstr ""
6895
6896 # type: textblock
6897 #: ../src/guestfs-actions.pod:1807 ../fish/guestfish-actions.pod:1238
6898 msgid ""
6899 "This runs the filesystem checker (fsck) on C<device> which should have "
6900 "filesystem type C<fstype>."
6901 msgstr ""
6902
6903 # type: textblock
6904 #: ../src/guestfs-actions.pod:1810 ../fish/guestfish-actions.pod:1241
6905 msgid ""
6906 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6907 "codes from C<fsck>."
6908 msgstr ""
6909
6910 # type: textblock
6911 #: ../src/guestfs-actions.pod:1819 ../fish/guestfish-actions.pod:1250
6912 msgid "Multiple status codes can be summed together."
6913 msgstr ""
6914
6915 # type: textblock
6916 #: ../src/guestfs-actions.pod:1823 ../fish/guestfish-actions.pod:1254
6917 msgid ""
6918 "A non-zero return code can mean \"success\", for example if errors have been "
6919 "corrected on the filesystem."
6920 msgstr ""
6921
6922 # type: textblock
6923 #: ../src/guestfs-actions.pod:1828 ../fish/guestfish-actions.pod:1259
6924 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6925 msgstr ""
6926
6927 # type: textblock
6928 #: ../src/guestfs-actions.pod:1833 ../fish/guestfish-actions.pod:1264
6929 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6930 msgstr ""
6931
6932 # type: textblock
6933 #: ../src/guestfs-actions.pod:1837 ../src/guestfs-actions.pod:6656
6934 msgid "(Added in 1.0.16)"
6935 msgstr ""
6936
6937 # type: =head2
6938 #: ../src/guestfs-actions.pod:1839
6939 msgid "guestfs_get_append"
6940 msgstr ""
6941
6942 # type: verbatim
6943 #: ../src/guestfs-actions.pod:1841
6944 #, no-wrap
6945 msgid ""
6946 " const char *\n"
6947 " guestfs_get_append (guestfs_h *g);\n"
6948 "\n"
6949 msgstr ""
6950
6951 # type: textblock
6952 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:1270
6953 msgid ""
6954 "Return the additional kernel options which are added to the guest kernel "
6955 "command line."
6956 msgstr ""
6957
6958 # type: textblock
6959 #: ../src/guestfs-actions.pod:1847 ../fish/guestfish-actions.pod:1273
6960 msgid "If C<NULL> then no options are added."
6961 msgstr ""
6962
6963 # type: textblock
6964 #: ../src/guestfs-actions.pod:1849
6965 msgid ""
6966 "This function returns a string which may be NULL.  There is no way to return "
6967 "an error from this function.  The string is owned by the guest handle and "
6968 "must I<not> be freed."
6969 msgstr ""
6970
6971 # type: textblock
6972 #: ../src/guestfs-actions.pod:1853 ../src/guestfs-actions.pod:4694 ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5579 ../src/guestfs-actions.pod:6326 ../src/guestfs-actions.pod:6344 ../src/guestfs-actions.pod:6699
6973 msgid "(Added in 1.0.26)"
6974 msgstr ""
6975
6976 # type: =head2
6977 #: ../src/guestfs-actions.pod:1855
6978 msgid "guestfs_get_autosync"
6979 msgstr ""
6980
6981 # type: verbatim
6982 #: ../src/guestfs-actions.pod:1857
6983 #, no-wrap
6984 msgid ""
6985 " int\n"
6986 " guestfs_get_autosync (guestfs_h *g);\n"
6987 "\n"
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1860 ../fish/guestfish-actions.pod:1279
6992 msgid "Get the autosync flag."
6993 msgstr ""
6994
6995 # type: =head2
6996 #: ../src/guestfs-actions.pod:1866
6997 msgid "guestfs_get_direct"
6998 msgstr ""
6999
7000 # type: verbatim
7001 #: ../src/guestfs-actions.pod:1868
7002 #, no-wrap
7003 msgid ""
7004 " int\n"
7005 " guestfs_get_direct (guestfs_h *g);\n"
7006 "\n"
7007 msgstr ""
7008
7009 # type: textblock
7010 #: ../src/guestfs-actions.pod:1871 ../fish/guestfish-actions.pod:1285
7011 msgid "Return the direct appliance mode flag."
7012 msgstr ""
7013
7014 # type: textblock
7015 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:5200
7016 msgid "(Added in 1.0.72)"
7017 msgstr ""
7018
7019 # type: =head2
7020 #: ../src/guestfs-actions.pod:1877
7021 msgid "guestfs_get_e2label"
7022 msgstr ""
7023
7024 # type: verbatim
7025 #: ../src/guestfs-actions.pod:1879
7026 #, no-wrap
7027 msgid ""
7028 " char *\n"
7029 " guestfs_get_e2label (guestfs_h *g,\n"
7030 "                      const char *device);\n"
7031 "\n"
7032 msgstr ""
7033
7034 # type: textblock
7035 #: ../src/guestfs-actions.pod:1883 ../fish/guestfish-actions.pod:1291
7036 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7037 msgstr ""
7038
7039 # type: textblock
7040 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1294
7041 msgid ""
7042 "This function is deprecated.  In new code, use the C<vfs_label> call "
7043 "instead."
7044 msgstr ""
7045
7046 # type: textblock
7047 #: ../src/guestfs-actions.pod:1896 ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:5218 ../src/guestfs-actions.pod:5237
7048 msgid "(Added in 1.0.15)"
7049 msgstr ""
7050
7051 # type: =head2
7052 #: ../src/guestfs-actions.pod:1898
7053 msgid "guestfs_get_e2uuid"
7054 msgstr ""
7055
7056 # type: verbatim
7057 #: ../src/guestfs-actions.pod:1900
7058 #, no-wrap
7059 msgid ""
7060 " char *\n"
7061 " guestfs_get_e2uuid (guestfs_h *g,\n"
7062 "                     const char *device);\n"
7063 "\n"
7064 msgstr ""
7065
7066 # type: textblock
7067 #: ../src/guestfs-actions.pod:1904 ../fish/guestfish-actions.pod:1305
7068 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7069 msgstr ""
7070
7071 # type: textblock
7072 #: ../src/guestfs-actions.pod:1910 ../fish/guestfish-actions.pod:1308
7073 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7074 msgstr ""
7075
7076 # type: =head2
7077 #: ../src/guestfs-actions.pod:1919
7078 msgid "guestfs_get_memsize"
7079 msgstr ""
7080
7081 # type: verbatim
7082 #: ../src/guestfs-actions.pod:1921
7083 #, no-wrap
7084 msgid ""
7085 " int\n"
7086 " guestfs_get_memsize (guestfs_h *g);\n"
7087 "\n"
7088 msgstr ""
7089
7090 # type: textblock
7091 #: ../src/guestfs-actions.pod:1924 ../fish/guestfish-actions.pod:1319
7092 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7093 msgstr ""
7094
7095 # type: textblock
7096 #: ../src/guestfs-actions.pod:1927
7097 msgid ""
7098 "If C<guestfs_set_memsize> was not called on this handle, and if "
7099 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7100 "value for memsize."
7101 msgstr ""
7102
7103 # type: textblock
7104 #: ../src/guestfs-actions.pod:1931 ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5360 ../fish/guestfish-actions.pod:1326 ../fish/guestfish-actions.pod:1377 ../fish/guestfish-actions.pod:3484 ../fish/guestfish-actions.pod:3571
7105 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7106 msgstr ""
7107
7108 # type: textblock
7109 #: ../src/guestfs-actions.pod:1936 ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4027 ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:6102
7110 msgid "(Added in 1.0.55)"
7111 msgstr ""
7112
7113 # type: =head2
7114 #: ../src/guestfs-actions.pod:1938
7115 msgid "guestfs_get_network"
7116 msgstr ""
7117
7118 # type: verbatim
7119 #: ../src/guestfs-actions.pod:1940
7120 #, no-wrap
7121 msgid ""
7122 " int\n"
7123 " guestfs_get_network (guestfs_h *g);\n"
7124 "\n"
7125 msgstr ""
7126
7127 # type: textblock
7128 #: ../src/guestfs-actions.pod:1943 ../fish/guestfish-actions.pod:1333
7129 msgid "This returns the enable network flag."
7130 msgstr ""
7131
7132 # type: textblock
7133 #: ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:5277
7134 msgid "(Added in 1.5.4)"
7135 msgstr ""
7136
7137 # type: =head2
7138 #: ../src/guestfs-actions.pod:1949
7139 msgid "guestfs_get_path"
7140 msgstr ""
7141
7142 # type: verbatim
7143 #: ../src/guestfs-actions.pod:1951
7144 #, no-wrap
7145 msgid ""
7146 " const char *\n"
7147 " guestfs_get_path (guestfs_h *g);\n"
7148 "\n"
7149 msgstr ""
7150
7151 # type: textblock
7152 #: ../src/guestfs-actions.pod:1954 ../fish/guestfish-actions.pod:1339
7153 msgid "Return the current search path."
7154 msgstr ""
7155
7156 # type: textblock
7157 #: ../src/guestfs-actions.pod:1956 ../fish/guestfish-actions.pod:1341
7158 msgid ""
7159 "This is always non-NULL.  If it wasn't set already, then this will return "
7160 "the default path."
7161 msgstr ""
7162
7163 # type: textblock
7164 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:1988
7165 msgid ""
7166 "This function returns a string, or NULL on error.  The string is owned by "
7167 "the guest handle and must I<not> be freed."
7168 msgstr ""
7169
7170 # type: =head2
7171 #: ../src/guestfs-actions.pod:1964
7172 msgid "guestfs_get_pid"
7173 msgstr ""
7174
7175 # type: verbatim
7176 #: ../src/guestfs-actions.pod:1966
7177 #, no-wrap
7178 msgid ""
7179 " int\n"
7180 " guestfs_get_pid (guestfs_h *g);\n"
7181 "\n"
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1969 ../fish/guestfish-actions.pod:1350
7186 msgid ""
7187 "Return the process ID of the qemu subprocess.  If there is no qemu "
7188 "subprocess, then this will return an error."
7189 msgstr ""
7190
7191 # type: textblock
7192 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1353
7193 msgid "This is an internal call used for debugging and testing."
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1976
7198 msgid "(Added in 1.0.56)"
7199 msgstr ""
7200
7201 # type: =head2
7202 #: ../src/guestfs-actions.pod:1978
7203 msgid "guestfs_get_qemu"
7204 msgstr ""
7205
7206 # type: verbatim
7207 #: ../src/guestfs-actions.pod:1980
7208 #, no-wrap
7209 msgid ""
7210 " const char *\n"
7211 " guestfs_get_qemu (guestfs_h *g);\n"
7212 "\n"
7213 msgstr ""
7214
7215 # type: textblock
7216 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1359
7217 msgid "Return the current qemu binary."
7218 msgstr ""
7219
7220 # type: textblock
7221 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1361
7222 msgid ""
7223 "This is always non-NULL.  If it wasn't set already, then this will return "
7224 "the default qemu binary name."
7225 msgstr ""
7226
7227 # type: textblock
7228 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:5322
7229 msgid "(Added in 1.0.6)"
7230 msgstr ""
7231
7232 # type: =head2
7233 #: ../src/guestfs-actions.pod:1993
7234 msgid "guestfs_get_recovery_proc"
7235 msgstr ""
7236
7237 # type: verbatim
7238 #: ../src/guestfs-actions.pod:1995
7239 #, no-wrap
7240 msgid ""
7241 " int\n"
7242 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7243 "\n"
7244 msgstr ""
7245
7246 # type: textblock
7247 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1368
7248 msgid "Return the recovery process enabled flag."
7249 msgstr ""
7250
7251 # type: textblock
7252 #: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2981 ../src/guestfs-actions.pod:3250 ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:6005 ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6207
7253 msgid "(Added in 1.0.77)"
7254 msgstr ""
7255
7256 # type: =head2
7257 #: ../src/guestfs-actions.pod:2004
7258 msgid "guestfs_get_selinux"
7259 msgstr ""
7260
7261 # type: verbatim
7262 #: ../src/guestfs-actions.pod:2006
7263 #, no-wrap
7264 msgid ""
7265 " int\n"
7266 " guestfs_get_selinux (guestfs_h *g);\n"
7267 "\n"
7268 msgstr ""
7269
7270 # type: textblock
7271 #: ../src/guestfs-actions.pod:2009
7272 msgid ""
7273 "This returns the current setting of the selinux flag which is passed to the "
7274 "appliance at boot time.  See C<guestfs_set_selinux>."
7275 msgstr ""
7276
7277 # type: textblock
7278 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:5365 ../src/guestfs-actions.pod:5419
7279 msgid "(Added in 1.0.67)"
7280 msgstr ""
7281
7282 # type: =head2
7283 #: ../src/guestfs-actions.pod:2019
7284 msgid "guestfs_get_state"
7285 msgstr ""
7286
7287 # type: verbatim
7288 #: ../src/guestfs-actions.pod:2021
7289 #, no-wrap
7290 msgid ""
7291 " int\n"
7292 " guestfs_get_state (guestfs_h *g);\n"
7293 "\n"
7294 msgstr ""
7295
7296 # type: textblock
7297 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1384
7298 msgid ""
7299 "This returns the current state as an opaque integer.  This is only useful "
7300 "for printing debug and internal error messages."
7301 msgstr ""
7302
7303 # type: textblock
7304 #: ../src/guestfs-actions.pod:2027 ../src/guestfs-actions.pod:2784 ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:2901 ../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
7305 msgid "For more information on states, see L<guestfs(3)>."
7306 msgstr ""
7307
7308 # type: =head2
7309 #: ../src/guestfs-actions.pod:2033
7310 msgid "guestfs_get_trace"
7311 msgstr ""
7312
7313 # type: verbatim
7314 #: ../src/guestfs-actions.pod:2035
7315 #, no-wrap
7316 msgid ""
7317 " int\n"
7318 " guestfs_get_trace (guestfs_h *g);\n"
7319 "\n"
7320 msgstr ""
7321
7322 # type: textblock
7323 #: ../src/guestfs-actions.pod:2038 ../fish/guestfish-actions.pod:1393
7324 msgid "Return the command trace flag."
7325 msgstr ""
7326
7327 # type: =head2
7328 #: ../src/guestfs-actions.pod:2044
7329 msgid "guestfs_get_umask"
7330 msgstr ""
7331
7332 # type: verbatim
7333 #: ../src/guestfs-actions.pod:2046
7334 #, no-wrap
7335 msgid ""
7336 " int\n"
7337 " guestfs_get_umask (guestfs_h *g);\n"
7338 "\n"
7339 msgstr ""
7340
7341 # type: textblock
7342 #: ../src/guestfs-actions.pod:2049
7343 msgid ""
7344 "Return the current umask.  By default the umask is C<022> unless it has been "
7345 "set by calling C<guestfs_umask>."
7346 msgstr ""
7347
7348 # type: =head2
7349 #: ../src/guestfs-actions.pod:2056
7350 msgid "guestfs_get_verbose"
7351 msgstr ""
7352
7353 # type: verbatim
7354 #: ../src/guestfs-actions.pod:2058
7355 #, no-wrap
7356 msgid ""
7357 " int\n"
7358 " guestfs_get_verbose (guestfs_h *g);\n"
7359 "\n"
7360 msgstr ""
7361
7362 # type: textblock
7363 #: ../src/guestfs-actions.pod:2061 ../fish/guestfish-actions.pod:1406
7364 msgid "This returns the verbose messages flag."
7365 msgstr ""
7366
7367 # type: =head2
7368 #: ../src/guestfs-actions.pod:2067
7369 msgid "guestfs_getcon"
7370 msgstr ""
7371
7372 # type: verbatim
7373 #: ../src/guestfs-actions.pod:2069
7374 #, no-wrap
7375 msgid ""
7376 " char *\n"
7377 " guestfs_getcon (guestfs_h *g);\n"
7378 "\n"
7379 msgstr ""
7380
7381 # type: textblock
7382 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1412
7383 msgid "This gets the SELinux security context of the daemon."
7384 msgstr ""
7385
7386 # type: textblock
7387 #: ../src/guestfs-actions.pod:2074
7388 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7389 msgstr ""
7390
7391 # type: =head2
7392 #: ../src/guestfs-actions.pod:2082
7393 msgid "guestfs_getxattrs"
7394 msgstr ""
7395
7396 # type: verbatim
7397 #: ../src/guestfs-actions.pod:2084
7398 #, no-wrap
7399 msgid ""
7400 " struct guestfs_xattr_list *\n"
7401 " guestfs_getxattrs (guestfs_h *g,\n"
7402 "                    const char *path);\n"
7403 "\n"
7404 msgstr ""
7405
7406 # type: textblock
7407 #: ../src/guestfs-actions.pod:2088 ../fish/guestfish-actions.pod:1421
7408 msgid "This call lists the extended attributes of the file or directory C<path>."
7409 msgstr ""
7410
7411 # type: textblock
7412 #: ../src/guestfs-actions.pod:2091 ../fish/guestfish-actions.pod:1424
7413 msgid ""
7414 "At the system call level, this is a combination of the L<listxattr(2)> and "
7415 "L<getxattr(2)> calls."
7416 msgstr ""
7417
7418 # type: textblock
7419 #: ../src/guestfs-actions.pod:2094
7420 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7421 msgstr ""
7422
7423 # type: textblock
7424 #: ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3647
7425 msgid ""
7426 "This function returns a C<struct guestfs_xattr_list *> (see "
7427 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7428 "must call C<guestfs_free_xattr_list> after use>."
7429 msgstr ""
7430
7431 # type: textblock
7432 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3163 ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:6764
7433 msgid "(Added in 1.0.59)"
7434 msgstr ""
7435
7436 # type: =head2
7437 #: ../src/guestfs-actions.pod:2103
7438 msgid "guestfs_glob_expand"
7439 msgstr ""
7440
7441 # type: verbatim
7442 #: ../src/guestfs-actions.pod:2105
7443 #, no-wrap
7444 msgid ""
7445 " char **\n"
7446 " guestfs_glob_expand (guestfs_h *g,\n"
7447 "                      const char *pattern);\n"
7448 "\n"
7449 msgstr ""
7450
7451 # type: textblock
7452 #: ../src/guestfs-actions.pod:2109 ../fish/guestfish-actions.pod:1433
7453 msgid ""
7454 "This command searches for all the pathnames matching C<pattern> according to "
7455 "the wildcard expansion rules used by the shell."
7456 msgstr ""
7457
7458 # type: textblock
7459 #: ../src/guestfs-actions.pod:2113 ../fish/guestfish-actions.pod:1437
7460 msgid "If no paths match, then this returns an empty list (note: not an error)."
7461 msgstr ""
7462
7463 # type: textblock
7464 #: ../src/guestfs-actions.pod:2116 ../fish/guestfish-actions.pod:1440
7465 msgid ""
7466 "It is just a wrapper around the C L<glob(3)> function with flags "
7467 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7468 msgstr ""
7469
7470 # type: textblock
7471 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5620
7472 msgid "(Added in 1.0.50)"
7473 msgstr ""
7474
7475 # type: =head2
7476 #: ../src/guestfs-actions.pod:2126
7477 msgid "guestfs_grep"
7478 msgstr ""
7479
7480 # type: verbatim
7481 #: ../src/guestfs-actions.pod:2128
7482 #, no-wrap
7483 msgid ""
7484 " char **\n"
7485 " guestfs_grep (guestfs_h *g,\n"
7486 "               const char *regex,\n"
7487 "               const char *path);\n"
7488 "\n"
7489 msgstr ""
7490
7491 # type: textblock
7492 #: ../src/guestfs-actions.pod:2133 ../fish/guestfish-actions.pod:1448
7493 msgid "This calls the external C<grep> program and returns the matching lines."
7494 msgstr ""
7495
7496 # type: =head2
7497 #: ../src/guestfs-actions.pod:2145
7498 msgid "guestfs_grepi"
7499 msgstr ""
7500
7501 # type: verbatim
7502 #: ../src/guestfs-actions.pod:2147
7503 #, no-wrap
7504 msgid ""
7505 " char **\n"
7506 " guestfs_grepi (guestfs_h *g,\n"
7507 "                const char *regex,\n"
7508 "                const char *path);\n"
7509 "\n"
7510 msgstr ""
7511
7512 # type: textblock
7513 #: ../src/guestfs-actions.pod:2152 ../fish/guestfish-actions.pod:1458
7514 msgid "This calls the external C<grep -i> program and returns the matching lines."
7515 msgstr ""
7516
7517 # type: =head2
7518 #: ../src/guestfs-actions.pod:2164
7519 msgid "guestfs_grub_install"
7520 msgstr ""
7521
7522 # type: verbatim
7523 #: ../src/guestfs-actions.pod:2166
7524 #, no-wrap
7525 msgid ""
7526 " int\n"
7527 " guestfs_grub_install (guestfs_h *g,\n"
7528 "                       const char *root,\n"
7529 "                       const char *device);\n"
7530 "\n"
7531 msgstr ""
7532
7533 # type: textblock
7534 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1468
7535 msgid ""
7536 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7537 "the root directory being C<root>."
7538 msgstr ""
7539
7540 # type: textblock
7541 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1471
7542 msgid ""
7543 "Note: If grub-install reports the error \"No suitable drive was found in the "
7544 "generated device map.\" it may be that you need to create a "
7545 "C</boot/grub/device.map> file first that contains the mapping between grub "
7546 "device names and Linux device names.  It is usually sufficient to create a "
7547 "file containing:"
7548 msgstr ""
7549
7550 # type: verbatim
7551 #: ../src/guestfs-actions.pod:2181 ../fish/guestfish-actions.pod:1478
7552 #, no-wrap
7553 msgid ""
7554 " (hd0) /dev/vda\n"
7555 "\n"
7556 msgstr ""
7557
7558 # type: textblock
7559 #: ../src/guestfs-actions.pod:2183 ../fish/guestfish-actions.pod:1480
7560 msgid "replacing C</dev/vda> with the name of the installation device."
7561 msgstr ""
7562
7563 # type: textblock
7564 #: ../src/guestfs-actions.pod:2187
7565 msgid "(Added in 1.0.17)"
7566 msgstr ""
7567
7568 # type: =head2
7569 #: ../src/guestfs-actions.pod:2189
7570 msgid "guestfs_head"
7571 msgstr ""
7572
7573 # type: verbatim
7574 #: ../src/guestfs-actions.pod:2191
7575 #, no-wrap
7576 msgid ""
7577 " char **\n"
7578 " guestfs_head (guestfs_h *g,\n"
7579 "               const char *path);\n"
7580 "\n"
7581 msgstr ""
7582
7583 # type: textblock
7584 #: ../src/guestfs-actions.pod:2195 ../fish/guestfish-actions.pod:1486
7585 msgid ""
7586 "This command returns up to the first 10 lines of a file as a list of "
7587 "strings."
7588 msgstr ""
7589
7590 # type: =head2
7591 #: ../src/guestfs-actions.pod:2207
7592 msgid "guestfs_head_n"
7593 msgstr ""
7594
7595 # type: verbatim
7596 #: ../src/guestfs-actions.pod:2209
7597 #, no-wrap
7598 msgid ""
7599 " char **\n"
7600 " guestfs_head_n (guestfs_h *g,\n"
7601 "                 int nrlines,\n"
7602 "                 const char *path);\n"
7603 "\n"
7604 msgstr ""
7605
7606 # type: textblock
7607 #: ../src/guestfs-actions.pod:2214 ../fish/guestfish-actions.pod:1496
7608 msgid ""
7609 "If the parameter C<nrlines> is a positive number, this returns the first "
7610 "C<nrlines> lines of the file C<path>."
7611 msgstr ""
7612
7613 # type: textblock
7614 #: ../src/guestfs-actions.pod:2217 ../fish/guestfish-actions.pod:1499
7615 msgid ""
7616 "If the parameter C<nrlines> is a negative number, this returns lines from "
7617 "the file C<path>, excluding the last C<nrlines> lines."
7618 msgstr ""
7619
7620 # type: textblock
7621 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:5900 ../fish/guestfish-actions.pod:1502 ../fish/guestfish-actions.pod:3917
7622 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7623 msgstr ""
7624
7625 # type: =head2
7626 #: ../src/guestfs-actions.pod:2231
7627 msgid "guestfs_hexdump"
7628 msgstr ""
7629
7630 # type: verbatim
7631 #: ../src/guestfs-actions.pod:2233
7632 #, no-wrap
7633 msgid ""
7634 " char *\n"
7635 " guestfs_hexdump (guestfs_h *g,\n"
7636 "                  const char *path);\n"
7637 "\n"
7638 msgstr ""
7639
7640 # type: textblock
7641 #: ../src/guestfs-actions.pod:2237 ../fish/guestfish-actions.pod:1511
7642 msgid ""
7643 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7644 "human-readable, canonical hex dump of the file."
7645 msgstr ""
7646
7647 # type: textblock
7648 #: ../src/guestfs-actions.pod:2246 ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:5739
7649 msgid "(Added in 1.0.22)"
7650 msgstr ""
7651
7652 # type: =head2
7653 #: ../src/guestfs-actions.pod:2248
7654 msgid "guestfs_initrd_cat"
7655 msgstr ""
7656
7657 # type: verbatim
7658 #: ../src/guestfs-actions.pod:2250
7659 #, no-wrap
7660 msgid ""
7661 " char *\n"
7662 " guestfs_initrd_cat (guestfs_h *g,\n"
7663 "                     const char *initrdpath,\n"
7664 "                     const char *filename,\n"
7665 "                     size_t *size_r);\n"
7666 "\n"
7667 msgstr ""
7668
7669 # type: textblock
7670 #: ../src/guestfs-actions.pod:2256 ../fish/guestfish-actions.pod:1521
7671 msgid ""
7672 "This command unpacks the file C<filename> from the initrd file called "
7673 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7674 "character."
7675 msgstr ""
7676
7677 # type: textblock
7678 #: ../src/guestfs-actions.pod:2260 ../fish/guestfish-actions.pod:1525
7679 msgid ""
7680 "For example, in guestfish you could use the following command to examine the "
7681 "boot script (usually called C</init>)  contained in a Linux initrd or "
7682 "initramfs image:"
7683 msgstr ""
7684
7685 # type: verbatim
7686 #: ../src/guestfs-actions.pod:2264 ../fish/guestfish-actions.pod:1529
7687 #, no-wrap
7688 msgid ""
7689 " initrd-cat /boot/initrd-<version>.img init\n"
7690 "\n"
7691 msgstr ""
7692
7693 # type: textblock
7694 #: ../src/guestfs-actions.pod:2266
7695 msgid "See also C<guestfs_initrd_list>."
7696 msgstr ""
7697
7698 # type: textblock
7699 #: ../src/guestfs-actions.pod:2268 ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4643 ../src/guestfs-actions.pod:4825
7700 msgid ""
7701 "This function returns a buffer, or NULL on error.  The size of the returned "
7702 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
7703 "after use>."
7704 msgstr ""
7705
7706 # type: =head2
7707 #: ../src/guestfs-actions.pod:2277
7708 msgid "guestfs_initrd_list"
7709 msgstr ""
7710
7711 # type: verbatim
7712 #: ../src/guestfs-actions.pod:2279
7713 #, no-wrap
7714 msgid ""
7715 " char **\n"
7716 " guestfs_initrd_list (guestfs_h *g,\n"
7717 "                      const char *path);\n"
7718 "\n"
7719 msgstr ""
7720
7721 # type: textblock
7722 #: ../src/guestfs-actions.pod:2283 ../fish/guestfish-actions.pod:1540
7723 msgid "This command lists out files contained in an initrd."
7724 msgstr ""
7725
7726 # type: textblock
7727 #: ../src/guestfs-actions.pod:2285 ../fish/guestfish-actions.pod:1542
7728 msgid ""
7729 "The files are listed without any initial C</> character.  The files are "
7730 "listed in the order they appear (not necessarily alphabetical).  Directory "
7731 "names are listed as separate items."
7732 msgstr ""
7733
7734 # type: textblock
7735 #: ../src/guestfs-actions.pod:2289 ../fish/guestfish-actions.pod:1546
7736 msgid ""
7737 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7738 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7739 "files)."
7740 msgstr ""
7741
7742 # type: =head2
7743 #: ../src/guestfs-actions.pod:2299
7744 msgid "guestfs_inotify_add_watch"
7745 msgstr ""
7746
7747 # type: verbatim
7748 #: ../src/guestfs-actions.pod:2301
7749 #, no-wrap
7750 msgid ""
7751 " int64_t\n"
7752 " guestfs_inotify_add_watch (guestfs_h *g,\n"
7753 "                            const char *path,\n"
7754 "                            int mask);\n"
7755 "\n"
7756 msgstr ""
7757
7758 # type: textblock
7759 #: ../src/guestfs-actions.pod:2306 ../fish/guestfish-actions.pod:1554
7760 msgid "Watch C<path> for the events listed in C<mask>."
7761 msgstr ""
7762
7763 # type: textblock
7764 #: ../src/guestfs-actions.pod:2308 ../fish/guestfish-actions.pod:1556
7765 msgid ""
7766 "Note that if C<path> is a directory then events within that directory are "
7767 "watched, but this does I<not> happen recursively (in subdirectories)."
7768 msgstr ""
7769
7770 # type: textblock
7771 #: ../src/guestfs-actions.pod:2312 ../fish/guestfish-actions.pod:1560
7772 msgid ""
7773 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7774 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7775 msgstr ""
7776
7777 # type: =head2
7778 #: ../src/guestfs-actions.pod:2320
7779 msgid "guestfs_inotify_close"
7780 msgstr ""
7781
7782 # type: verbatim
7783 #: ../src/guestfs-actions.pod:2322
7784 #, no-wrap
7785 msgid ""
7786 " int\n"
7787 " guestfs_inotify_close (guestfs_h *g);\n"
7788 "\n"
7789 msgstr ""
7790
7791 # type: textblock
7792 #: ../src/guestfs-actions.pod:2325 ../fish/guestfish-actions.pod:1568
7793 msgid ""
7794 "This closes the inotify handle which was previously opened by inotify_init.  "
7795 "It removes all watches, throws away any pending events, and deallocates all "
7796 "resources."
7797 msgstr ""
7798
7799 # type: =head2
7800 #: ../src/guestfs-actions.pod:2333
7801 msgid "guestfs_inotify_files"
7802 msgstr ""
7803
7804 # type: verbatim
7805 #: ../src/guestfs-actions.pod:2335
7806 #, no-wrap
7807 msgid ""
7808 " char **\n"
7809 " guestfs_inotify_files (guestfs_h *g);\n"
7810 "\n"
7811 msgstr ""
7812
7813 # type: textblock
7814 #: ../src/guestfs-actions.pod:2338
7815 msgid ""
7816 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
7817 "returns a list of pathnames of objects that were touched.  The returned "
7818 "pathnames are sorted and deduplicated."
7819 msgstr ""
7820
7821 # type: =head2
7822 #: ../src/guestfs-actions.pod:2348
7823 msgid "guestfs_inotify_init"
7824 msgstr ""
7825
7826 # type: verbatim
7827 #: ../src/guestfs-actions.pod:2350
7828 #, no-wrap
7829 msgid ""
7830 " int\n"
7831 " guestfs_inotify_init (guestfs_h *g,\n"
7832 "                       int maxevents);\n"
7833 "\n"
7834 msgstr ""
7835
7836 # type: textblock
7837 #: ../src/guestfs-actions.pod:2354 ../fish/guestfish-actions.pod:1584
7838 msgid ""
7839 "This command creates a new inotify handle.  The inotify subsystem can be "
7840 "used to notify events which happen to objects in the guest filesystem."
7841 msgstr ""
7842
7843 # type: textblock
7844 #: ../src/guestfs-actions.pod:2358
7845 msgid ""
7846 "C<maxevents> is the maximum number of events which will be queued up between "
7847 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
7848 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
7849 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
7850 "throws away events, but records the fact that it threw them away by setting "
7851 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
7852 "C<guestfs_inotify_read>)."
7853 msgstr ""
7854
7855 # type: textblock
7856 #: ../src/guestfs-actions.pod:2368
7857 msgid ""
7858 "Before any events are generated, you have to add some watches to the "
7859 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
7860 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
7861 msgstr ""
7862
7863 # type: textblock
7864 #: ../src/guestfs-actions.pod:2374
7865 msgid ""
7866 "Queued up events should be read periodically by calling "
7867 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
7868 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
7869 "often enough then you risk the internal queue overflowing."
7870 msgstr ""
7871
7872 # type: textblock
7873 #: ../src/guestfs-actions.pod:2381
7874 msgid ""
7875 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
7876 "This also removes any watches automatically."
7877 msgstr ""
7878
7879 # type: textblock
7880 #: ../src/guestfs-actions.pod:2385 ../fish/guestfish-actions.pod:1615
7881 msgid ""
7882 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7883 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7884 "that there is one global inotify handle per libguestfs instance."
7885 msgstr ""
7886
7887 # type: =head2
7888 #: ../src/guestfs-actions.pod:2394
7889 msgid "guestfs_inotify_read"
7890 msgstr ""
7891
7892 # type: verbatim
7893 #: ../src/guestfs-actions.pod:2396
7894 #, no-wrap
7895 msgid ""
7896 " struct guestfs_inotify_event_list *\n"
7897 " guestfs_inotify_read (guestfs_h *g);\n"
7898 "\n"
7899 msgstr ""
7900
7901 # type: textblock
7902 #: ../src/guestfs-actions.pod:2399 ../fish/guestfish-actions.pod:1624
7903 msgid ""
7904 "Return the complete queue of events that have happened since the previous "
7905 "read call."
7906 msgstr ""
7907
7908 # type: textblock
7909 #: ../src/guestfs-actions.pod:2402 ../fish/guestfish-actions.pod:1627
7910 msgid "If no events have happened, this returns an empty list."
7911 msgstr ""
7912
7913 # type: textblock
7914 #: ../src/guestfs-actions.pod:2404 ../fish/guestfish-actions.pod:1629
7915 msgid ""
7916 "I<Note>: In order to make sure that all events have been read, you must call "
7917 "this function repeatedly until it returns an empty list.  The reason is that "
7918 "the call will read events up to the maximum appliance-to-host message size "
7919 "and leave remaining events in the queue."
7920 msgstr ""
7921
7922 # type: textblock
7923 #: ../src/guestfs-actions.pod:2410
7924 msgid ""
7925 "This function returns a C<struct guestfs_inotify_event_list *> (see "
7926 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
7927 "must call C<guestfs_free_inotify_event_list> after use>."
7928 msgstr ""
7929
7930 # type: =head2
7931 #: ../src/guestfs-actions.pod:2417
7932 msgid "guestfs_inotify_rm_watch"
7933 msgstr ""
7934
7935 # type: verbatim
7936 #: ../src/guestfs-actions.pod:2419
7937 #, no-wrap
7938 msgid ""
7939 " int\n"
7940 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
7941 "                           int wd);\n"
7942 "\n"
7943 msgstr ""
7944
7945 # type: textblock
7946 #: ../src/guestfs-actions.pod:2423
7947 msgid ""
7948 "Remove a previously defined inotify watch.  See "
7949 "C<guestfs_inotify_add_watch>."
7950 msgstr ""
7951
7952 # type: =head2
7953 #: ../src/guestfs-actions.pod:2430
7954 msgid "guestfs_inspect_get_arch"
7955 msgstr ""
7956
7957 # type: verbatim
7958 #: ../src/guestfs-actions.pod:2432
7959 #, no-wrap
7960 msgid ""
7961 " char *\n"
7962 " guestfs_inspect_get_arch (guestfs_h *g,\n"
7963 "                           const char *root);\n"
7964 "\n"
7965 msgstr ""
7966
7967 # type: textblock
7968 #: ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2558 ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2639 ../src/guestfs-actions.pod:2663 ../src/guestfs-actions.pod:2701
7969 msgid ""
7970 "This function should only be called with a root device string as returned by "
7971 "C<guestfs_inspect_os>."
7972 msgstr ""
7973
7974 # type: textblock
7975 #: ../src/guestfs-actions.pod:2439
7976 msgid ""
7977 "This returns the architecture of the inspected operating system.  The "
7978 "possible return values are listed under C<guestfs_file_architecture>."
7979 msgstr ""
7980
7981 # type: textblock
7982 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1653
7983 msgid ""
7984 "If the architecture could not be determined, then the string C<unknown> is "
7985 "returned."
7986 msgstr ""
7987
7988 # type: textblock
7989 #: ../src/guestfs-actions.pod:2446 ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2650 ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2751 ../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
7990 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7991 msgstr ""
7992
7993 # type: =head2
7994 #: ../src/guestfs-actions.pod:2453
7995 msgid "guestfs_inspect_get_distro"
7996 msgstr ""
7997
7998 # type: verbatim
7999 #: ../src/guestfs-actions.pod:2455
8000 #, no-wrap
8001 msgid ""
8002 " char *\n"
8003 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8004 "                             const char *root);\n"
8005 "\n"
8006 msgstr ""
8007
8008 # type: textblock
8009 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1665
8010 msgid "This returns the distro (distribution) of the inspected operating system."
8011 msgstr ""
8012
8013 # type: textblock
8014 #: ../src/guestfs-actions.pod:2465 ../fish/guestfish-actions.pod:1668
8015 msgid "Currently defined distros are:"
8016 msgstr ""
8017
8018 # type: =item
8019 #: ../src/guestfs-actions.pod:2469 ../fish/guestfish-actions.pod:1672
8020 msgid "\"archlinux\""
8021 msgstr ""
8022
8023 # type: textblock
8024 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1674
8025 msgid "Arch Linux."
8026 msgstr ""
8027
8028 # type: =item
8029 #: ../src/guestfs-actions.pod:2473 ../fish/guestfish-actions.pod:1676
8030 msgid "\"debian\""
8031 msgstr ""
8032
8033 # type: textblock
8034 #: ../src/guestfs-actions.pod:2475 ../fish/guestfish-actions.pod:1678
8035 msgid "Debian or a Debian-derived distro such as Ubuntu."
8036 msgstr ""
8037
8038 # type: =item
8039 #: ../src/guestfs-actions.pod:2477 ../fish/guestfish-actions.pod:1680
8040 msgid "\"fedora\""
8041 msgstr ""
8042
8043 # type: textblock
8044 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1682
8045 msgid "Fedora."
8046 msgstr ""
8047
8048 # type: =item
8049 #: ../src/guestfs-actions.pod:2481 ../fish/guestfish-actions.pod:1684
8050 msgid "\"gentoo\""
8051 msgstr ""
8052
8053 # type: textblock
8054 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1686
8055 msgid "Gentoo."
8056 msgstr ""
8057
8058 # type: =item
8059 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1688
8060 msgid "\"meego\""
8061 msgstr ""
8062
8063 # type: textblock
8064 #: ../src/guestfs-actions.pod:2487 ../fish/guestfish-actions.pod:1690
8065 msgid "MeeGo."
8066 msgstr ""
8067
8068 # type: =item
8069 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1692
8070 msgid "\"pardus\""
8071 msgstr ""
8072
8073 # type: textblock
8074 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1694
8075 msgid "Pardus."
8076 msgstr ""
8077
8078 # type: =item
8079 #: ../src/guestfs-actions.pod:2493 ../fish/guestfish-actions.pod:1696
8080 msgid "\"redhat-based\""
8081 msgstr ""
8082
8083 # type: textblock
8084 #: ../src/guestfs-actions.pod:2495 ../fish/guestfish-actions.pod:1698
8085 msgid "Some Red Hat-derived distro."
8086 msgstr ""
8087
8088 # type: =item
8089 #: ../src/guestfs-actions.pod:2497 ../fish/guestfish-actions.pod:1700
8090 msgid "\"rhel\""
8091 msgstr ""
8092
8093 # type: textblock
8094 #: ../src/guestfs-actions.pod:2499 ../fish/guestfish-actions.pod:1702
8095 msgid "Red Hat Enterprise Linux and some derivatives."
8096 msgstr ""
8097
8098 # type: =item
8099 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1834
8100 msgid "\"windows\""
8101 msgstr ""
8102
8103 # type: textblock
8104 #: ../src/guestfs-actions.pod:2503 ../fish/guestfish-actions.pod:1706
8105 msgid ""
8106 "Windows does not have distributions.  This string is returned if the OS type "
8107 "is Windows."
8108 msgstr ""
8109
8110 # type: =item
8111 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1709
8112 msgid "\"ubuntu\""
8113 msgstr ""
8114
8115 # type: textblock
8116 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1711
8117 msgid "Ubuntu."
8118 msgstr ""
8119
8120 # type: =item
8121 #: ../src/guestfs-actions.pod:2510 ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:1713 ../fish/guestfish-actions.pod:1838
8122 msgid "\"unknown\""
8123 msgstr ""
8124
8125 # type: textblock
8126 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1715
8127 msgid "The distro could not be determined."
8128 msgstr ""
8129
8130 # type: textblock
8131 #: ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2685 ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1844
8132 msgid ""
8133 "Future versions of libguestfs may return other strings here.  The caller "
8134 "should be prepared to handle any string."
8135 msgstr ""
8136
8137 # type: =head2
8138 #: ../src/guestfs-actions.pod:2526
8139 msgid "guestfs_inspect_get_filesystems"
8140 msgstr ""
8141
8142 # type: verbatim
8143 #: ../src/guestfs-actions.pod:2528
8144 #, no-wrap
8145 msgid ""
8146 " char **\n"
8147 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8148 "                                  const char *root);\n"
8149 "\n"
8150 msgstr ""
8151
8152 # type: textblock
8153 #: ../src/guestfs-actions.pod:2535 ../fish/guestfish-actions.pod:1731
8154 msgid ""
8155 "This returns a list of all the filesystems that we think are associated with "
8156 "this operating system.  This includes the root filesystem, other ordinary "
8157 "filesystems, and non-mounted devices like swap partitions."
8158 msgstr ""
8159
8160 # type: textblock
8161 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1736
8162 msgid ""
8163 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8164 "to be shared between operating systems."
8165 msgstr ""
8166
8167 # type: textblock
8168 #: ../src/guestfs-actions.pod:2543
8169 msgid ""
8170 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8171 "C<guestfs_inspect_get_mountpoints>."
8172 msgstr ""
8173
8174 # type: =head2
8175 #: ../src/guestfs-actions.pod:2552
8176 msgid "guestfs_inspect_get_major_version"
8177 msgstr ""
8178
8179 # type: verbatim
8180 #: ../src/guestfs-actions.pod:2554
8181 #, no-wrap
8182 msgid ""
8183 " int\n"
8184 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8185 "                                    const char *root);\n"
8186 "\n"
8187 msgstr ""
8188
8189 # type: textblock
8190 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1749
8191 msgid "This returns the major version number of the inspected operating system."
8192 msgstr ""
8193
8194 # type: textblock
8195 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1752
8196 msgid ""
8197 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8198 "popular public names used by the operating system.  Notably the operating "
8199 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8200 "1).  You can find out the real versions corresponding to releases of Windows "
8201 "by consulting Wikipedia or MSDN."
8202 msgstr ""
8203
8204 # type: textblock
8205 #: ../src/guestfs-actions.pod:2571 ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1773
8206 msgid "If the version could not be determined, then C<0> is returned."
8207 msgstr ""
8208
8209 # type: =head2
8210 #: ../src/guestfs-actions.pod:2579
8211 msgid "guestfs_inspect_get_minor_version"
8212 msgstr ""
8213
8214 # type: verbatim
8215 #: ../src/guestfs-actions.pod:2581
8216 #, no-wrap
8217 msgid ""
8218 " int\n"
8219 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8220 "                                    const char *root);\n"
8221 "\n"
8222 msgstr ""
8223
8224 # type: textblock
8225 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1770
8226 msgid "This returns the minor version number of the inspected operating system."
8227 msgstr ""
8228
8229 # type: textblock
8230 #: ../src/guestfs-actions.pod:2593
8231 msgid ""
8232 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8233 "C<guestfs_inspect_get_major_version>."
8234 msgstr ""
8235
8236 # type: =head2
8237 #: ../src/guestfs-actions.pod:2600
8238 msgid "guestfs_inspect_get_mountpoints"
8239 msgstr ""
8240
8241 # type: verbatim
8242 #: ../src/guestfs-actions.pod:2602
8243 #, no-wrap
8244 msgid ""
8245 " char **\n"
8246 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8247 "                                  const char *root);\n"
8248 "\n"
8249 msgstr ""
8250
8251 # type: textblock
8252 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1785
8253 msgid ""
8254 "This returns a hash of where we think the filesystems associated with this "
8255 "operating system should be mounted.  Callers should note that this is at "
8256 "best an educated guess made by reading configuration files such as "
8257 "C</etc/fstab>."
8258 msgstr ""
8259
8260 # type: textblock
8261 #: ../src/guestfs-actions.pod:2614 ../fish/guestfish-actions.pod:1790
8262 msgid ""
8263 "Each element in the returned hashtable has a key which is the path of the "
8264 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8265 "mounted there (eg. C</dev/sda1>)."
8266 msgstr ""
8267
8268 # type: textblock
8269 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1795
8270 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8271 msgstr ""
8272
8273 # type: textblock
8274 #: ../src/guestfs-actions.pod:2622
8275 msgid ""
8276 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8277 "C<guestfs_inspect_get_filesystems>."
8278 msgstr ""
8279
8280 # type: textblock
8281 #: ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:6041
8282 msgid ""
8283 "This function returns a NULL-terminated array of strings, or NULL if there "
8284 "was an error.  The array of strings will always have length C<2n+1>, where "
8285 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8286 "caller must free the strings and the array after use>."
8287 msgstr ""
8288
8289 # type: =head2
8290 #: ../src/guestfs-actions.pod:2633
8291 msgid "guestfs_inspect_get_product_name"
8292 msgstr ""
8293
8294 # type: verbatim
8295 #: ../src/guestfs-actions.pod:2635
8296 #, no-wrap
8297 msgid ""
8298 " char *\n"
8299 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8300 "                                   const char *root);\n"
8301 "\n"
8302 msgstr ""
8303
8304 # type: textblock
8305 #: ../src/guestfs-actions.pod:2642 ../fish/guestfish-actions.pod:1808
8306 msgid ""
8307 "This returns the product name of the inspected operating system.  The "
8308 "product name is generally some freeform string which can be displayed to the "
8309 "user, but should not be parsed by programs."
8310 msgstr ""
8311
8312 # type: textblock
8313 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1813
8314 msgid ""
8315 "If the product name could not be determined, then the string C<unknown> is "
8316 "returned."
8317 msgstr ""
8318
8319 # type: =head2
8320 #: ../src/guestfs-actions.pod:2657
8321 msgid "guestfs_inspect_get_type"
8322 msgstr ""
8323
8324 # type: verbatim
8325 #: ../src/guestfs-actions.pod:2659
8326 #, no-wrap
8327 msgid ""
8328 " char *\n"
8329 " guestfs_inspect_get_type (guestfs_h *g,\n"
8330 "                           const char *root);\n"
8331 "\n"
8332 msgstr ""
8333
8334 # type: textblock
8335 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:1825
8336 msgid ""
8337 "This returns the type of the inspected operating system.  Currently defined "
8338 "types are:"
8339 msgstr ""
8340
8341 # type: =item
8342 #: ../src/guestfs-actions.pod:2671 ../fish/guestfish-actions.pod:1830
8343 msgid "\"linux\""
8344 msgstr ""
8345
8346 # type: textblock
8347 #: ../src/guestfs-actions.pod:2673 ../fish/guestfish-actions.pod:1832
8348 msgid "Any Linux-based operating system."
8349 msgstr ""
8350
8351 # type: textblock
8352 #: ../src/guestfs-actions.pod:2677 ../fish/guestfish-actions.pod:1836
8353 msgid "Any Microsoft Windows operating system."
8354 msgstr ""
8355
8356 # type: textblock
8357 #: ../src/guestfs-actions.pod:2681 ../fish/guestfish-actions.pod:1840
8358 msgid "The operating system type could not be determined."
8359 msgstr ""
8360
8361 # type: =head2
8362 #: ../src/guestfs-actions.pod:2695
8363 msgid "guestfs_inspect_get_windows_systemroot"
8364 msgstr ""
8365
8366 # type: verbatim
8367 #: ../src/guestfs-actions.pod:2697
8368 #, no-wrap
8369 msgid ""
8370 " char *\n"
8371 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8372 "                                         const char *root);\n"
8373 "\n"
8374 msgstr ""
8375
8376 # type: textblock
8377 #: ../src/guestfs-actions.pod:2704 ../fish/guestfish-actions.pod:1856
8378 msgid ""
8379 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8380 "is a directory path such as C</WINDOWS>."
8381 msgstr ""
8382
8383 # type: textblock
8384 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1859
8385 msgid ""
8386 "This call assumes that the guest is Windows and that the systemroot could be "
8387 "determined by inspection.  If this is not the case then an error is "
8388 "returned."
8389 msgstr ""
8390
8391 # type: textblock
8392 #: ../src/guestfs-actions.pod:2716
8393 msgid "(Added in 1.5.25)"
8394 msgstr ""
8395
8396 # type: =head2
8397 #: ../src/guestfs-actions.pod:2718
8398 msgid "guestfs_inspect_os"
8399 msgstr ""
8400
8401 # type: verbatim
8402 #: ../src/guestfs-actions.pod:2720
8403 #, no-wrap
8404 msgid ""
8405 " char **\n"
8406 " guestfs_inspect_os (guestfs_h *g);\n"
8407 "\n"
8408 msgstr ""
8409
8410 # type: textblock
8411 #: ../src/guestfs-actions.pod:2723 ../fish/guestfish-actions.pod:1869
8412 msgid ""
8413 "This function uses other libguestfs functions and certain heuristics to "
8414 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8415 "for operating systems."
8416 msgstr ""
8417
8418 # type: textblock
8419 #: ../src/guestfs-actions.pod:2727 ../fish/guestfish-actions.pod:1873
8420 msgid "The list returned is empty if no operating systems were found."
8421 msgstr ""
8422
8423 # type: textblock
8424 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:1875
8425 msgid ""
8426 "If one operating system was found, then this returns a list with a single "
8427 "element, which is the name of the root filesystem of this operating system.  "
8428 "It is also possible for this function to return a list containing more than "
8429 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8430 "element being the root filesystem of one of the operating systems."
8431 msgstr ""
8432
8433 # type: textblock
8434 #: ../src/guestfs-actions.pod:2736
8435 msgid ""
8436 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
8437 "functions in order to query further information about each operating system, "
8438 "such as the name and version."
8439 msgstr ""
8440
8441 # type: textblock
8442 #: ../src/guestfs-actions.pod:2741
8443 msgid ""
8444 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
8445 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
8446 "the contents.  This should be called with no disks currently mounted.  The "
8447 "function may also use Augeas, so any existing Augeas handle will be closed."
8448 msgstr ""
8449
8450 # type: textblock
8451 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1893
8452 msgid ""
8453 "This function cannot decrypt encrypted disks.  The caller must do that first "
8454 "(supplying the necessary keys) if the disk is encrypted."
8455 msgstr ""
8456
8457 # type: textblock
8458 #: ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3071
8459 msgid "See also C<guestfs_list_filesystems>."
8460 msgstr ""
8461
8462 # type: =head2
8463 #: ../src/guestfs-actions.pod:2761
8464 msgid "guestfs_is_blockdev"
8465 msgstr ""
8466
8467 # type: verbatim
8468 #: ../src/guestfs-actions.pod:2763
8469 #, no-wrap
8470 msgid ""
8471 " int\n"
8472 " guestfs_is_blockdev (guestfs_h *g,\n"
8473 "                      const char *path);\n"
8474 "\n"
8475 msgstr ""
8476
8477 # type: textblock
8478 #: ../src/guestfs-actions.pod:2767 ../fish/guestfish-actions.pod:1905
8479 msgid ""
8480 "This returns C<true> if and only if there is a block device with the given "
8481 "C<path> name."
8482 msgstr ""
8483
8484 # type: textblock
8485 #: ../src/guestfs-actions.pod:2770 ../src/guestfs-actions.pod:2799 ../src/guestfs-actions.pod:2829 ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:2931
8486 msgid "See also C<guestfs_stat>."
8487 msgstr ""
8488
8489 # type: textblock
8490 #: ../src/guestfs-actions.pod:2774 ../src/guestfs-actions.pod:2803 ../src/guestfs-actions.pod:2848 ../src/guestfs-actions.pod:2920 ../src/guestfs-actions.pod:2935
8491 msgid "(Added in 1.5.10)"
8492 msgstr ""
8493
8494 # type: =head2
8495 #: ../src/guestfs-actions.pod:2776
8496 msgid "guestfs_is_busy"
8497 msgstr ""
8498
8499 # type: verbatim
8500 #: ../src/guestfs-actions.pod:2778
8501 #, no-wrap
8502 msgid ""
8503 " int\n"
8504 " guestfs_is_busy (guestfs_h *g);\n"
8505 "\n"
8506 msgstr ""
8507
8508 # type: textblock
8509 #: ../src/guestfs-actions.pod:2781 ../fish/guestfish-actions.pod:1914
8510 msgid ""
8511 "This returns true iff this handle is busy processing a command (in the "
8512 "C<BUSY> state)."
8513 msgstr ""
8514
8515 # type: =head2
8516 #: ../src/guestfs-actions.pod:2790
8517 msgid "guestfs_is_chardev"
8518 msgstr ""
8519
8520 # type: verbatim
8521 #: ../src/guestfs-actions.pod:2792
8522 #, no-wrap
8523 msgid ""
8524 " int\n"
8525 " guestfs_is_chardev (guestfs_h *g,\n"
8526 "                     const char *path);\n"
8527 "\n"
8528 msgstr ""
8529
8530 # type: textblock
8531 #: ../src/guestfs-actions.pod:2796 ../fish/guestfish-actions.pod:1923
8532 msgid ""
8533 "This returns C<true> if and only if there is a character device with the "
8534 "given C<path> name."
8535 msgstr ""
8536
8537 # type: =head2
8538 #: ../src/guestfs-actions.pod:2805
8539 msgid "guestfs_is_config"
8540 msgstr ""
8541
8542 # type: verbatim
8543 #: ../src/guestfs-actions.pod:2807
8544 #, no-wrap
8545 msgid ""
8546 " int\n"
8547 " guestfs_is_config (guestfs_h *g);\n"
8548 "\n"
8549 msgstr ""
8550
8551 # type: textblock
8552 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1932
8553 msgid ""
8554 "This returns true iff this handle is being configured (in the C<CONFIG> "
8555 "state)."
8556 msgstr ""
8557
8558 # type: =head2
8559 #: ../src/guestfs-actions.pod:2819
8560 msgid "guestfs_is_dir"
8561 msgstr ""
8562
8563 # type: verbatim
8564 #: ../src/guestfs-actions.pod:2821
8565 #, no-wrap
8566 msgid ""
8567 " int\n"
8568 " guestfs_is_dir (guestfs_h *g,\n"
8569 "                 const char *path);\n"
8570 "\n"
8571 msgstr ""
8572
8573 # type: textblock
8574 #: ../src/guestfs-actions.pod:2825 ../fish/guestfish-actions.pod:1941
8575 msgid ""
8576 "This returns C<true> if and only if there is a directory with the given "
8577 "C<path> name.  Note that it returns false for other objects like files."
8578 msgstr ""
8579
8580 # type: =head2
8581 #: ../src/guestfs-actions.pod:2835
8582 msgid "guestfs_is_fifo"
8583 msgstr ""
8584
8585 # type: verbatim
8586 #: ../src/guestfs-actions.pod:2837
8587 #, no-wrap
8588 msgid ""
8589 " int\n"
8590 " guestfs_is_fifo (guestfs_h *g,\n"
8591 "                  const char *path);\n"
8592 "\n"
8593 msgstr ""
8594
8595 # type: textblock
8596 #: ../src/guestfs-actions.pod:2841 ../fish/guestfish-actions.pod:1951
8597 msgid ""
8598 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8599 "given C<path> name."
8600 msgstr ""
8601
8602 # type: =head2
8603 #: ../src/guestfs-actions.pod:2850
8604 msgid "guestfs_is_file"
8605 msgstr ""
8606
8607 # type: verbatim
8608 #: ../src/guestfs-actions.pod:2852
8609 #, no-wrap
8610 msgid ""
8611 " int\n"
8612 " guestfs_is_file (guestfs_h *g,\n"
8613 "                  const char *path);\n"
8614 "\n"
8615 msgstr ""
8616
8617 # type: textblock
8618 #: ../src/guestfs-actions.pod:2856 ../fish/guestfish-actions.pod:1960
8619 msgid ""
8620 "This returns C<true> if and only if there is a regular file with the given "
8621 "C<path> name.  Note that it returns false for other objects like "
8622 "directories."
8623 msgstr ""
8624
8625 # type: =head2
8626 #: ../src/guestfs-actions.pod:2866
8627 msgid "guestfs_is_launching"
8628 msgstr ""
8629
8630 # type: verbatim
8631 #: ../src/guestfs-actions.pod:2868
8632 #, no-wrap
8633 msgid ""
8634 " int\n"
8635 " guestfs_is_launching (guestfs_h *g);\n"
8636 "\n"
8637 msgstr ""
8638
8639 # type: textblock
8640 #: ../src/guestfs-actions.pod:2871 ../fish/guestfish-actions.pod:1970
8641 msgid ""
8642 "This returns true iff this handle is launching the subprocess (in the "
8643 "C<LAUNCHING> state)."
8644 msgstr ""
8645
8646 # type: =head2
8647 #: ../src/guestfs-actions.pod:2880
8648 msgid "guestfs_is_lv"
8649 msgstr ""
8650
8651 # type: verbatim
8652 #: ../src/guestfs-actions.pod:2882
8653 #, no-wrap
8654 msgid ""
8655 " int\n"
8656 " guestfs_is_lv (guestfs_h *g,\n"
8657 "                const char *device);\n"
8658 "\n"
8659 msgstr ""
8660
8661 # type: textblock
8662 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1979
8663 msgid ""
8664 "This command tests whether C<device> is a logical volume, and returns true "
8665 "iff this is the case."
8666 msgstr ""
8667
8668 # type: =head2
8669 #: ../src/guestfs-actions.pod:2893
8670 msgid "guestfs_is_ready"
8671 msgstr ""
8672
8673 # type: verbatim
8674 #: ../src/guestfs-actions.pod:2895
8675 #, no-wrap
8676 msgid ""
8677 " int\n"
8678 " guestfs_is_ready (guestfs_h *g);\n"
8679 "\n"
8680 msgstr ""
8681
8682 # type: textblock
8683 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1986
8684 msgid ""
8685 "This returns true iff this handle is ready to accept commands (in the "
8686 "C<READY> state)."
8687 msgstr ""
8688
8689 # type: =head2
8690 #: ../src/guestfs-actions.pod:2907
8691 msgid "guestfs_is_socket"
8692 msgstr ""
8693
8694 # type: verbatim
8695 #: ../src/guestfs-actions.pod:2909
8696 #, no-wrap
8697 msgid ""
8698 " int\n"
8699 " guestfs_is_socket (guestfs_h *g,\n"
8700 "                    const char *path);\n"
8701 "\n"
8702 msgstr ""
8703
8704 # type: textblock
8705 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:1995
8706 msgid ""
8707 "This returns C<true> if and only if there is a Unix domain socket with the "
8708 "given C<path> name."
8709 msgstr ""
8710
8711 # type: =head2
8712 #: ../src/guestfs-actions.pod:2922
8713 msgid "guestfs_is_symlink"
8714 msgstr ""
8715
8716 # type: verbatim
8717 #: ../src/guestfs-actions.pod:2924
8718 #, no-wrap
8719 msgid ""
8720 " int\n"
8721 " guestfs_is_symlink (guestfs_h *g,\n"
8722 "                     const char *path);\n"
8723 "\n"
8724 msgstr ""
8725
8726 # type: textblock
8727 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2004
8728 msgid ""
8729 "This returns C<true> if and only if there is a symbolic link with the given "
8730 "C<path> name."
8731 msgstr ""
8732
8733 # type: =head2
8734 #: ../src/guestfs-actions.pod:2937
8735 msgid "guestfs_kill_subprocess"
8736 msgstr ""
8737
8738 # type: verbatim
8739 #: ../src/guestfs-actions.pod:2939
8740 #, no-wrap
8741 msgid ""
8742 " int\n"
8743 " guestfs_kill_subprocess (guestfs_h *g);\n"
8744 "\n"
8745 msgstr ""
8746
8747 # type: textblock
8748 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2013
8749 msgid "This kills the qemu subprocess.  You should never need to call this."
8750 msgstr ""
8751
8752 # type: =head2
8753 #: ../src/guestfs-actions.pod:2948
8754 msgid "guestfs_launch"
8755 msgstr ""
8756
8757 # type: verbatim
8758 #: ../src/guestfs-actions.pod:2950
8759 #, no-wrap
8760 msgid ""
8761 " int\n"
8762 " guestfs_launch (guestfs_h *g);\n"
8763 "\n"
8764 msgstr ""
8765
8766 # type: textblock
8767 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2021
8768 msgid ""
8769 "Internally libguestfs is implemented by running a virtual machine using "
8770 "L<qemu(1)>."
8771 msgstr ""
8772
8773 # type: textblock
8774 #: ../src/guestfs-actions.pod:2956 ../fish/guestfish-actions.pod:2024
8775 msgid ""
8776 "You should call this after configuring the handle (eg. adding drives) but "
8777 "before performing any actions."
8778 msgstr ""
8779
8780 # type: =head2
8781 #: ../src/guestfs-actions.pod:2963
8782 msgid "guestfs_lchown"
8783 msgstr ""
8784
8785 # type: verbatim
8786 #: ../src/guestfs-actions.pod:2965
8787 #, no-wrap
8788 msgid ""
8789 " int\n"
8790 " guestfs_lchown (guestfs_h *g,\n"
8791 "                 int owner,\n"
8792 "                 int group,\n"
8793 "                 const char *path);\n"
8794 "\n"
8795 msgstr ""
8796
8797 # type: textblock
8798 #: ../src/guestfs-actions.pod:2971
8799 msgid ""
8800 "Change the file owner to C<owner> and group to C<group>.  This is like "
8801 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
8802 "changed, not the target."
8803 msgstr ""
8804
8805 # type: =head2
8806 #: ../src/guestfs-actions.pod:2983
8807 msgid "guestfs_lgetxattrs"
8808 msgstr ""
8809
8810 # type: verbatim
8811 #: ../src/guestfs-actions.pod:2985
8812 #, no-wrap
8813 msgid ""
8814 " struct guestfs_xattr_list *\n"
8815 " guestfs_lgetxattrs (guestfs_h *g,\n"
8816 "                     const char *path);\n"
8817 "\n"
8818 msgstr ""
8819
8820 # type: textblock
8821 #: ../src/guestfs-actions.pod:2989
8822 msgid ""
8823 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
8824 "then it returns the extended attributes of the link itself."
8825 msgstr ""
8826
8827 # type: =head2
8828 #: ../src/guestfs-actions.pod:3000
8829 msgid "guestfs_list_devices"
8830 msgstr ""
8831
8832 # type: verbatim
8833 #: ../src/guestfs-actions.pod:3002
8834 #, no-wrap
8835 msgid ""
8836 " char **\n"
8837 " guestfs_list_devices (guestfs_h *g);\n"
8838 "\n"
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2051
8843 msgid "List all the block devices."
8844 msgstr ""
8845
8846 # type: textblock
8847 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2053
8848 msgid "The full block device names are returned, eg. C</dev/sda>."
8849 msgstr ""
8850
8851 # type: =head2
8852 #: ../src/guestfs-actions.pod:3017
8853 msgid "guestfs_list_filesystems"
8854 msgstr ""
8855
8856 # type: verbatim
8857 #: ../src/guestfs-actions.pod:3019
8858 #, no-wrap
8859 msgid ""
8860 " char **\n"
8861 " guestfs_list_filesystems (guestfs_h *g);\n"
8862 "\n"
8863 msgstr ""
8864
8865 # type: textblock
8866 #: ../src/guestfs-actions.pod:3022 ../fish/guestfish-actions.pod:2061
8867 msgid ""
8868 "This inspection command looks for filesystems on partitions, block devices "
8869 "and logical volumes, returning a list of devices containing filesystems and "
8870 "their type."
8871 msgstr ""
8872
8873 # type: textblock
8874 #: ../src/guestfs-actions.pod:3026 ../fish/guestfish-actions.pod:2065
8875 msgid ""
8876 "The return value is a hash, where the keys are the devices containing "
8877 "filesystems, and the values are the filesystem types.  For example:"
8878 msgstr ""
8879
8880 # type: verbatim
8881 #: ../src/guestfs-actions.pod:3030 ../fish/guestfish-actions.pod:2069
8882 #, no-wrap
8883 msgid ""
8884 " \"/dev/sda1\" => \"ntfs\"\n"
8885 " \"/dev/sda2\" => \"ext2\"\n"
8886 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
8887 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
8888 "\n"
8889 msgstr ""
8890
8891 # type: textblock
8892 #: ../src/guestfs-actions.pod:3035 ../fish/guestfish-actions.pod:2074
8893 msgid ""
8894 "The value can have the special value \"unknown\", meaning the content of the "
8895 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
8896 msgstr ""
8897
8898 # type: textblock
8899 #: ../src/guestfs-actions.pod:3039
8900 msgid ""
8901 "This command runs other libguestfs commands, which might include "
8902 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
8903 "soon after launch and only when nothing is mounted."
8904 msgstr ""
8905
8906 # type: textblock
8907 #: ../src/guestfs-actions.pod:3043
8908 msgid ""
8909 "Not all of the filesystems returned will be mountable.  In particular, swap "
8910 "partitions are returned in the list.  Also this command does not check that "
8911 "each filesystem found is valid and mountable, and some filesystems might be "
8912 "mountable but require special options.  Filesystems may not all belong to a "
8913 "single logical operating system (use C<guestfs_inspect_os> to look for "
8914 "OSes)."
8915 msgstr ""
8916
8917 # type: textblock
8918 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:4584
8919 msgid "(Added in 1.5.15)"
8920 msgstr ""
8921
8922 # type: =head2
8923 #: ../src/guestfs-actions.pod:3059
8924 msgid "guestfs_list_partitions"
8925 msgstr ""
8926
8927 # type: verbatim
8928 #: ../src/guestfs-actions.pod:3061
8929 #, no-wrap
8930 msgid ""
8931 " char **\n"
8932 " guestfs_list_partitions (guestfs_h *g);\n"
8933 "\n"
8934 msgstr ""
8935
8936 # type: textblock
8937 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2094
8938 msgid "List all the partitions detected on all block devices."
8939 msgstr ""
8940
8941 # type: textblock
8942 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2096
8943 msgid "The full partition device names are returned, eg. C</dev/sda1>"
8944 msgstr ""
8945
8946 # type: textblock
8947 #: ../src/guestfs-actions.pod:3068
8948 msgid ""
8949 "This does not return logical volumes.  For that you will need to call "
8950 "C<guestfs_lvs>."
8951 msgstr ""
8952
8953 # type: =head2
8954 #: ../src/guestfs-actions.pod:3079
8955 msgid "guestfs_ll"
8956 msgstr ""
8957
8958 # type: verbatim
8959 #: ../src/guestfs-actions.pod:3081
8960 #, no-wrap
8961 msgid ""
8962 " char *\n"
8963 " guestfs_ll (guestfs_h *g,\n"
8964 "             const char *directory);\n"
8965 "\n"
8966 msgstr ""
8967
8968 # type: textblock
8969 #: ../src/guestfs-actions.pod:3085 ../fish/guestfish-actions.pod:2107
8970 msgid ""
8971 "List the files in C<directory> (relative to the root directory, there is no "
8972 "cwd) in the format of 'ls -la'."
8973 msgstr ""
8974
8975 # type: textblock
8976 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2110
8977 msgid ""
8978 "This command is mostly useful for interactive sessions.  It is I<not> "
8979 "intended that you try to parse the output string."
8980 msgstr ""
8981
8982 # type: =head2
8983 #: ../src/guestfs-actions.pod:3096
8984 msgid "guestfs_ln"
8985 msgstr ""
8986
8987 # type: verbatim
8988 #: ../src/guestfs-actions.pod:3098
8989 #, no-wrap
8990 msgid ""
8991 " int\n"
8992 " guestfs_ln (guestfs_h *g,\n"
8993 "             const char *target,\n"
8994 "             const char *linkname);\n"
8995 "\n"
8996 msgstr ""
8997
8998 # type: textblock
8999 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2117
9000 msgid "This command creates a hard link using the C<ln> command."
9001 msgstr ""
9002
9003 # type: =head2
9004 #: ../src/guestfs-actions.pod:3109
9005 msgid "guestfs_ln_f"
9006 msgstr ""
9007
9008 # type: verbatim
9009 #: ../src/guestfs-actions.pod:3111
9010 #, no-wrap
9011 msgid ""
9012 " int\n"
9013 " guestfs_ln_f (guestfs_h *g,\n"
9014 "               const char *target,\n"
9015 "               const char *linkname);\n"
9016 "\n"
9017 msgstr ""
9018
9019 # type: textblock
9020 #: ../src/guestfs-actions.pod:3116 ../fish/guestfish-actions.pod:2123
9021 msgid ""
9022 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9023 "option removes the link (C<linkname>) if it exists already."
9024 msgstr ""
9025
9026 # type: =head2
9027 #: ../src/guestfs-actions.pod:3123
9028 msgid "guestfs_ln_s"
9029 msgstr ""
9030
9031 # type: verbatim
9032 #: ../src/guestfs-actions.pod:3125
9033 #, no-wrap
9034 msgid ""
9035 " int\n"
9036 " guestfs_ln_s (guestfs_h *g,\n"
9037 "               const char *target,\n"
9038 "               const char *linkname);\n"
9039 "\n"
9040 msgstr ""
9041
9042 # type: textblock
9043 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2130
9044 msgid "This command creates a symbolic link using the C<ln -s> command."
9045 msgstr ""
9046
9047 # type: =head2
9048 #: ../src/guestfs-actions.pod:3136
9049 msgid "guestfs_ln_sf"
9050 msgstr ""
9051
9052 # type: verbatim
9053 #: ../src/guestfs-actions.pod:3138
9054 #, no-wrap
9055 msgid ""
9056 " int\n"
9057 " guestfs_ln_sf (guestfs_h *g,\n"
9058 "                const char *target,\n"
9059 "                const char *linkname);\n"
9060 "\n"
9061 msgstr ""
9062
9063 # type: textblock
9064 #: ../src/guestfs-actions.pod:3143 ../fish/guestfish-actions.pod:2136
9065 msgid ""
9066 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9067 "option removes the link (C<linkname>) if it exists already."
9068 msgstr ""
9069
9070 # type: =head2
9071 #: ../src/guestfs-actions.pod:3150
9072 msgid "guestfs_lremovexattr"
9073 msgstr ""
9074
9075 # type: verbatim
9076 #: ../src/guestfs-actions.pod:3152
9077 #, no-wrap
9078 msgid ""
9079 " int\n"
9080 " guestfs_lremovexattr (guestfs_h *g,\n"
9081 "                       const char *xattr,\n"
9082 "                       const char *path);\n"
9083 "\n"
9084 msgstr ""
9085
9086 # type: textblock
9087 #: ../src/guestfs-actions.pod:3157
9088 msgid ""
9089 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9090 "link, then it removes an extended attribute of the link itself."
9091 msgstr ""
9092
9093 # type: =head2
9094 #: ../src/guestfs-actions.pod:3165
9095 msgid "guestfs_ls"
9096 msgstr ""
9097
9098 # type: verbatim
9099 #: ../src/guestfs-actions.pod:3167
9100 #, no-wrap
9101 msgid ""
9102 " char **\n"
9103 " guestfs_ls (guestfs_h *g,\n"
9104 "             const char *directory);\n"
9105 "\n"
9106 msgstr ""
9107
9108 # type: textblock
9109 #: ../src/guestfs-actions.pod:3171 ../fish/guestfish-actions.pod:2151
9110 msgid ""
9111 "List the files in C<directory> (relative to the root directory, there is no "
9112 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9113 "shown."
9114 msgstr ""
9115
9116 # type: textblock
9117 #: ../src/guestfs-actions.pod:3175
9118 msgid ""
9119 "This command is mostly useful for interactive sessions.  Programs should "
9120 "probably use C<guestfs_readdir> instead."
9121 msgstr ""
9122
9123 # type: =head2
9124 #: ../src/guestfs-actions.pod:3184
9125 msgid "guestfs_lsetxattr"
9126 msgstr ""
9127
9128 # type: verbatim
9129 #: ../src/guestfs-actions.pod:3186
9130 #, no-wrap
9131 msgid ""
9132 " int\n"
9133 " guestfs_lsetxattr (guestfs_h *g,\n"
9134 "                    const char *xattr,\n"
9135 "                    const char *val,\n"
9136 "                    int vallen,\n"
9137 "                    const char *path);\n"
9138 "\n"
9139 msgstr ""
9140
9141 # type: textblock
9142 #: ../src/guestfs-actions.pod:3193
9143 msgid ""
9144 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9145 "then it sets an extended attribute of the link itself."
9146 msgstr ""
9147
9148 # type: =head2
9149 #: ../src/guestfs-actions.pod:3201
9150 msgid "guestfs_lstat"
9151 msgstr ""
9152
9153 # type: verbatim
9154 #: ../src/guestfs-actions.pod:3203
9155 #, no-wrap
9156 msgid ""
9157 " struct guestfs_stat *\n"
9158 " guestfs_lstat (guestfs_h *g,\n"
9159 "                const char *path);\n"
9160 "\n"
9161 msgstr ""
9162
9163 # type: textblock
9164 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:2170 ../fish/guestfish-actions.pod:3752
9165 msgid "Returns file information for the given C<path>."
9166 msgstr ""
9167
9168 # type: textblock
9169 #: ../src/guestfs-actions.pod:3209
9170 msgid ""
9171 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9172 "link, then the link is stat-ed, not the file it refers to."
9173 msgstr ""
9174
9175 # type: textblock
9176 #: ../src/guestfs-actions.pod:3213 ../fish/guestfish-actions.pod:2176
9177 msgid "This is the same as the C<lstat(2)> system call."
9178 msgstr ""
9179
9180 # type: textblock
9181 #: ../src/guestfs-actions.pod:3215 ../src/guestfs-actions.pod:5644
9182 msgid ""
9183 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9184 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9185 msgstr ""
9186
9187 # type: textblock
9188 #: ../src/guestfs-actions.pod:3219 ../src/guestfs-actions.pod:5648 ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:6047
9189 msgid "(Added in 0.9.2)"
9190 msgstr ""
9191
9192 # type: =head2
9193 #: ../src/guestfs-actions.pod:3221
9194 msgid "guestfs_lstatlist"
9195 msgstr ""
9196
9197 # type: verbatim
9198 #: ../src/guestfs-actions.pod:3223
9199 #, no-wrap
9200 msgid ""
9201 " struct guestfs_stat_list *\n"
9202 " guestfs_lstatlist (guestfs_h *g,\n"
9203 "                    const char *path,\n"
9204 "                    char *const *names);\n"
9205 "\n"
9206 msgstr ""
9207
9208 # type: textblock
9209 #: ../src/guestfs-actions.pod:3228
9210 msgid ""
9211 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9212 "files, where all files are in the directory C<path>.  C<names> is the list "
9213 "of files from this directory."
9214 msgstr ""
9215
9216 # type: textblock
9217 #: ../src/guestfs-actions.pod:3232 ../fish/guestfish-actions.pod:2186
9218 msgid ""
9219 "On return you get a list of stat structs, with a one-to-one correspondence "
9220 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9221 "then the C<ino> field of that structure is set to C<-1>."
9222 msgstr ""
9223
9224 # type: textblock
9225 #: ../src/guestfs-actions.pod:3237
9226 msgid ""
9227 "This call is intended for programs that want to efficiently list a directory "
9228 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9229 "for a similarly efficient call for getting extended attributes.  Very long "
9230 "directory listings might cause the protocol message size to be exceeded, "
9231 "causing this call to fail.  The caller must split up such requests into "
9232 "smaller groups of names."
9233 msgstr ""
9234
9235 # type: textblock
9236 #: ../src/guestfs-actions.pod:3245
9237 msgid ""
9238 "This function returns a C<struct guestfs_stat_list *> (see "
9239 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
9240 "must call C<guestfs_free_stat_list> after use>."
9241 msgstr ""
9242
9243 # type: =head2
9244 #: ../src/guestfs-actions.pod:3252
9245 msgid "guestfs_luks_add_key"
9246 msgstr ""
9247
9248 # type: verbatim
9249 #: ../src/guestfs-actions.pod:3254
9250 #, no-wrap
9251 msgid ""
9252 " int\n"
9253 " guestfs_luks_add_key (guestfs_h *g,\n"
9254 "                       const char *device,\n"
9255 "                       const char *key,\n"
9256 "                       const char *newkey,\n"
9257 "                       int keyslot);\n"
9258 "\n"
9259 msgstr ""
9260
9261 # type: textblock
9262 #: ../src/guestfs-actions.pod:3261 ../fish/guestfish-actions.pod:2203
9263 msgid ""
9264 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9265 "existing key, and is used to access the device.  C<newkey> is the new key to "
9266 "add.  C<keyslot> is the key slot that will be replaced."
9267 msgstr ""
9268
9269 # type: textblock
9270 #: ../src/guestfs-actions.pod:3266
9271 msgid ""
9272 "Note that if C<keyslot> already contains a key, then this command will "
9273 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9274 msgstr ""
9275
9276 # type: textblock
9277 #: ../src/guestfs-actions.pod:3272 ../src/guestfs-actions.pod:3312 ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3355 ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3406
9278 msgid ""
9279 "This function takes a key or passphrase parameter which could contain "
9280 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9281 "information."
9282 msgstr ""
9283
9284 # type: textblock
9285 #: ../src/guestfs-actions.pod:3276 ../src/guestfs-actions.pod:3316 ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9286 msgid "(Added in 1.5.2)"
9287 msgstr ""
9288
9289 # type: =head2
9290 #: ../src/guestfs-actions.pod:3278
9291 msgid "guestfs_luks_close"
9292 msgstr ""
9293
9294 # type: verbatim
9295 #: ../src/guestfs-actions.pod:3280
9296 #, no-wrap
9297 msgid ""
9298 " int\n"
9299 " guestfs_luks_close (guestfs_h *g,\n"
9300 "                     const char *device);\n"
9301 "\n"
9302 msgstr ""
9303
9304 # type: textblock
9305 #: ../src/guestfs-actions.pod:3284
9306 msgid ""
9307 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
9308 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
9309 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9310 "underlying block device."
9311 msgstr ""
9312
9313 # type: textblock
9314 #: ../src/guestfs-actions.pod:3292 ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:3508
9315 msgid "(Added in 1.5.1)"
9316 msgstr ""
9317
9318 # type: =head2
9319 #: ../src/guestfs-actions.pod:3294
9320 msgid "guestfs_luks_format"
9321 msgstr ""
9322
9323 # type: verbatim
9324 #: ../src/guestfs-actions.pod:3296
9325 #, no-wrap
9326 msgid ""
9327 " int\n"
9328 " guestfs_luks_format (guestfs_h *g,\n"
9329 "                      const char *device,\n"
9330 "                      const char *key,\n"
9331 "                      int keyslot);\n"
9332 "\n"
9333 msgstr ""
9334
9335 # type: textblock
9336 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2229
9337 msgid ""
9338 "This command erases existing data on C<device> and formats the device as a "
9339 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9340 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9341 msgstr ""
9342
9343 # type: textblock
9344 #: ../src/guestfs-actions.pod:3309 ../src/guestfs-actions.pod:3332 ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5475 ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5524 ../src/guestfs-actions.pod:6675 ../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
9345 msgid ""
9346 "B<This command is dangerous.  Without careful use you can easily destroy all "
9347 "your data>."
9348 msgstr ""
9349
9350 # type: =head2
9351 #: ../src/guestfs-actions.pod:3318
9352 msgid "guestfs_luks_format_cipher"
9353 msgstr ""
9354
9355 # type: verbatim
9356 #: ../src/guestfs-actions.pod:3320
9357 #, no-wrap
9358 msgid ""
9359 " int\n"
9360 " guestfs_luks_format_cipher (guestfs_h *g,\n"
9361 "                             const char *device,\n"
9362 "                             const char *key,\n"
9363 "                             int keyslot,\n"
9364 "                             const char *cipher);\n"
9365 "\n"
9366 msgstr ""
9367
9368 # type: textblock
9369 #: ../src/guestfs-actions.pod:3327
9370 msgid ""
9371 "This command is the same as C<guestfs_luks_format> but it also allows you to "
9372 "set the C<cipher> used."
9373 msgstr ""
9374
9375 # type: =head2
9376 #: ../src/guestfs-actions.pod:3341
9377 msgid "guestfs_luks_kill_slot"
9378 msgstr ""
9379
9380 # type: verbatim
9381 #: ../src/guestfs-actions.pod:3343
9382 #, no-wrap
9383 msgid ""
9384 " int\n"
9385 " guestfs_luks_kill_slot (guestfs_h *g,\n"
9386 "                         const char *device,\n"
9387 "                         const char *key,\n"
9388 "                         int keyslot);\n"
9389 "\n"
9390 msgstr ""
9391
9392 # type: textblock
9393 #: ../src/guestfs-actions.pod:3349 ../fish/guestfish-actions.pod:2257
9394 msgid ""
9395 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9396 "device C<device>.  C<key> must be one of the I<other> keys."
9397 msgstr ""
9398
9399 # type: =head2
9400 #: ../src/guestfs-actions.pod:3361
9401 msgid "guestfs_luks_open"
9402 msgstr ""
9403
9404 # type: verbatim
9405 #: ../src/guestfs-actions.pod:3363
9406 #, no-wrap
9407 msgid ""
9408 " int\n"
9409 " guestfs_luks_open (guestfs_h *g,\n"
9410 "                    const char *device,\n"
9411 "                    const char *key,\n"
9412 "                    const char *mapname);\n"
9413 "\n"
9414 msgstr ""
9415
9416 # type: textblock
9417 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2268
9418 msgid ""
9419 "This command opens a block device which has been encrypted according to the "
9420 "Linux Unified Key Setup (LUKS) standard."
9421 msgstr ""
9422
9423 # type: textblock
9424 #: ../src/guestfs-actions.pod:3372 ../fish/guestfish-actions.pod:2271
9425 msgid "C<device> is the encrypted block device or partition."
9426 msgstr ""
9427
9428 # type: textblock
9429 #: ../src/guestfs-actions.pod:3374 ../fish/guestfish-actions.pod:2273
9430 msgid ""
9431 "The caller must supply one of the keys associated with the LUKS block "
9432 "device, in the C<key> parameter."
9433 msgstr ""
9434
9435 # type: textblock
9436 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2276
9437 msgid ""
9438 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9439 "writes to this block device are decrypted from and encrypted to the "
9440 "underlying C<device> respectively."
9441 msgstr ""
9442
9443 # type: textblock
9444 #: ../src/guestfs-actions.pod:3381
9445 msgid ""
9446 "If this block device contains LVM volume groups, then calling "
9447 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
9448 "visible."
9449 msgstr ""
9450
9451 # type: =head2
9452 #: ../src/guestfs-actions.pod:3393
9453 msgid "guestfs_luks_open_ro"
9454 msgstr ""
9455
9456 # type: verbatim
9457 #: ../src/guestfs-actions.pod:3395
9458 #, no-wrap
9459 msgid ""
9460 " int\n"
9461 " guestfs_luks_open_ro (guestfs_h *g,\n"
9462 "                       const char *device,\n"
9463 "                       const char *key,\n"
9464 "                       const char *mapname);\n"
9465 "\n"
9466 msgstr ""
9467
9468 # type: textblock
9469 #: ../src/guestfs-actions.pod:3401
9470 msgid ""
9471 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
9472 "created."
9473 msgstr ""
9474
9475 # type: =head2
9476 #: ../src/guestfs-actions.pod:3412
9477 msgid "guestfs_lvcreate"
9478 msgstr ""
9479
9480 # type: verbatim
9481 #: ../src/guestfs-actions.pod:3414
9482 #, no-wrap
9483 msgid ""
9484 " int\n"
9485 " guestfs_lvcreate (guestfs_h *g,\n"
9486 "                   const char *logvol,\n"
9487 "                   const char *volgroup,\n"
9488 "                   int mbytes);\n"
9489 "\n"
9490 msgstr ""
9491
9492 # type: textblock
9493 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2301
9494 msgid ""
9495 "This creates an LVM logical volume called C<logvol> on the volume group "
9496 "C<volgroup>, with C<size> megabytes."
9497 msgstr ""
9498
9499 # type: =head2
9500 #: ../src/guestfs-actions.pod:3427
9501 msgid "guestfs_lvm_canonical_lv_name"
9502 msgstr ""
9503
9504 # type: verbatim
9505 #: ../src/guestfs-actions.pod:3429
9506 #, no-wrap
9507 msgid ""
9508 " char *\n"
9509 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
9510 "                                const char *lvname);\n"
9511 "\n"
9512 msgstr ""
9513
9514 # type: textblock
9515 #: ../src/guestfs-actions.pod:3433 ../fish/guestfish-actions.pod:2308
9516 msgid ""
9517 "This converts alternative naming schemes for LVs that you might find to the "
9518 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9519 "C</dev/VG/LV>."
9520 msgstr ""
9521
9522 # type: textblock
9523 #: ../src/guestfs-actions.pod:3437 ../fish/guestfish-actions.pod:2312
9524 msgid ""
9525 "This command returns an error if the C<lvname> parameter does not refer to a "
9526 "logical volume."
9527 msgstr ""
9528
9529 # type: textblock
9530 #: ../src/guestfs-actions.pod:3440
9531 msgid "See also C<guestfs_is_lv>."
9532 msgstr ""
9533
9534 # type: textblock
9535 #: ../src/guestfs-actions.pod:3445
9536 msgid "(Added in 1.5.24)"
9537 msgstr ""
9538
9539 # type: =head2
9540 #: ../src/guestfs-actions.pod:3447
9541 msgid "guestfs_lvm_clear_filter"
9542 msgstr ""
9543
9544 # type: verbatim
9545 #: ../src/guestfs-actions.pod:3449
9546 #, no-wrap
9547 msgid ""
9548 " int\n"
9549 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
9550 "\n"
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:3452
9555 msgid ""
9556 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
9557 "see every block device."
9558 msgstr ""
9559
9560 # type: textblock
9561 #: ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:3497 ../fish/guestfish-actions.pod:2324 ../fish/guestfish-actions.pod:2355
9562 msgid "This command also clears the LVM cache and performs a volume group scan."
9563 msgstr ""
9564
9565 # type: =head2
9566 #: ../src/guestfs-actions.pod:3462
9567 msgid "guestfs_lvm_remove_all"
9568 msgstr ""
9569
9570 # type: verbatim
9571 #: ../src/guestfs-actions.pod:3464
9572 #, no-wrap
9573 msgid ""
9574 " int\n"
9575 " guestfs_lvm_remove_all (guestfs_h *g);\n"
9576 "\n"
9577 msgstr ""
9578
9579 # type: textblock
9580 #: ../src/guestfs-actions.pod:3467 ../fish/guestfish-actions.pod:2331
9581 msgid ""
9582 "This command removes all LVM logical volumes, volume groups and physical "
9583 "volumes."
9584 msgstr ""
9585
9586 # type: =head2
9587 #: ../src/guestfs-actions.pod:3477
9588 msgid "guestfs_lvm_set_filter"
9589 msgstr ""
9590
9591 # type: verbatim
9592 #: ../src/guestfs-actions.pod:3479
9593 #, no-wrap
9594 msgid ""
9595 " int\n"
9596 " guestfs_lvm_set_filter (guestfs_h *g,\n"
9597 "                         char *const *devices);\n"
9598 "\n"
9599 msgstr ""
9600
9601 # type: textblock
9602 #: ../src/guestfs-actions.pod:3483 ../fish/guestfish-actions.pod:2341
9603 msgid ""
9604 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9605 "block devices in the list C<devices>, and will ignore all other attached "
9606 "block devices."
9607 msgstr ""
9608
9609 # type: textblock
9610 #: ../src/guestfs-actions.pod:3487 ../fish/guestfish-actions.pod:2345
9611 msgid ""
9612 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9613 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9614 "there are two types of duplication possible: either cloned PVs/VGs which "
9615 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9616 "same name.  In normal operation you cannot create this situation, but you "
9617 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9618 "inside the LVM metadata."
9619 msgstr ""
9620
9621 # type: textblock
9622 #: ../src/guestfs-actions.pod:3500 ../fish/guestfish-actions.pod:2358
9623 msgid "You can filter whole block devices or individual partitions."
9624 msgstr ""
9625
9626 # type: textblock
9627 #: ../src/guestfs-actions.pod:3502 ../fish/guestfish-actions.pod:2360
9628 msgid ""
9629 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9630 "filesystem), even if you are not filtering out that VG."
9631 msgstr ""
9632
9633 # type: =head2
9634 #: ../src/guestfs-actions.pod:3510
9635 msgid "guestfs_lvremove"
9636 msgstr ""
9637
9638 # type: verbatim
9639 #: ../src/guestfs-actions.pod:3512
9640 #, no-wrap
9641 msgid ""
9642 " int\n"
9643 " guestfs_lvremove (guestfs_h *g,\n"
9644 "                   const char *device);\n"
9645 "\n"
9646 msgstr ""
9647
9648 # type: textblock
9649 #: ../src/guestfs-actions.pod:3516 ../fish/guestfish-actions.pod:2368
9650 msgid ""
9651 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9652 "LV, such as C</dev/VG/LV>."
9653 msgstr ""
9654
9655 # type: textblock
9656 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2371
9657 msgid ""
9658 "You can also remove all LVs in a volume group by specifying the VG name, "
9659 "C</dev/VG>."
9660 msgstr ""
9661
9662 # type: textblock
9663 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:6413
9664 msgid "(Added in 1.0.13)"
9665 msgstr ""
9666
9667 # type: =head2
9668 #: ../src/guestfs-actions.pod:3526
9669 msgid "guestfs_lvrename"
9670 msgstr ""
9671
9672 # type: verbatim
9673 #: ../src/guestfs-actions.pod:3528
9674 #, no-wrap
9675 msgid ""
9676 " int\n"
9677 " guestfs_lvrename (guestfs_h *g,\n"
9678 "                   const char *logvol,\n"
9679 "                   const char *newlogvol);\n"
9680 "\n"
9681 msgstr ""
9682
9683 # type: textblock
9684 #: ../src/guestfs-actions.pod:3533 ../fish/guestfish-actions.pod:2378
9685 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9686 msgstr ""
9687
9688 # type: textblock
9689 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:6426
9690 msgid "(Added in 1.0.83)"
9691 msgstr ""
9692
9693 # type: =head2
9694 #: ../src/guestfs-actions.pod:3539
9695 msgid "guestfs_lvresize"
9696 msgstr ""
9697
9698 # type: verbatim
9699 #: ../src/guestfs-actions.pod:3541
9700 #, no-wrap
9701 msgid ""
9702 " int\n"
9703 " guestfs_lvresize (guestfs_h *g,\n"
9704 "                   const char *device,\n"
9705 "                   int mbytes);\n"
9706 "\n"
9707 msgstr ""
9708
9709 # type: textblock
9710 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2384
9711 msgid ""
9712 "This resizes (expands or shrinks) an existing LVM logical volume to "
9713 "C<mbytes>.  When reducing, data in the reduced part is lost."
9714 msgstr ""
9715
9716 # type: =head2
9717 #: ../src/guestfs-actions.pod:3554
9718 msgid "guestfs_lvresize_free"
9719 msgstr ""
9720
9721 # type: verbatim
9722 #: ../src/guestfs-actions.pod:3556
9723 #, no-wrap
9724 msgid ""
9725 " int\n"
9726 " guestfs_lvresize_free (guestfs_h *g,\n"
9727 "                        const char *lv,\n"
9728 "                        int percent);\n"
9729 "\n"
9730 msgstr ""
9731
9732 # type: textblock
9733 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2392
9734 msgid ""
9735 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9736 "remaining free space in the volume group.  Commonly you would call this with "
9737 "pc = 100 which expands the logical volume as much as possible, using all "
9738 "remaining free space in the volume group."
9739 msgstr ""
9740
9741 # type: textblock
9742 #: ../src/guestfs-actions.pod:3569
9743 msgid "(Added in 1.3.3)"
9744 msgstr ""
9745
9746 # type: =head2
9747 #: ../src/guestfs-actions.pod:3571
9748 msgid "guestfs_lvs"
9749 msgstr ""
9750
9751 # type: verbatim
9752 #: ../src/guestfs-actions.pod:3573
9753 #, no-wrap
9754 msgid ""
9755 " char **\n"
9756 " guestfs_lvs (guestfs_h *g);\n"
9757 "\n"
9758 msgstr ""
9759
9760 # type: textblock
9761 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2402
9762 msgid ""
9763 "List all the logical volumes detected.  This is the equivalent of the "
9764 "L<lvs(8)> command."
9765 msgstr ""
9766
9767 # type: textblock
9768 #: ../src/guestfs-actions.pod:3579 ../fish/guestfish-actions.pod:2405
9769 msgid ""
9770 "This returns a list of the logical volume device names "
9771 "(eg. C</dev/VolGroup00/LogVol00>)."
9772 msgstr ""
9773
9774 # type: textblock
9775 #: ../src/guestfs-actions.pod:3582
9776 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
9777 msgstr ""
9778
9779 # type: =head2
9780 #: ../src/guestfs-actions.pod:3590
9781 msgid "guestfs_lvs_full"
9782 msgstr ""
9783
9784 # type: verbatim
9785 #: ../src/guestfs-actions.pod:3592
9786 #, no-wrap
9787 msgid ""
9788 " struct guestfs_lvm_lv_list *\n"
9789 " guestfs_lvs_full (guestfs_h *g);\n"
9790 "\n"
9791 msgstr ""
9792
9793 # type: textblock
9794 #: ../src/guestfs-actions.pod:3595 ../fish/guestfish-actions.pod:2414
9795 msgid ""
9796 "List all the logical volumes detected.  This is the equivalent of the "
9797 "L<lvs(8)> command.  The \"full\" version includes all fields."
9798 msgstr ""
9799
9800 # type: textblock
9801 #: ../src/guestfs-actions.pod:3598
9802 msgid ""
9803 "This function returns a C<struct guestfs_lvm_lv_list *> (see "
9804 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
9805 "must call C<guestfs_free_lvm_lv_list> after use>."
9806 msgstr ""
9807
9808 # type: =head2
9809 #: ../src/guestfs-actions.pod:3605
9810 msgid "guestfs_lvuuid"
9811 msgstr ""
9812
9813 # type: verbatim
9814 #: ../src/guestfs-actions.pod:3607
9815 #, no-wrap
9816 msgid ""
9817 " char *\n"
9818 " guestfs_lvuuid (guestfs_h *g,\n"
9819 "                 const char *device);\n"
9820 "\n"
9821 msgstr ""
9822
9823 # type: textblock
9824 #: ../src/guestfs-actions.pod:3611 ../fish/guestfish-actions.pod:2421
9825 msgid "This command returns the UUID of the LVM LV C<device>."
9826 msgstr ""
9827
9828 # type: =head2
9829 #: ../src/guestfs-actions.pod:3618
9830 msgid "guestfs_lxattrlist"
9831 msgstr ""
9832
9833 # type: verbatim
9834 #: ../src/guestfs-actions.pod:3620
9835 #, no-wrap
9836 msgid ""
9837 " struct guestfs_xattr_list *\n"
9838 " guestfs_lxattrlist (guestfs_h *g,\n"
9839 "                     const char *path,\n"
9840 "                     char *const *names);\n"
9841 "\n"
9842 msgstr ""
9843
9844 # type: textblock
9845 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2427
9846 msgid ""
9847 "This call allows you to get the extended attributes of multiple files, where "
9848 "all files are in the directory C<path>.  C<names> is the list of files from "
9849 "this directory."
9850 msgstr ""
9851
9852 # type: textblock
9853 #: ../src/guestfs-actions.pod:3629 ../fish/guestfish-actions.pod:2431
9854 msgid ""
9855 "On return you get a flat list of xattr structs which must be interpreted "
9856 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9857 "C<attrval> in this struct is zero-length to indicate there was an error "
9858 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9859 "number (the number of following attributes for this file, which could be "
9860 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9861 "attributes for the first named file.  This repeats for the second and "
9862 "subsequent files."
9863 msgstr ""
9864
9865 # type: textblock
9866 #: ../src/guestfs-actions.pod:3639
9867 msgid ""
9868 "This call is intended for programs that want to efficiently list a directory "
9869 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
9870 "a similarly efficient call for getting standard stats.  Very long directory "
9871 "listings might cause the protocol message size to be exceeded, causing this "
9872 "call to fail.  The caller must split up such requests into smaller groups of "
9873 "names."
9874 msgstr ""
9875
9876 # type: =head2
9877 #: ../src/guestfs-actions.pod:3654
9878 msgid "guestfs_mkdir"
9879 msgstr ""
9880
9881 # type: verbatim
9882 #: ../src/guestfs-actions.pod:3656
9883 #, no-wrap
9884 msgid ""
9885 " int\n"
9886 " guestfs_mkdir (guestfs_h *g,\n"
9887 "                const char *path);\n"
9888 "\n"
9889 msgstr ""
9890
9891 # type: textblock
9892 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2453
9893 msgid "Create a directory named C<path>."
9894 msgstr ""
9895
9896 # type: =head2
9897 #: ../src/guestfs-actions.pod:3666
9898 msgid "guestfs_mkdir_mode"
9899 msgstr ""
9900
9901 # type: verbatim
9902 #: ../src/guestfs-actions.pod:3668
9903 #, no-wrap
9904 msgid ""
9905 " int\n"
9906 " guestfs_mkdir_mode (guestfs_h *g,\n"
9907 "                     const char *path,\n"
9908 "                     int mode);\n"
9909 "\n"
9910 msgstr ""
9911
9912 # type: textblock
9913 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2459
9914 msgid ""
9915 "This command creates a directory, setting the initial permissions of the "
9916 "directory to C<mode>."
9917 msgstr ""
9918
9919 # type: textblock
9920 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2462
9921 msgid ""
9922 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9923 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9924 "other ways."
9925 msgstr ""
9926
9927 # type: textblock
9928 #: ../src/guestfs-actions.pod:3680
9929 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
9930 msgstr ""
9931
9932 # type: =head2
9933 #: ../src/guestfs-actions.pod:3686
9934 msgid "guestfs_mkdir_p"
9935 msgstr ""
9936
9937 # type: verbatim
9938 #: ../src/guestfs-actions.pod:3688
9939 #, no-wrap
9940 msgid ""
9941 " int\n"
9942 " guestfs_mkdir_p (guestfs_h *g,\n"
9943 "                  const char *path);\n"
9944 "\n"
9945 msgstr ""
9946
9947 # type: textblock
9948 #: ../src/guestfs-actions.pod:3692 ../fish/guestfish-actions.pod:2472
9949 msgid ""
9950 "Create a directory named C<path>, creating any parent directories as "
9951 "necessary.  This is like the C<mkdir -p> shell command."
9952 msgstr ""
9953
9954 # type: =head2
9955 #: ../src/guestfs-actions.pod:3699
9956 msgid "guestfs_mkdtemp"
9957 msgstr ""
9958
9959 # type: verbatim
9960 #: ../src/guestfs-actions.pod:3701
9961 #, no-wrap
9962 msgid ""
9963 " char *\n"
9964 " guestfs_mkdtemp (guestfs_h *g,\n"
9965 "                  const char *template);\n"
9966 "\n"
9967 msgstr ""
9968
9969 # type: textblock
9970 #: ../src/guestfs-actions.pod:3705 ../fish/guestfish-actions.pod:2479
9971 msgid ""
9972 "This command creates a temporary directory.  The C<template> parameter "
9973 "should be a full pathname for the temporary directory name with the final "
9974 "six characters being \"XXXXXX\"."
9975 msgstr ""
9976
9977 # type: textblock
9978 #: ../src/guestfs-actions.pod:3710 ../fish/guestfish-actions.pod:2484
9979 msgid ""
9980 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9981 "being suitable for Windows filesystems."
9982 msgstr ""
9983
9984 # type: textblock
9985 #: ../src/guestfs-actions.pod:3713 ../fish/guestfish-actions.pod:2487
9986 msgid "The name of the temporary directory that was created is returned."
9987 msgstr ""
9988
9989 # type: textblock
9990 #: ../src/guestfs-actions.pod:3716 ../fish/guestfish-actions.pod:2490
9991 msgid "The temporary directory is created with mode 0700 and is owned by root."
9992 msgstr ""
9993
9994 # type: textblock
9995 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2493
9996 msgid ""
9997 "The caller is responsible for deleting the temporary directory and its "
9998 "contents after use."
9999 msgstr ""
10000
10001 # type: textblock
10002 #: ../src/guestfs-actions.pod:3722 ../fish/guestfish-actions.pod:2496
10003 msgid "See also: L<mkdtemp(3)>"
10004 msgstr ""
10005
10006 # type: =head2
10007 #: ../src/guestfs-actions.pod:3729
10008 msgid "guestfs_mke2fs_J"
10009 msgstr ""
10010
10011 # type: verbatim
10012 #: ../src/guestfs-actions.pod:3731
10013 #, no-wrap
10014 msgid ""
10015 " int\n"
10016 " guestfs_mke2fs_J (guestfs_h *g,\n"
10017 "                   const char *fstype,\n"
10018 "                   int blocksize,\n"
10019 "                   const char *device,\n"
10020 "                   const char *journal);\n"
10021 "\n"
10022 msgstr ""
10023
10024 # type: textblock
10025 #: ../src/guestfs-actions.pod:3738 ../fish/guestfish-actions.pod:2502
10026 msgid ""
10027 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10028 "C<journal>.  It is equivalent to the command:"
10029 msgstr ""
10030
10031 # type: verbatim
10032 #: ../src/guestfs-actions.pod:3742 ../fish/guestfish-actions.pod:2506
10033 #, no-wrap
10034 msgid ""
10035 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10036 "\n"
10037 msgstr ""
10038
10039 # type: textblock
10040 #: ../src/guestfs-actions.pod:3744
10041 msgid "See also C<guestfs_mke2journal>."
10042 msgstr ""
10043
10044 # type: textblock
10045 #: ../src/guestfs-actions.pod:3748 ../src/guestfs-actions.pod:3766 ../src/guestfs-actions.pod:3784 ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:3828 ../src/guestfs-actions.pod:3880 ../src/guestfs-actions.pod:4070
10046 msgid "(Added in 1.0.68)"
10047 msgstr ""
10048
10049 # type: =head2
10050 #: ../src/guestfs-actions.pod:3750
10051 msgid "guestfs_mke2fs_JL"
10052 msgstr ""
10053
10054 # type: verbatim
10055 #: ../src/guestfs-actions.pod:3752
10056 #, no-wrap
10057 msgid ""
10058 " int\n"
10059 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10060 "                    const char *fstype,\n"
10061 "                    int blocksize,\n"
10062 "                    const char *device,\n"
10063 "                    const char *label);\n"
10064 "\n"
10065 msgstr ""
10066
10067 # type: textblock
10068 #: ../src/guestfs-actions.pod:3759 ../fish/guestfish-actions.pod:2514
10069 msgid ""
10070 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10071 "the journal labeled C<label>."
10072 msgstr ""
10073
10074 # type: textblock
10075 #: ../src/guestfs-actions.pod:3762
10076 msgid "See also C<guestfs_mke2journal_L>."
10077 msgstr ""
10078
10079 # type: =head2
10080 #: ../src/guestfs-actions.pod:3768
10081 msgid "guestfs_mke2fs_JU"
10082 msgstr ""
10083
10084 # type: verbatim
10085 #: ../src/guestfs-actions.pod:3770
10086 #, no-wrap
10087 msgid ""
10088 " int\n"
10089 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10090 "                    const char *fstype,\n"
10091 "                    int blocksize,\n"
10092 "                    const char *device,\n"
10093 "                    const char *uuid);\n"
10094 "\n"
10095 msgstr ""
10096
10097 # type: textblock
10098 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2523
10099 msgid ""
10100 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10101 "the journal with UUID C<uuid>."
10102 msgstr ""
10103
10104 # type: textblock
10105 #: ../src/guestfs-actions.pod:3780
10106 msgid "See also C<guestfs_mke2journal_U>."
10107 msgstr ""
10108
10109 # type: =head2
10110 #: ../src/guestfs-actions.pod:3786
10111 msgid "guestfs_mke2journal"
10112 msgstr ""
10113
10114 # type: verbatim
10115 #: ../src/guestfs-actions.pod:3788
10116 #, no-wrap
10117 msgid ""
10118 " int\n"
10119 " guestfs_mke2journal (guestfs_h *g,\n"
10120 "                      int blocksize,\n"
10121 "                      const char *device);\n"
10122 "\n"
10123 msgstr ""
10124
10125 # type: textblock
10126 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2532
10127 msgid ""
10128 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10129 "command:"
10130 msgstr ""
10131
10132 # type: verbatim
10133 #: ../src/guestfs-actions.pod:3796 ../fish/guestfish-actions.pod:2535
10134 #, no-wrap
10135 msgid ""
10136 " mke2fs -O journal_dev -b blocksize device\n"
10137 "\n"
10138 msgstr ""
10139
10140 # type: =head2
10141 #: ../src/guestfs-actions.pod:3802
10142 msgid "guestfs_mke2journal_L"
10143 msgstr ""
10144
10145 # type: verbatim
10146 #: ../src/guestfs-actions.pod:3804
10147 #, no-wrap
10148 msgid ""
10149 " int\n"
10150 " guestfs_mke2journal_L (guestfs_h *g,\n"
10151 "                        int blocksize,\n"
10152 "                        const char *label,\n"
10153 "                        const char *device);\n"
10154 "\n"
10155 msgstr ""
10156
10157 # type: textblock
10158 #: ../src/guestfs-actions.pod:3810 ../fish/guestfish-actions.pod:2541
10159 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10160 msgstr ""
10161
10162 # type: =head2
10163 #: ../src/guestfs-actions.pod:3816
10164 msgid "guestfs_mke2journal_U"
10165 msgstr ""
10166
10167 # type: verbatim
10168 #: ../src/guestfs-actions.pod:3818
10169 #, no-wrap
10170 msgid ""
10171 " int\n"
10172 " guestfs_mke2journal_U (guestfs_h *g,\n"
10173 "                        int blocksize,\n"
10174 "                        const char *uuid,\n"
10175 "                        const char *device);\n"
10176 "\n"
10177 msgstr ""
10178
10179 # type: textblock
10180 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2547
10181 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10182 msgstr ""
10183
10184 # type: =head2
10185 #: ../src/guestfs-actions.pod:3830
10186 msgid "guestfs_mkfifo"
10187 msgstr ""
10188
10189 # type: verbatim
10190 #: ../src/guestfs-actions.pod:3832
10191 #, no-wrap
10192 msgid ""
10193 " int\n"
10194 " guestfs_mkfifo (guestfs_h *g,\n"
10195 "                 int mode,\n"
10196 "                 const char *path);\n"
10197 "\n"
10198 msgstr ""
10199
10200 # type: textblock
10201 #: ../src/guestfs-actions.pod:3837
10202 msgid ""
10203 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10204 "is just a convenient wrapper around C<guestfs_mknod>."
10205 msgstr ""
10206
10207 # type: =head2
10208 #: ../src/guestfs-actions.pod:3847
10209 msgid "guestfs_mkfs"
10210 msgstr ""
10211
10212 # type: verbatim
10213 #: ../src/guestfs-actions.pod:3849
10214 #, no-wrap
10215 msgid ""
10216 " int\n"
10217 " guestfs_mkfs (guestfs_h *g,\n"
10218 "               const char *fstype,\n"
10219 "               const char *device);\n"
10220 "\n"
10221 msgstr ""
10222
10223 # type: textblock
10224 #: ../src/guestfs-actions.pod:3854 ../fish/guestfish-actions.pod:2563
10225 msgid ""
10226 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10227 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10228 msgstr ""
10229
10230 # type: =head2
10231 #: ../src/guestfs-actions.pod:3862
10232 msgid "guestfs_mkfs_b"
10233 msgstr ""
10234
10235 # type: verbatim
10236 #: ../src/guestfs-actions.pod:3864
10237 #, no-wrap
10238 msgid ""
10239 " int\n"
10240 " guestfs_mkfs_b (guestfs_h *g,\n"
10241 "                 const char *fstype,\n"
10242 "                 int blocksize,\n"
10243 "                 const char *device);\n"
10244 "\n"
10245 msgstr ""
10246
10247 # type: textblock
10248 #: ../src/guestfs-actions.pod:3870
10249 msgid ""
10250 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10251 "block size of the resulting filesystem.  Supported block sizes depend on the "
10252 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10253 msgstr ""
10254
10255 # type: textblock
10256 #: ../src/guestfs-actions.pod:3875 ../fish/guestfish-actions.pod:2576
10257 msgid ""
10258 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10259 "cluster size."
10260 msgstr ""
10261
10262 # type: =head2
10263 #: ../src/guestfs-actions.pod:3882
10264 msgid "guestfs_mkmountpoint"
10265 msgstr ""
10266
10267 # type: verbatim
10268 #: ../src/guestfs-actions.pod:3884
10269 #, no-wrap
10270 msgid ""
10271 " int\n"
10272 " guestfs_mkmountpoint (guestfs_h *g,\n"
10273 "                       const char *exemptpath);\n"
10274 "\n"
10275 msgstr ""
10276
10277 # type: textblock
10278 #: ../src/guestfs-actions.pod:3888
10279 msgid ""
10280 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10281 "that can be used to create extra mountpoints before mounting the first "
10282 "filesystem."
10283 msgstr ""
10284
10285 # type: textblock
10286 #: ../src/guestfs-actions.pod:3892 ../fish/guestfish-actions.pod:2587
10287 msgid ""
10288 "These calls are I<only> necessary in some very limited circumstances, mainly "
10289 "the case where you want to mount a mix of unrelated and/or read-only "
10290 "filesystems together."
10291 msgstr ""
10292
10293 # type: textblock
10294 #: ../src/guestfs-actions.pod:3896 ../fish/guestfish-actions.pod:2591
10295 msgid ""
10296 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10297 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10298 "inside that.  You can unpack this as follows in guestfish:"
10299 msgstr ""
10300
10301 # type: verbatim
10302 #: ../src/guestfs-actions.pod:3901 ../fish/guestfish-actions.pod:2596
10303 #, no-wrap
10304 msgid ""
10305 " add-ro Fedora-11-i686-Live.iso\n"
10306 " run\n"
10307 " mkmountpoint /cd\n"
10308 " mkmountpoint /sqsh\n"
10309 " mkmountpoint /ext3fs\n"
10310 " mount /dev/sda /cd\n"
10311 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10312 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10313 "\n"
10314 msgstr ""
10315
10316 # type: textblock
10317 #: ../src/guestfs-actions.pod:3910 ../fish/guestfish-actions.pod:2605
10318 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10319 msgstr ""
10320
10321 # type: textblock
10322 #: ../src/guestfs-actions.pod:3912
10323 msgid ""
10324 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
10325 "may get unexpected errors if you try to mix these calls.  It is safest to "
10326 "manually unmount filesystems and remove mountpoints after use."
10327 msgstr ""
10328
10329 # type: textblock
10330 #: ../src/guestfs-actions.pod:3916
10331 msgid ""
10332 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
10333 "first, so for this to work for manual mountpoints, you must ensure that the "
10334 "innermost mountpoints have the longest pathnames, as in the example code "
10335 "above."
10336 msgstr ""
10337
10338 # type: textblock
10339 #: ../src/guestfs-actions.pod:3921 ../fish/guestfish-actions.pod:2616
10340 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10341 msgstr ""
10342
10343 # type: textblock
10344 #: ../src/guestfs-actions.pod:3923
10345 msgid ""
10346 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
10347 "means that C<guestfs_umount_all> is called when the handle is closed which "
10348 "can also trigger these issues."
10349 msgstr ""
10350
10351 # type: textblock
10352 #: ../src/guestfs-actions.pod:3929 ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:5084
10353 msgid "(Added in 1.0.62)"
10354 msgstr ""
10355
10356 # type: =head2
10357 #: ../src/guestfs-actions.pod:3931
10358 msgid "guestfs_mknod"
10359 msgstr ""
10360
10361 # type: verbatim
10362 #: ../src/guestfs-actions.pod:3933
10363 #, no-wrap
10364 msgid ""
10365 " int\n"
10366 " guestfs_mknod (guestfs_h *g,\n"
10367 "                int mode,\n"
10368 "                int devmajor,\n"
10369 "                int devminor,\n"
10370 "                const char *path);\n"
10371 "\n"
10372 msgstr ""
10373
10374 # type: textblock
10375 #: ../src/guestfs-actions.pod:3940 ../fish/guestfish-actions.pod:2626
10376 msgid ""
10377 "This call creates block or character special devices, or named pipes "
10378 "(FIFOs)."
10379 msgstr ""
10380
10381 # type: textblock
10382 #: ../src/guestfs-actions.pod:3943 ../fish/guestfish-actions.pod:2629
10383 msgid ""
10384 "The C<mode> parameter should be the mode, using the standard constants.  "
10385 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10386 "used when creating block and character special devices."
10387 msgstr ""
10388
10389 # type: textblock
10390 #: ../src/guestfs-actions.pod:3948
10391 msgid ""
10392 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10393 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10394 "regular file).  These constants are available in the standard Linux header "
10395 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
10396 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
10397 "the appropriate constant for you."
10398 msgstr ""
10399
10400 # type: =head2
10401 #: ../src/guestfs-actions.pod:3962
10402 msgid "guestfs_mknod_b"
10403 msgstr ""
10404
10405 # type: verbatim
10406 #: ../src/guestfs-actions.pod:3964
10407 #, no-wrap
10408 msgid ""
10409 " int\n"
10410 " guestfs_mknod_b (guestfs_h *g,\n"
10411 "                  int mode,\n"
10412 "                  int devmajor,\n"
10413 "                  int devminor,\n"
10414 "                  const char *path);\n"
10415 "\n"
10416 msgstr ""
10417
10418 # type: textblock
10419 #: ../src/guestfs-actions.pod:3971
10420 msgid ""
10421 "This call creates a block device node called C<path> with mode C<mode> and "
10422 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10423 "wrapper around C<guestfs_mknod>."
10424 msgstr ""
10425
10426 # type: =head2
10427 #: ../src/guestfs-actions.pod:3981
10428 msgid "guestfs_mknod_c"
10429 msgstr ""
10430
10431 # type: verbatim
10432 #: ../src/guestfs-actions.pod:3983
10433 #, no-wrap
10434 msgid ""
10435 " int\n"
10436 " guestfs_mknod_c (guestfs_h *g,\n"
10437 "                  int mode,\n"
10438 "                  int devmajor,\n"
10439 "                  int devminor,\n"
10440 "                  const char *path);\n"
10441 "\n"
10442 msgstr ""
10443
10444 # type: textblock
10445 #: ../src/guestfs-actions.pod:3990
10446 msgid ""
10447 "This call creates a char device node called C<path> with mode C<mode> and "
10448 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10449 "wrapper around C<guestfs_mknod>."
10450 msgstr ""
10451
10452 # type: =head2
10453 #: ../src/guestfs-actions.pod:4000
10454 msgid "guestfs_mkswap"
10455 msgstr ""
10456
10457 # type: verbatim
10458 #: ../src/guestfs-actions.pod:4002
10459 #, no-wrap
10460 msgid ""
10461 " int\n"
10462 " guestfs_mkswap (guestfs_h *g,\n"
10463 "                 const char *device);\n"
10464 "\n"
10465 msgstr ""
10466
10467 # type: textblock
10468 #: ../src/guestfs-actions.pod:4006 ../fish/guestfish-actions.pod:2668
10469 msgid "Create a swap partition on C<device>."
10470 msgstr ""
10471
10472 # type: =head2
10473 #: ../src/guestfs-actions.pod:4012
10474 msgid "guestfs_mkswap_L"
10475 msgstr ""
10476
10477 # type: verbatim
10478 #: ../src/guestfs-actions.pod:4014
10479 #, no-wrap
10480 msgid ""
10481 " int\n"
10482 " guestfs_mkswap_L (guestfs_h *g,\n"
10483 "                   const char *label,\n"
10484 "                   const char *device);\n"
10485 "\n"
10486 msgstr ""
10487
10488 # type: textblock
10489 #: ../src/guestfs-actions.pod:4019 ../fish/guestfish-actions.pod:2674
10490 msgid "Create a swap partition on C<device> with label C<label>."
10491 msgstr ""
10492
10493 # type: textblock
10494 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2676
10495 msgid ""
10496 "Note that you cannot attach a swap label to a block device "
10497 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10498 "the kernel or swap tools."
10499 msgstr ""
10500
10501 # type: =head2
10502 #: ../src/guestfs-actions.pod:4029
10503 msgid "guestfs_mkswap_U"
10504 msgstr ""
10505
10506 # type: verbatim
10507 #: ../src/guestfs-actions.pod:4031
10508 #, no-wrap
10509 msgid ""
10510 " int\n"
10511 " guestfs_mkswap_U (guestfs_h *g,\n"
10512 "                   const char *uuid,\n"
10513 "                   const char *device);\n"
10514 "\n"
10515 msgstr ""
10516
10517 # type: textblock
10518 #: ../src/guestfs-actions.pod:4036 ../fish/guestfish-actions.pod:2684
10519 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10520 msgstr ""
10521
10522 # type: =head2
10523 #: ../src/guestfs-actions.pod:4042
10524 msgid "guestfs_mkswap_file"
10525 msgstr ""
10526
10527 # type: verbatim
10528 #: ../src/guestfs-actions.pod:4044
10529 #, no-wrap
10530 msgid ""
10531 " int\n"
10532 " guestfs_mkswap_file (guestfs_h *g,\n"
10533 "                      const char *path);\n"
10534 "\n"
10535 msgstr ""
10536
10537 # type: textblock
10538 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:2690
10539 msgid "Create a swap file."
10540 msgstr ""
10541
10542 # type: textblock
10543 #: ../src/guestfs-actions.pod:4050
10544 msgid ""
10545 "This command just writes a swap file signature to an existing file.  To "
10546 "create the file itself, use something like C<guestfs_fallocate>."
10547 msgstr ""
10548
10549 # type: =head2
10550 #: ../src/guestfs-actions.pod:4057
10551 msgid "guestfs_modprobe"
10552 msgstr ""
10553
10554 # type: verbatim
10555 #: ../src/guestfs-actions.pod:4059
10556 #, no-wrap
10557 msgid ""
10558 " int\n"
10559 " guestfs_modprobe (guestfs_h *g,\n"
10560 "                   const char *modulename);\n"
10561 "\n"
10562 msgstr ""
10563
10564 # type: textblock
10565 #: ../src/guestfs-actions.pod:4063 ../fish/guestfish-actions.pod:2699
10566 msgid "This loads a kernel module in the appliance."
10567 msgstr ""
10568
10569 # type: textblock
10570 #: ../src/guestfs-actions.pod:4065 ../fish/guestfish-actions.pod:2701
10571 msgid ""
10572 "The kernel module must have been whitelisted when libguestfs was built (see "
10573 "C<appliance/kmod.whitelist.in> in the source)."
10574 msgstr ""
10575
10576 # type: =head2
10577 #: ../src/guestfs-actions.pod:4072
10578 msgid "guestfs_mount"
10579 msgstr ""
10580
10581 # type: verbatim
10582 #: ../src/guestfs-actions.pod:4074
10583 #, no-wrap
10584 msgid ""
10585 " int\n"
10586 " guestfs_mount (guestfs_h *g,\n"
10587 "                const char *device,\n"
10588 "                const char *mountpoint);\n"
10589 "\n"
10590 msgstr ""
10591
10592 # type: textblock
10593 #: ../src/guestfs-actions.pod:4079 ../fish/guestfish-actions.pod:2708
10594 msgid ""
10595 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10596 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10597 "those block devices contain partitions, they will have the usual names "
10598 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10599 msgstr ""
10600
10601 # type: textblock
10602 #: ../src/guestfs-actions.pod:4085 ../fish/guestfish-actions.pod:2714
10603 msgid ""
10604 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10605 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10606 "mounted on directories which already exist."
10607 msgstr ""
10608
10609 # type: textblock
10610 #: ../src/guestfs-actions.pod:4090 ../fish/guestfish-actions.pod:2719
10611 msgid ""
10612 "The mounted filesystem is writable, if we have sufficient permissions on the "
10613 "underlying device."
10614 msgstr ""
10615
10616 # type: textblock
10617 #: ../src/guestfs-actions.pod:4093
10618 msgid ""
10619 "B<Important note:> When you use this call, the filesystem options C<sync> "
10620 "and C<noatime> are set implicitly.  This was originally done because we "
10621 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10622 "very large negative performance impact and negligible effect on "
10623 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
10624 "in any code that needs performance, and instead use C<guestfs_mount_options> "
10625 "(use an empty string for the first parameter if you don't want any options)."
10626 msgstr ""
10627
10628 # type: =head2
10629 #: ../src/guestfs-actions.pod:4107
10630 msgid "guestfs_mount_loop"
10631 msgstr ""
10632
10633 # type: verbatim
10634 #: ../src/guestfs-actions.pod:4109
10635 #, no-wrap
10636 msgid ""
10637 " int\n"
10638 " guestfs_mount_loop (guestfs_h *g,\n"
10639 "                     const char *file,\n"
10640 "                     const char *mountpoint);\n"
10641 "\n"
10642 msgstr ""
10643
10644 # type: textblock
10645 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:2736
10646 msgid ""
10647 "This command lets you mount C<file> (a filesystem image in a file) on a "
10648 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10649 "mountpoint>."
10650 msgstr ""
10651
10652 # type: =head2
10653 #: ../src/guestfs-actions.pod:4122
10654 msgid "guestfs_mount_options"
10655 msgstr ""
10656
10657 # type: verbatim
10658 #: ../src/guestfs-actions.pod:4124
10659 #, no-wrap
10660 msgid ""
10661 " int\n"
10662 " guestfs_mount_options (guestfs_h *g,\n"
10663 "                        const char *options,\n"
10664 "                        const char *device,\n"
10665 "                        const char *mountpoint);\n"
10666 "\n"
10667 msgstr ""
10668
10669 # type: textblock
10670 #: ../src/guestfs-actions.pod:4130
10671 msgid ""
10672 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10673 "the mount options as for the L<mount(8)> I<-o> flag."
10674 msgstr ""
10675
10676 # type: textblock
10677 #: ../src/guestfs-actions.pod:4134 ../fish/guestfish-actions.pod:2748
10678 msgid ""
10679 "If the C<options> parameter is an empty string, then no options are passed "
10680 "(all options default to whatever the filesystem uses)."
10681 msgstr ""
10682
10683 # type: textblock
10684 #: ../src/guestfs-actions.pod:4140 ../src/guestfs-actions.pod:4154 ../src/guestfs-actions.pod:4171
10685 msgid "(Added in 1.0.10)"
10686 msgstr ""
10687
10688 # type: =head2
10689 #: ../src/guestfs-actions.pod:4142
10690 msgid "guestfs_mount_ro"
10691 msgstr ""
10692
10693 # type: verbatim
10694 #: ../src/guestfs-actions.pod:4144
10695 #, no-wrap
10696 msgid ""
10697 " int\n"
10698 " guestfs_mount_ro (guestfs_h *g,\n"
10699 "                   const char *device,\n"
10700 "                   const char *mountpoint);\n"
10701 "\n"
10702 msgstr ""
10703
10704 # type: textblock
10705 #: ../src/guestfs-actions.pod:4149
10706 msgid ""
10707 "This is the same as the C<guestfs_mount> command, but it mounts the "
10708 "filesystem with the read-only (I<-o ro>) flag."
10709 msgstr ""
10710
10711 # type: =head2
10712 #: ../src/guestfs-actions.pod:4156
10713 msgid "guestfs_mount_vfs"
10714 msgstr ""
10715
10716 # type: verbatim
10717 #: ../src/guestfs-actions.pod:4158
10718 #, no-wrap
10719 msgid ""
10720 " int\n"
10721 " guestfs_mount_vfs (guestfs_h *g,\n"
10722 "                    const char *options,\n"
10723 "                    const char *vfstype,\n"
10724 "                    const char *device,\n"
10725 "                    const char *mountpoint);\n"
10726 "\n"
10727 msgstr ""
10728
10729 # type: textblock
10730 #: ../src/guestfs-actions.pod:4165
10731 msgid ""
10732 "This is the same as the C<guestfs_mount> command, but it allows you to set "
10733 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
10734 "I<-t> flags."
10735 msgstr ""
10736
10737 # type: =head2
10738 #: ../src/guestfs-actions.pod:4173
10739 msgid "guestfs_mountpoints"
10740 msgstr ""
10741
10742 # type: verbatim
10743 #: ../src/guestfs-actions.pod:4175
10744 #, no-wrap
10745 msgid ""
10746 " char **\n"
10747 " guestfs_mountpoints (guestfs_h *g);\n"
10748 "\n"
10749 msgstr ""
10750
10751 # type: textblock
10752 #: ../src/guestfs-actions.pod:4178
10753 msgid ""
10754 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
10755 "devices.  This one returns a hash table (map) of device name to directory "
10756 "where the device is mounted."
10757 msgstr ""
10758
10759 # type: =head2
10760 #: ../src/guestfs-actions.pod:4190
10761 msgid "guestfs_mounts"
10762 msgstr ""
10763
10764 # type: verbatim
10765 #: ../src/guestfs-actions.pod:4192
10766 #, no-wrap
10767 msgid ""
10768 " char **\n"
10769 " guestfs_mounts (guestfs_h *g);\n"
10770 "\n"
10771 msgstr ""
10772
10773 # type: textblock
10774 #: ../src/guestfs-actions.pod:4195 ../fish/guestfish-actions.pod:2779
10775 msgid ""
10776 "This returns the list of currently mounted filesystems.  It returns the list "
10777 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10778 msgstr ""
10779
10780 # type: textblock
10781 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:2782
10782 msgid "Some internal mounts are not shown."
10783 msgstr ""
10784
10785 # type: textblock
10786 #: ../src/guestfs-actions.pod:4200
10787 msgid "See also: C<guestfs_mountpoints>"
10788 msgstr ""
10789
10790 # type: =head2
10791 #: ../src/guestfs-actions.pod:4208
10792 msgid "guestfs_mv"
10793 msgstr ""
10794
10795 # type: verbatim
10796 #: ../src/guestfs-actions.pod:4210
10797 #, no-wrap
10798 msgid ""
10799 " int\n"
10800 " guestfs_mv (guestfs_h *g,\n"
10801 "             const char *src,\n"
10802 "             const char *dest);\n"
10803 "\n"
10804 msgstr ""
10805
10806 # type: textblock
10807 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2790
10808 msgid ""
10809 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10810 "destination filename or destination directory."
10811 msgstr ""
10812
10813 # type: =head2
10814 #: ../src/guestfs-actions.pod:4222
10815 msgid "guestfs_ntfs_3g_probe"
10816 msgstr ""
10817
10818 # type: verbatim
10819 #: ../src/guestfs-actions.pod:4224
10820 #, no-wrap
10821 msgid ""
10822 " int\n"
10823 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
10824 "                        int rw,\n"
10825 "                        const char *device);\n"
10826 "\n"
10827 msgstr ""
10828
10829 # type: textblock
10830 #: ../src/guestfs-actions.pod:4229 ../fish/guestfish-actions.pod:2797
10831 msgid ""
10832 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10833 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10834 "read-write, and some cannot be mounted at all)."
10835 msgstr ""
10836
10837 # type: textblock
10838 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2801
10839 msgid ""
10840 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10841 "can be mounted read-write.  Set it to false if you want to test if the "
10842 "volume can be mounted read-only."
10843 msgstr ""
10844
10845 # type: textblock
10846 #: ../src/guestfs-actions.pod:4237 ../fish/guestfish-actions.pod:2805
10847 msgid ""
10848 "The return value is an integer which C<0> if the operation would succeed, or "
10849 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10850 msgstr ""
10851
10852 # type: textblock
10853 #: ../src/guestfs-actions.pod:4243
10854 msgid "(Added in 1.0.43)"
10855 msgstr ""
10856
10857 # type: =head2
10858 #: ../src/guestfs-actions.pod:4245
10859 msgid "guestfs_ntfsresize"
10860 msgstr ""
10861
10862 # type: verbatim
10863 #: ../src/guestfs-actions.pod:4247
10864 #, no-wrap
10865 msgid ""
10866 " int\n"
10867 " guestfs_ntfsresize (guestfs_h *g,\n"
10868 "                     const char *device);\n"
10869 "\n"
10870 msgstr ""
10871
10872 # type: textblock
10873 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:2813
10874 msgid ""
10875 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10876 "size of the underlying device.  See also L<ntfsresize(8)>."
10877 msgstr ""
10878
10879 # type: =head2
10880 #: ../src/guestfs-actions.pod:4259
10881 msgid "guestfs_ntfsresize_size"
10882 msgstr ""
10883
10884 # type: verbatim
10885 #: ../src/guestfs-actions.pod:4261
10886 #, no-wrap
10887 msgid ""
10888 " int\n"
10889 " guestfs_ntfsresize_size (guestfs_h *g,\n"
10890 "                          const char *device,\n"
10891 "                          int64_t size);\n"
10892 "\n"
10893 msgstr ""
10894
10895 # type: textblock
10896 #: ../src/guestfs-actions.pod:4266
10897 msgid ""
10898 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
10899 "to specify the new size (in bytes) explicitly."
10900 msgstr ""
10901
10902 # type: textblock
10903 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:4708 ../src/guestfs-actions.pod:4782 ../src/guestfs-actions.pod:5032
10904 msgid "(Added in 1.3.14)"
10905 msgstr ""
10906
10907 # type: =head2
10908 #: ../src/guestfs-actions.pod:4273
10909 msgid "guestfs_part_add"
10910 msgstr ""
10911
10912 # type: verbatim
10913 #: ../src/guestfs-actions.pod:4275
10914 #, no-wrap
10915 msgid ""
10916 " int\n"
10917 " guestfs_part_add (guestfs_h *g,\n"
10918 "                   const char *device,\n"
10919 "                   const char *prlogex,\n"
10920 "                   int64_t startsect,\n"
10921 "                   int64_t endsect);\n"
10922 "\n"
10923 msgstr ""
10924
10925 # type: textblock
10926 #: ../src/guestfs-actions.pod:4282
10927 msgid ""
10928 "This command adds a partition to C<device>.  If there is no partition table "
10929 "on the device, call C<guestfs_part_init> first."
10930 msgstr ""
10931
10932 # type: textblock
10933 #: ../src/guestfs-actions.pod:4285 ../fish/guestfish-actions.pod:2831
10934 msgid ""
10935 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
10936 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
10937 "C<logical>) and C<e> (or C<extended>) partition types."
10938 msgstr ""
10939
10940 # type: textblock
10941 #: ../src/guestfs-actions.pod:4290 ../fish/guestfish-actions.pod:2836
10942 msgid ""
10943 "C<startsect> and C<endsect> are the start and end of the partition in "
10944 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
10945 "from the end of the disk (C<-1> is the last sector)."
10946 msgstr ""
10947
10948 # type: textblock
10949 #: ../src/guestfs-actions.pod:4294
10950 msgid ""
10951 "Creating a partition which covers the whole disk is not so easy.  Use "
10952 "C<guestfs_part_disk> to do that."
10953 msgstr ""
10954
10955 # type: textblock
10956 #: ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4468 ../src/guestfs-actions.pod:4507 ../src/guestfs-actions.pod:4526 ../src/guestfs-actions.pod:4566
10957 msgid "(Added in 1.0.78)"
10958 msgstr ""
10959
10960 # type: =head2
10961 #: ../src/guestfs-actions.pod:4301
10962 msgid "guestfs_part_del"
10963 msgstr ""
10964
10965 # type: verbatim
10966 #: ../src/guestfs-actions.pod:4303
10967 #, no-wrap
10968 msgid ""
10969 " int\n"
10970 " guestfs_part_del (guestfs_h *g,\n"
10971 "                   const char *device,\n"
10972 "                   int partnum);\n"
10973 "\n"
10974 msgstr ""
10975
10976 # type: textblock
10977 #: ../src/guestfs-actions.pod:4308 ../fish/guestfish-actions.pod:2847
10978 msgid "This command deletes the partition numbered C<partnum> on C<device>."
10979 msgstr ""
10980
10981 # type: textblock
10982 #: ../src/guestfs-actions.pod:4310 ../fish/guestfish-actions.pod:2849
10983 msgid ""
10984 "Note that in the case of MBR partitioning, deleting an extended partition "
10985 "also deletes any logical partitions it contains."
10986 msgstr ""
10987
10988 # type: =head2
10989 #: ../src/guestfs-actions.pod:4318
10990 msgid "guestfs_part_disk"
10991 msgstr ""
10992
10993 # type: verbatim
10994 #: ../src/guestfs-actions.pod:4320
10995 #, no-wrap
10996 msgid ""
10997 " int\n"
10998 " guestfs_part_disk (guestfs_h *g,\n"
10999 "                    const char *device,\n"
11000 "                    const char *parttype);\n"
11001 "\n"
11002 msgstr ""
11003
11004 # type: textblock
11005 #: ../src/guestfs-actions.pod:4325
11006 msgid ""
11007 "This command is simply a combination of C<guestfs_part_init> followed by "
11008 "C<guestfs_part_add> to create a single primary partition covering the whole "
11009 "disk."
11010 msgstr ""
11011
11012 # type: textblock
11013 #: ../src/guestfs-actions.pod:4329
11014 msgid ""
11015 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11016 "possible values are described in C<guestfs_part_init>."
11017 msgstr ""
11018
11019 # type: =head2
11020 #: ../src/guestfs-actions.pod:4339
11021 msgid "guestfs_part_get_bootable"
11022 msgstr ""
11023
11024 # type: verbatim
11025 #: ../src/guestfs-actions.pod:4341
11026 #, no-wrap
11027 msgid ""
11028 " int\n"
11029 " guestfs_part_get_bootable (guestfs_h *g,\n"
11030 "                            const char *device,\n"
11031 "                            int partnum);\n"
11032 "\n"
11033 msgstr ""
11034
11035 # type: textblock
11036 #: ../src/guestfs-actions.pod:4346 ../fish/guestfish-actions.pod:2871
11037 msgid ""
11038 "This command returns true if the partition C<partnum> on C<device> has the "
11039 "bootable flag set."
11040 msgstr ""
11041
11042 # type: textblock
11043 #: ../src/guestfs-actions.pod:4349
11044 msgid "See also C<guestfs_part_set_bootable>."
11045 msgstr ""
11046
11047 # type: =head2
11048 #: ../src/guestfs-actions.pod:4355
11049 msgid "guestfs_part_get_mbr_id"
11050 msgstr ""
11051
11052 # type: verbatim
11053 #: ../src/guestfs-actions.pod:4357
11054 #, no-wrap
11055 msgid ""
11056 " int\n"
11057 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11058 "                          const char *device,\n"
11059 "                          int partnum);\n"
11060 "\n"
11061 msgstr ""
11062
11063 # type: textblock
11064 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2880
11065 msgid ""
11066 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11067 "partition C<partnum>."
11068 msgstr ""
11069
11070 # type: textblock
11071 #: ../src/guestfs-actions.pod:4365 ../src/guestfs-actions.pod:4542
11072 msgid ""
11073 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11074 "undefined results for other partition table types (see "
11075 "C<guestfs_part_get_parttype>)."
11076 msgstr ""
11077
11078 # type: =head2
11079 #: ../src/guestfs-actions.pod:4373
11080 msgid "guestfs_part_get_parttype"
11081 msgstr ""
11082
11083 # type: verbatim
11084 #: ../src/guestfs-actions.pod:4375
11085 #, no-wrap
11086 msgid ""
11087 " char *\n"
11088 " guestfs_part_get_parttype (guestfs_h *g,\n"
11089 "                            const char *device);\n"
11090 "\n"
11091 msgstr ""
11092
11093 # type: textblock
11094 #: ../src/guestfs-actions.pod:4379 ../fish/guestfish-actions.pod:2891
11095 msgid ""
11096 "This command examines the partition table on C<device> and returns the "
11097 "partition table type (format) being used."
11098 msgstr ""
11099
11100 # type: textblock
11101 #: ../src/guestfs-actions.pod:4382
11102 msgid ""
11103 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11104 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11105 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11106 msgstr ""
11107
11108 # type: =head2
11109 #: ../src/guestfs-actions.pod:4392
11110 msgid "guestfs_part_init"
11111 msgstr ""
11112
11113 # type: verbatim
11114 #: ../src/guestfs-actions.pod:4394
11115 #, no-wrap
11116 msgid ""
11117 " int\n"
11118 " guestfs_part_init (guestfs_h *g,\n"
11119 "                    const char *device,\n"
11120 "                    const char *parttype);\n"
11121 "\n"
11122 msgstr ""
11123
11124 # type: textblock
11125 #: ../src/guestfs-actions.pod:4399 ../fish/guestfish-actions.pod:2903
11126 msgid ""
11127 "This creates an empty partition table on C<device> of one of the partition "
11128 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11129 "(for large disks)."
11130 msgstr ""
11131
11132 # type: textblock
11133 #: ../src/guestfs-actions.pod:4403
11134 msgid ""
11135 "Initially there are no partitions.  Following this, you should call "
11136 "C<guestfs_part_add> for each partition required."
11137 msgstr ""
11138
11139 # type: textblock
11140 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:2910
11141 msgid "Possible values for C<parttype> are:"
11142 msgstr ""
11143
11144 # type: =item
11145 #: ../src/guestfs-actions.pod:4410 ../fish/guestfish-actions.pod:2914
11146 msgid "B<efi> | B<gpt>"
11147 msgstr ""
11148
11149 # type: textblock
11150 #: ../src/guestfs-actions.pod:4412 ../fish/guestfish-actions.pod:2916
11151 msgid "Intel EFI / GPT partition table."
11152 msgstr ""
11153
11154 # type: textblock
11155 #: ../src/guestfs-actions.pod:4414 ../fish/guestfish-actions.pod:2918
11156 msgid ""
11157 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11158 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11159 "the C<mbr> format."
11160 msgstr ""
11161
11162 # type: =item
11163 #: ../src/guestfs-actions.pod:4418 ../fish/guestfish-actions.pod:2922
11164 msgid "B<mbr> | B<msdos>"
11165 msgstr ""
11166
11167 # type: textblock
11168 #: ../src/guestfs-actions.pod:4420 ../fish/guestfish-actions.pod:2924
11169 msgid ""
11170 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11171 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11172 "TB.  For large disks we recommend using C<gpt>."
11173 msgstr ""
11174
11175 # type: textblock
11176 #: ../src/guestfs-actions.pod:4427 ../fish/guestfish-actions.pod:2931
11177 msgid "Other partition table types that may work but are not supported include:"
11178 msgstr ""
11179
11180 # type: =item
11181 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:2936
11182 msgid "B<aix>"
11183 msgstr ""
11184
11185 # type: textblock
11186 #: ../src/guestfs-actions.pod:4434 ../fish/guestfish-actions.pod:2938
11187 msgid "AIX disk labels."
11188 msgstr ""
11189
11190 # type: =item
11191 #: ../src/guestfs-actions.pod:4436 ../fish/guestfish-actions.pod:2940
11192 msgid "B<amiga> | B<rdb>"
11193 msgstr ""
11194
11195 # type: textblock
11196 #: ../src/guestfs-actions.pod:4438 ../fish/guestfish-actions.pod:2942
11197 msgid "Amiga \"Rigid Disk Block\" format."
11198 msgstr ""
11199
11200 # type: =item
11201 #: ../src/guestfs-actions.pod:4440 ../fish/guestfish-actions.pod:2944
11202 msgid "B<bsd>"
11203 msgstr ""
11204
11205 # type: textblock
11206 #: ../src/guestfs-actions.pod:4442 ../fish/guestfish-actions.pod:2946
11207 msgid "BSD disk labels."
11208 msgstr ""
11209
11210 # type: =item
11211 #: ../src/guestfs-actions.pod:4444 ../fish/guestfish-actions.pod:2948
11212 msgid "B<dasd>"
11213 msgstr ""
11214
11215 # type: textblock
11216 #: ../src/guestfs-actions.pod:4446 ../fish/guestfish-actions.pod:2950
11217 msgid "DASD, used on IBM mainframes."
11218 msgstr ""
11219
11220 # type: =item
11221 #: ../src/guestfs-actions.pod:4448 ../fish/guestfish-actions.pod:2952
11222 msgid "B<dvh>"
11223 msgstr ""
11224
11225 # type: textblock
11226 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:2954
11227 msgid "MIPS/SGI volumes."
11228 msgstr ""
11229
11230 # type: =item
11231 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:2956
11232 msgid "B<mac>"
11233 msgstr ""
11234
11235 # type: textblock
11236 #: ../src/guestfs-actions.pod:4454 ../fish/guestfish-actions.pod:2958
11237 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11238 msgstr ""
11239
11240 # type: =item
11241 #: ../src/guestfs-actions.pod:4456 ../fish/guestfish-actions.pod:2960
11242 msgid "B<pc98>"
11243 msgstr ""
11244
11245 # type: textblock
11246 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:2962
11247 msgid "NEC PC-98 format, common in Japan apparently."
11248 msgstr ""
11249
11250 # type: =item
11251 #: ../src/guestfs-actions.pod:4460 ../fish/guestfish-actions.pod:2964
11252 msgid "B<sun>"
11253 msgstr ""
11254
11255 # type: textblock
11256 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2966
11257 msgid "Sun disk labels."
11258 msgstr ""
11259
11260 # type: =head2
11261 #: ../src/guestfs-actions.pod:4470
11262 msgid "guestfs_part_list"
11263 msgstr ""
11264
11265 # type: verbatim
11266 #: ../src/guestfs-actions.pod:4472
11267 #, no-wrap
11268 msgid ""
11269 " struct guestfs_partition_list *\n"
11270 " guestfs_part_list (guestfs_h *g,\n"
11271 "                    const char *device);\n"
11272 "\n"
11273 msgstr ""
11274
11275 # type: textblock
11276 #: ../src/guestfs-actions.pod:4476 ../fish/guestfish-actions.pod:2974
11277 msgid ""
11278 "This command parses the partition table on C<device> and returns the list of "
11279 "partitions found."
11280 msgstr ""
11281
11282 # type: textblock
11283 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:2977
11284 msgid "The fields in the returned structure are:"
11285 msgstr ""
11286
11287 # type: =item
11288 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:2981
11289 msgid "B<part_num>"
11290 msgstr ""
11291
11292 # type: textblock
11293 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:2983
11294 msgid "Partition number, counting from 1."
11295 msgstr ""
11296
11297 # type: =item
11298 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:2985
11299 msgid "B<part_start>"
11300 msgstr ""
11301
11302 # type: textblock
11303 #: ../src/guestfs-actions.pod:4489
11304 msgid ""
11305 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11306 "the device's sector size, see C<guestfs_blockdev_getss>."
11307 msgstr ""
11308
11309 # type: =item
11310 #: ../src/guestfs-actions.pod:4492 ../fish/guestfish-actions.pod:2990
11311 msgid "B<part_end>"
11312 msgstr ""
11313
11314 # type: textblock
11315 #: ../src/guestfs-actions.pod:4494 ../fish/guestfish-actions.pod:2992
11316 msgid "End of the partition in bytes."
11317 msgstr ""
11318
11319 # type: =item
11320 #: ../src/guestfs-actions.pod:4496 ../fish/guestfish-actions.pod:2994
11321 msgid "B<part_size>"
11322 msgstr ""
11323
11324 # type: textblock
11325 #: ../src/guestfs-actions.pod:4498 ../fish/guestfish-actions.pod:2996
11326 msgid "Size of the partition in bytes."
11327 msgstr ""
11328
11329 # type: textblock
11330 #: ../src/guestfs-actions.pod:4502
11331 msgid ""
11332 "This function returns a C<struct guestfs_partition_list *> (see "
11333 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11334 "must call C<guestfs_free_partition_list> after use>."
11335 msgstr ""
11336
11337 # type: =head2
11338 #: ../src/guestfs-actions.pod:4509
11339 msgid "guestfs_part_set_bootable"
11340 msgstr ""
11341
11342 # type: verbatim
11343 #: ../src/guestfs-actions.pod:4511
11344 #, no-wrap
11345 msgid ""
11346 " int\n"
11347 " guestfs_part_set_bootable (guestfs_h *g,\n"
11348 "                            const char *device,\n"
11349 "                            int partnum,\n"
11350 "                            int bootable);\n"
11351 "\n"
11352 msgstr ""
11353
11354 # type: textblock
11355 #: ../src/guestfs-actions.pod:4517 ../fish/guestfish-actions.pod:3004
11356 msgid ""
11357 "This sets the bootable flag on partition numbered C<partnum> on device "
11358 "C<device>.  Note that partitions are numbered from 1."
11359 msgstr ""
11360
11361 # type: textblock
11362 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3007
11363 msgid ""
11364 "The bootable flag is used by some operating systems (notably Windows) to "
11365 "determine which partition to boot from.  It is by no means universally "
11366 "recognized."
11367 msgstr ""
11368
11369 # type: =head2
11370 #: ../src/guestfs-actions.pod:4528
11371 msgid "guestfs_part_set_mbr_id"
11372 msgstr ""
11373
11374 # type: verbatim
11375 #: ../src/guestfs-actions.pod:4530
11376 #, no-wrap
11377 msgid ""
11378 " int\n"
11379 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
11380 "                          const char *device,\n"
11381 "                          int partnum,\n"
11382 "                          int idbyte);\n"
11383 "\n"
11384 msgstr ""
11385
11386 # type: textblock
11387 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3015
11388 msgid ""
11389 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11390 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11391 "documentation are in fact hexadecimal numbers, but usually documented "
11392 "without any leading \"0x\" which might be confusing."
11393 msgstr ""
11394
11395 # type: =head2
11396 #: ../src/guestfs-actions.pod:4550
11397 msgid "guestfs_part_set_name"
11398 msgstr ""
11399
11400 # type: verbatim
11401 #: ../src/guestfs-actions.pod:4552
11402 #, no-wrap
11403 msgid ""
11404 " int\n"
11405 " guestfs_part_set_name (guestfs_h *g,\n"
11406 "                        const char *device,\n"
11407 "                        int partnum,\n"
11408 "                        const char *name);\n"
11409 "\n"
11410 msgstr ""
11411
11412 # type: textblock
11413 #: ../src/guestfs-actions.pod:4558 ../fish/guestfish-actions.pod:3029
11414 msgid ""
11415 "This sets the partition name on partition numbered C<partnum> on device "
11416 "C<device>.  Note that partitions are numbered from 1."
11417 msgstr ""
11418
11419 # type: textblock
11420 #: ../src/guestfs-actions.pod:4561 ../fish/guestfish-actions.pod:3032
11421 msgid ""
11422 "The partition name can only be set on certain types of partition table.  "
11423 "This works on C<gpt> but not on C<mbr> partitions."
11424 msgstr ""
11425
11426 # type: =head2
11427 #: ../src/guestfs-actions.pod:4568
11428 msgid "guestfs_part_to_dev"
11429 msgstr ""
11430
11431 # type: verbatim
11432 #: ../src/guestfs-actions.pod:4570
11433 #, no-wrap
11434 msgid ""
11435 " char *\n"
11436 " guestfs_part_to_dev (guestfs_h *g,\n"
11437 "                      const char *partition);\n"
11438 "\n"
11439 msgstr ""
11440
11441 # type: textblock
11442 #: ../src/guestfs-actions.pod:4574 ../fish/guestfish-actions.pod:3039
11443 msgid ""
11444 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11445 "partition number, returning the device name (eg. \"/dev/sdb\")."
11446 msgstr ""
11447
11448 # type: textblock
11449 #: ../src/guestfs-actions.pod:4578
11450 msgid ""
11451 "The named partition must exist, for example as a string returned from "
11452 "C<guestfs_list_partitions>."
11453 msgstr ""
11454
11455 # type: =head2
11456 #: ../src/guestfs-actions.pod:4586
11457 msgid "guestfs_ping_daemon"
11458 msgstr ""
11459
11460 # type: verbatim
11461 #: ../src/guestfs-actions.pod:4588
11462 #, no-wrap
11463 msgid ""
11464 " int\n"
11465 " guestfs_ping_daemon (guestfs_h *g);\n"
11466 "\n"
11467 msgstr ""
11468
11469 # type: textblock
11470 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3050
11471 msgid ""
11472 "This is a test probe into the guestfs daemon running inside the qemu "
11473 "subprocess.  Calling this function checks that the daemon responds to the "
11474 "ping message, without affecting the daemon or attached block device(s) in "
11475 "any other way."
11476 msgstr ""
11477
11478 # type: =head2
11479 #: ../src/guestfs-actions.pod:4600
11480 msgid "guestfs_pread"
11481 msgstr ""
11482
11483 # type: verbatim
11484 #: ../src/guestfs-actions.pod:4602
11485 #, no-wrap
11486 msgid ""
11487 " char *\n"
11488 " guestfs_pread (guestfs_h *g,\n"
11489 "                const char *path,\n"
11490 "                int count,\n"
11491 "                int64_t offset,\n"
11492 "                size_t *size_r);\n"
11493 "\n"
11494 msgstr ""
11495
11496 # type: textblock
11497 #: ../src/guestfs-actions.pod:4609 ../fish/guestfish-actions.pod:3059
11498 msgid ""
11499 "This command lets you read part of a file.  It reads C<count> bytes of the "
11500 "file, starting at C<offset>, from file C<path>."
11501 msgstr ""
11502
11503 # type: textblock
11504 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4638 ../fish/guestfish-actions.pod:3062 ../fish/guestfish-actions.pod:3077
11505 msgid ""
11506 "This may read fewer bytes than requested.  For further details see the "
11507 "L<pread(2)> system call."
11508 msgstr ""
11509
11510 # type: textblock
11511 #: ../src/guestfs-actions.pod:4615
11512 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
11513 msgstr ""
11514
11515 # type: =head2
11516 #: ../src/guestfs-actions.pod:4626
11517 msgid "guestfs_pread_device"
11518 msgstr ""
11519
11520 # type: verbatim
11521 #: ../src/guestfs-actions.pod:4628
11522 #, no-wrap
11523 msgid ""
11524 " char *\n"
11525 " guestfs_pread_device (guestfs_h *g,\n"
11526 "                       const char *device,\n"
11527 "                       int count,\n"
11528 "                       int64_t offset,\n"
11529 "                       size_t *size_r);\n"
11530 "\n"
11531 msgstr ""
11532
11533 # type: textblock
11534 #: ../src/guestfs-actions.pod:4635 ../fish/guestfish-actions.pod:3074
11535 msgid ""
11536 "This command lets you read part of a file.  It reads C<count> bytes of "
11537 "C<device>, starting at C<offset>."
11538 msgstr ""
11539
11540 # type: textblock
11541 #: ../src/guestfs-actions.pod:4641
11542 msgid "See also C<guestfs_pread>."
11543 msgstr ""
11544
11545 # type: textblock
11546 #: ../src/guestfs-actions.pod:4650
11547 msgid "(Added in 1.5.21)"
11548 msgstr ""
11549
11550 # type: =head2
11551 #: ../src/guestfs-actions.pod:4652
11552 msgid "guestfs_pvcreate"
11553 msgstr ""
11554
11555 # type: verbatim
11556 #: ../src/guestfs-actions.pod:4654
11557 #, no-wrap
11558 msgid ""
11559 " int\n"
11560 " guestfs_pvcreate (guestfs_h *g,\n"
11561 "                   const char *device);\n"
11562 "\n"
11563 msgstr ""
11564
11565 # type: textblock
11566 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3089
11567 msgid ""
11568 "This creates an LVM physical volume on the named C<device>, where C<device> "
11569 "should usually be a partition name such as C</dev/sda1>."
11570 msgstr ""
11571
11572 # type: =head2
11573 #: ../src/guestfs-actions.pod:4666
11574 msgid "guestfs_pvremove"
11575 msgstr ""
11576
11577 # type: verbatim
11578 #: ../src/guestfs-actions.pod:4668
11579 #, no-wrap
11580 msgid ""
11581 " int\n"
11582 " guestfs_pvremove (guestfs_h *g,\n"
11583 "                   const char *device);\n"
11584 "\n"
11585 msgstr ""
11586
11587 # type: textblock
11588 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3097
11589 msgid ""
11590 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11591 "it."
11592 msgstr ""
11593
11594 # type: textblock
11595 #: ../src/guestfs-actions.pod:4675 ../fish/guestfish-actions.pod:3100
11596 msgid ""
11597 "The implementation uses the C<pvremove> command which refuses to wipe "
11598 "physical volumes that contain any volume groups, so you have to remove those "
11599 "first."
11600 msgstr ""
11601
11602 # type: =head2
11603 #: ../src/guestfs-actions.pod:4683
11604 msgid "guestfs_pvresize"
11605 msgstr ""
11606
11607 # type: verbatim
11608 #: ../src/guestfs-actions.pod:4685
11609 #, no-wrap
11610 msgid ""
11611 " int\n"
11612 " guestfs_pvresize (guestfs_h *g,\n"
11613 "                   const char *device);\n"
11614 "\n"
11615 msgstr ""
11616
11617 # type: textblock
11618 #: ../src/guestfs-actions.pod:4689 ../fish/guestfish-actions.pod:3108
11619 msgid ""
11620 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11621 "the new size of the underlying device."
11622 msgstr ""
11623
11624 # type: =head2
11625 #: ../src/guestfs-actions.pod:4696
11626 msgid "guestfs_pvresize_size"
11627 msgstr ""
11628
11629 # type: verbatim
11630 #: ../src/guestfs-actions.pod:4698
11631 #, no-wrap
11632 msgid ""
11633 " int\n"
11634 " guestfs_pvresize_size (guestfs_h *g,\n"
11635 "                        const char *device,\n"
11636 "                        int64_t size);\n"
11637 "\n"
11638 msgstr ""
11639
11640 # type: textblock
11641 #: ../src/guestfs-actions.pod:4703
11642 msgid ""
11643 "This command is the same as C<guestfs_pvresize> except that it allows you to "
11644 "specify the new size (in bytes) explicitly."
11645 msgstr ""
11646
11647 # type: =head2
11648 #: ../src/guestfs-actions.pod:4710
11649 msgid "guestfs_pvs"
11650 msgstr ""
11651
11652 # type: verbatim
11653 #: ../src/guestfs-actions.pod:4712
11654 #, no-wrap
11655 msgid ""
11656 " char **\n"
11657 " guestfs_pvs (guestfs_h *g);\n"
11658 "\n"
11659 msgstr ""
11660
11661 # type: textblock
11662 #: ../src/guestfs-actions.pod:4715 ../fish/guestfish-actions.pod:3122
11663 msgid ""
11664 "List all the physical volumes detected.  This is the equivalent of the "
11665 "L<pvs(8)> command."
11666 msgstr ""
11667
11668 # type: textblock
11669 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3125
11670 msgid ""
11671 "This returns a list of just the device names that contain PVs "
11672 "(eg. C</dev/sda2>)."
11673 msgstr ""
11674
11675 # type: textblock
11676 #: ../src/guestfs-actions.pod:4721
11677 msgid "See also C<guestfs_pvs_full>."
11678 msgstr ""
11679
11680 # type: =head2
11681 #: ../src/guestfs-actions.pod:4729
11682 msgid "guestfs_pvs_full"
11683 msgstr ""
11684
11685 # type: verbatim
11686 #: ../src/guestfs-actions.pod:4731
11687 #, no-wrap
11688 msgid ""
11689 " struct guestfs_lvm_pv_list *\n"
11690 " guestfs_pvs_full (guestfs_h *g);\n"
11691 "\n"
11692 msgstr ""
11693
11694 # type: textblock
11695 #: ../src/guestfs-actions.pod:4734 ../fish/guestfish-actions.pod:3134
11696 msgid ""
11697 "List all the physical volumes detected.  This is the equivalent of the "
11698 "L<pvs(8)> command.  The \"full\" version includes all fields."
11699 msgstr ""
11700
11701 # type: textblock
11702 #: ../src/guestfs-actions.pod:4737
11703 msgid ""
11704 "This function returns a C<struct guestfs_lvm_pv_list *> (see "
11705 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
11706 "must call C<guestfs_free_lvm_pv_list> after use>."
11707 msgstr ""
11708
11709 # type: =head2
11710 #: ../src/guestfs-actions.pod:4744
11711 msgid "guestfs_pvuuid"
11712 msgstr ""
11713
11714 # type: verbatim
11715 #: ../src/guestfs-actions.pod:4746
11716 #, no-wrap
11717 msgid ""
11718 " char *\n"
11719 " guestfs_pvuuid (guestfs_h *g,\n"
11720 "                 const char *device);\n"
11721 "\n"
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3141
11726 msgid "This command returns the UUID of the LVM PV C<device>."
11727 msgstr ""
11728
11729 # type: =head2
11730 #: ../src/guestfs-actions.pod:4757
11731 msgid "guestfs_pwrite"
11732 msgstr ""
11733
11734 # type: verbatim
11735 #: ../src/guestfs-actions.pod:4759
11736 #, no-wrap
11737 msgid ""
11738 " int\n"
11739 " guestfs_pwrite (guestfs_h *g,\n"
11740 "                 const char *path,\n"
11741 "                 const char *content,\n"
11742 "                 size_t content_size,\n"
11743 "                 int64_t offset);\n"
11744 "\n"
11745 msgstr ""
11746
11747 # type: textblock
11748 #: ../src/guestfs-actions.pod:4766 ../fish/guestfish-actions.pod:3147
11749 msgid ""
11750 "This command writes to part of a file.  It writes the data buffer C<content> "
11751 "to the file C<path> starting at offset C<offset>."
11752 msgstr ""
11753
11754 # type: textblock
11755 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3150
11756 msgid ""
11757 "This command implements the L<pwrite(2)> system call, and like that system "
11758 "call it may not write the full data requested.  The return value is the "
11759 "number of bytes that were actually written to the file.  This could even be "
11760 "0, although short writes are unlikely for regular files in ordinary "
11761 "circumstances."
11762 msgstr ""
11763
11764 # type: textblock
11765 #: ../src/guestfs-actions.pod:4775
11766 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
11767 msgstr ""
11768
11769 # type: =head2
11770 #: ../src/guestfs-actions.pod:4784
11771 msgid "guestfs_pwrite_device"
11772 msgstr ""
11773
11774 # type: verbatim
11775 #: ../src/guestfs-actions.pod:4786
11776 #, no-wrap
11777 msgid ""
11778 " int\n"
11779 " guestfs_pwrite_device (guestfs_h *g,\n"
11780 "                        const char *device,\n"
11781 "                        const char *content,\n"
11782 "                        size_t content_size,\n"
11783 "                        int64_t offset);\n"
11784 "\n"
11785 msgstr ""
11786
11787 # type: textblock
11788 #: ../src/guestfs-actions.pod:4793 ../fish/guestfish-actions.pod:3165
11789 msgid ""
11790 "This command writes to part of a device.  It writes the data buffer "
11791 "C<content> to C<device> starting at offset C<offset>."
11792 msgstr ""
11793
11794 # type: textblock
11795 #: ../src/guestfs-actions.pod:4796 ../fish/guestfish-actions.pod:3168
11796 msgid ""
11797 "This command implements the L<pwrite(2)> system call, and like that system "
11798 "call it may not write the full data requested (although short writes to disk "
11799 "devices and partitions are probably impossible with standard Linux kernels)."
11800 msgstr ""
11801
11802 # type: textblock
11803 #: ../src/guestfs-actions.pod:4801
11804 msgid "See also C<guestfs_pwrite>."
11805 msgstr ""
11806
11807 # type: textblock
11808 #: ../src/guestfs-actions.pod:4808
11809 msgid "(Added in 1.5.20)"
11810 msgstr ""
11811
11812 # type: =head2
11813 #: ../src/guestfs-actions.pod:4810
11814 msgid "guestfs_read_file"
11815 msgstr ""
11816
11817 # type: verbatim
11818 #: ../src/guestfs-actions.pod:4812
11819 #, no-wrap
11820 msgid ""
11821 " char *\n"
11822 " guestfs_read_file (guestfs_h *g,\n"
11823 "                    const char *path,\n"
11824 "                    size_t *size_r);\n"
11825 "\n"
11826 msgstr ""
11827
11828 # type: textblock
11829 #: ../src/guestfs-actions.pod:4817 ../fish/guestfish-actions.pod:3182
11830 msgid "This calls returns the contents of the file C<path> as a buffer."
11831 msgstr ""
11832
11833 # type: textblock
11834 #: ../src/guestfs-actions.pod:4820
11835 msgid ""
11836 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
11837 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
11838 "function is limited in the total size of file that can be handled."
11839 msgstr ""
11840
11841 # type: textblock
11842 #: ../src/guestfs-actions.pod:4832
11843 msgid "(Added in 1.0.63)"
11844 msgstr ""
11845
11846 # type: =head2
11847 #: ../src/guestfs-actions.pod:4834
11848 msgid "guestfs_read_lines"
11849 msgstr ""
11850
11851 # type: verbatim
11852 #: ../src/guestfs-actions.pod:4836
11853 #, no-wrap
11854 msgid ""
11855 " char **\n"
11856 " guestfs_read_lines (guestfs_h *g,\n"
11857 "                     const char *path);\n"
11858 "\n"
11859 msgstr ""
11860
11861 # type: textblock
11862 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3199
11863 msgid ""
11864 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11865 "C<CRLF> character sequences are I<not> returned."
11866 msgstr ""
11867
11868 # type: textblock
11869 #: ../src/guestfs-actions.pod:4845
11870 msgid ""
11871 "Note that this function cannot correctly handle binary files (specifically, "
11872 "files containing C<\\0> character which is treated as end of line).  For "
11873 "those you need to use the C<guestfs_read_file> function which has a more "
11874 "complex interface."
11875 msgstr ""
11876
11877 # type: =head2
11878 #: ../src/guestfs-actions.pod:4856
11879 msgid "guestfs_readdir"
11880 msgstr ""
11881
11882 # type: verbatim
11883 #: ../src/guestfs-actions.pod:4858
11884 #, no-wrap
11885 msgid ""
11886 " struct guestfs_dirent_list *\n"
11887 " guestfs_readdir (guestfs_h *g,\n"
11888 "                  const char *dir);\n"
11889 "\n"
11890 msgstr ""
11891
11892 # type: textblock
11893 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3211
11894 msgid "This returns the list of directory entries in directory C<dir>."
11895 msgstr ""
11896
11897 # type: textblock
11898 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3213
11899 msgid ""
11900 "All entries in the directory are returned, including C<.> and C<..>.  The "
11901 "entries are I<not> sorted, but returned in the same order as the underlying "
11902 "filesystem."
11903 msgstr ""
11904
11905 # type: textblock
11906 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3217
11907 msgid ""
11908 "Also this call returns basic file type information about each file.  The "
11909 "C<ftyp> field will contain one of the following characters:"
11910 msgstr ""
11911
11912 # type: =item
11913 #: ../src/guestfs-actions.pod:4873 ../fish/guestfish-actions.pod:3222
11914 msgid "'b'"
11915 msgstr ""
11916
11917 # type: textblock
11918 #: ../src/guestfs-actions.pod:4875 ../fish/guestfish-actions.pod:3224
11919 msgid "Block special"
11920 msgstr ""
11921
11922 # type: =item
11923 #: ../src/guestfs-actions.pod:4877 ../fish/guestfish-actions.pod:3226
11924 msgid "'c'"
11925 msgstr ""
11926
11927 # type: textblock
11928 #: ../src/guestfs-actions.pod:4879 ../fish/guestfish-actions.pod:3228
11929 msgid "Char special"
11930 msgstr ""
11931
11932 # type: =item
11933 #: ../src/guestfs-actions.pod:4881 ../fish/guestfish-actions.pod:3230
11934 msgid "'d'"
11935 msgstr ""
11936
11937 # type: textblock
11938 #: ../src/guestfs-actions.pod:4883 ../fish/guestfish-actions.pod:3232
11939 msgid "Directory"
11940 msgstr ""
11941
11942 # type: =item
11943 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3234
11944 msgid "'f'"
11945 msgstr ""
11946
11947 # type: textblock
11948 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3236
11949 msgid "FIFO (named pipe)"
11950 msgstr ""
11951
11952 # type: =item
11953 #: ../src/guestfs-actions.pod:4889 ../fish/guestfish-actions.pod:3238
11954 msgid "'l'"
11955 msgstr ""
11956
11957 # type: textblock
11958 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3240
11959 msgid "Symbolic link"
11960 msgstr ""
11961
11962 # type: =item
11963 #: ../src/guestfs-actions.pod:4893 ../fish/guestfish-actions.pod:3242
11964 msgid "'r'"
11965 msgstr ""
11966
11967 # type: textblock
11968 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3244
11969 msgid "Regular file"
11970 msgstr ""
11971
11972 # type: =item
11973 #: ../src/guestfs-actions.pod:4897 ../fish/guestfish-actions.pod:3246
11974 msgid "'s'"
11975 msgstr ""
11976
11977 # type: textblock
11978 #: ../src/guestfs-actions.pod:4899 ../fish/guestfish-actions.pod:3248
11979 msgid "Socket"
11980 msgstr ""
11981
11982 # type: =item
11983 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3250
11984 msgid "'u'"
11985 msgstr ""
11986
11987 # type: textblock
11988 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3252
11989 msgid "Unknown file type"
11990 msgstr ""
11991
11992 # type: =item
11993 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3254
11994 msgid "'?'"
11995 msgstr ""
11996
11997 # type: textblock
11998 #: ../src/guestfs-actions.pod:4907 ../fish/guestfish-actions.pod:3256
11999 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12000 msgstr ""
12001
12002 # type: textblock
12003 #: ../src/guestfs-actions.pod:4912
12004 msgid ""
12005 "This function is primarily intended for use by programs.  To get a simple "
12006 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12007 "consumption, use C<guestfs_ll>."
12008 msgstr ""
12009
12010 # type: textblock
12011 #: ../src/guestfs-actions.pod:4916
12012 msgid ""
12013 "This function returns a C<struct guestfs_dirent_list *> (see "
12014 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
12015 "must call C<guestfs_free_dirent_list> after use>."
12016 msgstr ""
12017
12018 # type: =head2
12019 #: ../src/guestfs-actions.pod:4923
12020 msgid "guestfs_readlink"
12021 msgstr ""
12022
12023 # type: verbatim
12024 #: ../src/guestfs-actions.pod:4925
12025 #, no-wrap
12026 msgid ""
12027 " char *\n"
12028 " guestfs_readlink (guestfs_h *g,\n"
12029 "                   const char *path);\n"
12030 "\n"
12031 msgstr ""
12032
12033 # type: textblock
12034 #: ../src/guestfs-actions.pod:4929 ../fish/guestfish-actions.pod:3269
12035 msgid "This command reads the target of a symbolic link."
12036 msgstr ""
12037
12038 # type: =head2
12039 #: ../src/guestfs-actions.pod:4936
12040 msgid "guestfs_readlinklist"
12041 msgstr ""
12042
12043 # type: verbatim
12044 #: ../src/guestfs-actions.pod:4938
12045 #, no-wrap
12046 msgid ""
12047 " char **\n"
12048 " guestfs_readlinklist (guestfs_h *g,\n"
12049 "                       const char *path,\n"
12050 "                       char *const *names);\n"
12051 "\n"
12052 msgstr ""
12053
12054 # type: textblock
12055 #: ../src/guestfs-actions.pod:4943 ../fish/guestfish-actions.pod:3275
12056 msgid ""
12057 "This call allows you to do a C<readlink> operation on multiple files, where "
12058 "all files are in the directory C<path>.  C<names> is the list of files from "
12059 "this directory."
12060 msgstr ""
12061
12062 # type: textblock
12063 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3279
12064 msgid ""
12065 "On return you get a list of strings, with a one-to-one correspondence to the "
12066 "C<names> list.  Each string is the value of the symbolic link."
12067 msgstr ""
12068
12069 # type: textblock
12070 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3283
12071 msgid ""
12072 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12073 "result string is the empty string C<\"\">.  However the whole operation is "
12074 "completed even if there were C<readlink(2)> errors, and so you can call this "
12075 "function with names where you don't know if they are symbolic links already "
12076 "(albeit slightly less efficient)."
12077 msgstr ""
12078
12079 # type: textblock
12080 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3290
12081 msgid ""
12082 "This call is intended for programs that want to efficiently list a directory "
12083 "contents without making many round-trips.  Very long directory listings "
12084 "might cause the protocol message size to be exceeded, causing this call to "
12085 "fail.  The caller must split up such requests into smaller groups of names."
12086 msgstr ""
12087
12088 # type: =head2
12089 #: ../src/guestfs-actions.pod:4971
12090 msgid "guestfs_realpath"
12091 msgstr ""
12092
12093 # type: verbatim
12094 #: ../src/guestfs-actions.pod:4973
12095 #, no-wrap
12096 msgid ""
12097 " char *\n"
12098 " guestfs_realpath (guestfs_h *g,\n"
12099 "                   const char *path);\n"
12100 "\n"
12101 msgstr ""
12102
12103 # type: textblock
12104 #: ../src/guestfs-actions.pod:4977 ../fish/guestfish-actions.pod:3301
12105 msgid ""
12106 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12107 "has no C<.>, C<..> or symbolic link path elements."
12108 msgstr ""
12109
12110 # type: =head2
12111 #: ../src/guestfs-actions.pod:4985
12112 msgid "guestfs_removexattr"
12113 msgstr ""
12114
12115 # type: verbatim
12116 #: ../src/guestfs-actions.pod:4987
12117 #, no-wrap
12118 msgid ""
12119 " int\n"
12120 " guestfs_removexattr (guestfs_h *g,\n"
12121 "                      const char *xattr,\n"
12122 "                      const char *path);\n"
12123 "\n"
12124 msgstr ""
12125
12126 # type: textblock
12127 #: ../src/guestfs-actions.pod:4992 ../fish/guestfish-actions.pod:3308
12128 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12129 msgstr ""
12130
12131 # type: textblock
12132 #: ../src/guestfs-actions.pod:4995
12133 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12134 msgstr ""
12135
12136 # type: =head2
12137 #: ../src/guestfs-actions.pod:5001
12138 msgid "guestfs_resize2fs"
12139 msgstr ""
12140
12141 # type: verbatim
12142 #: ../src/guestfs-actions.pod:5003
12143 #, no-wrap
12144 msgid ""
12145 " int\n"
12146 " guestfs_resize2fs (guestfs_h *g,\n"
12147 "                    const char *device);\n"
12148 "\n"
12149 msgstr ""
12150
12151 # type: textblock
12152 #: ../src/guestfs-actions.pod:5007 ../fish/guestfish-actions.pod:3317
12153 msgid ""
12154 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12155 "underlying device."
12156 msgstr ""
12157
12158 # type: textblock
12159 #: ../src/guestfs-actions.pod:5010
12160 msgid ""
12161 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12162 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12163 "sometimes gives an error about this and sometimes not.  In any case, it is "
12164 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12165 msgstr ""
12166
12167 # type: =head2
12168 #: ../src/guestfs-actions.pod:5020
12169 msgid "guestfs_resize2fs_size"
12170 msgstr ""
12171
12172 # type: verbatim
12173 #: ../src/guestfs-actions.pod:5022
12174 #, no-wrap
12175 msgid ""
12176 " int\n"
12177 " guestfs_resize2fs_size (guestfs_h *g,\n"
12178 "                         const char *device,\n"
12179 "                         int64_t size);\n"
12180 "\n"
12181 msgstr ""
12182
12183 # type: textblock
12184 #: ../src/guestfs-actions.pod:5027
12185 msgid ""
12186 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12187 "to specify the new size (in bytes) explicitly."
12188 msgstr ""
12189
12190 # type: =head2
12191 #: ../src/guestfs-actions.pod:5034
12192 msgid "guestfs_rm"
12193 msgstr ""
12194
12195 # type: verbatim
12196 #: ../src/guestfs-actions.pod:5036
12197 #, no-wrap
12198 msgid ""
12199 " int\n"
12200 " guestfs_rm (guestfs_h *g,\n"
12201 "             const char *path);\n"
12202 "\n"
12203 msgstr ""
12204
12205 # type: textblock
12206 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3337
12207 msgid "Remove the single file C<path>."
12208 msgstr ""
12209
12210 # type: =head2
12211 #: ../src/guestfs-actions.pod:5046
12212 msgid "guestfs_rm_rf"
12213 msgstr ""
12214
12215 # type: verbatim
12216 #: ../src/guestfs-actions.pod:5048
12217 #, no-wrap
12218 msgid ""
12219 " int\n"
12220 " guestfs_rm_rf (guestfs_h *g,\n"
12221 "                const char *path);\n"
12222 "\n"
12223 msgstr ""
12224
12225 # type: textblock
12226 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3343
12227 msgid ""
12228 "Remove the file or directory C<path>, recursively removing the contents if "
12229 "its a directory.  This is like the C<rm -rf> shell command."
12230 msgstr ""
12231
12232 # type: =head2
12233 #: ../src/guestfs-actions.pod:5060
12234 msgid "guestfs_rmdir"
12235 msgstr ""
12236
12237 # type: verbatim
12238 #: ../src/guestfs-actions.pod:5062
12239 #, no-wrap
12240 msgid ""
12241 " int\n"
12242 " guestfs_rmdir (guestfs_h *g,\n"
12243 "                const char *path);\n"
12244 "\n"
12245 msgstr ""
12246
12247 # type: textblock
12248 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3351
12249 msgid "Remove the single directory C<path>."
12250 msgstr ""
12251
12252 # type: =head2
12253 #: ../src/guestfs-actions.pod:5072
12254 msgid "guestfs_rmmountpoint"
12255 msgstr ""
12256
12257 # type: verbatim
12258 #: ../src/guestfs-actions.pod:5074
12259 #, no-wrap
12260 msgid ""
12261 " int\n"
12262 " guestfs_rmmountpoint (guestfs_h *g,\n"
12263 "                       const char *exemptpath);\n"
12264 "\n"
12265 msgstr ""
12266
12267 # type: textblock
12268 #: ../src/guestfs-actions.pod:5078
12269 msgid ""
12270 "This calls removes a mountpoint that was previously created with "
12271 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12272 msgstr ""
12273
12274 # type: =head2
12275 #: ../src/guestfs-actions.pod:5086
12276 msgid "guestfs_scrub_device"
12277 msgstr ""
12278
12279 # type: verbatim
12280 #: ../src/guestfs-actions.pod:5088
12281 #, no-wrap
12282 msgid ""
12283 " int\n"
12284 " guestfs_scrub_device (guestfs_h *g,\n"
12285 "                       const char *device);\n"
12286 "\n"
12287 msgstr ""
12288
12289 # type: textblock
12290 #: ../src/guestfs-actions.pod:5092 ../fish/guestfish-actions.pod:3365
12291 msgid ""
12292 "This command writes patterns over C<device> to make data retrieval more "
12293 "difficult."
12294 msgstr ""
12295
12296 # type: textblock
12297 #: ../src/guestfs-actions.pod:5095 ../src/guestfs-actions.pod:5116 ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3368 ../fish/guestfish-actions.pod:3383 ../fish/guestfish-actions.pod:3396
12298 msgid ""
12299 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12300 "more details."
12301 msgstr ""
12302
12303 # type: textblock
12304 #: ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5121 ../src/guestfs-actions.pod:5140
12305 msgid "(Added in 1.0.52)"
12306 msgstr ""
12307
12308 # type: =head2
12309 #: ../src/guestfs-actions.pod:5105
12310 msgid "guestfs_scrub_file"
12311 msgstr ""
12312
12313 # type: verbatim
12314 #: ../src/guestfs-actions.pod:5107
12315 #, no-wrap
12316 msgid ""
12317 " int\n"
12318 " guestfs_scrub_file (guestfs_h *g,\n"
12319 "                     const char *file);\n"
12320 "\n"
12321 msgstr ""
12322
12323 # type: textblock
12324 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3378
12325 msgid ""
12326 "This command writes patterns over a file to make data retrieval more "
12327 "difficult."
12328 msgstr ""
12329
12330 # type: textblock
12331 #: ../src/guestfs-actions.pod:5114 ../fish/guestfish-actions.pod:3381
12332 msgid "The file is I<removed> after scrubbing."
12333 msgstr ""
12334
12335 # type: =head2
12336 #: ../src/guestfs-actions.pod:5123
12337 msgid "guestfs_scrub_freespace"
12338 msgstr ""
12339
12340 # type: verbatim
12341 #: ../src/guestfs-actions.pod:5125
12342 #, no-wrap
12343 msgid ""
12344 " int\n"
12345 " guestfs_scrub_freespace (guestfs_h *g,\n"
12346 "                          const char *dir);\n"
12347 "\n"
12348 msgstr ""
12349
12350 # type: textblock
12351 #: ../src/guestfs-actions.pod:5129
12352 msgid ""
12353 "This command creates the directory C<dir> and then fills it with files until "
12354 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
12355 "and deletes them.  The intention is to scrub any free space on the partition "
12356 "containing C<dir>."
12357 msgstr ""
12358
12359 # type: =head2
12360 #: ../src/guestfs-actions.pod:5142
12361 msgid "guestfs_set_append"
12362 msgstr ""
12363
12364 # type: verbatim
12365 #: ../src/guestfs-actions.pod:5144
12366 #, no-wrap
12367 msgid ""
12368 " int\n"
12369 " guestfs_set_append (guestfs_h *g,\n"
12370 "                     const char *append);\n"
12371 "\n"
12372 msgstr ""
12373
12374 # type: textblock
12375 #: ../src/guestfs-actions.pod:5148 ../fish/guestfish-actions.pod:3405
12376 msgid ""
12377 "This function is used to add additional options to the guest kernel command "
12378 "line."
12379 msgstr ""
12380
12381 # type: textblock
12382 #: ../src/guestfs-actions.pod:5151 ../fish/guestfish-actions.pod:3408
12383 msgid ""
12384 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12385 "environment variable."
12386 msgstr ""
12387
12388 # type: textblock
12389 #: ../src/guestfs-actions.pod:5154 ../fish/guestfish-actions.pod:3411
12390 msgid ""
12391 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12392 "(libguestfs always adds a few of its own)."
12393 msgstr ""
12394
12395 # type: =head2
12396 #: ../src/guestfs-actions.pod:5161
12397 msgid "guestfs_set_autosync"
12398 msgstr ""
12399
12400 # type: verbatim
12401 #: ../src/guestfs-actions.pod:5163
12402 #, no-wrap
12403 msgid ""
12404 " int\n"
12405 " guestfs_set_autosync (guestfs_h *g,\n"
12406 "                       int autosync);\n"
12407 "\n"
12408 msgstr ""
12409
12410 # type: textblock
12411 #: ../src/guestfs-actions.pod:5167
12412 msgid ""
12413 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12414 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
12415 "the handle is closed (also if the program exits without closing handles)."
12416 msgstr ""
12417
12418 # type: textblock
12419 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3425
12420 msgid ""
12421 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12422 "disabled by default)."
12423 msgstr ""
12424
12425 # type: =head2
12426 #: ../src/guestfs-actions.pod:5179
12427 msgid "guestfs_set_direct"
12428 msgstr ""
12429
12430 # type: verbatim
12431 #: ../src/guestfs-actions.pod:5181
12432 #, no-wrap
12433 msgid ""
12434 " int\n"
12435 " guestfs_set_direct (guestfs_h *g,\n"
12436 "                     int direct);\n"
12437 "\n"
12438 msgstr ""
12439
12440 # type: textblock
12441 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3434
12442 msgid ""
12443 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12444 "passed directly through to the appliance once it is launched."
12445 msgstr ""
12446
12447 # type: textblock
12448 #: ../src/guestfs-actions.pod:5189
12449 msgid ""
12450 "One consequence of this is that log messages aren't caught by the library "
12451 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
12452 "stdout."
12453 msgstr ""
12454
12455 # type: textblock
12456 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3442
12457 msgid "You probably don't want to use this unless you know what you are doing."
12458 msgstr ""
12459
12460 # type: textblock
12461 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:3445
12462 msgid "The default is disabled."
12463 msgstr ""
12464
12465 # type: =head2
12466 #: ../src/guestfs-actions.pod:5202
12467 msgid "guestfs_set_e2label"
12468 msgstr ""
12469
12470 # type: verbatim
12471 #: ../src/guestfs-actions.pod:5204
12472 #, no-wrap
12473 msgid ""
12474 " int\n"
12475 " guestfs_set_e2label (guestfs_h *g,\n"
12476 "                      const char *device,\n"
12477 "                      const char *label);\n"
12478 "\n"
12479 msgstr ""
12480
12481 # type: textblock
12482 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3451
12483 msgid ""
12484 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12485 "C<label>.  Filesystem labels are limited to 16 characters."
12486 msgstr ""
12487
12488 # type: textblock
12489 #: ../src/guestfs-actions.pod:5213
12490 msgid ""
12491 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
12492 "the existing label on a filesystem."
12493 msgstr ""
12494
12495 # type: =head2
12496 #: ../src/guestfs-actions.pod:5220
12497 msgid "guestfs_set_e2uuid"
12498 msgstr ""
12499
12500 # type: verbatim
12501 #: ../src/guestfs-actions.pod:5222
12502 #, no-wrap
12503 msgid ""
12504 " int\n"
12505 " guestfs_set_e2uuid (guestfs_h *g,\n"
12506 "                     const char *device,\n"
12507 "                     const char *uuid);\n"
12508 "\n"
12509 msgstr ""
12510
12511 # type: textblock
12512 #: ../src/guestfs-actions.pod:5227 ../fish/guestfish-actions.pod:3462
12513 msgid ""
12514 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12515 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12516 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12517 msgstr ""
12518
12519 # type: textblock
12520 #: ../src/guestfs-actions.pod:5232
12521 msgid ""
12522 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
12523 "the existing UUID of a filesystem."
12524 msgstr ""
12525
12526 # type: =head2
12527 #: ../src/guestfs-actions.pod:5239
12528 msgid "guestfs_set_memsize"
12529 msgstr ""
12530
12531 # type: verbatim
12532 #: ../src/guestfs-actions.pod:5241
12533 #, no-wrap
12534 msgid ""
12535 " int\n"
12536 " guestfs_set_memsize (guestfs_h *g,\n"
12537 "                      int memsize);\n"
12538 "\n"
12539 msgstr ""
12540
12541 # type: textblock
12542 #: ../src/guestfs-actions.pod:5245
12543 msgid ""
12544 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12545 "This only has any effect if called before C<guestfs_launch>."
12546 msgstr ""
12547
12548 # type: textblock
12549 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3480
12550 msgid ""
12551 "You can also change this by setting the environment variable "
12552 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12553 msgstr ""
12554
12555 # type: =head2
12556 #: ../src/guestfs-actions.pod:5260
12557 msgid "guestfs_set_network"
12558 msgstr ""
12559
12560 # type: verbatim
12561 #: ../src/guestfs-actions.pod:5262
12562 #, no-wrap
12563 msgid ""
12564 " int\n"
12565 " guestfs_set_network (guestfs_h *g,\n"
12566 "                      int network);\n"
12567 "\n"
12568 msgstr ""
12569
12570 # type: textblock
12571 #: ../src/guestfs-actions.pod:5266 ../fish/guestfish-actions.pod:3493
12572 msgid ""
12573 "If C<network> is true, then the network is enabled in the libguestfs "
12574 "appliance.  The default is false."
12575 msgstr ""
12576
12577 # type: textblock
12578 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3496
12579 msgid ""
12580 "This affects whether commands are able to access the network (see "
12581 "L<guestfs(3)/RUNNING COMMANDS>)."
12582 msgstr ""
12583
12584 # type: textblock
12585 #: ../src/guestfs-actions.pod:5272
12586 msgid ""
12587 "You must call this before calling C<guestfs_launch>, otherwise it has no "
12588 "effect."
12589 msgstr ""
12590
12591 # type: =head2
12592 #: ../src/guestfs-actions.pod:5279
12593 msgid "guestfs_set_path"
12594 msgstr ""
12595
12596 # type: verbatim
12597 #: ../src/guestfs-actions.pod:5281
12598 #, no-wrap
12599 msgid ""
12600 " int\n"
12601 " guestfs_set_path (guestfs_h *g,\n"
12602 "                   const char *searchpath);\n"
12603 "\n"
12604 msgstr ""
12605
12606 # type: textblock
12607 #: ../src/guestfs-actions.pod:5285 ../fish/guestfish-actions.pod:3508
12608 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12609 msgstr ""
12610
12611 # type: textblock
12612 #: ../src/guestfs-actions.pod:5287 ../fish/guestfish-actions.pod:3510
12613 msgid ""
12614 "The default is C<$libdir/guestfs> unless overridden by setting "
12615 "C<LIBGUESTFS_PATH> environment variable."
12616 msgstr ""
12617
12618 # type: textblock
12619 #: ../src/guestfs-actions.pod:5290 ../fish/guestfish-actions.pod:3513
12620 msgid "Setting C<path> to C<NULL> restores the default path."
12621 msgstr ""
12622
12623 # type: =head2
12624 #: ../src/guestfs-actions.pod:5296
12625 msgid "guestfs_set_qemu"
12626 msgstr ""
12627
12628 # type: verbatim
12629 #: ../src/guestfs-actions.pod:5298
12630 #, no-wrap
12631 msgid ""
12632 " int\n"
12633 " guestfs_set_qemu (guestfs_h *g,\n"
12634 "                   const char *qemu);\n"
12635 "\n"
12636 msgstr ""
12637
12638 # type: textblock
12639 #: ../src/guestfs-actions.pod:5302 ../fish/guestfish-actions.pod:3521
12640 msgid "Set the qemu binary that we will use."
12641 msgstr ""
12642
12643 # type: textblock
12644 #: ../src/guestfs-actions.pod:5304 ../fish/guestfish-actions.pod:3523
12645 msgid "The default is chosen when the library was compiled by the configure script."
12646 msgstr ""
12647
12648 # type: textblock
12649 #: ../src/guestfs-actions.pod:5307 ../fish/guestfish-actions.pod:3526
12650 msgid ""
12651 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12652 "variable."
12653 msgstr ""
12654
12655 # type: textblock
12656 #: ../src/guestfs-actions.pod:5310 ../fish/guestfish-actions.pod:3529
12657 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12658 msgstr ""
12659
12660 # type: textblock
12661 #: ../src/guestfs-actions.pod:5312 ../fish/guestfish-actions.pod:3531
12662 msgid ""
12663 "Note that you should call this function as early as possible after creating "
12664 "the handle.  This is because some pre-launch operations depend on testing "
12665 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12666 "don't retest features, and so you might see inconsistent results.  Using the "
12667 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12668 "the qemu binary at the same time as the handle is created."
12669 msgstr ""
12670
12671 # type: =head2
12672 #: ../src/guestfs-actions.pod:5324
12673 msgid "guestfs_set_recovery_proc"
12674 msgstr ""
12675
12676 # type: verbatim
12677 #: ../src/guestfs-actions.pod:5326
12678 #, no-wrap
12679 msgid ""
12680 " int\n"
12681 " guestfs_set_recovery_proc (guestfs_h *g,\n"
12682 "                            int recoveryproc);\n"
12683 "\n"
12684 msgstr ""
12685
12686 # type: textblock
12687 #: ../src/guestfs-actions.pod:5330
12688 msgid ""
12689 "If this is called with the parameter C<false> then C<guestfs_launch> does "
12690 "not create a recovery process.  The purpose of the recovery process is to "
12691 "stop runaway qemu processes in the case where the main program aborts "
12692 "abruptly."
12693 msgstr ""
12694
12695 # type: textblock
12696 #: ../src/guestfs-actions.pod:5335
12697 msgid ""
12698 "This only has any effect if called before C<guestfs_launch>, and the default "
12699 "is true."
12700 msgstr ""
12701
12702 # type: textblock
12703 #: ../src/guestfs-actions.pod:5338 ../fish/guestfish-actions.pod:3553
12704 msgid ""
12705 "About the only time when you would want to disable this is if the main "
12706 "process will fork itself into the background (\"daemonize\" itself).  In "
12707 "this case the recovery process thinks that the main program has disappeared "
12708 "and so kills qemu, which is not very helpful."
12709 msgstr ""
12710
12711 # type: =head2
12712 #: ../src/guestfs-actions.pod:5348
12713 msgid "guestfs_set_selinux"
12714 msgstr ""
12715
12716 # type: verbatim
12717 #: ../src/guestfs-actions.pod:5350
12718 #, no-wrap
12719 msgid ""
12720 " int\n"
12721 " guestfs_set_selinux (guestfs_h *g,\n"
12722 "                      int selinux);\n"
12723 "\n"
12724 msgstr ""
12725
12726 # type: textblock
12727 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:3565
12728 msgid ""
12729 "This sets the selinux flag that is passed to the appliance at boot time.  "
12730 "The default is C<selinux=0> (disabled)."
12731 msgstr ""
12732
12733 # type: textblock
12734 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3568
12735 msgid ""
12736 "Note that if SELinux is enabled, it is always in Permissive mode "
12737 "(C<enforcing=0>)."
12738 msgstr ""
12739
12740 # type: =head2
12741 #: ../src/guestfs-actions.pod:5367
12742 msgid "guestfs_set_trace"
12743 msgstr ""
12744
12745 # type: verbatim
12746 #: ../src/guestfs-actions.pod:5369
12747 #, no-wrap
12748 msgid ""
12749 " int\n"
12750 " guestfs_set_trace (guestfs_h *g,\n"
12751 "                    int trace);\n"
12752 "\n"
12753 msgstr ""
12754
12755 # type: textblock
12756 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:3580
12757 msgid ""
12758 "If the command trace flag is set to 1, then commands are printed on stderr "
12759 "before they are executed in a format which is very similar to the one used "
12760 "by guestfish.  In other words, you can run a program with this enabled, and "
12761 "you will get out a script which you can feed to guestfish to perform the "
12762 "same set of actions."
12763 msgstr ""
12764
12765 # type: textblock
12766 #: ../src/guestfs-actions.pod:5380 ../fish/guestfish-actions.pod:3587
12767 msgid ""
12768 "If you want to trace C API calls into libguestfs (and other libraries) then "
12769 "possibly a better way is to use the external ltrace(1) command."
12770 msgstr ""
12771
12772 # type: textblock
12773 #: ../src/guestfs-actions.pod:5384 ../fish/guestfish-actions.pod:3591
12774 msgid ""
12775 "Command traces are disabled unless the environment variable "
12776 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12777 msgstr ""
12778
12779 # type: =head2
12780 #: ../src/guestfs-actions.pod:5391
12781 msgid "guestfs_set_verbose"
12782 msgstr ""
12783
12784 # type: verbatim
12785 #: ../src/guestfs-actions.pod:5393
12786 #, no-wrap
12787 msgid ""
12788 " int\n"
12789 " guestfs_set_verbose (guestfs_h *g,\n"
12790 "                      int verbose);\n"
12791 "\n"
12792 msgstr ""
12793
12794 # type: textblock
12795 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:3600
12796 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
12797 msgstr ""
12798
12799 # type: textblock
12800 #: ../src/guestfs-actions.pod:5399 ../fish/guestfish-actions.pod:3602
12801 msgid ""
12802 "Verbose messages are disabled unless the environment variable "
12803 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12804 msgstr ""
12805
12806 # type: =head2
12807 #: ../src/guestfs-actions.pod:5406
12808 msgid "guestfs_setcon"
12809 msgstr ""
12810
12811 # type: verbatim
12812 #: ../src/guestfs-actions.pod:5408
12813 #, no-wrap
12814 msgid ""
12815 " int\n"
12816 " guestfs_setcon (guestfs_h *g,\n"
12817 "                 const char *context);\n"
12818 "\n"
12819 msgstr ""
12820
12821 # type: textblock
12822 #: ../src/guestfs-actions.pod:5412 ../fish/guestfish-actions.pod:3609
12823 msgid ""
12824 "This sets the SELinux security context of the daemon to the string "
12825 "C<context>."
12826 msgstr ""
12827
12828 # type: textblock
12829 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3612
12830 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12831 msgstr ""
12832
12833 # type: =head2
12834 #: ../src/guestfs-actions.pod:5421
12835 msgid "guestfs_setxattr"
12836 msgstr ""
12837
12838 # type: verbatim
12839 #: ../src/guestfs-actions.pod:5423
12840 #, no-wrap
12841 msgid ""
12842 " int\n"
12843 " guestfs_setxattr (guestfs_h *g,\n"
12844 "                   const char *xattr,\n"
12845 "                   const char *val,\n"
12846 "                   int vallen,\n"
12847 "                   const char *path);\n"
12848 "\n"
12849 msgstr ""
12850
12851 # type: textblock
12852 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3618
12853 msgid ""
12854 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12855 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12856 msgstr ""
12857
12858 # type: textblock
12859 #: ../src/guestfs-actions.pod:5434
12860 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
12861 msgstr ""
12862
12863 # type: =head2
12864 #: ../src/guestfs-actions.pod:5440
12865 msgid "guestfs_sfdisk"
12866 msgstr ""
12867
12868 # type: verbatim
12869 #: ../src/guestfs-actions.pod:5442
12870 #, no-wrap
12871 msgid ""
12872 " int\n"
12873 " guestfs_sfdisk (guestfs_h *g,\n"
12874 "                 const char *device,\n"
12875 "                 int cyls,\n"
12876 "                 int heads,\n"
12877 "                 int sectors,\n"
12878 "                 char *const *lines);\n"
12879 "\n"
12880 msgstr ""
12881
12882 # type: textblock
12883 #: ../src/guestfs-actions.pod:5450 ../fish/guestfish-actions.pod:3628
12884 msgid ""
12885 "This is a direct interface to the L<sfdisk(8)> program for creating "
12886 "partitions on block devices."
12887 msgstr ""
12888
12889 # type: textblock
12890 #: ../src/guestfs-actions.pod:5453 ../fish/guestfish-actions.pod:3631
12891 msgid "C<device> should be a block device, for example C</dev/sda>."
12892 msgstr ""
12893
12894 # type: textblock
12895 #: ../src/guestfs-actions.pod:5455 ../fish/guestfish-actions.pod:3633
12896 msgid ""
12897 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12898 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12899 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12900 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12901 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12902 "the kernel) cannot work out the right geometry and you will need to tell it."
12903 msgstr ""
12904
12905 # type: textblock
12906 #: ../src/guestfs-actions.pod:5463 ../fish/guestfish-actions.pod:3641
12907 msgid ""
12908 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12909 "refer to the L<sfdisk(8)> manpage."
12910 msgstr ""
12911
12912 # type: textblock
12913 #: ../src/guestfs-actions.pod:5466 ../fish/guestfish-actions.pod:3644
12914 msgid ""
12915 "To create a single partition occupying the whole disk, you would pass "
12916 "C<lines> as a single element list, when the single element being the string "
12917 "C<,> (comma)."
12918 msgstr ""
12919
12920 # type: textblock
12921 #: ../src/guestfs-actions.pod:5470
12922 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
12923 msgstr ""
12924
12925 # type: =head2
12926 #: ../src/guestfs-actions.pod:5480
12927 msgid "guestfs_sfdiskM"
12928 msgstr ""
12929
12930 # type: verbatim
12931 #: ../src/guestfs-actions.pod:5482
12932 #, no-wrap
12933 msgid ""
12934 " int\n"
12935 " guestfs_sfdiskM (guestfs_h *g,\n"
12936 "                  const char *device,\n"
12937 "                  char *const *lines);\n"
12938 "\n"
12939 msgstr ""
12940
12941 # type: textblock
12942 #: ../src/guestfs-actions.pod:5487
12943 msgid ""
12944 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
12945 "partition sizes are specified in megabytes only (rounded to the nearest "
12946 "cylinder) and you don't need to specify the cyls, heads and sectors "
12947 "parameters which were rarely if ever used anyway."
12948 msgstr ""
12949
12950 # type: textblock
12951 #: ../src/guestfs-actions.pod:5493
12952 msgid ""
12953 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
12954 "C<guestfs_part_disk>"
12955 msgstr ""
12956
12957 # type: =head2
12958 #: ../src/guestfs-actions.pod:5503
12959 msgid "guestfs_sfdisk_N"
12960 msgstr ""
12961
12962 # type: verbatim
12963 #: ../src/guestfs-actions.pod:5505
12964 #, no-wrap
12965 msgid ""
12966 " int\n"
12967 " guestfs_sfdisk_N (guestfs_h *g,\n"
12968 "                   const char *device,\n"
12969 "                   int partnum,\n"
12970 "                   int cyls,\n"
12971 "                   int heads,\n"
12972 "                   int sectors,\n"
12973 "                   const char *line);\n"
12974 "\n"
12975 msgstr ""
12976
12977 # type: textblock
12978 #: ../src/guestfs-actions.pod:5514 ../fish/guestfish-actions.pod:3674
12979 msgid ""
12980 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
12981 "(note: C<n> counts from 1)."
12982 msgstr ""
12983
12984 # type: textblock
12985 #: ../src/guestfs-actions.pod:5517
12986 msgid ""
12987 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
12988 "for the cyls/heads/sectors parameters."
12989 msgstr ""
12990
12991 # type: textblock
12992 #: ../src/guestfs-actions.pod:5520
12993 msgid "See also: C<guestfs_part_add>"
12994 msgstr ""
12995
12996 # type: =head2
12997 #: ../src/guestfs-actions.pod:5529
12998 msgid "guestfs_sfdisk_disk_geometry"
12999 msgstr ""
13000
13001 # type: verbatim
13002 #: ../src/guestfs-actions.pod:5531
13003 #, no-wrap
13004 msgid ""
13005 " char *\n"
13006 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13007 "                               const char *device);\n"
13008 "\n"
13009 msgstr ""
13010
13011 # type: textblock
13012 #: ../src/guestfs-actions.pod:5535
13013 msgid ""
13014 "This displays the disk geometry of C<device> read from the partition table.  "
13015 "Especially in the case where the underlying block device has been resized, "
13016 "this can be different from the kernel's idea of the geometry (see "
13017 "C<guestfs_sfdisk_kernel_geometry>)."
13018 msgstr ""
13019
13020 # type: textblock
13021 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5556 ../fish/guestfish-actions.pod:3694 ../fish/guestfish-actions.pod:3703
13022 msgid "The result is in human-readable format, and not designed to be parsed."
13023 msgstr ""
13024
13025 # type: =head2
13026 #: ../src/guestfs-actions.pod:5548
13027 msgid "guestfs_sfdisk_kernel_geometry"
13028 msgstr ""
13029
13030 # type: verbatim
13031 #: ../src/guestfs-actions.pod:5550
13032 #, no-wrap
13033 msgid ""
13034 " char *\n"
13035 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13036 "                                 const char *device);\n"
13037 "\n"
13038 msgstr ""
13039
13040 # type: textblock
13041 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:3701
13042 msgid "This displays the kernel's idea of the geometry of C<device>."
13043 msgstr ""
13044
13045 # type: =head2
13046 #: ../src/guestfs-actions.pod:5564
13047 msgid "guestfs_sfdisk_l"
13048 msgstr ""
13049
13050 # type: verbatim
13051 #: ../src/guestfs-actions.pod:5566
13052 #, no-wrap
13053 msgid ""
13054 " char *\n"
13055 " guestfs_sfdisk_l (guestfs_h *g,\n"
13056 "                   const char *device);\n"
13057 "\n"
13058 msgstr ""
13059
13060 # type: textblock
13061 #: ../src/guestfs-actions.pod:5570 ../fish/guestfish-actions.pod:3710
13062 msgid ""
13063 "This displays the partition table on C<device>, in the human-readable output "
13064 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13065 msgstr ""
13066
13067 # type: textblock
13068 #: ../src/guestfs-actions.pod:5574
13069 msgid "See also: C<guestfs_part_list>"
13070 msgstr ""
13071
13072 # type: =head2
13073 #: ../src/guestfs-actions.pod:5581
13074 msgid "guestfs_sh"
13075 msgstr ""
13076
13077 # type: verbatim
13078 #: ../src/guestfs-actions.pod:5583
13079 #, no-wrap
13080 msgid ""
13081 " char *\n"
13082 " guestfs_sh (guestfs_h *g,\n"
13083 "             const char *command);\n"
13084 "\n"
13085 msgstr ""
13086
13087 # type: textblock
13088 #: ../src/guestfs-actions.pod:5587 ../fish/guestfish-actions.pod:3720
13089 msgid ""
13090 "This call runs a command from the guest filesystem via the guest's "
13091 "C</bin/sh>."
13092 msgstr ""
13093
13094 # type: textblock
13095 #: ../src/guestfs-actions.pod:5590
13096 msgid "This is like C<guestfs_command>, but passes the command to:"
13097 msgstr ""
13098
13099 # type: verbatim
13100 #: ../src/guestfs-actions.pod:5592 ../fish/guestfish-actions.pod:3725
13101 #, no-wrap
13102 msgid ""
13103 " /bin/sh -c \"command\"\n"
13104 "\n"
13105 msgstr ""
13106
13107 # type: textblock
13108 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3727
13109 msgid ""
13110 "Depending on the guest's shell, this usually results in wildcards being "
13111 "expanded, shell expressions being interpolated and so on."
13112 msgstr ""
13113
13114 # type: textblock
13115 #: ../src/guestfs-actions.pod:5598
13116 msgid "All the provisos about C<guestfs_command> apply to this call."
13117 msgstr ""
13118
13119 # type: =head2
13120 #: ../src/guestfs-actions.pod:5605
13121 msgid "guestfs_sh_lines"
13122 msgstr ""
13123
13124 # type: verbatim
13125 #: ../src/guestfs-actions.pod:5607
13126 #, no-wrap
13127 msgid ""
13128 " char **\n"
13129 " guestfs_sh_lines (guestfs_h *g,\n"
13130 "                   const char *command);\n"
13131 "\n"
13132 msgstr ""
13133
13134 # type: textblock
13135 #: ../src/guestfs-actions.pod:5611
13136 msgid ""
13137 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13138 "lines."
13139 msgstr ""
13140
13141 # type: textblock
13142 #: ../src/guestfs-actions.pod:5614
13143 msgid "See also: C<guestfs_command_lines>"
13144 msgstr ""
13145
13146 # type: =head2
13147 #: ../src/guestfs-actions.pod:5622
13148 msgid "guestfs_sleep"
13149 msgstr ""
13150
13151 # type: verbatim
13152 #: ../src/guestfs-actions.pod:5624
13153 #, no-wrap
13154 msgid ""
13155 " int\n"
13156 " guestfs_sleep (guestfs_h *g,\n"
13157 "                int secs);\n"
13158 "\n"
13159 msgstr ""
13160
13161 # type: textblock
13162 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3746
13163 msgid "Sleep for C<secs> seconds."
13164 msgstr ""
13165
13166 # type: textblock
13167 #: ../src/guestfs-actions.pod:5632
13168 msgid "(Added in 1.0.41)"
13169 msgstr ""
13170
13171 # type: =head2
13172 #: ../src/guestfs-actions.pod:5634 ../src/guestfs-structs.pod:109
13173 msgid "guestfs_stat"
13174 msgstr ""
13175
13176 # type: verbatim
13177 #: ../src/guestfs-actions.pod:5636
13178 #, no-wrap
13179 msgid ""
13180 " struct guestfs_stat *\n"
13181 " guestfs_stat (guestfs_h *g,\n"
13182 "               const char *path);\n"
13183 "\n"
13184 msgstr ""
13185
13186 # type: textblock
13187 #: ../src/guestfs-actions.pod:5642 ../fish/guestfish-actions.pod:3754
13188 msgid "This is the same as the C<stat(2)> system call."
13189 msgstr ""
13190
13191 # type: =head2
13192 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-structs.pod:135
13193 msgid "guestfs_statvfs"
13194 msgstr ""
13195
13196 # type: verbatim
13197 #: ../src/guestfs-actions.pod:5652
13198 #, no-wrap
13199 msgid ""
13200 " struct guestfs_statvfs *\n"
13201 " guestfs_statvfs (guestfs_h *g,\n"
13202 "                  const char *path);\n"
13203 "\n"
13204 msgstr ""
13205
13206 # type: textblock
13207 #: ../src/guestfs-actions.pod:5656 ../fish/guestfish-actions.pod:3760
13208 msgid ""
13209 "Returns file system statistics for any mounted file system.  C<path> should "
13210 "be a file or directory in the mounted file system (typically it is the mount "
13211 "point itself, but it doesn't need to be)."
13212 msgstr ""
13213
13214 # type: textblock
13215 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3764
13216 msgid "This is the same as the C<statvfs(2)> system call."
13217 msgstr ""
13218
13219 # type: textblock
13220 #: ../src/guestfs-actions.pod:5662
13221 msgid ""
13222 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13223 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13224 msgstr ""
13225
13226 # type: =head2
13227 #: ../src/guestfs-actions.pod:5668
13228 msgid "guestfs_strings"
13229 msgstr ""
13230
13231 # type: verbatim
13232 #: ../src/guestfs-actions.pod:5670
13233 #, no-wrap
13234 msgid ""
13235 " char **\n"
13236 " guestfs_strings (guestfs_h *g,\n"
13237 "                  const char *path);\n"
13238 "\n"
13239 msgstr ""
13240
13241 # type: textblock
13242 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3770
13243 msgid ""
13244 "This runs the L<strings(1)> command on a file and returns the list of "
13245 "printable strings found."
13246 msgstr ""
13247
13248 # type: =head2
13249 #: ../src/guestfs-actions.pod:5686
13250 msgid "guestfs_strings_e"
13251 msgstr ""
13252
13253 # type: verbatim
13254 #: ../src/guestfs-actions.pod:5688
13255 #, no-wrap
13256 msgid ""
13257 " char **\n"
13258 " guestfs_strings_e (guestfs_h *g,\n"
13259 "                    const char *encoding,\n"
13260 "                    const char *path);\n"
13261 "\n"
13262 msgstr ""
13263
13264 # type: textblock
13265 #: ../src/guestfs-actions.pod:5693
13266 msgid ""
13267 "This is like the C<guestfs_strings> command, but allows you to specify the "
13268 "encoding of strings that are looked for in the source file C<path>."
13269 msgstr ""
13270
13271 # type: textblock
13272 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3784
13273 msgid "Allowed encodings are:"
13274 msgstr ""
13275
13276 # type: =item
13277 #: ../src/guestfs-actions.pod:5701 ../fish/guestfish-actions.pod:3788
13278 msgid "s"
13279 msgstr ""
13280
13281 # type: textblock
13282 #: ../src/guestfs-actions.pod:5703
13283 msgid ""
13284 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13285 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13286 msgstr ""
13287
13288 # type: =item
13289 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3793
13290 msgid "S"
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3795
13295 msgid "Single 8-bit-byte characters."
13296 msgstr ""
13297
13298 # type: =item
13299 #: ../src/guestfs-actions.pod:5710 ../fish/guestfish-actions.pod:3797
13300 msgid "b"
13301 msgstr ""
13302
13303 # type: textblock
13304 #: ../src/guestfs-actions.pod:5712 ../fish/guestfish-actions.pod:3799
13305 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13306 msgstr ""
13307
13308 # type: =item
13309 #: ../src/guestfs-actions.pod:5715 ../fish/guestfish-actions.pod:3802
13310 msgid "l (lower case letter L)"
13311 msgstr ""
13312
13313 # type: textblock
13314 #: ../src/guestfs-actions.pod:5717 ../fish/guestfish-actions.pod:3804
13315 msgid ""
13316 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13317 "examining binaries in Windows guests."
13318 msgstr ""
13319
13320 # type: =item
13321 #: ../src/guestfs-actions.pod:5720 ../fish/guestfish-actions.pod:3807
13322 msgid "B"
13323 msgstr ""
13324
13325 # type: textblock
13326 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:3809
13327 msgid "32-bit big endian such as UCS-4BE."
13328 msgstr ""
13329
13330 # type: =item
13331 #: ../src/guestfs-actions.pod:5724 ../fish/guestfish-actions.pod:3811
13332 msgid "L"
13333 msgstr ""
13334
13335 # type: textblock
13336 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3813
13337 msgid "32-bit little endian such as UCS-4LE."
13338 msgstr ""
13339
13340 # type: textblock
13341 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:3817
13342 msgid "The returned strings are transcoded to UTF-8."
13343 msgstr ""
13344
13345 # type: =head2
13346 #: ../src/guestfs-actions.pod:5741
13347 msgid "guestfs_swapoff_device"
13348 msgstr ""
13349
13350 # type: verbatim
13351 #: ../src/guestfs-actions.pod:5743
13352 #, no-wrap
13353 msgid ""
13354 " int\n"
13355 " guestfs_swapoff_device (guestfs_h *g,\n"
13356 "                         const char *device);\n"
13357 "\n"
13358 msgstr ""
13359
13360 # type: textblock
13361 #: ../src/guestfs-actions.pod:5747
13362 msgid ""
13363 "This command disables the libguestfs appliance swap device or partition "
13364 "named C<device>.  See C<guestfs_swapon_device>."
13365 msgstr ""
13366
13367 # type: =head2
13368 #: ../src/guestfs-actions.pod:5755
13369 msgid "guestfs_swapoff_file"
13370 msgstr ""
13371
13372 # type: verbatim
13373 #: ../src/guestfs-actions.pod:5757
13374 #, no-wrap
13375 msgid ""
13376 " int\n"
13377 " guestfs_swapoff_file (guestfs_h *g,\n"
13378 "                       const char *file);\n"
13379 "\n"
13380 msgstr ""
13381
13382 # type: textblock
13383 #: ../src/guestfs-actions.pod:5761 ../fish/guestfish-actions.pod:3834
13384 msgid "This command disables the libguestfs appliance swap on file."
13385 msgstr ""
13386
13387 # type: =head2
13388 #: ../src/guestfs-actions.pod:5767
13389 msgid "guestfs_swapoff_label"
13390 msgstr ""
13391
13392 # type: verbatim
13393 #: ../src/guestfs-actions.pod:5769
13394 #, no-wrap
13395 msgid ""
13396 " int\n"
13397 " guestfs_swapoff_label (guestfs_h *g,\n"
13398 "                        const char *label);\n"
13399 "\n"
13400 msgstr ""
13401
13402 # type: textblock
13403 #: ../src/guestfs-actions.pod:5773 ../fish/guestfish-actions.pod:3840
13404 msgid ""
13405 "This command disables the libguestfs appliance swap on labeled swap "
13406 "partition."
13407 msgstr ""
13408
13409 # type: =head2
13410 #: ../src/guestfs-actions.pod:5780
13411 msgid "guestfs_swapoff_uuid"
13412 msgstr ""
13413
13414 # type: verbatim
13415 #: ../src/guestfs-actions.pod:5782
13416 #, no-wrap
13417 msgid ""
13418 " int\n"
13419 " guestfs_swapoff_uuid (guestfs_h *g,\n"
13420 "                       const char *uuid);\n"
13421 "\n"
13422 msgstr ""
13423
13424 # type: textblock
13425 #: ../src/guestfs-actions.pod:5786 ../fish/guestfish-actions.pod:3847
13426 msgid ""
13427 "This command disables the libguestfs appliance swap partition with the given "
13428 "UUID."
13429 msgstr ""
13430
13431 # type: =head2
13432 #: ../src/guestfs-actions.pod:5793
13433 msgid "guestfs_swapon_device"
13434 msgstr ""
13435
13436 # type: verbatim
13437 #: ../src/guestfs-actions.pod:5795
13438 #, no-wrap
13439 msgid ""
13440 " int\n"
13441 " guestfs_swapon_device (guestfs_h *g,\n"
13442 "                        const char *device);\n"
13443 "\n"
13444 msgstr ""
13445
13446 # type: textblock
13447 #: ../src/guestfs-actions.pod:5799
13448 msgid ""
13449 "This command enables the libguestfs appliance to use the swap device or "
13450 "partition named C<device>.  The increased memory is made available for all "
13451 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
13452 msgstr ""
13453
13454 # type: textblock
13455 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:3859
13456 msgid ""
13457 "Note that you should not swap to existing guest swap partitions unless you "
13458 "know what you are doing.  They may contain hibernation information, or other "
13459 "information that the guest doesn't want you to trash.  You also risk leaking "
13460 "information about the host to the guest this way.  Instead, attach a new "
13461 "host device to the guest and swap on that."
13462 msgstr ""
13463
13464 # type: =head2
13465 #: ../src/guestfs-actions.pod:5815
13466 msgid "guestfs_swapon_file"
13467 msgstr ""
13468
13469 # type: verbatim
13470 #: ../src/guestfs-actions.pod:5817
13471 #, no-wrap
13472 msgid ""
13473 " int\n"
13474 " guestfs_swapon_file (guestfs_h *g,\n"
13475 "                      const char *file);\n"
13476 "\n"
13477 msgstr ""
13478
13479 # type: textblock
13480 #: ../src/guestfs-actions.pod:5821
13481 msgid ""
13482 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
13483 "notes."
13484 msgstr ""
13485
13486 # type: =head2
13487 #: ../src/guestfs-actions.pod:5828
13488 msgid "guestfs_swapon_label"
13489 msgstr ""
13490
13491 # type: verbatim
13492 #: ../src/guestfs-actions.pod:5830
13493 #, no-wrap
13494 msgid ""
13495 " int\n"
13496 " guestfs_swapon_label (guestfs_h *g,\n"
13497 "                       const char *label);\n"
13498 "\n"
13499 msgstr ""
13500
13501 # type: textblock
13502 #: ../src/guestfs-actions.pod:5834
13503 msgid ""
13504 "This command enables swap to a labeled swap partition.  See "
13505 "C<guestfs_swapon_device> for other notes."
13506 msgstr ""
13507
13508 # type: =head2
13509 #: ../src/guestfs-actions.pod:5841
13510 msgid "guestfs_swapon_uuid"
13511 msgstr ""
13512
13513 # type: verbatim
13514 #: ../src/guestfs-actions.pod:5843
13515 #, no-wrap
13516 msgid ""
13517 " int\n"
13518 " guestfs_swapon_uuid (guestfs_h *g,\n"
13519 "                      const char *uuid);\n"
13520 "\n"
13521 msgstr ""
13522
13523 # type: textblock
13524 #: ../src/guestfs-actions.pod:5847
13525 msgid ""
13526 "This command enables swap to a swap partition with the given UUID.  See "
13527 "C<guestfs_swapon_device> for other notes."
13528 msgstr ""
13529
13530 # type: =head2
13531 #: ../src/guestfs-actions.pod:5854
13532 msgid "guestfs_sync"
13533 msgstr ""
13534
13535 # type: verbatim
13536 #: ../src/guestfs-actions.pod:5856
13537 #, no-wrap
13538 msgid ""
13539 " int\n"
13540 " guestfs_sync (guestfs_h *g);\n"
13541 "\n"
13542 msgstr ""
13543
13544 # type: textblock
13545 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3891
13546 msgid ""
13547 "This syncs the disk, so that any writes are flushed through to the "
13548 "underlying disk image."
13549 msgstr ""
13550
13551 # type: textblock
13552 #: ../src/guestfs-actions.pod:5862 ../fish/guestfish-actions.pod:3894
13553 msgid ""
13554 "You should always call this if you have modified a disk image, before "
13555 "closing the handle."
13556 msgstr ""
13557
13558 # type: =head2
13559 #: ../src/guestfs-actions.pod:5869
13560 msgid "guestfs_tail"
13561 msgstr ""
13562
13563 # type: verbatim
13564 #: ../src/guestfs-actions.pod:5871
13565 #, no-wrap
13566 msgid ""
13567 " char **\n"
13568 " guestfs_tail (guestfs_h *g,\n"
13569 "               const char *path);\n"
13570 "\n"
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5875 ../fish/guestfish-actions.pod:3901
13575 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13576 msgstr ""
13577
13578 # type: =head2
13579 #: ../src/guestfs-actions.pod:5887
13580 msgid "guestfs_tail_n"
13581 msgstr ""
13582
13583 # type: verbatim
13584 #: ../src/guestfs-actions.pod:5889
13585 #, no-wrap
13586 msgid ""
13587 " char **\n"
13588 " guestfs_tail_n (guestfs_h *g,\n"
13589 "                 int nrlines,\n"
13590 "                 const char *path);\n"
13591 "\n"
13592 msgstr ""
13593
13594 # type: textblock
13595 #: ../src/guestfs-actions.pod:5894 ../fish/guestfish-actions.pod:3911
13596 msgid ""
13597 "If the parameter C<nrlines> is a positive number, this returns the last "
13598 "C<nrlines> lines of the file C<path>."
13599 msgstr ""
13600
13601 # type: textblock
13602 #: ../src/guestfs-actions.pod:5897 ../fish/guestfish-actions.pod:3914
13603 msgid ""
13604 "If the parameter C<nrlines> is a negative number, this returns lines from "
13605 "the file C<path>, starting with the C<-nrlines>th line."
13606 msgstr ""
13607
13608 # type: =head2
13609 #: ../src/guestfs-actions.pod:5911
13610 msgid "guestfs_tar_in"
13611 msgstr ""
13612
13613 # type: verbatim
13614 #: ../src/guestfs-actions.pod:5913
13615 #, no-wrap
13616 msgid ""
13617 " int\n"
13618 " guestfs_tar_in (guestfs_h *g,\n"
13619 "                 const char *tarfile,\n"
13620 "                 const char *directory);\n"
13621 "\n"
13622 msgstr ""
13623
13624 # type: textblock
13625 #: ../src/guestfs-actions.pod:5918 ../fish/guestfish-actions.pod:3926
13626 msgid ""
13627 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13628 "tar file) into C<directory>."
13629 msgstr ""
13630
13631 # type: textblock
13632 #: ../src/guestfs-actions.pod:5921
13633 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
13634 msgstr ""
13635
13636 # type: textblock
13637 #: ../src/guestfs-actions.pod:5926 ../src/guestfs-actions.pod:5943 ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:5975
13638 msgid "(Added in 1.0.3)"
13639 msgstr ""
13640
13641 # type: =head2
13642 #: ../src/guestfs-actions.pod:5928
13643 msgid "guestfs_tar_out"
13644 msgstr ""
13645
13646 # type: verbatim
13647 #: ../src/guestfs-actions.pod:5930
13648 #, no-wrap
13649 msgid ""
13650 " int\n"
13651 " guestfs_tar_out (guestfs_h *g,\n"
13652 "                  const char *directory,\n"
13653 "                  const char *tarfile);\n"
13654 "\n"
13655 msgstr ""
13656
13657 # type: textblock
13658 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3938
13659 msgid ""
13660 "This command packs the contents of C<directory> and downloads it to local "
13661 "file C<tarfile>."
13662 msgstr ""
13663
13664 # type: textblock
13665 #: ../src/guestfs-actions.pod:5938
13666 msgid ""
13667 "To download a compressed tarball, use C<guestfs_tgz_out> or "
13668 "C<guestfs_txz_out>."
13669 msgstr ""
13670
13671 # type: =head2
13672 #: ../src/guestfs-actions.pod:5945
13673 msgid "guestfs_tgz_in"
13674 msgstr ""
13675
13676 # type: verbatim
13677 #: ../src/guestfs-actions.pod:5947
13678 #, no-wrap
13679 msgid ""
13680 " int\n"
13681 " guestfs_tgz_in (guestfs_h *g,\n"
13682 "                 const char *tarball,\n"
13683 "                 const char *directory);\n"
13684 "\n"
13685 msgstr ""
13686
13687 # type: textblock
13688 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:3950
13689 msgid ""
13690 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13691 "tar file) into C<directory>."
13692 msgstr ""
13693
13694 # type: textblock
13695 #: ../src/guestfs-actions.pod:5955
13696 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
13697 msgstr ""
13698
13699 # type: =head2
13700 #: ../src/guestfs-actions.pod:5961
13701 msgid "guestfs_tgz_out"
13702 msgstr ""
13703
13704 # type: verbatim
13705 #: ../src/guestfs-actions.pod:5963
13706 #, no-wrap
13707 msgid ""
13708 " int\n"
13709 " guestfs_tgz_out (guestfs_h *g,\n"
13710 "                  const char *directory,\n"
13711 "                  const char *tarball);\n"
13712 "\n"
13713 msgstr ""
13714
13715 # type: textblock
13716 #: ../src/guestfs-actions.pod:5968 ../fish/guestfish-actions.pod:3961
13717 msgid ""
13718 "This command packs the contents of C<directory> and downloads it to local "
13719 "file C<tarball>."
13720 msgstr ""
13721
13722 # type: textblock
13723 #: ../src/guestfs-actions.pod:5971
13724 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
13725 msgstr ""
13726
13727 # type: =head2
13728 #: ../src/guestfs-actions.pod:5977
13729 msgid "guestfs_touch"
13730 msgstr ""
13731
13732 # type: verbatim
13733 #: ../src/guestfs-actions.pod:5979
13734 #, no-wrap
13735 msgid ""
13736 " int\n"
13737 " guestfs_touch (guestfs_h *g,\n"
13738 "                const char *path);\n"
13739 "\n"
13740 msgstr ""
13741
13742 # type: textblock
13743 #: ../src/guestfs-actions.pod:5983 ../fish/guestfish-actions.pod:3972
13744 msgid ""
13745 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13746 "timestamps on a file, or, if the file does not exist, to create a new "
13747 "zero-length file."
13748 msgstr ""
13749
13750 # type: textblock
13751 #: ../src/guestfs-actions.pod:5987 ../fish/guestfish-actions.pod:3976
13752 msgid ""
13753 "This command only works on regular files, and will fail on other file types "
13754 "such as directories, symbolic links, block special etc."
13755 msgstr ""
13756
13757 # type: =head2
13758 #: ../src/guestfs-actions.pod:5994
13759 msgid "guestfs_truncate"
13760 msgstr ""
13761
13762 # type: verbatim
13763 #: ../src/guestfs-actions.pod:5996
13764 #, no-wrap
13765 msgid ""
13766 " int\n"
13767 " guestfs_truncate (guestfs_h *g,\n"
13768 "                   const char *path);\n"
13769 "\n"
13770 msgstr ""
13771
13772 # type: textblock
13773 #: ../src/guestfs-actions.pod:6000 ../fish/guestfish-actions.pod:3983
13774 msgid ""
13775 "This command truncates C<path> to a zero-length file.  The file must exist "
13776 "already."
13777 msgstr ""
13778
13779 # type: =head2
13780 #: ../src/guestfs-actions.pod:6007
13781 msgid "guestfs_truncate_size"
13782 msgstr ""
13783
13784 # type: verbatim
13785 #: ../src/guestfs-actions.pod:6009
13786 #, no-wrap
13787 msgid ""
13788 " int\n"
13789 " guestfs_truncate_size (guestfs_h *g,\n"
13790 "                        const char *path,\n"
13791 "                        int64_t size);\n"
13792 "\n"
13793 msgstr ""
13794
13795 # type: textblock
13796 #: ../src/guestfs-actions.pod:6014 ../fish/guestfish-actions.pod:3990
13797 msgid ""
13798 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13799 "already."
13800 msgstr ""
13801
13802 # type: textblock
13803 #: ../src/guestfs-actions.pod:6017
13804 msgid ""
13805 "If the current file size is less than C<size> then the file is extended to "
13806 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13807 "blocks are not allocated for the file until you write to it).  To create a "
13808 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
13809 msgstr ""
13810
13811 # type: =head2
13812 #: ../src/guestfs-actions.pod:6027
13813 msgid "guestfs_tune2fs_l"
13814 msgstr ""
13815
13816 # type: verbatim
13817 #: ../src/guestfs-actions.pod:6029
13818 #, no-wrap
13819 msgid ""
13820 " char **\n"
13821 " guestfs_tune2fs_l (guestfs_h *g,\n"
13822 "                    const char *device);\n"
13823 "\n"
13824 msgstr ""
13825
13826 # type: textblock
13827 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4003
13828 msgid ""
13829 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13830 "C<device>."
13831 msgstr ""
13832
13833 # type: textblock
13834 #: ../src/guestfs-actions.pod:6036 ../fish/guestfish-actions.pod:4006
13835 msgid ""
13836 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13837 "for more details.  The list of fields returned isn't clearly defined, and "
13838 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13839 "and the filesystem itself."
13840 msgstr ""
13841
13842 # type: =head2
13843 #: ../src/guestfs-actions.pod:6049
13844 msgid "guestfs_txz_in"
13845 msgstr ""
13846
13847 # type: verbatim
13848 #: ../src/guestfs-actions.pod:6051
13849 #, no-wrap
13850 msgid ""
13851 " int\n"
13852 " guestfs_txz_in (guestfs_h *g,\n"
13853 "                 const char *tarball,\n"
13854 "                 const char *directory);\n"
13855 "\n"
13856 msgstr ""
13857
13858 # type: textblock
13859 #: ../src/guestfs-actions.pod:6056 ../fish/guestfish-actions.pod:4015
13860 msgid ""
13861 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13862 "tar file) into C<directory>."
13863 msgstr ""
13864
13865 # type: =head2
13866 #: ../src/guestfs-actions.pod:6063
13867 msgid "guestfs_txz_out"
13868 msgstr ""
13869
13870 # type: verbatim
13871 #: ../src/guestfs-actions.pod:6065
13872 #, no-wrap
13873 msgid ""
13874 " int\n"
13875 " guestfs_txz_out (guestfs_h *g,\n"
13876 "                  const char *directory,\n"
13877 "                  const char *tarball);\n"
13878 "\n"
13879 msgstr ""
13880
13881 # type: textblock
13882 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4024
13883 msgid ""
13884 "This command packs the contents of C<directory> and downloads it to local "
13885 "file C<tarball> (as an xz compressed tar archive)."
13886 msgstr ""
13887
13888 # type: =head2
13889 #: ../src/guestfs-actions.pod:6077
13890 msgid "guestfs_umask"
13891 msgstr ""
13892
13893 # type: verbatim
13894 #: ../src/guestfs-actions.pod:6079
13895 #, no-wrap
13896 msgid ""
13897 " int\n"
13898 " guestfs_umask (guestfs_h *g,\n"
13899 "                int mask);\n"
13900 "\n"
13901 msgstr ""
13902
13903 # type: textblock
13904 #: ../src/guestfs-actions.pod:6083 ../fish/guestfish-actions.pod:4033
13905 msgid ""
13906 "This function sets the mask used for creating new files and device nodes to "
13907 "C<mask & 0777>."
13908 msgstr ""
13909
13910 # type: textblock
13911 #: ../src/guestfs-actions.pod:6086 ../fish/guestfish-actions.pod:4036
13912 msgid ""
13913 "Typical umask values would be C<022> which creates new files with "
13914 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13915 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13916 msgstr ""
13917
13918 # type: textblock
13919 #: ../src/guestfs-actions.pod:6091 ../fish/guestfish-actions.pod:4041
13920 msgid ""
13921 "The default umask is C<022>.  This is important because it means that "
13922 "directories and device nodes will be created with C<0644> or C<0755> mode "
13923 "even if you specify C<0777>."
13924 msgstr ""
13925
13926 # type: textblock
13927 #: ../src/guestfs-actions.pod:6095
13928 msgid ""
13929 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
13930 "C<guestfs_mkdir>."
13931 msgstr ""
13932
13933 # type: textblock
13934 #: ../src/guestfs-actions.pod:6098 ../fish/guestfish-actions.pod:4048
13935 msgid "This call returns the previous umask."
13936 msgstr ""
13937
13938 # type: =head2
13939 #: ../src/guestfs-actions.pod:6104
13940 msgid "guestfs_umount"
13941 msgstr ""
13942
13943 # type: verbatim
13944 #: ../src/guestfs-actions.pod:6106
13945 #, no-wrap
13946 msgid ""
13947 " int\n"
13948 " guestfs_umount (guestfs_h *g,\n"
13949 "                 const char *pathordevice);\n"
13950 "\n"
13951 msgstr ""
13952
13953 # type: textblock
13954 #: ../src/guestfs-actions.pod:6110 ../fish/guestfish-actions.pod:4056
13955 msgid ""
13956 "This unmounts the given filesystem.  The filesystem may be specified either "
13957 "by its mountpoint (path) or the device which contains the filesystem."
13958 msgstr ""
13959
13960 # type: =head2
13961 #: ../src/guestfs-actions.pod:6118
13962 msgid "guestfs_umount_all"
13963 msgstr ""
13964
13965 # type: verbatim
13966 #: ../src/guestfs-actions.pod:6120
13967 #, no-wrap
13968 msgid ""
13969 " int\n"
13970 " guestfs_umount_all (guestfs_h *g);\n"
13971 "\n"
13972 msgstr ""
13973
13974 # type: textblock
13975 #: ../src/guestfs-actions.pod:6123 ../fish/guestfish-actions.pod:4066
13976 msgid "This unmounts all mounted filesystems."
13977 msgstr ""
13978
13979 # type: textblock
13980 #: ../src/guestfs-actions.pod:6125 ../fish/guestfish-actions.pod:4068
13981 msgid "Some internal mounts are not unmounted by this call."
13982 msgstr ""
13983
13984 # type: =head2
13985 #: ../src/guestfs-actions.pod:6131
13986 msgid "guestfs_upload"
13987 msgstr ""
13988
13989 # type: verbatim
13990 #: ../src/guestfs-actions.pod:6133
13991 #, no-wrap
13992 msgid ""
13993 " int\n"
13994 " guestfs_upload (guestfs_h *g,\n"
13995 "                 const char *filename,\n"
13996 "                 const char *remotefilename);\n"
13997 "\n"
13998 msgstr ""
13999
14000 # type: textblock
14001 #: ../src/guestfs-actions.pod:6138 ../src/guestfs-actions.pod:6157 ../fish/guestfish-actions.pod:4074 ../fish/guestfish-actions.pod:4087
14002 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14003 msgstr ""
14004
14005 # type: textblock
14006 #: ../src/guestfs-actions.pod:6143
14007 msgid "See also C<guestfs_download>."
14008 msgstr ""
14009
14010 # type: =head2
14011 #: ../src/guestfs-actions.pod:6149
14012 msgid "guestfs_upload_offset"
14013 msgstr ""
14014
14015 # type: verbatim
14016 #: ../src/guestfs-actions.pod:6151
14017 #, no-wrap
14018 msgid ""
14019 " int\n"
14020 " guestfs_upload_offset (guestfs_h *g,\n"
14021 "                        const char *filename,\n"
14022 "                        const char *remotefilename,\n"
14023 "                        int64_t offset);\n"
14024 "\n"
14025 msgstr ""
14026
14027 # type: textblock
14028 #: ../src/guestfs-actions.pod:6160 ../fish/guestfish-actions.pod:4090
14029 msgid ""
14030 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14031 "The intention is to overwrite parts of existing files or devices, although "
14032 "if a non-existant file is specified then it is created with a \"hole\" "
14033 "before C<offset>.  The size of the data written is implicit in the size of "
14034 "the source C<filename>."
14035 msgstr ""
14036
14037 # type: textblock
14038 #: ../src/guestfs-actions.pod:6167
14039 msgid ""
14040 "Note that there is no limit on the amount of data that can be uploaded with "
14041 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14042 "full amount unless an error occurs."
14043 msgstr ""
14044
14045 # type: textblock
14046 #: ../src/guestfs-actions.pod:6172
14047 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14048 msgstr ""
14049
14050 # type: =head2
14051 #: ../src/guestfs-actions.pod:6178
14052 msgid "guestfs_utimens"
14053 msgstr ""
14054
14055 # type: verbatim
14056 #: ../src/guestfs-actions.pod:6180
14057 #, no-wrap
14058 msgid ""
14059 " int\n"
14060 " guestfs_utimens (guestfs_h *g,\n"
14061 "                  const char *path,\n"
14062 "                  int64_t atsecs,\n"
14063 "                  int64_t atnsecs,\n"
14064 "                  int64_t mtsecs,\n"
14065 "                  int64_t mtnsecs);\n"
14066 "\n"
14067 msgstr ""
14068
14069 # type: textblock
14070 #: ../src/guestfs-actions.pod:6188 ../fish/guestfish-actions.pod:4110
14071 msgid "This command sets the timestamps of a file with nanosecond precision."
14072 msgstr ""
14073
14074 # type: textblock
14075 #: ../src/guestfs-actions.pod:6191 ../fish/guestfish-actions.pod:4113
14076 msgid ""
14077 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14078 "from the epoch."
14079 msgstr ""
14080
14081 # type: textblock
14082 #: ../src/guestfs-actions.pod:6194 ../fish/guestfish-actions.pod:4116
14083 msgid ""
14084 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14085 "nanoseconds from the epoch."
14086 msgstr ""
14087
14088 # type: textblock
14089 #: ../src/guestfs-actions.pod:6197 ../fish/guestfish-actions.pod:4119
14090 msgid ""
14091 "If the C<*nsecs> field contains the special value C<-1> then the "
14092 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14093 "ignored in this case)."
14094 msgstr ""
14095
14096 # type: textblock
14097 #: ../src/guestfs-actions.pod:6201 ../fish/guestfish-actions.pod:4123
14098 msgid ""
14099 "If the C<*nsecs> field contains the special value C<-2> then the "
14100 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14101 "in this case)."
14102 msgstr ""
14103
14104 # type: =head2
14105 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-structs.pod:175
14106 msgid "guestfs_version"
14107 msgstr ""
14108
14109 # type: verbatim
14110 #: ../src/guestfs-actions.pod:6211
14111 #, no-wrap
14112 msgid ""
14113 " struct guestfs_version *\n"
14114 " guestfs_version (guestfs_h *g);\n"
14115 "\n"
14116 msgstr ""
14117
14118 # type: textblock
14119 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4131
14120 msgid "Return the libguestfs version number that the program is linked against."
14121 msgstr ""
14122
14123 # type: textblock
14124 #: ../src/guestfs-actions.pod:6217 ../fish/guestfish-actions.pod:4134
14125 msgid ""
14126 "Note that because of dynamic linking this is not necessarily the version of "
14127 "libguestfs that you compiled against.  You can compile the program, and then "
14128 "at runtime dynamically link against a completely different C<libguestfs.so> "
14129 "library."
14130 msgstr ""
14131
14132 # type: textblock
14133 #: ../src/guestfs-actions.pod:6222 ../fish/guestfish-actions.pod:4139
14134 msgid ""
14135 "This call was added in version C<1.0.58>.  In previous versions of "
14136 "libguestfs there was no way to get the version number.  From C code you can "
14137 "use dynamic linker functions to find out if this symbol exists (if it "
14138 "doesn't, then it's an earlier version)."
14139 msgstr ""
14140
14141 # type: textblock
14142 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4145
14143 msgid ""
14144 "The call returns a structure with four elements.  The first three (C<major>, "
14145 "C<minor> and C<release>) are numbers and correspond to the usual version "
14146 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14147 "but may be used for distro-specific information."
14148 msgstr ""
14149
14150 # type: textblock
14151 #: ../src/guestfs-actions.pod:6234 ../fish/guestfish-actions.pod:4151
14152 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14153 msgstr ""
14154
14155 # type: textblock
14156 #: ../src/guestfs-actions.pod:6237 ../fish/guestfish-actions.pod:4154
14157 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14158 msgstr ""
14159
14160 # type: textblock
14161 #: ../src/guestfs-actions.pod:6239
14162 msgid ""
14163 "I<Note:> Don't use this call to test for availability of features.  In "
14164 "enterprise distributions we backport features from later versions into "
14165 "earlier versions, making this an unreliable way to test for features.  Use "
14166 "C<guestfs_available> instead."
14167 msgstr ""
14168
14169 # type: textblock
14170 #: ../src/guestfs-actions.pod:6245
14171 msgid ""
14172 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14173 "error.  I<The caller must call C<guestfs_free_version> after use>."
14174 msgstr ""
14175
14176 # type: textblock
14177 #: ../src/guestfs-actions.pod:6249
14178 msgid "(Added in 1.0.58)"
14179 msgstr ""
14180
14181 # type: =head2
14182 #: ../src/guestfs-actions.pod:6251
14183 msgid "guestfs_vfs_label"
14184 msgstr ""
14185
14186 # type: verbatim
14187 #: ../src/guestfs-actions.pod:6253
14188 #, no-wrap
14189 msgid ""
14190 " char *\n"
14191 " guestfs_vfs_label (guestfs_h *g,\n"
14192 "                    const char *device);\n"
14193 "\n"
14194 msgstr ""
14195
14196 # type: textblock
14197 #: ../src/guestfs-actions.pod:6257 ../fish/guestfish-actions.pod:4166
14198 msgid "This returns the filesystem label of the filesystem on C<device>."
14199 msgstr ""
14200
14201 # type: textblock
14202 #: ../src/guestfs-actions.pod:6260 ../fish/guestfish-actions.pod:4169
14203 msgid "If the filesystem is unlabeled, this returns the empty string."
14204 msgstr ""
14205
14206 # type: textblock
14207 #: ../src/guestfs-actions.pod:6262
14208 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14209 msgstr ""
14210
14211 # type: textblock
14212 #: ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6304
14213 msgid "(Added in 1.3.18)"
14214 msgstr ""
14215
14216 # type: =head2
14217 #: ../src/guestfs-actions.pod:6269
14218 msgid "guestfs_vfs_type"
14219 msgstr ""
14220
14221 # type: verbatim
14222 #: ../src/guestfs-actions.pod:6271
14223 #, no-wrap
14224 msgid ""
14225 " char *\n"
14226 " guestfs_vfs_type (guestfs_h *g,\n"
14227 "                   const char *device);\n"
14228 "\n"
14229 msgstr ""
14230
14231 # type: textblock
14232 #: ../src/guestfs-actions.pod:6275 ../fish/guestfish-actions.pod:4177
14233 msgid ""
14234 "This command gets the filesystem type corresponding to the filesystem on "
14235 "C<device>."
14236 msgstr ""
14237
14238 # type: textblock
14239 #: ../src/guestfs-actions.pod:6278 ../fish/guestfish-actions.pod:4180
14240 msgid ""
14241 "For most filesystems, the result is the name of the Linux VFS module which "
14242 "would be used to mount this filesystem if you mounted it without specifying "
14243 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14244 msgstr ""
14245
14246 # type: =head2
14247 #: ../src/guestfs-actions.pod:6288
14248 msgid "guestfs_vfs_uuid"
14249 msgstr ""
14250
14251 # type: verbatim
14252 #: ../src/guestfs-actions.pod:6290
14253 #, no-wrap
14254 msgid ""
14255 " char *\n"
14256 " guestfs_vfs_uuid (guestfs_h *g,\n"
14257 "                   const char *device);\n"
14258 "\n"
14259 msgstr ""
14260
14261 # type: textblock
14262 #: ../src/guestfs-actions.pod:6294 ../fish/guestfish-actions.pod:4189
14263 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14264 msgstr ""
14265
14266 # type: textblock
14267 #: ../src/guestfs-actions.pod:6297 ../fish/guestfish-actions.pod:4192
14268 msgid "If the filesystem does not have a UUID, this returns the empty string."
14269 msgstr ""
14270
14271 # type: textblock
14272 #: ../src/guestfs-actions.pod:6299
14273 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14274 msgstr ""
14275
14276 # type: =head2
14277 #: ../src/guestfs-actions.pod:6306
14278 msgid "guestfs_vg_activate"
14279 msgstr ""
14280
14281 # type: verbatim
14282 #: ../src/guestfs-actions.pod:6308
14283 #, no-wrap
14284 msgid ""
14285 " int\n"
14286 " guestfs_vg_activate (guestfs_h *g,\n"
14287 "                      int activate,\n"
14288 "                      char *const *volgroups);\n"
14289 "\n"
14290 msgstr ""
14291
14292 # type: textblock
14293 #: ../src/guestfs-actions.pod:6313 ../fish/guestfish-actions.pod:4200
14294 msgid ""
14295 "This command activates or (if C<activate> is false) deactivates all logical "
14296 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
14297 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
14298 "deactivated, then those devices disappear."
14299 msgstr ""
14300
14301 # type: textblock
14302 #: ../src/guestfs-actions.pod:6319 ../fish/guestfish-actions.pod:4206
14303 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14304 msgstr ""
14305
14306 # type: textblock
14307 #: ../src/guestfs-actions.pod:6321 ../fish/guestfish-actions.pod:4208
14308 msgid ""
14309 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14310 "activated or deactivated."
14311 msgstr ""
14312
14313 # type: =head2
14314 #: ../src/guestfs-actions.pod:6328
14315 msgid "guestfs_vg_activate_all"
14316 msgstr ""
14317
14318 # type: verbatim
14319 #: ../src/guestfs-actions.pod:6330
14320 #, no-wrap
14321 msgid ""
14322 " int\n"
14323 " guestfs_vg_activate_all (guestfs_h *g,\n"
14324 "                          int activate);\n"
14325 "\n"
14326 msgstr ""
14327
14328 # type: textblock
14329 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4215
14330 msgid ""
14331 "This command activates or (if C<activate> is false) deactivates all logical "
14332 "volumes in all volume groups.  If activated, then they are made known to the "
14333 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
14334 "those devices disappear."
14335 msgstr ""
14336
14337 # type: textblock
14338 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4221
14339 msgid "This command is the same as running C<vgchange -a y|n>"
14340 msgstr ""
14341
14342 # type: =head2
14343 #: ../src/guestfs-actions.pod:6346
14344 msgid "guestfs_vgcreate"
14345 msgstr ""
14346
14347 # type: verbatim
14348 #: ../src/guestfs-actions.pod:6348
14349 #, no-wrap
14350 msgid ""
14351 " int\n"
14352 " guestfs_vgcreate (guestfs_h *g,\n"
14353 "                   const char *volgroup,\n"
14354 "                   char *const *physvols);\n"
14355 "\n"
14356 msgstr ""
14357
14358 # type: textblock
14359 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4227
14360 msgid ""
14361 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14362 "of physical volumes C<physvols>."
14363 msgstr ""
14364
14365 # type: =head2
14366 #: ../src/guestfs-actions.pod:6360
14367 msgid "guestfs_vglvuuids"
14368 msgstr ""
14369
14370 # type: verbatim
14371 #: ../src/guestfs-actions.pod:6362
14372 #, no-wrap
14373 msgid ""
14374 " char **\n"
14375 " guestfs_vglvuuids (guestfs_h *g,\n"
14376 "                    const char *vgname);\n"
14377 "\n"
14378 msgstr ""
14379
14380 # type: textblock
14381 #: ../src/guestfs-actions.pod:6366 ../fish/guestfish-actions.pod:4234
14382 msgid ""
14383 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14384 "volumes created in this volume group."
14385 msgstr ""
14386
14387 # type: textblock
14388 #: ../src/guestfs-actions.pod:6369
14389 msgid ""
14390 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
14391 "associate logical volumes and volume groups."
14392 msgstr ""
14393
14394 # type: textblock
14395 #: ../src/guestfs-actions.pod:6372
14396 msgid "See also C<guestfs_vgpvuuids>."
14397 msgstr ""
14398
14399 # type: =head2
14400 #: ../src/guestfs-actions.pod:6380
14401 msgid "guestfs_vgpvuuids"
14402 msgstr ""
14403
14404 # type: verbatim
14405 #: ../src/guestfs-actions.pod:6382
14406 #, no-wrap
14407 msgid ""
14408 " char **\n"
14409 " guestfs_vgpvuuids (guestfs_h *g,\n"
14410 "                    const char *vgname);\n"
14411 "\n"
14412 msgstr ""
14413
14414 # type: textblock
14415 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4246
14416 msgid ""
14417 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14418 "volumes that this volume group resides on."
14419 msgstr ""
14420
14421 # type: textblock
14422 #: ../src/guestfs-actions.pod:6389
14423 msgid ""
14424 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
14425 "associate physical volumes and volume groups."
14426 msgstr ""
14427
14428 # type: textblock
14429 #: ../src/guestfs-actions.pod:6392
14430 msgid "See also C<guestfs_vglvuuids>."
14431 msgstr ""
14432
14433 # type: =head2
14434 #: ../src/guestfs-actions.pod:6400
14435 msgid "guestfs_vgremove"
14436 msgstr ""
14437
14438 # type: verbatim
14439 #: ../src/guestfs-actions.pod:6402
14440 #, no-wrap
14441 msgid ""
14442 " int\n"
14443 " guestfs_vgremove (guestfs_h *g,\n"
14444 "                   const char *vgname);\n"
14445 "\n"
14446 msgstr ""
14447
14448 # type: textblock
14449 #: ../src/guestfs-actions.pod:6406 ../fish/guestfish-actions.pod:4258
14450 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14451 msgstr ""
14452
14453 # type: textblock
14454 #: ../src/guestfs-actions.pod:6408 ../fish/guestfish-actions.pod:4260
14455 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14456 msgstr ""
14457
14458 # type: =head2
14459 #: ../src/guestfs-actions.pod:6415
14460 msgid "guestfs_vgrename"
14461 msgstr ""
14462
14463 # type: verbatim
14464 #: ../src/guestfs-actions.pod:6417
14465 #, no-wrap
14466 msgid ""
14467 " int\n"
14468 " guestfs_vgrename (guestfs_h *g,\n"
14469 "                   const char *volgroup,\n"
14470 "                   const char *newvolgroup);\n"
14471 "\n"
14472 msgstr ""
14473
14474 # type: textblock
14475 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4267
14476 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14477 msgstr ""
14478
14479 # type: =head2
14480 #: ../src/guestfs-actions.pod:6428
14481 msgid "guestfs_vgs"
14482 msgstr ""
14483
14484 # type: verbatim
14485 #: ../src/guestfs-actions.pod:6430
14486 #, no-wrap
14487 msgid ""
14488 " char **\n"
14489 " guestfs_vgs (guestfs_h *g);\n"
14490 "\n"
14491 msgstr ""
14492
14493 # type: textblock
14494 #: ../src/guestfs-actions.pod:6433 ../fish/guestfish-actions.pod:4273
14495 msgid ""
14496 "List all the volumes groups detected.  This is the equivalent of the "
14497 "L<vgs(8)> command."
14498 msgstr ""
14499
14500 # type: textblock
14501 #: ../src/guestfs-actions.pod:6436 ../fish/guestfish-actions.pod:4276
14502 msgid ""
14503 "This returns a list of just the volume group names that were detected "
14504 "(eg. C<VolGroup00>)."
14505 msgstr ""
14506
14507 # type: textblock
14508 #: ../src/guestfs-actions.pod:6439
14509 msgid "See also C<guestfs_vgs_full>."
14510 msgstr ""
14511
14512 # type: =head2
14513 #: ../src/guestfs-actions.pod:6447
14514 msgid "guestfs_vgs_full"
14515 msgstr ""
14516
14517 # type: verbatim
14518 #: ../src/guestfs-actions.pod:6449
14519 #, no-wrap
14520 msgid ""
14521 " struct guestfs_lvm_vg_list *\n"
14522 " guestfs_vgs_full (guestfs_h *g);\n"
14523 "\n"
14524 msgstr ""
14525
14526 # type: textblock
14527 #: ../src/guestfs-actions.pod:6452 ../fish/guestfish-actions.pod:4285
14528 msgid ""
14529 "List all the volumes groups detected.  This is the equivalent of the "
14530 "L<vgs(8)> command.  The \"full\" version includes all fields."
14531 msgstr ""
14532
14533 # type: textblock
14534 #: ../src/guestfs-actions.pod:6455
14535 msgid ""
14536 "This function returns a C<struct guestfs_lvm_vg_list *> (see "
14537 "E<lt>guestfs-structs.hE<gt>), or NULL if there was an error.  I<The caller "
14538 "must call C<guestfs_free_lvm_vg_list> after use>."
14539 msgstr ""
14540
14541 # type: =head2
14542 #: ../src/guestfs-actions.pod:6462
14543 msgid "guestfs_vgscan"
14544 msgstr ""
14545
14546 # type: verbatim
14547 #: ../src/guestfs-actions.pod:6464
14548 #, no-wrap
14549 msgid ""
14550 " int\n"
14551 " guestfs_vgscan (guestfs_h *g);\n"
14552 "\n"
14553 msgstr ""
14554
14555 # type: textblock
14556 #: ../src/guestfs-actions.pod:6467 ../fish/guestfish-actions.pod:4292
14557 msgid ""
14558 "This rescans all block devices and rebuilds the list of LVM physical "
14559 "volumes, volume groups and logical volumes."
14560 msgstr ""
14561
14562 # type: =head2
14563 #: ../src/guestfs-actions.pod:6474
14564 msgid "guestfs_vguuid"
14565 msgstr ""
14566
14567 # type: verbatim
14568 #: ../src/guestfs-actions.pod:6476
14569 #, no-wrap
14570 msgid ""
14571 " char *\n"
14572 " guestfs_vguuid (guestfs_h *g,\n"
14573 "                 const char *vgname);\n"
14574 "\n"
14575 msgstr ""
14576
14577 # type: textblock
14578 #: ../src/guestfs-actions.pod:6480 ../fish/guestfish-actions.pod:4299
14579 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14580 msgstr ""
14581
14582 # type: =head2
14583 #: ../src/guestfs-actions.pod:6487
14584 msgid "guestfs_wait_ready"
14585 msgstr ""
14586
14587 # type: verbatim
14588 #: ../src/guestfs-actions.pod:6489
14589 #, no-wrap
14590 msgid ""
14591 " int\n"
14592 " guestfs_wait_ready (guestfs_h *g);\n"
14593 "\n"
14594 msgstr ""
14595
14596 # type: textblock
14597 #: ../src/guestfs-actions.pod:6492
14598 msgid "This function is a no op."
14599 msgstr ""
14600
14601 # type: textblock
14602 #: ../src/guestfs-actions.pod:6494
14603 msgid ""
14604 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
14605 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
14606 "is no longer necessary because C<guestfs_launch> now does the waiting."
14607 msgstr ""
14608
14609 # type: textblock
14610 #: ../src/guestfs-actions.pod:6499
14611 msgid ""
14612 "If you see any calls to this function in code then you can just remove them, "
14613 "unless you want to retain compatibility with older versions of the API."
14614 msgstr ""
14615
14616 # type: =head2
14617 #: ../src/guestfs-actions.pod:6507
14618 msgid "guestfs_wc_c"
14619 msgstr ""
14620
14621 # type: verbatim
14622 #: ../src/guestfs-actions.pod:6509
14623 #, no-wrap
14624 msgid ""
14625 " int\n"
14626 " guestfs_wc_c (guestfs_h *g,\n"
14627 "               const char *path);\n"
14628 "\n"
14629 msgstr ""
14630
14631 # type: textblock
14632 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4305
14633 msgid ""
14634 "This command counts the characters in a file, using the C<wc -c> external "
14635 "command."
14636 msgstr ""
14637
14638 # type: =head2
14639 #: ../src/guestfs-actions.pod:6520
14640 msgid "guestfs_wc_l"
14641 msgstr ""
14642
14643 # type: verbatim
14644 #: ../src/guestfs-actions.pod:6522
14645 #, no-wrap
14646 msgid ""
14647 " int\n"
14648 " guestfs_wc_l (guestfs_h *g,\n"
14649 "               const char *path);\n"
14650 "\n"
14651 msgstr ""
14652
14653 # type: textblock
14654 #: ../src/guestfs-actions.pod:6526 ../fish/guestfish-actions.pod:4312
14655 msgid ""
14656 "This command counts the lines in a file, using the C<wc -l> external "
14657 "command."
14658 msgstr ""
14659
14660 # type: =head2
14661 #: ../src/guestfs-actions.pod:6533
14662 msgid "guestfs_wc_w"
14663 msgstr ""
14664
14665 # type: verbatim
14666 #: ../src/guestfs-actions.pod:6535
14667 #, no-wrap
14668 msgid ""
14669 " int\n"
14670 " guestfs_wc_w (guestfs_h *g,\n"
14671 "               const char *path);\n"
14672 "\n"
14673 msgstr ""
14674
14675 # type: textblock
14676 #: ../src/guestfs-actions.pod:6539 ../fish/guestfish-actions.pod:4319
14677 msgid ""
14678 "This command counts the words in a file, using the C<wc -w> external "
14679 "command."
14680 msgstr ""
14681
14682 # type: =head2
14683 #: ../src/guestfs-actions.pod:6546
14684 msgid "guestfs_write"
14685 msgstr ""
14686
14687 # type: verbatim
14688 #: ../src/guestfs-actions.pod:6548
14689 #, no-wrap
14690 msgid ""
14691 " int\n"
14692 " guestfs_write (guestfs_h *g,\n"
14693 "                const char *path,\n"
14694 "                const char *content,\n"
14695 "                size_t content_size);\n"
14696 "\n"
14697 msgstr ""
14698
14699 # type: textblock
14700 #: ../src/guestfs-actions.pod:6554 ../fish/guestfish-actions.pod:4326
14701 msgid ""
14702 "This call creates a file called C<path>.  The content of the file is the "
14703 "string C<content> (which can contain any 8 bit data)."
14704 msgstr ""
14705
14706 # type: =head2
14707 #: ../src/guestfs-actions.pod:6564
14708 msgid "guestfs_write_file"
14709 msgstr ""
14710
14711 # type: verbatim
14712 #: ../src/guestfs-actions.pod:6566
14713 #, no-wrap
14714 msgid ""
14715 " int\n"
14716 " guestfs_write_file (guestfs_h *g,\n"
14717 "                     const char *path,\n"
14718 "                     const char *content,\n"
14719 "                     int size);\n"
14720 "\n"
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4336
14725 msgid ""
14726 "This call creates a file called C<path>.  The contents of the file is the "
14727 "string C<content> (which can contain any 8 bit data), with length C<size>."
14728 msgstr ""
14729
14730 # type: textblock
14731 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4340
14732 msgid ""
14733 "As a special case, if C<size> is C<0> then the length is calculated using "
14734 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14735 msgstr ""
14736
14737 # type: textblock
14738 #: ../src/guestfs-actions.pod:6580 ../fish/guestfish-actions.pod:4344
14739 msgid ""
14740 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14741 "I<not> work, even if the length is specified."
14742 msgstr ""
14743
14744 # type: textblock
14745 #: ../src/guestfs-actions.pod:6588 ../fish/guestfish-actions.pod:4350
14746 msgid "This function is deprecated.  In new code, use the C<write> call instead."
14747 msgstr ""
14748
14749 # type: =head2
14750 #: ../src/guestfs-actions.pod:6597
14751 msgid "guestfs_zegrep"
14752 msgstr ""
14753
14754 # type: verbatim
14755 #: ../src/guestfs-actions.pod:6599
14756 #, no-wrap
14757 msgid ""
14758 " char **\n"
14759 " guestfs_zegrep (guestfs_h *g,\n"
14760 "                 const char *regex,\n"
14761 "                 const char *path);\n"
14762 "\n"
14763 msgstr ""
14764
14765 # type: textblock
14766 #: ../src/guestfs-actions.pod:6604 ../fish/guestfish-actions.pod:4361
14767 msgid "This calls the external C<zegrep> program and returns the matching lines."
14768 msgstr ""
14769
14770 # type: =head2
14771 #: ../src/guestfs-actions.pod:6616
14772 msgid "guestfs_zegrepi"
14773 msgstr ""
14774
14775 # type: verbatim
14776 #: ../src/guestfs-actions.pod:6618
14777 #, no-wrap
14778 msgid ""
14779 " char **\n"
14780 " guestfs_zegrepi (guestfs_h *g,\n"
14781 "                  const char *regex,\n"
14782 "                  const char *path);\n"
14783 "\n"
14784 msgstr ""
14785
14786 # type: textblock
14787 #: ../src/guestfs-actions.pod:6623 ../fish/guestfish-actions.pod:4371
14788 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14789 msgstr ""
14790
14791 # type: =head2
14792 #: ../src/guestfs-actions.pod:6635
14793 msgid "guestfs_zero"
14794 msgstr ""
14795
14796 # type: verbatim
14797 #: ../src/guestfs-actions.pod:6637
14798 #, no-wrap
14799 msgid ""
14800 " int\n"
14801 " guestfs_zero (guestfs_h *g,\n"
14802 "               const char *device);\n"
14803 "\n"
14804 msgstr ""
14805
14806 # type: textblock
14807 #: ../src/guestfs-actions.pod:6641 ../fish/guestfish-actions.pod:4381
14808 msgid "This command writes zeroes over the first few blocks of C<device>."
14809 msgstr ""
14810
14811 # type: textblock
14812 #: ../src/guestfs-actions.pod:6643 ../fish/guestfish-actions.pod:4383
14813 msgid ""
14814 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14815 "securely wipe the device).  It should be sufficient to remove any partition "
14816 "tables, filesystem superblocks and so on."
14817 msgstr ""
14818
14819 # type: textblock
14820 #: ../src/guestfs-actions.pod:6647
14821 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
14822 msgstr ""
14823
14824 # type: =head2
14825 #: ../src/guestfs-actions.pod:6658
14826 msgid "guestfs_zero_device"
14827 msgstr ""
14828
14829 # type: verbatim
14830 #: ../src/guestfs-actions.pod:6660
14831 #, no-wrap
14832 msgid ""
14833 " int\n"
14834 " guestfs_zero_device (guestfs_h *g,\n"
14835 "                      const char *device);\n"
14836 "\n"
14837 msgstr ""
14838
14839 # type: textblock
14840 #: ../src/guestfs-actions.pod:6664
14841 msgid ""
14842 "This command writes zeroes over the entire C<device>.  Compare with "
14843 "C<guestfs_zero> which just zeroes the first few blocks of a device."
14844 msgstr ""
14845
14846 # type: textblock
14847 #: ../src/guestfs-actions.pod:6678
14848 msgid "(Added in 1.3.1)"
14849 msgstr ""
14850
14851 # type: =head2
14852 #: ../src/guestfs-actions.pod:6680
14853 msgid "guestfs_zerofree"
14854 msgstr ""
14855
14856 # type: verbatim
14857 #: ../src/guestfs-actions.pod:6682
14858 #, no-wrap
14859 msgid ""
14860 " int\n"
14861 " guestfs_zerofree (guestfs_h *g,\n"
14862 "                   const char *device);\n"
14863 "\n"
14864 msgstr ""
14865
14866 # type: textblock
14867 #: ../src/guestfs-actions.pod:6686 ../fish/guestfish-actions.pod:4404
14868 msgid ""
14869 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14870 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14871 "possible to compress the filesystem more effectively."
14872 msgstr ""
14873
14874 # type: textblock
14875 #: ../src/guestfs-actions.pod:6691 ../fish/guestfish-actions.pod:4409
14876 msgid "You should B<not> run this program if the filesystem is mounted."
14877 msgstr ""
14878
14879 # type: textblock
14880 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4412
14881 msgid ""
14882 "It is possible that using this program can damage the filesystem or data on "
14883 "the filesystem."
14884 msgstr ""
14885
14886 # type: =head2
14887 #: ../src/guestfs-actions.pod:6701
14888 msgid "guestfs_zfgrep"
14889 msgstr ""
14890
14891 # type: verbatim
14892 #: ../src/guestfs-actions.pod:6703
14893 #, no-wrap
14894 msgid ""
14895 " char **\n"
14896 " guestfs_zfgrep (guestfs_h *g,\n"
14897 "                 const char *pattern,\n"
14898 "                 const char *path);\n"
14899 "\n"
14900 msgstr ""
14901
14902 # type: textblock
14903 #: ../src/guestfs-actions.pod:6708 ../fish/guestfish-actions.pod:4419
14904 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14905 msgstr ""
14906
14907 # type: =head2
14908 #: ../src/guestfs-actions.pod:6720
14909 msgid "guestfs_zfgrepi"
14910 msgstr ""
14911
14912 # type: verbatim
14913 #: ../src/guestfs-actions.pod:6722
14914 #, no-wrap
14915 msgid ""
14916 " char **\n"
14917 " guestfs_zfgrepi (guestfs_h *g,\n"
14918 "                  const char *pattern,\n"
14919 "                  const char *path);\n"
14920 "\n"
14921 msgstr ""
14922
14923 # type: textblock
14924 #: ../src/guestfs-actions.pod:6727 ../fish/guestfish-actions.pod:4429
14925 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14926 msgstr ""
14927
14928 # type: =head2
14929 #: ../src/guestfs-actions.pod:6739
14930 msgid "guestfs_zfile"
14931 msgstr ""
14932
14933 # type: verbatim
14934 #: ../src/guestfs-actions.pod:6741
14935 #, no-wrap
14936 msgid ""
14937 " char *\n"
14938 " guestfs_zfile (guestfs_h *g,\n"
14939 "                const char *meth,\n"
14940 "                const char *path);\n"
14941 "\n"
14942 msgstr ""
14943
14944 # type: textblock
14945 #: ../src/guestfs-actions.pod:6746 ../fish/guestfish-actions.pod:4439
14946 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14947 msgstr ""
14948
14949 # type: textblock
14950 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4442
14951 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14952 msgstr ""
14953
14954 # type: textblock
14955 #: ../src/guestfs-actions.pod:6751
14956 msgid ""
14957 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
14958 "files."
14959 msgstr ""
14960
14961 # type: textblock
14962 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4447
14963 msgid "This function is deprecated.  In new code, use the C<file> call instead."
14964 msgstr ""
14965
14966 # type: =head2
14967 #: ../src/guestfs-actions.pod:6766
14968 msgid "guestfs_zgrep"
14969 msgstr ""
14970
14971 # type: verbatim
14972 #: ../src/guestfs-actions.pod:6768
14973 #, no-wrap
14974 msgid ""
14975 " char **\n"
14976 " guestfs_zgrep (guestfs_h *g,\n"
14977 "                const char *regex,\n"
14978 "                const char *path);\n"
14979 "\n"
14980 msgstr ""
14981
14982 # type: textblock
14983 #: ../src/guestfs-actions.pod:6773 ../fish/guestfish-actions.pod:4458
14984 msgid "This calls the external C<zgrep> program and returns the matching lines."
14985 msgstr ""
14986
14987 # type: =head2
14988 #: ../src/guestfs-actions.pod:6785
14989 msgid "guestfs_zgrepi"
14990 msgstr ""
14991
14992 # type: verbatim
14993 #: ../src/guestfs-actions.pod:6787
14994 #, no-wrap
14995 msgid ""
14996 " char **\n"
14997 " guestfs_zgrepi (guestfs_h *g,\n"
14998 "                 const char *regex,\n"
14999 "                 const char *path);\n"
15000 "\n"
15001 msgstr ""
15002
15003 # type: textblock
15004 #: ../src/guestfs-actions.pod:6792 ../fish/guestfish-actions.pod:4468
15005 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15006 msgstr ""
15007
15008 # type: =item
15009 #: ../src/guestfs-availability.pod:3
15010 msgid "B<augeas>"
15011 msgstr ""
15012
15013 # type: textblock
15014 #: ../src/guestfs-availability.pod:5
15015 msgid ""
15016 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15017 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15018 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15019 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15020 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15021 msgstr ""
15022
15023 # type: =item
15024 #: ../src/guestfs-availability.pod:21
15025 msgid "B<inotify>"
15026 msgstr ""
15027
15028 # type: textblock
15029 #: ../src/guestfs-availability.pod:23
15030 msgid ""
15031 "The following functions: L</guestfs_inotify_add_watch> "
15032 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15033 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15034 msgstr ""
15035
15036 # type: =item
15037 #: ../src/guestfs-availability.pod:31
15038 msgid "B<linuxfsuuid>"
15039 msgstr ""
15040
15041 # type: textblock
15042 #: ../src/guestfs-availability.pod:33
15043 msgid ""
15044 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15045 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15046 msgstr ""
15047
15048 # type: =item
15049 #: ../src/guestfs-availability.pod:40
15050 msgid "B<linuxmodules>"
15051 msgstr ""
15052
15053 # type: textblock
15054 #: ../src/guestfs-availability.pod:42
15055 msgid "The following functions: L</guestfs_modprobe>"
15056 msgstr ""
15057
15058 # type: =item
15059 #: ../src/guestfs-availability.pod:45
15060 msgid "B<linuxxattrs>"
15061 msgstr ""
15062
15063 # type: textblock
15064 #: ../src/guestfs-availability.pod:47
15065 msgid ""
15066 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15067 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15068 "L</guestfs_removexattr> L</guestfs_setxattr>"
15069 msgstr ""
15070
15071 # type: =item
15072 #: ../src/guestfs-availability.pod:56
15073 msgid "B<luks>"
15074 msgstr ""
15075
15076 # type: textblock
15077 #: ../src/guestfs-availability.pod:58
15078 msgid ""
15079 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15080 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15081 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15082 msgstr ""
15083
15084 # type: =item
15085 #: ../src/guestfs-availability.pod:67
15086 msgid "B<lvm2>"
15087 msgstr ""
15088
15089 # type: textblock
15090 #: ../src/guestfs-availability.pod:69
15091 msgid ""
15092 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15093 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15094 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15095 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15096 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15097 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15098 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15099 "L</guestfs_vgs_full>"
15100 msgstr ""
15101
15102 # type: =item
15103 #: ../src/guestfs-availability.pod:92
15104 msgid "B<mknod>"
15105 msgstr ""
15106
15107 # type: textblock
15108 #: ../src/guestfs-availability.pod:94
15109 msgid ""
15110 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15111 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15112 msgstr ""
15113
15114 # type: =item
15115 #: ../src/guestfs-availability.pod:100
15116 msgid "B<ntfs3g>"
15117 msgstr ""
15118
15119 # type: textblock
15120 #: ../src/guestfs-availability.pod:102
15121 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15122 msgstr ""
15123
15124 # type: =item
15125 #: ../src/guestfs-availability.pod:105
15126 msgid "B<ntfsprogs>"
15127 msgstr ""
15128
15129 # type: textblock
15130 #: ../src/guestfs-availability.pod:107
15131 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15132 msgstr ""
15133
15134 # type: =item
15135 #: ../src/guestfs-availability.pod:111
15136 msgid "B<realpath>"
15137 msgstr ""
15138
15139 # type: textblock
15140 #: ../src/guestfs-availability.pod:113
15141 msgid "The following functions: L</guestfs_realpath>"
15142 msgstr ""
15143
15144 # type: =item
15145 #: ../src/guestfs-availability.pod:116
15146 msgid "B<scrub>"
15147 msgstr ""
15148
15149 # type: textblock
15150 #: ../src/guestfs-availability.pod:118
15151 msgid ""
15152 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15153 "L</guestfs_scrub_freespace>"
15154 msgstr ""
15155
15156 # type: =item
15157 #: ../src/guestfs-availability.pod:123
15158 msgid "B<selinux>"
15159 msgstr ""
15160
15161 # type: textblock
15162 #: ../src/guestfs-availability.pod:125
15163 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15164 msgstr ""
15165
15166 # type: =item
15167 #: ../src/guestfs-availability.pod:129
15168 msgid "B<xz>"
15169 msgstr ""
15170
15171 # type: textblock
15172 #: ../src/guestfs-availability.pod:131
15173 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15174 msgstr ""
15175
15176 # type: =item
15177 #: ../src/guestfs-availability.pod:135
15178 msgid "B<zerofree>"
15179 msgstr ""
15180
15181 # type: textblock
15182 #: ../src/guestfs-availability.pod:137
15183 msgid "The following functions: L</guestfs_zerofree>"
15184 msgstr ""
15185
15186 # type: =head2
15187 #: ../src/guestfs-structs.pod:1
15188 msgid "guestfs_int_bool"
15189 msgstr ""
15190
15191 # type: verbatim
15192 #: ../src/guestfs-structs.pod:3
15193 #, no-wrap
15194 msgid ""
15195 " struct guestfs_int_bool {\n"
15196 "   int32_t i;\n"
15197 "   int32_t b;\n"
15198 " };\n"
15199 " \n"
15200 msgstr ""
15201
15202 # type: verbatim
15203 #: ../src/guestfs-structs.pod:8
15204 #, no-wrap
15205 msgid ""
15206 " struct guestfs_int_bool_list {\n"
15207 "   uint32_t len; /* Number of elements in list. */\n"
15208 "   struct guestfs_int_bool *val; /* Elements. */\n"
15209 " };\n"
15210 " \n"
15211 msgstr ""
15212
15213 # type: verbatim
15214 #: ../src/guestfs-structs.pod:13
15215 #, no-wrap
15216 msgid ""
15217 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15218 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15219 "\n"
15220 msgstr ""
15221
15222 # type: =head2
15223 #: ../src/guestfs-structs.pod:16
15224 msgid "guestfs_lvm_pv"
15225 msgstr ""
15226
15227 # type: verbatim
15228 #: ../src/guestfs-structs.pod:18
15229 #, no-wrap
15230 msgid ""
15231 " struct guestfs_lvm_pv {\n"
15232 "   char *pv_name;\n"
15233 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15234 "*/\n"
15235 "   char pv_uuid[32];\n"
15236 "   char *pv_fmt;\n"
15237 "   uint64_t pv_size;\n"
15238 "   uint64_t dev_size;\n"
15239 "   uint64_t pv_free;\n"
15240 "   uint64_t pv_used;\n"
15241 "   char *pv_attr;\n"
15242 "   int64_t pv_pe_count;\n"
15243 "   int64_t pv_pe_alloc_count;\n"
15244 "   char *pv_tags;\n"
15245 "   uint64_t pe_start;\n"
15246 "   int64_t pv_mda_count;\n"
15247 "   uint64_t pv_mda_free;\n"
15248 " };\n"
15249 " \n"
15250 msgstr ""
15251
15252 # type: verbatim
15253 #: ../src/guestfs-structs.pod:36
15254 #, no-wrap
15255 msgid ""
15256 " struct guestfs_lvm_pv_list {\n"
15257 "   uint32_t len; /* Number of elements in list. */\n"
15258 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15259 " };\n"
15260 " \n"
15261 msgstr ""
15262
15263 # type: verbatim
15264 #: ../src/guestfs-structs.pod:41
15265 #, no-wrap
15266 msgid ""
15267 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15268 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15269 "\n"
15270 msgstr ""
15271
15272 # type: =head2
15273 #: ../src/guestfs-structs.pod:44
15274 msgid "guestfs_lvm_vg"
15275 msgstr ""
15276
15277 # type: verbatim
15278 #: ../src/guestfs-structs.pod:46
15279 #, no-wrap
15280 msgid ""
15281 " struct guestfs_lvm_vg {\n"
15282 "   char *vg_name;\n"
15283 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15284 "*/\n"
15285 "   char vg_uuid[32];\n"
15286 "   char *vg_fmt;\n"
15287 "   char *vg_attr;\n"
15288 "   uint64_t vg_size;\n"
15289 "   uint64_t vg_free;\n"
15290 "   char *vg_sysid;\n"
15291 "   uint64_t vg_extent_size;\n"
15292 "   int64_t vg_extent_count;\n"
15293 "   int64_t vg_free_count;\n"
15294 "   int64_t max_lv;\n"
15295 "   int64_t max_pv;\n"
15296 "   int64_t pv_count;\n"
15297 "   int64_t lv_count;\n"
15298 "   int64_t snap_count;\n"
15299 "   int64_t vg_seqno;\n"
15300 "   char *vg_tags;\n"
15301 "   int64_t vg_mda_count;\n"
15302 "   uint64_t vg_mda_free;\n"
15303 " };\n"
15304 " \n"
15305 msgstr ""
15306
15307 # type: verbatim
15308 #: ../src/guestfs-structs.pod:69
15309 #, no-wrap
15310 msgid ""
15311 " struct guestfs_lvm_vg_list {\n"
15312 "   uint32_t len; /* Number of elements in list. */\n"
15313 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
15314 " };\n"
15315 " \n"
15316 msgstr ""
15317
15318 # type: verbatim
15319 #: ../src/guestfs-structs.pod:74
15320 #, no-wrap
15321 msgid ""
15322 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
15323 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
15324 "\n"
15325 msgstr ""
15326
15327 # type: =head2
15328 #: ../src/guestfs-structs.pod:77
15329 msgid "guestfs_lvm_lv"
15330 msgstr ""
15331
15332 # type: verbatim
15333 #: ../src/guestfs-structs.pod:79
15334 #, no-wrap
15335 msgid ""
15336 " struct guestfs_lvm_lv {\n"
15337 "   char *lv_name;\n"
15338 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15339 "*/\n"
15340 "   char lv_uuid[32];\n"
15341 "   char *lv_attr;\n"
15342 "   int64_t lv_major;\n"
15343 "   int64_t lv_minor;\n"
15344 "   int64_t lv_kernel_major;\n"
15345 "   int64_t lv_kernel_minor;\n"
15346 "   uint64_t lv_size;\n"
15347 "   int64_t seg_count;\n"
15348 "   char *origin;\n"
15349 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15350 "   float snap_percent;\n"
15351 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
15352 "   float copy_percent;\n"
15353 "   char *move_pv;\n"
15354 "   char *lv_tags;\n"
15355 "   char *mirror_log;\n"
15356 "   char *modules;\n"
15357 " };\n"
15358 " \n"
15359 msgstr ""
15360
15361 # type: verbatim
15362 #: ../src/guestfs-structs.pod:101
15363 #, no-wrap
15364 msgid ""
15365 " struct guestfs_lvm_lv_list {\n"
15366 "   uint32_t len; /* Number of elements in list. */\n"
15367 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
15368 " };\n"
15369 " \n"
15370 msgstr ""
15371
15372 # type: verbatim
15373 #: ../src/guestfs-structs.pod:106
15374 #, no-wrap
15375 msgid ""
15376 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
15377 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
15378 "\n"
15379 msgstr ""
15380
15381 # type: verbatim
15382 #: ../src/guestfs-structs.pod:111
15383 #, no-wrap
15384 msgid ""
15385 " struct guestfs_stat {\n"
15386 "   int64_t dev;\n"
15387 "   int64_t ino;\n"
15388 "   int64_t mode;\n"
15389 "   int64_t nlink;\n"
15390 "   int64_t uid;\n"
15391 "   int64_t gid;\n"
15392 "   int64_t rdev;\n"
15393 "   int64_t size;\n"
15394 "   int64_t blksize;\n"
15395 "   int64_t blocks;\n"
15396 "   int64_t atime;\n"
15397 "   int64_t mtime;\n"
15398 "   int64_t ctime;\n"
15399 " };\n"
15400 " \n"
15401 msgstr ""
15402
15403 # type: verbatim
15404 #: ../src/guestfs-structs.pod:127
15405 #, no-wrap
15406 msgid ""
15407 " struct guestfs_stat_list {\n"
15408 "   uint32_t len; /* Number of elements in list. */\n"
15409 "   struct guestfs_stat *val; /* Elements. */\n"
15410 " };\n"
15411 " \n"
15412 msgstr ""
15413
15414 # type: verbatim
15415 #: ../src/guestfs-structs.pod:132
15416 #, no-wrap
15417 msgid ""
15418 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
15419 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
15420 "\n"
15421 msgstr ""
15422
15423 # type: verbatim
15424 #: ../src/guestfs-structs.pod:137
15425 #, no-wrap
15426 msgid ""
15427 " struct guestfs_statvfs {\n"
15428 "   int64_t bsize;\n"
15429 "   int64_t frsize;\n"
15430 "   int64_t blocks;\n"
15431 "   int64_t bfree;\n"
15432 "   int64_t bavail;\n"
15433 "   int64_t files;\n"
15434 "   int64_t ffree;\n"
15435 "   int64_t favail;\n"
15436 "   int64_t fsid;\n"
15437 "   int64_t flag;\n"
15438 "   int64_t namemax;\n"
15439 " };\n"
15440 " \n"
15441 msgstr ""
15442
15443 # type: verbatim
15444 #: ../src/guestfs-structs.pod:151
15445 #, no-wrap
15446 msgid ""
15447 " struct guestfs_statvfs_list {\n"
15448 "   uint32_t len; /* Number of elements in list. */\n"
15449 "   struct guestfs_statvfs *val; /* Elements. */\n"
15450 " };\n"
15451 " \n"
15452 msgstr ""
15453
15454 # type: verbatim
15455 #: ../src/guestfs-structs.pod:156
15456 #, no-wrap
15457 msgid ""
15458 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
15459 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
15460 "\n"
15461 msgstr ""
15462
15463 # type: =head2
15464 #: ../src/guestfs-structs.pod:159
15465 msgid "guestfs_dirent"
15466 msgstr ""
15467
15468 # type: verbatim
15469 #: ../src/guestfs-structs.pod:161
15470 #, no-wrap
15471 msgid ""
15472 " struct guestfs_dirent {\n"
15473 "   int64_t ino;\n"
15474 "   char ftyp;\n"
15475 "   char *name;\n"
15476 " };\n"
15477 " \n"
15478 msgstr ""
15479
15480 # type: verbatim
15481 #: ../src/guestfs-structs.pod:167
15482 #, no-wrap
15483 msgid ""
15484 " struct guestfs_dirent_list {\n"
15485 "   uint32_t len; /* Number of elements in list. */\n"
15486 "   struct guestfs_dirent *val; /* Elements. */\n"
15487 " };\n"
15488 " \n"
15489 msgstr ""
15490
15491 # type: verbatim
15492 #: ../src/guestfs-structs.pod:172
15493 #, no-wrap
15494 msgid ""
15495 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
15496 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
15497 "\n"
15498 msgstr ""
15499
15500 # type: verbatim
15501 #: ../src/guestfs-structs.pod:177
15502 #, no-wrap
15503 msgid ""
15504 " struct guestfs_version {\n"
15505 "   int64_t major;\n"
15506 "   int64_t minor;\n"
15507 "   int64_t release;\n"
15508 "   char *extra;\n"
15509 " };\n"
15510 " \n"
15511 msgstr ""
15512
15513 # type: verbatim
15514 #: ../src/guestfs-structs.pod:184
15515 #, no-wrap
15516 msgid ""
15517 " struct guestfs_version_list {\n"
15518 "   uint32_t len; /* Number of elements in list. */\n"
15519 "   struct guestfs_version *val; /* Elements. */\n"
15520 " };\n"
15521 " \n"
15522 msgstr ""
15523
15524 # type: verbatim
15525 #: ../src/guestfs-structs.pod:189
15526 #, no-wrap
15527 msgid ""
15528 " void guestfs_free_version (struct guestfs_free_version *);\n"
15529 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
15530 "\n"
15531 msgstr ""
15532
15533 # type: =head2
15534 #: ../src/guestfs-structs.pod:192
15535 msgid "guestfs_xattr"
15536 msgstr ""
15537
15538 # type: verbatim
15539 #: ../src/guestfs-structs.pod:194
15540 #, no-wrap
15541 msgid ""
15542 " struct guestfs_xattr {\n"
15543 "   char *attrname;\n"
15544 "   /* The next two fields describe a byte array. */\n"
15545 "   uint32_t attrval_len;\n"
15546 "   char *attrval;\n"
15547 " };\n"
15548 " \n"
15549 msgstr ""
15550
15551 # type: verbatim
15552 #: ../src/guestfs-structs.pod:201
15553 #, no-wrap
15554 msgid ""
15555 " struct guestfs_xattr_list {\n"
15556 "   uint32_t len; /* Number of elements in list. */\n"
15557 "   struct guestfs_xattr *val; /* Elements. */\n"
15558 " };\n"
15559 " \n"
15560 msgstr ""
15561
15562 # type: verbatim
15563 #: ../src/guestfs-structs.pod:206
15564 #, no-wrap
15565 msgid ""
15566 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
15567 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
15568 "\n"
15569 msgstr ""
15570
15571 # type: =head2
15572 #: ../src/guestfs-structs.pod:209
15573 msgid "guestfs_inotify_event"
15574 msgstr ""
15575
15576 # type: verbatim
15577 #: ../src/guestfs-structs.pod:211
15578 #, no-wrap
15579 msgid ""
15580 " struct guestfs_inotify_event {\n"
15581 "   int64_t in_wd;\n"
15582 "   uint32_t in_mask;\n"
15583 "   uint32_t in_cookie;\n"
15584 "   char *in_name;\n"
15585 " };\n"
15586 " \n"
15587 msgstr ""
15588
15589 # type: verbatim
15590 #: ../src/guestfs-structs.pod:218
15591 #, no-wrap
15592 msgid ""
15593 " struct guestfs_inotify_event_list {\n"
15594 "   uint32_t len; /* Number of elements in list. */\n"
15595 "   struct guestfs_inotify_event *val; /* Elements. */\n"
15596 " };\n"
15597 " \n"
15598 msgstr ""
15599
15600 # type: verbatim
15601 #: ../src/guestfs-structs.pod:223
15602 #, no-wrap
15603 msgid ""
15604 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
15605 " void guestfs_free_inotify_event_list (struct "
15606 "guestfs_free_inotify_event_list *);\n"
15607 "\n"
15608 msgstr ""
15609
15610 # type: =head2
15611 #: ../src/guestfs-structs.pod:226
15612 msgid "guestfs_partition"
15613 msgstr ""
15614
15615 # type: verbatim
15616 #: ../src/guestfs-structs.pod:228
15617 #, no-wrap
15618 msgid ""
15619 " struct guestfs_partition {\n"
15620 "   int32_t part_num;\n"
15621 "   uint64_t part_start;\n"
15622 "   uint64_t part_end;\n"
15623 "   uint64_t part_size;\n"
15624 " };\n"
15625 " \n"
15626 msgstr ""
15627
15628 # type: verbatim
15629 #: ../src/guestfs-structs.pod:235
15630 #, no-wrap
15631 msgid ""
15632 " struct guestfs_partition_list {\n"
15633 "   uint32_t len; /* Number of elements in list. */\n"
15634 "   struct guestfs_partition *val; /* Elements. */\n"
15635 " };\n"
15636 " \n"
15637 msgstr ""
15638
15639 # type: verbatim
15640 #: ../src/guestfs-structs.pod:240
15641 #, no-wrap
15642 msgid ""
15643 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
15644 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
15645 "\n"
15646 msgstr ""
15647
15648 # type: textblock
15649 #: ../fish/guestfish.pod:5
15650 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15651 msgstr ""
15652
15653 # type: verbatim
15654 #: ../fish/guestfish.pod:9
15655 #, no-wrap
15656 msgid ""
15657 " guestfish [--options] [commands]\n"
15658 "\n"
15659 msgstr ""
15660
15661 # type: verbatim
15662 #: ../fish/guestfish.pod:11
15663 #, no-wrap
15664 msgid ""
15665 " guestfish\n"
15666 "\n"
15667 msgstr ""
15668
15669 # type: verbatim
15670 #: ../fish/guestfish.pod:13
15671 #, no-wrap
15672 msgid ""
15673 " guestfish -a disk.img\n"
15674 "\n"
15675 msgstr ""
15676
15677 # type: verbatim
15678 #: ../fish/guestfish.pod:15
15679 #, no-wrap
15680 msgid ""
15681 " guestfish -a disk.img -m dev[:mountpoint]\n"
15682 "\n"
15683 msgstr ""
15684
15685 # type: verbatim
15686 #: ../fish/guestfish.pod:17
15687 #, no-wrap
15688 msgid ""
15689 " guestfish -d libvirt-domain\n"
15690 "\n"
15691 msgstr ""
15692
15693 # type: verbatim
15694 #: ../fish/guestfish.pod:19
15695 #, no-wrap
15696 msgid ""
15697 " guestfish -a disk.img -i\n"
15698 "\n"
15699 msgstr ""
15700
15701 # type: verbatim
15702 #: ../fish/guestfish.pod:21
15703 #, no-wrap
15704 msgid ""
15705 " guestfish -d libvirt-domain -i\n"
15706 "\n"
15707 msgstr ""
15708
15709 # type: =head1
15710 #: ../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
15711 msgid "WARNING"
15712 msgstr ""
15713
15714 # type: textblock
15715 #: ../fish/guestfish.pod:25
15716 msgid ""
15717 "Using guestfish in read/write mode on live virtual machines can be "
15718 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15719 "option to use guestfish safely if the disk image or virtual machine might be "
15720 "live."
15721 msgstr ""
15722
15723 # type: textblock
15724 #: ../fish/guestfish.pod:32
15725 msgid ""
15726 "Guestfish is a shell and command-line tool for examining and modifying "
15727 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15728 "functionality of the guestfs API, see L<guestfs(3)>."
15729 msgstr ""
15730
15731 # type: textblock
15732 #: ../fish/guestfish.pod:36
15733 msgid ""
15734 "Guestfish gives you structured access to the libguestfs API, from shell "
15735 "scripts or the command line or interactively.  If you want to rescue a "
15736 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15737 "command."
15738 msgstr ""
15739
15740 # type: =head1
15741 #: ../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
15742 msgid "EXAMPLES"
15743 msgstr ""
15744
15745 # type: =head2
15746 #: ../fish/guestfish.pod:43
15747 msgid "As an interactive shell"
15748 msgstr ""
15749
15750 # type: verbatim
15751 #: ../fish/guestfish.pod:45
15752 #, no-wrap
15753 msgid ""
15754 " $ guestfish\n"
15755 " \n"
15756 msgstr ""
15757
15758 # type: verbatim
15759 #: ../fish/guestfish.pod:47
15760 #, no-wrap
15761 msgid ""
15762 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15763 " editing virtual machine filesystems.\n"
15764 " \n"
15765 msgstr ""
15766
15767 # type: verbatim
15768 #: ../fish/guestfish.pod:50
15769 #, no-wrap
15770 msgid ""
15771 " Type: 'help' for a list of commands\n"
15772 "       'man' to read the manual\n"
15773 "       'quit' to quit the shell\n"
15774 " \n"
15775 msgstr ""
15776
15777 # type: verbatim
15778 #: ../fish/guestfish.pod:54
15779 #, no-wrap
15780 msgid ""
15781 " ><fs> add-ro disk.img\n"
15782 " ><fs> run\n"
15783 " ><fs> list-filesystems\n"
15784 " /dev/sda1: ext4\n"
15785 " /dev/vg_guest/lv_root: ext4\n"
15786 " /dev/vg_guest/lv_swap: swap\n"
15787 " ><fs> mount /dev/vg_guest/lv_root /\n"
15788 " ><fs> cat /etc/fstab\n"
15789 " # /etc/fstab\n"
15790 " # Created by anaconda\n"
15791 " [...]\n"
15792 " ><fs> exit\n"
15793 "\n"
15794 msgstr ""
15795
15796 # type: =head2
15797 #: ../fish/guestfish.pod:67
15798 msgid "From shell scripts"
15799 msgstr ""
15800
15801 # type: textblock
15802 #: ../fish/guestfish.pod:69
15803 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15804 msgstr ""
15805
15806 # type: verbatim
15807 #: ../fish/guestfish.pod:71
15808 #, no-wrap
15809 msgid ""
15810 " guestfish <<_EOF_\n"
15811 " add disk.img\n"
15812 " run\n"
15813 " mount /dev/vg_guest/lv_root /\n"
15814 " write /etc/motd \"Welcome, new users\"\n"
15815 " _EOF_\n"
15816 "\n"
15817 msgstr ""
15818
15819 # type: textblock
15820 #: ../fish/guestfish.pod:78
15821 msgid "List the LVM logical volumes in a disk image:"
15822 msgstr ""
15823
15824 # type: verbatim
15825 #: ../fish/guestfish.pod:80
15826 #, no-wrap
15827 msgid ""
15828 " guestfish -a disk.img --ro <<_EOF_\n"
15829 " run\n"
15830 " lvs\n"
15831 " _EOF_\n"
15832 "\n"
15833 msgstr ""
15834
15835 # type: textblock
15836 #: ../fish/guestfish.pod:85
15837 msgid "List all the filesystems in a disk image:"
15838 msgstr ""
15839
15840 # type: verbatim
15841 #: ../fish/guestfish.pod:87
15842 #, no-wrap
15843 msgid ""
15844 " guestfish -a disk.img --ro <<_EOF_\n"
15845 " run\n"
15846 " list-filesystems\n"
15847 " _EOF_\n"
15848 "\n"
15849 msgstr ""
15850
15851 # type: =head2
15852 #: ../fish/guestfish.pod:92
15853 msgid "On one command line"
15854 msgstr ""
15855
15856 # type: textblock
15857 #: ../fish/guestfish.pod:94
15858 msgid "Update C</etc/resolv.conf> in a guest:"
15859 msgstr ""
15860
15861 # type: verbatim
15862 #: ../fish/guestfish.pod:96
15863 #, no-wrap
15864 msgid ""
15865 " guestfish \\\n"
15866 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15867 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15868 "\n"
15869 msgstr ""
15870
15871 # type: textblock
15872 #: ../fish/guestfish.pod:100
15873 msgid "Edit C</boot/grub/grub.conf> interactively:"
15874 msgstr ""
15875
15876 # type: verbatim
15877 #: ../fish/guestfish.pod:102
15878 #, no-wrap
15879 msgid ""
15880 " guestfish --add disk.img \\\n"
15881 "   --mount /dev/vg_guest/lv_root \\\n"
15882 "   --mount /dev/sda1:/boot \\\n"
15883 "   edit /boot/grub/grub.conf\n"
15884 "\n"
15885 msgstr ""
15886
15887 # type: =head2
15888 #: ../fish/guestfish.pod:107
15889 msgid "Mount disks automatically"
15890 msgstr ""
15891
15892 # type: textblock
15893 #: ../fish/guestfish.pod:109
15894 msgid ""
15895 "Use the I<-i> option to automatically mount the disks from a virtual "
15896 "machine:"
15897 msgstr ""
15898
15899 # type: verbatim
15900 #: ../fish/guestfish.pod:112
15901 #, no-wrap
15902 msgid ""
15903 " guestfish --ro -a disk.img -i cat /etc/group\n"
15904 "\n"
15905 msgstr ""
15906
15907 # type: verbatim
15908 #: ../fish/guestfish.pod:114
15909 #, no-wrap
15910 msgid ""
15911 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15912 "\n"
15913 msgstr ""
15914
15915 # type: textblock
15916 #: ../fish/guestfish.pod:116
15917 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15918 msgstr ""
15919
15920 # type: verbatim
15921 #: ../fish/guestfish.pod:118
15922 #, no-wrap
15923 msgid ""
15924 " guestfish -a disk.img -i edit /boot/grub/grub.conf\n"
15925 "\n"
15926 msgstr ""
15927
15928 # type: =head2
15929 #: ../fish/guestfish.pod:120
15930 msgid "As a script interpreter"
15931 msgstr ""
15932
15933 # type: textblock
15934 #: ../fish/guestfish.pod:122
15935 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15936 msgstr ""
15937
15938 # type: verbatim
15939 #: ../fish/guestfish.pod:124
15940 #, no-wrap
15941 msgid ""
15942 " #!/usr/bin/guestfish -f\n"
15943 " sparse test1.img 100M\n"
15944 " run\n"
15945 " part-disk /dev/sda mbr\n"
15946 " mkfs ext2 /dev/sda1\n"
15947 "\n"
15948 msgstr ""
15949
15950 # type: =head2
15951 #: ../fish/guestfish.pod:130
15952 msgid "Start with a prepared disk"
15953 msgstr ""
15954
15955 # type: textblock
15956 #: ../fish/guestfish.pod:132
15957 msgid ""
15958 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15959 "single ext2-formatted partition:"
15960 msgstr ""
15961
15962 # type: verbatim
15963 #: ../fish/guestfish.pod:135
15964 #, no-wrap
15965 msgid ""
15966 " guestfish -N fs\n"
15967 "\n"
15968 msgstr ""
15969
15970 # type: textblock
15971 #: ../fish/guestfish.pod:137
15972 msgid "To list what is available do:"
15973 msgstr ""
15974
15975 # type: verbatim
15976 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:791
15977 #, no-wrap
15978 msgid ""
15979 " guestfish -N help | less\n"
15980 "\n"
15981 msgstr ""
15982
15983 # type: =head2
15984 #: ../fish/guestfish.pod:141
15985 msgid "Remote control"
15986 msgstr ""
15987
15988 # type: verbatim
15989 #: ../fish/guestfish.pod:143
15990 #, no-wrap
15991 msgid ""
15992 " eval `guestfish --listen`\n"
15993 " guestfish --remote add-ro disk.img\n"
15994 " guestfish --remote run\n"
15995 " guestfish --remote lvs\n"
15996 "\n"
15997 msgstr ""
15998
15999 # type: =head1
16000 #: ../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
16001 msgid "OPTIONS"
16002 msgstr ""
16003
16004 # type: =item
16005 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../inspector/virt-inspector.pl:76 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179 ../tools/virt-df.pl:79 ../tools/virt-ls.pl:86 ../tools/virt-resize.pl:265 ../tools/virt-list-filesystems.pl:58 ../tools/virt-cat.pl:87 ../tools/virt-tar.pl:106 ../tools/virt-rescue.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:59
16006 msgid "B<--help>"
16007 msgstr ""
16008
16009 # type: textblock
16010 #: ../fish/guestfish.pod:154
16011 msgid "Displays general help on options."
16012 msgstr ""
16013
16014 # type: =item
16015 #: ../fish/guestfish.pod:156
16016 msgid "B<-h> | B<--cmd-help>"
16017 msgstr ""
16018
16019 # type: textblock
16020 #: ../fish/guestfish.pod:158
16021 msgid "Lists all available guestfish commands."
16022 msgstr ""
16023
16024 # type: =item
16025 #: ../fish/guestfish.pod:160
16026 msgid "B<-h cmd> | B<--cmd-help cmd>"
16027 msgstr ""
16028
16029 # type: textblock
16030 #: ../fish/guestfish.pod:162
16031 msgid "Displays detailed help on a single command C<cmd>."
16032 msgstr ""
16033
16034 # type: =item
16035 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16036 msgid "B<-a image> | B<--add image>"
16037 msgstr ""
16038
16039 # type: textblock
16040 #: ../fish/guestfish.pod:166
16041 msgid "Add a block device or virtual machine image to the shell."
16042 msgstr ""
16043
16044 # type: textblock
16045 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16046 msgid ""
16047 "The format of the disk image is auto-detected.  To override this and force a "
16048 "particular format use the I<--format=..> option."
16049 msgstr ""
16050
16051 # type: =item
16052 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16053 msgid "B<-c URI> | B<--connect URI>"
16054 msgstr ""
16055
16056 # type: textblock
16057 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16058 msgid ""
16059 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16060 "URI to use.  The default is to use the default libvirt connection."
16061 msgstr ""
16062
16063 # type: =item
16064 #: ../fish/guestfish.pod:177 ../fuse/guestmount.pod:90
16065 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16066 msgstr ""
16067
16068 # type: textblock
16069 #: ../fish/guestfish.pod:179 ../fuse/guestmount.pod:92
16070 msgid ""
16071 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16072 "used, then any libvirt domain can be used.  However in write mode, only "
16073 "libvirt domains which are shut down can be named here."
16074 msgstr ""
16075
16076 # type: =item
16077 #: ../fish/guestfish.pod:183
16078 msgid "B<-D> | B<--no-dest-paths>"
16079 msgstr ""
16080
16081 # type: textblock
16082 #: ../fish/guestfish.pod:185
16083 msgid ""
16084 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16085 "to hit the tab key to complete paths on the guest filesystem, but this "
16086 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16087 "allow this feature to be disabled."
16088 msgstr ""
16089
16090 # type: =item
16091 #: ../fish/guestfish.pod:190 ../fuse/guestmount.pod:108
16092 msgid "B<--echo-keys>"
16093 msgstr ""
16094
16095 # type: textblock
16096 #: ../fish/guestfish.pod:192 ../fuse/guestmount.pod:110
16097 msgid ""
16098 "When prompting for keys and passphrases, guestfish normally turns echoing "
16099 "off so you cannot see what you are typing.  If you are not worried about "
16100 "Tempest attacks and there is no one else in the room you can specify this "
16101 "flag to see what you are typing."
16102 msgstr ""
16103
16104 # type: =item
16105 #: ../fish/guestfish.pod:197
16106 msgid "B<-f file> | B<--file file>"
16107 msgstr ""
16108
16109 # type: textblock
16110 #: ../fish/guestfish.pod:199
16111 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16112 msgstr ""
16113
16114 # type: verbatim
16115 #: ../fish/guestfish.pod:202
16116 #, no-wrap
16117 msgid ""
16118 " #!/usr/bin/guestfish -f\n"
16119 "\n"
16120 msgstr ""
16121
16122 # type: =item
16123 #: ../fish/guestfish.pod:204 ../fuse/guestmount.pod:115
16124 msgid "B<--format=raw|qcow2|..> | B<--format>"
16125 msgstr ""
16126
16127 # type: textblock
16128 #: ../fish/guestfish.pod:206 ../fuse/guestmount.pod:117
16129 msgid ""
16130 "The default for the I<-a> option is to auto-detect the format of the disk "
16131 "image.  Using this forces the disk format for I<-a> options which follow on "
16132 "the command line.  Using I<--format> with no argument switches back to "
16133 "auto-detection for subsequent I<-a> options."
16134 msgstr ""
16135
16136 # type: textblock
16137 #: ../fish/guestfish.pod:211 ../fish/guestfish.pod:504 ../inspector/virt-inspector.pl:549
16138 msgid "For example:"
16139 msgstr ""
16140
16141 # type: verbatim
16142 #: ../fish/guestfish.pod:213
16143 #, no-wrap
16144 msgid ""
16145 " guestfish --format=raw -a disk.img\n"
16146 "\n"
16147 msgstr ""
16148
16149 # type: textblock
16150 #: ../fish/guestfish.pod:215
16151 msgid "forces raw format (no auto-detection) for C<disk.img>."
16152 msgstr ""
16153
16154 # type: verbatim
16155 #: ../fish/guestfish.pod:217
16156 #, no-wrap
16157 msgid ""
16158 " guestfish --format=raw -a disk.img --format -a another.img\n"
16159 "\n"
16160 msgstr ""
16161
16162 # type: textblock
16163 #: ../fish/guestfish.pod:219
16164 msgid ""
16165 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
16166 "auto-detection for C<another.img>."
16167 msgstr ""
16168
16169 # type: textblock
16170 #: ../fish/guestfish.pod:222
16171 msgid ""
16172 "If you have untrusted raw-format guest disk images, you should use this "
16173 "option to specify the disk format.  This avoids a possible security problem "
16174 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16175 msgstr ""
16176
16177 # type: =item
16178 #: ../fish/guestfish.pod:227 ../fuse/guestmount.pod:135
16179 msgid "B<-i> | B<--inspector>"
16180 msgstr ""
16181
16182 # type: textblock
16183 #: ../fish/guestfish.pod:229 ../fuse/guestmount.pod:137
16184 msgid ""
16185 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16186 "system and mount filesystems as they would be mounted on the real virtual "
16187 "machine."
16188 msgstr ""
16189
16190 # type: textblock
16191 #: ../fish/guestfish.pod:233
16192 msgid "Typical usage is either:"
16193 msgstr ""
16194
16195 # type: verbatim
16196 #: ../fish/guestfish.pod:235
16197 #, no-wrap
16198 msgid ""
16199 " guestfish -d myguest -i\n"
16200 "\n"
16201 msgstr ""
16202
16203 # type: textblock
16204 #: ../fish/guestfish.pod:237
16205 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16206 msgstr ""
16207
16208 # type: verbatim
16209 #: ../fish/guestfish.pod:239
16210 #, no-wrap
16211 msgid ""
16212 " guestfish --ro -d myguest -i\n"
16213 "\n"
16214 msgstr ""
16215
16216 # type: textblock
16217 #: ../fish/guestfish.pod:241
16218 msgid "(for active domains, readonly), or specify the block device directly:"
16219 msgstr ""
16220
16221 # type: verbatim
16222 #: ../fish/guestfish.pod:243
16223 #, no-wrap
16224 msgid ""
16225 " guestfish -a /dev/Guests/MyGuest -i\n"
16226 "\n"
16227 msgstr ""
16228
16229 # type: textblock
16230 #: ../fish/guestfish.pod:245
16231 msgid ""
16232 "Note that the command line syntax changed slightly over older versions of "
16233 "guestfish.  You can still use the old syntax:"
16234 msgstr ""
16235
16236 # type: verbatim
16237 #: ../fish/guestfish.pod:248
16238 #, no-wrap
16239 msgid ""
16240 " guestfish [--ro] -i disk.img\n"
16241 "\n"
16242 msgstr ""
16243
16244 # type: verbatim
16245 #: ../fish/guestfish.pod:250
16246 #, no-wrap
16247 msgid ""
16248 " guestfish [--ro] -i libvirt-domain\n"
16249 "\n"
16250 msgstr ""
16251
16252 # type: =item
16253 #: ../fish/guestfish.pod:252 ../fuse/guestmount.pod:141
16254 msgid "B<--keys-from-stdin>"
16255 msgstr ""
16256
16257 # type: textblock
16258 #: ../fish/guestfish.pod:254 ../fuse/guestmount.pod:143
16259 msgid ""
16260 "Read key or passphrase parameters from stdin.  The default is to try to read "
16261 "passphrases from the user by opening C</dev/tty>."
16262 msgstr ""
16263
16264 # type: =item
16265 #: ../fish/guestfish.pod:257
16266 msgid "B<--listen>"
16267 msgstr ""
16268
16269 # type: textblock
16270 #: ../fish/guestfish.pod:259
16271 msgid ""
16272 "Fork into the background and listen for remote commands.  See section "
16273 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16274 msgstr ""
16275
16276 # type: =item
16277 #: ../fish/guestfish.pod:262
16278 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
16279 msgstr ""
16280
16281 # type: textblock
16282 #: ../fish/guestfish.pod:264
16283 msgid "Mount the named partition or logical volume on the given mountpoint."
16284 msgstr ""
16285
16286 # type: textblock
16287 #: ../fish/guestfish.pod:266
16288 msgid "If the mountpoint is omitted, it defaults to C</>."
16289 msgstr ""
16290
16291 # type: textblock
16292 #: ../fish/guestfish.pod:268
16293 msgid "You have to mount something on C</> before most commands will work."
16294 msgstr ""
16295
16296 # type: textblock
16297 #: ../fish/guestfish.pod:270
16298 msgid ""
16299 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16300 "launched."
16301 msgstr ""
16302
16303 # type: textblock
16304 #: ../fish/guestfish.pod:273
16305 msgid ""
16306 "If you don't know what filesystems a disk image contains, you can either run "
16307 "guestfish without this option, then list the partitions and LVs available "
16308 "(see L</list-partitions> and L</lvs> commands), or you can use the "
16309 "L<virt-list-filesystems(1)> program."
16310 msgstr ""
16311
16312 # type: =item
16313 #: ../fish/guestfish.pod:278 ../fuse/guestmount.pod:154
16314 msgid "B<-n> | B<--no-sync>"
16315 msgstr ""
16316
16317 # type: textblock
16318 #: ../fish/guestfish.pod:280
16319 msgid ""
16320 "Disable autosync.  This is enabled by default.  See the discussion of "
16321 "autosync in the L<guestfs(3)> manpage."
16322 msgstr ""
16323
16324 # type: =item
16325 #: ../fish/guestfish.pod:283
16326 msgid "B<-N type> | B<--new type> | B<-N help>"
16327 msgstr ""
16328
16329 # type: textblock
16330 #: ../fish/guestfish.pod:285
16331 msgid ""
16332 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16333 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16334 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16335 "IMAGES> below."
16336 msgstr ""
16337
16338 # type: =item
16339 #: ../fish/guestfish.pod:290
16340 msgid "B<--progress-bars>"
16341 msgstr ""
16342
16343 # type: textblock
16344 #: ../fish/guestfish.pod:292
16345 msgid "Enable progress bars, even when guestfish is used non-interactively."
16346 msgstr ""
16347
16348 # type: textblock
16349 #: ../fish/guestfish.pod:294
16350 msgid ""
16351 "Progress bars are enabled by default when guestfish is used as an "
16352 "interactive shell."
16353 msgstr ""
16354
16355 # type: =item
16356 #: ../fish/guestfish.pod:297
16357 msgid "B<--no-progress-bars>"
16358 msgstr ""
16359
16360 # type: textblock
16361 #: ../fish/guestfish.pod:299
16362 msgid "Disable progress bars."
16363 msgstr ""
16364
16365 # type: =item
16366 #: ../fish/guestfish.pod:301
16367 msgid "B<--remote[=pid]>"
16368 msgstr ""
16369
16370 # type: textblock
16371 #: ../fish/guestfish.pod:303
16372 msgid ""
16373 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16374 "CONTROL GUESTFISH OVER A SOCKET> below."
16375 msgstr ""
16376
16377 # type: =item
16378 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:196
16379 msgid "B<-r> | B<--ro>"
16380 msgstr ""
16381
16382 # type: textblock
16383 #: ../fish/guestfish.pod:308
16384 msgid ""
16385 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
16386 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
16387 msgstr ""
16388
16389 # type: textblock
16390 #: ../fish/guestfish.pod:311 ../tools/virt-rescue.pl:187
16391 msgid ""
16392 "The option must always be used if the disk image or virtual machine might be "
16393 "running, and is generally recommended in cases where you don't need write "
16394 "access to the disk."
16395 msgstr ""
16396
16397 # type: textblock
16398 #: ../fish/guestfish.pod:315
16399 msgid ""
16400 "Note that prepared disk images created with I<-N> are not affected by the "
16401 "I<--ro> option."
16402 msgstr ""
16403
16404 # type: =item
16405 #: ../fish/guestfish.pod:318 ../fuse/guestmount.pod:206 ../tools/virt-rescue.pl:195
16406 msgid "B<--selinux>"
16407 msgstr ""
16408
16409 # type: textblock
16410 #: ../fish/guestfish.pod:320
16411 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16412 msgstr ""
16413
16414 # type: =item
16415 #: ../fish/guestfish.pod:322 ../fuse/guestmount.pod:210
16416 msgid "B<-v> | B<--verbose>"
16417 msgstr ""
16418
16419 # type: textblock
16420 #: ../fish/guestfish.pod:324
16421 msgid ""
16422 "Enable very verbose messages.  This is particularly useful if you find a "
16423 "bug."
16424 msgstr ""
16425
16426 # type: =item
16427 #: ../fish/guestfish.pod:327 ../fuse/guestmount.pod:214
16428 msgid "B<-V> | B<--version>"
16429 msgstr ""
16430
16431 # type: textblock
16432 #: ../fish/guestfish.pod:329
16433 msgid "Display the guestfish / libguestfs version number and exit."
16434 msgstr ""
16435
16436 # type: =item
16437 #: ../fish/guestfish.pod:331
16438 msgid "B<-x>"
16439 msgstr ""
16440
16441 # type: textblock
16442 #: ../fish/guestfish.pod:333
16443 msgid "Echo each command before executing it."
16444 msgstr ""
16445
16446 # type: =head1
16447 #: ../fish/guestfish.pod:337
16448 msgid "COMMANDS ON COMMAND LINE"
16449 msgstr ""
16450
16451 # type: textblock
16452 #: ../fish/guestfish.pod:339
16453 msgid "Any additional (non-option) arguments are treated as commands to execute."
16454 msgstr ""
16455
16456 # type: textblock
16457 #: ../fish/guestfish.pod:342
16458 msgid ""
16459 "Commands to execute should be separated by a colon (C<:>), where the colon "
16460 "is a separate parameter.  Thus:"
16461 msgstr ""
16462
16463 # type: verbatim
16464 #: ../fish/guestfish.pod:345
16465 #, no-wrap
16466 msgid ""
16467 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16468 "\n"
16469 msgstr ""
16470
16471 # type: textblock
16472 #: ../fish/guestfish.pod:347
16473 msgid ""
16474 "If there are no additional arguments, then we enter a shell, either an "
16475 "interactive shell with a prompt (if the input is a terminal) or a "
16476 "non-interactive shell."
16477 msgstr ""
16478
16479 # type: textblock
16480 #: ../fish/guestfish.pod:351
16481 msgid ""
16482 "In either command line mode or non-interactive shell, the first command that "
16483 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16484 "prompt) if a command fails, you can continue to enter commands."
16485 msgstr ""
16486
16487 # type: =head1
16488 #: ../fish/guestfish.pod:356
16489 msgid "USING launch (OR run)"
16490 msgstr ""
16491
16492 # type: textblock
16493 #: ../fish/guestfish.pod:358
16494 msgid ""
16495 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16496 "then launch it, then mount any disks you need, and finally issue "
16497 "actions/commands.  So the general order of the day is:"
16498 msgstr ""
16499
16500 # type: textblock
16501 #: ../fish/guestfish.pod:366
16502 msgid "add or -a/--add"
16503 msgstr ""
16504
16505 # type: textblock
16506 #: ../fish/guestfish.pod:370
16507 msgid "launch (aka run)"
16508 msgstr ""
16509
16510 # type: textblock
16511 #: ../fish/guestfish.pod:374
16512 msgid "mount or -m/--mount"
16513 msgstr ""
16514
16515 # type: textblock
16516 #: ../fish/guestfish.pod:378
16517 msgid "any other commands"
16518 msgstr ""
16519
16520 # type: textblock
16521 #: ../fish/guestfish.pod:382
16522 msgid ""
16523 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16524 "guest before mounting or performing any other commands."
16525 msgstr ""
16526
16527 # type: textblock
16528 #: ../fish/guestfish.pod:385
16529 msgid ""
16530 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16531 "I<--new> options were given then C<run> is done automatically, simply "
16532 "because guestfish can't perform the action you asked for without doing this."
16533 msgstr ""
16534
16535 # type: =head1
16536 #: ../fish/guestfish.pod:390
16537 msgid "QUOTING"
16538 msgstr ""
16539
16540 # type: textblock
16541 #: ../fish/guestfish.pod:392
16542 msgid ""
16543 "You can quote ordinary parameters using either single or double quotes.  For "
16544 "example:"
16545 msgstr ""
16546
16547 # type: verbatim
16548 #: ../fish/guestfish.pod:395
16549 #, no-wrap
16550 msgid ""
16551 " add \"file with a space.img\"\n"
16552 "\n"
16553 msgstr ""
16554
16555 # type: verbatim
16556 #: ../fish/guestfish.pod:397
16557 #, no-wrap
16558 msgid ""
16559 " rm '/file name'\n"
16560 "\n"
16561 msgstr ""
16562
16563 # type: verbatim
16564 #: ../fish/guestfish.pod:399
16565 #, no-wrap
16566 msgid ""
16567 " rm '/\"'\n"
16568 "\n"
16569 msgstr ""
16570
16571 # type: textblock
16572 #: ../fish/guestfish.pod:401
16573 msgid ""
16574 "A few commands require a list of strings to be passed.  For these, use a "
16575 "whitespace-separated list, enclosed in quotes.  Strings containing "
16576 "whitespace to be passed through must be enclosed in single quotes.  A "
16577 "literal single quote must be escaped with a backslash."
16578 msgstr ""
16579
16580 # type: verbatim
16581 #: ../fish/guestfish.pod:406
16582 #, no-wrap
16583 msgid ""
16584 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16585 " command \"/bin/echo 'foo      bar'\"\n"
16586 " command \"/bin/echo \\'foo\\'\"\n"
16587 "\n"
16588 msgstr ""
16589
16590 # type: =head1
16591 #: ../fish/guestfish.pod:410
16592 msgid "OPTIONAL ARGUMENTS"
16593 msgstr ""
16594
16595 # type: textblock
16596 #: ../fish/guestfish.pod:412
16597 msgid ""
16598 "Some commands take optional arguments.  These arguments appear in this "
16599 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16600 msgstr ""
16601
16602 # type: verbatim
16603 #: ../fish/guestfish.pod:416
16604 #, no-wrap
16605 msgid ""
16606 " add-drive-opts filename\n"
16607 "\n"
16608 msgstr ""
16609
16610 # type: verbatim
16611 #: ../fish/guestfish.pod:418
16612 #, no-wrap
16613 msgid ""
16614 " add-drive-opts filename readonly:true\n"
16615 "\n"
16616 msgstr ""
16617
16618 # type: verbatim
16619 #: ../fish/guestfish.pod:420
16620 #, no-wrap
16621 msgid ""
16622 " add-drive-opts filename format:qcow2 readonly:false\n"
16623 "\n"
16624 msgstr ""
16625
16626 # type: textblock
16627 #: ../fish/guestfish.pod:422
16628 msgid ""
16629 "Each optional argument can appear at most once.  All optional arguments must "
16630 "appear after the required ones."
16631 msgstr ""
16632
16633 # type: =head1
16634 #: ../fish/guestfish.pod:425
16635 msgid "NUMBERS"
16636 msgstr ""
16637
16638 # type: textblock
16639 #: ../fish/guestfish.pod:427
16640 msgid "This section applies to all commands which can take integers as parameters."
16641 msgstr ""
16642
16643 # type: =head2
16644 #: ../fish/guestfish.pod:430
16645 msgid "SIZE SUFFIX"
16646 msgstr ""
16647
16648 # type: textblock
16649 #: ../fish/guestfish.pod:432
16650 msgid ""
16651 "When the command takes a parameter measured in bytes, you can use one of the "
16652 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16653 msgstr ""
16654
16655 # type: =item
16656 #: ../fish/guestfish.pod:438
16657 msgid "B<k> or B<K> or B<KiB>"
16658 msgstr ""
16659
16660 # type: textblock
16661 #: ../fish/guestfish.pod:440
16662 msgid "The size in kilobytes (multiplied by 1024)."
16663 msgstr ""
16664
16665 # type: =item
16666 #: ../fish/guestfish.pod:442
16667 msgid "B<KB>"
16668 msgstr ""
16669
16670 # type: textblock
16671 #: ../fish/guestfish.pod:444
16672 msgid "The size in SI 1000 byte units."
16673 msgstr ""
16674
16675 # type: =item
16676 #: ../fish/guestfish.pod:446
16677 msgid "B<M> or B<MiB>"
16678 msgstr ""
16679
16680 # type: textblock
16681 #: ../fish/guestfish.pod:448
16682 msgid "The size in megabytes (multiplied by 1048576)."
16683 msgstr ""
16684
16685 # type: =item
16686 #: ../fish/guestfish.pod:450
16687 msgid "B<MB>"
16688 msgstr ""
16689
16690 # type: textblock
16691 #: ../fish/guestfish.pod:452
16692 msgid "The size in SI 1000000 byte units."
16693 msgstr ""
16694
16695 # type: =item
16696 #: ../fish/guestfish.pod:454
16697 msgid "B<G> or B<GiB>"
16698 msgstr ""
16699
16700 # type: textblock
16701 #: ../fish/guestfish.pod:456
16702 msgid "The size in gigabytes (multiplied by 2**30)."
16703 msgstr ""
16704
16705 # type: =item
16706 #: ../fish/guestfish.pod:458
16707 msgid "B<GB>"
16708 msgstr ""
16709
16710 # type: textblock
16711 #: ../fish/guestfish.pod:460
16712 msgid "The size in SI 10**9 byte units."
16713 msgstr ""
16714
16715 # type: =item
16716 #: ../fish/guestfish.pod:462
16717 msgid "B<T> or B<TiB>"
16718 msgstr ""
16719
16720 # type: textblock
16721 #: ../fish/guestfish.pod:464
16722 msgid "The size in terabytes (multiplied by 2**40)."
16723 msgstr ""
16724
16725 # type: =item
16726 #: ../fish/guestfish.pod:466
16727 msgid "B<TB>"
16728 msgstr ""
16729
16730 # type: textblock
16731 #: ../fish/guestfish.pod:468
16732 msgid "The size in SI 10**12 byte units."
16733 msgstr ""
16734
16735 # type: =item
16736 #: ../fish/guestfish.pod:470
16737 msgid "B<P> or B<PiB>"
16738 msgstr ""
16739
16740 # type: textblock
16741 #: ../fish/guestfish.pod:472
16742 msgid "The size in petabytes (multiplied by 2**50)."
16743 msgstr ""
16744
16745 # type: =item
16746 #: ../fish/guestfish.pod:474
16747 msgid "B<PB>"
16748 msgstr ""
16749
16750 # type: textblock
16751 #: ../fish/guestfish.pod:476
16752 msgid "The size in SI 10**15 byte units."
16753 msgstr ""
16754
16755 # type: =item
16756 #: ../fish/guestfish.pod:478
16757 msgid "B<E> or B<EiB>"
16758 msgstr ""
16759
16760 # type: textblock
16761 #: ../fish/guestfish.pod:480
16762 msgid "The size in exabytes (multiplied by 2**60)."
16763 msgstr ""
16764
16765 # type: =item
16766 #: ../fish/guestfish.pod:482
16767 msgid "B<EB>"
16768 msgstr ""
16769
16770 # type: textblock
16771 #: ../fish/guestfish.pod:484
16772 msgid "The size in SI 10**18 byte units."
16773 msgstr ""
16774
16775 # type: =item
16776 #: ../fish/guestfish.pod:486
16777 msgid "B<Z> or B<ZiB>"
16778 msgstr ""
16779
16780 # type: textblock
16781 #: ../fish/guestfish.pod:488
16782 msgid "The size in zettabytes (multiplied by 2**70)."
16783 msgstr ""
16784
16785 # type: =item
16786 #: ../fish/guestfish.pod:490
16787 msgid "B<ZB>"
16788 msgstr ""
16789
16790 # type: textblock
16791 #: ../fish/guestfish.pod:492
16792 msgid "The size in SI 10**21 byte units."
16793 msgstr ""
16794
16795 # type: =item
16796 #: ../fish/guestfish.pod:494
16797 msgid "B<Y> or B<YiB>"
16798 msgstr ""
16799
16800 # type: textblock
16801 #: ../fish/guestfish.pod:496
16802 msgid "The size in yottabytes (multiplied by 2**80)."
16803 msgstr ""
16804
16805 # type: =item
16806 #: ../fish/guestfish.pod:498
16807 msgid "B<YB>"
16808 msgstr ""
16809
16810 # type: textblock
16811 #: ../fish/guestfish.pod:500
16812 msgid "The size in SI 10**24 byte units."
16813 msgstr ""
16814
16815 # type: verbatim
16816 #: ../fish/guestfish.pod:506
16817 #, no-wrap
16818 msgid ""
16819 " truncate-size /file 1G\n"
16820 "\n"
16821 msgstr ""
16822
16823 # type: textblock
16824 #: ../fish/guestfish.pod:508
16825 msgid "would truncate the file to 1 gigabyte."
16826 msgstr ""
16827
16828 # type: textblock
16829 #: ../fish/guestfish.pod:510
16830 msgid ""
16831 "Be careful because a few commands take sizes in kilobytes or megabytes "
16832 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16833 "Adding a suffix will probably not do what you expect."
16834 msgstr ""
16835
16836 # type: =head2
16837 #: ../fish/guestfish.pod:514
16838 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16839 msgstr ""
16840
16841 # type: textblock
16842 #: ../fish/guestfish.pod:516
16843 msgid ""
16844 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16845 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16846 msgstr ""
16847
16848 # type: verbatim
16849 #: ../fish/guestfish.pod:519
16850 #, no-wrap
16851 msgid ""
16852 " 1234      decimal number 1234\n"
16853 " 02322     octal number, equivalent to decimal 1234\n"
16854 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16855 "\n"
16856 msgstr ""
16857
16858 # type: textblock
16859 #: ../fish/guestfish.pod:523
16860 msgid ""
16861 "When using the C<chmod> command, you almost always want to specify an octal "
16862 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16863 "L<chmod(1)> program):"
16864 msgstr ""
16865
16866 # type: verbatim
16867 #: ../fish/guestfish.pod:527
16868 #, no-wrap
16869 msgid ""
16870 " chmod 0777 /public  # OK\n"
16871 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16872 "\n"
16873 msgstr ""
16874
16875 # type: textblock
16876 #: ../fish/guestfish.pod:530
16877 msgid ""
16878 "Commands that return numbers usually print them in decimal, but some "
16879 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16880 "octal, preceeded by C<0>)."
16881 msgstr ""
16882
16883 # type: =head1
16884 #: ../fish/guestfish.pod:534
16885 msgid "WILDCARDS AND GLOBBING"
16886 msgstr ""
16887
16888 # type: textblock
16889 #: ../fish/guestfish.pod:536
16890 msgid ""
16891 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16892 "(globbing) by default.  So for example the following will not do what you "
16893 "expect:"
16894 msgstr ""
16895
16896 # type: verbatim
16897 #: ../fish/guestfish.pod:540
16898 #, no-wrap
16899 msgid ""
16900 " rm-rf /home/*\n"
16901 "\n"
16902 msgstr ""
16903
16904 # type: textblock
16905 #: ../fish/guestfish.pod:542
16906 msgid ""
16907 "Assuming you don't have a directory called literally C</home/*> then the "
16908 "above command will return an error."
16909 msgstr ""
16910
16911 # type: textblock
16912 #: ../fish/guestfish.pod:545
16913 msgid "To perform wildcard expansion, use the C<glob> command."
16914 msgstr ""
16915
16916 # type: verbatim
16917 #: ../fish/guestfish.pod:547
16918 #, no-wrap
16919 msgid ""
16920 " glob rm-rf /home/*\n"
16921 "\n"
16922 msgstr ""
16923
16924 # type: textblock
16925 #: ../fish/guestfish.pod:549
16926 msgid ""
16927 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16928 "many times), equivalent to:"
16929 msgstr ""
16930
16931 # type: verbatim
16932 #: ../fish/guestfish.pod:552
16933 #, no-wrap
16934 msgid ""
16935 " rm-rf /home/jim\n"
16936 " rm-rf /home/joe\n"
16937 " rm-rf /home/mary\n"
16938 "\n"
16939 msgstr ""
16940
16941 # type: textblock
16942 #: ../fish/guestfish.pod:556
16943 msgid "C<glob> only works on simple guest paths and not on device names."
16944 msgstr ""
16945
16946 # type: textblock
16947 #: ../fish/guestfish.pod:558
16948 msgid ""
16949 "If you have several parameters, each containing a wildcard, then glob will "
16950 "perform a Cartesian product."
16951 msgstr ""
16952
16953 # type: =head1
16954 #: ../fish/guestfish.pod:561
16955 msgid "COMMENTS"
16956 msgstr ""
16957
16958 # type: textblock
16959 #: ../fish/guestfish.pod:563
16960 msgid ""
16961 "Any line which starts with a I<#> character is treated as a comment and "
16962 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16963 "a command.  For example:"
16964 msgstr ""
16965
16966 # type: verbatim
16967 #: ../fish/guestfish.pod:567
16968 #, no-wrap
16969 msgid ""
16970 " # this is a comment\n"
16971 "         # this is a comment\n"
16972 " foo # NOT a comment\n"
16973 "\n"
16974 msgstr ""
16975
16976 # type: textblock
16977 #: ../fish/guestfish.pod:571
16978 msgid "Blank lines are also ignored."
16979 msgstr ""
16980
16981 # type: =head1
16982 #: ../fish/guestfish.pod:573
16983 msgid "RUNNING COMMANDS LOCALLY"
16984 msgstr ""
16985
16986 # type: textblock
16987 #: ../fish/guestfish.pod:575
16988 msgid ""
16989 "Any line which starts with a I<!> character is treated as a command sent to "
16990 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
16991 msgstr ""
16992
16993 # type: verbatim
16994 #: ../fish/guestfish.pod:579
16995 #, no-wrap
16996 msgid ""
16997 " !mkdir local\n"
16998 " tgz-out /remote local/remote-data.tar.gz\n"
16999 "\n"
17000 msgstr ""
17001
17002 # type: textblock
17003 #: ../fish/guestfish.pod:582
17004 msgid ""
17005 "will create a directory C<local> on the host, and then export the contents "
17006 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17007 "(See C<tgz-out>)."
17008 msgstr ""
17009
17010 # type: textblock
17011 #: ../fish/guestfish.pod:586
17012 msgid ""
17013 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17014 "effect, due to the way that subprocesses work in Unix."
17015 msgstr ""
17016
17017 # type: =head1
17018 #: ../fish/guestfish.pod:589
17019 msgid "PIPES"
17020 msgstr ""
17021
17022 # type: textblock
17023 #: ../fish/guestfish.pod:591
17024 msgid ""
17025 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17026 "command (a guestfish command) to the second command (any host command).  For "
17027 "example:"
17028 msgstr ""
17029
17030 # type: verbatim
17031 #: ../fish/guestfish.pod:595
17032 #, no-wrap
17033 msgid ""
17034 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17035 "\n"
17036 msgstr ""
17037
17038 # type: textblock
17039 #: ../fish/guestfish.pod:597
17040 msgid ""
17041 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17042 "program).  The above command would list all accounts in the guest filesystem "
17043 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17044 msgstr ""
17045
17046 # type: verbatim
17047 #: ../fish/guestfish.pod:602
17048 #, no-wrap
17049 msgid ""
17050 " hexdump /bin/ls | head\n"
17051 " list-devices | tail -1\n"
17052 " tgz-out / - | tar ztf -\n"
17053 "\n"
17054 msgstr ""
17055
17056 # type: textblock
17057 #: ../fish/guestfish.pod:606
17058 msgid ""
17059 "The space before the pipe symbol is required, any space after the pipe "
17060 "symbol is optional.  Everything after the pipe symbol is just passed "
17061 "straight to the host shell, so it can contain redirections, globs and "
17062 "anything else that makes sense on the host side."
17063 msgstr ""
17064
17065 # type: textblock
17066 #: ../fish/guestfish.pod:611
17067 msgid ""
17068 "To use a literal argument which begins with a pipe symbol, you have to quote "
17069 "it, eg:"
17070 msgstr ""
17071
17072 # type: verbatim
17073 #: ../fish/guestfish.pod:614
17074 #, no-wrap
17075 msgid ""
17076 " echo \"|\"\n"
17077 "\n"
17078 msgstr ""
17079
17080 # type: =head1
17081 #: ../fish/guestfish.pod:616
17082 msgid "HOME DIRECTORIES"
17083 msgstr ""
17084
17085 # type: textblock
17086 #: ../fish/guestfish.pod:618
17087 msgid ""
17088 "If a parameter starts with the character C<~> then the tilde may be expanded "
17089 "as a home directory path (either C<~> for the current user's home directory, "
17090 "or C<~user> for another user)."
17091 msgstr ""
17092
17093 # type: textblock
17094 #: ../fish/guestfish.pod:622
17095 msgid ""
17096 "Note that home directory expansion happens for users known I<on the host>, "
17097 "not in the guest filesystem."
17098 msgstr ""
17099
17100 # type: textblock
17101 #: ../fish/guestfish.pod:625
17102 msgid ""
17103 "To use a literal argument which begins with a tilde, you have to quote it, "
17104 "eg:"
17105 msgstr ""
17106
17107 # type: verbatim
17108 #: ../fish/guestfish.pod:628
17109 #, no-wrap
17110 msgid ""
17111 " echo \"~\"\n"
17112 "\n"
17113 msgstr ""
17114
17115 # type: textblock
17116 #: ../fish/guestfish.pod:632
17117 msgid ""
17118 "Libguestfs has some support for Linux guests encrypted according to the "
17119 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17120 "disk encryption systems used by modern Linux guests.  Currently only "
17121 "LVM-on-LUKS is supported."
17122 msgstr ""
17123
17124 # type: textblock
17125 #: ../fish/guestfish.pod:637
17126 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17127 msgstr ""
17128
17129 # type: verbatim
17130 #: ../fish/guestfish.pod:639
17131 #, no-wrap
17132 msgid ""
17133 " ><fs> vfs-type /dev/sda2\n"
17134 " crypto_LUKS\n"
17135 "\n"
17136 msgstr ""
17137
17138 # type: textblock
17139 #: ../fish/guestfish.pod:642
17140 msgid ""
17141 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17142 "device called C</dev/mapper/luksdev>."
17143 msgstr ""
17144
17145 # type: verbatim
17146 #: ../fish/guestfish.pod:645
17147 #, no-wrap
17148 msgid ""
17149 " ><fs> luks-open /dev/sda2 luksdev\n"
17150 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17151 "\n"
17152 msgstr ""
17153
17154 # type: textblock
17155 #: ../fish/guestfish.pod:648
17156 msgid ""
17157 "Finally you have to tell LVM to scan for volume groups on the newly created "
17158 "mapper device:"
17159 msgstr ""
17160
17161 # type: verbatim
17162 #: ../fish/guestfish.pod:651
17163 #, no-wrap
17164 msgid ""
17165 " vgscan\n"
17166 " vg-activate-all true\n"
17167 "\n"
17168 msgstr ""
17169
17170 # type: textblock
17171 #: ../fish/guestfish.pod:654
17172 msgid "The logical volume(s) can now be mounted in the usual way."
17173 msgstr ""
17174
17175 # type: textblock
17176 #: ../fish/guestfish.pod:656
17177 msgid ""
17178 "Before closing a LUKS device you must unmount any logical volumes on it and "
17179 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17180 "one.  Then you can close the mapper device:"
17181 msgstr ""
17182
17183 # type: verbatim
17184 #: ../fish/guestfish.pod:660
17185 #, no-wrap
17186 msgid ""
17187 " vg-activate false /dev/VG\n"
17188 " luks-close /dev/mapper/luksdev\n"
17189 "\n"
17190 msgstr ""
17191
17192 # type: =head1
17193 #: ../fish/guestfish.pod:663
17194 msgid "WINDOWS PATHS"
17195 msgstr ""
17196
17197 # type: textblock
17198 #: ../fish/guestfish.pod:665
17199 msgid ""
17200 "If a path is prefixed with C<win:> then you can use Windows-style paths "
17201 "(with some limitations).  The following commands are equivalent:"
17202 msgstr ""
17203
17204 # type: verbatim
17205 #: ../fish/guestfish.pod:668
17206 #, no-wrap
17207 msgid ""
17208 " file /WINDOWS/system32/config/system.LOG\n"
17209 "\n"
17210 msgstr ""
17211
17212 # type: verbatim
17213 #: ../fish/guestfish.pod:670
17214 #, no-wrap
17215 msgid ""
17216 " file win:/windows/system32/config/system.log\n"
17217 "\n"
17218 msgstr ""
17219
17220 # type: verbatim
17221 #: ../fish/guestfish.pod:672
17222 #, no-wrap
17223 msgid ""
17224 " file win:\\windows\\system32\\config\\system.log\n"
17225 "\n"
17226 msgstr ""
17227
17228 # type: verbatim
17229 #: ../fish/guestfish.pod:674
17230 #, no-wrap
17231 msgid ""
17232 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
17233 "\n"
17234 msgstr ""
17235
17236 # type: textblock
17237 #: ../fish/guestfish.pod:676
17238 msgid ""
17239 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
17240 "handles case insensitivity like Windows would.  This only works in argument "
17241 "positions that expect a path."
17242 msgstr ""
17243
17244 # type: =head1
17245 #: ../fish/guestfish.pod:680
17246 msgid "UPLOADING AND DOWNLOADING FILES"
17247 msgstr ""
17248
17249 # type: textblock
17250 #: ../fish/guestfish.pod:682
17251 msgid ""
17252 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17253 "others which upload from or download to a local file, you can use the "
17254 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17255 msgstr ""
17256
17257 # type: verbatim
17258 #: ../fish/guestfish.pod:686
17259 #, no-wrap
17260 msgid ""
17261 " upload - /foo\n"
17262 "\n"
17263 msgstr ""
17264
17265 # type: textblock
17266 #: ../fish/guestfish.pod:688
17267 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17268 msgstr ""
17269
17270 # type: verbatim
17271 #: ../fish/guestfish.pod:691
17272 #, no-wrap
17273 msgid ""
17274 " tar-out /etc - | tar tf -\n"
17275 "\n"
17276 msgstr ""
17277
17278 # type: textblock
17279 #: ../fish/guestfish.pod:693
17280 msgid ""
17281 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17282 "command (see L</PIPES>)."
17283 msgstr ""
17284
17285 # type: textblock
17286 #: ../fish/guestfish.pod:696
17287 msgid ""
17288 "When using C<-> to read from stdin, the input is read up to the end of "
17289 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17290 "some arbitrary end marker:"
17291 msgstr ""
17292
17293 # type: verbatim
17294 #: ../fish/guestfish.pod:700
17295 #, no-wrap
17296 msgid ""
17297 " upload -<<END /foo\n"
17298 " input line 1\n"
17299 " input line 2\n"
17300 " input line 3\n"
17301 " END\n"
17302 "\n"
17303 msgstr ""
17304
17305 # type: textblock
17306 #: ../fish/guestfish.pod:706
17307 msgid ""
17308 "Any string of characters can be used instead of C<END>.  The end marker must "
17309 "appear on a line of its own, without any preceeding or following characters "
17310 "(not even spaces)."
17311 msgstr ""
17312
17313 # type: textblock
17314 #: ../fish/guestfish.pod:710
17315 msgid ""
17316 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17317 "upload local files (so-called \"FileIn\" parameters in the generator)."
17318 msgstr ""
17319
17320 # type: =head1
17321 #: ../fish/guestfish.pod:713
17322 msgid "EXIT ON ERROR BEHAVIOUR"
17323 msgstr ""
17324
17325 # type: textblock
17326 #: ../fish/guestfish.pod:715
17327 msgid ""
17328 "By default, guestfish will ignore any errors when in interactive mode "
17329 "(ie. taking commands from a human over a tty), and will exit on the first "
17330 "error in non-interactive mode (scripts, commands given on the command line)."
17331 msgstr ""
17332
17333 # type: textblock
17334 #: ../fish/guestfish.pod:720
17335 msgid ""
17336 "If you prefix a command with a I<-> character, then that command will not "
17337 "cause guestfish to exit, even if that (one) command returns an error."
17338 msgstr ""
17339
17340 # type: =head1
17341 #: ../fish/guestfish.pod:724
17342 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17343 msgstr ""
17344
17345 # type: textblock
17346 #: ../fish/guestfish.pod:726
17347 msgid ""
17348 "Guestfish can be remote-controlled over a socket.  This is useful "
17349 "particularly in shell scripts where you want to make several different "
17350 "changes to a filesystem, but you don't want the overhead of starting up a "
17351 "guestfish process each time."
17352 msgstr ""
17353
17354 # type: textblock
17355 #: ../fish/guestfish.pod:731
17356 msgid "Start a guestfish server process using:"
17357 msgstr ""
17358
17359 # type: verbatim
17360 #: ../fish/guestfish.pod:733
17361 #, no-wrap
17362 msgid ""
17363 " eval `guestfish --listen`\n"
17364 "\n"
17365 msgstr ""
17366
17367 # type: textblock
17368 #: ../fish/guestfish.pod:735
17369 msgid "and then send it commands by doing:"
17370 msgstr ""
17371
17372 # type: verbatim
17373 #: ../fish/guestfish.pod:737
17374 #, no-wrap
17375 msgid ""
17376 " guestfish --remote cmd [...]\n"
17377 "\n"
17378 msgstr ""
17379
17380 # type: textblock
17381 #: ../fish/guestfish.pod:739
17382 msgid "To cause the server to exit, send it the exit command:"
17383 msgstr ""
17384
17385 # type: verbatim
17386 #: ../fish/guestfish.pod:741
17387 #, no-wrap
17388 msgid ""
17389 " guestfish --remote exit\n"
17390 "\n"
17391 msgstr ""
17392
17393 # type: textblock
17394 #: ../fish/guestfish.pod:743
17395 msgid ""
17396 "Note that the server will normally exit if there is an error in a command.  "
17397 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17398 "BEHAVIOUR>."
17399 msgstr ""
17400
17401 # type: =head2
17402 #: ../fish/guestfish.pod:747
17403 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17404 msgstr ""
17405
17406 # type: textblock
17407 #: ../fish/guestfish.pod:749
17408 msgid ""
17409 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17410 "is how the I<--remote> option knows where to send the commands.  You can "
17411 "have several guestfish listener processes running using:"
17412 msgstr ""
17413
17414 # type: verbatim
17415 #: ../fish/guestfish.pod:753
17416 #, no-wrap
17417 msgid ""
17418 " eval `guestfish --listen`\n"
17419 " pid1=$GUESTFISH_PID\n"
17420 " eval `guestfish --listen`\n"
17421 " pid2=$GUESTFISH_PID\n"
17422 " ...\n"
17423 " guestfish --remote=$pid1 cmd\n"
17424 " guestfish --remote=$pid2 cmd\n"
17425 "\n"
17426 msgstr ""
17427
17428 # type: =head2
17429 #: ../fish/guestfish.pod:761
17430 msgid "REMOTE CONTROL DETAILS"
17431 msgstr ""
17432
17433 # type: textblock
17434 #: ../fish/guestfish.pod:763
17435 msgid ""
17436 "Remote control happens over a Unix domain socket called "
17437 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17438 "of the process, and C<$PID> is the process ID of the server."
17439 msgstr ""
17440
17441 # type: textblock
17442 #: ../fish/guestfish.pod:767
17443 msgid "Guestfish client and server versions must match exactly."
17444 msgstr ""
17445
17446 # type: =head1
17447 #: ../fish/guestfish.pod:769
17448 msgid "PREPARED DISK IMAGES"
17449 msgstr ""
17450
17451 # type: textblock
17452 #: ../fish/guestfish.pod:771
17453 msgid ""
17454 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17455 "preformatted disk images that guestfish can make for you to save typing.  "
17456 "This is particularly useful for testing purposes.  This option is used "
17457 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17458 "can be mixed with I<-a>)."
17459 msgstr ""
17460
17461 # type: textblock
17462 #: ../fish/guestfish.pod:777
17463 msgid ""
17464 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17465 "the second and so on.  Existing files in the current directory are "
17466 "I<overwritten>."
17467 msgstr ""
17468
17469 # type: textblock
17470 #: ../fish/guestfish.pod:781
17471 msgid ""
17472 "The type briefly describes how the disk should be sized, partitioned, how "
17473 "filesystem(s) should be created, and how content should be added.  "
17474 "Optionally the type can be followed by extra parameters, separated by C<:> "
17475 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17476 "sparsely-allocated disk, containing a single partition, with the partition "
17477 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17478 "on a 1GB disk instead."
17479 msgstr ""
17480
17481 # type: textblock
17482 #: ../fish/guestfish.pod:789
17483 msgid "To list the available types and any extra parameters they take, run:"
17484 msgstr ""
17485
17486 # type: textblock
17487 #: ../fish/guestfish.pod:793
17488 msgid ""
17489 "Note that the prepared filesystem is not mounted.  You would usually have to "
17490 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17491 msgstr ""
17492
17493 # type: textblock
17494 #: ../fish/guestfish.pod:797
17495 msgid ""
17496 "If any I<-N> or I<--new> options are given, the guest is automatically "
17497 "launched."
17498 msgstr ""
17499
17500 # type: textblock
17501 #: ../fish/guestfish.pod:802
17502 msgid "Create a 100MB disk with an ext4-formatted partition:"
17503 msgstr ""
17504
17505 # type: verbatim
17506 #: ../fish/guestfish.pod:804
17507 #, no-wrap
17508 msgid ""
17509 " guestfish -N fs:ext4\n"
17510 "\n"
17511 msgstr ""
17512
17513 # type: textblock
17514 #: ../fish/guestfish.pod:806
17515 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17516 msgstr ""
17517
17518 # type: verbatim
17519 #: ../fish/guestfish.pod:808
17520 #, no-wrap
17521 msgid ""
17522 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17523 "\n"
17524 msgstr ""
17525
17526 # type: textblock
17527 #: ../fish/guestfish.pod:810
17528 msgid "Create a blank 200MB disk:"
17529 msgstr ""
17530
17531 # type: verbatim
17532 #: ../fish/guestfish.pod:812
17533 #, no-wrap
17534 msgid ""
17535 " guestfish -N disk:200M\n"
17536 "\n"
17537 msgstr ""
17538
17539 # type: =head1
17540 #: ../fish/guestfish.pod:814
17541 msgid "PROGRESS BARS"
17542 msgstr ""
17543
17544 # type: textblock
17545 #: ../fish/guestfish.pod:816
17546 msgid ""
17547 "Some (not all) long-running commands send progress notification messages as "
17548 "they are running.  Guestfish turns these messages into progress bars."
17549 msgstr ""
17550
17551 # type: textblock
17552 #: ../fish/guestfish.pod:820
17553 msgid ""
17554 "When a command that supports progress bars takes longer than two seconds to "
17555 "run, and if progress bars are enabled, then you will see one appearing below "
17556 "the command:"
17557 msgstr ""
17558
17559 # type: verbatim
17560 #: ../fish/guestfish.pod:824
17561 #, no-wrap
17562 msgid ""
17563 " ><fs> copy-size /large-file /another-file 2048M\n"
17564 " / 10% [#####-----------------------------------------] 00:30\n"
17565 "\n"
17566 msgstr ""
17567
17568 # type: textblock
17569 #: ../fish/guestfish.pod:827
17570 msgid ""
17571 "The spinner on the left hand side moves round once for every progress "
17572 "notification received from the backend.  This is a (reasonably) golden "
17573 "assurance that the command is \"doing something\" even if the progress bar "
17574 "is not moving, because the command is able to send the progress "
17575 "notifications.  When the bar reaches 100% and the command finishes, the "
17576 "spinner disappears."
17577 msgstr ""
17578
17579 # type: textblock
17580 #: ../fish/guestfish.pod:834
17581 msgid ""
17582 "Progress bars are enabled by default when guestfish is used interactively.  "
17583 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17584 "and you can disable them completely using I<--no-progress-bars>."
17585 msgstr ""
17586
17587 # type: =head1
17588 #: ../fish/guestfish.pod:839
17589 msgid "GUESTFISH COMMANDS"
17590 msgstr ""
17591
17592 # type: textblock
17593 #: ../fish/guestfish.pod:841
17594 msgid ""
17595 "The commands in this section are guestfish convenience commands, in other "
17596 "words, they are not part of the L<guestfs(3)> API."
17597 msgstr ""
17598
17599 # type: =head2
17600 #: ../fish/guestfish.pod:844
17601 msgid "help"
17602 msgstr ""
17603
17604 # type: verbatim
17605 #: ../fish/guestfish.pod:846
17606 #, no-wrap
17607 msgid ""
17608 " help\n"
17609 " help cmd\n"
17610 "\n"
17611 msgstr ""
17612
17613 # type: textblock
17614 #: ../fish/guestfish.pod:849
17615 msgid "Without any parameter, this provides general help."
17616 msgstr ""
17617
17618 # type: textblock
17619 #: ../fish/guestfish.pod:851
17620 msgid "With a C<cmd> parameter, this displays detailed help for that command."
17621 msgstr ""
17622
17623 # type: =head2
17624 #: ../fish/guestfish.pod:853
17625 msgid "quit | exit"
17626 msgstr ""
17627
17628 # type: textblock
17629 #: ../fish/guestfish.pod:855
17630 msgid "This exits guestfish.  You can also use C<^D> key."
17631 msgstr ""
17632
17633 # type: textblock
17634 #: ../fish/guestfish.pod:857
17635 msgid "@FISH_COMMANDS@"
17636 msgstr ""
17637
17638 # type: =head1
17639 #: ../fish/guestfish.pod:859
17640 msgid "COMMANDS"
17641 msgstr ""
17642
17643 # type: =head1
17644 #: ../fish/guestfish.pod:863 ../test-tool/libguestfs-test-tool.pod:83
17645 msgid "EXIT CODE"
17646 msgstr ""
17647
17648 # type: textblock
17649 #: ../fish/guestfish.pod:865
17650 msgid ""
17651 "guestfish returns 0 if the commands completed without error, or 1 if there "
17652 "was an error."
17653 msgstr ""
17654
17655 # type: =item
17656 #: ../fish/guestfish.pod:872
17657 msgid "EDITOR"
17658 msgstr ""
17659
17660 # type: textblock
17661 #: ../fish/guestfish.pod:874
17662 msgid ""
17663 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17664 "C<vi>."
17665 msgstr ""
17666
17667 # type: =item
17668 #: ../fish/guestfish.pod:877
17669 msgid "GUESTFISH_PID"
17670 msgstr ""
17671
17672 # type: textblock
17673 #: ../fish/guestfish.pod:879
17674 msgid ""
17675 "Used with the I<--remote> option to specify the remote guestfish process to "
17676 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17677 msgstr ""
17678
17679 # type: =item
17680 #: ../fish/guestfish.pod:883
17681 msgid "HEXEDITOR"
17682 msgstr ""
17683
17684 # type: textblock
17685 #: ../fish/guestfish.pod:885
17686 msgid ""
17687 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17688 "not specified, the external L<hexedit(1)> program is used."
17689 msgstr ""
17690
17691 # type: =item
17692 #: ../fish/guestfish.pod:889
17693 msgid "HOME"
17694 msgstr ""
17695
17696 # type: textblock
17697 #: ../fish/guestfish.pod:891
17698 msgid ""
17699 "If compiled with GNU readline support, various files in the home directory "
17700 "can be used.  See L</FILES>."
17701 msgstr ""
17702
17703 # type: textblock
17704 #: ../fish/guestfish.pod:900
17705 msgid ""
17706 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17707 "effect as using the B<-v> option."
17708 msgstr ""
17709
17710 # type: textblock
17711 #: ../fish/guestfish.pod:912
17712 msgid ""
17713 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17714 "the discussion of paths in L<guestfs(3)>."
17715 msgstr ""
17716
17717 # type: textblock
17718 #: ../fish/guestfish.pod:923
17719 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17720 msgstr ""
17721
17722 # type: =item
17723 #: ../fish/guestfish.pod:925
17724 msgid "PAGER"
17725 msgstr ""
17726
17727 # type: textblock
17728 #: ../fish/guestfish.pod:927
17729 msgid ""
17730 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17731 "C<more>."
17732 msgstr ""
17733
17734 # type: =head1
17735 #: ../fish/guestfish.pod:942 ../test-tool/libguestfs-test-tool.pod:88
17736 msgid "FILES"
17737 msgstr ""
17738
17739 # type: =item
17740 #: ../fish/guestfish.pod:946
17741 msgid "$HOME/.guestfish"
17742 msgstr ""
17743
17744 # type: textblock
17745 #: ../fish/guestfish.pod:948
17746 msgid ""
17747 "If compiled with GNU readline support, then the command history is saved in "
17748 "this file."
17749 msgstr ""
17750
17751 # type: =item
17752 #: ../fish/guestfish.pod:951
17753 msgid "$HOME/.inputrc"
17754 msgstr ""
17755
17756 # type: =item
17757 #: ../fish/guestfish.pod:953
17758 msgid "/etc/inputrc"
17759 msgstr ""
17760
17761 # type: textblock
17762 #: ../fish/guestfish.pod:955
17763 msgid ""
17764 "If compiled with GNU readline support, then these files can be used to "
17765 "configure readline.  For further information, please see "
17766 "L<readline(3)/INITIALIZATION FILE>."
17767 msgstr ""
17768
17769 # type: textblock
17770 #: ../fish/guestfish.pod:959
17771 msgid "To write rules which only apply to guestfish, use:"
17772 msgstr ""
17773
17774 # type: verbatim
17775 #: ../fish/guestfish.pod:961
17776 #, no-wrap
17777 msgid ""
17778 " $if guestfish\n"
17779 " ...\n"
17780 " $endif\n"
17781 "\n"
17782 msgstr ""
17783
17784 # type: textblock
17785 #: ../fish/guestfish.pod:965
17786 msgid ""
17787 "Variables that you can set in inputrc that change the behaviour of guestfish "
17788 "in useful ways include:"
17789 msgstr ""
17790
17791 # type: =item
17792 #: ../fish/guestfish.pod:970
17793 msgid "completion-ignore-case (default: on)"
17794 msgstr ""
17795
17796 # type: textblock
17797 #: ../fish/guestfish.pod:972
17798 msgid ""
17799 "By default, guestfish will ignore case when tab-completing paths on the "
17800 "disk.  Use:"
17801 msgstr ""
17802
17803 # type: verbatim
17804 #: ../fish/guestfish.pod:975
17805 #, no-wrap
17806 msgid ""
17807 " set completion-ignore-case off\n"
17808 "\n"
17809 msgstr ""
17810
17811 # type: textblock
17812 #: ../fish/guestfish.pod:977
17813 msgid "to make guestfish case sensitive."
17814 msgstr ""
17815
17816 # type: =item
17817 #: ../fish/guestfish.pod:981
17818 msgid "test1.img"
17819 msgstr ""
17820
17821 # type: =item
17822 #: ../fish/guestfish.pod:983
17823 msgid "test2.img (etc)"
17824 msgstr ""
17825
17826 # type: textblock
17827 #: ../fish/guestfish.pod:985
17828 msgid ""
17829 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
17830 "will be created in the file C<test1.img> in the current directory.  The "
17831 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
17832 "the same name will be overwritten."
17833 msgstr ""
17834
17835 # type: textblock
17836 #: ../fish/guestfish.pod:994
17837 msgid ""
17838 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
17839 "L<virt-edit(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, "
17840 "L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
17841 "L<virt-tar(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
17842 msgstr ""
17843
17844 # type: textblock
17845 #: ../fish/guestfish.pod:1018 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:246 ../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
17846 msgid ""
17847 "This program is free software; you can redistribute it and/or modify it "
17848 "under the terms of the GNU General Public License as published by the Free "
17849 "Software Foundation; either version 2 of the License, or (at your option) "
17850 "any later version."
17851 msgstr ""
17852
17853 # type: textblock
17854 #: ../fish/guestfish.pod:1023 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:251 ../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
17855 msgid ""
17856 "This program is distributed in the hope that it will be useful, but WITHOUT "
17857 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
17858 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
17859 "more details."
17860 msgstr ""
17861
17862 # type: textblock
17863 #: ../fish/guestfish.pod:1028 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:256 ../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
17864 msgid ""
17865 "You should have received a copy of the GNU General Public License along with "
17866 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
17867 "Ave, Cambridge, MA 02139, USA."
17868 msgstr ""
17869
17870 # type: =head2
17871 #: ../fish/guestfish-actions.pod:1
17872 msgid "add-cdrom"
17873 msgstr ""
17874
17875 # type: verbatim
17876 #: ../fish/guestfish-actions.pod:3
17877 #, no-wrap
17878 msgid ""
17879 " add-cdrom filename\n"
17880 "\n"
17881 msgstr ""
17882
17883 # type: textblock
17884 #: ../fish/guestfish-actions.pod:15
17885 msgid ""
17886 "This call checks for the existence of C<filename>.  This stops you from "
17887 "specifying other types of drive which are supported by qemu such as C<nbd:> "
17888 "and C<http:> URLs.  To specify those, use the general L</config> call "
17889 "instead."
17890 msgstr ""
17891
17892 # type: textblock
17893 #: ../fish/guestfish-actions.pod:22
17894 msgid ""
17895 "If you just want to add an ISO file (often you use this as an efficient way "
17896 "to transfer large files into the guest), then you should probably use "
17897 "L</add-drive-ro> instead."
17898 msgstr ""
17899
17900 # type: =head2
17901 #: ../fish/guestfish-actions.pod:35
17902 msgid "add-drive"
17903 msgstr ""
17904
17905 # type: verbatim
17906 #: ../fish/guestfish-actions.pod:37
17907 #, no-wrap
17908 msgid ""
17909 " add-drive filename\n"
17910 "\n"
17911 msgstr ""
17912
17913 # type: textblock
17914 #: ../fish/guestfish-actions.pod:39
17915 msgid ""
17916 "This function is the equivalent of calling L</add-drive-opts> with no "
17917 "optional parameters, so the disk is added writable, with the format being "
17918 "detected automatically."
17919 msgstr ""
17920
17921 # type: textblock
17922 #: ../fish/guestfish-actions.pod:43
17923 msgid ""
17924 "Automatic detection of the format opens you up to a potential security hole "
17925 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
17926 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
17927 "you should think about replacing calls to this function with calls to "
17928 "L</add-drive-opts>, and specifying the format."
17929 msgstr ""
17930
17931 # type: =head2
17932 #: ../fish/guestfish-actions.pod:50
17933 msgid "add-drive-opts"
17934 msgstr ""
17935
17936 # type: =head2
17937 #: ../fish/guestfish-actions.pod:52
17938 msgid "add"
17939 msgstr ""
17940
17941 # type: verbatim
17942 #: ../fish/guestfish-actions.pod:54
17943 #, no-wrap
17944 msgid ""
17945 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
17946 "\n"
17947 msgstr ""
17948
17949 # type: textblock
17950 #: ../fish/guestfish-actions.pod:81
17951 msgid ""
17952 "This forces the image format.  If you omit this (or use L</add-drive> or "
17953 "L</add-drive-ro>) then the format is automatically detected.  Possible "
17954 "formats include C<raw> and C<qcow2>."
17955 msgstr ""
17956
17957 # type: textblock
17958 #: ../fish/guestfish-actions.pod:92
17959 msgid ""
17960 "This rarely-used option lets you emulate the behaviour of the deprecated "
17961 "L</add-drive-with-if> call (q.v.)"
17962 msgstr ""
17963
17964 # type: textblock
17965 #: ../fish/guestfish-actions.pod:97
17966 msgid ""
17967 "This command has one or more optional arguments.  See L</OPTIONAL "
17968 "ARGUMENTS>."
17969 msgstr ""
17970
17971 # type: =head2
17972 #: ../fish/guestfish-actions.pod:99
17973 msgid "add-drive-ro"
17974 msgstr ""
17975
17976 # type: =head2
17977 #: ../fish/guestfish-actions.pod:101
17978 msgid "add-ro"
17979 msgstr ""
17980
17981 # type: verbatim
17982 #: ../fish/guestfish-actions.pod:103
17983 #, no-wrap
17984 msgid ""
17985 " add-drive-ro filename\n"
17986 "\n"
17987 msgstr ""
17988
17989 # type: textblock
17990 #: ../fish/guestfish-actions.pod:105
17991 msgid ""
17992 "This function is the equivalent of calling L</add-drive-opts> with the "
17993 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
17994 "is added read-only, with the format being detected automatically."
17995 msgstr ""
17996
17997 # type: =head2
17998 #: ../fish/guestfish-actions.pod:110
17999 msgid "add-drive-ro-with-if"
18000 msgstr ""
18001
18002 # type: verbatim
18003 #: ../fish/guestfish-actions.pod:112
18004 #, no-wrap
18005 msgid ""
18006 " add-drive-ro-with-if filename iface\n"
18007 "\n"
18008 msgstr ""
18009
18010 # type: textblock
18011 #: ../fish/guestfish-actions.pod:114
18012 msgid ""
18013 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18014 "interface emulation to use at run time."
18015 msgstr ""
18016
18017 # type: =head2
18018 #: ../fish/guestfish-actions.pod:124
18019 msgid "add-drive-with-if"
18020 msgstr ""
18021
18022 # type: verbatim
18023 #: ../fish/guestfish-actions.pod:126
18024 #, no-wrap
18025 msgid ""
18026 " add-drive-with-if filename iface\n"
18027 "\n"
18028 msgstr ""
18029
18030 # type: textblock
18031 #: ../fish/guestfish-actions.pod:128
18032 msgid ""
18033 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18034 "interface emulation to use at run time."
18035 msgstr ""
18036
18037 # type: =head2
18038 #: ../fish/guestfish-actions.pod:138
18039 msgid "aug-clear"
18040 msgstr ""
18041
18042 # type: verbatim
18043 #: ../fish/guestfish-actions.pod:140
18044 #, no-wrap
18045 msgid ""
18046 " aug-clear augpath\n"
18047 "\n"
18048 msgstr ""
18049
18050 # type: =head2
18051 #: ../fish/guestfish-actions.pod:145
18052 msgid "aug-close"
18053 msgstr ""
18054
18055 # type: verbatim
18056 #: ../fish/guestfish-actions.pod:147
18057 #, no-wrap
18058 msgid ""
18059 " aug-close\n"
18060 "\n"
18061 msgstr ""
18062
18063 # type: textblock
18064 #: ../fish/guestfish-actions.pod:149
18065 msgid ""
18066 "Close the current Augeas handle and free up any resources used by it.  After "
18067 "calling this, you have to call L</aug-init> again before you can use any "
18068 "other Augeas functions."
18069 msgstr ""
18070
18071 # type: =head2
18072 #: ../fish/guestfish-actions.pod:154
18073 msgid "aug-defnode"
18074 msgstr ""
18075
18076 # type: verbatim
18077 #: ../fish/guestfish-actions.pod:156
18078 #, no-wrap
18079 msgid ""
18080 " aug-defnode name expr val\n"
18081 "\n"
18082 msgstr ""
18083
18084 # type: textblock
18085 #: ../fish/guestfish-actions.pod:161
18086 msgid ""
18087 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18088 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18089 "containing that single node."
18090 msgstr ""
18091
18092 # type: =head2
18093 #: ../fish/guestfish-actions.pod:169
18094 msgid "aug-defvar"
18095 msgstr ""
18096
18097 # type: verbatim
18098 #: ../fish/guestfish-actions.pod:171
18099 #, no-wrap
18100 msgid ""
18101 " aug-defvar name expr\n"
18102 "\n"
18103 msgstr ""
18104
18105 # type: =head2
18106 #: ../fish/guestfish-actions.pod:180
18107 msgid "aug-get"
18108 msgstr ""
18109
18110 # type: verbatim
18111 #: ../fish/guestfish-actions.pod:182
18112 #, no-wrap
18113 msgid ""
18114 " aug-get augpath\n"
18115 "\n"
18116 msgstr ""
18117
18118 # type: =head2
18119 #: ../fish/guestfish-actions.pod:187
18120 msgid "aug-init"
18121 msgstr ""
18122
18123 # type: verbatim
18124 #: ../fish/guestfish-actions.pod:189
18125 #, no-wrap
18126 msgid ""
18127 " aug-init root flags\n"
18128 "\n"
18129 msgstr ""
18130
18131 # type: textblock
18132 #: ../fish/guestfish-actions.pod:195
18133 msgid "You must call this before using any other L</aug-*> commands."
18134 msgstr ""
18135
18136 # type: textblock
18137 #: ../fish/guestfish-actions.pod:230
18138 msgid "Do not load the tree in L</aug-init>."
18139 msgstr ""
18140
18141 # type: textblock
18142 #: ../fish/guestfish-actions.pod:234
18143 msgid "To close the handle, you can call L</aug-close>."
18144 msgstr ""
18145
18146 # type: =head2
18147 #: ../fish/guestfish-actions.pod:238
18148 msgid "aug-insert"
18149 msgstr ""
18150
18151 # type: verbatim
18152 #: ../fish/guestfish-actions.pod:240
18153 #, no-wrap
18154 msgid ""
18155 " aug-insert augpath label true|false\n"
18156 "\n"
18157 msgstr ""
18158
18159 # type: =head2
18160 #: ../fish/guestfish-actions.pod:250
18161 msgid "aug-load"
18162 msgstr ""
18163
18164 # type: verbatim
18165 #: ../fish/guestfish-actions.pod:252
18166 #, no-wrap
18167 msgid ""
18168 " aug-load\n"
18169 "\n"
18170 msgstr ""
18171
18172 # type: =head2
18173 #: ../fish/guestfish-actions.pod:259
18174 msgid "aug-ls"
18175 msgstr ""
18176
18177 # type: verbatim
18178 #: ../fish/guestfish-actions.pod:261
18179 #, no-wrap
18180 msgid ""
18181 " aug-ls augpath\n"
18182 "\n"
18183 msgstr ""
18184
18185 # type: textblock
18186 #: ../fish/guestfish-actions.pod:263
18187 msgid ""
18188 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
18189 "resulting nodes into alphabetical order."
18190 msgstr ""
18191
18192 # type: =head2
18193 #: ../fish/guestfish-actions.pod:266
18194 msgid "aug-match"
18195 msgstr ""
18196
18197 # type: verbatim
18198 #: ../fish/guestfish-actions.pod:268
18199 #, no-wrap
18200 msgid ""
18201 " aug-match augpath\n"
18202 "\n"
18203 msgstr ""
18204
18205 # type: =head2
18206 #: ../fish/guestfish-actions.pod:274
18207 msgid "aug-mv"
18208 msgstr ""
18209
18210 # type: verbatim
18211 #: ../fish/guestfish-actions.pod:276
18212 #, no-wrap
18213 msgid ""
18214 " aug-mv src dest\n"
18215 "\n"
18216 msgstr ""
18217
18218 # type: =head2
18219 #: ../fish/guestfish-actions.pod:281
18220 msgid "aug-rm"
18221 msgstr ""
18222
18223 # type: verbatim
18224 #: ../fish/guestfish-actions.pod:283
18225 #, no-wrap
18226 msgid ""
18227 " aug-rm augpath\n"
18228 "\n"
18229 msgstr ""
18230
18231 # type: =head2
18232 #: ../fish/guestfish-actions.pod:289
18233 msgid "aug-save"
18234 msgstr ""
18235
18236 # type: verbatim
18237 #: ../fish/guestfish-actions.pod:291
18238 #, no-wrap
18239 msgid ""
18240 " aug-save\n"
18241 "\n"
18242 msgstr ""
18243
18244 # type: textblock
18245 #: ../fish/guestfish-actions.pod:295
18246 msgid ""
18247 "The flags which were passed to L</aug-init> affect exactly how files are "
18248 "saved."
18249 msgstr ""
18250
18251 # type: =head2
18252 #: ../fish/guestfish-actions.pod:298
18253 msgid "aug-set"
18254 msgstr ""
18255
18256 # type: verbatim
18257 #: ../fish/guestfish-actions.pod:300
18258 #, no-wrap
18259 msgid ""
18260 " aug-set augpath val\n"
18261 "\n"
18262 msgstr ""
18263
18264 # type: textblock
18265 #: ../fish/guestfish-actions.pod:304
18266 msgid ""
18267 "In the Augeas API, it is possible to clear a node by setting the value to "
18268 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
18269 "this call.  Instead you must use the L</aug-clear> call."
18270 msgstr ""
18271
18272 # type: =head2
18273 #: ../fish/guestfish-actions.pod:309
18274 msgid "available"
18275 msgstr ""
18276
18277 # type: verbatim
18278 #: ../fish/guestfish-actions.pod:311
18279 #, no-wrap
18280 msgid ""
18281 " available 'groups ...'\n"
18282 "\n"
18283 msgstr ""
18284
18285 # type: textblock
18286 #: ../fish/guestfish-actions.pod:317
18287 msgid ""
18288 "The libguestfs groups, and the functions that those groups correspond to, "
18289 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
18290 "runtime by calling L</available-all-groups>."
18291 msgstr ""
18292
18293 # type: textblock
18294 #: ../fish/guestfish-actions.pod:341
18295 msgid "You must call L</launch> before calling this function."
18296 msgstr ""
18297
18298 # type: textblock
18299 #: ../fish/guestfish-actions.pod:363
18300 msgid ""
18301 "This call was added in version C<1.0.80>.  In previous versions of "
18302 "libguestfs all you could do would be to speculatively execute a command to "
18303 "find out if the daemon implemented it.  See also L</version>."
18304 msgstr ""
18305
18306 # type: =head2
18307 #: ../fish/guestfish-actions.pod:370
18308 msgid "available-all-groups"
18309 msgstr ""
18310
18311 # type: verbatim
18312 #: ../fish/guestfish-actions.pod:372
18313 #, no-wrap
18314 msgid ""
18315 " available-all-groups\n"
18316 "\n"
18317 msgstr ""
18318
18319 # type: textblock
18320 #: ../fish/guestfish-actions.pod:374
18321 msgid ""
18322 "This command returns a list of all optional groups that this daemon knows "
18323 "about.  Note this returns both supported and unsupported groups.  To find "
18324 "out which ones the daemon can actually support you have to call "
18325 "L</available> on each member of the returned list."
18326 msgstr ""
18327
18328 # type: textblock
18329 #: ../fish/guestfish-actions.pod:380
18330 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
18331 msgstr ""
18332
18333 # type: =head2
18334 #: ../fish/guestfish-actions.pod:382
18335 msgid "base64-in"
18336 msgstr ""
18337
18338 # type: verbatim
18339 #: ../fish/guestfish-actions.pod:384
18340 #, no-wrap
18341 msgid ""
18342 " base64-in (base64file|-) filename\n"
18343 "\n"
18344 msgstr ""
18345
18346 # type: textblock
18347 #: ../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
18348 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
18349 msgstr ""
18350
18351 # type: =head2
18352 #: ../fish/guestfish-actions.pod:391
18353 msgid "base64-out"
18354 msgstr ""
18355
18356 # type: verbatim
18357 #: ../fish/guestfish-actions.pod:393
18358 #, no-wrap
18359 msgid ""
18360 " base64-out filename (base64file|-)\n"
18361 "\n"
18362 msgstr ""
18363
18364 # type: =head2
18365 #: ../fish/guestfish-actions.pod:400
18366 msgid "blockdev-flushbufs"
18367 msgstr ""
18368
18369 # type: verbatim
18370 #: ../fish/guestfish-actions.pod:402
18371 #, no-wrap
18372 msgid ""
18373 " blockdev-flushbufs device\n"
18374 "\n"
18375 msgstr ""
18376
18377 # type: =head2
18378 #: ../fish/guestfish-actions.pod:409
18379 msgid "blockdev-getbsz"
18380 msgstr ""
18381
18382 # type: verbatim
18383 #: ../fish/guestfish-actions.pod:411
18384 #, no-wrap
18385 msgid ""
18386 " blockdev-getbsz device\n"
18387 "\n"
18388 msgstr ""
18389
18390 # type: =head2
18391 #: ../fish/guestfish-actions.pod:420
18392 msgid "blockdev-getro"
18393 msgstr ""
18394
18395 # type: verbatim
18396 #: ../fish/guestfish-actions.pod:422
18397 #, no-wrap
18398 msgid ""
18399 " blockdev-getro device\n"
18400 "\n"
18401 msgstr ""
18402
18403 # type: =head2
18404 #: ../fish/guestfish-actions.pod:429
18405 msgid "blockdev-getsize64"
18406 msgstr ""
18407
18408 # type: verbatim
18409 #: ../fish/guestfish-actions.pod:431
18410 #, no-wrap
18411 msgid ""
18412 " blockdev-getsize64 device\n"
18413 "\n"
18414 msgstr ""
18415
18416 # type: textblock
18417 #: ../fish/guestfish-actions.pod:435
18418 msgid "See also L</blockdev-getsz>."
18419 msgstr ""
18420
18421 # type: =head2
18422 #: ../fish/guestfish-actions.pod:439
18423 msgid "blockdev-getss"
18424 msgstr ""
18425
18426 # type: verbatim
18427 #: ../fish/guestfish-actions.pod:441
18428 #, no-wrap
18429 msgid ""
18430 " blockdev-getss device\n"
18431 "\n"
18432 msgstr ""
18433
18434 # type: textblock
18435 #: ../fish/guestfish-actions.pod:446
18436 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
18437 msgstr ""
18438
18439 # type: =head2
18440 #: ../fish/guestfish-actions.pod:451
18441 msgid "blockdev-getsz"
18442 msgstr ""
18443
18444 # type: verbatim
18445 #: ../fish/guestfish-actions.pod:453
18446 #, no-wrap
18447 msgid ""
18448 " blockdev-getsz device\n"
18449 "\n"
18450 msgstr ""
18451
18452 # type: textblock
18453 #: ../fish/guestfish-actions.pod:458
18454 msgid ""
18455 "See also L</blockdev-getss> for the real sector size of the device, and "
18456 "L</blockdev-getsize64> for the more useful I<size in bytes>."
18457 msgstr ""
18458
18459 # type: =head2
18460 #: ../fish/guestfish-actions.pod:464
18461 msgid "blockdev-rereadpt"
18462 msgstr ""
18463
18464 # type: verbatim
18465 #: ../fish/guestfish-actions.pod:466
18466 #, no-wrap
18467 msgid ""
18468 " blockdev-rereadpt device\n"
18469 "\n"
18470 msgstr ""
18471
18472 # type: =head2
18473 #: ../fish/guestfish-actions.pod:472
18474 msgid "blockdev-setbsz"
18475 msgstr ""
18476
18477 # type: verbatim
18478 #: ../fish/guestfish-actions.pod:474
18479 #, no-wrap
18480 msgid ""
18481 " blockdev-setbsz device blocksize\n"
18482 "\n"
18483 msgstr ""
18484
18485 # type: =head2
18486 #: ../fish/guestfish-actions.pod:483
18487 msgid "blockdev-setro"
18488 msgstr ""
18489
18490 # type: verbatim
18491 #: ../fish/guestfish-actions.pod:485
18492 #, no-wrap
18493 msgid ""
18494 " blockdev-setro device\n"
18495 "\n"
18496 msgstr ""
18497
18498 # type: =head2
18499 #: ../fish/guestfish-actions.pod:491
18500 msgid "blockdev-setrw"
18501 msgstr ""
18502
18503 # type: verbatim
18504 #: ../fish/guestfish-actions.pod:493
18505 #, no-wrap
18506 msgid ""
18507 " blockdev-setrw device\n"
18508 "\n"
18509 msgstr ""
18510
18511 # type: =head2
18512 #: ../fish/guestfish-actions.pod:499
18513 msgid "case-sensitive-path"
18514 msgstr ""
18515
18516 # type: verbatim
18517 #: ../fish/guestfish-actions.pod:501
18518 #, no-wrap
18519 msgid ""
18520 " case-sensitive-path path\n"
18521 "\n"
18522 msgstr ""
18523
18524 # type: textblock
18525 #: ../fish/guestfish-actions.pod:525
18526 msgid ""
18527 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
18528 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
18529 "how the directories were originally created under Windows)."
18530 msgstr ""
18531
18532 # type: textblock
18533 #: ../fish/guestfish-actions.pod:533
18534 msgid "See also L</realpath>."
18535 msgstr ""
18536
18537 # type: =head2
18538 #: ../fish/guestfish-actions.pod:535
18539 msgid "cat"
18540 msgstr ""
18541
18542 # type: verbatim
18543 #: ../fish/guestfish-actions.pod:537
18544 #, no-wrap
18545 msgid ""
18546 " cat path\n"
18547 "\n"
18548 msgstr ""
18549
18550 # type: textblock
18551 #: ../fish/guestfish-actions.pod:541
18552 msgid ""
18553 "Note that this function cannot correctly handle binary files (specifically, "
18554 "files containing C<\\0> character which is treated as end of string).  For "
18555 "those you need to use the L</read-file> or L</download> functions which have "
18556 "a more complex interface."
18557 msgstr ""
18558
18559 # type: =head2
18560 #: ../fish/guestfish-actions.pod:549
18561 msgid "checksum"
18562 msgstr ""
18563
18564 # type: verbatim
18565 #: ../fish/guestfish-actions.pod:551
18566 #, no-wrap
18567 msgid ""
18568 " checksum csumtype path\n"
18569 "\n"
18570 msgstr ""
18571
18572 # type: textblock
18573 #: ../fish/guestfish-actions.pod:594
18574 msgid "To get the checksum for a device, use L</checksum-device>."
18575 msgstr ""
18576
18577 # type: textblock
18578 #: ../fish/guestfish-actions.pod:596
18579 msgid "To get the checksums for many files, use L</checksums-out>."
18580 msgstr ""
18581
18582 # type: =head2
18583 #: ../fish/guestfish-actions.pod:598
18584 msgid "checksum-device"
18585 msgstr ""
18586
18587 # type: verbatim
18588 #: ../fish/guestfish-actions.pod:600
18589 #, no-wrap
18590 msgid ""
18591 " checksum-device csumtype device\n"
18592 "\n"
18593 msgstr ""
18594
18595 # type: textblock
18596 #: ../fish/guestfish-actions.pod:602
18597 msgid ""
18598 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
18599 "device named C<device>.  For the types of checksums supported see the "
18600 "L</checksum> command."
18601 msgstr ""
18602
18603 # type: =head2
18604 #: ../fish/guestfish-actions.pod:606
18605 msgid "checksums-out"
18606 msgstr ""
18607
18608 # type: verbatim
18609 #: ../fish/guestfish-actions.pod:608
18610 #, no-wrap
18611 msgid ""
18612 " checksums-out csumtype directory (sumsfile|-)\n"
18613 "\n"
18614 msgstr ""
18615
18616 # type: =head2
18617 #: ../fish/guestfish-actions.pod:624
18618 msgid "chmod"
18619 msgstr ""
18620
18621 # type: verbatim
18622 #: ../fish/guestfish-actions.pod:626
18623 #, no-wrap
18624 msgid ""
18625 " chmod mode path\n"
18626 "\n"
18627 msgstr ""
18628
18629 # type: =head2
18630 #: ../fish/guestfish-actions.pod:637
18631 msgid "chown"
18632 msgstr ""
18633
18634 # type: verbatim
18635 #: ../fish/guestfish-actions.pod:639
18636 #, no-wrap
18637 msgid ""
18638 " chown owner group path\n"
18639 "\n"
18640 msgstr ""
18641
18642 # type: =head2
18643 #: ../fish/guestfish-actions.pod:647
18644 msgid "command"
18645 msgstr ""
18646
18647 # type: verbatim
18648 #: ../fish/guestfish-actions.pod:649
18649 #, no-wrap
18650 msgid ""
18651 " command 'arguments ...'\n"
18652 "\n"
18653 msgstr ""
18654
18655 # type: textblock
18656 #: ../fish/guestfish-actions.pod:656
18657 msgid ""
18658 "The single parameter is an argv-style list of arguments.  The first element "
18659 "is the name of the program to run.  Subsequent elements are parameters.  The "
18660 "list must be non-empty (ie. must contain a program name).  Note that the "
18661 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
18662 msgstr ""
18663
18664 # type: =head2
18665 #: ../fish/guestfish-actions.pod:684
18666 msgid "command-lines"
18667 msgstr ""
18668
18669 # type: verbatim
18670 #: ../fish/guestfish-actions.pod:686
18671 #, no-wrap
18672 msgid ""
18673 " command-lines 'arguments ...'\n"
18674 "\n"
18675 msgstr ""
18676
18677 # type: textblock
18678 #: ../fish/guestfish-actions.pod:688
18679 msgid "This is the same as L</command>, but splits the result into a list of lines."
18680 msgstr ""
18681
18682 # type: textblock
18683 #: ../fish/guestfish-actions.pod:691
18684 msgid "See also: L</sh-lines>"
18685 msgstr ""
18686
18687 # type: =head2
18688 #: ../fish/guestfish-actions.pod:696
18689 msgid "config"
18690 msgstr ""
18691
18692 # type: verbatim
18693 #: ../fish/guestfish-actions.pod:698
18694 #, no-wrap
18695 msgid ""
18696 " config qemuparam qemuvalue\n"
18697 "\n"
18698 msgstr ""
18699
18700 # type: =head2
18701 #: ../fish/guestfish-actions.pod:709
18702 msgid "copy-size"
18703 msgstr ""
18704
18705 # type: verbatim
18706 #: ../fish/guestfish-actions.pod:711
18707 #, no-wrap
18708 msgid ""
18709 " copy-size src dest size\n"
18710 "\n"
18711 msgstr ""
18712
18713 # type: =head2
18714 #: ../fish/guestfish-actions.pod:719
18715 msgid "cp"
18716 msgstr ""
18717
18718 # type: verbatim
18719 #: ../fish/guestfish-actions.pod:721
18720 #, no-wrap
18721 msgid ""
18722 " cp src dest\n"
18723 "\n"
18724 msgstr ""
18725
18726 # type: =head2
18727 #: ../fish/guestfish-actions.pod:726
18728 msgid "cp-a"
18729 msgstr ""
18730
18731 # type: verbatim
18732 #: ../fish/guestfish-actions.pod:728
18733 #, no-wrap
18734 msgid ""
18735 " cp-a src dest\n"
18736 "\n"
18737 msgstr ""
18738
18739 # type: =head2
18740 #: ../fish/guestfish-actions.pod:733
18741 msgid "dd"
18742 msgstr ""
18743
18744 # type: verbatim
18745 #: ../fish/guestfish-actions.pod:735
18746 #, no-wrap
18747 msgid ""
18748 " dd src dest\n"
18749 "\n"
18750 msgstr ""
18751
18752 # type: textblock
18753 #: ../fish/guestfish-actions.pod:742
18754 msgid ""
18755 "If the destination is a device, it must be as large or larger than the "
18756 "source file or device, otherwise the copy will fail.  This command cannot do "
18757 "partial copies (see L</copy-size>)."
18758 msgstr ""
18759
18760 # type: =head2
18761 #: ../fish/guestfish-actions.pod:746
18762 msgid "debug"
18763 msgstr ""
18764
18765 # type: verbatim
18766 #: ../fish/guestfish-actions.pod:748
18767 #, no-wrap
18768 msgid ""
18769 " debug subcmd 'extraargs ...'\n"
18770 "\n"
18771 msgstr ""
18772
18773 # type: textblock
18774 #: ../fish/guestfish-actions.pod:750
18775 msgid ""
18776 "The L</debug> command exposes some internals of C<guestfsd> (the guestfs "
18777 "daemon) that runs inside the qemu subprocess."
18778 msgstr ""
18779
18780 # type: =head2
18781 #: ../fish/guestfish-actions.pod:758
18782 msgid "debug-upload"
18783 msgstr ""
18784
18785 # type: verbatim
18786 #: ../fish/guestfish-actions.pod:760
18787 #, no-wrap
18788 msgid ""
18789 " debug-upload (filename|-) tmpname mode\n"
18790 "\n"
18791 msgstr ""
18792
18793 # type: textblock
18794 #: ../fish/guestfish-actions.pod:762
18795 msgid "The L</debug-upload> command uploads a file to the libguestfs appliance."
18796 msgstr ""
18797
18798 # type: =head2
18799 #: ../fish/guestfish-actions.pod:771
18800 msgid "df"
18801 msgstr ""
18802
18803 # type: verbatim
18804 #: ../fish/guestfish-actions.pod:773
18805 #, no-wrap
18806 msgid ""
18807 " df\n"
18808 "\n"
18809 msgstr ""
18810
18811 # type: =head2
18812 #: ../fish/guestfish-actions.pod:781
18813 msgid "df-h"
18814 msgstr ""
18815
18816 # type: verbatim
18817 #: ../fish/guestfish-actions.pod:783
18818 #, no-wrap
18819 msgid ""
18820 " df-h\n"
18821 "\n"
18822 msgstr ""
18823
18824 # type: =head2
18825 #: ../fish/guestfish-actions.pod:792
18826 msgid "dmesg"
18827 msgstr ""
18828
18829 # type: verbatim
18830 #: ../fish/guestfish-actions.pod:794
18831 #, no-wrap
18832 msgid ""
18833 " dmesg\n"
18834 "\n"
18835 msgstr ""
18836
18837 # type: textblock
18838 #: ../fish/guestfish-actions.pod:800
18839 msgid ""
18840 "Another way to get the same information is to enable verbose messages with "
18841 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
18842 "before running the program."
18843 msgstr ""
18844
18845 # type: =head2
18846 #: ../fish/guestfish-actions.pod:805
18847 msgid "download"
18848 msgstr ""
18849
18850 # type: verbatim
18851 #: ../fish/guestfish-actions.pod:807
18852 #, no-wrap
18853 msgid ""
18854 " download remotefilename (filename|-)\n"
18855 "\n"
18856 msgstr ""
18857
18858 # type: textblock
18859 #: ../fish/guestfish-actions.pod:814
18860 msgid "See also L</upload>, L</cat>."
18861 msgstr ""
18862
18863 # type: =head2
18864 #: ../fish/guestfish-actions.pod:818
18865 msgid "download-offset"
18866 msgstr ""
18867
18868 # type: verbatim
18869 #: ../fish/guestfish-actions.pod:820
18870 #, no-wrap
18871 msgid ""
18872 " download-offset remotefilename (filename|-) offset size\n"
18873 "\n"
18874 msgstr ""
18875
18876 # type: textblock
18877 #: ../fish/guestfish-actions.pod:828
18878 msgid ""
18879 "Note that there is no limit on the amount of data that can be downloaded "
18880 "with this call, unlike with L</pread>, and this call always reads the full "
18881 "amount unless an error occurs."
18882 msgstr ""
18883
18884 # type: textblock
18885 #: ../fish/guestfish-actions.pod:833
18886 msgid "See also L</download>, L</pread>."
18887 msgstr ""
18888
18889 # type: =head2
18890 #: ../fish/guestfish-actions.pod:837
18891 msgid "drop-caches"
18892 msgstr ""
18893
18894 # type: verbatim
18895 #: ../fish/guestfish-actions.pod:839
18896 #, no-wrap
18897 msgid ""
18898 " drop-caches whattodrop\n"
18899 "\n"
18900 msgstr ""
18901
18902 # type: =head2
18903 #: ../fish/guestfish-actions.pod:851
18904 msgid "du"
18905 msgstr ""
18906
18907 # type: verbatim
18908 #: ../fish/guestfish-actions.pod:853
18909 #, no-wrap
18910 msgid ""
18911 " du path\n"
18912 "\n"
18913 msgstr ""
18914
18915 # type: =head2
18916 #: ../fish/guestfish-actions.pod:865
18917 msgid "e2fsck-f"
18918 msgstr ""
18919
18920 # type: verbatim
18921 #: ../fish/guestfish-actions.pod:867
18922 #, no-wrap
18923 msgid ""
18924 " e2fsck-f device\n"
18925 "\n"
18926 msgstr ""
18927
18928 # type: textblock
18929 #: ../fish/guestfish-actions.pod:873
18930 msgid ""
18931 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
18932 "should use L</fsck>."
18933 msgstr ""
18934
18935 # type: =head2
18936 #: ../fish/guestfish-actions.pod:876
18937 msgid "echo-daemon"
18938 msgstr ""
18939
18940 # type: verbatim
18941 #: ../fish/guestfish-actions.pod:878
18942 #, no-wrap
18943 msgid ""
18944 " echo-daemon 'words ...'\n"
18945 "\n"
18946 msgstr ""
18947
18948 # type: textblock
18949 #: ../fish/guestfish-actions.pod:885
18950 msgid "See also L</ping-daemon>."
18951 msgstr ""
18952
18953 # type: =head2
18954 #: ../fish/guestfish-actions.pod:887
18955 msgid "egrep"
18956 msgstr ""
18957
18958 # type: verbatim
18959 #: ../fish/guestfish-actions.pod:889
18960 #, no-wrap
18961 msgid ""
18962 " egrep regex path\n"
18963 "\n"
18964 msgstr ""
18965
18966 # type: =head2
18967 #: ../fish/guestfish-actions.pod:897
18968 msgid "egrepi"
18969 msgstr ""
18970
18971 # type: verbatim
18972 #: ../fish/guestfish-actions.pod:899
18973 #, no-wrap
18974 msgid ""
18975 " egrepi regex path\n"
18976 "\n"
18977 msgstr ""
18978
18979 # type: =head2
18980 #: ../fish/guestfish-actions.pod:907
18981 msgid "equal"
18982 msgstr ""
18983
18984 # type: verbatim
18985 #: ../fish/guestfish-actions.pod:909
18986 #, no-wrap
18987 msgid ""
18988 " equal file1 file2\n"
18989 "\n"
18990 msgstr ""
18991
18992 # type: =head2
18993 #: ../fish/guestfish-actions.pod:916
18994 msgid "exists"
18995 msgstr ""
18996
18997 # type: verbatim
18998 #: ../fish/guestfish-actions.pod:918
18999 #, no-wrap
19000 msgid ""
19001 " exists path\n"
19002 "\n"
19003 msgstr ""
19004
19005 # type: textblock
19006 #: ../fish/guestfish-actions.pod:923
19007 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19008 msgstr ""
19009
19010 # type: =head2
19011 #: ../fish/guestfish-actions.pod:925
19012 msgid "fallocate"
19013 msgstr ""
19014
19015 # type: verbatim
19016 #: ../fish/guestfish-actions.pod:927
19017 #, no-wrap
19018 msgid ""
19019 " fallocate path len\n"
19020 "\n"
19021 msgstr ""
19022
19023 # type: =head2
19024 #: ../fish/guestfish-actions.pod:944
19025 msgid "fallocate64"
19026 msgstr ""
19027
19028 # type: verbatim
19029 #: ../fish/guestfish-actions.pod:946
19030 #, no-wrap
19031 msgid ""
19032 " fallocate64 path len\n"
19033 "\n"
19034 msgstr ""
19035
19036 # type: textblock
19037 #: ../fish/guestfish-actions.pod:952
19038 msgid ""
19039 "Note that this call allocates disk blocks for the file.  To create a sparse "
19040 "file use L</truncate-size> instead."
19041 msgstr ""
19042
19043 # type: textblock
19044 #: ../fish/guestfish-actions.pod:955
19045 msgid ""
19046 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19047 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19048 "maximum size of files created through that call to 1GB."
19049 msgstr ""
19050
19051 # type: =head2
19052 #: ../fish/guestfish-actions.pod:964
19053 msgid "fgrep"
19054 msgstr ""
19055
19056 # type: verbatim
19057 #: ../fish/guestfish-actions.pod:966
19058 #, no-wrap
19059 msgid ""
19060 " fgrep pattern path\n"
19061 "\n"
19062 msgstr ""
19063
19064 # type: =head2
19065 #: ../fish/guestfish-actions.pod:974
19066 msgid "fgrepi"
19067 msgstr ""
19068
19069 # type: verbatim
19070 #: ../fish/guestfish-actions.pod:976
19071 #, no-wrap
19072 msgid ""
19073 " fgrepi pattern path\n"
19074 "\n"
19075 msgstr ""
19076
19077 # type: =head2
19078 #: ../fish/guestfish-actions.pod:984
19079 msgid "file"
19080 msgstr ""
19081
19082 # type: verbatim
19083 #: ../fish/guestfish-actions.pod:986
19084 #, no-wrap
19085 msgid ""
19086 " file path\n"
19087 "\n"
19088 msgstr ""
19089
19090 # type: textblock
19091 #: ../fish/guestfish-actions.pod:998
19092 msgid ""
19093 "This command can also be used on C</dev/> devices (and partitions, LV "
19094 "names).  You can for example use this to determine if a device contains a "
19095 "filesystem, although it's usually better to use L</vfs-type>."
19096 msgstr ""
19097
19098 # type: =head2
19099 #: ../fish/guestfish-actions.pod:1008
19100 msgid "file-architecture"
19101 msgstr ""
19102
19103 # type: verbatim
19104 #: ../fish/guestfish-actions.pod:1010
19105 #, no-wrap
19106 msgid ""
19107 " file-architecture filename\n"
19108 "\n"
19109 msgstr ""
19110
19111 # type: =head2
19112 #: ../fish/guestfish-actions.pod:1113
19113 msgid "filesize"
19114 msgstr ""
19115
19116 # type: verbatim
19117 #: ../fish/guestfish-actions.pod:1115
19118 #, no-wrap
19119 msgid ""
19120 " filesize file\n"
19121 "\n"
19122 msgstr ""
19123
19124 # type: textblock
19125 #: ../fish/guestfish-actions.pod:1119
19126 msgid ""
19127 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
19128 "L</is-file> etc.  To get the size of block devices, use "
19129 "L</blockdev-getsize64>."
19130 msgstr ""
19131
19132 # type: =head2
19133 #: ../fish/guestfish-actions.pod:1123
19134 msgid "fill"
19135 msgstr ""
19136
19137 # type: verbatim
19138 #: ../fish/guestfish-actions.pod:1125
19139 #, no-wrap
19140 msgid ""
19141 " fill c len path\n"
19142 "\n"
19143 msgstr ""
19144
19145 # type: textblock
19146 #: ../fish/guestfish-actions.pod:1131
19147 msgid ""
19148 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
19149 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
19150 "L</fill-pattern>."
19151 msgstr ""
19152
19153 # type: =head2
19154 #: ../fish/guestfish-actions.pod:1136
19155 msgid "fill-pattern"
19156 msgstr ""
19157
19158 # type: verbatim
19159 #: ../fish/guestfish-actions.pod:1138
19160 #, no-wrap
19161 msgid ""
19162 " fill-pattern pattern len path\n"
19163 "\n"
19164 msgstr ""
19165
19166 # type: textblock
19167 #: ../fish/guestfish-actions.pod:1140
19168 msgid ""
19169 "This function is like L</fill> except that it creates a new file of length "
19170 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
19171 "is truncated if necessary to ensure the length of the file is exactly C<len> "
19172 "bytes."
19173 msgstr ""
19174
19175 # type: =head2
19176 #: ../fish/guestfish-actions.pod:1145
19177 msgid "find"
19178 msgstr ""
19179
19180 # type: verbatim
19181 #: ../fish/guestfish-actions.pod:1147
19182 #, no-wrap
19183 msgid ""
19184 " find directory\n"
19185 "\n"
19186 msgstr ""
19187
19188 # type: textblock
19189 #: ../fish/guestfish-actions.pod:1161
19190 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
19191 msgstr ""
19192
19193 # type: textblock
19194 #: ../fish/guestfish-actions.pod:1174
19195 msgid "See also L</find0>."
19196 msgstr ""
19197
19198 # type: =head2
19199 #: ../fish/guestfish-actions.pod:1179
19200 msgid "find0"
19201 msgstr ""
19202
19203 # type: verbatim
19204 #: ../fish/guestfish-actions.pod:1181
19205 #, no-wrap
19206 msgid ""
19207 " find0 directory (files|-)\n"
19208 "\n"
19209 msgstr ""
19210
19211 # type: textblock
19212 #: ../fish/guestfish-actions.pod:1187
19213 msgid "This command works the same way as L</find> with the following exceptions:"
19214 msgstr ""
19215
19216 # type: =head2
19217 #: ../fish/guestfish-actions.pod:1214
19218 msgid "findfs-label"
19219 msgstr ""
19220
19221 # type: verbatim
19222 #: ../fish/guestfish-actions.pod:1216
19223 #, no-wrap
19224 msgid ""
19225 " findfs-label label\n"
19226 "\n"
19227 msgstr ""
19228
19229 # type: textblock
19230 #: ../fish/guestfish-actions.pod:1222
19231 msgid "To find the label of a filesystem, use L</vfs-label>."
19232 msgstr ""
19233
19234 # type: =head2
19235 #: ../fish/guestfish-actions.pod:1224
19236 msgid "findfs-uuid"
19237 msgstr ""
19238
19239 # type: verbatim
19240 #: ../fish/guestfish-actions.pod:1226
19241 #, no-wrap
19242 msgid ""
19243 " findfs-uuid uuid\n"
19244 "\n"
19245 msgstr ""
19246
19247 # type: textblock
19248 #: ../fish/guestfish-actions.pod:1232
19249 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
19250 msgstr ""
19251
19252 # type: =head2
19253 #: ../fish/guestfish-actions.pod:1234
19254 msgid "fsck"
19255 msgstr ""
19256
19257 # type: verbatim
19258 #: ../fish/guestfish-actions.pod:1236
19259 #, no-wrap
19260 msgid ""
19261 " fsck fstype device\n"
19262 "\n"
19263 msgstr ""
19264
19265 # type: =head2
19266 #: ../fish/guestfish-actions.pod:1266
19267 msgid "get-append"
19268 msgstr ""
19269
19270 # type: verbatim
19271 #: ../fish/guestfish-actions.pod:1268
19272 #, no-wrap
19273 msgid ""
19274 " get-append\n"
19275 "\n"
19276 msgstr ""
19277
19278 # type: =head2
19279 #: ../fish/guestfish-actions.pod:1275
19280 msgid "get-autosync"
19281 msgstr ""
19282
19283 # type: verbatim
19284 #: ../fish/guestfish-actions.pod:1277
19285 #, no-wrap
19286 msgid ""
19287 " get-autosync\n"
19288 "\n"
19289 msgstr ""
19290
19291 # type: =head2
19292 #: ../fish/guestfish-actions.pod:1281
19293 msgid "get-direct"
19294 msgstr ""
19295
19296 # type: verbatim
19297 #: ../fish/guestfish-actions.pod:1283
19298 #, no-wrap
19299 msgid ""
19300 " get-direct\n"
19301 "\n"
19302 msgstr ""
19303
19304 # type: =head2
19305 #: ../fish/guestfish-actions.pod:1287
19306 msgid "get-e2label"
19307 msgstr ""
19308
19309 # type: verbatim
19310 #: ../fish/guestfish-actions.pod:1289
19311 #, no-wrap
19312 msgid ""
19313 " get-e2label device\n"
19314 "\n"
19315 msgstr ""
19316
19317 # type: =head2
19318 #: ../fish/guestfish-actions.pod:1301
19319 msgid "get-e2uuid"
19320 msgstr ""
19321
19322 # type: verbatim
19323 #: ../fish/guestfish-actions.pod:1303
19324 #, no-wrap
19325 msgid ""
19326 " get-e2uuid device\n"
19327 "\n"
19328 msgstr ""
19329
19330 # type: =head2
19331 #: ../fish/guestfish-actions.pod:1315
19332 msgid "get-memsize"
19333 msgstr ""
19334
19335 # type: verbatim
19336 #: ../fish/guestfish-actions.pod:1317
19337 #, no-wrap
19338 msgid ""
19339 " get-memsize\n"
19340 "\n"
19341 msgstr ""
19342
19343 # type: textblock
19344 #: ../fish/guestfish-actions.pod:1322
19345 msgid ""
19346 "If L</set-memsize> was not called on this handle, and if "
19347 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
19348 "value for memsize."
19349 msgstr ""
19350
19351 # type: =head2
19352 #: ../fish/guestfish-actions.pod:1329
19353 msgid "get-network"
19354 msgstr ""
19355
19356 # type: verbatim
19357 #: ../fish/guestfish-actions.pod:1331
19358 #, no-wrap
19359 msgid ""
19360 " get-network\n"
19361 "\n"
19362 msgstr ""
19363
19364 # type: =head2
19365 #: ../fish/guestfish-actions.pod:1335
19366 msgid "get-path"
19367 msgstr ""
19368
19369 # type: verbatim
19370 #: ../fish/guestfish-actions.pod:1337
19371 #, no-wrap
19372 msgid ""
19373 " get-path\n"
19374 "\n"
19375 msgstr ""
19376
19377 # type: =head2
19378 #: ../fish/guestfish-actions.pod:1344
19379 msgid "get-pid"
19380 msgstr ""
19381
19382 # type: =head2
19383 #: ../fish/guestfish-actions.pod:1346
19384 msgid "pid"
19385 msgstr ""
19386
19387 # type: verbatim
19388 #: ../fish/guestfish-actions.pod:1348
19389 #, no-wrap
19390 msgid ""
19391 " get-pid\n"
19392 "\n"
19393 msgstr ""
19394
19395 # type: =head2
19396 #: ../fish/guestfish-actions.pod:1355
19397 msgid "get-qemu"
19398 msgstr ""
19399
19400 # type: verbatim
19401 #: ../fish/guestfish-actions.pod:1357
19402 #, no-wrap
19403 msgid ""
19404 " get-qemu\n"
19405 "\n"
19406 msgstr ""
19407
19408 # type: =head2
19409 #: ../fish/guestfish-actions.pod:1364
19410 msgid "get-recovery-proc"
19411 msgstr ""
19412
19413 # type: verbatim
19414 #: ../fish/guestfish-actions.pod:1366
19415 #, no-wrap
19416 msgid ""
19417 " get-recovery-proc\n"
19418 "\n"
19419 msgstr ""
19420
19421 # type: =head2
19422 #: ../fish/guestfish-actions.pod:1370
19423 msgid "get-selinux"
19424 msgstr ""
19425
19426 # type: verbatim
19427 #: ../fish/guestfish-actions.pod:1372
19428 #, no-wrap
19429 msgid ""
19430 " get-selinux\n"
19431 "\n"
19432 msgstr ""
19433
19434 # type: textblock
19435 #: ../fish/guestfish-actions.pod:1374
19436 msgid ""
19437 "This returns the current setting of the selinux flag which is passed to the "
19438 "appliance at boot time.  See L</set-selinux>."
19439 msgstr ""
19440
19441 # type: =head2
19442 #: ../fish/guestfish-actions.pod:1380
19443 msgid "get-state"
19444 msgstr ""
19445
19446 # type: verbatim
19447 #: ../fish/guestfish-actions.pod:1382
19448 #, no-wrap
19449 msgid ""
19450 " get-state\n"
19451 "\n"
19452 msgstr ""
19453
19454 # type: =head2
19455 #: ../fish/guestfish-actions.pod:1389
19456 msgid "get-trace"
19457 msgstr ""
19458
19459 # type: verbatim
19460 #: ../fish/guestfish-actions.pod:1391
19461 #, no-wrap
19462 msgid ""
19463 " get-trace\n"
19464 "\n"
19465 msgstr ""
19466
19467 # type: =head2
19468 #: ../fish/guestfish-actions.pod:1395
19469 msgid "get-umask"
19470 msgstr ""
19471
19472 # type: verbatim
19473 #: ../fish/guestfish-actions.pod:1397
19474 #, no-wrap
19475 msgid ""
19476 " get-umask\n"
19477 "\n"
19478 msgstr ""
19479
19480 # type: textblock
19481 #: ../fish/guestfish-actions.pod:1399
19482 msgid ""
19483 "Return the current umask.  By default the umask is C<022> unless it has been "
19484 "set by calling L</umask>."
19485 msgstr ""
19486
19487 # type: =head2
19488 #: ../fish/guestfish-actions.pod:1402
19489 msgid "get-verbose"
19490 msgstr ""
19491
19492 # type: verbatim
19493 #: ../fish/guestfish-actions.pod:1404
19494 #, no-wrap
19495 msgid ""
19496 " get-verbose\n"
19497 "\n"
19498 msgstr ""
19499
19500 # type: =head2
19501 #: ../fish/guestfish-actions.pod:1408
19502 msgid "getcon"
19503 msgstr ""
19504
19505 # type: verbatim
19506 #: ../fish/guestfish-actions.pod:1410
19507 #, no-wrap
19508 msgid ""
19509 " getcon\n"
19510 "\n"
19511 msgstr ""
19512
19513 # type: textblock
19514 #: ../fish/guestfish-actions.pod:1414
19515 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
19516 msgstr ""
19517
19518 # type: =head2
19519 #: ../fish/guestfish-actions.pod:1417
19520 msgid "getxattrs"
19521 msgstr ""
19522
19523 # type: verbatim
19524 #: ../fish/guestfish-actions.pod:1419
19525 #, no-wrap
19526 msgid ""
19527 " getxattrs path\n"
19528 "\n"
19529 msgstr ""
19530
19531 # type: textblock
19532 #: ../fish/guestfish-actions.pod:1427
19533 msgid "See also: L</lgetxattrs>, L<attr(5)>."
19534 msgstr ""
19535
19536 # type: =head2
19537 #: ../fish/guestfish-actions.pod:1429
19538 msgid "glob-expand"
19539 msgstr ""
19540
19541 # type: verbatim
19542 #: ../fish/guestfish-actions.pod:1431
19543 #, no-wrap
19544 msgid ""
19545 " glob-expand pattern\n"
19546 "\n"
19547 msgstr ""
19548
19549 # type: =head2
19550 #: ../fish/guestfish-actions.pod:1444
19551 msgid "grep"
19552 msgstr ""
19553
19554 # type: verbatim
19555 #: ../fish/guestfish-actions.pod:1446
19556 #, no-wrap
19557 msgid ""
19558 " grep regex path\n"
19559 "\n"
19560 msgstr ""
19561
19562 # type: =head2
19563 #: ../fish/guestfish-actions.pod:1454
19564 msgid "grepi"
19565 msgstr ""
19566
19567 # type: verbatim
19568 #: ../fish/guestfish-actions.pod:1456
19569 #, no-wrap
19570 msgid ""
19571 " grepi regex path\n"
19572 "\n"
19573 msgstr ""
19574
19575 # type: =head2
19576 #: ../fish/guestfish-actions.pod:1464
19577 msgid "grub-install"
19578 msgstr ""
19579
19580 # type: verbatim
19581 #: ../fish/guestfish-actions.pod:1466
19582 #, no-wrap
19583 msgid ""
19584 " grub-install root device\n"
19585 "\n"
19586 msgstr ""
19587
19588 # type: =head2
19589 #: ../fish/guestfish-actions.pod:1482
19590 msgid "head"
19591 msgstr ""
19592
19593 # type: verbatim
19594 #: ../fish/guestfish-actions.pod:1484
19595 #, no-wrap
19596 msgid ""
19597 " head path\n"
19598 "\n"
19599 msgstr ""
19600
19601 # type: =head2
19602 #: ../fish/guestfish-actions.pod:1492
19603 msgid "head-n"
19604 msgstr ""
19605
19606 # type: verbatim
19607 #: ../fish/guestfish-actions.pod:1494
19608 #, no-wrap
19609 msgid ""
19610 " head-n nrlines path\n"
19611 "\n"
19612 msgstr ""
19613
19614 # type: =head2
19615 #: ../fish/guestfish-actions.pod:1507
19616 msgid "hexdump"
19617 msgstr ""
19618
19619 # type: verbatim
19620 #: ../fish/guestfish-actions.pod:1509
19621 #, no-wrap
19622 msgid ""
19623 " hexdump path\n"
19624 "\n"
19625 msgstr ""
19626
19627 # type: =head2
19628 #: ../fish/guestfish-actions.pod:1517
19629 msgid "initrd-cat"
19630 msgstr ""
19631
19632 # type: verbatim
19633 #: ../fish/guestfish-actions.pod:1519
19634 #, no-wrap
19635 msgid ""
19636 " initrd-cat initrdpath filename\n"
19637 "\n"
19638 msgstr ""
19639
19640 # type: textblock
19641 #: ../fish/guestfish-actions.pod:1531
19642 msgid "See also L</initrd-list>."
19643 msgstr ""
19644
19645 # type: =head2
19646 #: ../fish/guestfish-actions.pod:1536
19647 msgid "initrd-list"
19648 msgstr ""
19649
19650 # type: verbatim
19651 #: ../fish/guestfish-actions.pod:1538
19652 #, no-wrap
19653 msgid ""
19654 " initrd-list path\n"
19655 "\n"
19656 msgstr ""
19657
19658 # type: =head2
19659 #: ../fish/guestfish-actions.pod:1550
19660 msgid "inotify-add-watch"
19661 msgstr ""
19662
19663 # type: verbatim
19664 #: ../fish/guestfish-actions.pod:1552
19665 #, no-wrap
19666 msgid ""
19667 " inotify-add-watch path mask\n"
19668 "\n"
19669 msgstr ""
19670
19671 # type: =head2
19672 #: ../fish/guestfish-actions.pod:1564
19673 msgid "inotify-close"
19674 msgstr ""
19675
19676 # type: verbatim
19677 #: ../fish/guestfish-actions.pod:1566
19678 #, no-wrap
19679 msgid ""
19680 " inotify-close\n"
19681 "\n"
19682 msgstr ""
19683
19684 # type: =head2
19685 #: ../fish/guestfish-actions.pod:1572
19686 msgid "inotify-files"
19687 msgstr ""
19688
19689 # type: verbatim
19690 #: ../fish/guestfish-actions.pod:1574
19691 #, no-wrap
19692 msgid ""
19693 " inotify-files\n"
19694 "\n"
19695 msgstr ""
19696
19697 # type: textblock
19698 #: ../fish/guestfish-actions.pod:1576
19699 msgid ""
19700 "This function is a helpful wrapper around L</inotify-read> which just "
19701 "returns a list of pathnames of objects that were touched.  The returned "
19702 "pathnames are sorted and deduplicated."
19703 msgstr ""
19704
19705 # type: =head2
19706 #: ../fish/guestfish-actions.pod:1580
19707 msgid "inotify-init"
19708 msgstr ""
19709
19710 # type: verbatim
19711 #: ../fish/guestfish-actions.pod:1582
19712 #, no-wrap
19713 msgid ""
19714 " inotify-init maxevents\n"
19715 "\n"
19716 msgstr ""
19717
19718 # type: textblock
19719 #: ../fish/guestfish-actions.pod:1588
19720 msgid ""
19721 "C<maxevents> is the maximum number of events which will be queued up between "
19722 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
19723 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
19724 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
19725 "but records the fact that it threw them away by setting a flag "
19726 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
19727 msgstr ""
19728
19729 # type: textblock
19730 #: ../fish/guestfish-actions.pod:1598
19731 msgid ""
19732 "Before any events are generated, you have to add some watches to the "
19733 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
19734 "L</inotify-watch-all>."
19735 msgstr ""
19736
19737 # type: textblock
19738 #: ../fish/guestfish-actions.pod:1604
19739 msgid ""
19740 "Queued up events should be read periodically by calling L</inotify-read> (or "
19741 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
19742 "If you don't read the events out often enough then you risk the internal "
19743 "queue overflowing."
19744 msgstr ""
19745
19746 # type: textblock
19747 #: ../fish/guestfish-actions.pod:1611
19748 msgid ""
19749 "The handle should be closed after use by calling L</inotify-close>.  This "
19750 "also removes any watches automatically."
19751 msgstr ""
19752
19753 # type: =head2
19754 #: ../fish/guestfish-actions.pod:1620
19755 msgid "inotify-read"
19756 msgstr ""
19757
19758 # type: verbatim
19759 #: ../fish/guestfish-actions.pod:1622
19760 #, no-wrap
19761 msgid ""
19762 " inotify-read\n"
19763 "\n"
19764 msgstr ""
19765
19766 # type: =head2
19767 #: ../fish/guestfish-actions.pod:1635
19768 msgid "inotify-rm-watch"
19769 msgstr ""
19770
19771 # type: verbatim
19772 #: ../fish/guestfish-actions.pod:1637
19773 #, no-wrap
19774 msgid ""
19775 " inotify-rm-watch wd\n"
19776 "\n"
19777 msgstr ""
19778
19779 # type: textblock
19780 #: ../fish/guestfish-actions.pod:1639
19781 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
19782 msgstr ""
19783
19784 # type: =head2
19785 #: ../fish/guestfish-actions.pod:1642
19786 msgid "inspect-get-arch"
19787 msgstr ""
19788
19789 # type: verbatim
19790 #: ../fish/guestfish-actions.pod:1644
19791 #, no-wrap
19792 msgid ""
19793 " inspect-get-arch root\n"
19794 "\n"
19795 msgstr ""
19796
19797 # type: textblock
19798 #: ../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
19799 msgid ""
19800 "This function should only be called with a root device string as returned by "
19801 "L</inspect-os>."
19802 msgstr ""
19803
19804 # type: textblock
19805 #: ../fish/guestfish-actions.pod:1649
19806 msgid ""
19807 "This returns the architecture of the inspected operating system.  The "
19808 "possible return values are listed under L</file-architecture>."
19809 msgstr ""
19810
19811 # type: =head2
19812 #: ../fish/guestfish-actions.pod:1658
19813 msgid "inspect-get-distro"
19814 msgstr ""
19815
19816 # type: verbatim
19817 #: ../fish/guestfish-actions.pod:1660
19818 #, no-wrap
19819 msgid ""
19820 " inspect-get-distro root\n"
19821 "\n"
19822 msgstr ""
19823
19824 # type: =head2
19825 #: ../fish/guestfish-actions.pod:1724
19826 msgid "inspect-get-filesystems"
19827 msgstr ""
19828
19829 # type: verbatim
19830 #: ../fish/guestfish-actions.pod:1726
19831 #, no-wrap
19832 msgid ""
19833 " inspect-get-filesystems root\n"
19834 "\n"
19835 msgstr ""
19836
19837 # type: textblock
19838 #: ../fish/guestfish-actions.pod:1739
19839 msgid ""
19840 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19841 "L</inspect-get-mountpoints>."
19842 msgstr ""
19843
19844 # type: =head2
19845 #: ../fish/guestfish-actions.pod:1742
19846 msgid "inspect-get-major-version"
19847 msgstr ""
19848
19849 # type: verbatim
19850 #: ../fish/guestfish-actions.pod:1744
19851 #, no-wrap
19852 msgid ""
19853 " inspect-get-major-version root\n"
19854 "\n"
19855 msgstr ""
19856
19857 # type: =head2
19858 #: ../fish/guestfish-actions.pod:1763
19859 msgid "inspect-get-minor-version"
19860 msgstr ""
19861
19862 # type: verbatim
19863 #: ../fish/guestfish-actions.pod:1765
19864 #, no-wrap
19865 msgid ""
19866 " inspect-get-minor-version root\n"
19867 "\n"
19868 msgstr ""
19869
19870 # type: textblock
19871 #: ../fish/guestfish-actions.pod:1775
19872 msgid ""
19873 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19874 "L</inspect-get-major-version>."
19875 msgstr ""
19876
19877 # type: =head2
19878 #: ../fish/guestfish-actions.pod:1778
19879 msgid "inspect-get-mountpoints"
19880 msgstr ""
19881
19882 # type: verbatim
19883 #: ../fish/guestfish-actions.pod:1780
19884 #, no-wrap
19885 msgid ""
19886 " inspect-get-mountpoints root\n"
19887 "\n"
19888 msgstr ""
19889
19890 # type: textblock
19891 #: ../fish/guestfish-actions.pod:1798
19892 msgid ""
19893 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
19894 "L</inspect-get-filesystems>."
19895 msgstr ""
19896
19897 # type: =head2
19898 #: ../fish/guestfish-actions.pod:1801
19899 msgid "inspect-get-product-name"
19900 msgstr ""
19901
19902 # type: verbatim
19903 #: ../fish/guestfish-actions.pod:1803
19904 #, no-wrap
19905 msgid ""
19906 " inspect-get-product-name root\n"
19907 "\n"
19908 msgstr ""
19909
19910 # type: =head2
19911 #: ../fish/guestfish-actions.pod:1818
19912 msgid "inspect-get-type"
19913 msgstr ""
19914
19915 # type: verbatim
19916 #: ../fish/guestfish-actions.pod:1820
19917 #, no-wrap
19918 msgid ""
19919 " inspect-get-type root\n"
19920 "\n"
19921 msgstr ""
19922
19923 # type: =head2
19924 #: ../fish/guestfish-actions.pod:1849
19925 msgid "inspect-get-windows-systemroot"
19926 msgstr ""
19927
19928 # type: verbatim
19929 #: ../fish/guestfish-actions.pod:1851
19930 #, no-wrap
19931 msgid ""
19932 " inspect-get-windows-systemroot root\n"
19933 "\n"
19934 msgstr ""
19935
19936 # type: =head2
19937 #: ../fish/guestfish-actions.pod:1865
19938 msgid "inspect-os"
19939 msgstr ""
19940
19941 # type: verbatim
19942 #: ../fish/guestfish-actions.pod:1867
19943 #, no-wrap
19944 msgid ""
19945 " inspect-os\n"
19946 "\n"
19947 msgstr ""
19948
19949 # type: textblock
19950 #: ../fish/guestfish-actions.pod:1882
19951 msgid ""
19952 "You can pass the root string(s) returned to other L</inspect-get-*> "
19953 "functions in order to query further information about each operating system, "
19954 "such as the name and version."
19955 msgstr ""
19956
19957 # type: textblock
19958 #: ../fish/guestfish-actions.pod:1887
19959 msgid ""
19960 "This function uses other libguestfs features such as L</mount-ro> and "
19961 "L</umount-all> in order to mount and unmount filesystems and look at the "
19962 "contents.  This should be called with no disks currently mounted.  The "
19963 "function may also use Augeas, so any existing Augeas handle will be closed."
19964 msgstr ""
19965
19966 # type: textblock
19967 #: ../fish/guestfish-actions.pod:1899 ../fish/guestfish-actions.pod:2055 ../fish/guestfish-actions.pod:2101
19968 msgid "See also L</list-filesystems>."
19969 msgstr ""
19970
19971 # type: =head2
19972 #: ../fish/guestfish-actions.pod:1901
19973 msgid "is-blockdev"
19974 msgstr ""
19975
19976 # type: verbatim
19977 #: ../fish/guestfish-actions.pod:1903
19978 #, no-wrap
19979 msgid ""
19980 " is-blockdev path\n"
19981 "\n"
19982 msgstr ""
19983
19984 # type: textblock
19985 #: ../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
19986 msgid "See also L</stat>."
19987 msgstr ""
19988
19989 # type: =head2
19990 #: ../fish/guestfish-actions.pod:1910
19991 msgid "is-busy"
19992 msgstr ""
19993
19994 # type: verbatim
19995 #: ../fish/guestfish-actions.pod:1912
19996 #, no-wrap
19997 msgid ""
19998 " is-busy\n"
19999 "\n"
20000 msgstr ""
20001
20002 # type: =head2
20003 #: ../fish/guestfish-actions.pod:1919
20004 msgid "is-chardev"
20005 msgstr ""
20006
20007 # type: verbatim
20008 #: ../fish/guestfish-actions.pod:1921
20009 #, no-wrap
20010 msgid ""
20011 " is-chardev path\n"
20012 "\n"
20013 msgstr ""
20014
20015 # type: =head2
20016 #: ../fish/guestfish-actions.pod:1928
20017 msgid "is-config"
20018 msgstr ""
20019
20020 # type: verbatim
20021 #: ../fish/guestfish-actions.pod:1930
20022 #, no-wrap
20023 msgid ""
20024 " is-config\n"
20025 "\n"
20026 msgstr ""
20027
20028 # type: =head2
20029 #: ../fish/guestfish-actions.pod:1937
20030 msgid "is-dir"
20031 msgstr ""
20032
20033 # type: verbatim
20034 #: ../fish/guestfish-actions.pod:1939
20035 #, no-wrap
20036 msgid ""
20037 " is-dir path\n"
20038 "\n"
20039 msgstr ""
20040
20041 # type: =head2
20042 #: ../fish/guestfish-actions.pod:1947
20043 msgid "is-fifo"
20044 msgstr ""
20045
20046 # type: verbatim
20047 #: ../fish/guestfish-actions.pod:1949
20048 #, no-wrap
20049 msgid ""
20050 " is-fifo path\n"
20051 "\n"
20052 msgstr ""
20053
20054 # type: =head2
20055 #: ../fish/guestfish-actions.pod:1956
20056 msgid "is-file"
20057 msgstr ""
20058
20059 # type: verbatim
20060 #: ../fish/guestfish-actions.pod:1958
20061 #, no-wrap
20062 msgid ""
20063 " is-file path\n"
20064 "\n"
20065 msgstr ""
20066
20067 # type: =head2
20068 #: ../fish/guestfish-actions.pod:1966
20069 msgid "is-launching"
20070 msgstr ""
20071
20072 # type: verbatim
20073 #: ../fish/guestfish-actions.pod:1968
20074 #, no-wrap
20075 msgid ""
20076 " is-launching\n"
20077 "\n"
20078 msgstr ""
20079
20080 # type: =head2
20081 #: ../fish/guestfish-actions.pod:1975
20082 msgid "is-lv"
20083 msgstr ""
20084
20085 # type: verbatim
20086 #: ../fish/guestfish-actions.pod:1977
20087 #, no-wrap
20088 msgid ""
20089 " is-lv device\n"
20090 "\n"
20091 msgstr ""
20092
20093 # type: =head2
20094 #: ../fish/guestfish-actions.pod:1982
20095 msgid "is-ready"
20096 msgstr ""
20097
20098 # type: verbatim
20099 #: ../fish/guestfish-actions.pod:1984
20100 #, no-wrap
20101 msgid ""
20102 " is-ready\n"
20103 "\n"
20104 msgstr ""
20105
20106 # type: =head2
20107 #: ../fish/guestfish-actions.pod:1991
20108 msgid "is-socket"
20109 msgstr ""
20110
20111 # type: verbatim
20112 #: ../fish/guestfish-actions.pod:1993
20113 #, no-wrap
20114 msgid ""
20115 " is-socket path\n"
20116 "\n"
20117 msgstr ""
20118
20119 # type: =head2
20120 #: ../fish/guestfish-actions.pod:2000
20121 msgid "is-symlink"
20122 msgstr ""
20123
20124 # type: verbatim
20125 #: ../fish/guestfish-actions.pod:2002
20126 #, no-wrap
20127 msgid ""
20128 " is-symlink path\n"
20129 "\n"
20130 msgstr ""
20131
20132 # type: =head2
20133 #: ../fish/guestfish-actions.pod:2009
20134 msgid "kill-subprocess"
20135 msgstr ""
20136
20137 # type: verbatim
20138 #: ../fish/guestfish-actions.pod:2011
20139 #, no-wrap
20140 msgid ""
20141 " kill-subprocess\n"
20142 "\n"
20143 msgstr ""
20144
20145 # type: =head2
20146 #: ../fish/guestfish-actions.pod:2015
20147 msgid "launch"
20148 msgstr ""
20149
20150 # type: =head2
20151 #: ../fish/guestfish-actions.pod:2017
20152 msgid "run"
20153 msgstr ""
20154
20155 # type: verbatim
20156 #: ../fish/guestfish-actions.pod:2019
20157 #, no-wrap
20158 msgid ""
20159 " launch\n"
20160 "\n"
20161 msgstr ""
20162
20163 # type: =head2
20164 #: ../fish/guestfish-actions.pod:2027
20165 msgid "lchown"
20166 msgstr ""
20167
20168 # type: verbatim
20169 #: ../fish/guestfish-actions.pod:2029
20170 #, no-wrap
20171 msgid ""
20172 " lchown owner group path\n"
20173 "\n"
20174 msgstr ""
20175
20176 # type: textblock
20177 #: ../fish/guestfish-actions.pod:2031
20178 msgid ""
20179 "Change the file owner to C<owner> and group to C<group>.  This is like "
20180 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
20181 "the target."
20182 msgstr ""
20183
20184 # type: =head2
20185 #: ../fish/guestfish-actions.pod:2039
20186 msgid "lgetxattrs"
20187 msgstr ""
20188
20189 # type: verbatim
20190 #: ../fish/guestfish-actions.pod:2041
20191 #, no-wrap
20192 msgid ""
20193 " lgetxattrs path\n"
20194 "\n"
20195 msgstr ""
20196
20197 # type: textblock
20198 #: ../fish/guestfish-actions.pod:2043
20199 msgid ""
20200 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
20201 "it returns the extended attributes of the link itself."
20202 msgstr ""
20203
20204 # type: =head2
20205 #: ../fish/guestfish-actions.pod:2047
20206 msgid "list-devices"
20207 msgstr ""
20208
20209 # type: verbatim
20210 #: ../fish/guestfish-actions.pod:2049
20211 #, no-wrap
20212 msgid ""
20213 " list-devices\n"
20214 "\n"
20215 msgstr ""
20216
20217 # type: =head2
20218 #: ../fish/guestfish-actions.pod:2057
20219 msgid "list-filesystems"
20220 msgstr ""
20221
20222 # type: verbatim
20223 #: ../fish/guestfish-actions.pod:2059
20224 #, no-wrap
20225 msgid ""
20226 " list-filesystems\n"
20227 "\n"
20228 msgstr ""
20229
20230 # type: textblock
20231 #: ../fish/guestfish-actions.pod:2078
20232 msgid ""
20233 "This command runs other libguestfs commands, which might include L</mount> "
20234 "and L</umount>, and therefore you should use this soon after launch and only "
20235 "when nothing is mounted."
20236 msgstr ""
20237
20238 # type: textblock
20239 #: ../fish/guestfish-actions.pod:2082
20240 msgid ""
20241 "Not all of the filesystems returned will be mountable.  In particular, swap "
20242 "partitions are returned in the list.  Also this command does not check that "
20243 "each filesystem found is valid and mountable, and some filesystems might be "
20244 "mountable but require special options.  Filesystems may not all belong to a "
20245 "single logical operating system (use L</inspect-os> to look for OSes)."
20246 msgstr ""
20247
20248 # type: =head2
20249 #: ../fish/guestfish-actions.pod:2090
20250 msgid "list-partitions"
20251 msgstr ""
20252
20253 # type: verbatim
20254 #: ../fish/guestfish-actions.pod:2092
20255 #, no-wrap
20256 msgid ""
20257 " list-partitions\n"
20258 "\n"
20259 msgstr ""
20260
20261 # type: textblock
20262 #: ../fish/guestfish-actions.pod:2098
20263 msgid ""
20264 "This does not return logical volumes.  For that you will need to call "
20265 "L</lvs>."
20266 msgstr ""
20267
20268 # type: =head2
20269 #: ../fish/guestfish-actions.pod:2103
20270 msgid "ll"
20271 msgstr ""
20272
20273 # type: verbatim
20274 #: ../fish/guestfish-actions.pod:2105
20275 #, no-wrap
20276 msgid ""
20277 " ll directory\n"
20278 "\n"
20279 msgstr ""
20280
20281 # type: =head2
20282 #: ../fish/guestfish-actions.pod:2113
20283 msgid "ln"
20284 msgstr ""
20285
20286 # type: verbatim
20287 #: ../fish/guestfish-actions.pod:2115
20288 #, no-wrap
20289 msgid ""
20290 " ln target linkname\n"
20291 "\n"
20292 msgstr ""
20293
20294 # type: =head2
20295 #: ../fish/guestfish-actions.pod:2119
20296 msgid "ln-f"
20297 msgstr ""
20298
20299 # type: verbatim
20300 #: ../fish/guestfish-actions.pod:2121
20301 #, no-wrap
20302 msgid ""
20303 " ln-f target linkname\n"
20304 "\n"
20305 msgstr ""
20306
20307 # type: =head2
20308 #: ../fish/guestfish-actions.pod:2126
20309 msgid "ln-s"
20310 msgstr ""
20311
20312 # type: verbatim
20313 #: ../fish/guestfish-actions.pod:2128
20314 #, no-wrap
20315 msgid ""
20316 " ln-s target linkname\n"
20317 "\n"
20318 msgstr ""
20319
20320 # type: =head2
20321 #: ../fish/guestfish-actions.pod:2132
20322 msgid "ln-sf"
20323 msgstr ""
20324
20325 # type: verbatim
20326 #: ../fish/guestfish-actions.pod:2134
20327 #, no-wrap
20328 msgid ""
20329 " ln-sf target linkname\n"
20330 "\n"
20331 msgstr ""
20332
20333 # type: =head2
20334 #: ../fish/guestfish-actions.pod:2139
20335 msgid "lremovexattr"
20336 msgstr ""
20337
20338 # type: verbatim
20339 #: ../fish/guestfish-actions.pod:2141
20340 #, no-wrap
20341 msgid ""
20342 " lremovexattr xattr path\n"
20343 "\n"
20344 msgstr ""
20345
20346 # type: textblock
20347 #: ../fish/guestfish-actions.pod:2143
20348 msgid ""
20349 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
20350 "it removes an extended attribute of the link itself."
20351 msgstr ""
20352
20353 # type: =head2
20354 #: ../fish/guestfish-actions.pod:2147
20355 msgid "ls"
20356 msgstr ""
20357
20358 # type: verbatim
20359 #: ../fish/guestfish-actions.pod:2149
20360 #, no-wrap
20361 msgid ""
20362 " ls directory\n"
20363 "\n"
20364 msgstr ""
20365
20366 # type: textblock
20367 #: ../fish/guestfish-actions.pod:2155
20368 msgid ""
20369 "This command is mostly useful for interactive sessions.  Programs should "
20370 "probably use L</readdir> instead."
20371 msgstr ""
20372
20373 # type: =head2
20374 #: ../fish/guestfish-actions.pod:2158
20375 msgid "lsetxattr"
20376 msgstr ""
20377
20378 # type: verbatim
20379 #: ../fish/guestfish-actions.pod:2160
20380 #, no-wrap
20381 msgid ""
20382 " lsetxattr xattr val vallen path\n"
20383 "\n"
20384 msgstr ""
20385
20386 # type: textblock
20387 #: ../fish/guestfish-actions.pod:2162
20388 msgid ""
20389 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
20390 "sets an extended attribute of the link itself."
20391 msgstr ""
20392
20393 # type: =head2
20394 #: ../fish/guestfish-actions.pod:2166
20395 msgid "lstat"
20396 msgstr ""
20397
20398 # type: verbatim
20399 #: ../fish/guestfish-actions.pod:2168
20400 #, no-wrap
20401 msgid ""
20402 " lstat path\n"
20403 "\n"
20404 msgstr ""
20405
20406 # type: textblock
20407 #: ../fish/guestfish-actions.pod:2172
20408 msgid ""
20409 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
20410 "the link is stat-ed, not the file it refers to."
20411 msgstr ""
20412
20413 # type: =head2
20414 #: ../fish/guestfish-actions.pod:2178
20415 msgid "lstatlist"
20416 msgstr ""
20417
20418 # type: verbatim
20419 #: ../fish/guestfish-actions.pod:2180
20420 #, no-wrap
20421 msgid ""
20422 " lstatlist path 'names ...'\n"
20423 "\n"
20424 msgstr ""
20425
20426 # type: textblock
20427 #: ../fish/guestfish-actions.pod:2182
20428 msgid ""
20429 "This call allows you to perform the L</lstat> operation on multiple files, "
20430 "where all files are in the directory C<path>.  C<names> is the list of files "
20431 "from this directory."
20432 msgstr ""
20433
20434 # type: textblock
20435 #: ../fish/guestfish-actions.pod:2191
20436 msgid ""
20437 "This call is intended for programs that want to efficiently list a directory "
20438 "contents without making many round-trips.  See also L</lxattrlist> for a "
20439 "similarly efficient call for getting extended attributes.  Very long "
20440 "directory listings might cause the protocol message size to be exceeded, "
20441 "causing this call to fail.  The caller must split up such requests into "
20442 "smaller groups of names."
20443 msgstr ""
20444
20445 # type: =head2
20446 #: ../fish/guestfish-actions.pod:2199
20447 msgid "luks-add-key"
20448 msgstr ""
20449
20450 # type: verbatim
20451 #: ../fish/guestfish-actions.pod:2201
20452 #, no-wrap
20453 msgid ""
20454 " luks-add-key device keyslot\n"
20455 "\n"
20456 msgstr ""
20457
20458 # type: textblock
20459 #: ../fish/guestfish-actions.pod:2208
20460 msgid ""
20461 "Note that if C<keyslot> already contains a key, then this command will "
20462 "fail.  You have to use L</luks-kill-slot> first to remove that key."
20463 msgstr ""
20464
20465 # type: textblock
20466 #: ../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
20467 msgid ""
20468 "This command has one or more key or passphrase parameters.  Guestfish will "
20469 "prompt for these separately."
20470 msgstr ""
20471
20472 # type: =head2
20473 #: ../fish/guestfish-actions.pod:2215
20474 msgid "luks-close"
20475 msgstr ""
20476
20477 # type: verbatim
20478 #: ../fish/guestfish-actions.pod:2217
20479 #, no-wrap
20480 msgid ""
20481 " luks-close device\n"
20482 "\n"
20483 msgstr ""
20484
20485 # type: textblock
20486 #: ../fish/guestfish-actions.pod:2219
20487 msgid ""
20488 "This closes a LUKS device that was created earlier by L</luks-open> or "
20489 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
20490 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
20491 "underlying block device."
20492 msgstr ""
20493
20494 # type: =head2
20495 #: ../fish/guestfish-actions.pod:2225
20496 msgid "luks-format"
20497 msgstr ""
20498
20499 # type: verbatim
20500 #: ../fish/guestfish-actions.pod:2227
20501 #, no-wrap
20502 msgid ""
20503 " luks-format device keyslot\n"
20504 "\n"
20505 msgstr ""
20506
20507 # type: =head2
20508 #: ../fish/guestfish-actions.pod:2240
20509 msgid "luks-format-cipher"
20510 msgstr ""
20511
20512 # type: verbatim
20513 #: ../fish/guestfish-actions.pod:2242
20514 #, no-wrap
20515 msgid ""
20516 " luks-format-cipher device keyslot cipher\n"
20517 "\n"
20518 msgstr ""
20519
20520 # type: textblock
20521 #: ../fish/guestfish-actions.pod:2244
20522 msgid ""
20523 "This command is the same as L</luks-format> but it also allows you to set "
20524 "the C<cipher> used."
20525 msgstr ""
20526
20527 # type: =head2
20528 #: ../fish/guestfish-actions.pod:2253
20529 msgid "luks-kill-slot"
20530 msgstr ""
20531
20532 # type: verbatim
20533 #: ../fish/guestfish-actions.pod:2255
20534 #, no-wrap
20535 msgid ""
20536 " luks-kill-slot device keyslot\n"
20537 "\n"
20538 msgstr ""
20539
20540 # type: =head2
20541 #: ../fish/guestfish-actions.pod:2264
20542 msgid "luks-open"
20543 msgstr ""
20544
20545 # type: verbatim
20546 #: ../fish/guestfish-actions.pod:2266
20547 #, no-wrap
20548 msgid ""
20549 " luks-open device mapname\n"
20550 "\n"
20551 msgstr ""
20552
20553 # type: textblock
20554 #: ../fish/guestfish-actions.pod:2280
20555 msgid ""
20556 "If this block device contains LVM volume groups, then calling L</vgscan> "
20557 "followed by L</vg-activate-all> will make them visible."
20558 msgstr ""
20559
20560 # type: =head2
20561 #: ../fish/guestfish-actions.pod:2287
20562 msgid "luks-open-ro"
20563 msgstr ""
20564
20565 # type: verbatim
20566 #: ../fish/guestfish-actions.pod:2289
20567 #, no-wrap
20568 msgid ""
20569 " luks-open-ro device mapname\n"
20570 "\n"
20571 msgstr ""
20572
20573 # type: textblock
20574 #: ../fish/guestfish-actions.pod:2291
20575 msgid ""
20576 "This is the same as L</luks-open> except that a read-only mapping is "
20577 "created."
20578 msgstr ""
20579
20580 # type: =head2
20581 #: ../fish/guestfish-actions.pod:2297
20582 msgid "lvcreate"
20583 msgstr ""
20584
20585 # type: verbatim
20586 #: ../fish/guestfish-actions.pod:2299
20587 #, no-wrap
20588 msgid ""
20589 " lvcreate logvol volgroup mbytes\n"
20590 "\n"
20591 msgstr ""
20592
20593 # type: =head2
20594 #: ../fish/guestfish-actions.pod:2304
20595 msgid "lvm-canonical-lv-name"
20596 msgstr ""
20597
20598 # type: verbatim
20599 #: ../fish/guestfish-actions.pod:2306
20600 #, no-wrap
20601 msgid ""
20602 " lvm-canonical-lv-name lvname\n"
20603 "\n"
20604 msgstr ""
20605
20606 # type: textblock
20607 #: ../fish/guestfish-actions.pod:2315
20608 msgid "See also L</is-lv>."
20609 msgstr ""
20610
20611 # type: =head2
20612 #: ../fish/guestfish-actions.pod:2317
20613 msgid "lvm-clear-filter"
20614 msgstr ""
20615
20616 # type: verbatim
20617 #: ../fish/guestfish-actions.pod:2319
20618 #, no-wrap
20619 msgid ""
20620 " lvm-clear-filter\n"
20621 "\n"
20622 msgstr ""
20623
20624 # type: textblock
20625 #: ../fish/guestfish-actions.pod:2321
20626 msgid ""
20627 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
20628 "block device."
20629 msgstr ""
20630
20631 # type: =head2
20632 #: ../fish/guestfish-actions.pod:2327
20633 msgid "lvm-remove-all"
20634 msgstr ""
20635
20636 # type: verbatim
20637 #: ../fish/guestfish-actions.pod:2329
20638 #, no-wrap
20639 msgid ""
20640 " lvm-remove-all\n"
20641 "\n"
20642 msgstr ""
20643
20644 # type: =head2
20645 #: ../fish/guestfish-actions.pod:2337
20646 msgid "lvm-set-filter"
20647 msgstr ""
20648
20649 # type: verbatim
20650 #: ../fish/guestfish-actions.pod:2339
20651 #, no-wrap
20652 msgid ""
20653 " lvm-set-filter 'devices ...'\n"
20654 "\n"
20655 msgstr ""
20656
20657 # type: =head2
20658 #: ../fish/guestfish-actions.pod:2364
20659 msgid "lvremove"
20660 msgstr ""
20661
20662 # type: verbatim
20663 #: ../fish/guestfish-actions.pod:2366
20664 #, no-wrap
20665 msgid ""
20666 " lvremove device\n"
20667 "\n"
20668 msgstr ""
20669
20670 # type: =head2
20671 #: ../fish/guestfish-actions.pod:2374
20672 msgid "lvrename"
20673 msgstr ""
20674
20675 # type: verbatim
20676 #: ../fish/guestfish-actions.pod:2376
20677 #, no-wrap
20678 msgid ""
20679 " lvrename logvol newlogvol\n"
20680 "\n"
20681 msgstr ""
20682
20683 # type: =head2
20684 #: ../fish/guestfish-actions.pod:2380
20685 msgid "lvresize"
20686 msgstr ""
20687
20688 # type: verbatim
20689 #: ../fish/guestfish-actions.pod:2382
20690 #, no-wrap
20691 msgid ""
20692 " lvresize device mbytes\n"
20693 "\n"
20694 msgstr ""
20695
20696 # type: =head2
20697 #: ../fish/guestfish-actions.pod:2388
20698 msgid "lvresize-free"
20699 msgstr ""
20700
20701 # type: verbatim
20702 #: ../fish/guestfish-actions.pod:2390
20703 #, no-wrap
20704 msgid ""
20705 " lvresize-free lv percent\n"
20706 "\n"
20707 msgstr ""
20708
20709 # type: =head2
20710 #: ../fish/guestfish-actions.pod:2398
20711 msgid "lvs"
20712 msgstr ""
20713
20714 # type: verbatim
20715 #: ../fish/guestfish-actions.pod:2400
20716 #, no-wrap
20717 msgid ""
20718 " lvs\n"
20719 "\n"
20720 msgstr ""
20721
20722 # type: textblock
20723 #: ../fish/guestfish-actions.pod:2408
20724 msgid "See also L</lvs-full>, L</list-filesystems>."
20725 msgstr ""
20726
20727 # type: =head2
20728 #: ../fish/guestfish-actions.pod:2410
20729 msgid "lvs-full"
20730 msgstr ""
20731
20732 # type: verbatim
20733 #: ../fish/guestfish-actions.pod:2412
20734 #, no-wrap
20735 msgid ""
20736 " lvs-full\n"
20737 "\n"
20738 msgstr ""
20739
20740 # type: =head2
20741 #: ../fish/guestfish-actions.pod:2417
20742 msgid "lvuuid"
20743 msgstr ""
20744
20745 # type: verbatim
20746 #: ../fish/guestfish-actions.pod:2419
20747 #, no-wrap
20748 msgid ""
20749 " lvuuid device\n"
20750 "\n"
20751 msgstr ""
20752
20753 # type: =head2
20754 #: ../fish/guestfish-actions.pod:2423
20755 msgid "lxattrlist"
20756 msgstr ""
20757
20758 # type: verbatim
20759 #: ../fish/guestfish-actions.pod:2425
20760 #, no-wrap
20761 msgid ""
20762 " lxattrlist path 'names ...'\n"
20763 "\n"
20764 msgstr ""
20765
20766 # type: textblock
20767 #: ../fish/guestfish-actions.pod:2441
20768 msgid ""
20769 "This call is intended for programs that want to efficiently list a directory "
20770 "contents without making many round-trips.  See also L</lstatlist> for a "
20771 "similarly efficient call for getting standard stats.  Very long directory "
20772 "listings might cause the protocol message size to be exceeded, causing this "
20773 "call to fail.  The caller must split up such requests into smaller groups of "
20774 "names."
20775 msgstr ""
20776
20777 # type: =head2
20778 #: ../fish/guestfish-actions.pod:2449
20779 msgid "mkdir"
20780 msgstr ""
20781
20782 # type: verbatim
20783 #: ../fish/guestfish-actions.pod:2451
20784 #, no-wrap
20785 msgid ""
20786 " mkdir path\n"
20787 "\n"
20788 msgstr ""
20789
20790 # type: =head2
20791 #: ../fish/guestfish-actions.pod:2455
20792 msgid "mkdir-mode"
20793 msgstr ""
20794
20795 # type: verbatim
20796 #: ../fish/guestfish-actions.pod:2457
20797 #, no-wrap
20798 msgid ""
20799 " mkdir-mode path mode\n"
20800 "\n"
20801 msgstr ""
20802
20803 # type: textblock
20804 #: ../fish/guestfish-actions.pod:2466
20805 msgid "See also L</mkdir>, L</umask>"
20806 msgstr ""
20807
20808 # type: =head2
20809 #: ../fish/guestfish-actions.pod:2468
20810 msgid "mkdir-p"
20811 msgstr ""
20812
20813 # type: verbatim
20814 #: ../fish/guestfish-actions.pod:2470
20815 #, no-wrap
20816 msgid ""
20817 " mkdir-p path\n"
20818 "\n"
20819 msgstr ""
20820
20821 # type: =head2
20822 #: ../fish/guestfish-actions.pod:2475
20823 msgid "mkdtemp"
20824 msgstr ""
20825
20826 # type: verbatim
20827 #: ../fish/guestfish-actions.pod:2477
20828 #, no-wrap
20829 msgid ""
20830 " mkdtemp template\n"
20831 "\n"
20832 msgstr ""
20833
20834 # type: =head2
20835 #: ../fish/guestfish-actions.pod:2498
20836 msgid "mke2fs-J"
20837 msgstr ""
20838
20839 # type: verbatim
20840 #: ../fish/guestfish-actions.pod:2500
20841 #, no-wrap
20842 msgid ""
20843 " mke2fs-J fstype blocksize device journal\n"
20844 "\n"
20845 msgstr ""
20846
20847 # type: textblock
20848 #: ../fish/guestfish-actions.pod:2508
20849 msgid "See also L</mke2journal>."
20850 msgstr ""
20851
20852 # type: =head2
20853 #: ../fish/guestfish-actions.pod:2510
20854 msgid "mke2fs-JL"
20855 msgstr ""
20856
20857 # type: verbatim
20858 #: ../fish/guestfish-actions.pod:2512
20859 #, no-wrap
20860 msgid ""
20861 " mke2fs-JL fstype blocksize device label\n"
20862 "\n"
20863 msgstr ""
20864
20865 # type: textblock
20866 #: ../fish/guestfish-actions.pod:2517
20867 msgid "See also L</mke2journal-L>."
20868 msgstr ""
20869
20870 # type: =head2
20871 #: ../fish/guestfish-actions.pod:2519
20872 msgid "mke2fs-JU"
20873 msgstr ""
20874
20875 # type: verbatim
20876 #: ../fish/guestfish-actions.pod:2521
20877 #, no-wrap
20878 msgid ""
20879 " mke2fs-JU fstype blocksize device uuid\n"
20880 "\n"
20881 msgstr ""
20882
20883 # type: textblock
20884 #: ../fish/guestfish-actions.pod:2526
20885 msgid "See also L</mke2journal-U>."
20886 msgstr ""
20887
20888 # type: =head2
20889 #: ../fish/guestfish-actions.pod:2528
20890 msgid "mke2journal"
20891 msgstr ""
20892
20893 # type: verbatim
20894 #: ../fish/guestfish-actions.pod:2530
20895 #, no-wrap
20896 msgid ""
20897 " mke2journal blocksize device\n"
20898 "\n"
20899 msgstr ""
20900
20901 # type: =head2
20902 #: ../fish/guestfish-actions.pod:2537
20903 msgid "mke2journal-L"
20904 msgstr ""
20905
20906 # type: verbatim
20907 #: ../fish/guestfish-actions.pod:2539
20908 #, no-wrap
20909 msgid ""
20910 " mke2journal-L blocksize label device\n"
20911 "\n"
20912 msgstr ""
20913
20914 # type: =head2
20915 #: ../fish/guestfish-actions.pod:2543
20916 msgid "mke2journal-U"
20917 msgstr ""
20918
20919 # type: verbatim
20920 #: ../fish/guestfish-actions.pod:2545
20921 #, no-wrap
20922 msgid ""
20923 " mke2journal-U blocksize uuid device\n"
20924 "\n"
20925 msgstr ""
20926
20927 # type: =head2
20928 #: ../fish/guestfish-actions.pod:2549
20929 msgid "mkfifo"
20930 msgstr ""
20931
20932 # type: verbatim
20933 #: ../fish/guestfish-actions.pod:2551
20934 #, no-wrap
20935 msgid ""
20936 " mkfifo mode path\n"
20937 "\n"
20938 msgstr ""
20939
20940 # type: textblock
20941 #: ../fish/guestfish-actions.pod:2553
20942 msgid ""
20943 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
20944 "is just a convenient wrapper around L</mknod>."
20945 msgstr ""
20946
20947 # type: =head2
20948 #: ../fish/guestfish-actions.pod:2559
20949 msgid "mkfs"
20950 msgstr ""
20951
20952 # type: verbatim
20953 #: ../fish/guestfish-actions.pod:2561
20954 #, no-wrap
20955 msgid ""
20956 " mkfs fstype device\n"
20957 "\n"
20958 msgstr ""
20959
20960 # type: =head2
20961 #: ../fish/guestfish-actions.pod:2567
20962 msgid "mkfs-b"
20963 msgstr ""
20964
20965 # type: verbatim
20966 #: ../fish/guestfish-actions.pod:2569
20967 #, no-wrap
20968 msgid ""
20969 " mkfs-b fstype blocksize device\n"
20970 "\n"
20971 msgstr ""
20972
20973 # type: textblock
20974 #: ../fish/guestfish-actions.pod:2571
20975 msgid ""
20976 "This call is similar to L</mkfs>, but it allows you to control the block "
20977 "size of the resulting filesystem.  Supported block sizes depend on the "
20978 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
20979 msgstr ""
20980
20981 # type: =head2
20982 #: ../fish/guestfish-actions.pod:2579
20983 msgid "mkmountpoint"
20984 msgstr ""
20985
20986 # type: verbatim
20987 #: ../fish/guestfish-actions.pod:2581
20988 #, no-wrap
20989 msgid ""
20990 " mkmountpoint exemptpath\n"
20991 "\n"
20992 msgstr ""
20993
20994 # type: textblock
20995 #: ../fish/guestfish-actions.pod:2583
20996 msgid ""
20997 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
20998 "to create extra mountpoints before mounting the first filesystem."
20999 msgstr ""
21000
21001 # type: textblock
21002 #: ../fish/guestfish-actions.pod:2607
21003 msgid ""
21004 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21005 "unexpected errors if you try to mix these calls.  It is safest to manually "
21006 "unmount filesystems and remove mountpoints after use."
21007 msgstr ""
21008
21009 # type: textblock
21010 #: ../fish/guestfish-actions.pod:2611
21011 msgid ""
21012 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21013 "for this to work for manual mountpoints, you must ensure that the innermost "
21014 "mountpoints have the longest pathnames, as in the example code above."
21015 msgstr ""
21016
21017 # type: textblock
21018 #: ../fish/guestfish-actions.pod:2618
21019 msgid ""
21020 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21021 "that L</umount-all> is called when the handle is closed which can also "
21022 "trigger these issues."
21023 msgstr ""
21024
21025 # type: =head2
21026 #: ../fish/guestfish-actions.pod:2622
21027 msgid "mknod"
21028 msgstr ""
21029
21030 # type: verbatim
21031 #: ../fish/guestfish-actions.pod:2624
21032 #, no-wrap
21033 msgid ""
21034 " mknod mode devmajor devminor path\n"
21035 "\n"
21036 msgstr ""
21037
21038 # type: textblock
21039 #: ../fish/guestfish-actions.pod:2634
21040 msgid ""
21041 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
21042 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
21043 "regular file).  These constants are available in the standard Linux header "
21044 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
21045 "wrappers around this command which bitwise OR in the appropriate constant "
21046 "for you."
21047 msgstr ""
21048
21049 # type: =head2
21050 #: ../fish/guestfish-actions.pod:2644
21051 msgid "mknod-b"
21052 msgstr ""
21053
21054 # type: verbatim
21055 #: ../fish/guestfish-actions.pod:2646
21056 #, no-wrap
21057 msgid ""
21058 " mknod-b mode devmajor devminor path\n"
21059 "\n"
21060 msgstr ""
21061
21062 # type: textblock
21063 #: ../fish/guestfish-actions.pod:2648
21064 msgid ""
21065 "This call creates a block device node called C<path> with mode C<mode> and "
21066 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21067 "wrapper around L</mknod>."
21068 msgstr ""
21069
21070 # type: =head2
21071 #: ../fish/guestfish-actions.pod:2654
21072 msgid "mknod-c"
21073 msgstr ""
21074
21075 # type: verbatim
21076 #: ../fish/guestfish-actions.pod:2656
21077 #, no-wrap
21078 msgid ""
21079 " mknod-c mode devmajor devminor path\n"
21080 "\n"
21081 msgstr ""
21082
21083 # type: textblock
21084 #: ../fish/guestfish-actions.pod:2658
21085 msgid ""
21086 "This call creates a char device node called C<path> with mode C<mode> and "
21087 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
21088 "wrapper around L</mknod>."
21089 msgstr ""
21090
21091 # type: =head2
21092 #: ../fish/guestfish-actions.pod:2664
21093 msgid "mkswap"
21094 msgstr ""
21095
21096 # type: verbatim
21097 #: ../fish/guestfish-actions.pod:2666
21098 #, no-wrap
21099 msgid ""
21100 " mkswap device\n"
21101 "\n"
21102 msgstr ""
21103
21104 # type: =head2
21105 #: ../fish/guestfish-actions.pod:2670
21106 msgid "mkswap-L"
21107 msgstr ""
21108
21109 # type: verbatim
21110 #: ../fish/guestfish-actions.pod:2672
21111 #, no-wrap
21112 msgid ""
21113 " mkswap-L label device\n"
21114 "\n"
21115 msgstr ""
21116
21117 # type: =head2
21118 #: ../fish/guestfish-actions.pod:2680
21119 msgid "mkswap-U"
21120 msgstr ""
21121
21122 # type: verbatim
21123 #: ../fish/guestfish-actions.pod:2682
21124 #, no-wrap
21125 msgid ""
21126 " mkswap-U uuid device\n"
21127 "\n"
21128 msgstr ""
21129
21130 # type: =head2
21131 #: ../fish/guestfish-actions.pod:2686
21132 msgid "mkswap-file"
21133 msgstr ""
21134
21135 # type: verbatim
21136 #: ../fish/guestfish-actions.pod:2688
21137 #, no-wrap
21138 msgid ""
21139 " mkswap-file path\n"
21140 "\n"
21141 msgstr ""
21142
21143 # type: textblock
21144 #: ../fish/guestfish-actions.pod:2692
21145 msgid ""
21146 "This command just writes a swap file signature to an existing file.  To "
21147 "create the file itself, use something like L</fallocate>."
21148 msgstr ""
21149
21150 # type: =head2
21151 #: ../fish/guestfish-actions.pod:2695
21152 msgid "modprobe"
21153 msgstr ""
21154
21155 # type: verbatim
21156 #: ../fish/guestfish-actions.pod:2697
21157 #, no-wrap
21158 msgid ""
21159 " modprobe modulename\n"
21160 "\n"
21161 msgstr ""
21162
21163 # type: =head2
21164 #: ../fish/guestfish-actions.pod:2704
21165 msgid "mount"
21166 msgstr ""
21167
21168 # type: verbatim
21169 #: ../fish/guestfish-actions.pod:2706
21170 #, no-wrap
21171 msgid ""
21172 " mount device mountpoint\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: textblock
21177 #: ../fish/guestfish-actions.pod:2722
21178 msgid ""
21179 "B<Important note:> When you use this call, the filesystem options C<sync> "
21180 "and C<noatime> are set implicitly.  This was originally done because we "
21181 "thought it would improve reliability, but it turns out that I<-o sync> has a "
21182 "very large negative performance impact and negligible effect on "
21183 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
21184 "code that needs performance, and instead use L</mount-options> (use an empty "
21185 "string for the first parameter if you don't want any options)."
21186 msgstr ""
21187
21188 # type: =head2
21189 #: ../fish/guestfish-actions.pod:2732
21190 msgid "mount-loop"
21191 msgstr ""
21192
21193 # type: verbatim
21194 #: ../fish/guestfish-actions.pod:2734
21195 #, no-wrap
21196 msgid ""
21197 " mount-loop file mountpoint\n"
21198 "\n"
21199 msgstr ""
21200
21201 # type: =head2
21202 #: ../fish/guestfish-actions.pod:2740
21203 msgid "mount-options"
21204 msgstr ""
21205
21206 # type: verbatim
21207 #: ../fish/guestfish-actions.pod:2742
21208 #, no-wrap
21209 msgid ""
21210 " mount-options options device mountpoint\n"
21211 "\n"
21212 msgstr ""
21213
21214 # type: textblock
21215 #: ../fish/guestfish-actions.pod:2744
21216 msgid ""
21217 "This is the same as the L</mount> command, but it allows you to set the "
21218 "mount options as for the L<mount(8)> I<-o> flag."
21219 msgstr ""
21220
21221 # type: =head2
21222 #: ../fish/guestfish-actions.pod:2752
21223 msgid "mount-ro"
21224 msgstr ""
21225
21226 # type: verbatim
21227 #: ../fish/guestfish-actions.pod:2754
21228 #, no-wrap
21229 msgid ""
21230 " mount-ro device mountpoint\n"
21231 "\n"
21232 msgstr ""
21233
21234 # type: textblock
21235 #: ../fish/guestfish-actions.pod:2756
21236 msgid ""
21237 "This is the same as the L</mount> command, but it mounts the filesystem with "
21238 "the read-only (I<-o ro>) flag."
21239 msgstr ""
21240
21241 # type: =head2
21242 #: ../fish/guestfish-actions.pod:2759
21243 msgid "mount-vfs"
21244 msgstr ""
21245
21246 # type: verbatim
21247 #: ../fish/guestfish-actions.pod:2761
21248 #, no-wrap
21249 msgid ""
21250 " mount-vfs options vfstype device mountpoint\n"
21251 "\n"
21252 msgstr ""
21253
21254 # type: textblock
21255 #: ../fish/guestfish-actions.pod:2763
21256 msgid ""
21257 "This is the same as the L</mount> command, but it allows you to set both the "
21258 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
21259 msgstr ""
21260
21261 # type: =head2
21262 #: ../fish/guestfish-actions.pod:2767
21263 msgid "mountpoints"
21264 msgstr ""
21265
21266 # type: verbatim
21267 #: ../fish/guestfish-actions.pod:2769
21268 #, no-wrap
21269 msgid ""
21270 " mountpoints\n"
21271 "\n"
21272 msgstr ""
21273
21274 # type: textblock
21275 #: ../fish/guestfish-actions.pod:2771
21276 msgid ""
21277 "This call is similar to L</mounts>.  That call returns a list of devices.  "
21278 "This one returns a hash table (map) of device name to directory where the "
21279 "device is mounted."
21280 msgstr ""
21281
21282 # type: =head2
21283 #: ../fish/guestfish-actions.pod:2775
21284 msgid "mounts"
21285 msgstr ""
21286
21287 # type: verbatim
21288 #: ../fish/guestfish-actions.pod:2777
21289 #, no-wrap
21290 msgid ""
21291 " mounts\n"
21292 "\n"
21293 msgstr ""
21294
21295 # type: textblock
21296 #: ../fish/guestfish-actions.pod:2784
21297 msgid "See also: L</mountpoints>"
21298 msgstr ""
21299
21300 # type: =head2
21301 #: ../fish/guestfish-actions.pod:2786
21302 msgid "mv"
21303 msgstr ""
21304
21305 # type: verbatim
21306 #: ../fish/guestfish-actions.pod:2788
21307 #, no-wrap
21308 msgid ""
21309 " mv src dest\n"
21310 "\n"
21311 msgstr ""
21312
21313 # type: =head2
21314 #: ../fish/guestfish-actions.pod:2793
21315 msgid "ntfs-3g-probe"
21316 msgstr ""
21317
21318 # type: verbatim
21319 #: ../fish/guestfish-actions.pod:2795
21320 #, no-wrap
21321 msgid ""
21322 " ntfs-3g-probe true|false device\n"
21323 "\n"
21324 msgstr ""
21325
21326 # type: =head2
21327 #: ../fish/guestfish-actions.pod:2809
21328 msgid "ntfsresize"
21329 msgstr ""
21330
21331 # type: verbatim
21332 #: ../fish/guestfish-actions.pod:2811
21333 #, no-wrap
21334 msgid ""
21335 " ntfsresize device\n"
21336 "\n"
21337 msgstr ""
21338
21339 # type: =head2
21340 #: ../fish/guestfish-actions.pod:2817
21341 msgid "ntfsresize-size"
21342 msgstr ""
21343
21344 # type: verbatim
21345 #: ../fish/guestfish-actions.pod:2819
21346 #, no-wrap
21347 msgid ""
21348 " ntfsresize-size device size\n"
21349 "\n"
21350 msgstr ""
21351
21352 # type: textblock
21353 #: ../fish/guestfish-actions.pod:2821
21354 msgid ""
21355 "This command is the same as L</ntfsresize> except that it allows you to "
21356 "specify the new size (in bytes) explicitly."
21357 msgstr ""
21358
21359 # type: =head2
21360 #: ../fish/guestfish-actions.pod:2824
21361 msgid "part-add"
21362 msgstr ""
21363
21364 # type: verbatim
21365 #: ../fish/guestfish-actions.pod:2826
21366 #, no-wrap
21367 msgid ""
21368 " part-add device prlogex startsect endsect\n"
21369 "\n"
21370 msgstr ""
21371
21372 # type: textblock
21373 #: ../fish/guestfish-actions.pod:2828
21374 msgid ""
21375 "This command adds a partition to C<device>.  If there is no partition table "
21376 "on the device, call L</part-init> first."
21377 msgstr ""
21378
21379 # type: textblock
21380 #: ../fish/guestfish-actions.pod:2840
21381 msgid ""
21382 "Creating a partition which covers the whole disk is not so easy.  Use "
21383 "L</part-disk> to do that."
21384 msgstr ""
21385
21386 # type: =head2
21387 #: ../fish/guestfish-actions.pod:2843
21388 msgid "part-del"
21389 msgstr ""
21390
21391 # type: verbatim
21392 #: ../fish/guestfish-actions.pod:2845
21393 #, no-wrap
21394 msgid ""
21395 " part-del device partnum\n"
21396 "\n"
21397 msgstr ""
21398
21399 # type: =head2
21400 #: ../fish/guestfish-actions.pod:2853
21401 msgid "part-disk"
21402 msgstr ""
21403
21404 # type: verbatim
21405 #: ../fish/guestfish-actions.pod:2855
21406 #, no-wrap
21407 msgid ""
21408 " part-disk device parttype\n"
21409 "\n"
21410 msgstr ""
21411
21412 # type: textblock
21413 #: ../fish/guestfish-actions.pod:2857
21414 msgid ""
21415 "This command is simply a combination of L</part-init> followed by "
21416 "L</part-add> to create a single primary partition covering the whole disk."
21417 msgstr ""
21418
21419 # type: textblock
21420 #: ../fish/guestfish-actions.pod:2861
21421 msgid ""
21422 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
21423 "possible values are described in L</part-init>."
21424 msgstr ""
21425
21426 # type: =head2
21427 #: ../fish/guestfish-actions.pod:2867
21428 msgid "part-get-bootable"
21429 msgstr ""
21430
21431 # type: verbatim
21432 #: ../fish/guestfish-actions.pod:2869
21433 #, no-wrap
21434 msgid ""
21435 " part-get-bootable device partnum\n"
21436 "\n"
21437 msgstr ""
21438
21439 # type: textblock
21440 #: ../fish/guestfish-actions.pod:2874
21441 msgid "See also L</part-set-bootable>."
21442 msgstr ""
21443
21444 # type: =head2
21445 #: ../fish/guestfish-actions.pod:2876
21446 msgid "part-get-mbr-id"
21447 msgstr ""
21448
21449 # type: verbatim
21450 #: ../fish/guestfish-actions.pod:2878
21451 #, no-wrap
21452 msgid ""
21453 " part-get-mbr-id device partnum\n"
21454 "\n"
21455 msgstr ""
21456
21457 # type: textblock
21458 #: ../fish/guestfish-actions.pod:2883 ../fish/guestfish-actions.pod:3021
21459 msgid ""
21460 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
21461 "undefined results for other partition table types (see "
21462 "L</part-get-parttype>)."
21463 msgstr ""
21464
21465 # type: =head2
21466 #: ../fish/guestfish-actions.pod:2887
21467 msgid "part-get-parttype"
21468 msgstr ""
21469
21470 # type: verbatim
21471 #: ../fish/guestfish-actions.pod:2889
21472 #, no-wrap
21473 msgid ""
21474 " part-get-parttype device\n"
21475 "\n"
21476 msgstr ""
21477
21478 # type: textblock
21479 #: ../fish/guestfish-actions.pod:2894
21480 msgid ""
21481 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
21482 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
21483 "possible, although unusual.  See L</part-init> for a full list."
21484 msgstr ""
21485
21486 # type: =head2
21487 #: ../fish/guestfish-actions.pod:2899
21488 msgid "part-init"
21489 msgstr ""
21490
21491 # type: verbatim
21492 #: ../fish/guestfish-actions.pod:2901
21493 #, no-wrap
21494 msgid ""
21495 " part-init device parttype\n"
21496 "\n"
21497 msgstr ""
21498
21499 # type: textblock
21500 #: ../fish/guestfish-actions.pod:2907
21501 msgid ""
21502 "Initially there are no partitions.  Following this, you should call "
21503 "L</part-add> for each partition required."
21504 msgstr ""
21505
21506 # type: =head2
21507 #: ../fish/guestfish-actions.pod:2970
21508 msgid "part-list"
21509 msgstr ""
21510
21511 # type: verbatim
21512 #: ../fish/guestfish-actions.pod:2972
21513 #, no-wrap
21514 msgid ""
21515 " part-list device\n"
21516 "\n"
21517 msgstr ""
21518
21519 # type: textblock
21520 #: ../fish/guestfish-actions.pod:2987
21521 msgid ""
21522 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
21523 "the device's sector size, see L</blockdev-getss>."
21524 msgstr ""
21525
21526 # type: =head2
21527 #: ../fish/guestfish-actions.pod:3000
21528 msgid "part-set-bootable"
21529 msgstr ""
21530
21531 # type: verbatim
21532 #: ../fish/guestfish-actions.pod:3002
21533 #, no-wrap
21534 msgid ""
21535 " part-set-bootable device partnum true|false\n"
21536 "\n"
21537 msgstr ""
21538
21539 # type: =head2
21540 #: ../fish/guestfish-actions.pod:3011
21541 msgid "part-set-mbr-id"
21542 msgstr ""
21543
21544 # type: verbatim
21545 #: ../fish/guestfish-actions.pod:3013
21546 #, no-wrap
21547 msgid ""
21548 " part-set-mbr-id device partnum idbyte\n"
21549 "\n"
21550 msgstr ""
21551
21552 # type: =head2
21553 #: ../fish/guestfish-actions.pod:3025
21554 msgid "part-set-name"
21555 msgstr ""
21556
21557 # type: verbatim
21558 #: ../fish/guestfish-actions.pod:3027
21559 #, no-wrap
21560 msgid ""
21561 " part-set-name device partnum name\n"
21562 "\n"
21563 msgstr ""
21564
21565 # type: =head2
21566 #: ../fish/guestfish-actions.pod:3035
21567 msgid "part-to-dev"
21568 msgstr ""
21569
21570 # type: verbatim
21571 #: ../fish/guestfish-actions.pod:3037
21572 #, no-wrap
21573 msgid ""
21574 " part-to-dev partition\n"
21575 "\n"
21576 msgstr ""
21577
21578 # type: textblock
21579 #: ../fish/guestfish-actions.pod:3043
21580 msgid ""
21581 "The named partition must exist, for example as a string returned from "
21582 "L</list-partitions>."
21583 msgstr ""
21584
21585 # type: =head2
21586 #: ../fish/guestfish-actions.pod:3046
21587 msgid "ping-daemon"
21588 msgstr ""
21589
21590 # type: verbatim
21591 #: ../fish/guestfish-actions.pod:3048
21592 #, no-wrap
21593 msgid ""
21594 " ping-daemon\n"
21595 "\n"
21596 msgstr ""
21597
21598 # type: =head2
21599 #: ../fish/guestfish-actions.pod:3055
21600 msgid "pread"
21601 msgstr ""
21602
21603 # type: verbatim
21604 #: ../fish/guestfish-actions.pod:3057
21605 #, no-wrap
21606 msgid ""
21607 " pread path count offset\n"
21608 "\n"
21609 msgstr ""
21610
21611 # type: textblock
21612 #: ../fish/guestfish-actions.pod:3065
21613 msgid "See also L</pwrite>, L</pread-device>."
21614 msgstr ""
21615
21616 # type: =head2
21617 #: ../fish/guestfish-actions.pod:3070
21618 msgid "pread-device"
21619 msgstr ""
21620
21621 # type: verbatim
21622 #: ../fish/guestfish-actions.pod:3072
21623 #, no-wrap
21624 msgid ""
21625 " pread-device device count offset\n"
21626 "\n"
21627 msgstr ""
21628
21629 # type: textblock
21630 #: ../fish/guestfish-actions.pod:3080
21631 msgid "See also L</pread>."
21632 msgstr ""
21633
21634 # type: =head2
21635 #: ../fish/guestfish-actions.pod:3085
21636 msgid "pvcreate"
21637 msgstr ""
21638
21639 # type: verbatim
21640 #: ../fish/guestfish-actions.pod:3087
21641 #, no-wrap
21642 msgid ""
21643 " pvcreate device\n"
21644 "\n"
21645 msgstr ""
21646
21647 # type: =head2
21648 #: ../fish/guestfish-actions.pod:3093
21649 msgid "pvremove"
21650 msgstr ""
21651
21652 # type: verbatim
21653 #: ../fish/guestfish-actions.pod:3095
21654 #, no-wrap
21655 msgid ""
21656 " pvremove device\n"
21657 "\n"
21658 msgstr ""
21659
21660 # type: =head2
21661 #: ../fish/guestfish-actions.pod:3104
21662 msgid "pvresize"
21663 msgstr ""
21664
21665 # type: verbatim
21666 #: ../fish/guestfish-actions.pod:3106
21667 #, no-wrap
21668 msgid ""
21669 " pvresize device\n"
21670 "\n"
21671 msgstr ""
21672
21673 # type: =head2
21674 #: ../fish/guestfish-actions.pod:3111
21675 msgid "pvresize-size"
21676 msgstr ""
21677
21678 # type: verbatim
21679 #: ../fish/guestfish-actions.pod:3113
21680 #, no-wrap
21681 msgid ""
21682 " pvresize-size device size\n"
21683 "\n"
21684 msgstr ""
21685
21686 # type: textblock
21687 #: ../fish/guestfish-actions.pod:3115
21688 msgid ""
21689 "This command is the same as L</pvresize> except that it allows you to "
21690 "specify the new size (in bytes) explicitly."
21691 msgstr ""
21692
21693 # type: =head2
21694 #: ../fish/guestfish-actions.pod:3118
21695 msgid "pvs"
21696 msgstr ""
21697
21698 # type: verbatim
21699 #: ../fish/guestfish-actions.pod:3120
21700 #, no-wrap
21701 msgid ""
21702 " pvs\n"
21703 "\n"
21704 msgstr ""
21705
21706 # type: textblock
21707 #: ../fish/guestfish-actions.pod:3128
21708 msgid "See also L</pvs-full>."
21709 msgstr ""
21710
21711 # type: =head2
21712 #: ../fish/guestfish-actions.pod:3130
21713 msgid "pvs-full"
21714 msgstr ""
21715
21716 # type: verbatim
21717 #: ../fish/guestfish-actions.pod:3132
21718 #, no-wrap
21719 msgid ""
21720 " pvs-full\n"
21721 "\n"
21722 msgstr ""
21723
21724 # type: =head2
21725 #: ../fish/guestfish-actions.pod:3137
21726 msgid "pvuuid"
21727 msgstr ""
21728
21729 # type: verbatim
21730 #: ../fish/guestfish-actions.pod:3139
21731 #, no-wrap
21732 msgid ""
21733 " pvuuid device\n"
21734 "\n"
21735 msgstr ""
21736
21737 # type: =head2
21738 #: ../fish/guestfish-actions.pod:3143
21739 msgid "pwrite"
21740 msgstr ""
21741
21742 # type: verbatim
21743 #: ../fish/guestfish-actions.pod:3145
21744 #, no-wrap
21745 msgid ""
21746 " pwrite path content offset\n"
21747 "\n"
21748 msgstr ""
21749
21750 # type: textblock
21751 #: ../fish/guestfish-actions.pod:3156
21752 msgid "See also L</pread>, L</pwrite-device>."
21753 msgstr ""
21754
21755 # type: =head2
21756 #: ../fish/guestfish-actions.pod:3161
21757 msgid "pwrite-device"
21758 msgstr ""
21759
21760 # type: verbatim
21761 #: ../fish/guestfish-actions.pod:3163
21762 #, no-wrap
21763 msgid ""
21764 " pwrite-device device content offset\n"
21765 "\n"
21766 msgstr ""
21767
21768 # type: textblock
21769 #: ../fish/guestfish-actions.pod:3173
21770 msgid "See also L</pwrite>."
21771 msgstr ""
21772
21773 # type: =head2
21774 #: ../fish/guestfish-actions.pod:3178
21775 msgid "read-file"
21776 msgstr ""
21777
21778 # type: verbatim
21779 #: ../fish/guestfish-actions.pod:3180
21780 #, no-wrap
21781 msgid ""
21782 " read-file path\n"
21783 "\n"
21784 msgstr ""
21785
21786 # type: textblock
21787 #: ../fish/guestfish-actions.pod:3185
21788 msgid ""
21789 "Unlike L</cat>, this function can correctly handle files that contain "
21790 "embedded ASCII NUL characters.  However unlike L</download>, this function "
21791 "is limited in the total size of file that can be handled."
21792 msgstr ""
21793
21794 # type: =head2
21795 #: ../fish/guestfish-actions.pod:3193
21796 msgid "read-lines"
21797 msgstr ""
21798
21799 # type: verbatim
21800 #: ../fish/guestfish-actions.pod:3195
21801 #, no-wrap
21802 msgid ""
21803 " read-lines path\n"
21804 "\n"
21805 msgstr ""
21806
21807 # type: textblock
21808 #: ../fish/guestfish-actions.pod:3202
21809 msgid ""
21810 "Note that this function cannot correctly handle binary files (specifically, "
21811 "files containing C<\\0> character which is treated as end of line).  For "
21812 "those you need to use the L</read-file> function which has a more complex "
21813 "interface."
21814 msgstr ""
21815
21816 # type: =head2
21817 #: ../fish/guestfish-actions.pod:3207
21818 msgid "readdir"
21819 msgstr ""
21820
21821 # type: verbatim
21822 #: ../fish/guestfish-actions.pod:3209
21823 #, no-wrap
21824 msgid ""
21825 " readdir dir\n"
21826 "\n"
21827 msgstr ""
21828
21829 # type: textblock
21830 #: ../fish/guestfish-actions.pod:3261
21831 msgid ""
21832 "This function is primarily intended for use by programs.  To get a simple "
21833 "list of names, use L</ls>.  To get a printable directory for human "
21834 "consumption, use L</ll>."
21835 msgstr ""
21836
21837 # type: =head2
21838 #: ../fish/guestfish-actions.pod:3265
21839 msgid "readlink"
21840 msgstr ""
21841
21842 # type: verbatim
21843 #: ../fish/guestfish-actions.pod:3267
21844 #, no-wrap
21845 msgid ""
21846 " readlink path\n"
21847 "\n"
21848 msgstr ""
21849
21850 # type: =head2
21851 #: ../fish/guestfish-actions.pod:3271
21852 msgid "readlinklist"
21853 msgstr ""
21854
21855 # type: verbatim
21856 #: ../fish/guestfish-actions.pod:3273
21857 #, no-wrap
21858 msgid ""
21859 " readlinklist path 'names ...'\n"
21860 "\n"
21861 msgstr ""
21862
21863 # type: =head2
21864 #: ../fish/guestfish-actions.pod:3297
21865 msgid "realpath"
21866 msgstr ""
21867
21868 # type: verbatim
21869 #: ../fish/guestfish-actions.pod:3299
21870 #, no-wrap
21871 msgid ""
21872 " realpath path\n"
21873 "\n"
21874 msgstr ""
21875
21876 # type: =head2
21877 #: ../fish/guestfish-actions.pod:3304
21878 msgid "removexattr"
21879 msgstr ""
21880
21881 # type: verbatim
21882 #: ../fish/guestfish-actions.pod:3306
21883 #, no-wrap
21884 msgid ""
21885 " removexattr xattr path\n"
21886 "\n"
21887 msgstr ""
21888
21889 # type: textblock
21890 #: ../fish/guestfish-actions.pod:3311
21891 msgid "See also: L</lremovexattr>, L<attr(5)>."
21892 msgstr ""
21893
21894 # type: =head2
21895 #: ../fish/guestfish-actions.pod:3313
21896 msgid "resize2fs"
21897 msgstr ""
21898
21899 # type: verbatim
21900 #: ../fish/guestfish-actions.pod:3315
21901 #, no-wrap
21902 msgid ""
21903 " resize2fs device\n"
21904 "\n"
21905 msgstr ""
21906
21907 # type: textblock
21908 #: ../fish/guestfish-actions.pod:3320
21909 msgid ""
21910 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
21911 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
21912 "gives an error about this and sometimes not.  In any case, it is always safe "
21913 "to call L</e2fsck-f> before calling this function."
21914 msgstr ""
21915
21916 # type: =head2
21917 #: ../fish/guestfish-actions.pod:3326
21918 msgid "resize2fs-size"
21919 msgstr ""
21920
21921 # type: verbatim
21922 #: ../fish/guestfish-actions.pod:3328
21923 #, no-wrap
21924 msgid ""
21925 " resize2fs-size device size\n"
21926 "\n"
21927 msgstr ""
21928
21929 # type: textblock
21930 #: ../fish/guestfish-actions.pod:3330
21931 msgid ""
21932 "This command is the same as L</resize2fs> except that it allows you to "
21933 "specify the new size (in bytes) explicitly."
21934 msgstr ""
21935
21936 # type: =head2
21937 #: ../fish/guestfish-actions.pod:3333
21938 msgid "rm"
21939 msgstr ""
21940
21941 # type: verbatim
21942 #: ../fish/guestfish-actions.pod:3335
21943 #, no-wrap
21944 msgid ""
21945 " rm path\n"
21946 "\n"
21947 msgstr ""
21948
21949 # type: =head2
21950 #: ../fish/guestfish-actions.pod:3339
21951 msgid "rm-rf"
21952 msgstr ""
21953
21954 # type: verbatim
21955 #: ../fish/guestfish-actions.pod:3341
21956 #, no-wrap
21957 msgid ""
21958 " rm-rf path\n"
21959 "\n"
21960 msgstr ""
21961
21962 # type: =head2
21963 #: ../fish/guestfish-actions.pod:3347
21964 msgid "rmdir"
21965 msgstr ""
21966
21967 # type: verbatim
21968 #: ../fish/guestfish-actions.pod:3349
21969 #, no-wrap
21970 msgid ""
21971 " rmdir path\n"
21972 "\n"
21973 msgstr ""
21974
21975 # type: =head2
21976 #: ../fish/guestfish-actions.pod:3353
21977 msgid "rmmountpoint"
21978 msgstr ""
21979
21980 # type: verbatim
21981 #: ../fish/guestfish-actions.pod:3355
21982 #, no-wrap
21983 msgid ""
21984 " rmmountpoint exemptpath\n"
21985 "\n"
21986 msgstr ""
21987
21988 # type: textblock
21989 #: ../fish/guestfish-actions.pod:3357
21990 msgid ""
21991 "This calls removes a mountpoint that was previously created with "
21992 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
21993 msgstr ""
21994
21995 # type: =head2
21996 #: ../fish/guestfish-actions.pod:3361
21997 msgid "scrub-device"
21998 msgstr ""
21999
22000 # type: verbatim
22001 #: ../fish/guestfish-actions.pod:3363
22002 #, no-wrap
22003 msgid ""
22004 " scrub-device device\n"
22005 "\n"
22006 msgstr ""
22007
22008 # type: =head2
22009 #: ../fish/guestfish-actions.pod:3374
22010 msgid "scrub-file"
22011 msgstr ""
22012
22013 # type: verbatim
22014 #: ../fish/guestfish-actions.pod:3376
22015 #, no-wrap
22016 msgid ""
22017 " scrub-file file\n"
22018 "\n"
22019 msgstr ""
22020
22021 # type: =head2
22022 #: ../fish/guestfish-actions.pod:3386
22023 msgid "scrub-freespace"
22024 msgstr ""
22025
22026 # type: verbatim
22027 #: ../fish/guestfish-actions.pod:3388
22028 #, no-wrap
22029 msgid ""
22030 " scrub-freespace dir\n"
22031 "\n"
22032 msgstr ""
22033
22034 # type: textblock
22035 #: ../fish/guestfish-actions.pod:3390
22036 msgid ""
22037 "This command creates the directory C<dir> and then fills it with files until "
22038 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
22039 "deletes them.  The intention is to scrub any free space on the partition "
22040 "containing C<dir>."
22041 msgstr ""
22042
22043 # type: =head2
22044 #: ../fish/guestfish-actions.pod:3399
22045 msgid "set-append"
22046 msgstr ""
22047
22048 # type: =head2
22049 #: ../fish/guestfish-actions.pod:3401
22050 msgid "append"
22051 msgstr ""
22052
22053 # type: verbatim
22054 #: ../fish/guestfish-actions.pod:3403
22055 #, no-wrap
22056 msgid ""
22057 " set-append append\n"
22058 "\n"
22059 msgstr ""
22060
22061 # type: =head2
22062 #: ../fish/guestfish-actions.pod:3414
22063 msgid "set-autosync"
22064 msgstr ""
22065
22066 # type: =head2
22067 #: ../fish/guestfish-actions.pod:3416
22068 msgid "autosync"
22069 msgstr ""
22070
22071 # type: verbatim
22072 #: ../fish/guestfish-actions.pod:3418
22073 #, no-wrap
22074 msgid ""
22075 " set-autosync true|false\n"
22076 "\n"
22077 msgstr ""
22078
22079 # type: textblock
22080 #: ../fish/guestfish-actions.pod:3420
22081 msgid ""
22082 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
22083 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
22084 "closed (also if the program exits without closing handles)."
22085 msgstr ""
22086
22087 # type: =head2
22088 #: ../fish/guestfish-actions.pod:3428
22089 msgid "set-direct"
22090 msgstr ""
22091
22092 # type: =head2
22093 #: ../fish/guestfish-actions.pod:3430
22094 msgid "direct"
22095 msgstr ""
22096
22097 # type: verbatim
22098 #: ../fish/guestfish-actions.pod:3432
22099 #, no-wrap
22100 msgid ""
22101 " set-direct true|false\n"
22102 "\n"
22103 msgstr ""
22104
22105 # type: textblock
22106 #: ../fish/guestfish-actions.pod:3438
22107 msgid ""
22108 "One consequence of this is that log messages aren't caught by the library "
22109 "and handled by L</set-log-message-callback>, but go straight to stdout."
22110 msgstr ""
22111
22112 # type: =head2
22113 #: ../fish/guestfish-actions.pod:3447
22114 msgid "set-e2label"
22115 msgstr ""
22116
22117 # type: verbatim
22118 #: ../fish/guestfish-actions.pod:3449
22119 #, no-wrap
22120 msgid ""
22121 " set-e2label device label\n"
22122 "\n"
22123 msgstr ""
22124
22125 # type: textblock
22126 #: ../fish/guestfish-actions.pod:3455
22127 msgid ""
22128 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
22129 "label on a filesystem."
22130 msgstr ""
22131
22132 # type: =head2
22133 #: ../fish/guestfish-actions.pod:3458
22134 msgid "set-e2uuid"
22135 msgstr ""
22136
22137 # type: verbatim
22138 #: ../fish/guestfish-actions.pod:3460
22139 #, no-wrap
22140 msgid ""
22141 " set-e2uuid device uuid\n"
22142 "\n"
22143 msgstr ""
22144
22145 # type: textblock
22146 #: ../fish/guestfish-actions.pod:3467
22147 msgid ""
22148 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
22149 "UUID of a filesystem."
22150 msgstr ""
22151
22152 # type: =head2
22153 #: ../fish/guestfish-actions.pod:3470
22154 msgid "set-memsize"
22155 msgstr ""
22156
22157 # type: =head2
22158 #: ../fish/guestfish-actions.pod:3472
22159 msgid "memsize"
22160 msgstr ""
22161
22162 # type: verbatim
22163 #: ../fish/guestfish-actions.pod:3474
22164 #, no-wrap
22165 msgid ""
22166 " set-memsize memsize\n"
22167 "\n"
22168 msgstr ""
22169
22170 # type: textblock
22171 #: ../fish/guestfish-actions.pod:3476
22172 msgid ""
22173 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
22174 "This only has any effect if called before L</launch>."
22175 msgstr ""
22176
22177 # type: =head2
22178 #: ../fish/guestfish-actions.pod:3487
22179 msgid "set-network"
22180 msgstr ""
22181
22182 # type: =head2
22183 #: ../fish/guestfish-actions.pod:3489
22184 msgid "network"
22185 msgstr ""
22186
22187 # type: verbatim
22188 #: ../fish/guestfish-actions.pod:3491
22189 #, no-wrap
22190 msgid ""
22191 " set-network true|false\n"
22192 "\n"
22193 msgstr ""
22194
22195 # type: textblock
22196 #: ../fish/guestfish-actions.pod:3499
22197 msgid "You must call this before calling L</launch>, otherwise it has no effect."
22198 msgstr ""
22199
22200 # type: =head2
22201 #: ../fish/guestfish-actions.pod:3502
22202 msgid "set-path"
22203 msgstr ""
22204
22205 # type: =head2
22206 #: ../fish/guestfish-actions.pod:3504
22207 msgid "path"
22208 msgstr ""
22209
22210 # type: verbatim
22211 #: ../fish/guestfish-actions.pod:3506
22212 #, no-wrap
22213 msgid ""
22214 " set-path searchpath\n"
22215 "\n"
22216 msgstr ""
22217
22218 # type: =head2
22219 #: ../fish/guestfish-actions.pod:3515
22220 msgid "set-qemu"
22221 msgstr ""
22222
22223 # type: =head2
22224 #: ../fish/guestfish-actions.pod:3517
22225 msgid "qemu"
22226 msgstr ""
22227
22228 # type: verbatim
22229 #: ../fish/guestfish-actions.pod:3519
22230 #, no-wrap
22231 msgid ""
22232 " set-qemu qemu\n"
22233 "\n"
22234 msgstr ""
22235
22236 # type: =head2
22237 #: ../fish/guestfish-actions.pod:3539
22238 msgid "set-recovery-proc"
22239 msgstr ""
22240
22241 # type: =head2
22242 #: ../fish/guestfish-actions.pod:3541
22243 msgid "recovery-proc"
22244 msgstr ""
22245
22246 # type: verbatim
22247 #: ../fish/guestfish-actions.pod:3543
22248 #, no-wrap
22249 msgid ""
22250 " set-recovery-proc true|false\n"
22251 "\n"
22252 msgstr ""
22253
22254 # type: textblock
22255 #: ../fish/guestfish-actions.pod:3545
22256 msgid ""
22257 "If this is called with the parameter C<false> then L</launch> does not "
22258 "create a recovery process.  The purpose of the recovery process is to stop "
22259 "runaway qemu processes in the case where the main program aborts abruptly."
22260 msgstr ""
22261
22262 # type: textblock
22263 #: ../fish/guestfish-actions.pod:3550
22264 msgid ""
22265 "This only has any effect if called before L</launch>, and the default is "
22266 "true."
22267 msgstr ""
22268
22269 # type: =head2
22270 #: ../fish/guestfish-actions.pod:3559
22271 msgid "set-selinux"
22272 msgstr ""
22273
22274 # type: =head2
22275 #: ../fish/guestfish-actions.pod:3561
22276 msgid "selinux"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #: ../fish/guestfish-actions.pod:3563
22281 #, no-wrap
22282 msgid ""
22283 " set-selinux true|false\n"
22284 "\n"
22285 msgstr ""
22286
22287 # type: =head2
22288 #: ../fish/guestfish-actions.pod:3574
22289 msgid "set-trace"
22290 msgstr ""
22291
22292 # type: =head2
22293 #: ../fish/guestfish-actions.pod:3576
22294 msgid "trace"
22295 msgstr ""
22296
22297 # type: verbatim
22298 #: ../fish/guestfish-actions.pod:3578
22299 #, no-wrap
22300 msgid ""
22301 " set-trace true|false\n"
22302 "\n"
22303 msgstr ""
22304
22305 # type: =head2
22306 #: ../fish/guestfish-actions.pod:3594
22307 msgid "set-verbose"
22308 msgstr ""
22309
22310 # type: =head2
22311 #: ../fish/guestfish-actions.pod:3596
22312 msgid "verbose"
22313 msgstr ""
22314
22315 # type: verbatim
22316 #: ../fish/guestfish-actions.pod:3598
22317 #, no-wrap
22318 msgid ""
22319 " set-verbose true|false\n"
22320 "\n"
22321 msgstr ""
22322
22323 # type: =head2
22324 #: ../fish/guestfish-actions.pod:3605
22325 msgid "setcon"
22326 msgstr ""
22327
22328 # type: verbatim
22329 #: ../fish/guestfish-actions.pod:3607
22330 #, no-wrap
22331 msgid ""
22332 " setcon context\n"
22333 "\n"
22334 msgstr ""
22335
22336 # type: =head2
22337 #: ../fish/guestfish-actions.pod:3614
22338 msgid "setxattr"
22339 msgstr ""
22340
22341 # type: verbatim
22342 #: ../fish/guestfish-actions.pod:3616
22343 #, no-wrap
22344 msgid ""
22345 " setxattr xattr val vallen path\n"
22346 "\n"
22347 msgstr ""
22348
22349 # type: textblock
22350 #: ../fish/guestfish-actions.pod:3622
22351 msgid "See also: L</lsetxattr>, L<attr(5)>."
22352 msgstr ""
22353
22354 # type: =head2
22355 #: ../fish/guestfish-actions.pod:3624
22356 msgid "sfdisk"
22357 msgstr ""
22358
22359 # type: verbatim
22360 #: ../fish/guestfish-actions.pod:3626
22361 #, no-wrap
22362 msgid ""
22363 " sfdisk device cyls heads sectors 'lines ...'\n"
22364 "\n"
22365 msgstr ""
22366
22367 # type: textblock
22368 #: ../fish/guestfish-actions.pod:3648
22369 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
22370 msgstr ""
22371
22372 # type: =head2
22373 #: ../fish/guestfish-actions.pod:3654
22374 msgid "sfdiskM"
22375 msgstr ""
22376
22377 # type: verbatim
22378 #: ../fish/guestfish-actions.pod:3656
22379 #, no-wrap
22380 msgid ""
22381 " sfdiskM device 'lines ...'\n"
22382 "\n"
22383 msgstr ""
22384
22385 # type: textblock
22386 #: ../fish/guestfish-actions.pod:3658
22387 msgid ""
22388 "This is a simplified interface to the L</sfdisk> command, where partition "
22389 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
22390 "you don't need to specify the cyls, heads and sectors parameters which were "
22391 "rarely if ever used anyway."
22392 msgstr ""
22393
22394 # type: textblock
22395 #: ../fish/guestfish-actions.pod:3664
22396 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
22397 msgstr ""
22398
22399 # type: =head2
22400 #: ../fish/guestfish-actions.pod:3670
22401 msgid "sfdisk-N"
22402 msgstr ""
22403
22404 # type: verbatim
22405 #: ../fish/guestfish-actions.pod:3672
22406 #, no-wrap
22407 msgid ""
22408 " sfdisk-N device partnum cyls heads sectors line\n"
22409 "\n"
22410 msgstr ""
22411
22412 # type: textblock
22413 #: ../fish/guestfish-actions.pod:3677
22414 msgid ""
22415 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
22416 "cyls/heads/sectors parameters."
22417 msgstr ""
22418
22419 # type: textblock
22420 #: ../fish/guestfish-actions.pod:3680
22421 msgid "See also: L</part-add>"
22422 msgstr ""
22423
22424 # type: =head2
22425 #: ../fish/guestfish-actions.pod:3685
22426 msgid "sfdisk-disk-geometry"
22427 msgstr ""
22428
22429 # type: verbatim
22430 #: ../fish/guestfish-actions.pod:3687
22431 #, no-wrap
22432 msgid ""
22433 " sfdisk-disk-geometry device\n"
22434 "\n"
22435 msgstr ""
22436
22437 # type: textblock
22438 #: ../fish/guestfish-actions.pod:3689
22439 msgid ""
22440 "This displays the disk geometry of C<device> read from the partition table.  "
22441 "Especially in the case where the underlying block device has been resized, "
22442 "this can be different from the kernel's idea of the geometry (see "
22443 "L</sfdisk-kernel-geometry>)."
22444 msgstr ""
22445
22446 # type: =head2
22447 #: ../fish/guestfish-actions.pod:3697
22448 msgid "sfdisk-kernel-geometry"
22449 msgstr ""
22450
22451 # type: verbatim
22452 #: ../fish/guestfish-actions.pod:3699
22453 #, no-wrap
22454 msgid ""
22455 " sfdisk-kernel-geometry device\n"
22456 "\n"
22457 msgstr ""
22458
22459 # type: =head2
22460 #: ../fish/guestfish-actions.pod:3706
22461 msgid "sfdisk-l"
22462 msgstr ""
22463
22464 # type: verbatim
22465 #: ../fish/guestfish-actions.pod:3708
22466 #, no-wrap
22467 msgid ""
22468 " sfdisk-l device\n"
22469 "\n"
22470 msgstr ""
22471
22472 # type: textblock
22473 #: ../fish/guestfish-actions.pod:3714
22474 msgid "See also: L</part-list>"
22475 msgstr ""
22476
22477 # type: =head2
22478 #: ../fish/guestfish-actions.pod:3716
22479 msgid "sh"
22480 msgstr ""
22481
22482 # type: verbatim
22483 #: ../fish/guestfish-actions.pod:3718
22484 #, no-wrap
22485 msgid ""
22486 " sh command\n"
22487 "\n"
22488 msgstr ""
22489
22490 # type: textblock
22491 #: ../fish/guestfish-actions.pod:3723
22492 msgid "This is like L</command>, but passes the command to:"
22493 msgstr ""
22494
22495 # type: textblock
22496 #: ../fish/guestfish-actions.pod:3731
22497 msgid "All the provisos about L</command> apply to this call."
22498 msgstr ""
22499
22500 # type: =head2
22501 #: ../fish/guestfish-actions.pod:3733
22502 msgid "sh-lines"
22503 msgstr ""
22504
22505 # type: verbatim
22506 #: ../fish/guestfish-actions.pod:3735
22507 #, no-wrap
22508 msgid ""
22509 " sh-lines command\n"
22510 "\n"
22511 msgstr ""
22512
22513 # type: textblock
22514 #: ../fish/guestfish-actions.pod:3737
22515 msgid "This is the same as L</sh>, but splits the result into a list of lines."
22516 msgstr ""
22517
22518 # type: textblock
22519 #: ../fish/guestfish-actions.pod:3740
22520 msgid "See also: L</command-lines>"
22521 msgstr ""
22522
22523 # type: =head2
22524 #: ../fish/guestfish-actions.pod:3742
22525 msgid "sleep"
22526 msgstr ""
22527
22528 # type: verbatim
22529 #: ../fish/guestfish-actions.pod:3744
22530 #, no-wrap
22531 msgid ""
22532 " sleep secs\n"
22533 "\n"
22534 msgstr ""
22535
22536 # type: =head2
22537 #: ../fish/guestfish-actions.pod:3748
22538 msgid "stat"
22539 msgstr ""
22540
22541 # type: verbatim
22542 #: ../fish/guestfish-actions.pod:3750
22543 #, no-wrap
22544 msgid ""
22545 " stat path\n"
22546 "\n"
22547 msgstr ""
22548
22549 # type: =head2
22550 #: ../fish/guestfish-actions.pod:3756
22551 msgid "statvfs"
22552 msgstr ""
22553
22554 # type: verbatim
22555 #: ../fish/guestfish-actions.pod:3758
22556 #, no-wrap
22557 msgid ""
22558 " statvfs path\n"
22559 "\n"
22560 msgstr ""
22561
22562 # type: =head2
22563 #: ../fish/guestfish-actions.pod:3766
22564 msgid "strings"
22565 msgstr ""
22566
22567 # type: verbatim
22568 #: ../fish/guestfish-actions.pod:3768
22569 #, no-wrap
22570 msgid ""
22571 " strings path\n"
22572 "\n"
22573 msgstr ""
22574
22575 # type: =head2
22576 #: ../fish/guestfish-actions.pod:3776
22577 msgid "strings-e"
22578 msgstr ""
22579
22580 # type: verbatim
22581 #: ../fish/guestfish-actions.pod:3778
22582 #, no-wrap
22583 msgid ""
22584 " strings-e encoding path\n"
22585 "\n"
22586 msgstr ""
22587
22588 # type: textblock
22589 #: ../fish/guestfish-actions.pod:3780
22590 msgid ""
22591 "This is like the L</strings> command, but allows you to specify the encoding "
22592 "of strings that are looked for in the source file C<path>."
22593 msgstr ""
22594
22595 # type: textblock
22596 #: ../fish/guestfish-actions.pod:3790
22597 msgid ""
22598 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
22599 "ISO-8859-X (this is what L</strings> uses)."
22600 msgstr ""
22601
22602 # type: =head2
22603 #: ../fish/guestfish-actions.pod:3822
22604 msgid "swapoff-device"
22605 msgstr ""
22606
22607 # type: verbatim
22608 #: ../fish/guestfish-actions.pod:3824
22609 #, no-wrap
22610 msgid ""
22611 " swapoff-device device\n"
22612 "\n"
22613 msgstr ""
22614
22615 # type: textblock
22616 #: ../fish/guestfish-actions.pod:3826
22617 msgid ""
22618 "This command disables the libguestfs appliance swap device or partition "
22619 "named C<device>.  See L</swapon-device>."
22620 msgstr ""
22621
22622 # type: =head2
22623 #: ../fish/guestfish-actions.pod:3830
22624 msgid "swapoff-file"
22625 msgstr ""
22626
22627 # type: verbatim
22628 #: ../fish/guestfish-actions.pod:3832
22629 #, no-wrap
22630 msgid ""
22631 " swapoff-file file\n"
22632 "\n"
22633 msgstr ""
22634
22635 # type: =head2
22636 #: ../fish/guestfish-actions.pod:3836
22637 msgid "swapoff-label"
22638 msgstr ""
22639
22640 # type: verbatim
22641 #: ../fish/guestfish-actions.pod:3838
22642 #, no-wrap
22643 msgid ""
22644 " swapoff-label label\n"
22645 "\n"
22646 msgstr ""
22647
22648 # type: =head2
22649 #: ../fish/guestfish-actions.pod:3843
22650 msgid "swapoff-uuid"
22651 msgstr ""
22652
22653 # type: verbatim
22654 #: ../fish/guestfish-actions.pod:3845
22655 #, no-wrap
22656 msgid ""
22657 " swapoff-uuid uuid\n"
22658 "\n"
22659 msgstr ""
22660
22661 # type: =head2
22662 #: ../fish/guestfish-actions.pod:3850
22663 msgid "swapon-device"
22664 msgstr ""
22665
22666 # type: verbatim
22667 #: ../fish/guestfish-actions.pod:3852
22668 #, no-wrap
22669 msgid ""
22670 " swapon-device device\n"
22671 "\n"
22672 msgstr ""
22673
22674 # type: textblock
22675 #: ../fish/guestfish-actions.pod:3854
22676 msgid ""
22677 "This command enables the libguestfs appliance to use the swap device or "
22678 "partition named C<device>.  The increased memory is made available for all "
22679 "commands, for example those run using L</command> or L</sh>."
22680 msgstr ""
22681
22682 # type: =head2
22683 #: ../fish/guestfish-actions.pod:3866
22684 msgid "swapon-file"
22685 msgstr ""
22686
22687 # type: verbatim
22688 #: ../fish/guestfish-actions.pod:3868
22689 #, no-wrap
22690 msgid ""
22691 " swapon-file file\n"
22692 "\n"
22693 msgstr ""
22694
22695 # type: textblock
22696 #: ../fish/guestfish-actions.pod:3870
22697 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
22698 msgstr ""
22699
22700 # type: =head2
22701 #: ../fish/guestfish-actions.pod:3873
22702 msgid "swapon-label"
22703 msgstr ""
22704
22705 # type: verbatim
22706 #: ../fish/guestfish-actions.pod:3875
22707 #, no-wrap
22708 msgid ""
22709 " swapon-label label\n"
22710 "\n"
22711 msgstr ""
22712
22713 # type: textblock
22714 #: ../fish/guestfish-actions.pod:3877
22715 msgid ""
22716 "This command enables swap to a labeled swap partition.  See "
22717 "L</swapon-device> for other notes."
22718 msgstr ""
22719
22720 # type: =head2
22721 #: ../fish/guestfish-actions.pod:3880
22722 msgid "swapon-uuid"
22723 msgstr ""
22724
22725 # type: verbatim
22726 #: ../fish/guestfish-actions.pod:3882
22727 #, no-wrap
22728 msgid ""
22729 " swapon-uuid uuid\n"
22730 "\n"
22731 msgstr ""
22732
22733 # type: textblock
22734 #: ../fish/guestfish-actions.pod:3884
22735 msgid ""
22736 "This command enables swap to a swap partition with the given UUID.  See "
22737 "L</swapon-device> for other notes."
22738 msgstr ""
22739
22740 # type: =head2
22741 #: ../fish/guestfish-actions.pod:3887
22742 msgid "sync"
22743 msgstr ""
22744
22745 # type: verbatim
22746 #: ../fish/guestfish-actions.pod:3889
22747 #, no-wrap
22748 msgid ""
22749 " sync\n"
22750 "\n"
22751 msgstr ""
22752
22753 # type: =head2
22754 #: ../fish/guestfish-actions.pod:3897
22755 msgid "tail"
22756 msgstr ""
22757
22758 # type: verbatim
22759 #: ../fish/guestfish-actions.pod:3899
22760 #, no-wrap
22761 msgid ""
22762 " tail path\n"
22763 "\n"
22764 msgstr ""
22765
22766 # type: =head2
22767 #: ../fish/guestfish-actions.pod:3907
22768 msgid "tail-n"
22769 msgstr ""
22770
22771 # type: verbatim
22772 #: ../fish/guestfish-actions.pod:3909
22773 #, no-wrap
22774 msgid ""
22775 " tail-n nrlines path\n"
22776 "\n"
22777 msgstr ""
22778
22779 # type: =head2
22780 #: ../fish/guestfish-actions.pod:3922
22781 msgid "tar-in"
22782 msgstr ""
22783
22784 # type: verbatim
22785 #: ../fish/guestfish-actions.pod:3924
22786 #, no-wrap
22787 msgid ""
22788 " tar-in (tarfile|-) directory\n"
22789 "\n"
22790 msgstr ""
22791
22792 # type: textblock
22793 #: ../fish/guestfish-actions.pod:3929
22794 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
22795 msgstr ""
22796
22797 # type: =head2
22798 #: ../fish/guestfish-actions.pod:3934
22799 msgid "tar-out"
22800 msgstr ""
22801
22802 # type: verbatim
22803 #: ../fish/guestfish-actions.pod:3936
22804 #, no-wrap
22805 msgid ""
22806 " tar-out directory (tarfile|-)\n"
22807 "\n"
22808 msgstr ""
22809
22810 # type: textblock
22811 #: ../fish/guestfish-actions.pod:3941
22812 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
22813 msgstr ""
22814
22815 # type: =head2
22816 #: ../fish/guestfish-actions.pod:3946
22817 msgid "tgz-in"
22818 msgstr ""
22819
22820 # type: verbatim
22821 #: ../fish/guestfish-actions.pod:3948
22822 #, no-wrap
22823 msgid ""
22824 " tgz-in (tarball|-) directory\n"
22825 "\n"
22826 msgstr ""
22827
22828 # type: textblock
22829 #: ../fish/guestfish-actions.pod:3953
22830 msgid "To upload an uncompressed tarball, use L</tar-in>."
22831 msgstr ""
22832
22833 # type: =head2
22834 #: ../fish/guestfish-actions.pod:3957
22835 msgid "tgz-out"
22836 msgstr ""
22837
22838 # type: verbatim
22839 #: ../fish/guestfish-actions.pod:3959
22840 #, no-wrap
22841 msgid ""
22842 " tgz-out directory (tarball|-)\n"
22843 "\n"
22844 msgstr ""
22845
22846 # type: textblock
22847 #: ../fish/guestfish-actions.pod:3964
22848 msgid "To download an uncompressed tarball, use L</tar-out>."
22849 msgstr ""
22850
22851 # type: =head2
22852 #: ../fish/guestfish-actions.pod:3968
22853 msgid "touch"
22854 msgstr ""
22855
22856 # type: verbatim
22857 #: ../fish/guestfish-actions.pod:3970
22858 #, no-wrap
22859 msgid ""
22860 " touch path\n"
22861 "\n"
22862 msgstr ""
22863
22864 # type: =head2
22865 #: ../fish/guestfish-actions.pod:3979
22866 msgid "truncate"
22867 msgstr ""
22868
22869 # type: verbatim
22870 #: ../fish/guestfish-actions.pod:3981
22871 #, no-wrap
22872 msgid ""
22873 " truncate path\n"
22874 "\n"
22875 msgstr ""
22876
22877 # type: =head2
22878 #: ../fish/guestfish-actions.pod:3986
22879 msgid "truncate-size"
22880 msgstr ""
22881
22882 # type: verbatim
22883 #: ../fish/guestfish-actions.pod:3988
22884 #, no-wrap
22885 msgid ""
22886 " truncate-size path size\n"
22887 "\n"
22888 msgstr ""
22889
22890 # type: textblock
22891 #: ../fish/guestfish-actions.pod:3993
22892 msgid ""
22893 "If the current file size is less than C<size> then the file is extended to "
22894 "the required size with zero bytes.  This creates a sparse file (ie. disk "
22895 "blocks are not allocated for the file until you write to it).  To create a "
22896 "non-sparse file of zeroes, use L</fallocate64> instead."
22897 msgstr ""
22898
22899 # type: =head2
22900 #: ../fish/guestfish-actions.pod:3999
22901 msgid "tune2fs-l"
22902 msgstr ""
22903
22904 # type: verbatim
22905 #: ../fish/guestfish-actions.pod:4001
22906 #, no-wrap
22907 msgid ""
22908 " tune2fs-l device\n"
22909 "\n"
22910 msgstr ""
22911
22912 # type: =head2
22913 #: ../fish/guestfish-actions.pod:4011
22914 msgid "txz-in"
22915 msgstr ""
22916
22917 # type: verbatim
22918 #: ../fish/guestfish-actions.pod:4013
22919 #, no-wrap
22920 msgid ""
22921 " txz-in (tarball|-) directory\n"
22922 "\n"
22923 msgstr ""
22924
22925 # type: =head2
22926 #: ../fish/guestfish-actions.pod:4020
22927 msgid "txz-out"
22928 msgstr ""
22929
22930 # type: verbatim
22931 #: ../fish/guestfish-actions.pod:4022
22932 #, no-wrap
22933 msgid ""
22934 " txz-out directory (tarball|-)\n"
22935 "\n"
22936 msgstr ""
22937
22938 # type: =head2
22939 #: ../fish/guestfish-actions.pod:4029
22940 msgid "umask"
22941 msgstr ""
22942
22943 # type: verbatim
22944 #: ../fish/guestfish-actions.pod:4031
22945 #, no-wrap
22946 msgid ""
22947 " umask mask\n"
22948 "\n"
22949 msgstr ""
22950
22951 # type: textblock
22952 #: ../fish/guestfish-actions.pod:4045
22953 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
22954 msgstr ""
22955
22956 # type: =head2
22957 #: ../fish/guestfish-actions.pod:4050
22958 msgid "umount"
22959 msgstr ""
22960
22961 # type: =head2
22962 #: ../fish/guestfish-actions.pod:4052
22963 msgid "unmount"
22964 msgstr ""
22965
22966 # type: verbatim
22967 #: ../fish/guestfish-actions.pod:4054
22968 #, no-wrap
22969 msgid ""
22970 " umount pathordevice\n"
22971 "\n"
22972 msgstr ""
22973
22974 # type: =head2
22975 #: ../fish/guestfish-actions.pod:4060
22976 msgid "umount-all"
22977 msgstr ""
22978
22979 # type: =head2
22980 #: ../fish/guestfish-actions.pod:4062
22981 msgid "unmount-all"
22982 msgstr ""
22983
22984 # type: verbatim
22985 #: ../fish/guestfish-actions.pod:4064
22986 #, no-wrap
22987 msgid ""
22988 " umount-all\n"
22989 "\n"
22990 msgstr ""
22991
22992 # type: =head2
22993 #: ../fish/guestfish-actions.pod:4070
22994 msgid "upload"
22995 msgstr ""
22996
22997 # type: verbatim
22998 #: ../fish/guestfish-actions.pod:4072
22999 #, no-wrap
23000 msgid ""
23001 " upload (filename|-) remotefilename\n"
23002 "\n"
23003 msgstr ""
23004
23005 # type: textblock
23006 #: ../fish/guestfish-actions.pod:4079
23007 msgid "See also L</download>."
23008 msgstr ""
23009
23010 # type: =head2
23011 #: ../fish/guestfish-actions.pod:4083
23012 msgid "upload-offset"
23013 msgstr ""
23014
23015 # type: verbatim
23016 #: ../fish/guestfish-actions.pod:4085
23017 #, no-wrap
23018 msgid ""
23019 " upload-offset (filename|-) remotefilename offset\n"
23020 "\n"
23021 msgstr ""
23022
23023 # type: textblock
23024 #: ../fish/guestfish-actions.pod:4097
23025 msgid ""
23026 "Note that there is no limit on the amount of data that can be uploaded with "
23027 "this call, unlike with L</pwrite>, and this call always writes the full "
23028 "amount unless an error occurs."
23029 msgstr ""
23030
23031 # type: textblock
23032 #: ../fish/guestfish-actions.pod:4102
23033 msgid "See also L</upload>, L</pwrite>."
23034 msgstr ""
23035
23036 # type: =head2
23037 #: ../fish/guestfish-actions.pod:4106
23038 msgid "utimens"
23039 msgstr ""
23040
23041 # type: verbatim
23042 #: ../fish/guestfish-actions.pod:4108
23043 #, no-wrap
23044 msgid ""
23045 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
23046 "\n"
23047 msgstr ""
23048
23049 # type: =head2
23050 #: ../fish/guestfish-actions.pod:4127
23051 msgid "version"
23052 msgstr ""
23053
23054 # type: verbatim
23055 #: ../fish/guestfish-actions.pod:4129
23056 #, no-wrap
23057 msgid ""
23058 " version\n"
23059 "\n"
23060 msgstr ""
23061
23062 # type: textblock
23063 #: ../fish/guestfish-actions.pod:4156
23064 msgid ""
23065 "I<Note:> Don't use this call to test for availability of features.  In "
23066 "enterprise distributions we backport features from later versions into "
23067 "earlier versions, making this an unreliable way to test for features.  Use "
23068 "L</available> instead."
23069 msgstr ""
23070
23071 # type: =head2
23072 #: ../fish/guestfish-actions.pod:4162
23073 msgid "vfs-label"
23074 msgstr ""
23075
23076 # type: verbatim
23077 #: ../fish/guestfish-actions.pod:4164
23078 #, no-wrap
23079 msgid ""
23080 " vfs-label device\n"
23081 "\n"
23082 msgstr ""
23083
23084 # type: textblock
23085 #: ../fish/guestfish-actions.pod:4171
23086 msgid "To find a filesystem from the label, use L</findfs-label>."
23087 msgstr ""
23088
23089 # type: =head2
23090 #: ../fish/guestfish-actions.pod:4173
23091 msgid "vfs-type"
23092 msgstr ""
23093
23094 # type: verbatim
23095 #: ../fish/guestfish-actions.pod:4175
23096 #, no-wrap
23097 msgid ""
23098 " vfs-type device\n"
23099 "\n"
23100 msgstr ""
23101
23102 # type: =head2
23103 #: ../fish/guestfish-actions.pod:4185
23104 msgid "vfs-uuid"
23105 msgstr ""
23106
23107 # type: verbatim
23108 #: ../fish/guestfish-actions.pod:4187
23109 #, no-wrap
23110 msgid ""
23111 " vfs-uuid device\n"
23112 "\n"
23113 msgstr ""
23114
23115 # type: textblock
23116 #: ../fish/guestfish-actions.pod:4194
23117 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
23118 msgstr ""
23119
23120 # type: =head2
23121 #: ../fish/guestfish-actions.pod:4196
23122 msgid "vg-activate"
23123 msgstr ""
23124
23125 # type: verbatim
23126 #: ../fish/guestfish-actions.pod:4198
23127 #, no-wrap
23128 msgid ""
23129 " vg-activate true|false 'volgroups ...'\n"
23130 "\n"
23131 msgstr ""
23132
23133 # type: =head2
23134 #: ../fish/guestfish-actions.pod:4211
23135 msgid "vg-activate-all"
23136 msgstr ""
23137
23138 # type: verbatim
23139 #: ../fish/guestfish-actions.pod:4213
23140 #, no-wrap
23141 msgid ""
23142 " vg-activate-all true|false\n"
23143 "\n"
23144 msgstr ""
23145
23146 # type: =head2
23147 #: ../fish/guestfish-actions.pod:4223
23148 msgid "vgcreate"
23149 msgstr ""
23150
23151 # type: verbatim
23152 #: ../fish/guestfish-actions.pod:4225
23153 #, no-wrap
23154 msgid ""
23155 " vgcreate volgroup 'physvols ...'\n"
23156 "\n"
23157 msgstr ""
23158
23159 # type: =head2
23160 #: ../fish/guestfish-actions.pod:4230
23161 msgid "vglvuuids"
23162 msgstr ""
23163
23164 # type: verbatim
23165 #: ../fish/guestfish-actions.pod:4232
23166 #, no-wrap
23167 msgid ""
23168 " vglvuuids vgname\n"
23169 "\n"
23170 msgstr ""
23171
23172 # type: textblock
23173 #: ../fish/guestfish-actions.pod:4237
23174 msgid ""
23175 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
23176 "logical volumes and volume groups."
23177 msgstr ""
23178
23179 # type: textblock
23180 #: ../fish/guestfish-actions.pod:4240
23181 msgid "See also L</vgpvuuids>."
23182 msgstr ""
23183
23184 # type: =head2
23185 #: ../fish/guestfish-actions.pod:4242
23186 msgid "vgpvuuids"
23187 msgstr ""
23188
23189 # type: verbatim
23190 #: ../fish/guestfish-actions.pod:4244
23191 #, no-wrap
23192 msgid ""
23193 " vgpvuuids vgname\n"
23194 "\n"
23195 msgstr ""
23196
23197 # type: textblock
23198 #: ../fish/guestfish-actions.pod:4249
23199 msgid ""
23200 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
23201 "physical volumes and volume groups."
23202 msgstr ""
23203
23204 # type: textblock
23205 #: ../fish/guestfish-actions.pod:4252
23206 msgid "See also L</vglvuuids>."
23207 msgstr ""
23208
23209 # type: =head2
23210 #: ../fish/guestfish-actions.pod:4254
23211 msgid "vgremove"
23212 msgstr ""
23213
23214 # type: verbatim
23215 #: ../fish/guestfish-actions.pod:4256
23216 #, no-wrap
23217 msgid ""
23218 " vgremove vgname\n"
23219 "\n"
23220 msgstr ""
23221
23222 # type: =head2
23223 #: ../fish/guestfish-actions.pod:4263
23224 msgid "vgrename"
23225 msgstr ""
23226
23227 # type: verbatim
23228 #: ../fish/guestfish-actions.pod:4265
23229 #, no-wrap
23230 msgid ""
23231 " vgrename volgroup newvolgroup\n"
23232 "\n"
23233 msgstr ""
23234
23235 # type: =head2
23236 #: ../fish/guestfish-actions.pod:4269
23237 msgid "vgs"
23238 msgstr ""
23239
23240 # type: verbatim
23241 #: ../fish/guestfish-actions.pod:4271
23242 #, no-wrap
23243 msgid ""
23244 " vgs\n"
23245 "\n"
23246 msgstr ""
23247
23248 # type: textblock
23249 #: ../fish/guestfish-actions.pod:4279
23250 msgid "See also L</vgs-full>."
23251 msgstr ""
23252
23253 # type: =head2
23254 #: ../fish/guestfish-actions.pod:4281
23255 msgid "vgs-full"
23256 msgstr ""
23257
23258 # type: verbatim
23259 #: ../fish/guestfish-actions.pod:4283
23260 #, no-wrap
23261 msgid ""
23262 " vgs-full\n"
23263 "\n"
23264 msgstr ""
23265
23266 # type: =head2
23267 #: ../fish/guestfish-actions.pod:4288
23268 msgid "vgscan"
23269 msgstr ""
23270
23271 # type: verbatim
23272 #: ../fish/guestfish-actions.pod:4290
23273 #, no-wrap
23274 msgid ""
23275 " vgscan\n"
23276 "\n"
23277 msgstr ""
23278
23279 # type: =head2
23280 #: ../fish/guestfish-actions.pod:4295
23281 msgid "vguuid"
23282 msgstr ""
23283
23284 # type: verbatim
23285 #: ../fish/guestfish-actions.pod:4297
23286 #, no-wrap
23287 msgid ""
23288 " vguuid vgname\n"
23289 "\n"
23290 msgstr ""
23291
23292 # type: =head2
23293 #: ../fish/guestfish-actions.pod:4301
23294 msgid "wc-c"
23295 msgstr ""
23296
23297 # type: verbatim
23298 #: ../fish/guestfish-actions.pod:4303
23299 #, no-wrap
23300 msgid ""
23301 " wc-c path\n"
23302 "\n"
23303 msgstr ""
23304
23305 # type: =head2
23306 #: ../fish/guestfish-actions.pod:4308
23307 msgid "wc-l"
23308 msgstr ""
23309
23310 # type: verbatim
23311 #: ../fish/guestfish-actions.pod:4310
23312 #, no-wrap
23313 msgid ""
23314 " wc-l path\n"
23315 "\n"
23316 msgstr ""
23317
23318 # type: =head2
23319 #: ../fish/guestfish-actions.pod:4315
23320 msgid "wc-w"
23321 msgstr ""
23322
23323 # type: verbatim
23324 #: ../fish/guestfish-actions.pod:4317
23325 #, no-wrap
23326 msgid ""
23327 " wc-w path\n"
23328 "\n"
23329 msgstr ""
23330
23331 # type: =head2
23332 #: ../fish/guestfish-actions.pod:4322
23333 msgid "write"
23334 msgstr ""
23335
23336 # type: verbatim
23337 #: ../fish/guestfish-actions.pod:4324
23338 #, no-wrap
23339 msgid ""
23340 " write path content\n"
23341 "\n"
23342 msgstr ""
23343
23344 # type: =head2
23345 #: ../fish/guestfish-actions.pod:4332
23346 msgid "write-file"
23347 msgstr ""
23348
23349 # type: verbatim
23350 #: ../fish/guestfish-actions.pod:4334
23351 #, no-wrap
23352 msgid ""
23353 " write-file path content size\n"
23354 "\n"
23355 msgstr ""
23356
23357 # type: =head2
23358 #: ../fish/guestfish-actions.pod:4357
23359 msgid "zegrep"
23360 msgstr ""
23361
23362 # type: verbatim
23363 #: ../fish/guestfish-actions.pod:4359
23364 #, no-wrap
23365 msgid ""
23366 " zegrep regex path\n"
23367 "\n"
23368 msgstr ""
23369
23370 # type: =head2
23371 #: ../fish/guestfish-actions.pod:4367
23372 msgid "zegrepi"
23373 msgstr ""
23374
23375 # type: verbatim
23376 #: ../fish/guestfish-actions.pod:4369
23377 #, no-wrap
23378 msgid ""
23379 " zegrepi regex path\n"
23380 "\n"
23381 msgstr ""
23382
23383 # type: =head2
23384 #: ../fish/guestfish-actions.pod:4377
23385 msgid "zero"
23386 msgstr ""
23387
23388 # type: verbatim
23389 #: ../fish/guestfish-actions.pod:4379
23390 #, no-wrap
23391 msgid ""
23392 " zero device\n"
23393 "\n"
23394 msgstr ""
23395
23396 # type: textblock
23397 #: ../fish/guestfish-actions.pod:4387
23398 msgid "See also: L</zero-device>, L</scrub-device>."
23399 msgstr ""
23400
23401 # type: =head2
23402 #: ../fish/guestfish-actions.pod:4389
23403 msgid "zero-device"
23404 msgstr ""
23405
23406 # type: verbatim
23407 #: ../fish/guestfish-actions.pod:4391
23408 #, no-wrap
23409 msgid ""
23410 " zero-device device\n"
23411 "\n"
23412 msgstr ""
23413
23414 # type: textblock
23415 #: ../fish/guestfish-actions.pod:4393
23416 msgid ""
23417 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
23418 "which just zeroes the first few blocks of a device."
23419 msgstr ""
23420
23421 # type: =head2
23422 #: ../fish/guestfish-actions.pod:4400
23423 msgid "zerofree"
23424 msgstr ""
23425
23426 # type: verbatim
23427 #: ../fish/guestfish-actions.pod:4402
23428 #, no-wrap
23429 msgid ""
23430 " zerofree device\n"
23431 "\n"
23432 msgstr ""
23433
23434 # type: =head2
23435 #: ../fish/guestfish-actions.pod:4415
23436 msgid "zfgrep"
23437 msgstr ""
23438
23439 # type: verbatim
23440 #: ../fish/guestfish-actions.pod:4417
23441 #, no-wrap
23442 msgid ""
23443 " zfgrep pattern path\n"
23444 "\n"
23445 msgstr ""
23446
23447 # type: =head2
23448 #: ../fish/guestfish-actions.pod:4425
23449 msgid "zfgrepi"
23450 msgstr ""
23451
23452 # type: verbatim
23453 #: ../fish/guestfish-actions.pod:4427
23454 #, no-wrap
23455 msgid ""
23456 " zfgrepi pattern path\n"
23457 "\n"
23458 msgstr ""
23459
23460 # type: =head2
23461 #: ../fish/guestfish-actions.pod:4435
23462 msgid "zfile"
23463 msgstr ""
23464
23465 # type: verbatim
23466 #: ../fish/guestfish-actions.pod:4437
23467 #, no-wrap
23468 msgid ""
23469 " zfile meth path\n"
23470 "\n"
23471 msgstr ""
23472
23473 # type: textblock
23474 #: ../fish/guestfish-actions.pod:4444
23475 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
23476 msgstr ""
23477
23478 # type: =head2
23479 #: ../fish/guestfish-actions.pod:4454
23480 msgid "zgrep"
23481 msgstr ""
23482
23483 # type: verbatim
23484 #: ../fish/guestfish-actions.pod:4456
23485 #, no-wrap
23486 msgid ""
23487 " zgrep regex path\n"
23488 "\n"
23489 msgstr ""
23490
23491 # type: =head2
23492 #: ../fish/guestfish-actions.pod:4464
23493 msgid "zgrepi"
23494 msgstr ""
23495
23496 # type: verbatim
23497 #: ../fish/guestfish-actions.pod:4466
23498 #, no-wrap
23499 msgid ""
23500 " zgrepi regex path\n"
23501 "\n"
23502 msgstr ""
23503
23504 # type: =head2
23505 #: ../fish/guestfish-commands.pod:1
23506 msgid "alloc"
23507 msgstr ""
23508
23509 # type: =head2
23510 #: ../fish/guestfish-commands.pod:3
23511 msgid "allocate"
23512 msgstr ""
23513
23514 # type: verbatim
23515 #: ../fish/guestfish-commands.pod:5
23516 #, no-wrap
23517 msgid ""
23518 " alloc filename size\n"
23519 "\n"
23520 msgstr ""
23521
23522 # type: textblock
23523 #: ../fish/guestfish-commands.pod:7
23524 msgid ""
23525 "This creates an empty (zeroed) file of the given size, and then adds so it "
23526 "can be further examined."
23527 msgstr ""
23528
23529 # type: textblock
23530 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
23531 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
23532 msgstr ""
23533
23534 # type: textblock
23535 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
23536 msgid "Size can be specified using standard suffixes, eg. C<1M>."
23537 msgstr ""
23538
23539 # type: textblock
23540 #: ../fish/guestfish-commands.pod:14
23541 msgid ""
23542 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
23543 "image, see L</PREPARED DISK IMAGES>."
23544 msgstr ""
23545
23546 # type: =head2
23547 #: ../fish/guestfish-commands.pod:17
23548 msgid "copy-in"
23549 msgstr ""
23550
23551 # type: verbatim
23552 #: ../fish/guestfish-commands.pod:19
23553 #, no-wrap
23554 msgid ""
23555 " copy-in local [local ...] /remotedir\n"
23556 "\n"
23557 msgstr ""
23558
23559 # type: textblock
23560 #: ../fish/guestfish-commands.pod:21
23561 msgid ""
23562 "C<copy-in> copies local files or directories recursively into the disk "
23563 "image, placing them in the directory called C</remotedir> (which must "
23564 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
23565 "other commands as necessary."
23566 msgstr ""
23567
23568 # type: textblock
23569 #: ../fish/guestfish-commands.pod:26
23570 msgid ""
23571 "Multiple local files and directories can be specified, but the last "
23572 "parameter must always be a remote directory.  Wildcards cannot be used."
23573 msgstr ""
23574
23575 # type: =head2
23576 #: ../fish/guestfish-commands.pod:30
23577 msgid "copy-out"
23578 msgstr ""
23579
23580 # type: verbatim
23581 #: ../fish/guestfish-commands.pod:32
23582 #, no-wrap
23583 msgid ""
23584 " copy-out remote [remote ...] localdir\n"
23585 "\n"
23586 msgstr ""
23587
23588 # type: textblock
23589 #: ../fish/guestfish-commands.pod:34
23590 msgid ""
23591 "C<copy-out> copies remote files or directories recursively out of the disk "
23592 "image, placing them on the host disk in a local directory called C<localdir> "
23593 "(which must exist).  This guestfish meta-command turns into a sequence of "
23594 "L</download>, L</tar-out> and other commands as necessary."
23595 msgstr ""
23596
23597 # type: textblock
23598 #: ../fish/guestfish-commands.pod:40
23599 msgid ""
23600 "Multiple remote files and directories can be specified, but the last "
23601 "parameter must always be a local directory.  To download to the current "
23602 "directory, use C<.> as in:"
23603 msgstr ""
23604
23605 # type: verbatim
23606 #: ../fish/guestfish-commands.pod:44
23607 #, no-wrap
23608 msgid ""
23609 " copy-out /home .\n"
23610 "\n"
23611 msgstr ""
23612
23613 # type: textblock
23614 #: ../fish/guestfish-commands.pod:46
23615 msgid ""
23616 "Wildcards cannot be used in the ordinary command, but you can use them with "
23617 "the help of L</glob> like this:"
23618 msgstr ""
23619
23620 # type: verbatim
23621 #: ../fish/guestfish-commands.pod:49
23622 #, no-wrap
23623 msgid ""
23624 " glob copy-out /home/* .\n"
23625 "\n"
23626 msgstr ""
23627
23628 # type: =head2
23629 #: ../fish/guestfish-commands.pod:51
23630 msgid "echo"
23631 msgstr ""
23632
23633 # type: verbatim
23634 #: ../fish/guestfish-commands.pod:53
23635 #, no-wrap
23636 msgid ""
23637 " echo [params ...]\n"
23638 "\n"
23639 msgstr ""
23640
23641 # type: textblock
23642 #: ../fish/guestfish-commands.pod:55
23643 msgid "This echos the parameters to the terminal."
23644 msgstr ""
23645
23646 # type: =head2
23647 #: ../fish/guestfish-commands.pod:57
23648 msgid "edit"
23649 msgstr ""
23650
23651 # type: =head2
23652 #: ../fish/guestfish-commands.pod:59
23653 msgid "vi"
23654 msgstr ""
23655
23656 # type: =head2
23657 #: ../fish/guestfish-commands.pod:61
23658 msgid "emacs"
23659 msgstr ""
23660
23661 # type: verbatim
23662 #: ../fish/guestfish-commands.pod:63
23663 #, no-wrap
23664 msgid ""
23665 " edit filename\n"
23666 "\n"
23667 msgstr ""
23668
23669 # type: textblock
23670 #: ../fish/guestfish-commands.pod:65
23671 msgid ""
23672 "This is used to edit a file.  It downloads the file, edits it locally using "
23673 "your editor, then uploads the result."
23674 msgstr ""
23675
23676 # type: textblock
23677 #: ../fish/guestfish-commands.pod:68
23678 msgid ""
23679 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
23680 "or C<emacs> you will get those corresponding editors."
23681 msgstr ""
23682
23683 # type: =head2
23684 #: ../fish/guestfish-commands.pod:72
23685 msgid "glob"
23686 msgstr ""
23687
23688 # type: verbatim
23689 #: ../fish/guestfish-commands.pod:74
23690 #, no-wrap
23691 msgid ""
23692 " glob command args...\n"
23693 "\n"
23694 msgstr ""
23695
23696 # type: textblock
23697 #: ../fish/guestfish-commands.pod:76
23698 msgid ""
23699 "Expand wildcards in any paths in the args list, and run C<command> "
23700 "repeatedly on each matching path."
23701 msgstr ""
23702
23703 # type: textblock
23704 #: ../fish/guestfish-commands.pod:79
23705 msgid "See L</WILDCARDS AND GLOBBING>."
23706 msgstr ""
23707
23708 # type: =head2
23709 #: ../fish/guestfish-commands.pod:81
23710 msgid "hexedit"
23711 msgstr ""
23712
23713 # type: verbatim
23714 #: ../fish/guestfish-commands.pod:83
23715 #, no-wrap
23716 msgid ""
23717 " hexedit <filename|device>\n"
23718 " hexedit <filename|device> <max>\n"
23719 " hexedit <filename|device> <start> <max>\n"
23720 "\n"
23721 msgstr ""
23722
23723 # type: textblock
23724 #: ../fish/guestfish-commands.pod:87
23725 msgid ""
23726 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
23727 "device."
23728 msgstr ""
23729
23730 # type: textblock
23731 #: ../fish/guestfish-commands.pod:90
23732 msgid ""
23733 "This command works by downloading potentially the whole file or device, "
23734 "editing it locally, then uploading it.  If the file or device is large, you "
23735 "have to specify which part you wish to edit by using C<max> and/or C<start> "
23736 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
23737 "usual modifiers allowed such as C<1M> (1 megabyte)."
23738 msgstr ""
23739
23740 # type: textblock
23741 #: ../fish/guestfish-commands.pod:97
23742 msgid "For example to edit the first few sectors of a disk you might do:"
23743 msgstr ""
23744
23745 # type: verbatim
23746 #: ../fish/guestfish-commands.pod:100
23747 #, no-wrap
23748 msgid ""
23749 " hexedit /dev/sda 1M\n"
23750 "\n"
23751 msgstr ""
23752
23753 # type: textblock
23754 #: ../fish/guestfish-commands.pod:102
23755 msgid ""
23756 "which would allow you to edit anywhere within the first megabyte of the "
23757 "disk."
23758 msgstr ""
23759
23760 # type: textblock
23761 #: ../fish/guestfish-commands.pod:105
23762 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
23763 msgstr ""
23764
23765 # type: verbatim
23766 #: ../fish/guestfish-commands.pod:107
23767 #, no-wrap
23768 msgid ""
23769 " hexedit /dev/sda1 0x400 0x400\n"
23770 "\n"
23771 msgstr ""
23772
23773 # type: textblock
23774 #: ../fish/guestfish-commands.pod:109
23775 msgid "(assuming the superblock is in the standard location)."
23776 msgstr ""
23777
23778 # type: textblock
23779 #: ../fish/guestfish-commands.pod:111
23780 msgid ""
23781 "This command requires the external L<hexedit(1)> program.  You can specify "
23782 "another program to use by setting the C<HEXEDITOR> environment variable."
23783 msgstr ""
23784
23785 # type: textblock
23786 #: ../fish/guestfish-commands.pod:115
23787 msgid "See also L</hexdump>."
23788 msgstr ""
23789
23790 # type: =head2
23791 #: ../fish/guestfish-commands.pod:117
23792 msgid "lcd"
23793 msgstr ""
23794
23795 # type: verbatim
23796 #: ../fish/guestfish-commands.pod:119
23797 #, no-wrap
23798 msgid ""
23799 " lcd directory\n"
23800 "\n"
23801 msgstr ""
23802
23803 # type: textblock
23804 #: ../fish/guestfish-commands.pod:121
23805 msgid "Change the local directory, ie. the current directory of guestfish itself."
23806 msgstr ""
23807
23808 # type: textblock
23809 #: ../fish/guestfish-commands.pod:124
23810 msgid "Note that C<!cd> won't do what you might expect."
23811 msgstr ""
23812
23813 # type: =head2
23814 #: ../fish/guestfish-commands.pod:126
23815 msgid "man"
23816 msgstr ""
23817
23818 # type: =head2
23819 #: ../fish/guestfish-commands.pod:128
23820 msgid "manual"
23821 msgstr ""
23822
23823 # type: verbatim
23824 #: ../fish/guestfish-commands.pod:130
23825 #, no-wrap
23826 msgid ""
23827 "  man\n"
23828 "\n"
23829 msgstr ""
23830
23831 # type: textblock
23832 #: ../fish/guestfish-commands.pod:132
23833 msgid "Opens the manual page for guestfish."
23834 msgstr ""
23835
23836 # type: =head2
23837 #: ../fish/guestfish-commands.pod:134
23838 msgid "more"
23839 msgstr ""
23840
23841 # type: =head2
23842 #: ../fish/guestfish-commands.pod:136
23843 msgid "less"
23844 msgstr ""
23845
23846 # type: verbatim
23847 #: ../fish/guestfish-commands.pod:138
23848 #, no-wrap
23849 msgid ""
23850 " more filename\n"
23851 "\n"
23852 msgstr ""
23853
23854 # type: verbatim
23855 #: ../fish/guestfish-commands.pod:140
23856 #, no-wrap
23857 msgid ""
23858 " less filename\n"
23859 "\n"
23860 msgstr ""
23861
23862 # type: textblock
23863 #: ../fish/guestfish-commands.pod:142
23864 msgid "This is used to view a file."
23865 msgstr ""
23866
23867 # type: textblock
23868 #: ../fish/guestfish-commands.pod:144
23869 msgid ""
23870 "The default viewer is C<$PAGER>.  However if you use the alternate command "
23871 "C<less> you will get the C<less> command specifically."
23872 msgstr ""
23873
23874 # type: =head2
23875 #: ../fish/guestfish-commands.pod:147
23876 msgid "reopen"
23877 msgstr ""
23878
23879 # type: verbatim
23880 #: ../fish/guestfish-commands.pod:149
23881 #, no-wrap
23882 msgid ""
23883 "  reopen\n"
23884 "\n"
23885 msgstr ""
23886
23887 # type: textblock
23888 #: ../fish/guestfish-commands.pod:151
23889 msgid ""
23890 "Close and reopen the libguestfs handle.  It is not necessary to use this "
23891 "normally, because the handle is closed properly when guestfish exits.  "
23892 "However this is occasionally useful for testing."
23893 msgstr ""
23894
23895 # type: =head2
23896 #: ../fish/guestfish-commands.pod:155
23897 msgid "sparse"
23898 msgstr ""
23899
23900 # type: verbatim
23901 #: ../fish/guestfish-commands.pod:157
23902 #, no-wrap
23903 msgid ""
23904 " sparse filename size\n"
23905 "\n"
23906 msgstr ""
23907
23908 # type: textblock
23909 #: ../fish/guestfish-commands.pod:159
23910 msgid ""
23911 "This creates an empty sparse file of the given size, and then adds so it can "
23912 "be further examined."
23913 msgstr ""
23914
23915 # type: textblock
23916 #: ../fish/guestfish-commands.pod:162
23917 msgid ""
23918 "In all respects it works the same as the L</alloc> command, except that the "
23919 "image file is allocated sparsely, which means that disk blocks are not "
23920 "assigned to the file until they are needed.  Sparse disk files only use "
23921 "space when written to, but they are slower and there is a danger you could "
23922 "run out of real disk space during a write operation."
23923 msgstr ""
23924
23925 # type: =head2
23926 #: ../fish/guestfish-commands.pod:172
23927 msgid "supported"
23928 msgstr ""
23929
23930 # type: verbatim
23931 #: ../fish/guestfish-commands.pod:174
23932 #, no-wrap
23933 msgid ""
23934 " supported\n"
23935 "\n"
23936 msgstr ""
23937
23938 # type: textblock
23939 #: ../fish/guestfish-commands.pod:176
23940 msgid ""
23941 "This command returns a list of the optional groups known to the daemon, and "
23942 "indicates which ones are supported by this build of the libguestfs "
23943 "appliance."
23944 msgstr ""
23945
23946 # type: textblock
23947 #: ../fish/guestfish-commands.pod:180
23948 msgid "See also L<guestfs(3)/AVAILABILITY>."
23949 msgstr ""
23950
23951 # type: =head2
23952 #: ../fish/guestfish-commands.pod:182
23953 msgid "time"
23954 msgstr ""
23955
23956 # type: verbatim
23957 #: ../fish/guestfish-commands.pod:184
23958 #, no-wrap
23959 msgid ""
23960 " time command args...\n"
23961 "\n"
23962 msgstr ""
23963
23964 # type: textblock
23965 #: ../fish/guestfish-commands.pod:186
23966 msgid ""
23967 "Run the command as usual, but print the elapsed time afterwards.  This can "
23968 "be useful for benchmarking operations."
23969 msgstr ""
23970
23971 # type: textblock
23972 #: ../test-tool/libguestfs-test-tool.pod:5
23973 msgid "libguestfs-test-tool - End user tests for libguestfs"
23974 msgstr ""
23975
23976 # type: verbatim
23977 #: ../test-tool/libguestfs-test-tool.pod:9
23978 #, no-wrap
23979 msgid ""
23980 " libguestfs-test-tool [--options]\n"
23981 "\n"
23982 msgstr ""
23983
23984 # type: textblock
23985 #: ../test-tool/libguestfs-test-tool.pod:13
23986 msgid ""
23987 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
23988 "and developers, to allow them to check basic libguestfs functionality is "
23989 "working.  This is needed because libguestfs occasionally breaks for reasons "
23990 "beyond our control: usually because of changes in the underlying qemu or "
23991 "kernel packages, or the host environment."
23992 msgstr ""
23993
23994 # type: textblock
23995 #: ../test-tool/libguestfs-test-tool.pod:20
23996 msgid "If you suspect a problem in libguestfs, then just run:"
23997 msgstr ""
23998
23999 # type: verbatim
24000 #: ../test-tool/libguestfs-test-tool.pod:22
24001 #, no-wrap
24002 msgid ""
24003 " libguestfs-test-tool\n"
24004 "\n"
24005 msgstr ""
24006
24007 # type: textblock
24008 #: ../test-tool/libguestfs-test-tool.pod:24
24009 msgid "It will print lots of diagnostic messages."
24010 msgstr ""
24011
24012 # type: textblock
24013 #: ../test-tool/libguestfs-test-tool.pod:26
24014 msgid "If it runs to completion successfully, you will see this near the end:"
24015 msgstr ""
24016
24017 # type: verbatim
24018 #: ../test-tool/libguestfs-test-tool.pod:28
24019 #, no-wrap
24020 msgid ""
24021 " ===== TEST FINISHED OK =====\n"
24022 "\n"
24023 msgstr ""
24024
24025 # type: textblock
24026 #: ../test-tool/libguestfs-test-tool.pod:30
24027 msgid "and the test tool will exit with code 0."
24028 msgstr ""
24029
24030 # type: textblock
24031 #: ../test-tool/libguestfs-test-tool.pod:32
24032 msgid ""
24033 "If it fails (and/or exits with non-zero error code), please paste the "
24034 "B<complete, unedited> output of the test tool into a bug report.  More "
24035 "information about reporting bugs can be found on the "
24036 "L<http://libguestfs.org/> website."
24037 msgstr ""
24038
24039 # type: =item
24040 #: ../test-tool/libguestfs-test-tool.pod:41
24041 msgid "I<--help>"
24042 msgstr ""
24043
24044 # type: textblock
24045 #: ../test-tool/libguestfs-test-tool.pod:43
24046 msgid "Display short usage information and exit."
24047 msgstr ""
24048
24049 # type: =item
24050 #: ../test-tool/libguestfs-test-tool.pod:45
24051 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
24052 msgstr ""
24053
24054 # type: textblock
24055 #: ../test-tool/libguestfs-test-tool.pod:47
24056 msgid ""
24057 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
24058 "normally look in the C<$libexec> directory that was configured when the tool "
24059 "was built."
24060 msgstr ""
24061
24062 # type: =item
24063 #: ../test-tool/libguestfs-test-tool.pod:51
24064 msgid "I<--qemu qemu_binary>"
24065 msgstr ""
24066
24067 # type: textblock
24068 #: ../test-tool/libguestfs-test-tool.pod:53
24069 msgid ""
24070 "If you have downloaded another qemu binary, point this option at the full "
24071 "path of the binary to try it."
24072 msgstr ""
24073
24074 # type: =item
24075 #: ../test-tool/libguestfs-test-tool.pod:56
24076 msgid "I<--qemudir qemu_source_dir>"
24077 msgstr ""
24078
24079 # type: textblock
24080 #: ../test-tool/libguestfs-test-tool.pod:58
24081 msgid ""
24082 "If you have compiled qemu from source, point this option at the source "
24083 "directory to try it."
24084 msgstr ""
24085
24086 # type: =item
24087 #: ../test-tool/libguestfs-test-tool.pod:61
24088 msgid "I<--timeout N>"
24089 msgstr ""
24090
24091 # type: textblock
24092 #: ../test-tool/libguestfs-test-tool.pod:63
24093 msgid ""
24094 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
24095 "does not usually need to be adjusted unless your machine is very slow."
24096 msgstr ""
24097
24098 # type: =head1
24099 #: ../test-tool/libguestfs-test-tool.pod:69
24100 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
24101 msgstr ""
24102
24103 # type: textblock
24104 #: ../test-tool/libguestfs-test-tool.pod:71
24105 msgid ""
24106 "If you have compiled another version of qemu from source and would like to "
24107 "try that, then you can use the I<--qemudir> option to point to the qemu "
24108 "source directory."
24109 msgstr ""
24110
24111 # type: textblock
24112 #: ../test-tool/libguestfs-test-tool.pod:75
24113 msgid ""
24114 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
24115 "option to point to the binary."
24116 msgstr ""
24117
24118 # type: textblock
24119 #: ../test-tool/libguestfs-test-tool.pod:78
24120 msgid ""
24121 "When using an alternate qemu with libguestfs, usually you would need to "
24122 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
24123 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
24124 "when you use either of the I<--qemudir> or I<--qemu> options."
24125 msgstr ""
24126
24127 # type: textblock
24128 #: ../test-tool/libguestfs-test-tool.pod:85
24129 msgid ""
24130 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
24131 "I<1> if there was an error."
24132 msgstr ""
24133
24134 # type: =item
24135 #: ../test-tool/libguestfs-test-tool.pod:92
24136 msgid "/usr/libexec/libguestfs-test-tool-helper"
24137 msgstr ""
24138
24139 # type: textblock
24140 #: ../test-tool/libguestfs-test-tool.pod:94
24141 msgid ""
24142 "This helper program is run inside the appliance and provides additional "
24143 "tests."
24144 msgstr ""
24145
24146 # type: =item
24147 #: ../test-tool/libguestfs-test-tool.pod:97
24148 msgid "/usr/bin/mkisofs"
24149 msgstr ""
24150
24151 # type: textblock
24152 #: ../test-tool/libguestfs-test-tool.pod:99
24153 msgid ""
24154 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
24155 "which is used as part of the tests."
24156 msgstr ""
24157
24158 # type: textblock
24159 #: ../test-tool/libguestfs-test-tool.pod:106
24160 msgid ""
24161 "For the full list of environment variables which may affect libguestfs, "
24162 "please see the L<guestfs(3)> manual page."
24163 msgstr ""
24164
24165 # type: textblock
24166 #: ../test-tool/libguestfs-test-tool.pod:111
24167 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
24168 msgstr ""
24169
24170 # type: textblock
24171 #: ../test-tool/libguestfs-test-tool.pod:121
24172 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
24173 msgstr ""
24174
24175 # type: textblock
24176 #: ../fuse/guestmount.pod:5
24177 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
24178 msgstr ""
24179
24180 # type: verbatim
24181 #: ../fuse/guestmount.pod:9
24182 #, no-wrap
24183 msgid ""
24184 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
24185 "\n"
24186 msgstr ""
24187
24188 # type: verbatim
24189 #: ../fuse/guestmount.pod:11
24190 #, no-wrap
24191 msgid ""
24192 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
24193 "\n"
24194 msgstr ""
24195
24196 # type: verbatim
24197 #: ../fuse/guestmount.pod:13
24198 #, no-wrap
24199 msgid ""
24200 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
24201 "\n"
24202 msgstr ""
24203
24204 # type: textblock
24205 #: ../fuse/guestmount.pod:17
24206 msgid ""
24207 "You must I<not> use C<guestmount> in read-write mode on live virtual "
24208 "machines.  If you do this, you risk disk corruption in the VM."
24209 msgstr ""
24210
24211 # type: textblock
24212 #: ../fuse/guestmount.pod:22
24213 msgid ""
24214 "The guestmount program can be used to mount virtual machine filesystems and "
24215 "other disk images on the host.  It uses libguestfs for access to the guest "
24216 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
24217 "a mountable device."
24218 msgstr ""
24219
24220 # type: textblock
24221 #: ../fuse/guestmount.pod:27
24222 msgid ""
24223 "Along with other options, you have to give at least one device (I<-a> "
24224 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
24225 "option) or use the I<-i> inspection option.  How this works is better "
24226 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
24227 "below."
24228 msgstr ""
24229
24230 # type: textblock
24231 #: ../fuse/guestmount.pod:33
24232 msgid ""
24233 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
24234 "by you, and the filesystem will not be visible to any other users unless you "
24235 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
24236 "the filesystem, use the C<fusermount -u> command."
24237 msgstr ""
24238
24239 # type: textblock
24240 #: ../fuse/guestmount.pod:41
24241 msgid ""
24242 "For a typical Windows guest which has its main filesystem on the first "
24243 "partition:"
24244 msgstr ""
24245
24246 # type: verbatim
24247 #: ../fuse/guestmount.pod:44
24248 #, no-wrap
24249 msgid ""
24250 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
24251 "\n"
24252 msgstr ""
24253
24254 # type: textblock
24255 #: ../fuse/guestmount.pod:46
24256 msgid ""
24257 "For a typical Linux guest which has a /boot filesystem on the first "
24258 "partition, and the root filesystem on a logical volume:"
24259 msgstr ""
24260
24261 # type: verbatim
24262 #: ../fuse/guestmount.pod:49
24263 #, no-wrap
24264 msgid ""
24265 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
24266 "\n"
24267 msgstr ""
24268
24269 # type: textblock
24270 #: ../fuse/guestmount.pod:51
24271 msgid "To get libguestfs to detect guest mountpoints for you:"
24272 msgstr ""
24273
24274 # type: verbatim
24275 #: ../fuse/guestmount.pod:53
24276 #, no-wrap
24277 msgid ""
24278 " guestmount -a guest.img -i --ro /mnt\n"
24279 "\n"
24280 msgstr ""
24281
24282 # type: textblock
24283 #: ../fuse/guestmount.pod:55
24284 msgid "For a libvirt guest called \"Guest\" you could do:"
24285 msgstr ""
24286
24287 # type: verbatim
24288 #: ../fuse/guestmount.pod:57
24289 #, no-wrap
24290 msgid ""
24291 " guestmount -d Guest -i --ro /mnt\n"
24292 "\n"
24293 msgstr ""
24294
24295 # type: textblock
24296 #: ../fuse/guestmount.pod:59
24297 msgid ""
24298 "If you don't know what filesystems are contained in a guest or disk image, "
24299 "use L<virt-list-filesystems(1)> first:"
24300 msgstr ""
24301
24302 # type: verbatim
24303 #: ../fuse/guestmount.pod:62
24304 #, no-wrap
24305 msgid ""
24306 " virt-list-filesystems MyGuest\n"
24307 "\n"
24308 msgstr ""
24309
24310 # type: textblock
24311 #: ../fuse/guestmount.pod:64
24312 msgid ""
24313 "If you want to trace the libguestfs calls but without excessive debugging "
24314 "information, we recommend:"
24315 msgstr ""
24316
24317 # type: verbatim
24318 #: ../fuse/guestmount.pod:67
24319 #, no-wrap
24320 msgid ""
24321 " guestmount [...] --trace /mnt\n"
24322 "\n"
24323 msgstr ""
24324
24325 # type: textblock
24326 #: ../fuse/guestmount.pod:69
24327 msgid "If you want to debug the program, we recommend:"
24328 msgstr ""
24329
24330 # type: verbatim
24331 #: ../fuse/guestmount.pod:71
24332 #, no-wrap
24333 msgid ""
24334 " guestmount [...] --trace --verbose /mnt\n"
24335 "\n"
24336 msgstr ""
24337
24338 # type: textblock
24339 #: ../fuse/guestmount.pod:79
24340 msgid "Add a block device or virtual machine image."
24341 msgstr ""
24342
24343 # type: =item
24344 #: ../fuse/guestmount.pod:96
24345 msgid "B<--dir-cache-timeout N>"
24346 msgstr ""
24347
24348 # type: textblock
24349 #: ../fuse/guestmount.pod:98
24350 msgid ""
24351 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
24352 "seconds.  The readdir cache [actually, there are several semi-independent "
24353 "caches] is populated after a readdir(2) call with the stat and extended "
24354 "attributes of the files in the directory, in anticipation that they will be "
24355 "requested soon after."
24356 msgstr ""
24357
24358 # type: textblock
24359 #: ../fuse/guestmount.pod:104
24360 msgid ""
24361 "There is also a different attribute cache implemented by FUSE (see the FUSE "
24362 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
24363 "requests, only cache existing ones."
24364 msgstr ""
24365
24366 # type: textblock
24367 #: ../fuse/guestmount.pod:122
24368 msgid ""
24369 "If you have untrusted raw-format guest disk images, you should use this "
24370 "option to specify the disk format.  This avoids a possible security problem "
24371 "with malicious guests (CVE-2010-3851).  See also "
24372 "L<guestfs(3)/guestfs_add_drive_opts>."
24373 msgstr ""
24374
24375 # type: =item
24376 #: ../fuse/guestmount.pod:127
24377 msgid "B<--fuse-help>"
24378 msgstr ""
24379
24380 # type: textblock
24381 #: ../fuse/guestmount.pod:129
24382 msgid "Display help on special FUSE options (see I<-o> below)."
24383 msgstr ""
24384
24385 # type: textblock
24386 #: ../fuse/guestmount.pod:133
24387 msgid "Display brief help and exit."
24388 msgstr ""
24389
24390 # type: =item
24391 #: ../fuse/guestmount.pod:146
24392 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
24393 msgstr ""
24394
24395 # type: textblock
24396 #: ../fuse/guestmount.pod:148
24397 msgid ""
24398 "Mount the named partition or logical volume on the given mountpoint B<in the "
24399 "guest> (this has nothing to do with mountpoints in the host)."
24400 msgstr ""
24401
24402 # type: textblock
24403 #: ../fuse/guestmount.pod:151
24404 msgid ""
24405 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
24406 "something on C</>."
24407 msgstr ""
24408
24409 # type: textblock
24410 #: ../fuse/guestmount.pod:156
24411 msgid ""
24412 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
24413 "unmounted.  If you specify this option, then we don't attempt to sync the "
24414 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
24415 msgstr ""
24416
24417 # type: =item
24418 #: ../fuse/guestmount.pod:161
24419 msgid "B<-o option> | B<--option option>"
24420 msgstr ""
24421
24422 # type: textblock
24423 #: ../fuse/guestmount.pod:163
24424 msgid "Pass extra options to FUSE."
24425 msgstr ""
24426
24427 # type: textblock
24428 #: ../fuse/guestmount.pod:165
24429 msgid ""
24430 "To get a list of all the extra options supported by FUSE, use the command "
24431 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
24432 "of them are a good idea."
24433 msgstr ""
24434
24435 # type: verbatim
24436 #: ../fuse/guestmount.pod:169
24437 #, no-wrap
24438 msgid ""
24439 " guestmount --fuse-help\n"
24440 "\n"
24441 msgstr ""
24442
24443 # type: textblock
24444 #: ../fuse/guestmount.pod:171
24445 msgid "Some potentially useful FUSE options:"
24446 msgstr ""
24447
24448 # type: =item
24449 #: ../fuse/guestmount.pod:175
24450 msgid "B<-o allow_other>"
24451 msgstr ""
24452
24453 # type: textblock
24454 #: ../fuse/guestmount.pod:177
24455 msgid "Allow other users to see the filesystem."
24456 msgstr ""
24457
24458 # type: =item
24459 #: ../fuse/guestmount.pod:179
24460 msgid "B<-o attr_timeout=N>"
24461 msgstr ""
24462
24463 # type: textblock
24464 #: ../fuse/guestmount.pod:181
24465 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
24466 msgstr ""
24467
24468 # type: =item
24469 #: ../fuse/guestmount.pod:183
24470 msgid "B<-o kernel_cache>"
24471 msgstr ""
24472
24473 # type: textblock
24474 #: ../fuse/guestmount.pod:185
24475 msgid ""
24476 "Allow the kernel to cache files (reduces the number of reads that have to go "
24477 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
24478 "afford the extra memory usage."
24479 msgstr ""
24480
24481 # type: =item
24482 #: ../fuse/guestmount.pod:189
24483 msgid "B<-o uid=N> B<-o gid=N>"
24484 msgstr ""
24485
24486 # type: textblock
24487 #: ../fuse/guestmount.pod:191
24488 msgid ""
24489 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
24490 "the chosen values."
24491 msgstr ""
24492
24493 # type: textblock
24494 #: ../fuse/guestmount.pod:198
24495 msgid ""
24496 "Add devices and mount everything read-only.  Also disallow writes and make "
24497 "the disk appear read-only to FUSE."
24498 msgstr ""
24499
24500 # type: textblock
24501 #: ../fuse/guestmount.pod:201
24502 msgid ""
24503 "This is highly recommended if you are not going to edit the guest disk.  If "
24504 "the guest is running and this option is I<not> supplied, then there is a "
24505 "strong risk of disk corruption in the guest.  We try to prevent this from "
24506 "happening, but it is not always possible."
24507 msgstr ""
24508
24509 # type: textblock
24510 #: ../fuse/guestmount.pod:208
24511 msgid "Enable SELinux support for the guest."
24512 msgstr ""
24513
24514 # type: textblock
24515 #: ../fuse/guestmount.pod:212
24516 msgid "Enable verbose messages from underlying libguestfs."
24517 msgstr ""
24518
24519 # type: textblock
24520 #: ../fuse/guestmount.pod:216
24521 msgid "Display the program version and exit."
24522 msgstr ""
24523
24524 # type: =item
24525 #: ../fuse/guestmount.pod:218
24526 msgid "B<-x> | B<--trace>"
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../fuse/guestmount.pod:220
24531 msgid "Trace libguestfs calls."
24532 msgstr ""
24533
24534 # type: textblock
24535 #: ../fuse/guestmount.pod:222
24536 msgid "This also stops the daemon from forking into the background."
24537 msgstr ""
24538
24539 # type: textblock
24540 #: ../fuse/guestmount.pod:228
24541 msgid ""
24542 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
24543 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
24544 "L<http://fuse.sf.net/>."
24545 msgstr ""
24546
24547 # type: textblock
24548 #: ../inspector/virt-inspector.pl:35
24549 msgid ""
24550 "virt-inspector - Display operating system version and other information "
24551 "about a virtual machine"
24552 msgstr ""
24553
24554 # type: verbatim
24555 #: ../inspector/virt-inspector.pl:39
24556 #, no-wrap
24557 msgid ""
24558 " virt-inspector [--connect URI] domname\n"
24559 "\n"
24560 msgstr ""
24561
24562 # type: verbatim
24563 #: ../inspector/virt-inspector.pl:41
24564 #, no-wrap
24565 msgid ""
24566 " virt-inspector guest.img [guest.img ...]\n"
24567 "\n"
24568 msgstr ""
24569
24570 # type: textblock
24571 #: ../inspector/virt-inspector.pl:45
24572 msgid ""
24573 "B<virt-inspector> examines a virtual machine or disk image and tries to "
24574 "determine the version of the operating system and other information about "
24575 "the virtual machine."
24576 msgstr ""
24577
24578 # type: textblock
24579 #: ../inspector/virt-inspector.pl:49
24580 msgid "Virt-inspector produces XML output for feeding into other programs."
24581 msgstr ""
24582
24583 # type: textblock
24584 #: ../inspector/virt-inspector.pl:51
24585 msgid ""
24586 "In the normal usage, use C<virt-inspector domname> where C<domname> is the "
24587 "libvirt domain (see: C<virsh list --all>)."
24588 msgstr ""
24589
24590 # type: textblock
24591 #: ../inspector/virt-inspector.pl:54
24592 msgid ""
24593 "You can also run virt-inspector directly on disk images from a single "
24594 "virtual machine.  Use C<virt-inspector guest.img>.  In rare cases a domain "
24595 "has several block devices, in which case you should list them one after "
24596 "another, with the first corresponding to the guest's C</dev/sda>, the second "
24597 "to the guest's C</dev/sdb> and so on."
24598 msgstr ""
24599
24600 # type: textblock
24601 #: ../inspector/virt-inspector.pl:60
24602 msgid ""
24603 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
24604 "inspect several virtual machines, you have to run virt-inspector several "
24605 "times (for example, from a shell script for-loop)."
24606 msgstr ""
24607
24608 # type: textblock
24609 #: ../inspector/virt-inspector.pl:65
24610 msgid ""
24611 "Because virt-inspector needs direct access to guest images, it won't "
24612 "normally work over remote libvirt connections."
24613 msgstr ""
24614
24615 # type: textblock
24616 #: ../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
24617 msgid "Display brief help."
24618 msgstr ""
24619
24620 # type: =item
24621 #: ../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
24622 msgid "B<--version>"
24623 msgstr ""
24624
24625 # type: textblock
24626 #: ../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
24627 msgid "Display version number and exit."
24628 msgstr ""
24629
24630 # type: =item
24631 #: ../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
24632 msgid "B<--connect URI> | B<-c URI>"
24633 msgstr ""
24634
24635 # type: textblock
24636 #: ../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
24637 msgid ""
24638 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
24639 "to the default libvirt hypervisor."
24640 msgstr ""
24641
24642 # type: textblock
24643 #: ../inspector/virt-inspector.pl:97
24644 msgid ""
24645 "Libvirt is only used if you specify a C<domname> on the command line.  If "
24646 "you specify guest block devices directly, then libvirt is not used at all."
24647 msgstr ""
24648
24649 # type: =item
24650 #: ../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
24651 msgid "B<--format> raw"
24652 msgstr ""
24653
24654 # type: textblock
24655 #: ../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
24656 msgid ""
24657 "Specify the format of disk images given on the command line.  If this is "
24658 "omitted then the format is autodetected from the content of the disk image."
24659 msgstr ""
24660
24661 # type: textblock
24662 #: ../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
24663 msgid ""
24664 "If disk images are requested from libvirt, then this program asks libvirt "
24665 "for this information.  In this case, the value of the format parameter is "
24666 "ignored."
24667 msgstr ""
24668
24669 # type: textblock
24670 #: ../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
24671 msgid ""
24672 "If working with untrusted raw-format guest disk images, you should ensure "
24673 "the format is always specified."
24674 msgstr ""
24675
24676 # type: =head1
24677 #: ../inspector/virt-inspector.pl:149
24678 msgid "XML FORMAT"
24679 msgstr ""
24680
24681 # type: textblock
24682 #: ../inspector/virt-inspector.pl:151
24683 msgid ""
24684 "The virt-inspector XML is described precisely in a RELAX NG schema which is "
24685 "supplied with libguestfs.  This section is just an overview."
24686 msgstr ""
24687
24688 # type: textblock
24689 #: ../inspector/virt-inspector.pl:154
24690 msgid ""
24691 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
24692 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
24693 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
24694 "which is vanishingly rare in real world VMs."
24695 msgstr ""
24696
24697 # type: =head2
24698 #: ../inspector/virt-inspector.pl:159
24699 msgid "E<lt>operatingsystemE<gt>"
24700 msgstr ""
24701
24702 # type: textblock
24703 #: ../inspector/virt-inspector.pl:161
24704 msgid ""
24705 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
24706 "describe the operating system, its architecture, the descriptive \"product "
24707 "name\" string, the type of OS and so on, as in this example:"
24708 msgstr ""
24709
24710 # type: verbatim
24711 #: ../inspector/virt-inspector.pl:165
24712 #, no-wrap
24713 msgid ""
24714 " <operatingsystems>\n"
24715 "   <operatingsystem>\n"
24716 "     <root>/dev/sda2</root>\n"
24717 "     <name>windows</name>\n"
24718 "     <arch>i386</arch>\n"
24719 "     <distro>windows</distro>\n"
24720 "     <product_name>Windows 7 Enterprise</product_name>\n"
24721 "     <major_version>6</major_version>\n"
24722 "     <minor_version>1</minor_version>\n"
24723 "     <windows_systemroot>/Windows</windows_systemroot>\n"
24724 "\n"
24725 msgstr ""
24726
24727 # type: textblock
24728 #: ../inspector/virt-inspector.pl:176
24729 msgid ""
24730 "These fields are derived from the libguestfs inspection API, and you can "
24731 "find more details in L<guestfs(3)/INSPECTION>."
24732 msgstr ""
24733
24734 # type: textblock
24735 #: ../inspector/virt-inspector.pl:179
24736 msgid ""
24737 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
24738 "of view of libguestfs (block devices may have completely different names "
24739 "inside the VM itself)."
24740 msgstr ""
24741
24742 # type: =head2
24743 #: ../inspector/virt-inspector.pl:240
24744 msgid "E<lt>mountpointsE<gt>"
24745 msgstr ""
24746
24747 # type: textblock
24748 #: ../inspector/virt-inspector.pl:242
24749 msgid ""
24750 "Un*x-like guests typically have multiple filesystems which are mounted at "
24751 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
24752 "element which looks like this:"
24753 msgstr ""
24754
24755 # type: verbatim
24756 #: ../inspector/virt-inspector.pl:246
24757 #, no-wrap
24758 msgid ""
24759 " <operatingsystems>\n"
24760 "   <operatingsystem>\n"
24761 "     ...\n"
24762 "     <mountpoints>\n"
24763 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
24764 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
24765 "     </mountpoints>\n"
24766 "\n"
24767 msgstr ""
24768
24769 # type: textblock
24770 #: ../inspector/virt-inspector.pl:254
24771 msgid ""
24772 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
24773 "and may have completely different names inside the guest.  Only mountable "
24774 "filesystems appear in this list, not things like swap devices."
24775 msgstr ""
24776
24777 # type: =head2
24778 #: ../inspector/virt-inspector.pl:276
24779 msgid "E<lt>filesystemsE<gt>"
24780 msgstr ""
24781
24782 # type: textblock
24783 #: ../inspector/virt-inspector.pl:278
24784 msgid ""
24785 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
24786 "filesystems belonging to the guest, including swap and empty partitions.  "
24787 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
24788 "this OS or shared by this OS and other OSes)."
24789 msgstr ""
24790
24791 # type: textblock
24792 #: ../inspector/virt-inspector.pl:283
24793 msgid "You might see something like this:"
24794 msgstr ""
24795
24796 # type: verbatim
24797 #: ../inspector/virt-inspector.pl:285
24798 #, no-wrap
24799 msgid ""
24800 " <operatingsystems>\n"
24801 "   <operatingsystem>\n"
24802 "     ...\n"
24803 "     <filesystems>\n"
24804 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24805 "         <type>ext4</type>\n"
24806 "         <label>Fedora-13-x86_64</label>\n"
24807 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24808 "       </filesystem>\n"
24809 "\n"
24810 msgstr ""
24811
24812 # type: textblock
24813 #: ../inspector/virt-inspector.pl:295
24814 msgid ""
24815 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24816 "the label, and the UUID."
24817 msgstr ""
24818
24819 # type: =head2
24820 #: ../inspector/virt-inspector.pl:337
24821 msgid "E<lt>applicationsE<gt>"
24822 msgstr ""
24823
24824 # type: textblock
24825 #: ../inspector/virt-inspector.pl:339
24826 msgid ""
24827 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24828 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24829 "machine.  At the moment we are only able to list RPMs and Debian packages "
24830 "installed, but in future we will support other Linux distros and Windows."
24831 msgstr ""
24832
24833 # type: textblock
24834 #: ../inspector/virt-inspector.pl:345
24835 msgid ""
24836 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
24837 "Typical values would be C<rpm> and C<deb>."
24838 msgstr ""
24839
24840 # type: textblock
24841 #: ../inspector/virt-inspector.pl:348
24842 msgid ""
24843 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
24844 "Typical values include C<yum>, C<up2date> and C<apt>"
24845 msgstr ""
24846
24847 # type: textblock
24848 #: ../inspector/virt-inspector.pl:351
24849 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24850 msgstr ""
24851
24852 # type: verbatim
24853 #: ../inspector/virt-inspector.pl:354
24854 #, no-wrap
24855 msgid ""
24856 " <operatingsystems>\n"
24857 "   <operatingsystem>\n"
24858 "     ...\n"
24859 "     <applications>\n"
24860 "       <application>\n"
24861 "         <name>coreutils</name>\n"
24862 "         <version>8.5</version>\n"
24863 "         <release>1</release>\n"
24864 "       </application>\n"
24865 "\n"
24866 msgstr ""
24867
24868 # type: textblock
24869 #: ../inspector/virt-inspector.pl:364
24870 msgid ""
24871 "(The version and release fields may not be available for some package "
24872 "types)."
24873 msgstr ""
24874
24875 # type: =head1
24876 #: ../inspector/virt-inspector.pl:544
24877 msgid "USING XPATH"
24878 msgstr ""
24879
24880 # type: textblock
24881 #: ../inspector/virt-inspector.pl:546
24882 msgid ""
24883 "You can use the XPath query language, and/or the xpath tool, in order to "
24884 "select parts of the XML."
24885 msgstr ""
24886
24887 # type: verbatim
24888 #: ../inspector/virt-inspector.pl:551
24889 #, no-wrap
24890 msgid ""
24891 " $ virt-inspector Guest | xpath //filesystems\n"
24892 " Found 1 nodes:\n"
24893 " -- NODE --\n"
24894 " <filesystems>\n"
24895 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24896 "        <type>ext4</type>\n"
24897 " [etc]\n"
24898 "\n"
24899 msgstr ""
24900
24901 # type: verbatim
24902 #: ../inspector/virt-inspector.pl:559
24903 #, no-wrap
24904 msgid ""
24905 " $ virt-inspector Guest | \\\n"
24906 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24907 " Query didn't return a nodeset. Value: ext4\n"
24908 "\n"
24909 msgstr ""
24910
24911 # type: =head1
24912 #: ../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
24913 msgid "SHELL QUOTING"
24914 msgstr ""
24915
24916 # type: textblock
24917 #: ../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
24918 msgid ""
24919 "Libvirt guest names can contain arbitrary characters, some of which have "
24920 "meaning to the shell such as C<#> and space.  You may need to quote or "
24921 "escape these characters on the command line.  See the shell manual page "
24922 "L<sh(1)> for details."
24923 msgstr ""
24924
24925 # type: textblock
24926 #: ../inspector/virt-inspector.pl:572
24927 msgid ""
24928 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
24929 "L<Sys::Virt(3)>, L<http://www.w3.org/TR/xpath/>, L<http://libguestfs.org/>."
24930 msgstr ""
24931
24932 # type: textblock
24933 #: ../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
24934 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
24935 msgstr ""
24936
24937 # type: textblock
24938 #: ../inspector/virt-inspector.pl:590
24939 msgid "Matthew Booth L<mbooth@redhat.com>"
24940 msgstr ""
24941
24942 # type: textblock
24943 #: ../inspector/virt-inspector.pl:596 ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1514 ../tools/virt-make-fs.pl:565
24944 msgid "Copyright (C) 2010 Red Hat Inc."
24945 msgstr ""
24946
24947 # type: textblock
24948 #: ../tools/virt-edit.pl:34
24949 msgid "virt-edit - Edit a file in a virtual machine"
24950 msgstr ""
24951
24952 # type: verbatim
24953 #: ../tools/virt-edit.pl:38
24954 #, no-wrap
24955 msgid ""
24956 " virt-edit [--options] domname file\n"
24957 "\n"
24958 msgstr ""
24959
24960 # type: verbatim
24961 #: ../tools/virt-edit.pl:40
24962 #, no-wrap
24963 msgid ""
24964 " virt-edit [--options] disk.img [disk.img ...] file\n"
24965 "\n"
24966 msgstr ""
24967
24968 # type: verbatim
24969 #: ../tools/virt-edit.pl:42
24970 #, no-wrap
24971 msgid ""
24972 " virt-edit [domname|disk.img] file -e 'expr'\n"
24973 "\n"
24974 msgstr ""
24975
24976 # type: textblock
24977 #: ../tools/virt-edit.pl:46
24978 msgid ""
24979 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
24980 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
24981 "doing this, but doesn't catch all cases."
24982 msgstr ""
24983
24984 # type: textblock
24985 #: ../tools/virt-edit.pl:52
24986 msgid ""
24987 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
24988 "the named virtual machine (or disk image)."
24989 msgstr ""
24990
24991 # type: textblock
24992 #: ../tools/virt-edit.pl:55
24993 msgid ""
24994 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
24995 "you should look at the L<guestfish(1)> tool."
24996 msgstr ""
24997
24998 # type: textblock
24999 #: ../tools/virt-edit.pl:60
25000 msgid "Edit the named files interactively:"
25001 msgstr ""
25002
25003 # type: verbatim
25004 #: ../tools/virt-edit.pl:62
25005 #, no-wrap
25006 msgid ""
25007 " virt-edit mydomain /boot/grub/grub.conf\n"
25008 "\n"
25009 msgstr ""
25010
25011 # type: verbatim
25012 #: ../tools/virt-edit.pl:64
25013 #, no-wrap
25014 msgid ""
25015 " virt-edit mydomain /etc/passwd\n"
25016 "\n"
25017 msgstr ""
25018
25019 # type: textblock
25020 #: ../tools/virt-edit.pl:66
25021 msgid ""
25022 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25023 "below).  To change the init default level to 5:"
25024 msgstr ""
25025
25026 # type: verbatim
25027 #: ../tools/virt-edit.pl:70
25028 #, no-wrap
25029 msgid ""
25030 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25031 "\n"
25032 msgstr ""
25033
25034 # type: =item
25035 #: ../tools/virt-edit.pl:96
25036 msgid "B<--backup extension> | B<-b extension>"
25037 msgstr ""
25038
25039 # type: textblock
25040 #: ../tools/virt-edit.pl:98
25041 msgid ""
25042 "Create a backup of the original file I<in the guest disk image>.  The backup "
25043 "has the original filename with C<extension> added."
25044 msgstr ""
25045
25046 # type: textblock
25047 #: ../tools/virt-edit.pl:101
25048 msgid ""
25049 "Usually the first character of C<extension> would be a dot C<.> so you would "
25050 "write:"
25051 msgstr ""
25052
25053 # type: verbatim
25054 #: ../tools/virt-edit.pl:104
25055 #, no-wrap
25056 msgid ""
25057 " virt-edit -b .orig [etc]\n"
25058 "\n"
25059 msgstr ""
25060
25061 # type: textblock
25062 #: ../tools/virt-edit.pl:106
25063 msgid "By default, no backup file is made."
25064 msgstr ""
25065
25066 # type: textblock
25067 #: ../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
25068 msgid ""
25069 "If you specify guest block devices directly, then libvirt is not used at "
25070 "all."
25071 msgstr ""
25072
25073 # type: =item
25074 #: ../tools/virt-edit.pl:141
25075 msgid "B<--expr EXPR> | B<-e EXPR>"
25076 msgstr ""
25077
25078 # type: textblock
25079 #: ../tools/virt-edit.pl:143
25080 msgid ""
25081 "Instead of launching the external editor, non-interactively apply the Perl "
25082 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25083 "EDITING> below."
25084 msgstr ""
25085
25086 # type: textblock
25087 #: ../tools/virt-edit.pl:147
25088 msgid ""
25089 "Be careful to properly quote the expression to prevent it from being altered "
25090 "by the shell."
25091 msgstr ""
25092
25093 # type: =head1
25094 #: ../tools/virt-edit.pl:268
25095 msgid "NON-INTERACTIVE EDITING"
25096 msgstr ""
25097
25098 # type: textblock
25099 #: ../tools/virt-edit.pl:270
25100 msgid ""
25101 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25102 "administrator can interactively edit the file."
25103 msgstr ""
25104
25105 # type: textblock
25106 #: ../tools/virt-edit.pl:273
25107 msgid ""
25108 "There are two ways also to use C<virt-edit> from scripts in order to make "
25109 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25110 "like this, it's less error-prone to write scripts directly using the "
25111 "libguestfs API and Augeas for configuration file editing.)"
25112 msgstr ""
25113
25114 # type: textblock
25115 #: ../tools/virt-edit.pl:279
25116 msgid ""
25117 "The first method is to temporarily set C<$EDITOR> to any script or program "
25118 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25119 "update C<tmpfile> in place however it likes."
25120 msgstr ""
25121
25122 # type: textblock
25123 #: ../tools/virt-edit.pl:283
25124 msgid ""
25125 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25126 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25127 "instances of C<foo> with C<bar> in a file:"
25128 msgstr ""
25129
25130 # type: verbatim
25131 #: ../tools/virt-edit.pl:287
25132 #, no-wrap
25133 msgid ""
25134 " virt-edit domname filename -e 's/foo/bar/'\n"
25135 "\n"
25136 msgstr ""
25137
25138 # type: textblock
25139 #: ../tools/virt-edit.pl:289
25140 msgid ""
25141 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25142 "For example to delete root's password you could do:"
25143 msgstr ""
25144
25145 # type: verbatim
25146 #: ../tools/virt-edit.pl:292
25147 #, no-wrap
25148 msgid ""
25149 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25150 "\n"
25151 msgstr ""
25152
25153 # type: textblock
25154 #: ../tools/virt-edit.pl:294
25155 msgid ""
25156 "What really happens is that the snippet is evaluated as a Perl expression "
25157 "for each line of the file.  The line, including the final C<\\n>, is passed "
25158 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25159 msgstr ""
25160
25161 # type: textblock
25162 #: ../tools/virt-edit.pl:299
25163 msgid ""
25164 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25165 "C<apache> user account from the password file you can do:"
25166 msgstr ""
25167
25168 # type: verbatim
25169 #: ../tools/virt-edit.pl:302
25170 #, no-wrap
25171 msgid ""
25172 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25173 "\n"
25174 msgstr ""
25175
25176 # type: textblock
25177 #: ../tools/virt-edit.pl:304
25178 msgid ""
25179 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25180 "the end of the file is rather difficult this way since there is no concept "
25181 "of \"last line of the file\" - your expression just doesn't get called "
25182 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25183 "want to do this."
25184 msgstr ""
25185
25186 # type: textblock
25187 #: ../tools/virt-edit.pl:310
25188 msgid ""
25189 "The variable C<$lineno> contains the current line number.  As is "
25190 "traditional, the first line in the file is number C<1>."
25191 msgstr ""
25192
25193 # type: textblock
25194 #: ../tools/virt-edit.pl:313
25195 msgid ""
25196 "The return value from the expression is ignored, but the expression may call "
25197 "C<die> in order to abort the whole program, leaving the original file "
25198 "untouched."
25199 msgstr ""
25200
25201 # type: textblock
25202 #: ../tools/virt-edit.pl:317
25203 msgid ""
25204 "Remember when matching the end of a line that C<$_> may contain the final "
25205 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25206 "newline then neither of these.  Thus to match or substitute some text at the "
25207 "end of a line, use this regular expression:"
25208 msgstr ""
25209
25210 # type: verbatim
25211 #: ../tools/virt-edit.pl:322
25212 #, no-wrap
25213 msgid ""
25214 " /some text(\\r?\\n)?$/\n"
25215 "\n"
25216 msgstr ""
25217
25218 # type: textblock
25219 #: ../tools/virt-edit.pl:324
25220 msgid ""
25221 "Alternately, use the perl C<chomp> function, being careful not to chomp "
25222 "C<$_> itself (since that would remove all newlines from the file):"
25223 msgstr ""
25224
25225 # type: verbatim
25226 #: ../tools/virt-edit.pl:328
25227 #, no-wrap
25228 msgid ""
25229 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25230 "\n"
25231 msgstr ""
25232
25233 # type: =item
25234 #: ../tools/virt-edit.pl:334
25235 msgid "C<EDITOR>"
25236 msgstr ""
25237
25238 # type: textblock
25239 #: ../tools/virt-edit.pl:336
25240 msgid ""
25241 "If set, this string is used as the editor.  It may contain arguments, "
25242 "eg. C<\"emacs -nw\">"
25243 msgstr ""
25244
25245 # type: textblock
25246 #: ../tools/virt-edit.pl:339
25247 msgid "If not set, C<vi> is used."
25248 msgstr ""
25249
25250 # type: textblock
25251 #: ../tools/virt-edit.pl:352
25252 msgid ""
25253 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25254 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
25255 "L<perl(1)>, L<perlre(1)>."
25256 msgstr ""
25257
25258 # type: =head1
25259 #: ../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
25260 msgid "AUTHOR"
25261 msgstr ""
25262
25263 # type: textblock
25264 #: ../tools/virt-edit.pl:368 ../tools/virt-df.pl:655 ../tools/virt-rescue.pl:283 ../tools/virt-list-partitions.pl:271
25265 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25266 msgstr ""
25267
25268 # type: textblock
25269 #: ../tools/virt-win-reg.pl:37
25270 msgid ""
25271 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25272 "guest"
25273 msgstr ""
25274
25275 # type: verbatim
25276 #: ../tools/virt-win-reg.pl:41
25277 #, no-wrap
25278 msgid ""
25279 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25280 "\n"
25281 msgstr ""
25282
25283 # type: verbatim
25284 #: ../tools/virt-win-reg.pl:43
25285 #, no-wrap
25286 msgid ""
25287 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25288 "\n"
25289 msgstr ""
25290
25291 # type: verbatim
25292 #: ../tools/virt-win-reg.pl:45
25293 #, no-wrap
25294 msgid ""
25295 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25296 "\n"
25297 msgstr ""
25298
25299 # type: verbatim
25300 #: ../tools/virt-win-reg.pl:47
25301 #, no-wrap
25302 msgid ""
25303 " virt-win-reg --merge domname [input.reg ...]\n"
25304 "\n"
25305 msgstr ""
25306
25307 # type: verbatim
25308 #: ../tools/virt-win-reg.pl:49
25309 #, no-wrap
25310 msgid ""
25311 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25312 "\n"
25313 msgstr ""
25314
25315 # type: textblock
25316 #: ../tools/virt-win-reg.pl:53
25317 msgid ""
25318 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25319 "virtual machines.  If you do this, you I<will> get irreversible disk "
25320 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25321 "but doesn't catch all cases."
25322 msgstr ""
25323
25324 # type: textblock
25325 #: ../tools/virt-win-reg.pl:58
25326 msgid ""
25327 "Modifying the Windows Registry is an inherently risky operation.  The format "
25328 "is deliberately obscure and undocumented, and Registry changes can leave the "
25329 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25330 "you have a reliable backup first."
25331 msgstr ""
25332
25333 # type: textblock
25334 #: ../tools/virt-win-reg.pl:65
25335 msgid ""
25336 "This program can export and merge Windows Registry entries from a Windows "
25337 "guest."
25338 msgstr ""
25339
25340 # type: textblock
25341 #: ../tools/virt-win-reg.pl:68
25342 msgid ""
25343 "The first parameter is the libvirt guest name or the raw disk image of a "
25344 "Windows guest."
25345 msgstr ""
25346
25347 # type: textblock
25348 #: ../tools/virt-win-reg.pl:71
25349 msgid ""
25350 "If C<--merge> is I<not> specified, then the chosen registry key is "
25351 "displayed/exported (recursively).  For example:"
25352 msgstr ""
25353
25354 # type: verbatim
25355 #: ../tools/virt-win-reg.pl:74
25356 #, no-wrap
25357 msgid ""
25358 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
25359 "\n"
25360 msgstr ""
25361
25362 # type: textblock
25363 #: ../tools/virt-win-reg.pl:76
25364 msgid "You can also display single values from within registry keys, for example:"
25365 msgstr ""
25366
25367 # type: verbatim
25368 #: ../tools/virt-win-reg.pl:79
25369 #, no-wrap
25370 msgid ""
25371 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
25372 " $ virt-win-reg Windows7 $cvkey ProductName\n"
25373 " Windows 7 Enterprise\n"
25374 "\n"
25375 msgstr ""
25376
25377 # type: textblock
25378 #: ../tools/virt-win-reg.pl:83
25379 msgid ""
25380 "With C<--merge>, you can merge a textual regedit file into the Windows "
25381 "Registry:"
25382 msgstr ""
25383
25384 # type: verbatim
25385 #: ../tools/virt-win-reg.pl:86
25386 #, no-wrap
25387 msgid ""
25388 " $ virt-win-reg --merge Windows7 changes.reg\n"
25389 "\n"
25390 msgstr ""
25391
25392 # type: =head2
25393 #: ../tools/virt-win-reg.pl:88
25394 msgid "SUPPORTED SYSTEMS"
25395 msgstr ""
25396
25397 # type: textblock
25398 #: ../tools/virt-win-reg.pl:90
25399 msgid ""
25400 "The program currently supports Windows NT-derived guests starting with "
25401 "Windows XP through to at least Windows 7."
25402 msgstr ""
25403
25404 # type: textblock
25405 #: ../tools/virt-win-reg.pl:93
25406 msgid ""
25407 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
25408 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
25409 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
25410 msgstr ""
25411
25412 # type: textblock
25413 #: ../tools/virt-win-reg.pl:97
25414 msgid ""
25415 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
25416 "C<HKEY_USERS>."
25417 msgstr ""
25418
25419 # type: textblock
25420 #: ../tools/virt-win-reg.pl:100
25421 msgid ""
25422 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
25423 "time."
25424 msgstr ""
25425
25426 # type: =head2
25427 #: ../tools/virt-win-reg.pl:103
25428 msgid "NOTE"
25429 msgstr ""
25430
25431 # type: textblock
25432 #: ../tools/virt-win-reg.pl:105
25433 msgid ""
25434 "This program is only meant for simple access to the registry.  If you want "
25435 "to do complicated things with the registry, we suggest you download the "
25436 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
25437 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
25438 "L<hivexregedit(1)>."
25439 msgstr ""
25440
25441 # type: =head2
25442 #: ../tools/virt-win-reg.pl:111
25443 msgid "ENCODING"
25444 msgstr ""
25445
25446 # type: textblock
25447 #: ../tools/virt-win-reg.pl:113
25448 msgid ""
25449 "C<virt-win-reg> expects that regedit files have already been reencoded in "
25450 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
25451 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
25452 "with Windows-style line endings, you may need to reencode the whole file "
25453 "before or after processing."
25454 msgstr ""
25455
25456 # type: textblock
25457 #: ../tools/virt-win-reg.pl:119
25458 msgid ""
25459 "To reencode a file from Windows format to Linux (before processing it with "
25460 "the C<--merge> option), you would do something like this:"
25461 msgstr ""
25462
25463 # type: verbatim
25464 #: ../tools/virt-win-reg.pl:122
25465 #, no-wrap
25466 msgid ""
25467 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
25468 "\n"
25469 msgstr ""
25470
25471 # type: textblock
25472 #: ../tools/virt-win-reg.pl:124
25473 msgid ""
25474 "To go in the opposite direction, after exporting and before sending the file "
25475 "to a Windows user, do something like this:"
25476 msgstr ""
25477
25478 # type: verbatim
25479 #: ../tools/virt-win-reg.pl:127
25480 #, no-wrap
25481 msgid ""
25482 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
25483 "\n"
25484 msgstr ""
25485
25486 # type: textblock
25487 #: ../tools/virt-win-reg.pl:129
25488 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
25489 msgstr ""
25490
25491 # type: textblock
25492 #: ../tools/virt-win-reg.pl:131
25493 msgid ""
25494 "If you are unsure about the current encoding, use the L<file(1)> command.  "
25495 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
25496 "Windows-style (CRLF) line endings, like this:"
25497 msgstr ""
25498
25499 # type: verbatim
25500 #: ../tools/virt-win-reg.pl:135
25501 #, no-wrap
25502 msgid ""
25503 " $ file software.reg\n"
25504 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
25505 " with CRLF line terminators\n"
25506 "\n"
25507 msgstr ""
25508
25509 # type: textblock
25510 #: ../tools/virt-win-reg.pl:139
25511 msgid "This file would need conversion before you could C<--merge> it."
25512 msgstr ""
25513
25514 # type: textblock
25515 #: ../tools/virt-win-reg.pl:143
25516 msgid ""
25517 "Be careful when passing parameters containing C<\\> (backslash) in the "
25518 "shell.  Usually you will have to use 'single quotes' or double backslashes "
25519 "(but not both) to protect them from the shell."
25520 msgstr ""
25521
25522 # type: textblock
25523 #: ../tools/virt-win-reg.pl:147
25524 msgid "Paths and value names are case-insensitive."
25525 msgstr ""
25526
25527 # type: =head2
25528 #: ../tools/virt-win-reg.pl:149
25529 msgid "CurrentControlSet etc."
25530 msgstr ""
25531
25532 # type: textblock
25533 #: ../tools/virt-win-reg.pl:151
25534 msgid ""
25535 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
25536 "Registry at the level of the hive file, and therefore you cannot modify "
25537 "these."
25538 msgstr ""
25539
25540 # type: textblock
25541 #: ../tools/virt-win-reg.pl:155
25542 msgid ""
25543 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
25544 "circumstances it might refer to another control set.  The way to find out is "
25545 "to look at the C<HKLM\\SYSTEM\\Select> key:"
25546 msgstr ""
25547
25548 # type: verbatim
25549 #: ../tools/virt-win-reg.pl:159
25550 #, no-wrap
25551 msgid ""
25552 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
25553 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
25554 " \"Current\"=dword:00000001\n"
25555 " \"Default\"=dword:00000001\n"
25556 " \"Failed\"=dword:00000000\n"
25557 " \"LastKnownGood\"=dword:00000002\n"
25558 "\n"
25559 msgstr ""
25560
25561 # type: textblock
25562 #: ../tools/virt-win-reg.pl:166
25563 msgid "\"Current\" is the one which Windows will choose when it boots."
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../tools/virt-win-reg.pl:168
25568 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
25569 msgstr ""
25570
25571 # type: =item
25572 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
25573 msgid "B<--debug>"
25574 msgstr ""
25575
25576 # type: textblock
25577 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:501
25578 msgid "Enable debugging messages."
25579 msgstr ""
25580
25581 # type: =item
25582 #: ../tools/virt-win-reg.pl:232
25583 msgid "B<--merge>"
25584 msgstr ""
25585
25586 # type: textblock
25587 #: ../tools/virt-win-reg.pl:234
25588 msgid ""
25589 "In merge mode, this merges a textual regedit file into the Windows Registry "
25590 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
25591 "displays or exports Registry entries instead."
25592 msgstr ""
25593
25594 # type: textblock
25595 #: ../tools/virt-win-reg.pl:238
25596 msgid ""
25597 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
25598 "result in disk corruption.  However exporting (without this flag)  is always "
25599 "safe."
25600 msgstr ""
25601
25602 # type: =item
25603 #: ../tools/virt-win-reg.pl:246
25604 msgid "B<--encoding> UTF-16LE|ASCII"
25605 msgstr ""
25606
25607 # type: textblock
25608 #: ../tools/virt-win-reg.pl:248
25609 msgid ""
25610 "When merging (only), you may need to specify the encoding for strings to be "
25611 "used in the hive file.  This is explained in detail in "
25612 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
25613 msgstr ""
25614
25615 # type: textblock
25616 #: ../tools/virt-win-reg.pl:252
25617 msgid ""
25618 "The default is to use UTF-16LE, which should work with recent versions of "
25619 "Windows."
25620 msgstr ""
25621
25622 # type: textblock
25623 #: ../tools/virt-win-reg.pl:486
25624 msgid ""
25625 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
25626 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25627 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
25628 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25629 msgstr ""
25630
25631 # type: textblock
25632 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
25633 msgid ""
25634 "When reporting bugs, please enable debugging and capture the I<complete> "
25635 "output:"
25636 msgstr ""
25637
25638 # type: verbatim
25639 #: ../tools/virt-win-reg.pl:504
25640 #, no-wrap
25641 msgid ""
25642 " export LIBGUESTFS_DEBUG=1\n"
25643 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
25644 "\n"
25645 msgstr ""
25646
25647 # type: textblock
25648 #: ../tools/virt-win-reg.pl:507
25649 msgid ""
25650 "Attach /tmp/virt-win-reg.log to a new bug report at "
25651 "L<https://bugzilla.redhat.com/>"
25652 msgstr ""
25653
25654 # type: textblock
25655 #: ../tools/virt-df.pl:36
25656 msgid "virt-df - Display free space on virtual filesystems"
25657 msgstr ""
25658
25659 # type: verbatim
25660 #: ../tools/virt-df.pl:40
25661 #, no-wrap
25662 msgid ""
25663 " virt-df [--options]\n"
25664 "\n"
25665 msgstr ""
25666
25667 # type: verbatim
25668 #: ../tools/virt-df.pl:42
25669 #, no-wrap
25670 msgid ""
25671 " virt-df [--options] domname\n"
25672 "\n"
25673 msgstr ""
25674
25675 # type: verbatim
25676 #: ../tools/virt-df.pl:44
25677 #, no-wrap
25678 msgid ""
25679 " virt-df [--options] disk.img [disk.img ...]\n"
25680 "\n"
25681 msgstr ""
25682
25683 # type: textblock
25684 #: ../tools/virt-df.pl:48
25685 msgid ""
25686 "C<virt-df> is a command line tool to display free space on virtual machine "
25687 "filesystems.  Unlike other tools, it doesn't just display the amount of "
25688 "space allocated to a virtual machine, but can look inside the virtual "
25689 "machine to see how much space is really being used."
25690 msgstr ""
25691
25692 # type: textblock
25693 #: ../tools/virt-df.pl:53
25694 msgid ""
25695 "It is like the L<df(1)> command, but for virtual machines, except that it "
25696 "also works for Windows virtual machines."
25697 msgstr ""
25698
25699 # type: textblock
25700 #: ../tools/virt-df.pl:56
25701 msgid ""
25702 "If used without any arguments, C<virt-df> checks with libvirt to get a list "
25703 "of all active and inactive guests, and performs a C<df>-type operation on "
25704 "each one in turn, printing out the results."
25705 msgstr ""
25706
25707 # type: textblock
25708 #: ../tools/virt-df.pl:60
25709 msgid ""
25710 "If used with any argument(s), C<virt-df> performs a C<df>-type operation on "
25711 "either the single named libvirt domain, or on the disk image(s) listed on "
25712 "the command line (which must all belong to a single VM).  In this mode (with "
25713 "arguments), C<virt-df> will I<only work for a single guest>.  If you want to "
25714 "run on multiple guests, then you have to invoke C<virt-df> multiple times."
25715 msgstr ""
25716
25717 # type: textblock
25718 #: ../tools/virt-df.pl:67
25719 msgid ""
25720 "Use the C<--csv> option to get a format which can be easily parsed by other "
25721 "programs.  Other options are mostly similar to standard C<df> options.  See "
25722 "below for the complete list."
25723 msgstr ""
25724
25725 # type: =item
25726 #: ../tools/virt-df.pl:107
25727 msgid "B<--csv>"
25728 msgstr ""
25729
25730 # type: textblock
25731 #: ../tools/virt-df.pl:109
25732 msgid ""
25733 "Write out the results in CSV format (comma-separated values).  This format "
25734 "can be imported easily into databases and spreadsheets, but read L</NOTE "
25735 "ABOUT CSV FORMAT> below."
25736 msgstr ""
25737
25738 # type: =item
25739 #: ../tools/virt-df.pl:134
25740 msgid "B<--human-readable> | B<-h>"
25741 msgstr ""
25742
25743 # type: textblock
25744 #: ../tools/virt-df.pl:136
25745 msgid "Print sizes in human-readable format."
25746 msgstr ""
25747
25748 # type: textblock
25749 #: ../tools/virt-df.pl:138
25750 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
25751 msgstr ""
25752
25753 # type: =item
25754 #: ../tools/virt-df.pl:144
25755 msgid "B<--inodes> | B<-i>"
25756 msgstr ""
25757
25758 # type: textblock
25759 #: ../tools/virt-df.pl:146
25760 msgid "Print inodes instead of blocks."
25761 msgstr ""
25762
25763 # type: =item
25764 #: ../tools/virt-df.pl:152
25765 msgid "B<--one-per-guest>"
25766 msgstr ""
25767
25768 # type: textblock
25769 #: ../tools/virt-df.pl:154
25770 msgid ""
25771 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
25772 "disks from several guests to a single libguestfs appliance."
25773 msgstr ""
25774
25775 # type: textblock
25776 #: ../tools/virt-df.pl:157
25777 msgid "You might use this option in the following circumstances:"
25778 msgstr ""
25779
25780 # type: textblock
25781 #: ../tools/virt-df.pl:163
25782 msgid ""
25783 "If you think an untrusted guest might actively try to exploit the libguestfs "
25784 "appliance kernel, then this prevents one guest from interfering with the "
25785 "stats printed for another guest."
25786 msgstr ""
25787
25788 # type: textblock
25789 #: ../tools/virt-df.pl:169
25790 msgid ""
25791 "If the kernel has a bug which stops it from accessing a filesystem in one "
25792 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
25793 "and report stats for further guests."
25794 msgstr ""
25795
25796 # type: =item
25797 #: ../tools/virt-df.pl:180
25798 msgid "B<--uuid>"
25799 msgstr ""
25800
25801 # type: textblock
25802 #: ../tools/virt-df.pl:182
25803 msgid ""
25804 "Print UUIDs instead of names.  This is useful for following a guest even "
25805 "when the guest is migrated or renamed, or when two guests happen to have the "
25806 "same name."
25807 msgstr ""
25808
25809 # type: textblock
25810 #: ../tools/virt-df.pl:186
25811 msgid ""
25812 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
25813 "images, we still print the disk image name even when this option is "
25814 "specified."
25815 msgstr ""
25816
25817 # type: =head1
25818 #: ../tools/virt-df.pl:609
25819 msgid "NOTE ABOUT CSV FORMAT"
25820 msgstr ""
25821
25822 # type: textblock
25823 #: ../tools/virt-df.pl:611
25824 msgid ""
25825 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
25826 "should be easy to parse, but it is definitely not easy to parse."
25827 msgstr ""
25828
25829 # type: textblock
25830 #: ../tools/virt-df.pl:614
25831 msgid ""
25832 "Myth: Just split fields at commas.  Reality: This does I<not> work "
25833 "reliably.  This example has two columns:"
25834 msgstr ""
25835
25836 # type: verbatim
25837 #: ../tools/virt-df.pl:617
25838 #, no-wrap
25839 msgid ""
25840 " \"foo,bar\",baz\n"
25841 "\n"
25842 msgstr ""
25843
25844 # type: textblock
25845 #: ../tools/virt-df.pl:619
25846 msgid ""
25847 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
25848 "reliably.  This example has one row:"
25849 msgstr ""
25850
25851 # type: verbatim
25852 #: ../tools/virt-df.pl:622
25853 #, no-wrap
25854 msgid ""
25855 " \"foo\n"
25856 " bar\",baz\n"
25857 "\n"
25858 msgstr ""
25859
25860 # type: textblock
25861 #: ../tools/virt-df.pl:625
25862 msgid ""
25863 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
25864 "packaged in major Linux distributions)."
25865 msgstr ""
25866
25867 # type: textblock
25868 #: ../tools/virt-df.pl:628
25869 msgid ""
25870 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
25871 "or Python's built-in csv library)."
25872 msgstr ""
25873
25874 # type: textblock
25875 #: ../tools/virt-df.pl:631
25876 msgid "Most spreadsheets and databases can import CSV directly."
25877 msgstr ""
25878
25879 # type: textblock
25880 #: ../tools/virt-df.pl:642
25881 msgid ""
25882 "L<guestfs(3)>, L<guestfish(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
25883 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
25884 msgstr ""
25885
25886 # type: textblock
25887 #: ../tools/virt-ls.pl:34
25888 msgid "virt-ls - List files in a virtual machine"
25889 msgstr ""
25890
25891 # type: verbatim
25892 #: ../tools/virt-ls.pl:38
25893 #, no-wrap
25894 msgid ""
25895 " virt-ls [--options] domname directory\n"
25896 "\n"
25897 msgstr ""
25898
25899 # type: verbatim
25900 #: ../tools/virt-ls.pl:40
25901 #, no-wrap
25902 msgid ""
25903 " virt-ls [--options] disk.img [disk.img ...] directory\n"
25904 "\n"
25905 msgstr ""
25906
25907 # type: textblock
25908 #: ../tools/virt-ls.pl:44
25909 msgid ""
25910 "C<virt-ls> is a command line tool to list the names of files in a directory "
25911 "inside a virtual machine or disk image."
25912 msgstr ""
25913
25914 # type: textblock
25915 #: ../tools/virt-ls.pl:47
25916 msgid ""
25917 "C<virt-ls> is just a simple wrapper around L<libguestfs(3)> functionality.  "
25918 "For more complex cases you should look at the L<guestfish(1)> tool."
25919 msgstr ""
25920
25921 # type: textblock
25922 #: ../tools/virt-ls.pl:51
25923 msgid ""
25924 "C<virt-ls> can be used in one of three modes: simple, long and recursive.  A "
25925 "simple listing is like the ordinary L<ls(1)> command:"
25926 msgstr ""
25927
25928 # type: verbatim
25929 #: ../tools/virt-ls.pl:54
25930 #, no-wrap
25931 msgid ""
25932 " $ virt-ls myguest /\n"
25933 " bin\n"
25934 " boot\n"
25935 " [etc.]\n"
25936 "\n"
25937 msgstr ""
25938
25939 # type: textblock
25940 #: ../tools/virt-ls.pl:59
25941 msgid "With the C<-l> (C<--long>) option, C<virt-ls> shows more detail:"
25942 msgstr ""
25943
25944 # type: verbatim
25945 #: ../tools/virt-ls.pl:61
25946 #, no-wrap
25947 msgid ""
25948 " $ virt-ls -l myguest /\n"
25949 " total 204\n"
25950 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
25951 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
25952 " [etc.]\n"
25953 "\n"
25954 msgstr ""
25955
25956 # type: textblock
25957 #: ../tools/virt-ls.pl:67
25958 msgid ""
25959 "With the C<-R> (C<--recursive>) option, C<virt-ls> lists the names of files "
25960 "and directories recursively:"
25961 msgstr ""
25962
25963 # type: verbatim
25964 #: ../tools/virt-ls.pl:70
25965 #, no-wrap
25966 msgid ""
25967 " $ virt-ls -R myguest /tmp\n"
25968 " foo\n"
25969 " foo/bar\n"
25970 " [etc.]\n"
25971 "\n"
25972 msgstr ""
25973
25974 # type: textblock
25975 #: ../tools/virt-ls.pl:75
25976 msgid ""
25977 "You I<cannot> combine these options.  To do more complicated things, use "
25978 "L<guestfish(1)>."
25979 msgstr ""
25980
25981 # type: =item
25982 #: ../tools/virt-ls.pl:131 ../tools/virt-list-filesystems.pl:103 ../tools/virt-list-partitions.pl:112
25983 msgid "B<-l> | B<--long>"
25984 msgstr ""
25985
25986 # type: =item
25987 #: ../tools/virt-ls.pl:133
25988 msgid "B<-R> | B<--recursive>"
25989 msgstr ""
25990
25991 # type: textblock
25992 #: ../tools/virt-ls.pl:135
25993 msgid ""
25994 "Select the mode.  With neither of these options, C<virt-ls> produces a "
25995 "simple, flat list of the files in the named directory."
25996 msgstr ""
25997
25998 # type: textblock
25999 #: ../tools/virt-ls.pl:138
26000 msgid ""
26001 "C<virt-ls -l> produces a \"long listing\", which shows more detail (just "
26002 "like the plain C<ls -l> command)."
26003 msgstr ""
26004
26005 # type: textblock
26006 #: ../tools/virt-ls.pl:141
26007 msgid ""
26008 "C<virt-ls -R> produces a recursive list of files starting at the named "
26009 "directory.  See the documentation for L<guestfs(3)/guestfs_find> for precise "
26010 "details."
26011 msgstr ""
26012
26013 # type: textblock
26014 #: ../tools/virt-ls.pl:145
26015 msgid "You cannot combine these options."
26016 msgstr ""
26017
26018 # type: textblock
26019 #: ../tools/virt-ls.pl:234
26020 msgid ""
26021 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
26022 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
26023 "L<http://libguestfs.org/>."
26024 msgstr ""
26025
26026 # type: textblock
26027 #: ../tools/virt-ls.pl:249 ../tools/virt-list-filesystems.pl:204 ../tools/virt-cat.pl:201 ../tools/virt-tar.pl:298
26028 msgid "Copyright (C) 2009 Red Hat Inc."
26029 msgstr ""
26030
26031 # type: textblock
26032 #: ../tools/virt-resize.pl:42
26033 msgid "virt-resize - Resize a virtual machine disk"
26034 msgstr ""
26035
26036 # type: verbatim
26037 #: ../tools/virt-resize.pl:46
26038 #, no-wrap
26039 msgid ""
26040 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26041 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26042 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26043 "\n"
26044 msgstr ""
26045
26046 # type: textblock
26047 #: ../tools/virt-resize.pl:52
26048 msgid ""
26049 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26050 "larger or smaller overall, and resizing or deleting any partitions contained "
26051 "within."
26052 msgstr ""
26053
26054 # type: textblock
26055 #: ../tools/virt-resize.pl:56
26056 msgid ""
26057 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26058 "not> be used on live virtual machines - for consistent results, shut the "
26059 "virtual machine down before resizing it."
26060 msgstr ""
26061
26062 # type: textblock
26063 #: ../tools/virt-resize.pl:60
26064 msgid ""
26065 "If you are not familiar with the associated tools: "
26066 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)> and L<virt-df(1)>, "
26067 "we recommend you go and read those manual pages first."
26068 msgstr ""
26069
26070 # type: textblock
26071 #: ../tools/virt-resize.pl:68
26072 msgid ""
26073 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26074 "fill the extra 5GB of space."
26075 msgstr ""
26076
26077 # type: verbatim
26078 #: ../tools/virt-resize.pl:71
26079 #, no-wrap
26080 msgid ""
26081 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26082 " virt-list-partitions -lht olddisk\n"
26083 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26084 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26085 "\n"
26086 msgstr ""
26087
26088 # type: textblock
26089 #: ../tools/virt-resize.pl:76
26090 msgid ""
26091 "As above, but make the /boot partition 200MB bigger, while giving the "
26092 "remaining space to /dev/sda2:"
26093 msgstr ""
26094
26095 # type: verbatim
26096 #: ../tools/virt-resize.pl:79
26097 #, no-wrap
26098 msgid ""
26099 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26100 "\n"
26101 msgstr ""
26102
26103 # type: textblock
26104 #: ../tools/virt-resize.pl:81
26105 msgid "As above, but the output format will be uncompressed qcow2:"
26106 msgstr ""
26107
26108 # type: verbatim
26109 #: ../tools/virt-resize.pl:83
26110 #, no-wrap
26111 msgid ""
26112 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26113 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26114 "\n"
26115 msgstr ""
26116
26117 # type: =head1
26118 #: ../tools/virt-resize.pl:86
26119 msgid "DETAILED USAGE"
26120 msgstr ""
26121
26122 # type: =head2
26123 #: ../tools/virt-resize.pl:88
26124 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26125 msgstr ""
26126
26127 # type: =item
26128 #: ../tools/virt-resize.pl:92
26129 msgid "1. Shut down the virtual machine"
26130 msgstr ""
26131
26132 # type: =item
26133 #: ../tools/virt-resize.pl:94
26134 msgid "2. Locate input disk image"
26135 msgstr ""
26136
26137 # type: textblock
26138 #: ../tools/virt-resize.pl:96
26139 msgid ""
26140 "Locate the input disk image (ie. the file or device on the host containing "
26141 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26142 "dumpxml> like this to find the disk image name:"
26143 msgstr ""
26144
26145 # type: verbatim
26146 #: ../tools/virt-resize.pl:100
26147 #, no-wrap
26148 msgid ""
26149 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26150 " Found 1 nodes:\n"
26151 " -- NODE --\n"
26152 " <source dev=\"/dev/vg/lv_guest\" />\n"
26153 "\n"
26154 msgstr ""
26155
26156 # type: =item
26157 #: ../tools/virt-resize.pl:105
26158 msgid "3. Look at current sizing"
26159 msgstr ""
26160
26161 # type: textblock
26162 #: ../tools/virt-resize.pl:107
26163 msgid "Use L<virt-list-partitions(1)> to display the current partitions and sizes:"
26164 msgstr ""
26165
26166 # type: verbatim
26167 #: ../tools/virt-resize.pl:110
26168 #, no-wrap
26169 msgid ""
26170 " # virt-list-partitions -lht /dev/vg/lv_guest\n"
26171 " /dev/sda1 ext3 101.9M\n"
26172 " /dev/sda2 pv 7.9G\n"
26173 " /dev/sda device 8.0G\n"
26174 "\n"
26175 msgstr ""
26176
26177 # type: textblock
26178 #: ../tools/virt-resize.pl:115
26179 msgid ""
26180 "(This example is a virtual machine with an 8 GB disk which we would like to "
26181 "expand up to 10 GB)."
26182 msgstr ""
26183
26184 # type: =item
26185 #: ../tools/virt-resize.pl:118
26186 msgid "4. Create output disk"
26187 msgstr ""
26188
26189 # type: textblock
26190 #: ../tools/virt-resize.pl:120
26191 msgid ""
26192 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26193 "to store the resized output disk."
26194 msgstr ""
26195
26196 # type: textblock
26197 #: ../tools/virt-resize.pl:123
26198 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26199 msgstr ""
26200
26201 # type: verbatim
26202 #: ../tools/virt-resize.pl:126
26203 #, no-wrap
26204 msgid ""
26205 " # rm -f outdisk\n"
26206 " # truncate -s 10G outdisk\n"
26207 "\n"
26208 msgstr ""
26209
26210 # type: textblock
26211 #: ../tools/virt-resize.pl:129
26212 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26213 msgstr ""
26214
26215 # type: verbatim
26216 #: ../tools/virt-resize.pl:131
26217 #, no-wrap
26218 msgid ""
26219 " # lvcreate -L 10G -n lv_name vg_name\n"
26220 "\n"
26221 msgstr ""
26222
26223 # type: textblock
26224 #: ../tools/virt-resize.pl:133
26225 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26226 msgstr ""
26227
26228 # type: verbatim
26229 #: ../tools/virt-resize.pl:135
26230 #, no-wrap
26231 msgid ""
26232 " # virsh pool-list\n"
26233 " # virsh vol-create-as poolname newvol 10G\n"
26234 "\n"
26235 msgstr ""
26236
26237 # type: =item
26238 #: ../tools/virt-resize.pl:138
26239 msgid "5. Resize"
26240 msgstr ""
26241
26242 # type: textblock
26243 #: ../tools/virt-resize.pl:140
26244 msgid ""
26245 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26246 "file) and the output disk.  The output disk is the one created in the "
26247 "previous step."
26248 msgstr ""
26249
26250 # type: verbatim
26251 #: ../tools/virt-resize.pl:144
26252 #, no-wrap
26253 msgid ""
26254 " # virt-resize indisk outdisk\n"
26255 "\n"
26256 msgstr ""
26257
26258 # type: textblock
26259 #: ../tools/virt-resize.pl:146
26260 msgid ""
26261 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26262 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26263 "larger, then an extra, empty partition is created at the end of the disk "
26264 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26265 "error."
26266 msgstr ""
26267
26268 # type: textblock
26269 #: ../tools/virt-resize.pl:152
26270 msgid ""
26271 "More realistically you'd want to expand existing partitions in the disk "
26272 "image by passing extra options (for the full list see the L</OPTIONS> "
26273 "section below)."
26274 msgstr ""
26275
26276 # type: textblock
26277 #: ../tools/virt-resize.pl:156
26278 msgid ""
26279 "L</--expand> is the most useful option.  It expands the named partition "
26280 "within the disk to fill any extra space:"
26281 msgstr ""
26282
26283 # type: verbatim
26284 #: ../tools/virt-resize.pl:159
26285 #, no-wrap
26286 msgid ""
26287 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26288 "\n"
26289 msgstr ""
26290
26291 # type: textblock
26292 #: ../tools/virt-resize.pl:161
26293 msgid ""
26294 "(In this case, an extra partition is I<not> created at the end of the disk, "
26295 "because there will be no unused space)."
26296 msgstr ""
26297
26298 # type: textblock
26299 #: ../tools/virt-resize.pl:164
26300 msgid ""
26301 "L</--resize> is the other commonly used option.  The following would "
26302 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26303 "rest of the available space:"
26304 msgstr ""
26305
26306 # type: verbatim
26307 #: ../tools/virt-resize.pl:168
26308 #, no-wrap
26309 msgid ""
26310 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26311 "     indisk outdisk\n"
26312 "\n"
26313 msgstr ""
26314
26315 # type: textblock
26316 #: ../tools/virt-resize.pl:171
26317 msgid ""
26318 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26319 "if virt-resize knows how, it will resize the contents, the equivalent of "
26320 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
26321 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
26322 "filesystems, so you would have to online resize them after booting the "
26323 "guest.  And virt-resize also does not resize anything inside an LVM PV, it "
26324 "just resizes the PV itself and leaves the user to resize any LVs inside that "
26325 "PV as desired."
26326 msgstr ""
26327
26328 # type: textblock
26329 #: ../tools/virt-resize.pl:180
26330 msgid "Other options are covered below."
26331 msgstr ""
26332
26333 # type: =item
26334 #: ../tools/virt-resize.pl:182
26335 msgid "6. Test"
26336 msgstr ""
26337
26338 # type: textblock
26339 #: ../tools/virt-resize.pl:184
26340 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26341 msgstr ""
26342
26343 # type: textblock
26344 #: ../tools/virt-resize.pl:186
26345 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26346 msgstr ""
26347
26348 # type: verbatim
26349 #: ../tools/virt-resize.pl:188
26350 #, no-wrap
26351 msgid ""
26352 " # virsh edit guestname\n"
26353 "\n"
26354 msgstr ""
26355
26356 # type: textblock
26357 #: ../tools/virt-resize.pl:190
26358 msgid ""
26359 "Change E<lt>source ...E<gt>, see "
26360 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26361 msgstr ""
26362
26363 # type: textblock
26364 #: ../tools/virt-resize.pl:193
26365 msgid "Then start up the domain with the new, resized disk:"
26366 msgstr ""
26367
26368 # type: verbatim
26369 #: ../tools/virt-resize.pl:195
26370 #, no-wrap
26371 msgid ""
26372 " # virsh start guestname\n"
26373 "\n"
26374 msgstr ""
26375
26376 # type: textblock
26377 #: ../tools/virt-resize.pl:197
26378 msgid ""
26379 "and check that it still works.  See also the L</NOTES> section below for "
26380 "additional information."
26381 msgstr ""
26382
26383 # type: =item
26384 #: ../tools/virt-resize.pl:200
26385 msgid "7. Resize LVs etc inside the guest"
26386 msgstr ""
26387
26388 # type: textblock
26389 #: ../tools/virt-resize.pl:202
26390 msgid "(This can also be done offline using L<guestfish(1)>)"
26391 msgstr ""
26392
26393 # type: textblock
26394 #: ../tools/virt-resize.pl:204
26395 msgid ""
26396 "Once the guest has booted you should see the new space available, at least "
26397 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26398 "may need to resize LVs inside PVs, and also resize filesystem types that "
26399 "virt-resize does not know how to expand."
26400 msgstr ""
26401
26402 # type: =head2
26403 #: ../tools/virt-resize.pl:211
26404 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26405 msgstr ""
26406
26407 # type: textblock
26408 #: ../tools/virt-resize.pl:213
26409 msgid ""
26410 "Shrinking is somewhat more complex than expanding, and only an overview is "
26411 "given here."
26412 msgstr ""
26413
26414 # type: textblock
26415 #: ../tools/virt-resize.pl:216
26416 msgid ""
26417 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26418 "filesystems).  The user has to shrink content before passing the disk image "
26419 "to virt-resize, and virt-resize will check that the content has been shrunk "
26420 "properly."
26421 msgstr ""
26422
26423 # type: textblock
26424 #: ../tools/virt-resize.pl:221
26425 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26426 msgstr ""
26427
26428 # type: textblock
26429 #: ../tools/virt-resize.pl:223
26430 msgid ""
26431 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26432 "steps 3 and 4 above to allocate a new disk image."
26433 msgstr ""
26434
26435 # type: textblock
26436 #: ../tools/virt-resize.pl:226
26437 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26438 msgstr ""
26439
26440 # type: =head2
26441 #: ../tools/virt-resize.pl:229
26442 msgid "IGNORING OR DELETING PARTITIONS"
26443 msgstr ""
26444
26445 # type: textblock
26446 #: ../tools/virt-resize.pl:231
26447 msgid ""
26448 "virt-resize also gives a convenient way to ignore or delete partitions when "
26449 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26450 "up the copy where you don't care about the existing contents of a "
26451 "partition.  Deleting a partition removes it completely, but note that it "
26452 "also renumbers any partitions after the one which is deleted, which can "
26453 "leave some guests unbootable."
26454 msgstr ""
26455
26456 # type: =head2
26457 #: ../tools/virt-resize.pl:238
26458 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26459 msgstr ""
26460
26461 # type: textblock
26462 #: ../tools/virt-resize.pl:240
26463 msgid ""
26464 "If the input disk is in qcow2 format, then you may prefer that the output is "
26465 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26466 "the fly.  The output format is simply determined by the format of the empty "
26467 "output container that you provide.  Thus to create qcow2 output, use:"
26468 msgstr ""
26469
26470 # type: verbatim
26471 #: ../tools/virt-resize.pl:246
26472 #, no-wrap
26473 msgid ""
26474 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26475 "\n"
26476 msgstr ""
26477
26478 # type: textblock
26479 #: ../tools/virt-resize.pl:248
26480 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26481 msgstr ""
26482
26483 # type: textblock
26484 #: ../tools/virt-resize.pl:250
26485 msgid "Similarly, to get non-sparse raw output use:"
26486 msgstr ""
26487
26488 # type: verbatim
26489 #: ../tools/virt-resize.pl:252
26490 #, no-wrap
26491 msgid ""
26492 " fallocate -l size outdisk\n"
26493 "\n"
26494 msgstr ""
26495
26496 # type: textblock
26497 #: ../tools/virt-resize.pl:254
26498 msgid ""
26499 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
26500 "if=/dev/zero of=outdisk bs=1M count=..>)"
26501 msgstr ""
26502
26503 # type: textblock
26504 #: ../tools/virt-resize.pl:267
26505 msgid "Display help."
26506 msgstr ""
26507
26508 # type: =item
26509 #: ../tools/virt-resize.pl:281
26510 msgid "B<--resize part=size>"
26511 msgstr ""
26512
26513 # type: textblock
26514 #: ../tools/virt-resize.pl:283
26515 msgid ""
26516 "Resize the named partition (expanding or shrinking it) so that it has the "
26517 "given size."
26518 msgstr ""
26519
26520 # type: textblock
26521 #: ../tools/virt-resize.pl:286
26522 msgid ""
26523 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26524 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26525 "Exabytes; or as a percentage of the current size; or as a relative number or "
26526 "percentage.  For example:"
26527 msgstr ""
26528
26529 # type: verbatim
26530 #: ../tools/virt-resize.pl:291
26531 #, no-wrap
26532 msgid ""
26533 " --resize /dev/sda2=10G\n"
26534 "\n"
26535 msgstr ""
26536
26537 # type: verbatim
26538 #: ../tools/virt-resize.pl:293
26539 #, no-wrap
26540 msgid ""
26541 " --resize /dev/sda4=90%\n"
26542 "\n"
26543 msgstr ""
26544
26545 # type: verbatim
26546 #: ../tools/virt-resize.pl:295
26547 #, no-wrap
26548 msgid ""
26549 " --resize /dev/sda2=+1G\n"
26550 "\n"
26551 msgstr ""
26552
26553 # type: verbatim
26554 #: ../tools/virt-resize.pl:297
26555 #, no-wrap
26556 msgid ""
26557 " --resize /dev/sda2=-200M\n"
26558 "\n"
26559 msgstr ""
26560
26561 # type: verbatim
26562 #: ../tools/virt-resize.pl:299
26563 #, no-wrap
26564 msgid ""
26565 " --resize /dev/sda1=+128K\n"
26566 "\n"
26567 msgstr ""
26568
26569 # type: verbatim
26570 #: ../tools/virt-resize.pl:301
26571 #, no-wrap
26572 msgid ""
26573 " --resize /dev/sda1=+10%\n"
26574 "\n"
26575 msgstr ""
26576
26577 # type: verbatim
26578 #: ../tools/virt-resize.pl:303
26579 #, no-wrap
26580 msgid ""
26581 " --resize /dev/sda1=-10%\n"
26582 "\n"
26583 msgstr ""
26584
26585 # type: textblock
26586 #: ../tools/virt-resize.pl:305
26587 msgid ""
26588 "You can increase the size of any partition.  Virt-resize will expand the "
26589 "direct content of the partition if it knows how (see C<--expand> below)."
26590 msgstr ""
26591
26592 # type: textblock
26593 #: ../tools/virt-resize.pl:309
26594 msgid ""
26595 "You can only I<decrease> the size of partitions that contain filesystems or "
26596 "PVs which have already been shrunk.  Virt-resize will check this has been "
26597 "done before proceeding, or else will print an error (see also "
26598 "C<--resize-force>)."
26599 msgstr ""
26600
26601 # type: textblock
26602 #: ../tools/virt-resize.pl:314 ../tools/virt-resize.pl:406 ../tools/virt-resize.pl:423
26603 msgid "You can give this option multiple times."
26604 msgstr ""
26605
26606 # type: =item
26607 #: ../tools/virt-resize.pl:320
26608 msgid "B<--resize-force part=size>"
26609 msgstr ""
26610
26611 # type: textblock
26612 #: ../tools/virt-resize.pl:322
26613 msgid ""
26614 "This is the same as C<--resize> except that it will let you decrease the "
26615 "size of any partition.  Generally this means you will lose any data which "
26616 "was at the end of the partition you shrink, but you may not care about that "
26617 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26618 "as a swap partition)."
26619 msgstr ""
26620
26621 # type: textblock
26622 #: ../tools/virt-resize.pl:328
26623 msgid "See also the C<--ignore> option."
26624 msgstr ""
26625
26626 # type: =item
26627 #: ../tools/virt-resize.pl:334
26628 msgid "B<--expand part>"
26629 msgstr ""
26630
26631 # type: textblock
26632 #: ../tools/virt-resize.pl:336
26633 msgid ""
26634 "Expand the named partition so it uses up all extra space (space left over "
26635 "after any other resize changes that you request have been done)."
26636 msgstr ""
26637
26638 # type: textblock
26639 #: ../tools/virt-resize.pl:339
26640 msgid ""
26641 "If virt-resize knows how, it will expand the direct content of the "
26642 "partition.  For example, if the partition is an LVM PV, it will expand the "
26643 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26644 "content it doesn't know about alone."
26645 msgstr ""
26646
26647 # type: textblock
26648 #: ../tools/virt-resize.pl:344
26649 msgid "Currently virt-resize can resize:"
26650 msgstr ""
26651
26652 # type: textblock
26653 #: ../tools/virt-resize.pl:350
26654 msgid ""
26655 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26656 "partition."
26657 msgstr ""
26658
26659 # type: textblock
26660 #: ../tools/virt-resize.pl:355
26661 msgid ""
26662 "NTFS filesystems contained directly in a partition, if libguestfs was "
26663 "compiled with support for NTFS."
26664 msgstr ""
26665
26666 # type: textblock
26667 #: ../tools/virt-resize.pl:358
26668 msgid ""
26669 "The filesystem must have been shut down consistently last time it was used.  "
26670 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26671 "consistency check, so at the first boot after resizing Windows will check "
26672 "the disk."
26673 msgstr ""
26674
26675 # type: textblock
26676 #: ../tools/virt-resize.pl:365
26677 msgid ""
26678 "LVM PVs (physical volumes).  However virt-resize does I<not> resize anything "
26679 "inside the PV.  The user will have to resize LVs as desired."
26680 msgstr ""
26681
26682 # type: textblock
26683 #: ../tools/virt-resize.pl:371 ../tools/virt-resize.pl:393
26684 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26685 msgstr ""
26686
26687 # type: =item
26688 #: ../tools/virt-resize.pl:377
26689 msgid "B<--shrink part>"
26690 msgstr ""
26691
26692 # type: textblock
26693 #: ../tools/virt-resize.pl:379
26694 msgid ""
26695 "Shrink the named partition until the overall disk image fits in the "
26696 "destination.  The named partition B<must> contain a filesystem or PV which "
26697 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26698 "online tools).  Virt-resize will check this and give an error if it has not "
26699 "been done."
26700 msgstr ""
26701
26702 # type: textblock
26703 #: ../tools/virt-resize.pl:385
26704 msgid ""
26705 "The amount by which the overall disk must be shrunk (after carrying out all "
26706 "other operations requested by the user) is called the \"deficit\".  For "
26707 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26708 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26709 "would give an error unless the user specified a partition to shrink and that "
26710 "partition had more than a gigabyte of free space."
26711 msgstr ""
26712
26713 # type: =item
26714 #: ../tools/virt-resize.pl:399
26715 msgid "B<--ignore part>"
26716 msgstr ""
26717
26718 # type: textblock
26719 #: ../tools/virt-resize.pl:401
26720 msgid ""
26721 "Ignore the named partition.  Effectively this means the partition is "
26722 "allocated on the destination disk, but the content is not copied across from "
26723 "the source disk.  The content of the partition will be blank (all zero "
26724 "bytes)."
26725 msgstr ""
26726
26727 # type: =item
26728 #: ../tools/virt-resize.pl:412
26729 msgid "B<--delete part>"
26730 msgstr ""
26731
26732 # type: textblock
26733 #: ../tools/virt-resize.pl:414
26734 msgid ""
26735 "Delete the named partition.  It would be more accurate to describe this as "
26736 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
26737 "the original disk image is left intact."
26738 msgstr ""
26739
26740 # type: textblock
26741 #: ../tools/virt-resize.pl:418
26742 msgid ""
26743 "Note that when you delete a partition, then anything contained in the "
26744 "partition is also deleted.  Furthermore, this causes any partitions that "
26745 "come after to be I<renumbered>, which can easily make your guest unbootable."
26746 msgstr ""
26747
26748 # type: =item
26749 #: ../tools/virt-resize.pl:429
26750 msgid "B<--LV-expand logvol>"
26751 msgstr ""
26752
26753 # type: textblock
26754 #: ../tools/virt-resize.pl:431
26755 msgid ""
26756 "This takes the logical volume and, as a final step, expands it to fill all "
26757 "the space available in its volume group.  A typical usage, assuming a Linux "
26758 "guest with a single PV C</dev/sda2> and a root device called "
26759 "C</dev/vg_guest/lv_root> would be:"
26760 msgstr ""
26761
26762 # type: verbatim
26763 #: ../tools/virt-resize.pl:436
26764 #, no-wrap
26765 msgid ""
26766 " virt-resize indisk outdisk \\\n"
26767 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
26768 "\n"
26769 msgstr ""
26770
26771 # type: textblock
26772 #: ../tools/virt-resize.pl:439
26773 msgid ""
26774 "This would first expand the partition (and PV), and then expand the root "
26775 "device to fill the extra space in the PV."
26776 msgstr ""
26777
26778 # type: textblock
26779 #: ../tools/virt-resize.pl:442
26780 msgid ""
26781 "The contents of the LV are also resized if virt-resize knows how to do "
26782 "that.  You can stop virt-resize from trying to expand the content by using "
26783 "the option C<--no-expand-content>."
26784 msgstr ""
26785
26786 # type: textblock
26787 #: ../tools/virt-resize.pl:446
26788 msgid "Use L<virt-list-filesystems(1)> to list the filesystems in the guest."
26789 msgstr ""
26790
26791 # type: textblock
26792 #: ../tools/virt-resize.pl:449
26793 msgid ""
26794 "You can give this option multiple times, I<but> it doesn't make sense to do "
26795 "this unless the logical volumes you specify are all in different volume "
26796 "groups."
26797 msgstr ""
26798
26799 # type: =item
26800 #: ../tools/virt-resize.pl:457
26801 msgid "B<--no-copy-boot-loader>"
26802 msgstr ""
26803
26804 # type: textblock
26805 #: ../tools/virt-resize.pl:459
26806 msgid ""
26807 "By default, virt-resize copies over some sectors at the start of the disk "
26808 "(up to the beginning of the first partition).  Commonly these sectors "
26809 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26810 "in order for the guest to boot correctly."
26811 msgstr ""
26812
26813 # type: textblock
26814 #: ../tools/virt-resize.pl:464
26815 msgid ""
26816 "If you specify this flag, then this initial copy is not done.  You may need "
26817 "to reinstall the boot loader in this case."
26818 msgstr ""
26819
26820 # type: =item
26821 #: ../tools/virt-resize.pl:472
26822 msgid "B<--no-extra-partition>"
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-resize.pl:474
26827 msgid ""
26828 "By default, virt-resize creates an extra partition if there is any extra, "
26829 "unused space after all resizing has happened.  Use this option to prevent "
26830 "the extra partition from being created.  If you do this then the extra space "
26831 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26832 "tool in the guest."
26833 msgstr ""
26834
26835 # type: textblock
26836 #: ../tools/virt-resize.pl:480
26837 msgid ""
26838 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26839 "will be created."
26840 msgstr ""
26841
26842 # type: =item
26843 #: ../tools/virt-resize.pl:487
26844 msgid "B<--no-expand-content>"
26845 msgstr ""
26846
26847 # type: textblock
26848 #: ../tools/virt-resize.pl:489
26849 msgid ""
26850 "By default, virt-resize will try to expand the direct contents of "
26851 "partitions, if it knows how (see C<--expand> option above)."
26852 msgstr ""
26853
26854 # type: textblock
26855 #: ../tools/virt-resize.pl:492
26856 msgid ""
26857 "If you give the C<--no-expand-content> option then virt-resize will not "
26858 "attempt this."
26859 msgstr ""
26860
26861 # type: =item
26862 #: ../tools/virt-resize.pl:499
26863 msgid "B<-d> | B<--debug>"
26864 msgstr ""
26865
26866 # type: =item
26867 #: ../tools/virt-resize.pl:507
26868 msgid "B<-n> | B<--dryrun>"
26869 msgstr ""
26870
26871 # type: textblock
26872 #: ../tools/virt-resize.pl:509
26873 msgid "Print a summary of what would be done, but don't do anything."
26874 msgstr ""
26875
26876 # type: =item
26877 #: ../tools/virt-resize.pl:515
26878 msgid "B<-q> | B<--quiet>"
26879 msgstr ""
26880
26881 # type: textblock
26882 #: ../tools/virt-resize.pl:517
26883 msgid "Don't print the summary."
26884 msgstr ""
26885
26886 # type: textblock
26887 #: ../tools/virt-resize.pl:525
26888 msgid ""
26889 "Specify the format of the input disk image.  If this flag is not given then "
26890 "it is auto-detected from the image itself."
26891 msgstr ""
26892
26893 # type: textblock
26894 #: ../tools/virt-resize.pl:531
26895 msgid ""
26896 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
26897 "AND NON-SPARSE RAW FORMATS>."
26898 msgstr ""
26899
26900 # type: =item
26901 #: ../tools/virt-resize.pl:538
26902 msgid "B<--output-format> raw"
26903 msgstr ""
26904
26905 # type: textblock
26906 #: ../tools/virt-resize.pl:540
26907 msgid ""
26908 "Specify the format of the output disk image.  If this flag is not given then "
26909 "it is auto-detected from the image itself."
26910 msgstr ""
26911
26912 # type: textblock
26913 #: ../tools/virt-resize.pl:546
26914 msgid ""
26915 "Note that you still need to create the output disk with the right format.  "
26916 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
26917 msgstr ""
26918
26919 # type: =head2
26920 #: ../tools/virt-resize.pl:1422 ../tools/virt-rescue.pl:90
26921 msgid "NOTES"
26922 msgstr ""
26923
26924 # type: =head2
26925 #: ../tools/virt-resize.pl:1424
26926 msgid "\"Partition 1 does not end on cylinder boundary.\""
26927 msgstr ""
26928
26929 # type: textblock
26930 #: ../tools/virt-resize.pl:1426
26931 msgid ""
26932 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
26933 "means the partitions will not be aligned to the ancient CHS geometry.  "
26934 "However CHS geometry is meaningless for disks manufactured since the early "
26935 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
26936 "cylinders is not required by any modern operating system."
26937 msgstr ""
26938
26939 # type: =head2
26940 #: ../tools/virt-resize.pl:1433
26941 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26942 msgstr ""
26943
26944 # type: textblock
26945 #: ../tools/virt-resize.pl:1435
26946 msgid ""
26947 "In Windows Vista and later versions, Microsoft switched to using a separate "
26948 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26949 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
26950 "the boot partition.  Doing so seems to break the guest completely.  However "
26951 "expanding the second partition (ie. C: drive) should work."
26952 msgstr ""
26953
26954 # type: textblock
26955 #: ../tools/virt-resize.pl:1442
26956 msgid ""
26957 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26958 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26959 "it find errors) is nothing to worry about."
26960 msgstr ""
26961
26962 # type: =head2
26963 #: ../tools/virt-resize.pl:1446
26964 msgid "GUEST BOOT STUCK AT \"GRUB\""
26965 msgstr ""
26966
26967 # type: textblock
26968 #: ../tools/virt-resize.pl:1448
26969 msgid ""
26970 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26971 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
26972 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
26973 "although we think is to do with partition alignment."
26974 msgstr ""
26975
26976 # type: verbatim
26977 #: ../tools/virt-resize.pl:1453
26978 #, no-wrap
26979 msgid ""
26980 " guestfish -i -a newdisk\n"
26981 " ><fs> cat /boot/grub/device.map\n"
26982 " # check the contents of this file are sensible or\n"
26983 " # edit the file if necessary\n"
26984 " ><fs> grub-install / /dev/vda\n"
26985 " ><fs> exit\n"
26986 "\n"
26987 msgstr ""
26988
26989 # type: textblock
26990 #: ../tools/virt-resize.pl:1460
26991 msgid ""
26992 "For more flexible guest reconfiguration, including if you need to specify "
26993 "other parameters to grub-install, use L<virt-rescue(1)>."
26994 msgstr ""
26995
26996 # type: =head1
26997 #: ../tools/virt-resize.pl:1463
26998 msgid "ALTERNATIVE TOOLS"
26999 msgstr ""
27000
27001 # type: textblock
27002 #: ../tools/virt-resize.pl:1465
27003 msgid ""
27004 "There are several proprietary tools for resizing partitions.  We won't "
27005 "mention any here."
27006 msgstr ""
27007
27008 # type: textblock
27009 #: ../tools/virt-resize.pl:1468
27010 msgid ""
27011 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27012 "operations on disk images.  They can resize and move partitions, but I don't "
27013 "think they can do anything with the contents, and they certainly don't "
27014 "understand LVM."
27015 msgstr ""
27016
27017 # type: textblock
27018 #: ../tools/virt-resize.pl:1473
27019 msgid ""
27020 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27021 "but at a much lower level.  You will probably end up hand-calculating sector "
27022 "offsets, which is something that virt-resize was designed to avoid.  If you "
27023 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27024 "C<--debug> flag."
27025 msgstr ""
27026
27027 # type: textblock
27028 #: ../tools/virt-resize.pl:1488
27029 msgid ""
27030 "L<virt-list-partitions(1)>, L<virt-list-filesystems(1)>, L<virt-df(1)>, "
27031 "L<guestfs(3)>, L<guestfish(1)>, L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, "
27032 "L<resize2fs(8)>, L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, "
27033 "L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, "
27034 "L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27035 msgstr ""
27036
27037 # type: textblock
27038 #: ../tools/virt-list-filesystems.pl:32
27039 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27040 msgstr ""
27041
27042 # type: verbatim
27043 #: ../tools/virt-list-filesystems.pl:36
27044 #, no-wrap
27045 msgid ""
27046 " virt-list-filesystems [--options] domname\n"
27047 "\n"
27048 msgstr ""
27049
27050 # type: verbatim
27051 #: ../tools/virt-list-filesystems.pl:38
27052 #, no-wrap
27053 msgid ""
27054 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27055 "\n"
27056 msgstr ""
27057
27058 # type: textblock
27059 #: ../tools/virt-list-filesystems.pl:42
27060 msgid ""
27061 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27062 "are contained in a virtual machine or disk image."
27063 msgstr ""
27064
27065 # type: textblock
27066 #: ../tools/virt-list-filesystems.pl:46
27067 msgid ""
27068 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27069 "functionality.  For more complex cases you should look at the "
27070 "L<guestfish(1)> tool."
27071 msgstr ""
27072
27073 # type: textblock
27074 #: ../tools/virt-list-filesystems.pl:105
27075 msgid ""
27076 "With this option, C<virt-list-filesystems> displays the type of each "
27077 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27078 msgstr ""
27079
27080 # type: =item
27081 #: ../tools/virt-list-filesystems.pl:112
27082 msgid "B<-a> | B<--all>"
27083 msgstr ""
27084
27085 # type: textblock
27086 #: ../tools/virt-list-filesystems.pl:114
27087 msgid ""
27088 "Normally we only show mountable filesystems.  If this option is given then "
27089 "swap devices are shown too."
27090 msgstr ""
27091
27092 # type: textblock
27093 #: ../tools/virt-list-filesystems.pl:188
27094 msgid ""
27095 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27096 "L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27097 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27098 msgstr ""
27099
27100 # type: textblock
27101 #: ../tools/virt-cat.pl:33
27102 msgid "virt-cat - Display a file in a virtual machine"
27103 msgstr ""
27104
27105 # type: verbatim
27106 #: ../tools/virt-cat.pl:37
27107 #, no-wrap
27108 msgid ""
27109 " virt-cat [--options] domname file\n"
27110 "\n"
27111 msgstr ""
27112
27113 # type: verbatim
27114 #: ../tools/virt-cat.pl:39
27115 #, no-wrap
27116 msgid ""
27117 " virt-cat [--options] disk.img [disk.img ...] file\n"
27118 "\n"
27119 msgstr ""
27120
27121 # type: textblock
27122 #: ../tools/virt-cat.pl:43
27123 msgid ""
27124 "C<virt-cat> is a command line tool to display the contents of C<file> where "
27125 "C<file> exists in the named virtual machine (or disk image)."
27126 msgstr ""
27127
27128 # type: textblock
27129 #: ../tools/virt-cat.pl:46
27130 msgid ""
27131 "C<virt-cat> can be used to quickly view a single file.  To edit a file, use "
27132 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
27133 "tool."
27134 msgstr ""
27135
27136 # type: textblock
27137 #: ../tools/virt-cat.pl:52
27138 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
27139 msgstr ""
27140
27141 # type: verbatim
27142 #: ../tools/virt-cat.pl:55
27143 #, no-wrap
27144 msgid ""
27145 " virt-cat mydomain /etc/fstab\n"
27146 "\n"
27147 msgstr ""
27148
27149 # type: textblock
27150 #: ../tools/virt-cat.pl:57
27151 msgid "List syslog messages from a VM:"
27152 msgstr ""
27153
27154 # type: verbatim
27155 #: ../tools/virt-cat.pl:59
27156 #, no-wrap
27157 msgid ""
27158 " virt-cat mydomain /var/log/messages | tail\n"
27159 "\n"
27160 msgstr ""
27161
27162 # type: textblock
27163 #: ../tools/virt-cat.pl:61
27164 msgid "Find out what DHCP IP address a VM acquired:"
27165 msgstr ""
27166
27167 # type: verbatim
27168 #: ../tools/virt-cat.pl:63
27169 #, no-wrap
27170 msgid ""
27171 " virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail\n"
27172 "\n"
27173 msgstr ""
27174
27175 # type: textblock
27176 #: ../tools/virt-cat.pl:65
27177 msgid "Find out what packages were recently installed:"
27178 msgstr ""
27179
27180 # type: verbatim
27181 #: ../tools/virt-cat.pl:67
27182 #, no-wrap
27183 msgid ""
27184 " virt-cat mydomain /var/log/yum.log | tail\n"
27185 "\n"
27186 msgstr ""
27187
27188 # type: textblock
27189 #: ../tools/virt-cat.pl:69
27190 msgid "Find out who is logged on inside a virtual machine:"
27191 msgstr ""
27192
27193 # type: verbatim
27194 #: ../tools/virt-cat.pl:71
27195 #, no-wrap
27196 msgid ""
27197 " virt-cat mydomain /var/run/utmp > /tmp/utmp\n"
27198 " who /tmp/utmp\n"
27199 "\n"
27200 msgstr ""
27201
27202 # type: textblock
27203 #: ../tools/virt-cat.pl:74
27204 msgid "or who was logged on:"
27205 msgstr ""
27206
27207 # type: verbatim
27208 #: ../tools/virt-cat.pl:76
27209 #, no-wrap
27210 msgid ""
27211 " virt-cat mydomain /var/log/wtmp > /tmp/wtmp\n"
27212 " last -f /tmp/wtmp\n"
27213 "\n"
27214 msgstr ""
27215
27216 # type: textblock
27217 #: ../tools/virt-cat.pl:187
27218 msgid ""
27219 "L<guestfs(3)>, L<guestfish(1)>, L<virt-edit(1)>, L<Sys::Guestfs(3)>, "
27220 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27221 msgstr ""
27222
27223 # type: textblock
27224 #: ../tools/virt-tar.pl:33
27225 msgid "virt-tar - Extract or upload files to a virtual machine"
27226 msgstr ""
27227
27228 # type: verbatim
27229 #: ../tools/virt-tar.pl:37
27230 #, no-wrap
27231 msgid ""
27232 " virt-tar [--options] -x domname directory tarball\n"
27233 "\n"
27234 msgstr ""
27235
27236 # type: verbatim
27237 #: ../tools/virt-tar.pl:39
27238 #, no-wrap
27239 msgid ""
27240 " virt-tar [--options] -u domname tarball directory\n"
27241 "\n"
27242 msgstr ""
27243
27244 # type: verbatim
27245 #: ../tools/virt-tar.pl:41
27246 #, no-wrap
27247 msgid ""
27248 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27249 "\n"
27250 msgstr ""
27251
27252 # type: verbatim
27253 #: ../tools/virt-tar.pl:43
27254 #, no-wrap
27255 msgid ""
27256 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27257 "\n"
27258 msgstr ""
27259
27260 # type: textblock
27261 #: ../tools/virt-tar.pl:47
27262 msgid "Download C</home> from the VM into a local tarball:"
27263 msgstr ""
27264
27265 # type: verbatim
27266 #: ../tools/virt-tar.pl:49
27267 #, no-wrap
27268 msgid ""
27269 " virt-tar -x domname /home home.tar\n"
27270 "\n"
27271 msgstr ""
27272
27273 # type: verbatim
27274 #: ../tools/virt-tar.pl:51
27275 #, no-wrap
27276 msgid ""
27277 " virt-tar -zx domname /home home.tar.gz\n"
27278 "\n"
27279 msgstr ""
27280
27281 # type: textblock
27282 #: ../tools/virt-tar.pl:53
27283 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27284 msgstr ""
27285
27286 # type: verbatim
27287 #: ../tools/virt-tar.pl:55
27288 #, no-wrap
27289 msgid ""
27290 " virt-tar -u domname uploadstuff.tar /tmp\n"
27291 "\n"
27292 msgstr ""
27293
27294 # type: verbatim
27295 #: ../tools/virt-tar.pl:57
27296 #, no-wrap
27297 msgid ""
27298 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27299 "\n"
27300 msgstr ""
27301
27302 # type: textblock
27303 #: ../tools/virt-tar.pl:61
27304 msgid ""
27305 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27306 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27307 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27308 msgstr ""
27309
27310 # type: textblock
27311 #: ../tools/virt-tar.pl:66
27312 msgid ""
27313 "You can use C<-x> (extract) on live virtual machines, but you might get "
27314 "inconsistent results or errors if there is filesystem activity inside the "
27315 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27316 "work, but the only way to guarantee consistent results is if the virtual "
27317 "machine is shut down."
27318 msgstr ""
27319
27320 # type: textblock
27321 #: ../tools/virt-tar.pl:74
27322 msgid ""
27323 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27324 "parts of a guest filesystem.  There are many possibilities: making backups, "
27325 "uploading data files, snooping on guest activity, fixing or customizing "
27326 "guests, etc."
27327 msgstr ""
27328
27329 # type: textblock
27330 #: ../tools/virt-tar.pl:79
27331 msgid ""
27332 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27333 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27334 "should look at the L<guestfish(1)> tool."
27335 msgstr ""
27336
27337 # type: textblock
27338 #: ../tools/virt-tar.pl:83
27339 msgid ""
27340 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27341 "its contents (recursively) from the virtual machine into a local tarball.  "
27342 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27343 "virtual machine.  You cannot use these two options together."
27344 msgstr ""
27345
27346 # type: textblock
27347 #: ../tools/virt-tar.pl:89
27348 msgid ""
27349 "In addition, you may need to use the C<-z> (gZip) option to enable "
27350 "compression.  When uploading, you have to specify C<-z> if the upload file "
27351 "is compressed because virt-tar won't detect this on its own."
27352 msgstr ""
27353
27354 # type: textblock
27355 #: ../tools/virt-tar.pl:93
27356 msgid ""
27357 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27358 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27359 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27360 "the L<libguestfs(3)> API)."
27361 msgstr ""
27362
27363 # type: =item
27364 #: ../tools/virt-tar.pl:151
27365 msgid "B<-x> | B<--extract> | B<--download>"
27366 msgstr ""
27367
27368 # type: =item
27369 #: ../tools/virt-tar.pl:153
27370 msgid "B<-u> | B<--upload>"
27371 msgstr ""
27372
27373 # type: textblock
27374 #: ../tools/virt-tar.pl:155
27375 msgid ""
27376 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27377 "local tarball."
27378 msgstr ""
27379
27380 # type: textblock
27381 #: ../tools/virt-tar.pl:158
27382 msgid ""
27383 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27384 "Please read the L</WARNING> section above before using this option."
27385 msgstr ""
27386
27387 # type: textblock
27388 #: ../tools/virt-tar.pl:162
27389 msgid "You must specify exactly one of these options."
27390 msgstr ""
27391
27392 # type: =item
27393 #: ../tools/virt-tar.pl:168
27394 msgid "B<-z> | B<--gzip>"
27395 msgstr ""
27396
27397 # type: textblock
27398 #: ../tools/virt-tar.pl:170
27399 msgid "Specify that the input or output tarball is gzip-compressed."
27400 msgstr ""
27401
27402 # type: textblock
27403 #: ../tools/virt-tar.pl:283
27404 msgid ""
27405 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27406 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27407 "L<http://libguestfs.org/>."
27408 msgstr ""
27409
27410 # type: textblock
27411 #: ../tools/virt-rescue.pl:33
27412 msgid "virt-rescue - Run a rescue shell on a virtual machine"
27413 msgstr ""
27414
27415 # type: verbatim
27416 #: ../tools/virt-rescue.pl:37
27417 #, no-wrap
27418 msgid ""
27419 " virt-rescue [--options] domname\n"
27420 "\n"
27421 msgstr ""
27422
27423 # type: verbatim
27424 #: ../tools/virt-rescue.pl:39
27425 #, no-wrap
27426 msgid ""
27427 " virt-rescue [--options] disk.img [disk.img ...]\n"
27428 "\n"
27429 msgstr ""
27430
27431 # type: textblock
27432 #: ../tools/virt-rescue.pl:43
27433 msgid ""
27434 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
27435 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
27436 "you from doing this, but doesn't catch all cases."
27437 msgstr ""
27438
27439 # type: textblock
27440 #: ../tools/virt-rescue.pl:47
27441 msgid ""
27442 "However if you use the I<--ro> (read only) option, then you can attach a "
27443 "shell to a live virtual machine.  The results might be strange or "
27444 "inconsistent at times but you won't get disk corruption."
27445 msgstr ""
27446
27447 # type: textblock
27448 #: ../tools/virt-rescue.pl:53
27449 msgid ""
27450 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
27451 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
27452 "recovery tools which you can use to examine or rescue a virtual machine or "
27453 "disk image."
27454 msgstr ""
27455
27456 # type: textblock
27457 #: ../tools/virt-rescue.pl:58
27458 msgid ""
27459 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
27460 "on disk image(s):"
27461 msgstr ""
27462
27463 # type: verbatim
27464 #: ../tools/virt-rescue.pl:61
27465 #, no-wrap
27466 msgid ""
27467 " virt-rescue GuestName\n"
27468 "\n"
27469 msgstr ""
27470
27471 # type: verbatim
27472 #: ../tools/virt-rescue.pl:63
27473 #, no-wrap
27474 msgid ""
27475 " virt-rescue --ro /path/to/disk.img\n"
27476 "\n"
27477 msgstr ""
27478
27479 # type: verbatim
27480 #: ../tools/virt-rescue.pl:65
27481 #, no-wrap
27482 msgid ""
27483 " virt-rescue /dev/sdc\n"
27484 "\n"
27485 msgstr ""
27486
27487 # type: textblock
27488 #: ../tools/virt-rescue.pl:67
27489 msgid "For live VMs you I<must> use the --ro option."
27490 msgstr ""
27491
27492 # type: textblock
27493 #: ../tools/virt-rescue.pl:69
27494 msgid ""
27495 "When you run virt-rescue on a virtual machine or disk image, you are placed "
27496 "in an interactive bash shell where you can use many ordinary Linux "
27497 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
27498 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
27499 "is an empty directory called C</sysroot> where you can mount filesystems."
27500 msgstr ""
27501
27502 # type: textblock
27503 #: ../tools/virt-rescue.pl:76
27504 msgid ""
27505 "In the example below, we list logical volumes, then choose one to mount "
27506 "under C</sysroot>:"
27507 msgstr ""
27508
27509 # type: verbatim
27510 #: ../tools/virt-rescue.pl:79
27511 #, no-wrap
27512 msgid ""
27513 " ><rescue> lvs\n"
27514 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
27515 " lv_root vg_f11x64 -wi-a-   8.83G\n"
27516 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
27517 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
27518 " ><rescue> ls /sysroot\n"
27519 "\n"
27520 msgstr ""
27521
27522 # type: textblock
27523 #: ../tools/virt-rescue.pl:86
27524 msgid ""
27525 "If you don't know what filesystems are available on the virtual machine then "
27526 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
27527 msgstr ""
27528
27529 # type: textblock
27530 #: ../tools/virt-rescue.pl:92
27531 msgid ""
27532 "Virt-rescue can be used on I<any> disk image file or device, not just a "
27533 "virtual machine.  For example you can use it on a blank file if you want to "
27534 "partition that file (although we would recommend using L<guestfish(1)> "
27535 "instead as it is more suitable for this purpose).  You can even use "
27536 "virt-rescue on things like SD cards."
27537 msgstr ""
27538
27539 # type: textblock
27540 #: ../tools/virt-rescue.pl:98
27541 msgid ""
27542 "This tool is just designed for quick interactive hacking on a virtual "
27543 "machine.  For more structured access to a virtual machine disk image, you "
27544 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
27545 "make scripted changes to guests, use L<guestfish(1)>."
27546 msgstr ""
27547
27548 # type: =item
27549 #: ../tools/virt-rescue.pl:127
27550 msgid "B<--append kernelopts>"
27551 msgstr ""
27552
27553 # type: textblock
27554 #: ../tools/virt-rescue.pl:129
27555 msgid "Pass additional options to the rescue kernel."
27556 msgstr ""
27557
27558 # type: =item
27559 #: ../tools/virt-rescue.pl:164
27560 msgid "B<--memsize MB> | B<-m MB>"
27561 msgstr ""
27562
27563 # type: textblock
27564 #: ../tools/virt-rescue.pl:166
27565 msgid ""
27566 "Change the amount of memory allocated to the rescue system.  The default is "
27567 "set by libguestfs and is small but adequate for running system tools.  The "
27568 "occasional program might need more memory.  The parameter is specified in "
27569 "megabytes."
27570 msgstr ""
27571
27572 # type: =item
27573 #: ../tools/virt-rescue.pl:175
27574 msgid "B<--network MB>"
27575 msgstr ""
27576
27577 # type: textblock
27578 #: ../tools/virt-rescue.pl:177
27579 msgid "Enable QEMU user networking in the guest."
27580 msgstr ""
27581
27582 # type: =item
27583 #: ../tools/virt-rescue.pl:183
27584 msgid "B<--ro> | B<-r>"
27585 msgstr ""
27586
27587 # type: textblock
27588 #: ../tools/virt-rescue.pl:185
27589 msgid "Open the image read-only."
27590 msgstr ""
27591
27592 # type: textblock
27593 #: ../tools/virt-rescue.pl:197
27594 msgid ""
27595 "Enable SELinux in the rescue appliance.  You should read "
27596 "L<guestfs(3)/SELINUX> before using this option."
27597 msgstr ""
27598
27599 # type: textblock
27600 #: ../tools/virt-rescue.pl:257
27601 msgid ""
27602 "Several environment variables affect virt-rescue.  See "
27603 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
27604 msgstr ""
27605
27606 # type: textblock
27607 #: ../tools/virt-rescue.pl:269
27608 msgid ""
27609 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
27610 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27611 msgstr ""
27612
27613 # type: textblock
27614 #: ../tools/virt-make-fs.pl:37
27615 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27616 msgstr ""
27617
27618 # type: verbatim
27619 #: ../tools/virt-make-fs.pl:41
27620 #, no-wrap
27621 msgid ""
27622 " virt-make-fs [--options] input.tar output.img\n"
27623 "\n"
27624 msgstr ""
27625
27626 # type: verbatim
27627 #: ../tools/virt-make-fs.pl:43
27628 #, no-wrap
27629 msgid ""
27630 " virt-make-fs [--options] input.tar.gz output.img\n"
27631 "\n"
27632 msgstr ""
27633
27634 # type: verbatim
27635 #: ../tools/virt-make-fs.pl:45
27636 #, no-wrap
27637 msgid ""
27638 " virt-make-fs [--options] directory output.img\n"
27639 "\n"
27640 msgstr ""
27641
27642 # type: textblock
27643 #: ../tools/virt-make-fs.pl:49
27644 msgid ""
27645 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27646 "archive or some files in a directory.  It is similar to tools like "
27647 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
27648 "it can create common filesystem types like ext2/3 or NTFS, which can be "
27649 "useful if you want to attach these filesystems to existing virtual machines "
27650 "(eg. to import large amounts of read-only data to a VM)."
27651 msgstr ""
27652
27653 # type: textblock
27654 #: ../tools/virt-make-fs.pl:57
27655 msgid "Basic usage is:"
27656 msgstr ""
27657
27658 # type: verbatim
27659 #: ../tools/virt-make-fs.pl:59
27660 #, no-wrap
27661 msgid ""
27662 " virt-make-fs input output\n"
27663 "\n"
27664 msgstr ""
27665
27666 # type: textblock
27667 #: ../tools/virt-make-fs.pl:61
27668 msgid ""
27669 "where C<input> is either a directory containing files that you want to add, "
27670 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27671 "C<output> is a disk image.  The input type is detected automatically.  The "
27672 "output disk image defaults to a raw ext2 image unless you specify extra "
27673 "flags (see L</OPTIONS> below)."
27674 msgstr ""
27675
27676 # type: =head2
27677 #: ../tools/virt-make-fs.pl:67
27678 msgid "EXTRA SPACE"
27679 msgstr ""
27680
27681 # type: textblock
27682 #: ../tools/virt-make-fs.pl:69
27683 msgid ""
27684 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27685 "the files that it contains, but might have extra space.  Depending on how "
27686 "you are going to use the output, you might think this extra space is wasted "
27687 "and want to minimize it, or you might want to leave space so that more files "
27688 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27689 "but you can use the C<--size> flag to leave space in the filesystem if you "
27690 "want it."
27691 msgstr ""
27692
27693 # type: textblock
27694 #: ../tools/virt-make-fs.pl:77
27695 msgid ""
27696 "An alternative way to leave extra space but not make the output image any "
27697 "bigger is to use an alternative disk image format (instead of the default "
27698 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27699 "image format (check your hypervisor supports this before using it).  This "
27700 "allows you to choose a large C<--size> but the extra space won't actually be "
27701 "allocated in the image until you try to store something in it."
27702 msgstr ""
27703
27704 # type: textblock
27705 #: ../tools/virt-make-fs.pl:85
27706 msgid ""
27707 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27708 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
27709 "virt-make-resize to build another image from scratch."
27710 msgstr ""
27711
27712 # type: =head3
27713 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
27714 msgid "EXAMPLE"
27715 msgstr ""
27716
27717 # type: verbatim
27718 #: ../tools/virt-make-fs.pl:91
27719 #, no-wrap
27720 msgid ""
27721 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27722 "\n"
27723 msgstr ""
27724
27725 # type: =head2
27726 #: ../tools/virt-make-fs.pl:93
27727 msgid "FILESYSTEM TYPE"
27728 msgstr ""
27729
27730 # type: textblock
27731 #: ../tools/virt-make-fs.pl:95
27732 msgid ""
27733 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27734 "libguestfs supports can be used (but I<not> read-only formats like "
27735 "ISO9660).  Here are some of the more common choices:"
27736 msgstr ""
27737
27738 # type: =item
27739 #: ../tools/virt-make-fs.pl:101
27740 msgid "I<ext3>"
27741 msgstr ""
27742
27743 # type: textblock
27744 #: ../tools/virt-make-fs.pl:103
27745 msgid ""
27746 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27747 "you are not going to use the filesystem in a way that requires the journal, "
27748 "then this is just wasted overhead."
27749 msgstr ""
27750
27751 # type: =item
27752 #: ../tools/virt-make-fs.pl:107
27753 msgid "I<ntfs> or I<vfat>"
27754 msgstr ""
27755
27756 # type: textblock
27757 #: ../tools/virt-make-fs.pl:109
27758 msgid "Useful if exporting data to a Windows guest."
27759 msgstr ""
27760
27761 # type: textblock
27762 #: ../tools/virt-make-fs.pl:111
27763 msgid ""
27764 "I<Note for vfat>: The tar archive or local directory must only contain files "
27765 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27766 "program running within libguestfs is unable to change the ownership of "
27767 "non-root files, since vfat itself does not support this."
27768 msgstr ""
27769
27770 # type: =item
27771 #: ../tools/virt-make-fs.pl:116
27772 msgid "I<minix>"
27773 msgstr ""
27774
27775 # type: textblock
27776 #: ../tools/virt-make-fs.pl:118
27777 msgid ""
27778 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27779 "total filesystem size."
27780 msgstr ""
27781
27782 # type: verbatim
27783 #: ../tools/virt-make-fs.pl:125
27784 #, no-wrap
27785 msgid ""
27786 " virt-make-fs --type=minix input minixfs.img\n"
27787 "\n"
27788 msgstr ""
27789
27790 # type: =head2
27791 #: ../tools/virt-make-fs.pl:127
27792 msgid "TO PARTITION OR NOT TO PARTITION"
27793 msgstr ""
27794
27795 # type: textblock
27796 #: ../tools/virt-make-fs.pl:129
27797 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27798 msgstr ""
27799
27800 # type: textblock
27801 #: ../tools/virt-make-fs.pl:131
27802 msgid ""
27803 "Adding a partition can make the disk image more compatible with certain "
27804 "virtualized operating systems which don't expect to see a filesystem "
27805 "directly located on a block device (Linux doesn't care and will happily "
27806 "handle both types)."
27807 msgstr ""
27808
27809 # type: textblock
27810 #: ../tools/virt-make-fs.pl:136
27811 msgid ""
27812 "On the other hand, if you have a partition table then the output image is no "
27813 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27814 "directly on a partitioned disk image.  (However libguestfs tools such as "
27815 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27816 msgstr ""
27817
27818 # type: textblock
27819 #: ../tools/virt-make-fs.pl:144
27820 msgid "Add an MBR partition:"
27821 msgstr ""
27822
27823 # type: verbatim
27824 #: ../tools/virt-make-fs.pl:146
27825 #, no-wrap
27826 msgid ""
27827 " virt-make-fs --partition -- input disk.img\n"
27828 "\n"
27829 msgstr ""
27830
27831 # type: textblock
27832 #: ../tools/virt-make-fs.pl:148
27833 msgid ""
27834 "If the output disk image could be terabyte-sized or larger, it's better to "
27835 "use an EFI/GPT-compatible partition table:"
27836 msgstr ""
27837
27838 # type: verbatim
27839 #: ../tools/virt-make-fs.pl:151
27840 #, no-wrap
27841 msgid ""
27842 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27843 "\n"
27844 msgstr ""
27845
27846 # type: textblock
27847 #: ../tools/virt-make-fs.pl:179
27848 msgid "Enable debugging information."
27849 msgstr ""
27850
27851 # type: =item
27852 #: ../tools/virt-make-fs.pl:185
27853 msgid "B<--size=E<lt>NE<gt>>"
27854 msgstr ""
27855
27856 # type: =item
27857 #: ../tools/virt-make-fs.pl:187
27858 msgid "B<--size=+E<lt>NE<gt>>"
27859 msgstr ""
27860
27861 # type: =item
27862 #: ../tools/virt-make-fs.pl:189
27863 msgid "B<-s E<lt>NE<gt>>"
27864 msgstr ""
27865
27866 # type: =item
27867 #: ../tools/virt-make-fs.pl:191
27868 msgid "B<-s +E<lt>NE<gt>>"
27869 msgstr ""
27870
27871 # type: textblock
27872 #: ../tools/virt-make-fs.pl:193
27873 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27874 msgstr ""
27875
27876 # type: textblock
27877 #: ../tools/virt-make-fs.pl:196
27878 msgid ""
27879 "If this option is I<not> given, then the output image will be just large "
27880 "enough to contain all the files, with not much wasted space."
27881 msgstr ""
27882
27883 # type: textblock
27884 #: ../tools/virt-make-fs.pl:199
27885 msgid ""
27886 "To choose a fixed size output disk, specify an absolute number followed by "
27887 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27888 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27889 "files, else you will get an error."
27890 msgstr ""
27891
27892 # type: textblock
27893 #: ../tools/virt-make-fs.pl:204
27894 msgid ""
27895 "To leave extra space, specify C<+> (plus sign) and a number followed by "
27896 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27897 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27898 "the input files, and (approximately) an extra 200 MB free space."
27899 msgstr ""
27900
27901 # type: textblock
27902 #: ../tools/virt-make-fs.pl:210
27903 msgid ""
27904 "Note that virt-make-fs estimates free space, and therefore will not produce "
27905 "filesystems containing precisely the free space requested.  (It is much more "
27906 "expensive and time-consuming to produce a filesystem which has precisely the "
27907 "desired free space)."
27908 msgstr ""
27909
27910 # type: =item
27911 #: ../tools/virt-make-fs.pl:219
27912 msgid "B<--format=E<lt>fmtE<gt>>"
27913 msgstr ""
27914
27915 # type: =item
27916 #: ../tools/virt-make-fs.pl:221
27917 msgid "B<-F E<lt>fmtE<gt>>"
27918 msgstr ""
27919
27920 # type: textblock
27921 #: ../tools/virt-make-fs.pl:223
27922 msgid "Choose the output disk image format."
27923 msgstr ""
27924
27925 # type: textblock
27926 #: ../tools/virt-make-fs.pl:225
27927 msgid "The default is C<raw> (raw disk image)."
27928 msgstr ""
27929
27930 # type: textblock
27931 #: ../tools/virt-make-fs.pl:227
27932 msgid ""
27933 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27934 "that would really make sense here is C<qcow2>."
27935 msgstr ""
27936
27937 # type: =item
27938 #: ../tools/virt-make-fs.pl:234
27939 msgid "B<--type=E<lt>fsE<gt>>"
27940 msgstr ""
27941
27942 # type: =item
27943 #: ../tools/virt-make-fs.pl:236
27944 msgid "B<-t E<lt>fsE<gt>>"
27945 msgstr ""
27946
27947 # type: textblock
27948 #: ../tools/virt-make-fs.pl:238
27949 msgid "Choose the output filesystem type."
27950 msgstr ""
27951
27952 # type: textblock
27953 #: ../tools/virt-make-fs.pl:240
27954 msgid "The default is C<ext2>."
27955 msgstr ""
27956
27957 # type: textblock
27958 #: ../tools/virt-make-fs.pl:242
27959 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
27960 msgstr ""
27961
27962 # type: =item
27963 #: ../tools/virt-make-fs.pl:249
27964 msgid "B<--partition>"
27965 msgstr ""
27966
27967 # type: =item
27968 #: ../tools/virt-make-fs.pl:251
27969 msgid "B<--partition=E<lt>parttypeE<gt>>"
27970 msgstr ""
27971
27972 # type: textblock
27973 #: ../tools/virt-make-fs.pl:253
27974 msgid ""
27975 "If specified, this flag adds an MBR partition table to the output disk "
27976 "image."
27977 msgstr ""
27978
27979 # type: textblock
27980 #: ../tools/virt-make-fs.pl:256
27981 msgid ""
27982 "You can change the partition table type, eg. C<--partition=gpt> for large "
27983 "disks."
27984 msgstr ""
27985
27986 # type: textblock
27987 #: ../tools/virt-make-fs.pl:259
27988 msgid ""
27989 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27990 "might consider the next parameter to be the partition type.  For example:"
27991 msgstr ""
27992
27993 # type: verbatim
27994 #: ../tools/virt-make-fs.pl:263
27995 #, no-wrap
27996 msgid ""
27997 " virt-make-fs --partition input.tar ...\n"
27998 "\n"
27999 msgstr ""
28000
28001 # type: textblock
28002 #: ../tools/virt-make-fs.pl:265
28003 msgid ""
28004 "would cause virt-make-fs to think you wanted to use a partition type of "
28005 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28006 "dash) between options and the input file argument:"
28007 msgstr ""
28008
28009 # type: verbatim
28010 #: ../tools/virt-make-fs.pl:269
28011 #, no-wrap
28012 msgid ""
28013 " virt-make-fs --partition -- input.tar ...\n"
28014 "\n"
28015 msgstr ""
28016
28017 # type: textblock
28018 #: ../tools/virt-make-fs.pl:536
28019 msgid ""
28020 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28021 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28022 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28023 msgstr ""
28024
28025 # type: verbatim
28026 #: ../tools/virt-make-fs.pl:553
28027 #, no-wrap
28028 msgid ""
28029 " export LIBGUESTFS_DEBUG=1\n"
28030 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28031 "\n"
28032 msgstr ""
28033
28034 # type: textblock
28035 #: ../tools/virt-make-fs.pl:556
28036 msgid ""
28037 "Attach /tmp/virt-make-fs.log to a new bug report at "
28038 "L<https://bugzilla.redhat.com/>"
28039 msgstr ""
28040
28041 # type: textblock
28042 #: ../tools/virt-list-partitions.pl:32
28043 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28044 msgstr ""
28045
28046 # type: verbatim
28047 #: ../tools/virt-list-partitions.pl:36
28048 #, no-wrap
28049 msgid ""
28050 " virt-list-partitions [--options] domname\n"
28051 "\n"
28052 msgstr ""
28053
28054 # type: verbatim
28055 #: ../tools/virt-list-partitions.pl:38
28056 #, no-wrap
28057 msgid ""
28058 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28059 "\n"
28060 msgstr ""
28061
28062 # type: textblock
28063 #: ../tools/virt-list-partitions.pl:42
28064 msgid ""
28065 "C<virt-list-partitions> is a command line tool to list the partitions that "
28066 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28067 "first step to using L<virt-resize(1)>."
28068 msgstr ""
28069
28070 # type: textblock
28071 #: ../tools/virt-list-partitions.pl:47
28072 msgid ""
28073 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28074 "functionality.  For more complex cases you should look at the "
28075 "L<guestfish(1)> tool."
28076 msgstr ""
28077
28078 # type: =item
28079 #: ../tools/virt-list-partitions.pl:104
28080 msgid "B<-h> | B<--human-readable>"
28081 msgstr ""
28082
28083 # type: textblock
28084 #: ../tools/virt-list-partitions.pl:106
28085 msgid "Show sizes in human-readable form (eg. \"1G\")."
28086 msgstr ""
28087
28088 # type: textblock
28089 #: ../tools/virt-list-partitions.pl:114
28090 msgid ""
28091 "With this option, C<virt-list-partitions> displays the type and size of each "
28092 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28093 msgstr ""
28094
28095 # type: =item
28096 #: ../tools/virt-list-partitions.pl:121
28097 msgid "B<-t> | B<--total>"
28098 msgstr ""
28099
28100 # type: textblock
28101 #: ../tools/virt-list-partitions.pl:123
28102 msgid "Display the total size of each block device (as a separate row or rows)."
28103 msgstr ""
28104
28105 # type: textblock
28106 #: ../tools/virt-list-partitions.pl:256
28107 msgid ""
28108 "L<guestfs(3)>, L<guestfish(1)>, L<virt-list-filesystems(1)>, "
28109 "L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
28110 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28111 msgstr ""